diff --git a/318.7fa42f12.async.js b/318.7fa42f12.async.js new file mode 100644 index 0000000..d348c16 --- /dev/null +++ b/318.7fa42f12.async.js @@ -0,0 +1,649 @@ +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[318],{8858:function(){window._iconfont_svg_string_3567033='',function(Le){var o=(o=document.getElementsByTagName("script"))[o.length-1],ie=o.getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var ue,p,N,d,q,ve=function(Y,le){le.parentNode.insertBefore(Y,le)};if(ie&&!Le.__iconfont__svg__cssinject__){Le.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(fe){console&&console.log(fe)}}ue=function(){var Y,le=document.createElement("div");le.innerHTML=Le._iconfont_svg_string_3567033,(le=le.getElementsByTagName("svg")[0])&&(le.setAttribute("aria-hidden","true"),le.style.position="absolute",le.style.width=0,le.style.height=0,le.style.overflow="hidden",le=le,(Y=document.body).firstChild?ve(le,Y.firstChild):Y.appendChild(le))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ue,0):(p=function(){document.removeEventListener("DOMContentLoaded",p,!1),ue()},document.addEventListener("DOMContentLoaded",p,!1)):document.attachEvent&&(N=ue,d=Le.document,q=!1,ge(),d.onreadystatechange=function(){d.readyState=="complete"&&(d.onreadystatechange=null,pe())})}function pe(){q||(q=!0,N())}function ge(){try{d.documentElement.doScroll("left")}catch(fe){return void setTimeout(ge,50)}pe()}}(window)},30246:function(Le,ie,o){"use strict";o.d(ie,{B:function(){return d}});var ue=o(40742),p=o(29486),N=o(4027);function d(q,ve,pe){var ge=q.getWordUntilPosition(ve),fe={startLineNumber:ve.lineNumber,endLineNumber:ve.lineNumber,startColumn:ge.startColumn,endColumn:ge.endColumn},Y=[];if(pe==="turf")for(var le in ue){var Ee={label:le,kind:N.languages.CompletionItemKind.Function,documentation:ue[le].toString(),insertText:le,range:fe};Y.push(Ee)}else Y=p.Z.chain(p.Z).keys().map(function(de){return{label:de,kind:N.languages.CompletionItemKind.Function,insertText:de,range:fe}}).value();return{suggestions:Y}}},64552:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82242),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7557),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(41498),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(79800),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(26437),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(65397),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(82728),ahooks__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8142),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4027),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(77617),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(86105),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(68652),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(82668),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(60234),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11809),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(30246),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(50907),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(32648),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),geoJonText=_useState6[0],setGeoJonText=_useState6[1],debouncedGeoJsonText=(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(geoJonText,{wait:2e3}),_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(ie){return[{range:ie.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:ie.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(ie,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(ie,o,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(ie,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(ie,o,"turf")}})});var monacoChange=function(ie){if(language==="json"){setEditorText(ie),setGeoJonText(ie);return}setScriptContent==null||setScriptContent(ie)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Le,ie){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_17__.Z)(function(){var Le=saveEditorText();autoFitBounds&&bboxAutoFit(Le)},[debouncedGeoJsonText]);var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},50907:function(Le,ie,o){"use strict";var ue=o(41363),p=o.n(ue),N=o(68564),d,q=function(){return{appEditor:(0,N.iv)(d||(d=p()([` + width: 100%; + height: 100%; + position: relative; + .react-monaco-editor-container { + width: 100%; + height: 100%; + } + `])))}};ie.Z=q},2185:function(Le,ie,o){"use strict";o.d(ie,{AQ:function(){return pe},Fe:function(){return N},IZ:function(){return fe},Iz:function(){return ue.Iz},K6:function(){return ve},QF:function(){return Y},_9:function(){return ue._9},ay:function(){return le},d7:function(){return d},dY:function(){return de},dw:function(){return ue.dw},eG:function(){return ue.eG},s3:function(){return ge},u9:function(){return ue.u9},xQ:function(){return ue.xQ},yc:function(){return p}});var ue=o(20658),p=[20,80],N=function(B){return B.RightPanelWidth="RightPanelWidth",B.MapOptions="MapOptions",B.LayerColor="LayerColor",B.HideEditor="HideEditor",B.EditorText="EditorText",B.PopupTrigger="PopupTrigger",B.ActiveRightTabKey="ActiveRightTabKey",B.AutoFitBounds="AutoFitBounds",B.BaseMap="BaseMap",B.officialLayers="officialLayers",B.WktText="WktText",B.Convert="Convert",B.theme="theme",B.cityHistory="cityHistory",B.showTextLayer="showTextLayer",B.textLayerFields="textLayerFields",B.locale="locale",B.firstOpening="firstOpening",B.wasmPath="wasmPath",B.customTiles="customTiles",B.showDrawDistance="showDrawDistance",B.showDrawArea="showDrawArea",B}({}),d=function(B){return B.PointLayer="PointLayer",B.LineLayer="LineLayer",B.PolygonLayer="PolygonLayer",B}({}),q="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",ve="#1677ff",pe={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},ge={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg",WebGLParams:{preserveDrawingBuffer:!0}},fe={token:"5ae4492ef912cbbc93034fea0e66ff2a",WebGLParams:{preserveDrawingBuffer:!0}},Y=100,le="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s&gl=CN&x={x}&y={y}&z={z}",Ee="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=h&gl=CN&x={x}&y={y}&z={z}",de=function(B){return B.GoogleSatellite="googleSatellite",B.VectorMap="vectorMap",B}({})},20658:function(Le,ie,o){"use strict";o.d(ie,{Iz:function(){return ge},_9:function(){return fe},dw:function(){return q},eG:function(){return Y},u9:function(){return pe},xQ:function(){return ve}});var ue=o(79800),p=o.n(ue),N=o(91173),d=o.n(N),q=d().shape({type:d().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:d().array}),ve=d().arrayOf(q),pe=d().shape({type:d().in(["Feature"]),properties:d().or([d().object,d().null,d().undefined]),geometry:q}),ge=d().arrayOf(pe),fe=d().shape({type:d().in(["FeatureCollection"]),features:d().arrayOf(pe)}),Y=d().arrayOf(d().arrayOf(d().and([d().arrayOf(d().number),d().apply(function(le){if(le.length===2){var Ee=p()(le,2),de=Ee[0],B=Ee[1];return de>=-180&&de<=180&&B<=90&&B>=-90}return!1})])))},94941:function(Le,ie,o){"use strict";o.r(ie),o.d(ie,{AppTable:function(){return Rn},GeoJsonEditor:function(){return Zt.i},L7Editor:function(){return Bi},LngLatEditor:function(){return ro},WktEditor:function(){return ra}});var ue=o(82242),p=o.n(ue),N=o(79800),d=o.n(N),q=o(39429),ve=o(45818),pe=o(92621),ge=o(26890),fe=o(63667),Y=o(67851),le=o(37114),Ee=o(82607),de=o(3773),B=o(99622),De=o(145),Ke=o(73323),lt=o(64316),ze=o(92310),xe=o.n(ze),v=o(77617),ae=o(86105),z=o(2185),H=o(82668),e=o(32648),Fe=function(n){return(0,e.jsx)("span",{id:n.id,role:"img",style:n.style,className:xe()(["anticon",n.className]),children:(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",className:"",children:(0,e.jsx)("use",{xlinkHref:"#".concat(n.type)})})})},ye=o(16042),Ae=ye.Z.Option,Re=function(){var n=(0,H.Og)(),i=n.baseMap,r=n.setBaseMap,a=n.setMapOptions,l=n.mapOptions,s=n.theme,u=n.setCoordConvert,c=(0,ae.$G)(),_=c.t,y=[{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*POJeRJzjdNAAAAAAAAAAAAAADjWqAQ/original",label:_("btn.setting_btn.gaoDe"),value:"Gaode"},{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*-G-sT4L_sNoAAAAAAAAAAAAADjWqAQ/original",label:"Mapbox",value:"Mapbox"}],h=function(S){r(S),a(p()(p()({},l),{},{style:s==="dark"?"dark":"normal"})),u(S==="Gaode"?"GCJ02":"WGS84"),S!==i&&location.reload()};return(0,e.jsx)(ye.Z,{style:{width:"120px"},bordered:!1,defaultValue:i,onChange:h,children:y.map(function(m){return(0,e.jsx)(Ae,{value:m.value,label:m.label,children:(0,e.jsxs)(Ee.Z,{children:[(0,e.jsx)("span",{style:{display:"flex"},children:(0,e.jsx)("img",{src:m.img,alt:"",style:{height:15,width:15}})}),(0,e.jsx)("span",{children:m.label})]})},m.value)})})},Je=o(99595),Oe=o(40742),st=o(16097),Ve=o.n(st),be=o(60234),$e=o(11809),Be=o(85070),me=function(){var n=(0,H.SS)(),i=n.editorText,r=n.fc,a=(0,ae.$G)(),l=a.t,s=function(_){if(_==="GeoJson")(0,be.Di)(JSON.stringify(r),"json");else if(_==="FormatGeoJson"){var y=(0,$e.X)({content:r});(0,be.Di)(y,"json")}else if(_==="LngLat")(0,be.Di)((0,Oe.coordAll)(r).map(function(m){return m.join(",")}).join(";"),"txt");else if(_==="KML"){var h=Ve()(r);(0,be.Di)(h,"kml")}else _==="WKT"?(0,be.Di)((0,Be.f)(r),"wkt"):(0,be.Di)(i,"json")},u=[{key:"GeoJson",label:l("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:l("app_header.constants.xiaZaiLNG")},{key:"KML",label:l("app_header.constants.xiaZaiKML")},{key:"WKT",label:l("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(De.Z,{menu:{items:u,onClick:function(_){var y=_.key;s(y)}},children:(0,e.jsx)(B.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(Je.Z,{}),children:l("btn.download_btn.xiaZai")})})},$=me,ne=o(83624),Q=function(){var f=(0,ae.$G)(),n=f.t,i=function(l){l==="guide"?window.open("/guide"):l==="api"?window.open("/docs"):l==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},r=[{key:"guide",label:n("app_header.constants.pingTaiShiYongWen")},{key:"api",label:n("app_header.constants.zuJianAPI")},{key:"issue",label:n("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(De.Z,{menu:{items:r,onClick:function(l){var s=l.key;i(s)}},placement:"bottom",children:(0,e.jsx)(B.ZP,{icon:(0,e.jsx)(ne.Z,{}),children:n("btn.handback_btn.bangZhu")})})})},re=o(40098),Ne=o(91825),at=o(9810),rt=o(7357),ut={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeWeiXingTu":"Google Remote Sensing Maps","official_layer_control.index.shiLiangDiTu":"Vector Map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position","official_layer_control.index.mingChengChongFu":"Duplicate name, please modify the name","official_layer_control.index.shanChuDiTu":"Delete current base map","official_layer_control.index.tianJiaDitu":"Add Tile Layer","official_layer_control.index.name":"name","official_layer_control.index.addName":"Please enter a name","official_layer_control.index.shiLiTuPian":"Sample Picture","official_layer_control.index.tuCengDiZhi":"Layer Address","official_layer_control.index.qiShuRutuCengDiZhi":"Please enter a layer address","official_layer_control.index.tinJiaWaPian":"Add Tile Layer Address","official_layer_control.index.kongGe":"Input cannot be a space!","official_layer_control.index.shangchuan":"Please upload pictures","text-layer-control_wenBenBiaoZhu":"Text callout layer configuration","text-layer-control_shiFouZhanShiTuCeng":"Show layer","text-layer-control_zhanShiZiDuan":"Show Fields","text-layer-control_buXuan":"If not selected, the element serial number will be displayed by default.","text-layer-control_wenBenTuCengPeiZhi":"Text Layer Configuration","text-layer-control_description":"Open the text layer configuration, you can display the serial number of all the current data, you can also use the multi-select box to properties fields in the data to select different data for display.","export-img-control_title":"Preview Picture","btn.setting_btn.mianJi":"Show area text when drawing","btn.setting_btn.juLi":"Whether to display distance text when drawing","l7Options.huoqucanshu":"Get map status parameters","l7Options.dangqiancanshu":"Current map parameters"},ct={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u536B\u661F\u5730\u56FE","official_layer_control.index.shiLiangDiTu":"\u77E2\u91CF\u5730\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E","official_layer_control.index.mingChengChongFu":"\u540D\u79F0\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540D\u79F0","official_layer_control.index.shanChuDiTu":"\u662F\u5426\u5220\u9664\u5F53\u524D\u5E95\u56FE","official_layer_control.index.tianJiaDitu":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42","official_layer_control.index.name":"\u540D\u79F0","official_layer_control.index.addName":"\u8BF7\u8F93\u5165\u540D\u79F0","official_layer_control.index.shiLiTuPian":"\u793A\u4F8B\u56FE\u7247","official_layer_control.index.tuCengDiZhi":"\u56FE\u5C42\u5730\u5740","official_layer_control.index.qiShuRutuCengDiZhi":"\u8BF7\u8F93\u5165\u56FE\u5C42\u5730\u5740","official_layer_control.index.tinJiaWaPian":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42\u5730\u5740","official_layer_control.index.kongGe":"\u8F93\u5165\u4E0D\u80FD\u4E3A\u7A7A\u683C\uFF01","official_layer_control.index.shangchuan":"\u8BF7\u4E0A\u4F20\u56FE\u7247","text-layer-control_wenBenBiaoZhu":"\u6587\u672C\u6807\u6CE8\u56FE\u5C42\u914D\u7F6E","text-layer-control_shiFouZhanShiTuCeng":"\u662F\u5426\u5C55\u793A\u56FE\u5C42","text-layer-control_zhanShiZiDuan":"\u5C55\u793A\u5B57\u6BB5","text-layer-control_buXuan":"\u4E0D\u9009\u5219\u9ED8\u8BA4\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","text-layer-control_wenBenTuCengPeiZhi":"\u6587\u672C\u56FE\u5C42\u914D\u7F6E","text-layer-control_description":"\u5F00\u542F\u6587\u672C\u56FE\u5C42\u914D\u7F6E\uFF0C\u53EF\u4EE5\u663E\u793A\u5F53\u524D\u6240\u6709\u6570\u636E\u7684\u5E8F\u53F7\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u591A\u9009\u6846\u5728\u6570\u636E\u4E2Dproperties\u5B57\u6BB5\u53BB\u9009\u62E9\u4E0D\u540C\u7684\u6570\u636E\u6765\u8FDB\u884C\u5C55\u793A","export-img-control_title":"\u9884\u89C8\u56FE\u7247","btn.setting_btn.mianJi":"\u7ED8\u5236\u65F6\u662F\u5426\u5C55\u793A\u9762\u79EF\u6587\u672C","btn.setting_btn.juLi":"\u7ED8\u5236\u65F6\u662F\u5426\u5C55\u793A\u8DDD\u79BB\u6587\u672C","l7Options.huoqucanshu":"\u83B7\u53D6\u5730\u56FE\u72B6\u6001\u53C2\u6570","l7Options.dangqiancanshu":"\u5F53\u524D\u5730\u56FE\u53C2\u6570"};at.ZP.use(rt.Z).use(ae.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:ct},"en-US":{translation:ut}}});var _t=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:Ne.Z},{lang:"en-US",name:"English",antd:re.Z}],mt=null,Xe=o(41363),F=o.n(Xe),C=o(68564),we=o(80769),jt,Et,yt,Ct,Dt,Ot,bt,St,Pt,ke,oe,ce=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBorder,l=r.colorBgContainer,s=r.colorText;return{mapHeader:(0,C.iv)(jt||(jt=F()([` + padding: 0 16px; + height: 50px; + border-bottom: 1px solid `,`; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + background: `,`; + z-index: 1; + .ant-btn { + border: 0; + } + `])),a,l),mapHeaderLogo:(0,C.iv)(Et||(Et=F()([` + display: flex; + align-items: center; + img { + width: auto; + height: 24px; + margin-right: 4px; + } + `]))),mapHeaderTitle:(0,C.iv)(yt||(yt=F()([` + font-size: 16px; + font-weight: bold; + margin-left: 4px; + margin-right: 16px; + color: `,`; + `])),s),mapHeaderLeft:(0,C.iv)(Ct||(Ct=F()([` + display: flex; + align-items: center; + `]))),mapHeaderRight:(0,C.iv)(Dt||(Dt=F()([` + display: flex; + align-items: center; + `]))),locale:(0,C.iv)(Ot||(Ot=F()([` + font-size: 16px; + `]))),localeIcon:(0,C.iv)(bt||(bt=F()([` + font-size: 16px; + `]))),upload:(0,C.iv)(St||(St=F()([` + height: 200px; + display: flex; + overflow: hidden; + flex-direction: column; + align-items: center; + justify-content: center; + `]))),uploadTitle:(0,C.iv)(Pt||(Pt=F()([` + font-size: 14px; + padding: 10px 6px 10px 0; + `]))),theme:(0,C.iv)(ke||(ke=F()([` + cursor: pointer; + padding: 0 !important; + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + `]))),themeIcon:(0,C.iv)(oe||(oe=F()([` + font-size: 20px !important; + `])))}},Pe=ce,He=_t.map(function(f){return{key:f.lang,label:f.name}}),Ye=function(){var n=(0,ae.$G)(),i=n.i18n,r=(0,H.Og)(),a=r.locale,l=r.setLocale,s=Pe(),u=function(_){var y=_.key;i.changeLanguage(y),l(y)};return(0,e.jsx)(De.Z,{menu:{items:He,onClick:u,selectedKeys:[a],selectable:!0},placement:"bottom",children:(0,e.jsx)(B.ZP,{className:s.locale,icon:(0,e.jsx)(Fe,{className:s.localeIcon,type:"icon-in"})})})},ft=Ye,wt=o(7557),je=o.n(wt),en=o(37205),Me=o.n(en),tn=o(41498),qe=o.n(tn),nn=o(54834),et=o(31222),Tt=o(72450),Wt=o(4936),ee=o(3918),nt=o(11864),Zt=o(64552),Ut=o(20658),ar=o(70236),hn=o.n(ar),rr=o(98331),vn=o(43536),mn=o(89392),gn=o(92368),or=o(91327),ir=o.n(or),Ft=o(60522),lr=o(95205),sr=o.n(lr),xn=o(60015),yn=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsText(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},bn=function(n,i,r){var a=JSON.parse(n);return{id:r||(0,Ft.Z)(r),metadata:{name:i},data:a,type:"local"}},ur=function(n,i,r){var a=JSON.parse(n);return z._9.check(a)?bn(n,i,r):{id:r||(0,Ft.Z)(r),metadata:{name:i},data:a,type:"local"}},cr=function(){var f=qe()(je()().mark(function n(i,r,a){var l,s,u,c,_,y;return je()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=i.name,s=l.substring(l.lastIndexOf(".")+1),m.next=4,yn(i);case 4:if(u=m.sent,s!=="json"){m.next=9;break}return m.abrupt("return",ur(u,r,a));case 9:if(s!=="geojson"){m.next=13;break}return m.abrupt("return",bn(u,r,a));case 13:if(s!=="kml"){m.next=21;break}return c=new DOMParser().parseFromString(u,"text/xml"),m.next=17,ir().kml(c,{style:!0});case 17:return _=m.sent,m.abrupt("return",{id:a||(0,Ft.Z)(a),metadata:{name:r},data:_,type:"local"});case 21:if(s!=="wkt"){m.next=24;break}return y=(0,Be.Y)(u),m.abrupt("return",{id:a||(0,Ft.Z)(a),metadata:{name:r},data:y,type:"local"});case 24:case"end":return m.stop()}},n)}));return function(i,r,a){return f.apply(this,arguments)}}(),dr=function(){var f=qe()(je()().mark(function n(i,r,a){var l,s;return je()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,yn(i);case 2:return l=c.sent,s=sr().parse(l,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),c.abrupt("return",{id:a||(0,Ft.Z)(a),metadata:{name:r},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return c.stop()}},n)}));return function(i,r,a){return f.apply(this,arguments)}}(),pr=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsArrayBuffer(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},_r=function(n,i,r){var a;try{var l=(0,xn.ij)(n,{type:"array",cellDates:!0}),s=l.Sheets[l.SheetNames[0]];Object.keys(s).forEach(function(c){var _=s[c];_.t==="d"&&(_.v=_.w)}),a=xn.P6.sheet_to_json(s)}catch(c){throw c}var u=Object.keys(a[0]);return{id:r,metadata:{name:i},data:a,type:"local",columns:u}},fr=function(){var f=qe()(je()().mark(function n(i,r,a){var l;return je()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,pr(i);case 3:l=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",_r(l,r,a));case 10:case"end":return u.stop()}},n,null,[[0,6]])}));return function(i,r,a){return f.apply(this,arguments)}}(),an=function(n){var i=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,r=!1;return typeof n=="string"&&i.test(n)&&(r=!0),r},rn=function(n){try{var i=JSON.parse(n);return z.dw.check(i)}catch(r){return!1}},hr=function(){var f=qe()(je()().mark(function n(i,r){var a,l,s,u;return je()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a=i.name,l=a.substring(0,a.lastIndexOf(".")),s=a.substring(a.lastIndexOf(".")+1),_.prev=3,!["geojson","json","kml","wkt"].includes(s)){_.next=10;break}return _.next=7,cr(i,l,i.uid);case 7:u=_.sent,_.next=20;break;case 10:if(s!=="csv"){_.next=16;break}return _.next=13,dr(i,l,i.uid);case 13:u=_.sent,_.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){_.next=20;break}return _.next=19,fr(i,l,i.uid);case 19:u=_.sent;case 20:_.next=25;break;case 22:return _.prev=22,_.t0=_.catch(3),_.abrupt("return",Promise.reject(r("utils.upload.wenJianJieXiShi")));case 25:return _.abrupt("return",u);case 26:case"end":return _.stop()}},n,null,[[3,22]])}));return function(i,r){return f.apply(this,arguments)}}(),vr=vn.Z.Dragger,mr=(0,v.forwardRef)(function(n,i){hn()(n);var r=(0,v.useState)([]),a=d()(r,2),l=a[0],s=a[1],u=(0,v.useState)([]),c=d()(u,2),_=c[0],y=c[1],h=(0,v.useState)([]),m=d()(h,2),S=m[0],L=m[1],T=ee.Z.useForm(),w=d()(T,1),x=w[0],A=(0,ae.$G)(),O=A.t,j=Pe(),b=function(g){var U=g.file,M=g.onSuccess,k=g.onError;hr(U,O).then(function(P){if(P!=null&&P.columns){for(var Z=P.data[0],R=void 0,V=0,te=Object.keys(Z);V":return i>f.value;case">=":return i>=f.value;default:if(Array.isArray(f.value)){var r=d()(f.value,2),a=r[0],l=r[1];return i>=a&&i<=l}}}function Vn(f,n){var i=String(n[f.field]),r=f.value;switch(f.operator){case"NOT_IN":return!(r!=null&&r.includes(i));case"IN":return r==null?void 0:r.includes(i);case"LIKE":return(i==null?void 0:i.indexOf(r))>-1;default:return(i==null?void 0:i.indexOf(r))<=-1}}var Hn=(0,Bt.cn)({key:"filterFeature",default:[]});function Qn(){var f=(0,H.SS)(),n=f.features,i=(0,H.L0)(),r=i.filters,a=(0,Bt.Zl)(Hn),l=(0,Bt.sJ)(Hn);return(0,v.useEffect)(function(){if((0,Qt.Z)(r)){a(Me()(n));return}var s=Me()(n),u=r.filter(function(y){return!Un(y)}),c=u.filter(function(y){return y.logic==="and"}),_=u.filter(function(y){return y.logic==="or"});(0,Qt.Z)(_)||(s=s.filter(function(y){var h=y.properties;return _.some(function(m){var S=m.type==="number"?Kn:Vn;return S(m,h)})})),(0,Qt.Z)(c)||(s=s.filter(function(y){var h=y.properties;return c.every(function(m){var S=m.type==="number"?Kn:Vn;return S(m,h)})})),a(s)},[n,r,a]),{features:l}}function un(f,n){var i=document.createElement("canvas"),r=i.getContext("2d"),a=new Image(n.x,n.y);return a.crossOrigin="Anonymous",a.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(l){a.onload=function(){i.width=a.width,i.height=a.height,r.imageSmoothingEnabled=!0,r.drawImage(a,0,0,a.width,a.height);for(var s=r.getImageData(0,0,i.width,i.height),u=s.data,c=0;c=10){var V=(0,dt.Z)(r);V.pop(),a(V)}}else y(null)},D=function(M,k){return k.some(function(P){return P.label.toLowerCase().indexOf(M.toLowerCase())>-1})},g=(0,v.useMemo)(function(){if(r.length){var U=r.map(function(M){return{key:M.value,label:(0,e.jsx)("div",{onClick:function(){A(JSON.parse(M.value))},children:M.label})}});return U}else return[{key:"undefined",label:(0,e.jsx)(ln.Z,{})}]},[r]);return(0,v.useEffect)(function(){if(x){var U=x[x.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(U,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(M){return M.json()}).then(function(M){var k;if(M.status==="1"&&(k=M.districts)!==null&&k!==void 0&&k.length&&s){var P=M.districts[0].center.split(",").map(function(V){return+V}),W=d()(P,2),I=W[0],Z=W[1];s.setZoomAndCenter(9,[I,Z]);var R=[];M.districts.forEach(function(V){V.polyline.split("|").forEach(function(te){R.push(te.split(";").map(function(X){return X.split(",").map(function(_e){return+_e})}))})}),y((0,Oe.multiLineString)(R))}}).catch(function(){et.ZP.error(j("administrative_select_control.index.weiLanShuJuQing"))})}},[x]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(se.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(fo.Z,{options:S,value:x,onChange:E,className:n.cascader,allowClear:!0,showSearch:{filter:D},placeholder:j("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:n.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(De.Z,{menu:{items:g},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(de.Z,{title:j("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:xe()([n.history,"l7-draw-control__btn"]),children:(0,e.jsx)(Fe,{type:"icon-lishi",className:n.historyIcon})})})})]})}),(0,e.jsx)(se.Ie,p()({source:{data:(0,Oe.featureCollection)(_?[_]:[])}},vo))]})},_a,fa,ha,va,ma,ga,go=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.colorBorder,s=r.colorTextDescription,u=r.colorText,c=r.boxShadow,_=r.colorIcon;return{L7EditorControl:(0,C.iv)(_a||(_a=F()([` + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 2px; + width: 28px; + height: 28px; + padding: 0; + text-align: center; + background: `,`; + box-shadow: `,` !important; + border-width: 0; + color: `,`; + outline: 0; + cursor: pointer; + &:hover { + background: `,`; + svg { + color: `,`; + } + } + `])),a,c,_,a,u),l7EditorIcon:(0,C.iv)(fa||(fa=F()([` + font-size: 16px; + border: none; + cursor: pointer; + color: `,`; + `])),_),zoom:(0,C.iv)(ha||(ha=F()([` + .l7-button-control { + color: `,`; + font-size: 14px; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + } + .l7-button-control:first-child { + border-bottom: 1px solid `,`; + } + `])),s,a,l,s,u,l),scalesControl:(0,C.iv)(va||(va=F()([` + .l7-control-scale-line { + color: `,`; + background: `,` !important; + border-color: `,`; + } + `])),s,a,l),mouseLocatio:(0,C.iv)(ma||(ma=F()([` + color: `,` !important; + background: `,` !important; + border-color: `,`; + `])),s,a,l),fullScreen:(0,C.iv)(ga||(ga=F()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),s,a,l,s,u)}},kt=go,xo=function(){var n=kt(),i=(0,H.SS)(),r=i.bboxAutoFit,a=(0,ae.$G)(),l=a.t;return(0,e.jsx)(se.br,{position:"bottomright",children:(0,e.jsx)(de.Z,{title:l("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:n.L7EditorControl,onClick:function(){r()},children:(0,e.jsx)(Fe,{type:"icon-suofang",className:n.l7EditorIcon})})})})},xa,ya,yo=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorIcon,u=r.colorText;return{clear:(0,C.iv)(xa||(xa=F()([` + width: 30px; + height: 30px; + line-height: 41px; + text-align: center; + border-radius: 2px; + background-color: `,`; + box-shadow: `,` !important; + cursor: pointer; + color: `,`; + &:hover { + color: `,`; + background: `,`; + } + `])),a,l,s,u,a),clearSvg:(0,C.iv)(ya||(ya=F()([` + font-size: 24px; + `])))}},bo=yo,Co=function(){var n=bo(),i=(0,H.SS)(),r=i.saveEditorText,a=(0,ae.$G)(),l=a.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(se.br,{position:"topright",children:(0,e.jsx)(Vt.Z,{title:l("clear_control.index.queRenQingKongSuo"),onConfirm:function(){r((0,$e.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(de.Z,{title:l("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:n.clear,id:"l7-editor-clear",children:(0,e.jsx)(Fe,{type:"icon-qingkong",className:n.clearSvg})})})})})})},So=o(26568),ba,To=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorder,u=r.colorIcon,c=r.colorText;return{l7DrawControl:(0,C.iv)(ba||(ba=F()([` + .l7-draw-control { + display: flex; + flex-direction: column; + align-items: center; + margin-right: 0 !important; + box-shadow: `,` !important; + .l7-draw-control__btn { + color: `,`; + background-color: `,`; + border-right: none; + border-bottom: 1px solid `,`; + &:hover { + color: `,`; + } + } + } + `])),l,u,a,s,c)}},jo=To,Eo=function(){var n=Wn(),i=(0,se.$r)(),r=jo(),a=(0,v.useState)(null),l=d()(a,2),s=l[0],u=l[1],c=(0,H.SS)(),_=c.setIsDraw,y=c.resetFeatures,h=c.features,m=c.revertCoord,S=(0,H.Og)(),L=S.layerColor,T=S.showDrawDistance,w=S.showDrawArea,x=(0,v.useMemo)(function(){return(0,dt.Z)(h.find(function(j){return j.properties[z.AQ.IsEdit]}))},[h]);(0,v.useEffect)(function(){var j={distanceOptions:T?{}:void 0,areaOptions:w?{}:void 0},b;if(i){var E;b=new it.DrawControl(i,{position:"topleft",drawConfig:{point:!0,line:j,polygon:j,rect:j,circle:j},commonDrawOptions:{maxCount:1,style:(0,be.C2)(L),helper:n}}),u(b),i.addControl(b),b.on(it.ControlEvent.DrawChange,function(g){_(!!g)});var D=document.querySelector(".l7-draw-control");D.style.marginTop=0,(E=document.querySelector("#l7-draw-content"))===null||E===void 0||E.appendChild(D)}return function(){b&&i.removeControl(b)}},[i,L,T,w]);var A=(0,v.useCallback)(function(j,b){b.properties=gt()({},z.AQ.DrawType,j),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var E=m([b]);y([].concat(Me()(h),Me()(E)))},[s,m,y,h]),O=(0,v.useCallback)(function(j,b){var E=b.properties[z.AQ.Index],D=Me()(h);D[E].properties[z.AQ.IsEdit]=!1,D[E].geometry=b.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var g=m(D);y(Me()(g))},[h,s,m,y]);return(0,v.useEffect)(function(){var j=["point","line","polygon","rect","circle"],b=(0,So.Z)(j.map(function(E){return[E,{onAdd:function(g){return A(E,g)},onEdit:function(g){return O(E,g)}}]}));return j.forEach(function(E){var D=s==null?void 0:s.getTypeDraw(E);D==null||D.on(it.DrawEvent.Add,b[E].onAdd),D==null||D.on(it.DrawEvent.Edit,b[E].onEdit)}),function(){j.forEach(function(E){var D=s==null?void 0:s.getTypeDraw(E);D==null||D.off(it.DrawEvent.Add,b[E].onAdd),D==null||D.off(it.DrawEvent.Edit,b[E].onEdit)})}},[s,A]),(0,v.useEffect)(function(){if(x&&s){var j,b=(j=x.properties)===null||j===void 0?void 0:j[z.AQ.DrawType];x.properties.isActive=!0,s.setActiveType(b);var E=s.getTypeDraw(b);E==null||E.setData([x])}},[x,s]),(0,e.jsx)(se.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:r.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},Do=Eo,Oo=o(154),Ca,Po=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.colorIcon,s=r.colorText;return{l7ExportImg:(0,C.iv)(Ca||(Ca=F()([` + background: `,`; + color: `,`; + svg { + fill: `,` !important; + } + + :hover { + background: `,` !important; + svg { + color: `,` !important; + fill: `,` !important; + } + } + `])),a,l,l,a,s,s)}},Lo=Po,Ao=function(){var n=Lo(),i=(0,v.useState)(""),r=d()(i,2),a=r[0],l=r[1],s=(0,v.useState)(!1),u=d()(s,2),c=u[0],_=u[1],y=(0,ae.$G)(),h=y.t,m=function(w){_(!0),l(w)},S=function(){_(!1),l("")},L=function(){_(!1),(0,be.tg)(a),l("")};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(se.L6,{onExport:m,className:n.l7ExportImg,imageType:"jpeg",position:"bottomright"}),(0,e.jsx)(Tt.Z,{title:h("export-img-control_title"),open:c,okText:h("btn.download_btn.xiaZai"),onOk:L,onCancel:S,children:(0,e.jsx)(Oo.Z,{src:a})})]})},wo=o(78730),Zo=o(85752),pn=o(22840),Fo=o(84135),Mo=o(7741),Io=o(4639),Bo=function(n){var i=n.name,r=n.index,a=n.form,l=(0,H.L0)(),s=l.setFilters,u=(0,H.SS)(),c=u.dataSource,_=(0,ae.$G)(),y=_.t,h=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:y("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(ee.Z.Item,{name:[i,"operator"],children:(0,e.jsx)(ye.Z,{style:{width:"100px",marginRight:"8px"},placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:h,onChange:function(){var S=(0,dt.Z)(a.getFieldValue("filterFromList"));S.forEach(function(L,T){r===T&&(L.value=void 0)}),a.setFieldValue("filterFromList",S),s(S.map(function(L){var T=JSON.parse(L.field),w=T.field,x=T.type;return p()(p()({},L),{},{field:w,type:x})}))}})}),(0,e.jsx)(ee.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(S,L){return S.operator===L.operator},children:function(S){var L,T,w,x=S.getFieldsValue,A=x(),O=A.filterFromList,j=(L=JSON.parse(O[r].field))===null||L===void 0?void 0:L.field,b=c.find(function(M){return(M==null?void 0:M.field)===j});if(O[r].operator==="BETWEEN"){var E,D,g,U;return(0,e.jsxs)("div",{children:[(0,e.jsx)(ee.Z.Item,{name:[i,"min"],style:{width:"70px"},children:(0,e.jsx)(Mt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(E=b==null?void 0:b.min)!==null&&E!==void 0?E:0,max:(D=b==null?void 0:b.max)!==null&&D!==void 0?D:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(ee.Z.Item,{name:[i,"max"],style:{width:"70px"},children:(0,e.jsx)(Mt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(g=b==null?void 0:b.min)!==null&&g!==void 0?g:0,max:(U=b==null?void 0:b.max)!==null&&U!==void 0?U:0})})]})}return(0,e.jsx)(ee.Z.Item,{name:[i,"value"],children:(0,e.jsx)(Mt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(T=b==null?void 0:b.min)!==null&&T!==void 0?T:0,max:(w=b==null?void 0:b.max)!==null&&w!==void 0?w:0})})}})]})},ko=Bo,Ro=o(66603),Jo=o(86348),No=o(93274),Go=function(n){var i=n.name,r=n.index,a=n.form,l=(0,No.Z)(),s=l.setFilters,u=(0,Jo.Z)(),c=u.dataSource,_=(0,ae.$G)(),y=_.t,h=[{label:y("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:y("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:y("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:y("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(ee.Z.Item,{name:[i,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(ye.Z,{placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:h,onChange:function(){var S=(0,dt.Z)(a.getFieldValue("filterFromList"));S.forEach(function(L,T){r===T&&(L.value=void 0)}),a.setFieldValue("filterFromList",S),s(S.map(function(L){var T=JSON.parse(L.field),w=T.field,x=T.type;return p()(p()({},L),{},{field:w,type:x})}))}})}),(0,e.jsx)(ee.Z.Item,{shouldUpdate:function(S,L){return S.operator!==L.operator},style:{width:150,margin:0},children:function(S){var L,T,w=S.getFieldsValue,x=w(),A=x.filterFromList,O=(L=JSON.parse(A[r].field))===null||L===void 0?void 0:L.field,j=c.find(function(E){return(E==null?void 0:E.field)===O}),b=A[r].operator;return b==="LIKE"||b==="NOT_LIKE"?(0,e.jsx)(ee.Z.Item,{name:[i,"value"],children:(0,e.jsx)(ot.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(ee.Z.Item,{name:[i,"value"],children:(0,e.jsx)(ye.Z,{placeholder:y("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((T=(0,Ro.Z)(j==null?void 0:j.value))!==null&&T!==void 0?T:[]).filter(function(E){return E!=="undefined"}).map(function(E){return(0,e.jsx)(ye.Z.Option,{value:E,children:(0,e.jsx)(de.Z,{title:E,children:E})},E)})})})}})]})},zo=Go,Sa,Ta,Wo=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow;return{l7FilterPanel:(0,C.iv)(Sa||(Sa=F()([` + position: relative; + `]))),l7Filter:(0,C.iv)(Ta||(Ta=F()([` + display: flex; + background: `,`; + padding: 16px; + margin-right: 8px; + position: absolute; + right: 35px; + bottom: 0; + box-shadow: `,` !important; + .ant-form-item { + margin-bottom: 0; + } + .ant-btn { + margin-left: px; + } + `])),a,l)}},Uo=Wo,_n=ye.Z.Option,Ko=function(){var n=(0,H.SS)(),i=n.dataSource,r=(0,H.L0)(),a=r.setFilters,l=r.filters,s=(0,v.useState)(!1),u=d()(s,2),c=u[0],_=u[1],y=(0,ae.$G)(),h=y.t,m=ee.Z.useForm(),S=d()(m,1),L=S[0],T=Uo(),w=kt(),x=(0,v.useMemo)(function(){return!i.length},[i]),A=function(b,E){if((0,Qt.Z)(E.filterFromList)){a([]);return}var D=E.filterFromList.filter(function(g){return g}).map(function(g){var U=g.logic,M=g.operator;if(g.field){var k=JSON.parse(g.field||""),P=k.field,W=k.type;return g.operator==="BETWEEN"&&g.min&&g.max?{logic:U,field:P,type:W,operator:M,value:[g.min,g.max]}:(g.operator==="IN"||g.operator==="NO_IN")&&g.value?p()(p()({},g),{},{field:P,type:W,value:g.value.length?g.value:void 0}):p()(p()({},g),{},{field:P,type:W})}else return p()(p()({},g),{},{field:void 0,type:void 0})});a(D)},O=(0,v.useMemo)(function(){return l.filter(function(j){return!Un(j)}).find(function(j){return j})},[l]);return(0,e.jsxs)(se.br,{position:"bottomright",className:T.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:T.l7Filter,style:{display:c?"block":"none"},children:(0,e.jsx)(ee.Z,{style:{width:"100%"},form:L,onValuesChange:(0,Io.Z)(A,500),children:(0,e.jsx)(ee.Z.List,{name:"filterFromList",children:function(b,E){var D=E.add,g=E.remove;return(0,e.jsxs)(e.Fragment,{children:[b.map(function(U,M){var k,P,W=U.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(ee.Z.Item,{name:[W,"logic"],initialValue:"and",children:(0,e.jsxs)(ye.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(_n,{value:"and",children:h("filter_form_list_control.index.bingQie")}),(0,e.jsx)(_n,{value:"or",children:h("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(ee.Z.Item,{name:[W,"field"],initialValue:JSON.stringify({field:(k=i[0])===null||k===void 0?void 0:k.field,type:(P=i[0])===null||P===void 0?void 0:P.type}),children:(0,e.jsx)(ye.Z,{style:{width:130,marginRight:"8px"},placeholder:h("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var Z=(0,dt.Z)(L.getFieldValue("filterFromList"));Z.forEach(function(R,V){M===V&&(R.operator=void 0,R.value=void 0)}),L.setFieldValue("filterFromList",Z),a(Z.map(function(R){var V=JSON.parse(R.field),te=V.field,X=V.type;return p()(p()({},R),{},{field:te,type:X})}))},children:i.map(function(I){var Z=I.field,R=I.type;return(0,e.jsxs)(_n,{value:JSON.stringify({field:Z,type:R}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:R==="number"?(0,e.jsx)(wo.Z,{}):(0,e.jsx)(Zo.Z,{})}),(0,e.jsx)(de.Z,{title:Z,children:Z})]},Z)})})}),(0,e.jsx)(ee.Z.Item,{shouldUpdate:function(Z,R){return Z.field===R.field},style:{margin:0},children:function(Z){var R=Z.getFieldsValue,V=R(),te=V.filterFromList;if(te[M].field){var X=JSON.parse(te[M].field),_e=X.type;return _e==="number"?(0,e.jsx)(ko,{name:W,index:M,form:L}):(0,e.jsx)(zo,{name:W,index:M,form:L})}}}),(0,e.jsx)(B.ZP,{type:"text",onClick:function(){g(W),a(L.getFieldValue("filterFromList"))},icon:(0,e.jsx)(on.Z,{})})]},W)}),(0,e.jsx)(B.ZP,{type:"dashed",disabled:x,onClick:function(){D()},block:!0,icon:(0,e.jsx)(pn.Z,{}),style:{width:500},children:h("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(de.Z,{title:h("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:w.L7EditorControl,onClick:function(){_(!c)},children:O?(0,e.jsx)(Mo.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Fo.Z,{style:{lineHeight:"30px"}})})})]})},Vo=Ko,Ho=ot.Z.TextArea,Qo=function(){var n=(0,se.$r)(),i=kt(),r=(0,ae.$G)(),a=r.t,l=(0,v.useState)(!1),s=d()(l,2),u=s[0],c=s[1],_=(0,v.useState)(""),y=d()(_,2),h=y[0],m=y[1],S=function(){c(!0);var x={center:[n.getCenter().lng,n.getCenter().lat],zoom:n.getZoom(),pitch:Number(n.getPitch().toFixed(6)),rotation:n.getRotation()};m(JSON.stringify(x,null,2))},L=function(){var x=new(Jn())("#l7-option-copy_btn",{text:function(){return h}});x.on("success",function(){c(!1),et.ZP.success(a("layer_contextmenu_popup.fuZhiChengGong")),x.destroy()})},T=function(){c(!1)};return(0,e.jsxs)(se.br,{position:"bottomleft",children:[(0,e.jsx)(de.Z,{placement:"left",overlay:a("l7Options.huoqucanshu"),children:(0,e.jsx)("button",{className:i.L7EditorControl,id:"text-layer-control",onClick:S,children:(0,e.jsx)(Fe,{type:"icon-xitongzhuangtai"})})}),(0,e.jsx)(Tt.Z,{title:a("l7Options.dangqiancanshu"),open:u,onCancel:T,width:800,destroyOnClose:!0,footer:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(B.ZP,{onClick:T,children:a("btn.setting_btn.guanBi")}),(0,e.jsx)(B.ZP,{type:"primary",id:"l7-option-copy_btn",onClick:L,children:a("layer_contextmenu_popup.fuZhi")})]}),children:(0,e.jsx)(Ho,{rows:10,value:h,onChange:function(x){m(x.target.value)}})})]})},$o=o(61611),ja,Xo=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.boxShadow;return{l7ButtonControl:(0,C.iv)(ja||(ja=F()([` + min-width: auto; + width: 28px; + height: 28px; + border: none; + box-shadow: `,`; + cursor: pointer; + border-radius: 2px; + .ant-color-picker-color-block { + width: 22px; + height: 22px; + border-radius: 2px; + } + `])),a)}},Yo=Xo,qo=function(){var n=(0,H.Og)(),i=n.layerColor,r=n.setLayerColor,a=(0,ae.$G)(),l=a.t,s=Yo();return(0,e.jsx)(se.br,{position:"bottomright",children:(0,e.jsx)(de.Z,{title:l("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)($o.Z,{value:i,className:xe()([s.l7ButtonControl]),onChange:function(c,_){r(_)},format:"rgb",presets:[{label:l("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},ei=qo,Ea,Da,Oa,ti=function(){return{locationSearch:(0,C.iv)(Ea||(Ea=F()([` + min-width: 200px; + `]))),locationSearchName:(0,C.iv)(Da||(Da=F()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + `]))),locationSearchTip:(0,C.iv)(Oa||(Oa=F()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #818181; + font-size: 12px; + `])))}},ni=ti;function ai(f,n){return"".concat(f,"?").concat(Object.entries(n).map(function(i){var r=d()(i,2),a=r[0],l=r[1];return"".concat(a,"=").concat(window.encodeURIComponent(String(l)))}).join("&"))}var ri=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],oi=ye.Z.Option,Pa=function(n){var i=n.searchParams,r=n.showDistrict,a=n.showAddress,l=n.onSearchFinish,s=n.onChange,u=Tn()(n,ri),c=ni(),_=(0,v.useState)([]),y=d()(_,2),h=y[0],m=y[1],S=(0,ae.$G)(),L=S.t;(0,v.useEffect)(function(){l==null||l(h)},[l,h]);var T=(0,dn.Z)(function(){var A=qe()(je()().mark(function O(j){var b,E,D,g;return je()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(j){M.next=3;break}return m([]),M.abrupt("return");case 3:return D=ai("https://restapi.amap.com/v3/assistant/inputtips",p()(p()({},i),{},{keywords:[].concat(Me()(((b=i.keywords)!==null&&b!==void 0?b:"").split("|")),[j]).filter(function(k){return!!k}).join("|")})),M.next=6,fetch(D);case 6:return M.next=8,M.sent.json();case 8:g=M.sent,m(((E=g==null?void 0:g.tips)!==null&&E!==void 0?E:[]).filter(function(k){return k.location&&k.location.length}).map(function(k){var P=k.location.split(","),W=d()(P,2),I=W[0],Z=W[1];return k.longitude=+I,k.latitude=+Z,k}));case 10:case"end":return M.stop()}},O)}));return function(O){return A.apply(this,arguments)}}(),{wait:1e3}),w=T.run,x=(0,v.useCallback)(function(A){var O=A&&h.find(function(j){return j.name===A});s==null||s(A||void 0,O||void 0)},[s,h]);return(0,e.jsx)(ye.Z,p()(p()({className:c.locationSearch,onSearch:w,onChange:x,placeholder:L("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:h.map(function(A){var O="".concat(r?A.district:"").concat(a?A.address:"");return(0,e.jsxs)(oi,{value:A.name,label:A.name,children:[(0,e.jsx)("div",{title:A.name,className:c.locationSearchName,children:A.name}),O&&(0,e.jsx)("div",{title:O,className:c.locationSearchTip,children:O})]},A.id)})}))};Pa.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var ii=v.memo(function(){var f=(0,se.$r)(),n=(0,v.useState)(),i=d()(n,2),r=i[0],a=i[1],l=(0,v.useState)(""),s=d()(l,2),u=s[0],c=s[1],_=(0,H.SS)(),y=_.features,h=_.resetFeatures,m=(0,H.Og)(),S=m.layerColor,L=(0,v.useState)(),T=d()(L,2),w=T[0],x=T[1],A=(0,ae.$G)(),O=A.t,j=(0,v.useCallback)(function(){if(f){var b=f.getCenter(),E=b.lng,D=b.lat;c("".concat(E,",").concat(D))}},[f]);return(0,v.useEffect)(function(){return j(),f==null||f.on("moveend",j),f==null||f.on("zoomend",j),function(){f==null||f.off("moveend",j),f==null||f.off("zoomend",j)}},[f,j]),(0,Ht.Z)(qe()(je()().mark(function b(){var E;return je()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return E=sn()(S).rgb().object(),g.t0=x,g.next=4,un(E,{x:100,y:100});case 4:g.t1=g.sent,(0,g.t0)(g.t1);case 6:case"end":return g.stop()}},b)})),[S]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(se.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(Pa,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:r==null?void 0:r.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(E,D){if(D){var g=f.getZoom();f.setZoomAndCenter(g>16?g:16,[D.longitude,D.latitude])}a(D)}})})})})})}),r&&(0,e.jsx)(se.Jx,{lngLat:{lng:r.longitude,lat:r.latitude},children:(0,e.jsx)(Ke.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(B.ZP,{type:"primary",onClick:function(){var E=r.longitude,D=r.latitude;h([].concat(Me()(y),[(0,Oe.point)([E,D],r)])),a(void 0)},children:O("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(B.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){a(void 0)},children:O("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:w==null?void 0:w.src})})})]})}),li=ii,La,Aa,si=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorText,l=r.colorBgContainer,s=r.boxShadow,u=r.colorTextDescription;return{mapAdministrative:(0,C.iv)(La||(La=F()([` + background: `,`; + color: `,`; + box-shadow: `,`; + `])),l,a,s),regionLocation:(0,C.iv)(Aa||(Aa=F()([` + background: `,` !important; + color: `,` !important; + padding: 2px 4px !important; + `])),l,u)}},ui=si,ci=function(){var n=ui();return(0,e.jsx)(se.br,{className:xe()(["map-administrative-control",n.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(se.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:n.regionLocation})})},wa,Za,di=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorTextDescription,l=r.colorBgContainer,s=r.colorPrimary,u=r.colorBorder,c=r.colorText,_=r.colorBgElevated,y=r.colorFillSecondary;return{mapTheme:(0,C.iv)(wa||(wa=F()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),a,l,u,a,c),mapThemePopper:(0,C.iv)(Za||(Za=F()([` + *::-webkit-scrollbar { + width: 8px; + background-color: `,`; + } + *::-webkit-scrollbar-thumb { + background-color: `,`; + border-radius: 10px; + } + .l7-popper-content { + color: `,`; + background: `,`; + + .l7-select-control-item:hover { + box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), + 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); + } + + .l7-select-control-item { + border: 1px solid `,`; + border-radius: 4px; + } + + .l7-select-control-item-active { + border: 1px solid `,`; + } + } + + &.l7-popper-right .l7-popper-arrow\xA0 { + border-right-color: `,`; + } + + &.l7-popper-left .l7-popper-arrow\xA0 { + border-left-color: `,`; + } + + &.l7-popper-bottom .l7-popper-arrow\xA0 { + border-bottom-color: `,`; + } + + &.l7-popper-top .l7-popper-arrow\xA0 { + border-top-color: `,`; + } + `])),_,y,c,l,u,s,_,_,_,_)}},pi=di,_i=function(){var n=(0,H.Og)(),i=n.setMapOptions,r=pi();return(0,e.jsx)(se.w3,{className:xe()([r.mapTheme,"l7-editor-mapTheme"]),popperClassName:r.mapThemePopper,position:"bottomright",onSelectChange:function(l){i(function(s){return p()(p()({},s),{},{style:l})})}})},fi=_i,Fa=o(59554),hi=o(51383),vi=o(22251),mi=o(75995),Ma,Ia,Ba,ka,Ra,Ja,Na,Ga,za,gi=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgElevated,l=r.colorBgContainer,s=r.colorText,u=r.colorIcon,c=r.boxShadow;return{mapTab:(0,C.iv)(Ma||(Ma=F()([` + background-color: `,`; + border-radius: 4px; + display: flex; + align-items: center; + box-shadow: `,`; + &:hover .add-map { + display: block; + } + .add-map { + display: none; + text-align: center; + &:hover { + display: block; + color: #1677ff; + } + } + `])),a,c),hideOfficeLayerBtn:(0,C.iv)(Ia||(Ia=F()([` + height: 127px; + width: 28px; + display: flex; + align-items: center; + justify-content: center; + background: `,`; + border-radius: 4px; + cursor: pointer; + font-size: 16px; + z-index: 2; + .anticon { + transition: all 0.2s; + } + color: `,`; + `])),a,u),amapInfo:(0,C.iv)(Ba||(Ba=F()([` + display: flex; + align-items: center; + padding: 10px; + cursor: pointer; + `]))),amapInfoItemImage:(0,C.iv)(ka||(ka=F()([` + width: 142px; + height: 80px; + `]))),amapInfoItem:(0,C.iv)(Ra||(Ra=F()([` + text-align: center; + margin-left: 10px; + object-fit: cover; + &:first-child { + margin-left: 0px; + } + box-sizing: border-box; + border-radius: 4px; + position: relative; + + &: hover .item-clear { + display: block; + } + + &: hover .item-edit { + display: block; + } + + .item-edit { + position: absolute; + right: 41px; + bottom: 30px; + display: none; + width: 25px; + height: 25px; + line-height: 25px; + text-align: center; + background: #fff; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: #1677ff; + } + } + + .item-clear { + position: absolute; + right: 8px; + bottom: 30px; + display: none; + width: 25px; + height: 25px; + line-height: 25px; + text-align: center; + background: #fff; + border-radius: 4px; + cursor: pointer; + + &:hover { + color: #1677ff; + } + } + `]))),amapInfoItemTitle:(0,C.iv)(Ja||(Ja=F()([` + color: `,`; + `])),s),itemBorder:(0,C.iv)(Na||(Na=F()([` + border: 2px solid `,`; + `])),l),itemBorderActive:(0,C.iv)(Ga||(Ga=F()([` + border: solid 2px #1677ff; + `]))),addMapIcon:(0,C.iv)(za||(za=F()([` + border: dashed 1px rgb(217, 217, 217); + height: 103px; + width: 142px; + object-fit: cover; + border-radius: 4px; + line-height: 103px; + margin-left: 10px; + cursor: pointer; + &:hover { + border: dashed 1px #1677ff; + } + `])))}},xi=gi,Wa={labelCol:{span:4},wrapperCol:{span:16}},Ua={labelCol:{span:6},wrapperCol:{span:15}};function yi(){var f=ee.Z.useForm(),n=d()(f,1),i=n[0],r=xi(),a=(0,H.Og)(),l=a.layerType,s=a.setLayerType,u=a.customTiles,c=a.setCustomTiles,_=a.locale,y=(0,ae.$G)(),h=y.t,m=(0,v.useState)(l.length?l[0]:z.dY.VectorMap),S=d()(m,2),L=S[0],T=S[1],w=(0,v.useState)(!1),x=d()(w,2),A=x[0],O=x[1],j=(0,v.useState)(!1),b=d()(j,2),E=b[0],D=b[1],g=(0,v.useState)(-1),U=d()(g,2),M=U[0],k=U[1],P=(0,v.useState)(null),W=d()(P,2),I=W[0],Z=W[1],R=(0,v.useState)([]),V=d()(R,2),te=V[0],X=V[1],_e=(0,fe.Z)("hideOfficeLayer",{defaultValue:!0}),Se=d()(_e,2),Ie=Se[0],We=Se[1],pt=function(){i.submit()},Qe=[{id:z.dY.VectorMap,title:h("official_layer_control.index.shiLiangDiTu"),image:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qdFDSbvIalgAAAAAAAAAAAAADmJ7AQ/original",layers:[]}],Ue=(0,v.useMemo)(function(){return u.length?[].concat(Qe,Me()(u)):Qe},[u,h]),ht=function(G){var J=new FileReader;return J.readAsDataURL(G),J.onload=function(){var K=J.result;Z(K)},!1},Rt=function(G){T(G.id),s(G.id===z.dY.VectorMap?[]:[G.id])},$t=function(G){if(E){var J=(0,dt.Z)(u),K=Array.isArray(G.img)?G.img[0].url:"".concat(I);J[M-2]={id:G.name,image:K,title:G.name,layers:G.urls},c(J),D(!1),k(-1)}else c(function(Te){return[].concat(Me()(Te),[{id:G.name,image:"".concat(I),title:G.name,layers:G.urls}])});D(!1),X([]),O(!1)},Xt=function(){O(!1),D(!1),X([]),k(-1),i.resetFields()},fn=function(G,J){G==null||G.stopPropagation();var K=u.filter(function(Te){return Te.id!==J.id});J.id===L&&(T(z.dY.VectorMap),s([])),c(K)},Jt=function(G,J){var K=J.toLowerCase(),Te=[];if(E){var Ce=(0,dt.Z)(Ue);Ce.splice(M,1),Te=Me()(Ce)}else Te=Ue;var Ze=Te.every(function(vt){return vt.title.toLowerCase()!==K});return Ze?J&&J.trim()===""?Promise.reject(h("official_layer_control.index.kongGe")):Promise.resolve():Promise.reject(h("official_layer_control.index.mingChengChongFu"))},Nt=function(G,J){var K=Promise.reject(h("official_layer_control.index.shangchuan"));return J.fileList?J.fileList.length?Promise.resolve():K:J.length?Promise.resolve():K},Lt=function(G){var J=Me()(G.fileList);J=J.slice(-2),J=J.map(function(K){return K.response&&(K.url=K.response.url),K}),X(J)},Yt=(0,v.useMemo)(function(){if(l.length){var he=Ue.find(function(G){return G.id===l[0]});return he==null?void 0:he.layers.map(function(G){return(0,e.jsx)(se.YY,{zIndex:1,id:he.id===z.dY.GoogleSatellite&&G===z.ay?"googleTileMap":void 0,source:{data:G,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}})})}else return null},[l,Ue]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(se.br,{position:"bottomleft",children:[(0,e.jsxs)("div",{className:r.mapTab,id:"l7-editor-aMap",children:[(0,e.jsx)("div",{className:r.hideOfficeLayerBtn,onClick:function(){We(!Ie)},children:(0,e.jsx)(Fa.Z,{style:{transform:Ie?"rotate(-180deg)":void 0}})}),Ie&&(0,e.jsxs)("div",{className:r.amapInfo,children:[Ue.map(function(he,G){return(0,e.jsxs)("div",{className:xe()([r.amapInfoItem,he.id===L?r.itemBorderActive:r.itemBorder,G===Ue.length-1?"item-hover":""]),onClick:function(){Rt(he)},children:[G>1&&(0,e.jsx)(Vt.Z,{title:h("official_layer_control.index.shanChuDiTu"),onConfirm:function(K){return fn(K,he)},onCancel:function(K){K==null||K.stopPropagation()},children:(0,e.jsx)("div",{className:"item-clear",onClick:function(K){K.stopPropagation()},children:(0,e.jsx)(on.Z,{})})}),G>1&&(0,e.jsx)("div",{className:"item-edit",onClick:function(K){k(G),K.stopPropagation(),D(!0),O(!0),X([{uid:"-1",name:"".concat(he.title),status:"done",url:he.image}]),i.setFieldsValue({name:he.title,urls:he.layers,img:[{uid:"-1",name:"".concat(he.title),status:"done",url:he.image}]})},children:(0,e.jsx)(hi.Z,{})}),(0,e.jsx)("img",{src:he.image,alt:"",className:r.amapInfoItemImage}),(0,e.jsx)("div",{className:r.amapInfoItemTitle,style:{marginTop:0},children:he.title})]},he.id)}),(0,e.jsx)("div",{className:"add-map",children:(0,e.jsx)("div",{onClick:function(){O(!0),i.resetFields()},children:(0,e.jsx)("div",{className:r.addMapIcon,children:(0,e.jsx)(pn.Z,{})})})})]})]}),(0,e.jsx)(Tt.Z,{title:h("official_layer_control.index.tianJiaDitu"),open:A,destroyOnClose:!0,onOk:pt,onCancel:Xt,width:600,children:(0,e.jsxs)(ee.Z,{form:i,initialValues:{urls:[""]},onFinish:$t,children:[(0,e.jsx)(ee.Z.Item,p()(p()({},_==="zh-CN"?Wa:Ua),{},{name:"name",label:h("official_layer_control.index.name"),rules:[{required:!0},{validator:Jt}],children:(0,e.jsx)(ot.Z,{placeholder:h("official_layer_control.index.addName"),style:{width:390}})})),(0,e.jsx)(ee.Z.Item,p()(p()({},_==="zh-CN"?Wa:Ua),{},{name:"img",label:h("official_layer_control.index.shiLiTuPian"),rules:[{required:!0,validator:Nt}],children:(0,e.jsx)(vn.Z,{beforeUpload:ht,accept:".png,.jpg",maxCount:1,onChange:Lt,fileList:te,onRemove:function(){X([])},children:(0,e.jsx)(B.ZP,{icon:(0,e.jsx)(vi.Z,{}),children:h("import_btn.index.shangChuan")})})})),(0,e.jsx)(ee.Z.List,{name:"urls",children:function(G,J){var K=J.add,Te=J.remove;return(0,e.jsxs)(e.Fragment,{children:[G.map(function(Ce,Ze){return(0,e.jsxs)(Ee.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(ee.Z.Item,p()(p()({},Ce),{},{label:Ze===0?h("official_layer_control.index.tuCengDiZhi"):"",rules:[{required:!0,message:h("official_layer_control.index.qiShuRutuCengDiZhi")},{validator:Jt}],style:{marginLeft:_==="zh-CN"?Ze===0?10:90:Ze===0?18:134},children:(0,e.jsx)(ot.Z,{placeholder:z.ay,style:{width:390}})})),G.length>1?(0,e.jsx)(mi.Z,{onClick:function(){return Te(Ce.name)}}):null]},Ce.key)}),(0,e.jsx)(ee.Z.Item,{style:{textAlign:"center"},children:(0,e.jsx)(B.ZP,{type:"dashed",onClick:function(){return K()},icon:(0,e.jsx)(pn.Z,{}),style:{width:390,marginLeft:_==="zh-CN"?20:104},children:h("official_layer_control.index.tinJiaWaPian")})})]})}})]})})]}),(0,e.jsx)("div",{children:Yt})]})}var Ka,bi=function(){return{textLayerForm:(0,C.iv)(Ka||(Ka=F()([` + .ant-form-item { + margin-bottom: 12px !important; + } + `])))}},Ci=bi,Si=function(){var n=kt(),i=Ci(),r=(0,H.Og)(),a=r.showTextLayer,l=r.setShowTextLayer,s=r.textLayerFields,u=r.setTextLayerFields,c=(0,H.SS)(),_=c.features,y=(0,v.useState)([]),h=d()(y,2),m=h[0],S=h[1],L=(0,ae.$G)(),T=L.t,w=function(){var A=new Set;_.forEach(function(O){var j=O.properties;j&&Object.keys(j).forEach(function(b){A.add(b)})}),S(Array.from(A))};return(0,e.jsx)(se.br,{position:"bottomleft",children:(0,e.jsx)(Ke.Z,{title:T("text-layer-control_wenBenBiaoZhu"),overlayStyle:{width:300},content:(0,e.jsxs)(ee.Z,{size:"small",className:i.textLayerForm,children:[(0,e.jsx)(ee.Z.Item,{label:T("text-layer-control_shiFouZhanShiTuCeng"),children:(0,e.jsx)(Kt.Z,{value:a,onChange:l})}),(0,e.jsx)(ee.Z.Item,{label:T("text-layer-control_zhanShiZiDuan"),children:(0,e.jsx)(ye.Z,{value:s,onChange:u,placeholder:T("text-layer-control_buXuan"),mode:"multiple",options:m.map(function(x){return{label:x,value:x}})})})]}),trigger:"click",onOpenChange:function(A){A&&w()},children:(0,e.jsx)(de.Z,{placement:"left",overlay:T("text-layer-control_wenBenTuCengPeiZhi"),children:(0,e.jsx)("button",{className:n.L7EditorControl,id:"text-layer-control",children:(0,e.jsx)(Fe,{type:"icon-wenbenkuang"})})})})})},Va={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0,textLayerControl:!0,exportImageControl:!0,L7MapOptionControl:!0},Ti=function(n){var i=n.mapControl,r=(0,H.Og)(),a=r.baseMap,l=kt(),s=(0,v.useState)(Va),u=d()(s,2),c=u[0],_=u[1];return(0,v.useEffect)(function(){_(p()(p()({},Va),i))},[i]),(0,e.jsxs)(e.Fragment,{children:[c.logoControl&&(0,e.jsx)(se.OB,{position:"leftbottom"}),c.scaleControl&&(0,e.jsx)(se.jf,{position:"leftbottom",className:l.scalesControl}),c.mouseLocationControl&&(0,e.jsx)(se.CB,{position:"leftbottom",className:l.mouseLocatio}),c.drawControl&&(0,e.jsx)(Do,{}),c.clearControl&&(0,e.jsx)(Co,{}),c.zoomControl&&(0,e.jsx)(se.Ly,{className:l.zoom,showZoom:!0,position:"rightbottom"}),c.mapAdministrativeControl&&(0,e.jsx)(ci,{}),c.administrativeSelectControl&&(0,e.jsx)(mo,{}),c.locationSearchControl&&(0,e.jsx)(li,{}),c.filterControl&&(0,e.jsx)(Vo,{}),a==="Gaode"&&c.officialLayerControl&&(0,e.jsx)(yi,{}),c.mapThemeControl&&(0,e.jsx)(fi,{}),c.geoLocateControl&&(0,e.jsx)(se.l_,{position:"topleft",className:l.fullScreen}),c.layerColorControl&&(0,e.jsx)(ei,{}),c.autoControl&&(0,e.jsx)(xo,{}),c.fullscreenControl&&(0,e.jsx)(se.ot,{position:"bottomright",className:l.fullScreen}),c.textLayerControl&&(0,e.jsx)(Si,{}),c.exportImageControl&&(0,e.jsx)(Ao,{}),c.L7MapOptionControl&&(0,e.jsx)(Qo,{})]})},ji=o(82334),Ha,Qa,$a,Xa,Ya,Ei=function(){var n=we.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorderSecondary,u=r.colorInfoHover,c=r.colorIcon;return{resizePanel:(0,C.iv)(Ha||(Ha=F()([` + width: 100%; + height: calc(100% - 50px); + display: flex; + position: relative; + `]))),resizePanelLeft:(0,C.iv)(Qa||(Qa=F()([` + position: absolute; + left: 0; + top: 0; + bottom: 0; + overflow: hidden; + `]))),resizePanelRight:(0,C.iv)($a||($a=F()([` + position: relative; + border-left: 1px solid `,`; + box-shadow: `,`; + `])),s,l),resizePanelDragLine:(0,C.iv)(Xa||(Xa=F()([` + transition: all 0.5s; + cursor: move !important; + z-index: 100; + + &:hover, + &:focus { + background-color: `,`; + } + `])),u),resizePanelToggleBtn:(0,C.iv)(Ya||(Ya=F()([` + height: 60px; + width: 20px; + display: flex; + align-items: center; + justify-content: center; + background: `,`; + position: absolute; + top: calc(50% - 30px); + left: -20px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + cursor: pointer; + z-index: 2; + .anticon { + transition: all 0.2s; + } + color: `,`; + `])),a,c)}},Di=Ei,Oi=function(n){var i,r=n.left,a=n.right,l=n.onFeatureChange,s=(0,H.Og)(),u=s.hideEditor,c=s.setHideEditor,_=s.rightPanelWidth,y=s.setRightWidth,h=(0,v.useState)(null),m=d()(h,2),S=m[0],L=m[1],T=d()(z.yc,2),w=T[0],x=T[1],A=(i=(0,En.Z)(S))!==null&&i!==void 0?i:{},O=A.width,j=O===void 0?0:O,b=(0,H.SS)(),E=b.features,D=Di(),g=function(k){var P,W=(P=S==null?void 0:S.getBoundingClientRect())!==null&&P!==void 0?P:{},I=W.left,Z=I===void 0?0:I,R=100*(1-(k.clientX-Z)/j);Rx&&(R=x),y(R)},U=(0,v.useMemo)(function(){return u?0:_},[u,_]);return(0,v.useEffect)(function(){l(E)},[E]),(0,e.jsxs)("div",{className:xe()([D.resizePanel,"l7-editor-content"]),ref:function(k){L(k)},children:[(0,e.jsx)("div",{className:xe()([D.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-U,"%")},children:r}),(0,e.jsxs)(ji.e,{enable:{left:!0},style:{marginLeft:"".concat(100-U,"%")},size:{width:"".concat(U,"%"),height:"100%"},minWidth:"".concat(w/100*j,"px"),maxWidth:"".concat(x/100*j,"px"),className:xe()([D.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:D.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(U,"%"),height:"100%"},onResize:g,children:[a,(0,e.jsx)("div",{className:D.resizePanelToggleBtn,onClick:function(){c(!u)},children:(0,e.jsx)(Fa.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},Pi=o(87430),Ji=o(8858),Ge=o(2574),Li=o(93904),Ai=o(8142),wi=o(64495),Zi=o(72402),qa=o.n(Zi),er,Fi=function(){return{l7Editor:(0,C.iv)(er||(er=F()([` + width: 100%; + height: 100%; + position: relative; + overflow: hidden; + `])))}},Mi=Fi,Ii=function(n){var i=n.onFeatureChange,r=(0,ae.$G)(),a=r.i18n,l=r.t,s=(0,H.Og)(),u=s.theme,c=s.mapOptions,_=s.setMapOptions,y=s.locale,h=Mi(),m=(0,H.SS)(),S=m.saveEditorText,L=m.bboxAutoFit,T=m.scene;(0,Ai.Z)(function(){_(u==="dark"?p()(p()({},c),{},{style:"dark"}):p()(p()({},c),{},{style:"normal"}))},[u]),(0,v.useEffect)(function(){a.changeLanguage(y)},[]);var w=(0,v.useMemo)(function(){var x;return(x=_t.find(function(A){return A.lang===y}))===null||x===void 0?void 0:x.antd},[y]);return(0,Ht.Z)(qe()(je()().mark(function x(){var A,O,j;return je()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,qa().getItem(z.Fe.EditorText);case 2:if(A=E.sent,A&&T&&!n.features)try{O=(0,Li.$)(JSON.parse(A)).filter(function(D){return D.message!=="Polygons and MultiPolygons should follow the right-hand rule"}),O.length>0?et.ZP.error(l("import_btn.file_upload.qingJianChaShuJu")):(j=JSON.parse(A).features,L(j))}catch(D){et.ZP.error(l("import_btn.file_upload.qingJianChaShuJu"))}else T&&n.features&&L();case 4:case"end":return E.stop()}},x)})),[T]),(0,Ht.Z)(qe()(je()().mark(function x(){var A;return je()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,qa().getItem(z.Fe.EditorText);case 2:A=j.sent,A&&!n.features&&S(A);case 4:case"end":return j.stop()}},x)})),[]),(0,e.jsx)(wi.ZP,{locale:w,theme:{algorithm:u==="dark"?we.Z.darkAlgorithm:we.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:xe()([h.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(Tr,{toolbar:n.toolbar}),(0,e.jsx)(Oi,{onFeatureChange:function(A){i&&i(A)},left:(0,e.jsxs)(Or,{children:[(0,e.jsx)(Ti,{mapControl:n.mapControl}),(0,e.jsx)($r,{}),(0,e.jsx)(no,{}),(0,e.jsx)(Kr,{})]}),right:(0,e.jsx)(co,{tabItems:n==null?void 0:n.tabItems,features:n==null?void 0:n.features})})]})})};Bt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var Bi=function(n){var i=(0,ae.$G)(),r=i.t,a=(0,v.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),l=(0,v.useMemo)(function(){return function(s){var u,c,_,y,h,m,S,L,T,w,x,A,O,j,b,E,D,g=s.set;g(Ge.EB,(u=n==null?void 0:n.baseMap)!==null&&u!==void 0?u:"Gaode"),g(Ge.dR,(c=n==null?void 0:n.primaryColor)!==null&&c!==void 0?c:z.K6),g(Ge.Do,(_=n==null?void 0:n.rightPanelWidth)!==null&&_!==void 0?_:40),g(Ge.aQ,(y=n==null?void 0:n.mapOption)!==null&&y!==void 0?y:{style:"normal",maxZoom:24}),g(Ge.E1,!(n!=null&&n.autoFitBounds)),g(Ge.xZ,(h=n==null?void 0:n.popupTrigger)!==null&&h!==void 0?h:"click"),g(Ge.Uv,(m=n==null?void 0:n.activeTab)!==null&&m!==void 0?m:"geojson"),g(Ge.DJ,(S=n==null?void 0:n.officialLayers)!==null&&S!==void 0?S:[]),g(Ge.bK,(L=n==null?void 0:n.hidePanel)!==null&&L!==void 0?L:!1),g(Ge.XG,(T=n==null?void 0:n.theme)!==null&&T!==void 0?T:"light"),g(Ge.PY,(w=n==null?void 0:n.coordConvert)!==null&&w!==void 0?w:"GCJ02"),g(Ge.GR,(x=n==null?void 0:n.locale)!==null&&x!==void 0?x:"zh-CN"),g(Ge._u,(A=n==null?void 0:n.wasmPath)!==null&&A!==void 0?A:"/"),g(Ge.CZ,(O=n==null?void 0:n.showTextLayer)!==null&&O!==void 0?O:!1),g(Ge.Pl,(j=n==null?void 0:n.textLayerFields)!==null&&j!==void 0?j:void 0),g(Ge.Yf,(b=n.showDrawDistance)!==null&&b!==void 0?b:!1),g(Ge.lG,(E=n.showDrawArea)!==null&&E!==void 0?E:!1),g(Ge.Z3,(D=n.customTiles)!==null&&D!==void 0?D:[])}},[n]);return a?(0,e.jsx)(Bt.Wh,{initializeState:l,children:(0,e.jsx)(Ii,p()({},n))}):(0,e.jsx)(Pi.ZP,{status:"404",title:r("pages.index.qingYongPCDuan")})}},2574:function(Le,ie,o){"use strict";o.d(ie,{CZ:function(){return Je},DJ:function(){return Fe},Do:function(){return De},E1:function(){return xe},EB:function(){return H},GR:function(){return Ve},LY:function(){return pe},PY:function(){return ye},Pl:function(){return Oe},Qn:function(){return le},Rl:function(){return Y},Uv:function(){return e},XG:function(){return Ae},Yf:function(){return v},Z3:function(){return st},_u:function(){return be},aD:function(){return ge},aQ:function(){return Ke},bK:function(){return ze},bo:function(){return Ee},dR:function(){return lt},lG:function(){return ae},tJ:function(){return fe},xZ:function(){return z},zl:function(){return Re}});var ue=o(72402),p=o.n(ue),N=o(95570),d=o(2185),q=function(Be){return function(me){var $=me.setSelf,ne=me.onSet,Q=localStorage.getItem(Be);Q&&$(JSON.parse(Q)),ne(function(re){re instanceof N.nY?localStorage.removeItem(Be):localStorage.setItem(Be,JSON.stringify(re))})}},ve=function(Be){return function(me){var $=me.setSelf,ne=me.onSet;p().getItem(Be).then(function(Q){Q&&$(Q)}),ne(function(Q){Q instanceof N.nY?p().removeItem(Be):p().setItem(Be,Q)})}},pe=(0,N.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),ge=(0,N.cn)({key:"isDraw",default:!1}),fe=(0,N.cn)({key:"savedText",default:""}),Y=(0,N.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),le=(0,N.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Ee=(0,N.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[ve(d.Fe.EditorText)]}),de=(0,N.cn)({key:"lnglatType"}),B=(0,N.cn)({key:"lnglatText",default:""}),De=(0,N.cn)({key:"rightPanelWidth",effects:[q(d.Fe.RightPanelWidth)]}),Ke=(0,N.cn)({key:"mapOptions",effects:[q(d.Fe.MapOptions)]}),lt=(0,N.cn)({key:"layerColor",effects:[q(d.Fe.LayerColor)]}),ze=(0,N.cn)({key:"hideEditor",default:!1,effects:[q(d.Fe.HideEditor)]}),xe=(0,N.cn)({key:"autoFitBounds",effects:[q(d.Fe.AutoFitBounds)]}),v=(0,N.cn)({key:"showDrawDistance",default:!1,effects:[q(d.Fe.showDrawDistance)]}),ae=(0,N.cn)({key:"showDrawArea",default:!1,effects:[q(d.Fe.showDrawArea)]}),z=(0,N.cn)({key:"popupTrigger",effects:[q(d.Fe.PopupTrigger)]}),H=(0,N.cn)({key:"baseMap",effects:[q(d.Fe.BaseMap)]}),e=(0,N.cn)({key:"activeTab",default:"geojson",effects:[q(d.Fe.ActiveRightTabKey)]}),Fe=(0,N.cn)({key:"layerType",default:[],effects:[q(d.Fe.officialLayers)]}),ye=(0,N.cn)({key:"coordConvert",default:"GCJ02",effects:[q(d.Fe.Convert)]}),Ae=(0,N.cn)({key:"theme",default:"light",effects:[q(d.Fe.theme)]}),Re=(0,N.cn)({key:"cityHistory",default:[],effects:[q(d.Fe.cityHistory)]}),Je=(0,N.cn)({key:"showTextLayer",default:!0,effects:[q(d.Fe.showTextLayer)]}),Oe=(0,N.cn)({key:"textLayerFields",default:void 0,effects:[q(d.Fe.textLayerFields)]}),st=(0,N.cn)({key:"customTiles",default:[],effects:[q(d.Fe.customTiles)]}),Ve=(0,N.cn)({key:"locale",default:"zh-CN",effects:[q(d.Fe.locale)]}),be=(0,N.cn)({key:"wasmPaths",effects:[q(d.Fe.wasmPath)]})},86348:function(Le,ie,o){"use strict";o.d(ie,{Z:function(){return ye}});var ue=o(37205),p=o.n(ue),N=o(31468),d=o.n(N),q=o(85573),ve=o.n(q),pe=o(82242),ge=o.n(pe),fe=o(79800),Y=o.n(fe),le=o(93904),Ee=o(40742),de=o(31222),B=o(14125),De=o(36923),Ke=o(87261),lt=o(69946),ze=o(77617),xe=o(86105),v=o(95570),ae=o(2185),z=o(60234),H=o(11809),e=o(2574),Fe=o(79232);function ye(){var Ae=(0,Fe.Z)(),Re=Ae.baseMap,Je=Ae.coordConvert,Oe=(0,v.FV)(e.bo),st=Y()(Oe,2),Ve=st[0],be=st[1],$e=(0,v.FV)(e.tJ),Be=Y()($e,2),me=Be[0],$=Be[1],ne=(0,v.FV)(e.Rl),Q=Y()(ne,2),re=Q[0],Ne=Q[1],at=(0,v.FV)(e.aD),rt=Y()(at,2),ut=rt[0],ct=rt[1],_t=(0,v.FV)(e.Qn),mt=Y()(_t,2),Xe=mt[0],F=mt[1],C=(0,xe.$G)(),we=C.t,jt=(0,ze.useMemo)(function(){return Ve!==me},[Ve,me]),Et=(0,ze.useMemo)(function(){return(0,Ee.featureCollection)(re)},[re]),yt=function(oe){Ne((0,B.Z)(oe).map(function(ce,Pe){var He;return ce.properties=ge()(ge()({},ce.properties),{},ve()({},ae.AQ.Index,Pe)),(He=ce.properties)!==null&&He!==void 0&&He[ae.AQ.DrawType]||(ce.properties[ae.AQ.DrawType]=function(){var Ye=(0,Ee.getType)(ce);return/Point/.test(Ye)?"point":/LineString/.test(Ye)?"line":"polygon"}()),ce}))},Ct=function(oe){var ce=JSON.stringify({type:"FeatureCollection",features:[]},null,2),Pe=[];if(Ve||oe)try{var He=(0,le.$)(JSON.parse(oe!=null?oe:Ve)).filter(function(Ye){return Ye.message!=="Polygons and MultiPolygons should follow the right-hand rule"});He.length>0?de.ZP.warning(we("recoil.feature.shuJuJiaZaiYou")):(Pe=(0,z.mr)(oe!=null?oe:Ve,we),oe&&be(oe),$(oe!=null?oe:Ve),yt(Pe))}catch(Ye){}else be(ce),$(ce);return Pe},Dt=function(oe){var ce=(0,H.X)({content:(0,Ee.featureCollection)(oe)});be(ce),$(ce),yt(oe)},Ot=(0,ze.useMemo)(function(){var ke=re.map(function(ce,Pe){var He=ce.properties;return ge()({__index:Pe+1},He)}),oe=[];return Array.from(new Set((0,De.Z)(re.map(function(ce){var Pe=ce.properties;return Object.keys(Pe)})))).forEach(function(ce){var Pe=d()(ke[0][ce]);if(Pe==="string"||Pe==="boolean"){var He=ke.map(function(ft){return String(ft[ce])});oe.push({type:"string",field:ce,value:He})}else if(Pe==="number"){var Ye=ke.map(function(ft){return ft[ce]});oe.push({type:Pe,field:ce,min:(0,Ke.Z)(Ye),max:(0,lt.Z)(Ye)})}}),oe},[re]),bt=(0,ze.useCallback)(function(ke){var oe=p()(ke);return Je==="WGS84"&&Re==="Gaode"?oe=oe.map(function(ce){return(0,z.IQ)((0,B.Z)(ce))}):Je==="GCJ02"&&Re==="Mapbox"&&(oe=oe.map(function(ce){return(0,z.Jk)((0,B.Z)(ce))})),oe},[Re,Je]),St=(0,ze.useCallback)(function(ke){var oe=p()(ke);return Je==="WGS84"&&Re==="Gaode"?oe=oe.map(function(ce){return(0,z.Jk)((0,B.Z)(ce))}):Je==="GCJ02"&&Re==="Mapbox"&&(oe=oe.map(function(ce){return(0,z.IQ)((0,B.Z)(ce))})),oe},[Re,Je]),Pt=(0,ze.useCallback)(function(ke){var oe=ke!=null?ke:re;if(Xe&&oe.length){var ce=(0,Ee.bbox)((0,Ee.featureCollection)(bt(oe))),Pe=Y()(ce,4),He=Pe[0],Ye=Pe[1],ft=Pe[2],wt=Pe[3];Xe.fitBounds([[He,Ye],[ft,wt]])}},[re,Xe,bt]);return{editorText:Ve,setEditorText:be,savedText:me,setSavedText:$,features:re,setFeatures:yt,savable:jt,saveEditorText:Ct,resetFeatures:Dt,dataSource:Ot,bboxAutoFit:Pt,setIsDraw:ct,isDraw:ut,scene:Xe,setScene:F,fc:Et,transformCoord:bt,revertCoord:St}}},93274:function(Le,ie,o){"use strict";o.d(ie,{Z:function(){return q}});var ue=o(79800),p=o.n(ue),N=o(95570),d=o(2574);function q(){var ve=(0,N.FV)(d.LY),pe=p()(ve,2),ge=pe[0],fe=pe[1];return{filters:ge,setFilters:fe}}},79232:function(Le,ie,o){"use strict";o.d(ie,{Z:function(){return q}});var ue=o(79800),p=o.n(ue),N=o(95570),d=o(2574);function q(){var ve=(0,N.FV)(d.Do),pe=p()(ve,2),ge=pe[0],fe=pe[1],Y=(0,N.FV)(d.aQ),le=p()(Y,2),Ee=le[0],de=le[1],B=(0,N.FV)(d.dR),De=p()(B,2),Ke=De[0],lt=De[1],ze=(0,N.FV)(d.bK),xe=p()(ze,2),v=xe[0],ae=xe[1],z=(0,N.FV)(d.E1),H=p()(z,2),e=H[0],Fe=H[1],ye=(0,N.FV)(d.xZ),Ae=p()(ye,2),Re=Ae[0],Je=Ae[1],Oe=(0,N.FV)(d.EB),st=p()(Oe,2),Ve=st[0],be=st[1],$e=(0,N.FV)(d.Uv),Be=p()($e,2),me=Be[0],$=Be[1],ne=(0,N.FV)(d.DJ),Q=p()(ne,2),re=Q[0],Ne=Q[1],at=(0,N.FV)(d.PY),rt=p()(at,2),ut=rt[0],ct=rt[1],_t=(0,N.FV)(d.XG),mt=p()(_t,2),Xe=mt[0],F=mt[1],C=(0,N.FV)(d.zl),we=p()(C,2),jt=we[0],Et=we[1],yt=(0,N.FV)(d.CZ),Ct=p()(yt,2),Dt=Ct[0],Ot=Ct[1],bt=(0,N.FV)(d.Pl),St=p()(bt,2),Pt=St[0],ke=St[1],oe=(0,N.FV)(d.Z3),ce=p()(oe,2),Pe=ce[0],He=ce[1],Ye=(0,N.FV)(d.GR),ft=p()(Ye,2),wt=ft[0],je=ft[1],en=(0,N.FV)(d._u),Me=p()(en,2),tn=Me[0],qe=Me[1],nn=(0,N.FV)(d.Yf),et=p()(nn,2),Tt=et[0],Wt=et[1],ee=(0,N.FV)(d.lG),nt=p()(ee,2),Zt=nt[0],Ut=nt[1];return{rightPanelWidth:ge,setRightWidth:fe,mapOptions:Ee,setMapOptions:de,layerColor:Ke,setLayerColor:lt,hideEditor:v,setHideEditor:ae,popupTrigger:Re,setPopupTrigger:Je,baseMap:Ve,setBaseMap:be,autoFitBounds:e,setAutoFitBounds:Fe,activeTab:me,setActiveTab:$,layerType:re,setLayerType:Ne,coordConvert:ut,setCoordConvert:ct,theme:Xe,setTheme:F,cityHistory:jt,setCityHistory:Et,showTextLayer:Dt,setShowTextLayer:Ot,textLayerFields:Pt,setTextLayerFields:ke,customTiles:Pe,setCustomTiles:He,locale:wt,setLocale:je,wasmPath:tn,setWasmPath:qe,showDrawDistance:Tt,setShowDrawDistance:Wt,showDrawArea:Zt,setShowDrawArea:Ut}}},82668:function(Le,ie,o){"use strict";o.d(ie,{SS:function(){return ue.Z},L0:function(){return p.Z},Og:function(){return N.Z}});var ue=o(86348),p=o(93274),N=o(79232),d=o(37205),q=o(79800),ve=o(40742),pe=o(86105),ge=o(95570),fe=o(2185),Y=o(2574);function le(){var Ee=useRecoilState(lnglatTypeState),de=_slicedToArray(Ee,2),B=de[0],De=de[1],Ke=useTranslation(),lt=Ke.t,ze=useRecoilState(lnglatTextState),xe=_slicedToArray(ze,2),v=xe[0],ae=xe[1],z=function(e){var Fe=e.split(` +`).filter(function(Ae){return Ae}).map(function(Ae){return Ae.split(";").filter(function(Re){return Re}).map(function(Re){return Re.split(",").filter(function(Je){return Je}).map(function(Je){return+Je})})});if(LngLatVT.check(Fe)){var ye=[];return B==="Point"?ye.push.apply(ye,_toConsumableArray(Fe.flat().map(function(Ae){return point(Ae)}))):B==="LingString"?ye.push.apply(ye,_toConsumableArray(Fe.map(function(Ae){return lineString(Ae)}))):ye.push.apply(ye,_toConsumableArray(Fe.map(function(Ae){return isEqual(first(Ae),last(Ae))||Ae.push(Ae[0]),polygon([Ae])}))),ye}else throw new Error(lt("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:B,setLngLatImportType:De,lngLatText:v,setLngLatText:ae,importLngLatText:z}}},60234:function(Le,ie,o){"use strict";o.d(ie,{fC:function(){return e},fN:function(){return Ke.f},Qp:function(){return Fe},Yt:function(){return Ke.Y},Pp:function(){return ze},tg:function(){return Oe},Di:function(){return Je},Jk:function(){return ae},C2:function(){return Re},oO:function(){return st},bo:function(){return Ve},gw:function(){return $e},tI:function(){return be},Ep:function(){return Be},mr:function(){return ye},IQ:function(){return v}});var ue=o(7557),p=o.n(ue),N=o(41498),d=o.n(N),q=o(82242),ve=o.n(q),pe=o(29075),ge=o(91327),fe=o.n(ge),Y=o(40742),le=o(31222),Ee=o(9498),de=o.n(Ee),B=o(63364),De=o(2185),Ke=o(85070),lt=o(28561),ze=function($){var ne=(0,Y.length)($,{units:"meters"}),Q=(0,lt.Z)((0,Y.lineSliceAlong)($,0,ne/2,{units:"meters"}).geometry.coordinates);return(0,Y.point)(Q)},xe=o(46250),v=function($){return $.geometry.type.match(/polygon/i)&&($.geometry=JSON.parse(JSON.stringify($.geometry))),xe.Z.transform($,xe.Z.WGS84,xe.Z.GCJ02)},ae=function($){return $.geometry.type.match(/polygon/i)&&($.geometry=JSON.parse(JSON.stringify($.geometry))),xe.Z.transform($,xe.Z.GCJ02,xe.Z.WGS84)},z=o(37205),H=o.n(z);function e(me){var $=(0,Y.coordAll)(me).map(function(ne){return ne.join(",")}).join(";");return $}function Fe(me){var $=me.split(` +`).filter(function(Q){return Q}).map(function(Q){return Q.split(";").filter(function(re){return re}).map(function(re){return re.split(",").filter(function(Ne){return Ne}).map(function(Ne){return+Ne})})});if(De.eG.check($)){var ne=[];return ne.push.apply(ne,H()($.flat().map(function(Q){return(0,Y.point)(Q)}))),ne}}var ye=function($,ne){var Q=JSON.parse($);if(De._9.check(Q))return Q.features;if(Array.isArray(Q))return De.Iz.check(Q)?Q:De.xQ.check(Q)?Q.map(function(re){return(0,Y.feature)(re)}):(console.warn(ne("utils.transform.weiShiBieJS")),[]);if(De.u9.check(Q))return[Q];if(De.dw.check(Q))return[(0,Y.feature)(Q)]},Ae=function($,ne){var Q=Color($).fade(ne);return"rgba(".concat(Q.array().join(", "),")")},Re=function($){var ne=(0,pe.getSingleColorStyle)($);return Object.keys(ne).forEach(function(Q){ne[Q].options=ve()(ve()({},ne[Q].options),{},{zIndex:De.QF})}),ne},Je=function($,ne){var Q=document.createElement("a");Q.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent($)),Q.setAttribute("download","".concat(de()().format("YYYY-MM-DD"),".").concat(ne)),Q.style.display="none",document.body.appendChild(Q),Q.click()},Oe=function($){var ne=document.createElement("a");ne.href=$,ne.download="".concat(de()().format("YYYY\u5E74MM\u6708DD\u65E5HH\u65F6mm\u5206ss\u79D2"),".jpeg"),ne.dispatchEvent(new MouseEvent("click"))},st=function($){var ne=new URLSearchParams(window.location.search);return ne.get($)},Ve=function(){var me=d()(p()().mark(function $(ne){var Q,re,Ne,at,rt,ut,ct,_t,mt,Xe=arguments;return p()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return Q=Xe.length>1&&Xe[1]!==void 0?Xe[1]:"GeoJSON",re=Xe.length>2?Xe[2]:void 0,C.next=4,fetch(ne);case 4:if(Ne=C.sent,Q!=="GeoJSON"){C.next=18;break}return C.prev=6,C.next=9,Ne.json();case 9:return at=C.sent,C.abrupt("return",at);case 13:throw C.prev=13,C.t0=C.catch(6),new Error(re("utils.index.qingJianChaUR"));case 16:C.next=43;break;case 18:if(Q!=="WKT"){C.next=30;break}return C.next=21,Ne.text();case 21:if(rt=C.sent,ut=(0,Ke.Y)(rt),!De._9.check(ut)){C.next=27;break}return C.abrupt("return",ut);case 27:le.ZP.error(re("utils.index.qingJianChaUR"));case 28:C.next=43;break;case 30:if(Q!=="KML"){C.next=43;break}return C.next=33,Ne.text();case 33:if(ct=C.sent,_t=new DOMParser().parseFromString(ct,"text/xml"),!(_t.getElementsByTagName("parsererror").length>0)){C.next=39;break}le.ZP.error(re("utils.index.qingJianChaUR")),C.next=43;break;case 39:return C.next=41,fe().kml(_t,{style:!0});case 41:return mt=C.sent,C.abrupt("return",mt);case 43:case"end":return C.stop()}},$,null,[[6,13]])}));return function(ne){return me.apply(this,arguments)}}(),be=function($){return!(0,B.Z)($)&&$ instanceof Promise},$e=function($){var ne,Q=(ne=$.properties)===null||ne===void 0?void 0:ne[De.AQ.DrawType];if(Q==="circle")return!0;var re=(0,Y.center)($).geometry.coordinates,Ne=(0,Y.coordAll)($).map(function(at){return Math.round((0,Y.distance)(at,re,{units:"meters"}))});return Array.from(new Set(Ne)).length===1},Be=function($){var ne,Q=(ne=$.properties)===null||ne===void 0?void 0:ne[De.AQ.DrawType];if(Q==="rect")return!0;var re=(0,Y.coordAll)($);if(re.length!==5)return!1;var Ne=(0,Y.distance)(re[0],re[1],{units:"meters"}).toFixed(0),at=(0,Y.distance)(re[1],re[2],{units:"meters"}).toFixed(0),rt=(0,Y.distance)(re[2],re[3],{units:"meters"}).toFixed(0),ut=(0,Y.distance)(re[3],re[4],{units:"meters"}).toFixed(0);if(Ne===rt&&at===ut){var ct=Math.round((0,Y.bearing)(re[0],re[3])-(0,Y.bearing)(re[0],re[1]));return ct===90||ct===270}return!1}},11809:function(Le,ie,o){"use strict";o.d(ie,{X:function(){return q}});var ue=o(53436),p=o.n(ue),N=o(97364),d=o.n(N);function q(ve){var pe=ve.content,ge=ve.parser,fe=ge===void 0?"json":ge,Y=pe;typeof pe!="string"&&(Y=JSON.stringify(pe,null,2));var le=p().format(Y,{parser:fe==="json"?fe:"babel",plugins:[d()]});return le}},85070:function(Le,ie,o){"use strict";o.d(ie,{Y:function(){return q},f:function(){return d}});var ue=o(40742),p=o(92368),N=o.n(p);function d(ve){return ve.features.map(function(pe){return(0,p.stringify)(pe.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function q(ve){var pe=(0,ue.featureCollection)([]);return ve.split(/[;\n]/g).forEach(function(ge){if(ge){var fe=(0,p.parse)(ge);fe&&pe.features.push((0,ue.feature)(fe,{}))}}),pe}},2467:function(){},18953:function(){}}]); diff --git a/404.html b/404.html index 8d8ed0b..6e22d0f 100644 --- a/404.html +++ b/404.html @@ -26,6 +26,6 @@
- + \ No newline at end of file diff --git a/880.fe824dde.async.js b/880.fe824dde.async.js deleted file mode 100644 index c88fff5..0000000 --- a/880.fe824dde.async.js +++ /dev/null @@ -1,654 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[880],{8858:function(){window._iconfont_svg_string_3567033='',function(Ze){var o=(o=document.getElementsByTagName("script"))[o.length-1],se=o.getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var de,p,z,c,ee,xe=function(q,ue){ue.parentNode.insertBefore(q,ue)};if(se&&!Ze.__iconfont__svg__cssinject__){Ze.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(ge){console&&console.log(ge)}}de=function(){var q,ue=document.createElement("div");ue.innerHTML=Ze._iconfont_svg_string_3567033,(ue=ue.getElementsByTagName("svg")[0])&&(ue.setAttribute("aria-hidden","true"),ue.style.position="absolute",ue.style.width=0,ue.style.height=0,ue.style.overflow="hidden",ue=ue,(q=document.body).firstChild?xe(ue,q.firstChild):q.appendChild(ue))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(de,0):(p=function(){document.removeEventListener("DOMContentLoaded",p,!1),de()},document.addEventListener("DOMContentLoaded",p,!1)):document.attachEvent&&(z=de,c=Ze.document,ee=!1,Ce(),c.onreadystatechange=function(){c.readyState=="complete"&&(c.onreadystatechange=null,ve())})}function ve(){ee||(ee=!0,z())}function Ce(){try{c.documentElement.doScroll("left")}catch(ge){return void setTimeout(Ce,50)}ve()}}(window)},30246:function(Ze,se,o){"use strict";o.d(se,{B:function(){return c}});var de=o(40742),p=o(29486),z=o(4027);function c(ee,xe,ve){var Ce=ee.getWordUntilPosition(xe),ge={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},q=[];if(ve==="turf")for(var ue in de){var Oe={label:ue,kind:z.languages.CompletionItemKind.Function,documentation:de[ue].toString(),insertText:ue,range:ge};q.push(Oe)}else q=p.Z.chain(p.Z).keys().map(function(pe){return{label:pe,kind:z.languages.CompletionItemKind.Function,insertText:pe,range:ge}}).value();return{suggestions:q}}},64552:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82242),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7557),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(41498),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(79800),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(26437),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(65397),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(82728),ahooks__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8142),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4027),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(77617),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(86105),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(68652),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(82668),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(60234),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11809),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(30246),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(50907),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(32648),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),geoJonText=_useState6[0],setGeoJonText=_useState6[1],debouncedGeoJsonText=(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(geoJonText,{wait:2e3}),_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(se){return[{range:se.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:se.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(se,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(se,o,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(se,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(se,o,"turf")}})});var monacoChange=function(se){if(language==="json"){setEditorText(se),setGeoJonText(se);return}setScriptContent==null||setScriptContent(se)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Ze,se){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_17__.Z)(function(){var Ze=saveEditorText();autoFitBounds&&bboxAutoFit(Ze)},[debouncedGeoJsonText]);var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},50907:function(Ze,se,o){"use strict";var de=o(41363),p=o.n(de),z=o(68564),c,ee=function(){return{appEditor:(0,z.iv)(c||(c=p()([` - width: 100%; - height: 100%; - position: relative; - .react-monaco-editor-container { - width: 100%; - height: 100%; - } - `])))}};se.Z=ee},2185:function(Ze,se,o){"use strict";o.d(se,{AF:function(){return Oe},AQ:function(){return ve},Fe:function(){return z},IZ:function(){return ge},Iz:function(){return de.Iz},K6:function(){return xe},QF:function(){return q},_9:function(){return de._9},ay:function(){return ue},d7:function(){return c},dY:function(){return pe},dw:function(){return de.dw},eG:function(){return de.eG},s3:function(){return Ce},u9:function(){return de.u9},xQ:function(){return de.xQ},yc:function(){return p}});var de=o(20658),p=[20,80],z=function(N){return N.RightPanelWidth="RightPanelWidth",N.MapOptions="MapOptions",N.LayerColor="LayerColor",N.HideEditor="HideEditor",N.EditorText="EditorText",N.PopupTrigger="PopupTrigger",N.ActiveRightTabKey="ActiveRightTabKey",N.AutoFitBounds="AutoFitBounds",N.BaseMap="BaseMap",N.officialLayers="officialLayers",N.WktText="WktText",N.Convert="Convert",N.theme="theme",N.cityHistory="cityHistory",N.showTextLayer="showTextLayer",N.textLayerFields="textLayerFields",N.locale="locale",N.firstOpening="firstOpening",N.wasmPath="wasmPath",N.customTiles="customTiles",N.showDrawDistance="showDrawDistance",N.showDrawArea="showDrawArea",N}({}),c=function(N){return N.PointLayer="PointLayer",N.LineLayer="LineLayer",N.PolygonLayer="PolygonLayer",N}({}),ee="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",xe="#1677ff",ve={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},Ce={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg",WebGLParams:{preserveDrawingBuffer:!0}},ge={token:"5ae4492ef912cbbc93034fea0e66ff2a",WebGLParams:{preserveDrawingBuffer:!0}},q=100,ue="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s&gl=CN&x={x}&y={y}&z={z}",Oe="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=h&gl=CN&x={x}&y={y}&z={z}",pe=function(N){return N.GoogleSatellite="googleSatellite",N.VectorMap="vectorMap",N}({})},20658:function(Ze,se,o){"use strict";o.d(se,{Iz:function(){return Ce},_9:function(){return ge},dw:function(){return ee},eG:function(){return q},u9:function(){return ve},xQ:function(){return xe}});var de=o(79800),p=o.n(de),z=o(91173),c=o.n(z),ee=c().shape({type:c().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:c().array}),xe=c().arrayOf(ee),ve=c().shape({type:c().in(["Feature"]),properties:c().or([c().object,c().null,c().undefined]),geometry:ee}),Ce=c().arrayOf(ve),ge=c().shape({type:c().in(["FeatureCollection"]),features:c().arrayOf(ve)}),q=c().arrayOf(c().arrayOf(c().and([c().arrayOf(c().number),c().apply(function(ue){if(ue.length===2){var Oe=p()(ue,2),pe=Oe[0],N=Oe[1];return pe>=-180&&pe<=180&&N<=90&&N>=-90}return!1})])))},64666:function(Ze,se,o){"use strict";o.r(se),o.d(se,{AppTable:function(){return $n},GeoJsonEditor:function(){return Ht.i},L7Editor:function(){return tl},LngLatEditor:function(){return go},WktEditor:function(){return ha}});var de=o(82242),p=o.n(de),z=o(79800),c=o.n(z),ee=o(39429),xe=o(45818),ve=o(92621),Ce=o(26890),ge=o(63667),q=o(67851),ue=o(37114),Oe=o(82607),pe=o(3773),N=o(99622),Pe=o(145),qe=o(73323),gt=o(64316),$e=o(92310),Se=o.n($e),_=o(77617),ne=o(86105),G=o(2185),V=o(82668),e=o(32648),Be=function(n){return(0,e.jsx)("span",{id:n.id,role:"img",style:n.style,className:Se()(["anticon",n.className]),children:(0,e.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",className:"",children:(0,e.jsx)("use",{xlinkHref:"#".concat(n.type)})})})},Te=o(16042),Fe=Te.Z.Option,Ue=function(){var n=(0,V.Og)(),i=n.baseMap,r=n.setBaseMap,a=n.setMapOptions,l=n.mapOptions,s=n.theme,u=n.setCoordConvert,f=(0,ne.$G)(),d=f.t,y=[{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*POJeRJzjdNAAAAAAAAAAAAAADjWqAQ/original",label:d("btn.setting_btn.gaoDe"),value:"Gaode"},{img:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*-G-sT4L_sNoAAAAAAAAAAAAADjWqAQ/original",label:"Mapbox",value:"Mapbox"}],v=function(T){r(T),a(p()(p()({},l),{},{style:s==="dark"?"dark":"normal"})),u(T==="Gaode"?"GCJ02":"WGS84"),T!==i&&location.reload()};return(0,e.jsx)(Te.Z,{style:{width:"120px"},bordered:!1,defaultValue:i,onChange:v,children:y.map(function(m){return(0,e.jsx)(Fe,{value:m.value,label:m.label,children:(0,e.jsxs)(Oe.Z,{children:[(0,e.jsx)("span",{style:{display:"flex"},children:(0,e.jsx)("img",{src:m.img,alt:"",style:{height:15,width:15}})}),(0,e.jsx)("span",{children:m.label})]})},m.value)})})},Ke=o(99595),je=o(40742),xt=o(16097),et=o.n(xt),Ee=o(60234),ot=o(11809),Ne=o(85070),ye=function(){var n=(0,V.SS)(),i=n.editorText,r=n.fc,a=(0,ne.$G)(),l=a.t,s=function(d){if(d==="GeoJson")(0,Ee.Di)(JSON.stringify(r),"json");else if(d==="FormatGeoJson"){var y=(0,ot.X)({content:r});(0,Ee.Di)(y,"json")}else if(d==="LngLat")(0,Ee.Di)((0,je.coordAll)(r).map(function(m){return m.join(",")}).join(";"),"txt");else if(d==="KML"){var v=et()(r);(0,Ee.Di)(v,"kml")}else d==="WKT"?(0,Ee.Di)((0,Ne.f)(r),"wkt"):(0,Ee.Di)(i,"json")},u=[{key:"GeoJson",label:l("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:l("app_header.constants.xiaZaiLNG")},{key:"KML",label:l("app_header.constants.xiaZaiKML")},{key:"WKT",label:l("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(Pe.Z,{menu:{items:u,onClick:function(d){var y=d.key;s(y)}},children:(0,e.jsx)(N.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(Ke.Z,{}),children:l("btn.download_btn.xiaZai")})})},$=ye,ae=o(83624),Q=function(){var h=(0,ne.$G)(),n=h.t,i=function(l){l==="guide"?window.open("/guide"):l==="api"?window.open("/docs"):l==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},r=[{key:"guide",label:n("app_header.constants.pingTaiShiYongWen")},{key:"api",label:n("app_header.constants.zuJianAPI")},{key:"issue",label:n("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Pe.Z,{menu:{items:r,onClick:function(l){var s=l.key;i(s)}},placement:"bottom",children:(0,e.jsx)(N.ZP,{icon:(0,e.jsx)(ae.Z,{}),children:n("btn.handback_btn.bangZhu")})})})},ie=o(40098),He=o(91825),pt=o(9810),ft=o(7357),yt={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeWeiXingTu":"Google Remote Sensing Maps","official_layer_control.index.shiLiangDiTu":"Vector Map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position","official_layer_control.index.mingChengChongFu":"Duplicate name, please modify the name","official_layer_control.index.shanChuDiTu":"Delete current base map","official_layer_control.index.tianJiaDitu":"Add Tile Layer","official_layer_control.index.name":"name","official_layer_control.index.addName":"Please enter a name","official_layer_control.index.shiLiTuPian":"Sample Picture","official_layer_control.index.tuCengDiZhi":"Layer Address","official_layer_control.index.qiShuRutuCengDiZhi":"Please enter a layer address","official_layer_control.index.tinJiaWaPian":"Add Tile Layer Address","official_layer_control.index.kongGe":"Input cannot be a space!","official_layer_control.index.shangchuan":"Please upload pictures","text-layer-control_wenBenBiaoZhu":"Text callout layer configuration","text-layer-control_shiFouZhanShiTuCeng":"Show layer","text-layer-control_zhanShiZiDuan":"Show Fields","text-layer-control_buXuan":"If not selected, the element serial number will be displayed by default.","text-layer-control_wenBenTuCengPeiZhi":"Text Layer Configuration","text-layer-control_description":"Open the text layer configuration, you can display the serial number of all the current data, you can also use the multi-select box to properties fields in the data to select different data for display.","export-img-control_title":"Preview Picture","btn.setting_btn.mianJi":"Show area text when drawing","btn.setting_btn.juLi":"Whether to display distance text when drawing","l7Options.huoqucanshu":"Get map status parameters","l7Options.dangqiancanshu":"Current map parameters"},bt={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u536B\u661F\u5730\u56FE","official_layer_control.index.shiLiangDiTu":"\u77E2\u91CF\u5730\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_control_group.sam.diKuaiShiBieShiBei":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u6A21\u578B\u52A0\u8F7D\u5931\u8D25","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E","official_layer_control.index.mingChengChongFu":"\u540D\u79F0\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540D\u79F0","official_layer_control.index.shanChuDiTu":"\u662F\u5426\u5220\u9664\u5F53\u524D\u5E95\u56FE","official_layer_control.index.tianJiaDitu":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42","official_layer_control.index.name":"\u540D\u79F0","official_layer_control.index.addName":"\u8BF7\u8F93\u5165\u540D\u79F0","official_layer_control.index.shiLiTuPian":"\u793A\u4F8B\u56FE\u7247","official_layer_control.index.tuCengDiZhi":"\u56FE\u5C42\u5730\u5740","official_layer_control.index.qiShuRutuCengDiZhi":"\u8BF7\u8F93\u5165\u56FE\u5C42\u5730\u5740","official_layer_control.index.tinJiaWaPian":"\u6DFB\u52A0\u74E6\u7247\u56FE\u5C42\u5730\u5740","official_layer_control.index.kongGe":"\u8F93\u5165\u4E0D\u80FD\u4E3A\u7A7A\u683C\uFF01","official_layer_control.index.shangchuan":"\u8BF7\u4E0A\u4F20\u56FE\u7247","text-layer-control_wenBenBiaoZhu":"\u6587\u672C\u6807\u6CE8\u56FE\u5C42\u914D\u7F6E","text-layer-control_shiFouZhanShiTuCeng":"\u662F\u5426\u5C55\u793A\u56FE\u5C42","text-layer-control_zhanShiZiDuan":"\u5C55\u793A\u5B57\u6BB5","text-layer-control_buXuan":"\u4E0D\u9009\u5219\u9ED8\u8BA4\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","text-layer-control_wenBenTuCengPeiZhi":"\u6587\u672C\u56FE\u5C42\u914D\u7F6E","text-layer-control_description":"\u5F00\u542F\u6587\u672C\u56FE\u5C42\u914D\u7F6E\uFF0C\u53EF\u4EE5\u663E\u793A\u5F53\u524D\u6240\u6709\u6570\u636E\u7684\u5E8F\u53F7\uFF0C\u4E5F\u53EF\u4EE5\u901A\u8FC7\u591A\u9009\u6846\u5728\u6570\u636E\u4E2Dproperties\u5B57\u6BB5\u53BB\u9009\u62E9\u4E0D\u540C\u7684\u6570\u636E\u6765\u8FDB\u884C\u5C55\u793A","export-img-control_title":"\u9884\u89C8\u56FE\u7247","btn.setting_btn.mianJi":"\u7ED8\u5236\u65F6\u662F\u5426\u5C55\u793A\u9762\u79EF\u6587\u672C","btn.setting_btn.juLi":"\u7ED8\u5236\u65F6\u662F\u5426\u5C55\u793A\u8DDD\u79BB\u6587\u672C","l7Options.huoqucanshu":"\u83B7\u53D6\u5730\u56FE\u72B6\u6001\u53C2\u6570","l7Options.dangqiancanshu":"\u5F53\u524D\u5730\u56FE\u53C2\u6570"};pt.ZP.use(ft.Z).use(ne.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:bt},"en-US":{translation:yt}}});var jt=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:He.Z},{lang:"en-US",name:"English",antd:ie.Z}],Dt=null,it=o(41363),I=o.n(it),S=o(68564),Me=o(80769),Bt,kt,Pt,At,Rt,Jt,Lt,wt,Nt,Ge,le,fe=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBorder,l=r.colorBgContainer,s=r.colorText;return{mapHeader:(0,S.iv)(Bt||(Bt=I()([` - padding: 0 16px; - height: 50px; - border-bottom: 1px solid `,`; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - background: `,`; - z-index: 1; - .ant-btn { - border: 0; - } - `])),a,l),mapHeaderLogo:(0,S.iv)(kt||(kt=I()([` - display: flex; - align-items: center; - img { - width: auto; - height: 24px; - margin-right: 4px; - } - `]))),mapHeaderTitle:(0,S.iv)(Pt||(Pt=I()([` - font-size: 16px; - font-weight: bold; - margin-left: 4px; - margin-right: 16px; - color: `,`; - `])),s),mapHeaderLeft:(0,S.iv)(At||(At=I()([` - display: flex; - align-items: center; - `]))),mapHeaderRight:(0,S.iv)(Rt||(Rt=I()([` - display: flex; - align-items: center; - `]))),locale:(0,S.iv)(Jt||(Jt=I()([` - font-size: 16px; - `]))),localeIcon:(0,S.iv)(Lt||(Lt=I()([` - font-size: 16px; - `]))),upload:(0,S.iv)(wt||(wt=I()([` - height: 200px; - display: flex; - overflow: hidden; - flex-direction: column; - align-items: center; - justify-content: center; - `]))),uploadTitle:(0,S.iv)(Nt||(Nt=I()([` - font-size: 14px; - padding: 10px 6px 10px 0; - `]))),theme:(0,S.iv)(Ge||(Ge=I()([` - cursor: pointer; - padding: 0 !important; - width: 32px; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - `]))),themeIcon:(0,S.iv)(le||(le=I()([` - font-size: 20px !important; - `])))}},Le=fe,tt=jt.map(function(h){return{key:h.lang,label:h.name}}),lt=function(){var n=(0,ne.$G)(),i=n.i18n,r=(0,V.Og)(),a=r.locale,l=r.setLocale,s=Le(),u=function(d){var y=d.key;i.changeLanguage(y),l(y)};return(0,e.jsx)(Pe.Z,{menu:{items:tt,onClick:u,selectedKeys:[a],selectable:!0},placement:"bottom",children:(0,e.jsx)(N.ZP,{className:s.locale,icon:(0,e.jsx)(Be,{className:s.localeIcon,type:"icon-in"})})})},Et=lt,Kt=o(7557),De=o.n(Kt),dn=o(37205),Ae=o.n(dn),pn=o(41498),Xe=o.n(pn),fn=o(54834),ke=o(31222),Zt=o(72450),nn=o(4936),te=o(3918),ut=o(11864),Ht=o(64552),an=o(20658),vr=o(70236),En=o.n(vr),mr=o(98331),Dn=o(43536),On=o(89392),Pn=o(92368),gr=o(91327),xr=o.n(gr),Vt=o(60522),yr=o(95205),br=o.n(yr),Ln=o(60015),An=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsText(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},wn=function(n,i,r){var a=JSON.parse(n);return{id:r||(0,Vt.Z)(r),metadata:{name:i},data:a,type:"local"}},Cr=function(n,i,r){var a=JSON.parse(n);return G._9.check(a)?wn(n,i,r):{id:r||(0,Vt.Z)(r),metadata:{name:i},data:a,type:"local"}},Sr=function(){var h=Xe()(De()().mark(function n(i,r,a){var l,s,u,f,d,y;return De()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=i.name,s=l.substring(l.lastIndexOf(".")+1),m.next=4,An(i);case 4:if(u=m.sent,s!=="json"){m.next=9;break}return m.abrupt("return",Cr(u,r,a));case 9:if(s!=="geojson"){m.next=13;break}return m.abrupt("return",wn(u,r,a));case 13:if(s!=="kml"){m.next=21;break}return f=new DOMParser().parseFromString(u,"text/xml"),m.next=17,xr().kml(f,{style:!0});case 17:return d=m.sent,m.abrupt("return",{id:a||(0,Vt.Z)(a),metadata:{name:r},data:d,type:"local"});case 21:if(s!=="wkt"){m.next=24;break}return y=(0,Ne.Y)(u),m.abrupt("return",{id:a||(0,Vt.Z)(a),metadata:{name:r},data:y,type:"local"});case 24:case"end":return m.stop()}},n)}));return function(i,r,a){return h.apply(this,arguments)}}(),Tr=function(){var h=Xe()(De()().mark(function n(i,r,a){var l,s;return De()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,An(i);case 2:return l=f.sent,s=br().parse(l,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),f.abrupt("return",{id:a||(0,Vt.Z)(a),metadata:{name:r},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return f.stop()}},n)}));return function(i,r,a){return h.apply(this,arguments)}}(),jr=function(n){return new Promise(function(i,r){var a=new FileReader;a.readAsArrayBuffer(n),a.onload=function(l){var s,u=(s=l.target)===null||s===void 0?void 0:s.result;i(u)},a.onerror=function(l){r(l)}})},Er=function(n,i,r){var a;try{var l=(0,Ln.ij)(n,{type:"array",cellDates:!0}),s=l.Sheets[l.SheetNames[0]];Object.keys(s).forEach(function(f){var d=s[f];d.t==="d"&&(d.v=d.w)}),a=Ln.P6.sheet_to_json(s)}catch(f){throw f}var u=Object.keys(a[0]);return{id:r,metadata:{name:i},data:a,type:"local",columns:u}},Dr=function(){var h=Xe()(De()().mark(function n(i,r,a){var l;return De()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,jr(i);case 3:l=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",Er(l,r,a));case 10:case"end":return u.stop()}},n,null,[[0,6]])}));return function(i,r,a){return h.apply(this,arguments)}}(),_n=function(n){var i=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,r=!1;return typeof n=="string"&&i.test(n)&&(r=!0),r},hn=function(n){try{var i=JSON.parse(n);return G.dw.check(i)}catch(r){return!1}},Or=function(){var h=Xe()(De()().mark(function n(i,r){var a,l,s,u;return De()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=i.name,l=a.substring(0,a.lastIndexOf(".")),s=a.substring(a.lastIndexOf(".")+1),d.prev=3,!["geojson","json","kml","wkt"].includes(s)){d.next=10;break}return d.next=7,Sr(i,l,i.uid);case 7:u=d.sent,d.next=20;break;case 10:if(s!=="csv"){d.next=16;break}return d.next=13,Tr(i,l,i.uid);case 13:u=d.sent,d.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){d.next=20;break}return d.next=19,Dr(i,l,i.uid);case 19:u=d.sent;case 20:d.next=25;break;case 22:return d.prev=22,d.t0=d.catch(3),d.abrupt("return",Promise.reject(r("utils.upload.wenJianJieXiShi")));case 25:return d.abrupt("return",u);case 26:case"end":return d.stop()}},n,null,[[3,22]])}));return function(i,r){return h.apply(this,arguments)}}(),Pr=Dn.Z.Dragger,Lr=(0,_.forwardRef)(function(n,i){En()(n);var r=(0,_.useState)([]),a=c()(r,2),l=a[0],s=a[1],u=(0,_.useState)([]),f=c()(u,2),d=f[0],y=f[1],v=(0,_.useState)([]),m=c()(v,2),T=m[0],A=m[1],C=te.Z.useForm(),w=c()(C,1),g=w[0],D=(0,ne.$G)(),P=D.t,j=Le(),b=function(x){var K=x.file,F=x.onSuccess,k=x.onError;Or(K,P).then(function(L){if(L!=null&&L.columns){for(var Z=L.data[0],J=void 0,H=0,Y=Object.keys(Z);H":return i>h.value;case">=":return i>=h.value;default:if(Array.isArray(h.value)){var r=c()(h.value,2),a=r[0],l=r[1];return i>=a&&i<=l}}}function ra(h,n){var i=String(n[h.field]),r=h.value;switch(h.operator){case"NOT_IN":return!(r!=null&&r.includes(i));case"IN":return r==null?void 0:r.includes(i);case"LIKE":return(i==null?void 0:i.indexOf(r))>-1;default:return(i==null?void 0:i.indexOf(r))<=-1}}var oa=(0,Yt.cn)({key:"filterFeature",default:[]});function ia(){var h=(0,V.SS)(),n=h.features,i=(0,V.L0)(),r=i.filters,a=(0,Yt.Zl)(oa),l=(0,Yt.sJ)(oa);return(0,_.useEffect)(function(){if((0,Xt.Z)(r)){a(Ae()(n));return}var s=Ae()(n),u=r.filter(function(y){return!na(y)}),f=u.filter(function(y){return y.logic==="and"}),d=u.filter(function(y){return y.logic==="or"});(0,Xt.Z)(d)||(s=s.filter(function(y){var v=y.properties;return d.some(function(m){var T=m.type==="number"?aa:ra;return T(m,v)})})),(0,Xt.Z)(f)||(s=s.filter(function(y){var v=y.properties;return f.every(function(m){var T=m.type==="number"?aa:ra;return T(m,v)})})),a(s)},[n,r,a]),{features:l}}function xn(h,n){var i=document.createElement("canvas"),r=i.getContext("2d"),a=new Image(n.x,n.y);return a.crossOrigin="Anonymous",a.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(l){a.onload=function(){i.width=a.width,i.height=a.height,r.imageSmoothingEnabled=!0,r.drawImage(a,0,0,a.width,a.height);for(var s=r.getImageData(0,0,i.width,i.height),u=s.data,f=0;f=10){var H=(0,Ct.Z)(r);H.pop(),a(H)}}else y(null)},O=function(F,k){return k.some(function(L){return L.label.toLowerCase().indexOf(F.toLowerCase())>-1})},x=(0,_.useMemo)(function(){if(r.length){var K=r.map(function(F){return{key:F.value,label:(0,e.jsx)("div",{onClick:function(){D(JSON.parse(F.value))},children:F.label})}});return K}else return[{key:"undefined",label:(0,e.jsx)(mn.Z,{})}]},[r]);return(0,_.useEffect)(function(){if(g){var K=g[g.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(K,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(F){return F.json()}).then(function(F){var k;if(F.status==="1"&&(k=F.districts)!==null&&k!==void 0&&k.length&&s){var L=F.districts[0].center.split(",").map(function(H){return+H}),U=c()(L,2),R=U[0],Z=U[1];s.setZoomAndCenter(9,[R,Z]);var J=[];F.districts.forEach(function(H){H.polyline.split("|").forEach(function(Y){J.push(Y.split(";").map(function(X){return X.split(",").map(function(he){return+he})}))})}),y((0,je.multiLineString)(J))}}).catch(function(){ke.ZP.error(j("administrative_select_control.index.weiLanShuJuQing"))})}},[g]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(re.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(Do.Z,{options:T,value:g,onChange:E,className:n.cascader,allowClear:!0,showSearch:{filter:O},placeholder:j("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:n.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(Pe.Z,{menu:{items:x},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(pe.Z,{title:j("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:Se()([n.history,"l7-draw-control__btn"]),children:(0,e.jsx)(Be,{type:"icon-lishi",className:n.historyIcon})})})})]})}),(0,e.jsx)(re.Ie,p()({source:{data:(0,je.featureCollection)(d?[d]:[])}},Po))]})},Ta,ja,Ea,Da,Oa,Pa,Ao=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.colorBorder,s=r.colorTextDescription,u=r.colorText,f=r.boxShadow,d=r.colorIcon;return{L7EditorControl:(0,S.iv)(Ta||(Ta=I()([` - display: inline-flex; - align-items: center; - justify-content: center; - border-radius: 2px; - width: 28px; - height: 28px; - padding: 0; - text-align: center; - background: `,`; - box-shadow: `,` !important; - border-width: 0; - color: `,`; - outline: 0; - cursor: pointer; - &:hover { - background: `,`; - svg { - color: `,`; - } - } - `])),a,f,d,a,u),l7EditorIcon:(0,S.iv)(ja||(ja=I()([` - font-size: 16px; - border: none; - cursor: pointer; - color: `,`; - `])),d),zoom:(0,S.iv)(Ea||(Ea=I()([` - .l7-button-control { - color: `,`; - font-size: 14px; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - } - .l7-button-control:first-child { - border-bottom: 1px solid `,`; - } - `])),s,a,l,s,u,l),scalesControl:(0,S.iv)(Da||(Da=I()([` - .l7-control-scale-line { - color: `,`; - background: `,` !important; - border-color: `,`; - } - `])),s,a,l),mouseLocatio:(0,S.iv)(Oa||(Oa=I()([` - color: `,` !important; - background: `,` !important; - border-color: `,`; - `])),s,a,l),fullScreen:(0,S.iv)(Pa||(Pa=I()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),s,a,l,s,u)}},Gt=Ao,wo=function(){var n=Gt(),i=(0,V.SS)(),r=i.bboxAutoFit,a=(0,ne.$G)(),l=a.t;return(0,e.jsx)(re.br,{position:"bottomright",children:(0,e.jsx)(pe.Z,{title:l("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:n.L7EditorControl,onClick:function(){r()},children:(0,e.jsx)(Be,{type:"icon-suofang",className:n.l7EditorIcon})})})})},La,Aa,Zo=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorIcon,u=r.colorText;return{clear:(0,S.iv)(La||(La=I()([` - width: 30px; - height: 30px; - line-height: 41px; - text-align: center; - border-radius: 2px; - background-color: `,`; - box-shadow: `,` !important; - cursor: pointer; - color: `,`; - &:hover { - color: `,`; - background: `,`; - } - `])),a,l,s,u,a),clearSvg:(0,S.iv)(Aa||(Aa=I()([` - font-size: 24px; - `])))}},Fo=Zo,Mo=function(){var n=Fo(),i=(0,V.SS)(),r=i.saveEditorText,a=(0,ne.$G)(),l=a.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(re.br,{position:"topright",children:(0,e.jsx)(on.Z,{title:l("clear_control.index.queRenQingKongSuo"),onConfirm:function(){r((0,ot.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(pe.Z,{title:l("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:n.clear,id:"l7-editor-clear",children:(0,e.jsx)(Be,{type:"icon-qingkong",className:n.clearSvg})})})})})})},Io=o(26568),wa,Bo=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorder,u=r.colorIcon,f=r.colorText;return{l7DrawControl:(0,S.iv)(wa||(wa=I()([` - .l7-draw-control { - display: flex; - flex-direction: column; - align-items: center; - margin-right: 0 !important; - box-shadow: `,` !important; - .l7-draw-control__btn { - color: `,`; - background-color: `,`; - border-right: none; - border-bottom: 1px solid `,`; - &:hover { - color: `,`; - } - } - } - `])),l,u,a,s,f)}},ko=Bo,Ro=function(){var n=ta(),i=(0,re.$r)(),r=ko(),a=(0,_.useState)(null),l=c()(a,2),s=l[0],u=l[1],f=(0,V.SS)(),d=f.setIsDraw,y=f.resetFeatures,v=f.features,m=f.revertCoord,T=(0,V.Og)(),A=T.layerColor,C=T.showDrawDistance,w=T.showDrawArea,g=(0,_.useMemo)(function(){return(0,Ct.Z)(v.find(function(j){return j.properties[G.AQ.IsEdit]}))},[v]);(0,_.useEffect)(function(){var j={distanceOptions:C?{}:void 0,areaOptions:w?{}:void 0},b;if(i){var E;b=new ht.DrawControl(i,{position:"topleft",drawConfig:{point:!0,line:j,polygon:j,rect:j,circle:j},commonDrawOptions:{maxCount:1,style:(0,Ee.C2)(A),helper:n}}),u(b),i.addControl(b),b.on(ht.ControlEvent.DrawChange,function(x){d(!!x)});var O=document.querySelector(".l7-draw-control");O.style.marginTop=0,(E=document.querySelector("#l7-draw-content"))===null||E===void 0||E.appendChild(O)}return function(){b&&i.removeControl(b)}},[i,A,C,w]);var D=(0,_.useCallback)(function(j,b){b.properties=Ot()({},G.AQ.DrawType,j),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var E=m([b]);y([].concat(Ae()(v),Ae()(E)))},[s,m,y,v]),P=(0,_.useCallback)(function(j,b){var E=b.properties[G.AQ.Index],O=Ae()(v);O[E].properties[G.AQ.IsEdit]=!1,O[E].geometry=b.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var x=m(O);y(Ae()(x))},[v,s,m,y]);return(0,_.useEffect)(function(){var j=["point","line","polygon","rect","circle"],b=(0,Io.Z)(j.map(function(E){return[E,{onAdd:function(x){return D(E,x)},onEdit:function(x){return P(E,x)}}]}));return j.forEach(function(E){var O=s==null?void 0:s.getTypeDraw(E);O==null||O.on(ht.DrawEvent.Add,b[E].onAdd),O==null||O.on(ht.DrawEvent.Edit,b[E].onEdit)}),function(){j.forEach(function(E){var O=s==null?void 0:s.getTypeDraw(E);O==null||O.off(ht.DrawEvent.Add,b[E].onAdd),O==null||O.off(ht.DrawEvent.Edit,b[E].onEdit)})}},[s,D]),(0,_.useEffect)(function(){if(g&&s){var j,b=(j=g.properties)===null||j===void 0?void 0:j[G.AQ.DrawType];g.properties.isActive=!0,s.setActiveType(b);var E=s.getTypeDraw(b);E==null||E.setData([g])}},[g,s]),(0,e.jsx)(re.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:r.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},Jo=Ro,No=o(154),Za,Go=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.colorIcon,s=r.colorText;return{l7ExportImg:(0,S.iv)(Za||(Za=I()([` - background: `,`; - color: `,`; - svg { - fill: `,` !important; - } - - :hover { - background: `,` !important; - svg { - color: `,` !important; - fill: `,` !important; - } - } - `])),a,l,l,a,s,s)}},zo=Go,Wo=function(){var n=zo(),i=(0,_.useState)(""),r=c()(i,2),a=r[0],l=r[1],s=(0,_.useState)(!1),u=c()(s,2),f=u[0],d=u[1],y=(0,ne.$G)(),v=y.t,m=function(w){d(!0),l(w)},T=function(){d(!1),l("")},A=function(){d(!1),(0,Ee.tg)(a),l("")};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(re.L6,{onExport:m,className:n.l7ExportImg,imageType:"jpeg",position:"bottomright"}),(0,e.jsx)(Zt.Z,{title:v("export-img-control_title"),open:f,okText:v("btn.download_btn.xiaZai"),onOk:A,onCancel:T,children:(0,e.jsx)(No.Z,{src:a})})]})},Uo=o(78730),Ko=o(85752),Cn=o(22840),Ho=o(84135),Vo=o(7741),Qo=o(4639),$o=function(n){var i=n.name,r=n.index,a=n.form,l=(0,V.L0)(),s=l.setFilters,u=(0,V.SS)(),f=u.dataSource,d=(0,ne.$G)(),y=d.t,v=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:y("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(te.Z.Item,{name:[i,"operator"],children:(0,e.jsx)(Te.Z,{style:{width:"100px",marginRight:"8px"},placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:v,onChange:function(){var T=(0,Ct.Z)(a.getFieldValue("filterFromList"));T.forEach(function(A,C){r===C&&(A.value=void 0)}),a.setFieldValue("filterFromList",T),s(T.map(function(A){var C=JSON.parse(A.field),w=C.field,g=C.type;return p()(p()({},A),{},{field:w,type:g})}))}})}),(0,e.jsx)(te.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(T,A){return T.operator===A.operator},children:function(T){var A,C,w,g=T.getFieldsValue,D=g(),P=D.filterFromList,j=(A=JSON.parse(P[r].field))===null||A===void 0?void 0:A.field,b=f.find(function(F){return(F==null?void 0:F.field)===j});if(P[r].operator==="BETWEEN"){var E,O,x,K;return(0,e.jsxs)("div",{children:[(0,e.jsx)(te.Z.Item,{name:[i,"min"],style:{width:"70px"},children:(0,e.jsx)(Qt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(E=b==null?void 0:b.min)!==null&&E!==void 0?E:0,max:(O=b==null?void 0:b.max)!==null&&O!==void 0?O:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(te.Z.Item,{name:[i,"max"],style:{width:"70px"},children:(0,e.jsx)(Qt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(x=b==null?void 0:b.min)!==null&&x!==void 0?x:0,max:(K=b==null?void 0:b.max)!==null&&K!==void 0?K:0})})]})}return(0,e.jsx)(te.Z.Item,{name:[i,"value"],children:(0,e.jsx)(Qt.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(C=b==null?void 0:b.min)!==null&&C!==void 0?C:0,max:(w=b==null?void 0:b.max)!==null&&w!==void 0?w:0})})}})]})},Xo=$o,Yo=o(66603),qo=o(86348),ei=o(93274),ti=function(n){var i=n.name,r=n.index,a=n.form,l=(0,ei.Z)(),s=l.setFilters,u=(0,qo.Z)(),f=u.dataSource,d=(0,ne.$G)(),y=d.t,v=[{label:y("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:y("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:y("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:y("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(te.Z.Item,{name:[i,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(Te.Z,{placeholder:y("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:v,onChange:function(){var T=(0,Ct.Z)(a.getFieldValue("filterFromList"));T.forEach(function(A,C){r===C&&(A.value=void 0)}),a.setFieldValue("filterFromList",T),s(T.map(function(A){var C=JSON.parse(A.field),w=C.field,g=C.type;return p()(p()({},A),{},{field:w,type:g})}))}})}),(0,e.jsx)(te.Z.Item,{shouldUpdate:function(T,A){return T.operator!==A.operator},style:{width:150,margin:0},children:function(T){var A,C,w=T.getFieldsValue,g=w(),D=g.filterFromList,P=(A=JSON.parse(D[r].field))===null||A===void 0?void 0:A.field,j=f.find(function(E){return(E==null?void 0:E.field)===P}),b=D[r].operator;return b==="LIKE"||b==="NOT_LIKE"?(0,e.jsx)(te.Z.Item,{name:[i,"value"],children:(0,e.jsx)(_t.Z,{placeholder:y("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(te.Z.Item,{name:[i,"value"],children:(0,e.jsx)(Te.Z,{placeholder:y("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((C=(0,Yo.Z)(j==null?void 0:j.value))!==null&&C!==void 0?C:[]).filter(function(E){return E!=="undefined"}).map(function(E){return(0,e.jsx)(Te.Z.Option,{value:E,children:(0,e.jsx)(pe.Z,{title:E,children:E})},E)})})})}})]})},ni=ti,Fa,Ma,ai=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow;return{l7FilterPanel:(0,S.iv)(Fa||(Fa=I()([` - position: relative; - `]))),l7Filter:(0,S.iv)(Ma||(Ma=I()([` - display: flex; - background: `,`; - padding: 16px; - margin-right: 8px; - position: absolute; - right: 35px; - bottom: 0; - box-shadow: `,` !important; - .ant-form-item { - margin-bottom: 0; - } - .ant-btn { - margin-left: px; - } - `])),a,l)}},ri=ai,Sn=Te.Z.Option,oi=function(){var n=(0,V.SS)(),i=n.dataSource,r=(0,V.L0)(),a=r.setFilters,l=r.filters,s=(0,_.useState)(!1),u=c()(s,2),f=u[0],d=u[1],y=(0,ne.$G)(),v=y.t,m=te.Z.useForm(),T=c()(m,1),A=T[0],C=ri(),w=Gt(),g=(0,_.useMemo)(function(){return!i.length},[i]),D=function(b,E){if((0,Xt.Z)(E.filterFromList)){a([]);return}var O=E.filterFromList.filter(function(x){return x}).map(function(x){var K=x.logic,F=x.operator;if(x.field){var k=JSON.parse(x.field||""),L=k.field,U=k.type;return x.operator==="BETWEEN"&&x.min&&x.max?{logic:K,field:L,type:U,operator:F,value:[x.min,x.max]}:(x.operator==="IN"||x.operator==="NO_IN")&&x.value?p()(p()({},x),{},{field:L,type:U,value:x.value.length?x.value:void 0}):p()(p()({},x),{},{field:L,type:U})}else return p()(p()({},x),{},{field:void 0,type:void 0})});a(O)},P=(0,_.useMemo)(function(){return l.filter(function(j){return!na(j)}).find(function(j){return j})},[l]);return(0,e.jsxs)(re.br,{position:"bottomright",className:C.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:C.l7Filter,style:{display:f?"block":"none"},children:(0,e.jsx)(te.Z,{style:{width:"100%"},form:A,onValuesChange:(0,Qo.Z)(D,500),children:(0,e.jsx)(te.Z.List,{name:"filterFromList",children:function(b,E){var O=E.add,x=E.remove;return(0,e.jsxs)(e.Fragment,{children:[b.map(function(K,F){var k,L,U=K.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(te.Z.Item,{name:[U,"logic"],initialValue:"and",children:(0,e.jsxs)(Te.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(Sn,{value:"and",children:v("filter_form_list_control.index.bingQie")}),(0,e.jsx)(Sn,{value:"or",children:v("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(te.Z.Item,{name:[U,"field"],initialValue:JSON.stringify({field:(k=i[0])===null||k===void 0?void 0:k.field,type:(L=i[0])===null||L===void 0?void 0:L.type}),children:(0,e.jsx)(Te.Z,{style:{width:130,marginRight:"8px"},placeholder:v("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var Z=(0,Ct.Z)(A.getFieldValue("filterFromList"));Z.forEach(function(J,H){F===H&&(J.operator=void 0,J.value=void 0)}),A.setFieldValue("filterFromList",Z),a(Z.map(function(J){var H=JSON.parse(J.field),Y=H.field,X=H.type;return p()(p()({},J),{},{field:Y,type:X})}))},children:i.map(function(R){var Z=R.field,J=R.type;return(0,e.jsxs)(Sn,{value:JSON.stringify({field:Z,type:J}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:J==="number"?(0,e.jsx)(Uo.Z,{}):(0,e.jsx)(Ko.Z,{})}),(0,e.jsx)(pe.Z,{title:Z,children:Z})]},Z)})})}),(0,e.jsx)(te.Z.Item,{shouldUpdate:function(Z,J){return Z.field===J.field},style:{margin:0},children:function(Z){var J=Z.getFieldsValue,H=J(),Y=H.filterFromList;if(Y[F].field){var X=JSON.parse(Y[F].field),he=X.type;return he==="number"?(0,e.jsx)(Xo,{name:U,index:F,form:A}):(0,e.jsx)(ni,{name:U,index:F,form:A})}}}),(0,e.jsx)(N.ZP,{type:"text",onClick:function(){x(U),a(A.getFieldValue("filterFromList"))},icon:(0,e.jsx)(vn.Z,{})})]},U)}),(0,e.jsx)(N.ZP,{type:"dashed",disabled:g,onClick:function(){O()},block:!0,icon:(0,e.jsx)(Cn.Z,{}),style:{width:500},children:v("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(pe.Z,{title:v("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:w.L7EditorControl,onClick:function(){d(!f)},children:P?(0,e.jsx)(Vo.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Ho.Z,{style:{lineHeight:"30px"}})})})]})},ii=oi,li=_t.Z.TextArea,si=function(){var n=(0,re.$r)(),i=Gt(),r=(0,ne.$G)(),a=r.t,l=(0,_.useState)(!1),s=c()(l,2),u=s[0],f=s[1],d=(0,_.useState)(""),y=c()(d,2),v=y[0],m=y[1],T=function(){f(!0);var g={center:[n.getCenter().lng,n.getCenter().lat],zoom:n.getZoom(),pitch:Number(n.getPitch().toFixed(6)),rotation:n.getRotation()};m(JSON.stringify(g,null,2))},A=function(){var g=new(Xn())("#l7-option-copy_btn",{text:function(){return v}});g.on("success",function(){f(!1),ke.ZP.success(a("layer_contextmenu_popup.fuZhiChengGong")),g.destroy()})},C=function(){f(!1)};return(0,e.jsxs)(re.br,{position:"bottomleft",children:[(0,e.jsx)(pe.Z,{placement:"left",overlay:a("l7Options.huoqucanshu"),children:(0,e.jsx)("button",{className:i.L7EditorControl,id:"text-layer-control",onClick:T,children:(0,e.jsx)(Be,{type:"icon-xitongzhuangtai"})})}),(0,e.jsx)(Zt.Z,{title:a("l7Options.dangqiancanshu"),open:u,onCancel:C,width:800,destroyOnClose:!0,footer:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(N.ZP,{onClick:C,children:a("btn.setting_btn.guanBi")}),(0,e.jsx)(N.ZP,{type:"primary",id:"l7-option-copy_btn",onClick:A,children:a("layer_contextmenu_popup.fuZhi")})]}),children:(0,e.jsx)(li,{rows:10,value:v,onChange:function(g){m(g.target.value)}})})]})},ui=o(61611),Ia,ci=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.boxShadow;return{l7ButtonControl:(0,S.iv)(Ia||(Ia=I()([` - min-width: auto; - width: 28px; - height: 28px; - border: none; - box-shadow: `,`; - cursor: pointer; - border-radius: 2px; - .ant-color-picker-color-block { - width: 22px; - height: 22px; - border-radius: 2px; - } - `])),a)}},di=ci,pi=function(){var n=(0,V.Og)(),i=n.layerColor,r=n.setLayerColor,a=(0,ne.$G)(),l=a.t,s=di();return(0,e.jsx)(re.br,{position:"bottomright",children:(0,e.jsx)(pe.Z,{title:l("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)(ui.Z,{value:i,className:Se()([s.l7ButtonControl]),onChange:function(f,d){r(d)},format:"rgb",presets:[{label:l("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},fi=pi,Ba,ka,Ra,_i=function(){return{locationSearch:(0,S.iv)(Ba||(Ba=I()([` - min-width: 200px; - `]))),locationSearchName:(0,S.iv)(ka||(ka=I()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - `]))),locationSearchTip:(0,S.iv)(Ra||(Ra=I()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - color: #818181; - font-size: 12px; - `])))}},hi=_i;function vi(h,n){return"".concat(h,"?").concat(Object.entries(n).map(function(i){var r=c()(i,2),a=r[0],l=r[1];return"".concat(a,"=").concat(window.encodeURIComponent(String(l)))}).join("&"))}var mi=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],gi=Te.Z.Option,Ja=function(n){var i=n.searchParams,r=n.showDistrict,a=n.showAddress,l=n.onSearchFinish,s=n.onChange,u=Mn()(n,mi),f=hi(),d=(0,_.useState)([]),y=c()(d,2),v=y[0],m=y[1],T=(0,ne.$G)(),A=T.t;(0,_.useEffect)(function(){l==null||l(v)},[l,v]);var C=(0,bn.Z)(function(){var D=Xe()(De()().mark(function P(j){var b,E,O,x;return De()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(j){F.next=3;break}return m([]),F.abrupt("return");case 3:return O=vi("https://restapi.amap.com/v3/assistant/inputtips",p()(p()({},i),{},{keywords:[].concat(Ae()(((b=i.keywords)!==null&&b!==void 0?b:"").split("|")),[j]).filter(function(k){return!!k}).join("|")})),F.next=6,fetch(O);case 6:return F.next=8,F.sent.json();case 8:x=F.sent,m(((E=x==null?void 0:x.tips)!==null&&E!==void 0?E:[]).filter(function(k){return k.location&&k.location.length}).map(function(k){var L=k.location.split(","),U=c()(L,2),R=U[0],Z=U[1];return k.longitude=+R,k.latitude=+Z,k}));case 10:case"end":return F.stop()}},P)}));return function(P){return D.apply(this,arguments)}}(),{wait:1e3}),w=C.run,g=(0,_.useCallback)(function(D){var P=D&&v.find(function(j){return j.name===D});s==null||s(D||void 0,P||void 0)},[s,v]);return(0,e.jsx)(Te.Z,p()(p()({className:f.locationSearch,onSearch:w,onChange:g,placeholder:A("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:v.map(function(D){var P="".concat(r?D.district:"").concat(a?D.address:"");return(0,e.jsxs)(gi,{value:D.name,label:D.name,children:[(0,e.jsx)("div",{title:D.name,className:f.locationSearchName,children:D.name}),P&&(0,e.jsx)("div",{title:P,className:f.locationSearchTip,children:P})]},D.id)})}))};Ja.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var xi=_.memo(function(){var h=(0,re.$r)(),n=(0,_.useState)(),i=c()(n,2),r=i[0],a=i[1],l=(0,_.useState)(""),s=c()(l,2),u=s[0],f=s[1],d=(0,V.SS)(),y=d.features,v=d.resetFeatures,m=(0,V.Og)(),T=m.layerColor,A=(0,_.useState)(),C=c()(A,2),w=C[0],g=C[1],D=(0,ne.$G)(),P=D.t,j=(0,_.useCallback)(function(){if(h){var b=h.getCenter(),E=b.lng,O=b.lat;f("".concat(E,",").concat(O))}},[h]);return(0,_.useEffect)(function(){return j(),h==null||h.on("moveend",j),h==null||h.on("zoomend",j),function(){h==null||h.off("moveend",j),h==null||h.off("zoomend",j)}},[h,j]),(0,ln.Z)(Xe()(De()().mark(function b(){var E;return De()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return E=gn()(T).rgb().object(),x.t0=g,x.next=4,xn(E,{x:100,y:100});case 4:x.t1=x.sent,(0,x.t0)(x.t1);case 6:case"end":return x.stop()}},b)})),[T]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(re.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(Ja,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:r==null?void 0:r.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(E,O){if(O){var x=h.getZoom();h.setZoomAndCenter(x>16?x:16,[O.longitude,O.latitude])}a(O)}})})})})})}),r&&(0,e.jsx)(re.Jx,{lngLat:{lng:r.longitude,lat:r.latitude},children:(0,e.jsx)(qe.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(N.ZP,{type:"primary",onClick:function(){var E=r.longitude,O=r.latitude;v([].concat(Ae()(y),[(0,je.point)([E,O],r)])),a(void 0)},children:P("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(N.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){a(void 0)},children:P("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:w==null?void 0:w.src})})})]})}),yi=xi,Na,Ga,bi=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorText,l=r.colorBgContainer,s=r.boxShadow,u=r.colorTextDescription;return{mapAdministrative:(0,S.iv)(Na||(Na=I()([` - background: `,`; - color: `,`; - box-shadow: `,`; - `])),l,a,s),regionLocation:(0,S.iv)(Ga||(Ga=I()([` - background: `,` !important; - color: `,` !important; - padding: 2px 4px !important; - `])),l,u)}},Ci=bi,Si=function(){var n=Ci();return(0,e.jsx)(re.br,{className:Se()(["map-administrative-control",n.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(re.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:n.regionLocation})})},za,Wa,Ti=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorTextDescription,l=r.colorBgContainer,s=r.colorPrimary,u=r.colorBorder,f=r.colorText,d=r.colorBgElevated,y=r.colorFillSecondary;return{mapTheme:(0,S.iv)(za||(za=I()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),a,l,u,a,f),mapThemePopper:(0,S.iv)(Wa||(Wa=I()([` - *::-webkit-scrollbar { - width: 8px; - background-color: `,`; - } - *::-webkit-scrollbar-thumb { - background-color: `,`; - border-radius: 10px; - } - .l7-popper-content { - color: `,`; - background: `,`; - - .l7-select-control-item:hover { - box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), - 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); - } - - .l7-select-control-item { - border: 1px solid `,`; - border-radius: 4px; - } - - .l7-select-control-item-active { - border: 1px solid `,`; - } - } - - &.l7-popper-right .l7-popper-arrow\xA0 { - border-right-color: `,`; - } - - &.l7-popper-left .l7-popper-arrow\xA0 { - border-left-color: `,`; - } - - &.l7-popper-bottom .l7-popper-arrow\xA0 { - border-bottom-color: `,`; - } - - &.l7-popper-top .l7-popper-arrow\xA0 { - border-top-color: `,`; - } - `])),d,y,f,l,u,s,d,d,d,d)}},ji=Ti,Ei=function(){var n=(0,V.Og)(),i=n.setMapOptions,r=ji();return(0,e.jsx)(re.w3,{className:Se()([r.mapTheme,"l7-editor-mapTheme"]),popperClassName:r.mapThemePopper,position:"bottomright",onSelectChange:function(l){i(function(s){return p()(p()({},s),{},{style:l})})}})},Di=Ei,Ua=o(59554),Oi=o(51383),Pi=o(22251),Li=o(75995),Ka,Ha,Va,Qa,$a,Xa,Ya,qa,er,Ai=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgElevated,l=r.colorBgContainer,s=r.colorText,u=r.colorIcon,f=r.boxShadow;return{mapTab:(0,S.iv)(Ka||(Ka=I()([` - background-color: `,`; - border-radius: 4px; - display: flex; - align-items: center; - box-shadow: `,`; - &:hover .add-map { - display: block; - } - .add-map { - display: none; - text-align: center; - &:hover { - display: block; - color: #1677ff; - } - } - `])),a,f),hideOfficeLayerBtn:(0,S.iv)(Ha||(Ha=I()([` - height: 127px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background: `,`; - border-radius: 4px; - cursor: pointer; - font-size: 16px; - z-index: 2; - .anticon { - transition: all 0.2s; - } - color: `,`; - `])),a,u),amapInfo:(0,S.iv)(Va||(Va=I()([` - display: flex; - align-items: center; - padding: 10px; - cursor: pointer; - `]))),amapInfoItemImage:(0,S.iv)(Qa||(Qa=I()([` - width: 142px; - height: 80px; - `]))),amapInfoItem:(0,S.iv)($a||($a=I()([` - text-align: center; - margin-left: 10px; - object-fit: cover; - &:first-child { - margin-left: 0px; - } - box-sizing: border-box; - border-radius: 4px; - position: relative; - - &: hover .item-clear { - display: block; - } - - &: hover .item-edit { - display: block; - } - - .item-edit { - position: absolute; - right: 41px; - bottom: 30px; - display: none; - width: 25px; - height: 25px; - line-height: 25px; - text-align: center; - background: #fff; - border-radius: 4px; - cursor: pointer; - - &:hover { - color: #1677ff; - } - } - - .item-clear { - position: absolute; - right: 8px; - bottom: 30px; - display: none; - width: 25px; - height: 25px; - line-height: 25px; - text-align: center; - background: #fff; - border-radius: 4px; - cursor: pointer; - - &:hover { - color: #1677ff; - } - } - `]))),amapInfoItemTitle:(0,S.iv)(Xa||(Xa=I()([` - color: `,`; - `])),s),itemBorder:(0,S.iv)(Ya||(Ya=I()([` - border: 2px solid `,`; - `])),l),itemBorderActive:(0,S.iv)(qa||(qa=I()([` - border: solid 2px #1677ff; - `]))),addMapIcon:(0,S.iv)(er||(er=I()([` - border: dashed 1px rgb(217, 217, 217); - height: 103px; - width: 142px; - object-fit: cover; - border-radius: 4px; - line-height: 103px; - margin-left: 10px; - cursor: pointer; - &:hover { - border: dashed 1px #1677ff; - } - `])))}},wi=Ai,tr={labelCol:{span:4},wrapperCol:{span:16}},nr={labelCol:{span:6},wrapperCol:{span:15}};function Zi(){var h=te.Z.useForm(),n=c()(h,1),i=n[0],r=wi(),a=(0,V.Og)(),l=a.layerType,s=a.setLayerType,u=a.customTiles,f=a.setCustomTiles,d=a.locale,y=(0,ne.$G)(),v=y.t,m=(0,_.useState)(l.length?l[0]:G.dY.VectorMap),T=c()(m,2),A=T[0],C=T[1],w=(0,_.useState)(!1),g=c()(w,2),D=g[0],P=g[1],j=(0,_.useState)(!1),b=c()(j,2),E=b[0],O=b[1],x=(0,_.useState)(-1),K=c()(x,2),F=K[0],k=K[1],L=(0,_.useState)(null),U=c()(L,2),R=U[0],Z=U[1],J=(0,_.useState)([]),H=c()(J,2),Y=H[0],X=H[1],he=(0,ge.Z)("hideOfficeLayer",{defaultValue:!0}),be=c()(he,2),we=be[0],ze=be[1],ct=function(){i.submit()},Qe=[{id:G.dY.VectorMap,title:v("official_layer_control.index.shiLiangDiTu"),image:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*qdFDSbvIalgAAAAAAAAAAAAADmJ7AQ/original",layers:[]},{id:G.dY.GoogleSatellite,title:v("official_layer_control.index.guGeWeiXingTu"),image:"https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*zi2jSqqZ2-8AAAAAAAAAAAAADjWqAQ/original",layers:[G.ay,G.AF]}],Re=(0,_.useMemo)(function(){return u.length?[].concat(Qe,Ae()(u)):Qe},[u,v]),vt=function(B){var M=new FileReader;return M.readAsDataURL(B),M.onload=function(){var W=M.result;Z(W)},!1},Ft=function(B){C(B.id),s(B.id===G.dY.VectorMap?[]:[B.id])},Mt=function(B){if(E){var M=(0,Ct.Z)(u),W=Array.isArray(B.img)?B.img[0].url:"".concat(R);M[F-2]={id:B.name,image:W,title:B.name,layers:B.urls},f(M),O(!1),k(-1)}else f(function(_e){return[].concat(Ae()(_e),[{id:B.name,image:"".concat(R),title:B.name,layers:B.urls}])});O(!1),X([]),P(!1)},zt=function(){P(!1),O(!1),X([]),k(-1),i.resetFields()},Wt=function(B,M){B==null||B.stopPropagation();var W=u.filter(function(_e){return _e.id!==M.id});M.id===A&&(C(G.dY.VectorMap),s([])),f(W)},It=function(B,M){var W=M.toLowerCase(),_e=[];if(E){var ce=(0,Ct.Z)(Re);ce.splice(F,1),_e=Ae()(ce)}else _e=Re;var me=_e.every(function(Je){return Je.title.toLowerCase()!==W});return me?M&&M.trim()===""?Promise.reject(v("official_layer_control.index.kongGe")):Promise.resolve():Promise.reject(v("official_layer_control.index.mingChengChongFu"))},nt=function(B,M){var W=Promise.reject(v("official_layer_control.index.shangchuan"));return M.fileList?M.fileList.length?Promise.resolve():W:M.length?Promise.resolve():W},mt=function(B){var M=Ae()(B.fileList);M=M.slice(-2),M=M.map(function(W){return W.response&&(W.url=W.response.url),W}),X(M)},Ut=(0,_.useMemo)(function(){if(l.length){var oe=Re.find(function(B){return B.id===l[0]});return oe==null?void 0:oe.layers.map(function(B){return(0,e.jsx)(re.YY,{zIndex:1,id:oe.id===G.dY.GoogleSatellite&&B===G.ay?"googleTileMap":void 0,source:{data:B,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}})})}else return null},[l,Re]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(re.br,{position:"bottomleft",children:[(0,e.jsxs)("div",{className:r.mapTab,id:"l7-editor-aMap",children:[(0,e.jsx)("div",{className:r.hideOfficeLayerBtn,onClick:function(){ze(!we)},children:(0,e.jsx)(Ua.Z,{style:{transform:we?"rotate(-180deg)":void 0}})}),we&&(0,e.jsxs)("div",{className:r.amapInfo,children:[Re.map(function(oe,B){return(0,e.jsxs)("div",{className:Se()([r.amapInfoItem,oe.id===A?r.itemBorderActive:r.itemBorder,B===Re.length-1?"item-hover":""]),onClick:function(){Ft(oe)},children:[B>1&&(0,e.jsx)(on.Z,{title:v("official_layer_control.index.shanChuDiTu"),onConfirm:function(W){return Wt(W,oe)},onCancel:function(W){W==null||W.stopPropagation()},children:(0,e.jsx)("div",{className:"item-clear",onClick:function(W){W.stopPropagation()},children:(0,e.jsx)(vn.Z,{})})}),B>1&&(0,e.jsx)("div",{className:"item-edit",onClick:function(W){k(B),W.stopPropagation(),O(!0),P(!0),X([{uid:"-1",name:"".concat(oe.title),status:"done",url:oe.image}]),i.setFieldsValue({name:oe.title,urls:oe.layers,img:[{uid:"-1",name:"".concat(oe.title),status:"done",url:oe.image}]})},children:(0,e.jsx)(Oi.Z,{})}),(0,e.jsx)("img",{src:oe.image,alt:"",className:r.amapInfoItemImage}),(0,e.jsx)("div",{className:r.amapInfoItemTitle,style:{marginTop:0},children:oe.title})]},oe.id)}),(0,e.jsx)("div",{className:"add-map",children:(0,e.jsx)("div",{onClick:function(){P(!0),i.resetFields()},children:(0,e.jsx)("div",{className:r.addMapIcon,children:(0,e.jsx)(Cn.Z,{})})})})]})]}),(0,e.jsx)(Zt.Z,{title:v("official_layer_control.index.tianJiaDitu"),open:D,destroyOnClose:!0,onOk:ct,onCancel:zt,width:600,children:(0,e.jsxs)(te.Z,{form:i,initialValues:{urls:[""]},onFinish:Mt,children:[(0,e.jsx)(te.Z.Item,p()(p()({},d==="zh-CN"?tr:nr),{},{name:"name",label:v("official_layer_control.index.name"),rules:[{required:!0},{validator:It}],children:(0,e.jsx)(_t.Z,{placeholder:v("official_layer_control.index.addName"),style:{width:390}})})),(0,e.jsx)(te.Z.Item,p()(p()({},d==="zh-CN"?tr:nr),{},{name:"img",label:v("official_layer_control.index.shiLiTuPian"),rules:[{required:!0,validator:nt}],children:(0,e.jsx)(Dn.Z,{beforeUpload:vt,accept:".png,.jpg",maxCount:1,onChange:mt,fileList:Y,onRemove:function(){X([])},children:(0,e.jsx)(N.ZP,{icon:(0,e.jsx)(Pi.Z,{}),children:v("import_btn.index.shangChuan")})})})),(0,e.jsx)(te.Z.List,{name:"urls",children:function(B,M){var W=M.add,_e=M.remove;return(0,e.jsxs)(e.Fragment,{children:[B.map(function(ce,me){return(0,e.jsxs)(Oe.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(te.Z.Item,p()(p()({},ce),{},{label:me===0?v("official_layer_control.index.tuCengDiZhi"):"",rules:[{required:!0,message:v("official_layer_control.index.qiShuRutuCengDiZhi")},{validator:It}],style:{marginLeft:d==="zh-CN"?me===0?10:90:me===0?18:134},children:(0,e.jsx)(_t.Z,{placeholder:G.ay,style:{width:390}})})),B.length>1?(0,e.jsx)(Li.Z,{onClick:function(){return _e(ce.name)}}):null]},ce.key)}),(0,e.jsx)(te.Z.Item,{style:{textAlign:"center"},children:(0,e.jsx)(N.ZP,{type:"dashed",onClick:function(){return W()},icon:(0,e.jsx)(Cn.Z,{}),style:{width:390,marginLeft:d==="zh-CN"?20:104},children:v("official_layer_control.index.tinJiaWaPian")})})]})}})]})})]}),(0,e.jsx)("div",{children:Ut})]})}var ar=o(81930),Fi=o(51218),rr,Mi=function(){return{marker:(0,S.iv)(rr||(rr=I()([` - color: #fff; - background: #ff0000; - font-size: 12px; - padding: 6px; - `])))}},Ii=Mi,Bi={shape:"line",size:3,color:"#ff0000",state:{active:!1},style:{opacity:1,lineType:"solid"},zIndex:100,animate:{interval:.6,trailLength:1.5,duration:4}},ki=function(){var n=Ii(),i=Gt(),r=(0,_.useState)(null),a=c()(r,2),l=a[0],s=a[1],u=(0,V.SS)(),f=u.scene,d=u.features,y=u.resetFeatures,v=u.revertCoord,m=u.bboxAutoFit,T=(0,V.Og)(),A=T.wasmPath,C=(0,re.dN)(),w=(0,_.useState)(!1),g=c()(w,2),D=g[0],P=g[1],j=(0,_.useState)(void 0),b=c()(j,2),E=b[0],O=b[1],x=(0,_.useState)(void 0),K=c()(x,2),F=K[0],k=K[1],L=(0,_.useState)(void 0),U=c()(L,2),R=U[0],Z=U[1],J=(0,_.useState)(!1),H=c()(J,2),Y=H[0],X=H[1],he=(0,_.useState)(void 0),be=c()(he,2),we=be[0],ze=be[1],ct=(0,_.useState)(void 0),Qe=c()(ct,2),Re=Qe[0],vt=Qe[1],Ft=(0,_.useState)({data:{type:"FeatureCollection",features:[]}}),Mt=c()(Ft,2),zt=Mt[0],Wt=Mt[1],It=(0,ne.$G)(),nt=It.t,mt=(0,_.useCallback)(function(oe){var B=[oe.lngLat.lng,oe.lngLat.lat];if(Re)if((0,je.booleanPointInPolygon)((0,je.point)(B),Re)){if(l){var M=l.lngLat2ImagePixel(B),W=[{x:M[0],y:M[1],clickType:1}],_e=1;l.predict(W).then(function(){var ce=Xe()(De()().mark(function me(Je){var Ie,st,We,dt;return De()().wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,l.exportGeoPolygon(Je,_e);case 2:Ie=at.sent,st=l.exportImageClip(Je),We={feature:Ie.features,imageUrl:st.src},(0,je.booleanPointInPolygon)((0,je.point)(B),We==null?void 0:We.feature[0])&&(We==null?void 0:We.feature[0].geometry.coordinates[0].length)>4?(dt=v(We.feature),y([].concat(Ae()(d),Ae()(dt)))):ke.ZP.warning(nt("map_control_group.sam.tuXingJieXiCuoWu"));case 6:case"end":return at.stop()}},me)}));return function(me){return ce.apply(this,arguments)}}())}}else ke.ZP.error(nt("map_control_group.sam.qingZaiQuYuNei"))},[Re,l,d,nt]),Ut=function(){var oe=Xe()(De()().mark(function B(){var M,W,_e,ce,me,Je,Ie,st,We,dt,St,at,rt,qt,en,sn,Tn,_r,tn,un,jn,hr,cn;return De()().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(X(!0),Ye.prev=1,!(!E||!l)){Ye.next=4;break}return Ye.abrupt("return");case 4:return W=E.layer.getSource(),_e=W==null||(M=W.tileset)===null||M===void 0?void 0:M.currentTiles,ce=1/0,me=1/0,Je=-1/0,Ie=-1/0,_e==null||_e.forEach(function(Tt){ce=Math.min(ce,Tt.x),me=Math.min(me,Tt.y),Je=Math.max(Je,Tt.x),Ie=Math.max(Ie,Tt.y)}),st=Math.ceil(f==null?void 0:f.getZoom()),We=document.createElement("canvas"),We.width=(Je-ce+1)*256,We.height=(Ie-me+1)*256,dt=We.getContext("2d"),St=l.mapHelper,at=[].concat(Ae()(St.tileToLngLat(ce,Ie+1,st)),Ae()(St.tileToLngLat(Je+1,me,st))),_e==null||_e.forEach(function(Tt){Tt&&(dt==null||dt.drawImage(Tt.data,(Tt.x-ce)*256,(Tt.y-me)*256,256,256))}),l.setGeoImage(We.toDataURL(),{extent:at,width:We.width,height:We.height}),rt=We.toDataURL("image/jpeg"),qt=rt.indexOf(","),en=rt==null?void 0:rt.substring(qt+1),sn="https://sam.lvisei.icu/api",Tn=new FormData,Tn.append("image_path",en),Ye.next=28,fetch(sn,{body:Tn,method:"post"});case 28:return Ye.next=30,Ye.sent.arrayBuffer();case 30:_r=Ye.sent;try{tn=St.tileToLngLat(Je+1,me,st),un=St.tileToLngLat(ce,Ie+1,st),jn=[un[0],tn[1]],hr=[tn[0],un[1]],cn=(0,je.polygon)([[tn,jn,un,hr,tn]]),ze(jn),vt(cn),Wt({data:{type:"FeatureCollection",features:[cn]}}),m([cn]),l.setEmbedding(_r),ke.ZP.success(nt("map_control_group.sam.jiSuanWanCheng"))}catch(Tt){console.log(Tt)}Ye.next=38;break;case 34:Ye.prev=34,Ye.t0=Ye.catch(1),ke.ZP.error(nt("map_control_group.sam.jiSuanShiBai")),f==null||f.off("click",mt);case 38:return Ye.prev=38,X(!1),Ye.finish(38);case 41:case"end":return Ye.stop()}},B,null,[[1,34,38,41]])}));return function(){return oe.apply(this,arguments)}}();return(0,_.useEffect)(function(){var oe=new ar.XU({modelUrl:ar.AK,wasmPaths:A});oe.initModel().then(function(){s(oe)}).catch(function(){ke.ZP.error(nt("map_control_group.sam.diKuaiShiBieShiBei"))})},[]),(0,_.useEffect)(function(){if(!(0,Xt.Z)(C)){var oe=C.find(function(W){return W.id==="googleTileMap"}),B=C.find(function(W){return W.id===G.d7.PolygonLayer}),M=C.find(function(W){return W.id==="hoverLayer"});Z(M),k(B),O(oe)}},[C]),(0,_.useEffect)(function(){return F&&(D?F.on("unclick",mt):(Wt({data:{type:"FeatureCollection",features:[]}}),ze(void 0),F.off("unclick",mt))),function(){F==null||F.off("unclick",mt)}},[D,f,mt]),(0,_.useEffect)(function(){D&&l&&Ut()},[D,l]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(re.br,{position:"bottomright",children:(0,e.jsx)(pe.Z,{title:nt("map_control_group.sam.zhiNengXuanZe"),placement:"left",children:(0,e.jsx)(Fi.Z,{spinning:Y,children:(0,e.jsx)("button",{type:"button",className:i.L7EditorControl,onClick:function(){l&&P(!D),D&&ke.ZP.success(nt("map_control_group.sam.zhiNengShiBieGuanBi"))},children:(0,e.jsx)(Be,{type:"icon-zhinengshibie",style:{fontSize:20,color:D?"#1677ff":""},className:i.l7EditorIcon})})})})}),we&&(0,e.jsx)(re.Jx,{lngLat:{lng:we[0],lat:we[1]},anchor:"center",offsets:[54,-16],children:(0,e.jsx)("div",{className:n.marker,children:nt("map_control_group.sam.ziDongShiBie")})}),(0,e.jsx)(re.Ie,p()(p()({},Bi),{},{source:zt}))]})},or,Ri=function(){return{textLayerForm:(0,S.iv)(or||(or=I()([` - .ant-form-item { - margin-bottom: 12px !important; - } - `])))}},Ji=Ri,Ni=function(){var n=Gt(),i=Ji(),r=(0,V.Og)(),a=r.showTextLayer,l=r.setShowTextLayer,s=r.textLayerFields,u=r.setTextLayerFields,f=(0,V.SS)(),d=f.features,y=(0,_.useState)([]),v=c()(y,2),m=v[0],T=v[1],A=(0,ne.$G)(),C=A.t,w=function(){var D=new Set;d.forEach(function(P){var j=P.properties;j&&Object.keys(j).forEach(function(b){D.add(b)})}),T(Array.from(D))};return(0,e.jsx)(re.br,{position:"bottomleft",children:(0,e.jsx)(qe.Z,{title:C("text-layer-control_wenBenBiaoZhu"),overlayStyle:{width:300},content:(0,e.jsxs)(te.Z,{size:"small",className:i.textLayerForm,children:[(0,e.jsx)(te.Z.Item,{label:C("text-layer-control_shiFouZhanShiTuCeng"),children:(0,e.jsx)(rn.Z,{value:a,onChange:l})}),(0,e.jsx)(te.Z.Item,{label:C("text-layer-control_zhanShiZiDuan"),children:(0,e.jsx)(Te.Z,{value:s,onChange:u,placeholder:C("text-layer-control_buXuan"),mode:"multiple",options:m.map(function(g){return{label:g,value:g}})})})]}),trigger:"click",onOpenChange:function(D){D&&w()},children:(0,e.jsx)(pe.Z,{placement:"left",overlay:C("text-layer-control_wenBenTuCengPeiZhi"),children:(0,e.jsx)("button",{className:n.L7EditorControl,id:"text-layer-control",children:(0,e.jsx)(Be,{type:"icon-wenbenkuang"})})})})})},ir={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0,textLayerControl:!0,exportImageControl:!0,L7MapOptionControl:!0},Gi=function(n){var i=n.mapControl,r=(0,V.Og)(),a=r.baseMap,l=r.layerType,s=Gt(),u=(0,_.useState)(ir),f=c()(u,2),d=f[0],y=f[1];return(0,_.useEffect)(function(){y(p()(p()({},ir),i))},[i]),(0,e.jsxs)(e.Fragment,{children:[d.logoControl&&(0,e.jsx)(re.OB,{position:"leftbottom"}),d.scaleControl&&(0,e.jsx)(re.jf,{position:"leftbottom",className:s.scalesControl}),d.mouseLocationControl&&(0,e.jsx)(re.CB,{position:"leftbottom",className:s.mouseLocatio}),d.drawControl&&(0,e.jsx)(Jo,{}),d.clearControl&&(0,e.jsx)(Mo,{}),d.zoomControl&&(0,e.jsx)(re.Ly,{className:s.zoom,showZoom:!0,position:"rightbottom"}),d.mapAdministrativeControl&&(0,e.jsx)(Si,{}),d.administrativeSelectControl&&(0,e.jsx)(Lo,{}),d.locationSearchControl&&(0,e.jsx)(yi,{}),d.filterControl&&(0,e.jsx)(ii,{}),a==="Gaode"&&d.officialLayerControl&&(0,e.jsx)(Zi,{}),d.mapThemeControl&&(0,e.jsx)(Di,{}),d.geoLocateControl&&(0,e.jsx)(re.l_,{position:"topleft",className:s.fullScreen}),d.layerColorControl&&(0,e.jsx)(fi,{}),d.autoControl&&(0,e.jsx)(wo,{}),d.fullscreenControl&&(0,e.jsx)(re.ot,{position:"bottomright",className:s.fullScreen}),l.includes(G.dY.GoogleSatellite)&&(0,e.jsx)(ki,{}),d.textLayerControl&&(0,e.jsx)(Ni,{}),d.exportImageControl&&(0,e.jsx)(Wo,{}),d.L7MapOptionControl&&(0,e.jsx)(si,{})]})},zi=o(82334),lr,sr,ur,cr,dr,Wi=function(){var n=Me.Z.useToken,i=n(),r=i.token,a=r.colorBgContainer,l=r.boxShadow,s=r.colorBorderSecondary,u=r.colorInfoHover,f=r.colorIcon;return{resizePanel:(0,S.iv)(lr||(lr=I()([` - width: 100%; - height: calc(100% - 50px); - display: flex; - position: relative; - `]))),resizePanelLeft:(0,S.iv)(sr||(sr=I()([` - position: absolute; - left: 0; - top: 0; - bottom: 0; - overflow: hidden; - `]))),resizePanelRight:(0,S.iv)(ur||(ur=I()([` - position: relative; - border-left: 1px solid `,`; - box-shadow: `,`; - `])),s,l),resizePanelDragLine:(0,S.iv)(cr||(cr=I()([` - transition: all 0.5s; - cursor: move !important; - z-index: 100; - - &:hover, - &:focus { - background-color: `,`; - } - `])),u),resizePanelToggleBtn:(0,S.iv)(dr||(dr=I()([` - height: 60px; - width: 20px; - display: flex; - align-items: center; - justify-content: center; - background: `,`; - position: absolute; - top: calc(50% - 30px); - left: -20px; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - cursor: pointer; - z-index: 2; - .anticon { - transition: all 0.2s; - } - color: `,`; - `])),a,f)}},Ui=Wi,Ki=function(n){var i,r=n.left,a=n.right,l=n.onFeatureChange,s=(0,V.Og)(),u=s.hideEditor,f=s.setHideEditor,d=s.rightPanelWidth,y=s.setRightWidth,v=(0,_.useState)(null),m=c()(v,2),T=m[0],A=m[1],C=c()(G.yc,2),w=C[0],g=C[1],D=(i=(0,Bn.Z)(T))!==null&&i!==void 0?i:{},P=D.width,j=P===void 0?0:P,b=(0,V.SS)(),E=b.features,O=Ui(),x=function(k){var L,U=(L=T==null?void 0:T.getBoundingClientRect())!==null&&L!==void 0?L:{},R=U.left,Z=R===void 0?0:R,J=100*(1-(k.clientX-Z)/j);Jg&&(J=g),y(J)},K=(0,_.useMemo)(function(){return u?0:d},[u,d]);return(0,_.useEffect)(function(){l(E)},[E]),(0,e.jsxs)("div",{className:Se()([O.resizePanel,"l7-editor-content"]),ref:function(k){A(k)},children:[(0,e.jsx)("div",{className:Se()([O.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-K,"%")},children:r}),(0,e.jsxs)(zi.e,{enable:{left:!0},style:{marginLeft:"".concat(100-K,"%")},size:{width:"".concat(K,"%"),height:"100%"},minWidth:"".concat(w/100*j,"px"),maxWidth:"".concat(g/100*j,"px"),className:Se()([O.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:O.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(K,"%"),height:"100%"},onResize:x,children:[a,(0,e.jsx)("div",{className:O.resizePanelToggleBtn,onClick:function(){f(!u)},children:(0,e.jsx)(Ua.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},Hi=o(87430),nl=o(8858),Ve=o(2574),Vi=o(93904),Qi=o(8142),$i=o(64495),Xi=o(72402),pr=o.n(Xi),fr,Yi=function(){return{l7Editor:(0,S.iv)(fr||(fr=I()([` - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - `])))}},qi=Yi,el=function(n){var i=n.onFeatureChange,r=(0,ne.$G)(),a=r.i18n,l=r.t,s=(0,V.Og)(),u=s.theme,f=s.mapOptions,d=s.setMapOptions,y=s.locale,v=qi(),m=(0,V.SS)(),T=m.saveEditorText,A=m.bboxAutoFit,C=m.scene;(0,Qi.Z)(function(){d(u==="dark"?p()(p()({},f),{},{style:"dark"}):p()(p()({},f),{},{style:"normal"}))},[u]),(0,_.useEffect)(function(){a.changeLanguage(y)},[]);var w=(0,_.useMemo)(function(){var g;return(g=jt.find(function(D){return D.lang===y}))===null||g===void 0?void 0:g.antd},[y]);return(0,ln.Z)(Xe()(De()().mark(function g(){var D,P,j;return De()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,pr().getItem(G.Fe.EditorText);case 2:if(D=E.sent,D&&C&&!n.features)try{P=(0,Vi.$)(JSON.parse(D)).filter(function(O){return O.message!=="Polygons and MultiPolygons should follow the right-hand rule"}),P.length>0?ke.ZP.error(l("import_btn.file_upload.qingJianChaShuJu")):(j=JSON.parse(D).features,A(j))}catch(O){ke.ZP.error(l("import_btn.file_upload.qingJianChaShuJu"))}else C&&n.features&&A();case 4:case"end":return E.stop()}},g)})),[C]),(0,ln.Z)(Xe()(De()().mark(function g(){var D;return De()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,pr().getItem(G.Fe.EditorText);case 2:D=j.sent,D&&!n.features&&T(D);case 4:case"end":return j.stop()}},g)})),[]),(0,e.jsx)($i.ZP,{locale:w,theme:{algorithm:u==="dark"?Me.Z.darkAlgorithm:Me.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:Se()([v.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(Br,{toolbar:n.toolbar}),(0,e.jsx)(Ki,{onFeatureChange:function(D){i&&i(D)},left:(0,e.jsxs)(Nr,{children:[(0,e.jsx)(Gi,{mapControl:n.mapControl}),(0,e.jsx)(uo,{}),(0,e.jsx)(vo,{}),(0,e.jsx)(oo,{})]}),right:(0,e.jsx)(To,{tabItems:n==null?void 0:n.tabItems,features:n==null?void 0:n.features})})]})})};Yt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var tl=function(n){var i=(0,ne.$G)(),r=i.t,a=(0,_.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),l=(0,_.useMemo)(function(){return function(s){var u,f,d,y,v,m,T,A,C,w,g,D,P,j,b,E,O,x=s.set;x(Ve.EB,(u=n==null?void 0:n.baseMap)!==null&&u!==void 0?u:"Gaode"),x(Ve.dR,(f=n==null?void 0:n.primaryColor)!==null&&f!==void 0?f:G.K6),x(Ve.Do,(d=n==null?void 0:n.rightPanelWidth)!==null&&d!==void 0?d:40),x(Ve.aQ,(y=n==null?void 0:n.mapOption)!==null&&y!==void 0?y:{style:"normal",maxZoom:24}),x(Ve.E1,!(n!=null&&n.autoFitBounds)),x(Ve.xZ,(v=n==null?void 0:n.popupTrigger)!==null&&v!==void 0?v:"click"),x(Ve.Uv,(m=n==null?void 0:n.activeTab)!==null&&m!==void 0?m:"geojson"),x(Ve.DJ,(T=n==null?void 0:n.officialLayers)!==null&&T!==void 0?T:[]),x(Ve.bK,(A=n==null?void 0:n.hidePanel)!==null&&A!==void 0?A:!1),x(Ve.XG,(C=n==null?void 0:n.theme)!==null&&C!==void 0?C:"light"),x(Ve.PY,(w=n==null?void 0:n.coordConvert)!==null&&w!==void 0?w:"GCJ02"),x(Ve.GR,(g=n==null?void 0:n.locale)!==null&&g!==void 0?g:"zh-CN"),x(Ve._u,(D=n==null?void 0:n.wasmPath)!==null&&D!==void 0?D:"/"),x(Ve.CZ,(P=n==null?void 0:n.showTextLayer)!==null&&P!==void 0?P:!1),x(Ve.Pl,(j=n==null?void 0:n.textLayerFields)!==null&&j!==void 0?j:void 0),x(Ve.Yf,(b=n.showDrawDistance)!==null&&b!==void 0?b:!1),x(Ve.lG,(E=n.showDrawArea)!==null&&E!==void 0?E:!1),x(Ve.Z3,(O=n.customTiles)!==null&&O!==void 0?O:[])}},[n]);return a?(0,e.jsx)(Yt.Wh,{initializeState:l,children:(0,e.jsx)(el,p()({},n))}):(0,e.jsx)(Hi.ZP,{status:"404",title:r("pages.index.qingYongPCDuan")})}},2574:function(Ze,se,o){"use strict";o.d(se,{CZ:function(){return Ke},DJ:function(){return Be},Do:function(){return Pe},E1:function(){return Se},EB:function(){return V},GR:function(){return et},LY:function(){return ve},PY:function(){return Te},Pl:function(){return je},Qn:function(){return ue},Rl:function(){return q},Uv:function(){return e},XG:function(){return Fe},Yf:function(){return _},Z3:function(){return xt},_u:function(){return Ee},aD:function(){return Ce},aQ:function(){return qe},bK:function(){return $e},bo:function(){return Oe},dR:function(){return gt},lG:function(){return ne},tJ:function(){return ge},xZ:function(){return G},zl:function(){return Ue}});var de=o(72402),p=o.n(de),z=o(95570),c=o(2185),ee=function(Ne){return function(ye){var $=ye.setSelf,ae=ye.onSet,Q=localStorage.getItem(Ne);Q&&$(JSON.parse(Q)),ae(function(ie){ie instanceof z.nY?localStorage.removeItem(Ne):localStorage.setItem(Ne,JSON.stringify(ie))})}},xe=function(Ne){return function(ye){var $=ye.setSelf,ae=ye.onSet;p().getItem(Ne).then(function(Q){Q&&$(Q)}),ae(function(Q){Q instanceof z.nY?p().removeItem(Ne):p().setItem(Ne,Q)})}},ve=(0,z.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),Ce=(0,z.cn)({key:"isDraw",default:!1}),ge=(0,z.cn)({key:"savedText",default:""}),q=(0,z.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),ue=(0,z.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Oe=(0,z.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[xe(c.Fe.EditorText)]}),pe=(0,z.cn)({key:"lnglatType"}),N=(0,z.cn)({key:"lnglatText",default:""}),Pe=(0,z.cn)({key:"rightPanelWidth",effects:[ee(c.Fe.RightPanelWidth)]}),qe=(0,z.cn)({key:"mapOptions",effects:[ee(c.Fe.MapOptions)]}),gt=(0,z.cn)({key:"layerColor",effects:[ee(c.Fe.LayerColor)]}),$e=(0,z.cn)({key:"hideEditor",default:!1,effects:[ee(c.Fe.HideEditor)]}),Se=(0,z.cn)({key:"autoFitBounds",effects:[ee(c.Fe.AutoFitBounds)]}),_=(0,z.cn)({key:"showDrawDistance",default:!1,effects:[ee(c.Fe.showDrawDistance)]}),ne=(0,z.cn)({key:"showDrawArea",default:!1,effects:[ee(c.Fe.showDrawArea)]}),G=(0,z.cn)({key:"popupTrigger",effects:[ee(c.Fe.PopupTrigger)]}),V=(0,z.cn)({key:"baseMap",effects:[ee(c.Fe.BaseMap)]}),e=(0,z.cn)({key:"activeTab",default:"geojson",effects:[ee(c.Fe.ActiveRightTabKey)]}),Be=(0,z.cn)({key:"layerType",default:[],effects:[ee(c.Fe.officialLayers)]}),Te=(0,z.cn)({key:"coordConvert",default:"GCJ02",effects:[ee(c.Fe.Convert)]}),Fe=(0,z.cn)({key:"theme",default:"light",effects:[ee(c.Fe.theme)]}),Ue=(0,z.cn)({key:"cityHistory",default:[],effects:[ee(c.Fe.cityHistory)]}),Ke=(0,z.cn)({key:"showTextLayer",default:!0,effects:[ee(c.Fe.showTextLayer)]}),je=(0,z.cn)({key:"textLayerFields",default:void 0,effects:[ee(c.Fe.textLayerFields)]}),xt=(0,z.cn)({key:"customTiles",default:[],effects:[ee(c.Fe.customTiles)]}),et=(0,z.cn)({key:"locale",default:"zh-CN",effects:[ee(c.Fe.locale)]}),Ee=(0,z.cn)({key:"wasmPaths",effects:[ee(c.Fe.wasmPath)]})},86348:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return Te}});var de=o(37205),p=o.n(de),z=o(31468),c=o.n(z),ee=o(85573),xe=o.n(ee),ve=o(82242),Ce=o.n(ve),ge=o(79800),q=o.n(ge),ue=o(93904),Oe=o(40742),pe=o(31222),N=o(14125),Pe=o(36923),qe=o(87261),gt=o(69946),$e=o(77617),Se=o(86105),_=o(95570),ne=o(2185),G=o(60234),V=o(11809),e=o(2574),Be=o(79232);function Te(){var Fe=(0,Be.Z)(),Ue=Fe.baseMap,Ke=Fe.coordConvert,je=(0,_.FV)(e.bo),xt=q()(je,2),et=xt[0],Ee=xt[1],ot=(0,_.FV)(e.tJ),Ne=q()(ot,2),ye=Ne[0],$=Ne[1],ae=(0,_.FV)(e.Rl),Q=q()(ae,2),ie=Q[0],He=Q[1],pt=(0,_.FV)(e.aD),ft=q()(pt,2),yt=ft[0],bt=ft[1],jt=(0,_.FV)(e.Qn),Dt=q()(jt,2),it=Dt[0],I=Dt[1],S=(0,Se.$G)(),Me=S.t,Bt=(0,$e.useMemo)(function(){return et!==ye},[et,ye]),kt=(0,$e.useMemo)(function(){return(0,Oe.featureCollection)(ie)},[ie]),Pt=function(le){He((0,N.Z)(le).map(function(fe,Le){var tt;return fe.properties=Ce()(Ce()({},fe.properties),{},xe()({},ne.AQ.Index,Le)),(tt=fe.properties)!==null&&tt!==void 0&&tt[ne.AQ.DrawType]||(fe.properties[ne.AQ.DrawType]=function(){var lt=(0,Oe.getType)(fe);return/Point/.test(lt)?"point":/LineString/.test(lt)?"line":"polygon"}()),fe}))},At=function(le){var fe=JSON.stringify({type:"FeatureCollection",features:[]},null,2),Le=[];if(et||le)try{var tt=(0,ue.$)(JSON.parse(le!=null?le:et)).filter(function(lt){return lt.message!=="Polygons and MultiPolygons should follow the right-hand rule"});tt.length>0?pe.ZP.warning(Me("recoil.feature.shuJuJiaZaiYou")):(Le=(0,G.mr)(le!=null?le:et,Me),le&&Ee(le),$(le!=null?le:et),Pt(Le))}catch(lt){}else Ee(fe),$(fe);return Le},Rt=function(le){var fe=(0,V.X)({content:(0,Oe.featureCollection)(le)});Ee(fe),$(fe),Pt(le)},Jt=(0,$e.useMemo)(function(){var Ge=ie.map(function(fe,Le){var tt=fe.properties;return Ce()({__index:Le+1},tt)}),le=[];return Array.from(new Set((0,Pe.Z)(ie.map(function(fe){var Le=fe.properties;return Object.keys(Le)})))).forEach(function(fe){var Le=c()(Ge[0][fe]);if(Le==="string"||Le==="boolean"){var tt=Ge.map(function(Et){return String(Et[fe])});le.push({type:"string",field:fe,value:tt})}else if(Le==="number"){var lt=Ge.map(function(Et){return Et[fe]});le.push({type:Le,field:fe,min:(0,qe.Z)(lt),max:(0,gt.Z)(lt)})}}),le},[ie]),Lt=(0,$e.useCallback)(function(Ge){var le=p()(Ge);return Ke==="WGS84"&&Ue==="Gaode"?le=le.map(function(fe){return(0,G.IQ)((0,N.Z)(fe))}):Ke==="GCJ02"&&Ue==="Mapbox"&&(le=le.map(function(fe){return(0,G.Jk)((0,N.Z)(fe))})),le},[Ue,Ke]),wt=(0,$e.useCallback)(function(Ge){var le=p()(Ge);return Ke==="WGS84"&&Ue==="Gaode"?le=le.map(function(fe){return(0,G.Jk)((0,N.Z)(fe))}):Ke==="GCJ02"&&Ue==="Mapbox"&&(le=le.map(function(fe){return(0,G.IQ)((0,N.Z)(fe))})),le},[Ue,Ke]),Nt=(0,$e.useCallback)(function(Ge){var le=Ge!=null?Ge:ie;if(it&&le.length){var fe=(0,Oe.bbox)((0,Oe.featureCollection)(Lt(le))),Le=q()(fe,4),tt=Le[0],lt=Le[1],Et=Le[2],Kt=Le[3];it.fitBounds([[tt,lt],[Et,Kt]])}},[ie,it,Lt]);return{editorText:et,setEditorText:Ee,savedText:ye,setSavedText:$,features:ie,setFeatures:Pt,savable:Bt,saveEditorText:At,resetFeatures:Rt,dataSource:Jt,bboxAutoFit:Nt,setIsDraw:bt,isDraw:yt,scene:it,setScene:I,fc:kt,transformCoord:Lt,revertCoord:wt}}},93274:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return ee}});var de=o(79800),p=o.n(de),z=o(95570),c=o(2574);function ee(){var xe=(0,z.FV)(c.LY),ve=p()(xe,2),Ce=ve[0],ge=ve[1];return{filters:Ce,setFilters:ge}}},79232:function(Ze,se,o){"use strict";o.d(se,{Z:function(){return ee}});var de=o(79800),p=o.n(de),z=o(95570),c=o(2574);function ee(){var xe=(0,z.FV)(c.Do),ve=p()(xe,2),Ce=ve[0],ge=ve[1],q=(0,z.FV)(c.aQ),ue=p()(q,2),Oe=ue[0],pe=ue[1],N=(0,z.FV)(c.dR),Pe=p()(N,2),qe=Pe[0],gt=Pe[1],$e=(0,z.FV)(c.bK),Se=p()($e,2),_=Se[0],ne=Se[1],G=(0,z.FV)(c.E1),V=p()(G,2),e=V[0],Be=V[1],Te=(0,z.FV)(c.xZ),Fe=p()(Te,2),Ue=Fe[0],Ke=Fe[1],je=(0,z.FV)(c.EB),xt=p()(je,2),et=xt[0],Ee=xt[1],ot=(0,z.FV)(c.Uv),Ne=p()(ot,2),ye=Ne[0],$=Ne[1],ae=(0,z.FV)(c.DJ),Q=p()(ae,2),ie=Q[0],He=Q[1],pt=(0,z.FV)(c.PY),ft=p()(pt,2),yt=ft[0],bt=ft[1],jt=(0,z.FV)(c.XG),Dt=p()(jt,2),it=Dt[0],I=Dt[1],S=(0,z.FV)(c.zl),Me=p()(S,2),Bt=Me[0],kt=Me[1],Pt=(0,z.FV)(c.CZ),At=p()(Pt,2),Rt=At[0],Jt=At[1],Lt=(0,z.FV)(c.Pl),wt=p()(Lt,2),Nt=wt[0],Ge=wt[1],le=(0,z.FV)(c.Z3),fe=p()(le,2),Le=fe[0],tt=fe[1],lt=(0,z.FV)(c.GR),Et=p()(lt,2),Kt=Et[0],De=Et[1],dn=(0,z.FV)(c._u),Ae=p()(dn,2),pn=Ae[0],Xe=Ae[1],fn=(0,z.FV)(c.Yf),ke=p()(fn,2),Zt=ke[0],nn=ke[1],te=(0,z.FV)(c.lG),ut=p()(te,2),Ht=ut[0],an=ut[1];return{rightPanelWidth:Ce,setRightWidth:ge,mapOptions:Oe,setMapOptions:pe,layerColor:qe,setLayerColor:gt,hideEditor:_,setHideEditor:ne,popupTrigger:Ue,setPopupTrigger:Ke,baseMap:et,setBaseMap:Ee,autoFitBounds:e,setAutoFitBounds:Be,activeTab:ye,setActiveTab:$,layerType:ie,setLayerType:He,coordConvert:yt,setCoordConvert:bt,theme:it,setTheme:I,cityHistory:Bt,setCityHistory:kt,showTextLayer:Rt,setShowTextLayer:Jt,textLayerFields:Nt,setTextLayerFields:Ge,customTiles:Le,setCustomTiles:tt,locale:Kt,setLocale:De,wasmPath:pn,setWasmPath:Xe,showDrawDistance:Zt,setShowDrawDistance:nn,showDrawArea:Ht,setShowDrawArea:an}}},82668:function(Ze,se,o){"use strict";o.d(se,{SS:function(){return de.Z},L0:function(){return p.Z},Og:function(){return z.Z}});var de=o(86348),p=o(93274),z=o(79232),c=o(37205),ee=o(79800),xe=o(40742),ve=o(86105),Ce=o(95570),ge=o(2185),q=o(2574);function ue(){var Oe=useRecoilState(lnglatTypeState),pe=_slicedToArray(Oe,2),N=pe[0],Pe=pe[1],qe=useTranslation(),gt=qe.t,$e=useRecoilState(lnglatTextState),Se=_slicedToArray($e,2),_=Se[0],ne=Se[1],G=function(e){var Be=e.split(` -`).filter(function(Fe){return Fe}).map(function(Fe){return Fe.split(";").filter(function(Ue){return Ue}).map(function(Ue){return Ue.split(",").filter(function(Ke){return Ke}).map(function(Ke){return+Ke})})});if(LngLatVT.check(Be)){var Te=[];return N==="Point"?Te.push.apply(Te,_toConsumableArray(Be.flat().map(function(Fe){return point(Fe)}))):N==="LingString"?Te.push.apply(Te,_toConsumableArray(Be.map(function(Fe){return lineString(Fe)}))):Te.push.apply(Te,_toConsumableArray(Be.map(function(Fe){return isEqual(first(Fe),last(Fe))||Fe.push(Fe[0]),polygon([Fe])}))),Te}else throw new Error(gt("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:N,setLngLatImportType:Pe,lngLatText:_,setLngLatText:ne,importLngLatText:G}}},60234:function(Ze,se,o){"use strict";o.d(se,{fC:function(){return e},fN:function(){return qe.f},Qp:function(){return Be},Yt:function(){return qe.Y},Pp:function(){return $e},tg:function(){return je},Di:function(){return Ke},Jk:function(){return ne},C2:function(){return Ue},oO:function(){return xt},bo:function(){return et},gw:function(){return ot},tI:function(){return Ee},Ep:function(){return Ne},mr:function(){return Te},IQ:function(){return _}});var de=o(7557),p=o.n(de),z=o(41498),c=o.n(z),ee=o(82242),xe=o.n(ee),ve=o(29075),Ce=o(91327),ge=o.n(Ce),q=o(40742),ue=o(31222),Oe=o(9498),pe=o.n(Oe),N=o(63364),Pe=o(2185),qe=o(85070),gt=o(28561),$e=function($){var ae=(0,q.length)($,{units:"meters"}),Q=(0,gt.Z)((0,q.lineSliceAlong)($,0,ae/2,{units:"meters"}).geometry.coordinates);return(0,q.point)(Q)},Se=o(46250),_=function($){return $.geometry.type.match(/polygon/i)&&($.geometry=JSON.parse(JSON.stringify($.geometry))),Se.Z.transform($,Se.Z.WGS84,Se.Z.GCJ02)},ne=function($){return $.geometry.type.match(/polygon/i)&&($.geometry=JSON.parse(JSON.stringify($.geometry))),Se.Z.transform($,Se.Z.GCJ02,Se.Z.WGS84)},G=o(37205),V=o.n(G);function e(ye){var $=(0,q.coordAll)(ye).map(function(ae){return ae.join(",")}).join(";");return $}function Be(ye){var $=ye.split(` -`).filter(function(Q){return Q}).map(function(Q){return Q.split(";").filter(function(ie){return ie}).map(function(ie){return ie.split(",").filter(function(He){return He}).map(function(He){return+He})})});if(Pe.eG.check($)){var ae=[];return ae.push.apply(ae,V()($.flat().map(function(Q){return(0,q.point)(Q)}))),ae}}var Te=function($,ae){var Q=JSON.parse($);if(Pe._9.check(Q))return Q.features;if(Array.isArray(Q))return Pe.Iz.check(Q)?Q:Pe.xQ.check(Q)?Q.map(function(ie){return(0,q.feature)(ie)}):(console.warn(ae("utils.transform.weiShiBieJS")),[]);if(Pe.u9.check(Q))return[Q];if(Pe.dw.check(Q))return[(0,q.feature)(Q)]},Fe=function($,ae){var Q=Color($).fade(ae);return"rgba(".concat(Q.array().join(", "),")")},Ue=function($){var ae=(0,ve.getSingleColorStyle)($);return Object.keys(ae).forEach(function(Q){ae[Q].options=xe()(xe()({},ae[Q].options),{},{zIndex:Pe.QF})}),ae},Ke=function($,ae){var Q=document.createElement("a");Q.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent($)),Q.setAttribute("download","".concat(pe()().format("YYYY-MM-DD"),".").concat(ae)),Q.style.display="none",document.body.appendChild(Q),Q.click()},je=function($){var ae=document.createElement("a");ae.href=$,ae.download="".concat(pe()().format("YYYY\u5E74MM\u6708DD\u65E5HH\u65F6mm\u5206ss\u79D2"),".jpeg"),ae.dispatchEvent(new MouseEvent("click"))},xt=function($){var ae=new URLSearchParams(window.location.search);return ae.get($)},et=function(){var ye=c()(p()().mark(function $(ae){var Q,ie,He,pt,ft,yt,bt,jt,Dt,it=arguments;return p()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return Q=it.length>1&&it[1]!==void 0?it[1]:"GeoJSON",ie=it.length>2?it[2]:void 0,S.next=4,fetch(ae);case 4:if(He=S.sent,Q!=="GeoJSON"){S.next=18;break}return S.prev=6,S.next=9,He.json();case 9:return pt=S.sent,S.abrupt("return",pt);case 13:throw S.prev=13,S.t0=S.catch(6),new Error(ie("utils.index.qingJianChaUR"));case 16:S.next=43;break;case 18:if(Q!=="WKT"){S.next=30;break}return S.next=21,He.text();case 21:if(ft=S.sent,yt=(0,qe.Y)(ft),!Pe._9.check(yt)){S.next=27;break}return S.abrupt("return",yt);case 27:ue.ZP.error(ie("utils.index.qingJianChaUR"));case 28:S.next=43;break;case 30:if(Q!=="KML"){S.next=43;break}return S.next=33,He.text();case 33:if(bt=S.sent,jt=new DOMParser().parseFromString(bt,"text/xml"),!(jt.getElementsByTagName("parsererror").length>0)){S.next=39;break}ue.ZP.error(ie("utils.index.qingJianChaUR")),S.next=43;break;case 39:return S.next=41,ge().kml(jt,{style:!0});case 41:return Dt=S.sent,S.abrupt("return",Dt);case 43:case"end":return S.stop()}},$,null,[[6,13]])}));return function(ae){return ye.apply(this,arguments)}}(),Ee=function($){return!(0,N.Z)($)&&$ instanceof Promise},ot=function($){var ae,Q=(ae=$.properties)===null||ae===void 0?void 0:ae[Pe.AQ.DrawType];if(Q==="circle")return!0;var ie=(0,q.center)($).geometry.coordinates,He=(0,q.coordAll)($).map(function(pt){return Math.round((0,q.distance)(pt,ie,{units:"meters"}))});return Array.from(new Set(He)).length===1},Ne=function($){var ae,Q=(ae=$.properties)===null||ae===void 0?void 0:ae[Pe.AQ.DrawType];if(Q==="rect")return!0;var ie=(0,q.coordAll)($);if(ie.length!==5)return!1;var He=(0,q.distance)(ie[0],ie[1],{units:"meters"}).toFixed(0),pt=(0,q.distance)(ie[1],ie[2],{units:"meters"}).toFixed(0),ft=(0,q.distance)(ie[2],ie[3],{units:"meters"}).toFixed(0),yt=(0,q.distance)(ie[3],ie[4],{units:"meters"}).toFixed(0);if(He===ft&&pt===yt){var bt=Math.round((0,q.bearing)(ie[0],ie[3])-(0,q.bearing)(ie[0],ie[1]));return bt===90||bt===270}return!1}},11809:function(Ze,se,o){"use strict";o.d(se,{X:function(){return ee}});var de=o(53436),p=o.n(de),z=o(97364),c=o.n(z);function ee(xe){var ve=xe.content,Ce=xe.parser,ge=Ce===void 0?"json":Ce,q=ve;typeof ve!="string"&&(q=JSON.stringify(ve,null,2));var ue=p().format(q,{parser:ge==="json"?ge:"babel",plugins:[c()]});return ue}},85070:function(Ze,se,o){"use strict";o.d(se,{Y:function(){return ee},f:function(){return c}});var de=o(40742),p=o(92368),z=o.n(p);function c(xe){return xe.features.map(function(ve){return(0,p.stringify)(ve.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function ee(xe){var ve=(0,de.featureCollection)([]);return xe.split(/[;\n]/g).forEach(function(Ce){if(Ce){var ge=(0,p.parse)(Ce);ge&&ve.features.push((0,de.feature)(ge,{}))}}),ve}},2467:function(){},18953:function(){}}]); diff --git a/302.674197f2.chunk.css b/959.674197f2.chunk.css similarity index 100% rename from 302.674197f2.chunk.css rename to 959.674197f2.chunk.css diff --git a/302.7e9c3f60.async.js b/959.75f9c00d.async.js similarity index 54% rename from 302.7e9c3f60.async.js rename to 959.75f9c00d.async.js index 28b58fd..e3e5442 100644 --- a/302.7e9c3f60.async.js +++ b/959.75f9c00d.async.js @@ -1,5 +1,5 @@ -!(function(){var KEe=Object.defineProperty,XEe=Object.defineProperties;var YEe=Object.getOwnPropertyDescriptors;var Une=Object.getOwnPropertySymbols;var mve=Object.prototype.hasOwnProperty,vve=Object.prototype.propertyIsEnumerable;var o4=Math.pow,Cfe=(c,g,l)=>g in c?KEe(c,g,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[g]=l,f_=(c,g)=>{for(var l in g||(g={}))mve.call(g,l)&&Cfe(c,l,g[l]);if(Une)for(var l of Une(g))vve.call(g,l)&&Cfe(c,l,g[l]);return c},o2=(c,g)=>XEe(c,YEe(g));var d6=(c,g)=>{var l={};for(var u in c)mve.call(c,u)&&g.indexOf(u)<0&&(l[u]=c[u]);if(c!=null&&Une)for(var u of Une(c))g.indexOf(u)<0&&vve.call(c,u)&&(l[u]=c[u]);return l};var h6=(c,g,l)=>(Cfe(c,typeof g!="symbol"?g+"":g,l),l);var Bw=(c,g,l)=>new Promise((u,D)=>{var b=w=>{try{y(l.next(w))}catch(a){D(a)}},x=w=>{try{y(l.throw(w))}catch(a){D(a)}},y=w=>w.done?u(w.value):Promise.resolve(w.value).then(b,x);y((l=l.apply(c,g)).next())}),Sfe=(c,g,l)=>(g=c[Symbol.asyncIterator],l=(u,D)=>(D=c[u])&&(g[u]=b=>new Promise((x,y,w)=>(b=D.call(c,b),w=b.done,Promise.resolve(b.value).then(a=>x({value:a,done:w}),y)))),g?g.call(c):(c=c[Symbol.iterator](),g={},l("next"),l("return"),g));(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[302],{95906:function(c){"use strict";(function(g,l){c.exports=l()})(this,function(){function g(S){var I=[];return S.AMapUI&&I.push(l(S.AMapUI)),S.Loca&&I.push(u(S.Loca)),Promise.all(I)}function l(S){return new Promise(function(I,N){var ie=[];if(S.plugins)for(var ze=0;ze=60&&Math.round(Zr.h)<=240?oi=Zs?Math.round(Zr.h)-b*Ht:Math.round(Zr.h)+b*Ht:oi=Zs?Math.round(Zr.h)+b*Ht:Math.round(Zr.h)-b*Ht,oi<0?oi+=360:oi>=360&&(oi-=360),oi}function At(Zr,Ht,Zs){if(Zr.h===0&&Zr.s===0)return Zr.s;var oi;return Zs?oi=Zr.s-x*Ht:Ht===I?oi=Zr.s+x:oi=Zr.s+y*Ht,oi>1&&(oi=1),Zs&&Ht===S&&oi>.1&&(oi=.1),oi<.06&&(oi=.06),Number(oi.toFixed(2))}function rt(Zr,Ht,Zs){var oi;return Zs?oi=Zr.v+w*Ht:oi=Zr.v-a*Ht,oi>1&&(oi=1),Number(oi.toFixed(2))}function It(Zr){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zs=[],oi=(0,D.uA)(Zr),Pa=S;Pa>0;Pa-=1){var Aa=ie(oi),Pg=ze((0,D.uA)({h:ct(Aa,Pa,!0),s:At(Aa,Pa,!0),v:rt(Aa,Pa,!0)}));Zs.push(Pg)}Zs.push(ze(oi));for(var Ug=1;Ug<=I;Ug+=1){var e0=ie(oi),H0=ze((0,D.uA)({h:ct(e0,Ug),s:At(e0,Ug),v:rt(e0,Ug)}));Zs.push(H0)}return Ht.theme==="dark"?N.map(function(X0){var d0=X0.index,jv=X0.opacity,Lv=ze(Ie((0,D.uA)(Ht.backgroundColor||"#141414"),(0,D.uA)(Zs[d0]),jv*100));return Lv}):Zs}var Ot={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"},wn={},Hs={};Object.keys(Ot).forEach(function(Zr){wn[Zr]=It(Ot[Zr]),wn[Zr].primary=wn[Zr][5],Hs[Zr]=It(Ot[Zr],{theme:"dark",backgroundColor:"#141414"}),Hs[Zr].primary=Hs[Zr][5]});var jr=wn.red,Jr=wn.volcano,Yn=wn.gold,Lt=wn.orange,_n=wn.yellow,Mt=wn.lime,Bt=wn.green,Rt=wn.cyan,on=wn.blue,Hr=wn.geekblue,vn=wn.purple,Ca=wn.magenta,ai=wn.grey,gt=wn.grey},78600:function(c,g,l){"use strict";l.d(g,{E4:function(){return XC},jG:function(){return Zr},t2:function(){return gd},ks:function(){return B1},bf:function(){return iv},CI:function(){return _x},fp:function(){return xu},xy:function(){return K_}});var u=l(16514),D=l(35372),b=l(49397),x=l(54131);function y(T1){for(var ky=0,$y,l_=0,cx=T1.length;cx>=4;++l_,cx-=4)$y=T1.charCodeAt(l_)&255|(T1.charCodeAt(++l_)&255)<<8|(T1.charCodeAt(++l_)&255)<<16|(T1.charCodeAt(++l_)&255)<<24,$y=($y&65535)*1540483477+(($y>>>16)*59797<<16),$y^=$y>>>24,ky=($y&65535)*1540483477+(($y>>>16)*59797<<16)^(ky&65535)*1540483477+((ky>>>16)*59797<<16);switch(cx){case 3:ky^=(T1.charCodeAt(l_+2)&255)<<16;case 2:ky^=(T1.charCodeAt(l_+1)&255)<<8;case 1:ky^=T1.charCodeAt(l_)&255,ky=(ky&65535)*1540483477+((ky>>>16)*59797<<16)}return ky^=ky>>>13,ky=(ky&65535)*1540483477+((ky>>>16)*59797<<16),((ky^ky>>>15)>>>0).toString(36)}var w=y,a=l(98052),S=l(77617),I=l.t(S,2),N=l(64913),ie=l(48897),ze=l(61577),Ie=l(22946),ct="%";function At(T1){return T1.join(ct)}var rt=function(){function T1(ky){(0,ze.Z)(this,T1),(0,u.Z)(this,"instanceId",void 0),(0,u.Z)(this,"cache",new Map),this.instanceId=ky}return(0,Ie.Z)(T1,[{key:"get",value:function($y){return this.opGet(At($y))}},{key:"opGet",value:function($y){return this.cache.get($y)||null}},{key:"update",value:function($y,l_){return this.opUpdate(At($y),l_)}},{key:"opUpdate",value:function($y,l_){var cx=this.cache.get($y),Cx=l_(cx);Cx===null?this.cache.delete($y):this.cache.set($y,Cx)}}]),T1}(),It=rt,Ot=null,wn="data-token-hash",Hs="data-css-hash",jr="data-cache-path",Jr="__cssinjs_instance__";function Yn(){var T1=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var ky=document.body.querySelectorAll("style[".concat(Hs,"]"))||[],$y=document.head.firstChild;Array.from(ky).forEach(function(cx){cx[Jr]=cx[Jr]||T1,cx[Jr]===T1&&document.head.insertBefore(cx,$y)});var l_={};Array.from(document.querySelectorAll("style[".concat(Hs,"]"))).forEach(function(cx){var Cx=cx.getAttribute(Hs);if(l_[Cx]){if(cx[Jr]===T1){var P2;(P2=cx.parentNode)===null||P2===void 0||P2.removeChild(cx)}}else l_[Cx]=!0})}return new It(T1)}var Lt=S.createContext({hashPriority:"low",cache:Yn(),defaultCache:!0}),_n=function(ky){var $y=ky.children,l_=_objectWithoutProperties(ky,Ot),cx=React.useContext(Lt),Cx=useMemo(function(){var P2=_objectSpread({},cx);Object.keys(l_).forEach(function(tx){var z2=l_[tx];l_[tx]!==void 0&&(P2[tx]=z2)});var i2=l_.cache;return P2.cache=P2.cache||Yn(),P2.defaultCache=!i2&&cx.defaultCache,P2},[cx,l_],function(P2,i2){return!isEqual(P2[0],i2[0],!0)||!isEqual(P2[1],i2[1],!0)});return React.createElement(Lt.Provider,{value:Cx},$y)},Mt=Lt,Bt=l(13255),Rt=l(10254);function on(T1,ky){if(T1.length!==ky.length)return!1;for(var $y=0;$y1&&arguments[1]!==void 0?arguments[1]:!1,P2={map:this.cache};return $y.forEach(function(i2){if(!P2)P2=void 0;else{var tx;P2=(tx=P2)===null||tx===void 0||(tx=tx.map)===null||tx===void 0?void 0:tx.get(i2)}}),(l_=P2)!==null&&l_!==void 0&&l_.value&&Cx&&(P2.value[1]=this.cacheCallTimes++),(cx=P2)===null||cx===void 0?void 0:cx.value}},{key:"get",value:function($y){var l_;return(l_=this.internalGet($y,!0))===null||l_===void 0?void 0:l_[0]}},{key:"has",value:function($y){return!!this.internalGet($y)}},{key:"set",value:function($y,l_){var cx=this;if(!this.has($y)){if(this.size()+1>T1.MAX_CACHE_SIZE+T1.MAX_CACHE_OFFSET){var Cx=this.keys.reduce(function(z2,L2){var jw=(0,D.Z)(z2,2),w2=jw[1];return cx.internalGet(L2)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ca+=1}return(0,Ie.Z)(T1,[{key:"getDerivativeToken",value:function($y){return this.derivatives.reduce(function(l_,cx){return cx($y,l_)},void 0)}}]),T1}(),gt=new Hr;function Zr(T1){var ky=Array.isArray(T1)?T1:[T1];return gt.has(ky)||gt.set(ky,new ai(ky)),gt.get(ky)}var Ht=new WeakMap,Zs={};function oi(T1,ky){for(var $y=Ht,l_=0;l_3&&arguments[3]!==void 0?arguments[3]:{},Cx=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Cx)return T1;var P2=(0,x.Z)((0,x.Z)({},cx),{},(l_={},(0,u.Z)(l_,wn,ky),(0,u.Z)(l_,Hs,$y),l_)),i2=Object.keys(P2).map(function(tx){var z2=P2[tx];return z2?"".concat(tx,'="').concat(z2,'"'):null}).filter(function(tx){return tx}).join(" ");return"")}var B1=function(ky){var $y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat($y?"".concat($y,"-"):"").concat(ky).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()},Dg=function(ky,$y,l_){return Object.keys(ky).length?".".concat($y).concat(l_!=null&&l_.scope?".".concat(l_.scope):"","{").concat(Object.entries(ky).map(function(cx){var Cx=(0,D.Z)(cx,2),P2=Cx[0],i2=Cx[1];return"".concat(P2,":").concat(i2,";")}).join(""),"}"):""},zo=function(ky,$y,l_){var cx={},Cx={};return Object.entries(ky).forEach(function(P2){var i2,tx,z2=(0,D.Z)(P2,2),L2=z2[0],jw=z2[1];if(l_!=null&&(i2=l_.preserve)!==null&&i2!==void 0&&i2[L2])Cx[L2]=jw;else if((typeof jw=="string"||typeof jw=="number")&&!(l_!=null&&(tx=l_.ignore)!==null&&tx!==void 0&&tx[L2])){var w2,gw=B1(L2,l_==null?void 0:l_.prefix);cx[gw]=typeof jw=="number"&&!(l_!=null&&(w2=l_.unitless)!==null&&w2!==void 0&&w2[L2])?"".concat(jw,"px"):String(jw),Cx[L2]="var(".concat(gw,")")}}),[Cx,Dg(cx,$y,{scope:l_==null?void 0:l_.scope})]},mu=l(64693),Ag=(0,x.Z)({},I),c0=Ag.useInsertionEffect,L0=function(ky,$y,l_){S.useMemo(ky,l_),(0,mu.Z)(function(){return $y(!0)},l_)},$0=c0?function(T1,ky,$y){return c0(function(){return T1(),ky()},$y)}:L0,cv=$0,Gg=(0,x.Z)({},I),uu=Gg.useInsertionEffect,Gs=function(ky){var $y=[],l_=!1;function cx(Cx){l_||$y.push(Cx)}return S.useEffect(function(){return l_=!1,function(){l_=!0,$y.length&&$y.forEach(function(Cx){return Cx()})}},ky),cx},Ia=function(){return function(ky){ky()}},lu=typeof uu!="undefined"?Gs:Ia,_h=lu;function Kr(){return!1}var fr=!1;function ri(){return fr}var Ra=Kr;if(!1)var Sg,Jg;function j0(T1,ky,$y,l_,cx){var Cx=S.useContext(Mt),P2=Cx.cache,i2=[T1].concat((0,b.Z)(ky)),tx=At(i2),z2=_h([tx]),L2=Ra(),jw=function(Fw){P2.opUpdate(tx,function(U2){var Tw=U2||[void 0,void 0],q_=(0,D.Z)(Tw,2),Kw=q_[0],Ny=Kw===void 0?0:Kw,dx=q_[1],bw=dx,Ow=bw||$y(),j1=[Ny,Ow];return Fw?Fw(j1):j1})};S.useMemo(function(){jw()},[tx]);var w2=P2.opGet(tx),gw=w2[1];return cv(function(){cx==null||cx(gw)},function(vC){return jw(function(Fw){var U2=(0,D.Z)(Fw,2),Tw=U2[0],q_=U2[1];return vC&&Tw===0&&(cx==null||cx(gw)),[Tw+1,q_]}),function(){P2.opUpdate(tx,function(Fw){var U2=Fw||[],Tw=(0,D.Z)(U2,2),q_=Tw[0],Kw=q_===void 0?0:q_,Ny=Tw[1],dx=Kw-1;return dx===0?(z2(function(){(vC||!P2.opGet(tx))&&(l_==null||l_(Ny,!1))}),null):[Kw-1,Ny]})}},[tx]),gw}var Wo={},Mo="css",qr=new Map;function On(T1){qr.set(T1,(qr.get(T1)||0)+1)}function rn(T1,ky){if(typeof document!="undefined"){var $y=document.querySelectorAll("style[".concat(wn,'="').concat(T1,'"]'));$y.forEach(function(l_){if(l_[Jr]===ky){var cx;(cx=l_.parentNode)===null||cx===void 0||cx.removeChild(l_)}})}}var ui=0;function ya(T1,ky){qr.set(T1,(qr.get(T1)||0)-1);var $y=Array.from(qr.keys()),l_=$y.filter(function(cx){var Cx=qr.get(cx)||0;return Cx<=0});$y.length-l_.length>ui&&l_.forEach(function(cx){rn(cx,ky),qr.delete(cx)})}var gd=function(ky,$y,l_,cx){var Cx=l_.getDerivativeToken(ky),P2=(0,x.Z)((0,x.Z)({},Cx),$y);return cx&&(P2=cx(P2)),P2},Su="token";function xu(T1,ky){var $y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l_=(0,S.useContext)(Mt),cx=l_.cache.instanceId,Cx=l_.container,P2=$y.salt,i2=P2===void 0?"":P2,tx=$y.override,z2=tx===void 0?Wo:tx,L2=$y.formatToken,jw=$y.getComputedToken,w2=$y.cssVar,gw=oi(function(){return Object.assign.apply(Object,[{}].concat((0,b.Z)(ky)))},ky),vC=Aa(gw),Fw=Aa(z2),U2=w2?Aa(w2):"",Tw=j0(Su,[i2,T1.id,vC,Fw,U2],function(){var q_,Kw=jw?jw(gw,z2,T1):gd(gw,z2,T1,L2),Ny=(0,x.Z)({},Kw),dx="";if(w2){var bw=zo(Kw,w2.key,{prefix:w2.prefix,ignore:w2.ignore,unitless:w2.unitless,preserve:w2.preserve}),Ow=(0,D.Z)(bw,2);Kw=Ow[0],dx=Ow[1]}var j1=Pg(Kw,i2);Kw._tokenKey=j1,Ny._tokenKey=Pg(Ny,i2);var Px=(q_=w2==null?void 0:w2.key)!==null&&q_!==void 0?q_:j1;Kw._themeKey=Px,On(Px);var Z_="".concat(Mo,"-").concat(w(j1));return Kw._hashId=Z_,[Kw,Z_,Ny,dx,(w2==null?void 0:w2.key)||""]},function(q_){ya(q_[0]._themeKey,cx)},function(q_){var Kw=(0,D.Z)(q_,4),Ny=Kw[0],dx=Kw[3];if(w2&&dx){var bw=(0,a.hq)(dx,w("css-variables-".concat(Ny._themeKey)),{mark:Hs,prepend:"queue",attachTo:Cx,priority:-999});bw[Jr]=cx,bw.setAttribute(wn,Ny._themeKey)}});return Tw}var xa=function(ky,$y,l_){var cx=(0,D.Z)(ky,5),Cx=cx[2],P2=cx[3],i2=cx[4],tx=l_||{},z2=tx.plain;if(!P2)return null;var L2=Cx._tokenKey,jw=-999,w2={"data-rc-order":"prependQueue","data-rc-priority":"".concat(jw)},gw=u0(P2,i2,L2,w2,z2);return[jw,L2,gw]},Td=l(79384),jg={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},Wa=jg,tv="-ms-",Bs="-moz-",Sa="-webkit-",$a="comm",Bd="rule",Bg="decl",Og="@page",g0="@media",qg="@import",Xg="@charset",A0="@viewport",nv="@supports",t0="@document",n0="@namespace",u1="@keyframes",Eg="@font-face",a1="@counter-style",Hg="@font-feature-values",Gd="@layer",h0=Math.abs,lv=String.fromCharCode,su=Object.assign;function hu(T1,ky){return E0(T1,0)^45?(((ky<<2^E0(T1,0))<<2^E0(T1,1))<<2^E0(T1,2))<<2^E0(T1,3):0}function ev(T1){return T1.trim()}function sv(T1,ky){return(T1=ky.exec(T1))?T1[0]:T1}function yv(T1,ky,$y){return T1.replace(ky,$y)}function $v(T1,ky,$y){return T1.indexOf(ky,$y)}function E0(T1,ky){return T1.charCodeAt(ky)|0}function E1(T1,ky,$y){return T1.slice(ky,$y)}function $1(T1){return T1.length}function l0(T1){return T1.length}function z0(T1,ky){return ky.push(T1),T1}function W0(T1,ky){return T1.map(ky).join("")}function Rv(T1,ky){return T1.filter(function($y){return!sv($y,ky)})}function R0(T1,ky){for(var $y="",l_=0;l_0?E0(Yg,--H1):0,xy--,xd===10&&(xy=1,G1--),xd}function Rs(){return xd=H12||In(xd)>3?"":" "}function Wv(T1){for(;Rs();)switch(In(xd)){case 0:append(sy(H1-1),T1);break;case 2:append(Lu(xd),T1);break;default:append(from(xd),T1)}return T1}function c1(T1,ky){for(;--ky&&Rs()&&!(xd<48||xd>102||xd>57&&xd<65||xd>70&&xd<97););return s0(T1,bu()+(ky<6&&wa()==32&&Rs()==32))}function P1(T1){for(;Rs();)switch(xd){case T1:return H1;case 34:case 39:T1!==34&&T1!==39&&P1(xd);break;case 40:T1===41&&P1(T1);break;case 92:Rs();break}return H1}function Z1(T1,ky){for(;Rs()&&T1+xd!==47+10;)if(T1+xd===42+42&&wa()===47)break;return"/*"+s0(ky,H1-1)+"*"+lv(T1===47?T1:Rs())}function sy(T1){for(;!In(wa());)Rs();return s0(T1,H1)}function wy(T1){return Ga(zy("",null,null,null,[""],T1=ga(T1),0,[0],T1))}function zy(T1,ky,$y,l_,cx,Cx,P2,i2,tx){for(var z2=0,L2=0,jw=P2,w2=0,gw=0,vC=0,Fw=1,U2=1,Tw=1,q_=0,Kw="",Ny=cx,dx=Cx,bw=l_,Ow=Kw;U2;)switch(vC=q_,q_=Rs()){case 40:if(vC!=108&&E0(Ow,jw-1)==58){$v(Ow+=yv(Lu(q_),"&","&\f"),"&\f",h0(z2?i2[z2-1]:0))!=-1&&(Tw=-1);break}case 34:case 39:case 91:Ow+=Lu(q_);break;case 9:case 10:case 13:case 32:Ow+=Cv(vC);break;case 92:Ow+=c1(bu()-1,7);continue;case 47:switch(wa()){case 42:case 47:z0(Qv(Z1(Rs(),bu()),ky,$y,tx),tx);break;default:Ow+="/"}break;case 123*Fw:i2[z2++]=$1(Ow)*Tw;case 125*Fw:case 59:case 0:switch(q_){case 0:case 125:U2=0;case 59+L2:Tw==-1&&(Ow=yv(Ow,/\f/g,"")),gw>0&&$1(Ow)-jw&&z0(gw>32?Y1(Ow+";",l_,$y,jw-1,tx):Y1(yv(Ow," ","")+";",l_,$y,jw-2,tx),tx);break;case 59:Ow+=";";default:if(z0(bw=hv(Ow,ky,$y,z2,L2,cx,i2,Kw,Ny=[],dx=[],jw,Cx),Cx),q_===123)if(L2===0)zy(Ow,ky,bw,bw,Ny,Cx,jw,i2,dx);else switch(w2===99&&E0(Ow,3)===110?100:w2){case 100:case 108:case 109:case 115:zy(T1,bw,bw,l_&&z0(hv(T1,bw,bw,0,0,cx,i2,Kw,cx,Ny=[],jw,dx),dx),cx,dx,jw,i2,l_?Ny:dx);break;default:zy(Ow,bw,bw,bw,[""],dx,0,i2,dx)}}z2=L2=gw=0,Fw=Tw=1,Kw=Ow="",jw=P2;break;case 58:jw=1+$1(Ow),gw=vC;default:if(Fw<1){if(q_==123)--Fw;else if(q_==125&&Fw++==0&&si()==125)continue}switch(Ow+=lv(q_),q_*Fw){case 38:Tw=L2>0?1:(Ow+="\f",-1);break;case 44:i2[z2++]=($1(Ow)-1)*Tw,Tw=1;break;case 64:wa()===45&&(Ow+=Lu(Rs())),w2=wa(),L2=jw=$1(Kw=Ow+=sy(bu())),q_++;break;case 45:vC===45&&$1(Ow)==2&&(Fw=0)}}return Cx}function hv(T1,ky,$y,l_,cx,Cx,P2,i2,tx,z2,L2,jw){for(var w2=cx-1,gw=cx===0?Cx:[""],vC=l0(gw),Fw=0,U2=0,Tw=0;Fw0?gw[q_]+" "+Kw:yv(Kw,/&\f/g,gw[q_])))&&(tx[Tw++]=Ny);return r0(T1,ky,$y,cx===0?Bd:i2,tx,z2,L2,jw)}function Qv(T1,ky,$y,l_){return r0(T1,ky,$y,$a,lv(Sr()),E1(T1,2,-2),0,l_)}function Y1(T1,ky,$y,l_,cx){return r0(T1,ky,$y,Bg,E1(T1,0,l_),E1(T1,l_+1,-1),l_,cx)}function M_(T1,ky){var $y=ky.path,l_=ky.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat($y?"Error in ".concat($y,": "):"").concat(T1).concat(l_.length?" Selector: ".concat(l_.join(" | ")):""))}var h1=function(ky,$y,l_){if(ky==="content"){var cx=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Cx=["normal","none","initial","inherit","unset"];(typeof $y!="string"||Cx.indexOf($y)===-1&&!cx.test($y)&&($y.charAt(0)!==$y.charAt($y.length-1)||$y.charAt(0)!=='"'&&$y.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat($y,"\"'`."),l_)}},_v=null,Iv=function(ky,$y,l_){ky==="animation"&&l_.hashId&&$y!=="none"&&lintWarning("You seem to be using hashed animation '".concat($y,"', in which case 'animationName' with Keyframe as value is recommended."),l_)},Ov=null;function v1(T1){var ky,$y=((ky=T1.match(/:not\(([^)]*)\)/))===null||ky===void 0?void 0:ky[1])||"",l_=$y.split(/(\[[^[]*])|(?=[.#])/).filter(function(cx){return cx});return l_.length>1}function K1(T1){return T1.parentSelectors.reduce(function(ky,$y){return ky?$y.includes("&")?$y.replace(/&/g,ky):"".concat(ky," ").concat($y):$y},"")}var sx=function(ky,$y,l_){var cx=K1(l_),Cx=cx.match(/:not\([^)]*\)/g)||[];Cx.length>0&&Cx.some(v1)&&lintWarning("Concat ':not' selector not support in legacy browsers.",l_)},Kx=null,t2=function(ky,$y,l_){switch(ky){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(ky,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l_);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof $y=="string"){var cx=$y.split(" ").map(function(i2){return i2.trim()});cx.length===4&&cx[1]!==cx[3]&&lintWarning("You seem to be using '".concat(ky,"' property with different left ").concat(ky," and right ").concat(ky,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l_)}return;case"clear":case"textAlign":($y==="left"||$y==="right")&&lintWarning("You seem to be using non-logical value '".concat($y,"' of ").concat(ky,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l_);return;case"borderRadius":if(typeof $y=="string"){var Cx=$y.split("/").map(function(i2){return i2.trim()}),P2=Cx.reduce(function(i2,tx){if(i2)return i2;var z2=tx.split(" ").map(function(L2){return L2.trim()});return z2.length>=2&&z2[0]!==z2[1]||z2.length===3&&z2[1]!==z2[2]||z2.length===4&&z2[2]!==z2[3]?!0:i2},!1);P2&&lintWarning("You seem to be using non-logical value '".concat($y,"' of ").concat(ky,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l_)}return;default:}},I2=null,D2=function(ky,$y,l_){(typeof $y=="string"&&/NaN/g.test($y)||Number.isNaN($y))&&lintWarning("Unexpected 'NaN' in property '".concat(ky,": ").concat($y,"'."),l_)},J_=null,ax=function(ky,$y,l_){l_.parentSelectors.some(function(cx){var Cx=cx.split(",");return Cx.some(function(P2){return P2.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",l_)},rx=null,ov="data-ant-cssinjs-cache-path",rv="_FILE_STYLE__";function yd(T1){return Object.keys(T1).map(function(ky){var $y=T1[ky];return"".concat(ky,":").concat($y)}).join(";")}var kg,Vg=!0;function wv(T1){var ky=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;kg=T1,Vg=ky}function b1(){if(!kg&&(kg={},(0,Rt.Z)())){var T1=document.createElement("div");T1.className=ov,T1.style.position="fixed",T1.style.visibility="hidden",T1.style.top="-9999px",document.body.appendChild(T1);var ky=getComputedStyle(T1).content||"";ky=ky.replace(/^"/,"").replace(/"$/,""),ky.split(";").forEach(function(cx){var Cx=cx.split(":"),P2=(0,D.Z)(Cx,2),i2=P2[0],tx=P2[1];kg[i2]=tx});var $y=document.querySelector("style[".concat(ov,"]"));if($y){var l_;Vg=!1,(l_=$y.parentNode)===null||l_===void 0||l_.removeChild($y)}document.body.removeChild(T1)}}function I1(T1){return b1(),!!kg[T1]}function k1(T1){var ky=kg[T1],$y=null;if(ky&&(0,Rt.Z)())if(Vg)$y=rv;else{var l_=document.querySelector("style[".concat(Hs,'="').concat(kg[T1],'"]'));l_?$y=l_.innerHTML:delete kg[T1]}return[$y,ky]}var S1="_skip_check_",Ay="_multi_value_";function U1(T1){var ky=R0(wy(T1),gv);return ky.replace(/\{%%%\:[^;];}/g,";")}function E_(T1){return(0,Bt.Z)(T1)==="object"&&T1&&(S1 in T1||Ay in T1)}function ty(T1,ky,$y){if(!ky)return T1;var l_=".".concat(ky),cx=$y==="low"?":where(".concat(l_,")"):l_,Cx=T1.split(",").map(function(P2){var i2,tx=P2.trim().split(/\s+/),z2=tx[0]||"",L2=((i2=z2.match(/^\w+/))===null||i2===void 0?void 0:i2[0])||"";return z2="".concat(L2).concat(cx).concat(z2.slice(L2.length)),[z2].concat((0,b.Z)(tx.slice(1))).join(" ")});return Cx.join(",")}var h_=function T1(ky){var $y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},cx=l_.root,Cx=l_.injectHash,P2=l_.parentSelectors,i2=$y.hashId,tx=$y.layer,z2=$y.path,L2=$y.hashPriority,jw=$y.transformers,w2=jw===void 0?[]:jw,gw=$y.linters,vC=gw===void 0?[]:gw,Fw="",U2={};function Tw(bw){var Ow=bw.getName(i2);if(!U2[Ow]){var j1=T1(bw.style,$y,{root:!1,parentSelectors:P2}),Px=(0,D.Z)(j1,1),Z_=Px[0];U2[Ow]="@keyframes ".concat(bw.getName(i2)).concat(Z_)}}function q_(bw){var Ow=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return bw.forEach(function(j1){Array.isArray(j1)?q_(j1,Ow):j1&&Ow.push(j1)}),Ow}var Kw=q_(Array.isArray(ky)?ky:[ky]);if(Kw.forEach(function(bw){var Ow=typeof bw=="string"&&!cx?{}:bw;if(typeof Ow=="string")Fw+="".concat(Ow,` -`);else if(Ow._keyframe)Tw(Ow);else{var j1=w2.reduce(function(Px,Z_){var Vx;return(Z_==null||(Vx=Z_.visit)===null||Vx===void 0?void 0:Vx.call(Z_,Px))||Px},Ow);Object.keys(j1).forEach(function(Px){var Z_=j1[Px];if((0,Bt.Z)(Z_)==="object"&&Z_&&(Px!=="animationName"||!Z_._keyframe)&&!E_(Z_)){var Vx=!1,kx=Px.trim(),C2=!1;(cx||Cx)&&i2?kx.startsWith("@")?Vx=!0:kx=ty(Px,i2,L2):cx&&!i2&&(kx==="&"||kx==="")&&(kx="",C2=!0);var q2=T1(Z_,$y,{root:C2,injectHash:Vx,parentSelectors:[].concat((0,b.Z)(P2),[kx])}),lw=(0,D.Z)(q2,2),eC=lw[0],zC=lw[1];U2=(0,x.Z)((0,x.Z)({},U2),zC),Fw+="".concat(kx).concat(eC)}else{let qC=function(bS,tC){var zw=bS.replace(/[A-Z]/g,function(YS){return"-".concat(YS.toLowerCase())}),VS=tC;!Wa[bS]&&typeof VS=="number"&&VS!==0&&(VS="".concat(VS,"px")),bS==="animationName"&&tC!==null&&tC!==void 0&&tC._keyframe&&(Tw(tC),VS=tC.getName(i2)),Fw+="".concat(zw,":").concat(VS,";")};var dC,YC=(dC=Z_==null?void 0:Z_.value)!==null&&dC!==void 0?dC:Z_;(0,Bt.Z)(Z_)==="object"&&Z_!==null&&Z_!==void 0&&Z_[Ay]&&Array.isArray(YC)?YC.forEach(function(bS){qC(Px,bS)}):qC(Px,YC)}})}}),!cx)Fw="{".concat(Fw,"}");else if(tx&&d0()){var Ny=tx.split(","),dx=Ny[Ny.length-1].trim();Fw="@layer ".concat(dx," {").concat(Fw,"}"),Ny.length>1&&(Fw="@layer ".concat(tx,"{%%%:%}").concat(Fw))}return[Fw,U2]};function g_(T1,ky){return w("".concat(T1.join("%")).concat(ky))}function ox(){return null}var $_="style";function K_(T1,ky){var $y=T1.token,l_=T1.path,cx=T1.hashId,Cx=T1.layer,P2=T1.nonce,i2=T1.clientOnly,tx=T1.order,z2=tx===void 0?0:tx,L2=S.useContext(Mt),jw=L2.autoClear,w2=L2.mock,gw=L2.defaultCache,vC=L2.hashPriority,Fw=L2.container,U2=L2.ssrInline,Tw=L2.transformers,q_=L2.linters,Kw=L2.cache,Ny=$y._tokenKey,dx=[Ny].concat((0,b.Z)(l_)),bw=G0,Ow=j0($_,dx,function(){var kx=dx.join("|");if(I1(kx)){var C2=k1(kx),q2=(0,D.Z)(C2,2),lw=q2[0],eC=q2[1];if(lw)return[lw,Ny,eC,{},i2,z2]}var zC=ky(),dC=h_(zC,{hashId:cx,hashPriority:vC,layer:Cx,path:l_.join("-"),transformers:Tw,linters:q_}),YC=(0,D.Z)(dC,2),qC=YC[0],bS=YC[1],tC=U1(qC),zw=g_(dx,tC);return[tC,Ny,zw,bS,i2,z2]},function(kx,C2){var q2=(0,D.Z)(kx,3),lw=q2[2];(C2||jw)&&G0&&(0,a.jL)(lw,{mark:Hs})},function(kx){var C2=(0,D.Z)(kx,4),q2=C2[0],lw=C2[1],eC=C2[2],zC=C2[3];if(bw&&q2!==rv){var dC={mark:Hs,prepend:"queue",attachTo:Fw,priority:z2},YC=typeof P2=="function"?P2():P2;YC&&(dC.csp={nonce:YC});var qC=(0,a.hq)(q2,eC,dC);qC[Jr]=Kw.instanceId,qC.setAttribute(wn,Ny),Object.keys(zC).forEach(function(bS){(0,a.hq)(U1(zC[bS]),"_effect-".concat(bS),dC)})}}),j1=(0,D.Z)(Ow,3),Px=j1[0],Z_=j1[1],Vx=j1[2];return function(kx){var C2;if(!U2||bw||!gw)C2=S.createElement(ox,null);else{var q2;C2=S.createElement("style",(0,Td.Z)({},(q2={},(0,u.Z)(q2,wn,Z_),(0,u.Z)(q2,Hs,Vx),q2),{dangerouslySetInnerHTML:{__html:Px}}))}return S.createElement(S.Fragment,null,C2,kx)}}var k_=function(ky,$y,l_){var cx=(0,D.Z)(ky,6),Cx=cx[0],P2=cx[1],i2=cx[2],tx=cx[3],z2=cx[4],L2=cx[5],jw=l_||{},w2=jw.plain;if(z2)return null;var gw=Cx,vC={"data-rc-order":"prependQueue","data-rc-priority":"".concat(L2)};return gw=u0(Cx,P2,i2,vC,w2),tx&&Object.keys(tx).forEach(function(Fw){if(!$y[Fw]){$y[Fw]=!0;var U2=U1(tx[Fw]);gw+=u0(U2,P2,"_effect-".concat(Fw),vC,w2)}}),[L2,i2,gw]},A_="cssVar",gx=function(ky,$y){var l_=ky.key,cx=ky.prefix,Cx=ky.unitless,P2=ky.ignore,i2=ky.token,tx=ky.scope,z2=tx===void 0?"":tx,L2=(0,S.useContext)(Mt),jw=L2.cache.instanceId,w2=L2.container,gw=i2._tokenKey,vC=[].concat((0,b.Z)(ky.path),[l_,z2,gw]),Fw=j0(A_,vC,function(){var U2=$y(),Tw=zo(U2,l_,{prefix:cx,unitless:Cx,ignore:P2,scope:z2}),q_=(0,D.Z)(Tw,2),Kw=q_[0],Ny=q_[1],dx=g_(vC,Ny);return[Kw,Ny,dx,l_]},function(U2){var Tw=(0,D.Z)(U2,3),q_=Tw[2];G0&&(0,a.jL)(q_,{mark:Hs})},function(U2){var Tw=(0,D.Z)(U2,3),q_=Tw[1],Kw=Tw[2];if(q_){var Ny=(0,a.hq)(q_,Kw,{mark:Hs,prepend:"queue",attachTo:w2,priority:-999});Ny[Jr]=jw,Ny.setAttribute(wn,l_)}});return Fw},Na=function(ky,$y,l_){var cx=(0,D.Z)(ky,4),Cx=cx[1],P2=cx[2],i2=cx[3],tx=l_||{},z2=tx.plain;if(!Cx)return null;var L2=-999,jw={"data-rc-order":"prependQueue","data-rc-priority":"".concat(L2)},w2=u0(Cx,i2,P2,jw,z2);return[L2,P2,w2]},_x=gx,c2,b2=(c2={},(0,u.Z)(c2,$_,k_),(0,u.Z)(c2,Su,xa),(0,u.Z)(c2,A_,Na),c2);function N2(T1){return T1!==null}function j2(T1,ky){var $y=typeof ky=="boolean"?{plain:ky}:ky||{},l_=$y.plain,cx=l_===void 0?!1:l_,Cx=$y.types,P2=Cx===void 0?["style","token","cssVar"]:Cx,i2=new RegExp("^(".concat((typeof P2=="string"?[P2]:P2).join("|"),")%")),tx=Array.from(T1.cache.keys()).filter(function(w2){return i2.test(w2)}),z2={},L2={},jw="";return tx.map(function(w2){var gw=w2.replace(i2,"").replace(/%/g,"|"),vC=w2.split("%"),Fw=_slicedToArray(vC,1),U2=Fw[0],Tw=b2[U2],q_=Tw(T1.cache.get(w2)[1],z2,{plain:cx});if(!q_)return null;var Kw=_slicedToArray(q_,3),Ny=Kw[0],dx=Kw[1],bw=Kw[2];return w2.startsWith("style")&&(L2[gw]=dx),[Ny,bw]}).filter(N2).sort(function(w2,gw){var vC=_slicedToArray(w2,1),Fw=vC[0],U2=_slicedToArray(gw,1),Tw=U2[0];return Fw-Tw}).forEach(function(w2){var gw=_slicedToArray(w2,2),vC=gw[1];jw+=vC}),jw+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(L2),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),cx),jw}var mC=function(){function T1(ky,$y){(0,ze.Z)(this,T1),(0,u.Z)(this,"name",void 0),(0,u.Z)(this,"style",void 0),(0,u.Z)(this,"_keyframe",!0),this.name=ky,this.style=$y}return(0,Ie.Z)(T1,[{key:"getName",value:function(){var $y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $y?"".concat($y,"-").concat(this.name):this.name}}]),T1}(),XC=mC;function EC(T1){if(typeof T1=="number")return[[T1],!1];var ky=String(T1).trim(),$y=ky.match(/(.*)(!important)/),l_=($y?$y[1]:ky).trim().split(/\s+/),cx="",Cx=0;return[l_.reduce(function(P2,i2){if(i2.includes("(")||i2.includes(")")){var tx=i2.split("(").length-1,z2=i2.split(")").length-1;Cx+=tx-z2}return Cx===0?(P2.push(cx+i2),cx=""):Cx>0&&(cx+=i2),P2},[]),!!$y]}function Pw(T1){return T1.notSplit=!0,T1}var Aw={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Pw(["borderTop","borderBottom"]),borderBlockStart:Pw(["borderTop"]),borderBlockEnd:Pw(["borderBottom"]),borderInline:Pw(["borderLeft","borderRight"]),borderInlineStart:Pw(["borderLeft"]),borderInlineEnd:Pw(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function KC(T1,ky){var $y=T1;return ky&&($y="".concat($y," !important")),{_skip_check_:!0,value:$y}}var JS={visit:function(ky){var $y={};return Object.keys(ky).forEach(function(l_){var cx=ky[l_],Cx=Aw[l_];if(Cx&&(typeof cx=="number"||typeof cx=="string")){var P2=EC(cx),i2=(0,D.Z)(P2,2),tx=i2[0],z2=i2[1];Cx.length&&Cx.notSplit?Cx.forEach(function(L2){$y[L2]=KC(cx,z2)}):Cx.length===1?$y[Cx[0]]=KC(cx,z2):Cx.length===2?Cx.forEach(function(L2,jw){var w2;$y[L2]=KC((w2=tx[jw])!==null&&w2!==void 0?w2:tx[0],z2)}):Cx.length===4?Cx.forEach(function(L2,jw){var w2,gw;$y[L2]=KC((w2=(gw=tx[jw])!==null&&gw!==void 0?gw:tx[jw-2])!==null&&w2!==void 0?w2:tx[0],z2)}):$y[l_]=cx}else $y[l_]=cx}),$y}},sS=null,UC=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function FS(T1,ky){var $y=Math.pow(10,ky+1),l_=Math.floor(T1*$y);return Math.round(l_/10)*10/$y}var KS=function(){var ky=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$y=ky.rootValue,l_=$y===void 0?16:$y,cx=ky.precision,Cx=cx===void 0?5:cx,P2=ky.mediaQuery,i2=P2===void 0?!1:P2,tx=function(jw,w2){if(!w2)return jw;var gw=parseFloat(w2);if(gw<=1)return jw;var vC=FS(gw/l_,Cx);return"".concat(vC,"rem")},z2=function(jw){var w2=_objectSpread({},jw);return Object.entries(jw).forEach(function(gw){var vC=_slicedToArray(gw,2),Fw=vC[0],U2=vC[1];if(typeof U2=="string"&&U2.includes("px")){var Tw=U2.replace(UC,tx);w2[Fw]=Tw}!unitless[Fw]&&typeof U2=="number"&&U2!==0&&(w2[Fw]="".concat(U2,"px").replace(UC,tx));var q_=Fw.trim();if(q_.startsWith("@")&&q_.includes("px")&&i2){var Kw=Fw.replace(UC,tx);w2[Kw]=w2[Fw],delete w2[Fw]}}),w2};return{visit:z2}},VC=null,vE={supportModernCSS:function(){return Lv()&&k0()}}},69929:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};g.Z=l},43755:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};g.Z=l},48041:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};g.Z=l},12022:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};g.Z=l},48245:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};g.Z=l},27955:function(c,g){"use strict";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};g.Z=l},58781:function(c,g,l){"use strict";l.d(g,{Z:function(){return lu}});var u=l(54131),D=l(35372),b=l(16514),x=l(56348),y=l(77617),w=l(92310),a=l.n(w),S=(0,y.createContext)({}),I=S,N=l(13255),ie=l(12722),ze=l(9915),Ie=2,ct=.16,At=.05,rt=.05,It=.15,Ot=5,wn=4,Hs=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function jr(_h){var Kr=_h.r,fr=_h.g,ri=_h.b,Ra=(0,ie.py)(Kr,fr,ri);return{h:Ra.h*360,s:Ra.s,v:Ra.v}}function Jr(_h){var Kr=_h.r,fr=_h.g,ri=_h.b;return"#".concat((0,ie.vq)(Kr,fr,ri,!1))}function Yn(_h,Kr,fr){var ri=fr/100,Ra={r:(Kr.r-_h.r)*ri+_h.r,g:(Kr.g-_h.g)*ri+_h.g,b:(Kr.b-_h.b)*ri+_h.b};return Ra}function Lt(_h,Kr,fr){var ri;return Math.round(_h.h)>=60&&Math.round(_h.h)<=240?ri=fr?Math.round(_h.h)-Ie*Kr:Math.round(_h.h)+Ie*Kr:ri=fr?Math.round(_h.h)+Ie*Kr:Math.round(_h.h)-Ie*Kr,ri<0?ri+=360:ri>=360&&(ri-=360),ri}function _n(_h,Kr,fr){if(_h.h===0&&_h.s===0)return _h.s;var ri;return fr?ri=_h.s-ct*Kr:Kr===wn?ri=_h.s+ct:ri=_h.s+At*Kr,ri>1&&(ri=1),fr&&Kr===Ot&&ri>.1&&(ri=.1),ri<.06&&(ri=.06),Number(ri.toFixed(2))}function Mt(_h,Kr,fr){var ri;return fr?ri=_h.v+rt*Kr:ri=_h.v-It*Kr,ri>1&&(ri=1),Number(ri.toFixed(2))}function Bt(_h){for(var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fr=[],ri=(0,ze.uA)(_h),Ra=Ot;Ra>0;Ra-=1){var Sg=jr(ri),Jg=Jr((0,ze.uA)({h:Lt(Sg,Ra,!0),s:_n(Sg,Ra,!0),v:Mt(Sg,Ra,!0)}));fr.push(Jg)}fr.push(Jr(ri));for(var j0=1;j0<=wn;j0+=1){var Wo=jr(ri),Mo=Jr((0,ze.uA)({h:Lt(Wo,j0),s:_n(Wo,j0),v:Mt(Wo,j0)}));fr.push(Mo)}return Kr.theme==="dark"?Hs.map(function(qr){var On=qr.index,rn=qr.opacity,ui=Jr(Yn((0,ze.uA)(Kr.backgroundColor||"#141414"),(0,ze.uA)(fr[On]),rn*100));return ui}):fr}var Rt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},on={},Hr={};Object.keys(Rt).forEach(function(_h){on[_h]=Bt(Rt[_h]),on[_h].primary=on[_h][5],Hr[_h]=Bt(Rt[_h],{theme:"dark",backgroundColor:"#141414"}),Hr[_h].primary=Hr[_h][5]});var vn=on.red,Ca=on.volcano,ai=on.gold,gt=on.orange,Zr=on.yellow,Ht=on.lime,Zs=on.green,oi=on.cyan,Pa=on.blue,Aa=on.geekblue,Pg=on.purple,Ug=on.magenta,e0=on.grey,H0=l(32188),X0=l(98052),d0=l(34301),jv=l.n(d0);function Lv(_h,Kr){(0,H0.ZP)(_h,"[@ant-design/icons] ".concat(Kr))}function Je(_h){return(0,N.Z)(_h)==="object"&&typeof _h.name=="string"&&typeof _h.theme=="string"&&((0,N.Z)(_h.icon)==="object"||typeof _h.icon=="function")}function k0(){var _h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(_h).reduce(function(Kr,fr){var ri=_h[fr];switch(fr){case"class":Kr.className=ri,delete Kr.class;break;default:delete Kr[fr],Kr[jv()(fr)]=ri}return Kr},{})}function G0(_h,Kr,fr){return fr?y.createElement(_h.tag,(0,u.Z)((0,u.Z)({key:Kr},k0(_h.attrs)),fr),(_h.children||[]).map(function(ri,Ra){return G0(ri,"".concat(Kr,"-").concat(_h.tag,"-").concat(Ra))})):y.createElement(_h.tag,(0,u.Z)({key:Kr},k0(_h.attrs)),(_h.children||[]).map(function(ri,Ra){return G0(ri,"".concat(Kr,"-").concat(_h.tag,"-").concat(Ra))}))}function iv(_h){return Bt(_h)[0]}function u0(_h){return _h?Array.isArray(_h)?_h:[_h]:[]}var B1={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Dg=` +!(function(){var wpe=Object.defineProperty,Spe=Object.defineProperties;var Epe=Object.getOwnPropertyDescriptors;var I$=Object.getOwnPropertySymbols;var qre=Object.prototype.hasOwnProperty,Jre=Object.prototype.propertyIsEnumerable;var ey=Math.pow,uQ=(St,me,x)=>me in St?wpe(St,me,{enumerable:!0,configurable:!0,writable:!0,value:x}):St[me]=x,Kf=(St,me)=>{for(var x in me||(me={}))qre.call(me,x)&&uQ(St,x,me[x]);if(I$)for(var x of I$(me))Jre.call(me,x)&&uQ(St,x,me[x]);return St},Rv=(St,me)=>Spe(St,Epe(me));var lA=(St,me)=>{var x={};for(var v in St)qre.call(St,v)&&me.indexOf(v)<0&&(x[v]=St[v]);if(St!=null&&I$)for(var v of I$(St))me.indexOf(v)<0&&Jre.call(St,v)&&(x[v]=St[v]);return x};var uA=(St,me,x)=>(uQ(St,typeof me!="symbol"?me+"":me,x),x);var vP=(St,me,x)=>new Promise((v,z)=>{var P=X=>{try{W(x.next(X))}catch(Y){z(Y)}},A=X=>{try{W(x.throw(X))}catch(Y){z(Y)}},W=X=>X.done?v(X.value):Promise.resolve(X.value).then(P,A);W((x=x.apply(St,me)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[959],{95906:function(St){"use strict";(function(me,x){St.exports=x()})(this,function(){function me(ie){var ae=[];return ie.AMapUI&&ae.push(x(ie.AMapUI)),ie.Loca&&ae.push(v(ie.Loca)),Promise.all(ae)}function x(ie){return new Promise(function(ae,se){var Ie=[];if(ie.plugins)for(var Be=0;Be=60&&Math.round(vt.h)<=240?Tt=Vt?Math.round(vt.h)-P*ze:Math.round(vt.h)+P*ze:Tt=Vt?Math.round(vt.h)+P*ze:Math.round(vt.h)-P*ze,Tt<0?Tt+=360:Tt>=360&&(Tt-=360),Tt}function nt(vt,ze,Vt){if(vt.h===0&&vt.s===0)return vt.s;var Tt;return Vt?Tt=vt.s-A*ze:ze===ae?Tt=vt.s+A:Tt=vt.s+W*ze,Tt>1&&(Tt=1),Vt&&ze===ie&&Tt>.1&&(Tt=.1),Tt<.06&&(Tt=.06),Number(Tt.toFixed(2))}function Ge(vt,ze,Vt){var Tt;return Vt?Tt=vt.v+X*ze:Tt=vt.v-Y*ze,Tt>1&&(Tt=1),Number(Tt.toFixed(2))}function at(vt){for(var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Vt=[],Tt=(0,z.uA)(vt),un=ie;un>0;un-=1){var on=Ie(Tt),Lr=Be((0,z.uA)({h:ct(on,un,!0),s:nt(on,un,!0),v:Ge(on,un,!0)}));Vt.push(Lr)}Vt.push(Be(Tt));for(var Yr=1;Yr<=ae;Yr+=1){var fi=Ie(Tt),Xi=Be((0,z.uA)({h:ct(fi,Yr),s:nt(fi,Yr),v:Ge(fi,Yr)}));Vt.push(Xi)}return ze.theme==="dark"?se.map(function(Qi){var hi=Qi.index,Go=Qi.opacity,Mo=Be(Ce((0,z.uA)(ze.backgroundColor||"#141414"),(0,z.uA)(Vt[hi]),Go*100));return Mo}):Vt}var Ye={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"},rt={},Gt={};Object.keys(Ye).forEach(function(vt){rt[vt]=at(Ye[vt]),rt[vt].primary=rt[vt][5],Gt[vt]=at(Ye[vt],{theme:"dark",backgroundColor:"#141414"}),Gt[vt].primary=Gt[vt][5]});var yt=rt.red,Et=rt.volcano,ht=rt.gold,Pe=rt.orange,et=rt.yellow,Oe=rt.lime,Ue=rt.green,je=rt.cyan,ft=rt.blue,Ct=rt.geekblue,Xe=rt.purple,hn=rt.magenta,Nt=rt.grey,Te=rt.grey},78600:function(St,me,x){"use strict";x.d(me,{E4:function(){return Vd},jG:function(){return vt},t2:function(){return ir},ks:function(){return Ms},bf:function(){return ro},CI:function(){return pu},fp:function(){return Jn},xy:function(){return Wl}});var v=x(16514),z=x(35372),P=x(49397),A=x(54131);function W(us){for(var Ca=0,Ta,Ja=0,ou=us.length;ou>=4;++Ja,ou-=4)Ta=us.charCodeAt(Ja)&255|(us.charCodeAt(++Ja)&255)<<8|(us.charCodeAt(++Ja)&255)<<16|(us.charCodeAt(++Ja)&255)<<24,Ta=(Ta&65535)*1540483477+((Ta>>>16)*59797<<16),Ta^=Ta>>>24,Ca=(Ta&65535)*1540483477+((Ta>>>16)*59797<<16)^(Ca&65535)*1540483477+((Ca>>>16)*59797<<16);switch(ou){case 3:Ca^=(us.charCodeAt(Ja+2)&255)<<16;case 2:Ca^=(us.charCodeAt(Ja+1)&255)<<8;case 1:Ca^=us.charCodeAt(Ja)&255,Ca=(Ca&65535)*1540483477+((Ca>>>16)*59797<<16)}return Ca^=Ca>>>13,Ca=(Ca&65535)*1540483477+((Ca>>>16)*59797<<16),((Ca^Ca>>>15)>>>0).toString(36)}var X=W,Y=x(98052),ie=x(77617),ae=x.t(ie,2),se=x(64913),Ie=x(48897),Be=x(61577),Ce=x(22946),ct="%";function nt(us){return us.join(ct)}var Ge=function(){function us(Ca){(0,Be.Z)(this,us),(0,v.Z)(this,"instanceId",void 0),(0,v.Z)(this,"cache",new Map),this.instanceId=Ca}return(0,Ce.Z)(us,[{key:"get",value:function(Ta){return this.opGet(nt(Ta))}},{key:"opGet",value:function(Ta){return this.cache.get(Ta)||null}},{key:"update",value:function(Ta,Ja){return this.opUpdate(nt(Ta),Ja)}},{key:"opUpdate",value:function(Ta,Ja){var ou=this.cache.get(Ta),yu=Ja(ou);yu===null?this.cache.delete(Ta):this.cache.set(Ta,yu)}}]),us}(),at=Ge,Ye=null,rt="data-token-hash",Gt="data-css-hash",yt="data-cache-path",Et="__cssinjs_instance__";function ht(){var us=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Ca=document.body.querySelectorAll("style[".concat(Gt,"]"))||[],Ta=document.head.firstChild;Array.from(Ca).forEach(function(ou){ou[Et]=ou[Et]||us,ou[Et]===us&&document.head.insertBefore(ou,Ta)});var Ja={};Array.from(document.querySelectorAll("style[".concat(Gt,"]"))).forEach(function(ou){var yu=ou.getAttribute(Gt);if(Ja[yu]){if(ou[Et]===us){var Ec;(Ec=ou.parentNode)===null||Ec===void 0||Ec.removeChild(ou)}}else Ja[yu]=!0})}return new at(us)}var Pe=ie.createContext({hashPriority:"low",cache:ht(),defaultCache:!0}),et=function(Ca){var Ta=Ca.children,Ja=_objectWithoutProperties(Ca,Ye),ou=React.useContext(Pe),yu=useMemo(function(){var Ec=_objectSpread({},ou);Object.keys(Ja).forEach(function(Jl){var Rc=Ja[Jl];Ja[Jl]!==void 0&&(Ec[Jl]=Rc)});var Xu=Ja.cache;return Ec.cache=Ec.cache||ht(),Ec.defaultCache=!Xu&&ou.defaultCache,Ec},[ou,Ja],function(Ec,Xu){return!isEqual(Ec[0],Xu[0],!0)||!isEqual(Ec[1],Xu[1],!0)});return React.createElement(Pe.Provider,{value:yu},Ta)},Oe=Pe,Ue=x(13255),je=x(10254);function ft(us,Ca){if(us.length!==Ca.length)return!1;for(var Ta=0;Ta1&&arguments[1]!==void 0?arguments[1]:!1,Ec={map:this.cache};return Ta.forEach(function(Xu){if(!Ec)Ec=void 0;else{var Jl;Ec=(Jl=Ec)===null||Jl===void 0||(Jl=Jl.map)===null||Jl===void 0?void 0:Jl.get(Xu)}}),(Ja=Ec)!==null&&Ja!==void 0&&Ja.value&&yu&&(Ec.value[1]=this.cacheCallTimes++),(ou=Ec)===null||ou===void 0?void 0:ou.value}},{key:"get",value:function(Ta){var Ja;return(Ja=this.internalGet(Ta,!0))===null||Ja===void 0?void 0:Ja[0]}},{key:"has",value:function(Ta){return!!this.internalGet(Ta)}},{key:"set",value:function(Ta,Ja){var ou=this;if(!this.has(Ta)){if(this.size()+1>us.MAX_CACHE_SIZE+us.MAX_CACHE_OFFSET){var yu=this.keys.reduce(function(Rc,Ac){var Fh=(0,z.Z)(Rc,2),pc=Fh[1];return ou.internalGet(Ac)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),hn+=1}return(0,Ce.Z)(us,[{key:"getDerivativeToken",value:function(Ta){return this.derivatives.reduce(function(Ja,ou){return ou(Ta,Ja)},void 0)}}]),us}(),Te=new Ct;function vt(us){var Ca=Array.isArray(us)?us:[us];return Te.has(Ca)||Te.set(Ca,new Nt(Ca)),Te.get(Ca)}var ze=new WeakMap,Vt={};function Tt(us,Ca){for(var Ta=ze,Ja=0;Ja3&&arguments[3]!==void 0?arguments[3]:{},yu=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(yu)return us;var Ec=(0,A.Z)((0,A.Z)({},ou),{},(Ja={},(0,v.Z)(Ja,rt,Ca),(0,v.Z)(Ja,Gt,Ta),Ja)),Xu=Object.keys(Ec).map(function(Jl){var Rc=Ec[Jl];return Rc?"".concat(Jl,'="').concat(Rc,'"'):null}).filter(function(Jl){return Jl}).join(" ");return"")}var Ms=function(Ca){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(Ta?"".concat(Ta,"-"):"").concat(Ca).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()},Ar=function(Ca,Ta,Ja){return Object.keys(Ca).length?".".concat(Ta).concat(Ja!=null&&Ja.scope?".".concat(Ja.scope):"","{").concat(Object.entries(Ca).map(function(ou){var yu=(0,z.Z)(ou,2),Ec=yu[0],Xu=yu[1];return"".concat(Ec,":").concat(Xu,";")}).join(""),"}"):""},Rt=function(Ca,Ta,Ja){var ou={},yu={};return Object.entries(Ca).forEach(function(Ec){var Xu,Jl,Rc=(0,z.Z)(Ec,2),Ac=Rc[0],Fh=Rc[1];if(Ja!=null&&(Xu=Ja.preserve)!==null&&Xu!==void 0&&Xu[Ac])yu[Ac]=Fh;else if((typeof Fh=="string"||typeof Fh=="number")&&!(Ja!=null&&(Jl=Ja.ignore)!==null&&Jl!==void 0&&Jl[Ac])){var pc,hh=Ms(Ac,Ja==null?void 0:Ja.prefix);ou[hh]=typeof Fh=="number"&&!(Ja!=null&&(pc=Ja.unitless)!==null&&pc!==void 0&&pc[Ac])?"".concat(Fh,"px"):String(Fh),yu[Ac]="var(".concat(hh,")")}}),[yu,Ar(ou,Ta,{scope:Ja==null?void 0:Ja.scope})]},jn=x(64693),wr=(0,A.Z)({},ae),oi=wr.useInsertionEffect,Ti=function(Ca,Ta,Ja){ie.useMemo(Ca,Ja),(0,jn.Z)(function(){return Ta(!0)},Ja)},Bi=oi?function(us,Ca,Ta){return oi(function(){return us(),Ca()},Ta)}:Ti,no=Bi,Vr=(0,A.Z)({},ae),Rn=Vr.useInsertionEffect,Xt=function(Ca){var Ta=[],Ja=!1;function ou(yu){Ja||Ta.push(yu)}return ie.useEffect(function(){return Ja=!1,function(){Ja=!0,Ta.length&&Ta.forEach(function(yu){return yu()})}},Ca),ou},Sn=function(){return function(Ca){Ca()}},Pn=typeof Rn!="undefined"?Xt:Sn,hr=Pn;function mt(){return!1}var tt=!1;function kt(){return tt}var vn=mt;if(!1)var vr,qr;function Ni(us,Ca,Ta,Ja,ou){var yu=ie.useContext(Oe),Ec=yu.cache,Xu=[us].concat((0,P.Z)(Ca)),Jl=nt(Xu),Rc=hr([Jl]),Ac=vn(),Fh=function(Ih){Ec.opUpdate(Jl,function(Oc){var bh=Oc||[void 0,void 0],jl=(0,z.Z)(bh,2),Vh=jl[0],wa=Vh===void 0?0:Vh,su=jl[1],gh=su,Th=gh||Ta(),ws=[wa,Th];return Ih?Ih(ws):ws})};ie.useMemo(function(){Fh()},[Jl]);var pc=Ec.opGet(Jl),hh=pc[1];return no(function(){ou==null||ou(hh)},function(hd){return Fh(function(Ih){var Oc=(0,z.Z)(Ih,2),bh=Oc[0],jl=Oc[1];return hd&&bh===0&&(ou==null||ou(hh)),[bh+1,jl]}),function(){Ec.opUpdate(Jl,function(Ih){var Oc=Ih||[],bh=(0,z.Z)(Oc,2),jl=bh[0],Vh=jl===void 0?0:jl,wa=bh[1],su=Vh-1;return su===0?(Rc(function(){(hd||!Ec.opGet(Jl))&&(Ja==null||Ja(wa,!1))}),null):[Vh-1,wa]})}},[Jl]),hh}var li={},Un="css",dn=new Map;function xt(us){dn.set(us,(dn.get(us)||0)+1)}function it(us,Ca){if(typeof document!="undefined"){var Ta=document.querySelectorAll("style[".concat(rt,'="').concat(us,'"]'));Ta.forEach(function(Ja){if(Ja[Et]===Ca){var ou;(ou=Ja.parentNode)===null||ou===void 0||ou.removeChild(Ja)}})}}var Bt=0;function rn(us,Ca){dn.set(us,(dn.get(us)||0)-1);var Ta=Array.from(dn.keys()),Ja=Ta.filter(function(ou){var yu=dn.get(ou)||0;return yu<=0});Ta.length-Ja.length>Bt&&Ja.forEach(function(ou){it(ou,Ca),dn.delete(ou)})}var ir=function(Ca,Ta,Ja,ou){var yu=Ja.getDerivativeToken(Ca),Ec=(0,A.Z)((0,A.Z)({},yu),Ta);return ou&&(Ec=ou(Ec)),Ec},tr="token";function Jn(us,Ca){var Ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ja=(0,ie.useContext)(Oe),ou=Ja.cache.instanceId,yu=Ja.container,Ec=Ta.salt,Xu=Ec===void 0?"":Ec,Jl=Ta.override,Rc=Jl===void 0?li:Jl,Ac=Ta.formatToken,Fh=Ta.getComputedToken,pc=Ta.cssVar,hh=Tt(function(){return Object.assign.apply(Object,[{}].concat((0,P.Z)(Ca)))},Ca),hd=on(hh),Ih=on(Rc),Oc=pc?on(pc):"",bh=Ni(tr,[Xu,us.id,hd,Ih,Oc],function(){var jl,Vh=Fh?Fh(hh,Rc,us):ir(hh,Rc,us,Ac),wa=(0,A.Z)({},Vh),su="";if(pc){var gh=Rt(Vh,pc.key,{prefix:pc.prefix,ignore:pc.ignore,unitless:pc.unitless,preserve:pc.preserve}),Th=(0,z.Z)(gh,2);Vh=Th[0],su=Th[1]}var ws=Lr(Vh,Xu);Vh._tokenKey=ws,wa._tokenKey=Lr(wa,Xu);var Eu=(jl=pc==null?void 0:pc.key)!==null&&jl!==void 0?jl:ws;Vh._themeKey=Eu,xt(Eu);var $l="".concat(Un,"-").concat(X(ws));return Vh._hashId=$l,[Vh,$l,wa,su,(pc==null?void 0:pc.key)||""]},function(jl){rn(jl[0]._themeKey,ou)},function(jl){var Vh=(0,z.Z)(jl,4),wa=Vh[0],su=Vh[3];if(pc&&su){var gh=(0,Y.hq)(su,X("css-variables-".concat(wa._themeKey)),{mark:Gt,prepend:"queue",attachTo:yu,priority:-999});gh[Et]=ou,gh.setAttribute(rt,wa._themeKey)}});return bh}var nn=function(Ca,Ta,Ja){var ou=(0,z.Z)(Ca,5),yu=ou[2],Ec=ou[3],Xu=ou[4],Jl=Ja||{},Rc=Jl.plain;if(!Ec)return null;var Ac=yu._tokenKey,Fh=-999,pc={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Fh)},hh=ai(Ec,Xu,Ac,pc,Rc);return[Fh,Ac,hh]},er=x(79384),Fr={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},jr=Fr,bo="-ms-",zt="-moz-",en="-webkit-",Cn="comm",rr="rule",Pr="decl",Er="@page",ui="@media",Gr="@import",zr="@charset",Ei="@viewport",Zi="@supports",Kr="@document",Xr="@namespace",Qo="@keyframes",pr="@font-face",qo="@counter-style",Br="@font-feature-values",sr="@layer",ii=Math.abs,qi=String.fromCharCode,Ln=Object.assign;function zn(us,Ca){return _i(us,0)^45?(((Ca<<2^_i(us,0))<<2^_i(us,1))<<2^_i(us,2))<<2^_i(us,3):0}function Wi(us){return us.trim()}function Yi(us,Ca){return(us=Ca.exec(us))?us[0]:us}function so(us,Ca,Ta){return us.replace(Ca,Ta)}function ko(us,Ca,Ta){return us.indexOf(Ca,Ta)}function _i(us,Ca){return us.charCodeAt(Ca)|0}function hs(us,Ca,Ta){return us.slice(Ca,Ta)}function Ts(us){return us.length}function Qr(us){return us.length}function Ai(us,Ca){return Ca.push(us),us}function Ri(us,Ca){return us.map(Ca).join("")}function To(us,Ca){return us.filter(function(Ta){return!Yi(Ta,Ca)})}function yo(us,Ca){for(var Ta="",Ja=0;Ja0?_i(el,--Rs):0,fa--,Ds===10&&(fa=1,Bs--),Ds}function Kt(){return Ds=Rs2||Ao(Ds)>3?"":" "}function ka(us){for(;Kt();)switch(Ao(Ds)){case 0:append(Ea(Rs-1),us);break;case 2:append(Po(Ds),us);break;default:append(from(Ds),us)}return us}function Xs(us,Ca){for(;--Ca&&Kt()&&!(Ds<48||Ds>102||Ds>57&&Ds<65||Ds>70&&Ds<97););return Ui(us,Ur()+(Ca<6&&Nn()==32&&Kt()==32))}function zs(us){for(;Kt();)switch(Ds){case us:return Rs;case 34:case 39:us!==34&&us!==39&&zs(Ds);break;case 40:us===41&&zs(us);break;case 92:Kt();break}return Rs}function xa(us,Ca){for(;Kt()&&us+Ds!==47+10;)if(us+Ds===42+42&&Nn()===47)break;return"/*"+Ui(Ca,Rs-1)+"*"+qi(us===47?us:Kt())}function Ea(us){for(;!Ao(Nn());)Kt();return Ui(us,Rs)}function _a(us){return ps(Ba("",null,null,null,[""],us=rs(us),0,[0],us))}function Ba(us,Ca,Ta,Ja,ou,yu,Ec,Xu,Jl){for(var Rc=0,Ac=0,Fh=Ec,pc=0,hh=0,hd=0,Ih=1,Oc=1,bh=1,jl=0,Vh="",wa=ou,su=yu,gh=Ja,Th=Vh;Oc;)switch(hd=jl,jl=Kt()){case 40:if(hd!=108&&_i(Th,Fh-1)==58){ko(Th+=so(Po(jl),"&","&\f"),"&\f",ii(Rc?Xu[Rc-1]:0))!=-1&&(bh=-1);break}case 34:case 39:case 91:Th+=Po(jl);break;case 9:case 10:case 13:case 32:Th+=nl(hd);break;case 92:Th+=Xs(Ur()-1,7);continue;case 47:switch(Nn()){case 42:case 47:Ai(ks(xa(Kt(),Ur()),Ca,Ta,Jl),Jl);break;default:Th+="/"}break;case 123*Ih:Xu[Rc++]=Ts(Th)*bh;case 125*Ih:case 59:case 0:switch(jl){case 0:case 125:Oc=0;case 59+Ac:bh==-1&&(Th=so(Th,/\f/g,"")),hh>0&&Ts(Th)-Fh&&Ai(hh>32?Za(Th+";",Ja,Ta,Fh-1,Jl):Za(so(Th," ","")+";",Ja,Ta,Fh-2,Jl),Jl);break;case 59:Th+=";";default:if(Ai(gh=Al(Th,Ca,Ta,Rc,Ac,ou,Xu,Vh,wa=[],su=[],Fh,yu),yu),jl===123)if(Ac===0)Ba(Th,Ca,gh,gh,wa,yu,Fh,Xu,su);else switch(pc===99&&_i(Th,3)===110?100:pc){case 100:case 108:case 109:case 115:Ba(us,gh,gh,Ja&&Ai(Al(us,gh,gh,0,0,ou,Xu,Vh,ou,wa=[],Fh,su),su),ou,su,Fh,Xu,Ja?wa:su);break;default:Ba(Th,gh,gh,gh,[""],su,0,Xu,su)}}Rc=Ac=hh=0,Ih=bh=1,Vh=Th="",Fh=Ec;break;case 58:Fh=1+Ts(Th),hh=hd;default:if(Ih<1){if(jl==123)--Ih;else if(jl==125&&Ih++==0&&Zt()==125)continue}switch(Th+=qi(jl),jl*Ih){case 38:bh=Ac>0?1:(Th+="\f",-1);break;case 44:Xu[Rc++]=(Ts(Th)-1)*bh,bh=1;break;case 64:Nn()===45&&(Th+=Po(Kt())),pc=Nn(),Ac=Fh=Ts(Vh=Th+=Ea(Ur())),jl++;break;case 45:hd===45&&Ts(Th)==2&&(Ih=0)}}return yu}function Al(us,Ca,Ta,Ja,ou,yu,Ec,Xu,Jl,Rc,Ac,Fh){for(var pc=ou-1,hh=ou===0?yu:[""],hd=Qr(hh),Ih=0,Oc=0,bh=0;Ih0?hh[jl]+" "+Vh:so(Vh,/&\f/g,hh[jl])))&&(Jl[bh++]=wa);return tl(us,Ca,Ta,ou===0?rr:Xu,Jl,Rc,Ac,Fh)}function ks(us,Ca,Ta,Ja){return tl(us,Ca,Ta,Cn,qi(Mt()),hs(us,2,-2),0,Ja)}function Za(us,Ca,Ta,Ja,ou){return tl(us,Ca,Ta,Pr,hs(us,0,Ja),hs(us,Ja+1,-1),Ja,ou)}function lu(us,Ca){var Ta=Ca.path,Ja=Ca.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(Ta?"Error in ".concat(Ta,": "):"").concat(us).concat(Ja.length?" Selector: ".concat(Ja.join(" | ")):""))}var mu=function(Ca,Ta,Ja){if(Ca==="content"){var ou=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,yu=["normal","none","initial","inherit","unset"];(typeof Ta!="string"||yu.indexOf(Ta)===-1&&!ou.test(Ta)&&(Ta.charAt(0)!==Ta.charAt(Ta.length-1)||Ta.charAt(0)!=='"'&&Ta.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(Ta,"\"'`."),Ja)}},nu=null,Fl=function(Ca,Ta,Ja){Ca==="animation"&&Ja.hashId&&Ta!=="none"&&lintWarning("You seem to be using hashed animation '".concat(Ta,"', in which case 'animationName' with Keyframe as value is recommended."),Ja)},va=null;function Ua(us){var Ca,Ta=((Ca=us.match(/:not\(([^)]*)\)/))===null||Ca===void 0?void 0:Ca[1])||"",Ja=Ta.split(/(\[[^[]*])|(?=[.#])/).filter(function(ou){return ou});return Ja.length>1}function Yl(us){return us.parentSelectors.reduce(function(Ca,Ta){return Ca?Ta.includes("&")?Ta.replace(/&/g,Ca):"".concat(Ca," ").concat(Ta):Ta},"")}var Cc=function(Ca,Ta,Ja){var ou=Yl(Ja),yu=ou.match(/:not\([^)]*\)/g)||[];yu.length>0&&yu.some(Ua)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Ja)},ch=null,mh=function(Ca,Ta,Ja){switch(Ca){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Ca,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ja);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof Ta=="string"){var ou=Ta.split(" ").map(function(Xu){return Xu.trim()});ou.length===4&&ou[1]!==ou[3]&&lintWarning("You seem to be using '".concat(Ca,"' property with different left ").concat(Ca," and right ").concat(Ca,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ja)}return;case"clear":case"textAlign":(Ta==="left"||Ta==="right")&&lintWarning("You seem to be using non-logical value '".concat(Ta,"' of ").concat(Ca,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ja);return;case"borderRadius":if(typeof Ta=="string"){var yu=Ta.split("/").map(function(Xu){return Xu.trim()}),Ec=yu.reduce(function(Xu,Jl){if(Xu)return Xu;var Rc=Jl.split(" ").map(function(Ac){return Ac.trim()});return Rc.length>=2&&Rc[0]!==Rc[1]||Rc.length===3&&Rc[1]!==Rc[2]||Rc.length===4&&Rc[2]!==Rc[3]?!0:Xu},!1);Ec&&lintWarning("You seem to be using non-logical value '".concat(Ta,"' of ").concat(Ca,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Ja)}return;default:}},_h=null,wh=function(Ca,Ta,Ja){(typeof Ta=="string"&&/NaN/g.test(Ta)||Number.isNaN(Ta))&&lintWarning("Unexpected 'NaN' in property '".concat(Ca,": ").concat(Ta,"'."),Ja)},vu=null,ru=function(Ca,Ta,Ja){Ja.parentSelectors.some(function(ou){var yu=ou.split(",");return yu.some(function(Ec){return Ec.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Ja)},Ql=null,Hi="data-ant-cssinjs-cache-path",ji="_FILE_STYLE__";function Gn(us){return Object.keys(us).map(function(Ca){var Ta=us[Ca];return"".concat(Ca,":").concat(Ta)}).join(";")}var Sr,Rr=!0;function co(us){var Ca=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Sr=us,Rr=Ca}function ns(){if(!Sr&&(Sr={},(0,je.Z)())){var us=document.createElement("div");us.className=Hi,us.style.position="fixed",us.style.visibility="hidden",us.style.top="-9999px",document.body.appendChild(us);var Ca=getComputedStyle(us).content||"";Ca=Ca.replace(/^"/,"").replace(/"$/,""),Ca.split(";").forEach(function(ou){var yu=ou.split(":"),Ec=(0,z.Z)(yu,2),Xu=Ec[0],Jl=Ec[1];Sr[Xu]=Jl});var Ta=document.querySelector("style[".concat(Hi,"]"));if(Ta){var Ja;Rr=!1,(Ja=Ta.parentNode)===null||Ja===void 0||Ja.removeChild(Ta)}document.body.removeChild(us)}}function fs(us){return ns(),!!Sr[us]}function vs(us){var Ca=Sr[us],Ta=null;if(Ca&&(0,je.Z)())if(Rr)Ta=ji;else{var Ja=document.querySelector("style[".concat(Gt,'="').concat(Sr[us],'"]'));Ja?Ta=Ja.innerHTML:delete Sr[us]}return[Ta,Ca]}var as="_skip_check_",da="_multi_value_";function Ss(us){var Ca=yo(_a(us),ao);return Ca.replace(/\{%%%\:[^;];}/g,";")}function pl(us){return(0,Ue.Z)(us)==="object"&&us&&(as in us||da in us)}function Vs(us,Ca,Ta){if(!Ca)return us;var Ja=".".concat(Ca),ou=Ta==="low"?":where(".concat(Ja,")"):Ja,yu=us.split(",").map(function(Ec){var Xu,Jl=Ec.trim().split(/\s+/),Rc=Jl[0]||"",Ac=((Xu=Rc.match(/^\w+/))===null||Xu===void 0?void 0:Xu[0])||"";return Rc="".concat(Ac).concat(ou).concat(Rc.slice(Ac.length)),[Rc].concat((0,P.Z)(Jl.slice(1))).join(" ")});return yu.join(",")}var ol=function us(Ca){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},ou=Ja.root,yu=Ja.injectHash,Ec=Ja.parentSelectors,Xu=Ta.hashId,Jl=Ta.layer,Rc=Ta.path,Ac=Ta.hashPriority,Fh=Ta.transformers,pc=Fh===void 0?[]:Fh,hh=Ta.linters,hd=hh===void 0?[]:hh,Ih="",Oc={};function bh(gh){var Th=gh.getName(Xu);if(!Oc[Th]){var ws=us(gh.style,Ta,{root:!1,parentSelectors:Ec}),Eu=(0,z.Z)(ws,1),$l=Eu[0];Oc[Th]="@keyframes ".concat(gh.getName(Xu)).concat($l)}}function jl(gh){var Th=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return gh.forEach(function(ws){Array.isArray(ws)?jl(ws,Th):ws&&Th.push(ws)}),Th}var Vh=jl(Array.isArray(Ca)?Ca:[Ca]);if(Vh.forEach(function(gh){var Th=typeof gh=="string"&&!ou?{}:gh;if(typeof Th=="string")Ih+="".concat(Th,` +`);else if(Th._keyframe)bh(Th);else{var ws=pc.reduce(function(Eu,$l){var Ou;return($l==null||(Ou=$l.visit)===null||Ou===void 0?void 0:Ou.call($l,Eu))||Eu},Th);Object.keys(ws).forEach(function(Eu){var $l=ws[Eu];if((0,Ue.Z)($l)==="object"&&$l&&(Eu!=="animationName"||!$l._keyframe)&&!pl($l)){var Ou=!1,Lu=Eu.trim(),mc=!1;(ou||yu)&&Xu?Lu.startsWith("@")?Ou=!0:Lu=Vs(Eu,Xu,Ac):ou&&!Xu&&(Lu==="&"||Lu==="")&&(Lu="",mc=!0);var Gc=us($l,Ta,{root:mc,injectHash:Ou,parentSelectors:[].concat((0,P.Z)(Ec),[Lu])}),rh=(0,z.Z)(Gc,2),Wh=rh[0],Id=rh[1];Oc=(0,A.Z)((0,A.Z)({},Oc),Id),Ih+="".concat(Lu).concat(Wh)}else{let Zd=function(pf,Zh){var Lh=pf.replace(/[A-Z]/g,function(Wf){return"-".concat(Wf.toLowerCase())}),Of=Zh;!jr[pf]&&typeof Of=="number"&&Of!==0&&(Of="".concat(Of,"px")),pf==="animationName"&&Zh!==null&&Zh!==void 0&&Zh._keyframe&&(bh(Zh),Of=Zh.getName(Xu)),Ih+="".concat(Lh,":").concat(Of,";")};var id,Wd=(id=$l==null?void 0:$l.value)!==null&&id!==void 0?id:$l;(0,Ue.Z)($l)==="object"&&$l!==null&&$l!==void 0&&$l[da]&&Array.isArray(Wd)?Wd.forEach(function(pf){Zd(Eu,pf)}):Zd(Eu,Wd)}})}}),!ou)Ih="{".concat(Ih,"}");else if(Jl&&hi()){var wa=Jl.split(","),su=wa[wa.length-1].trim();Ih="@layer ".concat(su," {").concat(Ih,"}"),wa.length>1&&(Ih="@layer ".concat(Jl,"{%%%:%}").concat(Ih))}return[Ih,Oc]};function sl(us,Ca){return X("".concat(us.join("%")).concat(Ca))}function eu(){return null}var kl="style";function Wl(us,Ca){var Ta=us.token,Ja=us.path,ou=us.hashId,yu=us.layer,Ec=us.nonce,Xu=us.clientOnly,Jl=us.order,Rc=Jl===void 0?0:Jl,Ac=ie.useContext(Oe),Fh=Ac.autoClear,pc=Ac.mock,hh=Ac.defaultCache,hd=Ac.hashPriority,Ih=Ac.container,Oc=Ac.ssrInline,bh=Ac.transformers,jl=Ac.linters,Vh=Ac.cache,wa=Ta._tokenKey,su=[wa].concat((0,P.Z)(Ja)),gh=Vi,Th=Ni(kl,su,function(){var Lu=su.join("|");if(fs(Lu)){var mc=vs(Lu),Gc=(0,z.Z)(mc,2),rh=Gc[0],Wh=Gc[1];if(rh)return[rh,wa,Wh,{},Xu,Rc]}var Id=Ca(),id=ol(Id,{hashId:ou,hashPriority:hd,layer:yu,path:Ja.join("-"),transformers:bh,linters:jl}),Wd=(0,z.Z)(id,2),Zd=Wd[0],pf=Wd[1],Zh=Ss(Zd),Lh=sl(su,Zh);return[Zh,wa,Lh,pf,Xu,Rc]},function(Lu,mc){var Gc=(0,z.Z)(Lu,3),rh=Gc[2];(mc||Fh)&&Vi&&(0,Y.jL)(rh,{mark:Gt})},function(Lu){var mc=(0,z.Z)(Lu,4),Gc=mc[0],rh=mc[1],Wh=mc[2],Id=mc[3];if(gh&&Gc!==ji){var id={mark:Gt,prepend:"queue",attachTo:Ih,priority:Rc},Wd=typeof Ec=="function"?Ec():Ec;Wd&&(id.csp={nonce:Wd});var Zd=(0,Y.hq)(Gc,Wh,id);Zd[Et]=Vh.instanceId,Zd.setAttribute(rt,wa),Object.keys(Id).forEach(function(pf){(0,Y.hq)(Ss(Id[pf]),"_effect-".concat(pf),id)})}}),ws=(0,z.Z)(Th,3),Eu=ws[0],$l=ws[1],Ou=ws[2];return function(Lu){var mc;if(!Oc||gh||!hh)mc=ie.createElement(eu,null);else{var Gc;mc=ie.createElement("style",(0,er.Z)({},(Gc={},(0,v.Z)(Gc,rt,$l),(0,v.Z)(Gc,Gt,Ou),Gc),{dangerouslySetInnerHTML:{__html:Eu}}))}return ie.createElement(ie.Fragment,null,mc,Lu)}}var Dl=function(Ca,Ta,Ja){var ou=(0,z.Z)(Ca,6),yu=ou[0],Ec=ou[1],Xu=ou[2],Jl=ou[3],Rc=ou[4],Ac=ou[5],Fh=Ja||{},pc=Fh.plain;if(Rc)return null;var hh=yu,hd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Ac)};return hh=ai(yu,Ec,Xu,hd,pc),Jl&&Object.keys(Jl).forEach(function(Ih){if(!Ta[Ih]){Ta[Ih]=!0;var Oc=Ss(Jl[Ih]);hh+=ai(Oc,Ec,"_effect-".concat(Ih),hd,pc)}}),[Ac,Xu,hh]},ml="cssVar",uu=function(Ca,Ta){var Ja=Ca.key,ou=Ca.prefix,yu=Ca.unitless,Ec=Ca.ignore,Xu=Ca.token,Jl=Ca.scope,Rc=Jl===void 0?"":Jl,Ac=(0,ie.useContext)(Oe),Fh=Ac.cache.instanceId,pc=Ac.container,hh=Xu._tokenKey,hd=[].concat((0,P.Z)(Ca.path),[Ja,Rc,hh]),Ih=Ni(ml,hd,function(){var Oc=Ta(),bh=Rt(Oc,Ja,{prefix:ou,unitless:yu,ignore:Ec,scope:Rc}),jl=(0,z.Z)(bh,2),Vh=jl[0],wa=jl[1],su=sl(hd,wa);return[Vh,wa,su,Ja]},function(Oc){var bh=(0,z.Z)(Oc,3),jl=bh[2];Vi&&(0,Y.jL)(jl,{mark:Gt})},function(Oc){var bh=(0,z.Z)(Oc,3),jl=bh[1],Vh=bh[2];if(jl){var wa=(0,Y.hq)(jl,Vh,{mark:Gt,prepend:"queue",attachTo:pc,priority:-999});wa[Et]=Fh,wa.setAttribute(rt,Ja)}});return Ih},pn=function(Ca,Ta,Ja){var ou=(0,z.Z)(Ca,4),yu=ou[1],Ec=ou[2],Xu=ou[3],Jl=Ja||{},Rc=Jl.plain;if(!yu)return null;var Ac=-999,Fh={"data-rc-order":"prependQueue","data-rc-priority":"".concat(Ac)},pc=ai(yu,Xu,Ec,Fh,Rc);return[Ac,Ec,pc]},pu=uu,tc,dc=(tc={},(0,v.Z)(tc,kl,Dl),(0,v.Z)(tc,tr,nn),(0,v.Z)(tc,ml,pn),tc);function Mc(us){return us!==null}function Fc(us,Ca){var Ta=typeof Ca=="boolean"?{plain:Ca}:Ca||{},Ja=Ta.plain,ou=Ja===void 0?!1:Ja,yu=Ta.types,Ec=yu===void 0?["style","token","cssVar"]:yu,Xu=new RegExp("^(".concat((typeof Ec=="string"?[Ec]:Ec).join("|"),")%")),Jl=Array.from(us.cache.keys()).filter(function(pc){return Xu.test(pc)}),Rc={},Ac={},Fh="";return Jl.map(function(pc){var hh=pc.replace(Xu,"").replace(/%/g,"|"),hd=pc.split("%"),Ih=_slicedToArray(hd,1),Oc=Ih[0],bh=dc[Oc],jl=bh(us.cache.get(pc)[1],Rc,{plain:ou});if(!jl)return null;var Vh=_slicedToArray(jl,3),wa=Vh[0],su=Vh[1],gh=Vh[2];return pc.startsWith("style")&&(Ac[hh]=su),[wa,gh]}).filter(Mc).sort(function(pc,hh){var hd=_slicedToArray(pc,1),Ih=hd[0],Oc=_slicedToArray(hh,1),bh=Oc[0];return Ih-bh}).forEach(function(pc){var hh=_slicedToArray(pc,2),hd=hh[1];Fh+=hd}),Fh+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(Ac),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),ou),Fh}var cd=function(){function us(Ca,Ta){(0,Be.Z)(this,us),(0,v.Z)(this,"name",void 0),(0,v.Z)(this,"style",void 0),(0,v.Z)(this,"_keyframe",!0),this.name=Ca,this.style=Ta}return(0,Ce.Z)(us,[{key:"getName",value:function(){var Ta=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ta?"".concat(Ta,"-").concat(this.name):this.name}}]),us}(),Vd=cd;function yd(us){if(typeof us=="number")return[[us],!1];var Ca=String(us).trim(),Ta=Ca.match(/(.*)(!important)/),Ja=(Ta?Ta[1]:Ca).trim().split(/\s+/),ou="",yu=0;return[Ja.reduce(function(Ec,Xu){if(Xu.includes("(")||Xu.includes(")")){var Jl=Xu.split("(").length-1,Rc=Xu.split(")").length-1;yu+=Jl-Rc}return yu===0?(Ec.push(ou+Xu),ou=""):yu>0&&(ou+=Xu),Ec},[]),!!Ta]}function Sh(us){return us.notSplit=!0,us}var xh={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Sh(["borderTop","borderBottom"]),borderBlockStart:Sh(["borderTop"]),borderBlockEnd:Sh(["borderBottom"]),borderInline:Sh(["borderLeft","borderRight"]),borderInlineStart:Sh(["borderLeft"]),borderInlineEnd:Sh(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Ud(us,Ca){var Ta=us;return Ca&&(Ta="".concat(Ta," !important")),{_skip_check_:!0,value:Ta}}var Hf={visit:function(Ca){var Ta={};return Object.keys(Ca).forEach(function(Ja){var ou=Ca[Ja],yu=xh[Ja];if(yu&&(typeof ou=="number"||typeof ou=="string")){var Ec=yd(ou),Xu=(0,z.Z)(Ec,2),Jl=Xu[0],Rc=Xu[1];yu.length&&yu.notSplit?yu.forEach(function(Ac){Ta[Ac]=Ud(ou,Rc)}):yu.length===1?Ta[yu[0]]=Ud(ou,Rc):yu.length===2?yu.forEach(function(Ac,Fh){var pc;Ta[Ac]=Ud((pc=Jl[Fh])!==null&&pc!==void 0?pc:Jl[0],Rc)}):yu.length===4?yu.forEach(function(Ac,Fh){var pc,hh;Ta[Ac]=Ud((pc=(hh=Jl[Fh])!==null&&hh!==void 0?hh:Jl[Fh-2])!==null&&pc!==void 0?pc:Jl[0],Rc)}):Ta[Ja]=ou}else Ta[Ja]=ou}),Ta}},ef=null,Pd=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Mf(us,Ca){var Ta=Math.pow(10,Ca+1),Ja=Math.floor(us*Ta);return Math.round(Ja/10)*10/Ta}var $f=function(){var Ca=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ta=Ca.rootValue,Ja=Ta===void 0?16:Ta,ou=Ca.precision,yu=ou===void 0?5:ou,Ec=Ca.mediaQuery,Xu=Ec===void 0?!1:Ec,Jl=function(Fh,pc){if(!pc)return Fh;var hh=parseFloat(pc);if(hh<=1)return Fh;var hd=Mf(hh/Ja,yu);return"".concat(hd,"rem")},Rc=function(Fh){var pc=_objectSpread({},Fh);return Object.entries(Fh).forEach(function(hh){var hd=_slicedToArray(hh,2),Ih=hd[0],Oc=hd[1];if(typeof Oc=="string"&&Oc.includes("px")){var bh=Oc.replace(Pd,Jl);pc[Ih]=bh}!unitless[Ih]&&typeof Oc=="number"&&Oc!==0&&(pc[Ih]="".concat(Oc,"px").replace(Pd,Jl));var jl=Ih.trim();if(jl.startsWith("@")&&jl.includes("px")&&Xu){var Vh=Ih.replace(Pd,Jl);pc[Vh]=pc[Ih],delete pc[Ih]}}),pc};return{visit:Rc}},Rd=null,fp={supportModernCSS:function(){return Mo()&&Ii()}}},69929:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};me.Z=x},43755:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};me.Z=x},48041:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};me.Z=x},12022:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};me.Z=x},48245:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};me.Z=x},27955:function(St,me){"use strict";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};me.Z=x},58781:function(St,me,x){"use strict";x.d(me,{Z:function(){return Pn}});var v=x(54131),z=x(35372),P=x(16514),A=x(56348),W=x(77617),X=x(92310),Y=x.n(X),ie=(0,W.createContext)({}),ae=ie,se=x(13255),Ie=x(12722),Be=x(9915),Ce=2,ct=.16,nt=.05,Ge=.05,at=.15,Ye=5,rt=4,Gt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function yt(hr){var mt=hr.r,tt=hr.g,kt=hr.b,vn=(0,Ie.py)(mt,tt,kt);return{h:vn.h*360,s:vn.s,v:vn.v}}function Et(hr){var mt=hr.r,tt=hr.g,kt=hr.b;return"#".concat((0,Ie.vq)(mt,tt,kt,!1))}function ht(hr,mt,tt){var kt=tt/100,vn={r:(mt.r-hr.r)*kt+hr.r,g:(mt.g-hr.g)*kt+hr.g,b:(mt.b-hr.b)*kt+hr.b};return vn}function Pe(hr,mt,tt){var kt;return Math.round(hr.h)>=60&&Math.round(hr.h)<=240?kt=tt?Math.round(hr.h)-Ce*mt:Math.round(hr.h)+Ce*mt:kt=tt?Math.round(hr.h)+Ce*mt:Math.round(hr.h)-Ce*mt,kt<0?kt+=360:kt>=360&&(kt-=360),kt}function et(hr,mt,tt){if(hr.h===0&&hr.s===0)return hr.s;var kt;return tt?kt=hr.s-ct*mt:mt===rt?kt=hr.s+ct:kt=hr.s+nt*mt,kt>1&&(kt=1),tt&&mt===Ye&&kt>.1&&(kt=.1),kt<.06&&(kt=.06),Number(kt.toFixed(2))}function Oe(hr,mt,tt){var kt;return tt?kt=hr.v+Ge*mt:kt=hr.v-at*mt,kt>1&&(kt=1),Number(kt.toFixed(2))}function Ue(hr){for(var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=[],kt=(0,Be.uA)(hr),vn=Ye;vn>0;vn-=1){var vr=yt(kt),qr=Et((0,Be.uA)({h:Pe(vr,vn,!0),s:et(vr,vn,!0),v:Oe(vr,vn,!0)}));tt.push(qr)}tt.push(Et(kt));for(var Ni=1;Ni<=rt;Ni+=1){var li=yt(kt),Un=Et((0,Be.uA)({h:Pe(li,Ni),s:et(li,Ni),v:Oe(li,Ni)}));tt.push(Un)}return mt.theme==="dark"?Gt.map(function(dn){var xt=dn.index,it=dn.opacity,Bt=Et(ht((0,Be.uA)(mt.backgroundColor||"#141414"),(0,Be.uA)(tt[xt]),it*100));return Bt}):tt}var je={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ft={},Ct={};Object.keys(je).forEach(function(hr){ft[hr]=Ue(je[hr]),ft[hr].primary=ft[hr][5],Ct[hr]=Ue(je[hr],{theme:"dark",backgroundColor:"#141414"}),Ct[hr].primary=Ct[hr][5]});var Xe=ft.red,hn=ft.volcano,Nt=ft.gold,Te=ft.orange,vt=ft.yellow,ze=ft.lime,Vt=ft.green,Tt=ft.cyan,un=ft.blue,on=ft.geekblue,Lr=ft.purple,Yr=ft.magenta,fi=ft.grey,Xi=x(32188),Qi=x(98052),hi=x(34301),Go=x.n(hi);function Mo(hr,mt){(0,Xi.ZP)(hr,"[@ant-design/icons] ".concat(mt))}function pe(hr){return(0,se.Z)(hr)==="object"&&typeof hr.name=="string"&&typeof hr.theme=="string"&&((0,se.Z)(hr.icon)==="object"||typeof hr.icon=="function")}function Ii(){var hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(hr).reduce(function(mt,tt){var kt=hr[tt];switch(tt){case"class":mt.className=kt,delete mt.class;break;default:delete mt[tt],mt[Go()(tt)]=kt}return mt},{})}function Vi(hr,mt,tt){return tt?W.createElement(hr.tag,(0,v.Z)((0,v.Z)({key:mt},Ii(hr.attrs)),tt),(hr.children||[]).map(function(kt,vn){return Vi(kt,"".concat(mt,"-").concat(hr.tag,"-").concat(vn))})):W.createElement(hr.tag,(0,v.Z)({key:mt},Ii(hr.attrs)),(hr.children||[]).map(function(kt,vn){return Vi(kt,"".concat(mt,"-").concat(hr.tag,"-").concat(vn))}))}function ro(hr){return Ue(hr)[0]}function ai(hr){return hr?Array.isArray(hr)?hr:[hr]:[]}var Ms={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ar=` .anticon { display: inline-block; color: inherit; @@ -53,7 +53,7 @@ transform: rotate(360deg); } } -`,zo=function(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dg,fr=(0,y.useContext)(I),ri=fr.csp;(0,y.useEffect)(function(){(0,X0.hq)(Kr,"@ant-design-icons",{prepend:!0,csp:ri})},[])},mu=["icon","className","onClick","style","primaryColor","secondaryColor"],Ag={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function c0(_h){var Kr=_h.primaryColor,fr=_h.secondaryColor;Ag.primaryColor=Kr,Ag.secondaryColor=fr||iv(Kr),Ag.calculated=!!fr}function L0(){return(0,u.Z)({},Ag)}var $0=function(Kr){var fr=Kr.icon,ri=Kr.className,Ra=Kr.onClick,Sg=Kr.style,Jg=Kr.primaryColor,j0=Kr.secondaryColor,Wo=(0,x.Z)(Kr,mu),Mo=Ag;if(Jg&&(Mo={primaryColor:Jg,secondaryColor:j0||iv(Jg)}),zo(),Lv(Je(fr),"icon should be icon definiton, but got ".concat(fr)),!Je(fr))return null;var qr=fr;return qr&&typeof qr.icon=="function"&&(qr=(0,u.Z)((0,u.Z)({},qr),{},{icon:qr.icon(Mo.primaryColor,Mo.secondaryColor)})),G0(qr.icon,"svg-".concat(qr.name),(0,u.Z)({className:ri,onClick:Ra,style:Sg,"data-icon":qr.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Wo))};$0.displayName="IconReact",$0.getTwoToneColors=L0,$0.setTwoToneColors=c0;var cv=$0;function Gg(_h){var Kr=u0(_h),fr=(0,D.Z)(Kr,2),ri=fr[0],Ra=fr[1];return cv.setTwoToneColors({primaryColor:ri,secondaryColor:Ra})}function uu(){var _h=cv.getTwoToneColors();return _h.calculated?[_h.primaryColor,_h.secondaryColor]:_h.primaryColor}var Gs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gg("#1890ff");var Ia=y.forwardRef(function(_h,Kr){var fr,ri=_h.className,Ra=_h.icon,Sg=_h.spin,Jg=_h.rotate,j0=_h.tabIndex,Wo=_h.onClick,Mo=_h.twoToneColor,qr=(0,x.Z)(_h,Gs),On=y.useContext(I),rn=On.prefixCls,ui=rn===void 0?"anticon":rn,ya=On.rootClassName,gd=a()(ya,ui,(fr={},(0,b.Z)(fr,"".concat(ui,"-").concat(Ra.name),!!Ra.name),(0,b.Z)(fr,"".concat(ui,"-spin"),!!Sg||Ra.name==="loading"),fr),ri),Su=j0;Su===void 0&&Wo&&(Su=-1);var xu=Jg?{msTransform:"rotate(".concat(Jg,"deg)"),transform:"rotate(".concat(Jg,"deg)")}:void 0,xa=u0(Mo),Td=(0,D.Z)(xa,2),jg=Td[0],Wa=Td[1];return y.createElement("span",(0,u.Z)((0,u.Z)({role:"img","aria-label":Ra.name},qr),{},{ref:Kr,tabIndex:Su,onClick:Wo,className:gd}),y.createElement(cv,{icon:Ra,primaryColor:jg,secondaryColor:Wa,style:xu}))});Ia.displayName="AntdIcon",Ia.getTwoToneColor=uu,Ia.setTwoToneColor=Gg;var lu=Ia},59554:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="CaretRightOutlined";var a=D.forwardRef(w)},66850:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(69929),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="CloseOutlined",g.Z=D.forwardRef(y)},99595:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="CloudDownloadOutlined";var a=D.forwardRef(w)},54834:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="CloudUploadOutlined";var a=D.forwardRef(w)},74307:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(43755),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="DeleteOutlined",g.Z=D.forwardRef(y)},92621:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="DingtalkOutlined";var a=D.forwardRef(w)},78730:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FieldBinaryOutlined";var a=D.forwardRef(w)},85752:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FieldStringOutlined";var a=D.forwardRef(w)},98331:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FileTextOutlined";var a=D.forwardRef(w)},7741:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(48041),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="FilterFilled",g.Z=D.forwardRef(y)},84135:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FilterOutlined";var a=D.forwardRef(w)},45818:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FlagOutlined";var a=D.forwardRef(w)},51383:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="FormOutlined";var a=D.forwardRef(w)},26890:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="GithubOutlined";var a=D.forwardRef(w)},16304:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="GlobalOutlined";var a=D.forwardRef(w)},75995:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="MinusCircleOutlined";var a=D.forwardRef(w)},22840:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(12022),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="PlusOutlined",g.Z=D.forwardRef(y)},43056:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(48245),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="PlusSquareOutlined",g.Z=D.forwardRef(y)},83624:function(c,g,l){"use strict";var u=l(54131),D=l(77617),b=l(27955),x=l(58781),y=function(a,S){return D.createElement(x.Z,(0,u.Z)((0,u.Z)({},a),{},{ref:S,icon:b.Z}))};y.displayName="QuestionCircleOutlined",g.Z=D.forwardRef(y)},39429:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="SaveOutlined";var a=D.forwardRef(w)},54558:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="SettingOutlined";var a=D.forwardRef(w)},24695:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="TableOutlined";var a=D.forwardRef(w)},22251:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(54131),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},x=b,y=l(58781),w=function(I,N){return D.createElement(y.Z,(0,u.Z)((0,u.Z)({},I),{},{ref:N,icon:x}))};w.displayName="UploadOutlined";var a=D.forwardRef(w)},44847:function(c,g,l){"use strict";l.d(g,{Z:function(){return Zr}});var u=l(79384),D=l(35372),b=l(16514),x=l(56348),y=l(77617),w=l(92310),a=l.n(w),S=l(10129),I=l(48081),N=l(54131),ie=l(13255),ze=l(98052),Ie=l(39561),ct=l(32188);function At(Ht){return Ht.replace(/-(.)/g,function(Zs,oi){return oi.toUpperCase()})}function rt(Ht,Zs){(0,ct.ZP)(Ht,"[@ant-design/icons] ".concat(Zs))}function It(Ht){return(0,ie.Z)(Ht)==="object"&&typeof Ht.name=="string"&&typeof Ht.theme=="string"&&((0,ie.Z)(Ht.icon)==="object"||typeof Ht.icon=="function")}function Ot(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Ht).reduce(function(Zs,oi){var Pa=Ht[oi];switch(oi){case"class":Zs.className=Pa,delete Zs.class;break;default:delete Zs[oi],Zs[At(oi)]=Pa}return Zs},{})}function wn(Ht,Zs,oi){return oi?y.createElement(Ht.tag,(0,N.Z)((0,N.Z)({key:Zs},Ot(Ht.attrs)),oi),(Ht.children||[]).map(function(Pa,Aa){return wn(Pa,"".concat(Zs,"-").concat(Ht.tag,"-").concat(Aa))})):y.createElement(Ht.tag,(0,N.Z)({key:Zs},Ot(Ht.attrs)),(Ht.children||[]).map(function(Pa,Aa){return wn(Pa,"".concat(Zs,"-").concat(Ht.tag,"-").concat(Aa))}))}function Hs(Ht){return(0,S.R_)(Ht)[0]}function jr(Ht){return Ht?Array.isArray(Ht)?Ht:[Ht]:[]}var Jr={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Yn=` +`,Rt=function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ar,tt=(0,W.useContext)(ae),kt=tt.csp;(0,W.useEffect)(function(){(0,Qi.hq)(mt,"@ant-design-icons",{prepend:!0,csp:kt})},[])},jn=["icon","className","onClick","style","primaryColor","secondaryColor"],wr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function oi(hr){var mt=hr.primaryColor,tt=hr.secondaryColor;wr.primaryColor=mt,wr.secondaryColor=tt||ro(mt),wr.calculated=!!tt}function Ti(){return(0,v.Z)({},wr)}var Bi=function(mt){var tt=mt.icon,kt=mt.className,vn=mt.onClick,vr=mt.style,qr=mt.primaryColor,Ni=mt.secondaryColor,li=(0,A.Z)(mt,jn),Un=wr;if(qr&&(Un={primaryColor:qr,secondaryColor:Ni||ro(qr)}),Rt(),Mo(pe(tt),"icon should be icon definiton, but got ".concat(tt)),!pe(tt))return null;var dn=tt;return dn&&typeof dn.icon=="function"&&(dn=(0,v.Z)((0,v.Z)({},dn),{},{icon:dn.icon(Un.primaryColor,Un.secondaryColor)})),Vi(dn.icon,"svg-".concat(dn.name),(0,v.Z)({className:kt,onClick:vn,style:vr,"data-icon":dn.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},li))};Bi.displayName="IconReact",Bi.getTwoToneColors=Ti,Bi.setTwoToneColors=oi;var no=Bi;function Vr(hr){var mt=ai(hr),tt=(0,z.Z)(mt,2),kt=tt[0],vn=tt[1];return no.setTwoToneColors({primaryColor:kt,secondaryColor:vn})}function Rn(){var hr=no.getTwoToneColors();return hr.calculated?[hr.primaryColor,hr.secondaryColor]:hr.primaryColor}var Xt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vr("#1890ff");var Sn=W.forwardRef(function(hr,mt){var tt,kt=hr.className,vn=hr.icon,vr=hr.spin,qr=hr.rotate,Ni=hr.tabIndex,li=hr.onClick,Un=hr.twoToneColor,dn=(0,A.Z)(hr,Xt),xt=W.useContext(ae),it=xt.prefixCls,Bt=it===void 0?"anticon":it,rn=xt.rootClassName,ir=Y()(rn,Bt,(tt={},(0,P.Z)(tt,"".concat(Bt,"-").concat(vn.name),!!vn.name),(0,P.Z)(tt,"".concat(Bt,"-spin"),!!vr||vn.name==="loading"),tt),kt),tr=Ni;tr===void 0&&li&&(tr=-1);var Jn=qr?{msTransform:"rotate(".concat(qr,"deg)"),transform:"rotate(".concat(qr,"deg)")}:void 0,nn=ai(Un),er=(0,z.Z)(nn,2),Fr=er[0],jr=er[1];return W.createElement("span",(0,v.Z)((0,v.Z)({role:"img","aria-label":vn.name},dn),{},{ref:mt,tabIndex:tr,onClick:li,className:ir}),W.createElement(no,{icon:vn,primaryColor:Fr,secondaryColor:jr,style:Jn}))});Sn.displayName="AntdIcon",Sn.getTwoToneColor=Rn,Sn.setTwoToneColor=Vr;var Pn=Sn},59554:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="CaretRightOutlined";var Y=z.forwardRef(X)},66850:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(69929),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="CloseOutlined",me.Z=z.forwardRef(W)},99595:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="CloudDownloadOutlined";var Y=z.forwardRef(X)},54834:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="CloudUploadOutlined";var Y=z.forwardRef(X)},74307:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(43755),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="DeleteOutlined",me.Z=z.forwardRef(W)},92621:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="DingtalkOutlined";var Y=z.forwardRef(X)},78730:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FieldBinaryOutlined";var Y=z.forwardRef(X)},85752:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FieldStringOutlined";var Y=z.forwardRef(X)},98331:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FileTextOutlined";var Y=z.forwardRef(X)},7741:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(48041),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="FilterFilled",me.Z=z.forwardRef(W)},84135:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FilterOutlined";var Y=z.forwardRef(X)},45818:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FlagOutlined";var Y=z.forwardRef(X)},51383:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="FormOutlined";var Y=z.forwardRef(X)},26890:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="GithubOutlined";var Y=z.forwardRef(X)},16304:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="GlobalOutlined";var Y=z.forwardRef(X)},75995:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="MinusCircleOutlined";var Y=z.forwardRef(X)},22840:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(12022),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="PlusOutlined",me.Z=z.forwardRef(W)},43056:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(48245),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="PlusSquareOutlined",me.Z=z.forwardRef(W)},83624:function(St,me,x){"use strict";var v=x(54131),z=x(77617),P=x(27955),A=x(58781),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)((0,v.Z)({},Y),{},{ref:ie,icon:P.Z}))};W.displayName="QuestionCircleOutlined",me.Z=z.forwardRef(W)},39429:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="SaveOutlined";var Y=z.forwardRef(X)},54558:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="SettingOutlined";var Y=z.forwardRef(X)},24695:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="TableOutlined";var Y=z.forwardRef(X)},22251:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(54131),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},A=P,W=x(58781),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)((0,v.Z)({},ae),{},{ref:se,icon:A}))};X.displayName="UploadOutlined";var Y=z.forwardRef(X)},44847:function(St,me,x){"use strict";x.d(me,{Z:function(){return vt}});var v=x(79384),z=x(35372),P=x(16514),A=x(56348),W=x(77617),X=x(92310),Y=x.n(X),ie=x(10129),ae=x(48081),se=x(54131),Ie=x(13255),Be=x(98052),Ce=x(39561),ct=x(32188);function nt(ze){return ze.replace(/-(.)/g,function(Vt,Tt){return Tt.toUpperCase()})}function Ge(ze,Vt){(0,ct.ZP)(ze,"[@ant-design/icons] ".concat(Vt))}function at(ze){return(0,Ie.Z)(ze)==="object"&&typeof ze.name=="string"&&typeof ze.theme=="string"&&((0,Ie.Z)(ze.icon)==="object"||typeof ze.icon=="function")}function Ye(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ze).reduce(function(Vt,Tt){var un=ze[Tt];switch(Tt){case"class":Vt.className=un,delete Vt.class;break;default:delete Vt[Tt],Vt[nt(Tt)]=un}return Vt},{})}function rt(ze,Vt,Tt){return Tt?W.createElement(ze.tag,(0,se.Z)((0,se.Z)({key:Vt},Ye(ze.attrs)),Tt),(ze.children||[]).map(function(un,on){return rt(un,"".concat(Vt,"-").concat(ze.tag,"-").concat(on))})):W.createElement(ze.tag,(0,se.Z)({key:Vt},Ye(ze.attrs)),(ze.children||[]).map(function(un,on){return rt(un,"".concat(Vt,"-").concat(ze.tag,"-").concat(on))}))}function Gt(ze){return(0,ie.R_)(ze)[0]}function yt(ze){return ze?Array.isArray(ze)?ze:[ze]:[]}var Et={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ht=` .anticon { display: inline-block; color: inherit; @@ -107,46 +107,46 @@ transform: rotate(360deg); } } -`,Lt=function(Zs){var oi=(0,y.useContext)(I.Z),Pa=oi.csp,Aa=oi.prefixCls,Pg=Yn;Aa&&(Pg=Pg.replace(/anticon/g,Aa)),(0,y.useEffect)(function(){var Ug=Zs.current,e0=(0,Ie.A)(Ug);(0,ze.hq)(Pg,"@ant-design-icons",{prepend:!0,csp:Pa,attachTo:e0})},[])},_n=["icon","className","onClick","style","primaryColor","secondaryColor"],Mt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bt(Ht){var Zs=Ht.primaryColor,oi=Ht.secondaryColor;Mt.primaryColor=Zs,Mt.secondaryColor=oi||Hs(Zs),Mt.calculated=!!oi}function Rt(){return(0,N.Z)({},Mt)}var on=function(Zs){var oi=Zs.icon,Pa=Zs.className,Aa=Zs.onClick,Pg=Zs.style,Ug=Zs.primaryColor,e0=Zs.secondaryColor,H0=(0,x.Z)(Zs,_n),X0=y.useRef(),d0=Mt;if(Ug&&(d0={primaryColor:Ug,secondaryColor:e0||Hs(Ug)}),Lt(X0),rt(It(oi),"icon should be icon definiton, but got ".concat(oi)),!It(oi))return null;var jv=oi;return jv&&typeof jv.icon=="function"&&(jv=(0,N.Z)((0,N.Z)({},jv),{},{icon:jv.icon(d0.primaryColor,d0.secondaryColor)})),wn(jv.icon,"svg-".concat(jv.name),(0,N.Z)((0,N.Z)({className:Pa,onClick:Aa,style:Pg,"data-icon":jv.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},H0),{},{ref:X0}))};on.displayName="IconReact",on.getTwoToneColors=Rt,on.setTwoToneColors=Bt;var Hr=on;function vn(Ht){var Zs=jr(Ht),oi=(0,D.Z)(Zs,2),Pa=oi[0],Aa=oi[1];return Hr.setTwoToneColors({primaryColor:Pa,secondaryColor:Aa})}function Ca(){var Ht=Hr.getTwoToneColors();return Ht.calculated?[Ht.primaryColor,Ht.secondaryColor]:Ht.primaryColor}var ai=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vn(S.iN.primary);var gt=y.forwardRef(function(Ht,Zs){var oi=Ht.className,Pa=Ht.icon,Aa=Ht.spin,Pg=Ht.rotate,Ug=Ht.tabIndex,e0=Ht.onClick,H0=Ht.twoToneColor,X0=(0,x.Z)(Ht,ai),d0=y.useContext(I.Z),jv=d0.prefixCls,Lv=jv===void 0?"anticon":jv,Je=d0.rootClassName,k0=a()(Je,Lv,(0,b.Z)((0,b.Z)({},"".concat(Lv,"-").concat(Pa.name),!!Pa.name),"".concat(Lv,"-spin"),!!Aa||Pa.name==="loading"),oi),G0=Ug;G0===void 0&&e0&&(G0=-1);var iv=Pg?{msTransform:"rotate(".concat(Pg,"deg)"),transform:"rotate(".concat(Pg,"deg)")}:void 0,u0=jr(H0),B1=(0,D.Z)(u0,2),Dg=B1[0],zo=B1[1];return y.createElement("span",(0,u.Z)({role:"img","aria-label":Pa.name},X0,{ref:Zs,tabIndex:G0,onClick:e0,className:k0}),y.createElement(Hr,{icon:Pa,primaryColor:Dg,secondaryColor:zo,style:iv}))});gt.displayName="AntdIcon",gt.getTwoToneColor=Ca,gt.setTwoToneColor=vn;var Zr=gt},48081:function(c,g,l){"use strict";var u=l(77617),D=(0,u.createContext)({});g.Z=D},50555:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},49247:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},43418:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},4531:function(c,g,l){"use strict";var u=l(79384),D=l(77617),b=l(69929),x=l(44847),y=function(a,S){return D.createElement(x.Z,(0,u.Z)({},a,{ref:S,icon:b.Z}))};g.Z=D.forwardRef(y)},21112:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},71323:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},81664:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},29338:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},20906:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},39820:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},20555:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},24545:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={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"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},38528:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(79384),D=l(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},x=b,y=l(44847),w=function(I,N){return D.createElement(y.Z,(0,u.Z)({},I,{ref:N,icon:x}))},a=D.forwardRef(w)},7639:function(){window._iconfont_svg_string_3580659='',function(c){try{let I=function(){y||(y=!0,b())},N=function(){try{x.documentElement.doScroll("left")}catch(ie){return void setTimeout(N,50)}I()};var a=I,S=N,l=(l=document.getElementsByTagName("script"))[l.length-1],g=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var u,D,b,x,y,w=function(ze,Ie){Ie.parentNode.insertBefore(ze,Ie)};if(g&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(ie){console&&console.log(ie)}}u=function(){var ze,Ie=document.createElement("div");Ie.innerHTML=c._iconfont_svg_string_3580659,(Ie=Ie.getElementsByTagName("svg")[0])&&(Ie.setAttribute("aria-hidden","true"),Ie.style.position="absolute",Ie.style.width=0,Ie.style.height=0,Ie.style.overflow="hidden",Ie=Ie,(ze=document.body).firstChild?w(Ie,ze.firstChild):ze.appendChild(Ie))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(u,0):(D=function(){document.removeEventListener("DOMContentLoaded",D,!1),u()},document.addEventListener("DOMContentLoaded",D,!1)):document.attachEvent&&(b=u,x=c.document,y=!1,N(),x.onreadystatechange=function(){x.readyState=="complete"&&(x.onreadystatechange=null,I())})}}catch(I){}}(window)},29075:function(c,g,l){(function(u,D){D(g,l(23051))})(this,function(u,D){"use strict";var b={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},x={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},y="top",w="bottom",a="right",S="left",I="auto",N=[y,w,a,S],ie="start",ze="end",Ie="clippingParents",ct="viewport",At="popper",rt="reference",It=N.reduce(function(at,C){return at.concat([C+"-"+ie,C+"-"+ze])},[]),Ot=[].concat(N,[I]).reduce(function(at,C){return at.concat([C,C+"-"+ie,C+"-"+ze])},[]),wn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Hs(at){return at?(at.nodeName||"").toLowerCase():null}function jr(at){if(at==null)return window;if(""+at!="[object Window]"){var C=at.ownerDocument;return C&&C.defaultView||window}return at}function Jr(at){return at instanceof jr(at).Element||at instanceof Element}function Yn(at){return at instanceof jr(at).HTMLElement||at instanceof HTMLElement}function Lt(at){return typeof ShadowRoot!="undefined"&&(at instanceof jr(at).ShadowRoot||at instanceof ShadowRoot)}var _n={name:"applyStyles",enabled:!0,phase:"write",fn:function(at){var C=at.state;Object.keys(C.elements).forEach(function(P){var F=C.styles[P]||{},Q=C.attributes[P]||{},_e=C.elements[P];Yn(_e)&&Hs(_e)&&(Object.assign(_e.style,F),Object.keys(Q).forEach(function(Be){var ot=Q[Be];ot===!1?_e.removeAttribute(Be):_e.setAttribute(Be,ot===!0?"":ot)}))})},effect:function(at){var C=at.state,P={popper:{position:C.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(C.elements.popper.style,P.popper),C.styles=P,C.elements.arrow&&Object.assign(C.elements.arrow.style,P.arrow),function(){Object.keys(C.elements).forEach(function(F){var Q=C.elements[F],_e=C.attributes[F]||{},Be=Object.keys(C.styles.hasOwnProperty(F)?C.styles[F]:P[F]).reduce(function(ot,Sn){return ot[Sn]="",ot},{});Yn(Q)&&Hs(Q)&&(Object.assign(Q.style,Be),Object.keys(_e).forEach(function(ot){Q.removeAttribute(ot)}))})}},requires:["computeStyles"]};function Mt(at){return at.split("-")[0]}var Bt=Math.max,Rt=Math.min,on=Math.round;function Hr(){var at=navigator.userAgentData;return at!=null&&at.brands&&Array.isArray(at.brands)?at.brands.map(function(C){return C.brand+"/"+C.version}).join(" "):navigator.userAgent}function vn(){return!/^((?!chrome|android).)*safari/i.test(Hr())}function Ca(at,C,P){C===void 0&&(C=!1),P===void 0&&(P=!1);var F=at.getBoundingClientRect(),Q=1,_e=1;C&&Yn(at)&&(Q=at.offsetWidth>0&&on(F.width)/at.offsetWidth||1,_e=at.offsetHeight>0&&on(F.height)/at.offsetHeight||1);var Be=(Jr(at)?jr(at):window).visualViewport,ot=!vn()&&P,Sn=(F.left+(ot&&Be?Be.offsetLeft:0))/Q,js=(F.top+(ot&&Be?Be.offsetTop:0))/_e,ka=F.width/Q,Ud=F.height/_e;return{width:ka,height:Ud,top:js,right:Sn+ka,bottom:js+Ud,left:Sn,x:Sn,y:js}}function ai(at){var C=Ca(at),P=at.offsetWidth,F=at.offsetHeight;return Math.abs(C.width-P)>1||(P=C.width),Math.abs(C.height-F)>1||(F=C.height),{x:at.offsetLeft,y:at.offsetTop,width:P,height:F}}function gt(at,C){var P=C.getRootNode&&C.getRootNode();if(at.contains(C))return!0;if(P&&Lt(P)){var F=C;do{if(F&&at.isSameNode(F))return!0;F=F.parentNode||F.host}while(F)}return!1}function Zr(at){return jr(at).getComputedStyle(at)}function Ht(at){return["table","td","th"].indexOf(Hs(at))>=0}function Zs(at){return((Jr(at)?at.ownerDocument:at.document)||window.document).documentElement}function oi(at){return Hs(at)==="html"?at:at.assignedSlot||at.parentNode||(Lt(at)?at.host:null)||Zs(at)}function Pa(at){return Yn(at)&&Zr(at).position!=="fixed"?at.offsetParent:null}function Aa(at){for(var C=jr(at),P=Pa(at);P&&Ht(P)&&Zr(P).position==="static";)P=Pa(P);return P&&(Hs(P)==="html"||Hs(P)==="body"&&Zr(P).position==="static")?C:P||function(F){var Q=/firefox/i.test(Hr());if(/Trident/i.test(Hr())&&Yn(F)&&Zr(F).position==="fixed")return null;var _e=oi(F);for(Lt(_e)&&(_e=_e.host);Yn(_e)&&0>["html","body"].indexOf(Hs(_e));){var Be=Zr(_e);if(Be.transform!=="none"||Be.perspective!=="none"||Be.contain==="paint"||["transform","perspective"].indexOf(Be.willChange)!==-1||Q&&Be.willChange==="filter"||Q&&Be.filter&&Be.filter!=="none")return _e;_e=_e.parentNode}return null}(at)||C}function Pg(at){return 0>["top","bottom"].indexOf(at)?"y":"x"}function Ug(at,C,P){return Bt(at,Rt(C,P))}function e0(at){return Object.assign({},{top:0,right:0,bottom:0,left:0},at)}function H0(at,C){return C.reduce(function(P,F){return P[F]=at,P},{})}var X0={name:"arrow",enabled:!0,phase:"main",fn:function(at){var C,P=at.state,F=at.name,Q=at.options,_e=P.elements.arrow,Be=P.modifiersData.popperOffsets,ot=Mt(P.placement),Sn=Pg(ot),js=[S,a].indexOf(ot)>=0?"height":"width";if(_e&&Be){var ka=function(ny,Uy){return e0(typeof(ny=typeof ny=="function"?ny(Object.assign({},Uy.rects,{placement:Uy.placement})):ny)!="number"?ny:H0(ny,N))}(Q.padding,P),Ud=ai(_e),Ng=Sn==="y"?y:S,N0=Sn==="y"?w:a,U0=P.rects.reference[js]+P.rects.reference[Sn]-Be[Sn]-P.rects.popper[js],Gv=Be[Sn]-P.rects.reference[Sn],Zv=Aa(_e),o1=Zv?Sn==="y"?Zv.clientHeight||0:Zv.clientWidth||0:0,qv=o1/2-Ud[js]/2+(U0/2-Gv/2),Sv=Ug(ka[Ng],qv,o1-Ud[js]-ka[N0]);P.modifiersData[F]=((C={})[Sn]=Sv,C.centerOffset=Sv-qv,C)}},effect:function(at){var C=at.state,P=at.options.element,F=P===void 0?"[data-popper-arrow]":P;F!=null&&(typeof F!="string"||(F=C.elements.popper.querySelector(F)))&>(C.elements.popper,F)&&(C.elements.arrow=F)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function d0(at){return at.split("-")[1]}var jv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lv(at){var C,P=at.popper,F=at.popperRect,Q=at.placement,_e=at.variation,Be=at.offsets,ot=at.position,Sn=at.gpuAcceleration,js=at.adaptive,ka=at.roundOffsets,Ud=at.isFixed,Ng=Be.x,N0=Ng===void 0?0:Ng,U0=Be.y,Gv=U0===void 0?0:U0,Zv=typeof ka=="function"?ka({x:N0,y:Gv}):{x:N0,y:Gv};N0=Zv.x,Gv=Zv.y;var o1=Be.hasOwnProperty("x"),qv=Be.hasOwnProperty("y"),Sv=S,ny=y,Uy=window;if(js){var w_=Aa(P),px="clientHeight",$x="clientWidth";w_===jr(P)&&Zr(w_=Zs(P)).position!=="static"&&ot==="absolute"&&(px="scrollHeight",$x="scrollWidth"),(Q===y||(Q===S||Q===a)&&_e===ze)&&(ny=w,Gv-=(Ud&&w_===Uy&&Uy.visualViewport?Uy.visualViewport.height:w_[px])-F.height,Gv*=Sn?1:-1),(Q===S||(Q===y||Q===w)&&_e===ze)&&(Sv=a,N0-=(Ud&&w_===Uy&&Uy.visualViewport?Uy.visualViewport.width:w_[$x])-F.width,N0*=Sn?1:-1)}var Ix,cw=Object.assign({position:ot},js&&jv),Sx=ka===!0?function(W2,gu){var bg=W2.y,i0=gu.devicePixelRatio||1;return{x:on(W2.x*i0)/i0||0,y:on(bg*i0)/i0||0}}({x:N0,y:Gv},jr(P)):{x:N0,y:Gv};return N0=Sx.x,Gv=Sx.y,Object.assign({},cw,Sn?((Ix={})[ny]=qv?"0":"",Ix[Sv]=o1?"0":"",Ix.transform=(Uy.devicePixelRatio||1)>1?"translate3d("+N0+"px, "+Gv+"px, 0)":"translate("+N0+"px, "+Gv+"px)",Ix):((C={})[ny]=qv?Gv+"px":"",C[Sv]=o1?N0+"px":"",C.transform="",C))}var Je={passive:!0},k0={left:"right",right:"left",bottom:"top",top:"bottom"};function G0(at){return at.replace(/left|right|bottom|top/g,function(C){return k0[C]})}var iv={start:"end",end:"start"};function u0(at){return at.replace(/start|end/g,function(C){return iv[C]})}function B1(at){var C=jr(at);return{scrollLeft:C.pageXOffset,scrollTop:C.pageYOffset}}function Dg(at){return Ca(Zs(at)).left+B1(at).scrollLeft}function zo(at){var C=Zr(at);return/auto|scroll|overlay|hidden/.test(C.overflow+C.overflowY+C.overflowX)}function mu(at){return 0>["html","body","#document"].indexOf(Hs(at))?Yn(at)&&zo(at)?at:mu(oi(at)):at.ownerDocument.body}function Ag(at,C){var P;C===void 0&&(C=[]);var F=mu(at),Q=F===((P=at.ownerDocument)==null?void 0:P.body),_e=jr(F),Be=Q?[_e].concat(_e.visualViewport||[],zo(F)?F:[]):F,ot=C.concat(Be);return Q?ot:ot.concat(Ag(oi(Be)))}function c0(at){return Object.assign({},at,{left:at.x,top:at.y,right:at.x+at.width,bottom:at.y+at.height})}function L0(at,C,P){return C===ct?c0(function(F,Q){var _e=jr(F),Be=Zs(F),ot=_e.visualViewport,Sn=Be.clientWidth,js=Be.clientHeight,ka=0,Ud=0;if(ot){Sn=ot.width,js=ot.height;var Ng=vn();(Ng||!Ng&&Q==="fixed")&&(ka=ot.offsetLeft,Ud=ot.offsetTop)}return{width:Sn,height:js,x:ka+Dg(F),y:Ud}}(at,P)):Jr(C)?function(F,Q){var _e=Ca(F,!1,Q==="fixed");return _e.top=_e.top+F.clientTop,_e.left=_e.left+F.clientLeft,_e.bottom=_e.top+F.clientHeight,_e.right=_e.left+F.clientWidth,_e.width=F.clientWidth,_e.height=F.clientHeight,_e.x=_e.left,_e.y=_e.top,_e}(C,P):c0(function(F){var Q,_e=Zs(F),Be=B1(F),ot=(Q=F.ownerDocument)==null?void 0:Q.body,Sn=Bt(_e.scrollWidth,_e.clientWidth,ot?ot.scrollWidth:0,ot?ot.clientWidth:0),js=Bt(_e.scrollHeight,_e.clientHeight,ot?ot.scrollHeight:0,ot?ot.clientHeight:0),ka=-Be.scrollLeft+Dg(F),Ud=-Be.scrollTop;return Zr(ot||_e).direction==="rtl"&&(ka+=Bt(_e.clientWidth,ot?ot.clientWidth:0)-Sn),{width:Sn,height:js,x:ka,y:Ud}}(Zs(at)))}function $0(at,C,P,F){var Q=C==="clippingParents"?function(ot){var Sn=Ag(oi(ot)),js=["absolute","fixed"].indexOf(Zr(ot).position)>=0&&Yn(ot)?Aa(ot):ot;return Jr(js)?Sn.filter(function(ka){return Jr(ka)&>(ka,js)&&Hs(ka)!=="body"}):[]}(at):[].concat(C),_e=[].concat(Q,[P]),Be=_e.reduce(function(ot,Sn){var js=L0(at,Sn,F);return ot.top=Bt(js.top,ot.top),ot.right=Rt(js.right,ot.right),ot.bottom=Rt(js.bottom,ot.bottom),ot.left=Bt(js.left,ot.left),ot},L0(at,_e[0],F));return Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top,Be.x=Be.left,Be.y=Be.top,Be}function cv(at){var C,P=at.reference,F=at.element,Q=at.placement,_e=Q?Mt(Q):null,Be=Q?d0(Q):null,ot=P.x+P.width/2-F.width/2,Sn=P.y+P.height/2-F.height/2;switch(_e){case y:C={x:ot,y:P.y-F.height};break;case w:C={x:ot,y:P.y+P.height};break;case a:C={x:P.x+P.width,y:Sn};break;case S:C={x:P.x-F.width,y:Sn};break;default:C={x:P.x,y:P.y}}var js=_e?Pg(_e):null;if(js!=null){var ka=js==="y"?"height":"width";switch(Be){case ie:C[js]=C[js]-(P[ka]/2-F[ka]/2);break;case ze:C[js]=C[js]+(P[ka]/2-F[ka]/2)}}return C}function Gg(at,C){C===void 0&&(C={});var P=C.placement,F=P===void 0?at.placement:P,Q=C.strategy,_e=Q===void 0?at.strategy:Q,Be=C.boundary,ot=Be===void 0?Ie:Be,Sn=C.rootBoundary,js=Sn===void 0?ct:Sn,ka=C.elementContext,Ud=ka===void 0?At:ka,Ng=C.altBoundary,N0=Ng!==void 0&&Ng,U0=C.padding,Gv=U0===void 0?0:U0,Zv=e0(typeof Gv!="number"?Gv:H0(Gv,N)),o1=at.rects.popper,qv=at.elements[N0?Ud===At?rt:At:Ud],Sv=$0(Jr(qv)?qv:qv.contextElement||Zs(at.elements.popper),ot,js,_e),ny=Ca(at.elements.reference),Uy=cv({reference:ny,element:o1,strategy:"absolute",placement:F}),w_=c0(Object.assign({},o1,Uy)),px=Ud===At?w_:ny,$x={top:Sv.top-px.top+Zv.top,bottom:px.bottom-Sv.bottom+Zv.bottom,left:Sv.left-px.left+Zv.left,right:px.right-Sv.right+Zv.right},Ix=at.modifiersData.offset;if(Ud===At&&Ix){var cw=Ix[F];Object.keys($x).forEach(function(Sx){var W2=0>[a,w].indexOf(Sx)?-1:1;$x[Sx]+=cw[0>[y,w].indexOf(Sx)?"x":"y"]*W2})}return $x}function uu(at,C){C===void 0&&(C={});var P=C.boundary,F=C.rootBoundary,Q=C.padding,_e=C.flipVariations,Be=C.allowedAutoPlacements,ot=Be===void 0?Ot:Be,Sn=d0(C.placement),js=Sn?_e?It:It.filter(function(Ng){return d0(Ng)===Sn}):N,ka=js.filter(function(Ng){return ot.indexOf(Ng)>=0});ka.length===0&&(ka=js);var Ud=ka.reduce(function(Ng,N0){return Ng[N0]=Gg(at,{placement:N0,boundary:P,rootBoundary:F,padding:Q})[Mt(N0)],Ng},{});return Object.keys(Ud).sort(function(Ng,N0){return Ud[Ng]-Ud[N0]})}var Gs={name:"flip",enabled:!0,phase:"main",fn:function(at){var C=at.state,P=at.options,F=at.name;if(!C.modifiersData[F]._skip){for(var Q=P.mainAxis,_e=Q===void 0||Q,Be=P.altAxis,ot=Be===void 0||Be,Sn=P.fallbackPlacements,js=P.padding,ka=P.boundary,Ud=P.rootBoundary,Ng=P.altBoundary,N0=P.flipVariations,U0=N0===void 0||N0,Gv=P.allowedAutoPlacements,Zv=C.options.placement,o1=Mt(Zv),qv=Sn||(o1===Zv||!U0?[G0(Zv)]:function(i_){if(Mt(i_)===I)return[];var ex=G0(i_);return[u0(i_),ex,u0(ex)]}(Zv)),Sv=[Zv].concat(qv).reduce(function(i_,ex){return i_.concat(Mt(ex)===I?uu(C,{placement:ex,boundary:ka,rootBoundary:Ud,padding:js,flipVariations:U0,allowedAutoPlacements:Gv}):ex)},[]),ny=C.rects.reference,Uy=C.rects.popper,w_=new Map,px=!0,$x=Sv[0],Ix=0;Sv.length>Ix;Ix++){var cw=Sv[Ix],Sx=Mt(cw),W2=d0(cw)===ie,gu=[y,w].indexOf(Sx)>=0,bg=gu?"width":"height",i0=Gg(C,{placement:cw,boundary:ka,rootBoundary:Ud,altBoundary:Ng,padding:js}),S0=gu?W2?a:S:W2?w:y;ny[bg]>Uy[bg]&&(S0=G0(S0));var Tv=G0(S0),cy=[];if(_e&&cy.push(0>=i0[Sx]),ot&&cy.push(0>=i0[S0],0>=i0[Tv]),cy.every(function(i_){return i_})){$x=cw,px=!1;break}w_.set(cw,cy)}if(px)for(var Gy=function(i_){var ex=Sv.find(function(W1){var A2=w_.get(W1);if(A2)return A2.slice(0,i_).every(function(CC){return CC})});if(ex)return $x=ex,"break"},q1=U0?3:1;q1>0&&Gy(q1)!=="break";q1--);C.placement!==$x&&(C.modifiersData[F]._skip=!0,C.placement=$x,C.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ia(at,C,P){return P===void 0&&(P={x:0,y:0}),{top:at.top-C.height-P.y,right:at.right-C.width+P.x,bottom:at.bottom-C.height+P.y,left:at.left-C.width-P.x}}function lu(at){return[y,a,w,S].some(function(C){return at[C]>=0})}var _h={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(at){var C=at.state,P=at.name,F=at.options.offset,Q=F===void 0?[0,0]:F,_e=Ot.reduce(function(Sn,js){return Sn[js]=function(ka,Ud,Ng){var N0=Mt(ka),U0=0>[S,y].indexOf(N0)?1:-1,Gv=typeof Ng=="function"?Ng(Object.assign({},Ud,{placement:ka})):Ng,Zv=Gv[0],o1=Gv[1];return Zv=Zv||0,o1=(o1||0)*U0,0>[S,a].indexOf(N0)?{x:Zv,y:o1}:{x:o1,y:Zv}}(js,C.rects,Q),Sn},{}),Be=_e[C.placement],ot=Be.y;C.modifiersData.popperOffsets!=null&&(C.modifiersData.popperOffsets.x+=Be.x,C.modifiersData.popperOffsets.y+=ot),C.modifiersData[P]=_e}},Kr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(at){var C=at.state,P=at.options,F=at.name,Q=P.mainAxis,_e=Q===void 0||Q,Be=P.altAxis,ot=Be!==void 0&&Be,Sn=P.tether,js=Sn===void 0||Sn,ka=P.tetherOffset,Ud=ka===void 0?0:ka,Ng=Gg(C,{boundary:P.boundary,rootBoundary:P.rootBoundary,padding:P.padding,altBoundary:P.altBoundary}),N0=Mt(C.placement),U0=d0(C.placement),Gv=!U0,Zv=Pg(N0),o1=Zv==="x"?"y":"x",qv=C.modifiersData.popperOffsets,Sv=C.rects.reference,ny=C.rects.popper,Uy=typeof Ud=="function"?Ud(Object.assign({},C.rects,{placement:C.placement})):Ud,w_=typeof Uy=="number"?{mainAxis:Uy,altAxis:Uy}:Object.assign({mainAxis:0,altAxis:0},Uy),px=C.modifiersData.offset?C.modifiersData.offset[C.placement]:null,$x={x:0,y:0};if(qv){if(_e){var Ix,cw=Zv==="y"?y:S,Sx=Zv==="y"?w:a,W2=Zv==="y"?"height":"width",gu=qv[Zv],bg=gu+Ng[cw],i0=gu-Ng[Sx],S0=js?-ny[W2]/2:0,Tv=U0===ie?Sv[W2]:ny[W2],cy=U0===ie?-ny[W2]:-Sv[W2],Gy=C.elements.arrow,q1=js&&Gy?ai(Gy):{width:0,height:0},i_=C.modifiersData["arrow#persistent"]?C.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ex=i_[cw],W1=i_[Sx],A2=Ug(0,Sv[W2],q1[W2]),CC=Gv?Sv[W2]/2-S0-A2-ex-w_.mainAxis:Tv-A2-ex-w_.mainAxis,Gw=Gv?-Sv[W2]/2+S0+A2+W1+w_.mainAxis:cy+A2+W1+w_.mainAxis,Iw=C.elements.arrow&&Aa(C.elements.arrow),bC=(Ix=px==null?void 0:px[Zv])!=null?Ix:0,CE=gu+Gw-bC,$E=Ug(js?Rt(bg,gu+CC-bC-(Iw?Zv==="y"?Iw.clientTop||0:Iw.clientLeft||0:0)):bg,gu,js?Bt(i0,CE):i0);qv[Zv]=$E,$x[Zv]=$E-gu}if(ot){var nS,cS=qv[o1],g1=o1==="y"?"height":"width",z_=cS+Ng[Zv==="x"?y:S],hS=cS-Ng[Zv==="x"?w:a],NC=[y,S].indexOf(N0)!==-1,WS=(nS=px==null?void 0:px[o1])!=null?nS:0,MT=NC?z_:cS-Sv[g1]-ny[g1]-WS+w_.altAxis,zS=NC?cS+Sv[g1]+ny[g1]-WS-w_.altAxis:hS,Zb=js&&NC?function($w,mS,eS){var DE=Ug($w,mS,eS);return DE>eS?eS:DE}(MT,cS,zS):Ug(js?MT:z_,cS,js?zS:hS);qv[o1]=Zb,$x[o1]=Zb-cS}C.modifiersData[F]=$x}},requiresIfExists:["offset"]};function fr(at,C,P){P===void 0&&(P=!1);var F,Q,_e=Yn(C),Be=Yn(C)&&function(Ud){var Ng=Ud.getBoundingClientRect(),N0=on(Ng.width)/Ud.offsetWidth||1,U0=on(Ng.height)/Ud.offsetHeight||1;return N0!==1||U0!==1}(C),ot=Zs(C),Sn=Ca(at,Be,P),js={scrollLeft:0,scrollTop:0},ka={x:0,y:0};return(_e||!_e&&!P)&&((Hs(C)!=="body"||zo(ot))&&(js=(F=C)!==jr(F)&&Yn(F)?{scrollLeft:(Q=F).scrollLeft,scrollTop:Q.scrollTop}:B1(F)),Yn(C)?((ka=Ca(C,!0)).x+=C.clientLeft,ka.y+=C.clientTop):ot&&(ka.x=Dg(ot))),{x:Sn.left+js.scrollLeft-ka.x,y:Sn.top+js.scrollTop-ka.y,width:Sn.width,height:Sn.height}}function ri(at){var C=new Map,P=new Set,F=[];function Q(_e){P.add(_e.name),[].concat(_e.requires||[],_e.requiresIfExists||[]).forEach(function(Be){if(!P.has(Be)){var ot=C.get(Be);ot&&Q(ot)}}),F.push(_e)}return at.forEach(function(_e){C.set(_e.name,_e)}),at.forEach(function(_e){P.has(_e.name)||Q(_e)}),F}var Ra={placement:"bottom",modifiers:[],strategy:"absolute"};function Sg(){for(var at=arguments.length,C=Array(at),P=0;at>P;P++)C[P]=arguments[P];return!C.some(function(F){return!(F&&typeof F.getBoundingClientRect=="function")})}function Jg(at){at===void 0&&(at={});var C=at.defaultModifiers,P=C===void 0?[]:C,F=at.defaultOptions,Q=F===void 0?Ra:F;return function(_e,Be,ot){ot===void 0&&(ot=Q);var Sn,js,ka={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ra,Q),modifiersData:{},elements:{reference:_e,popper:Be},attributes:{},styles:{}},Ud=[],Ng=!1,N0={state:ka,setOptions:function(Gv){var Zv=typeof Gv=="function"?Gv(ka.options):Gv;U0(),ka.options=Object.assign({},Q,ka.options,Zv),ka.scrollParents={reference:Jr(_e)?Ag(_e):_e.contextElement?Ag(_e.contextElement):[],popper:Ag(Be)};var o1,qv,Sv=function(ny){var Uy=ri(ny);return wn.reduce(function(w_,px){return w_.concat(Uy.filter(function($x){return $x.phase===px}))},[])}((o1=[].concat(P,ka.options.modifiers),qv=o1.reduce(function(ny,Uy){var w_=ny[Uy.name];return ny[Uy.name]=w_?Object.assign({},w_,Uy,{options:Object.assign({},w_.options,Uy.options),data:Object.assign({},w_.data,Uy.data)}):Uy,ny},{}),Object.keys(qv).map(function(ny){return qv[ny]})));return ka.orderedModifiers=Sv.filter(function(ny){return ny.enabled}),ka.orderedModifiers.forEach(function(ny){var Uy=ny.options,w_=ny.effect;if(typeof w_=="function"){var px=w_({state:ka,name:ny.name,instance:N0,options:Uy===void 0?{}:Uy});Ud.push(px||function(){})}}),N0.update()},forceUpdate:function(){if(!Ng){var Gv=ka.elements,Zv=Gv.reference,o1=Gv.popper;if(Sg(Zv,o1)){ka.rects={reference:fr(Zv,Aa(o1),ka.options.strategy==="fixed"),popper:ai(o1)},ka.reset=!1,ka.placement=ka.options.placement,ka.orderedModifiers.forEach(function(w_){return ka.modifiersData[w_.name]=Object.assign({},w_.data)});for(var qv=0;ka.orderedModifiers.length>qv;qv++)if(ka.reset!==!0){var Sv=ka.orderedModifiers[qv],ny=Sv.fn,Uy=Sv.options;typeof ny=="function"&&(ka=ny({state:ka,options:Uy===void 0?{}:Uy,name:Sv.name,instance:N0})||ka)}else ka.reset=!1,qv=-1}}},update:(Sn=function(){return new Promise(function(Gv){N0.forceUpdate(),Gv(ka)})},function(){return js||(js=new Promise(function(Gv){Promise.resolve().then(function(){js=void 0,Gv(Sn())})})),js}),destroy:function(){U0(),Ng=!0}};if(!Sg(_e,Be))return N0;function U0(){Ud.forEach(function(Gv){return Gv()}),Ud=[]}return N0.setOptions(ot).then(function(Gv){!Ng&&ot.onFirstUpdate&&ot.onFirstUpdate(Gv)}),N0}}var j0=Jg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(at){var C=at.state,P=at.instance,F=at.options,Q=F.scroll,_e=Q===void 0||Q,Be=F.resize,ot=Be===void 0||Be,Sn=jr(C.elements.popper),js=[].concat(C.scrollParents.reference,C.scrollParents.popper);return _e&&js.forEach(function(ka){ka.addEventListener("scroll",P.update,Je)}),ot&&Sn.addEventListener("resize",P.update,Je),function(){_e&&js.forEach(function(ka){ka.removeEventListener("scroll",P.update,Je)}),ot&&Sn.removeEventListener("resize",P.update,Je)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(at){var C=at.state;C.modifiersData[at.name]=cv({reference:C.rects.reference,element:C.rects.popper,strategy:"absolute",placement:C.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(at){var C=at.state,P=at.options,F=P.gpuAcceleration,Q=F===void 0||F,_e=P.adaptive,Be=_e===void 0||_e,ot=P.roundOffsets,Sn=ot===void 0||ot,js={placement:Mt(C.placement),variation:d0(C.placement),popper:C.elements.popper,popperRect:C.rects.popper,gpuAcceleration:Q,isFixed:C.options.strategy==="fixed"};C.modifiersData.popperOffsets!=null&&(C.styles.popper=Object.assign({},C.styles.popper,Lv(Object.assign({},js,{offsets:C.modifiersData.popperOffsets,position:C.options.strategy,adaptive:Be,roundOffsets:Sn})))),C.modifiersData.arrow!=null&&(C.styles.arrow=Object.assign({},C.styles.arrow,Lv(Object.assign({},js,{offsets:C.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Sn})))),C.attributes.popper=Object.assign({},C.attributes.popper,{"data-popper-placement":C.placement})},data:{}},_n,_h,Gs,Kr,X0,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(at){var C=at.state,P=at.name,F=C.rects.reference,Q=C.rects.popper,_e=C.modifiersData.preventOverflow,Be=Gg(C,{elementContext:"reference"}),ot=Gg(C,{altBoundary:!0}),Sn=Ia(Be,F),js=Ia(ot,Q,_e),ka=lu(Sn),Ud=lu(js);C.modifiersData[P]={referenceClippingOffsets:Sn,popperEscapeOffsets:js,isReferenceHidden:ka,hasPopperEscaped:Ud},C.attributes.popper=Object.assign({},C.attributes.popper,{"data-popper-reference-hidden":ka,"data-popper-escaped":Ud})}}]}),Wo="tippy-content",Mo="tippy-backdrop",qr="tippy-arrow",On="tippy-svg-arrow",rn={passive:!0,capture:!0},ui=function(){return document.body};function ya(at,C,P){if(Array.isArray(at)){var F=at[C];return F==null?Array.isArray(P)?P[C]:P:F}return at}function gd(at,C){var P={}.toString.call(at);return P.indexOf("[object")===0&&P.indexOf(C+"]")>-1}function Su(at,C){return typeof at=="function"?at.apply(void 0,C):at}function xu(at,C){return C===0?at:function(F){clearTimeout(P),P=setTimeout(function(){at(F)},C)};var P}function xa(at){return[].concat(at)}function Td(at,C){at.indexOf(C)===-1&&at.push(C)}function jg(at){return[].slice.call(at)}function Wa(at){return Object.keys(at).reduce(function(C,P){return at[P]!==void 0&&(C[P]=at[P]),C},{})}function tv(){return document.createElement("div")}function Bs(at){return["Element","Fragment"].some(function(C){return gd(at,C)})}function Sa(at){return gd(at,"MouseEvent")}function $a(at){return Bs(at)?[at]:function(C){return gd(C,"NodeList")}(at)?jg(at):Array.isArray(at)?at:jg(document.querySelectorAll(at))}function Bd(at,C){at.forEach(function(P){P&&(P.style.transitionDuration=C+"ms")})}function Bg(at,C){at.forEach(function(P){P&&P.setAttribute("data-state",C)})}function Og(at){var C,P=xa(at)[0];return P!=null&&(C=P.ownerDocument)!=null&&C.body?P.ownerDocument:document}function g0(at,C,P){var F=C+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Q){at[F](Q,P)})}function qg(at,C){for(var P=C;P;){var F;if(at.contains(P))return!0;P=P.getRootNode==null||(F=P.getRootNode())==null?void 0:F.host}return!1}var Xg={isTouch:!1},A0=0;function nv(){Xg.isTouch||(Xg.isTouch=!0,window.performance&&document.addEventListener("mousemove",t0))}function t0(){var at=performance.now();20>at-A0&&(Xg.isTouch=!1,document.removeEventListener("mousemove",t0)),A0=at}function n0(){var at,C=document.activeElement;(at=C)&&at._tippy&&at._tippy.reference===at&&C.blur&&!C._tippy.state.isVisible&&C.blur()}var u1=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Eg=Object.assign({appendTo:ui,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),a1=Object.keys(Eg);function Hg(at){var C=(at.plugins||[]).reduce(function(P,F){var Q,_e=F.name;return _e&&(P[_e]=at[_e]!==void 0?at[_e]:(Q=Eg[_e])!=null?Q:F.defaultValue),P},{});return Object.assign({},at,C)}function Gd(at,C){var P=Object.assign({},C,{content:Su(C.content,[at])},C.ignoreAttributes?{}:function(F,Q){return(Q?Object.keys(Hg(Object.assign({},Eg,{plugins:Q}))):a1).reduce(function(_e,Be){var ot=(F.getAttribute("data-tippy-"+Be)||"").trim();if(!ot)return _e;if(Be==="content")_e[Be]=ot;else try{_e[Be]=JSON.parse(ot)}catch(Sn){_e[Be]=ot}return _e},{})}(at,C.plugins));return P.aria=Object.assign({},Eg.aria,P.aria),P.aria={expanded:P.aria.expanded==="auto"?C.interactive:P.aria.expanded,content:P.aria.content==="auto"?C.interactive?null:"describedby":P.aria.content},P}var h0=function(){return"innerHTML"};function lv(at,C){at[h0()]=C}function su(at){var C=tv();return at===!0?C.className=qr:(C.className=On,Bs(at)?C.appendChild(at):lv(C,at)),C}function hu(at,C){Bs(C.content)?(lv(at,""),at.appendChild(C.content)):typeof C.content!="function"&&(C.allowHTML?lv(at,C.content):at.textContent=C.content)}function ev(at){var C=at.firstElementChild,P=jg(C.children);return{box:C,content:P.find(function(F){return F.classList.contains(Wo)}),arrow:P.find(function(F){return F.classList.contains(qr)||F.classList.contains(On)}),backdrop:P.find(function(F){return F.classList.contains(Mo)})}}function sv(at){var C=tv(),P=tv();P.className="tippy-box",P.setAttribute("data-state","hidden"),P.setAttribute("tabindex","-1");var F=tv();function Q(_e,Be){var ot=ev(C),Sn=ot.box,js=ot.content,ka=ot.arrow;Be.theme?Sn.setAttribute("data-theme",Be.theme):Sn.removeAttribute("data-theme"),typeof Be.animation=="string"?Sn.setAttribute("data-animation",Be.animation):Sn.removeAttribute("data-animation"),Be.inertia?Sn.setAttribute("data-inertia",""):Sn.removeAttribute("data-inertia"),Sn.style.maxWidth=typeof Be.maxWidth=="number"?Be.maxWidth+"px":Be.maxWidth,Be.role?Sn.setAttribute("role",Be.role):Sn.removeAttribute("role"),_e.content===Be.content&&_e.allowHTML===Be.allowHTML||hu(js,at.props),Be.arrow?ka?_e.arrow!==Be.arrow&&(Sn.removeChild(ka),Sn.appendChild(su(Be.arrow))):Sn.appendChild(su(Be.arrow)):ka&&Sn.removeChild(ka)}return F.className=Wo,F.setAttribute("data-state","hidden"),hu(F,at.props),C.appendChild(P),P.appendChild(F),Q(at.props,at.props),{popper:C,onUpdate:Q}}sv.$$tippy=!0;var yv=1,$v=[],E0=[];function E1(at,C){var P,F,Q,_e,Be,ot,Sn,js,ka=Gd(at,Object.assign({},Eg,Hg(Wa(C)))),Ud=!1,Ng=!1,N0=!1,U0=!1,Gv=[],Zv=xu(nS,ka.interactiveDebounce),o1=yv++,qv=(js=ka.plugins).filter(function(Zb,$w){return js.indexOf(Zb)===$w}),Sv={id:o1,reference:at,popper:tv(),popperInstance:null,props:ka,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:qv,clearDelayTimeouts:function(){clearTimeout(P),clearTimeout(F),cancelAnimationFrame(Q)},setProps:function(Zb){if(!Sv.state.isDestroyed){Tv("onBeforeUpdate",[Sv,Zb]),CE();var $w=Sv.props,mS=Gd(at,Object.assign({},$w,Wa(Zb),{ignoreAttributes:!0}));Sv.props=mS,bC(),$w.interactiveDebounce!==mS.interactiveDebounce&&(q1(),Zv=xu(nS,mS.interactiveDebounce)),$w.triggerTarget&&!mS.triggerTarget?xa($w.triggerTarget).forEach(function(eS){eS.removeAttribute("aria-expanded")}):mS.triggerTarget&&at.removeAttribute("aria-expanded"),Gy(),S0(),w_&&w_($w,mS),Sv.popperInstance&&(hS(),WS().forEach(function(eS){requestAnimationFrame(eS._tippy.popperInstance.forceUpdate)})),Tv("onAfterUpdate",[Sv,Zb])}},setContent:function(Zb){Sv.setProps({content:Zb})},show:function(){var Zb=Sv.state.isVisible,$w=Sv.state.isDestroyed,mS=!Sv.state.isEnabled,eS=Xg.isTouch&&!Sv.props.touch,DE=ya(Sv.props.duration,0,Eg.duration);if(!(Zb||$w||mS||eS)&&!W2().hasAttribute("disabled")&&(Tv("onShow",[Sv],!1),Sv.props.onShow(Sv)!==!1)){if(Sv.state.isVisible=!0,Sx()&&(Uy.style.visibility="visible"),S0(),A2(),Sv.state.isMounted||(Uy.style.transition="none"),Sx()){var ne=bg();Bd([ne.box,ne.content],0)}ot=function(){var H;if(Sv.state.isVisible&&!U0){if(U0=!0,Uy.style.transition=Sv.props.moveTransition,Sx()&&Sv.props.animation){var ve=bg(),He=ve.box,Nt=ve.content;Bd([He,Nt],DE),Bg([He,Nt],"visible")}cy(),Gy(),Td(E0,Sv),(H=Sv.popperInstance)==null||H.forceUpdate(),Tv("onMount",[Sv]),Sv.props.animation&&Sx()&&function(Xr,Ar){Gw(Xr,Ar)}(DE,function(){Sv.state.isShown=!0,Tv("onShown",[Sv])})}},function(){var H,ve=Sv.props.appendTo,He=W2();H=Sv.props.interactive&&ve===ui||ve==="parent"?He.parentNode:Su(ve,[He]),H.contains(Uy)||H.appendChild(Uy),Sv.state.isMounted=!0,hS()}()}},hide:function(){var Zb=!Sv.state.isVisible,$w=Sv.state.isDestroyed,mS=!Sv.state.isEnabled,eS=ya(Sv.props.duration,1,Eg.duration);if(!(Zb||$w||mS)&&(Tv("onHide",[Sv],!1),Sv.props.onHide(Sv)!==!1)){if(Sv.state.isVisible=!1,Sv.state.isShown=!1,U0=!1,Ud=!1,Sx()&&(Uy.style.visibility="hidden"),q1(),CC(),S0(!0),Sx()){var DE=bg(),ne=DE.box,H=DE.content;Sv.props.animation&&(Bd([ne,H],eS),Bg([ne,H],"hidden"))}cy(),Gy(),Sv.props.animation?Sx()&&function(ve,He){Gw(ve,function(){!Sv.state.isVisible&&Uy.parentNode&&Uy.parentNode.contains(Uy)&&He()})}(eS,Sv.unmount):Sv.unmount()}},hideWithInteractivity:function(Zb){gu().addEventListener("mousemove",Zv),Td($v,Zv),Zv(Zb)},enable:function(){Sv.state.isEnabled=!0},disable:function(){Sv.hide(),Sv.state.isEnabled=!1},unmount:function(){Sv.state.isVisible&&Sv.hide(),Sv.state.isMounted&&(NC(),WS().forEach(function(Zb){Zb._tippy.unmount()}),Uy.parentNode&&Uy.parentNode.removeChild(Uy),E0=E0.filter(function(Zb){return Zb!==Sv}),Sv.state.isMounted=!1,Tv("onHidden",[Sv]))},destroy:function(){Sv.state.isDestroyed||(Sv.clearDelayTimeouts(),Sv.unmount(),CE(),delete at._tippy,Sv.state.isDestroyed=!0,Tv("onDestroy",[Sv]))}};if(!ka.render)return Sv;var ny=ka.render(Sv),Uy=ny.popper,w_=ny.onUpdate;Uy.setAttribute("data-tippy-root",""),Uy.id="tippy-"+Sv.id,Sv.popper=Uy,at._tippy=Sv,Uy._tippy=Sv;var px=qv.map(function(Zb){return Zb.fn(Sv)}),$x=at.hasAttribute("aria-expanded");return bC(),Gy(),S0(),Tv("onCreate",[Sv]),ka.showOnCreate&&MT(),Uy.addEventListener("mouseenter",function(){Sv.props.interactive&&Sv.state.isVisible&&Sv.clearDelayTimeouts()}),Uy.addEventListener("mouseleave",function(){Sv.props.interactive&&Sv.props.trigger.indexOf("mouseenter")>=0&&gu().addEventListener("mousemove",Zv)}),Sv;function Ix(){var Zb=Sv.props.touch;return Array.isArray(Zb)?Zb:[Zb,0]}function cw(){return Ix()[0]==="hold"}function Sx(){var Zb;return!((Zb=Sv.props.render)==null||!Zb.$$tippy)}function W2(){return Sn||at}function gu(){var Zb=W2().parentNode;return Zb?Og(Zb):document}function bg(){return ev(Uy)}function i0(Zb){return Sv.state.isMounted&&!Sv.state.isVisible||Xg.isTouch||_e&&_e.type==="focus"?0:ya(Sv.props.delay,Zb?0:1,Eg.delay)}function S0(Zb){Zb===void 0&&(Zb=!1),Uy.style.pointerEvents=Sv.props.interactive&&!Zb?"":"none",Uy.style.zIndex=""+Sv.props.zIndex}function Tv(Zb,$w,mS){var eS;mS===void 0&&(mS=!0),px.forEach(function(DE){DE[Zb]&&DE[Zb].apply(DE,$w)}),mS&&(eS=Sv.props)[Zb].apply(eS,$w)}function cy(){var Zb=Sv.props.aria;if(Zb.content){var $w="aria-"+Zb.content,mS=Uy.id;xa(Sv.props.triggerTarget||at).forEach(function(eS){var DE=eS.getAttribute($w);if(Sv.state.isVisible)eS.setAttribute($w,DE?DE+" "+mS:mS);else{var ne=DE&&DE.replace(mS,"").trim();ne?eS.setAttribute($w,ne):eS.removeAttribute($w)}})}}function Gy(){!$x&&Sv.props.aria.expanded&&xa(Sv.props.triggerTarget||at).forEach(function(Zb){Sv.props.interactive?Zb.setAttribute("aria-expanded",Sv.state.isVisible&&Zb===W2()?"true":"false"):Zb.removeAttribute("aria-expanded")})}function q1(){gu().removeEventListener("mousemove",Zv),$v=$v.filter(function(Zb){return Zb!==Zv})}function i_(Zb){if(!Xg.isTouch||!N0&&Zb.type!=="mousedown"){var $w=Zb.composedPath&&Zb.composedPath()[0]||Zb.target;if(!Sv.props.interactive||!qg(Uy,$w)){if(xa(Sv.props.triggerTarget||at).some(function(mS){return qg(mS,$w)})){if(Xg.isTouch||Sv.state.isVisible&&Sv.props.trigger.indexOf("click")>=0)return}else Tv("onClickOutside",[Sv,Zb]);Sv.props.hideOnClick===!0&&(Sv.clearDelayTimeouts(),Sv.hide(),Ng=!0,setTimeout(function(){Ng=!1}),Sv.state.isMounted||CC())}}}function ex(){N0=!0}function W1(){N0=!1}function A2(){var Zb=gu();Zb.addEventListener("mousedown",i_,!0),Zb.addEventListener("touchend",i_,rn),Zb.addEventListener("touchstart",W1,rn),Zb.addEventListener("touchmove",ex,rn)}function CC(){var Zb=gu();Zb.removeEventListener("mousedown",i_,!0),Zb.removeEventListener("touchend",i_,rn),Zb.removeEventListener("touchstart",W1,rn),Zb.removeEventListener("touchmove",ex,rn)}function Gw(Zb,$w){var mS=bg().box;function eS(DE){DE.target===mS&&(g0(mS,"remove",eS),$w())}if(Zb===0)return $w();g0(mS,"remove",Be),g0(mS,"add",eS),Be=eS}function Iw(Zb,$w,mS){mS===void 0&&(mS=!1),xa(Sv.props.triggerTarget||at).forEach(function(eS){eS.addEventListener(Zb,$w,mS),Gv.push({node:eS,eventType:Zb,handler:$w,options:mS})})}function bC(){var Zb;cw()&&(Iw("touchstart",$E,{passive:!0}),Iw("touchend",cS,{passive:!0})),(Zb=Sv.props.trigger,Zb.split(/\s+/).filter(Boolean)).forEach(function($w){if($w!=="manual")switch(Iw($w,$E),$w){case"mouseenter":Iw("mouseleave",cS);break;case"focus":Iw(u1?"focusout":"blur",g1);break;case"focusin":Iw("focusout",g1)}})}function CE(){Gv.forEach(function(Zb){Zb.node.removeEventListener(Zb.eventType,Zb.handler,Zb.options)}),Gv=[]}function $E(Zb){var $w,mS=!1;if(Sv.state.isEnabled&&!z_(Zb)&&!Ng){var eS=(($w=_e)==null?void 0:$w.type)==="focus";_e=Zb,Sn=Zb.currentTarget,Gy(),!Sv.state.isVisible&&Sa(Zb)&&$v.forEach(function(DE){return DE(Zb)}),Zb.type==="click"&&(0>Sv.props.trigger.indexOf("mouseenter")||Ud)&&Sv.props.hideOnClick!==!1&&Sv.state.isVisible?mS=!0:MT(Zb),Zb.type==="click"&&(Ud=!mS),mS&&!eS&&zS(Zb)}}function nS(Zb){var $w=Zb.target,mS=W2().contains($w)||Uy.contains($w);if(Zb.type!=="mousemove"||!mS){var eS=WS().concat(Uy).map(function(DE){var ne,H=(ne=DE._tippy.popperInstance)==null?void 0:ne.state;return H?{popperRect:DE.getBoundingClientRect(),popperState:H,props:ka}:null}).filter(Boolean);(function(DE,ne){var H=ne.clientX,ve=ne.clientY;return DE.every(function(He){var Nt=He.popperRect,Xr=He.popperState,Ar=He.props.interactiveBorder,Ea=Xr.placement.split("-")[0],iu=Xr.modifiersData.offset;return!iu||Nt.top-ve+(Ea==="bottom"?iu.top.y:0)>Ar||ve-Nt.bottom-(Ea==="top"?iu.bottom.y:0)>Ar||Nt.left-H+(Ea==="right"?iu.left.x:0)>Ar||H-Nt.right-(Ea==="left"?iu.right.x:0)>Ar})})(eS,Zb)&&(q1(),zS(Zb))}}function cS(Zb){z_(Zb)||Sv.props.trigger.indexOf("click")>=0&&Ud||(Sv.props.interactive?Sv.hideWithInteractivity(Zb):zS(Zb))}function g1(Zb){0>Sv.props.trigger.indexOf("focusin")&&Zb.target!==W2()||Sv.props.interactive&&Zb.relatedTarget&&Uy.contains(Zb.relatedTarget)||zS(Zb)}function z_(Zb){return!!Xg.isTouch&&cw()!==Zb.type.indexOf("touch")>=0}function hS(){NC();var Zb=Sv.props,$w=Zb.popperOptions,mS=Zb.placement,eS=Zb.offset,DE=Zb.getReferenceClientRect,ne=Zb.moveTransition,H=Sx()?ev(Uy).arrow:null,ve=DE?{getBoundingClientRect:DE,contextElement:DE.contextElement||W2()}:at,He={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Xr){var Ar=Xr.state;if(Sx()){var Ea=bg().box;["placement","reference-hidden","escaped"].forEach(function(iu){iu==="placement"?Ea.setAttribute("data-placement",Ar.placement):Ar.attributes.popper["data-popper-"+iu]?Ea.setAttribute("data-"+iu,""):Ea.removeAttribute("data-"+iu)}),Ar.attributes.popper={}}}},Nt=[{name:"offset",options:{offset:eS}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ne}},He];Sx()&&H&&Nt.push({name:"arrow",options:{element:H,padding:3}}),Nt.push.apply(Nt,($w==null?void 0:$w.modifiers)||[]),Sv.popperInstance=j0(ve,Uy,Object.assign({},$w,{placement:mS,onFirstUpdate:ot,modifiers:Nt}))}function NC(){Sv.popperInstance&&(Sv.popperInstance.destroy(),Sv.popperInstance=null)}function WS(){return jg(Uy.querySelectorAll("[data-tippy-root]"))}function MT(Zb){Sv.clearDelayTimeouts(),Zb&&Tv("onTrigger",[Sv,Zb]),A2();var $w=i0(!0),mS=Ix(),eS=mS[1];Xg.isTouch&&mS[0]==="hold"&&eS&&($w=eS),$w?P=setTimeout(function(){Sv.show()},$w):Sv.show()}function zS(Zb){if(Sv.clearDelayTimeouts(),Tv("onUntrigger",[Sv,Zb]),Sv.state.isVisible){if(0>Sv.props.trigger.indexOf("mouseenter")||0>Sv.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(Zb.type)||!Ud){var $w=i0(!1);$w?F=setTimeout(function(){Sv.state.isVisible&&Sv.hide()},$w):Q=requestAnimationFrame(function(){Sv.hide()})}}else CC()}}function $1(at,C){C===void 0&&(C={});var P=Eg.plugins.concat(C.plugins||[]);document.addEventListener("touchstart",nv,rn),window.addEventListener("blur",n0);var F=Object.assign({},C,{plugins:P}),Q=$a(at).reduce(function(_e,Be){var ot=Be&&E1(Be,F);return ot&&_e.push(ot),_e},[]);return Bs(at)?Q[0]:Q}$1.defaultProps=Eg,$1.setDefaultProps=function(at){Object.keys(at).forEach(function(C){Eg[C]=at[C]})},$1.currentInput=Xg,Object.assign({},_n,{effect:function(at){var C=at.state,P={popper:{position:C.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(C.elements.popper.style,P.popper),C.styles=P,C.elements.arrow&&Object.assign(C.elements.arrow.style,P.arrow)}});var l0={clientX:0,clientY:0},z0=[];function W0(at){l0={clientX:at.clientX,clientY:at.clientY}}var Rv={name:"followCursor",defaultValue:!1,fn:function(at){var C=at.reference,P=Og(at.props.triggerTarget||C),F=!1,Q=!1,_e=!0,Be=at.props;function ot(){return at.props.followCursor==="initial"&&at.state.isVisible}function Sn(){P.addEventListener("mousemove",Ud)}function js(){P.removeEventListener("mousemove",Ud)}function ka(){F=!0,at.setProps({getReferenceClientRect:null}),F=!1}function Ud(U0){var Gv=!U0.target||C.contains(U0.target),Zv=at.props.followCursor,o1=U0.clientX,qv=U0.clientY,Sv=C.getBoundingClientRect(),ny=o1-Sv.left,Uy=qv-Sv.top;!Gv&&at.props.interactive||at.setProps({getReferenceClientRect:function(){var w_=C.getBoundingClientRect(),px=o1,$x=qv;Zv==="initial"&&(px=w_.left+ny,$x=w_.top+Uy);var Ix=Zv==="horizontal"?w_.top:$x,cw=Zv==="vertical"?w_.right:px,Sx=Zv==="horizontal"?w_.bottom:$x,W2=Zv==="vertical"?w_.left:px;return{width:cw-W2,height:Sx-Ix,top:Ix,right:cw,bottom:Sx,left:W2}}})}function Ng(){at.props.followCursor&&(z0.push({instance:at,doc:P}),function(U0){U0.addEventListener("mousemove",W0)}(P))}function N0(){(z0=z0.filter(function(U0){return U0.instance!==at})).filter(function(U0){return U0.doc===P}).length===0&&function(U0){U0.removeEventListener("mousemove",W0)}(P)}return{onCreate:Ng,onDestroy:N0,onBeforeUpdate:function(){Be=at.props},onAfterUpdate:function(U0,Gv){var Zv=Gv.followCursor;F||Zv!==void 0&&Be.followCursor!==Zv&&(N0(),Zv?(Ng(),!at.state.isMounted||Q||ot()||Sn()):(js(),ka()))},onMount:function(){at.props.followCursor&&!Q&&(_e&&(Ud(l0),_e=!1),ot()||Sn())},onTrigger:function(U0,Gv){Sa(Gv)&&(l0={clientX:Gv.clientX,clientY:Gv.clientY}),Q=Gv.type==="focus"},onHidden:function(){at.props.followCursor&&(ka(),js(),_e=!0)}}}};$1.setDefaultProps({render:sv});var R0,gv,G1,xy,Dy,H1,xd={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(at){return 1e3>at?+at.toFixed(2)+"m":+(at/1e3).toFixed(2)+"km"}},Yg={showWhen:["normal","active"],format:function(at){return at>1e6?"".concat(+(at/1e6).toFixed(2),"km\xB2"):"".concat(+at.toFixed(2),"m\xB2")}},r0={maxSize:100},No={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},qt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[Rv],trigger:"manual",hideOnClick:!1,theme:"light"},Sr={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function si(at,C){var P=Object.keys(at);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(at);C&&(F=F.filter(function(Q){return Object.getOwnPropertyDescriptor(at,Q).enumerable})),P.push.apply(P,F)}return P}function Rs(at){for(var C=1;arguments.length>C;C++){var P=arguments[C]!=null?arguments[C]:{};C%2?si(Object(P),!0).forEach(function(F){ga(at,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(at,Object.getOwnPropertyDescriptors(P)):si(Object(P)).forEach(function(F){Object.defineProperty(at,F,Object.getOwnPropertyDescriptor(P,F))})}return at}function wa(at){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},wa(at)}function bu(at,C){if(!(at instanceof C))throw new TypeError("Cannot call a class as a function")}function s0(at,C){for(var P=0;C.length>P;P++){var F=C[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(at,zy(F.key),F)}}function In(at,C,P){return C&&s0(at.prototype,C),P&&s0(at,P),Object.defineProperty(at,"prototype",{writable:!1}),at}function ga(at,C,P){return(C=zy(C))in at?Object.defineProperty(at,C,{value:P,enumerable:!0,configurable:!0,writable:!0}):at[C]=P,at}function Ga(at,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");at.prototype=Object.create(C&&C.prototype,{constructor:{value:at,writable:!0,configurable:!0}}),Object.defineProperty(at,"prototype",{writable:!1}),C&&dv(at,C)}function Lu(at){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(C){return C.__proto__||Object.getPrototypeOf(C)},Lu(at)}function dv(at,C){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,F){return P.__proto__=F,P},dv(at,C)}function Cv(at){if(at===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return at}function Wv(at){var C=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(P){return!1}}();return function(){var P,F=Lu(at);if(C){var Q=Lu(this).constructor;P=Reflect.construct(F,arguments,Q)}else P=F.apply(this,arguments);return function(_e,Be){if(Be&&(typeof Be=="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cv(_e)}(this,P)}}function c1(){return c1=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(at,C,P){var F=function(_e,Be){for(;!Object.prototype.hasOwnProperty.call(_e,Be)&&(_e=Lu(_e))!==null;);return _e}(at,C);if(F){var Q=Object.getOwnPropertyDescriptor(F,C);return Q.get?Q.get.call(3>arguments.length?at:P):Q.value}},c1.apply(this,arguments)}function P1(at,C){return function(P){if(Array.isArray(P))return P}(at)||function(P,F){var Q=P==null?null:typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(Q!=null){var _e,Be,ot,Sn,js=[],ka=!0,Ud=!1;try{if(ot=(Q=Q.call(P)).next,F===0){if(Object(Q)!==Q)return;ka=!1}else for(;!(ka=(_e=ot.call(Q)).done)&&(js.push(_e.value),js.length!==F);ka=!0);}catch(Ng){Ud=!0,Be=Ng}finally{try{if(!ka&&Q.return!=null&&(Sn=Q.return(),Object(Sn)!==Sn))return}finally{if(Ud)throw Be}}return js}}(at,C)||sy(at,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z1(at){return function(C){if(Array.isArray(C))return wy(C)}(at)||function(C){if(typeof Symbol!="undefined"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}(at)||sy(at)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sy(at,C){if(at){if(typeof at=="string")return wy(at,C);var P=Object.prototype.toString.call(at).slice(8,-1);return P==="Object"&&at.constructor&&(P=at.constructor.name),P==="Map"||P==="Set"?Array.from(at):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?wy(at,C):void 0}}function wy(at,C){(C==null||C>at.length)&&(C=at.length);for(var P=0,F=Array(C);C>P;P++)F[P]=at[P];return F}function zy(at){var C=function(P,F){if(typeof P!="object"||P===null)return P;var Q=P[Symbol.toPrimitive];if(Q!==void 0){var _e=Q.call(P,F||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(P)}(at,"string");return typeof C=="symbol"?C:C+""}(R0=u.DrawEvent||(u.DrawEvent={})).Init="init",R0.Destroy="destroy",R0.Enable="enable",R0.Disable="disable",R0.Add="add",R0.Edit="edit",R0.Remove="remove",R0.Clear="clear",R0.Change="change",R0.DragStart="dragStart",R0.Dragging="dragging",R0.DragEnd="dragEnd",R0.Select="select",R0.AddNode="addNode",R0.RemoveNode="removeNode",(gv=u.SourceEvent||(u.SourceEvent={})).Change="change",gv.Update="update",(G1=u.RenderEvent||(u.RenderEvent={})).Click="click",G1.UnClick="unclick",G1.Dragstart="dragstart",G1.Mousemove="mousemove",G1.Mouseout="mouseout",G1.Dragging="dragging",G1.Dragend="dragend",G1.DblClick="dblClick",G1.Contextmenu="contextmenu",(xy=u.LayerEvent||(u.LayerEvent={})).Mousedown="mousedown",xy.Mouseup="mouseup",xy.Click="click",xy.UnClick="unclick",xy.Dblclick="dblclick",xy.Mousemove="mousemove",xy.Mouseover="mouseover",xy.Mouseenter="mouseenter",xy.Mouseleave="mouseleave",xy.Mouseout="mouseout",xy.Contextmenu="contextmenu",(Dy=u.SceneEvent||(u.SceneEvent={})).Loaded="loaded",Dy.MapMove="mapmove",Dy.MoveStart="movestart",Dy.MoveEnd="moveend",Dy.ZoomChange="zoomchange",Dy.ZoomStart="zoomstart",Dy.ZoomEnd="zoomend",Dy.Click="click",Dy.Dblclick="dblclick",Dy.Mousemove="mousemove",Dy.Mousewheel="mousewheel",Dy.Mouseover="mouseover",Dy.Mouseout="mouseout",Dy.Mouseup="mouseup",Dy.Mousedown="mousedown",Dy.Contextmenu="contextmenu",Dy.Dragstart="dragstart",Dy.Dragging="dragging",Dy.Dragend="dragend",(H1=u.ControlEvent||(u.ControlEvent={})).DrawChange="drawchange",H1.DataChange="datachange",H1.DrawSelect="drawselect",H1.DrawClear="drawclear";var hv=63710088e-1,Qv={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*hv,kilometers:6371.0088,kilometres:6371.0088,meters:hv,metres:hv,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:hv/1852,radians:1,yards:6967335223679999e-9},Y1={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function M_(at,C,P){P===void 0&&(P={});var F={type:"Feature"};return(P.id===0||P.id)&&(F.id=P.id),P.bbox&&(F.bbox=P.bbox),F.properties=C||{},F.geometry=at,F}function h1(at,C,P){if(P===void 0&&(P={}),!at)throw Error("coordinates is required");if(!Array.isArray(at))throw Error("coordinates must be an Array");if(2>at.length)throw Error("coordinates must be at least 2 numbers long");if(!J_(at[0])||!J_(at[1]))throw Error("coordinates must contain numbers");return M_({type:"Point",coordinates:at},C,P)}function _v(at,C,P){P===void 0&&(P={});for(var F=0,Q=at;Q.length>F;F++){var _e=Q[F];if(4>_e.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var Be=0;_e[_e.length-1].length>Be;Be++)if(_e[_e.length-1][Be]!==_e[0][Be])throw Error("First and last Position are not equivalent.")}return M_({type:"Polygon",coordinates:at},C,P)}function Iv(at,C,P){if(P===void 0&&(P={}),2>at.length)throw Error("coordinates must be an array of two or more positions");return M_({type:"LineString",coordinates:at},C,P)}function Ov(at,C){C===void 0&&(C={});var P={type:"FeatureCollection"};return C.id&&(P.id=C.id),C.bbox&&(P.bbox=C.bbox),P.features=at,P}function v1(at,C,P){return P===void 0&&(P={}),M_({type:"MultiLineString",coordinates:at},C,P)}function K1(at,C,P){return P===void 0&&(P={}),M_({type:"MultiPoint",coordinates:at},C,P)}function sx(at,C,P){return P===void 0&&(P={}),M_({type:"MultiPolygon",coordinates:at},C,P)}function Kx(at,C){C===void 0&&(C="kilometers");var P=Qv[C];if(!P)throw Error(C+" units is invalid");return at*P}function t2(at,C){C===void 0&&(C="kilometers");var P=Qv[C];if(!P)throw Error(C+" units is invalid");return at/P}function I2(at){return 180*(at%(2*Math.PI))/Math.PI}function D2(at){return at%360*Math.PI/180}function J_(at){return!isNaN(at)&&at!==null&&!Array.isArray(at)}function ax(at){return!!at&&at.constructor===Object}var rx=Object.freeze({__proto__:null,earthRadius:hv,factors:Qv,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/hv,yards:1.0936133},areaFactors:Y1,feature:M_,geometry:function(at,C,P){switch(at){case"Point":return h1(C).geometry;case"LineString":return Iv(C).geometry;case"Polygon":return _v(C).geometry;case"MultiPoint":return K1(C).geometry;case"MultiLineString":return v1(C).geometry;case"MultiPolygon":return sx(C).geometry;default:throw Error(at+" is invalid")}},point:h1,points:function(at,C,P){return P===void 0&&(P={}),Ov(at.map(function(F){return h1(F,C)}),P)},polygon:_v,polygons:function(at,C,P){return P===void 0&&(P={}),Ov(at.map(function(F){return _v(F,C)}),P)},lineString:Iv,lineStrings:function(at,C,P){return P===void 0&&(P={}),Ov(at.map(function(F){return Iv(F,C)}),P)},featureCollection:Ov,multiLineString:v1,multiPoint:K1,multiPolygon:sx,geometryCollection:function(at,C,P){return P===void 0&&(P={}),M_({type:"GeometryCollection",geometries:at},C,P)},round:function(at,C){if(C===void 0&&(C=0),C&&C<0)throw Error("precision must be a positive number");var P=Math.pow(10,C||0);return Math.round(at*P)/P},radiansToLength:Kx,lengthToRadians:t2,lengthToDegrees:function(at,C){return I2(t2(at,C))},bearingToAzimuth:function(at){var C=at%360;return 0>C&&(C+=360),C},radiansToDegrees:I2,degreesToRadians:D2,convertLength:function(at,C,P){if(C===void 0&&(C="kilometers"),P===void 0&&(P="kilometers"),at<0)throw Error("length must be a positive number");return Kx(t2(at,C),P)},convertArea:function(at,C,P){if(C===void 0&&(C="meters"),P===void 0&&(P="kilometers"),at<0)throw Error("area must be a positive number");var F=Y1[C];if(!F)throw Error("invalid original units");var Q=Y1[P];if(!Q)throw Error("invalid final units");return at/F*Q},isNumber:J_,isObject:ax,validateBBox:function(at){if(!at)throw Error("bbox is required");if(!Array.isArray(at))throw Error("bbox must be an Array");if(at.length!==4&&at.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");at.forEach(function(C){if(!J_(C))throw Error("bbox must only contain numbers")})},validateId:function(at){if(!at)throw Error("id is required");if(["string","number"].indexOf(typeof at)===-1)throw Error("id must be a number or a string")}});function ov(at,C,P){if(at!==null)for(var F,Q,_e,Be,ot,Sn,js,ka,Ud=0,Ng=0,N0=at.type,U0=N0==="FeatureCollection",Gv=N0==="Feature",Zv=U0?at.features.length:1,o1=0;Zv>o1;o1++){ot=(ka=!!(js=U0?at.features[o1].geometry:Gv?at.geometry:at)&&js.type==="GeometryCollection")?js.geometries.length:1;for(var qv=0;ot>qv;qv++){var Sv=0,ny=0;if((Be=ka?js.geometries[qv]:js)!==null){Sn=Be.coordinates;var Uy=Be.type;switch(Ud=!P||Uy!=="Polygon"&&Uy!=="MultiPolygon"?0:1,Uy){case null:break;case"Point":if(C(Sn,Ng,o1,Sv,ny)===!1)return!1;Ng++,Sv++;break;case"LineString":case"MultiPoint":for(F=0;Sn.length>F;F++){if(C(Sn[F],Ng,o1,Sv,ny)===!1)return!1;Ng++,Uy==="MultiPoint"&&Sv++}Uy==="LineString"&&Sv++;break;case"Polygon":case"MultiLineString":for(F=0;Sn.length>F;F++){for(Q=0;Sn[F].length-Ud>Q;Q++){if(C(Sn[F][Q],Ng,o1,Sv,ny)===!1)return!1;Ng++}Uy==="MultiLineString"&&Sv++,Uy==="Polygon"&&ny++}Uy==="Polygon"&&Sv++;break;case"MultiPolygon":for(F=0;Sn.length>F;F++){for(ny=0,Q=0;Sn[F].length>Q;Q++){for(_e=0;Sn[F][Q].length-Ud>_e;_e++){if(C(Sn[F][Q][_e],Ng,o1,Sv,ny)===!1)return!1;Ng++}ny++}Sv++}break;case"GeometryCollection":for(F=0;Be.geometries.length>F;F++)if(ov(Be.geometries[F],C,P)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function rv(at,C){var P;switch(at.type){case"FeatureCollection":for(P=0;at.features.length>P&&C(at.features[P].properties,P)!==!1;P++);break;case"Feature":C(at.properties,0)}}function yd(at,C){if(at.type==="Feature")C(at,0);else if(at.type==="FeatureCollection")for(var P=0;at.features.length>P&&C(at.features[P],P)!==!1;P++);}function kg(at){var C=[];return ov(at,function(P){C.push(P)}),C}function Vg(at,C){var P,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng=0,N0=at.type==="FeatureCollection",U0=at.type==="Feature",Gv=N0?at.features.length:1;for(P=0;Gv>P;P++){for(js=N0?at.features[P].properties:U0?at.properties:{},ka=N0?at.features[P].bbox:U0?at.bbox:void 0,Ud=N0?at.features[P].id:U0?at.id:void 0,Be=(Sn=!!(ot=N0?at.features[P].geometry:U0?at.geometry:at)&&ot.type==="GeometryCollection")?ot.geometries.length:1,Q=0;Be>Q;Q++)if((_e=Sn?ot.geometries[Q]:ot)!==null)switch(_e.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(C(_e,Ng,js,ka,Ud)===!1)return!1;break;case"GeometryCollection":for(F=0;_e.geometries.length>F;F++)if(C(_e.geometries[F],Ng,js,ka,Ud)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(C(null,Ng,js,ka,Ud)===!1)return!1;Ng++}}function wv(at,C,P){var F=P;return Vg(at,function(Q,_e,Be,ot,Sn){F=_e===0&&P===void 0?Q:C(F,Q,_e,Be,ot,Sn)}),F}function b1(at,C){Vg(at,function(P,F,Q,_e,Be){var ot,Sn=P===null?null:P.type;switch(Sn){case null:case"Point":case"LineString":case"Polygon":return C(M_(P,Q,{bbox:_e,id:Be}),F,0)!==!1&&void 0}switch(Sn){case"MultiPoint":ot="Point";break;case"MultiLineString":ot="LineString";break;case"MultiPolygon":ot="Polygon"}for(var js=0;P.coordinates.length>js;js++)if(C(M_({type:ot,coordinates:P.coordinates[js]},Q),F,js)===!1)return!1})}function I1(at,C){b1(at,function(P,F,Q){var _e=0;if(P.geometry){var Be=P.geometry.type;if(Be!=="Point"&&Be!=="MultiPoint"){var ot,Sn=0,js=0,ka=0;return ov(P,function(Ud,Ng,N0,U0,Gv){if(ot===void 0||F>Sn||U0>js||Gv>ka)return ot=Ud,Sn=F,js=U0,ka=Gv,void(_e=0);var Zv=Iv([ot,Ud],P.properties);if(C(Zv,F,Q,Gv,_e)===!1)return!1;_e++,ot=Ud})!==!1&&void 0}}})}function k1(at,C,P){var F=P,Q=!1;return I1(at,function(_e,Be,ot,Sn,js){F=Q===!1&&P===void 0?_e:C(F,_e,Be,ot,Sn,js),Q=!0}),F}function S1(at,C){if(!at)throw Error("geojson is required");b1(at,function(P,F,Q){if(P.geometry!==null){var _e=P.geometry.coordinates;switch(P.geometry.type){case"LineString":if(C(P,F,Q,0,0)===!1)return!1;break;case"Polygon":for(var Be=0;_e.length>Be;Be++)if(C(Iv(_e[Be],P.properties),F,Q,Be)===!1)return!1}}})}var Ay=Object.freeze({__proto__:null,coordAll:kg,coordEach:ov,coordReduce:function(at,C,P,F){var Q=P;return ov(at,function(_e,Be,ot,Sn,js){Q=Be===0&&P===void 0?_e:C(Q,_e,Be,ot,Sn,js)},F),Q},featureEach:yd,featureReduce:function(at,C,P){var F=P;return yd(at,function(Q,_e){F=_e===0&&P===void 0?Q:C(F,Q,_e)}),F},findPoint:function(at,C){if(!ax(C=C||{}))throw Error("options is invalid");var P,F=C.featureIndex||0,Q=C.multiFeatureIndex||0,_e=C.geometryIndex||0,Be=C.coordIndex||0,ot=C.properties;switch(at.type){case"FeatureCollection":0>F&&(F=at.features.length+F),ot=ot||at.features[F].properties,P=at.features[F].geometry;break;case"Feature":ot=ot||at.properties,P=at.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":P=at;break;default:throw Error("geojson is invalid")}if(P===null)return null;var Sn=P.coordinates;switch(P.type){case"Point":return h1(Sn,ot,C);case"MultiPoint":return 0>Q&&(Q=Sn.length+Q),h1(Sn[Q],ot,C);case"LineString":return 0>Be&&(Be=Sn.length+Be),h1(Sn[Be],ot,C);case"Polygon":return 0>_e&&(_e=Sn.length+_e),0>Be&&(Be=Sn[_e].length+Be),h1(Sn[_e][Be],ot,C);case"MultiLineString":return 0>Q&&(Q=Sn.length+Q),0>Be&&(Be=Sn[Q].length+Be),h1(Sn[Q][Be],ot,C);case"MultiPolygon":return 0>Q&&(Q=Sn.length+Q),0>_e&&(_e=Sn[Q].length+_e),0>Be&&(Be=Sn[Q][_e].length-Be),h1(Sn[Q][_e][Be],ot,C)}throw Error("geojson is invalid")},findSegment:function(at,C){if(!ax(C=C||{}))throw Error("options is invalid");var P,F=C.featureIndex||0,Q=C.multiFeatureIndex||0,_e=C.geometryIndex||0,Be=C.segmentIndex||0,ot=C.properties;switch(at.type){case"FeatureCollection":0>F&&(F=at.features.length+F),ot=ot||at.features[F].properties,P=at.features[F].geometry;break;case"Feature":ot=ot||at.properties,P=at.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":P=at;break;default:throw Error("geojson is invalid")}if(P===null)return null;var Sn=P.coordinates;switch(P.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>Be&&(Be=Sn.length+Be-1),Iv([Sn[Be],Sn[Be+1]],ot,C);case"Polygon":return 0>_e&&(_e=Sn.length+_e),0>Be&&(Be=Sn[_e].length+Be-1),Iv([Sn[_e][Be],Sn[_e][Be+1]],ot,C);case"MultiLineString":return 0>Q&&(Q=Sn.length+Q),0>Be&&(Be=Sn[Q].length+Be-1),Iv([Sn[Q][Be],Sn[Q][Be+1]],ot,C);case"MultiPolygon":return 0>Q&&(Q=Sn.length+Q),0>_e&&(_e=Sn[Q].length+_e),0>Be&&(Be=Sn[Q][_e].length-Be-1),Iv([Sn[Q][_e][Be],Sn[Q][_e][Be+1]],ot,C)}throw Error("geojson is invalid")},flattenEach:b1,flattenReduce:function(at,C,P){var F=P;return b1(at,function(Q,_e,Be){F=_e===0&&Be===0&&P===void 0?Q:C(F,Q,_e,Be)}),F},geomEach:Vg,geomReduce:wv,lineEach:S1,lineReduce:function(at,C,P){var F=P;return S1(at,function(Q,_e,Be,ot){F=_e===0&&P===void 0?Q:C(F,Q,_e,Be,ot)}),F},propEach:rv,propReduce:function(at,C,P){var F=P;return rv(at,function(Q,_e){F=_e===0&&P===void 0?Q:C(F,Q,_e)}),F},segmentEach:I1,segmentReduce:k1});function U1(at){var C=[1/0,1/0,-1/0,-1/0];return ov(at,function(P){C[0]>P[0]&&(C[0]=P[0]),C[1]>P[1]&&(C[1]=P[1]),P[0]>C[2]&&(C[2]=P[0]),P[1]>C[3]&&(C[3]=P[1])}),C}U1.default=U1;var E_=Object.freeze({__proto__:null,default:U1});function ty(at){if(!at)throw Error("coord is required");if(!Array.isArray(at)){if(at.type==="Feature"&&at.geometry!==null&&at.geometry.type==="Point")return at.geometry.coordinates;if(at.type==="Point")return at.coordinates}if(Array.isArray(at)&&at.length>=2&&!Array.isArray(at[0])&&!Array.isArray(at[1]))return at;throw Error("coord must be GeoJSON Point or an Array of numbers")}function h_(at){if(Array.isArray(at))return at;if(at.type==="Feature"){if(at.geometry!==null)return at.geometry.coordinates}else if(at.coordinates)return at.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function g_(at){return at.type==="Feature"?at.geometry:at}function ox(at,C){return at.type==="FeatureCollection"?"FeatureCollection":at.type==="GeometryCollection"?"GeometryCollection":at.type==="Feature"&&at.geometry!==null?at.geometry.type:at.type}function $_(at,C,P,F,Q){K_(at,C,P||0,F||at.length-1,Q||A_)}function K_(at,C,P,F,Q){for(;F>P;){if(F-P>600){var _e=F-P+1,Be=C-P+1,ot=Math.log(_e),Sn=.5*Math.exp(2*ot/3),js=.5*Math.sqrt(ot*Sn*(_e-Sn)/_e)*(0>Be-_e/2?-1:1);K_(at,C,Math.max(P,Math.floor(C-Be*Sn/_e+js)),Math.min(F,Math.floor(C+(_e-Be)*Sn/_e+js)),Q)}var ka=at[C],Ud=P,Ng=F;for(k_(at,P,C),Q(at[F],ka)>0&&k_(at,P,F);Ng>Ud;){for(k_(at,Ud,Ng),Ud++,Ng--;0>Q(at[Ud],ka);)Ud++;for(;Q(at[Ng],ka)>0;)Ng--}Q(at[P],ka)===0?k_(at,P,Ng):k_(at,++Ng,F),Ng>C||(P=Ng+1),C>Ng||(F=Ng-1)}}function k_(at,C,P){var F=at[C];at[C]=at[P],at[P]=F}function A_(at,C){return C>at?-1:at>C?1:0}function gx(at,C,P){if(!P)return C.indexOf(at);for(let F=0;C.length>F;F++)if(P(at,C[F]))return F;return-1}function Na(at,C){_x(at,0,at.children.length,C,at)}function _x(at,C,P,F,Q){Q||(Q=Aw(null)),Q.minX=1/0,Q.minY=1/0,Q.maxX=-1/0,Q.maxY=-1/0;for(let _e=C;P>_e;_e++){const Be=at.children[_e];c2(Q,at.leaf?F(Be):Be)}return Q}function c2(at,C){return at.minX=Math.min(at.minX,C.minX),at.minY=Math.min(at.minY,C.minY),at.maxX=Math.max(at.maxX,C.maxX),at.maxY=Math.max(at.maxY,C.maxY),at}function b2(at,C){return at.minX-C.minX}function N2(at,C){return at.minY-C.minY}function j2(at){return(at.maxX-at.minX)*(at.maxY-at.minY)}function mC(at){return at.maxX-at.minX+(at.maxY-at.minY)}function XC(at,C){const P=Math.max(at.minX,C.minX),F=Math.max(at.minY,C.minY),Q=Math.min(at.maxX,C.maxX),_e=Math.min(at.maxY,C.maxY);return Math.max(0,Q-P)*Math.max(0,_e-F)}function EC(at,C){return!(at.minX>C.minX||at.minY>C.minY||C.maxX>at.maxX||C.maxY>at.maxY)}function Pw(at,C){return!(C.minX>at.maxX||C.minY>at.maxY||at.minX>C.maxX||at.minY>C.maxY)}function Aw(at){return{children:at,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function KC(at,C,P,F,Q){const _e=[C,P];for(;_e.length;){if(F>=(P=_e.pop())-(C=_e.pop()))continue;const Be=C+Math.ceil((P-C)/F/2)*F;$_(at,Be,C,P,Q),_e.push(C,Be,Be,P)}}var JS=Object.freeze({__proto__:null,default:class{constructor(at=9){this._maxEntries=Math.max(4,at),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(at){let C=this.data;const P=[];if(!Pw(at,C))return P;const F=this.toBBox,Q=[];for(;C;){for(let _e=0;C.children.length>_e;_e++){const Be=C.children[_e],ot=C.leaf?F(Be):Be;Pw(at,ot)&&(C.leaf?P.push(Be):EC(at,ot)?this._all(Be,P):Q.push(Be))}C=Q.pop()}return P}collides(at){let C=this.data;if(!Pw(at,C))return!1;const P=[];for(;C;){for(let F=0;C.children.length>F;F++){const Q=C.children[F],_e=C.leaf?this.toBBox(Q):Q;if(Pw(at,_e)){if(C.leaf||EC(at,_e))return!0;P.push(Q)}}C=P.pop()}return!1}load(at){if(!at||!at.length)return this;if(this._minEntries>at.length){for(let P=0;at.length>P;P++)this.insert(at[P]);return this}let C=this._build(at.slice(),0,at.length-1,0);if(this.data.children.length)if(this.data.height===C.height)this._splitRoot(this.data,C);else{if(C.height>this.data.height){const P=this.data;this.data=C,C=P}this._insert(C,this.data.height-C.height-1,!0)}else this.data=C;return this}insert(at){return at&&this._insert(at,this.data.height-1),this}clear(){return this.data=Aw([]),this}remove(at,C){if(!at)return this;let P=this.data;const F=this.toBBox(at),Q=[],_e=[];let Be,ot,Sn;for(;P||Q.length;){if(P||(P=Q.pop(),ot=Q[Q.length-1],Be=_e.pop(),Sn=!0),P.leaf){const js=gx(at,P.children,C);if(js!==-1)return P.children.splice(js,1),Q.push(P),this._condense(Q),this}Sn||P.leaf||!EC(P,F)?ot?(Be++,P=ot.children[Be],Sn=!1):P=null:(Q.push(P),_e.push(Be),Be=0,ot=P,P=P.children[0])}return this}toBBox(at){return at}compareMinX(at,C){return at.minX-C.minX}compareMinY(at,C){return at.minY-C.minY}toJSON(){return this.data}fromJSON(at){return this.data=at,this}_all(at,C){const P=[];for(;at;)at.leaf?C.push(...at.children):P.push(...at.children),at=P.pop();return C}_build(at,C,P,F){const Q=P-C+1;let _e,Be=this._maxEntries;if(Be>=Q)return _e=Aw(at.slice(C,P+1)),Na(_e,this.toBBox),_e;F||(Be=Math.ceil(Q/Math.pow(Be,(F=Math.ceil(Math.log(Q)/Math.log(Be)))-1))),_e=Aw([]),_e.leaf=!1,_e.height=F;const ot=Math.ceil(Q/Be),Sn=ot*Math.ceil(Math.sqrt(Be));KC(at,C,P,Sn,this.compareMinX);for(let js=C;P>=js;js+=Sn){const ka=Math.min(js+Sn-1,P);KC(at,js,ka,ot,this.compareMinY);for(let Ud=js;ka>=Ud;Ud+=ot)_e.children.push(this._build(at,Ud,Math.min(Ud+ot-1,ka),F-1))}return Na(_e,this.toBBox),_e}_chooseSubtree(at,C,P,F){for(;F.push(C),!C.leaf&&F.length-1!==P;){let Be,ot=1/0,Sn=1/0;for(let js=0;C.children.length>js;js++){const ka=C.children[js],Ud=j2(ka),Ng=(Math.max((_e=ka).maxX,(Q=at).maxX)-Math.min(_e.minX,Q.minX))*(Math.max(_e.maxY,Q.maxY)-Math.min(_e.minY,Q.minY))-Ud;Sn>Ng?(Sn=Ng,ot=ot>Ud?Ud:ot,Be=ka):Ng===Sn&&ot>Ud&&(ot=Ud,Be=ka)}C=Be||C.children[0]}var Q,_e;return C}_insert(at,C,P){const F=P?at:this.toBBox(at),Q=[],_e=this._chooseSubtree(F,this.data,C,Q);for(_e.children.push(at),c2(_e,F);C>=0&&Q[C].children.length>this._maxEntries;)this._split(Q,C),C--;this._adjustParentBBoxes(F,Q,C)}_split(at,C){const P=at[C],F=P.children.length,Q=this._minEntries;this._chooseSplitAxis(P,Q,F);const _e=this._chooseSplitIndex(P,Q,F),Be=Aw(P.children.splice(_e,P.children.length-_e));Be.height=P.height,Be.leaf=P.leaf,Na(P,this.toBBox),Na(Be,this.toBBox),C?at[C-1].children.push(Be):this._splitRoot(P,Be)}_splitRoot(at,C){this.data=Aw([at,C]),this.data.height=at.height+1,this.data.leaf=!1,Na(this.data,this.toBBox)}_chooseSplitIndex(at,C,P){let F,Q=1/0,_e=1/0;for(let Be=C;P-C>=Be;Be++){const ot=_x(at,0,Be,this.toBBox),Sn=_x(at,Be,P,this.toBBox),js=XC(ot,Sn),ka=j2(ot)+j2(Sn);Q>js?(Q=js,F=Be,_e=_e>ka?ka:_e):js===Q&&_e>ka&&(_e=ka,F=Be)}return F||P-C}_chooseSplitAxis(at,C,P){const F=at.leaf?this.compareMinX:b2,Q=at.leaf?this.compareMinY:N2,_e=this._allDistMargin(at,C,P,F);this._allDistMargin(at,C,P,Q)>_e&&at.children.sort(F)}_allDistMargin(at,C,P,F){at.children.sort(F);const Q=this.toBBox,_e=_x(at,0,C,Q),Be=_x(at,P-C,P,Q);let ot=mC(_e)+mC(Be);for(let Sn=C;P-C>Sn;Sn++){const js=at.children[Sn];c2(_e,at.leaf?Q(js):js),ot+=mC(_e)}for(let Sn=P-C-1;Sn>=C;Sn--){const js=at.children[Sn];c2(Be,at.leaf?Q(js):js),ot+=mC(Be)}return ot}_adjustParentBBoxes(at,C,P){for(let F=P;F>=0;F--)c2(C[F],at)}_condense(at){for(let C,P=at.length-1;P>=0;P--)at[P].children.length===0?P>0?(C=at[P-1].children,C.splice(C.indexOf(at[P]),1)):this.clear():Na(at[P],this.toBBox)}}});function sS(at,C){return C>at?-1:at>C?1:0}var UC=Object.freeze({__proto__:null,default:class{constructor(at=[],C=sS){if(this.data=at,this.length=this.data.length,this.compare=C,this.length>0)for(let P=(this.length>>1)-1;P>=0;P--)this._down(P)}push(at){this.data.push(at),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const at=this.data[0],C=this.data.pop();return this.length--,this.length>0&&(this.data[0]=C,this._down(0)),at}peek(){return this.data[0]}_up(at){const{data:C,compare:P}=this,F=C[at];for(;at>0;){const Q=at-1>>1,_e=C[Q];if(P(F,_e)>=0)break;C[at]=_e,at=Q}C[at]=F}_down(at){const{data:C,compare:P}=this,F=this.length>>1,Q=C[at];for(;F>at;){let _e=1+(at<<1),Be=C[_e];const ot=_e+1;if(this.length>ot&&0>P(C[ot],Be)&&(_e=ot,Be=C[ot]),P(Be,Q)>=0)break;C[at]=Be,at=_e}C[at]=Q}}}),FS=function(at,C,P,F){var Q=at[0],_e=at[1],Be=!1;P===void 0&&(P=0),F===void 0&&(F=C.length);for(var ot=(F-P)/2,Sn=0,js=ot-1;ot>Sn;js=Sn++){var ka=C[P+2*Sn+0],Ud=C[P+2*Sn+1],Ng=C[P+2*js+1];Ud>_e!=Ng>_e&&(C[P+2*js+0]-ka)*(_e-Ud)/(Ng-Ud)+ka>Q&&(Be=!Be)}return Be},KS=function(at,C,P,F){var Q=at[0],_e=at[1],Be=!1;P===void 0&&(P=0),F===void 0&&(F=C.length);for(var ot=F-P,Sn=0,js=ot-1;ot>Sn;js=Sn++){var ka=C[Sn+P][0],Ud=C[Sn+P][1],Ng=C[js+P][1];Ud>_e!=Ng>_e&&(C[js+P][0]-ka)*(_e-Ud)/(Ng-Ud)+ka>Q&&(Be=!Be)}return Be},VC=function(at,C,P,F){return C.length>0&&Array.isArray(C[0])?KS(at,C,P,F):FS(at,C,P,F)},vE=FS;VC.nested=KS,VC.flat=vE;var T1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof l.g!="undefined"?l.g:typeof self!="undefined"?self:{};function ky(at,C,P){return at(P={path:C,exports:{},require:function(F,Q){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},P.exports),P.exports}function $y(at){if(at.__esModule)return at;var C=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(at).forEach(function(P){var F=Object.getOwnPropertyDescriptor(at,P);Object.defineProperty(C,P,F.get?F:{enumerable:!0,get:function(){return at[P]}})}),C}var l_=ky(function(at,C){(function(P){const Q=33306690738754706e-32;function _e(Gv,Zv,o1,qv,Sv){let ny,Uy,w_,px,$x=Zv[0],Ix=qv[0],cw=0,Sx=0;Ix>$x==Ix>-$x?(ny=$x,$x=Zv[++cw]):(ny=Ix,Ix=qv[++Sx]);let W2=0;if(Gv>cw&&o1>Sx)for(Ix>$x==Ix>-$x?(w_=ny-((Uy=$x+ny)-$x),$x=Zv[++cw]):(w_=ny-((Uy=Ix+ny)-Ix),Ix=qv[++Sx]),ny=Uy,w_!==0&&(Sv[W2++]=w_);Gv>cw&&o1>Sx;)Ix>$x==Ix>-$x?(w_=ny-((Uy=ny+$x)-(px=Uy-ny))+($x-px),$x=Zv[++cw]):(w_=ny-((Uy=ny+Ix)-(px=Uy-ny))+(Ix-px),Ix=qv[++Sx]),ny=Uy,w_!==0&&(Sv[W2++]=w_);for(;Gv>cw;)w_=ny-((Uy=ny+$x)-(px=Uy-ny))+($x-px),$x=Zv[++cw],ny=Uy,w_!==0&&(Sv[W2++]=w_);for(;o1>Sx;)w_=ny-((Uy=ny+Ix)-(px=Uy-ny))+(Ix-px),Ix=qv[++Sx],ny=Uy,w_!==0&&(Sv[W2++]=w_);return ny===0&&W2!==0||(Sv[W2++]=ny),W2}function Be(Gv){return new Float64Array(Gv)}const ot=33306690738754716e-32,Sn=22204460492503146e-32,js=11093356479670487e-47,ka=Be(4),Ud=Be(8),Ng=Be(12),N0=Be(16),U0=Be(4);P.orient2d=function(Gv,Zv,o1,qv,Sv,ny){const Uy=(Zv-ny)*(o1-Sv),w_=(Gv-Sv)*(qv-ny),px=Uy-w_;if(Uy===0||w_===0||Uy>0!=w_>0)return px;const $x=Math.abs(Uy+w_);return ot*$x>Math.abs(px)?-function(Ix,cw,Sx,W2,gu,bg,i0){let S0,Tv,cy,Gy,q1,i_,ex,W1,A2,CC,Gw,Iw,bC,CE,$E,nS,cS,g1;const z_=Ix-gu,hS=Sx-gu,NC=cw-bg,WS=W2-bg;q1=($E=(W1=z_-(ex=(i_=134217729*z_)-(i_-z_)))*(CC=WS-(A2=(i_=134217729*WS)-(i_-WS)))-((CE=z_*WS)-ex*A2-W1*A2-ex*CC))-(Gw=$E-(cS=(W1=NC-(ex=(i_=134217729*NC)-(i_-NC)))*(CC=hS-(A2=(i_=134217729*hS)-(i_-hS)))-((nS=NC*hS)-ex*A2-W1*A2-ex*CC))),ka[0]=$E-(Gw+q1)+(q1-cS),q1=(bC=CE-((Iw=CE+Gw)-(q1=Iw-CE))+(Gw-q1))-(Gw=bC-nS),ka[1]=bC-(Gw+q1)+(q1-nS),q1=(g1=Iw+Gw)-Iw,ka[2]=Iw-(g1-q1)+(Gw-q1),ka[3]=g1;let MT=function(eS,DE){let ne=DE[0];for(let H=1;eS>H;H++)ne+=DE[H];return ne}(4,ka),zS=Sn*i0;if(MT>=zS||-MT>=zS||(S0=Ix-(z_+(q1=Ix-z_))+(q1-gu),cy=Sx-(hS+(q1=Sx-hS))+(q1-gu),Tv=cw-(NC+(q1=cw-NC))+(q1-bg),Gy=W2-(WS+(q1=W2-WS))+(q1-bg),S0===0&&Tv===0&&cy===0&&Gy===0)||(zS=js*i0+Q*Math.abs(MT),(MT+=z_*Gy+WS*S0-(NC*cy+hS*Tv))>=zS||-MT>=zS))return MT;q1=($E=(W1=S0-(ex=(i_=134217729*S0)-(i_-S0)))*(CC=WS-(A2=(i_=134217729*WS)-(i_-WS)))-((CE=S0*WS)-ex*A2-W1*A2-ex*CC))-(Gw=$E-(cS=(W1=Tv-(ex=(i_=134217729*Tv)-(i_-Tv)))*(CC=hS-(A2=(i_=134217729*hS)-(i_-hS)))-((nS=Tv*hS)-ex*A2-W1*A2-ex*CC))),U0[0]=$E-(Gw+q1)+(q1-cS),q1=(bC=CE-((Iw=CE+Gw)-(q1=Iw-CE))+(Gw-q1))-(Gw=bC-nS),U0[1]=bC-(Gw+q1)+(q1-nS),q1=(g1=Iw+Gw)-Iw,U0[2]=Iw-(g1-q1)+(Gw-q1),U0[3]=g1;const Zb=_e(4,ka,4,U0,Ud);q1=($E=(W1=z_-(ex=(i_=134217729*z_)-(i_-z_)))*(CC=Gy-(A2=(i_=134217729*Gy)-(i_-Gy)))-((CE=z_*Gy)-ex*A2-W1*A2-ex*CC))-(Gw=$E-(cS=(W1=NC-(ex=(i_=134217729*NC)-(i_-NC)))*(CC=cy-(A2=(i_=134217729*cy)-(i_-cy)))-((nS=NC*cy)-ex*A2-W1*A2-ex*CC))),U0[0]=$E-(Gw+q1)+(q1-cS),q1=(bC=CE-((Iw=CE+Gw)-(q1=Iw-CE))+(Gw-q1))-(Gw=bC-nS),U0[1]=bC-(Gw+q1)+(q1-nS),q1=(g1=Iw+Gw)-Iw,U0[2]=Iw-(g1-q1)+(Gw-q1),U0[3]=g1;const $w=_e(Zb,Ud,4,U0,Ng);q1=($E=(W1=S0-(ex=(i_=134217729*S0)-(i_-S0)))*(CC=Gy-(A2=(i_=134217729*Gy)-(i_-Gy)))-((CE=S0*Gy)-ex*A2-W1*A2-ex*CC))-(Gw=$E-(cS=(W1=Tv-(ex=(i_=134217729*Tv)-(i_-Tv)))*(CC=cy-(A2=(i_=134217729*cy)-(i_-cy)))-((nS=Tv*cy)-ex*A2-W1*A2-ex*CC))),U0[0]=$E-(Gw+q1)+(q1-cS),q1=(bC=CE-((Iw=CE+Gw)-(q1=Iw-CE))+(Gw-q1))-(Gw=bC-nS),U0[1]=bC-(Gw+q1)+(q1-nS),q1=(g1=Iw+Gw)-Iw,U0[2]=Iw-(g1-q1)+(Gw-q1),U0[3]=g1;const mS=_e($w,Ng,4,U0,N0);return N0[mS-1]}(Gv,Zv,o1,qv,Sv,ny,$x):px},P.orient2dfast=function(Gv,Zv,o1,qv,Sv,ny){return(Zv-ny)*(o1-Sv)-(Gv-Sv)*(qv-ny)},Object.defineProperty(P,"__esModule",{value:!0})})(C)}),cx=$y(JS),Cx=$y(UC),P2=l_.orient2d;Cx.default&&(Cx=Cx.default);var i2=tx;function tx(at,C,P){C=Math.max(0,C===void 0?2:C),P=P||0;var F=function(qv){for(var Sv=qv[0],ny=qv[0],Uy=qv[0],w_=qv[0],px=0;qv.length>px;px++){var $x=qv[px];Sv[0]>$x[0]&&(Sv=$x),$x[0]>Uy[0]&&(Uy=$x),ny[1]>$x[1]&&(ny=$x),$x[1]>w_[1]&&(w_=$x)}var Ix=[Sv,ny,Uy,w_],cw=Ix.slice();for(px=0;qv.length>px;px++)VC(qv[px],Ix)||cw.push(qv[px]);return function(Sx){Sx.sort(Ny);for(var W2=[],gu=0;Sx.length>gu;gu++){for(;W2.length>=2&&0>=vC(W2[W2.length-2],W2[W2.length-1],Sx[gu]);)W2.pop();W2.push(Sx[gu])}for(var bg=[],i0=Sx.length-1;i0>=0;i0--){for(;bg.length>=2&&0>=vC(bg[bg.length-2],bg[bg.length-1],Sx[i0]);)bg.pop();bg.push(Sx[i0])}return bg.pop(),W2.pop(),W2.concat(bg)}(cw)}(at),Q=new cx(16);Q.toBBox=function(qv){return{minX:qv[0],minY:qv[1],maxX:qv[0],maxY:qv[1]}},Q.compareMinX=function(qv,Sv){return qv[0]-Sv[0]},Q.compareMinY=function(qv,Sv){return qv[1]-Sv[1]},Q.load(at);for(var _e,Be=[],ot=0;F.length>ot;ot++){var Sn=F[ot];Q.remove(Sn),_e=U2(Sn,_e),Be.push(_e)}var js=new cx(16);for(ot=0;Be.length>ot;ot++)js.insert(Fw(Be[ot]));for(var ka=C*C,Ud=P*P;Be.length;){var Ng=Be.shift(),N0=Ng.p,U0=Ng.next.p,Gv=Tw(N0,U0);if(Gv>=Ud){var Zv=Gv/ka;(Sn=z2(Q,Ng.prev.p,N0,U0,Ng.next.next.p,Zv,js))&&Math.min(Tw(Sn,N0),Tw(Sn,U0))<=Zv&&(Be.push(Ng),Be.push(U2(Sn,Ng)),Q.remove(Sn),js.remove(Ng),js.insert(Fw(Ng)),js.insert(Fw(Ng.next)))}}Ng=_e;var o1=[];do o1.push(Ng.p),Ng=Ng.next;while(Ng!==_e);return o1.push(Ng.p),o1}function z2(at,C,P,F,Q,_e,Be){for(var ot=new Cx([],L2),Sn=at.data;Sn;){for(var js=0;Sn.children.length>js;js++){var ka=Sn.children[js],Ud=Sn.leaf?q_(ka,P,F):jw(P,F,ka);_eNg.dist&&Gv>Ng.dist&&gw(P,N0,Be)&&gw(F,N0,Be))return N0}(Sn=ot.pop())&&(Sn=Sn.node)}return null}function L2(at,C){return at.dist-C.dist}function jw(at,C,P){if(w2(at,P)||w2(C,P))return 0;var F=Kw(at[0],at[1],C[0],C[1],P.minX,P.minY,P.maxX,P.minY);if(F===0)return 0;var Q=Kw(at[0],at[1],C[0],C[1],P.minX,P.minY,P.minX,P.maxY);if(Q===0)return 0;var _e=Kw(at[0],at[1],C[0],C[1],P.maxX,P.minY,P.maxX,P.maxY);if(_e===0)return 0;var Be=Kw(at[0],at[1],C[0],C[1],P.minX,P.maxY,P.maxX,P.maxY);return Be===0?0:Math.min(F,Q,_e,Be)}function w2(at,C){return!(C.minX>at[0]||at[0]>C.maxX||C.minY>at[1]||at[1]>C.maxY)}function gw(at,C,P){for(var F,Q,_e,Be,ot=P.search({minX:Math.min(at[0],C[0]),minY:Math.min(at[1],C[1]),maxX:Math.max(at[0],C[0]),maxY:Math.max(at[1],C[1])}),Sn=0;ot.length>Sn;Sn++)if(Q=ot[Sn].next.p,_e=at,(F=ot[Sn].p)!==(Be=C)&&Q!==_e&&vC(F,Q,_e)>0!=vC(F,Q,Be)>0&&vC(_e,Be,F)>0!=vC(_e,Be,Q)>0)return!1;return!0}function vC(at,C,P){return P2(at[0],at[1],C[0],C[1],P[0],P[1])}function Fw(at){var C=at.p,P=at.next.p;return at.minX=Math.min(C[0],P[0]),at.minY=Math.min(C[1],P[1]),at.maxX=Math.max(C[0],P[0]),at.maxY=Math.max(C[1],P[1]),at}function U2(at,C){var P={p:at,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return C?(P.next=C.next,P.prev=C,C.next.prev=P,C.next=P):(P.prev=P,P.next=P),P}function Tw(at,C){var P=at[0]-C[0],F=at[1]-C[1];return P*P+F*F}function q_(at,C,P){var F=C[0],Q=C[1],_e=P[0]-F,Be=P[1]-Q;if(_e!==0||Be!==0){var ot=((at[0]-F)*_e+(at[1]-Q)*Be)/(_e*_e+Be*Be);ot>1?(F=P[0],Q=P[1]):ot>0&&(F+=_e*ot,Q+=Be*ot)}return(_e=at[0]-F)*_e+(Be=at[1]-Q)*Be}function Kw(at,C,P,F,Q,_e,Be,ot){var Sn,js,ka,Ud,Ng=P-at,N0=F-C,U0=Be-Q,Gv=ot-_e,Zv=at-Q,o1=C-_e,qv=Ng*Ng+N0*N0,Sv=Ng*U0+N0*Gv,ny=U0*U0+Gv*Gv,Uy=Ng*Zv+N0*o1,w_=U0*Zv+Gv*o1,px=qv*ny-Sv*Sv,$x=px,Ix=px;px===0?(js=0,$x=1,Ud=w_,Ix=ny):(Ud=qv*w_-Sv*Uy,0>(js=Sv*w_-ny*Uy)?(js=0,Ud=w_,Ix=ny):js>$x&&(js=$x,Ud=w_+Sv,Ix=ny)),0>Ud?(Ud=0,0>-Uy?js=0:-Uy>qv?js=$x:(js=-Uy,$x=qv)):Ud>Ix&&(Ud=Ix,0>-Uy+Sv?js=0:-Uy+Sv>qv?js=$x:(js=-Uy+Sv,$x=qv));var cw=(1-(ka=Ud===0?0:Ud/Ix))*Q+ka*Be-((1-(Sn=js===0?0:js/$x))*at+Sn*P),Sx=(1-ka)*_e+ka*ot-((1-Sn)*C+Sn*F);return cw*cw+Sx*Sx}function Ny(at,C){return at[0]===C[0]?at[1]-C[1]:at[0]-C[0]}function dx(at,C,P){P===void 0&&(P={});var F=ty(at),Q=ty(C),_e=D2(Q[1]-F[1]),Be=D2(Q[0]-F[0]),ot=D2(F[1]),Sn=D2(Q[1]),js=Math.pow(Math.sin(_e/2),2)+Math.pow(Math.sin(Be/2),2)*Math.cos(ot)*Math.cos(Sn);return Kx(2*Math.atan2(Math.sqrt(js),Math.sqrt(1-js)),P.units)}function bw(at){return function(C,P){P===void 0&&(P={});var F=Number(C[0]),Q=Number(C[1]),_e=Number(C[2]),Be=Number(C[3]);if(C.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var ot=[F,Q];return _v([[ot,[_e,Q],[_e,Be],[F,Be],ot]],P.properties,{bbox:C,id:P.id})}(U1(at))}function Ow(at,C,P,F){F===void 0&&(F={});var Q=ty(at),_e=D2(Q[0]),Be=D2(Q[1]),ot=D2(P),Sn=t2(C,F.units),js=Math.asin(Math.sin(Be)*Math.cos(Sn)+Math.cos(Be)*Math.sin(Sn)*Math.cos(ot));return h1([I2(_e+Math.atan2(Math.sin(ot)*Math.sin(Sn)*Math.cos(Be),Math.cos(Sn)-Math.sin(Be)*Math.sin(js))),I2(js)],F.properties)}function j1(at,C,P){if(P===void 0&&(P={}),P.final===!0)return function(js,ka){var Ud=j1(ka,js);return Ud=(Ud+180)%360}(at,C);var F=ty(at),Q=ty(C),_e=D2(F[0]),Be=D2(Q[0]),ot=D2(F[1]),Sn=D2(Q[1]);return I2(Math.atan2(Math.sin(Be-_e)*Math.cos(Sn),Math.cos(ot)*Math.sin(Sn)-Math.sin(ot)*Math.cos(Sn)*Math.cos(Be-_e)))}function Px(at,C){C===void 0&&(C={});var P=U1(at);return h1([(P[0]+P[2])/2,(P[1]+P[3])/2],C.properties,C)}function Z_(at,C){C===void 0&&(C={});var P=0,F=0,Q=0;return ov(at,function(_e){P+=_e[0],F+=_e[1],Q++},!0),h1([P/Q,F/Q],C.properties)}function Vx(at,C){switch(C===void 0&&(C={}),ox(at)){case"Point":return h1(ty(at),C.properties);case"Polygon":var P=[];ov(at,function(Sv){P.push(Sv)});var F,Q,_e,Be,ot,Sn,js,ka,Ud=Z_(at,{properties:C.properties}),Ng=Ud.geometry.coordinates,N0=0,U0=0,Gv=0,Zv=P.map(function(Sv){return[Sv[0]-Ng[0],Sv[1]-Ng[1]]});for(F=0;P.length-1>F;F++)Gv+=ka=(Be=(Q=Zv[F])[0])*(js=(_e=Zv[F+1])[1])-(ot=_e[0])*(Sn=Q[1]),N0+=(Be+ot)*ka,U0+=(Sn+js)*ka;if(Gv===0)return Ud;var o1=1/(6*(.5*Gv));return h1([Ng[0]+o1*N0,Ng[1]+o1*U0],C.properties);default:var qv=function(Sv,ny){ny===void 0&&(ny={}),ny.concavity=ny.concavity||1/0;var Uy=[];if(ov(Sv,function(px){Uy.push([px[0],px[1]])}),!Uy.length)return null;var w_=i2(Uy,ny.concavity);return w_.length>3?_v([w_]):null}(at);return qv?Vx(qv,{properties:C.properties}):Z_(at,{properties:C.properties})}}function kx(at){if(!at)throw Error("geojson is required");var C=[];return b1(at,function(P){(function(F,Q){var _e=[],Be=F.geometry;if(Be!==null){switch(Be.type){case"Polygon":_e=h_(Be);break;case"LineString":_e=[h_(Be)]}_e.forEach(function(ot){var Sn=function(js,ka){var Ud=[];return js.reduce(function(Ng,N0){var U0,Gv,Zv,o1,qv,Sv,ny=Iv([Ng,N0],ka);return ny.bbox=[(qv=(Gv=N0)[0])>(Zv=(U0=Ng)[0])?Zv:qv,(Sv=Gv[1])>(o1=U0[1])?o1:Sv,Zv>qv?Zv:qv,o1>Sv?o1:Sv],Ud.push(ny),N0}),Ud}(ot,F.properties);Sn.forEach(function(js){js.id=Q.length,Q.push(js)})})}})(P,C)}),Ov(C)}i2.default=tx;function C2(at,C,P){if(!P)return C.indexOf(at);for(let F=0;C.length>F;F++)if(P(at,C[F]))return F;return-1}function q2(at,C){lw(at,0,at.children.length,C,at)}function lw(at,C,P,F,Q){Q||(Q=VS(null)),Q.minX=1/0,Q.minY=1/0,Q.maxX=-1/0,Q.maxY=-1/0;for(let _e=C;P>_e;_e++){const Be=at.children[_e];eC(Q,at.leaf?F(Be):Be)}return Q}function eC(at,C){return at.minX=Math.min(at.minX,C.minX),at.minY=Math.min(at.minY,C.minY),at.maxX=Math.max(at.maxX,C.maxX),at.maxY=Math.max(at.maxY,C.maxY),at}function zC(at,C){return at.minX-C.minX}function dC(at,C){return at.minY-C.minY}function YC(at){return(at.maxX-at.minX)*(at.maxY-at.minY)}function qC(at){return at.maxX-at.minX+(at.maxY-at.minY)}function bS(at,C){const P=Math.max(at.minX,C.minX),F=Math.max(at.minY,C.minY),Q=Math.min(at.maxX,C.maxX),_e=Math.min(at.maxY,C.maxY);return Math.max(0,Q-P)*Math.max(0,_e-F)}function tC(at,C){return!(at.minX>C.minX||at.minY>C.minY||C.maxX>at.maxX||C.maxY>at.maxY)}function zw(at,C){return!(C.minX>at.maxX||C.minY>at.maxY||at.minX>C.maxX||at.minY>C.maxY)}function VS(at){return{children:at,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function YS(at,C,P,F,Q){const _e=[C,P];for(;_e.length;){if(F>=(P=_e.pop())-(C=_e.pop()))continue;const Be=C+Math.ceil((P-C)/F/2)*F;$_(at,Be,C,P,Q),_e.push(C,Be,Be,P)}}var G2=Object.freeze({__proto__:null,default:class{constructor(at=9){this._maxEntries=Math.max(4,at),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(at){let C=this.data;const P=[];if(!zw(at,C))return P;const F=this.toBBox,Q=[];for(;C;){for(let _e=0;C.children.length>_e;_e++){const Be=C.children[_e],ot=C.leaf?F(Be):Be;zw(at,ot)&&(C.leaf?P.push(Be):tC(at,ot)?this._all(Be,P):Q.push(Be))}C=Q.pop()}return P}collides(at){let C=this.data;if(!zw(at,C))return!1;const P=[];for(;C;){for(let F=0;C.children.length>F;F++){const Q=C.children[F],_e=C.leaf?this.toBBox(Q):Q;if(zw(at,_e)){if(C.leaf||tC(at,_e))return!0;P.push(Q)}}C=P.pop()}return!1}load(at){if(!at||!at.length)return this;if(this._minEntries>at.length){for(let P=0;at.length>P;P++)this.insert(at[P]);return this}let C=this._build(at.slice(),0,at.length-1,0);if(this.data.children.length)if(this.data.height===C.height)this._splitRoot(this.data,C);else{if(C.height>this.data.height){const P=this.data;this.data=C,C=P}this._insert(C,this.data.height-C.height-1,!0)}else this.data=C;return this}insert(at){return at&&this._insert(at,this.data.height-1),this}clear(){return this.data=VS([]),this}remove(at,C){if(!at)return this;let P=this.data;const F=this.toBBox(at),Q=[],_e=[];let Be,ot,Sn;for(;P||Q.length;){if(P||(P=Q.pop(),ot=Q[Q.length-1],Be=_e.pop(),Sn=!0),P.leaf){const js=C2(at,P.children,C);if(js!==-1)return P.children.splice(js,1),Q.push(P),this._condense(Q),this}Sn||P.leaf||!tC(P,F)?ot?(Be++,P=ot.children[Be],Sn=!1):P=null:(Q.push(P),_e.push(Be),Be=0,ot=P,P=P.children[0])}return this}toBBox(at){return at}compareMinX(at,C){return at.minX-C.minX}compareMinY(at,C){return at.minY-C.minY}toJSON(){return this.data}fromJSON(at){return this.data=at,this}_all(at,C){const P=[];for(;at;)at.leaf?C.push(...at.children):P.push(...at.children),at=P.pop();return C}_build(at,C,P,F){const Q=P-C+1;let _e,Be=this._maxEntries;if(Be>=Q)return _e=VS(at.slice(C,P+1)),q2(_e,this.toBBox),_e;F||(Be=Math.ceil(Q/Math.pow(Be,(F=Math.ceil(Math.log(Q)/Math.log(Be)))-1))),_e=VS([]),_e.leaf=!1,_e.height=F;const ot=Math.ceil(Q/Be),Sn=ot*Math.ceil(Math.sqrt(Be));YS(at,C,P,Sn,this.compareMinX);for(let js=C;P>=js;js+=Sn){const ka=Math.min(js+Sn-1,P);YS(at,js,ka,ot,this.compareMinY);for(let Ud=js;ka>=Ud;Ud+=ot)_e.children.push(this._build(at,Ud,Math.min(Ud+ot-1,ka),F-1))}return q2(_e,this.toBBox),_e}_chooseSubtree(at,C,P,F){for(;F.push(C),!C.leaf&&F.length-1!==P;){let Be,ot=1/0,Sn=1/0;for(let js=0;C.children.length>js;js++){const ka=C.children[js],Ud=YC(ka),Ng=(Math.max((_e=ka).maxX,(Q=at).maxX)-Math.min(_e.minX,Q.minX))*(Math.max(_e.maxY,Q.maxY)-Math.min(_e.minY,Q.minY))-Ud;Sn>Ng?(Sn=Ng,ot=ot>Ud?Ud:ot,Be=ka):Ng===Sn&&ot>Ud&&(ot=Ud,Be=ka)}C=Be||C.children[0]}var Q,_e;return C}_insert(at,C,P){const F=P?at:this.toBBox(at),Q=[],_e=this._chooseSubtree(F,this.data,C,Q);for(_e.children.push(at),eC(_e,F);C>=0&&Q[C].children.length>this._maxEntries;)this._split(Q,C),C--;this._adjustParentBBoxes(F,Q,C)}_split(at,C){const P=at[C],F=P.children.length,Q=this._minEntries;this._chooseSplitAxis(P,Q,F);const _e=this._chooseSplitIndex(P,Q,F),Be=VS(P.children.splice(_e,P.children.length-_e));Be.height=P.height,Be.leaf=P.leaf,q2(P,this.toBBox),q2(Be,this.toBBox),C?at[C-1].children.push(Be):this._splitRoot(P,Be)}_splitRoot(at,C){this.data=VS([at,C]),this.data.height=at.height+1,this.data.leaf=!1,q2(this.data,this.toBBox)}_chooseSplitIndex(at,C,P){let F,Q=1/0,_e=1/0;for(let Be=C;P-C>=Be;Be++){const ot=lw(at,0,Be,this.toBBox),Sn=lw(at,Be,P,this.toBBox),js=bS(ot,Sn),ka=YC(ot)+YC(Sn);Q>js?(Q=js,F=Be,_e=_e>ka?ka:_e):js===Q&&_e>ka&&(_e=ka,F=Be)}return F||P-C}_chooseSplitAxis(at,C,P){const F=at.leaf?this.compareMinX:zC,Q=at.leaf?this.compareMinY:dC,_e=this._allDistMargin(at,C,P,F);this._allDistMargin(at,C,P,Q)>_e&&at.children.sort(F)}_allDistMargin(at,C,P,F){at.children.sort(F);const Q=this.toBBox,_e=lw(at,0,C,Q),Be=lw(at,P-C,P,Q);let ot=qC(_e)+qC(Be);for(let Sn=C;P-C>Sn;Sn++){const js=at.children[Sn];eC(_e,at.leaf?Q(js):js),ot+=qC(_e)}for(let Sn=P-C-1;Sn>=C;Sn--){const js=at.children[Sn];eC(Be,at.leaf?Q(js):js),ot+=qC(Be)}return ot}_adjustParentBBoxes(at,C,P){for(let F=P;F>=0;F--)eC(C[F],at)}_condense(at){for(let C,P=at.length-1;P>=0;P--)at[P].children.length===0?P>0?(C=at[P-1].children,C.splice(C.indexOf(at[P]),1)):this.clear():q2(at[P],this.toBBox)}}}),pw=$y(G2),MC=$y(rx),AT=$y(Ay),v_=$y(E_).default,mv=AT.featureEach,Lw=MC.featureCollection;function Pv(at){var C=new pw(at);return C.insert=function(P){if(P.type!=="Feature")throw Error("invalid feature");return P.bbox=P.bbox?P.bbox:v_(P),pw.prototype.insert.call(this,P)},C.load=function(P){var F=[];return Array.isArray(P)?P.forEach(function(Q){if(Q.type!=="Feature")throw Error("invalid features");Q.bbox=Q.bbox?Q.bbox:v_(Q),F.push(Q)}):mv(P,function(Q){if(Q.type!=="Feature")throw Error("invalid features");Q.bbox=Q.bbox?Q.bbox:v_(Q),F.push(Q)}),pw.prototype.load.call(this,F)},C.remove=function(P,F){if(P.type!=="Feature")throw Error("invalid feature");return P.bbox=P.bbox?P.bbox:v_(P),pw.prototype.remove.call(this,P,F)},C.clear=function(){return pw.prototype.clear.call(this)},C.search=function(P){var F=pw.prototype.search.call(this,this.toBBox(P));return Lw(F)},C.collides=function(P){return pw.prototype.collides.call(this,this.toBBox(P))},C.all=function(){var P=pw.prototype.all.call(this);return Lw(P)},C.toJSON=function(){return pw.prototype.toJSON.call(this)},C.fromJSON=function(P){return pw.prototype.fromJSON.call(this,P)},C.toBBox=function(P){var F;if(P.bbox)F=P.bbox;else if(Array.isArray(P)&&P.length===4)F=P;else if(Array.isArray(P)&&P.length===6)F=[P[0],P[1],P[3],P[4]];else if(P.type==="Feature")F=v_(P);else{if(P.type!=="FeatureCollection")throw Error("invalid geojson");F=v_(P)}return{minX:F[0],minY:F[1],maxX:F[2],maxY:F[3]}},C}var k2=Pv;function O2(at,C){var P={},F=[];if(at.type==="LineString"&&(at=M_(at)),C.type==="LineString"&&(C=M_(C)),at.type==="Feature"&&C.type==="Feature"&&at.geometry!==null&&C.geometry!==null&&at.geometry.type==="LineString"&&C.geometry.type==="LineString"&&at.geometry.coordinates.length===2&&C.geometry.coordinates.length===2){var Q=TE(at,C);return Q&&F.push(Q),Ov(F)}var _e=k2();return _e.load(kx(C)),yd(kx(at),function(Be){yd(_e.search(Be),function(ot){var Sn=TE(Be,ot);if(Sn){var js=h_(Sn).join(",");P[js]||(P[js]=!0,F.push(Sn))}})}),Ov(F)}function TE(at,C){var P=h_(at),F=h_(C);if(P.length!==2)throw Error(" line1 must only contain 2 coordinates");if(F.length!==2)throw Error(" line2 must only contain 2 coordinates");var Q=P[0][0],_e=P[0][1],Be=P[1][0],ot=P[1][1],Sn=F[0][0],js=F[0][1],ka=F[1][0],Ud=F[1][1],Ng=(Ud-js)*(Be-Q)-(ka-Sn)*(ot-_e),N0=(ka-Sn)*(_e-js)-(Ud-js)*(Q-Sn),U0=(Be-Q)*(_e-js)-(ot-_e)*(Q-Sn);if(Ng===0)return null;var Gv=N0/Ng,Zv=U0/Ng;return 0>Gv||Gv>1||0>Zv||Zv>1?null:h1([Q+Gv*(Be-Q),_e+Gv*(ot-_e)])}k2.default=Pv;var cT=6378137;function dT(at){return wv(at,function(C,P){return C+function(F){var Q,_e=0;switch(F.type){case"Polygon":return US(F.coordinates);case"MultiPolygon":for(Q=0;F.coordinates.length>Q;Q++)_e+=US(F.coordinates[Q]);return _e;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(P)},0)}function US(at){var C=0;if(at&&at.length>0){C+=Math.abs(jE(at[0]));for(var P=1;at.length>P;P++)C-=Math.abs(jE(at[P]))}return C}function jE(at){var C,P,F,Q,_e,Be,ot=0,Sn=at.length;if(Sn>2){for(Be=0;Sn>Be;Be++)Be===Sn-2?(F=Sn-2,Q=Sn-1,_e=0):Be===Sn-1?(F=Sn-1,Q=0,_e=1):(F=Be,Q=Be+1,_e=Be+2),C=at[F],P=at[Q],ot+=(eT(at[_e][0])-eT(C[0]))*Math.sin(eT(P[1]));ot=ot*cT*cT/2}return ot}function eT(at){return at*Math.PI/180}function IE(at,C){return C===void 0&&(C={}),k1(at,function(P,F){var Q=F.geometry.coordinates;return P+dx(Q[0],Q[1],C)},0)}function $T(at,C){C===void 0&&(C={});var P=g_(at);switch(C.properties||at.type!=="Feature"||(C.properties=at.properties),P.type){case"Polygon":return function(F,Q){Q===void 0&&(Q={});var _e=g_(F),Be=_e.coordinates,ot=Q.properties?Q.properties:F.type==="Feature"?F.properties:{};return bE(Be,ot)}(P,C);case"MultiPolygon":return function(F,Q){Q===void 0&&(Q={});var _e=g_(F),Be=_e.coordinates,ot=Q.properties?Q.properties:F.type==="Feature"?F.properties:{},Sn=[];return Be.forEach(function(js){Sn.push(bE(js,ot))}),Ov(Sn)}(P,C);default:throw Error("invalid poly")}}function bE(at,C){return at.length>1?v1(at,C):Iv(at[0],C)}function xE(at){for(var C,P,F=h_(at),Q=0,_e=1;F.length>_e;)C=P||F[0],Q+=((P=F[_e])[0]-C[0])*(P[1]+C[1]),_e++;return Q>0}var aC=ky(function(at){var C=Object.prototype.hasOwnProperty,P="~";function F(){}function Q(Sn,js,ka){this.fn=Sn,this.context=js,this.once=ka||!1}function _e(Sn,js,ka,Ud,Ng){if(typeof ka!="function")throw new TypeError("The listener must be a function");var N0=new Q(ka,Ud||Sn,Ng),U0=P?P+js:js;return Sn._events[U0]?Sn._events[U0].fn?Sn._events[U0]=[Sn._events[U0],N0]:Sn._events[U0].push(N0):(Sn._events[U0]=N0,Sn._eventsCount++),Sn}function Be(Sn,js){--Sn._eventsCount==0?Sn._events=new F:delete Sn._events[js]}function ot(){this._events=new F,this._eventsCount=0}Object.create&&(F.prototype=Object.create(null),new F().__proto__||(P=!1)),ot.prototype.eventNames=function(){var Sn,js,ka=[];if(this._eventsCount===0)return ka;for(js in Sn=this._events)C.call(Sn,js)&&ka.push(P?js.slice(1):js);return Object.getOwnPropertySymbols?ka.concat(Object.getOwnPropertySymbols(Sn)):ka},ot.prototype.listeners=function(Sn){var js=this._events[P?P+Sn:Sn];if(!js)return[];if(js.fn)return[js.fn];for(var ka=0,Ud=js.length,Ng=Array(Ud);Ud>ka;ka++)Ng[ka]=js[ka].fn;return Ng},ot.prototype.listenerCount=function(Sn){var js=this._events[P?P+Sn:Sn];return js?js.fn?1:js.length:0},ot.prototype.emit=function(Sn,js,ka,Ud,Ng,N0){var U0=P?P+Sn:Sn;if(!this._events[U0])return!1;var Gv,Zv,o1=this._events[U0],qv=arguments.length;if(o1.fn){switch(o1.once&&this.removeListener(Sn,o1.fn,void 0,!0),qv){case 1:return o1.fn.call(o1.context),!0;case 2:return o1.fn.call(o1.context,js),!0;case 3:return o1.fn.call(o1.context,js,ka),!0;case 4:return o1.fn.call(o1.context,js,ka,Ud),!0;case 5:return o1.fn.call(o1.context,js,ka,Ud,Ng),!0;case 6:return o1.fn.call(o1.context,js,ka,Ud,Ng,N0),!0}for(Zv=1,Gv=Array(qv-1);qv>Zv;Zv++)Gv[Zv-1]=arguments[Zv];o1.fn.apply(o1.context,Gv)}else{var Sv,ny=o1.length;for(Zv=0;ny>Zv;Zv++)switch(o1[Zv].once&&this.removeListener(Sn,o1[Zv].fn,void 0,!0),qv){case 1:o1[Zv].fn.call(o1[Zv].context);break;case 2:o1[Zv].fn.call(o1[Zv].context,js);break;case 3:o1[Zv].fn.call(o1[Zv].context,js,ka);break;case 4:o1[Zv].fn.call(o1[Zv].context,js,ka,Ud);break;default:if(!Gv)for(Sv=1,Gv=Array(qv-1);qv>Sv;Sv++)Gv[Sv-1]=arguments[Sv];o1[Zv].fn.apply(o1[Zv].context,Gv)}}return!0},ot.prototype.on=function(Sn,js,ka){return _e(this,Sn,js,ka,!1)},ot.prototype.once=function(Sn,js,ka){return _e(this,Sn,js,ka,!0)},ot.prototype.removeListener=function(Sn,js,ka,Ud){var Ng=P?P+Sn:Sn;if(!this._events[Ng])return this;if(!js)return Be(this,Ng),this;var N0=this._events[Ng];if(N0.fn)N0.fn!==js||Ud&&!N0.once||ka&&N0.context!==ka||Be(this,Ng);else{for(var U0=0,Gv=[],Zv=N0.length;Zv>U0;U0++)(N0[U0].fn!==js||Ud&&!N0[U0].once||ka&&N0[U0].context!==ka)&&Gv.push(N0[U0]);Gv.length?this._events[Ng]=Gv.length===1?Gv[0]:Gv:Be(this,Ng)}return this},ot.prototype.removeAllListeners=function(Sn){var js;return Sn?this._events[js=P?P+Sn:Sn]&&Be(this,js):(this._events=new F,this._eventsCount=0),this},ot.prototype.off=ot.prototype.removeListener,ot.prototype.addListener=ot.prototype.on,ot.prefixed=P,ot.EventEmitter=ot,at.exports=ot}),zE=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e,Be=Q.style;return bu(this,P),(_e=C.call(this)).scene=void 0,_e.style=void 0,_e.layers=void 0,_e.data=[],_e.scene=F,_e.style=Be,_e.layers=_e.initLayers(),_e.layers.forEach(function(ot){F.addLayer(ot)}),Be.callback instanceof Function&&Be.callback(_e.layers),_e}return In(P,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(F){F.show()})}},{key:"hide",value:function(){this.layers.forEach(function(F){F.hide()})}},{key:"setData",value:function(F){var Q=Z1(F).sort(function(_e,Be){return+_e.properties.isActive-+Be.properties.isActive});this.data=Q,this.layers.forEach(function(_e){_e.setData(Ov(Q))})}},{key:"destroy",value:function(){var F=this;this.layers.forEach(function(Q){F.scene.removeLayer(Q)})}}]),P}(aC.EventEmitter),UT=function(at){Ga(P,at);var C=Wv(P);function P(){return bu(this,P),C.apply(this,arguments)}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.style,Be=F.options;return[new D.LineLayer(Be!=null?Be:{}).source(Ov([])).size(Q.size).color(Q.color).shape("line").style(_e)]}}]),P}(zE),YE=function(at){var C=typeof at;return at!=null&&(C=="object"||C=="function")},OC=typeof T1=="object"&&T1&&T1.Object===Object&&T1,yT=typeof self=="object"&&self&&self.Object===Object&&self,hC=OC||yT||Function("return this")(),rE=function(){return hC.Date.now()},PE=/\s/,Lx=function(at){for(var C=at.length;C--&&PE.test(at.charAt(C)););return C},WE=/^\s+/,ZE=function(at){return at&&at.slice(0,Lx(at)+1).replace(WE,"")},jS=hC.Symbol,Xw=Object.prototype,iC=Xw.hasOwnProperty,lC=Xw.toString,nC=jS?jS.toStringTag:void 0,AE=function(at){var C=iC.call(at,nC),P=at[nC];try{at[nC]=void 0;var F=!0}catch(_e){}var Q=lC.call(at);return F&&(C?at[nC]=P:delete at[nC]),Q},iE=Object.prototype.toString,HE=function(at){return iE.call(at)},yw=jS?jS.toStringTag:void 0,OS=function(at){return at==null?at===void 0?"[object Undefined]":"[object Null]":yw&&yw in Object(at)?AE(at):HE(at)},JC=function(at){return at!=null&&typeof at=="object"},aS=function(at){return typeof at=="symbol"||JC(at)&&OS(at)=="[object Symbol]"},QS=/^[-+]0x[0-9a-f]+$/i,Mw=/^0b[01]+$/i,K2=/^0o[0-7]+$/i,RC=parseInt,QC=function(at){if(typeof at=="number")return at;if(aS(at))return NaN;if(YE(at)){var C=typeof at.valueOf=="function"?at.valueOf():at;at=YE(C)?C+"":C}if(typeof at!="string")return at===0?at:+at;at=ZE(at);var P=Mw.test(at);return P||K2.test(at)?RC(at.slice(2),P?2:8):QS.test(at)?NaN:+at},r1=Math.max,j=Math.min,Y=function(at,C,P){var F,Q,_e,Be,ot,Sn,js=0,ka=!1,Ud=!1,Ng=!0;if(typeof at!="function")throw new TypeError("Expected a function");function N0(qv){var Sv=F,ny=Q;return F=Q=void 0,js=qv,Be=at.apply(ny,Sv)}function U0(qv){var Sv=qv-Sn;return Sn===void 0||Sv>=C||0>Sv||Ud&&qv-js>=_e}function Gv(){var qv=rE();if(U0(qv))return Zv(qv);ot=setTimeout(Gv,function(Sv){var ny=C-(Sv-Sn);return Ud?j(ny,_e-(Sv-js)):ny}(qv))}function Zv(qv){return ot=void 0,Ng&&F?N0(qv):(F=Q=void 0,Be)}function o1(){var qv=rE(),Sv=U0(qv);if(F=arguments,Q=this,Sn=qv,Sv){if(ot===void 0)return function(ny){return js=ny,ot=setTimeout(Gv,C),ka?N0(ny):Be}(Sn);if(Ud)return clearTimeout(ot),ot=setTimeout(Gv,C),N0(Sn)}return ot===void 0&&(ot=setTimeout(Gv,C)),Be}return C=QC(C)||0,YE(P)&&(ka=!!P.leading,_e=(Ud="maxWait"in P)?r1(QC(P.maxWait)||0,C):_e,Ng="trailing"in P?!!P.trailing:Ng),o1.cancel=function(){ot!==void 0&&clearTimeout(ot),js=0,F=Sn=Q=ot=void 0},o1.flush=function(){return ot===void 0?Be:Zv(rE())},o1},Te=function(at){Ga(P,at);var C=Wv(P);function P(){var F;bu(this,P);for(var Q=arguments.length,_e=Array(Q),Be=0;Q>Be;Be++)_e[Be]=arguments[Be];return(F=C.call.apply(C,[this].concat(_e))).onMouseMove=function(ot){F.emit(u.RenderEvent.Mousemove,ot)},F.onMouseOut=function(ot){F.emit(u.RenderEvent.Mouseout,ot)},F.onMouseDown=function(ot){F.emit(u.RenderEvent.Dragstart,ot)},F.onDragging=function(ot){F.emit(u.RenderEvent.Dragging,ot)},F.onDragEnd=Y(function(ot){F.emit(u.RenderEvent.Dragend,ot)},0),F.onUnClick=function(ot){F.emit(u.RenderEvent.UnClick,ot)},F.enableHover=function(){var ot,Sn;F.disableHover(),(ot=F.layers[0])===null||ot===void 0||ot.on(u.LayerEvent.Mousemove,F.onMouseMove),(Sn=F.layers[0])===null||Sn===void 0||Sn.on(u.LayerEvent.Mouseout,F.onMouseOut)},F.disableHover=function(){var ot,Sn;(ot=F.layers[0])===null||ot===void 0||ot.off(u.LayerEvent.Mousemove,F.onMouseMove),(Sn=F.layers[0])===null||Sn===void 0||Sn.off(u.LayerEvent.Mouseout,F.onMouseOut)},F}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.hover,Be=F.active,ot=F.style,Sn=F.options;return[new D.LineLayer(Sn!=null?Sn:{}).source(Ov([])).size("isHover*isActive",function(js,ka){return ka?Be.size:js?_e.size:Q.size}).color("isHover*isActive",function(js,ka){return ka?Be.color:js?_e.color:Q.color}).shape("line").style(ot)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(u.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onUnClick)}}]),P}(zE),Ue=function(at){Ga(P,at);var C=Wv(P);function P(){var F;bu(this,P);for(var Q=arguments.length,_e=Array(Q),Be=0;Q>Be;Be++)_e[Be]=arguments[Be];return(F=C.call.apply(C,[this].concat(_e))).onMouseMove=function(ot){F.emit(u.RenderEvent.Mousemove,ot)},F.onMouseOut=function(ot){F.emit(u.RenderEvent.Mouseout,ot)},F.onMouseDown=function(ot){F.emit(u.RenderEvent.Click,ot)},F}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.style,Be=_e===void 0?{}:_e,ot=F.options,Sn=Q.shape,js=Q.size,ka=Q.color;return[new D.PointLayer(ot!=null?ot:{}).source(Ov([])).size(js).color(ka).shape(Sn).style(Be)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var F,Q;this.disableHover(),(F=this.layers[0])===null||F===void 0||F.on(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.on(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var F,Q;(F=this.layers[0])===null||F===void 0||F.off(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.off(u.LayerEvent.Mouseout,this.onMouseOut)}}]),P}(zE),Hn=function(at){Ga(P,at);var C=Wv(P);function P(){var F;bu(this,P);for(var Q=arguments.length,_e=Array(Q),Be=0;Q>Be;Be++)_e[Be]=arguments[Be];return(F=C.call.apply(C,[this].concat(_e))).onCreate=function(ot){F.emit(u.RenderEvent.UnClick,ot)},F.onMouseMove=function(ot){F.emit(u.RenderEvent.Mousemove,ot)},F.onMouseOut=function(ot){F.emit(u.RenderEvent.Mouseout,ot)},F.onMouseDown=function(ot){F.emit(u.RenderEvent.Dragstart,ot)},F.onDragging=function(ot){F.emit(u.RenderEvent.Dragging,ot)},F.onDragEnd=Y(function(ot){F.emit(u.RenderEvent.Dragend,ot)},0),F.onClick=function(ot){F.emit(u.RenderEvent.Click,ot)},F.onContextmenu=function(ot){F.emit(u.RenderEvent.Contextmenu,ot)},F}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.hover,Be=F.active,ot=F.style,Sn=ot===void 0?{}:ot,js=F.options;return[new D.PointLayer(js!=null?js:{}).source(Ov([])).size("isHover*isActive",function(ka,Ud){return Ud?Be.size:ka?_e.size:Q.size}).color("isHover*isActive",function(ka,Ud){return Ud?Be.color:ka?_e.color:Q.color}).shape("isHover*isActive",function(ka,Ud){return Ud?Be.shape:ka?_e.shape:Q.shape}).style(Sn)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(u.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var F,Q;this.disableHover(),(F=this.layers[0])===null||F===void 0||F.on(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.on(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var F,Q;(F=this.layers[0])===null||F===void 0||F.off(u.LayerEvent.Mousemove,this.onMouseMove),(Q=this.layers[0])===null||Q===void 0||Q.off(u.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(u.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(u.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(u.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(u.LayerEvent.Contextmenu,this.onContextmenu)}}]),P}(zE),za=function(at){Ga(P,at);var C=Wv(P);function P(){var F;bu(this,P);for(var Q=arguments.length,_e=Array(Q),Be=0;Q>Be;Be++)_e[Be]=arguments[Be];return(F=C.call.apply(C,[this].concat(_e))).onMouseMove=function(ot){F.emit(u.RenderEvent.Mousemove,ot)},F.onMouseOut=function(ot){F.emit(u.RenderEvent.Mouseout,ot)},F.onMouseDown=function(ot){F.emit(u.RenderEvent.Dragstart,ot)},F.onDragging=function(ot){F.emit(u.RenderEvent.Dragging,ot)},F.onDragEnd=Y(function(ot){F.emit(u.RenderEvent.Dragend,ot)},0),F.onUnClick=function(ot){F.emit(u.RenderEvent.UnClick,ot)},F.enableHover=function(){var ot,Sn;F.disableHover(),(ot=F.layers[0])===null||ot===void 0||ot.on(u.LayerEvent.Mousemove,F.onMouseMove),(Sn=F.layers[0])===null||Sn===void 0||Sn.on(u.LayerEvent.Mouseout,F.onMouseOut)},F.disableHover=function(){var ot,Sn;(ot=F.layers[0])===null||ot===void 0||ot.off(u.LayerEvent.Mousemove,F.onMouseMove),(Sn=F.layers[0])===null||Sn===void 0||Sn.off(u.LayerEvent.Mouseout,F.onMouseOut)},F}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.hover,Be=F.active,ot=F.style,Sn=F.options,js=new D.PolygonLayer(Sn!=null?Sn:{});return js.source(Ov([])).color("isHover*isActive",function(ka,Ud){return Ud?Be.color:ka?_e.color:Q.color}).style(ot),[js]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(u.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(u.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(u.LayerEvent.UnClick,this.onUnClick)}}]),P}(zE),og=function(at){Ga(P,at);var C=Wv(P);function P(F){var Q;return bu(this,P),(Q=C.call(this)).scene=void 0,Q.previousClick=void 0,Q.onDblClick=function(_e){var Be,ot,Sn=(Be=(ot=_e.pixel)!==null&&ot!==void 0?ot:_e.point)!==null&&Be!==void 0?Be:{},js=Sn.x,ka=js===void 0?0:js,Ud=Sn.y,Ng=Ud===void 0?0:Ud,N0=Date.now();if(Q.previousClick){var U0=Q.previousClick,Gv=U0.y;300>N0-U0.time&&5>Math.abs(ka-U0.x)&&5>Math.abs(Ng-Gv)&&Q.emit(u.RenderEvent.DblClick,_e)}Q.previousClick={x:ka,y:Ng,time:N0}},Q.onMouseMove=function(_e){Q.emit(u.RenderEvent.Mousemove,_e)},Q.onMouseDown=function(_e){Q.emit(u.RenderEvent.Dragstart,_e)},Q.onDragging=function(_e){Q.emit(u.RenderEvent.Dragging,_e)},Q.onDragEnd=Y(function(_e){Q.emit(u.RenderEvent.Dragend,_e)},0),Q.scene=F,Q}return In(P,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(u.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(u.SceneEvent.Dragging,this.onDragging),this.scene.on(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(u.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(u.SceneEvent.Dragging,this.onDragging),this.scene.off(u.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(u.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(u.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(u.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(u.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(u.SceneEvent.Mousedown,this.onDblClick)}}]),P}(aC),it=function(at){Ga(P,at);var C=Wv(P);function P(){return bu(this,P),C.apply(this,arguments)}return In(P,[{key:"initLayers",value:function(){var F=this.style,Q=F.normal,_e=F.active,Be=F.style,ot=Be===void 0?{}:Be,Sn=F.options;return[new D.PointLayer(Sn!=null?Sn:{}).source(Ov([])).size("isActive",function(js){return js?_e.size:Q.size}).color("isActive",function(js){return js?_e.color:Q.color}).shape("text","text").style(ot)]}}]),P}(zE),z={point:Hn,line:Te,dashLine:UT,midPoint:Ue,text:it,polygon:za},we="#1990FF",et="#ED9D48",Tt={blend:"normal",pickingBuffer:5},_r={color:we,shape:"circle",size:6},va={color:et,shape:"circle",size:6},La={shape:"circle",size:6,color:et},yu={options:Tt,normal:_r,hover:Rs(Rs({},_r),{},{size:8}),active:Rs(Rs({},_r),{},{size:8,color:et}),style:{stroke:"#ffffff",strokeWidth:2}},Wg={options:Tt,normal:va,hover:Rs(Rs({},va),{},{size:8}),active:Rs(Rs({},va),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},re={color:we,size:12},pe={point:Wg,line:{options:Tt,normal:{color:we,size:2},hover:{color:we,size:2},active:{color:et,size:2},style:{}},polygon:{options:Tt,normal:{color:we},hover:{color:we},active:{color:et},style:{opacity:.15}},midPoint:{options:Tt,normal:La},dashLine:{options:Tt,normal:{color:et,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Tt,normal:re,active:Rs(Rs({},re),{},{color:et}),style:{fontWeight:"800",textOffset:[0,re.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},ge=function(at,C){return at===C||at!=at&&C!=C},Le=function(at,C){for(var P=at.length;P--;)if(ge(at[P][0],C))return P;return-1},Wt=Array.prototype.splice,ni=function(at){var C=this.__data__,P=Le(C,at);return P>=0&&(P==C.length-1?C.pop():Wt.call(C,P,1),--this.size,!0)},Vo=function(at){var C=this.__data__,P=Le(C,at);return 0>P?void 0:C[P][1]},Ua=function(at){return Le(this.__data__,at)>-1},Lg=function(at,C){var P=this.__data__,F=Le(P,at);return 0>F?(++this.size,P.push([at,C])):P[F][1]=C,this};function ou(at){var C=-1,P=at==null?0:at.length;for(this.clear();++CF.length)return F.push([at,C]),this.size=++P.size,this;P=this.__data__=new Sw(F)}return P.set(at,C),this.size=P.size,this};function yC(at){var C=this.__data__=new I0(at);this.size=C.size}yC.prototype.clear=K0,yC.prototype.delete=fv,yC.prototype.get=Yv,yC.prototype.has=d1,yC.prototype.set=vw;var T2=yC,jC=function(at,C){for(var P=-1,F=at==null?0:at.length;++P-1&&at%1==0&&C>at},wA=function(at){return typeof at=="number"&&at>-1&&at%1==0&&9007199254740991>=at},cE={};cE["[object Float32Array]"]=cE["[object Float64Array]"]=cE["[object Int8Array]"]=cE["[object Int16Array]"]=cE["[object Int32Array]"]=cE["[object Uint8Array]"]=cE["[object Uint8ClampedArray]"]=cE["[object Uint16Array]"]=cE["[object Uint32Array]"]=!0,cE["[object Arguments]"]=cE["[object Array]"]=cE["[object ArrayBuffer]"]=cE["[object Boolean]"]=cE["[object DataView]"]=cE["[object Date]"]=cE["[object Error]"]=cE["[object Function]"]=cE["[object Map]"]=cE["[object Number]"]=cE["[object Object]"]=cE["[object RegExp]"]=cE["[object Set]"]=cE["[object String]"]=cE["[object WeakMap]"]=!1;var kC=function(at){return JC(at)&&wA(at.length)&&!!cE[OS(at)]},T3=function(at){return function(C){return at(C)}},$A=ky(function(at,C){var P=C&&!C.nodeType&&C,F=P&&at&&!at.nodeType&&at,Q=F&&F.exports===P&&OC.process,_e=function(){try{var Be=F&&F.require&&F.require("util").types;return Be||Q&&Q.binding&&Q.binding("util")}catch(ot){}}();at.exports=_e}),v3=$A&&$A.isTypedArray,gA=v3?T3(v3):kC,N3=Object.prototype.hasOwnProperty,A3=function(at,C){var P=oE(at),F=!P&&wT(at),Q=!P&&!F&&WC(at),_e=!P&&!F&&!Q&&gA(at),Be=P||F||Q||_e,ot=Be?oA(at.length,String):[],Sn=ot.length;for(var js in at)!C&&!N3.call(at,js)||Be&&(js=="length"||Q&&(js=="offset"||js=="parent")||_e&&(js=="buffer"||js=="byteLength"||js=="byteOffset")||GT(js,Sn))||ot.push(js);return ot},UA=Object.prototype,TA=function(at){var C=at&&at.constructor;return at===(typeof C=="function"&&C.prototype||UA)},IA=function(at,C){return function(P){return at(C(P))}},W3=IA(Object.keys,Object),w3=Object.prototype.hasOwnProperty,CA=function(at){if(!TA(at))return W3(at);var C=[];for(var P in Object(at))w3.call(at,P)&&P!="constructor"&&C.push(P);return C},OT=function(at){return at!=null&&wA(at.length)&&!e1(at)},s3=function(at){return OT(at)?A3(at):CA(at)},WT=function(at,C){return at&&LE(C,s3(C),at)},aD=function(at){var C=[];if(at!=null)for(var P in Object(at))C.push(P);return C},gE=Object.prototype.hasOwnProperty,qE=function(at){if(!YE(at))return aD(at);var C=TA(at),P=[];for(var F in at)(F!="constructor"||!C&&gE.call(at,F))&&P.push(F);return P},TS=function(at){return OT(at)?A3(at,!0):qE(at)},Z3=function(at,C){return at&&LE(C,TS(C),at)},H3=ky(function(at,C){var P=C&&!C.nodeType&&C,F=P&&at&&!at.nodeType&&at,Q=F&&F.exports===P?hC.Buffer:void 0,_e=Q?Q.allocUnsafe:void 0;at.exports=function(Be,ot){if(ot)return Be.slice();var Sn=Be.length,js=_e?_e(Sn):new Be.constructor(Sn);return Be.copy(js),js}}),VA=function(at,C){var P=-1,F=at.length;for(C||(C=Array(F));++Pot))return!1;var js=_e.get(at),ka=_e.get(C);if(js&&ka)return js==C&&ka==at;var Ud=-1,Ng=!0,N0=2&P?new t_:void 0;for(_e.set(at,C),_e.set(C,at);++Ud0){if(++C>=800)return arguments[0]}else C=0;return at.apply(void 0,arguments)}},jx=ix(oS?function(at,C){return oS(at,"toString",{configurable:!0,enumerable:!1,value:ry(C),writable:!0})}:y_),n_=function(at,C){return jx(A1(at,C,y_),at+"")},Q2=function(at,C,P){if(!YE(P))return!1;var F=typeof C;return!!(F=="number"?OT(P)&>(C,P.length):F=="string"&&C in P)&&ge(P[C],at)},Y_=function(at){return n_(function(C,P){var F=-1,Q=P.length,_e=Q>1?P[Q-1]:void 0,Be=Q>2?P[2]:void 0;for(_e=at.length>3&&typeof _e=="function"?(Q--,_e):void 0,Be&&Q2(P[0],P[1],Be)&&(_e=3>Q?void 0:_e,Q=1),C=Object(C);++F":".","?":"/","|":"\\"},Sn={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},js=1;20>js;++js)_e[111+js]="f"+js;for(js=0;9>=js;++js)_e[js+96]=""+js;Zv.prototype.bind=function(o1,qv,Sv){var ny=this;return ny._bindMultiple.call(ny,o1=o1 instanceof Array?o1:[o1],qv,Sv),ny},Zv.prototype.unbind=function(o1,qv){return this.bind.call(this,o1,function(){},qv)},Zv.prototype.trigger=function(o1,qv){var Sv=this;return Sv._directMap[o1+":"+qv]&&Sv._directMap[o1+":"+qv]({},o1),Sv},Zv.prototype.reset=function(){var o1=this;return o1._callbacks={},o1._directMap={},o1},Zv.prototype.stopCallback=function(o1,qv){if((" "+qv.className+" ").indexOf(" mousetrap ")>-1||Gv(qv,this.target))return!1;if("composedPath"in o1&&typeof o1.composedPath=="function"){var Sv=o1.composedPath()[0];Sv!==o1.target&&(qv=Sv)}return qv.tagName=="INPUT"||qv.tagName=="SELECT"||qv.tagName=="TEXTAREA"||qv.isContentEditable},Zv.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Zv.addKeycodes=function(o1){for(var qv in o1)o1.hasOwnProperty(qv)&&(_e[qv]=o1[qv]);Q=null},Zv.init=function(){var o1=Zv(P);for(var qv in o1)qv.charAt(0)!=="_"&&(Zv[qv]=function(Sv){return function(){return o1[Sv].apply(o1,arguments)}}(qv))},Zv.init(),C.Mousetrap=Zv,at.exports&&(at.exports=Zv)}function ka(o1,qv,Sv){o1.addEventListener?o1.addEventListener(qv,Sv,!1):o1.attachEvent("on"+qv,Sv)}function Ud(o1){if(o1.type=="keypress"){var qv=String.fromCharCode(o1.which);return o1.shiftKey||(qv=qv.toLowerCase()),qv}return _e[o1.which]?_e[o1.which]:Be[o1.which]?Be[o1.which]:String.fromCharCode(o1.which).toLowerCase()}function Ng(o1){return o1=="shift"||o1=="ctrl"||o1=="alt"||o1=="meta"}function N0(o1,qv,Sv){return Sv||(Sv=function(){if(!Q)for(var ny in Q={},_e)ny>95&&112>ny||_e.hasOwnProperty(ny)&&(Q[_e[ny]]=ny);return Q}()[o1]?"keydown":"keypress"),Sv=="keypress"&&qv.length&&(Sv="keydown"),Sv}function U0(o1,qv){var Sv,ny,Uy,w_=[];for(Sv=function(px){return px==="+"?["+"]:(px=px.replace(/\+{2}/g,"+plus")).split("+")}(o1),Uy=0;Sv.length>Uy;++Uy)Sn[ny=Sv[Uy]]&&(ny=Sn[ny]),qv&&qv!="keypress"&&ot[ny]&&(ny=ot[ny],w_.push("shift")),Ng(ny)&&w_.push(ny);return{key:ny,modifiers:w_,action:qv=N0(ny,w_,qv)}}function Gv(o1,qv){return o1!==null&&o1!==P&&(o1===qv||Gv(o1.parentNode,qv))}function Zv(o1){var qv=this;if(o1=o1||P,!(qv instanceof Zv))return new Zv(o1);qv.target=o1,qv._callbacks={},qv._directMap={};var Sv,ny={},Uy=!1,w_=!1,px=!1;function $x(bg){bg=bg||{};var i0,S0=!1;for(i0 in ny)bg[i0]?S0=!0:ny[i0]=0;S0||(px=!1)}function Ix(bg,i0,S0,Tv,cy,Gy){var q1,i_,ex,W1=[],A2=S0.type;if(!qv._callbacks[bg])return[];for(A2=="keyup"&&Ng(bg)&&(i0=[bg]),q1=0;qv._callbacks[bg].length>q1;++q1)i_=qv._callbacks[bg][q1],(Tv||!i_.seq||ny[i_.seq]==i_.level)&&A2==i_.action&&(A2=="keypress"&&!S0.metaKey&&!S0.ctrlKey||(ex=i_.modifiers,i0.sort().join(",")===ex.sort().join(",")))&&((!Tv&&i_.combo==cy||Tv&&i_.seq==Tv&&i_.level==Gy)&&qv._callbacks[bg].splice(q1,1),W1.push(i_));return W1}function cw(bg,i0,S0,Tv){qv.stopCallback(i0,i0.target||i0.srcElement,S0,Tv)||bg(i0,S0)===!1&&(function(cy){cy.preventDefault?cy.preventDefault():cy.returnValue=!1}(i0),function(cy){cy.stopPropagation?cy.stopPropagation():cy.cancelBubble=!0}(i0))}function Sx(bg){typeof bg.which!="number"&&(bg.which=bg.keyCode);var i0=Ud(bg);i0&&(bg.type!="keyup"||Uy!==i0?qv.handleKey(i0,function(S0){var Tv=[];return S0.shiftKey&&Tv.push("shift"),S0.altKey&&Tv.push("alt"),S0.ctrlKey&&Tv.push("ctrl"),S0.metaKey&&Tv.push("meta"),Tv}(bg),bg):Uy=!1)}function W2(bg,i0,S0,Tv){function cy(ex){return function(){px=ex,++ny[bg],clearTimeout(Sv),Sv=setTimeout($x,1e3)}}function Gy(ex){cw(S0,ex,bg),Tv!=="keyup"&&(Uy=Ud(ex)),setTimeout($x,10)}ny[bg]=0;for(var q1=0;i0.length>q1;++q1){var i_=q1+1===i0.length?Gy:cy(Tv||U0(i0[q1+1]).action);gu(i0[q1],i_,Tv,bg,q1)}}function gu(bg,i0,S0,Tv,cy){qv._directMap[bg+":"+S0]=i0;var Gy,q1=(bg=bg.replace(/\s+/g," ")).split(" ");q1.length>1?W2(bg,q1,i0,S0):(Gy=U0(bg,S0),qv._callbacks[Gy.key]=qv._callbacks[Gy.key]||[],Ix(Gy.key,Gy.modifiers,{type:Gy.action},Tv,bg,cy),qv._callbacks[Gy.key][Tv?"unshift":"push"]({callback:i0,modifiers:Gy.modifiers,action:Gy.action,seq:Tv,level:cy,combo:bg}))}qv._handleKey=function(bg,i0,S0){var Tv,cy=Ix(bg,i0,S0),Gy={},q1=0,i_=!1;for(Tv=0;cy.length>Tv;++Tv)cy[Tv].seq&&(q1=Math.max(q1,cy[Tv].level));for(Tv=0;cy.length>Tv;++Tv)if(cy[Tv].seq){if(cy[Tv].level!=q1)continue;i_=!0,Gy[cy[Tv].seq]=1,cw(cy[Tv].callback,S0,cy[Tv].combo,cy[Tv].seq)}else i_||cw(cy[Tv].callback,S0,cy[Tv].combo);var ex=S0.type=="keypress"&&w_;S0.type!=px||Ng(bg)||ex||$x(Gy),w_=i_&&S0.type=="keydown"},qv._bindMultiple=function(bg,i0,S0){for(var Tv=0;bg.length>Tv;++Tv)gu(bg[Tv],i0,S0)},ka(o1,"keypress",Sx),ka(o1,"keydown",Sx),ka(o1,"keyup",Sx)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),uw,$2=function(at){return at&&at.length?at[0]:void 0},__=(uw=1,function(at){return"".concat(at,"-").concat(uw++)}),Ww=function(at,C){var P,F;return!(!at||!C||((P=at.properties)===null||P===void 0?void 0:P.id)!==((F=C.properties)===null||F===void 0?void 0:F.id))},XS=function(at){var C=at.target,P=at.targetHandler,F=at.otherHandler;return at.data.map(function(Q,_e){var Be,ot=Ww(Q,C)?P:F;return(Be=ot==null?void 0:ot(Q,_e))!==null&&Be!==void 0?Be:Q})},Rw=function(){return{id:__("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},_C=function(){return{id:__("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Yw=function(){return{id:__("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},kw=function(at){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h1(at,Rs(Rs({},Rw()),C))},Bv=function(at){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Rs(Rs({},_C()),{},{nodes:at},C),geometry:{type:"LineString",coordinates:kg(Ov(at))}}},e_=function(at){return Iv(at,{id:__("dashLine")})},u2=function(at){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Rs(Rs({},Yw()),{},{nodes:at},C),geometry:{type:"Polygon",coordinates:[kg(Ov([].concat(Z1(at),[$2(at)])))]}}},Zw=function(at){return function(C,P,F){F===void 0&&(F={});for(var Q=g_(C).coordinates,_e=0,Be=0;Q.length>Be&&(_e>P||Be!==Q.length-1);Be++){if(_e>=P){var ot=P-_e;if(ot){var Sn=j1(Q[Be],Q[Be-1])-180;return Ow(Q[Be],ot,Sn,F)}return h1(Q[Be])}_e+=dx(Q[Be],Q[Be+1],F)}return h1(Q[Q.length-1])}(at,IE(at,{units:"meters"})/2,{units:"meters"})},IC=function(at,C){var P=C.format,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=[];if(C.showTotalDistance){var _e=Zw(at),Be=IE(at,{units:"meters"}),ot=kg(at).map(function(U0){return h1(U0)});_e.properties=Rs({id:__("text"),isActive:!1,meters:Be,text:P(Be,ot),type:"totalDistance"},F),Q.push(_e)}else for(var Sn=at.geometry.coordinates,js=0;Sn.length-1>js;js++){var ka=h1(Sn[js]),Ud=h1(Sn[js+1]),Ng=dx(ka,Ud,{units:"meters"}),N0=Px(Ov([ka,Ud]));N0.properties=Rs({id:__("text"),isActive:!1,meters:Ng,text:P(Ng,[ka,Ud]),type:"distance"},F),Q.push(N0)}return Q},_T=function(at,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=C.format,Q=dT(at);return Vx(at,{properties:Rs({meters:Q,text:F(Q,at),type:"area",isActive:!1},P)})},py=function(at){var C,P,F,Q,_e,Be,ot=at.getContainer();return(C=(P=(F=(Q=(_e=(Be=ot==null?void 0:ot.querySelector(".l7-marker-container"))!==null&&Be!==void 0?Be:ot==null?void 0:ot.querySelector(".BMap_mask"))!==null&&_e!==void 0?_e:at.getMapCanvasContainer())!==null&&Q!==void 0?Q:ot==null?void 0:ot.querySelector(".l7-scene"))!==null&&F!==void 0?F:ot==null?void 0:ot.querySelector(".l7-control-container"))!==null&&P!==void 0?P:ot==null?void 0:ot.querySelector(".l7-marker-container2"))!==null&&C!==void 0?C:null},xt=function(at){return at.lngLat||at.lnglat},Et=function(at){var C=xt(at);return[C.lng,C.lat]},jn=function(at){return[at.lng,at.lat]},Oa=function(at){for(var C=Number.MAX_SAFE_INTEGER,P=0,F=at.length,Q=0;F>Q;Q++)C>at[Q]&&(C=at[Q],P=Q);return P},Rg=function(at,C){var P=[],F=[];return at.forEach(function(Q){nn(Q,C)?F.length&&(P.push(F),F=[]):F.push(Q)}),F.length&&P.push(F),P},oh=function(at,C,P){var F=[],Q=[],_e=[];return F=at==="allDrawData"?Ey.instances.map(function(Be){return Be.getData()}).flat():at==="drawData"?C.getData():at instanceof Function?at(P):at,F.length&&(Q=F.map(function(Be){var ot,Sn=(ot=Be.properties)!==null&&ot!==void 0?ot:{},js=Sn.nodes,ka=js===void 0?[]:js,Ud=Sn.isActive;return Ud!==void 0&&Ud?ka.filter(function(Ng){return!nn(Ng.geometry.coordinates,P)}):ka}).flat().filter(function(Be){return Be}),Q.length||(Q=kg(Ov(F)).map(function(Be){return h1(Be)})),_e=F.map(function(Be){var ot,Sn,js=(ot=Be.properties)===null||ot===void 0?void 0:ot.line;return!((Sn=Be.properties)===null||Sn===void 0)&&Sn.isActive&&js?Rg(js.properties.nodes.map(function(ka){return ka.geometry.coordinates}),P).filter(function(ka){return ka.length>1}).map(function(ka){return Iv(ka)}):[js]}).flat().filter(function(Be){return Be}),_e.length||F.forEach(function(Be){var ot=ox(Be);if(/linestring/i.test(ot)&&_e.push(Be),/polygon/i.test(ot)){var Sn,js,ka=$T(Be);return(Sn=_e).push.apply(Sn,Z1((js=ka==null?void 0:ka.features)!==null&&js!==void 0?js:[ka]))}})),{points:Q,lines:_e}},cu=function(at,C,P,F){var Q=P.pointAdsorbPixel,_e=P1(at,2),Be=F.lngLatToPixel([_e[0],_e[1]]),ot=Be.x,Sn=Be.y,js=C.map(function(Ud){var Ng=P1(Ud.geometry.coordinates,2),N0=F.lngLatToPixel([Ng[0],Ng[1]]),U0=N0.y;return Math.pow(ot-N0.x,2)+Math.pow(Sn-U0,2)}),ka=Oa(js);return Math.pow(js[ka],.5)>Q?null:C[ka].geometry.coordinates},m0=function(at,C,P,F){var Q=P.lineAdsorbPixel,_e=P1(at,2),Be=F.lngLatToPixel([_e[0],_e[1]]),ot=Be.x,Sn=Be.y,js=C.filter(function(Ng){return kg(Ng).length>1}).map(function(Ng){return function(N0,U0,Gv){Gv===void 0&&(Gv={});var Zv=h1([1/0,1/0],{dist:1/0}),o1=0;return b1(N0,function(qv){for(var Sv=h_(qv),ny=0;Sv.length-1>ny;ny++){var Uy=h1(Sv[ny]);Uy.properties.dist=dx(U0,Uy,Gv);var w_=h1(Sv[ny+1]);w_.properties.dist=dx(U0,w_,Gv);var px=dx(Uy,w_,Gv),$x=Math.max(Uy.properties.dist,w_.properties.dist),Ix=j1(Uy,w_),cw=Ow(U0,$x,Ix+90,Gv),Sx=Ow(U0,$x,Ix-90,Gv),W2=O2(Iv([cw.geometry.coordinates,Sx.geometry.coordinates]),Iv([Uy.geometry.coordinates,w_.geometry.coordinates])),gu=null;W2.features.length>0&&((gu=W2.features[0]).properties.dist=dx(U0,gu,Gv),gu.properties.location=o1+dx(Uy,gu,Gv)),Zv.properties.dist>Uy.properties.dist&&((Zv=Uy).properties.index=ny,Zv.properties.location=o1),Zv.properties.dist>w_.properties.dist&&((Zv=w_).properties.index=ny+1,Zv.properties.location=o1+px),gu&&Zv.properties.dist>gu.properties.dist&&((Zv=gu).properties.index=ny),o1+=px}}),Zv}(Ng,at)});if(!js.length)return null;var ka=js.map(function(Ng){var N0=P1(Ng.geometry.coordinates,2),U0=F.lngLatToPixel([N0[0],N0[1]]),Gv=U0.y;return Math.pow(ot-U0.x,2)+Math.pow(Sn-Gv,2)}),Ud=Oa(ka);return Math.pow(ka[Ud],.5)>Q?null:js[Ud].geometry.coordinates},Hv=function(at,C){var P=P1(C,2),F=P[0],Q=P[1];at.lngLat&&(at.lngLat={lng:F,lat:Q}),at.lnglat&&(at.lnglat={lng:F,lat:Q})},_1=function(){function at(C,P){bu(this,at),this.container=void 0,this.cursor=null,this.options=void 0,this.container=py(C),this.options=P}return In(at,[{key:"setCursor",value:function(C){C!==this.cursor&&this.container&&(this.container.style.cursor=C?this.options[C]:"",this.cursor=C)}},{key:"destroy",value:function(){this.setCursor(null)}}]),at}();function kv(at,C){C===void 0&&(C={});var P=C.insertAt;if(at&&typeof document!="undefined"){var F=document.head||document.getElementsByTagName("head")[0],Q=document.createElement("style");Q.type="text/css",P==="top"&&F.firstChild?F.insertBefore(Q,F.firstChild):F.appendChild(Q),Q.styleSheet?Q.styleSheet.cssText=at:Q.appendChild(document.createTextNode(at))}}kv('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),kv(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var L1=function(){function at(C,P){var F=this;bu(this,at),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){F.isMouseInner=!0,F.checkTippyShow()},this.onMouseOut=function(){F.isMouseInner=!1,F.checkTippyShow()},this.setContent=Y(function(_e){var Be;F.content=_e!=null?_e:"",(Be=F.tippy)===null||Be===void 0||Be.setContent(_e!=null?_e:""),F.checkTippyShow()},16,{maxWait:16});var Q=py(C);this.scene=C,Q&&(this.tippy=$1(py(C),Rs(Rs({},qt),P)),this.tippy.hide(),C.on(u.SceneEvent.Mousemove,this.onMouseMove),C.on(u.SceneEvent.Mouseout,this.onMouseOut))}return In(at,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var C,P;this.content&&this.isMouseInner?(C=this.tippy)===null||C===void 0||C.show():(P=this.tippy)===null||P===void 0||P.hide()}},{key:"destroy",value:function(){var C;this.scene.off(u.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(u.SceneEvent.Mouseout,this.onMouseOut),(C=this.tippy)===null||C===void 0||C.destroy()}}]),at}(),uy=function(){function at(C){var P=C.config;bu(this,at),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=P}return In(at,[{key:"save",value:function(C){if(this.config){var P=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),P>this.historyList.length||this.historyList.pop();var F=Jv(C);return this.historyList.unshift(F),F}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var C=this.historyList[++this.historyIndex];return C?Jv(C):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var C=this.historyList[--this.historyIndex];return C?Jv(C):void 0}}}]),at}(),D1=function(at){Ga(P,at);var C=Wv(P);function P(F){var Q,_e=F.data,Be=F.render,ot=F.history,Sn=F.scene;return bu(this,P),(Q=C.call(this)).scene=void 0,Q.render=void 0,Q.data=Jv(x),Q.timeout=null,Q.diffData={},Q.history=void 0,Q.scene=Sn,Q.render=Be,ot&&(Q.history=new uy({config:ot})),_e&&Q.setData(_e),Q}return In(P,[{key:"saveHistory",value:function(){var F;return(F=this.history)===null||F===void 0?void 0:F.save(this.data)}},{key:"revertHistory",value:function(){var F,Q=(F=this.history)===null||F===void 0?void 0:F.revert();if(Q)return this.setData(Q),Q}},{key:"redoHistory",value:function(){var F,Q=(F=this.history)===null||F===void 0?void 0:F.redo();if(Q)return this.setData(Q),Q}},{key:"setData",value:function(F){var Q=this;return Object.keys(F).length&&(this.data=Rs(Rs({},this.data),F),this.diffData=Rs(Rs({},this.diffData),F),this.timeout||(this.timeout=requestAnimationFrame(function(){return Q.updateDiffData()})),this.emit(u.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(F){return this.data[F]}},{key:"setRenderData",value:function(F,Q){var _e=typeof Q=="function"?Q(this.getRenderData(F)):Q;return this.setData(ga({},F,_e)),this.emit(u.SourceEvent.Change,this.data),_e}},{key:"updateDiffData",value:function(){var F=this,Q=Object.entries(this.diffData);Q.length&&(Q.forEach(function(_e){var Be,ot=P1(_e,2),Sn=ot[0],js=ot[1];Array.isArray(js)&&((Be=F.getRender(Sn))===null||Be===void 0||Be.setData(js))}),this.emit(u.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){F.scene.render()}))}},{key:"getRender",value:function(F){return this.render[F]}},{key:"clear",value:function(){this.setData(m1(Object.keys(this.render).map(function(F){return[F,[]]})))}}]),P}(aC),Ey=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;bu(this,P),(_e=C.call(this)).scene=void 0,_e.source=void 0,_e.render=void 0,_e.cursor=void 0,_e.options=void 0,_e.enabled=!1,_e.allowCreate=!1,_e.sceneRender=void 0,_e.mouseLngLat={lng:0,lat:0},_e.popup=void 0,_e.addCount=0,_e.saveMouseLngLat=Y(function(js){_e.mouseLngLat=xt(js)},100,{maxWait:100}),_e.saveHistory=Y(function(){_e.options.history&&_e.source.saveHistory()},100),_e.bindThis(),_e.scene=F,_e.sceneRender=new og(F),_e.options=xw({},_e.getDefaultOptions(Q),Q),_e.render=_e.initRender(),_e.source=new D1({render:_e.render,history:_e.options.history||void 0,scene:F}),_e.cursor=new _1(F,_e.options.cursor);var Be=_e.options,ot=Be.initialData,Sn=Be.popup;return ot&&_e.setData(ot),Sn&&(_e.popup=new L1(F,Sn instanceof Object?Sn:{})),_e.saveHistory(),_e.bindCommonEvent(),_e.emit(u.DrawEvent.Init,Cv(_e)),_e.bindEnableEvent(),P.instances.push(Cv(_e)),_e}return In(P,[{key:"addable",get:function(){var F=this.getData(),Q=this.options,_e=Q.multiple,Be=Q.maxCount,ot=F.find(function(Sn){return Sn.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(_e&&0>=Be||ot)||!(!_e&&this.addCount>=1)&&(0>=Be||Be>F.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(F){var Q,_e,Be=this.options.helper;if(Be){var ot=(Q=F in Be?Be[F]:F)!==null&&Q!==void 0?Q:null;(_e=this.popup)===null||_e===void 0||_e.setContent(ot)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var F=this;this.on(u.DrawEvent.Add,this.emitChangeEvent),this.on(u.DrawEvent.Add,function(){F.addCount++}),this.on(u.DrawEvent.Edit,this.emitChangeEvent),this.on(u.DrawEvent.Remove,this.emitChangeEvent),this.on(u.DrawEvent.Clear,this.emitChangeEvent),this.on(u.DrawEvent.AddNode,this.saveHistory),this.on(u.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var F=this,Q=arguments.length>0&&arguments[0]!==void 0&&arguments[0],_e=null,Be=function(){var ot,Sn,js,ka=F.getData().find(function(Ud){var Ng;return(Ng=Ud.properties)===null||Ng===void 0?void 0:Ng.isActive})||null;((ot=_e)===null||ot===void 0||(Sn=ot.properties)===null||Sn===void 0?void 0:Sn.id)!==(ka==null||(js=ka.properties)===null||js===void 0?void 0:js.id)&&(_e=ka,F.emit(u.DrawEvent.Select,ka))};this.source.on(u.SourceEvent.Change,Be),Q&&Be()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(u.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(u.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var F=this,Q=this.options.keyboard||{},_e=Q.revert,Be=Q.redo,ot=Q.remove;ot&&F2.bind(ot,function(){F.removeActiveFeature()}),this.options.history&&(_e&&F2.bind(_e,this.revertHistory),Be&&F2.bind(Be,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var F=this.options.keyboard||{},Q=F.revert,_e=F.redo,Be=F.remove;Be&&F2.unbind(Be),this.options.history&&(Q&&F2.unbind(Q),_e&&F2.unbind(_e))}},{key:"emitChangeEvent",value:function(){this.emit(u.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(u.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(u.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return m1(DC(this.render).map(function(F){var Q=P1(F,2);return[Q[0],Q[1].getLayers()]}))}},{key:"getTargetFeature",value:function(F){var Q,_e,Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),ot=null;return F&&(ot=(Q=Be.find(function(Sn){var js;return Sn.properties.id===(typeof F=="string"?F:(js=F.properties)===null||js===void 0?void 0:js.id)}))!==null&&Q!==void 0?Q:null,!ot&&F instanceof Object&&(ot=(_e=Be.find(function(Sn){return nn(F.geometry,Sn.geometry)}))!==null&&_e!==void 0?_e:null)),ot}},{key:"removeActiveFeature",value:function(){var F=this.getData().find(function(Q){var _e=Q.properties;return _e.isActive||_e.isDraw});return F&&this.removeFeature(F),F}},{key:"removeFeature",value:function(F){var Q=this.getData(),_e=this.getTargetFeature(F);_e&&(this.setData(Q.filter(function(Be){return!Ww(_e,Be)})),this.emit(u.DrawEvent.Remove,F,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(F){return F.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var F,Q={},_e=function(ot,Sn){var js=typeof Symbol!="undefined"&&ot[Symbol.iterator]||ot["@@iterator"];if(!js){if(Array.isArray(ot)||(js=sy(ot))||Sn&&ot&&typeof ot.length=="number"){js&&(ot=js);var ka=0,Ud=function(){};return{s:Ud,n:function(){return ot.length>ka?{done:!1,value:ot[ka++]}:{done:!0}},e:function(Gv){throw Gv},f:Ud}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ng,N0=!0,U0=!1;return{s:function(){js=js.call(ot)},n:function(){var Gv=js.next();return N0=Gv.done,Gv},e:function(Gv){U0=!0,Ng=Gv},f:function(){try{N0||js.return==null||js.return()}finally{if(U0)throw Ng}}}}(this.getRenderTypes());try{for(_e.s();!(F=_e.n()).done;){var Be=F.value;Q[Be]=new z[Be](this.scene,{style:this.options.style[Be]})}}catch(ot){_e.e(ot)}finally{_e.f()}return Q}},{key:"getCommonOptions",value:function(F){return{initialData:[],autoActive:!0,cursor:Jv(b),editable:!0,style:Jv(pe),multiple:!0,history:Jv(r0),keyboard:Jv(No),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(F){this.cursor.setCursor(F)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var F=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){F.emit(u.DrawEvent.Enable,F)},0)}},{key:"disable",value:function(){var F=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){F.emit(u.DrawEvent.Disable,F)},0)}},{key:"clear",value:function(){var F=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(u.DrawEvent.Clear,this),F&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(F){F.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(F){F.hide()})}},{key:"destroy",value:function(){var F,Q=this;Object.values(this.render).forEach(function(Be){Be.destroy()}),Object.values(u.RenderEvent).forEach(function(Be){Object.values(Q.render).forEach(function(ot){ot.removeAllListeners(Be)}),Q.sceneRender.removeAllListeners(Be)}),setTimeout(function(){Object.values(u.DrawEvent).forEach(function(Be){Q.removeAllListeners(Be)})},0),(F=this.popup)===null||F===void 0||F.destroy(),this.cursor.destroy(),this.emit(u.DrawEvent.Destroy,this);var _e=P.instances.indexOf(this);_e>-1&&P.instances.splice(_e,1)}}]),P}(aC);Ey.instances=[];var xv=function(at){var C=at==null?0:at.length;return C?at[C-1]:void 0},dy=function(at){Ga(P,at);var C=Wv(P);function P(){return bu(this,P),C.apply(this,arguments)}return In(P,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(F){return F.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(F){return F.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(F){return F.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(F){return this.source.setRenderData("point",F)}},{key:"bindPointRenderEvent",value:function(){var F,Q,_e,Be,ot,Sn;(F=this.pointRender)===null||F===void 0||F.on(u.RenderEvent.UnClick,this.onPointCreate.bind(this)),(Q=this.pointRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(_e=this.pointRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(Be=this.pointRender)===null||Be===void 0||Be.on(u.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(ot=this.pointRender)===null||ot===void 0||ot.on(u.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Sn=this.pointRender)===null||Sn===void 0||Sn.on(u.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(F){var Q=this.options,_e=Q.autoActive,Be=Q.editable,ot=kw(F);return this.setPointData(function(Sn){return XS({target:ot,data:[].concat(Z1(Sn),[ot]),targetHandler:function(js){js.properties=Rs(Rs({},js.properties),{},{isHover:Be,isActive:_e&&Be})},otherHandler:function(js){js.properties=Rs(Rs({},js.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),ot}},{key:"handlePointHover",value:function(F){return this.setCursor("pointHover"),Ww(F,this.hoverPoint)||this.setPointData(function(Q){return XS({target:F,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),F}},{key:"handlePointUnHover",value:function(F){return this.resetCursor(),this.setPointData(function(Q){return Q.map(function(_e){return _e.properties.isHover=!1,_e})}),F}},{key:"handlePointDragStart",value:function(F){return this.setPointData(function(Q){return XS({target:F,data:Q,targetHandler:function(_e){_e.properties=Rs(Rs({},_e.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(_e){_e.properties=Rs(Rs({},_e.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),F}},{key:"handlePointDragging",value:function(F,Q){return this.setPointData(function(_e){return XS({target:F,data:_e,targetHandler:function(Be){Be.geometry.coordinates=jn(Q)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),F}},{key:"handlePointDragEnd",value:function(F){return this.setPointData(function(Q){return XS({target:F,data:Q,targetHandler:function(_e){_e.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),F}},{key:"onPointCreate",value:function(F){return this.handleCreatePoint(jn(xt(F)))}},{key:"onPointMouseMove",value:function(F){return this.handlePointHover(F.feature)}},{key:"onPointMouseOut",value:function(F){return this.handlePointUnHover(F.feature)}},{key:"onPointDragStart",value:function(F){if(this.options.editable)return this.handlePointDragStart(F.feature)}},{key:"onPointDragging",value:function(F){var Q=this.dragPoint;if(this.options.editable&&Q)return this.handlePointDragging(Q,xt(F))}},{key:"onPointDragEnd",value:function(F){var Q=this.dragPoint;if(this.options.editable&&Q)return this.handlePointDragEnd(Q)}},{key:"enablePointRenderAction",value:function(){var F,Q,_e,Be,ot=this.options.editable;this.enabled&&((Q=this.pointRender)===null||Q===void 0||Q.enableCreate()),(F=this.pointRender)===null||F===void 0||F.enableClick(),ot&&((_e=this.pointRender)===null||_e===void 0||_e.enableHover(),(Be=this.pointRender)===null||Be===void 0||Be.enableDrag())}},{key:"disablePointRenderAction",value:function(){var F,Q,_e,Be;(F=this.pointRender)===null||F===void 0||F.disableCreate(),(Q=this.pointRender)===null||Q===void 0||Q.disableHover(),(_e=this.pointRender)===null||_e===void 0||_e.disableDrag(),(Be=this.pointRender)===null||Be===void 0||Be.disableClick()}}]),P}(Ey),c_=function(at){Ga(P,at);var C=Wv(P);function P(){return bu(this,P),C.apply(this,arguments)}return In(P,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(F){return Rs(Rs({},c1(Lu(P.prototype),"getCommonOptions",this).call(this,F)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var F,Q,_e;(F=this.midPointRender)===null||F===void 0||F.on(u.RenderEvent.Click,this.onMidPointClick.bind(this)),(Q=this.midPointRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(_e=this.midPointRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(F){return this.source.setRenderData("midPoint",F)}},{key:"getMidPointsByLine",value:function(F){var Q=F.properties.nodes;if(!this.options.showMidPoint||2>Q.length)return[];for(var _e=[],Be=0;Q.length-1>Be;Be++){var ot,Sn,js,ka,Ud=Px(Ov([Q[Be],Q[Be+1]]),{properties:{id:__("midPoint"),startId:(ot=(Sn=Q[Be].properties)===null||Sn===void 0?void 0:Sn.id)!==null&&ot!==void 0?ot:"",endId:(js=(ka=Q[Be+1].properties)===null||ka===void 0?void 0:ka.id)!==null&&js!==void 0?js:""}});_e.push(Ud)}return _e}},{key:"onMidPointHover",value:function(F){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(F){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var F,Q;(F=this.midPointRender)===null||F===void 0||F.enableClick(),(Q=this.midPointRender)===null||Q===void 0||Q.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var F,Q;(F=this.midPointRender)===null||F===void 0||F.disableClick(),(Q=this.midPointRender)===null||Q===void 0||Q.disableHover()}}]),P}(dy),Hy={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},nx={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},bx={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},Rx=Rs(Rs({},bx),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),R2={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Dx={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},rw={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},Dw=function(at){Ga(P,at);var C=Wv(P);function P(){var F;bu(this,P);for(var Q=arguments.length,_e=Array(Q),Be=0;Q>Be;Be++)_e[Be]=arguments[Be];return(F=C.call.apply(C,[this].concat(_e))).previousPosition=[0,0],F}return In(P,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(F){return F.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(F){return F.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(F){var Q=F.properties;return!Q.isDraw&&Q.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(F){return F.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(F){var Q=Rs(Rs({},this.getCommonOptions(F)),{},{showMidPoint:!0,distanceOptions:!1,helper:Jv(nx)});return F.distanceOptions&&(Q.distanceOptions=Rs(Rs({},xd),Q.distanceOptions)),F.adsorbOptions&&(Q.adsorbOptions=Rs(Rs({},Sr),Q.adsorbOptions)),Q}},{key:"getAdsorbPosition",value:function(F){var Q=this.options.adsorbOptions;if(typeof Q=="boolean")return F;var _e=this.scene,Be=Q.pointAdsorbPixel,ot=Q.lineAdsorbPixel,Sn=null,js=oh(Q.data,this,F),ka=js.points,Ud=js.lines;return ka.length&&Be>0&&(Sn=cu(F,ka,Q,_e)),!Sn&&Ud.length&&ot>0&&(Sn=m0(F,Ud,Q,_e)),Sn}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(u.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var F;c1(Lu(P.prototype),"bindPointRenderEvent",this).call(this),(F=this.pointRender)===null||F===void 0||F.on(u.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var F,Q,_e,Be,ot,Sn;(F=this.lineRender)===null||F===void 0||F.on(u.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(Q=this.lineRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(_e=this.lineRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(Be=this.lineRender)===null||Be===void 0||Be.on(u.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(ot=this.lineRender)===null||ot===void 0||ot.on(u.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Sn=this.lineRender)===null||Sn===void 0||Sn.on(u.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(F,Q){var _e=Q.showTotalDistance,Be=Q.format;return Q.showDashDistance?F.map(function(ot){return IC(ot,{showTotalDistance:_e,format:Be},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(F,Q){var _e=Q.showTotalDistance,Be=Q.format,ot=Q.showWhen,Sn=[];if(ot.includes("active")){var js=F.filter(function(Ud){return Ud.properties.isActive&&Ud.properties.nodes.length>1});Sn.push.apply(Sn,Z1(js.map(function(Ud){return IC(Ud,{showTotalDistance:_e,format:Be},{isActive:!0})}).flat()))}if(ot.includes("normal")){var ka=F.filter(function(Ud){return!Ud.properties.isActive&&Ud.properties.nodes.length>1});Sn.push.apply(Sn,Z1(ka.map(function(Ud){return IC(Ud,{showTotalDistance:_e,format:Be})}).flat()))}return Sn}},{key:"getDistanceTexts",value:function(){var F=this.options.distanceOptions;if(!F)return[];var Q=[],_e=F.showWhen,Be=F.showDashDistance,ot=F.format,Sn=F.showTotalDistance;return Q.push.apply(Q,Z1(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:ot,showDashDistance:Be})).concat(Z1(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Sn,format:ot,showWhen:_e})))),Q}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(F){var Q=Bv([F],{isActive:!0,isDraw:!0});return this.setLineData(function(_e){return XS({target:Q,data:[].concat(Z1(_e),[Q]),otherHandler:function(Be){Be.properties.isActive=!1}})}),this.setPointData([F]),this.setTextData(this.getAllTexts()),Q}},{key:"syncLineNodes",value:function(F,Q){return F.properties.nodes=Q,F.geometry.coordinates=kg(Ov(Q)),this.setLineData(function(_e){return _e.map(function(Be){return Ww(Be,F)?F:Be})}),Ww(this.editLine,F)&&this.setMidPointData(this.getMidPointsByLine(F)),this.setPointData(F.properties.nodes),this.setTextData(this.getAllTexts()),F}},{key:"setActiveLine",value:function(F){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(_e){return XS({target:F,data:_e,targetHandler:function(Be){Be.properties=Rs(Rs({},Be.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(Be){Be.properties=Rs(Rs({},Be.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(F.properties.nodes.map(function(_e){return _e.properties=Rs(Rs({},_e.properties),{},{isHover:!1,isActive:!1}),_e})),this.setMidPointData(this.getMidPointsByLine(F)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),F}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(F){return F.properties=Rs(Rs({},F.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),F}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(F){return this.clearActiveLine(),F}},{key:"handleLineHover",value:function(F){if(!this.drawLine)return this.setCursor("lineHover"),Ww(F,this.hoverLine)||this.setLineData(function(Q){return XS({target:F,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),F}},{key:"handleLineUnHover",value:function(F){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(Q){return Q.map(function(_e){return _e.properties.isHover=!1,_e})}),F}},{key:"handleLineDragStart",value:function(F){return this.setActiveLine(F,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),F}},{key:"handleLineDragging",value:function(F,Q){var _e=Q.lng,Be=Q.lat,ot=F.properties.nodes,Sn=P1(this.previousPosition,2),js=Sn[0],ka=Sn[1];return ot.forEach(function(Ud){var Ng=Ud.geometry.coordinates;Ud.geometry.coordinates=[Ng[0]+_e-js,Ng[1]+Be-ka]}),this.syncLineNodes(F,ot),this.setActiveLine(F,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[_e,Be],F}},{key:"handleLineDragEnd",value:function(F){return F.properties.isDrag=!1,this.setLineData(function(Q){return Q}),this.scene.setMapStatus({dragEnable:!0}),F}},{key:"resetAdsorbLngLat",value:function(F){if(this.options.adsorbOptions){var Q=this.getAdsorbPosition(jn(xt(F)));return Q&&Hv(F,Q),Q}}},{key:"onPointCreate",value:function(F){if(!this.editLine){this.resetAdsorbLngLat(F);var Q=c1(Lu(P.prototype),"onPointCreate",this).call(this,F),_e=this.drawLine;if(Q)return _e?(this.syncLineNodes(_e,[].concat(Z1(_e.properties.nodes),[Q])),this.setDashLineData([])):this.handleCreateLine(Q),Q}}},{key:"onPointDragStart",value:function(F){if(this.editLine)return this.setHelper("pointDrag"),c1(Lu(P.prototype),"onPointDragStart",this).call(this,F)}},{key:"onPointDragging",value:function(F){var Q=c1(Lu(P.prototype),"onPointDragging",this).call(this,F);if(Q){var _e=this.resetAdsorbLngLat(F);_e&&(Q.geometry.coordinates=Jv(_e))}var Be=this.editLine;return Be&&Q&&(this.syncLineNodes(Be,Be.properties.nodes.map(function(ot){return Ww(Q,ot)?Q:ot})),this.setActiveLine(Be)),Q}},{key:"onPointDragEnd",value:function(F){if(this.editLine){var Q=c1(Lu(P.prototype),"onPointDragEnd",this).call(this,F);return this.setPointData(function(_e){return _e.map(function(Be){return Be.properties.isActive=!1,Be})}),this.setHelper("pointHover"),Q}}},{key:"onLineUnClick",value:function(F){var Q=this.editLine;if(Q)return this.handleLineUnClick(Q)}},{key:"onLineMouseMove",value:function(F){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(F.feature)}},{key:"onLineMouseOut",value:function(F){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(F.feature)}},{key:"onLineDragStart",value:function(F){if(this.options.editable&&!this.drawLine)return this.previousPosition=Et(F),this.setHelper("lineDrag"),this.handleLineDragStart(F.feature)}},{key:"onLineDragging",value:function(F){var Q=this.dragLine;if(Q)return this.handleLineDragging(Q,xt(F))}},{key:"onLineDragEnd",value:function(F){var Q=this.dragLine;if(Q)return this.setHelper("lineHover"),this.handleLineDragEnd(Q)}},{key:"onPointMouseMove",value:function(F){var Q=c1(Lu(P.prototype),"onPointMouseMove",this).call(this,F);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),Q}},{key:"onPointMouseOut",value:function(F){var Q=c1(Lu(P.prototype),"onPointMouseOut",this).call(this,F);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),Q}},{key:"onMidPointHover",value:function(F){c1(Lu(P.prototype),"onMidPointHover",this).call(this,F),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(F){c1(Lu(P.prototype),"onMidPointUnHover",this).call(this,F),this.setHelper(null)}},{key:"onPointClick",value:function(F){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(F){return this.source.setRenderData("line",F)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(F){return this.source.setRenderData("text",F)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(F){return this.source.setRenderData("dashLine",F)}},{key:"onMidPointClick",value:function(F){var Q=this.editLine,_e=F.feature;if(Q&&_e&&!this.dragPoint){var Be=Q.properties.nodes,ot=_e.properties,Sn=ot.startId,js=ot.endId,ka=Be.findIndex(function(N0){return N0.properties.id===Sn}),Ud=Be.findIndex(function(N0){return N0.properties.id===js});if(ka>-1&&Ud>-1){var Ng=kw(_e.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),Be.splice(Ud,0,Ng),Q.geometry.coordinates=kg(Ov(Be)),this.syncLineNodes(Q,Be),this.setActiveLine(Q),Ng}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var F,Q,_e,Be=this.options.editable;(F=this.lineRender)===null||F===void 0||F.enableUnClick(),Be&&((Q=this.lineRender)===null||Q===void 0||Q.enableHover(),(_e=this.lineRender)===null||_e===void 0||_e.enableDrag())}},{key:"disableLineRenderAction",value:function(){var F,Q,_e;(F=this.lineRender)===null||F===void 0||F.disableUnClick(),(Q=this.lineRender)===null||Q===void 0||Q.disableHover(),(_e=this.lineRender)===null||_e===void 0||_e.disableDrag()}}]),P}(c_),Y2=function(at){Ga(P,at);var C=Wv(P);function P(){return bu(this,P),C.apply(this,arguments)}return In(P,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(F){return F.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(F){return F.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(F){var Q=F.properties;return!Q.isDraw&&Q.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(F){return F.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var F,Q;return(F=(Q=this.render.polygon)===null||Q===void 0?void 0:Q.getLayers())!==null&&F!==void 0?F:[]}},{key:"getDefaultOptions",value:function(F){var Q=Rs(Rs({},c1(Lu(P.prototype),"getDefaultOptions",this).call(this,F)),{},{areaOptions:!1,helper:Jv(bx)});return F.areaOptions&&(Q.areaOptions=Rs(Rs({},Yg),F.areaOptions)),Q}},{key:"getAreaTexts",value:function(F){var Q=this.options.areaOptions;if(!Q)return[];var _e=Q.format,Be=Q.showWhen,ot=[],Sn=F.filter(function(js){return js.geometry.coordinates[0].length>=4});return Be.includes("active")&&Sn.filter(function(js){return js.properties.isActive}).forEach(function(js){ot.push(_T(js,{format:_e},{isActive:!0}))}),Be.includes("normal")&&Sn.filter(function(js){return!js.properties.isActive}).forEach(function(js){ot.push(_T(js,{format:_e},{isActive:!1}))}),ot}},{key:"getAllTexts",value:function(){return[].concat(Z1(c1(Lu(P.prototype),"getAllTexts",this).call(this)),Z1(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(F){return this.source.setRenderData("polygon",F)}},{key:"handleCreatePolygon",value:function(F,Q){var _e=u2(F,{nodes:F,line:Q,isActive:!0,isDraw:!0});return this.setPolygonData(function(Be){return XS({target:_e,data:[].concat(Z1(Be),[_e]),otherHandler:function(ot){ot.properties.isActive=!1}})}),_e}},{key:"handlePolygonUnClick",value:function(F){return this.clearActivePolygon(),F}},{key:"handlePolygonHover",value:function(F){return this.setCursor("polygonHover"),Ww(F,this.hoverPolygon)||this.setPolygonData(function(Q){return XS({target:F,data:Q,targetHandler:function(_e){_e.properties.isHover=!0},otherHandler:function(_e){_e.properties.isHover=!1}})}),F}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(F){return F.map(function(Q){return Q.properties.isHover=!1,Q})})}},{key:"handlePolygonDragStart",value:function(F){return this.setActivePolygon(F,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),F}},{key:"bindPolygonRenderEvent",value:function(){var F,Q,_e,Be;(F=this.polygonRender)===null||F===void 0||F.on(u.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(Q=this.polygonRender)===null||Q===void 0||Q.on(u.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(_e=this.polygonRender)===null||_e===void 0||_e.on(u.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(Be=this.polygonRender)===null||Be===void 0||Be.on(u.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(F,Q){var _e=kg(Ov([].concat(Z1(Q),[$2(Q)]))),Be=F.properties,ot=Be.line;if(F.properties.nodes=Q,F.geometry.coordinates=[xE(Iv(_e))?_e:_e.reverse()],this.setPolygonData(function(Ng){return Ng.map(function(N0){return Ww(N0,F)?F:N0})}),!Ww(this.drawPolygon,F)){var Sn=ot.properties.nodes,js=Z1(Q),ka=$2(js);js.push(Sn.length===Q.length?kw(ka.geometry.coordinates):xv(Sn));var Ud=xv(js);nn(ka.geometry.coordinates,Ud.geometry.coordinates)||(Ud.geometry.coordinates=Jv(ka.geometry.coordinates)),this.syncLineNodes(ot,js)}return F}},{key:"setActivePolygon",value:function(F){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(F.properties.line,Q),this.setPolygonData(function(_e){return XS({target:F,data:_e,targetHandler:function(Be){Be.properties=Rs(Rs({},Be.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(Be){Be.properties=Rs(Rs({},Be.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),F}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(F){return F.map(function(Q){return Q.properties=Rs(Rs({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragStart",this).call(this,F),_e=this.getPolygonData().find(function(Be){return Ww(Be.properties.line,Q)});return _e&&(this.setActivePolygon(_e,{isDrag:!0}),this.emit(u.DrawEvent.DragStart,_e,this.getPolygonData())),Q}},{key:"onLineUnClick",value:function(F){return this.editLine}},{key:"onLineDragEnd",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragEnd",this).call(this,F),_e=this.dragPolygon;return Q&&_e&&(_e.properties.isDrag=!1,this.emit(u.DrawEvent.DragEnd,_e,this.getPolygonData()),this.emit(u.DrawEvent.Edit,_e,this.getPolygonData())),Q}},{key:"onPolygonUnClick",value:function(F){var Q=this.editPolygon;if(Q)return this.handlePolygonUnClick(Q)}},{key:"onPolygonHover",value:function(F){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(F.feature)}},{key:"onPolygonUnHover",value:function(F){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(F){if(this.options.editable&&!this.drawPolygon){var Q=F.feature;return this.previousPosition=Et(F),this.setHelper("polygonDrag"),this.emit(u.DrawEvent.DragStart,Q,this.getPolygonData()),this.handlePolygonDragStart(Q)}}},{key:"onMidPointClick",value:function(F){var Q=this.editPolygon,_e=c1(Lu(P.prototype),"onMidPointClick",this).call(this,F);if(_e&&Q){var Be=Q.properties.line.properties.nodes;this.syncPolygonNodes(Q,Be.slice(0,Be.length-1)),this.setActivePolygon(Q)}return _e}},{key:"onPointDragEnd",value:function(F){var Q=this.editPolygon,_e=c1(Lu(P.prototype),"onPointDragEnd",this).call(this,F);return _e&&Q&&this.emit(u.DrawEvent.Edit,Q,this.getPolygonData()),_e}},{key:"enablePolygonRenderAction",value:function(){var F,Q,_e,Be=this.options.editable;(F=this.polygonRender)===null||F===void 0||F.enableUnClick(),Be&&((Q=this.polygonRender)===null||Q===void 0||Q.enableHover(),(_e=this.polygonRender)===null||_e===void 0||_e.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var F,Q,_e;(F=this.polygonRender)===null||F===void 0||F.disableUnClick(),(Q=this.polygonRender)===null||Q===void 0||Q.disableHover(),(_e=this.polygonRender)===null||_e===void 0||_e.disableDrag()}},{key:"bindEnableEvent",value:function(){c1(Lu(P.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){c1(Lu(P.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){c1(Lu(P.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(F){var Q=this.getTargetFeature(F);Q?this.setActivePolygon(Q):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var F=this.getPolygonData();this.drawPolygon&&(F=F.filter(function(Q){return!Q.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(Q){return Q.filter(function(_e){return!_e.properties.isDraw})}),this.setTextData(function(Q){return Q.filter(function(_e){return!_e.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(F.map(function(Q){return Q.properties=Rs(Rs({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q}))}}]),P}(Dw),qw=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).onSceneDragStart=_e.onSceneDragStart.bind(Cv(_e)),_e.onSceneDragEnd=_e.onSceneDragEnd.bind(Cv(_e)),_e}return In(P,[{key:"drawLine",get:function(){var F;return(F=this.drawPolygon)===null||F===void 0?void 0:F.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(F){var Q=Rs(Rs({},c1(Lu(P.prototype),"getDefaultOptions",this).call(this,F)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:Jv(Rx)});return F.trigger==="drag"&&(Q.helper=Rs(Rs({},Q.helper),R2)),Q}},{key:"getMidPointsByLine",value:function(F){return[]}},{key:"handleCreatePolygon",value:function(F,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=Q.properties.nodes;return u2(Be.slice(0,Be.length-1),Rs({nodes:F,line:Q},_e))}},{key:"handleFirstNodeCreate",value:function(F){var Q=kw(F.geometry.coordinates),_e=this.handleCreatePolygonLine(F,Q,{isDraw:!0,isActive:!0}),Be=this.handleCreatePolygon([F,Q],_e,{isDraw:!0,isActive:!0});return this.setPolygonData(function(ot){return XS({target:Be,data:[].concat(Z1(ot),[Be]),targetHandler:function(Sn){Sn.properties=Rs(Rs({},Sn.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(u.DrawEvent.AddNode,F,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),F}},{key:"handleLastNodeCreate",value:function(F){var Q=this.options,_e=Q.autoActive,Be=Q.editable,ot=this.drawPolygon;return ot&&(this.setLineData(function(Sn){return[].concat(Z1(Sn),[ot.properties.line])}),this.setActivePolygon(ot),_e&&Be||this.handlePolygonUnClick(ot),this.emit(u.DrawEvent.Add,ot,this.getPolygonData()),this.emit(u.DrawEvent.AddNode,ot.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(Be?_e?"pointHover":"polygonHover":this.addable?"draw":null)),F}},{key:"onPointCreate",value:function(F){var Q=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var _e=this.drawPolygon,Be=Et(F),ot=this.handleCreatePoint(Be);return _e?requestAnimationFrame(function(){Q.handleLastNodeCreate(ot)}):this.handleFirstNodeCreate(ot),ot}}},{key:"setActivePolygon",value:function(F){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(F.properties.line,Q),this.setPolygonData(function(Be){return XS({target:F,data:Be,targetHandler:function(ot){ot.properties=Rs(Rs({},ot.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},Q)},otherHandler:function(ot){ot.properties=Rs(Rs({},ot.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(F.properties.nodes),this.setDashLineData([]);var _e=this.getAllTexts();return this.setTextData(_e),F}},{key:"onPointDragging",value:function(F){var Q=this.dragPoint;if(Q){var _e=this.handlePointDragging(Q,xt(F)),Be=this.editPolygon;return _e&&Be&&(this.syncPolygonNodes(Be,Be.properties.nodes.map(function(ot){return Ww(ot,_e)?_e:ot})),this.setActivePolygon(Be)),_e}}},{key:"onSceneDragStart",value:function(F){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Et(F))))}},{key:"onSceneDragEnd",value:function(F){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Et(F))))}},{key:"onSceneMouseMove",value:function(F){var Q=this.drawPolygon;if(Q){var _e=Q.properties.nodes,Be=$2(_e),ot=xv(_e);ot.geometry.coordinates=Et(F),this.syncPolygonNodes(Q,[Be,ot]),this.setDashLineData([Q.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(u.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(u.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(u.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(u.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){c1(Lu(P.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){c1(Lu(P.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){c1(Lu(P.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),P}(Y2),z1=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return In(P,[{key:"getDefaultOptions",value:function(F){var Q=Rs(Rs({},c1(Lu(P.prototype),"getDefaultOptions",this).call(this,F)),{},{showMidPoint:!1,circleSteps:60});return Q.distanceOptions&&(Q.distanceOptions.showTotalDistance=!0,Q.distanceOptions.showOnRadius===void 0&&(Q.distanceOptions.showOnRadius=!0)),Q.helper&&(Q.helper=Rs(Rs({},Q.helper),rw)),Q}},{key:"getDistanceTexts",value:function(){var F=this.options.distanceOptions;if(!F)return[];var Q=[],_e=F.showWhen,Be=F.showDashDistance,ot=F.format,Sn=F.showTotalDistance;return Q.push.apply(Q,Z1(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:ot,showDashDistance:Be})).concat(Z1(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Sn,format:ot,showWhen:_e})))),Q}},{key:"setData",value:function(F){var Q=this,_e=F.map(function(Be){var ot,Sn,js;Be.properties=Rs(Rs({},Yw()),Be.properties);var ka=(ot=Be.properties)===null||ot===void 0?void 0:ot.nodes;if(((Sn=ka)===null||Sn===void 0?void 0:Sn.length)!==2){var Ud=P1(Px(Be).geometry.coordinates,2),Ng=Ud[0],N0=Ud[1],U0=U1(Be),Gv=U0[2],Zv=(U0[1]+U0[3])/2;ka=[kw([Ng,N0]),kw([Gv,Zv])],Be.properties.nodes=ka}var o1=ka[0],qv=ka[1],Sv=!!(!((js=Be.properties)===null||js===void 0)&&js.isActive),ny=Be.properties.line;return ny||(ny=Q.handleCreatePolygonLine(o1,qv,{isActive:Sv}),Be.properties.line=ny),Q.handleCreatePolygon([o1,qv],ny,Rs(Rs({},Be.properties),{},{isActive:Sv}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:_e,line:_e.map(function(Be){return Be.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(F,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=this.getBoundaryPositions(F,Q).map(function(ot){return kw(ot)});return Bv(Be,_e)}},{key:"syncPolygonNodes",value:function(F,Q){var _e=F.properties.line,Be=this.getBoundaryPositions(Q[0],Q[1]);return F.properties.nodes=Q,F.geometry.coordinates=[Be],this.setPolygonData(function(ot){return ot.map(function(Sn){return Ww(Sn,F)?F:Sn})}),this.setPointData(F.properties.isDraw?[Q[0]]:Q),_e.properties.nodes.forEach(function(ot,Sn){ot.geometry.coordinates=Be[Sn]}),_e.geometry.coordinates=Be,F}},{key:"onLineDragging",value:function(F){var Q=this.dragPolygon,_e=P1(this.previousPosition,2),Be=_e[0],ot=_e[1],Sn=c1(Lu(P.prototype),"onLineDragging",this).call(this,F);if(Q){var js=P1(Et(F),2),ka=js[0],Ud=js[1];Q.properties.nodes.forEach(function(Ng){var N0=P1(Ng.geometry.coordinates,2);Ng.geometry.coordinates=[N0[0]+ka-Be,N0[1]+Ud-ot]}),this.syncPolygonNodes(Q,Q.properties.nodes),this.setActivePolygon(Q,{isDrag:!0}),this.emit(u.DrawEvent.Dragging,Q,this.getPolygonData())}return Sn}},{key:"getBoundaryPositions",value:function(F,Q){for(var _e=this.options.circleSteps,Be=dx(F,Q,{units:"meters"}),ot=[],Sn=0;_e>Sn;Sn++)ot.push(Ow(F,Be,-360*Sn/_e,{units:"meters"}).geometry.coordinates);return ot.push(ot[0]),ot}}]),P}(qw),BS=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).drawLineFinish=function(){var Be,ot=_e.drawLine,Sn=(Be=ot==null?void 0:ot.properties.nodes)!==null&&Be!==void 0?Be:[];if(ot&&(Sn==null?void 0:Sn.length)>1){_e.setActiveLine(ot);var js=_e.options,ka=js.autoActive,Ud=js.editable;ka&&Ud||_e.handleLineUnClick(ot),_e.setHelper(Ud&&ka?"pointHover":_e.addable?"draw":null),_e.emit(u.DrawEvent.Add,ot,_e.getLineData())}},_e.sceneRender.on(u.RenderEvent.DblClick,_e.drawLineFinish),_e.bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e}return In(P,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var F,Q;return(F=(Q=this.render.line)===null||Q===void 0?void 0:Q.getLayers())!==null&&F!==void 0?F:[]}},{key:"setData",value:function(F){var Q=F.map(function(_e){var Be,ot;return _e.properties=Rs(Rs({},_C()),(Be=_e.properties)!==null&&Be!==void 0?Be:{}),!((ot=_e.properties.nodes)===null||ot===void 0)&&ot.length||(_e.properties.nodes=kg(_e).map(function(Sn){return kw(Sn)})),_e});this.source.setData({point:[],midPoint:[],dashLine:[],line:Q}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var F;c1(Lu(P.prototype),"bindPointRenderEvent",this).call(this),(F=this.pointRender)===null||F===void 0||F.on(u.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(F){var Q,_e=this,Be=this.drawLine,ot=(Q=Be==null?void 0:Be.properties.nodes)!==null&&Q!==void 0?Q:[],Sn=F.feature;if(Ww(Sn,xv(ot)))requestAnimationFrame(function(){_e.drawLineFinish()});else{var js=P1(Sn.geometry.coordinates,2);F.lngLat={lng:js[0],lat:js[1]},this.onPointCreate(F)}}},{key:"removeNode",value:function(F,Q){var _e,Be=this.getTargetFeature(Q),ot=this.getTargetFeature(F,(_e=Be==null?void 0:Be.properties.nodes)!==null&&_e!==void 0?_e:[]);if(Be&&ot){var Sn,js=(Sn=Be==null?void 0:Be.properties.nodes)!==null&&Sn!==void 0?Sn:[];if(3>js.length)return;this.syncLineNodes(Be,js.filter(function(ka){return!Ww(ot,ka)})),this.emit(u.DrawEvent.RemoveNode,ot,Be,this.getLineData()),this.emit(u.DrawEvent.Edit,Be,this.getLineData())}}},{key:"onPointContextMenu",value:function(F){var Q,_e=this.editLine,Be=F.feature,ot=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&ot.length>=3)return this.removeNode(Be,_e),this.scene.setMapStatus({dragEnable:!0}),Be}},{key:"onPointCreate",value:function(F){if(this.addable){var Q=c1(Lu(P.prototype),"onPointCreate",this).call(this,F);return Q&&(this.setHelper("drawFinish"),this.emit(u.DrawEvent.AddNode,Q,this.drawLine,this.getLineData())),Q}}},{key:"onPointDragEnd",value:function(F){var Q=this.editLine,_e=c1(Lu(P.prototype),"onPointDragEnd",this).call(this,F);return Q&&_e&&this.emit(u.DrawEvent.Edit,Q,this.getLineData()),_e}},{key:"onLineDragStart",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragStart",this).call(this,F);return Q&&this.emit(u.DrawEvent.DragStart,Q,this.getLineData()),Q}},{key:"onLineDragging",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragging",this).call(this,F);return Q&&this.emit(u.DrawEvent.Dragging,Q,this.getLineData()),Q}},{key:"onLineDragEnd",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragEnd",this).call(this,F);return Q&&(this.emit(u.DrawEvent.DragEnd,Q,this.getLineData()),this.emit(u.DrawEvent.Edit,Q,this.getLineData())),Q}},{key:"onMidPointClick",value:function(F){var Q=this.editLine,_e=c1(Lu(P.prototype),"onMidPointClick",this).call(this,F);return Q&&_e&&(this.emit(u.DrawEvent.Edit,Q,this.getLineData()),this.emit(u.DrawEvent.AddNode,_e,Q,this.getLineData())),_e}},{key:"onSceneMouseMove",value:function(F){var Q=this.drawLine;if(Q){var _e,Be=xv(Q.properties.nodes),ot=Et(F);this.options.adsorbOptions&&(ot=(_e=this.getAdsorbPosition(ot))!==null&&_e!==void 0?_e:ot),this.setDashLineData([e_([ot,Be.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(F){var Q=this.getTargetFeature(F);Q?this.setActiveLine(Q):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var F=this.getLineData();this.drawLine&&(F=F.filter(function(Q){return!Q.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(Q){return Q.filter(function(_e){return!_e.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(F.map(function(Q){return Q.properties=Rs(Rs({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q}))}},{key:"enablePointRenderAction",value:function(){var F;c1(Lu(P.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((F=this.pointRender)===null||F===void 0||F.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var F;c1(Lu(P.prototype),"disablePointRenderAction",this).call(this),(F=this.pointRender)===null||F===void 0||F.disableContextMenu()}},{key:"bindEnableEvent",value:function(){c1(Lu(P.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){c1(Lu(P.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){c1(Lu(P.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),P}(Dw),Cw=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).bindPointRenderEvent(),_e}return In(P,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(F){var Q=Rs(Rs({},this.getCommonOptions(F)),{},{helper:Jv(Hy),initialData:F.initialData});return Q.style.point=yu,Q}},{key:"bindEnableEvent",value:function(){c1(Lu(P.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){c1(Lu(P.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var F,Q;return(F=(Q=this.render.point)===null||Q===void 0?void 0:Q.getLayers())!==null&&F!==void 0?F:[]}},{key:"setData",value:function(F){this.setPointData(F.map(function(Q){var _e;return Q.properties=Rs(Rs({},Rw()),(_e=Q.properties)!==null&&_e!==void 0?_e:{}),Q}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(F){if(this.addable){var Q=c1(Lu(P.prototype),"onPointCreate",this).call(this,F);if(Q)return this.options.editable&&this.setHelper("pointHover"),this.emit(u.DrawEvent.Add,Q,this.getData()),Q}else this.setPointData(function(_e){return _e.map(function(Be){return Be.properties=Rs(Rs({},Be.properties),{},{isHover:!1,isActive:!1}),Be})})}},{key:"onPointMouseMove",value:function(F){var Q=c1(Lu(P.prototype),"onPointMouseMove",this).call(this,F);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),Q}},{key:"onPointMouseOut",value:function(F){var Q=c1(Lu(P.prototype),"onPointMouseOut",this).call(this,F);return this.setHelper(this.addable?"draw":null),Q}},{key:"onPointDragStart",value:function(F){var Q=c1(Lu(P.prototype),"onPointDragStart",this).call(this,F);return this.setHelper("pointDrag"),this.emit(u.DrawEvent.DragStart,Q,this.getData()),Q}},{key:"onPointDragging",value:function(F){var Q=c1(Lu(P.prototype),"onPointDragging",this).call(this,F);return Q&&this.options.editable&&this.emit(u.DrawEvent.Dragging,Q,this.getData()),Q}},{key:"onPointDragEnd",value:function(F){var Q=c1(Lu(P.prototype),"onPointDragEnd",this).call(this,F);return Q&&this.options.editable&&(this.setHelper("pointHover"),this.emit(u.DrawEvent.DragEnd,Q,this.getData()),this.emit(u.DrawEvent.Edit,Q,this.getData())),Q}},{key:"bindThis",value:function(){c1(Lu(P.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(F){}},{key:"setActiveFeature",value:function(F){var Q=this.getTargetFeature(F);this.setPointData(function(_e){return _e.map(function(Be){return Be.properties.isActive=Ww(Q,Be),Be})})}},{key:"resetFeatures",value:function(){this.setPointData(function(F){return F.map(function(Q){return Q.properties=Rs(Rs({},Q.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Q})})}}]),P}(dy),pC=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).drawPolygonFinish=function(){var Be,ot=_e.drawPolygon,Sn=(Be=ot==null?void 0:ot.properties.nodes)!==null&&Be!==void 0?Be:[];if(ot&&Sn.length>=3){ot.properties.isDraw=!1,_e.syncPolygonNodes(ot,Sn),_e.setActivePolygon(ot);var js=_e.options,ka=js.autoActive,Ud=js.editable;ka&&Ud||_e.handlePolygonUnClick(ot),_e.setHelper(Ud?ka?"pointHover":"polygonHover":_e.addable?"draw":null),_e.emit(u.DrawEvent.Add,ot,_e.getPolygonData())}},_e.sceneRender.on(u.RenderEvent.DblClick,_e.drawPolygonFinish),_e.bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return In(P,[{key:"getDefaultOptions",value:function(F){return Rs(Rs({},c1(Lu(P.prototype),"getDefaultOptions",this).call(this,F)),{},{liveUpdate:!1})}},{key:"setData",value:function(F){var Q=F.map(function(_e){var Be,ot;if(_e.properties=Rs(Rs({},Yw()),(Be=_e.properties)!==null&&Be!==void 0?Be:{}),!(!((ot=_e.properties.nodes)===null||ot===void 0)&&ot.length)){var Sn=kg(_e);Sn=Sn.slice(0,Sn.length-1),_e.properties.nodes=Sn.map(function(ka){return kw(ka)})}if(!_e.properties.line){var js=_e.properties.nodes;_e.properties.line=Bv([].concat(Z1(js),[kw($2(js).geometry.coordinates)]))}return _e});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Q,line:Q.map(function(_e){return _e.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(F){if(this.addable&&!this.dragPoint){var Q=c1(Lu(P.prototype),"onPointCreate",this).call(this,F),_e=this.drawPolygon,Be=this.drawLine;return Q&&(_e?(this.syncPolygonNodes(_e,[].concat(Z1(_e.properties.nodes),[Q])),this.setDashLineData([e_([Et(F),_e.properties.nodes[0].geometry.coordinates])]),_e.properties.nodes.length>1&&this.setHelper("drawFinish")):Be&&(this.handleCreatePolygon([Q],Be),this.setHelper("drawContinue")),this.emit(u.DrawEvent.AddNode,Q,_e,this.getPolygonData())),Q}}},{key:"onPointClick",value:function(F){var Q=this,_e=this.drawPolygon,Be=F.feature;if(_e){var ot=_e.properties.nodes;if(ot.length<3||!Ww($2(ot),Be)&&!Ww(xv(ot),Be)){var Sn=P1(Be.geometry.coordinates,2);F.lngLat={lng:Sn[0],lat:Sn[1]},this.onPointCreate(F)}else requestAnimationFrame(function(){Q.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(F){var Q=this.dragPoint,_e=this.editPolygon;if(Q&&_e){var Be=_e.properties.line;Be.properties.nodes=Be.properties.nodes.map(function(N0){return Ww(N0,Q)?Q:N0});var ot=Be.properties.nodes,Sn=ot.slice(0,ot.length-1),js=$2(ot),ka=xv(ot),Ud=Ww(js,Q)||Ww(ka,Q);if(Ud&&(js.geometry.coordinates=ka.geometry.coordinates=Et(F)),this.options.adsorbOptions&&Ud){var Ng=this.resetAdsorbLngLat(F);Ng&&(js.geometry.coordinates=ka.geometry.coordinates=Ng)}c1(Lu(P.prototype),"onPointDragging",this).call(this,F),this.syncPolygonNodes(_e,Sn),this.setActivePolygon(_e)}return Q}},{key:"onLineDragging",value:function(F){var Q=this.dragPolygon,_e=c1(Lu(P.prototype),"onLineDragging",this).call(this,F);if(_e&&Q){var Be=_e.properties.nodes;this.syncPolygonNodes(Q,Be.slice(0,Be.length-1)),this.emit(u.DrawEvent.Dragging,Q,this.getPolygonData())}return _e}},{key:"onMidPointClick",value:function(F){var Q=c1(Lu(P.prototype),"onMidPointClick",this).call(this,F),_e=this.editPolygon;return Q&&_e&&(this.emit(u.DrawEvent.Edit,_e,this.getPolygonData()),this.emit(u.DrawEvent.AddNode,Q,_e,this.getPolygonData())),Q}},{key:"onSceneMouseMove",value:function(F){var Q,_e=this.drawPolygon,Be=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&Be.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(F);var ot=Et(F),Sn=[];if(Sn.push(e_([ot,$2(Be).geometry.coordinates])),Be.length>1&&Sn.push(e_([ot,xv(Be).geometry.coordinates])),this.options.liveUpdate&&Be.length>=2){var js=kg(Ov(Be));_e.geometry.coordinates=[[].concat(Z1(js),[ot,js[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Sn),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(F,Q){var _e,Be=this.getTargetFeature(Q),ot=this.getTargetFeature(F,(_e=Be==null?void 0:Be.properties.nodes)!==null&&_e!==void 0?_e:[]);if(Be&&ot){var Sn,js=(Sn=Be==null?void 0:Be.properties.nodes)!==null&&Sn!==void 0?Sn:[];if(4>js.length)return;this.syncPolygonNodes(Be,js.filter(function(ka){return!Ww(ot,ka)})),this.emit(u.DrawEvent.RemoveNode,ot,Be,this.getLineData()),this.emit(u.DrawEvent.Edit,Be,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(F){var Q,_e=this.editPolygon,Be=F.feature,ot=(Q=_e==null?void 0:_e.properties.nodes)!==null&&Q!==void 0?Q:[];if(_e&&ot.length>=4)return ot.find(function(Sn){return Ww(Sn,Be)})||(Be=ot[0]),this.removeNode(Be,_e),Be}},{key:"bindPointRenderEvent",value:function(){var F;c1(Lu(P.prototype),"bindPointRenderEvent",this).call(this),(F=this.pointRender)===null||F===void 0||F.on(u.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var F;c1(Lu(P.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((F=this.pointRender)===null||F===void 0||F.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var F;c1(Lu(P.prototype),"disablePointRenderAction",this).call(this),(F=this.pointRender)===null||F===void 0||F.disableContextMenu()}}]),P}(Y2),m_=function(at){Ga(P,at);var C=Wv(P);function P(F,Q){var _e;return bu(this,P),(_e=C.call(this,F,Q)).bindPointRenderEvent(),_e.bindSceneEvent(),_e.bindMidPointRenderEvent(),_e.bindLineRenderEvent(),_e.bindPolygonRenderEvent(),_e}return In(P,[{key:"getDefaultOptions",value:function(F){var Q=c1(Lu(P.prototype),"getDefaultOptions",this).call(this,F);return Q.helper&&(Q.helper=Rs(Rs({},Q.helper),Dx)),Q}},{key:"setData",value:function(F){var Q=this,_e=F.map(function(Be){var ot,Sn,js;Be.properties=Rs(Rs({},Yw()),(ot=Be.properties)!==null&&ot!==void 0?ot:{});var ka=Be.properties.nodes;if(((Sn=ka)===null||Sn===void 0?void 0:Sn.length)!==2){var Ud=P1(U1(Be),4),Ng=Ud[2],N0=Ud[3];ka=[kw([Ud[0],Ud[1]]),kw([Ng,N0])],Be.properties.nodes=ka}var U0=P1(ka,2),Gv=U0[0],Zv=U0[1],o1=!!(!((js=Be.properties)===null||js===void 0)&&js.isActive),qv=Be.properties.line;return qv||(qv=Q.handleCreatePolygonLine(Gv,Zv,{isActive:o1}),Be.properties.line=qv),Q.handleCreatePolygon([Gv,Zv],qv,Rs(Rs({},Be.properties),{},{isActive:o1}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:_e,line:_e.map(function(Be){return Be.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(F,Q){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=kg(bw(Ov([F,Q]))).map(function(ot,Sn){return Sn===0?F:Sn===2?Q:kw(ot)});return Bv(Be,_e)}},{key:"syncPolygonNodes",value:function(F,Q){var _e=F.properties.line,Be=kg(bw(Ov(Q)));F.properties.nodes=Q,F.geometry.coordinates=[Be],this.setPolygonData(function(js){return js.map(function(ka){return Ww(ka,F)?F:ka})}),this.setPointData(F.properties.isDraw?[Q[0]]:Q);var ot=_e.properties.nodes,Sn=Be.filter(function(js){return!nn(js,Q[0].geometry.coordinates)&&!nn(js,Q[1].geometry.coordinates)});return ot.forEach(function(js,ka){var Ud=[0,0];switch(ka){case 0:Ud=Q[0].geometry.coordinates;break;case 1:Ud=Sn[0];break;case 2:Ud=Q[1].geometry.coordinates;break;case 3:Ud=Sn[1];break;case 4:Ud=Jv(Q[0].geometry.coordinates)}js.geometry.coordinates=Ud}),_e.geometry.coordinates=Be,F}},{key:"onLineDragging",value:function(F){var Q=c1(Lu(P.prototype),"onLineDragging",this).call(this,F),_e=this.dragPolygon;if(Q&&_e){var Be=_e.properties.line.properties.nodes;this.syncPolygonNodes(_e,[Be[0],Be[2]]),this.setActivePolygon(_e,{isDrag:!0}),this.emit(u.DrawEvent.Dragging,_e,this.getPolygonData())}return Q}}]),P}(qw),ay=function(at,C){for(var P=at;P&&!Array.from(P.classList).includes(C);)P=P.parentElement;return P},Yy=["point","line","polygon","rect","circle","clear"],Wx={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},e2={point:Cw,line:BS,polygon:pC,rect:m_,circle:z1},Nx="data-draw-type",fC="l7-draw-control",uS="".concat(fC,"__btn"),FE="".concat(uS,"--active");(function(at){var C,P,F,Q,_e,Be='',ot=(ot=document.getElementsByTagName("script"))[ot.length-1].getAttribute("data-injectcss");if(ot&&!at.__iconfont__svg__cssinject__){at.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(js){console&&console.log(js)}}function Sn(){_e||(_e=!0,F())}C=function(){var js,ka=document.createElement("div");ka.innerHTML=Be,Be=null,(ka=ka.getElementsByTagName("svg")[0])&&(ka.setAttribute("aria-hidden","true"),ka.style.position="absolute",ka.style.width=0,ka.style.height=0,ka.style.overflow="hidden",(js=document.body).firstChild?function(Ud,Ng){Ng.parentNode.insertBefore(Ud,Ng)}(ka,js.firstChild):js.appendChild(ka))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(C,0):(P=function(){document.removeEventListener("DOMContentLoaded",P,!1),C()},document.addEventListener("DOMContentLoaded",P,!1)):document.attachEvent&&(F=C,Q=at.document,_e=!1,function js(){try{Q.documentElement.doScroll("left")}catch(ka){return void setTimeout(js,50)}Sn()}(),Q.onreadystatechange=function(){Q.readyState=="complete"&&(Q.onreadystatechange=null,Sn())})})(window),kv(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var yE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JE=/^\w*$/,CS=function(at,C){if(oE(at))return!1;var P=typeof at;return!(P!="number"&&P!="symbol"&&P!="boolean"&&at!=null&&!aS(at))||JE.test(at)||!yE.test(at)||C!=null&&at in Object(C)};function IT(at,C){if(typeof at!="function"||C!=null&&typeof C!="function")throw new TypeError("Expected a function");var P=function(){var F=arguments,Q=C?C.apply(this,F):F[0],_e=P.cache;if(_e.has(Q))return _e.get(Q);var Be=at.apply(this,F);return P.cache=_e.set(Q,Be)||_e,Be};return P.cache=new(IT.Cache||Sw),P}IT.Cache=Sw;var K3=IT,I3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jT=/\\(\\)?/g,Jx=function(at){var C=K3(at,function(F){return P.size===500&&P.clear(),F}),P=C.cache;return C}(function(at){var C=[];return at.charCodeAt(0)===46&&C.push(""),at.replace(I3,function(P,F,Q,_e){C.push(Q?_e.replace(jT,"$1"):F||P)}),C}),LA=jS?jS.prototype:void 0,P3=LA?LA.toString:void 0,v2=function at(C){if(typeof C=="string")return C;if(oE(C))return Mx(C,at)+"";if(aS(C))return P3?P3.call(C):"";var P=C+"";return P=="0"&&1/C==-1/0?"-0":P},Fx=function(at){return at==null?"":v2(at)},pI=function(at,C){return oE(at)?at:CS(at,C)?[at]:Jx(Fx(at))},t3=function(at){if(typeof at=="string"||aS(at))return at;var C=at+"";return C=="0"&&1/at==-1/0?"-0":C},nT=function(at,C){for(var P=0,F=(C=pI(C,at)).length;at!=null&&F>P;)at=at[t3(C[P++])];return P&&P==F?at:void 0},rT=function(at,C,P){var F=-1,Q=at.length;0>C&&(C=-C>Q?0:Q+C),0>(P=P>Q?Q:P)&&(P+=Q),Q=C>P?0:P-C>>>0,C>>>=0;for(var _e=Array(Q);++FC.length?at:nT(at,rT(C,0,-1))},AS=function(at,C){return C=pI(C,at),(at=E4(at,C))==null||delete at[t3(xv(C))]},h3=function(at){return Uv(at)?void 0:at},QT=jS?jS.isConcatSpreadable:void 0,DD=function(at){return oE(at)||wT(at)||!!(QT&&at&&at[QT])},a3=function at(C,P,F,Q,_e){var Be=-1,ot=C.length;for(F||(F=DD),_e||(_e=[]);++Be0&&F(Sn)?P>1?at(Sn,P-1,F,Q,_e):JA(_e,Sn):Q||(_e[_e.length]=Sn)}return _e},X1=function(at){return at!=null&&at.length?a3(at,1):[]},zD=function(at){return jx(A1(at,void 0,X1),at+"")}(function(at,C){var P={};if(at==null)return P;var F=!1;C=Mx(C,function(_e){return _e=pI(_e,at),F||(F=_e.length>1),_e}),LE(at,PA(at),P),F&&(P=f1(P,7,h3));for(var Q=C.length;Q--;)AS(P,C[Q]);return P}),PT=zD,hD=function(at){Ga(P,at);var C=Wv(P);function P(F){var Q,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return bu(this,P),(Q=C.call(this,_e)).controlOption=void 0,Q.sceneInstance=void 0,Q.drawMap={},Q.btnMap={},Q.activeType=null,Q.emitDataChange=Y(function(){Q.emit(u.ControlEvent.DataChange,Q.getDrawData())},16),Q.emitDrawSelect=function(Be,ot){Q.emit(u.ControlEvent.DrawSelect,Be,ot)},Q.sceneInstance=F,Q.controlOption=Rs(Rs({},Q.getDefault()),_e||{}),Q.onBtnClick=Q.onBtnClick.bind(Cv(Q)),Q}return In(P,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return Rs(Rs({},c1(Lu(P.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(F){return c1(Lu(P.prototype),"addTo",this).call(this,F),this.init(),this}},{key:"onAdd",value:function(){var F=this.controlOption,Q=F.className,_e=F.style,Be=D.DOM.create("div","".concat(fC," ").concat(Q));return _e&&Be.setAttribute("style",_e),Be}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(F){F.clear(!0)})}},{key:"init",value:function(){var F,Q=this,_e=[];Object.entries(this.controlOption.drawConfig).filter(function(Be){var ot=P1(Be,2);return ot[1]}).sort(function(Be,ot){var Sn=P1(Be,2)[1],js=P1(ot,2)[1],ka=Number.MAX_SAFE_INTEGER;return(typeof Sn=="boolean"?ka:Sn.order)-(typeof js=="boolean"?ka:js.order)}).map(function(Be){var ot=P1(Be,2),Sn=ot[1];return[ot[0],wa(Sn)==="object"?PT(Sn,"order"):Sn]}).forEach(function(Be){var ot=P1(Be,2),Sn=ot[0],js=ot[1];if(wa(js)==="object"&&js.button){var ka=js.button;ka.classList.contains("l7-draw-control__btn")||ka.classList.add("l7-draw-control__btn"),Q.btnMap[Sn]=ka,_e.push(ka)}else if(js&&Yy.includes(Sn)){var Ud=Q.initBtn(Sn);Ud.addEventListener("click",Q.onBtnClick),_e.push(Ud),Q.btnMap[Sn]=Ud;var Ng=e2[Sn];if(Ng&&Q.sceneInstance){var N0=new Ng(Q.sceneInstance,Rs(Rs({},Q.controlOption.commonDrawOptions),typeof js=="boolean"?{}:js));N0.on(u.DrawEvent.Change,Q.emitDataChange),N0.on(u.DrawEvent.Select,function(U0){Q.emitDrawSelect(Sn,U0)}),Q.drawMap[Sn]=N0}}}),(F=this.container).append.apply(F,_e),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return m1(DC(this.drawMap).map(function(F){var Q=P1(F,2);return[Q[0],Q[1].getData()]}))}},{key:"getTypeDraw",value:function(F){var Q;return(Q=this.drawMap[F])!==null&&Q!==void 0?Q:null}},{key:"onBtnClick",value:function(F){var Q=ay(F.target,uS);if(Q){var _e=Q.getAttribute(Nx);_e==="clear"?this.clearDrawData():this.onDrawClick(_e)}}},{key:"setActiveType",value:function(F){var Q=null,_e=this.activeType;if(_e){var Be,ot=this.btnMap[_e];if(ot){D.DOM.removeClass(ot,FE);var Sn=this.controlOption.activeButtonClassName;Sn&&D.DOM.removeClass(ot,Sn)}(Be=this.drawMap[_e])===null||Be===void 0||Be.disable(),Q=null}if(_e!==F&&F){var js;(js=this.drawMap[F])===null||js===void 0||js.enable();var ka=this.btnMap[F];ka&&D.DOM.addClass(ka,"".concat(FE," ").concat(this.controlOption.activeButtonClassName)),Q=F}this.activeType=Q,this.emit(u.ControlEvent.DrawChange,Q)}},{key:"onDrawClick",value:function(F){this.setActiveType(F)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(F){F==null||F.clear()}),this.emit(u.ControlEvent.DrawClear)}},{key:"initBtn",value:function(F){var Q=D.DOM.create("button","".concat(uS," ").concat(this.controlOption.buttonClassName));return Q.innerHTML=``),Q.setAttribute(Nx,F),Q}}]),P}(D.Control);u.ACTIVE_COLOR=et,u.BaseMode=Ey,u.CircleDrawer=z1,u.DEFAULT_ADSORB_CONFIG=Sr,u.DEFAULT_AREA_OPTIONS=Yg,u.DEFAULT_COMMON_OPTIONS=Tt,u.DEFAULT_CURSOR_MAP=b,u.DEFAULT_DISTANCE_OPTIONS=xd,u.DEFAULT_HISTORY_CONFIG=r0,u.DEFAULT_KEYBOARD_CONFIG=No,u.DEFAULT_MID_POINT_STYLE=La,u.DEFAULT_NODE_NORMAL_STYLE=va,u.DEFAULT_NODE_STYLE=Wg,u.DEFAULT_POINT_NORMAL_STYLE=_r,u.DEFAULT_POINT_STYLE=yu,u.DEFAULT_POPUP_CONFIG=qt,u.DEFAULT_SOURCE_DATA=x,u.DEFAULT_STYLE=pe,u.DEFAULT_TEXT_NORMAL_STYLE=re,u.DashLineRender=UT,u.DragPolygonMode=qw,u.DrawCircle=z1,u.DrawControl=hD,u.DrawLine=BS,u.DrawPoint=Cw,u.DrawPolygon=pC,u.DrawRect=m_,u.LayerRender=zE,u.LineDrawer=BS,u.LineMode=Dw,u.LineRender=Te,u.MidPointMode=c_,u.MidPointRender=Ue,u.NORMAL_COLOR=we,u.PointDrawer=Cw,u.PointMode=dy,u.PointRender=Hn,u.PolygonDrawer=pC,u.PolygonMode=Y2,u.PolygonRender=za,u.RENDER_MAP=z,u.RectDrawer=m_,u.SceneRender=og,u.Source=D1,u.TextRender=it,u.calcAreaText=_T,u.calcDistanceTextsByLine=IC,u.createDashLine=e_,u.createLineFeature=Bv,u.createPointFeature=kw,u.createPolygonFeature=u2,u.findMinIndex=Oa,u.getAdsorbFeature=oh,u.getAdsorbLine=m0,u.getAdsorbPoint=cu,u.getDefaultLineProperties=_C,u.getDefaultPointProperties=Rw,u.getDefaultPolygonProperties=Yw,u.getLineCenterPoint=Zw,u.getLngLat=xt,u.getMapDom=py,u.getParentByClassName=ay,u.getPosition=Et,u.getSingleColorStyle=function(at){return{point:{normal:{color:at},hover:{color:at},active:{color:at}},line:{normal:{color:at},hover:{color:at},active:{color:at}},polygon:{normal:{color:at},hover:{color:at},active:{color:at},style:{opacity:.2}},text:{normal:{color:at},active:{color:at}},midPoint:{normal:{color:at}},dashLine:{normal:{color:at}}}},u.getUuid=__,u.isDev=!1,u.isSameFeature=Ww,u.resetEventLngLat=Hv,u.splitByPosition=Rg,u.transLngLat2Position=jn,u.updateTargetFeature=XS,Object.defineProperty(u,"__esModule",{value:!0})})},23051:function(c,g,l){"use strict";l.r(g),l.d(g,{AJAXError:function(){return Lv},AttributeType:function(){return pS},BKDRHash:function(){return Tw},BaiduMap:function(){return uj},BaseLayer:function(){return q4},BaseMapService:function(){return pk},BaseMapWrapper:function(){return YO},BaseModel:function(){return Xx},BasePostProcessingPass:function(){return DP},BlendType:function(){return g1},ButtonControl:function(){return s_},CameraUniform:function(){return AL},CanvasLayer:function(){return n8},CanvasUpdateType:function(){return ZS},CityBuildingLayer:function(){return i8},Control:function(){return p1},CoordinateSystem:function(){return RS},CoordinateUniform:function(){return SC},DOM:function(){return u},Earth:function(){return Lj},EarthLayer:function(){return cq},ExportImage:function(){return iT},FrequencyController:function(){return c2},Fullscreen:function(){return zs},GaodeMap:function(){return mQ},GaodeMapV1:function(){return lG},GaodeMapV2:function(){return mQ},GeoLocate:function(){return C1},GeometryLayer:function(){return xY},GoogleMap:function(){return Ile},HeatmapLayer:function(){return HU},IDebugLog:function(){return XT},ILayerStage:function(){return NC},ImageLayer:function(){return oz},InteractionEvent:function(){return eA},LRUCache:function(){return bS},LayerPopup:function(){return HH},LayerSwitch:function(){return ew},LineLayer:function(){return MZ},LineTriangulation:function(){return Ir},LinearDir:function(){return vS},LoadTileDataStatus:function(){return dT},Logo:function(){return mw},Map:function(){return E$},MapLibre:function(){return rO},MapServiceEvent:function(){return BI},MapTheme:function(){return c3},MapType:function(){return Ny},Mapbox:function(){return D$},Marker:function(){return Or},MarkerLayer:function(){return Mg},MaskLayer:function(){return iH},MaskOperation:function(){return hS},MouseLocation:function(){return d4},PassType:function(){return J3},PointFillTriangulation:function(){return Yr},PointLayer:function(){return uz},PolygonLayer:function(){return pN},PopperControl:function(){return p2},Popup:function(){return jJ},PositionType:function(){return Gy},RasterLayer:function(){return mM},RasterTileType:function(){return lD},Satistics:function(){return D},Scale:function(){return e4},ScaleTypes:function(){return z3},Scene:function(){return Gue},SceneConifg:function(){return H0},SceneEventList:function(){return OO},SelectControl:function(){return l2},SizeUnitType:function(){return oT},Source:function(){return Se},SourceTile:function(){return lC},StencilType:function(){return z_},StyleScaleType:function(){return VM},Swipe:function(){return Gse},TMap:function(){return sK},TYPES:function(){return cu},TencentMap:function(){return wle},TextureBlend:function(){return qS},TextureUsage:function(){return GI},TileDebugLayer:function(){return Wie},TilesetManager:function(){return Mw},UpdateTileStrategy:function(){return cT},Viewport:function(){return LN},WindLayer:function(){return gq},WorkerSourceMap:function(){return Rd},Zoom:function(){return Yse},aProjectFlat:function(){return VC},amap2Project:function(){return T1},amap2UnProject:function(){return ky},anchorTranslate:function(){return Gg},anchorType:function(){return cv},applyAnchorClass:function(){return uu},bBoxToBounds:function(){return P2},bindAll:function(){return _x},boundsContains:function(){return Cx},calAngle:function(){return jw},calDistance:function(){return tx},calculateCentroid:function(){return vC},calculatePointsCenterAndRadius:function(){return Fw},container:function(){return WD},createLayerContainer:function(){return TL},createSceneContainer:function(){return Xk},decodePickingColor:function(){return A0},defaultValue:function(){return Zg},djb2hash:function(){return q_},encodePickingColor:function(){return nv},executeWorkerTask:function(){return V0},expandUrl:function(){return RC},extent:function(){return EC},flow:function(){return gw},formatImage:function(){return $0},generateCatRamp:function(){return u1},generateColorRamp:function(){return t0},generateCustomRamp:function(){return a1},generateLinearRamp:function(){return n0},generateQuantizeRamp:function(){return Eg},getAngle:function(){return w2},getArrayBuffer:function(){return u0},getBBoxFromPoints:function(){return U2},getCullFace:function(){return lv},getData:function(){return Dg},getDefaultDomain:function(){return Gd},getImage:function(){return L0},getJSON:function(){return iv},getProtocolAction:function(){return jv},getReferrer:function(){return $_},getTileIndices:function(){return ZE},getTileWarpXY:function(){return jS},getURLFromTemplate:function(){return QC},getWMTSURLFromTemplate:function(){return r1},gl:function(){return J0},guid:function(){return Kw},isAndroid:function(){return A_},isColor:function(){return qg},isImageBitmap:function(){return g_},isPC:function(){return gx},isURLTemplate:function(){return K2},isWorker:function(){return ox},isiOS:function(){return k_},latitude:function(){return FS},lazyInject:function(){return dP},lazyMultiInject:function(){return Kk},lineAtOffset:function(){return dC},lineAtOffsetAsyc:function(){return YC},lineStyleType:function(){return fw},lngLatInExtent:function(){return XC},lngLatToMeters:function(){return JS},lnglatDistance:function(){return $y},lodashUtil:function(){return Qv},longitude:function(){return UC},makeXMLHttpRequestPromise:function(){return k0},metersToLngLat:function(){return sS},normalize:function(){return i2},osmLonLat2TileXY:function(){return PE},osmTileXY2LonLat:function(){return Lx},packCircleVertex:function(){return QF},padBounds:function(){return cx},polygonFillTriangulation:function(){return Ws},postData:function(){return B1},project:function(){return l_},removeDuplicateUniforms:function(){return Ig},rgb2arr:function(){return Xg},sameOrigin:function(){return zo},setL7WorkerSource:function(){return O0},tileToBounds:function(){return WE},tranfrormCoord:function(){return Aw},unProjectFlat:function(){return vE},validateLngLat:function(){return KS},version:function(){return Kue}});var u={};l.r(u),l.d(u,{DPR:function(){return kg},addClass:function(){return K1},addStyle:function(){return Vg},appendElementType:function(){return E_},clearChildren:function(){return Ay},create:function(){return Ov},css2Style:function(){return I1},empty:function(){return J_},findParentElement:function(){return ty},getClass:function(){return D2},getContainer:function(){return M_},getDiffRect:function(){return k1},getStyleList:function(){return wv},getViewPortScale:function(){return yd},hasClass:function(){return Kx},printCanvas:function(){return rv},remove:function(){return v1},removeClass:function(){return sx},removeStyle:function(){return b1},setChecked:function(){return S1},setClass:function(){return t2},setTransform:function(){return rx},setUnDraggable:function(){return U1},splitWords:function(){return _v},toggleClass:function(){return I2},triggerResize:function(){return ov},trim:function(){return h1}});var D={};l.r(D),l.d(D,{getColumn:function(){return MC},getSatByColumn:function(){return AT},max:function(){return tC},mean:function(){return YS},min:function(){return zw},mode:function(){return G2},statMap:function(){return pw},sum:function(){return VS}});var b={};l.r(b),l.d(b,{add:function(){return $x},adjoint:function(){return rT},clone:function(){return LA},copy:function(){return P3},create:function(){return Jx},determinant:function(){return E4},equals:function(){return gu},exactEquals:function(){return W2},frob:function(){return px},fromQuat:function(){return Ud},fromQuat2:function(){return _e},fromRotation:function(){return at},fromRotationTranslation:function(){return Q},fromRotationTranslationScale:function(){return js},fromRotationTranslationScaleOrigin:function(){return ka},fromScaling:function(){return hD},fromTranslation:function(){return PT},fromValues:function(){return v2},fromXRotation:function(){return C},fromYRotation:function(){return P},fromZRotation:function(){return F},frustum:function(){return Ng},getRotation:function(){return Sn},getScaling:function(){return ot},getTranslation:function(){return Be},identity:function(){return pI},invert:function(){return nT},lookAt:function(){return ny},mul:function(){return bg},multiply:function(){return AS},multiplyScalar:function(){return cw},multiplyScalarAndAdd:function(){return Sx},ortho:function(){return qv},orthoNO:function(){return o1},orthoZO:function(){return Sv},perspective:function(){return U0},perspectiveFromFieldOfView:function(){return Zv},perspectiveNO:function(){return N0},perspectiveZO:function(){return Gv},rotate:function(){return DD},rotateX:function(){return a3},rotateY:function(){return X1},rotateZ:function(){return zD},scale:function(){return QT},set:function(){return Fx},str:function(){return w_},sub:function(){return i0},subtract:function(){return Ix},targetTo:function(){return Uy},translate:function(){return h3},transpose:function(){return t3}});var x={};l.r(x),l.d(x,{add:function(){return tre},angle:function(){return dZ},bezier:function(){return rY},ceil:function(){return eY},clone:function(){return X9},copy:function(){return Qne},create:function(){return LP},cross:function(){return M3},dist:function(){return uN},distance:function(){return nY},div:function(){return Gfe},divide:function(){return QX},dot:function(){return LU},equals:function(){return oY},exactEquals:function(){return Zfe},floor:function(){return IU},forEach:function(){return ure},fromValues:function(){return YA},hermite:function(){return jfe},inverse:function(){return ire},len:function(){return VI},length:function(){return HM},lerp:function(){return Vfe},max:function(){return rre},min:function(){return f4},mul:function(){return Hfe},multiply:function(){return JX},negate:function(){return cZ},normalize:function(){return gP},random:function(){return Wfe},rotateX:function(){return sre},rotateY:function(){return MU},rotateZ:function(){return are},round:function(){return UR},scale:function(){return VR},scaleAndAdd:function(){return tY},set:function(){return ere},sqrDist:function(){return f7},sqrLen:function(){return sY},squaredDistance:function(){return uZ},squaredLength:function(){return PU},str:function(){return iY},sub:function(){return OU},subtract:function(){return nre},transformMat3:function(){return ore},transformMat4:function(){return h7},transformQuat:function(){return hM},zero:function(){return lre}});var y={},w={},a=function(v){return w[v]},S=function(v,f){w[v]=f},I=function(v){return y[v]},N=function(v,f){y[v]=f},ie={},ze={},Ie=34,ct=10,At=13;function rt(i){return new Function("d","return {"+i.map(function(v,f){return JSON.stringify(v)+": d["+f+'] || ""'}).join(",")+"}")}function It(i,v){var f=rt(i);return function(m,d){return v(f(m),d,i)}}function Ot(i){var v=Object.create(null),f=[];return i.forEach(function(m){for(var d in m)d in v||f.push(v[d]=d)}),f}function wn(i,v){var f=i+"",m=f.length;return m9999?"+"+wn(i,6):wn(i,4)}function jr(i){var v=i.getUTCHours(),f=i.getUTCMinutes(),m=i.getUTCSeconds(),d=i.getUTCMilliseconds();return isNaN(i)?"Invalid Date":Hs(i.getUTCFullYear(),4)+"-"+wn(i.getUTCMonth()+1,2)+"-"+wn(i.getUTCDate(),2)+(d?"T"+wn(v,2)+":"+wn(f,2)+":"+wn(m,2)+"."+wn(d,3)+"Z":m?"T"+wn(v,2)+":"+wn(f,2)+":"+wn(m,2)+"Z":f||v?"T"+wn(v,2)+":"+wn(f,2)+"Z":"")}function Jr(i){var v=new RegExp('["'+i+` -\r]`),f=i.charCodeAt(0);function m(st,Fr){var Go,Ta,eu=d(st,function(kd,em){if(Go)return Go(kd,em-1);Ta=kd,Go=Fr?It(kd,Fr):rt(kd)});return eu.columns=Ta||[],eu}function d(st,Fr){var Go=[],Ta=st.length,eu=0,kd=0,em,B0=Ta<=0,vv=!1;st.charCodeAt(Ta-1)===ct&&--Ta,st.charCodeAt(Ta-1)===At&&--Ta;function y1(){if(B0)return ze;if(vv)return vv=!1,ie;var J1,ey=eu,Fy;if(st.charCodeAt(ey)===Ie){for(;eu++=Ta?B0=!0:(Fy=st.charCodeAt(eu++))===ct?vv=!0:Fy===At&&(vv=!0,st.charCodeAt(eu)===ct&&++eu),st.slice(ey+1,J1-1).replace(/""/g,'"')}for(;eu=200&&f.status<300||f.status===0)&&f.response!==null){var E=f.response;if(i.type==="json")try{E=JSON.parse(f.response)}catch(B){return v(B)}v(null,E,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"),f)}else{var M=new Blob([f.response],{type:f.getResponseHeader("Content-Type")});v(new Lv(f.status,f.statusText,m.toString(),M))}},f.cancel=f.abort,f.send(i.body),f}function k0(i){return new Promise(function(v,f){Je(i,function(m,d,E,M,B){m?f({err:m,data:null,xhr:B}):v({err:null,data:d,cacheControl:E,expires:M,xhr:B})})})}function G0(i,v){return Je(i,v)}var iv=function(v,f){var m=jv(v.url)||G0;return m((0,vn.Z)((0,vn.Z)({},v),{},{type:"json"}),f)},u0=function(v,f){var m=jv(v.url)||G0;return m((0,vn.Z)((0,vn.Z)({},v),{},{type:"arrayBuffer"}),f)},B1=function(v,f){return G0((0,vn.Z)((0,vn.Z)({},v),{},{method:"POST"}),f)},Dg=function(v,f){return G0((0,vn.Z)((0,vn.Z)({},v),{},{method:"GET"}),f)};function zo(i){var v=window.document.createElement("a");return v.href=i,v.protocol===window.document.location.protocol&&v.host===window.document.location.host}var mu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ag(i,v){var f=new window.Image,m=window.URL||window.webkitURL;f.crossOrigin="anonymous",f.onload=function(){v(null,f),m.revokeObjectURL(f.src),f.onload=null,window.requestAnimationFrame(function(){f.src=mu})},f.onerror=function(){return v(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var d=new Blob([new Uint8Array(i)],{type:"image/png"});f.src=i.byteLength?m.createObjectURL(d):mu}function c0(i,v){var f=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(f).then(function(m){v(null,m)}).catch(function(m){v(new Error("Could not load image because of ".concat(m.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var L0=function(v,f,m){var d=function(M,B){if(M)f(M);else if(B){var J=typeof createImageBitmap=="function",ue=m?m(B):B;J?c0(ue,f):Ag(ue,f)}};return v.type==="json"?iv(v,d):u0(v,d)},$0=function(v,f){var m=typeof createImageBitmap=="function";m?c0(v,f):Ag(v,f)},cv=function(i){return i.CENTER="center",i.TOP="top",i["TOP-LEFT"]="top-left",i["TOP-RIGHT"]="top-right",i.BOTTOM="bottom",i["BOTTOM-LEFT"]="bottom-left",i["BOTTOM-RIGHT"]="bottom-right",i.LEFT="left",i.RIGHT="right",i}({}),Gg={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function uu(i,v,f){var m=i.classList;for(var d in Gg)Gg.hasOwnProperty(d)&&m.remove("l7-".concat(f,"-anchor-").concat(d));m.add("l7-".concat(f,"-anchor-").concat(v))}function Gs(i,v,f){i.prototype=v.prototype=f,f.constructor=i}function Ia(i,v){var f=Object.create(i.prototype);for(var m in v)f[m]=v[m];return f}function lu(){}var _h=.7,Kr=1/_h,fr="\\s*([+-]?\\d+)\\s*",ri="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ra="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sg=/^#([0-9a-f]{3,8})$/,Jg=new RegExp("^rgb\\("+[fr,fr,fr]+"\\)$"),j0=new RegExp("^rgb\\("+[Ra,Ra,Ra]+"\\)$"),Wo=new RegExp("^rgba\\("+[fr,fr,fr,ri]+"\\)$"),Mo=new RegExp("^rgba\\("+[Ra,Ra,Ra,ri]+"\\)$"),qr=new RegExp("^hsl\\("+[ri,Ra,Ra]+"\\)$"),On=new RegExp("^hsla\\("+[ri,Ra,Ra,ri]+"\\)$"),rn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gs(lu,Su,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:ui,formatHex:ui,formatHsl:ya,formatRgb:gd,toString:gd});function ui(){return this.rgb().formatHex()}function ya(){return Bd(this).formatHsl()}function gd(){return this.rgb().formatRgb()}function Su(i){var v,f;return i=(i+"").trim().toLowerCase(),(v=Sg.exec(i))?(f=v[1].length,v=parseInt(v[1],16),f===6?xu(v):f===3?new Wa(v>>8&15|v>>4&240,v>>4&15|v&240,(v&15)<<4|v&15,1):f===8?xa(v>>24&255,v>>16&255,v>>8&255,(v&255)/255):f===4?xa(v>>12&15|v>>8&240,v>>8&15|v>>4&240,v>>4&15|v&240,((v&15)<<4|v&15)/255):null):(v=Jg.exec(i))?new Wa(v[1],v[2],v[3],1):(v=j0.exec(i))?new Wa(v[1]*255/100,v[2]*255/100,v[3]*255/100,1):(v=Wo.exec(i))?xa(v[1],v[2],v[3],v[4]):(v=Mo.exec(i))?xa(v[1]*255/100,v[2]*255/100,v[3]*255/100,v[4]):(v=qr.exec(i))?$a(v[1],v[2]/100,v[3]/100,1):(v=On.exec(i))?$a(v[1],v[2]/100,v[3]/100,v[4]):rn.hasOwnProperty(i)?xu(rn[i]):i==="transparent"?new Wa(NaN,NaN,NaN,0):null}function xu(i){return new Wa(i>>16&255,i>>8&255,i&255,1)}function xa(i,v,f,m){return m<=0&&(i=v=f=NaN),new Wa(i,v,f,m)}function Td(i){return i instanceof lu||(i=Su(i)),i?(i=i.rgb(),new Wa(i.r,i.g,i.b,i.opacity)):new Wa}function jg(i,v,f,m){return arguments.length===1?Td(i):new Wa(i,v,f,m==null?1:m)}function Wa(i,v,f,m){this.r=+i,this.g=+v,this.b=+f,this.opacity=+m}Gs(Wa,jg,Ia(lu,{brighter:function(i){return i=i==null?Kr:Math.pow(Kr,i),new Wa(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?_h:Math.pow(_h,i),new Wa(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tv,formatHex:tv,formatRgb:Bs,toString:Bs}));function tv(){return"#"+Sa(this.r)+Sa(this.g)+Sa(this.b)}function Bs(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(i===1?")":", "+i+")")}function Sa(i){return i=Math.max(0,Math.min(255,Math.round(i)||0)),(i<16?"0":"")+i.toString(16)}function $a(i,v,f,m){return m<=0?i=v=f=NaN:f<=0||f>=1?i=v=NaN:v<=0&&(i=NaN),new Og(i,v,f,m)}function Bd(i){if(i instanceof Og)return new Og(i.h,i.s,i.l,i.opacity);if(i instanceof lu||(i=Su(i)),!i)return new Og;if(i instanceof Og)return i;i=i.rgb();var v=i.r/255,f=i.g/255,m=i.b/255,d=Math.min(v,f,m),E=Math.max(v,f,m),M=NaN,B=E-d,J=(E+d)/2;return B?(v===E?M=(f-m)/B+(f0&&J<1?0:M,new Og(M,B,J,i.opacity)}function Bg(i,v,f,m){return arguments.length===1?Bd(i):new Og(i,v,f,m==null?1:m)}function Og(i,v,f,m){this.h=+i,this.s=+v,this.l=+f,this.opacity=+m}Gs(Og,Bg,Ia(lu,{brighter:function(i){return i=i==null?Kr:Math.pow(Kr,i),new Og(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?_h:Math.pow(_h,i),new Og(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+(this.h<0)*360,v=isNaN(i)||isNaN(this.s)?0:this.s,f=this.l,m=f+(f<.5?f:1-f)*v,d=2*f-m;return new Wa(g0(i>=240?i-240:i+120,d,m),g0(i,d,m),g0(i<120?i+240:i-120,d,m),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(i===1?")":", "+i+")")}}));function g0(i,v,f){return(i<60?v+(f-v)*i/60:i<180?f:i<240?v+(f-v)*(240-i)/60:v)*255}function qg(i){return typeof i=="string"?!!Su(i):!1}function Xg(i){var v=Su(i),f=[0,0,0,0];return v!=null&&(f[0]=v.r/255,f[1]=v.g/255,f[2]=v.b/255,f[3]=v.opacity),f}function A0(i){var v=i&&i[0],f=i&&i[1],m=i&&i[2],d=v+f*256+m*65536-1;return d}function nv(i){return[i+1&255,i+1>>8&255,i+1>>8>>8&255]}function t0(i){var v=window.document.createElement("canvas"),f=v.getContext("2d");v.width=256,v.height=1;for(var m=null,d=f.createLinearGradient(0,0,256,1),E=i.positions[0],M=i.positions[i.positions.length-1],B=0;B0&&new RegExp("(^|\\s)"+v+"(\\s|$)").test(f)}function t2(i,v){i instanceof HTMLElement?i.className=v:i.className.baseVal=v}function I2(i,v,f){f===void 0?Kx(i,v)?sx(i,v):K1(i,v):f?K1(i,v):sx(i,v)}function D2(i){return i instanceof SVGElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function J_(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}var ax=Iv(["transform","WebkitTransform"]);function rx(i,v){i.style[ax]=v}function ov(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var i=window.document.createEvent("UIEvents");i.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(i)}}function rv(i){var v=["padding: "+(i.height/2-8)+"px "+i.width/2+"px;","line-height: "+i.height+"px;","background-image: url("+i.toDataURL()+");"];console.log(`%c -`,v.join(""))}function yd(){var i,v=window.document.querySelector('meta[name="viewport"]');if(!v)return 1;var f=(i=v.content)===null||i===void 0?void 0:i.split(","),m=f.find(function(d){var E=d.split("="),M=(0,hu.Z)(E,1),B=M[0];return B==="initial-scale"});return m?m.split("=")[1]*1:1}var kg=yd()<1?1:window.devicePixelRatio;function Vg(i,v){i.setAttribute("style","".concat(i.style.cssText).concat(v))}function wv(i){return i.split(";").map(function(v){return v.trim()}).filter(function(v){return v})}function b1(i,v){var f,m=wv((f=i.getAttribute("style"))!==null&&f!==void 0?f:""),d=wv(v),E=Y1.apply(void 0,[m].concat((0,su.Z)(d)));i.setAttribute("style",E.join(";"))}function I1(i){return Object.entries(i).map(function(v){var f=(0,hu.Z)(v,2),m=f[0],d=f[1];return"".concat(m,": ").concat(d)}).join(";")}function k1(i,v){return{left:i.left-v.left,top:i.top-v.top,right:v.left+v.width-i.left-i.width,bottom:v.top+v.height-i.top-i.height}}function S1(i,v){i.checked=v,v?i.setAttribute("checked","true"):i.removeAttribute("checked")}function Ay(i){i.innerHTML=""}function U1(i){i.setAttribute("draggable","false")}function E_(i,v){if(typeof v=="string"){var f=document.createElement("div");for(f.innerHTML=v;f.firstChild;)i.append(f.firstChild)}else Array.isArray(v)?i.append.apply(i,(0,su.Z)(v)):i.append(v)}function ty(i,v){for(var f=Array.isArray(v)?v:[v],m=i;m instanceof Element&&m!==window.document.body;){var d,E;if(f.find(function(M){var B;return(B=m)===null||B===void 0?void 0:B.matches(M)}))return m;m=(d=(E=m)===null||E===void 0?void 0:E.parentElement)!==null&&d!==void 0?d:null}}var h_;function g_(i){return typeof ImageBitmap!="undefined"&&i instanceof ImageBitmap}function ox(){return typeof importScripts=="function"}var $_=ox()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},K_=(h_=navigator)===null||h_===void 0?void 0:h_.userAgent,k_=!!K_.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),A_=K_.indexOf("Android")>-1||K_.indexOf("Adr")>-1;function gx(){for(var i=K_,v=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],f=!0,m=0,d=v;m0){f=!1;break}}return f}var Na=l(16514);function _x(i,v){i.forEach(function(f){v[f]&&(v[f]=v[f].bind(v))})}var c2=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,Zr.Z)(this,i),(0,Na.Z)(this,"duration",16),(0,Na.Z)(this,"timestamp",new Date().getTime()),this.duration=v}return(0,gt.Z)(i,[{key:"run",value:function(f){var m=new Date().getTime(),d=m-this.timestamp;this.timestamp=m,d>=this.duration&&f()}}]),i}(),b2=l(86461),N2=l(8822);function j2(i){return typeof i=="number"}var mC=2*Math.PI*6378137/2;function XC(i,v){var f=(0,hu.Z)(v,4),m=f[0],d=f[1],E=f[2],M=f[3];return i.lng>m&&i.lng<=E&&i.lat>d&&i.lat<=M}function EC(i){var v=[1/0,1/0,-1/0,-1/0];return i.forEach(function(f){var m=f.coordinates;Pw(v,m)}),v}function Pw(i,v){return Array.isArray(v[0])?v.forEach(function(f){Pw(i,f)}):(i[0]>v[0]&&(i[0]=v[0]),i[1]>v[1]&&(i[1]=v[1]),i[2]1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};i=KS(i,v);var m=i[0],d=i[1],E=m*mC/180,M=Math.log(Math.tan((90+d)*Math.PI/360))/(Math.PI/180);return M=M*mC/180,f.enable&&(E=Number(E.toFixed(f.decimal)),M=Number(M.toFixed(f.decimal))),i.length===3?[E,M,i[2]]:[E,M]}function sS(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,f=i[0],m=i[1],d=f/mC*180,E=m/mC*180;return E=180/Math.PI*(2*Math.atan(Math.exp(E*Math.PI/180))-Math.PI/2),v!=null&&(d=Number(d.toFixed(v)),E=Number(E.toFixed(v))),i.length===3?[d,E,i[2]]:[d,E]}function UC(i){if(i==null)throw new Error("lng is required");return(i>180||i<-180)&&(i=i%360,i>180&&(i=-360+i),i<-180&&(i=360+i),i===0&&(i=0)),i}function FS(i){if(i==null)throw new Error("lat is required");return(i>90||i<-90)&&(i=i%180,i>90&&(i=-180+i),i<-90&&(i=180+i),i===0&&(i=0)),i}function KS(i,v){if(v===!1)return i;var f=UC(i[0]),m=FS(i[1]);return m>85&&(m=85),m<-85&&(m=-85),i.length===3?[f,m,i[2]]:[f,m]}function VC(i){var v=85.0511287798,f=Math.max(Math.min(v,i[1]),-v),m=256<<20,d=Math.PI/180,E=i[0]*d,M=f*d;M=Math.log(Math.tan(Math.PI/4+M/2));var B=.5/Math.PI,J=.5,ue=-.5/Math.PI;return d=.5,E=m*(B*E+J),M=m*(ue*M+d),[Math.floor(E),Math.floor(M)]}function vE(i){var v=.5/Math.PI,f=.5,m=-.5/Math.PI,d=.5,E=256<<20,M=(0,hu.Z)(i,2),B=M[0],J=M[1];B=(B/E-f)/v,J=(J/E-d)/m,J=(Math.atan(Math.pow(Math.E,J))-Math.PI/4)*2,d=Math.PI/180;var ue=J/d,Ze=B/d;return[Ze,ue]}function T1(i,v){var f=85.0511287798,m=Math.PI/180,d=6378137;return v=Math.max(Math.min(f,v),-f),i*=m,v*=m,v=Math.log(Math.tan(Math.PI/4+v/2)),[i*d,v*d]}function ky(i,v){var f=Math.PI/180,m=6378137,d=i/m/f,E=2*(Math.atan(Math.exp(v/m))-Math.PI/4)/f;return[d,E]}function $y(i,v,f){var m=(0,N2.degreesToRadians)(v[1]-i[1]),d=(0,N2.degreesToRadians)(v[0]-i[0]),E=(0,N2.degreesToRadians)(i[1]),M=(0,N2.degreesToRadians)(v[1]),B=Math.pow(Math.sin(m/2),2)+Math.pow(Math.sin(d/2),2)*Math.cos(E)*Math.cos(M);return(0,N2.radiansToLength)(2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B)),f="meters")}function l_(i){var v=Math.PI/180,f=85.0511287798,m=6378137,d=Math.max(Math.min(f,i[1]),-f),E=Math.sin(d*v),M=m*i[0]*v,B=m*Math.log((1+E)/(1-E))/2;return[M,B]}function cx(i,v){var f=Math.abs(i[1][1]-i[0][1])*v,m=Math.abs(i[1][0]-i[0][0])*v;return[[i[0][0]-m,i[0][1]-f],[i[1][0]+m,i[1][1]+f]]}function Cx(i,v){return i[0][0]<=v[0][0]&&i[0][1]<=v[0][1]&&i[1][0]>=v[1][0]&&i[1][1]>=v[1][1]}function P2(i){return[[i[0],i[1]],[i[2],i[3]]]}function i2(i){var v=tx(i,[0,0]);return[i[0]/v,i[1]/v]}function tx(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function z2(i,v){return i[0]*v[0]+i[1]*v[1]}function L2(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function jw(i,v){return Math.acos(z2(i,v)/(L2(i)*L2(v)))*180/Math.PI}function w2(i,v){return v[0]>0?v[1]>0?90-Math.atan(v[1]/v[0])*180/Math.PI:90+Math.atan(-v[1]/v[0])*180/Math.PI:v[1]<0?180+(90-Math.atan(v[1]/v[0])*180/Math.PI):270+Math.atan(v[1]/-v[0])*180/Math.PI}function gw(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!i||i.length<2)){for(var f=[0,1],m=0,d=[],E=0;E0){var st=d[E-1].rotation;st-Ze>360-st+Ze&&(Ze=Ze+360)}d.push({start:M,end:B,dis:J,rotation:Ze,duration:0})}return d.map(function(Fr){Fr.duration=v*(Fr.dis/m)}),d}}function vC(i){if(j2(i[0]))return i;if(j2(i[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(j2(i[0][0][0])){var v=i,f=0,m=0,d=0;return v.forEach(function(E){E.forEach(function(M){f+=M[0],m+=M[1],d++})}),[f/d,m/d,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Fw(i){for(var v=i[0],f=i[1],m=i[0],d=i[1],E=0,M=0,B=0,J=0;Jd&&(m=Math.floor(m/f)),m=m*v+i.charCodeAt(E);return m}function q_(i){i=i.toString();for(var v=5381,f=i.length;f;)v=v*33^i.charCodeAt(--f);return v>>>0}function Kw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var v=Math.random()*16|0,f=i==="x"?v:v&3|8;return f.toString(16)})}var Ny=function(i){return i["GAODE1.x"]="GAODE1.x",i["GAODE2.x"]="GAODE2.x",i.MAPBOX="MAPBOX",i.DEFAULT="DEFAUlTMAP",i.SIMPLE="SIMPLE",i.GLOBEL="GLOBEL",i}({});function dx(i,v,f,m,d){var E=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,M=arguments.length>6?arguments[6]:void 0,B=f;return M&&(B=Math.round(f*(E-1))/(E-1)),m?Px(i,v,B,m,d):Px(i,v,B,.314,d)}function bw(i,v){var f=1-v;return(i[0]*f+i[1]*v)*f+(i[1]*f+i[2]*v)*v}function Ow(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function j1(i,v,f){var m=[v[0]-i[0],v[1]-i[1]],d=Ow(m,[0,0]),E=Math.atan2(m[1],m[0]),M=d/2/Math.cos(f),B=E+f,J=[M*Math.cos(B)+i[0],M*Math.sin(B)+i[1]];return J}function Px(i,v,f,m,d){if(d===Ny["GAODE2.x"]){var E=T1(i[0],i[1]),M=T1(v[0],v[1]),B=j1(E,M,m),J=[E[0],B[0],M[0]],ue=[E[1],B[1],M[1]];return[].concat((0,su.Z)(ky(bw(J,f),bw(ue,f))),[0])}else{var Ze=j1(i,v,m),st=[i[0],Ze[0],v[0]],Fr=[i[1],Ze[1],v[1]];return[bw(st,f),bw(Fr,f),0]}}function Z_(i,v,f,m,d){var E=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,M=arguments.length>6?arguments[6]:void 0,B=f;return M&&(B=Math.round(f*29)/29),q2(i,v,B,d)}function Vx(i,v){var f=[v[0]-i[0],v[1]-i[1]],m=tx(f,[0,0]),d=Math.atan2(f[1],f[0]),E=.314,M=m/2/Math.cos(E),B=d+E,J=[M*Math.cos(B)+i[0],M*Math.sin(B)+i[1]];return J}function kx(i,v){var f=1-v;return(i[0]*f+i[1]*v)*f+(i[1]*f+i[2]*v)*v}function C2(i,v){var f=[i[0]-v[0],i[1]-v[1]],m=[Math.sin(f[0]/2),Math.sin(f[1]/2)],d=m[1]*m[1]+Math.cos(i[1])*Math.cos(v[1])*m[0]*m[0];return 2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))}function q2(i,v,f,m){var d=[(0,N2.degreesToRadians)(i[0]),(0,N2.degreesToRadians)(i[1])],E=[(0,N2.degreesToRadians)(v[0]),(0,N2.degreesToRadians)(v[1])];if(m==="GAODE2.x"){var M=Vx(d,E),B=[d[0],M[0],E[0]],J=[d[1],M[1],E[1]];return[kx(B,f),kx(J,f),0]}else{var ue=C2(d,E);if(Math.abs(ue-Math.PI)<.001)return[(1-f)*d[0]+f*E[0],(1-f)*d[1]+f*E[1]];var Ze=Math.sin((1-f)*ue)/Math.sin(ue),st=Math.sin(f*ue)/Math.sin(ue),Fr=[Math.sin(d[0]),Math.sin(d[1])],Go=[Math.cos(d[0]),Math.cos(d[1])],Ta=[Math.sin(E[0]),Math.sin(E[1])],eu=[Math.cos(E[0]),Math.cos(E[1])],kd=Ze*Go[1]*Go[0]+st*eu[1]*eu[0],em=Ze*Go[1]*Fr[0]+st*eu[1]*Ta[0],B0=Ze*Fr[1]+st*Ta[1];return[(0,N2.radiansToDegrees)(Math.atan2(em,kd)),(0,N2.radiansToDegrees)(Math.atan2(B0,Math.sqrt(kd*kd+em*em)))]}}function lw(i,v){for(var f=0,m=[],d=0;due){var kd=Ta.p1,em=Ta.p2,B0=(ue-Ta.lastTotalDistance)/Ta.distance,vv=eC(em,kd,B0);Ze=vv[0],st=vv[1];break}}return{lng:Ze,lat:st,height:0}}function eC(i,v,f){return[i[0]*f+v[0]*(1-f),i[1]*f+v[1]*(1-f)]}function zC(i,v){return Math.sqrt(Math.pow(i[0]-v[0],2)+Math.pow(i[1]-v[1],2))}function dC(i,v){var f=v.featureId,m=i.data.dataArray;return typeof f=="number"&&(m=m.filter(function(d){var E=d.id;return E===f})),m.map(function(d){var E=qC(d,v);return(0,vn.Z)((0,vn.Z)({},d),E)})}function YC(i,v){return new Promise(function(f){i.inited?f(dC(i,v)):i.once("update",function(){f(dC(i,v))})})}function qC(i,v){var f=v.offset,m=v.shape,d=v.thetaOffset,E=v.mapVersion,M=v.segmentNumber,B=M===void 0?30:M,J=v.autoFit,ue=J===void 0?!0:J,Ze=i.coordinates;if(m==="line")return lw(Ze,f);var st=Ze[0],Fr=Ze[1],Go=typeof d=="string"?i[d]||0:d,Ta;switch(m){case"arc":Ta=dx;break;case"greatcircle":Ta=Z_;break;default:Ta=dx}var eu=Ta(st,Fr,f,Go,E,B,ue),kd=(0,hu.Z)(eu,3),em=kd[0],B0=kd[1],vv=kd[2];return{lng:em,lat:B0,height:vv}}var bS=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,f=arguments.length>1?arguments[1]:void 0;(0,Zr.Z)(this,i),this.limit=v,this.destroy=f||this.defaultDestroy,this.order=[],this.clear()}return(0,gt.Z)(i,[{key:"clear",value:function(){var f=this;this.order.forEach(function(m){f.delete(m)}),this.cache={},this.order=[]}},{key:"get",value:function(f){var m=this.cache[f];return m&&(this.deleteOrder(f),this.appendOrder(f)),m}},{key:"set",value:function(f,m){this.cache[f]?(this.delete(f),this.cache[f]=m,this.appendOrder(f)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[f]=m,this.appendOrder(f))}},{key:"delete",value:function(f){var m=this.cache[f];m&&(this.deleteCache(f),this.deleteOrder(f),this.destroy(m,f))}},{key:"deleteCache",value:function(f){delete this.cache[f]}},{key:"deleteOrder",value:function(f){var m=this.order.findIndex(function(d){return d===f});m>=0&&this.order.splice(m,1)}},{key:"appendOrder",value:function(f){this.order.push(f)}},{key:"defaultDestroy",value:function(f,m){return null}}]),i}();function tC(i){if(i.length===0)throw new Error("max requires at least one data point");for(var v=i[0],f=1;fv&&(v=i[f]);return v*1}function zw(i){if(i.length===0)throw new Error("min requires at least one data point");for(var v=i[0],f=1;fm&&(m=d,f=v),d=1,v=i[E]):d++;return f*1}var pw={min:zw,max:tC,mean:YS,sum:VS,mode:G2};function MC(i,v){return i.map(function(f){return f[v]})}function AT(i,v){return pw[i](v)}var v_=l(90304),mv=l(7963),Lw=l(57168),Pv=l.n(Lw),k2=l(39511),O2=l(40666),TE=l.n(O2),cT=function(i){return i.Realtime="realtime",i.Overlap="overlap",i.Replace="replace",i}({}),dT=function(i){return i.Loading="Loading",i.Loaded="Loaded",i.Failure="Failure",i.Cancelled="Cancelled",i}({}),US=0,jE=1,eT=2;function IE(i){i.forEach(function(v){v.isCurrent&&(v.isVisible=v.isLoaded)})}function $T(i){i.forEach(function(v){v.properties.state=US}),i.forEach(function(v){v.isCurrent&&!xE(v)&&aC(v)}),i.forEach(function(v){v.isVisible=!!(v.properties.state&eT)})}function bE(i){i.forEach(function(f){f.properties.state=US}),i.forEach(function(f){f.isCurrent&&xE(f)});var v=i.slice().sort(function(f,m){return f.z-m.z});v.forEach(function(f){f.isVisible=!!(f.properties.state&eT),f.children.length&&(f.isVisible||f.properties.state&jE)?f.children.forEach(function(m){m.properties.state=jE}):f.isCurrent&&aC(f)})}function xE(i){for(;i;){if(i.isLoaded)return i.properties.state|=eT,!0;i=i.parent}return!1}function aC(i){i.children.forEach(function(v){v.isLoaded?v.properties.state|=eT:aC(v)})}var zE,UT=256,YE=[-1/0,-1/0,1/0,1/0],OC=.2,yT=5,hC=(zE={},(0,Na.Z)(zE,cT.Realtime,IE),(0,Na.Z)(zE,cT.Overlap,$T),(0,Na.Z)(zE,cT.Replace,bE),zE),rE=function(){};function PE(i,v,f){var m=Math.floor((i+180)/360*Math.pow(2,f)),d=Math.floor((1-Math.log(Math.tan(v*Math.PI/180)+1/Math.cos(v*Math.PI/180))/Math.PI)/2*Math.pow(2,f));return[m,d]}function Lx(i,v,f){var m=i/Math.pow(2,f)*360-180,d=Math.PI-2*Math.PI*v/Math.pow(2,f),E=180/Math.PI*Math.atan(.5*(Math.exp(d)-Math.exp(-d)));return[m,E]}var WE=function(v,f,m){var d=Lx(v,f,m),E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=Lx(v+1,f+1,m),ue=(0,hu.Z)(J,2),Ze=ue[0],st=ue[1];return[M,st,Ze,B]};function ZE(i){var v=i.zoom,f=i.latLonBounds,m=i.maxZoom,d=m===void 0?1/0:m,E=i.minZoom,M=E===void 0?0:E,B=i.zoomOffset,J=B===void 0?0:B,ue=i.extent,Ze=ue===void 0?YE:ue,st=Math.ceil(v)+J;if(Number.isFinite(M)&&std&&(st=d);for(var Fr=(0,hu.Z)(f,4),Go=Fr[0],Ta=Fr[1],eu=Fr[2],kd=Fr[3],em=[Math.max(Go,Ze[0]),Math.max(Ta,Ze[1]),Math.min(eu,Ze[2]),Math.min(kd,Ze[3])],B0=[],vv=PE(em[0],em[1],st),y1=(0,hu.Z)(vv,2),fy=y1[0],J1=y1[1],ey=PE(em[2],em[3],st),Fy=(0,hu.Z)(ey,2),C_=Fy[0],yx=Fy[1],ux=fy;ux<=C_;ux++)for(var h2=yx;h2<=J1;h2++)B0.push({x:ux,y:h2,z:st});var V2=(C_+fy)/2,aw=(J1+yx)/2,XE=function(qT,j3){return Math.abs(qT-V2)+Math.abs(j3-aw)};return B0.sort(function(mT,qT){return XE(mT.x,mT.y)-XE(qT.x,qT.y)}),B0}var jS=function(v,f,m){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,E=Math.pow(2,m),M=E-1,B=E,J=v,ue=f;return d&&(J<0?J=J+B:J>M&&(J=J%B)),{warpX:J,warpY:ue}};function Xw(i){var v=iC();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function iC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var lC=function(i){(0,Ht.Z)(f,i);var v=Xw(f);function f(m){var d;(0,Zr.Z)(this,f),d=v.call(this),(0,Na.Z)((0,mv.Z)(d),"tileSize",256),(0,Na.Z)((0,mv.Z)(d),"isVisible",!1),(0,Na.Z)((0,mv.Z)(d),"isCurrent",!1),(0,Na.Z)((0,mv.Z)(d),"isVisibleChange",!1),(0,Na.Z)((0,mv.Z)(d),"loadedLayers",0),(0,Na.Z)((0,mv.Z)(d),"isLayerLoaded",!1),(0,Na.Z)((0,mv.Z)(d),"isLoad",!1),(0,Na.Z)((0,mv.Z)(d),"isChildLoad",!1),(0,Na.Z)((0,mv.Z)(d),"parent",null),(0,Na.Z)((0,mv.Z)(d),"children",[]),(0,Na.Z)((0,mv.Z)(d),"data",null),(0,Na.Z)((0,mv.Z)(d),"properties",{}),(0,Na.Z)((0,mv.Z)(d),"loadDataId",0);var E=m.x,M=m.y,B=m.z,J=m.tileSize,ue=m.warp,Ze=ue===void 0?!0:ue;return d.x=E,d.y=M,d.z=B,d.warp=Ze||!0,d.tileSize=J,d}return(0,gt.Z)(f,[{key:"isLoading",get:function(){return this.loadStatus===dT.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===dT.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===dT.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===dT.Cancelled}},{key:"isDone",get:function(){return[dT.Loaded,dT.Cancelled,dT.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return WE(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var d=(0,hu.Z)(this.bounds,4),E=d[0],M=d[1],B=d[2],J=d[3],ue=[(B-E)/2,(J-M)/2],Ze=(0,k2.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ue,meta:` +`,Pe=function(Vt){var Tt=(0,W.useContext)(ae.Z),un=Tt.csp,on=Tt.prefixCls,Lr=ht;on&&(Lr=Lr.replace(/anticon/g,on)),(0,W.useEffect)(function(){var Yr=Vt.current,fi=(0,Ce.A)(Yr);(0,Be.hq)(Lr,"@ant-design-icons",{prepend:!0,csp:un,attachTo:fi})},[])},et=["icon","className","onClick","style","primaryColor","secondaryColor"],Oe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ue(ze){var Vt=ze.primaryColor,Tt=ze.secondaryColor;Oe.primaryColor=Vt,Oe.secondaryColor=Tt||Gt(Vt),Oe.calculated=!!Tt}function je(){return(0,se.Z)({},Oe)}var ft=function(Vt){var Tt=Vt.icon,un=Vt.className,on=Vt.onClick,Lr=Vt.style,Yr=Vt.primaryColor,fi=Vt.secondaryColor,Xi=(0,A.Z)(Vt,et),Qi=W.useRef(),hi=Oe;if(Yr&&(hi={primaryColor:Yr,secondaryColor:fi||Gt(Yr)}),Pe(Qi),Ge(at(Tt),"icon should be icon definiton, but got ".concat(Tt)),!at(Tt))return null;var Go=Tt;return Go&&typeof Go.icon=="function"&&(Go=(0,se.Z)((0,se.Z)({},Go),{},{icon:Go.icon(hi.primaryColor,hi.secondaryColor)})),rt(Go.icon,"svg-".concat(Go.name),(0,se.Z)((0,se.Z)({className:un,onClick:on,style:Lr,"data-icon":Go.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Xi),{},{ref:Qi}))};ft.displayName="IconReact",ft.getTwoToneColors=je,ft.setTwoToneColors=Ue;var Ct=ft;function Xe(ze){var Vt=yt(ze),Tt=(0,z.Z)(Vt,2),un=Tt[0],on=Tt[1];return Ct.setTwoToneColors({primaryColor:un,secondaryColor:on})}function hn(){var ze=Ct.getTwoToneColors();return ze.calculated?[ze.primaryColor,ze.secondaryColor]:ze.primaryColor}var Nt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xe(ie.iN.primary);var Te=W.forwardRef(function(ze,Vt){var Tt=ze.className,un=ze.icon,on=ze.spin,Lr=ze.rotate,Yr=ze.tabIndex,fi=ze.onClick,Xi=ze.twoToneColor,Qi=(0,A.Z)(ze,Nt),hi=W.useContext(ae.Z),Go=hi.prefixCls,Mo=Go===void 0?"anticon":Go,pe=hi.rootClassName,Ii=Y()(pe,Mo,(0,P.Z)((0,P.Z)({},"".concat(Mo,"-").concat(un.name),!!un.name),"".concat(Mo,"-spin"),!!on||un.name==="loading"),Tt),Vi=Yr;Vi===void 0&&fi&&(Vi=-1);var ro=Lr?{msTransform:"rotate(".concat(Lr,"deg)"),transform:"rotate(".concat(Lr,"deg)")}:void 0,ai=yt(Xi),Ms=(0,z.Z)(ai,2),Ar=Ms[0],Rt=Ms[1];return W.createElement("span",(0,v.Z)({role:"img","aria-label":un.name},Qi,{ref:Vt,tabIndex:Vi,onClick:fi,className:Ii}),W.createElement(Ct,{icon:un,primaryColor:Ar,secondaryColor:Rt,style:ro}))});Te.displayName="AntdIcon",Te.getTwoToneColor=hn,Te.setTwoToneColor=Xe;var vt=Te},48081:function(St,me,x){"use strict";var v=x(77617),z=(0,v.createContext)({});me.Z=z},50555:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},49247:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},43418:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},4531:function(St,me,x){"use strict";var v=x(79384),z=x(77617),P=x(69929),A=x(44847),W=function(Y,ie){return z.createElement(A.Z,(0,v.Z)({},Y,{ref:ie,icon:P.Z}))};me.Z=z.forwardRef(W)},21112:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},71323:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={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"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},81664:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},29338:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},20906:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},39820:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={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"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},20555:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={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"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},24545:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={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"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},38528:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(79384),z=x(77617),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},A=P,W=x(44847),X=function(ae,se){return z.createElement(W.Z,(0,v.Z)({},ae,{ref:se,icon:A}))},Y=z.forwardRef(X)},7639:function(){window._iconfont_svg_string_3580659='',function(St){try{let ae=function(){W||(W=!0,P())},se=function(){try{A.documentElement.doScroll("left")}catch(Ie){return void setTimeout(se,50)}ae()};var Y=ae,ie=se,x=(x=document.getElementsByTagName("script"))[x.length-1],me=x.getAttribute("data-injectcss"),x=x.getAttribute("data-disable-injectsvg");if(!x){var v,z,P,A,W,X=function(Be,Ce){Ce.parentNode.insertBefore(Be,Ce)};if(me&&!St.__iconfont__svg__cssinject__){St.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Ie){console&&console.log(Ie)}}v=function(){var Be,Ce=document.createElement("div");Ce.innerHTML=St._iconfont_svg_string_3580659,(Ce=Ce.getElementsByTagName("svg")[0])&&(Ce.setAttribute("aria-hidden","true"),Ce.style.position="absolute",Ce.style.width=0,Ce.style.height=0,Ce.style.overflow="hidden",Ce=Ce,(Be=document.body).firstChild?X(Ce,Be.firstChild):Be.appendChild(Ce))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(z=function(){document.removeEventListener("DOMContentLoaded",z,!1),v()},document.addEventListener("DOMContentLoaded",z,!1)):document.attachEvent&&(P=v,A=St.document,W=!1,se(),A.onreadystatechange=function(){A.readyState=="complete"&&(A.onreadystatechange=null,ae())})}}catch(ae){}}(window)},29075:function(St,me,x){(function(v,z){z(me,x(23051))})(this,function(v,z){"use strict";var P={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},A={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},W="top",X="bottom",Y="right",ie="left",ae="auto",se=[W,X,Y,ie],Ie="start",Be="end",Ce="clippingParents",ct="viewport",nt="popper",Ge="reference",at=se.reduce(function(xe,f){return xe.concat([f+"-"+Ie,f+"-"+Be])},[]),Ye=[].concat(se,[ae]).reduce(function(xe,f){return xe.concat([f,f+"-"+Ie,f+"-"+Be])},[]),rt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gt(xe){return xe?(xe.nodeName||"").toLowerCase():null}function yt(xe){if(xe==null)return window;if(""+xe!="[object Window]"){var f=xe.ownerDocument;return f&&f.defaultView||window}return xe}function Et(xe){return xe instanceof yt(xe).Element||xe instanceof Element}function ht(xe){return xe instanceof yt(xe).HTMLElement||xe instanceof HTMLElement}function Pe(xe){return typeof ShadowRoot!="undefined"&&(xe instanceof yt(xe).ShadowRoot||xe instanceof ShadowRoot)}var et={name:"applyStyles",enabled:!0,phase:"write",fn:function(xe){var f=xe.state;Object.keys(f.elements).forEach(function(m){var C=f.styles[m]||{},N=f.attributes[m]||{},q=f.elements[m];ht(q)&&Gt(q)&&(Object.assign(q.style,C),Object.keys(N).forEach(function(oe){var _e=N[oe];_e===!1?q.removeAttribute(oe):q.setAttribute(oe,_e===!0?"":_e)}))})},effect:function(xe){var f=xe.state,m={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(f.elements.popper.style,m.popper),f.styles=m,f.elements.arrow&&Object.assign(f.elements.arrow.style,m.arrow),function(){Object.keys(f.elements).forEach(function(C){var N=f.elements[C],q=f.attributes[C]||{},oe=Object.keys(f.styles.hasOwnProperty(C)?f.styles[C]:m[C]).reduce(function(_e,$e){return _e[$e]="",_e},{});ht(N)&&Gt(N)&&(Object.assign(N.style,oe),Object.keys(q).forEach(function(_e){N.removeAttribute(_e)}))})}},requires:["computeStyles"]};function Oe(xe){return xe.split("-")[0]}var Ue=Math.max,je=Math.min,ft=Math.round;function Ct(){var xe=navigator.userAgentData;return xe!=null&&xe.brands&&Array.isArray(xe.brands)?xe.brands.map(function(f){return f.brand+"/"+f.version}).join(" "):navigator.userAgent}function Xe(){return!/^((?!chrome|android).)*safari/i.test(Ct())}function hn(xe,f,m){f===void 0&&(f=!1),m===void 0&&(m=!1);var C=xe.getBoundingClientRect(),N=1,q=1;f&&ht(xe)&&(N=xe.offsetWidth>0&&ft(C.width)/xe.offsetWidth||1,q=xe.offsetHeight>0&&ft(C.height)/xe.offsetHeight||1);var oe=(Et(xe)?yt(xe):window).visualViewport,_e=!Xe()&&m,$e=(C.left+(_e&&oe?oe.offsetLeft:0))/N,Ft=(C.top+(_e&&oe?oe.offsetTop:0))/q,an=C.width/N,nr=C.height/q;return{width:an,height:nr,top:Ft,right:$e+an,bottom:Ft+nr,left:$e,x:$e,y:Ft}}function Nt(xe){var f=hn(xe),m=xe.offsetWidth,C=xe.offsetHeight;return Math.abs(f.width-m)>1||(m=f.width),Math.abs(f.height-C)>1||(C=f.height),{x:xe.offsetLeft,y:xe.offsetTop,width:m,height:C}}function Te(xe,f){var m=f.getRootNode&&f.getRootNode();if(xe.contains(f))return!0;if(m&&Pe(m)){var C=f;do{if(C&&xe.isSameNode(C))return!0;C=C.parentNode||C.host}while(C)}return!1}function vt(xe){return yt(xe).getComputedStyle(xe)}function ze(xe){return["table","td","th"].indexOf(Gt(xe))>=0}function Vt(xe){return((Et(xe)?xe.ownerDocument:xe.document)||window.document).documentElement}function Tt(xe){return Gt(xe)==="html"?xe:xe.assignedSlot||xe.parentNode||(Pe(xe)?xe.host:null)||Vt(xe)}function un(xe){return ht(xe)&&vt(xe).position!=="fixed"?xe.offsetParent:null}function on(xe){for(var f=yt(xe),m=un(xe);m&&ze(m)&&vt(m).position==="static";)m=un(m);return m&&(Gt(m)==="html"||Gt(m)==="body"&&vt(m).position==="static")?f:m||function(C){var N=/firefox/i.test(Ct());if(/Trident/i.test(Ct())&&ht(C)&&vt(C).position==="fixed")return null;var q=Tt(C);for(Pe(q)&&(q=q.host);ht(q)&&0>["html","body"].indexOf(Gt(q));){var oe=vt(q);if(oe.transform!=="none"||oe.perspective!=="none"||oe.contain==="paint"||["transform","perspective"].indexOf(oe.willChange)!==-1||N&&oe.willChange==="filter"||N&&oe.filter&&oe.filter!=="none")return q;q=q.parentNode}return null}(xe)||f}function Lr(xe){return 0>["top","bottom"].indexOf(xe)?"y":"x"}function Yr(xe,f,m){return Ue(xe,je(f,m))}function fi(xe){return Object.assign({},{top:0,right:0,bottom:0,left:0},xe)}function Xi(xe,f){return f.reduce(function(m,C){return m[C]=xe,m},{})}var Qi={name:"arrow",enabled:!0,phase:"main",fn:function(xe){var f,m=xe.state,C=xe.name,N=xe.options,q=m.elements.arrow,oe=m.modifiersData.popperOffsets,_e=Oe(m.placement),$e=Lr(_e),Ft=[ie,Y].indexOf(_e)>=0?"height":"width";if(q&&oe){var an=function(Zs,Da){return fi(typeof(Zs=typeof Zs=="function"?Zs(Object.assign({},Da.rects,{placement:Da.placement})):Zs)!="number"?Zs:Xi(Zs,se))}(N.padding,m),nr=Nt(q),Dr=$e==="y"?W:ie,bi=$e==="y"?X:Y,Di=m.rects.reference[Ft]+m.rects.reference[$e]-oe[$e]-m.rects.popper[Ft],Ro=oe[$e]-m.rects.reference[$e],Lo=on(q),Wo=Lo?$e==="y"?Lo.clientHeight||0:Lo.clientWidth||0:0,Bo=Wo/2-nr[Ft]/2+(Di/2-Ro/2),ho=Yr(an[Dr],Bo,Wo-nr[Ft]-an[bi]);m.modifiersData[C]=((f={})[$e]=ho,f.centerOffset=ho-Bo,f)}},effect:function(xe){var f=xe.state,m=xe.options.element,C=m===void 0?"[data-popper-arrow]":m;C!=null&&(typeof C!="string"||(C=f.elements.popper.querySelector(C)))&&Te(f.elements.popper,C)&&(f.elements.arrow=C)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hi(xe){return xe.split("-")[1]}var Go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mo(xe){var f,m=xe.popper,C=xe.popperRect,N=xe.placement,q=xe.variation,oe=xe.offsets,_e=xe.position,$e=xe.gpuAcceleration,Ft=xe.adaptive,an=xe.roundOffsets,nr=xe.isFixed,Dr=oe.x,bi=Dr===void 0?0:Dr,Di=oe.y,Ro=Di===void 0?0:Di,Lo=typeof an=="function"?an({x:bi,y:Ro}):{x:bi,y:Ro};bi=Lo.x,Ro=Lo.y;var Wo=oe.hasOwnProperty("x"),Bo=oe.hasOwnProperty("y"),ho=ie,Zs=W,Da=window;if(Ft){var hl=on(m),au="clientHeight",Ru="clientWidth";hl===yt(m)&&vt(hl=Vt(m)).position!=="static"&&_e==="absolute"&&(au="scrollHeight",Ru="scrollWidth"),(N===W||(N===ie||N===Y)&&q===Be)&&(Zs=X,Ro-=(nr&&hl===Da&&Da.visualViewport?Da.visualViewport.height:hl[au])-C.height,Ro*=$e?1:-1),(N===ie||(N===W||N===X)&&q===Be)&&(ho=Y,bi-=(nr&&hl===Da&&Da.visualViewport?Da.visualViewport.width:hl[Ru])-C.width,bi*=$e?1:-1)}var Su,ih=Object.assign({position:_e},Ft&&Go),_u=an===!0?function(zc,Fn){var ur=zc.y,Hr=Fn.devicePixelRatio||1;return{x:ft(zc.x*Hr)/Hr||0,y:ft(ur*Hr)/Hr||0}}({x:bi,y:Ro},yt(m)):{x:bi,y:Ro};return bi=_u.x,Ro=_u.y,Object.assign({},ih,$e?((Su={})[Zs]=Bo?"0":"",Su[ho]=Wo?"0":"",Su.transform=(Da.devicePixelRatio||1)>1?"translate3d("+bi+"px, "+Ro+"px, 0)":"translate("+bi+"px, "+Ro+"px)",Su):((f={})[Zs]=Bo?Ro+"px":"",f[ho]=Wo?bi+"px":"",f.transform="",f))}var pe={passive:!0},Ii={left:"right",right:"left",bottom:"top",top:"bottom"};function Vi(xe){return xe.replace(/left|right|bottom|top/g,function(f){return Ii[f]})}var ro={start:"end",end:"start"};function ai(xe){return xe.replace(/start|end/g,function(f){return ro[f]})}function Ms(xe){var f=yt(xe);return{scrollLeft:f.pageXOffset,scrollTop:f.pageYOffset}}function Ar(xe){return hn(Vt(xe)).left+Ms(xe).scrollLeft}function Rt(xe){var f=vt(xe);return/auto|scroll|overlay|hidden/.test(f.overflow+f.overflowY+f.overflowX)}function jn(xe){return 0>["html","body","#document"].indexOf(Gt(xe))?ht(xe)&&Rt(xe)?xe:jn(Tt(xe)):xe.ownerDocument.body}function wr(xe,f){var m;f===void 0&&(f=[]);var C=jn(xe),N=C===((m=xe.ownerDocument)==null?void 0:m.body),q=yt(C),oe=N?[q].concat(q.visualViewport||[],Rt(C)?C:[]):C,_e=f.concat(oe);return N?_e:_e.concat(wr(Tt(oe)))}function oi(xe){return Object.assign({},xe,{left:xe.x,top:xe.y,right:xe.x+xe.width,bottom:xe.y+xe.height})}function Ti(xe,f,m){return f===ct?oi(function(C,N){var q=yt(C),oe=Vt(C),_e=q.visualViewport,$e=oe.clientWidth,Ft=oe.clientHeight,an=0,nr=0;if(_e){$e=_e.width,Ft=_e.height;var Dr=Xe();(Dr||!Dr&&N==="fixed")&&(an=_e.offsetLeft,nr=_e.offsetTop)}return{width:$e,height:Ft,x:an+Ar(C),y:nr}}(xe,m)):Et(f)?function(C,N){var q=hn(C,!1,N==="fixed");return q.top=q.top+C.clientTop,q.left=q.left+C.clientLeft,q.bottom=q.top+C.clientHeight,q.right=q.left+C.clientWidth,q.width=C.clientWidth,q.height=C.clientHeight,q.x=q.left,q.y=q.top,q}(f,m):oi(function(C){var N,q=Vt(C),oe=Ms(C),_e=(N=C.ownerDocument)==null?void 0:N.body,$e=Ue(q.scrollWidth,q.clientWidth,_e?_e.scrollWidth:0,_e?_e.clientWidth:0),Ft=Ue(q.scrollHeight,q.clientHeight,_e?_e.scrollHeight:0,_e?_e.clientHeight:0),an=-oe.scrollLeft+Ar(C),nr=-oe.scrollTop;return vt(_e||q).direction==="rtl"&&(an+=Ue(q.clientWidth,_e?_e.clientWidth:0)-$e),{width:$e,height:Ft,x:an,y:nr}}(Vt(xe)))}function Bi(xe,f,m,C){var N=f==="clippingParents"?function(_e){var $e=wr(Tt(_e)),Ft=["absolute","fixed"].indexOf(vt(_e).position)>=0&&ht(_e)?on(_e):_e;return Et(Ft)?$e.filter(function(an){return Et(an)&&Te(an,Ft)&&Gt(an)!=="body"}):[]}(xe):[].concat(f),q=[].concat(N,[m]),oe=q.reduce(function(_e,$e){var Ft=Ti(xe,$e,C);return _e.top=Ue(Ft.top,_e.top),_e.right=je(Ft.right,_e.right),_e.bottom=je(Ft.bottom,_e.bottom),_e.left=Ue(Ft.left,_e.left),_e},Ti(xe,q[0],C));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe}function no(xe){var f,m=xe.reference,C=xe.element,N=xe.placement,q=N?Oe(N):null,oe=N?hi(N):null,_e=m.x+m.width/2-C.width/2,$e=m.y+m.height/2-C.height/2;switch(q){case W:f={x:_e,y:m.y-C.height};break;case X:f={x:_e,y:m.y+m.height};break;case Y:f={x:m.x+m.width,y:$e};break;case ie:f={x:m.x-C.width,y:$e};break;default:f={x:m.x,y:m.y}}var Ft=q?Lr(q):null;if(Ft!=null){var an=Ft==="y"?"height":"width";switch(oe){case Ie:f[Ft]=f[Ft]-(m[an]/2-C[an]/2);break;case Be:f[Ft]=f[Ft]+(m[an]/2-C[an]/2)}}return f}function Vr(xe,f){f===void 0&&(f={});var m=f.placement,C=m===void 0?xe.placement:m,N=f.strategy,q=N===void 0?xe.strategy:N,oe=f.boundary,_e=oe===void 0?Ce:oe,$e=f.rootBoundary,Ft=$e===void 0?ct:$e,an=f.elementContext,nr=an===void 0?nt:an,Dr=f.altBoundary,bi=Dr!==void 0&&Dr,Di=f.padding,Ro=Di===void 0?0:Di,Lo=fi(typeof Ro!="number"?Ro:Xi(Ro,se)),Wo=xe.rects.popper,Bo=xe.elements[bi?nr===nt?Ge:nt:nr],ho=Bi(Et(Bo)?Bo:Bo.contextElement||Vt(xe.elements.popper),_e,Ft,q),Zs=hn(xe.elements.reference),Da=no({reference:Zs,element:Wo,strategy:"absolute",placement:C}),hl=oi(Object.assign({},Wo,Da)),au=nr===nt?hl:Zs,Ru={top:ho.top-au.top+Lo.top,bottom:au.bottom-ho.bottom+Lo.bottom,left:ho.left-au.left+Lo.left,right:au.right-ho.right+Lo.right},Su=xe.modifiersData.offset;if(nr===nt&&Su){var ih=Su[C];Object.keys(Ru).forEach(function(_u){var zc=0>[Y,X].indexOf(_u)?-1:1;Ru[_u]+=ih[0>[W,X].indexOf(_u)?"x":"y"]*zc})}return Ru}function Rn(xe,f){f===void 0&&(f={});var m=f.boundary,C=f.rootBoundary,N=f.padding,q=f.flipVariations,oe=f.allowedAutoPlacements,_e=oe===void 0?Ye:oe,$e=hi(f.placement),Ft=$e?q?at:at.filter(function(Dr){return hi(Dr)===$e}):se,an=Ft.filter(function(Dr){return _e.indexOf(Dr)>=0});an.length===0&&(an=Ft);var nr=an.reduce(function(Dr,bi){return Dr[bi]=Vr(xe,{placement:bi,boundary:m,rootBoundary:C,padding:N})[Oe(bi)],Dr},{});return Object.keys(nr).sort(function(Dr,bi){return nr[Dr]-nr[bi]})}var Xt={name:"flip",enabled:!0,phase:"main",fn:function(xe){var f=xe.state,m=xe.options,C=xe.name;if(!f.modifiersData[C]._skip){for(var N=m.mainAxis,q=N===void 0||N,oe=m.altAxis,_e=oe===void 0||oe,$e=m.fallbackPlacements,Ft=m.padding,an=m.boundary,nr=m.rootBoundary,Dr=m.altBoundary,bi=m.flipVariations,Di=bi===void 0||bi,Ro=m.allowedAutoPlacements,Lo=f.options.placement,Wo=Oe(Lo),Bo=$e||(Wo===Lo||!Di?[Vi(Lo)]:function(Ha){if(Oe(Ha)===ae)return[];var ql=Vi(Ha);return[ai(Ha),ql,ai(ql)]}(Lo)),ho=[Lo].concat(Bo).reduce(function(Ha,ql){return Ha.concat(Oe(ql)===ae?Rn(f,{placement:ql,boundary:an,rootBoundary:nr,padding:Ft,flipVariations:Di,allowedAutoPlacements:Ro}):ql)},[]),Zs=f.rects.reference,Da=f.rects.popper,hl=new Map,au=!0,Ru=ho[0],Su=0;ho.length>Su;Su++){var ih=ho[Su],_u=Oe(ih),zc=hi(ih)===Ie,Fn=[W,X].indexOf(_u)>=0,ur=Fn?"width":"height",Hr=Vr(f,{placement:ih,boundary:an,rootBoundary:nr,altBoundary:Dr,padding:Ft}),gi=Fn?zc?Y:ie:zc?X:W;Zs[ur]>Da[ur]&&(gi=Vi(gi));var fo=Vi(gi),Ys=[];if(q&&Ys.push(0>=Hr[_u]),_e&&Ys.push(0>=Hr[gi],0>=Hr[fo]),Ys.every(function(Ha){return Ha})){Ru=ih,au=!1;break}hl.set(ih,Ys)}if(au)for(var Pa=function(Ha){var ql=ho.find(function(As){var xc=hl.get(As);if(xc)return xc.slice(0,Ha).every(function(md){return md})});if(ql)return Ru=ql,"break"},Ns=Di?3:1;Ns>0&&Pa(Ns)!=="break";Ns--);f.placement!==Ru&&(f.modifiersData[C]._skip=!0,f.placement=Ru,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Sn(xe,f,m){return m===void 0&&(m={x:0,y:0}),{top:xe.top-f.height-m.y,right:xe.right-f.width+m.x,bottom:xe.bottom-f.height+m.y,left:xe.left-f.width-m.x}}function Pn(xe){return[W,Y,X,ie].some(function(f){return xe[f]>=0})}var hr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(xe){var f=xe.state,m=xe.name,C=xe.options.offset,N=C===void 0?[0,0]:C,q=Ye.reduce(function($e,Ft){return $e[Ft]=function(an,nr,Dr){var bi=Oe(an),Di=0>[ie,W].indexOf(bi)?1:-1,Ro=typeof Dr=="function"?Dr(Object.assign({},nr,{placement:an})):Dr,Lo=Ro[0],Wo=Ro[1];return Lo=Lo||0,Wo=(Wo||0)*Di,0>[ie,Y].indexOf(bi)?{x:Lo,y:Wo}:{x:Wo,y:Lo}}(Ft,f.rects,N),$e},{}),oe=q[f.placement],_e=oe.y;f.modifiersData.popperOffsets!=null&&(f.modifiersData.popperOffsets.x+=oe.x,f.modifiersData.popperOffsets.y+=_e),f.modifiersData[m]=q}},mt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(xe){var f=xe.state,m=xe.options,C=xe.name,N=m.mainAxis,q=N===void 0||N,oe=m.altAxis,_e=oe!==void 0&&oe,$e=m.tether,Ft=$e===void 0||$e,an=m.tetherOffset,nr=an===void 0?0:an,Dr=Vr(f,{boundary:m.boundary,rootBoundary:m.rootBoundary,padding:m.padding,altBoundary:m.altBoundary}),bi=Oe(f.placement),Di=hi(f.placement),Ro=!Di,Lo=Lr(bi),Wo=Lo==="x"?"y":"x",Bo=f.modifiersData.popperOffsets,ho=f.rects.reference,Zs=f.rects.popper,Da=typeof nr=="function"?nr(Object.assign({},f.rects,{placement:f.placement})):nr,hl=typeof Da=="number"?{mainAxis:Da,altAxis:Da}:Object.assign({mainAxis:0,altAxis:0},Da),au=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,Ru={x:0,y:0};if(Bo){if(q){var Su,ih=Lo==="y"?W:ie,_u=Lo==="y"?X:Y,zc=Lo==="y"?"height":"width",Fn=Bo[Lo],ur=Fn+Dr[ih],Hr=Fn-Dr[_u],gi=Ft?-Zs[zc]/2:0,fo=Di===Ie?ho[zc]:Zs[zc],Ys=Di===Ie?-Zs[zc]:-ho[zc],Pa=f.elements.arrow,Ns=Ft&&Pa?Nt(Pa):{width:0,height:0},Ha=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ql=Ha[ih],As=Ha[_u],xc=Yr(0,ho[zc],Ns[zc]),md=Ro?ho[zc]/2-gi-xc-ql-hl.mainAxis:fo-xc-ql-hl.mainAxis,Uh=Ro?-ho[zc]/2+gi+xc+As+hl.mainAxis:Ys+xc+As+hl.mainAxis,Ch=f.elements.arrow&&on(f.elements.arrow),pd=(Su=au==null?void 0:au[Lo])!=null?Su:0,bp=Fn+Uh-pd,kp=Yr(Ft?je(ur,Fn+md-pd-(Ch?Lo==="y"?Ch.clientTop||0:Ch.clientLeft||0:0)):ur,Fn,Ft?Ue(Hr,bp):Hr);Bo[Lo]=kp,Ru[Lo]=kp-Fn}if(_e){var Xd,rf=Bo[Wo],es=Wo==="y"?"height":"width",Rl=rf+Dr[Lo==="x"?W:ie],sf=rf-Dr[Lo==="x"?X:Y],Ad=[W,ie].indexOf(bi)!==-1,Ff=(Xd=au==null?void 0:au[Wo])!=null?Xd:0,Ag=Ad?Rl:rf-ho[es]-Zs[es]-Ff+hl.altAxis,Pf=Ad?rf+ho[es]+Zs[es]-Ff-hl.altAxis:sf,Xl=Ft&&Ad?function(Ph,cf,Gd){var Sp=Yr(Ph,cf,Gd);return Sp>Gd?Gd:Sp}(Ag,rf,Pf):Yr(Ft?Ag:Rl,rf,Ft?Pf:sf);Bo[Wo]=Xl,Ru[Wo]=Xl-rf}f.modifiersData[C]=Ru}},requiresIfExists:["offset"]};function tt(xe,f,m){m===void 0&&(m=!1);var C,N,q=ht(f),oe=ht(f)&&function(nr){var Dr=nr.getBoundingClientRect(),bi=ft(Dr.width)/nr.offsetWidth||1,Di=ft(Dr.height)/nr.offsetHeight||1;return bi!==1||Di!==1}(f),_e=Vt(f),$e=hn(xe,oe,m),Ft={scrollLeft:0,scrollTop:0},an={x:0,y:0};return(q||!q&&!m)&&((Gt(f)!=="body"||Rt(_e))&&(Ft=(C=f)!==yt(C)&&ht(C)?{scrollLeft:(N=C).scrollLeft,scrollTop:N.scrollTop}:Ms(C)),ht(f)?((an=hn(f,!0)).x+=f.clientLeft,an.y+=f.clientTop):_e&&(an.x=Ar(_e))),{x:$e.left+Ft.scrollLeft-an.x,y:$e.top+Ft.scrollTop-an.y,width:$e.width,height:$e.height}}function kt(xe){var f=new Map,m=new Set,C=[];function N(q){m.add(q.name),[].concat(q.requires||[],q.requiresIfExists||[]).forEach(function(oe){if(!m.has(oe)){var _e=f.get(oe);_e&&N(_e)}}),C.push(q)}return xe.forEach(function(q){f.set(q.name,q)}),xe.forEach(function(q){m.has(q.name)||N(q)}),C}var vn={placement:"bottom",modifiers:[],strategy:"absolute"};function vr(){for(var xe=arguments.length,f=Array(xe),m=0;xe>m;m++)f[m]=arguments[m];return!f.some(function(C){return!(C&&typeof C.getBoundingClientRect=="function")})}function qr(xe){xe===void 0&&(xe={});var f=xe.defaultModifiers,m=f===void 0?[]:f,C=xe.defaultOptions,N=C===void 0?vn:C;return function(q,oe,_e){_e===void 0&&(_e=N);var $e,Ft,an={placement:"bottom",orderedModifiers:[],options:Object.assign({},vn,N),modifiersData:{},elements:{reference:q,popper:oe},attributes:{},styles:{}},nr=[],Dr=!1,bi={state:an,setOptions:function(Ro){var Lo=typeof Ro=="function"?Ro(an.options):Ro;Di(),an.options=Object.assign({},N,an.options,Lo),an.scrollParents={reference:Et(q)?wr(q):q.contextElement?wr(q.contextElement):[],popper:wr(oe)};var Wo,Bo,ho=function(Zs){var Da=kt(Zs);return rt.reduce(function(hl,au){return hl.concat(Da.filter(function(Ru){return Ru.phase===au}))},[])}((Wo=[].concat(m,an.options.modifiers),Bo=Wo.reduce(function(Zs,Da){var hl=Zs[Da.name];return Zs[Da.name]=hl?Object.assign({},hl,Da,{options:Object.assign({},hl.options,Da.options),data:Object.assign({},hl.data,Da.data)}):Da,Zs},{}),Object.keys(Bo).map(function(Zs){return Bo[Zs]})));return an.orderedModifiers=ho.filter(function(Zs){return Zs.enabled}),an.orderedModifiers.forEach(function(Zs){var Da=Zs.options,hl=Zs.effect;if(typeof hl=="function"){var au=hl({state:an,name:Zs.name,instance:bi,options:Da===void 0?{}:Da});nr.push(au||function(){})}}),bi.update()},forceUpdate:function(){if(!Dr){var Ro=an.elements,Lo=Ro.reference,Wo=Ro.popper;if(vr(Lo,Wo)){an.rects={reference:tt(Lo,on(Wo),an.options.strategy==="fixed"),popper:Nt(Wo)},an.reset=!1,an.placement=an.options.placement,an.orderedModifiers.forEach(function(hl){return an.modifiersData[hl.name]=Object.assign({},hl.data)});for(var Bo=0;an.orderedModifiers.length>Bo;Bo++)if(an.reset!==!0){var ho=an.orderedModifiers[Bo],Zs=ho.fn,Da=ho.options;typeof Zs=="function"&&(an=Zs({state:an,options:Da===void 0?{}:Da,name:ho.name,instance:bi})||an)}else an.reset=!1,Bo=-1}}},update:($e=function(){return new Promise(function(Ro){bi.forceUpdate(),Ro(an)})},function(){return Ft||(Ft=new Promise(function(Ro){Promise.resolve().then(function(){Ft=void 0,Ro($e())})})),Ft}),destroy:function(){Di(),Dr=!0}};if(!vr(q,oe))return bi;function Di(){nr.forEach(function(Ro){return Ro()}),nr=[]}return bi.setOptions(_e).then(function(Ro){!Dr&&_e.onFirstUpdate&&_e.onFirstUpdate(Ro)}),bi}}var Ni=qr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(xe){var f=xe.state,m=xe.instance,C=xe.options,N=C.scroll,q=N===void 0||N,oe=C.resize,_e=oe===void 0||oe,$e=yt(f.elements.popper),Ft=[].concat(f.scrollParents.reference,f.scrollParents.popper);return q&&Ft.forEach(function(an){an.addEventListener("scroll",m.update,pe)}),_e&&$e.addEventListener("resize",m.update,pe),function(){q&&Ft.forEach(function(an){an.removeEventListener("scroll",m.update,pe)}),_e&&$e.removeEventListener("resize",m.update,pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(xe){var f=xe.state;f.modifiersData[xe.name]=no({reference:f.rects.reference,element:f.rects.popper,strategy:"absolute",placement:f.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(xe){var f=xe.state,m=xe.options,C=m.gpuAcceleration,N=C===void 0||C,q=m.adaptive,oe=q===void 0||q,_e=m.roundOffsets,$e=_e===void 0||_e,Ft={placement:Oe(f.placement),variation:hi(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:N,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,Mo(Object.assign({},Ft,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:oe,roundOffsets:$e})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,Mo(Object.assign({},Ft,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:$e})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})},data:{}},et,hr,Xt,mt,Qi,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(xe){var f=xe.state,m=xe.name,C=f.rects.reference,N=f.rects.popper,q=f.modifiersData.preventOverflow,oe=Vr(f,{elementContext:"reference"}),_e=Vr(f,{altBoundary:!0}),$e=Sn(oe,C),Ft=Sn(_e,N,q),an=Pn($e),nr=Pn(Ft);f.modifiersData[m]={referenceClippingOffsets:$e,popperEscapeOffsets:Ft,isReferenceHidden:an,hasPopperEscaped:nr},f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-reference-hidden":an,"data-popper-escaped":nr})}}]}),li="tippy-content",Un="tippy-backdrop",dn="tippy-arrow",xt="tippy-svg-arrow",it={passive:!0,capture:!0},Bt=function(){return document.body};function rn(xe,f,m){if(Array.isArray(xe)){var C=xe[f];return C==null?Array.isArray(m)?m[f]:m:C}return xe}function ir(xe,f){var m={}.toString.call(xe);return m.indexOf("[object")===0&&m.indexOf(f+"]")>-1}function tr(xe,f){return typeof xe=="function"?xe.apply(void 0,f):xe}function Jn(xe,f){return f===0?xe:function(C){clearTimeout(m),m=setTimeout(function(){xe(C)},f)};var m}function nn(xe){return[].concat(xe)}function er(xe,f){xe.indexOf(f)===-1&&xe.push(f)}function Fr(xe){return[].slice.call(xe)}function jr(xe){return Object.keys(xe).reduce(function(f,m){return xe[m]!==void 0&&(f[m]=xe[m]),f},{})}function bo(){return document.createElement("div")}function zt(xe){return["Element","Fragment"].some(function(f){return ir(xe,f)})}function en(xe){return ir(xe,"MouseEvent")}function Cn(xe){return zt(xe)?[xe]:function(f){return ir(f,"NodeList")}(xe)?Fr(xe):Array.isArray(xe)?xe:Fr(document.querySelectorAll(xe))}function rr(xe,f){xe.forEach(function(m){m&&(m.style.transitionDuration=f+"ms")})}function Pr(xe,f){xe.forEach(function(m){m&&m.setAttribute("data-state",f)})}function Er(xe){var f,m=nn(xe)[0];return m!=null&&(f=m.ownerDocument)!=null&&f.body?m.ownerDocument:document}function ui(xe,f,m){var C=f+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(N){xe[C](N,m)})}function Gr(xe,f){for(var m=f;m;){var C;if(xe.contains(m))return!0;m=m.getRootNode==null||(C=m.getRootNode())==null?void 0:C.host}return!1}var zr={isTouch:!1},Ei=0;function Zi(){zr.isTouch||(zr.isTouch=!0,window.performance&&document.addEventListener("mousemove",Kr))}function Kr(){var xe=performance.now();20>xe-Ei&&(zr.isTouch=!1,document.removeEventListener("mousemove",Kr)),Ei=xe}function Xr(){var xe,f=document.activeElement;(xe=f)&&xe._tippy&&xe._tippy.reference===xe&&f.blur&&!f._tippy.state.isVisible&&f.blur()}var Qo=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,pr=Object.assign({appendTo:Bt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),qo=Object.keys(pr);function Br(xe){var f=(xe.plugins||[]).reduce(function(m,C){var N,q=C.name;return q&&(m[q]=xe[q]!==void 0?xe[q]:(N=pr[q])!=null?N:C.defaultValue),m},{});return Object.assign({},xe,f)}function sr(xe,f){var m=Object.assign({},f,{content:tr(f.content,[xe])},f.ignoreAttributes?{}:function(C,N){return(N?Object.keys(Br(Object.assign({},pr,{plugins:N}))):qo).reduce(function(q,oe){var _e=(C.getAttribute("data-tippy-"+oe)||"").trim();if(!_e)return q;if(oe==="content")q[oe]=_e;else try{q[oe]=JSON.parse(_e)}catch($e){q[oe]=_e}return q},{})}(xe,f.plugins));return m.aria=Object.assign({},pr.aria,m.aria),m.aria={expanded:m.aria.expanded==="auto"?f.interactive:m.aria.expanded,content:m.aria.content==="auto"?f.interactive?null:"describedby":m.aria.content},m}var ii=function(){return"innerHTML"};function qi(xe,f){xe[ii()]=f}function Ln(xe){var f=bo();return xe===!0?f.className=dn:(f.className=xt,zt(xe)?f.appendChild(xe):qi(f,xe)),f}function zn(xe,f){zt(f.content)?(qi(xe,""),xe.appendChild(f.content)):typeof f.content!="function"&&(f.allowHTML?qi(xe,f.content):xe.textContent=f.content)}function Wi(xe){var f=xe.firstElementChild,m=Fr(f.children);return{box:f,content:m.find(function(C){return C.classList.contains(li)}),arrow:m.find(function(C){return C.classList.contains(dn)||C.classList.contains(xt)}),backdrop:m.find(function(C){return C.classList.contains(Un)})}}function Yi(xe){var f=bo(),m=bo();m.className="tippy-box",m.setAttribute("data-state","hidden"),m.setAttribute("tabindex","-1");var C=bo();function N(q,oe){var _e=Wi(f),$e=_e.box,Ft=_e.content,an=_e.arrow;oe.theme?$e.setAttribute("data-theme",oe.theme):$e.removeAttribute("data-theme"),typeof oe.animation=="string"?$e.setAttribute("data-animation",oe.animation):$e.removeAttribute("data-animation"),oe.inertia?$e.setAttribute("data-inertia",""):$e.removeAttribute("data-inertia"),$e.style.maxWidth=typeof oe.maxWidth=="number"?oe.maxWidth+"px":oe.maxWidth,oe.role?$e.setAttribute("role",oe.role):$e.removeAttribute("role"),q.content===oe.content&&q.allowHTML===oe.allowHTML||zn(Ft,xe.props),oe.arrow?an?q.arrow!==oe.arrow&&($e.removeChild(an),$e.appendChild(Ln(oe.arrow))):$e.appendChild(Ln(oe.arrow)):an&&$e.removeChild(an)}return C.className=li,C.setAttribute("data-state","hidden"),zn(C,xe.props),f.appendChild(m),m.appendChild(C),N(xe.props,xe.props),{popper:f,onUpdate:N}}Yi.$$tippy=!0;var so=1,ko=[],_i=[];function hs(xe,f){var m,C,N,q,oe,_e,$e,Ft,an=sr(xe,Object.assign({},pr,Br(jr(f)))),nr=!1,Dr=!1,bi=!1,Di=!1,Ro=[],Lo=Jn(Xd,an.interactiveDebounce),Wo=so++,Bo=(Ft=an.plugins).filter(function(Xl,Ph){return Ft.indexOf(Xl)===Ph}),ho={id:Wo,reference:xe,popper:bo(),popperInstance:null,props:an,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Bo,clearDelayTimeouts:function(){clearTimeout(m),clearTimeout(C),cancelAnimationFrame(N)},setProps:function(Xl){if(!ho.state.isDestroyed){fo("onBeforeUpdate",[ho,Xl]),bp();var Ph=ho.props,cf=sr(xe,Object.assign({},Ph,jr(Xl),{ignoreAttributes:!0}));ho.props=cf,pd(),Ph.interactiveDebounce!==cf.interactiveDebounce&&(Ns(),Lo=Jn(Xd,cf.interactiveDebounce)),Ph.triggerTarget&&!cf.triggerTarget?nn(Ph.triggerTarget).forEach(function(Gd){Gd.removeAttribute("aria-expanded")}):cf.triggerTarget&&xe.removeAttribute("aria-expanded"),Pa(),gi(),hl&&hl(Ph,cf),ho.popperInstance&&(sf(),Ff().forEach(function(Gd){requestAnimationFrame(Gd._tippy.popperInstance.forceUpdate)})),fo("onAfterUpdate",[ho,Xl])}},setContent:function(Xl){ho.setProps({content:Xl})},show:function(){var Xl=ho.state.isVisible,Ph=ho.state.isDestroyed,cf=!ho.state.isEnabled,Gd=zr.isTouch&&!ho.props.touch,Sp=rn(ho.props.duration,0,pr.duration);if(!(Xl||Ph||cf||Gd)&&!zc().hasAttribute("disabled")&&(fo("onShow",[ho],!1),ho.props.onShow(ho)!==!1)){if(ho.state.isVisible=!0,_u()&&(Da.style.visibility="visible"),gi(),xc(),ho.state.isMounted||(Da.style.transition="none"),_u()){var F=ur();rr([F.box,F.content],0)}_e=function(){var I;if(ho.state.isVisible&&!Di){if(Di=!0,Da.style.transition=ho.props.moveTransition,_u()&&ho.props.animation){var K=ur(),de=K.box,Re=K.content;rr([de,Re],Sp),Pr([de,Re],"visible")}Ys(),Pa(),er(_i,ho),(I=ho.popperInstance)==null||I.forceUpdate(),fo("onMount",[ho]),ho.props.animation&&_u()&&function(gt,st){Uh(gt,st)}(Sp,function(){ho.state.isShown=!0,fo("onShown",[ho])})}},function(){var I,K=ho.props.appendTo,de=zc();I=ho.props.interactive&&K===Bt||K==="parent"?de.parentNode:tr(K,[de]),I.contains(Da)||I.appendChild(Da),ho.state.isMounted=!0,sf()}()}},hide:function(){var Xl=!ho.state.isVisible,Ph=ho.state.isDestroyed,cf=!ho.state.isEnabled,Gd=rn(ho.props.duration,1,pr.duration);if(!(Xl||Ph||cf)&&(fo("onHide",[ho],!1),ho.props.onHide(ho)!==!1)){if(ho.state.isVisible=!1,ho.state.isShown=!1,Di=!1,nr=!1,_u()&&(Da.style.visibility="hidden"),Ns(),md(),gi(!0),_u()){var Sp=ur(),F=Sp.box,I=Sp.content;ho.props.animation&&(rr([F,I],Gd),Pr([F,I],"hidden"))}Ys(),Pa(),ho.props.animation?_u()&&function(K,de){Uh(K,function(){!ho.state.isVisible&&Da.parentNode&&Da.parentNode.contains(Da)&&de()})}(Gd,ho.unmount):ho.unmount()}},hideWithInteractivity:function(Xl){Fn().addEventListener("mousemove",Lo),er(ko,Lo),Lo(Xl)},enable:function(){ho.state.isEnabled=!0},disable:function(){ho.hide(),ho.state.isEnabled=!1},unmount:function(){ho.state.isVisible&&ho.hide(),ho.state.isMounted&&(Ad(),Ff().forEach(function(Xl){Xl._tippy.unmount()}),Da.parentNode&&Da.parentNode.removeChild(Da),_i=_i.filter(function(Xl){return Xl!==ho}),ho.state.isMounted=!1,fo("onHidden",[ho]))},destroy:function(){ho.state.isDestroyed||(ho.clearDelayTimeouts(),ho.unmount(),bp(),delete xe._tippy,ho.state.isDestroyed=!0,fo("onDestroy",[ho]))}};if(!an.render)return ho;var Zs=an.render(ho),Da=Zs.popper,hl=Zs.onUpdate;Da.setAttribute("data-tippy-root",""),Da.id="tippy-"+ho.id,ho.popper=Da,xe._tippy=ho,Da._tippy=ho;var au=Bo.map(function(Xl){return Xl.fn(ho)}),Ru=xe.hasAttribute("aria-expanded");return pd(),Pa(),gi(),fo("onCreate",[ho]),an.showOnCreate&&Ag(),Da.addEventListener("mouseenter",function(){ho.props.interactive&&ho.state.isVisible&&ho.clearDelayTimeouts()}),Da.addEventListener("mouseleave",function(){ho.props.interactive&&ho.props.trigger.indexOf("mouseenter")>=0&&Fn().addEventListener("mousemove",Lo)}),ho;function Su(){var Xl=ho.props.touch;return Array.isArray(Xl)?Xl:[Xl,0]}function ih(){return Su()[0]==="hold"}function _u(){var Xl;return!((Xl=ho.props.render)==null||!Xl.$$tippy)}function zc(){return $e||xe}function Fn(){var Xl=zc().parentNode;return Xl?Er(Xl):document}function ur(){return Wi(Da)}function Hr(Xl){return ho.state.isMounted&&!ho.state.isVisible||zr.isTouch||q&&q.type==="focus"?0:rn(ho.props.delay,Xl?0:1,pr.delay)}function gi(Xl){Xl===void 0&&(Xl=!1),Da.style.pointerEvents=ho.props.interactive&&!Xl?"":"none",Da.style.zIndex=""+ho.props.zIndex}function fo(Xl,Ph,cf){var Gd;cf===void 0&&(cf=!0),au.forEach(function(Sp){Sp[Xl]&&Sp[Xl].apply(Sp,Ph)}),cf&&(Gd=ho.props)[Xl].apply(Gd,Ph)}function Ys(){var Xl=ho.props.aria;if(Xl.content){var Ph="aria-"+Xl.content,cf=Da.id;nn(ho.props.triggerTarget||xe).forEach(function(Gd){var Sp=Gd.getAttribute(Ph);if(ho.state.isVisible)Gd.setAttribute(Ph,Sp?Sp+" "+cf:cf);else{var F=Sp&&Sp.replace(cf,"").trim();F?Gd.setAttribute(Ph,F):Gd.removeAttribute(Ph)}})}}function Pa(){!Ru&&ho.props.aria.expanded&&nn(ho.props.triggerTarget||xe).forEach(function(Xl){ho.props.interactive?Xl.setAttribute("aria-expanded",ho.state.isVisible&&Xl===zc()?"true":"false"):Xl.removeAttribute("aria-expanded")})}function Ns(){Fn().removeEventListener("mousemove",Lo),ko=ko.filter(function(Xl){return Xl!==Lo})}function Ha(Xl){if(!zr.isTouch||!bi&&Xl.type!=="mousedown"){var Ph=Xl.composedPath&&Xl.composedPath()[0]||Xl.target;if(!ho.props.interactive||!Gr(Da,Ph)){if(nn(ho.props.triggerTarget||xe).some(function(cf){return Gr(cf,Ph)})){if(zr.isTouch||ho.state.isVisible&&ho.props.trigger.indexOf("click")>=0)return}else fo("onClickOutside",[ho,Xl]);ho.props.hideOnClick===!0&&(ho.clearDelayTimeouts(),ho.hide(),Dr=!0,setTimeout(function(){Dr=!1}),ho.state.isMounted||md())}}}function ql(){bi=!0}function As(){bi=!1}function xc(){var Xl=Fn();Xl.addEventListener("mousedown",Ha,!0),Xl.addEventListener("touchend",Ha,it),Xl.addEventListener("touchstart",As,it),Xl.addEventListener("touchmove",ql,it)}function md(){var Xl=Fn();Xl.removeEventListener("mousedown",Ha,!0),Xl.removeEventListener("touchend",Ha,it),Xl.removeEventListener("touchstart",As,it),Xl.removeEventListener("touchmove",ql,it)}function Uh(Xl,Ph){var cf=ur().box;function Gd(Sp){Sp.target===cf&&(ui(cf,"remove",Gd),Ph())}if(Xl===0)return Ph();ui(cf,"remove",oe),ui(cf,"add",Gd),oe=Gd}function Ch(Xl,Ph,cf){cf===void 0&&(cf=!1),nn(ho.props.triggerTarget||xe).forEach(function(Gd){Gd.addEventListener(Xl,Ph,cf),Ro.push({node:Gd,eventType:Xl,handler:Ph,options:cf})})}function pd(){var Xl;ih()&&(Ch("touchstart",kp,{passive:!0}),Ch("touchend",rf,{passive:!0})),(Xl=ho.props.trigger,Xl.split(/\s+/).filter(Boolean)).forEach(function(Ph){if(Ph!=="manual")switch(Ch(Ph,kp),Ph){case"mouseenter":Ch("mouseleave",rf);break;case"focus":Ch(Qo?"focusout":"blur",es);break;case"focusin":Ch("focusout",es)}})}function bp(){Ro.forEach(function(Xl){Xl.node.removeEventListener(Xl.eventType,Xl.handler,Xl.options)}),Ro=[]}function kp(Xl){var Ph,cf=!1;if(ho.state.isEnabled&&!Rl(Xl)&&!Dr){var Gd=((Ph=q)==null?void 0:Ph.type)==="focus";q=Xl,$e=Xl.currentTarget,Pa(),!ho.state.isVisible&&en(Xl)&&ko.forEach(function(Sp){return Sp(Xl)}),Xl.type==="click"&&(0>ho.props.trigger.indexOf("mouseenter")||nr)&&ho.props.hideOnClick!==!1&&ho.state.isVisible?cf=!0:Ag(Xl),Xl.type==="click"&&(nr=!cf),cf&&!Gd&&Pf(Xl)}}function Xd(Xl){var Ph=Xl.target,cf=zc().contains(Ph)||Da.contains(Ph);if(Xl.type!=="mousemove"||!cf){var Gd=Ff().concat(Da).map(function(Sp){var F,I=(F=Sp._tippy.popperInstance)==null?void 0:F.state;return I?{popperRect:Sp.getBoundingClientRect(),popperState:I,props:an}:null}).filter(Boolean);(function(Sp,F){var I=F.clientX,K=F.clientY;return Sp.every(function(de){var Re=de.popperRect,gt=de.popperState,st=de.props.interactiveBorder,Yt=gt.placement.split("-")[0],Tn=gt.modifiersData.offset;return!Tn||Re.top-K+(Yt==="bottom"?Tn.top.y:0)>st||K-Re.bottom-(Yt==="top"?Tn.bottom.y:0)>st||Re.left-I+(Yt==="right"?Tn.left.x:0)>st||I-Re.right-(Yt==="left"?Tn.right.x:0)>st})})(Gd,Xl)&&(Ns(),Pf(Xl))}}function rf(Xl){Rl(Xl)||ho.props.trigger.indexOf("click")>=0&&nr||(ho.props.interactive?ho.hideWithInteractivity(Xl):Pf(Xl))}function es(Xl){0>ho.props.trigger.indexOf("focusin")&&Xl.target!==zc()||ho.props.interactive&&Xl.relatedTarget&&Da.contains(Xl.relatedTarget)||Pf(Xl)}function Rl(Xl){return!!zr.isTouch&&ih()!==Xl.type.indexOf("touch")>=0}function sf(){Ad();var Xl=ho.props,Ph=Xl.popperOptions,cf=Xl.placement,Gd=Xl.offset,Sp=Xl.getReferenceClientRect,F=Xl.moveTransition,I=_u()?Wi(Da).arrow:null,K=Sp?{getBoundingClientRect:Sp,contextElement:Sp.contextElement||zc()}:xe,de={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(gt){var st=gt.state;if(_u()){var Yt=ur().box;["placement","reference-hidden","escaped"].forEach(function(Tn){Tn==="placement"?Yt.setAttribute("data-placement",st.placement):st.attributes.popper["data-popper-"+Tn]?Yt.setAttribute("data-"+Tn,""):Yt.removeAttribute("data-"+Tn)}),st.attributes.popper={}}}},Re=[{name:"offset",options:{offset:Gd}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!F}},de];_u()&&I&&Re.push({name:"arrow",options:{element:I,padding:3}}),Re.push.apply(Re,(Ph==null?void 0:Ph.modifiers)||[]),ho.popperInstance=Ni(K,Da,Object.assign({},Ph,{placement:cf,onFirstUpdate:_e,modifiers:Re}))}function Ad(){ho.popperInstance&&(ho.popperInstance.destroy(),ho.popperInstance=null)}function Ff(){return Fr(Da.querySelectorAll("[data-tippy-root]"))}function Ag(Xl){ho.clearDelayTimeouts(),Xl&&fo("onTrigger",[ho,Xl]),xc();var Ph=Hr(!0),cf=Su(),Gd=cf[1];zr.isTouch&&cf[0]==="hold"&&Gd&&(Ph=Gd),Ph?m=setTimeout(function(){ho.show()},Ph):ho.show()}function Pf(Xl){if(ho.clearDelayTimeouts(),fo("onUntrigger",[ho,Xl]),ho.state.isVisible){if(0>ho.props.trigger.indexOf("mouseenter")||0>ho.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(Xl.type)||!nr){var Ph=Hr(!1);Ph?C=setTimeout(function(){ho.state.isVisible&&ho.hide()},Ph):N=requestAnimationFrame(function(){ho.hide()})}}else md()}}function Ts(xe,f){f===void 0&&(f={});var m=pr.plugins.concat(f.plugins||[]);document.addEventListener("touchstart",Zi,it),window.addEventListener("blur",Xr);var C=Object.assign({},f,{plugins:m}),N=Cn(xe).reduce(function(q,oe){var _e=oe&&hs(oe,C);return _e&&q.push(_e),q},[]);return zt(xe)?N[0]:N}Ts.defaultProps=pr,Ts.setDefaultProps=function(xe){Object.keys(xe).forEach(function(f){pr[f]=xe[f]})},Ts.currentInput=zr,Object.assign({},et,{effect:function(xe){var f=xe.state,m={popper:{position:f.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(f.elements.popper.style,m.popper),f.styles=m,f.elements.arrow&&Object.assign(f.elements.arrow.style,m.arrow)}});var Qr={clientX:0,clientY:0},Ai=[];function Ri(xe){Qr={clientX:xe.clientX,clientY:xe.clientY}}var To={name:"followCursor",defaultValue:!1,fn:function(xe){var f=xe.reference,m=Er(xe.props.triggerTarget||f),C=!1,N=!1,q=!0,oe=xe.props;function _e(){return xe.props.followCursor==="initial"&&xe.state.isVisible}function $e(){m.addEventListener("mousemove",nr)}function Ft(){m.removeEventListener("mousemove",nr)}function an(){C=!0,xe.setProps({getReferenceClientRect:null}),C=!1}function nr(Di){var Ro=!Di.target||f.contains(Di.target),Lo=xe.props.followCursor,Wo=Di.clientX,Bo=Di.clientY,ho=f.getBoundingClientRect(),Zs=Wo-ho.left,Da=Bo-ho.top;!Ro&&xe.props.interactive||xe.setProps({getReferenceClientRect:function(){var hl=f.getBoundingClientRect(),au=Wo,Ru=Bo;Lo==="initial"&&(au=hl.left+Zs,Ru=hl.top+Da);var Su=Lo==="horizontal"?hl.top:Ru,ih=Lo==="vertical"?hl.right:au,_u=Lo==="horizontal"?hl.bottom:Ru,zc=Lo==="vertical"?hl.left:au;return{width:ih-zc,height:_u-Su,top:Su,right:ih,bottom:_u,left:zc}}})}function Dr(){xe.props.followCursor&&(Ai.push({instance:xe,doc:m}),function(Di){Di.addEventListener("mousemove",Ri)}(m))}function bi(){(Ai=Ai.filter(function(Di){return Di.instance!==xe})).filter(function(Di){return Di.doc===m}).length===0&&function(Di){Di.removeEventListener("mousemove",Ri)}(m)}return{onCreate:Dr,onDestroy:bi,onBeforeUpdate:function(){oe=xe.props},onAfterUpdate:function(Di,Ro){var Lo=Ro.followCursor;C||Lo!==void 0&&oe.followCursor!==Lo&&(bi(),Lo?(Dr(),!xe.state.isMounted||N||_e()||$e()):(Ft(),an()))},onMount:function(){xe.props.followCursor&&!N&&(q&&(nr(Qr),q=!1),_e()||$e())},onTrigger:function(Di,Ro){en(Ro)&&(Qr={clientX:Ro.clientX,clientY:Ro.clientY}),N=Ro.type==="focus"},onHidden:function(){xe.props.followCursor&&(an(),Ft(),q=!0)}}}};Ts.setDefaultProps({render:Yi});var yo,ao,Bs,fa,ba,Rs,Ds={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(xe){return 1e3>xe?+xe.toFixed(2)+"m":+(xe/1e3).toFixed(2)+"km"}},el={showWhen:["normal","active"],format:function(xe){return xe>1e6?"".concat(+(xe/1e6).toFixed(2),"km\xB2"):"".concat(+xe.toFixed(2),"m\xB2")}},tl={maxSize:100},sn={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},dt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[To],trigger:"manual",hideOnClick:!1,theme:"light"},Mt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Zt(xe,f){var m=Object.keys(xe);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(xe);f&&(C=C.filter(function(N){return Object.getOwnPropertyDescriptor(xe,N).enumerable})),m.push.apply(m,C)}return m}function Kt(xe){for(var f=1;arguments.length>f;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?Zt(Object(m),!0).forEach(function(C){rs(xe,C,m[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(m)):Zt(Object(m)).forEach(function(C){Object.defineProperty(xe,C,Object.getOwnPropertyDescriptor(m,C))})}return xe}function Nn(xe){return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Nn(xe)}function Ur(xe,f){if(!(xe instanceof f))throw new TypeError("Cannot call a class as a function")}function Ui(xe,f){for(var m=0;f.length>m;m++){var C=f[m];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(xe,Ba(C.key),C)}}function Ao(xe,f,m){return f&&Ui(xe.prototype,f),m&&Ui(xe,m),Object.defineProperty(xe,"prototype",{writable:!1}),xe}function rs(xe,f,m){return(f=Ba(f))in xe?Object.defineProperty(xe,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):xe[f]=m,xe}function ps(xe,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");xe.prototype=Object.create(f&&f.prototype,{constructor:{value:xe,writable:!0,configurable:!0}}),Object.defineProperty(xe,"prototype",{writable:!1}),f&&$a(xe,f)}function Po(xe){return Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},Po(xe)}function $a(xe,f){return $a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,C){return m.__proto__=C,m},$a(xe,f)}function nl(xe){if(xe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xe}function ka(xe){var f=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}();return function(){var m,C=Po(xe);if(f){var N=Po(this).constructor;m=Reflect.construct(C,arguments,N)}else m=C.apply(this,arguments);return function(q,oe){if(oe&&(typeof oe=="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nl(q)}(this,m)}}function Xs(){return Xs=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(xe,f,m){var C=function(q,oe){for(;!Object.prototype.hasOwnProperty.call(q,oe)&&(q=Po(q))!==null;);return q}(xe,f);if(C){var N=Object.getOwnPropertyDescriptor(C,f);return N.get?N.get.call(3>arguments.length?xe:m):N.value}},Xs.apply(this,arguments)}function zs(xe,f){return function(m){if(Array.isArray(m))return m}(xe)||function(m,C){var N=m==null?null:typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(N!=null){var q,oe,_e,$e,Ft=[],an=!0,nr=!1;try{if(_e=(N=N.call(m)).next,C===0){if(Object(N)!==N)return;an=!1}else for(;!(an=(q=_e.call(N)).done)&&(Ft.push(q.value),Ft.length!==C);an=!0);}catch(Dr){nr=!0,oe=Dr}finally{try{if(!an&&N.return!=null&&($e=N.return(),Object($e)!==$e))return}finally{if(nr)throw oe}}return Ft}}(xe,f)||Ea(xe,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function xa(xe){return function(f){if(Array.isArray(f))return _a(f)}(xe)||function(f){if(typeof Symbol!="undefined"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}(xe)||Ea(xe)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ea(xe,f){if(xe){if(typeof xe=="string")return _a(xe,f);var m=Object.prototype.toString.call(xe).slice(8,-1);return m==="Object"&&xe.constructor&&(m=xe.constructor.name),m==="Map"||m==="Set"?Array.from(xe):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?_a(xe,f):void 0}}function _a(xe,f){(f==null||f>xe.length)&&(f=xe.length);for(var m=0,C=Array(f);f>m;m++)C[m]=xe[m];return C}function Ba(xe){var f=function(m,C){if(typeof m!="object"||m===null)return m;var N=m[Symbol.toPrimitive];if(N!==void 0){var q=N.call(m,C||"default");if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(m)}(xe,"string");return typeof f=="symbol"?f:f+""}(yo=v.DrawEvent||(v.DrawEvent={})).Init="init",yo.Destroy="destroy",yo.Enable="enable",yo.Disable="disable",yo.Add="add",yo.Edit="edit",yo.Remove="remove",yo.Clear="clear",yo.Change="change",yo.DragStart="dragStart",yo.Dragging="dragging",yo.DragEnd="dragEnd",yo.Select="select",yo.AddNode="addNode",yo.RemoveNode="removeNode",(ao=v.SourceEvent||(v.SourceEvent={})).Change="change",ao.Update="update",(Bs=v.RenderEvent||(v.RenderEvent={})).Click="click",Bs.UnClick="unclick",Bs.Dragstart="dragstart",Bs.Mousemove="mousemove",Bs.Mouseout="mouseout",Bs.Dragging="dragging",Bs.Dragend="dragend",Bs.DblClick="dblClick",Bs.Contextmenu="contextmenu",(fa=v.LayerEvent||(v.LayerEvent={})).Mousedown="mousedown",fa.Mouseup="mouseup",fa.Click="click",fa.UnClick="unclick",fa.Dblclick="dblclick",fa.Mousemove="mousemove",fa.Mouseover="mouseover",fa.Mouseenter="mouseenter",fa.Mouseleave="mouseleave",fa.Mouseout="mouseout",fa.Contextmenu="contextmenu",(ba=v.SceneEvent||(v.SceneEvent={})).Loaded="loaded",ba.MapMove="mapmove",ba.MoveStart="movestart",ba.MoveEnd="moveend",ba.ZoomChange="zoomchange",ba.ZoomStart="zoomstart",ba.ZoomEnd="zoomend",ba.Click="click",ba.Dblclick="dblclick",ba.Mousemove="mousemove",ba.Mousewheel="mousewheel",ba.Mouseover="mouseover",ba.Mouseout="mouseout",ba.Mouseup="mouseup",ba.Mousedown="mousedown",ba.Contextmenu="contextmenu",ba.Dragstart="dragstart",ba.Dragging="dragging",ba.Dragend="dragend",(Rs=v.ControlEvent||(v.ControlEvent={})).DrawChange="drawchange",Rs.DataChange="datachange",Rs.DrawSelect="drawselect",Rs.DrawClear="drawclear";var Al=63710088e-1,ks={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Al,kilometers:6371.0088,kilometres:6371.0088,meters:Al,metres:Al,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Al/1852,radians:1,yards:6967335223679999e-9},Za={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function lu(xe,f,m){m===void 0&&(m={});var C={type:"Feature"};return(m.id===0||m.id)&&(C.id=m.id),m.bbox&&(C.bbox=m.bbox),C.properties=f||{},C.geometry=xe,C}function mu(xe,f,m){if(m===void 0&&(m={}),!xe)throw Error("coordinates is required");if(!Array.isArray(xe))throw Error("coordinates must be an Array");if(2>xe.length)throw Error("coordinates must be at least 2 numbers long");if(!vu(xe[0])||!vu(xe[1]))throw Error("coordinates must contain numbers");return lu({type:"Point",coordinates:xe},f,m)}function nu(xe,f,m){m===void 0&&(m={});for(var C=0,N=xe;N.length>C;C++){var q=N[C];if(4>q.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var oe=0;q[q.length-1].length>oe;oe++)if(q[q.length-1][oe]!==q[0][oe])throw Error("First and last Position are not equivalent.")}return lu({type:"Polygon",coordinates:xe},f,m)}function Fl(xe,f,m){if(m===void 0&&(m={}),2>xe.length)throw Error("coordinates must be an array of two or more positions");return lu({type:"LineString",coordinates:xe},f,m)}function va(xe,f){f===void 0&&(f={});var m={type:"FeatureCollection"};return f.id&&(m.id=f.id),f.bbox&&(m.bbox=f.bbox),m.features=xe,m}function Ua(xe,f,m){return m===void 0&&(m={}),lu({type:"MultiLineString",coordinates:xe},f,m)}function Yl(xe,f,m){return m===void 0&&(m={}),lu({type:"MultiPoint",coordinates:xe},f,m)}function Cc(xe,f,m){return m===void 0&&(m={}),lu({type:"MultiPolygon",coordinates:xe},f,m)}function ch(xe,f){f===void 0&&(f="kilometers");var m=ks[f];if(!m)throw Error(f+" units is invalid");return xe*m}function mh(xe,f){f===void 0&&(f="kilometers");var m=ks[f];if(!m)throw Error(f+" units is invalid");return xe/m}function _h(xe){return 180*(xe%(2*Math.PI))/Math.PI}function wh(xe){return xe%360*Math.PI/180}function vu(xe){return!isNaN(xe)&&xe!==null&&!Array.isArray(xe)}function ru(xe){return!!xe&&xe.constructor===Object}var Ql=Object.freeze({__proto__:null,earthRadius:Al,factors:ks,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Al,yards:1.0936133},areaFactors:Za,feature:lu,geometry:function(xe,f,m){switch(xe){case"Point":return mu(f).geometry;case"LineString":return Fl(f).geometry;case"Polygon":return nu(f).geometry;case"MultiPoint":return Yl(f).geometry;case"MultiLineString":return Ua(f).geometry;case"MultiPolygon":return Cc(f).geometry;default:throw Error(xe+" is invalid")}},point:mu,points:function(xe,f,m){return m===void 0&&(m={}),va(xe.map(function(C){return mu(C,f)}),m)},polygon:nu,polygons:function(xe,f,m){return m===void 0&&(m={}),va(xe.map(function(C){return nu(C,f)}),m)},lineString:Fl,lineStrings:function(xe,f,m){return m===void 0&&(m={}),va(xe.map(function(C){return Fl(C,f)}),m)},featureCollection:va,multiLineString:Ua,multiPoint:Yl,multiPolygon:Cc,geometryCollection:function(xe,f,m){return m===void 0&&(m={}),lu({type:"GeometryCollection",geometries:xe},f,m)},round:function(xe,f){if(f===void 0&&(f=0),f&&f<0)throw Error("precision must be a positive number");var m=Math.pow(10,f||0);return Math.round(xe*m)/m},radiansToLength:ch,lengthToRadians:mh,lengthToDegrees:function(xe,f){return _h(mh(xe,f))},bearingToAzimuth:function(xe){var f=xe%360;return 0>f&&(f+=360),f},radiansToDegrees:_h,degreesToRadians:wh,convertLength:function(xe,f,m){if(f===void 0&&(f="kilometers"),m===void 0&&(m="kilometers"),xe<0)throw Error("length must be a positive number");return ch(mh(xe,f),m)},convertArea:function(xe,f,m){if(f===void 0&&(f="meters"),m===void 0&&(m="kilometers"),xe<0)throw Error("area must be a positive number");var C=Za[f];if(!C)throw Error("invalid original units");var N=Za[m];if(!N)throw Error("invalid final units");return xe/C*N},isNumber:vu,isObject:ru,validateBBox:function(xe){if(!xe)throw Error("bbox is required");if(!Array.isArray(xe))throw Error("bbox must be an Array");if(xe.length!==4&&xe.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");xe.forEach(function(f){if(!vu(f))throw Error("bbox must only contain numbers")})},validateId:function(xe){if(!xe)throw Error("id is required");if(["string","number"].indexOf(typeof xe)===-1)throw Error("id must be a number or a string")}});function Hi(xe,f,m){if(xe!==null)for(var C,N,q,oe,_e,$e,Ft,an,nr=0,Dr=0,bi=xe.type,Di=bi==="FeatureCollection",Ro=bi==="Feature",Lo=Di?xe.features.length:1,Wo=0;Lo>Wo;Wo++){_e=(an=!!(Ft=Di?xe.features[Wo].geometry:Ro?xe.geometry:xe)&&Ft.type==="GeometryCollection")?Ft.geometries.length:1;for(var Bo=0;_e>Bo;Bo++){var ho=0,Zs=0;if((oe=an?Ft.geometries[Bo]:Ft)!==null){$e=oe.coordinates;var Da=oe.type;switch(nr=!m||Da!=="Polygon"&&Da!=="MultiPolygon"?0:1,Da){case null:break;case"Point":if(f($e,Dr,Wo,ho,Zs)===!1)return!1;Dr++,ho++;break;case"LineString":case"MultiPoint":for(C=0;$e.length>C;C++){if(f($e[C],Dr,Wo,ho,Zs)===!1)return!1;Dr++,Da==="MultiPoint"&&ho++}Da==="LineString"&&ho++;break;case"Polygon":case"MultiLineString":for(C=0;$e.length>C;C++){for(N=0;$e[C].length-nr>N;N++){if(f($e[C][N],Dr,Wo,ho,Zs)===!1)return!1;Dr++}Da==="MultiLineString"&&ho++,Da==="Polygon"&&Zs++}Da==="Polygon"&&ho++;break;case"MultiPolygon":for(C=0;$e.length>C;C++){for(Zs=0,N=0;$e[C].length>N;N++){for(q=0;$e[C][N].length-nr>q;q++){if(f($e[C][N][q],Dr,Wo,ho,Zs)===!1)return!1;Dr++}Zs++}ho++}break;case"GeometryCollection":for(C=0;oe.geometries.length>C;C++)if(Hi(oe.geometries[C],f,m)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function ji(xe,f){var m;switch(xe.type){case"FeatureCollection":for(m=0;xe.features.length>m&&f(xe.features[m].properties,m)!==!1;m++);break;case"Feature":f(xe.properties,0)}}function Gn(xe,f){if(xe.type==="Feature")f(xe,0);else if(xe.type==="FeatureCollection")for(var m=0;xe.features.length>m&&f(xe.features[m],m)!==!1;m++);}function Sr(xe){var f=[];return Hi(xe,function(m){f.push(m)}),f}function Rr(xe,f){var m,C,N,q,oe,_e,$e,Ft,an,nr,Dr=0,bi=xe.type==="FeatureCollection",Di=xe.type==="Feature",Ro=bi?xe.features.length:1;for(m=0;Ro>m;m++){for(Ft=bi?xe.features[m].properties:Di?xe.properties:{},an=bi?xe.features[m].bbox:Di?xe.bbox:void 0,nr=bi?xe.features[m].id:Di?xe.id:void 0,oe=($e=!!(_e=bi?xe.features[m].geometry:Di?xe.geometry:xe)&&_e.type==="GeometryCollection")?_e.geometries.length:1,N=0;oe>N;N++)if((q=$e?_e.geometries[N]:_e)!==null)switch(q.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(f(q,Dr,Ft,an,nr)===!1)return!1;break;case"GeometryCollection":for(C=0;q.geometries.length>C;C++)if(f(q.geometries[C],Dr,Ft,an,nr)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(f(null,Dr,Ft,an,nr)===!1)return!1;Dr++}}function co(xe,f,m){var C=m;return Rr(xe,function(N,q,oe,_e,$e){C=q===0&&m===void 0?N:f(C,N,q,oe,_e,$e)}),C}function ns(xe,f){Rr(xe,function(m,C,N,q,oe){var _e,$e=m===null?null:m.type;switch($e){case null:case"Point":case"LineString":case"Polygon":return f(lu(m,N,{bbox:q,id:oe}),C,0)!==!1&&void 0}switch($e){case"MultiPoint":_e="Point";break;case"MultiLineString":_e="LineString";break;case"MultiPolygon":_e="Polygon"}for(var Ft=0;m.coordinates.length>Ft;Ft++)if(f(lu({type:_e,coordinates:m.coordinates[Ft]},N),C,Ft)===!1)return!1})}function fs(xe,f){ns(xe,function(m,C,N){var q=0;if(m.geometry){var oe=m.geometry.type;if(oe!=="Point"&&oe!=="MultiPoint"){var _e,$e=0,Ft=0,an=0;return Hi(m,function(nr,Dr,bi,Di,Ro){if(_e===void 0||C>$e||Di>Ft||Ro>an)return _e=nr,$e=C,Ft=Di,an=Ro,void(q=0);var Lo=Fl([_e,nr],m.properties);if(f(Lo,C,N,Ro,q)===!1)return!1;q++,_e=nr})!==!1&&void 0}}})}function vs(xe,f,m){var C=m,N=!1;return fs(xe,function(q,oe,_e,$e,Ft){C=N===!1&&m===void 0?q:f(C,q,oe,_e,$e,Ft),N=!0}),C}function as(xe,f){if(!xe)throw Error("geojson is required");ns(xe,function(m,C,N){if(m.geometry!==null){var q=m.geometry.coordinates;switch(m.geometry.type){case"LineString":if(f(m,C,N,0,0)===!1)return!1;break;case"Polygon":for(var oe=0;q.length>oe;oe++)if(f(Fl(q[oe],m.properties),C,N,oe)===!1)return!1}}})}var da=Object.freeze({__proto__:null,coordAll:Sr,coordEach:Hi,coordReduce:function(xe,f,m,C){var N=m;return Hi(xe,function(q,oe,_e,$e,Ft){N=oe===0&&m===void 0?q:f(N,q,oe,_e,$e,Ft)},C),N},featureEach:Gn,featureReduce:function(xe,f,m){var C=m;return Gn(xe,function(N,q){C=q===0&&m===void 0?N:f(C,N,q)}),C},findPoint:function(xe,f){if(!ru(f=f||{}))throw Error("options is invalid");var m,C=f.featureIndex||0,N=f.multiFeatureIndex||0,q=f.geometryIndex||0,oe=f.coordIndex||0,_e=f.properties;switch(xe.type){case"FeatureCollection":0>C&&(C=xe.features.length+C),_e=_e||xe.features[C].properties,m=xe.features[C].geometry;break;case"Feature":_e=_e||xe.properties,m=xe.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":m=xe;break;default:throw Error("geojson is invalid")}if(m===null)return null;var $e=m.coordinates;switch(m.type){case"Point":return mu($e,_e,f);case"MultiPoint":return 0>N&&(N=$e.length+N),mu($e[N],_e,f);case"LineString":return 0>oe&&(oe=$e.length+oe),mu($e[oe],_e,f);case"Polygon":return 0>q&&(q=$e.length+q),0>oe&&(oe=$e[q].length+oe),mu($e[q][oe],_e,f);case"MultiLineString":return 0>N&&(N=$e.length+N),0>oe&&(oe=$e[N].length+oe),mu($e[N][oe],_e,f);case"MultiPolygon":return 0>N&&(N=$e.length+N),0>q&&(q=$e[N].length+q),0>oe&&(oe=$e[N][q].length-oe),mu($e[N][q][oe],_e,f)}throw Error("geojson is invalid")},findSegment:function(xe,f){if(!ru(f=f||{}))throw Error("options is invalid");var m,C=f.featureIndex||0,N=f.multiFeatureIndex||0,q=f.geometryIndex||0,oe=f.segmentIndex||0,_e=f.properties;switch(xe.type){case"FeatureCollection":0>C&&(C=xe.features.length+C),_e=_e||xe.features[C].properties,m=xe.features[C].geometry;break;case"Feature":_e=_e||xe.properties,m=xe.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":m=xe;break;default:throw Error("geojson is invalid")}if(m===null)return null;var $e=m.coordinates;switch(m.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>oe&&(oe=$e.length+oe-1),Fl([$e[oe],$e[oe+1]],_e,f);case"Polygon":return 0>q&&(q=$e.length+q),0>oe&&(oe=$e[q].length+oe-1),Fl([$e[q][oe],$e[q][oe+1]],_e,f);case"MultiLineString":return 0>N&&(N=$e.length+N),0>oe&&(oe=$e[N].length+oe-1),Fl([$e[N][oe],$e[N][oe+1]],_e,f);case"MultiPolygon":return 0>N&&(N=$e.length+N),0>q&&(q=$e[N].length+q),0>oe&&(oe=$e[N][q].length-oe-1),Fl([$e[N][q][oe],$e[N][q][oe+1]],_e,f)}throw Error("geojson is invalid")},flattenEach:ns,flattenReduce:function(xe,f,m){var C=m;return ns(xe,function(N,q,oe){C=q===0&&oe===0&&m===void 0?N:f(C,N,q,oe)}),C},geomEach:Rr,geomReduce:co,lineEach:as,lineReduce:function(xe,f,m){var C=m;return as(xe,function(N,q,oe,_e){C=q===0&&m===void 0?N:f(C,N,q,oe,_e)}),C},propEach:ji,propReduce:function(xe,f,m){var C=m;return ji(xe,function(N,q){C=q===0&&m===void 0?N:f(C,N,q)}),C},segmentEach:fs,segmentReduce:vs});function Ss(xe){var f=[1/0,1/0,-1/0,-1/0];return Hi(xe,function(m){f[0]>m[0]&&(f[0]=m[0]),f[1]>m[1]&&(f[1]=m[1]),m[0]>f[2]&&(f[2]=m[0]),m[1]>f[3]&&(f[3]=m[1])}),f}Ss.default=Ss;var pl=Object.freeze({__proto__:null,default:Ss});function Vs(xe){if(!xe)throw Error("coord is required");if(!Array.isArray(xe)){if(xe.type==="Feature"&&xe.geometry!==null&&xe.geometry.type==="Point")return xe.geometry.coordinates;if(xe.type==="Point")return xe.coordinates}if(Array.isArray(xe)&&xe.length>=2&&!Array.isArray(xe[0])&&!Array.isArray(xe[1]))return xe;throw Error("coord must be GeoJSON Point or an Array of numbers")}function ol(xe){if(Array.isArray(xe))return xe;if(xe.type==="Feature"){if(xe.geometry!==null)return xe.geometry.coordinates}else if(xe.coordinates)return xe.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function sl(xe){return xe.type==="Feature"?xe.geometry:xe}function eu(xe,f){return xe.type==="FeatureCollection"?"FeatureCollection":xe.type==="GeometryCollection"?"GeometryCollection":xe.type==="Feature"&&xe.geometry!==null?xe.geometry.type:xe.type}function kl(xe,f,m,C,N){Wl(xe,f,m||0,C||xe.length-1,N||ml)}function Wl(xe,f,m,C,N){for(;C>m;){if(C-m>600){var q=C-m+1,oe=f-m+1,_e=Math.log(q),$e=.5*Math.exp(2*_e/3),Ft=.5*Math.sqrt(_e*$e*(q-$e)/q)*(0>oe-q/2?-1:1);Wl(xe,f,Math.max(m,Math.floor(f-oe*$e/q+Ft)),Math.min(C,Math.floor(f+(q-oe)*$e/q+Ft)),N)}var an=xe[f],nr=m,Dr=C;for(Dl(xe,m,f),N(xe[C],an)>0&&Dl(xe,m,C);Dr>nr;){for(Dl(xe,nr,Dr),nr++,Dr--;0>N(xe[nr],an);)nr++;for(;N(xe[Dr],an)>0;)Dr--}N(xe[m],an)===0?Dl(xe,m,Dr):Dl(xe,++Dr,C),Dr>f||(m=Dr+1),f>Dr||(C=Dr-1)}}function Dl(xe,f,m){var C=xe[f];xe[f]=xe[m],xe[m]=C}function ml(xe,f){return f>xe?-1:xe>f?1:0}function uu(xe,f,m){if(!m)return f.indexOf(xe);for(let C=0;f.length>C;C++)if(m(xe,f[C]))return C;return-1}function pn(xe,f){pu(xe,0,xe.children.length,f,xe)}function pu(xe,f,m,C,N){N||(N=xh(null)),N.minX=1/0,N.minY=1/0,N.maxX=-1/0,N.maxY=-1/0;for(let q=f;m>q;q++){const oe=xe.children[q];tc(N,xe.leaf?C(oe):oe)}return N}function tc(xe,f){return xe.minX=Math.min(xe.minX,f.minX),xe.minY=Math.min(xe.minY,f.minY),xe.maxX=Math.max(xe.maxX,f.maxX),xe.maxY=Math.max(xe.maxY,f.maxY),xe}function dc(xe,f){return xe.minX-f.minX}function Mc(xe,f){return xe.minY-f.minY}function Fc(xe){return(xe.maxX-xe.minX)*(xe.maxY-xe.minY)}function cd(xe){return xe.maxX-xe.minX+(xe.maxY-xe.minY)}function Vd(xe,f){const m=Math.max(xe.minX,f.minX),C=Math.max(xe.minY,f.minY),N=Math.min(xe.maxX,f.maxX),q=Math.min(xe.maxY,f.maxY);return Math.max(0,N-m)*Math.max(0,q-C)}function yd(xe,f){return!(xe.minX>f.minX||xe.minY>f.minY||f.maxX>xe.maxX||f.maxY>xe.maxY)}function Sh(xe,f){return!(f.minX>xe.maxX||f.minY>xe.maxY||xe.minX>f.maxX||xe.minY>f.maxY)}function xh(xe){return{children:xe,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Ud(xe,f,m,C,N){const q=[f,m];for(;q.length;){if(C>=(m=q.pop())-(f=q.pop()))continue;const oe=f+Math.ceil((m-f)/C/2)*C;kl(xe,oe,f,m,N),q.push(f,oe,oe,m)}}var Hf=Object.freeze({__proto__:null,default:class{constructor(xe=9){this._maxEntries=Math.max(4,xe),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(xe){let f=this.data;const m=[];if(!Sh(xe,f))return m;const C=this.toBBox,N=[];for(;f;){for(let q=0;f.children.length>q;q++){const oe=f.children[q],_e=f.leaf?C(oe):oe;Sh(xe,_e)&&(f.leaf?m.push(oe):yd(xe,_e)?this._all(oe,m):N.push(oe))}f=N.pop()}return m}collides(xe){let f=this.data;if(!Sh(xe,f))return!1;const m=[];for(;f;){for(let C=0;f.children.length>C;C++){const N=f.children[C],q=f.leaf?this.toBBox(N):N;if(Sh(xe,q)){if(f.leaf||yd(xe,q))return!0;m.push(N)}}f=m.pop()}return!1}load(xe){if(!xe||!xe.length)return this;if(this._minEntries>xe.length){for(let m=0;xe.length>m;m++)this.insert(xe[m]);return this}let f=this._build(xe.slice(),0,xe.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const m=this.data;this.data=f,f=m}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(xe){return xe&&this._insert(xe,this.data.height-1),this}clear(){return this.data=xh([]),this}remove(xe,f){if(!xe)return this;let m=this.data;const C=this.toBBox(xe),N=[],q=[];let oe,_e,$e;for(;m||N.length;){if(m||(m=N.pop(),_e=N[N.length-1],oe=q.pop(),$e=!0),m.leaf){const Ft=uu(xe,m.children,f);if(Ft!==-1)return m.children.splice(Ft,1),N.push(m),this._condense(N),this}$e||m.leaf||!yd(m,C)?_e?(oe++,m=_e.children[oe],$e=!1):m=null:(N.push(m),q.push(oe),oe=0,_e=m,m=m.children[0])}return this}toBBox(xe){return xe}compareMinX(xe,f){return xe.minX-f.minX}compareMinY(xe,f){return xe.minY-f.minY}toJSON(){return this.data}fromJSON(xe){return this.data=xe,this}_all(xe,f){const m=[];for(;xe;)xe.leaf?f.push(...xe.children):m.push(...xe.children),xe=m.pop();return f}_build(xe,f,m,C){const N=m-f+1;let q,oe=this._maxEntries;if(oe>=N)return q=xh(xe.slice(f,m+1)),pn(q,this.toBBox),q;C||(oe=Math.ceil(N/Math.pow(oe,(C=Math.ceil(Math.log(N)/Math.log(oe)))-1))),q=xh([]),q.leaf=!1,q.height=C;const _e=Math.ceil(N/oe),$e=_e*Math.ceil(Math.sqrt(oe));Ud(xe,f,m,$e,this.compareMinX);for(let Ft=f;m>=Ft;Ft+=$e){const an=Math.min(Ft+$e-1,m);Ud(xe,Ft,an,_e,this.compareMinY);for(let nr=Ft;an>=nr;nr+=_e)q.children.push(this._build(xe,nr,Math.min(nr+_e-1,an),C-1))}return pn(q,this.toBBox),q}_chooseSubtree(xe,f,m,C){for(;C.push(f),!f.leaf&&C.length-1!==m;){let oe,_e=1/0,$e=1/0;for(let Ft=0;f.children.length>Ft;Ft++){const an=f.children[Ft],nr=Fc(an),Dr=(Math.max((q=an).maxX,(N=xe).maxX)-Math.min(q.minX,N.minX))*(Math.max(q.maxY,N.maxY)-Math.min(q.minY,N.minY))-nr;$e>Dr?($e=Dr,_e=_e>nr?nr:_e,oe=an):Dr===$e&&_e>nr&&(_e=nr,oe=an)}f=oe||f.children[0]}var N,q;return f}_insert(xe,f,m){const C=m?xe:this.toBBox(xe),N=[],q=this._chooseSubtree(C,this.data,f,N);for(q.children.push(xe),tc(q,C);f>=0&&N[f].children.length>this._maxEntries;)this._split(N,f),f--;this._adjustParentBBoxes(C,N,f)}_split(xe,f){const m=xe[f],C=m.children.length,N=this._minEntries;this._chooseSplitAxis(m,N,C);const q=this._chooseSplitIndex(m,N,C),oe=xh(m.children.splice(q,m.children.length-q));oe.height=m.height,oe.leaf=m.leaf,pn(m,this.toBBox),pn(oe,this.toBBox),f?xe[f-1].children.push(oe):this._splitRoot(m,oe)}_splitRoot(xe,f){this.data=xh([xe,f]),this.data.height=xe.height+1,this.data.leaf=!1,pn(this.data,this.toBBox)}_chooseSplitIndex(xe,f,m){let C,N=1/0,q=1/0;for(let oe=f;m-f>=oe;oe++){const _e=pu(xe,0,oe,this.toBBox),$e=pu(xe,oe,m,this.toBBox),Ft=Vd(_e,$e),an=Fc(_e)+Fc($e);N>Ft?(N=Ft,C=oe,q=q>an?an:q):Ft===N&&q>an&&(q=an,C=oe)}return C||m-f}_chooseSplitAxis(xe,f,m){const C=xe.leaf?this.compareMinX:dc,N=xe.leaf?this.compareMinY:Mc,q=this._allDistMargin(xe,f,m,C);this._allDistMargin(xe,f,m,N)>q&&xe.children.sort(C)}_allDistMargin(xe,f,m,C){xe.children.sort(C);const N=this.toBBox,q=pu(xe,0,f,N),oe=pu(xe,m-f,m,N);let _e=cd(q)+cd(oe);for(let $e=f;m-f>$e;$e++){const Ft=xe.children[$e];tc(q,xe.leaf?N(Ft):Ft),_e+=cd(q)}for(let $e=m-f-1;$e>=f;$e--){const Ft=xe.children[$e];tc(oe,xe.leaf?N(Ft):Ft),_e+=cd(oe)}return _e}_adjustParentBBoxes(xe,f,m){for(let C=m;C>=0;C--)tc(f[C],xe)}_condense(xe){for(let f,m=xe.length-1;m>=0;m--)xe[m].children.length===0?m>0?(f=xe[m-1].children,f.splice(f.indexOf(xe[m]),1)):this.clear():pn(xe[m],this.toBBox)}}});function ef(xe,f){return f>xe?-1:xe>f?1:0}var Pd=Object.freeze({__proto__:null,default:class{constructor(xe=[],f=ef){if(this.data=xe,this.length=this.data.length,this.compare=f,this.length>0)for(let m=(this.length>>1)-1;m>=0;m--)this._down(m)}push(xe){this.data.push(xe),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const xe=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),xe}peek(){return this.data[0]}_up(xe){const{data:f,compare:m}=this,C=f[xe];for(;xe>0;){const N=xe-1>>1,q=f[N];if(m(C,q)>=0)break;f[xe]=q,xe=N}f[xe]=C}_down(xe){const{data:f,compare:m}=this,C=this.length>>1,N=f[xe];for(;C>xe;){let q=1+(xe<<1),oe=f[q];const _e=q+1;if(this.length>_e&&0>m(f[_e],oe)&&(q=_e,oe=f[_e]),m(oe,N)>=0)break;f[xe]=oe,xe=q}f[xe]=N}}}),Mf=function(xe,f,m,C){var N=xe[0],q=xe[1],oe=!1;m===void 0&&(m=0),C===void 0&&(C=f.length);for(var _e=(C-m)/2,$e=0,Ft=_e-1;_e>$e;Ft=$e++){var an=f[m+2*$e+0],nr=f[m+2*$e+1],Dr=f[m+2*Ft+1];nr>q!=Dr>q&&(f[m+2*Ft+0]-an)*(q-nr)/(Dr-nr)+an>N&&(oe=!oe)}return oe},$f=function(xe,f,m,C){var N=xe[0],q=xe[1],oe=!1;m===void 0&&(m=0),C===void 0&&(C=f.length);for(var _e=C-m,$e=0,Ft=_e-1;_e>$e;Ft=$e++){var an=f[$e+m][0],nr=f[$e+m][1],Dr=f[Ft+m][1];nr>q!=Dr>q&&(f[Ft+m][0]-an)*(q-nr)/(Dr-nr)+an>N&&(oe=!oe)}return oe},Rd=function(xe,f,m,C){return f.length>0&&Array.isArray(f[0])?$f(xe,f,m,C):Mf(xe,f,m,C)},fp=Mf;Rd.nested=$f,Rd.flat=fp;var us=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:{};function Ca(xe,f,m){return xe(m={path:f,exports:{},require:function(C,N){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},m.exports),m.exports}function Ta(xe){if(xe.__esModule)return xe;var f=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(xe).forEach(function(m){var C=Object.getOwnPropertyDescriptor(xe,m);Object.defineProperty(f,m,C.get?C:{enumerable:!0,get:function(){return xe[m]}})}),f}var Ja=Ca(function(xe,f){(function(m){const N=33306690738754706e-32;function q(Ro,Lo,Wo,Bo,ho){let Zs,Da,hl,au,Ru=Lo[0],Su=Bo[0],ih=0,_u=0;Su>Ru==Su>-Ru?(Zs=Ru,Ru=Lo[++ih]):(Zs=Su,Su=Bo[++_u]);let zc=0;if(Ro>ih&&Wo>_u)for(Su>Ru==Su>-Ru?(hl=Zs-((Da=Ru+Zs)-Ru),Ru=Lo[++ih]):(hl=Zs-((Da=Su+Zs)-Su),Su=Bo[++_u]),Zs=Da,hl!==0&&(ho[zc++]=hl);Ro>ih&&Wo>_u;)Su>Ru==Su>-Ru?(hl=Zs-((Da=Zs+Ru)-(au=Da-Zs))+(Ru-au),Ru=Lo[++ih]):(hl=Zs-((Da=Zs+Su)-(au=Da-Zs))+(Su-au),Su=Bo[++_u]),Zs=Da,hl!==0&&(ho[zc++]=hl);for(;Ro>ih;)hl=Zs-((Da=Zs+Ru)-(au=Da-Zs))+(Ru-au),Ru=Lo[++ih],Zs=Da,hl!==0&&(ho[zc++]=hl);for(;Wo>_u;)hl=Zs-((Da=Zs+Su)-(au=Da-Zs))+(Su-au),Su=Bo[++_u],Zs=Da,hl!==0&&(ho[zc++]=hl);return Zs===0&&zc!==0||(ho[zc++]=Zs),zc}function oe(Ro){return new Float64Array(Ro)}const _e=33306690738754716e-32,$e=22204460492503146e-32,Ft=11093356479670487e-47,an=oe(4),nr=oe(8),Dr=oe(12),bi=oe(16),Di=oe(4);m.orient2d=function(Ro,Lo,Wo,Bo,ho,Zs){const Da=(Lo-Zs)*(Wo-ho),hl=(Ro-ho)*(Bo-Zs),au=Da-hl;if(Da===0||hl===0||Da>0!=hl>0)return au;const Ru=Math.abs(Da+hl);return _e*Ru>Math.abs(au)?-function(Su,ih,_u,zc,Fn,ur,Hr){let gi,fo,Ys,Pa,Ns,Ha,ql,As,xc,md,Uh,Ch,pd,bp,kp,Xd,rf,es;const Rl=Su-Fn,sf=_u-Fn,Ad=ih-ur,Ff=zc-ur;Ns=(kp=(As=Rl-(ql=(Ha=134217729*Rl)-(Ha-Rl)))*(md=Ff-(xc=(Ha=134217729*Ff)-(Ha-Ff)))-((bp=Rl*Ff)-ql*xc-As*xc-ql*md))-(Uh=kp-(rf=(As=Ad-(ql=(Ha=134217729*Ad)-(Ha-Ad)))*(md=sf-(xc=(Ha=134217729*sf)-(Ha-sf)))-((Xd=Ad*sf)-ql*xc-As*xc-ql*md))),an[0]=kp-(Uh+Ns)+(Ns-rf),Ns=(pd=bp-((Ch=bp+Uh)-(Ns=Ch-bp))+(Uh-Ns))-(Uh=pd-Xd),an[1]=pd-(Uh+Ns)+(Ns-Xd),Ns=(es=Ch+Uh)-Ch,an[2]=Ch-(es-Ns)+(Uh-Ns),an[3]=es;let Ag=function(Gd,Sp){let F=Sp[0];for(let I=1;Gd>I;I++)F+=Sp[I];return F}(4,an),Pf=$e*Hr;if(Ag>=Pf||-Ag>=Pf||(gi=Su-(Rl+(Ns=Su-Rl))+(Ns-Fn),Ys=_u-(sf+(Ns=_u-sf))+(Ns-Fn),fo=ih-(Ad+(Ns=ih-Ad))+(Ns-ur),Pa=zc-(Ff+(Ns=zc-Ff))+(Ns-ur),gi===0&&fo===0&&Ys===0&&Pa===0)||(Pf=Ft*Hr+N*Math.abs(Ag),(Ag+=Rl*Pa+Ff*gi-(Ad*Ys+sf*fo))>=Pf||-Ag>=Pf))return Ag;Ns=(kp=(As=gi-(ql=(Ha=134217729*gi)-(Ha-gi)))*(md=Ff-(xc=(Ha=134217729*Ff)-(Ha-Ff)))-((bp=gi*Ff)-ql*xc-As*xc-ql*md))-(Uh=kp-(rf=(As=fo-(ql=(Ha=134217729*fo)-(Ha-fo)))*(md=sf-(xc=(Ha=134217729*sf)-(Ha-sf)))-((Xd=fo*sf)-ql*xc-As*xc-ql*md))),Di[0]=kp-(Uh+Ns)+(Ns-rf),Ns=(pd=bp-((Ch=bp+Uh)-(Ns=Ch-bp))+(Uh-Ns))-(Uh=pd-Xd),Di[1]=pd-(Uh+Ns)+(Ns-Xd),Ns=(es=Ch+Uh)-Ch,Di[2]=Ch-(es-Ns)+(Uh-Ns),Di[3]=es;const Xl=q(4,an,4,Di,nr);Ns=(kp=(As=Rl-(ql=(Ha=134217729*Rl)-(Ha-Rl)))*(md=Pa-(xc=(Ha=134217729*Pa)-(Ha-Pa)))-((bp=Rl*Pa)-ql*xc-As*xc-ql*md))-(Uh=kp-(rf=(As=Ad-(ql=(Ha=134217729*Ad)-(Ha-Ad)))*(md=Ys-(xc=(Ha=134217729*Ys)-(Ha-Ys)))-((Xd=Ad*Ys)-ql*xc-As*xc-ql*md))),Di[0]=kp-(Uh+Ns)+(Ns-rf),Ns=(pd=bp-((Ch=bp+Uh)-(Ns=Ch-bp))+(Uh-Ns))-(Uh=pd-Xd),Di[1]=pd-(Uh+Ns)+(Ns-Xd),Ns=(es=Ch+Uh)-Ch,Di[2]=Ch-(es-Ns)+(Uh-Ns),Di[3]=es;const Ph=q(Xl,nr,4,Di,Dr);Ns=(kp=(As=gi-(ql=(Ha=134217729*gi)-(Ha-gi)))*(md=Pa-(xc=(Ha=134217729*Pa)-(Ha-Pa)))-((bp=gi*Pa)-ql*xc-As*xc-ql*md))-(Uh=kp-(rf=(As=fo-(ql=(Ha=134217729*fo)-(Ha-fo)))*(md=Ys-(xc=(Ha=134217729*Ys)-(Ha-Ys)))-((Xd=fo*Ys)-ql*xc-As*xc-ql*md))),Di[0]=kp-(Uh+Ns)+(Ns-rf),Ns=(pd=bp-((Ch=bp+Uh)-(Ns=Ch-bp))+(Uh-Ns))-(Uh=pd-Xd),Di[1]=pd-(Uh+Ns)+(Ns-Xd),Ns=(es=Ch+Uh)-Ch,Di[2]=Ch-(es-Ns)+(Uh-Ns),Di[3]=es;const cf=q(Ph,Dr,4,Di,bi);return bi[cf-1]}(Ro,Lo,Wo,Bo,ho,Zs,Ru):au},m.orient2dfast=function(Ro,Lo,Wo,Bo,ho,Zs){return(Lo-Zs)*(Wo-ho)-(Ro-ho)*(Bo-Zs)},Object.defineProperty(m,"__esModule",{value:!0})})(f)}),ou=Ta(Hf),yu=Ta(Pd),Ec=Ja.orient2d;yu.default&&(yu=yu.default);var Xu=Jl;function Jl(xe,f,m){f=Math.max(0,f===void 0?2:f),m=m||0;var C=function(Bo){for(var ho=Bo[0],Zs=Bo[0],Da=Bo[0],hl=Bo[0],au=0;Bo.length>au;au++){var Ru=Bo[au];ho[0]>Ru[0]&&(ho=Ru),Ru[0]>Da[0]&&(Da=Ru),Zs[1]>Ru[1]&&(Zs=Ru),Ru[1]>hl[1]&&(hl=Ru)}var Su=[ho,Zs,Da,hl],ih=Su.slice();for(au=0;Bo.length>au;au++)Rd(Bo[au],Su)||ih.push(Bo[au]);return function(_u){_u.sort(wa);for(var zc=[],Fn=0;_u.length>Fn;Fn++){for(;zc.length>=2&&0>=hd(zc[zc.length-2],zc[zc.length-1],_u[Fn]);)zc.pop();zc.push(_u[Fn])}for(var ur=[],Hr=_u.length-1;Hr>=0;Hr--){for(;ur.length>=2&&0>=hd(ur[ur.length-2],ur[ur.length-1],_u[Hr]);)ur.pop();ur.push(_u[Hr])}return ur.pop(),zc.pop(),zc.concat(ur)}(ih)}(xe),N=new ou(16);N.toBBox=function(Bo){return{minX:Bo[0],minY:Bo[1],maxX:Bo[0],maxY:Bo[1]}},N.compareMinX=function(Bo,ho){return Bo[0]-ho[0]},N.compareMinY=function(Bo,ho){return Bo[1]-ho[1]},N.load(xe);for(var q,oe=[],_e=0;C.length>_e;_e++){var $e=C[_e];N.remove($e),q=Oc($e,q),oe.push(q)}var Ft=new ou(16);for(_e=0;oe.length>_e;_e++)Ft.insert(Ih(oe[_e]));for(var an=f*f,nr=m*m;oe.length;){var Dr=oe.shift(),bi=Dr.p,Di=Dr.next.p,Ro=bh(bi,Di);if(Ro>=nr){var Lo=Ro/an;($e=Rc(N,Dr.prev.p,bi,Di,Dr.next.next.p,Lo,Ft))&&Math.min(bh($e,bi),bh($e,Di))<=Lo&&(oe.push(Dr),oe.push(Oc($e,Dr)),N.remove($e),Ft.remove(Dr),Ft.insert(Ih(Dr)),Ft.insert(Ih(Dr.next)))}}Dr=q;var Wo=[];do Wo.push(Dr.p),Dr=Dr.next;while(Dr!==q);return Wo.push(Dr.p),Wo}function Rc(xe,f,m,C,N,q,oe){for(var _e=new yu([],Ac),$e=xe.data;$e;){for(var Ft=0;$e.children.length>Ft;Ft++){var an=$e.children[Ft],nr=$e.leaf?jl(an,m,C):Fh(m,C,an);qDr.dist&&Ro>Dr.dist&&hh(m,bi,oe)&&hh(C,bi,oe))return bi}($e=_e.pop())&&($e=$e.node)}return null}function Ac(xe,f){return xe.dist-f.dist}function Fh(xe,f,m){if(pc(xe,m)||pc(f,m))return 0;var C=Vh(xe[0],xe[1],f[0],f[1],m.minX,m.minY,m.maxX,m.minY);if(C===0)return 0;var N=Vh(xe[0],xe[1],f[0],f[1],m.minX,m.minY,m.minX,m.maxY);if(N===0)return 0;var q=Vh(xe[0],xe[1],f[0],f[1],m.maxX,m.minY,m.maxX,m.maxY);if(q===0)return 0;var oe=Vh(xe[0],xe[1],f[0],f[1],m.minX,m.maxY,m.maxX,m.maxY);return oe===0?0:Math.min(C,N,q,oe)}function pc(xe,f){return!(f.minX>xe[0]||xe[0]>f.maxX||f.minY>xe[1]||xe[1]>f.maxY)}function hh(xe,f,m){for(var C,N,q,oe,_e=m.search({minX:Math.min(xe[0],f[0]),minY:Math.min(xe[1],f[1]),maxX:Math.max(xe[0],f[0]),maxY:Math.max(xe[1],f[1])}),$e=0;_e.length>$e;$e++)if(N=_e[$e].next.p,q=xe,(C=_e[$e].p)!==(oe=f)&&N!==q&&hd(C,N,q)>0!=hd(C,N,oe)>0&&hd(q,oe,C)>0!=hd(q,oe,N)>0)return!1;return!0}function hd(xe,f,m){return Ec(xe[0],xe[1],f[0],f[1],m[0],m[1])}function Ih(xe){var f=xe.p,m=xe.next.p;return xe.minX=Math.min(f[0],m[0]),xe.minY=Math.min(f[1],m[1]),xe.maxX=Math.max(f[0],m[0]),xe.maxY=Math.max(f[1],m[1]),xe}function Oc(xe,f){var m={p:xe,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return f?(m.next=f.next,m.prev=f,f.next.prev=m,f.next=m):(m.prev=m,m.next=m),m}function bh(xe,f){var m=xe[0]-f[0],C=xe[1]-f[1];return m*m+C*C}function jl(xe,f,m){var C=f[0],N=f[1],q=m[0]-C,oe=m[1]-N;if(q!==0||oe!==0){var _e=((xe[0]-C)*q+(xe[1]-N)*oe)/(q*q+oe*oe);_e>1?(C=m[0],N=m[1]):_e>0&&(C+=q*_e,N+=oe*_e)}return(q=xe[0]-C)*q+(oe=xe[1]-N)*oe}function Vh(xe,f,m,C,N,q,oe,_e){var $e,Ft,an,nr,Dr=m-xe,bi=C-f,Di=oe-N,Ro=_e-q,Lo=xe-N,Wo=f-q,Bo=Dr*Dr+bi*bi,ho=Dr*Di+bi*Ro,Zs=Di*Di+Ro*Ro,Da=Dr*Lo+bi*Wo,hl=Di*Lo+Ro*Wo,au=Bo*Zs-ho*ho,Ru=au,Su=au;au===0?(Ft=0,Ru=1,nr=hl,Su=Zs):(nr=Bo*hl-ho*Da,0>(Ft=ho*hl-Zs*Da)?(Ft=0,nr=hl,Su=Zs):Ft>Ru&&(Ft=Ru,nr=hl+ho,Su=Zs)),0>nr?(nr=0,0>-Da?Ft=0:-Da>Bo?Ft=Ru:(Ft=-Da,Ru=Bo)):nr>Su&&(nr=Su,0>-Da+ho?Ft=0:-Da+ho>Bo?Ft=Ru:(Ft=-Da+ho,Ru=Bo));var ih=(1-(an=nr===0?0:nr/Su))*N+an*oe-((1-($e=Ft===0?0:Ft/Ru))*xe+$e*m),_u=(1-an)*q+an*_e-((1-$e)*f+$e*C);return ih*ih+_u*_u}function wa(xe,f){return xe[0]===f[0]?xe[1]-f[1]:xe[0]-f[0]}function su(xe,f,m){m===void 0&&(m={});var C=Vs(xe),N=Vs(f),q=wh(N[1]-C[1]),oe=wh(N[0]-C[0]),_e=wh(C[1]),$e=wh(N[1]),Ft=Math.pow(Math.sin(q/2),2)+Math.pow(Math.sin(oe/2),2)*Math.cos(_e)*Math.cos($e);return ch(2*Math.atan2(Math.sqrt(Ft),Math.sqrt(1-Ft)),m.units)}function gh(xe){return function(f,m){m===void 0&&(m={});var C=Number(f[0]),N=Number(f[1]),q=Number(f[2]),oe=Number(f[3]);if(f.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var _e=[C,N];return nu([[_e,[q,N],[q,oe],[C,oe],_e]],m.properties,{bbox:f,id:m.id})}(Ss(xe))}function Th(xe,f,m,C){C===void 0&&(C={});var N=Vs(xe),q=wh(N[0]),oe=wh(N[1]),_e=wh(m),$e=mh(f,C.units),Ft=Math.asin(Math.sin(oe)*Math.cos($e)+Math.cos(oe)*Math.sin($e)*Math.cos(_e));return mu([_h(q+Math.atan2(Math.sin(_e)*Math.sin($e)*Math.cos(oe),Math.cos($e)-Math.sin(oe)*Math.sin(Ft))),_h(Ft)],C.properties)}function ws(xe,f,m){if(m===void 0&&(m={}),m.final===!0)return function(Ft,an){var nr=ws(an,Ft);return nr=(nr+180)%360}(xe,f);var C=Vs(xe),N=Vs(f),q=wh(C[0]),oe=wh(N[0]),_e=wh(C[1]),$e=wh(N[1]);return _h(Math.atan2(Math.sin(oe-q)*Math.cos($e),Math.cos(_e)*Math.sin($e)-Math.sin(_e)*Math.cos($e)*Math.cos(oe-q)))}function Eu(xe,f){f===void 0&&(f={});var m=Ss(xe);return mu([(m[0]+m[2])/2,(m[1]+m[3])/2],f.properties,f)}function $l(xe,f){f===void 0&&(f={});var m=0,C=0,N=0;return Hi(xe,function(q){m+=q[0],C+=q[1],N++},!0),mu([m/N,C/N],f.properties)}function Ou(xe,f){switch(f===void 0&&(f={}),eu(xe)){case"Point":return mu(Vs(xe),f.properties);case"Polygon":var m=[];Hi(xe,function(ho){m.push(ho)});var C,N,q,oe,_e,$e,Ft,an,nr=$l(xe,{properties:f.properties}),Dr=nr.geometry.coordinates,bi=0,Di=0,Ro=0,Lo=m.map(function(ho){return[ho[0]-Dr[0],ho[1]-Dr[1]]});for(C=0;m.length-1>C;C++)Ro+=an=(oe=(N=Lo[C])[0])*(Ft=(q=Lo[C+1])[1])-(_e=q[0])*($e=N[1]),bi+=(oe+_e)*an,Di+=($e+Ft)*an;if(Ro===0)return nr;var Wo=1/(6*(.5*Ro));return mu([Dr[0]+Wo*bi,Dr[1]+Wo*Di],f.properties);default:var Bo=function(ho,Zs){Zs===void 0&&(Zs={}),Zs.concavity=Zs.concavity||1/0;var Da=[];if(Hi(ho,function(au){Da.push([au[0],au[1]])}),!Da.length)return null;var hl=Xu(Da,Zs.concavity);return hl.length>3?nu([hl]):null}(xe);return Bo?Ou(Bo,{properties:f.properties}):$l(xe,{properties:f.properties})}}function Lu(xe){if(!xe)throw Error("geojson is required");var f=[];return ns(xe,function(m){(function(C,N){var q=[],oe=C.geometry;if(oe!==null){switch(oe.type){case"Polygon":q=ol(oe);break;case"LineString":q=[ol(oe)]}q.forEach(function(_e){var $e=function(Ft,an){var nr=[];return Ft.reduce(function(Dr,bi){var Di,Ro,Lo,Wo,Bo,ho,Zs=Fl([Dr,bi],an);return Zs.bbox=[(Bo=(Ro=bi)[0])>(Lo=(Di=Dr)[0])?Lo:Bo,(ho=Ro[1])>(Wo=Di[1])?Wo:ho,Lo>Bo?Lo:Bo,Wo>ho?Wo:ho],nr.push(Zs),bi}),nr}(_e,C.properties);$e.forEach(function(Ft){Ft.id=N.length,N.push(Ft)})})}})(m,f)}),va(f)}Xu.default=Jl;function mc(xe,f,m){if(!m)return f.indexOf(xe);for(let C=0;f.length>C;C++)if(m(xe,f[C]))return C;return-1}function Gc(xe,f){rh(xe,0,xe.children.length,f,xe)}function rh(xe,f,m,C,N){N||(N=Of(null)),N.minX=1/0,N.minY=1/0,N.maxX=-1/0,N.maxY=-1/0;for(let q=f;m>q;q++){const oe=xe.children[q];Wh(N,xe.leaf?C(oe):oe)}return N}function Wh(xe,f){return xe.minX=Math.min(xe.minX,f.minX),xe.minY=Math.min(xe.minY,f.minY),xe.maxX=Math.max(xe.maxX,f.maxX),xe.maxY=Math.max(xe.maxY,f.maxY),xe}function Id(xe,f){return xe.minX-f.minX}function id(xe,f){return xe.minY-f.minY}function Wd(xe){return(xe.maxX-xe.minX)*(xe.maxY-xe.minY)}function Zd(xe){return xe.maxX-xe.minX+(xe.maxY-xe.minY)}function pf(xe,f){const m=Math.max(xe.minX,f.minX),C=Math.max(xe.minY,f.minY),N=Math.min(xe.maxX,f.maxX),q=Math.min(xe.maxY,f.maxY);return Math.max(0,N-m)*Math.max(0,q-C)}function Zh(xe,f){return!(xe.minX>f.minX||xe.minY>f.minY||f.maxX>xe.maxX||f.maxY>xe.maxY)}function Lh(xe,f){return!(f.minX>xe.maxX||f.minY>xe.maxY||xe.minX>f.maxX||xe.minY>f.maxY)}function Of(xe){return{children:xe,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Wf(xe,f,m,C,N){const q=[f,m];for(;q.length;){if(C>=(m=q.pop())-(f=q.pop()))continue;const oe=f+Math.ceil((m-f)/C/2)*C;kl(xe,oe,f,m,N),q.push(f,oe,oe,m)}}var Wc=Object.freeze({__proto__:null,default:class{constructor(xe=9){this._maxEntries=Math.max(4,xe),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(xe){let f=this.data;const m=[];if(!Lh(xe,f))return m;const C=this.toBBox,N=[];for(;f;){for(let q=0;f.children.length>q;q++){const oe=f.children[q],_e=f.leaf?C(oe):oe;Lh(xe,_e)&&(f.leaf?m.push(oe):Zh(xe,_e)?this._all(oe,m):N.push(oe))}f=N.pop()}return m}collides(xe){let f=this.data;if(!Lh(xe,f))return!1;const m=[];for(;f;){for(let C=0;f.children.length>C;C++){const N=f.children[C],q=f.leaf?this.toBBox(N):N;if(Lh(xe,q)){if(f.leaf||Zh(xe,q))return!0;m.push(N)}}f=m.pop()}return!1}load(xe){if(!xe||!xe.length)return this;if(this._minEntries>xe.length){for(let m=0;xe.length>m;m++)this.insert(xe[m]);return this}let f=this._build(xe.slice(),0,xe.length-1,0);if(this.data.children.length)if(this.data.height===f.height)this._splitRoot(this.data,f);else{if(f.height>this.data.height){const m=this.data;this.data=f,f=m}this._insert(f,this.data.height-f.height-1,!0)}else this.data=f;return this}insert(xe){return xe&&this._insert(xe,this.data.height-1),this}clear(){return this.data=Of([]),this}remove(xe,f){if(!xe)return this;let m=this.data;const C=this.toBBox(xe),N=[],q=[];let oe,_e,$e;for(;m||N.length;){if(m||(m=N.pop(),_e=N[N.length-1],oe=q.pop(),$e=!0),m.leaf){const Ft=mc(xe,m.children,f);if(Ft!==-1)return m.children.splice(Ft,1),N.push(m),this._condense(N),this}$e||m.leaf||!Zh(m,C)?_e?(oe++,m=_e.children[oe],$e=!1):m=null:(N.push(m),q.push(oe),oe=0,_e=m,m=m.children[0])}return this}toBBox(xe){return xe}compareMinX(xe,f){return xe.minX-f.minX}compareMinY(xe,f){return xe.minY-f.minY}toJSON(){return this.data}fromJSON(xe){return this.data=xe,this}_all(xe,f){const m=[];for(;xe;)xe.leaf?f.push(...xe.children):m.push(...xe.children),xe=m.pop();return f}_build(xe,f,m,C){const N=m-f+1;let q,oe=this._maxEntries;if(oe>=N)return q=Of(xe.slice(f,m+1)),Gc(q,this.toBBox),q;C||(oe=Math.ceil(N/Math.pow(oe,(C=Math.ceil(Math.log(N)/Math.log(oe)))-1))),q=Of([]),q.leaf=!1,q.height=C;const _e=Math.ceil(N/oe),$e=_e*Math.ceil(Math.sqrt(oe));Wf(xe,f,m,$e,this.compareMinX);for(let Ft=f;m>=Ft;Ft+=$e){const an=Math.min(Ft+$e-1,m);Wf(xe,Ft,an,_e,this.compareMinY);for(let nr=Ft;an>=nr;nr+=_e)q.children.push(this._build(xe,nr,Math.min(nr+_e-1,an),C-1))}return Gc(q,this.toBBox),q}_chooseSubtree(xe,f,m,C){for(;C.push(f),!f.leaf&&C.length-1!==m;){let oe,_e=1/0,$e=1/0;for(let Ft=0;f.children.length>Ft;Ft++){const an=f.children[Ft],nr=Wd(an),Dr=(Math.max((q=an).maxX,(N=xe).maxX)-Math.min(q.minX,N.minX))*(Math.max(q.maxY,N.maxY)-Math.min(q.minY,N.minY))-nr;$e>Dr?($e=Dr,_e=_e>nr?nr:_e,oe=an):Dr===$e&&_e>nr&&(_e=nr,oe=an)}f=oe||f.children[0]}var N,q;return f}_insert(xe,f,m){const C=m?xe:this.toBBox(xe),N=[],q=this._chooseSubtree(C,this.data,f,N);for(q.children.push(xe),Wh(q,C);f>=0&&N[f].children.length>this._maxEntries;)this._split(N,f),f--;this._adjustParentBBoxes(C,N,f)}_split(xe,f){const m=xe[f],C=m.children.length,N=this._minEntries;this._chooseSplitAxis(m,N,C);const q=this._chooseSplitIndex(m,N,C),oe=Of(m.children.splice(q,m.children.length-q));oe.height=m.height,oe.leaf=m.leaf,Gc(m,this.toBBox),Gc(oe,this.toBBox),f?xe[f-1].children.push(oe):this._splitRoot(m,oe)}_splitRoot(xe,f){this.data=Of([xe,f]),this.data.height=xe.height+1,this.data.leaf=!1,Gc(this.data,this.toBBox)}_chooseSplitIndex(xe,f,m){let C,N=1/0,q=1/0;for(let oe=f;m-f>=oe;oe++){const _e=rh(xe,0,oe,this.toBBox),$e=rh(xe,oe,m,this.toBBox),Ft=pf(_e,$e),an=Wd(_e)+Wd($e);N>Ft?(N=Ft,C=oe,q=q>an?an:q):Ft===N&&q>an&&(q=an,C=oe)}return C||m-f}_chooseSplitAxis(xe,f,m){const C=xe.leaf?this.compareMinX:Id,N=xe.leaf?this.compareMinY:id,q=this._allDistMargin(xe,f,m,C);this._allDistMargin(xe,f,m,N)>q&&xe.children.sort(C)}_allDistMargin(xe,f,m,C){xe.children.sort(C);const N=this.toBBox,q=rh(xe,0,f,N),oe=rh(xe,m-f,m,N);let _e=Zd(q)+Zd(oe);for(let $e=f;m-f>$e;$e++){const Ft=xe.children[$e];Wh(q,xe.leaf?N(Ft):Ft),_e+=Zd(q)}for(let $e=m-f-1;$e>=f;$e--){const Ft=xe.children[$e];Wh(oe,xe.leaf?N(Ft):Ft),_e+=Zd(oe)}return _e}_adjustParentBBoxes(xe,f,m){for(let C=m;C>=0;C--)Wh(f[C],xe)}_condense(xe){for(let f,m=xe.length-1;m>=0;m--)xe[m].children.length===0?m>0?(f=xe[m-1].children,f.splice(f.indexOf(xe[m]),1)):this.clear():Gc(xe[m],this.toBBox)}}}),lh=Ta(Wc),wd=Ta(Ql),wg=Ta(da),al=Ta(pl).default,eo=wg.featureEach,Eh=wd.featureCollection;function mo(xe){var f=new lh(xe);return f.insert=function(m){if(m.type!=="Feature")throw Error("invalid feature");return m.bbox=m.bbox?m.bbox:al(m),lh.prototype.insert.call(this,m)},f.load=function(m){var C=[];return Array.isArray(m)?m.forEach(function(N){if(N.type!=="Feature")throw Error("invalid features");N.bbox=N.bbox?N.bbox:al(N),C.push(N)}):eo(m,function(N){if(N.type!=="Feature")throw Error("invalid features");N.bbox=N.bbox?N.bbox:al(N),C.push(N)}),lh.prototype.load.call(this,C)},f.remove=function(m,C){if(m.type!=="Feature")throw Error("invalid feature");return m.bbox=m.bbox?m.bbox:al(m),lh.prototype.remove.call(this,m,C)},f.clear=function(){return lh.prototype.clear.call(this)},f.search=function(m){var C=lh.prototype.search.call(this,this.toBBox(m));return Eh(C)},f.collides=function(m){return lh.prototype.collides.call(this,this.toBBox(m))},f.all=function(){var m=lh.prototype.all.call(this);return Eh(m)},f.toJSON=function(){return lh.prototype.toJSON.call(this)},f.fromJSON=function(m){return lh.prototype.fromJSON.call(this,m)},f.toBBox=function(m){var C;if(m.bbox)C=m.bbox;else if(Array.isArray(m)&&m.length===4)C=m;else if(Array.isArray(m)&&m.length===6)C=[m[0],m[1],m[3],m[4]];else if(m.type==="Feature")C=al(m);else{if(m.type!=="FeatureCollection")throw Error("invalid geojson");C=al(m)}return{minX:C[0],minY:C[1],maxX:C[2],maxY:C[3]}},f}var vc=mo;function Ic(xe,f){var m={},C=[];if(xe.type==="LineString"&&(xe=lu(xe)),f.type==="LineString"&&(f=lu(f)),xe.type==="Feature"&&f.type==="Feature"&&xe.geometry!==null&&f.geometry!==null&&xe.geometry.type==="LineString"&&f.geometry.type==="LineString"&&xe.geometry.coordinates.length===2&&f.geometry.coordinates.length===2){var N=Hp(xe,f);return N&&C.push(N),va(C)}var q=vc();return q.load(Lu(f)),Gn(Lu(xe),function(oe){Gn(q.search(oe),function(_e){var $e=Hp(oe,_e);if($e){var Ft=ol($e).join(",");m[Ft]||(m[Ft]=!0,C.push($e))}})}),va(C)}function Hp(xe,f){var m=ol(xe),C=ol(f);if(m.length!==2)throw Error(" line1 must only contain 2 coordinates");if(C.length!==2)throw Error(" line2 must only contain 2 coordinates");var N=m[0][0],q=m[0][1],oe=m[1][0],_e=m[1][1],$e=C[0][0],Ft=C[0][1],an=C[1][0],nr=C[1][1],Dr=(nr-Ft)*(oe-N)-(an-$e)*(_e-q),bi=(an-$e)*(q-Ft)-(nr-Ft)*(N-$e),Di=(oe-N)*(q-Ft)-(_e-q)*(N-$e);if(Dr===0)return null;var Ro=bi/Dr,Lo=Di/Dr;return 0>Ro||Ro>1||0>Lo||Lo>1?null:mu([N+Ro*(oe-N),q+Ro*(_e-q)])}vc.default=mo;var yg=6378137;function pg(xe){return co(xe,function(f,m){return f+function(C){var N,q=0;switch(C.type){case"Polygon":return kf(C.coordinates);case"MultiPolygon":for(N=0;C.coordinates.length>N;N++)q+=kf(C.coordinates[N]);return q;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(m)},0)}function kf(xe){var f=0;if(xe&&xe.length>0){f+=Math.abs(Fp(xe[0]));for(var m=1;xe.length>m;m++)f-=Math.abs(Fp(xe[m]))}return f}function Fp(xe){var f,m,C,N,q,oe,_e=0,$e=xe.length;if($e>2){for(oe=0;$e>oe;oe++)oe===$e-2?(C=$e-2,N=$e-1,q=0):oe===$e-1?(C=$e-1,N=0,q=1):(C=oe,N=oe+1,q=oe+2),f=xe[C],m=xe[N],_e+=(rg(xe[q][0])-rg(f[0]))*Math.sin(rg(m[1]));_e=_e*yg*yg/2}return _e}function rg(xe){return xe*Math.PI/180}function pp(xe,f){return f===void 0&&(f={}),vs(xe,function(m,C){var N=C.geometry.coordinates;return m+su(N[0],N[1],f)},0)}function kg(xe,f){f===void 0&&(f={});var m=sl(xe);switch(f.properties||xe.type!=="Feature"||(f.properties=xe.properties),m.type){case"Polygon":return function(C,N){N===void 0&&(N={});var q=sl(C),oe=q.coordinates,_e=N.properties?N.properties:C.type==="Feature"?C.properties:{};return vp(oe,_e)}(m,f);case"MultiPolygon":return function(C,N){N===void 0&&(N={});var q=sl(C),oe=q.coordinates,_e=N.properties?N.properties:C.type==="Feature"?C.properties:{},$e=[];return oe.forEach(function(Ft){$e.push(vp(Ft,_e))}),va($e)}(m,f);default:throw Error("invalid poly")}}function vp(xe,f){return xe.length>1?Ua(xe,f):Fl(xe[0],f)}function yp(xe){for(var f,m,C=ol(xe),N=0,q=1;C.length>q;)f=m||C[0],N+=((m=C[q])[0]-f[0])*(m[1]+f[1]),q++;return N>0}var od=Ca(function(xe){var f=Object.prototype.hasOwnProperty,m="~";function C(){}function N($e,Ft,an){this.fn=$e,this.context=Ft,this.once=an||!1}function q($e,Ft,an,nr,Dr){if(typeof an!="function")throw new TypeError("The listener must be a function");var bi=new N(an,nr||$e,Dr),Di=m?m+Ft:Ft;return $e._events[Di]?$e._events[Di].fn?$e._events[Di]=[$e._events[Di],bi]:$e._events[Di].push(bi):($e._events[Di]=bi,$e._eventsCount++),$e}function oe($e,Ft){--$e._eventsCount==0?$e._events=new C:delete $e._events[Ft]}function _e(){this._events=new C,this._eventsCount=0}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(m=!1)),_e.prototype.eventNames=function(){var $e,Ft,an=[];if(this._eventsCount===0)return an;for(Ft in $e=this._events)f.call($e,Ft)&&an.push(m?Ft.slice(1):Ft);return Object.getOwnPropertySymbols?an.concat(Object.getOwnPropertySymbols($e)):an},_e.prototype.listeners=function($e){var Ft=this._events[m?m+$e:$e];if(!Ft)return[];if(Ft.fn)return[Ft.fn];for(var an=0,nr=Ft.length,Dr=Array(nr);nr>an;an++)Dr[an]=Ft[an].fn;return Dr},_e.prototype.listenerCount=function($e){var Ft=this._events[m?m+$e:$e];return Ft?Ft.fn?1:Ft.length:0},_e.prototype.emit=function($e,Ft,an,nr,Dr,bi){var Di=m?m+$e:$e;if(!this._events[Di])return!1;var Ro,Lo,Wo=this._events[Di],Bo=arguments.length;if(Wo.fn){switch(Wo.once&&this.removeListener($e,Wo.fn,void 0,!0),Bo){case 1:return Wo.fn.call(Wo.context),!0;case 2:return Wo.fn.call(Wo.context,Ft),!0;case 3:return Wo.fn.call(Wo.context,Ft,an),!0;case 4:return Wo.fn.call(Wo.context,Ft,an,nr),!0;case 5:return Wo.fn.call(Wo.context,Ft,an,nr,Dr),!0;case 6:return Wo.fn.call(Wo.context,Ft,an,nr,Dr,bi),!0}for(Lo=1,Ro=Array(Bo-1);Bo>Lo;Lo++)Ro[Lo-1]=arguments[Lo];Wo.fn.apply(Wo.context,Ro)}else{var ho,Zs=Wo.length;for(Lo=0;Zs>Lo;Lo++)switch(Wo[Lo].once&&this.removeListener($e,Wo[Lo].fn,void 0,!0),Bo){case 1:Wo[Lo].fn.call(Wo[Lo].context);break;case 2:Wo[Lo].fn.call(Wo[Lo].context,Ft);break;case 3:Wo[Lo].fn.call(Wo[Lo].context,Ft,an);break;case 4:Wo[Lo].fn.call(Wo[Lo].context,Ft,an,nr);break;default:if(!Ro)for(ho=1,Ro=Array(Bo-1);Bo>ho;ho++)Ro[ho-1]=arguments[ho];Wo[Lo].fn.apply(Wo[Lo].context,Ro)}}return!0},_e.prototype.on=function($e,Ft,an){return q(this,$e,Ft,an,!1)},_e.prototype.once=function($e,Ft,an){return q(this,$e,Ft,an,!0)},_e.prototype.removeListener=function($e,Ft,an,nr){var Dr=m?m+$e:$e;if(!this._events[Dr])return this;if(!Ft)return oe(this,Dr),this;var bi=this._events[Dr];if(bi.fn)bi.fn!==Ft||nr&&!bi.once||an&&bi.context!==an||oe(this,Dr);else{for(var Di=0,Ro=[],Lo=bi.length;Lo>Di;Di++)(bi[Di].fn!==Ft||nr&&!bi[Di].once||an&&bi[Di].context!==an)&&Ro.push(bi[Di]);Ro.length?this._events[Dr]=Ro.length===1?Ro[0]:Ro:oe(this,Dr)}return this},_e.prototype.removeAllListeners=function($e){var Ft;return $e?this._events[Ft=m?m+$e:$e]&&oe(this,Ft):(this._events=new C,this._eventsCount=0),this},_e.prototype.off=_e.prototype.removeListener,_e.prototype.addListener=_e.prototype.on,_e.prefixed=m,_e.EventEmitter=_e,xe.exports=_e}),Pp=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q,oe=N.style;return Ur(this,m),(q=f.call(this)).scene=void 0,q.style=void 0,q.layers=void 0,q.data=[],q.scene=C,q.style=oe,q.layers=q.initLayers(),q.layers.forEach(function(_e){C.addLayer(_e)}),oe.callback instanceof Function&&oe.callback(q.layers),q}return Ao(m,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(C){C.show()})}},{key:"hide",value:function(){this.layers.forEach(function(C){C.hide()})}},{key:"setData",value:function(C){var N=xa(C).sort(function(q,oe){return+q.properties.isActive-+oe.properties.isActive});this.data=N,this.layers.forEach(function(q){q.setData(va(N))})}},{key:"destroy",value:function(){var C=this;this.layers.forEach(function(N){C.scene.removeLayer(N)})}}]),m}(od.EventEmitter),Og=function(xe){ps(m,xe);var f=ka(m);function m(){return Ur(this,m),f.apply(this,arguments)}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.style,oe=C.options;return[new z.LineLayer(oe!=null?oe:{}).source(va([])).size(N.size).color(N.color).shape("line").style(q)]}}]),m}(Pp),Xp=function(xe){var f=typeof xe;return xe!=null&&(f=="object"||f=="function")},sd=typeof us=="object"&&us&&us.Object===Object&&us,Yp=typeof self=="object"&&self&&self.Object===Object&&self,Kh=sd||Yp||Function("return this")(),Qf=function(){return Kh.Date.now()},Ep=/\s/,Au=function(xe){for(var f=xe.length;f--&&Ep.test(xe.charAt(f)););return f},Bp=/^\s+/,zp=function(xe){return xe&&xe.slice(0,Au(xe)+1).replace(Bp,"")},Nf=Kh.Symbol,zh=Object.prototype,Xh=zh.hasOwnProperty,ed=zh.toString,Hh=Nf?Nf.toStringTag:void 0,_p=function(xe){var f=Xh.call(xe,Hh),m=xe[Hh];try{xe[Hh]=void 0;var C=!0}catch(q){}var N=ed.call(xe);return C&&(f?xe[Hh]=m:delete xe[Hh]),N},Jf=Object.prototype.toString,Up=function(xe){return Jf.call(xe)},fh=Nf?Nf.toStringTag:void 0,_f=function(xe){return xe==null?xe===void 0?"[object Undefined]":"[object Null]":fh&&fh in Object(xe)?_p(xe):Up(xe)},jd=function(xe){return xe!=null&&typeof xe=="object"},tf=function(xe){return typeof xe=="symbol"||jd(xe)&&_f(xe)=="[object Symbol]"},Gf=/^[-+]0x[0-9a-f]+$/i,Ah=/^0b[01]+$/i,Zc=/^0o[0-7]+$/i,Sd=parseInt,Hd=function(xe){if(typeof xe=="number")return xe;if(tf(xe))return NaN;if(Xp(xe)){var f=typeof xe.valueOf=="function"?xe.valueOf():xe;xe=Xp(f)?f+"":f}if(typeof xe!="string")return xe===0?xe:+xe;xe=zp(xe);var m=Ah.test(xe);return m||Zc.test(xe)?Sd(xe.slice(2),m?2:8):Gf.test(xe)?NaN:+xe},Vo=Math.max,D=Math.min,k=function(xe,f,m){var C,N,q,oe,_e,$e,Ft=0,an=!1,nr=!1,Dr=!0;if(typeof xe!="function")throw new TypeError("Expected a function");function bi(Bo){var ho=C,Zs=N;return C=N=void 0,Ft=Bo,oe=xe.apply(Zs,ho)}function Di(Bo){var ho=Bo-$e;return $e===void 0||ho>=f||0>ho||nr&&Bo-Ft>=q}function Ro(){var Bo=Qf();if(Di(Bo))return Lo(Bo);_e=setTimeout(Ro,function(ho){var Zs=f-(ho-$e);return nr?D(Zs,q-(ho-Ft)):Zs}(Bo))}function Lo(Bo){return _e=void 0,Dr&&C?bi(Bo):(C=N=void 0,oe)}function Wo(){var Bo=Qf(),ho=Di(Bo);if(C=arguments,N=this,$e=Bo,ho){if(_e===void 0)return function(Zs){return Ft=Zs,_e=setTimeout(Ro,f),an?bi(Zs):oe}($e);if(nr)return clearTimeout(_e),_e=setTimeout(Ro,f),bi($e)}return _e===void 0&&(_e=setTimeout(Ro,f)),oe}return f=Hd(f)||0,Xp(m)&&(an=!!m.leading,q=(nr="maxWait"in m)?Vo(Hd(m.maxWait)||0,f):q,Dr="trailing"in m?!!m.trailing:Dr),Wo.cancel=function(){_e!==void 0&&clearTimeout(_e),Ft=0,C=$e=N=_e=void 0},Wo.flush=function(){return _e===void 0?oe:Lo(Qf())},Wo},te=function(xe){ps(m,xe);var f=ka(m);function m(){var C;Ur(this,m);for(var N=arguments.length,q=Array(N),oe=0;N>oe;oe++)q[oe]=arguments[oe];return(C=f.call.apply(f,[this].concat(q))).onMouseMove=function(_e){C.emit(v.RenderEvent.Mousemove,_e)},C.onMouseOut=function(_e){C.emit(v.RenderEvent.Mouseout,_e)},C.onMouseDown=function(_e){C.emit(v.RenderEvent.Dragstart,_e)},C.onDragging=function(_e){C.emit(v.RenderEvent.Dragging,_e)},C.onDragEnd=k(function(_e){C.emit(v.RenderEvent.Dragend,_e)},0),C.onUnClick=function(_e){C.emit(v.RenderEvent.UnClick,_e)},C.enableHover=function(){var _e,$e;C.disableHover(),(_e=C.layers[0])===null||_e===void 0||_e.on(v.LayerEvent.Mousemove,C.onMouseMove),($e=C.layers[0])===null||$e===void 0||$e.on(v.LayerEvent.Mouseout,C.onMouseOut)},C.disableHover=function(){var _e,$e;(_e=C.layers[0])===null||_e===void 0||_e.off(v.LayerEvent.Mousemove,C.onMouseMove),($e=C.layers[0])===null||$e===void 0||$e.off(v.LayerEvent.Mouseout,C.onMouseOut)},C}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.hover,oe=C.active,_e=C.style,$e=C.options;return[new z.LineLayer($e!=null?$e:{}).source(va([])).size("isHover*isActive",function(Ft,an){return an?oe.size:Ft?q.size:N.size}).color("isHover*isActive",function(Ft,an){return an?oe.color:Ft?q.color:N.color}).shape("line").style(_e)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),m}(Pp),ue=function(xe){ps(m,xe);var f=ka(m);function m(){var C;Ur(this,m);for(var N=arguments.length,q=Array(N),oe=0;N>oe;oe++)q[oe]=arguments[oe];return(C=f.call.apply(f,[this].concat(q))).onMouseMove=function(_e){C.emit(v.RenderEvent.Mousemove,_e)},C.onMouseOut=function(_e){C.emit(v.RenderEvent.Mouseout,_e)},C.onMouseDown=function(_e){C.emit(v.RenderEvent.Click,_e)},C}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.style,oe=q===void 0?{}:q,_e=C.options,$e=N.shape,Ft=N.size,an=N.color;return[new z.PointLayer(_e!=null?_e:{}).source(va([])).size(Ft).color(an).shape($e).style(oe)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var C,N;this.disableHover(),(C=this.layers[0])===null||C===void 0||C.on(v.LayerEvent.Mousemove,this.onMouseMove),(N=this.layers[0])===null||N===void 0||N.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var C,N;(C=this.layers[0])===null||C===void 0||C.off(v.LayerEvent.Mousemove,this.onMouseMove),(N=this.layers[0])===null||N===void 0||N.off(v.LayerEvent.Mouseout,this.onMouseOut)}}]),m}(Pp),Ke=function(xe){ps(m,xe);var f=ka(m);function m(){var C;Ur(this,m);for(var N=arguments.length,q=Array(N),oe=0;N>oe;oe++)q[oe]=arguments[oe];return(C=f.call.apply(f,[this].concat(q))).onCreate=function(_e){C.emit(v.RenderEvent.UnClick,_e)},C.onMouseMove=function(_e){C.emit(v.RenderEvent.Mousemove,_e)},C.onMouseOut=function(_e){C.emit(v.RenderEvent.Mouseout,_e)},C.onMouseDown=function(_e){C.emit(v.RenderEvent.Dragstart,_e)},C.onDragging=function(_e){C.emit(v.RenderEvent.Dragging,_e)},C.onDragEnd=k(function(_e){C.emit(v.RenderEvent.Dragend,_e)},0),C.onClick=function(_e){C.emit(v.RenderEvent.Click,_e)},C.onContextmenu=function(_e){C.emit(v.RenderEvent.Contextmenu,_e)},C}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.hover,oe=C.active,_e=C.style,$e=_e===void 0?{}:_e,Ft=C.options;return[new z.PointLayer(Ft!=null?Ft:{}).source(va([])).size("isHover*isActive",function(an,nr){return nr?oe.size:an?q.size:N.size}).color("isHover*isActive",function(an,nr){return nr?oe.color:an?q.color:N.color}).shape("isHover*isActive",function(an,nr){return nr?oe.shape:an?q.shape:N.shape}).style($e)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(v.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var C,N;this.disableHover(),(C=this.layers[0])===null||C===void 0||C.on(v.LayerEvent.Mousemove,this.onMouseMove),(N=this.layers[0])===null||N===void 0||N.on(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var C,N;(C=this.layers[0])===null||C===void 0||C.off(v.LayerEvent.Mousemove,this.onMouseMove),(N=this.layers[0])===null||N===void 0||N.off(v.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(v.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(v.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(v.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(v.LayerEvent.Contextmenu,this.onContextmenu)}}]),m}(Pp),_n=function(xe){ps(m,xe);var f=ka(m);function m(){var C;Ur(this,m);for(var N=arguments.length,q=Array(N),oe=0;N>oe;oe++)q[oe]=arguments[oe];return(C=f.call.apply(f,[this].concat(q))).onMouseMove=function(_e){C.emit(v.RenderEvent.Mousemove,_e)},C.onMouseOut=function(_e){C.emit(v.RenderEvent.Mouseout,_e)},C.onMouseDown=function(_e){C.emit(v.RenderEvent.Dragstart,_e)},C.onDragging=function(_e){C.emit(v.RenderEvent.Dragging,_e)},C.onDragEnd=k(function(_e){C.emit(v.RenderEvent.Dragend,_e)},0),C.onUnClick=function(_e){C.emit(v.RenderEvent.UnClick,_e)},C.enableHover=function(){var _e,$e;C.disableHover(),(_e=C.layers[0])===null||_e===void 0||_e.on(v.LayerEvent.Mousemove,C.onMouseMove),($e=C.layers[0])===null||$e===void 0||$e.on(v.LayerEvent.Mouseout,C.onMouseOut)},C.disableHover=function(){var _e,$e;(_e=C.layers[0])===null||_e===void 0||_e.off(v.LayerEvent.Mousemove,C.onMouseMove),($e=C.layers[0])===null||$e===void 0||$e.off(v.LayerEvent.Mouseout,C.onMouseOut)},C}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.hover,oe=C.active,_e=C.style,$e=C.options,Ft=new z.PolygonLayer($e!=null?$e:{});return Ft.source(va([])).color("isHover*isActive",function(an,nr){return nr?oe.color:an?q.color:N.color}).style(_e),[Ft]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(v.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(v.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(v.LayerEvent.UnClick,this.onUnClick)}}]),m}(Pp),lr=function(xe){ps(m,xe);var f=ka(m);function m(C){var N;return Ur(this,m),(N=f.call(this)).scene=void 0,N.previousClick=void 0,N.onDblClick=function(q){var oe,_e,$e=(oe=(_e=q.pixel)!==null&&_e!==void 0?_e:q.point)!==null&&oe!==void 0?oe:{},Ft=$e.x,an=Ft===void 0?0:Ft,nr=$e.y,Dr=nr===void 0?0:nr,bi=Date.now();if(N.previousClick){var Di=N.previousClick,Ro=Di.y;300>bi-Di.time&&5>Math.abs(an-Di.x)&&5>Math.abs(Dr-Ro)&&N.emit(v.RenderEvent.DblClick,q)}N.previousClick={x:an,y:Dr,time:bi}},N.onMouseMove=function(q){N.emit(v.RenderEvent.Mousemove,q)},N.onMouseDown=function(q){N.emit(v.RenderEvent.Dragstart,q)},N.onDragging=function(q){N.emit(v.RenderEvent.Dragging,q)},N.onDragEnd=k(function(q){N.emit(v.RenderEvent.Dragend,q)},0),N.scene=C,N}return Ao(m,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(v.SceneEvent.Dragging,this.onDragging),this.scene.on(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(v.SceneEvent.Dragging,this.onDragging),this.scene.off(v.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(v.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(v.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(v.SceneEvent.Mousedown,this.onDblClick)}}]),m}(od),ye=function(xe){ps(m,xe);var f=ka(m);function m(){return Ur(this,m),f.apply(this,arguments)}return Ao(m,[{key:"initLayers",value:function(){var C=this.style,N=C.normal,q=C.active,oe=C.style,_e=oe===void 0?{}:oe,$e=C.options;return[new z.PointLayer($e!=null?$e:{}).source(va([])).size("isActive",function(Ft){return Ft?q.size:N.size}).color("isActive",function(Ft){return Ft?q.color:N.color}).shape("text","text").style(_e)]}}]),m}(Pp),S={point:Ke,line:te,dashLine:Og,midPoint:ue,text:ye,polygon:_n},J="#1990FF",ve="#ED9D48",Ae={blend:"normal",pickingBuffer:5},Qe={color:J,shape:"circle",size:6},Ht={color:ve,shape:"circle",size:6},Qt={shape:"circle",size:6,color:ve},$n={options:Ae,normal:Qe,hover:Kt(Kt({},Qe),{},{size:8}),active:Kt(Kt({},Qe),{},{size:8,color:ve}),style:{stroke:"#ffffff",strokeWidth:2}},kr={options:Ae,normal:Ht,hover:Kt(Kt({},Ht),{},{size:8}),active:Kt(Kt({},Ht),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},B={color:J,size:12},H={point:kr,line:{options:Ae,normal:{color:J,size:2},hover:{color:J,size:2},active:{color:ve,size:2},style:{}},polygon:{options:Ae,normal:{color:J},hover:{color:J},active:{color:ve},style:{opacity:.15}},midPoint:{options:Ae,normal:Qt},dashLine:{options:Ae,normal:{color:ve,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Ae,normal:B,active:Kt(Kt({},B),{},{color:ve}),style:{fontWeight:"800",textOffset:[0,B.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},G=function(xe,f){return xe===f||xe!=xe&&f!=f},re=function(xe,f){for(var m=xe.length;m--;)if(G(xe[m][0],f))return m;return-1},ke=Array.prototype.splice,_t=function(xe){var f=this.__data__,m=re(f,xe);return m>=0&&(m==f.length-1?f.pop():ke.call(f,m,1),--this.size,!0)},Lt=function(xe){var f=this.__data__,m=re(f,xe);return 0>m?void 0:f[m][1]},bn=function(xe){return re(this.__data__,xe)>-1},_r=function(xe,f){var m=this.__data__,C=re(m,xe);return 0>C?(++this.size,m.push([xe,f])):m[C][1]=f,this};function Dn(xe){var f=-1,m=xe==null?0:xe.length;for(this.clear();++fC.length)return C.push([xe,f]),this.size=++m.size,this;m=this.__data__=new yh(C)}return m.set(xe,f),this.size=m.size,this};function ad(xe){var f=this.__data__=new mi(xe);this.size=f.size}ad.prototype.clear=Mi,ad.prototype.delete=Ji,ad.prototype.get=zo,ad.prototype.has=Yo,ad.prototype.set=uh;var bc=ad,kd=function(xe,f){for(var m=-1,C=xe==null?0:xe.length;++m-1&&xe%1==0&&f>xe},im=function(xe){return typeof xe=="number"&&xe>-1&&xe%1==0&&9007199254740991>=xe},ep={};ep["[object Float32Array]"]=ep["[object Float64Array]"]=ep["[object Int8Array]"]=ep["[object Int16Array]"]=ep["[object Int32Array]"]=ep["[object Uint8Array]"]=ep["[object Uint8ClampedArray]"]=ep["[object Uint16Array]"]=ep["[object Uint32Array]"]=!0,ep["[object Arguments]"]=ep["[object Array]"]=ep["[object ArrayBuffer]"]=ep["[object Boolean]"]=ep["[object DataView]"]=ep["[object Date]"]=ep["[object Error]"]=ep["[object Function]"]=ep["[object Map]"]=ep["[object Number]"]=ep["[object Object]"]=ep["[object RegExp]"]=ep["[object Set]"]=ep["[object String]"]=ep["[object WeakMap]"]=!1;var Ld=function(xe){return jd(xe)&&im(xe.length)&&!!ep[_f(xe)]},g0=function(xe){return function(f){return xe(f)}},zm=Ca(function(xe,f){var m=f&&!f.nodeType&&f,C=m&&xe&&!xe.nodeType&&xe,N=C&&C.exports===m&&sd.process,q=function(){try{var oe=C&&C.require&&C.require("util").types;return oe||N&&N.binding&&N.binding("util")}catch(_e){}}();xe.exports=q}),Ym=zm&&zm.isTypedArray,lm=Ym?g0(Ym):Ld,b0=Object.prototype.hasOwnProperty,x0=function(xe,f){var m=ip(xe),C=!m&&xg(xe),N=!m&&!C&&Od(xe),q=!m&&!C&&!N&&lm(xe),oe=m||C||N||q,_e=oe?am(xe.length,String):[],$e=_e.length;for(var Ft in xe)!f&&!b0.call(xe,Ft)||oe&&(Ft=="length"||N&&(Ft=="offset"||Ft=="parent")||q&&(Ft=="buffer"||Ft=="byteLength"||Ft=="byteOffset")||Vg(Ft,$e))||_e.push(Ft);return _e},Im=Object.prototype,xm=function(xe){var f=xe&&xe.constructor;return xe===(typeof f=="function"&&f.prototype||Im)},Sm=function(xe,f){return function(m){return xe(f(m))}},M0=Sm(Object.keys,Object),C0=Object.prototype.hasOwnProperty,pm=function(xe){if(!xm(xe))return M0(xe);var f=[];for(var m in Object(xe))C0.call(xe,m)&&m!="constructor"&&f.push(m);return f},gg=function(xe){return xe!=null&&im(xe.length)&&!Fo(xe)},n0=function(xe){return gg(xe)?x0(xe):pm(xe)},Fg=function(xe,f){return xe&&Rp(f,n0(f),xe)},tv=function(xe){var f=[];if(xe!=null)for(var m in Object(xe))f.push(m);return f},hp=Object.prototype.hasOwnProperty,Gp=function(xe){if(!Xp(xe))return tv(xe);var f=xm(xe),m=[];for(var C in xe)(C!="constructor"||!f&&hp.call(xe,C))&&m.push(C);return m},Cf=function(xe){return gg(xe)?x0(xe,!0):Gp(xe)},P0=function(xe,f){return xe&&Rp(f,Cf(f),xe)},H0=Ca(function(xe,f){var m=f&&!f.nodeType&&f,C=m&&xe&&!xe.nodeType&&xe,N=C&&C.exports===m?Kh.Buffer:void 0,q=N?N.allocUnsafe:void 0;xe.exports=function(oe,_e){if(_e)return oe.slice();var $e=oe.length,Ft=q?q($e):new oe.constructor($e);return oe.copy(Ft),Ft}}),Om=function(xe,f){var m=-1,C=xe.length;for(f||(f=Array(C));++m_e))return!1;var Ft=q.get(xe),an=q.get(f);if(Ft&&an)return Ft==f&&an==xe;var nr=-1,Dr=!0,bi=2&m?new ha:void 0;for(q.set(xe,f),q.set(f,xe);++nr<_e;){var Di=xe[nr],Ro=f[nr];if(C)var Lo=oe?C(Ro,Di,nr,f,xe,q):C(Di,Ro,nr,xe,f,q);if(Lo!==void 0){if(Lo)continue;Dr=!1;break}if(bi){if(!xo(f,function(Wo,Bo){if(!ki(bi,Bo)&&(Di===Wo||N(Di,Wo,m,C,q)))return bi.push(Bo)})){Dr=!1;break}}else if(Di!==Ro&&!N(Di,Ro,m,C,q)){Dr=!1;break}}return q.delete(xe),q.delete(f),Dr},Es=function(xe){var f=-1,m=Array(xe.size);return xe.forEach(function(C,N){m[++f]=[N,C]}),m},Cs=function(xe){var f=-1,m=Array(xe.size);return xe.forEach(function(C){m[++f]=C}),m},$t=Nf?Nf.prototype:void 0,ar=$t?$t.valueOf:void 0,si=function(xe,f,m,C,N,q,oe){switch(m){case"[object DataView]":if(xe.byteLength!=f.byteLength||xe.byteOffset!=f.byteOffset)return!1;xe=xe.buffer,f=f.buffer;case"[object ArrayBuffer]":return!(xe.byteLength!=f.byteLength||!q(new vi(xe),new vi(f)));case"[object Boolean]":case"[object Date]":case"[object Number]":return G(+xe,+f);case"[object Error]":return xe.name==f.name&&xe.message==f.message;case"[object RegExp]":case"[object String]":return xe==f+"";case"[object Map]":var _e=Es;case"[object Set]":if(_e||(_e=Cs),xe.size!=f.size&&!(1&C))return!1;var $e=oe.get(xe);if($e)return $e==f;C|=2,oe.set(xe,f);var Ft=Os(_e(xe),_e(f),C,N,q,oe);return oe.delete(xe),Ft;case"[object Symbol]":if(ar)return ar.call(xe)==ar.call(f)}return!1},Io=Object.prototype.hasOwnProperty,ls=function(xe,f,m,C,N,q){var oe=1&m,_e=m0(xe),$e=_e.length;if($e!=m0(f).length&&!oe)return!1;for(var Ft=$e;Ft--;){var an=_e[Ft];if(!(oe?an in f:Io.call(f,an)))return!1}var nr=q.get(xe),Dr=q.get(f);if(nr&&Dr)return nr==f&&Dr==xe;var bi=!0;q.set(xe,f),q.set(f,xe);for(var Di=oe;++Ft<$e;){var Ro=xe[an=_e[Ft]],Lo=f[an];if(C)var Wo=oe?C(Lo,Ro,an,f,xe,q):C(Ro,Lo,an,xe,f,q);if(!(Wo===void 0?Ro===Lo||N(Ro,Lo,m,C,q):Wo)){bi=!1;break}Di||(Di=an=="constructor")}if(bi&&!Di){var Bo=xe.constructor,ho=f.constructor;Bo==ho||!("constructor"in xe)||!("constructor"in f)||typeof Bo=="function"&&Bo instanceof Bo&&typeof ho=="function"&&ho instanceof ho||(bi=!1)}return q.delete(xe),q.delete(f),bi},ua="[object Arguments]",lo="[object Array]",So="[object Object]",No=Object.prototype.hasOwnProperty,Ls=function(xe,f,m,C,N,q){var oe=ip(xe),_e=ip(f),$e=oe?lo:$r(xe),Ft=_e?lo:$r(f),an=($e=$e==ua?So:$e)==So,nr=(Ft=Ft==ua?So:Ft)==So,Dr=$e==Ft;if(Dr&&Od(xe)){if(!Od(f))return!1;oe=!0,an=!1}if(Dr&&!an)return q||(q=new bc),oe||lm(xe)?Os(xe,f,m,C,N,q):si(xe,f,$e,m,C,N,q);if(!(1&m)){var bi=an&&No.call(xe,"__wrapped__"),Di=nr&&No.call(f,"__wrapped__");if(bi||Di){var Ro=bi?xe.value():xe,Lo=Di?f.value():f;return q||(q=new bc),N(Ro,Lo,m,C,q)}}return!!Dr&&(q||(q=new bc),ls(xe,f,m,C,N,q))},ma=function xe(f,m,C,N,q){return f===m||(f==null||m==null||!jd(f)&&!jd(m)?f!=f&&m!=m:Ls(f,m,C,N,xe,q))},Ne=function(xe,f){return ma(xe,f)},ja=function(xe,f,m){(m!==void 0&&!G(xe[f],m)||m===void 0&&!(f in xe))&&eh(xe,f,m)},Ol=function(xe){return function(f,m,C){for(var N=-1,q=Object(f),oe=C(f),_e=oe.length;_e--;){var $e=oe[xe?_e:++N];if(m(q[$e],$e,q)===!1)break}return f}},ll=Ol(),ta=function(xe){return jd(xe)&&gg(xe)},ga=Function.prototype.toString,qa=Object.prototype.hasOwnProperty,bs=ga.call(Object),$i=function(xe){if(!jd(xe)||_f(xe)!="[object Object]")return!1;var f=Hm(xe);if(f===null)return!0;var m=qa.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&ga.call(m)==bs},$s=function(xe,f){if((f!=="constructor"||typeof xe[f]!="function")&&f!="__proto__")return xe[f]},Ko=function(xe){return Rp(xe,Cf(xe))},qs=function(xe,f,m,C,N,q,oe){var _e=$s(xe,m),$e=$s(f,m),Ft=oe.get($e);if(Ft)ja(xe,m,Ft);else{var an=q?q(_e,$e,m+"",xe,f,oe):void 0,nr=an===void 0;if(nr){var Dr=ip($e),bi=!Dr&&Od($e),Di=!Dr&&!bi&&lm($e);an=$e,Dr||bi||Di?ip(_e)?an=_e:ta(_e)?an=Om(_e):bi?(nr=!1,an=H0($e,!0)):Di?(nr=!1,an=cr($e,!0)):an=[]:$i($e)||xg($e)?(an=_e,xg(_e)?an=Ko(_e):Xp(_e)&&!Fo(_e)||(an=Bn($e))):nr=!1}nr&&(oe.set($e,an),N(an,$e,C,q,oe),oe.delete($e)),ja(xe,m,an)}},pa=function xe(f,m,C,N,q){f!==m&&ll(m,function(oe,_e){if(q||(q=new bc),Xp(oe))qs(f,m,_e,C,xe,N,q);else{var $e=N?N($s(f,_e),oe,_e+"",f,m,q):void 0;$e===void 0&&($e=oe),ja(f,_e,$e)}},Cf)},vl=function(xe){return xe},Wa=function(xe,f,m){switch(m.length){case 0:return xe.call(f);case 1:return xe.call(f,m[0]);case 2:return xe.call(f,m[0],m[1]);case 3:return xe.call(f,m[0],m[1],m[2])}return xe.apply(f,m)},yi=Math.max,ss=function(xe,f,m){return f=yi(f===void 0?xe.length-1:f,0),function(){for(var C=arguments,N=-1,q=yi(C.length-f,0),oe=Array(q);++N0){if(++f>=800)return arguments[0]}else f=0;return xe.apply(void 0,arguments)}},zu=Nl(Qd?function(xe,f){return Qd(xe,"toString",{configurable:!0,enumerable:!1,value:Ws(f),writable:!0})}:vl),Va=function(xe,f){return zu(ss(xe,f,vl),xe+"")},Sc=function(xe,f,m){if(!Xp(m))return!1;var C=typeof f;return!!(C=="number"?gg(m)&&Vg(f,m.length):C=="string"&&f in m)&&G(m[f],xe)},Il=function(xe){return Va(function(f,m){var C=-1,N=m.length,q=N>1?m[N-1]:void 0,oe=N>2?m[2]:void 0;for(q=xe.length>3&&typeof q=="function"?(N--,q):void 0,oe&&Sc(m[0],m[1],oe)&&(q=3>N?void 0:q,N=1),f=Object(f);++C":".","?":"/","|":"\\"},$e={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Ft=1;20>Ft;++Ft)q[111+Ft]="f"+Ft;for(Ft=0;9>=Ft;++Ft)q[Ft+96]=""+Ft;Lo.prototype.bind=function(Wo,Bo,ho){var Zs=this;return Zs._bindMultiple.call(Zs,Wo=Wo instanceof Array?Wo:[Wo],Bo,ho),Zs},Lo.prototype.unbind=function(Wo,Bo){return this.bind.call(this,Wo,function(){},Bo)},Lo.prototype.trigger=function(Wo,Bo){var ho=this;return ho._directMap[Wo+":"+Bo]&&ho._directMap[Wo+":"+Bo]({},Wo),ho},Lo.prototype.reset=function(){var Wo=this;return Wo._callbacks={},Wo._directMap={},Wo},Lo.prototype.stopCallback=function(Wo,Bo){if((" "+Bo.className+" ").indexOf(" mousetrap ")>-1||Ro(Bo,this.target))return!1;if("composedPath"in Wo&&typeof Wo.composedPath=="function"){var ho=Wo.composedPath()[0];ho!==Wo.target&&(Bo=ho)}return Bo.tagName=="INPUT"||Bo.tagName=="SELECT"||Bo.tagName=="TEXTAREA"||Bo.isContentEditable},Lo.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Lo.addKeycodes=function(Wo){for(var Bo in Wo)Wo.hasOwnProperty(Bo)&&(q[Bo]=Wo[Bo]);N=null},Lo.init=function(){var Wo=Lo(m);for(var Bo in Wo)Bo.charAt(0)!=="_"&&(Lo[Bo]=function(ho){return function(){return Wo[ho].apply(Wo,arguments)}}(Bo))},Lo.init(),f.Mousetrap=Lo,xe.exports&&(xe.exports=Lo)}function an(Wo,Bo,ho){Wo.addEventListener?Wo.addEventListener(Bo,ho,!1):Wo.attachEvent("on"+Bo,ho)}function nr(Wo){if(Wo.type=="keypress"){var Bo=String.fromCharCode(Wo.which);return Wo.shiftKey||(Bo=Bo.toLowerCase()),Bo}return q[Wo.which]?q[Wo.which]:oe[Wo.which]?oe[Wo.which]:String.fromCharCode(Wo.which).toLowerCase()}function Dr(Wo){return Wo=="shift"||Wo=="ctrl"||Wo=="alt"||Wo=="meta"}function bi(Wo,Bo,ho){return ho||(ho=function(){if(!N)for(var Zs in N={},q)Zs>95&&112>Zs||q.hasOwnProperty(Zs)&&(N[q[Zs]]=Zs);return N}()[Wo]?"keydown":"keypress"),ho=="keypress"&&Bo.length&&(ho="keydown"),ho}function Di(Wo,Bo){var ho,Zs,Da,hl=[];for(ho=function(au){return au==="+"?["+"]:(au=au.replace(/\+{2}/g,"+plus")).split("+")}(Wo),Da=0;ho.length>Da;++Da)$e[Zs=ho[Da]]&&(Zs=$e[Zs]),Bo&&Bo!="keypress"&&_e[Zs]&&(Zs=_e[Zs],hl.push("shift")),Dr(Zs)&&hl.push(Zs);return{key:Zs,modifiers:hl,action:Bo=bi(Zs,hl,Bo)}}function Ro(Wo,Bo){return Wo!==null&&Wo!==m&&(Wo===Bo||Ro(Wo.parentNode,Bo))}function Lo(Wo){var Bo=this;if(Wo=Wo||m,!(Bo instanceof Lo))return new Lo(Wo);Bo.target=Wo,Bo._callbacks={},Bo._directMap={};var ho,Zs={},Da=!1,hl=!1,au=!1;function Ru(ur){ur=ur||{};var Hr,gi=!1;for(Hr in Zs)ur[Hr]?gi=!0:Zs[Hr]=0;gi||(au=!1)}function Su(ur,Hr,gi,fo,Ys,Pa){var Ns,Ha,ql,As=[],xc=gi.type;if(!Bo._callbacks[ur])return[];for(xc=="keyup"&&Dr(ur)&&(Hr=[ur]),Ns=0;Bo._callbacks[ur].length>Ns;++Ns)Ha=Bo._callbacks[ur][Ns],(fo||!Ha.seq||Zs[Ha.seq]==Ha.level)&&xc==Ha.action&&(xc=="keypress"&&!gi.metaKey&&!gi.ctrlKey||(ql=Ha.modifiers,Hr.sort().join(",")===ql.sort().join(",")))&&((!fo&&Ha.combo==Ys||fo&&Ha.seq==fo&&Ha.level==Pa)&&Bo._callbacks[ur].splice(Ns,1),As.push(Ha));return As}function ih(ur,Hr,gi,fo){Bo.stopCallback(Hr,Hr.target||Hr.srcElement,gi,fo)||ur(Hr,gi)===!1&&(function(Ys){Ys.preventDefault?Ys.preventDefault():Ys.returnValue=!1}(Hr),function(Ys){Ys.stopPropagation?Ys.stopPropagation():Ys.cancelBubble=!0}(Hr))}function _u(ur){typeof ur.which!="number"&&(ur.which=ur.keyCode);var Hr=nr(ur);Hr&&(ur.type!="keyup"||Da!==Hr?Bo.handleKey(Hr,function(gi){var fo=[];return gi.shiftKey&&fo.push("shift"),gi.altKey&&fo.push("alt"),gi.ctrlKey&&fo.push("ctrl"),gi.metaKey&&fo.push("meta"),fo}(ur),ur):Da=!1)}function zc(ur,Hr,gi,fo){function Ys(ql){return function(){au=ql,++Zs[ur],clearTimeout(ho),ho=setTimeout(Ru,1e3)}}function Pa(ql){ih(gi,ql,ur),fo!=="keyup"&&(Da=nr(ql)),setTimeout(Ru,10)}Zs[ur]=0;for(var Ns=0;Hr.length>Ns;++Ns){var Ha=Ns+1===Hr.length?Pa:Ys(fo||Di(Hr[Ns+1]).action);Fn(Hr[Ns],Ha,fo,ur,Ns)}}function Fn(ur,Hr,gi,fo,Ys){Bo._directMap[ur+":"+gi]=Hr;var Pa,Ns=(ur=ur.replace(/\s+/g," ")).split(" ");Ns.length>1?zc(ur,Ns,Hr,gi):(Pa=Di(ur,gi),Bo._callbacks[Pa.key]=Bo._callbacks[Pa.key]||[],Su(Pa.key,Pa.modifiers,{type:Pa.action},fo,ur,Ys),Bo._callbacks[Pa.key][fo?"unshift":"push"]({callback:Hr,modifiers:Pa.modifiers,action:Pa.action,seq:fo,level:Ys,combo:ur}))}Bo._handleKey=function(ur,Hr,gi){var fo,Ys=Su(ur,Hr,gi),Pa={},Ns=0,Ha=!1;for(fo=0;Ys.length>fo;++fo)Ys[fo].seq&&(Ns=Math.max(Ns,Ys[fo].level));for(fo=0;Ys.length>fo;++fo)if(Ys[fo].seq){if(Ys[fo].level!=Ns)continue;Ha=!0,Pa[Ys[fo].seq]=1,ih(Ys[fo].callback,gi,Ys[fo].combo,Ys[fo].seq)}else Ha||ih(Ys[fo].callback,gi,Ys[fo].combo);var ql=gi.type=="keypress"&&hl;gi.type!=au||Dr(ur)||ql||Ru(Pa),hl=Ha&&gi.type=="keydown"},Bo._bindMultiple=function(ur,Hr,gi){for(var fo=0;ur.length>fo;++fo)Fn(ur[fo],Hr,gi)},an(Wo,"keypress",_u),an(Wo,"keydown",_u),an(Wo,"keyup",_u)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),Kc,uc=function(xe){return xe&&xe.length?xe[0]:void 0},yl=(Kc=1,function(xe){return"".concat(xe,"-").concat(Kc++)}),rd=function(xe,f){var m,C;return!(!xe||!f||((m=xe.properties)===null||m===void 0?void 0:m.id)!==((C=f.properties)===null||C===void 0?void 0:C.id))},Zf=function(xe){var f=xe.target,m=xe.targetHandler,C=xe.otherHandler;return xe.data.map(function(N,q){var oe,_e=rd(N,f)?m:C;return(oe=_e==null?void 0:_e(N,q))!==null&&oe!==void 0?oe:N})},$c=function(){return{id:yl("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},fd=function(){return{id:yl("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},kh=function(){return{id:yl("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},Fd=function(xe){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return mu(xe,Kt(Kt({},$c()),f))},Uo=function(xe){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Kt(Kt({},fd()),{},{nodes:xe},f),geometry:{type:"LineString",coordinates:Sr(va(xe))}}},rl=function(xe){return Fl(xe,{id:yl("dashLine")})},_c=function(xe){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:Kt(Kt({},kh()),{},{nodes:xe},f),geometry:{type:"Polygon",coordinates:[Sr(va([].concat(xa(xe),[uc(xe)])))]}}},jh=function(xe){return function(f,m,C){C===void 0&&(C={});for(var N=sl(f).coordinates,q=0,oe=0;N.length>oe&&(q>m||oe!==N.length-1);oe++){if(q>=m){var _e=m-q;if(_e){var $e=ws(N[oe],N[oe-1])-180;return Th(N[oe],_e,$e,C)}return mu(N[oe])}q+=su(N[oe],N[oe+1],C)}return mu(N[N.length-1])}(xe,pp(xe,{units:"meters"})/2,{units:"meters"})},Ed=function(xe,f){var m=f.format,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=[];if(f.showTotalDistance){var q=jh(xe),oe=pp(xe,{units:"meters"}),_e=Sr(xe).map(function(Di){return mu(Di)});q.properties=Kt({id:yl("text"),isActive:!1,meters:oe,text:m(oe,_e),type:"totalDistance"},C),N.push(q)}else for(var $e=xe.geometry.coordinates,Ft=0;$e.length-1>Ft;Ft++){var an=mu($e[Ft]),nr=mu($e[Ft+1]),Dr=su(an,nr,{units:"meters"}),bi=Eu(va([an,nr]));bi.properties=Kt({id:yl("text"),isActive:!1,meters:Dr,text:m(Dr,[an,nr]),type:"distance"},C),N.push(bi)}return N},Rg=function(xe,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=f.format,N=pg(xe);return Ou(xe,{properties:Kt({meters:N,text:C(N,xe),type:"area",isActive:!1},m)})},Hs=function(xe){var f,m,C,N,q,oe,_e=xe.getContainer();return(f=(m=(C=(N=(q=(oe=_e==null?void 0:_e.querySelector(".l7-marker-container"))!==null&&oe!==void 0?oe:_e==null?void 0:_e.querySelector(".BMap_mask"))!==null&&q!==void 0?q:xe.getMapCanvasContainer())!==null&&N!==void 0?N:_e==null?void 0:_e.querySelector(".l7-scene"))!==null&&C!==void 0?C:_e==null?void 0:_e.querySelector(".l7-control-container"))!==null&&m!==void 0?m:_e==null?void 0:_e.querySelector(".l7-marker-container2"))!==null&&f!==void 0?f:null},we=function(xe){return xe.lngLat||xe.lnglat},Ee=function(xe){var f=we(xe);return[f.lng,f.lat]},He=function(xe){return[xe.lng,xe.lat]},Jt=function(xe){for(var f=Number.MAX_SAFE_INTEGER,m=0,C=xe.length,N=0;C>N;N++)f>xe[N]&&(f=xe[N],m=N);return m},xr=function(xe,f){var m=[],C=[];return xe.forEach(function(N){Ne(N,f)?C.length&&(m.push(C),C=[]):C.push(N)}),C.length&&m.push(C),m},Hn=function(xe,f,m){var C=[],N=[],q=[];return C=xe==="allDrawData"?ia.instances.map(function(oe){return oe.getData()}).flat():xe==="drawData"?f.getData():xe instanceof Function?xe(m):xe,C.length&&(N=C.map(function(oe){var _e,$e=(_e=oe.properties)!==null&&_e!==void 0?_e:{},Ft=$e.nodes,an=Ft===void 0?[]:Ft,nr=$e.isActive;return nr!==void 0&&nr?an.filter(function(Dr){return!Ne(Dr.geometry.coordinates,m)}):an}).flat().filter(function(oe){return oe}),N.length||(N=Sr(va(C)).map(function(oe){return mu(oe)})),q=C.map(function(oe){var _e,$e,Ft=(_e=oe.properties)===null||_e===void 0?void 0:_e.line;return!(($e=oe.properties)===null||$e===void 0)&&$e.isActive&&Ft?xr(Ft.properties.nodes.map(function(an){return an.geometry.coordinates}),m).filter(function(an){return an.length>1}).map(function(an){return Fl(an)}):[Ft]}).flat().filter(function(oe){return oe}),q.length||C.forEach(function(oe){var _e=eu(oe);if(/linestring/i.test(_e)&&q.push(oe),/polygon/i.test(_e)){var $e,Ft,an=kg(oe);return($e=q).push.apply($e,xa((Ft=an==null?void 0:an.features)!==null&&Ft!==void 0?Ft:[an]))}})),{points:N,lines:q}},In=function(xe,f,m,C){var N=m.pointAdsorbPixel,q=zs(xe,2),oe=C.lngLatToPixel([q[0],q[1]]),_e=oe.x,$e=oe.y,Ft=f.map(function(nr){var Dr=zs(nr.geometry.coordinates,2),bi=C.lngLatToPixel([Dr[0],Dr[1]]),Di=bi.y;return Math.pow(_e-bi.x,2)+Math.pow($e-Di,2)}),an=Jt(Ft);return Math.pow(Ft[an],.5)>N?null:f[an].geometry.coordinates},Jr=function(xe,f,m,C){var N=m.lineAdsorbPixel,q=zs(xe,2),oe=C.lngLatToPixel([q[0],q[1]]),_e=oe.x,$e=oe.y,Ft=f.filter(function(Dr){return Sr(Dr).length>1}).map(function(Dr){return function(bi,Di,Ro){Ro===void 0&&(Ro={});var Lo=mu([1/0,1/0],{dist:1/0}),Wo=0;return ns(bi,function(Bo){for(var ho=ol(Bo),Zs=0;ho.length-1>Zs;Zs++){var Da=mu(ho[Zs]);Da.properties.dist=su(Di,Da,Ro);var hl=mu(ho[Zs+1]);hl.properties.dist=su(Di,hl,Ro);var au=su(Da,hl,Ro),Ru=Math.max(Da.properties.dist,hl.properties.dist),Su=ws(Da,hl),ih=Th(Di,Ru,Su+90,Ro),_u=Th(Di,Ru,Su-90,Ro),zc=Ic(Fl([ih.geometry.coordinates,_u.geometry.coordinates]),Fl([Da.geometry.coordinates,hl.geometry.coordinates])),Fn=null;zc.features.length>0&&((Fn=zc.features[0]).properties.dist=su(Di,Fn,Ro),Fn.properties.location=Wo+su(Da,Fn,Ro)),Lo.properties.dist>Da.properties.dist&&((Lo=Da).properties.index=Zs,Lo.properties.location=Wo),Lo.properties.dist>hl.properties.dist&&((Lo=hl).properties.index=Zs+1,Lo.properties.location=Wo+au),Fn&&Lo.properties.dist>Fn.properties.dist&&((Lo=Fn).properties.index=Zs),Wo+=au}}),Lo}(Dr,xe)});if(!Ft.length)return null;var an=Ft.map(function(Dr){var bi=zs(Dr.geometry.coordinates,2),Di=C.lngLatToPixel([bi[0],bi[1]]),Ro=Di.y;return Math.pow(_e-Di.x,2)+Math.pow($e-Ro,2)}),nr=Jt(an);return Math.pow(an[nr],.5)>N?null:Ft[nr].geometry.coordinates},_o=function(xe,f){var m=zs(f,2),C=m[0],N=m[1];xe.lngLat&&(xe.lngLat={lng:C,lat:N}),xe.lnglat&&(xe.lnglat={lng:C,lat:N})},Xo=function(){function xe(f,m){Ur(this,xe),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Hs(f),this.options=m}return Ao(xe,[{key:"setCursor",value:function(f){f!==this.cursor&&this.container&&(this.container.style.cursor=f?this.options[f]:"",this.cursor=f)}},{key:"destroy",value:function(){this.setCursor(null)}}]),xe}();function Ho(xe,f){f===void 0&&(f={});var m=f.insertAt;if(xe&&typeof document!="undefined"){var C=document.head||document.getElementsByTagName("head")[0],N=document.createElement("style");N.type="text/css",m==="top"&&C.firstChild?C.insertBefore(N,C.firstChild):C.appendChild(N),N.styleSheet?N.styleSheet.cssText=xe:N.appendChild(document.createTextNode(xe))}}Ho('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Ho(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var Is=function(){function xe(f,m){var C=this;Ur(this,xe),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){C.isMouseInner=!0,C.checkTippyShow()},this.onMouseOut=function(){C.isMouseInner=!1,C.checkTippyShow()},this.setContent=k(function(q){var oe;C.content=q!=null?q:"",(oe=C.tippy)===null||oe===void 0||oe.setContent(q!=null?q:""),C.checkTippyShow()},16,{maxWait:16});var N=Hs(f);this.scene=f,N&&(this.tippy=Ts(Hs(f),Kt(Kt({},dt),m)),this.tippy.hide(),f.on(v.SceneEvent.Mousemove,this.onMouseMove),f.on(v.SceneEvent.Mouseout,this.onMouseOut))}return Ao(xe,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){var f,m;this.content&&this.isMouseInner?(f=this.tippy)===null||f===void 0||f.show():(m=this.tippy)===null||m===void 0||m.hide()}},{key:"destroy",value:function(){var f;this.scene.off(v.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(v.SceneEvent.Mouseout,this.onMouseOut),(f=this.tippy)===null||f===void 0||f.destroy()}}]),xe}(),sa=function(){function xe(f){var m=f.config;Ur(this,xe),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=m}return Ao(xe,[{key:"save",value:function(f){if(this.config){var m=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),m>this.historyList.length||this.historyList.pop();var C=wo(f);return this.historyList.unshift(C),C}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var f=this.historyList[++this.historyIndex];return f?wo(f):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var f=this.historyList[--this.historyIndex];return f?wo(f):void 0}}}]),xe}(),ds=function(xe){ps(m,xe);var f=ka(m);function m(C){var N,q=C.data,oe=C.render,_e=C.history,$e=C.scene;return Ur(this,m),(N=f.call(this)).scene=void 0,N.render=void 0,N.data=wo(A),N.timeout=null,N.diffData={},N.history=void 0,N.scene=$e,N.render=oe,_e&&(N.history=new sa({config:_e})),q&&N.setData(q),N}return Ao(m,[{key:"saveHistory",value:function(){var C;return(C=this.history)===null||C===void 0?void 0:C.save(this.data)}},{key:"revertHistory",value:function(){var C,N=(C=this.history)===null||C===void 0?void 0:C.revert();if(N)return this.setData(N),N}},{key:"redoHistory",value:function(){var C,N=(C=this.history)===null||C===void 0?void 0:C.redo();if(N)return this.setData(N),N}},{key:"setData",value:function(C){var N=this;return Object.keys(C).length&&(this.data=Kt(Kt({},this.data),C),this.diffData=Kt(Kt({},this.diffData),C),this.timeout||(this.timeout=requestAnimationFrame(function(){return N.updateDiffData()})),this.emit(v.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(C){return this.data[C]}},{key:"setRenderData",value:function(C,N){var q=typeof N=="function"?N(this.getRenderData(C)):N;return this.setData(rs({},C,q)),this.emit(v.SourceEvent.Change,this.data),q}},{key:"updateDiffData",value:function(){var C=this,N=Object.entries(this.diffData);N.length&&(N.forEach(function(q){var oe,_e=zs(q,2),$e=_e[0],Ft=_e[1];Array.isArray(Ft)&&((oe=C.getRender($e))===null||oe===void 0||oe.setData(Ft))}),this.emit(v.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){C.scene.render()}))}},{key:"getRender",value:function(C){return this.render[C]}},{key:"clear",value:function(){this.setData(jo(Object.keys(this.render).map(function(C){return[C,[]]})))}}]),m}(od),ia=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;Ur(this,m),(q=f.call(this)).scene=void 0,q.source=void 0,q.render=void 0,q.cursor=void 0,q.options=void 0,q.enabled=!1,q.allowCreate=!1,q.sceneRender=void 0,q.mouseLngLat={lng:0,lat:0},q.popup=void 0,q.addCount=0,q.saveMouseLngLat=k(function(Ft){q.mouseLngLat=we(Ft)},100,{maxWait:100}),q.saveHistory=k(function(){q.options.history&&q.source.saveHistory()},100),q.bindThis(),q.scene=C,q.sceneRender=new lr(C),q.options=Bc({},q.getDefaultOptions(N),N),q.render=q.initRender(),q.source=new ds({render:q.render,history:q.options.history||void 0,scene:C}),q.cursor=new Xo(C,q.options.cursor);var oe=q.options,_e=oe.initialData,$e=oe.popup;return _e&&q.setData(_e),$e&&(q.popup=new Is(C,$e instanceof Object?$e:{})),q.saveHistory(),q.bindCommonEvent(),q.emit(v.DrawEvent.Init,nl(q)),q.bindEnableEvent(),m.instances.push(nl(q)),q}return Ao(m,[{key:"addable",get:function(){var C=this.getData(),N=this.options,q=N.multiple,oe=N.maxCount,_e=C.find(function($e){return $e.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(q&&0>=oe||_e)||!(!q&&this.addCount>=1)&&(0>=oe||oe>C.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(C){var N,q,oe=this.options.helper;if(oe){var _e=(N=C in oe?oe[C]:C)!==null&&N!==void 0?N:null;(q=this.popup)===null||q===void 0||q.setContent(_e)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var C=this;this.on(v.DrawEvent.Add,this.emitChangeEvent),this.on(v.DrawEvent.Add,function(){C.addCount++}),this.on(v.DrawEvent.Edit,this.emitChangeEvent),this.on(v.DrawEvent.Remove,this.emitChangeEvent),this.on(v.DrawEvent.Clear,this.emitChangeEvent),this.on(v.DrawEvent.AddNode,this.saveHistory),this.on(v.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var C=this,N=arguments.length>0&&arguments[0]!==void 0&&arguments[0],q=null,oe=function(){var _e,$e,Ft,an=C.getData().find(function(nr){var Dr;return(Dr=nr.properties)===null||Dr===void 0?void 0:Dr.isActive})||null;((_e=q)===null||_e===void 0||($e=_e.properties)===null||$e===void 0?void 0:$e.id)!==(an==null||(Ft=an.properties)===null||Ft===void 0?void 0:Ft.id)&&(q=an,C.emit(v.DrawEvent.Select,an))};this.source.on(v.SourceEvent.Change,oe),N&&oe()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(v.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var C=this,N=this.options.keyboard||{},q=N.revert,oe=N.redo,_e=N.remove;_e&&gc.bind(_e,function(){C.removeActiveFeature()}),this.options.history&&(q&&gc.bind(q,this.revertHistory),oe&&gc.bind(oe,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var C=this.options.keyboard||{},N=C.revert,q=C.redo,oe=C.remove;oe&&gc.unbind(oe),this.options.history&&(N&&gc.unbind(N),q&&gc.unbind(q))}},{key:"emitChangeEvent",value:function(){this.emit(v.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(v.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return jo(Yh(this.render).map(function(C){var N=zs(C,2);return[N[0],N[1].getLayers()]}))}},{key:"getTargetFeature",value:function(C){var N,q,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),_e=null;return C&&(_e=(N=oe.find(function($e){var Ft;return $e.properties.id===(typeof C=="string"?C:(Ft=C.properties)===null||Ft===void 0?void 0:Ft.id)}))!==null&&N!==void 0?N:null,!_e&&C instanceof Object&&(_e=(q=oe.find(function($e){return Ne(C.geometry,$e.geometry)}))!==null&&q!==void 0?q:null)),_e}},{key:"removeActiveFeature",value:function(){var C=this.getData().find(function(N){var q=N.properties;return q.isActive||q.isDraw});return C&&this.removeFeature(C),C}},{key:"removeFeature",value:function(C){var N=this.getData(),q=this.getTargetFeature(C);q&&(this.setData(N.filter(function(oe){return!rd(q,oe)})),this.emit(v.DrawEvent.Remove,C,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(C){return C.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var C,N={},q=function(_e,$e){var Ft=typeof Symbol!="undefined"&&_e[Symbol.iterator]||_e["@@iterator"];if(!Ft){if(Array.isArray(_e)||(Ft=Ea(_e))||$e&&_e&&typeof _e.length=="number"){Ft&&(_e=Ft);var an=0,nr=function(){};return{s:nr,n:function(){return _e.length>an?{done:!1,value:_e[an++]}:{done:!0}},e:function(Ro){throw Ro},f:nr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dr,bi=!0,Di=!1;return{s:function(){Ft=Ft.call(_e)},n:function(){var Ro=Ft.next();return bi=Ro.done,Ro},e:function(Ro){Di=!0,Dr=Ro},f:function(){try{bi||Ft.return==null||Ft.return()}finally{if(Di)throw Dr}}}}(this.getRenderTypes());try{for(q.s();!(C=q.n()).done;){var oe=C.value;N[oe]=new S[oe](this.scene,{style:this.options.style[oe]})}}catch(_e){q.e(_e)}finally{q.f()}return N}},{key:"getCommonOptions",value:function(C){return{initialData:[],autoActive:!0,cursor:wo(P),editable:!0,style:wo(H),multiple:!0,history:wo(tl),keyboard:wo(sn),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(C){this.cursor.setCursor(C)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var C=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){C.emit(v.DrawEvent.Enable,C)},0)}},{key:"disable",value:function(){var C=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){C.emit(v.DrawEvent.Disable,C)},0)}},{key:"clear",value:function(){var C=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(v.DrawEvent.Clear,this),C&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(C){C.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(C){C.hide()})}},{key:"destroy",value:function(){var C,N=this;Object.values(this.render).forEach(function(oe){oe.destroy()}),Object.values(v.RenderEvent).forEach(function(oe){Object.values(N.render).forEach(function(_e){_e.removeAllListeners(oe)}),N.sceneRender.removeAllListeners(oe)}),setTimeout(function(){Object.values(v.DrawEvent).forEach(function(oe){N.removeAllListeners(oe)})},0),(C=this.popup)===null||C===void 0||C.destroy(),this.cursor.destroy(),this.emit(v.DrawEvent.Destroy,this);var q=m.instances.indexOf(this);q>-1&&m.instances.splice(q,1)}}]),m}(od);ia.instances=[];var io=function(xe){var f=xe==null?0:xe.length;return f?xe[f-1]:void 0},Js=function(xe){ps(m,xe);var f=ka(m);function m(){return Ur(this,m),f.apply(this,arguments)}return Ao(m,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(C){return C.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(C){return C.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(C){return C.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(C){return this.source.setRenderData("point",C)}},{key:"bindPointRenderEvent",value:function(){var C,N,q,oe,_e,$e;(C=this.pointRender)===null||C===void 0||C.on(v.RenderEvent.UnClick,this.onPointCreate.bind(this)),(N=this.pointRender)===null||N===void 0||N.on(v.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(q=this.pointRender)===null||q===void 0||q.on(v.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(oe=this.pointRender)===null||oe===void 0||oe.on(v.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(_e=this.pointRender)===null||_e===void 0||_e.on(v.RenderEvent.Dragging,this.onPointDragging.bind(this)),($e=this.pointRender)===null||$e===void 0||$e.on(v.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(C){var N=this.options,q=N.autoActive,oe=N.editable,_e=Fd(C);return this.setPointData(function($e){return Zf({target:_e,data:[].concat(xa($e),[_e]),targetHandler:function(Ft){Ft.properties=Kt(Kt({},Ft.properties),{},{isHover:oe,isActive:q&&oe})},otherHandler:function(Ft){Ft.properties=Kt(Kt({},Ft.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),_e}},{key:"handlePointHover",value:function(C){return this.setCursor("pointHover"),rd(C,this.hoverPoint)||this.setPointData(function(N){return Zf({target:C,data:N,targetHandler:function(q){q.properties.isHover=!0},otherHandler:function(q){q.properties.isHover=!1}})}),C}},{key:"handlePointUnHover",value:function(C){return this.resetCursor(),this.setPointData(function(N){return N.map(function(q){return q.properties.isHover=!1,q})}),C}},{key:"handlePointDragStart",value:function(C){return this.setPointData(function(N){return Zf({target:C,data:N,targetHandler:function(q){q.properties=Kt(Kt({},q.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(q){q.properties=Kt(Kt({},q.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),C}},{key:"handlePointDragging",value:function(C,N){return this.setPointData(function(q){return Zf({target:C,data:q,targetHandler:function(oe){oe.geometry.coordinates=He(N)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),C}},{key:"handlePointDragEnd",value:function(C){return this.setPointData(function(N){return Zf({target:C,data:N,targetHandler:function(q){q.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),C}},{key:"onPointCreate",value:function(C){return this.handleCreatePoint(He(we(C)))}},{key:"onPointMouseMove",value:function(C){return this.handlePointHover(C.feature)}},{key:"onPointMouseOut",value:function(C){return this.handlePointUnHover(C.feature)}},{key:"onPointDragStart",value:function(C){if(this.options.editable)return this.handlePointDragStart(C.feature)}},{key:"onPointDragging",value:function(C){var N=this.dragPoint;if(this.options.editable&&N)return this.handlePointDragging(N,we(C))}},{key:"onPointDragEnd",value:function(C){var N=this.dragPoint;if(this.options.editable&&N)return this.handlePointDragEnd(N)}},{key:"enablePointRenderAction",value:function(){var C,N,q,oe,_e=this.options.editable;this.enabled&&((N=this.pointRender)===null||N===void 0||N.enableCreate()),(C=this.pointRender)===null||C===void 0||C.enableClick(),_e&&((q=this.pointRender)===null||q===void 0||q.enableHover(),(oe=this.pointRender)===null||oe===void 0||oe.enableDrag())}},{key:"disablePointRenderAction",value:function(){var C,N,q,oe;(C=this.pointRender)===null||C===void 0||C.disableCreate(),(N=this.pointRender)===null||N===void 0||N.disableHover(),(q=this.pointRender)===null||q===void 0||q.disableDrag(),(oe=this.pointRender)===null||oe===void 0||oe.disableClick()}}]),m}(ia),Qa=function(xe){ps(m,xe);var f=ka(m);function m(){return Ur(this,m),f.apply(this,arguments)}return Ao(m,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(C){return Kt(Kt({},Xs(Po(m.prototype),"getCommonOptions",this).call(this,C)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var C,N,q;(C=this.midPointRender)===null||C===void 0||C.on(v.RenderEvent.Click,this.onMidPointClick.bind(this)),(N=this.midPointRender)===null||N===void 0||N.on(v.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(q=this.midPointRender)===null||q===void 0||q.on(v.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(C){return this.source.setRenderData("midPoint",C)}},{key:"getMidPointsByLine",value:function(C){var N=C.properties.nodes;if(!this.options.showMidPoint||2>N.length)return[];for(var q=[],oe=0;N.length-1>oe;oe++){var _e,$e,Ft,an,nr=Eu(va([N[oe],N[oe+1]]),{properties:{id:yl("midPoint"),startId:(_e=($e=N[oe].properties)===null||$e===void 0?void 0:$e.id)!==null&&_e!==void 0?_e:"",endId:(Ft=(an=N[oe+1].properties)===null||an===void 0?void 0:an.id)!==null&&Ft!==void 0?Ft:""}});q.push(nr)}return q}},{key:"onMidPointHover",value:function(C){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(C){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var C,N;(C=this.midPointRender)===null||C===void 0||C.enableClick(),(N=this.midPointRender)===null||N===void 0||N.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var C,N;(C=this.midPointRender)===null||C===void 0||C.disableClick(),(N=this.midPointRender)===null||N===void 0||N.disableHover()}}]),m}(Js),La={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Gl={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},tu={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},Tu=Kt(Kt({},tu),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),Tc={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Sl={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},Yu={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},kc=function(xe){ps(m,xe);var f=ka(m);function m(){var C;Ur(this,m);for(var N=arguments.length,q=Array(N),oe=0;N>oe;oe++)q[oe]=arguments[oe];return(C=f.call.apply(f,[this].concat(q))).previousPosition=[0,0],C}return Ao(m,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(C){return C.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(C){return C.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(C){var N=C.properties;return!N.isDraw&&N.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(C){return C.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(C){var N=Kt(Kt({},this.getCommonOptions(C)),{},{showMidPoint:!0,distanceOptions:!1,helper:wo(Gl)});return C.distanceOptions&&(N.distanceOptions=Kt(Kt({},Ds),N.distanceOptions)),C.adsorbOptions&&(N.adsorbOptions=Kt(Kt({},Mt),N.adsorbOptions)),N}},{key:"getAdsorbPosition",value:function(C){var N=this.options.adsorbOptions;if(typeof N=="boolean")return C;var q=this.scene,oe=N.pointAdsorbPixel,_e=N.lineAdsorbPixel,$e=null,Ft=Hn(N.data,this,C),an=Ft.points,nr=Ft.lines;return an.length&&oe>0&&($e=In(C,an,N,q)),!$e&&nr.length&&_e>0&&($e=Jr(C,nr,N,q)),$e}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(v.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var C;Xs(Po(m.prototype),"bindPointRenderEvent",this).call(this),(C=this.pointRender)===null||C===void 0||C.on(v.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var C,N,q,oe,_e,$e;(C=this.lineRender)===null||C===void 0||C.on(v.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(N=this.lineRender)===null||N===void 0||N.on(v.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(q=this.lineRender)===null||q===void 0||q.on(v.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(oe=this.lineRender)===null||oe===void 0||oe.on(v.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(_e=this.lineRender)===null||_e===void 0||_e.on(v.RenderEvent.Dragging,this.onLineDragging.bind(this)),($e=this.lineRender)===null||$e===void 0||$e.on(v.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(C,N){var q=N.showTotalDistance,oe=N.format;return N.showDashDistance?C.map(function(_e){return Ed(_e,{showTotalDistance:q,format:oe},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(C,N){var q=N.showTotalDistance,oe=N.format,_e=N.showWhen,$e=[];if(_e.includes("active")){var Ft=C.filter(function(nr){return nr.properties.isActive&&nr.properties.nodes.length>1});$e.push.apply($e,xa(Ft.map(function(nr){return Ed(nr,{showTotalDistance:q,format:oe},{isActive:!0})}).flat()))}if(_e.includes("normal")){var an=C.filter(function(nr){return!nr.properties.isActive&&nr.properties.nodes.length>1});$e.push.apply($e,xa(an.map(function(nr){return Ed(nr,{showTotalDistance:q,format:oe})}).flat()))}return $e}},{key:"getDistanceTexts",value:function(){var C=this.options.distanceOptions;if(!C)return[];var N=[],q=C.showWhen,oe=C.showDashDistance,_e=C.format,$e=C.showTotalDistance;return N.push.apply(N,xa(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:_e,showDashDistance:oe})).concat(xa(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:$e,format:_e,showWhen:q})))),N}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(C){var N=Uo([C],{isActive:!0,isDraw:!0});return this.setLineData(function(q){return Zf({target:N,data:[].concat(xa(q),[N]),otherHandler:function(oe){oe.properties.isActive=!1}})}),this.setPointData([C]),this.setTextData(this.getAllTexts()),N}},{key:"syncLineNodes",value:function(C,N){return C.properties.nodes=N,C.geometry.coordinates=Sr(va(N)),this.setLineData(function(q){return q.map(function(oe){return rd(oe,C)?C:oe})}),rd(this.editLine,C)&&this.setMidPointData(this.getMidPointsByLine(C)),this.setPointData(C.properties.nodes),this.setTextData(this.getAllTexts()),C}},{key:"setActiveLine",value:function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(q){return Zf({target:C,data:q,targetHandler:function(oe){oe.properties=Kt(Kt({},oe.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},N)},otherHandler:function(oe){oe.properties=Kt(Kt({},oe.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(C.properties.nodes.map(function(q){return q.properties=Kt(Kt({},q.properties),{},{isHover:!1,isActive:!1}),q})),this.setMidPointData(this.getMidPointsByLine(C)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),C}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(C){return C.properties=Kt(Kt({},C.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),C}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(C){return this.clearActiveLine(),C}},{key:"handleLineHover",value:function(C){if(!this.drawLine)return this.setCursor("lineHover"),rd(C,this.hoverLine)||this.setLineData(function(N){return Zf({target:C,data:N,targetHandler:function(q){q.properties.isHover=!0},otherHandler:function(q){q.properties.isHover=!1}})}),C}},{key:"handleLineUnHover",value:function(C){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(N){return N.map(function(q){return q.properties.isHover=!1,q})}),C}},{key:"handleLineDragStart",value:function(C){return this.setActiveLine(C,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),C}},{key:"handleLineDragging",value:function(C,N){var q=N.lng,oe=N.lat,_e=C.properties.nodes,$e=zs(this.previousPosition,2),Ft=$e[0],an=$e[1];return _e.forEach(function(nr){var Dr=nr.geometry.coordinates;nr.geometry.coordinates=[Dr[0]+q-Ft,Dr[1]+oe-an]}),this.syncLineNodes(C,_e),this.setActiveLine(C,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[q,oe],C}},{key:"handleLineDragEnd",value:function(C){return C.properties.isDrag=!1,this.setLineData(function(N){return N}),this.scene.setMapStatus({dragEnable:!0}),C}},{key:"resetAdsorbLngLat",value:function(C){if(this.options.adsorbOptions){var N=this.getAdsorbPosition(He(we(C)));return N&&_o(C,N),N}}},{key:"onPointCreate",value:function(C){if(!this.editLine){this.resetAdsorbLngLat(C);var N=Xs(Po(m.prototype),"onPointCreate",this).call(this,C),q=this.drawLine;if(N)return q?(this.syncLineNodes(q,[].concat(xa(q.properties.nodes),[N])),this.setDashLineData([])):this.handleCreateLine(N),N}}},{key:"onPointDragStart",value:function(C){if(this.editLine)return this.setHelper("pointDrag"),Xs(Po(m.prototype),"onPointDragStart",this).call(this,C)}},{key:"onPointDragging",value:function(C){var N=Xs(Po(m.prototype),"onPointDragging",this).call(this,C);if(N){var q=this.resetAdsorbLngLat(C);q&&(N.geometry.coordinates=wo(q))}var oe=this.editLine;return oe&&N&&(this.syncLineNodes(oe,oe.properties.nodes.map(function(_e){return rd(N,_e)?N:_e})),this.setActiveLine(oe)),N}},{key:"onPointDragEnd",value:function(C){if(this.editLine){var N=Xs(Po(m.prototype),"onPointDragEnd",this).call(this,C);return this.setPointData(function(q){return q.map(function(oe){return oe.properties.isActive=!1,oe})}),this.setHelper("pointHover"),N}}},{key:"onLineUnClick",value:function(C){var N=this.editLine;if(N)return this.handleLineUnClick(N)}},{key:"onLineMouseMove",value:function(C){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(C.feature)}},{key:"onLineMouseOut",value:function(C){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(C.feature)}},{key:"onLineDragStart",value:function(C){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ee(C),this.setHelper("lineDrag"),this.handleLineDragStart(C.feature)}},{key:"onLineDragging",value:function(C){var N=this.dragLine;if(N)return this.handleLineDragging(N,we(C))}},{key:"onLineDragEnd",value:function(C){var N=this.dragLine;if(N)return this.setHelper("lineHover"),this.handleLineDragEnd(N)}},{key:"onPointMouseMove",value:function(C){var N=Xs(Po(m.prototype),"onPointMouseMove",this).call(this,C);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),N}},{key:"onPointMouseOut",value:function(C){var N=Xs(Po(m.prototype),"onPointMouseOut",this).call(this,C);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),N}},{key:"onMidPointHover",value:function(C){Xs(Po(m.prototype),"onMidPointHover",this).call(this,C),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(C){Xs(Po(m.prototype),"onMidPointUnHover",this).call(this,C),this.setHelper(null)}},{key:"onPointClick",value:function(C){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(C){return this.source.setRenderData("line",C)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(C){return this.source.setRenderData("text",C)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(C){return this.source.setRenderData("dashLine",C)}},{key:"onMidPointClick",value:function(C){var N=this.editLine,q=C.feature;if(N&&q&&!this.dragPoint){var oe=N.properties.nodes,_e=q.properties,$e=_e.startId,Ft=_e.endId,an=oe.findIndex(function(bi){return bi.properties.id===$e}),nr=oe.findIndex(function(bi){return bi.properties.id===Ft});if(an>-1&&nr>-1){var Dr=Fd(q.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),oe.splice(nr,0,Dr),N.geometry.coordinates=Sr(va(oe)),this.syncLineNodes(N,oe),this.setActiveLine(N),Dr}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var C,N,q,oe=this.options.editable;(C=this.lineRender)===null||C===void 0||C.enableUnClick(),oe&&((N=this.lineRender)===null||N===void 0||N.enableHover(),(q=this.lineRender)===null||q===void 0||q.enableDrag())}},{key:"disableLineRenderAction",value:function(){var C,N,q;(C=this.lineRender)===null||C===void 0||C.disableUnClick(),(N=this.lineRender)===null||N===void 0||N.disableHover(),(q=this.lineRender)===null||q===void 0||q.disableDrag()}}]),m}(Qa),Lc=function(xe){ps(m,xe);var f=ka(m);function m(){return Ur(this,m),f.apply(this,arguments)}return Ao(m,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(C){return C.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(C){return C.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(C){var N=C.properties;return!N.isDraw&&N.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(C){return C.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var C,N;return(C=(N=this.render.polygon)===null||N===void 0?void 0:N.getLayers())!==null&&C!==void 0?C:[]}},{key:"getDefaultOptions",value:function(C){var N=Kt(Kt({},Xs(Po(m.prototype),"getDefaultOptions",this).call(this,C)),{},{areaOptions:!1,helper:wo(tu)});return C.areaOptions&&(N.areaOptions=Kt(Kt({},el),C.areaOptions)),N}},{key:"getAreaTexts",value:function(C){var N=this.options.areaOptions;if(!N)return[];var q=N.format,oe=N.showWhen,_e=[],$e=C.filter(function(Ft){return Ft.geometry.coordinates[0].length>=4});return oe.includes("active")&&$e.filter(function(Ft){return Ft.properties.isActive}).forEach(function(Ft){_e.push(Rg(Ft,{format:q},{isActive:!0}))}),oe.includes("normal")&&$e.filter(function(Ft){return!Ft.properties.isActive}).forEach(function(Ft){_e.push(Rg(Ft,{format:q},{isActive:!1}))}),_e}},{key:"getAllTexts",value:function(){return[].concat(xa(Xs(Po(m.prototype),"getAllTexts",this).call(this)),xa(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(C){return this.source.setRenderData("polygon",C)}},{key:"handleCreatePolygon",value:function(C,N){var q=_c(C,{nodes:C,line:N,isActive:!0,isDraw:!0});return this.setPolygonData(function(oe){return Zf({target:q,data:[].concat(xa(oe),[q]),otherHandler:function(_e){_e.properties.isActive=!1}})}),q}},{key:"handlePolygonUnClick",value:function(C){return this.clearActivePolygon(),C}},{key:"handlePolygonHover",value:function(C){return this.setCursor("polygonHover"),rd(C,this.hoverPolygon)||this.setPolygonData(function(N){return Zf({target:C,data:N,targetHandler:function(q){q.properties.isHover=!0},otherHandler:function(q){q.properties.isHover=!1}})}),C}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(C){return C.map(function(N){return N.properties.isHover=!1,N})})}},{key:"handlePolygonDragStart",value:function(C){return this.setActivePolygon(C,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),C}},{key:"bindPolygonRenderEvent",value:function(){var C,N,q,oe;(C=this.polygonRender)===null||C===void 0||C.on(v.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(N=this.polygonRender)===null||N===void 0||N.on(v.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(q=this.polygonRender)===null||q===void 0||q.on(v.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(oe=this.polygonRender)===null||oe===void 0||oe.on(v.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(C,N){var q=Sr(va([].concat(xa(N),[uc(N)]))),oe=C.properties,_e=oe.line;if(C.properties.nodes=N,C.geometry.coordinates=[yp(Fl(q))?q:q.reverse()],this.setPolygonData(function(Dr){return Dr.map(function(bi){return rd(bi,C)?C:bi})}),!rd(this.drawPolygon,C)){var $e=_e.properties.nodes,Ft=xa(N),an=uc(Ft);Ft.push($e.length===N.length?Fd(an.geometry.coordinates):io($e));var nr=io(Ft);Ne(an.geometry.coordinates,nr.geometry.coordinates)||(nr.geometry.coordinates=wo(an.geometry.coordinates)),this.syncLineNodes(_e,Ft)}return C}},{key:"setActivePolygon",value:function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(C.properties.line,N),this.setPolygonData(function(q){return Zf({target:C,data:q,targetHandler:function(oe){oe.properties=Kt(Kt({},oe.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},N)},otherHandler:function(oe){oe.properties=Kt(Kt({},oe.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),C}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(C){return C.map(function(N){return N.properties=Kt(Kt({},N.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),N})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(C){var N=Xs(Po(m.prototype),"onLineDragStart",this).call(this,C),q=this.getPolygonData().find(function(oe){return rd(oe.properties.line,N)});return q&&(this.setActivePolygon(q,{isDrag:!0}),this.emit(v.DrawEvent.DragStart,q,this.getPolygonData())),N}},{key:"onLineUnClick",value:function(C){return this.editLine}},{key:"onLineDragEnd",value:function(C){var N=Xs(Po(m.prototype),"onLineDragEnd",this).call(this,C),q=this.dragPolygon;return N&&q&&(q.properties.isDrag=!1,this.emit(v.DrawEvent.DragEnd,q,this.getPolygonData()),this.emit(v.DrawEvent.Edit,q,this.getPolygonData())),N}},{key:"onPolygonUnClick",value:function(C){var N=this.editPolygon;if(N)return this.handlePolygonUnClick(N)}},{key:"onPolygonHover",value:function(C){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(C.feature)}},{key:"onPolygonUnHover",value:function(C){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(C){if(this.options.editable&&!this.drawPolygon){var N=C.feature;return this.previousPosition=Ee(C),this.setHelper("polygonDrag"),this.emit(v.DrawEvent.DragStart,N,this.getPolygonData()),this.handlePolygonDragStart(N)}}},{key:"onMidPointClick",value:function(C){var N=this.editPolygon,q=Xs(Po(m.prototype),"onMidPointClick",this).call(this,C);if(q&&N){var oe=N.properties.line.properties.nodes;this.syncPolygonNodes(N,oe.slice(0,oe.length-1)),this.setActivePolygon(N)}return q}},{key:"onPointDragEnd",value:function(C){var N=this.editPolygon,q=Xs(Po(m.prototype),"onPointDragEnd",this).call(this,C);return q&&N&&this.emit(v.DrawEvent.Edit,N,this.getPolygonData()),q}},{key:"enablePolygonRenderAction",value:function(){var C,N,q,oe=this.options.editable;(C=this.polygonRender)===null||C===void 0||C.enableUnClick(),oe&&((N=this.polygonRender)===null||N===void 0||N.enableHover(),(q=this.polygonRender)===null||q===void 0||q.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var C,N,q;(C=this.polygonRender)===null||C===void 0||C.disableUnClick(),(N=this.polygonRender)===null||N===void 0||N.disableHover(),(q=this.polygonRender)===null||q===void 0||q.disableDrag()}},{key:"bindEnableEvent",value:function(){Xs(Po(m.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Xs(Po(m.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Xs(Po(m.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(C){var N=this.getTargetFeature(C);N?this.setActivePolygon(N):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var C=this.getPolygonData();this.drawPolygon&&(C=C.filter(function(N){return!N.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(N){return N.filter(function(q){return!q.properties.isDraw})}),this.setTextData(function(N){return N.filter(function(q){return!q.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(C.map(function(N){return N.properties=Kt(Kt({},N.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),N}))}}]),m}(kc),Nh=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).onSceneDragStart=q.onSceneDragStart.bind(nl(q)),q.onSceneDragEnd=q.onSceneDragEnd.bind(nl(q)),q}return Ao(m,[{key:"drawLine",get:function(){var C;return(C=this.drawPolygon)===null||C===void 0?void 0:C.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(C){var N=Kt(Kt({},Xs(Po(m.prototype),"getDefaultOptions",this).call(this,C)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:wo(Tu)});return C.trigger==="drag"&&(N.helper=Kt(Kt({},N.helper),Tc)),N}},{key:"getMidPointsByLine",value:function(C){return[]}},{key:"handleCreatePolygon",value:function(C,N){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=N.properties.nodes;return _c(oe.slice(0,oe.length-1),Kt({nodes:C,line:N},q))}},{key:"handleFirstNodeCreate",value:function(C){var N=Fd(C.geometry.coordinates),q=this.handleCreatePolygonLine(C,N,{isDraw:!0,isActive:!0}),oe=this.handleCreatePolygon([C,N],q,{isDraw:!0,isActive:!0});return this.setPolygonData(function(_e){return Zf({target:oe,data:[].concat(xa(_e),[oe]),targetHandler:function($e){$e.properties=Kt(Kt({},$e.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(v.DrawEvent.AddNode,C,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),C}},{key:"handleLastNodeCreate",value:function(C){var N=this.options,q=N.autoActive,oe=N.editable,_e=this.drawPolygon;return _e&&(this.setLineData(function($e){return[].concat(xa($e),[_e.properties.line])}),this.setActivePolygon(_e),q&&oe||this.handlePolygonUnClick(_e),this.emit(v.DrawEvent.Add,_e,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,_e.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(oe?q?"pointHover":"polygonHover":this.addable?"draw":null)),C}},{key:"onPointCreate",value:function(C){var N=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var q=this.drawPolygon,oe=Ee(C),_e=this.handleCreatePoint(oe);return q?requestAnimationFrame(function(){N.handleLastNodeCreate(_e)}):this.handleFirstNodeCreate(_e),_e}}},{key:"setActivePolygon",value:function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(C.properties.line,N),this.setPolygonData(function(oe){return Zf({target:C,data:oe,targetHandler:function(_e){_e.properties=Kt(Kt({},_e.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},N)},otherHandler:function(_e){_e.properties=Kt(Kt({},_e.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(C.properties.nodes),this.setDashLineData([]);var q=this.getAllTexts();return this.setTextData(q),C}},{key:"onPointDragging",value:function(C){var N=this.dragPoint;if(N){var q=this.handlePointDragging(N,we(C)),oe=this.editPolygon;return q&&oe&&(this.syncPolygonNodes(oe,oe.properties.nodes.map(function(_e){return rd(_e,q)?q:_e})),this.setActivePolygon(oe)),q}}},{key:"onSceneDragStart",value:function(C){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ee(C))))}},{key:"onSceneDragEnd",value:function(C){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ee(C))))}},{key:"onSceneMouseMove",value:function(C){var N=this.drawPolygon;if(N){var q=N.properties.nodes,oe=uc(q),_e=io(q);_e.geometry.coordinates=Ee(C),this.syncPolygonNodes(N,[oe,_e]),this.setDashLineData([N.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(v.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(v.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Xs(Po(m.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Xs(Po(m.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Xs(Po(m.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),m}(Lc),xs=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).bindPointRenderEvent(),q.bindSceneEvent(),q.bindMidPointRenderEvent(),q.bindLineRenderEvent(),q.bindPolygonRenderEvent(),q}return Ao(m,[{key:"getDefaultOptions",value:function(C){var N=Kt(Kt({},Xs(Po(m.prototype),"getDefaultOptions",this).call(this,C)),{},{showMidPoint:!1,circleSteps:60});return N.distanceOptions&&(N.distanceOptions.showTotalDistance=!0,N.distanceOptions.showOnRadius===void 0&&(N.distanceOptions.showOnRadius=!0)),N.helper&&(N.helper=Kt(Kt({},N.helper),Yu)),N}},{key:"getDistanceTexts",value:function(){var C=this.options.distanceOptions;if(!C)return[];var N=[],q=C.showWhen,oe=C.showDashDistance,_e=C.format,$e=C.showTotalDistance;return N.push.apply(N,xa(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:_e,showDashDistance:oe})).concat(xa(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:$e,format:_e,showWhen:q})))),N}},{key:"setData",value:function(C){var N=this,q=C.map(function(oe){var _e,$e,Ft;oe.properties=Kt(Kt({},kh()),oe.properties);var an=(_e=oe.properties)===null||_e===void 0?void 0:_e.nodes;if((($e=an)===null||$e===void 0?void 0:$e.length)!==2){var nr=zs(Eu(oe).geometry.coordinates,2),Dr=nr[0],bi=nr[1],Di=Ss(oe),Ro=Di[2],Lo=(Di[1]+Di[3])/2;an=[Fd([Dr,bi]),Fd([Ro,Lo])],oe.properties.nodes=an}var Wo=an[0],Bo=an[1],ho=!!(!((Ft=oe.properties)===null||Ft===void 0)&&Ft.isActive),Zs=oe.properties.line;return Zs||(Zs=N.handleCreatePolygonLine(Wo,Bo,{isActive:ho}),oe.properties.line=Zs),N.handleCreatePolygon([Wo,Bo],Zs,Kt(Kt({},oe.properties),{},{isActive:ho}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:q,line:q.map(function(oe){return oe.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(C,N){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=this.getBoundaryPositions(C,N).map(function(_e){return Fd(_e)});return Uo(oe,q)}},{key:"syncPolygonNodes",value:function(C,N){var q=C.properties.line,oe=this.getBoundaryPositions(N[0],N[1]);return C.properties.nodes=N,C.geometry.coordinates=[oe],this.setPolygonData(function(_e){return _e.map(function($e){return rd($e,C)?C:$e})}),this.setPointData(C.properties.isDraw?[N[0]]:N),q.properties.nodes.forEach(function(_e,$e){_e.geometry.coordinates=oe[$e]}),q.geometry.coordinates=oe,C}},{key:"onLineDragging",value:function(C){var N=this.dragPolygon,q=zs(this.previousPosition,2),oe=q[0],_e=q[1],$e=Xs(Po(m.prototype),"onLineDragging",this).call(this,C);if(N){var Ft=zs(Ee(C),2),an=Ft[0],nr=Ft[1];N.properties.nodes.forEach(function(Dr){var bi=zs(Dr.geometry.coordinates,2);Dr.geometry.coordinates=[bi[0]+an-oe,bi[1]+nr-_e]}),this.syncPolygonNodes(N,N.properties.nodes),this.setActivePolygon(N,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,N,this.getPolygonData())}return $e}},{key:"getBoundaryPositions",value:function(C,N){for(var q=this.options.circleSteps,oe=su(C,N,{units:"meters"}),_e=[],$e=0;q>$e;$e++)_e.push(Th(C,oe,-360*$e/q,{units:"meters"}).geometry.coordinates);return _e.push(_e[0]),_e}}]),m}(Nh),mf=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).drawLineFinish=function(){var oe,_e=q.drawLine,$e=(oe=_e==null?void 0:_e.properties.nodes)!==null&&oe!==void 0?oe:[];if(_e&&($e==null?void 0:$e.length)>1){q.setActiveLine(_e);var Ft=q.options,an=Ft.autoActive,nr=Ft.editable;an&&nr||q.handleLineUnClick(_e),q.setHelper(nr&&an?"pointHover":q.addable?"draw":null),q.emit(v.DrawEvent.Add,_e,q.getLineData())}},q.sceneRender.on(v.RenderEvent.DblClick,q.drawLineFinish),q.bindPointRenderEvent(),q.bindSceneEvent(),q.bindMidPointRenderEvent(),q.bindLineRenderEvent(),q}return Ao(m,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var C,N;return(C=(N=this.render.line)===null||N===void 0?void 0:N.getLayers())!==null&&C!==void 0?C:[]}},{key:"setData",value:function(C){var N=C.map(function(q){var oe,_e;return q.properties=Kt(Kt({},fd()),(oe=q.properties)!==null&&oe!==void 0?oe:{}),!((_e=q.properties.nodes)===null||_e===void 0)&&_e.length||(q.properties.nodes=Sr(q).map(function($e){return Fd($e)})),q});this.source.setData({point:[],midPoint:[],dashLine:[],line:N}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var C;Xs(Po(m.prototype),"bindPointRenderEvent",this).call(this),(C=this.pointRender)===null||C===void 0||C.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(C){var N,q=this,oe=this.drawLine,_e=(N=oe==null?void 0:oe.properties.nodes)!==null&&N!==void 0?N:[],$e=C.feature;if(rd($e,io(_e)))requestAnimationFrame(function(){q.drawLineFinish()});else{var Ft=zs($e.geometry.coordinates,2);C.lngLat={lng:Ft[0],lat:Ft[1]},this.onPointCreate(C)}}},{key:"removeNode",value:function(C,N){var q,oe=this.getTargetFeature(N),_e=this.getTargetFeature(C,(q=oe==null?void 0:oe.properties.nodes)!==null&&q!==void 0?q:[]);if(oe&&_e){var $e,Ft=($e=oe==null?void 0:oe.properties.nodes)!==null&&$e!==void 0?$e:[];if(3>Ft.length)return;this.syncLineNodes(oe,Ft.filter(function(an){return!rd(_e,an)})),this.emit(v.DrawEvent.RemoveNode,_e,oe,this.getLineData()),this.emit(v.DrawEvent.Edit,oe,this.getLineData())}}},{key:"onPointContextMenu",value:function(C){var N,q=this.editLine,oe=C.feature,_e=(N=q==null?void 0:q.properties.nodes)!==null&&N!==void 0?N:[];if(q&&_e.length>=3)return this.removeNode(oe,q),this.scene.setMapStatus({dragEnable:!0}),oe}},{key:"onPointCreate",value:function(C){if(this.addable){var N=Xs(Po(m.prototype),"onPointCreate",this).call(this,C);return N&&(this.setHelper("drawFinish"),this.emit(v.DrawEvent.AddNode,N,this.drawLine,this.getLineData())),N}}},{key:"onPointDragEnd",value:function(C){var N=this.editLine,q=Xs(Po(m.prototype),"onPointDragEnd",this).call(this,C);return N&&q&&this.emit(v.DrawEvent.Edit,N,this.getLineData()),q}},{key:"onLineDragStart",value:function(C){var N=Xs(Po(m.prototype),"onLineDragStart",this).call(this,C);return N&&this.emit(v.DrawEvent.DragStart,N,this.getLineData()),N}},{key:"onLineDragging",value:function(C){var N=Xs(Po(m.prototype),"onLineDragging",this).call(this,C);return N&&this.emit(v.DrawEvent.Dragging,N,this.getLineData()),N}},{key:"onLineDragEnd",value:function(C){var N=Xs(Po(m.prototype),"onLineDragEnd",this).call(this,C);return N&&(this.emit(v.DrawEvent.DragEnd,N,this.getLineData()),this.emit(v.DrawEvent.Edit,N,this.getLineData())),N}},{key:"onMidPointClick",value:function(C){var N=this.editLine,q=Xs(Po(m.prototype),"onMidPointClick",this).call(this,C);return N&&q&&(this.emit(v.DrawEvent.Edit,N,this.getLineData()),this.emit(v.DrawEvent.AddNode,q,N,this.getLineData())),q}},{key:"onSceneMouseMove",value:function(C){var N=this.drawLine;if(N){var q,oe=io(N.properties.nodes),_e=Ee(C);this.options.adsorbOptions&&(_e=(q=this.getAdsorbPosition(_e))!==null&&q!==void 0?q:_e),this.setDashLineData([rl([_e,oe.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(C){var N=this.getTargetFeature(C);N?this.setActiveLine(N):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var C=this.getLineData();this.drawLine&&(C=C.filter(function(N){return!N.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(N){return N.filter(function(q){return!q.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(C.map(function(N){return N.properties=Kt(Kt({},N.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),N}))}},{key:"enablePointRenderAction",value:function(){var C;Xs(Po(m.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((C=this.pointRender)===null||C===void 0||C.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var C;Xs(Po(m.prototype),"disablePointRenderAction",this).call(this),(C=this.pointRender)===null||C===void 0||C.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Xs(Po(m.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Xs(Po(m.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Xs(Po(m.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),m}(kc),$d=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).bindPointRenderEvent(),q}return Ao(m,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(C){var N=Kt(Kt({},this.getCommonOptions(C)),{},{helper:wo(La),initialData:C.initialData});return N.style.point=$n,N}},{key:"bindEnableEvent",value:function(){Xs(Po(m.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Xs(Po(m.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var C,N;return(C=(N=this.render.point)===null||N===void 0?void 0:N.getLayers())!==null&&C!==void 0?C:[]}},{key:"setData",value:function(C){this.setPointData(C.map(function(N){var q;return N.properties=Kt(Kt({},$c()),(q=N.properties)!==null&&q!==void 0?q:{}),N}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(C){if(this.addable){var N=Xs(Po(m.prototype),"onPointCreate",this).call(this,C);if(N)return this.options.editable&&this.setHelper("pointHover"),this.emit(v.DrawEvent.Add,N,this.getData()),N}else this.setPointData(function(q){return q.map(function(oe){return oe.properties=Kt(Kt({},oe.properties),{},{isHover:!1,isActive:!1}),oe})})}},{key:"onPointMouseMove",value:function(C){var N=Xs(Po(m.prototype),"onPointMouseMove",this).call(this,C);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),N}},{key:"onPointMouseOut",value:function(C){var N=Xs(Po(m.prototype),"onPointMouseOut",this).call(this,C);return this.setHelper(this.addable?"draw":null),N}},{key:"onPointDragStart",value:function(C){var N=Xs(Po(m.prototype),"onPointDragStart",this).call(this,C);return this.setHelper("pointDrag"),this.emit(v.DrawEvent.DragStart,N,this.getData()),N}},{key:"onPointDragging",value:function(C){var N=Xs(Po(m.prototype),"onPointDragging",this).call(this,C);return N&&this.options.editable&&this.emit(v.DrawEvent.Dragging,N,this.getData()),N}},{key:"onPointDragEnd",value:function(C){var N=Xs(Po(m.prototype),"onPointDragEnd",this).call(this,C);return N&&this.options.editable&&(this.setHelper("pointHover"),this.emit(v.DrawEvent.DragEnd,N,this.getData()),this.emit(v.DrawEvent.Edit,N,this.getData())),N}},{key:"bindThis",value:function(){Xs(Po(m.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(C){}},{key:"setActiveFeature",value:function(C){var N=this.getTargetFeature(C);this.setPointData(function(q){return q.map(function(oe){return oe.properties.isActive=rd(N,oe),oe})})}},{key:"resetFeatures",value:function(){this.setPointData(function(C){return C.map(function(N){return N.properties=Kt(Kt({},N.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),N})})}}]),m}(Js),Vf=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).drawPolygonFinish=function(){var oe,_e=q.drawPolygon,$e=(oe=_e==null?void 0:_e.properties.nodes)!==null&&oe!==void 0?oe:[];if(_e&&$e.length>=3){_e.properties.isDraw=!1,q.syncPolygonNodes(_e,$e),q.setActivePolygon(_e);var Ft=q.options,an=Ft.autoActive,nr=Ft.editable;an&&nr||q.handlePolygonUnClick(_e),q.setHelper(nr?an?"pointHover":"polygonHover":q.addable?"draw":null),q.emit(v.DrawEvent.Add,_e,q.getPolygonData())}},q.sceneRender.on(v.RenderEvent.DblClick,q.drawPolygonFinish),q.bindPointRenderEvent(),q.bindSceneEvent(),q.bindMidPointRenderEvent(),q.bindLineRenderEvent(),q.bindPolygonRenderEvent(),q}return Ao(m,[{key:"getDefaultOptions",value:function(C){return Kt(Kt({},Xs(Po(m.prototype),"getDefaultOptions",this).call(this,C)),{},{liveUpdate:!1})}},{key:"setData",value:function(C){var N=C.map(function(q){var oe,_e;if(q.properties=Kt(Kt({},kh()),(oe=q.properties)!==null&&oe!==void 0?oe:{}),!(!((_e=q.properties.nodes)===null||_e===void 0)&&_e.length)){var $e=Sr(q);$e=$e.slice(0,$e.length-1),q.properties.nodes=$e.map(function(an){return Fd(an)})}if(!q.properties.line){var Ft=q.properties.nodes;q.properties.line=Uo([].concat(xa(Ft),[Fd(uc(Ft).geometry.coordinates)]))}return q});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:N,line:N.map(function(q){return q.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(C){if(this.addable&&!this.dragPoint){var N=Xs(Po(m.prototype),"onPointCreate",this).call(this,C),q=this.drawPolygon,oe=this.drawLine;return N&&(q?(this.syncPolygonNodes(q,[].concat(xa(q.properties.nodes),[N])),this.setDashLineData([rl([Ee(C),q.properties.nodes[0].geometry.coordinates])]),q.properties.nodes.length>1&&this.setHelper("drawFinish")):oe&&(this.handleCreatePolygon([N],oe),this.setHelper("drawContinue")),this.emit(v.DrawEvent.AddNode,N,q,this.getPolygonData())),N}}},{key:"onPointClick",value:function(C){var N=this,q=this.drawPolygon,oe=C.feature;if(q){var _e=q.properties.nodes;if(_e.length<3||!rd(uc(_e),oe)&&!rd(io(_e),oe)){var $e=zs(oe.geometry.coordinates,2);C.lngLat={lng:$e[0],lat:$e[1]},this.onPointCreate(C)}else requestAnimationFrame(function(){N.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(C){var N=this.dragPoint,q=this.editPolygon;if(N&&q){var oe=q.properties.line;oe.properties.nodes=oe.properties.nodes.map(function(bi){return rd(bi,N)?N:bi});var _e=oe.properties.nodes,$e=_e.slice(0,_e.length-1),Ft=uc(_e),an=io(_e),nr=rd(Ft,N)||rd(an,N);if(nr&&(Ft.geometry.coordinates=an.geometry.coordinates=Ee(C)),this.options.adsorbOptions&&nr){var Dr=this.resetAdsorbLngLat(C);Dr&&(Ft.geometry.coordinates=an.geometry.coordinates=Dr)}Xs(Po(m.prototype),"onPointDragging",this).call(this,C),this.syncPolygonNodes(q,$e),this.setActivePolygon(q)}return N}},{key:"onLineDragging",value:function(C){var N=this.dragPolygon,q=Xs(Po(m.prototype),"onLineDragging",this).call(this,C);if(q&&N){var oe=q.properties.nodes;this.syncPolygonNodes(N,oe.slice(0,oe.length-1)),this.emit(v.DrawEvent.Dragging,N,this.getPolygonData())}return q}},{key:"onMidPointClick",value:function(C){var N=Xs(Po(m.prototype),"onMidPointClick",this).call(this,C),q=this.editPolygon;return N&&q&&(this.emit(v.DrawEvent.Edit,q,this.getPolygonData()),this.emit(v.DrawEvent.AddNode,N,q,this.getPolygonData())),N}},{key:"onSceneMouseMove",value:function(C){var N,q=this.drawPolygon,oe=(N=q==null?void 0:q.properties.nodes)!==null&&N!==void 0?N:[];if(q&&oe.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(C);var _e=Ee(C),$e=[];if($e.push(rl([_e,uc(oe).geometry.coordinates])),oe.length>1&&$e.push(rl([_e,io(oe).geometry.coordinates])),this.options.liveUpdate&&oe.length>=2){var Ft=Sr(va(oe));q.geometry.coordinates=[[].concat(xa(Ft),[_e,Ft[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData($e),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(C,N){var q,oe=this.getTargetFeature(N),_e=this.getTargetFeature(C,(q=oe==null?void 0:oe.properties.nodes)!==null&&q!==void 0?q:[]);if(oe&&_e){var $e,Ft=($e=oe==null?void 0:oe.properties.nodes)!==null&&$e!==void 0?$e:[];if(4>Ft.length)return;this.syncPolygonNodes(oe,Ft.filter(function(an){return!rd(_e,an)})),this.emit(v.DrawEvent.RemoveNode,_e,oe,this.getLineData()),this.emit(v.DrawEvent.Edit,oe,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(C){var N,q=this.editPolygon,oe=C.feature,_e=(N=q==null?void 0:q.properties.nodes)!==null&&N!==void 0?N:[];if(q&&_e.length>=4)return _e.find(function($e){return rd($e,oe)})||(oe=_e[0]),this.removeNode(oe,q),oe}},{key:"bindPointRenderEvent",value:function(){var C;Xs(Po(m.prototype),"bindPointRenderEvent",this).call(this),(C=this.pointRender)===null||C===void 0||C.on(v.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var C;Xs(Po(m.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((C=this.pointRender)===null||C===void 0||C.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var C;Xs(Po(m.prototype),"disablePointRenderAction",this).call(this),(C=this.pointRender)===null||C===void 0||C.disableContextMenu()}}]),m}(Lc),Cl=function(xe){ps(m,xe);var f=ka(m);function m(C,N){var q;return Ur(this,m),(q=f.call(this,C,N)).bindPointRenderEvent(),q.bindSceneEvent(),q.bindMidPointRenderEvent(),q.bindLineRenderEvent(),q.bindPolygonRenderEvent(),q}return Ao(m,[{key:"getDefaultOptions",value:function(C){var N=Xs(Po(m.prototype),"getDefaultOptions",this).call(this,C);return N.helper&&(N.helper=Kt(Kt({},N.helper),Sl)),N}},{key:"setData",value:function(C){var N=this,q=C.map(function(oe){var _e,$e,Ft;oe.properties=Kt(Kt({},kh()),(_e=oe.properties)!==null&&_e!==void 0?_e:{});var an=oe.properties.nodes;if((($e=an)===null||$e===void 0?void 0:$e.length)!==2){var nr=zs(Ss(oe),4),Dr=nr[2],bi=nr[3];an=[Fd([nr[0],nr[1]]),Fd([Dr,bi])],oe.properties.nodes=an}var Di=zs(an,2),Ro=Di[0],Lo=Di[1],Wo=!!(!((Ft=oe.properties)===null||Ft===void 0)&&Ft.isActive),Bo=oe.properties.line;return Bo||(Bo=N.handleCreatePolygonLine(Ro,Lo,{isActive:Wo}),oe.properties.line=Bo),N.handleCreatePolygon([Ro,Lo],Bo,Kt(Kt({},oe.properties),{},{isActive:Wo}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:q,line:q.map(function(oe){return oe.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(C,N){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=Sr(gh(va([C,N]))).map(function(_e,$e){return $e===0?C:$e===2?N:Fd(_e)});return Uo(oe,q)}},{key:"syncPolygonNodes",value:function(C,N){var q=C.properties.line,oe=Sr(gh(va(N)));C.properties.nodes=N,C.geometry.coordinates=[oe],this.setPolygonData(function(Ft){return Ft.map(function(an){return rd(an,C)?C:an})}),this.setPointData(C.properties.isDraw?[N[0]]:N);var _e=q.properties.nodes,$e=oe.filter(function(Ft){return!Ne(Ft,N[0].geometry.coordinates)&&!Ne(Ft,N[1].geometry.coordinates)});return _e.forEach(function(Ft,an){var nr=[0,0];switch(an){case 0:nr=N[0].geometry.coordinates;break;case 1:nr=$e[0];break;case 2:nr=N[1].geometry.coordinates;break;case 3:nr=$e[1];break;case 4:nr=wo(N[0].geometry.coordinates)}Ft.geometry.coordinates=nr}),q.geometry.coordinates=oe,C}},{key:"onLineDragging",value:function(C){var N=Xs(Po(m.prototype),"onLineDragging",this).call(this,C),q=this.dragPolygon;if(N&&q){var oe=q.properties.line.properties.nodes;this.syncPolygonNodes(q,[oe[0],oe[2]]),this.setActivePolygon(q,{isDrag:!0}),this.emit(v.DrawEvent.Dragging,q,this.getPolygonData())}return N}}]),m}(Nh),oa=function(xe,f){for(var m=xe;m&&!Array.from(m.classList).includes(f);)m=m.parentElement;return m},Xa=["point","line","polygon","rect","circle","clear"],Wu={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},qu={point:$d,line:mf,polygon:Vf,rect:Cl,circle:xs},ku="data-draw-type",dd="l7-draw-control",nf="".concat(dd,"__btn"),gp="".concat(nf,"--active");(function(xe){var f,m,C,N,q,oe='',_e=(_e=document.getElementsByTagName("script"))[_e.length-1].getAttribute("data-injectcss");if(_e&&!xe.__iconfont__svg__cssinject__){xe.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Ft){console&&console.log(Ft)}}function $e(){q||(q=!0,C())}f=function(){var Ft,an=document.createElement("div");an.innerHTML=oe,oe=null,(an=an.getElementsByTagName("svg")[0])&&(an.setAttribute("aria-hidden","true"),an.style.position="absolute",an.style.width=0,an.style.height=0,an.style.overflow="hidden",(Ft=document.body).firstChild?function(nr,Dr){Dr.parentNode.insertBefore(nr,Dr)}(an,Ft.firstChild):Ft.appendChild(an))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(f,0):(m=function(){document.removeEventListener("DOMContentLoaded",m,!1),f()},document.addEventListener("DOMContentLoaded",m,!1)):document.attachEvent&&(C=f,N=xe.document,q=!1,function Ft(){try{N.documentElement.doScroll("left")}catch(an){return void setTimeout(Ft,50)}$e()}(),N.onreadystatechange=function(){N.readyState=="complete"&&(N.onreadystatechange=null,$e())})})(window),Ho(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var op=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$p=/^\w*$/,Mh=function(xe,f){if(ip(xe))return!1;var m=typeof xe;return!(m!="number"&&m!="symbol"&&m!="boolean"&&xe!=null&&!tf(xe))||$p.test(xe)||!op.test(xe)||f!=null&&xe in Object(f)};function df(xe,f){if(typeof xe!="function"||f!=null&&typeof f!="function")throw new TypeError("Expected a function");var m=function(){var C=arguments,N=f?f.apply(this,C):C[0],q=m.cache;if(q.has(N))return q.get(N);var oe=xe.apply(this,C);return m.cache=q.set(N,oe)||q,oe};return m.cache=new(df.Cache||yh),m}df.Cache=yh;var um=df,qg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qp=/\\(\\)?/g,Nu=function(xe){var f=um(xe,function(C){return m.size===500&&m.clear(),C}),m=f.cache;return f}(function(xe){var f=[];return xe.charCodeAt(0)===46&&f.push(""),xe.replace(qg,function(m,C,N,q){f.push(N?q.replace(qp,"$1"):C||m)}),f}),Kg=Nf?Nf.prototype:void 0,Nm=Kg?Kg.toString:void 0,rc=function xe(f){if(typeof f=="string")return f;if(ip(f))return xu(f,xe)+"";if(tf(f))return Nm?Nm.call(f):"";var m=f+"";return m=="0"&&1/f==-1/0?"-0":m},Du=function(xe){return xe==null?"":rc(xe)},u1=function(xe,f){return ip(xe)?xe:Mh(xe,f)?[xe]:Nu(Du(xe))},qm=function(xe){if(typeof xe=="string"||tf(xe))return xe;var f=xe+"";return f=="0"&&1/xe==-1/0?"-0":f},Jp=function(xe,f){for(var m=0,C=(f=u1(f,xe)).length;xe!=null&&C>m;)xe=xe[qm(f[m++])];return m&&m==C?xe:void 0},Qp=function(xe,f,m){var C=-1,N=xe.length;0>f&&(f=-f>N?0:N+f),0>(m=m>N?N:m)&&(m+=N),N=f>m?0:m-f>>>0,f>>>=0;for(var q=Array(N);++Cf.length?xe:Jp(xe,Qp(f,0,-1))},wf=function(xe,f){return f=u1(f,xe),(xe=xy(xe,f))==null||delete xe[qm(io(f))]},c0=function(xe){return $i(xe)?void 0:xe},Xg=Nf?Nf.isConcatSpreadable:void 0,Cv=function(xe){return ip(xe)||xg(xe)||!!(Xg&&xe&&xe[Xg])},i0=function xe(f,m,C,N,q){var oe=-1,_e=f.length;for(C||(C=Cv),q||(q=[]);++oe<_e;){var $e=f[oe];m>0&&C($e)?m>1?xe($e,m-1,C,N,q):u0(q,$e):N||(q[q.length]=$e)}return q},Ps=function(xe){return xe!=null&&xe.length?i0(xe,1):[]},kv=function(xe){return zu(ss(xe,void 0,Ps),xe+"")}(function(xe,f){var m={};if(xe==null)return m;var C=!1;f=xu(f,function(q){return q=u1(q,xe),C||(C=q.length>1),q}),Rp(xe,Lm(xe),m),C&&(m=vo(m,7,c0));for(var N=f.length;N--;)wf(m,f[N]);return m}),Sg=kv,ov=function(xe){ps(m,xe);var f=ka(m);function m(C){var N,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ur(this,m),(N=f.call(this,q)).controlOption=void 0,N.sceneInstance=void 0,N.drawMap={},N.btnMap={},N.activeType=null,N.emitDataChange=k(function(){N.emit(v.ControlEvent.DataChange,N.getDrawData())},16),N.emitDrawSelect=function(oe,_e){N.emit(v.ControlEvent.DrawSelect,oe,_e)},N.sceneInstance=C,N.controlOption=Kt(Kt({},N.getDefault()),q||{}),N.onBtnClick=N.onBtnClick.bind(nl(N)),N}return Ao(m,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return Kt(Kt({},Xs(Po(m.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(C){return Xs(Po(m.prototype),"addTo",this).call(this,C),this.init(),this}},{key:"onAdd",value:function(){var C=this.controlOption,N=C.className,q=C.style,oe=z.DOM.create("div","".concat(dd," ").concat(N));return q&&oe.setAttribute("style",q),oe}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(C){C.clear(!0)})}},{key:"init",value:function(){var C,N=this,q=[];Object.entries(this.controlOption.drawConfig).filter(function(oe){var _e=zs(oe,2);return _e[1]}).sort(function(oe,_e){var $e=zs(oe,2)[1],Ft=zs(_e,2)[1],an=Number.MAX_SAFE_INTEGER;return(typeof $e=="boolean"?an:$e.order)-(typeof Ft=="boolean"?an:Ft.order)}).map(function(oe){var _e=zs(oe,2),$e=_e[1];return[_e[0],Nn($e)==="object"?Sg($e,"order"):$e]}).forEach(function(oe){var _e=zs(oe,2),$e=_e[0],Ft=_e[1];if(Nn(Ft)==="object"&&Ft.button){var an=Ft.button;an.classList.contains("l7-draw-control__btn")||an.classList.add("l7-draw-control__btn"),N.btnMap[$e]=an,q.push(an)}else if(Ft&&Xa.includes($e)){var nr=N.initBtn($e);nr.addEventListener("click",N.onBtnClick),q.push(nr),N.btnMap[$e]=nr;var Dr=qu[$e];if(Dr&&N.sceneInstance){var bi=new Dr(N.sceneInstance,Kt(Kt({},N.controlOption.commonDrawOptions),typeof Ft=="boolean"?{}:Ft));bi.on(v.DrawEvent.Change,N.emitDataChange),bi.on(v.DrawEvent.Select,function(Di){N.emitDrawSelect($e,Di)}),N.drawMap[$e]=bi}}}),(C=this.container).append.apply(C,q),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return jo(Yh(this.drawMap).map(function(C){var N=zs(C,2);return[N[0],N[1].getData()]}))}},{key:"getTypeDraw",value:function(C){var N;return(N=this.drawMap[C])!==null&&N!==void 0?N:null}},{key:"onBtnClick",value:function(C){var N=oa(C.target,nf);if(N){var q=N.getAttribute(ku);q==="clear"?this.clearDrawData():this.onDrawClick(q)}}},{key:"setActiveType",value:function(C){var N=null,q=this.activeType;if(q){var oe,_e=this.btnMap[q];if(_e){z.DOM.removeClass(_e,gp);var $e=this.controlOption.activeButtonClassName;$e&&z.DOM.removeClass(_e,$e)}(oe=this.drawMap[q])===null||oe===void 0||oe.disable(),N=null}if(q!==C&&C){var Ft;(Ft=this.drawMap[C])===null||Ft===void 0||Ft.enable();var an=this.btnMap[C];an&&z.DOM.addClass(an,"".concat(gp," ").concat(this.controlOption.activeButtonClassName)),N=C}this.activeType=N,this.emit(v.ControlEvent.DrawChange,N)}},{key:"onDrawClick",value:function(C){this.setActiveType(C)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(C){C==null||C.clear()}),this.emit(v.ControlEvent.DrawClear)}},{key:"initBtn",value:function(C){var N=z.DOM.create("button","".concat(nf," ").concat(this.controlOption.buttonClassName));return N.innerHTML=``),N.setAttribute(ku,C),N}}]),m}(z.Control);v.ACTIVE_COLOR=ve,v.BaseMode=ia,v.CircleDrawer=xs,v.DEFAULT_ADSORB_CONFIG=Mt,v.DEFAULT_AREA_OPTIONS=el,v.DEFAULT_COMMON_OPTIONS=Ae,v.DEFAULT_CURSOR_MAP=P,v.DEFAULT_DISTANCE_OPTIONS=Ds,v.DEFAULT_HISTORY_CONFIG=tl,v.DEFAULT_KEYBOARD_CONFIG=sn,v.DEFAULT_MID_POINT_STYLE=Qt,v.DEFAULT_NODE_NORMAL_STYLE=Ht,v.DEFAULT_NODE_STYLE=kr,v.DEFAULT_POINT_NORMAL_STYLE=Qe,v.DEFAULT_POINT_STYLE=$n,v.DEFAULT_POPUP_CONFIG=dt,v.DEFAULT_SOURCE_DATA=A,v.DEFAULT_STYLE=H,v.DEFAULT_TEXT_NORMAL_STYLE=B,v.DashLineRender=Og,v.DragPolygonMode=Nh,v.DrawCircle=xs,v.DrawControl=ov,v.DrawLine=mf,v.DrawPoint=$d,v.DrawPolygon=Vf,v.DrawRect=Cl,v.LayerRender=Pp,v.LineDrawer=mf,v.LineMode=kc,v.LineRender=te,v.MidPointMode=Qa,v.MidPointRender=ue,v.NORMAL_COLOR=J,v.PointDrawer=$d,v.PointMode=Js,v.PointRender=Ke,v.PolygonDrawer=Vf,v.PolygonMode=Lc,v.PolygonRender=_n,v.RENDER_MAP=S,v.RectDrawer=Cl,v.SceneRender=lr,v.Source=ds,v.TextRender=ye,v.calcAreaText=Rg,v.calcDistanceTextsByLine=Ed,v.createDashLine=rl,v.createLineFeature=Uo,v.createPointFeature=Fd,v.createPolygonFeature=_c,v.findMinIndex=Jt,v.getAdsorbFeature=Hn,v.getAdsorbLine=Jr,v.getAdsorbPoint=In,v.getDefaultLineProperties=fd,v.getDefaultPointProperties=$c,v.getDefaultPolygonProperties=kh,v.getLineCenterPoint=jh,v.getLngLat=we,v.getMapDom=Hs,v.getParentByClassName=oa,v.getPosition=Ee,v.getSingleColorStyle=function(xe){return{point:{normal:{color:xe},hover:{color:xe},active:{color:xe}},line:{normal:{color:xe},hover:{color:xe},active:{color:xe}},polygon:{normal:{color:xe},hover:{color:xe},active:{color:xe},style:{opacity:.2}},text:{normal:{color:xe},active:{color:xe}},midPoint:{normal:{color:xe}},dashLine:{normal:{color:xe}}}},v.getUuid=yl,v.isDev=!1,v.isSameFeature=rd,v.resetEventLngLat=_o,v.splitByPosition=xr,v.transLngLat2Position=He,v.updateTargetFeature=Zf,Object.defineProperty(v,"__esModule",{value:!0})})},23051:function(St,me,x){"use strict";x.r(me),x.d(me,{AJAXError:function(){return Mo},AttributeType:function(){return lf},BKDRHash:function(){return bh},BaiduMap:function(){return oR},BaseLayer:function(){return Gy},BaseMapService:function(){return cS},BaseMapWrapper:function(){return HC},BaseModel:function(){return $u},BasePostProcessingPass:function(){return S_},BlendType:function(){return es},ButtonControl:function(){return Ka},CameraUniform:function(){return wb},CanvasLayer:function(){return QA},CanvasUpdateType:function(){return Bf},CityBuildingLayer:function(){return tT},Control:function(){return Jo},CoordinateSystem:function(){return Df},CoordinateUniform:function(){return vd},DOM:function(){return v},Earth:function(){return TR},EarthLayer:function(){return J7},ExportImage:function(){return eg},FrequencyController:function(){return tc},Fullscreen:function(){return Ot},GaodeMap:function(){return iz},GaodeMapV1:function(){return i6},GaodeMapV2:function(){return iz},GeoLocate:function(){return os},GeometryLayer:function(){return u7},GoogleMap:function(){return gK},HeatmapLayer:function(){return $P},IDebugLog:function(){return Wg},ILayerStage:function(){return Ad},ImageLayer:function(){return eL},InteractionEvent:function(){return Yg},LRUCache:function(){return pf},LayerPopup:function(){return $N},LayerSwitch:function(){return Xc},LineLayer:function(){return DO},LineTriangulation:function(){return ln},LinearDir:function(){return hf},LoadTileDataStatus:function(){return pg},Logo:function(){return dh},Map:function(){return bM},MapLibre:function(){return eC},MapServiceEvent:function(){return R1},MapTheme:function(){return a0},MapType:function(){return wa},Mapbox:function(){return wM},Marker:function(){return lt},MarkerLayer:function(){return br},MaskLayer:function(){return eN},MaskOperation:function(){return sf},MouseLocation:function(){return sy},PassType:function(){return Z0},PointFillTriangulation:function(){return mn},PointLayer:function(){return iL},PolygonLayer:function(){return hE},PopperControl:function(){return sc},Popup:function(){return M9},PositionType:function(){return Pa},RasterLayer:function(){return dx},RasterTileType:function(){return nv},Satistics:function(){return z},Scale:function(){return X1},ScaleTypes:function(){return N0},Scene:function(){return RX},SceneConifg:function(){return Xi},SceneEventList:function(){return LC},SelectControl:function(){return Qu},SizeUnitType:function(){return tg},Source:function(){return ee},SourceTile:function(){return ed},StencilType:function(){return Rl},StyleScaleType:function(){return zx},Swipe:function(){return RH},TMap:function(){return n8},TYPES:function(){return In},TencentMap:function(){return lK},TextureBlend:function(){return jf},TextureUsage:function(){return $1},TileDebugLayer:function(){return LZ},TilesetManager:function(){return Ah},UpdateTileStrategy:function(){return yg},Viewport:function(){return DE},WindLayer:function(){return rB},WorkerSourceMap:function(){return ti},Zoom:function(){return NH},aProjectFlat:function(){return Rd},amap2Project:function(){return us},amap2UnProject:function(){return Ca},anchorTranslate:function(){return Vr},anchorType:function(){return no},applyAnchorClass:function(){return Rn},bBoxToBounds:function(){return Ec},bindAll:function(){return pu},boundsContains:function(){return yu},calAngle:function(){return Fh},calDistance:function(){return Jl},calculateCentroid:function(){return hd},calculatePointsCenterAndRadius:function(){return Ih},container:function(){return zv},createLayerContainer:function(){return Cb},createSceneContainer:function(){return HS},decodePickingColor:function(){return Ei},defaultValue:function(){return Bn},djb2hash:function(){return jl},encodePickingColor:function(){return Zi},executeWorkerTask:function(){return Nr},expandUrl:function(){return Sd},extent:function(){return yd},flow:function(){return hh},formatImage:function(){return Bi},generateCatRamp:function(){return Qo},generateColorRamp:function(){return Kr},generateCustomRamp:function(){return qo},generateLinearRamp:function(){return Xr},generateQuantizeRamp:function(){return pr},getAngle:function(){return pc},getArrayBuffer:function(){return ai},getBBoxFromPoints:function(){return Oc},getCullFace:function(){return qi},getData:function(){return Ar},getDefaultDomain:function(){return sr},getImage:function(){return Ti},getJSON:function(){return ro},getProtocolAction:function(){return Go},getReferrer:function(){return kl},getTileIndices:function(){return zp},getTileWarpXY:function(){return Nf},getURLFromTemplate:function(){return Hd},getWMTSURLFromTemplate:function(){return Vo},gl:function(){return Fi},guid:function(){return Vh},isAndroid:function(){return ml},isColor:function(){return Gr},isImageBitmap:function(){return sl},isPC:function(){return uu},isURLTemplate:function(){return Zc},isWorker:function(){return eu},isiOS:function(){return Dl},latitude:function(){return Mf},lazyInject:function(){return a_},lazyMultiInject:function(){return jS},lineAtOffset:function(){return id},lineAtOffsetAsyc:function(){return Wd},lineStyleType:function(){return ah},lngLatInExtent:function(){return Vd},lngLatToMeters:function(){return Hf},lnglatDistance:function(){return Ta},lodashUtil:function(){return ks},longitude:function(){return Pd},makeXMLHttpRequestPromise:function(){return Ii},metersToLngLat:function(){return ef},normalize:function(){return Xu},osmLonLat2TileXY:function(){return Ep},osmTileXY2LonLat:function(){return Au},packCircleVertex:function(){return Y3},padBounds:function(){return ou},polygonFillTriangulation:function(){return Mn},postData:function(){return Ms},project:function(){return Ja},removeDuplicateUniforms:function(){return mr},rgb2arr:function(){return zr},sameOrigin:function(){return Rt},setL7WorkerSource:function(){return cr},tileToBounds:function(){return Bp},tranfrormCoord:function(){return xh},unProjectFlat:function(){return fp},validateLngLat:function(){return $f},version:function(){return kX}});var v={};x.r(v),x.d(v,{DPR:function(){return Sr},addClass:function(){return Yl},addStyle:function(){return Rr},appendElementType:function(){return pl},clearChildren:function(){return da},create:function(){return va},css2Style:function(){return fs},empty:function(){return vu},findParentElement:function(){return Vs},getClass:function(){return wh},getContainer:function(){return lu},getDiffRect:function(){return vs},getStyleList:function(){return co},getViewPortScale:function(){return Gn},hasClass:function(){return ch},printCanvas:function(){return ji},remove:function(){return Ua},removeClass:function(){return Cc},removeStyle:function(){return ns},setChecked:function(){return as},setClass:function(){return mh},setTransform:function(){return Ql},setUnDraggable:function(){return Ss},splitWords:function(){return nu},toggleClass:function(){return _h},triggerResize:function(){return Hi},trim:function(){return mu}});var z={};x.r(z),x.d(z,{getColumn:function(){return wd},getSatByColumn:function(){return wg},max:function(){return Zh},mean:function(){return Wf},min:function(){return Lh},mode:function(){return Wc},statMap:function(){return lh},sum:function(){return Of}});var P={};x.r(P),x.d(P,{add:function(){return Ru},adjoint:function(){return Qp},clone:function(){return Kg},copy:function(){return Nm},create:function(){return Nu},determinant:function(){return xy},equals:function(){return Fn},exactEquals:function(){return zc},frob:function(){return au},fromQuat:function(){return nr},fromQuat2:function(){return q},fromRotation:function(){return xe},fromRotationTranslation:function(){return N},fromRotationTranslationScale:function(){return Ft},fromRotationTranslationScaleOrigin:function(){return an},fromScaling:function(){return ov},fromTranslation:function(){return Sg},fromValues:function(){return rc},fromXRotation:function(){return f},fromYRotation:function(){return m},fromZRotation:function(){return C},frustum:function(){return Dr},getRotation:function(){return $e},getScaling:function(){return _e},getTranslation:function(){return oe},identity:function(){return u1},invert:function(){return Jp},lookAt:function(){return Zs},mul:function(){return ur},multiply:function(){return wf},multiplyScalar:function(){return ih},multiplyScalarAndAdd:function(){return _u},ortho:function(){return Bo},orthoNO:function(){return Wo},orthoZO:function(){return ho},perspective:function(){return Di},perspectiveFromFieldOfView:function(){return Lo},perspectiveNO:function(){return bi},perspectiveZO:function(){return Ro},rotate:function(){return Cv},rotateX:function(){return i0},rotateY:function(){return Ps},rotateZ:function(){return kv},scale:function(){return Xg},set:function(){return Du},str:function(){return hl},sub:function(){return Hr},subtract:function(){return Su},targetTo:function(){return Da},translate:function(){return c0},transpose:function(){return qm}});var A={};x.r(A),x.d(A,{add:function(){return V$},angle:function(){return aO},bezier:function(){return jF},ceil:function(){return $F},clone:function(){return Z4},copy:function(){return z$},create:function(){return T_},cross:function(){return T0},dist:function(){return sE},distance:function(){return ZF},div:function(){return DQ},divide:function(){return VF},dot:function(){return TP},equals:function(){return GF},exactEquals:function(){return AQ},floor:function(){return EP},forEach:function(){return X$},fromValues:function(){return Km},hermite:function(){return SQ},inverse:function(){return Z$},len:function(){return F1},length:function(){return Wx},lerp:function(){return wQ},max:function(){return W$},min:function(){return ly},mul:function(){return TQ},multiply:function(){return UF},negate:function(){return sO},normalize:function(){return h_},random:function(){return EQ},rotateX:function(){return H$},rotateY:function(){return DP},rotateZ:function(){return G$},round:function(){return F2},scale:function(){return B2},scaleAndAdd:function(){return WF},set:function(){return U$},sqrDist:function(){return cD},sqrLen:function(){return KF},squaredDistance:function(){return oO},squaredLength:function(){return AP},str:function(){return HF},sub:function(){return IP},subtract:function(){return $$},transformMat3:function(){return j$},transformMat4:function(){return uD},transformQuat:function(){return lx},zero:function(){return K$}});var W={},X={},Y=function(d){return X[d]},ie=function(d,l){X[d]=l},ae=function(d){return W[d]},se=function(d,l){W[d]=l},Ie={},Be={},Ce=34,ct=10,nt=13;function Ge(i){return new Function("d","return {"+i.map(function(d,l){return JSON.stringify(d)+": d["+l+'] || ""'}).join(",")+"}")}function at(i,d){var l=Ge(i);return function(c,a){return d(l(c),a,i)}}function Ye(i){var d=Object.create(null),l=[];return i.forEach(function(c){for(var a in c)a in d||l.push(d[a]=a)}),l}function rt(i,d){var l=i+"",c=l.length;return c9999?"+"+rt(i,6):rt(i,4)}function yt(i){var d=i.getUTCHours(),l=i.getUTCMinutes(),c=i.getUTCSeconds(),a=i.getUTCMilliseconds();return isNaN(i)?"Invalid Date":Gt(i.getUTCFullYear(),4)+"-"+rt(i.getUTCMonth()+1,2)+"-"+rt(i.getUTCDate(),2)+(a?"T"+rt(d,2)+":"+rt(l,2)+":"+rt(c,2)+"."+rt(a,3)+"Z":c?"T"+rt(d,2)+":"+rt(l,2)+":"+rt(c,2)+"Z":l||d?"T"+rt(d,2)+":"+rt(l,2)+"Z":"")}function Et(i){var d=new RegExp('["'+i+` +\r]`),l=i.charCodeAt(0);function c(be,ut){var Pt,qt,En=a(be,function(qn,Zr){if(Pt)return Pt(qn,Zr-1);qt=qn,Pt=ut?at(qn,ut):Ge(qn)});return En.columns=qt||[],En}function a(be,ut){var Pt=[],qt=be.length,En=0,qn=0,Zr,Si=qt<=0,to=!1;be.charCodeAt(qt-1)===ct&&--qt,be.charCodeAt(qt-1)===nt&&--qt;function ts(){if(Si)return Be;if(to)return to=!1,Ie;var Fs,Us=En,Sa;if(be.charCodeAt(Us)===Ce){for(;En++=qt?Si=!0:(Sa=be.charCodeAt(En++))===ct?to=!0:Sa===nt&&(to=!0,be.charCodeAt(En)===ct&&++En),be.slice(Us+1,Fs-1).replace(/""/g,'"')}for(;En=200&&l.status<300||l.status===0)&&l.response!==null){var p=l.response;if(i.type==="json")try{p=JSON.parse(l.response)}catch(w){return d(w)}d(null,p,l.getResponseHeader("Cache-Control"),l.getResponseHeader("Expires"),l)}else{var y=new Blob([l.response],{type:l.getResponseHeader("Content-Type")});d(new Mo(l.status,l.statusText,c.toString(),y))}},l.cancel=l.abort,l.send(i.body),l}function Ii(i){return new Promise(function(d,l){pe(i,function(c,a,p,y,w){c?l({err:c,data:null,xhr:w}):d({err:null,data:a,cacheControl:p,expires:y,xhr:w})})})}function Vi(i,d){return pe(i,d)}var ro=function(d,l){var c=Go(d.url)||Vi;return c((0,Xe.Z)((0,Xe.Z)({},d),{},{type:"json"}),l)},ai=function(d,l){var c=Go(d.url)||Vi;return c((0,Xe.Z)((0,Xe.Z)({},d),{},{type:"arrayBuffer"}),l)},Ms=function(d,l){return Vi((0,Xe.Z)((0,Xe.Z)({},d),{},{method:"POST"}),l)},Ar=function(d,l){return Vi((0,Xe.Z)((0,Xe.Z)({},d),{},{method:"GET"}),l)};function Rt(i){var d=window.document.createElement("a");return d.href=i,d.protocol===window.document.location.protocol&&d.host===window.document.location.host}var jn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function wr(i,d){var l=new window.Image,c=window.URL||window.webkitURL;l.crossOrigin="anonymous",l.onload=function(){d(null,l),c.revokeObjectURL(l.src),l.onload=null,window.requestAnimationFrame(function(){l.src=jn})},l.onerror=function(){return d(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var a=new Blob([new Uint8Array(i)],{type:"image/png"});l.src=i.byteLength?c.createObjectURL(a):jn}function oi(i,d){var l=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(l).then(function(c){d(null,c)}).catch(function(c){d(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Ti=function(d,l,c){var a=function(y,w){if(y)l(y);else if(w){var O=typeof createImageBitmap=="function",V=c?c(w):w;O?oi(V,l):wr(V,l)}};return d.type==="json"?ro(d,a):ai(d,a)},Bi=function(d,l){var c=typeof createImageBitmap=="function";c?oi(d,l):wr(d,l)},no=function(i){return i.CENTER="center",i.TOP="top",i["TOP-LEFT"]="top-left",i["TOP-RIGHT"]="top-right",i.BOTTOM="bottom",i["BOTTOM-LEFT"]="bottom-left",i["BOTTOM-RIGHT"]="bottom-right",i.LEFT="left",i.RIGHT="right",i}({}),Vr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Rn(i,d,l){var c=i.classList;for(var a in Vr)Vr.hasOwnProperty(a)&&c.remove("l7-".concat(l,"-anchor-").concat(a));c.add("l7-".concat(l,"-anchor-").concat(d))}function Xt(i,d,l){i.prototype=d.prototype=l,l.constructor=i}function Sn(i,d){var l=Object.create(i.prototype);for(var c in d)l[c]=d[c];return l}function Pn(){}var hr=.7,mt=1/hr,tt="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",vn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vr=/^#([0-9a-f]{3,8})$/,qr=new RegExp("^rgb\\("+[tt,tt,tt]+"\\)$"),Ni=new RegExp("^rgb\\("+[vn,vn,vn]+"\\)$"),li=new RegExp("^rgba\\("+[tt,tt,tt,kt]+"\\)$"),Un=new RegExp("^rgba\\("+[vn,vn,vn,kt]+"\\)$"),dn=new RegExp("^hsl\\("+[kt,vn,vn]+"\\)$"),xt=new RegExp("^hsla\\("+[kt,vn,vn,kt]+"\\)$"),it={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Xt(Pn,tr,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:Bt,formatHex:Bt,formatHsl:rn,formatRgb:ir,toString:ir});function Bt(){return this.rgb().formatHex()}function rn(){return rr(this).formatHsl()}function ir(){return this.rgb().formatRgb()}function tr(i){var d,l;return i=(i+"").trim().toLowerCase(),(d=vr.exec(i))?(l=d[1].length,d=parseInt(d[1],16),l===6?Jn(d):l===3?new jr(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1):l===8?nn(d>>24&255,d>>16&255,d>>8&255,(d&255)/255):l===4?nn(d>>12&15|d>>8&240,d>>8&15|d>>4&240,d>>4&15|d&240,((d&15)<<4|d&15)/255):null):(d=qr.exec(i))?new jr(d[1],d[2],d[3],1):(d=Ni.exec(i))?new jr(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=li.exec(i))?nn(d[1],d[2],d[3],d[4]):(d=Un.exec(i))?nn(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=dn.exec(i))?Cn(d[1],d[2]/100,d[3]/100,1):(d=xt.exec(i))?Cn(d[1],d[2]/100,d[3]/100,d[4]):it.hasOwnProperty(i)?Jn(it[i]):i==="transparent"?new jr(NaN,NaN,NaN,0):null}function Jn(i){return new jr(i>>16&255,i>>8&255,i&255,1)}function nn(i,d,l,c){return c<=0&&(i=d=l=NaN),new jr(i,d,l,c)}function er(i){return i instanceof Pn||(i=tr(i)),i?(i=i.rgb(),new jr(i.r,i.g,i.b,i.opacity)):new jr}function Fr(i,d,l,c){return arguments.length===1?er(i):new jr(i,d,l,c==null?1:c)}function jr(i,d,l,c){this.r=+i,this.g=+d,this.b=+l,this.opacity=+c}Xt(jr,Fr,Sn(Pn,{brighter:function(i){return i=i==null?mt:Math.pow(mt,i),new jr(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?hr:Math.pow(hr,i),new jr(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bo,formatHex:bo,formatRgb:zt,toString:zt}));function bo(){return"#"+en(this.r)+en(this.g)+en(this.b)}function zt(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(i===1?")":", "+i+")")}function en(i){return i=Math.max(0,Math.min(255,Math.round(i)||0)),(i<16?"0":"")+i.toString(16)}function Cn(i,d,l,c){return c<=0?i=d=l=NaN:l<=0||l>=1?i=d=NaN:d<=0&&(i=NaN),new Er(i,d,l,c)}function rr(i){if(i instanceof Er)return new Er(i.h,i.s,i.l,i.opacity);if(i instanceof Pn||(i=tr(i)),!i)return new Er;if(i instanceof Er)return i;i=i.rgb();var d=i.r/255,l=i.g/255,c=i.b/255,a=Math.min(d,l,c),p=Math.max(d,l,c),y=NaN,w=p-a,O=(p+a)/2;return w?(d===p?y=(l-c)/w+(l0&&O<1?0:y,new Er(y,w,O,i.opacity)}function Pr(i,d,l,c){return arguments.length===1?rr(i):new Er(i,d,l,c==null?1:c)}function Er(i,d,l,c){this.h=+i,this.s=+d,this.l=+l,this.opacity=+c}Xt(Er,Pr,Sn(Pn,{brighter:function(i){return i=i==null?mt:Math.pow(mt,i),new Er(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?hr:Math.pow(hr,i),new Er(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+(this.h<0)*360,d=isNaN(i)||isNaN(this.s)?0:this.s,l=this.l,c=l+(l<.5?l:1-l)*d,a=2*l-c;return new jr(ui(i>=240?i-240:i+120,a,c),ui(i,a,c),ui(i<120?i+240:i-120,a,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return i=isNaN(i)?1:Math.max(0,Math.min(1,i)),(i===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(i===1?")":", "+i+")")}}));function ui(i,d,l){return(i<60?d+(l-d)*i/60:i<180?l:i<240?d+(l-d)*(240-i)/60:d)*255}function Gr(i){return typeof i=="string"?!!tr(i):!1}function zr(i){var d=tr(i),l=[0,0,0,0];return d!=null&&(l[0]=d.r/255,l[1]=d.g/255,l[2]=d.b/255,l[3]=d.opacity),l}function Ei(i){var d=i&&i[0],l=i&&i[1],c=i&&i[2],a=d+l*256+c*65536-1;return a}function Zi(i){return[i+1&255,i+1>>8&255,i+1>>8>>8&255]}function Kr(i){var d=window.document.createElement("canvas"),l=d.getContext("2d");d.width=256,d.height=1;for(var c=null,a=l.createLinearGradient(0,0,256,1),p=i.positions[0],y=i.positions[i.positions.length-1],w=0;w0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(l)}function mh(i,d){i instanceof HTMLElement?i.className=d:i.className.baseVal=d}function _h(i,d,l){l===void 0?ch(i,d)?Cc(i,d):Yl(i,d):l?Yl(i,d):Cc(i,d)}function wh(i){return i instanceof SVGElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function vu(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}var ru=Fl(["transform","WebkitTransform"]);function Ql(i,d){i.style[ru]=d}function Hi(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var i=window.document.createEvent("UIEvents");i.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(i)}}function ji(i){var d=["padding: "+(i.height/2-8)+"px "+i.width/2+"px;","line-height: "+i.height+"px;","background-image: url("+i.toDataURL()+");"];console.log(`%c +`,d.join(""))}function Gn(){var i,d=window.document.querySelector('meta[name="viewport"]');if(!d)return 1;var l=(i=d.content)===null||i===void 0?void 0:i.split(","),c=l.find(function(a){var p=a.split("="),y=(0,zn.Z)(p,1),w=y[0];return w==="initial-scale"});return c?c.split("=")[1]*1:1}var Sr=Gn()<1?1:window.devicePixelRatio;function Rr(i,d){i.setAttribute("style","".concat(i.style.cssText).concat(d))}function co(i){return i.split(";").map(function(d){return d.trim()}).filter(function(d){return d})}function ns(i,d){var l,c=co((l=i.getAttribute("style"))!==null&&l!==void 0?l:""),a=co(d),p=Za.apply(void 0,[c].concat((0,Ln.Z)(a)));i.setAttribute("style",p.join(";"))}function fs(i){return Object.entries(i).map(function(d){var l=(0,zn.Z)(d,2),c=l[0],a=l[1];return"".concat(c,": ").concat(a)}).join(";")}function vs(i,d){return{left:i.left-d.left,top:i.top-d.top,right:d.left+d.width-i.left-i.width,bottom:d.top+d.height-i.top-i.height}}function as(i,d){i.checked=d,d?i.setAttribute("checked","true"):i.removeAttribute("checked")}function da(i){i.innerHTML=""}function Ss(i){i.setAttribute("draggable","false")}function pl(i,d){if(typeof d=="string"){var l=document.createElement("div");for(l.innerHTML=d;l.firstChild;)i.append(l.firstChild)}else Array.isArray(d)?i.append.apply(i,(0,Ln.Z)(d)):i.append(d)}function Vs(i,d){for(var l=Array.isArray(d)?d:[d],c=i;c instanceof Element&&c!==window.document.body;){var a,p;if(l.find(function(y){var w;return(w=c)===null||w===void 0?void 0:w.matches(y)}))return c;c=(a=(p=c)===null||p===void 0?void 0:p.parentElement)!==null&&a!==void 0?a:null}}var ol;function sl(i){return typeof ImageBitmap!="undefined"&&i instanceof ImageBitmap}function eu(){return typeof importScripts=="function"}var kl=eu()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Wl=(ol=navigator)===null||ol===void 0?void 0:ol.userAgent,Dl=!!Wl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),ml=Wl.indexOf("Android")>-1||Wl.indexOf("Adr")>-1;function uu(){for(var i=Wl,d=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],l=!0,c=0,a=d;c0){l=!1;break}}return l}var pn=x(16514);function pu(i,d){i.forEach(function(l){d[l]&&(d[l]=d[l].bind(d))})}var tc=function(){function i(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,vt.Z)(this,i),(0,pn.Z)(this,"duration",16),(0,pn.Z)(this,"timestamp",new Date().getTime()),this.duration=d}return(0,Te.Z)(i,[{key:"run",value:function(l){var c=new Date().getTime(),a=c-this.timestamp;this.timestamp=c,a>=this.duration&&l()}}]),i}(),dc=x(86461),Mc=x(8822);function Fc(i){return typeof i=="number"}var cd=2*Math.PI*6378137/2;function Vd(i,d){var l=(0,zn.Z)(d,4),c=l[0],a=l[1],p=l[2],y=l[3];return i.lng>c&&i.lng<=p&&i.lat>a&&i.lat<=y}function yd(i){var d=[1/0,1/0,-1/0,-1/0];return i.forEach(function(l){var c=l.coordinates;Sh(d,c)}),d}function Sh(i,d){return Array.isArray(d[0])?d.forEach(function(l){Sh(i,l)}):(i[0]>d[0]&&(i[0]=d[0]),i[1]>d[1]&&(i[1]=d[1]),i[2]1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};i=$f(i,d);var c=i[0],a=i[1],p=c*cd/180,y=Math.log(Math.tan((90+a)*Math.PI/360))/(Math.PI/180);return y=y*cd/180,l.enable&&(p=Number(p.toFixed(l.decimal)),y=Number(y.toFixed(l.decimal))),i.length===3?[p,y,i[2]]:[p,y]}function ef(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=i[0],c=i[1],a=l/cd*180,p=c/cd*180;return p=180/Math.PI*(2*Math.atan(Math.exp(p*Math.PI/180))-Math.PI/2),d!=null&&(a=Number(a.toFixed(d)),p=Number(p.toFixed(d))),i.length===3?[a,p,i[2]]:[a,p]}function Pd(i){if(i==null)throw new Error("lng is required");return(i>180||i<-180)&&(i=i%360,i>180&&(i=-360+i),i<-180&&(i=360+i),i===0&&(i=0)),i}function Mf(i){if(i==null)throw new Error("lat is required");return(i>90||i<-90)&&(i=i%180,i>90&&(i=-180+i),i<-90&&(i=180+i),i===0&&(i=0)),i}function $f(i,d){if(d===!1)return i;var l=Pd(i[0]),c=Mf(i[1]);return c>85&&(c=85),c<-85&&(c=-85),i.length===3?[l,c,i[2]]:[l,c]}function Rd(i){var d=85.0511287798,l=Math.max(Math.min(d,i[1]),-d),c=256<<20,a=Math.PI/180,p=i[0]*a,y=l*a;y=Math.log(Math.tan(Math.PI/4+y/2));var w=.5/Math.PI,O=.5,V=-.5/Math.PI;return a=.5,p=c*(w*p+O),y=c*(V*y+a),[Math.floor(p),Math.floor(y)]}function fp(i){var d=.5/Math.PI,l=.5,c=-.5/Math.PI,a=.5,p=256<<20,y=(0,zn.Z)(i,2),w=y[0],O=y[1];w=(w/p-l)/d,O=(O/p-a)/c,O=(Math.atan(Math.pow(Math.E,O))-Math.PI/4)*2,a=Math.PI/180;var V=O/a,he=w/a;return[he,V]}function us(i,d){var l=85.0511287798,c=Math.PI/180,a=6378137;return d=Math.max(Math.min(l,d),-l),i*=c,d*=c,d=Math.log(Math.tan(Math.PI/4+d/2)),[i*a,d*a]}function Ca(i,d){var l=Math.PI/180,c=6378137,a=i/c/l,p=2*(Math.atan(Math.exp(d/c))-Math.PI/4)/l;return[a,p]}function Ta(i,d,l){var c=(0,Mc.degreesToRadians)(d[1]-i[1]),a=(0,Mc.degreesToRadians)(d[0]-i[0]),p=(0,Mc.degreesToRadians)(i[1]),y=(0,Mc.degreesToRadians)(d[1]),w=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(p)*Math.cos(y);return(0,Mc.radiansToLength)(2*Math.atan2(Math.sqrt(w),Math.sqrt(1-w)),l="meters")}function Ja(i){var d=Math.PI/180,l=85.0511287798,c=6378137,a=Math.max(Math.min(l,i[1]),-l),p=Math.sin(a*d),y=c*i[0]*d,w=c*Math.log((1+p)/(1-p))/2;return[y,w]}function ou(i,d){var l=Math.abs(i[1][1]-i[0][1])*d,c=Math.abs(i[1][0]-i[0][0])*d;return[[i[0][0]-c,i[0][1]-l],[i[1][0]+c,i[1][1]+l]]}function yu(i,d){return i[0][0]<=d[0][0]&&i[0][1]<=d[0][1]&&i[1][0]>=d[1][0]&&i[1][1]>=d[1][1]}function Ec(i){return[[i[0],i[1]],[i[2],i[3]]]}function Xu(i){var d=Jl(i,[0,0]);return[i[0]/d,i[1]/d]}function Jl(i,d){return Math.sqrt(Math.pow(i[0]-d[0],2)+Math.pow(i[1]-d[1],2))}function Rc(i,d){return i[0]*d[0]+i[1]*d[1]}function Ac(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function Fh(i,d){return Math.acos(Rc(i,d)/(Ac(i)*Ac(d)))*180/Math.PI}function pc(i,d){return d[0]>0?d[1]>0?90-Math.atan(d[1]/d[0])*180/Math.PI:90+Math.atan(-d[1]/d[0])*180/Math.PI:d[1]<0?180+(90-Math.atan(d[1]/d[0])*180/Math.PI):270+Math.atan(d[1]/-d[0])*180/Math.PI}function hh(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!i||i.length<2)){for(var l=[0,1],c=0,a=[],p=0;p0){var be=a[p-1].rotation;be-he>360-be+he&&(he=he+360)}a.push({start:y,end:w,dis:O,rotation:he,duration:0})}return a.map(function(ut){ut.duration=d*(ut.dis/c)}),a}}function hd(i){if(Fc(i[0]))return i;if(Fc(i[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(Fc(i[0][0][0])){var d=i,l=0,c=0,a=0;return d.forEach(function(p){p.forEach(function(y){l+=y[0],c+=y[1],a++})}),[l/a,c/a,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Ih(i){for(var d=i[0],l=i[1],c=i[0],a=i[1],p=0,y=0,w=0,O=0;Oa&&(c=Math.floor(c/l)),c=c*d+i.charCodeAt(p);return c}function jl(i){i=i.toString();for(var d=5381,l=i.length;l;)d=d*33^i.charCodeAt(--l);return d>>>0}function Vh(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var d=Math.random()*16|0,l=i==="x"?d:d&3|8;return l.toString(16)})}var wa=function(i){return i["GAODE1.x"]="GAODE1.x",i["GAODE2.x"]="GAODE2.x",i.MAPBOX="MAPBOX",i.DEFAULT="DEFAUlTMAP",i.SIMPLE="SIMPLE",i.GLOBEL="GLOBEL",i}({});function su(i,d,l,c,a){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,y=arguments.length>6?arguments[6]:void 0,w=l;return y&&(w=Math.round(l*(p-1))/(p-1)),c?Eu(i,d,w,c,a):Eu(i,d,w,.314,a)}function gh(i,d){var l=1-d;return(i[0]*l+i[1]*d)*l+(i[1]*l+i[2]*d)*d}function Th(i,d){return Math.sqrt(Math.pow(i[0]-d[0],2)+Math.pow(i[1]-d[1],2))}function ws(i,d,l){var c=[d[0]-i[0],d[1]-i[1]],a=Th(c,[0,0]),p=Math.atan2(c[1],c[0]),y=a/2/Math.cos(l),w=p+l,O=[y*Math.cos(w)+i[0],y*Math.sin(w)+i[1]];return O}function Eu(i,d,l,c,a){if(a===wa["GAODE2.x"]){var p=us(i[0],i[1]),y=us(d[0],d[1]),w=ws(p,y,c),O=[p[0],w[0],y[0]],V=[p[1],w[1],y[1]];return[].concat((0,Ln.Z)(Ca(gh(O,l),gh(V,l))),[0])}else{var he=ws(i,d,c),be=[i[0],he[0],d[0]],ut=[i[1],he[1],d[1]];return[gh(be,l),gh(ut,l),0]}}function $l(i,d,l,c,a){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,y=arguments.length>6?arguments[6]:void 0,w=l;return y&&(w=Math.round(l*29)/29),Gc(i,d,w,a)}function Ou(i,d){var l=[d[0]-i[0],d[1]-i[1]],c=Jl(l,[0,0]),a=Math.atan2(l[1],l[0]),p=.314,y=c/2/Math.cos(p),w=a+p,O=[y*Math.cos(w)+i[0],y*Math.sin(w)+i[1]];return O}function Lu(i,d){var l=1-d;return(i[0]*l+i[1]*d)*l+(i[1]*l+i[2]*d)*d}function mc(i,d){var l=[i[0]-d[0],i[1]-d[1]],c=[Math.sin(l[0]/2),Math.sin(l[1]/2)],a=c[1]*c[1]+Math.cos(i[1])*Math.cos(d[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function Gc(i,d,l,c){var a=[(0,Mc.degreesToRadians)(i[0]),(0,Mc.degreesToRadians)(i[1])],p=[(0,Mc.degreesToRadians)(d[0]),(0,Mc.degreesToRadians)(d[1])];if(c==="GAODE2.x"){var y=Ou(a,p),w=[a[0],y[0],p[0]],O=[a[1],y[1],p[1]];return[Lu(w,l),Lu(O,l),0]}else{var V=mc(a,p);if(Math.abs(V-Math.PI)<.001)return[(1-l)*a[0]+l*p[0],(1-l)*a[1]+l*p[1]];var he=Math.sin((1-l)*V)/Math.sin(V),be=Math.sin(l*V)/Math.sin(V),ut=[Math.sin(a[0]),Math.sin(a[1])],Pt=[Math.cos(a[0]),Math.cos(a[1])],qt=[Math.sin(p[0]),Math.sin(p[1])],En=[Math.cos(p[0]),Math.cos(p[1])],qn=he*Pt[1]*Pt[0]+be*En[1]*En[0],Zr=he*Pt[1]*ut[0]+be*En[1]*qt[0],Si=he*ut[1]+be*qt[1];return[(0,Mc.radiansToDegrees)(Math.atan2(Zr,qn)),(0,Mc.radiansToDegrees)(Math.atan2(Si,Math.sqrt(qn*qn+Zr*Zr)))]}}function rh(i,d){for(var l=0,c=[],a=0;aV){var qn=qt.p1,Zr=qt.p2,Si=(V-qt.lastTotalDistance)/qt.distance,to=Wh(Zr,qn,Si);he=to[0],be=to[1];break}}return{lng:he,lat:be,height:0}}function Wh(i,d,l){return[i[0]*l+d[0]*(1-l),i[1]*l+d[1]*(1-l)]}function Id(i,d){return Math.sqrt(Math.pow(i[0]-d[0],2)+Math.pow(i[1]-d[1],2))}function id(i,d){var l=d.featureId,c=i.data.dataArray;return typeof l=="number"&&(c=c.filter(function(a){var p=a.id;return p===l})),c.map(function(a){var p=Zd(a,d);return(0,Xe.Z)((0,Xe.Z)({},a),p)})}function Wd(i,d){return new Promise(function(l){i.inited?l(id(i,d)):i.once("update",function(){l(id(i,d))})})}function Zd(i,d){var l=d.offset,c=d.shape,a=d.thetaOffset,p=d.mapVersion,y=d.segmentNumber,w=y===void 0?30:y,O=d.autoFit,V=O===void 0?!0:O,he=i.coordinates;if(c==="line")return rh(he,l);var be=he[0],ut=he[1],Pt=typeof a=="string"?i[a]||0:a,qt;switch(c){case"arc":qt=su;break;case"greatcircle":qt=$l;break;default:qt=su}var En=qt(be,ut,l,Pt,p,w,V),qn=(0,zn.Z)(En,3),Zr=qn[0],Si=qn[1],to=qn[2];return{lng:Zr,lat:Si,height:to}}var pf=function(){function i(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,l=arguments.length>1?arguments[1]:void 0;(0,vt.Z)(this,i),this.limit=d,this.destroy=l||this.defaultDestroy,this.order=[],this.clear()}return(0,Te.Z)(i,[{key:"clear",value:function(){var l=this;this.order.forEach(function(c){l.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(l){var c=this.cache[l];return c&&(this.deleteOrder(l),this.appendOrder(l)),c}},{key:"set",value:function(l,c){this.cache[l]?(this.delete(l),this.cache[l]=c,this.appendOrder(l)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[l]=c,this.appendOrder(l))}},{key:"delete",value:function(l){var c=this.cache[l];c&&(this.deleteCache(l),this.deleteOrder(l),this.destroy(c,l))}},{key:"deleteCache",value:function(l){delete this.cache[l]}},{key:"deleteOrder",value:function(l){var c=this.order.findIndex(function(a){return a===l});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(l){this.order.push(l)}},{key:"defaultDestroy",value:function(l,c){return null}}]),i}();function Zh(i){if(i.length===0)throw new Error("max requires at least one data point");for(var d=i[0],l=1;ld&&(d=i[l]);return d*1}function Lh(i){if(i.length===0)throw new Error("min requires at least one data point");for(var d=i[0],l=1;lc&&(c=a,l=d),a=1,d=i[p]):a++;return l*1}var lh={min:Lh,max:Zh,mean:Wf,sum:Of,mode:Wc};function wd(i,d){return i.map(function(l){return l[d]})}function wg(i,d){return lh[i](d)}var al=x(90304),eo=x(7963),Eh=x(57168),mo=x.n(Eh),vc=x(39511),Ic=x(40666),Hp=x.n(Ic),yg=function(i){return i.Realtime="realtime",i.Overlap="overlap",i.Replace="replace",i}({}),pg=function(i){return i.Loading="Loading",i.Loaded="Loaded",i.Failure="Failure",i.Cancelled="Cancelled",i}({}),kf=0,Fp=1,rg=2;function pp(i){i.forEach(function(d){d.isCurrent&&(d.isVisible=d.isLoaded)})}function kg(i){i.forEach(function(d){d.properties.state=kf}),i.forEach(function(d){d.isCurrent&&!yp(d)&&od(d)}),i.forEach(function(d){d.isVisible=!!(d.properties.state&rg)})}function vp(i){i.forEach(function(l){l.properties.state=kf}),i.forEach(function(l){l.isCurrent&&yp(l)});var d=i.slice().sort(function(l,c){return l.z-c.z});d.forEach(function(l){l.isVisible=!!(l.properties.state&rg),l.children.length&&(l.isVisible||l.properties.state&Fp)?l.children.forEach(function(c){c.properties.state=Fp}):l.isCurrent&&od(l)})}function yp(i){for(;i;){if(i.isLoaded)return i.properties.state|=rg,!0;i=i.parent}return!1}function od(i){i.children.forEach(function(d){d.isLoaded?d.properties.state|=rg:od(d)})}var Pp,Og=256,Xp=[-1/0,-1/0,1/0,1/0],sd=.2,Yp=5,Kh=(Pp={},(0,pn.Z)(Pp,yg.Realtime,pp),(0,pn.Z)(Pp,yg.Overlap,kg),(0,pn.Z)(Pp,yg.Replace,vp),Pp),Qf=function(){};function Ep(i,d,l){var c=Math.floor((i+180)/360*Math.pow(2,l)),a=Math.floor((1-Math.log(Math.tan(d*Math.PI/180)+1/Math.cos(d*Math.PI/180))/Math.PI)/2*Math.pow(2,l));return[c,a]}function Au(i,d,l){var c=i/Math.pow(2,l)*360-180,a=Math.PI-2*Math.PI*d/Math.pow(2,l),p=180/Math.PI*Math.atan(.5*(Math.exp(a)-Math.exp(-a)));return[c,p]}var Bp=function(d,l,c){var a=Au(d,l,c),p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=Au(d+1,l+1,c),V=(0,zn.Z)(O,2),he=V[0],be=V[1];return[y,be,he,w]};function zp(i){var d=i.zoom,l=i.latLonBounds,c=i.maxZoom,a=c===void 0?1/0:c,p=i.minZoom,y=p===void 0?0:p,w=i.zoomOffset,O=w===void 0?0:w,V=i.extent,he=V===void 0?Xp:V,be=Math.ceil(d)+O;if(Number.isFinite(y)&&bea&&(be=a);for(var ut=(0,zn.Z)(l,4),Pt=ut[0],qt=ut[1],En=ut[2],qn=ut[3],Zr=[Math.max(Pt,he[0]),Math.max(qt,he[1]),Math.min(En,he[2]),Math.min(qn,he[3])],Si=[],to=Ep(Zr[0],Zr[1],be),ts=(0,zn.Z)(to,2),Qs=ts[0],Fs=ts[1],Us=Ep(Zr[2],Zr[3],be),Sa=(0,zn.Z)(Us,2),dl=Sa[0],fu=Sa[1],iu=Qs;iu<=dl;iu++)for(var ic=fu;ic<=Fs;ic++)Si.push({x:iu,y:ic,z:be});var Nc=(dl+Qs)/2,nh=(Fs+fu)/2,Zp=function(jg,U0){return Math.abs(jg-Nc)+Math.abs(U0-nh)};return Si.sort(function(hg,jg){return Zp(hg.x,hg.y)-Zp(jg.x,jg.y)}),Si}var Nf=function(d,l,c){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,p=Math.pow(2,c),y=p-1,w=p,O=d,V=l;return a&&(O<0?O=O+w:O>y&&(O=O%w)),{warpX:O,warpY:V}};function zh(i){var d=Xh();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Xh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var ed=function(i){(0,ze.Z)(l,i);var d=zh(l);function l(c){var a;(0,vt.Z)(this,l),a=d.call(this),(0,pn.Z)((0,eo.Z)(a),"tileSize",256),(0,pn.Z)((0,eo.Z)(a),"isVisible",!1),(0,pn.Z)((0,eo.Z)(a),"isCurrent",!1),(0,pn.Z)((0,eo.Z)(a),"isVisibleChange",!1),(0,pn.Z)((0,eo.Z)(a),"loadedLayers",0),(0,pn.Z)((0,eo.Z)(a),"isLayerLoaded",!1),(0,pn.Z)((0,eo.Z)(a),"isLoad",!1),(0,pn.Z)((0,eo.Z)(a),"isChildLoad",!1),(0,pn.Z)((0,eo.Z)(a),"parent",null),(0,pn.Z)((0,eo.Z)(a),"children",[]),(0,pn.Z)((0,eo.Z)(a),"data",null),(0,pn.Z)((0,eo.Z)(a),"properties",{}),(0,pn.Z)((0,eo.Z)(a),"loadDataId",0);var p=c.x,y=c.y,w=c.z,O=c.tileSize,V=c.warp,he=V===void 0?!0:V;return a.x=p,a.y=y,a.z=w,a.warp=he||!0,a.tileSize=O,a}return(0,Te.Z)(l,[{key:"isLoading",get:function(){return this.loadStatus===pg.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===pg.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===pg.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===pg.Cancelled}},{key:"isDone",get:function(){return[pg.Loaded,pg.Cancelled,pg.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Bp(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var a=(0,zn.Z)(this.bounds,4),p=a[0],y=a[1],w=a[2],O=a[3],V=[(w-p)/2,(O-y)/2],he=(0,vc.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:V,meta:` `.concat(this.key,` - `)}});return Ze}},{key:"key",get:function(){var d="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return d}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){var B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1,fy,J1,ey;return Pv().wrap(function(C_){for(;;)switch(C_.prev=C_.next){case 0:return B=M.getData,J=M.onLoad,ue=M.onError,this.loadDataId++,Ze=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=dT.Loading,st=null,C_.prev=7,Go=this.x,Ta=this.y,eu=this.z,kd=this.bounds,em=this.tileSize,B0=this.warp,vv=jS(Go,Ta,eu,B0),y1=vv.warpX,fy=vv.warpY,J1=this.abortController.signal,ey={x:y1,y:fy,z:eu,bounds:kd,tileSize:em,signal:J1,warp:B0},C_.next=14,B(ey,this);case 14:st=C_.sent,C_.next=20;break;case 17:C_.prev=17,C_.t0=C_.catch(7),Fr=C_.t0;case 20:if(Ze===this.loadDataId){C_.next=22;break}return C_.abrupt("return");case 22:if(!(this.isCancelled&&!st)){C_.next=24;break}return C_.abrupt("return");case 24:if(!(Fr||!st)){C_.next=28;break}return this.loadStatus=dT.Failure,ue(Fr,this),C_.abrupt("return");case 28:this.loadStatus=dT.Loaded,this.data=st,J(this);case 31:case"end":return C_.stop()}},E,this,[[7,17]])}));function d(E){return m.apply(this,arguments)}return d}()},{key:"reloadData",value:function(d){this.isLoading&&this.abortLoad(),this.loadData(d)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=dT.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),f}(O2.EventEmitter),nC=function(v,f){var m=P2(v),d=cx(m,f),E=360*3-180,M=85.0511287798065,B=[Math.max(d[0][0],-E),Math.max(d[0][1],-M),Math.min(d[1][0],E),Math.min(d[1][1],M)];return B},AE=function(v,f){var m=P2(v),d=P2(f),E=Cx(m,d);return E};function iE(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=HE(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function HE(i,v){if(i){if(typeof i=="string")return yw(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return yw(i,v)}}function yw(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f=0&&st.x0;){var J=d.shift();J.abortLoad()}}},{key:"getTileByLngLat",value:function(d,E,M){var B=this.options.zoomOffset,J=Math.ceil(M)+B,ue=PE(d,E,J),Ze=this.tiles.filter(function(st){return st.key==="".concat(ue[0],"_").concat(ue[1],"_").concat(J)});return Ze[0]}},{key:"getTileExtent",value:function(d,E){return this.getTileIndices(E,d)}},{key:"getTileByZXY",value:function(d,E,M){var B=this.tiles.filter(function(J){return J.key==="".concat(E,"_").concat(M,"_").concat(d)});return B[0]}},{key:"clear",value:function(){var d=iE(this.cacheTiles.values()),E;try{for(d.s();!(E=d.n()).done;){var M=E.value;M.isLoading?M.abortLoad():this.onTileUnload(M)}}catch(B){d.e(B)}finally{d.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var d=this.options.updateStrategy,E=new Map,M=iE(this.cacheTiles.values()),B;try{for(M.s();!(B=M.n()).done;){var J=B.value;E.set(J.key,J.isVisible),J.isCurrent=!1,J.isVisible=!1}}catch(Ta){M.e(Ta)}finally{M.f()}var ue=iE(this.currentTiles),Ze;try{for(ue.s();!(Ze=ue.n()).done;){var st=Ze.value;st.isCurrent=!0,st.isVisible=!0}}catch(Ta){ue.e(Ta)}finally{ue.f()}var Fr=Array.from(this.cacheTiles.values());typeof d=="function"?d(Fr):hC[d](Fr);var Go=!1;Array.from(this.cacheTiles.values()).forEach(function(Ta){Ta.isVisible!==E.get(Ta.key)?(Ta.isVisibleChange=!0,Go=!0):Ta.isVisibleChange=!1}),Go&&this.emit(QS.TileUpdate)}},{key:"getTileIndices",value:function(d,E){var M=this.options,B=M.tileSize,J=M.extent,ue=M.zoomOffset,Ze=Math.floor(this.options.maxZoom),st=Math.ceil(this.options.minZoom),Fr=ZE({maxZoom:Ze,minZoom:st,zoomOffset:ue,tileSize:B,zoom:d,latLonBounds:E,extent:J});return Fr}},{key:"getTileId",value:function(d,E,M){var B="".concat(d,",").concat(E,",").concat(M);return B}},{key:"loadFinished",value:function(){var d=!this.currentTiles.some(function(E){return!E.isDone});return d&&this.emit(QS.TilesLoadFinished),d}},{key:"getTile",value:function(d,E,M){var B=this.getTileId(d,E,M),J=this.cacheTiles.get(B);return J}},{key:"createTile",value:function(d,E,M){var B=this.getTileId(d,E,M),J=new lC({x:d,y:E,z:M,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(B,J),J.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),J}},{key:"resizeCacheTiles",value:function(){var d=yT*this.currentTiles.length,E=this.cacheTiles.size>d;if(E){var M=iE(this.cacheTiles),B;try{for(M.s();!(B=M.n()).done;){var J=(0,hu.Z)(B.value,2),ue=J[0],Ze=J[1];if(!Ze.isVisible&&!this.currentTiles.includes(Ze)&&(this.cacheTiles.delete(ue),this.onTileUnload(Ze)),this.cacheTiles.size<=d)break}}catch(st){M.e(st)}finally{M.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var d=iE(this.cacheTiles.values()),E;try{for(d.s();!(E=d.n()).done;){var M=E.value;M.parent=null,M.children.length=0}}catch(st){d.e(st)}finally{d.f()}var B=iE(this.cacheTiles.values()),J;try{for(B.s();!(J=B.n()).done;){var ue=J.value,Ze=this.getNearestAncestor(ue.x,ue.y,ue.z);ue.parent=Ze,Ze!=null&&Ze.children&&Ze.children.push(ue)}}catch(st){B.e(st)}finally{B.f()}}},{key:"getNearestAncestor",value:function(d,E,M){for(;M>this.options.minZoom;){d=Math.floor(d/2),E=Math.floor(E/2),M=M-1;var B=this.getTile(d,E,M);if(B)return B}return null}}]),f}(TE());function K2(i){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(i)}function RC(i){var v=[],f=/\{([a-z])-([a-z])\}/.exec(i);if(f){var m=f[1].charCodeAt(0),d=f[2].charCodeAt(0),E;for(E=m;E<=d;++E)v.push(i.replace(f[0],String.fromCharCode(E)));return v}if(f=/\{(\d+)-(\d+)\}/.exec(i),f){for(var M=parseInt(f[2],10),B=parseInt(f[1],10);B<=M;B++)v.push(i.replace(f[0],B.toString()));return v}return v.push(i),v}function QC(i,v){if(!i||!i.length)throw new Error("url is not allowed to be empty");var f=v.x,m=v.y,d=v.z,E=RC(i),M=Math.abs(f+m)%E.length,B=jv(E[M])?"".concat(E[M],"/{z}/{x}/{y}"):E[M];return B.replace(/\{x\}/g,f.toString()).replace(/\{y\}/g,m.toString()).replace(/\{z\}/g,d.toString()).replace(/\{bbox\}/g,WE(f,m,d).join(",")).replace(/\{-y\}/g,(Math.pow(2,d)-m-1).toString())}function r1(i,v){var f=v.x,m=v.y,d=v.z,E=v.layer,M=v.version,B=M===void 0?"1.0.0":M,J=v.style,ue=J===void 0?"default":J,Ze=v.format,st=v.service,Fr=st===void 0?"WMTS":st,Go=v.tileMatrixset,Ta=RC(i),eu=Math.abs(f+m)%Ta.length,kd="".concat(Ta[eu],"&SERVICE=").concat(Fr,"&REQUEST=GetTile&VERSION=").concat(B,"&LAYER=").concat(E,"&STYLE=").concat(ue,"&TILEMATRIXSET=").concat(Go,"&FORMAT=").concat(Ze,"&TILECOL=").concat(f,"&TILEROW=").concat(m,"&TILEMATRIX=").concat(d);return kd}function j(i,v){if(!i)throw new Error(v||"web worker helper assertion failed.")}var Y={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},Te=Y.self||Y.window||{},Ue=Y.window||Y.self||{},Hn=Y.self||Y.window||{},za=Y.document||{},og=typeof importScripts=="function",it=typeof window!="undefined"&&typeof window.orientation!="undefined",z=function(){function i(v,f){var m=this;this.name=v,this.workerThread=f,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(d,E){m.resolve=d,m.reject=E})}return i.prototype.postMessage=function(v,f){this.workerThread.postMessage({source:"Main thread",type:v,payload:f})},i.prototype.done=function(v){j(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(v)},i.prototype.error=function(v){j(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(v)},i}(),we=z,et=new Map;function Tt(i){j(i.source&&!i.url||!i.source&&i.url);var v=et.get(i.source||i.url);return v||(i.url&&(v=_r(i.url),et.set(i.url,v)),i.source&&(v=va(i.source),et.set(i.source,v))),j(v),v}function _r(i){if(!i.startsWith("http"))return i;var v=La(i);return va(v)}function va(i){var v=new Blob([i],{type:"application/javascript"});return URL.createObjectURL(v)}function La(i){return`try { + `)}});return he}},{key:"key",get:function(){var a="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return a}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,al.Z)(mo().mark(function p(y){var w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts,Qs,Fs,Us;return mo().wrap(function(dl){for(;;)switch(dl.prev=dl.next){case 0:return w=y.getData,O=y.onLoad,V=y.onError,this.loadDataId++,he=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=pg.Loading,be=null,dl.prev=7,Pt=this.x,qt=this.y,En=this.z,qn=this.bounds,Zr=this.tileSize,Si=this.warp,to=Nf(Pt,qt,En,Si),ts=to.warpX,Qs=to.warpY,Fs=this.abortController.signal,Us={x:ts,y:Qs,z:En,bounds:qn,tileSize:Zr,signal:Fs,warp:Si},dl.next=14,w(Us,this);case 14:be=dl.sent,dl.next=20;break;case 17:dl.prev=17,dl.t0=dl.catch(7),ut=dl.t0;case 20:if(he===this.loadDataId){dl.next=22;break}return dl.abrupt("return");case 22:if(!(this.isCancelled&&!be)){dl.next=24;break}return dl.abrupt("return");case 24:if(!(ut||!be)){dl.next=28;break}return this.loadStatus=pg.Failure,V(ut,this),dl.abrupt("return");case 28:this.loadStatus=pg.Loaded,this.data=be,O(this);case 31:case"end":return dl.stop()}},p,this,[[7,17]])}));function a(p){return c.apply(this,arguments)}return a}()},{key:"reloadData",value:function(a){this.isLoading&&this.abortLoad(),this.loadData(a)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=pg.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(Ic.EventEmitter),Hh=function(d,l){var c=Ec(d),a=ou(c,l),p=360*3-180,y=85.0511287798065,w=[Math.max(a[0][0],-p),Math.max(a[0][1],-y),Math.min(a[1][0],p),Math.min(a[1][1],y)];return w},_p=function(d,l){var c=Ec(d),a=Ec(l),p=yu(c,a);return p};function Jf(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Up(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function Up(i,d){if(i){if(typeof i=="string")return fh(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return fh(i,d)}}function fh(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l=0&&be.x0;){var O=a.shift();O.abortLoad()}}},{key:"getTileByLngLat",value:function(a,p,y){var w=this.options.zoomOffset,O=Math.ceil(y)+w,V=Ep(a,p,O),he=this.tiles.filter(function(be){return be.key==="".concat(V[0],"_").concat(V[1],"_").concat(O)});return he[0]}},{key:"getTileExtent",value:function(a,p){return this.getTileIndices(p,a)}},{key:"getTileByZXY",value:function(a,p,y){var w=this.tiles.filter(function(O){return O.key==="".concat(p,"_").concat(y,"_").concat(a)});return w[0]}},{key:"clear",value:function(){var a=Jf(this.cacheTiles.values()),p;try{for(a.s();!(p=a.n()).done;){var y=p.value;y.isLoading?y.abortLoad():this.onTileUnload(y)}}catch(w){a.e(w)}finally{a.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var a=this.options.updateStrategy,p=new Map,y=Jf(this.cacheTiles.values()),w;try{for(y.s();!(w=y.n()).done;){var O=w.value;p.set(O.key,O.isVisible),O.isCurrent=!1,O.isVisible=!1}}catch(qt){y.e(qt)}finally{y.f()}var V=Jf(this.currentTiles),he;try{for(V.s();!(he=V.n()).done;){var be=he.value;be.isCurrent=!0,be.isVisible=!0}}catch(qt){V.e(qt)}finally{V.f()}var ut=Array.from(this.cacheTiles.values());typeof a=="function"?a(ut):Kh[a](ut);var Pt=!1;Array.from(this.cacheTiles.values()).forEach(function(qt){qt.isVisible!==p.get(qt.key)?(qt.isVisibleChange=!0,Pt=!0):qt.isVisibleChange=!1}),Pt&&this.emit(Gf.TileUpdate)}},{key:"getTileIndices",value:function(a,p){var y=this.options,w=y.tileSize,O=y.extent,V=y.zoomOffset,he=Math.floor(this.options.maxZoom),be=Math.ceil(this.options.minZoom),ut=zp({maxZoom:he,minZoom:be,zoomOffset:V,tileSize:w,zoom:a,latLonBounds:p,extent:O});return ut}},{key:"getTileId",value:function(a,p,y){var w="".concat(a,",").concat(p,",").concat(y);return w}},{key:"loadFinished",value:function(){var a=!this.currentTiles.some(function(p){return!p.isDone});return a&&this.emit(Gf.TilesLoadFinished),a}},{key:"getTile",value:function(a,p,y){var w=this.getTileId(a,p,y),O=this.cacheTiles.get(w);return O}},{key:"createTile",value:function(a,p,y){var w=this.getTileId(a,p,y),O=new ed({x:a,y:p,z:y,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(w,O),O.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),O}},{key:"resizeCacheTiles",value:function(){var a=Yp*this.currentTiles.length,p=this.cacheTiles.size>a;if(p){var y=Jf(this.cacheTiles),w;try{for(y.s();!(w=y.n()).done;){var O=(0,zn.Z)(w.value,2),V=O[0],he=O[1];if(!he.isVisible&&!this.currentTiles.includes(he)&&(this.cacheTiles.delete(V),this.onTileUnload(he)),this.cacheTiles.size<=a)break}}catch(be){y.e(be)}finally{y.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var a=Jf(this.cacheTiles.values()),p;try{for(a.s();!(p=a.n()).done;){var y=p.value;y.parent=null,y.children.length=0}}catch(be){a.e(be)}finally{a.f()}var w=Jf(this.cacheTiles.values()),O;try{for(w.s();!(O=w.n()).done;){var V=O.value,he=this.getNearestAncestor(V.x,V.y,V.z);V.parent=he,he!=null&&he.children&&he.children.push(V)}}catch(be){w.e(be)}finally{w.f()}}},{key:"getNearestAncestor",value:function(a,p,y){for(;y>this.options.minZoom;){a=Math.floor(a/2),p=Math.floor(p/2),y=y-1;var w=this.getTile(a,p,y);if(w)return w}return null}}]),l}(Hp());function Zc(i){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(i)}function Sd(i){var d=[],l=/\{([a-z])-([a-z])\}/.exec(i);if(l){var c=l[1].charCodeAt(0),a=l[2].charCodeAt(0),p;for(p=c;p<=a;++p)d.push(i.replace(l[0],String.fromCharCode(p)));return d}if(l=/\{(\d+)-(\d+)\}/.exec(i),l){for(var y=parseInt(l[2],10),w=parseInt(l[1],10);w<=y;w++)d.push(i.replace(l[0],w.toString()));return d}return d.push(i),d}function Hd(i,d){if(!i||!i.length)throw new Error("url is not allowed to be empty");var l=d.x,c=d.y,a=d.z,p=Sd(i),y=Math.abs(l+c)%p.length,w=Go(p[y])?"".concat(p[y],"/{z}/{x}/{y}"):p[y];return w.replace(/\{x\}/g,l.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,a.toString()).replace(/\{bbox\}/g,Bp(l,c,a).join(",")).replace(/\{-y\}/g,(Math.pow(2,a)-c-1).toString())}function Vo(i,d){var l=d.x,c=d.y,a=d.z,p=d.layer,y=d.version,w=y===void 0?"1.0.0":y,O=d.style,V=O===void 0?"default":O,he=d.format,be=d.service,ut=be===void 0?"WMTS":be,Pt=d.tileMatrixset,qt=Sd(i),En=Math.abs(l+c)%qt.length,qn="".concat(qt[En],"&SERVICE=").concat(ut,"&REQUEST=GetTile&VERSION=").concat(w,"&LAYER=").concat(p,"&STYLE=").concat(V,"&TILEMATRIXSET=").concat(Pt,"&FORMAT=").concat(he,"&TILECOL=").concat(l,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(a);return qn}function D(i,d){if(!i)throw new Error(d||"web worker helper assertion failed.")}var k={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},te=k.self||k.window||{},ue=k.window||k.self||{},Ke=k.self||k.window||{},_n=k.document||{},lr=typeof importScripts=="function",ye=typeof window!="undefined"&&typeof window.orientation!="undefined",S=function(){function i(d,l){var c=this;this.name=d,this.workerThread=l,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(a,p){c.resolve=a,c.reject=p})}return i.prototype.postMessage=function(d,l){this.workerThread.postMessage({source:"Main thread",type:d,payload:l})},i.prototype.done=function(d){D(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(d)},i.prototype.error=function(d){D(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(d)},i}(),J=S,ve=new Map;function Ae(i){D(i.source&&!i.url||!i.source&&i.url);var d=ve.get(i.source||i.url);return d||(i.url&&(d=Qe(i.url),ve.set(i.url,d)),i.source&&(d=Ht(i.source),ve.set(i.source,d))),D(d),d}function Qe(i){if(!i.startsWith("http"))return i;var d=Qt(i);return Ht(d)}function Ht(i){var d=new Blob([i],{type:"application/javascript"});return URL.createObjectURL(d)}function Qt(i){return`try { importScripts('`+i+`'); } catch (error) { console.error(error); throw error; -}`}function yu(i,v,f){v===void 0&&(v=!0);var m=f||new Set;if(i){if(Wg(i))m.add(i);else if(Wg(i.buffer))m.add(i.buffer);else if(!ArrayBuffer.isView(i)){if(v&&typeof i=="object")for(var d in i)yu(i[d],v,m)}}return f===void 0?Array.from(m):[]}function Wg(i){return i?i instanceof ArrayBuffer||typeof MessagePort!="undefined"&&i instanceof MessagePort||typeof ImageBitmap!="undefined"&&i instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&i instanceof OffscreenCanvas:!1}var re=function(){},pe=function(){function i(v){this.terminated=!1,this.loadableURL="";var f=v.name,m=v.source,d=v.url;j(m||d),this.name=f,this.source=m,this.url=d,this.onMessage=re,this.onError=function(E){return console.log(E)},this.worker=this.createBrowserWorker()}return i.isSupported=function(){return typeof Worker!="undefined"},i.prototype.destroy=function(){this.onMessage=re,this.onError=re,this.worker.terminate(),this.terminated=!0},Object.defineProperty(i.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),i.prototype.postMessage=function(v,f){f=f||yu(v),this.worker.postMessage(v,f)},i.prototype.getErrorFromErrorEvent=function(v){var f="Failed to load ";return f+="worker "+this.name+" from "+this.url+". ",v.message&&(f+=v.message+" in "),v.lineno&&(f+=":"+v.lineno+":"+v.colno),new Error(f)},i.prototype.createBrowserWorker=function(){var v=this;this.loadableURL=Tt({source:this.source,url:this.url});var f=new Worker(this.loadableURL,{name:this.name});return f.onmessage=function(m){m.data?v.onMessage(m.data):v.onError(new Error("No data received"))},f.onerror=function(m){v.onError(v.getErrorFromErrorEvent(m)),v.terminated=!0},f.onmessageerror=function(m){return console.error("worker "+v.name+", message error: "+m)},f},i}(),ge=pe,Le=function(){return Le=Object.assign||function(i){for(var v,f=1,m=arguments.length;f0&&E[E.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!E||ue[1]>E[0]&&ue[1]this.getMaxConcurrency();f?(v.destroy(),this.count--):this.idleQueue.push(v),this.isDestroyed||this.startQueuedJob()},i.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=i.length&&(i=void 0),{value:i&&i[m++],done:!i}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},I0={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},K0=function(){function i(v){this.workerPools=new Map,this.props=Lg({},I0),this.setProps(v),this.workerPools=new Map}return i.isSupported=function(){return ge.isSupported()},i.getWorkerFarm=function(v){return v===void 0&&(v={}),i.workerFarm=i.workerFarm||new i({}),i.workerFarm.setProps(v),i.workerFarm},i.prototype.destroy=function(){var v,f;try{for(var m=ou(this.workerPools.values()),d=m.next();!d.done;d=m.next()){var E=d.value;E.destroy()}}catch(M){v={error:M}}finally{try{d&&!d.done&&(f=m.return)&&f.call(m)}finally{if(v)throw v.error}}},i.prototype.setProps=function(v){var f,m;this.props=Lg(Lg({},this.props),v);try{for(var d=ou(this.workerPools.values()),E=d.next();!E.done;E=d.next()){var M=E.value;M.setProps(this.getWorkerPoolProps())}}catch(B){f={error:B}}finally{try{E&&!E.done&&(m=d.return)&&m.call(d)}finally{if(f)throw f.error}}},i.prototype.getWorkerPool=function(v){var f=v.name,m=v.source,d=v.url,E=this.workerPools.get(f);return E||(E=new Ua({name:f,source:m,url:d}),E.setProps(this.getWorkerPoolProps()),this.workerPools.set(f,E)),E},i.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},i}(),fv=K0,Yv=new Map,d1=function(){function i(){}return Object.defineProperty(i,"onmessage",{set:function(v){self.onmessage=function(f){if(e1(f)){var m=f.data,d=m.type,E=m.payload;v(d,E)}}},enumerable:!1,configurable:!0}),i.addEventListener=function(v){var f=Yv.get(v);f||(f=function(m){if(e1(m)){var d=m.data,E=d.type,M=d.payload;v(E,M)}}),self.addEventListener("message",f)},i.removeEventListener=function(v){var f=Yv.get(v);Yv.delete(v),self.removeEventListener("message",f)},i.postMessage=function(v,f){if(self){var m={source:"Worker thread",type:v,payload:f},d=yu(f);self.postMessage(m,d)}},i}(),uv=null;function e1(i){var v=i.type,f=i.data;return v==="message"&&f&&typeof f.source=="string"&&f.source==="Main thread"}function iy(i){return JSON.parse(Jy(i))}function Jy(i){var v=new Set;return JSON.stringify(i,function(f,m){if(typeof m=="object"&&m!==null){if(v.has(m))try{return JSON.parse(JSON.stringify(m))}catch(d){return}v.add(m)}return m})}function qy(i){return""+i.name}function H_(i,v){v===void 0&&(v={});var f=v[i.id]||{},m=i.name+".worker.js",d=f.workerUrl;return v._workerType==="test"&&(d=i.module+"/dist/"+m),d||(d="https://unpkg.com/"+i.module+"/dist/"+m),assert(d),d}var x_=function(i,v,f,m){function d(E){return E instanceof f?E:new f(function(M){M(E)})}return new(f||(f=Promise))(function(E,M){function B(Ze){try{ue(m.next(Ze))}catch(st){M(st)}}function J(Ze){try{ue(m.throw(Ze))}catch(st){M(st)}}function ue(Ze){Ze.done?E(Ze.value):d(Ze.value).then(B,J)}ue((m=m.apply(i,v||[])).next())})},lx=function(i,v){var f={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},m,d,E,M;return M={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function B(ue){return function(Ze){return J([ue,Ze])}}function J(ue){if(m)throw new TypeError("Generator is already executing.");for(;f;)try{if(m=1,d&&(E=ue[0]&2?d.return:ue[0]?d.throw||((E=d.return)&&E.call(d),0):d.next)&&!(E=E.call(d,ue[1])).done)return E;switch(d=0,E&&(ue=[ue[0]&2,E.value]),ue[0]){case 0:case 1:E=ue;break;case 4:return f.label++,{value:ue[1],done:!1};case 5:f.label++,d=ue[1],ue=[0];continue;case 7:ue=f.ops.pop(),f.trys.pop();continue;default:if(E=f.trys,!(E=E.length>0&&E[E.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!E||ue[1]>E[0]&&ue[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var f=this._settlers.shift();v instanceof Error?f.reject(v):f.resolve({value:v})}else this._values.push(v)},i.prototype.close=function(){for(;this._settlers.length>0;){var v=this._settlers.shift();v.resolve({done:!0})}this._closed=!0},i.prototype.next=function(){var v=this;if(this._values.length>0){var f=this._values.shift();return f instanceof Error?Promise.reject(f):Promise.resolve({done:!1,value:f})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(m,d){v._settlers.push({resolve:m,reject:d})})},i}(),ww=null,uC=function(i,v,f,m){function d(E){return E instanceof f?E:new f(function(M){M(E)})}return new(f||(f=Promise))(function(E,M){function B(Ze){try{ue(m.next(Ze))}catch(st){M(st)}}function J(Ze){try{ue(m.throw(Ze))}catch(st){M(st)}}function ue(Ze){Ze.done?E(Ze.value):d(Ze.value).then(B,J)}ue((m=m.apply(i,v||[])).next())})},Qw=function(i,v){var f={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},m,d,E,M;return M={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function B(ue){return function(Ze){return J([ue,Ze])}}function J(ue){if(m)throw new TypeError("Generator is already executing.");for(;f;)try{if(m=1,d&&(E=ue[0]&2?d.return:ue[0]?d.throw||((E=d.return)&&E.call(d),0):d.next)&&!(E=E.call(d,ue[1])).done)return E;switch(d=0,E&&(ue=[ue[0]&2,E.value]),ue[0]){case 0:case 1:E=ue;break;case 4:return f.label++,{value:ue[1],done:!1};case 5:f.label++,d=ue[1],ue=[0];continue;case 7:ue=f.ops.pop(),f.trys.pop();continue;default:if(E=f.trys,!(E=E.length>0&&E[E.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!E||ue[1]>E[0]&&ue[1]0&&E[E.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!E||ue[1]>E[0]&&ue[1]0&&(d=1/Math.sqrt(d)),i[0]=v[0]*d,i[1]=v[1]*d,i}function OT(i,v){return i[0]*v[0]+i[1]*v[1]}function s3(i,v,f){var m=v[0]*f[1]-v[1]*f[0];return i[0]=i[1]=0,i[2]=m,i}function WT(i,v,f,m){var d=v[0],E=v[1];return i[0]=d+m*(f[0]-d),i[1]=E+m*(f[1]-E),i}function aD(i,v){v=v||1;var f=glMatrix.RANDOM()*2*Math.PI;return i[0]=Math.cos(f)*v,i[1]=Math.sin(f)*v,i}function gE(i,v,f){var m=v[0],d=v[1];return i[0]=f[0]*m+f[2]*d,i[1]=f[1]*m+f[3]*d,i}function qE(i,v,f){var m=v[0],d=v[1];return i[0]=f[0]*m+f[2]*d+f[4],i[1]=f[1]*m+f[3]*d+f[5],i}function TS(i,v,f){var m=v[0],d=v[1];return i[0]=f[0]*m+f[3]*d+f[6],i[1]=f[1]*m+f[4]*d+f[7],i}function Z3(i,v,f){var m=v[0],d=v[1];return i[0]=f[0]*m+f[4]*d+f[12],i[1]=f[1]*m+f[5]*d+f[13],i}function H3(i,v,f,m){var d=v[0]-f[0],E=v[1]-f[1],M=Math.sin(m),B=Math.cos(m);return i[0]=d*B-E*M+f[0],i[1]=d*M+E*B+f[1],i}function VA(i,v){var f=i[0],m=i[1],d=v[0],E=v[1],M=Math.sqrt(f*f+m*m)*Math.sqrt(d*d+E*E),B=M&&(f*d+m*E)/M;return Math.acos(Math.min(Math.max(B,-1),1))}function D3(i){return i[0]=0,i[1]=0,i}function AD(i){return"vec2("+i[0]+", "+i[1]+")"}function dD(i,v){return i[0]===v[0]&&i[1]===v[1]}function rS(i,v){var f=i[0],m=i[1],d=v[0],E=v[1];return Math.abs(f-d)<=glMatrix.EPSILON*Math.max(1,Math.abs(f),Math.abs(d))&&Math.abs(m-E)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(E))}var G3=null,tA=wS,JA=null,QA=null,e3=null,aT=null,VT=null,y3=function(){var i=cC();return function(v,f,m,d,E,M){var B,J;for(f||(f=2),m||(m=0),d?J=Math.min(d*f+m,v.length):J=v.length,B=m;B0&&arguments[0]!==void 0?arguments[0]:{};(0,Zr.Z)(this,i),(0,Na.Z)(this,"lastFlip",-1),(0,Na.Z)(this,"miter",wT(0,0)),(0,Na.Z)(this,"started",!1),(0,Na.Z)(this,"dash",!1),(0,Na.Z)(this,"totalDistance",0),(0,Na.Z)(this,"currentIndex",0),this.join=v.join||"miter",this.cap=v.cap||"butt",this.miterLimit=v.miterLimit||10,this.thickness=v.thickness||1,this.dash=v.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,gt.Z)(i,[{key:"extrude_gaode2",value:function(f,m){var d=this.complex;if(f.length<=1)return d;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var E=f.length,M=d.startIndex,B=1;Bthis.miterLimit&&(h2=!0)}h2?(Go.push(this.normal[0],this.normal[1],0),Go.push(yx[0],yx[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,st.push.apply(st,(0,su.Z)(this.lastFlip!==-ux?[m,m+2,m+3]:[m+2,m+1,m+3])),st.push(m+2,m+3,m+4),Eu(PA,he),oE(this.normal,PA),Go.push(this.normal[0],this.normal[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ze+=3):(this.extrusions(Fr,Go,E,yx,C_,this.totalDistance),st.push.apply(st,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),ux=-1,oE(this.normal,yx),Ze+=2),this.lastFlip=ux}else{if(Eu(this.normal,Qe),Ta){var fy=cC(),J1=cC();tA(J1,Qe,this.normal),WC(fy,Qe,this.normal),Go.push(J1[0],J1[1],0),Go.push(fy[0],fy[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Fr,Go,E,this.normal,this.thickness,this.totalDistance);st.push.apply(st,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),Ze+=2}return Ze}},{key:"simpleSegment",value:function(f,m,d,E,M){var B=0,J=f.indices,ue=f.positions,Ze=f.normals,st=VC([E[0],E[1]]),Fr=VC([d[0],d[1]]);Ne(Qe,st,Fr);var Go=0;if(this.dash&&(Go=this.lineSegmentDistance(st,Fr),this.totalDistance+=Go),this.normal||(this.normal=cC(),Eu(this.normal,Qe)),this.started||(this.started=!0,this.extrusions(ue,Ze,d,this.normal,this.thickness,this.totalDistance-Go)),J.push(m+0,m+1,m+2),!M)Eu(this.normal,Qe),this.extrusions(ue,Ze,E,this.normal,this.thickness,this.totalDistance),J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),B+=2;else{var Ta=VC([M[0],M[1]]);Me(st,Ta)&&WC(Ta,st,CA(Ta,wS(Ta,st,Fr))),Ne(he,Ta,st);var eu=ci(yt,cC(),Qe,he,this.thickness),kd=(0,hu.Z)(eu,2),em=kd[0],B0=kd[1],vv=OT(yt,this.normal)<0?-1:1;this.extrusions(ue,Ze,E,B0,em,this.totalDistance),J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),vv=-1,oE(this.normal,B0),B+=2,this.lastFlip=vv}return B}},{key:"segment",value:function(f,m,d,E,M){var B=0,J=f.indices,ue=f.positions,Ze=f.normals,st=this.cap==="square",Fr=this.join==="bevel",Go=VC([E[0],E[1]]),Ta=VC([d[0],d[1]]);Ne(Qe,Go,Ta);var eu=0;if(this.dash&&(eu=this.lineSegmentDistance(Go,Ta),this.totalDistance+=eu),this.normal||(this.normal=cC(),Eu(this.normal,Qe)),!this.started)if(this.started=!0,st){var kd=cC(),em=cC();WC(kd,this.normal,Qe),WC(em,this.normal,Qe),Ze.push(em[0],em[1],0),Ze.push(kd[0],kd[1],0),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,-this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ze,d,this.normal,this.thickness,this.totalDistance-eu);if(J.push(m+0,m+1,m+2),M){var y1=VC([M[0],M[1]]);Me(Go,y1)&&WC(y1,Go,CA(y1,wS(y1,Go,Ta))),Ne(he,y1,Go);var fy=ci(yt,cC(),Qe,he,this.thickness),J1=(0,hu.Z)(fy,2),ey=J1[0],Fy=J1[1],C_=OT(yt,this.normal)<0?-1:1,yx=Fr;if(!yx&&this.join==="miter"){var ux=ey;ux>this.miterLimit&&(yx=!0)}yx?(Ze.push(this.normal[0],this.normal[1],0),Ze.push(Fy[0],Fy[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,J.push.apply(J,(0,su.Z)(this.lastFlip!==-C_?[m,m+2,m+3]:[m+2,m+1,m+3])),J.push(m+2,m+3,m+4),Eu(PA,he),oE(this.normal,PA),Ze.push(this.normal[0],this.normal[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ue,Ze,E,Fy,ey,this.totalDistance),J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),C_=-1,oE(this.normal,Fy),B+=2),this.lastFlip=C_}else{if(Eu(this.normal,Qe),st){var B0=cC(),vv=cC();tA(vv,Qe,this.normal),WC(B0,Qe,this.normal),Ze.push(vv[0],vv[1],0),Ze.push(B0[0],B0[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ze,E,this.normal,this.thickness,this.totalDistance);J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),B+=2}return B}},{key:"extrusions",value:function(f,m,d,E,M,B){m.push(E[0],E[1],0),m.push(E[0],E[1],0),f.push(d[0],d[1],d[2]|0,B,-M,d[2]|0),this.complex.indexes.push(this.currentIndex),f.push(d[0],d[1],d[2]|0,B,M,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(f,m){var d=m[0]-f[0],E=m[1]-f[1];return Math.sqrt(d*d+E*E)}}]),i}();function Ir(i){var v=i.coordinates,f=i.originCoordinates,m=i.version,d=new wr({dash:!0,join:"bevel"});if(m==="GAODE2.x"){var E=v;Array.isArray(E[0][0])||(E=[v]);var M=f;Array.isArray(M[0][0])||(M=[f]);for(var B=0;B0}).forEach(function(em,B0){var vv=f0(em[B]);(0,ai.flattenEach)(vv,function(y1){var fy=(0,Ca.getCoords)(y1),J1=(0,vn.Z)((0,vn.Z)({},em),{},{_id:B0,coordinates:fy});J.push(J1)})}),{dataArray:J};for(var ue=0;ue>>0}function f1(i,v){return v===void 0?null:typeof(i.properties[v]*1)=="number"?i.properties[v]*1:i.properties&&i.properties[v]?pv(i.properties[v]+"")%1000019:null}function Jv(i,v){var f=[],m={};return i.features?(i.features=i.features.filter(function(d){var E=d.geometry;return d!=null&&E&&E.type&&E.coordinates&&E.coordinates.length>0}),i=f0(i),i.features.length===0?{dataArray:[],featureKeys:m}:((0,ai.flattenEach)(i,function(d,E){var M=f1(d,v==null?void 0:v.featureId);M===null&&(M=E);var B=M,J=(0,Ca.getCoords)(d),ue=(0,vn.Z)((0,vn.Z)({},d.properties),{},{coordinates:J,_id:B});f.push(ue)}),{dataArray:f,featureKeys:m})):(i.features=[],{dataArray:[]})}function m1(i,v,f,m){for(var d=m,E=f-v>>1,M=f-v,B,J=i[v],ue=i[v+1],Ze=i[f],st=i[f+1],Fr=v+3;Frd)B=Fr,d=Go;else if(Go===d){var Ta=Math.abs(Fr-E);Tam&&(B-v>3&&m1(i,v,B,m),i[B+2]=d,f-B>3&&m1(i,B,f,m))}function Iy(i,v,f,m,d,E){var M=d-f,B=E-m;if(M!==0||B!==0){var J=((i-f)*M+(v-m)*B)/(M*M+B*B);J>1?(f=d,m=E):J>0&&(f+=M*J,m+=B*J)}return M=i-f,B=v-m,M*M+B*B}function n1(i,v,f,m){var d={id:typeof i=="undefined"?null:i,type:v,geometry:f,tags:m,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return t_(d),d}function t_(i){var v=i.geometry,f=i.type;if(f==="Point"||f==="MultiPoint"||f==="LineString")O1(i,v);else if(f==="Polygon"||f==="MultiLineString")for(var m=0;m0&&(m?M+=(d*ue-J*E)/2:M+=Math.sqrt(Math.pow(J-d,2)+Math.pow(ue-E,2))),d=J,E=ue}var Ze=v.length-3;v[2]=1,m1(v,0,Ze,f),v[Ze+2]=1,v.size=Math.abs(M),v.start=0,v.end=v.size}function Da(i,v,f,m){for(var d=0;d1?1:f}function Kv(i,v,f,m,d,E,M,B){if(f/=v,m/=v,E>=f&&M=m)return null;for(var J=[],ue=0;ue=f&&Ta=m)continue;var eu=[];if(Fr==="Point"||Fr==="MultiPoint")l1(st,eu,f,m,d);else if(Fr==="LineString")V1(st,eu,f,m,d,!1,B.lineMetrics);else if(Fr==="MultiLineString")Ev(st,eu,f,m,d,!1);else if(Fr==="Polygon")Ev(st,eu,f,m,d,!0);else if(Fr==="MultiPolygon")for(var kd=0;kd=f&&M<=m&&(v.push(i[E]),v.push(i[E+1]),v.push(i[E+2]))}}function V1(i,v,f,m,d,E,M){for(var B=q0(i),J=d===0?Q1:vy,ue=i.start,Ze,st,Fr=0;Frf&&(st=J(B,Go,Ta,kd,em,f),M&&(B.start=ue+Ze*st)):B0>m?vv=f&&(st=J(B,Go,Ta,kd,em,f),y1=!0),vv>m&&B0<=m&&(st=J(B,Go,Ta,kd,em,m),y1=!0),!E&&y1&&(M&&(B.end=ue+Ze*st),v.push(B),B=q0(i)),M&&(ue+=Ze)}var fy=i.length-3;Go=i[fy],Ta=i[fy+1],eu=i[fy+2],B0=d===0?Go:Ta,B0>=f&&B0<=m&&Fv(B,Go,Ta,eu),fy=B.length-3,E&&fy>=3&&(B[fy]!==B[0]||B[fy+1]!==B[1])&&Fv(B,B[0],B[1],B[2]),B.length&&v.push(B)}function q0(i){var v=[];return v.size=i.size,v.start=i.start,v.end=i.end,v}function Ev(i,v,f,m,d,E){for(var M=0;MM.maxX&&(M.maxX=Ze),st>M.maxY&&(M.maxY=st)}return M}function G_(i,v,f,m){var d=v.geometry,E=v.type,M=[];if(E==="Point"||E==="MultiPoint")for(var B=0;B0&&v.size<(d?M:m)){f.numPoints+=v.length/3;return}for(var B=[],J=0;JM)&&(f.numSimplified++,B.push(v[J]),B.push(v[J+1])),f.numPoints++;d&&Uv(B,E),i.push(B)}function Uv(i,v){for(var f=0,m=0,d=i.length,E=d-2;m0===v)for(m=0,d=i.length;m24)throw new Error("maxZoom should be in the 0-24 range");if(v.promoteId&&v.generateId)throw new Error("promoteId and generateId cannot be used together.");var m=Mv(i,v);this.tiles={},this.tileCoords=[],f&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",v.indexMaxZoom,v.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),m=nn(m,v),m.length&&this.splitTile(m,0,0,0),f&&(m.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}x1.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},x1.prototype.splitTile=function(i,v,f,m,d,E,M){for(var B=[i,v,f,m],J=this.options,ue=J.debug;B.length;){m=B.pop(),f=B.pop(),v=B.pop(),i=B.pop();var Ze=1<1&&console.time("creation"),Fr=this.tiles[st]=p_(i,v,f,m,J),this.tileCoords.push({z:v,x:f,y:m}),ue)){ue>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",v,f,m,Fr.numFeatures,Fr.numPoints,Fr.numSimplified),console.timeEnd("creation"));var Go="z"+v;this.stats[Go]=(this.stats[Go]||0)+1,this.total++}if(Fr.source=i,d){if(v===J.maxZoom||v===d)continue;var Ta=1<1&&console.time("clipping");var eu=.5*J.buffer/J.extent,kd=.5-eu,em=.5+eu,B0=1+eu,vv,y1,fy,J1,ey,Fy;vv=y1=fy=J1=null,ey=Kv(i,Ze,f-eu,f+em,0,Fr.minX,Fr.maxX,J),Fy=Kv(i,Ze,f+kd,f+B0,0,Fr.minX,Fr.maxX,J),i=null,ey&&(vv=Kv(ey,Ze,m-eu,m+em,1,Fr.minY,Fr.maxY,J),y1=Kv(ey,Ze,m+kd,m+B0,1,Fr.minY,Fr.maxY,J),ey=null),Fy&&(fy=Kv(Fy,Ze,m-eu,m+em,1,Fr.minY,Fr.maxY,J),J1=Kv(Fy,Ze,m+kd,m+B0,1,Fr.minY,Fr.maxY,J),Fy=null),ue>1&&console.timeEnd("clipping"),B.push(vv||[],v+1,f*2,m*2),B.push(y1||[],v+1,f*2,m*2+1),B.push(fy||[],v+1,f*2+1,m*2),B.push(J1||[],v+1,f*2+1,m*2+1)}}},x1.prototype.getTile=function(i,v,f){var m=this.options,d=m.extent,E=m.debug;if(i<0||i>24)return null;var M=1<1&&console.log("drilling down to z%d-%d-%d",i,v,f);for(var J=i,ue=v,Ze=f,st;!st&&J>0;)J--,ue=Math.floor(ue/2),Ze=Math.floor(Ze/2),st=this.tiles[by(J,ue,Ze)];return!st||!st.source?null:(E>1&&console.log("found parent tile z%d-%d-%d",J,ue,Ze),E>1&&console.time("drilling down"),this.splitTile(st.source,J,ue,Ze,i,v,f),E>1&&console.timeEnd("drilling down"),this.tiles[B]?hx(this.tiles[B],d):null)};function by(i,v,f){return((1<0)switch(m[0]){case"band":try{i[d]=v[m[1]][f]}catch(E){console.warn("Raster Data err!"),i[d]=0}break;default:_C(m,v,f)}})}function Yw(i){var v=(0,hu.Z)(i,3),f=v[0],m=v[1],d=m===void 0?-1:m,E=v[2],M=E===void 0?-1:E;if(f===void 0)return console.warn("Express err!"),["+",0,0];var B=f.replace(/\s+/g,"");return[B,d,M]}function kw(i){var v=Yw(i),f=v[0],m=v[1],d=v[2];return Array.isArray(m)&&(m=kw(i[1])),Array.isArray(d)&&(d=kw(i[2])),XS(f,m,d)}var Bv={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:e_}};function e_(i,v){for(var f=i[0].rasterData,m=i[1].rasterData,d=i[2].rasterData,E=[],M=(v==null?void 0:v.countCut)||[2,98],B=(0,hu.Z)(M,2),J=B[0],ue=B[1],Ze=(v==null?void 0:v.RMinMax)||u2(f,J,ue),st=(v==null?void 0:v.GMinMax)||u2(m,J,ue),Fr=(v==null?void 0:v.BMinMax)||u2(d,J,ue),Go=0;Go"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},m0=l(52155),Hv=l.n(m0);function _1(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=kv(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function kv(i,v){if(i){if(typeof i=="string")return L1(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return L1(i,v)}}function L1(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fE&&(Go=0,Fr++),B[eu]={x:Go,y:st+Fr*uy,width:uy,height:uy,advance:em},Go+=uy}});var Ta=m+d*2;return{mapping:B,xOffset:Go,yOffset:st+Fr*Ta,canvasHeight:dy(st+(Fr+1)*Ta)}}function Ey(i,v,f){var m=0,d=0,E=0,M=[],B={},J=_1(i),ue;try{for(J.s();!(ue=J.n()).done;){var Ze=ue.value;if(!B[Ze.id]){var st=Ze.size;m+st+v>f&&(xv(B,M,d),m=0,d=E+d+v,E=0,M=[]),M.push({icon:Ze,xOffset:m}),m=m+st+v,E=Math.max(E,st)}}}catch(Go){J.e(Go)}finally{J.f()}M.length>0&&xv(B,M,d);var Fr=dy(E+d+v);return{mapping:B,canvasHeight:Fr}}function xv(i,v,f){var m=_1(v),d;try{for(m.s();!(d=m.n()).done;){var E=d.value,M=E.icon,B=E.xOffset;i[M.id]=(0,vn.Z)((0,vn.Z)({},M),{},{x:B,y:f,image:M.image,width:M.width,height:M.height})}}catch(J){m.e(J)}finally{m.f()}}function dy(i){return Math.pow(2,Math.ceil(Math.log2(i)))}var c_,Hy;function nx(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=bx(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function bx(i,v){if(i){if(typeof i=="string")return Rx(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return Rx(i,v)}}function Rx(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0&&p[p.length-1])&&(V[0]===6||V[0]===2)){l=0;continue}if(V[0]===3&&(!p||V[1]>p[0]&&V[1]this.getMaxConcurrency();l?(d.destroy(),this.count--):this.idleQueue.push(d),this.isDestroyed||this.startQueuedJob()},i.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},mi={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},Mi=function(){function i(d){this.workerPools=new Map,this.props=_r({},mi),this.setProps(d),this.workerPools=new Map}return i.isSupported=function(){return G.isSupported()},i.getWorkerFarm=function(d){return d===void 0&&(d={}),i.workerFarm=i.workerFarm||new i({}),i.workerFarm.setProps(d),i.workerFarm},i.prototype.destroy=function(){var d,l;try{for(var c=Dn(this.workerPools.values()),a=c.next();!a.done;a=c.next()){var p=a.value;p.destroy()}}catch(y){d={error:y}}finally{try{a&&!a.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}},i.prototype.setProps=function(d){var l,c;this.props=_r(_r({},this.props),d);try{for(var a=Dn(this.workerPools.values()),p=a.next();!p.done;p=a.next()){var y=p.value;y.setProps(this.getWorkerPoolProps())}}catch(w){l={error:w}}finally{try{p&&!p.done&&(c=a.return)&&c.call(a)}finally{if(l)throw l.error}}},i.prototype.getWorkerPool=function(d){var l=d.name,c=d.source,a=d.url,p=this.workerPools.get(l);return p||(p=new bn({name:l,source:c,url:a}),p.setProps(this.getWorkerPoolProps()),this.workerPools.set(l,p)),p},i.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},i}(),Ji=Mi,zo=new Map,Yo=function(){function i(){}return Object.defineProperty(i,"onmessage",{set:function(d){self.onmessage=function(l){if(Fo(l)){var c=l.data,a=c.type,p=c.payload;d(a,p)}}},enumerable:!1,configurable:!0}),i.addEventListener=function(d){var l=zo.get(d);l||(l=function(c){if(Fo(c)){var a=c.data,p=a.type,y=a.payload;d(p,y)}}),self.addEventListener("message",l)},i.removeEventListener=function(d){var l=zo.get(d);zo.delete(d),self.removeEventListener("message",l)},i.postMessage=function(d,l){if(self){var c={source:"Worker thread",type:d,payload:l},a=$n(l);self.postMessage(c,a)}},i}(),Gi=null;function Fo(i){var d=i.type,l=i.data;return d==="message"&&l&&typeof l.source=="string"&&l.source==="Main thread"}function js(i){return JSON.parse(za(i))}function za(i){var d=new Set;return JSON.stringify(i,function(l,c){if(typeof c=="object"&&c!==null){if(d.has(c))try{return JSON.parse(JSON.stringify(c))}catch(a){return}d.add(c)}return c})}function Oa(i){return""+i.name}function Ul(i,d){d===void 0&&(d={});var l=d[i.id]||{},c=i.name+".worker.js",a=l.workerUrl;return d._workerType==="test"&&(a=i.module+"/dist/"+c),a||(a="https://unpkg.com/"+i.module+"/dist/"+c),assert(a),a}var cl=function(i,d,l,c){function a(p){return p instanceof l?p:new l(function(y){y(p)})}return new(l||(l=Promise))(function(p,y){function w(he){try{V(c.next(he))}catch(be){y(be)}}function O(he){try{V(c.throw(he))}catch(be){y(be)}}function V(he){he.done?p(he.value):a(he.value).then(w,O)}V((c=c.apply(i,d||[])).next())})},du=function(i,d){var l={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},c,a,p,y;return y={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function w(V){return function(he){return O([V,he])}}function O(V){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,a&&(p=V[0]&2?a.return:V[0]?a.throw||((p=a.return)&&p.call(a),0):a.next)&&!(p=p.call(a,V[1])).done)return p;switch(a=0,p&&(V=[V[0]&2,p.value]),V[0]){case 0:case 1:p=V;break;case 4:return l.label++,{value:V[1],done:!1};case 5:l.label++,a=V[1],V=[0];continue;case 7:V=l.ops.pop(),l.trys.pop();continue;default:if(p=l.trys,!(p=p.length>0&&p[p.length-1])&&(V[0]===6||V[0]===2)){l=0;continue}if(V[0]===3&&(!p||V[1]>p[0]&&V[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var l=this._settlers.shift();d instanceof Error?l.reject(d):l.resolve({value:d})}else this._values.push(d)},i.prototype.close=function(){for(;this._settlers.length>0;){var d=this._settlers.shift();d.resolve({done:!0})}this._closed=!0},i.prototype.next=function(){var d=this;if(this._values.length>0){var l=this._values.shift();return l instanceof Error?Promise.reject(l):Promise.resolve({done:!1,value:l})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(c,a){d._settlers.push({resolve:c,reject:a})})},i}(),vh=null,td=function(i,d,l,c){function a(p){return p instanceof l?p:new l(function(y){y(p)})}return new(l||(l=Promise))(function(p,y){function w(he){try{V(c.next(he))}catch(be){y(be)}}function O(he){try{V(c.throw(he))}catch(be){y(be)}}function V(he){he.done?p(he.value):a(he.value).then(w,O)}V((c=c.apply(i,d||[])).next())})},Gh=function(i,d){var l={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},c,a,p,y;return y={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function w(V){return function(he){return O([V,he])}}function O(V){if(c)throw new TypeError("Generator is already executing.");for(;l;)try{if(c=1,a&&(p=V[0]&2?a.return:V[0]?a.throw||((p=a.return)&&p.call(a),0):a.next)&&!(p=p.call(a,V[1])).done)return p;switch(a=0,p&&(V=[V[0]&2,p.value]),V[0]){case 0:case 1:p=V;break;case 4:return l.label++,{value:V[1],done:!1};case 5:l.label++,a=V[1],V=[0];continue;case 7:V=l.ops.pop(),l.trys.pop();continue;default:if(p=l.trys,!(p=p.length>0&&p[p.length-1])&&(V[0]===6||V[0]===2)){l=0;continue}if(V[0]===3&&(!p||V[1]>p[0]&&V[1]0&&p[p.length-1])&&(V[0]===6||V[0]===2)){l=0;continue}if(V[0]===3&&(!p||V[1]>p[0]&&V[1]0&&(a=1/Math.sqrt(a)),i[0]=d[0]*a,i[1]=d[1]*a,i}function gg(i,d){return i[0]*d[0]+i[1]*d[1]}function n0(i,d,l){var c=d[0]*l[1]-d[1]*l[0];return i[0]=i[1]=0,i[2]=c,i}function Fg(i,d,l,c){var a=d[0],p=d[1];return i[0]=a+c*(l[0]-a),i[1]=p+c*(l[1]-p),i}function tv(i,d){d=d||1;var l=glMatrix.RANDOM()*2*Math.PI;return i[0]=Math.cos(l)*d,i[1]=Math.sin(l)*d,i}function hp(i,d,l){var c=d[0],a=d[1];return i[0]=l[0]*c+l[2]*a,i[1]=l[1]*c+l[3]*a,i}function Gp(i,d,l){var c=d[0],a=d[1];return i[0]=l[0]*c+l[2]*a+l[4],i[1]=l[1]*c+l[3]*a+l[5],i}function Cf(i,d,l){var c=d[0],a=d[1];return i[0]=l[0]*c+l[3]*a+l[6],i[1]=l[1]*c+l[4]*a+l[7],i}function P0(i,d,l){var c=d[0],a=d[1];return i[0]=l[0]*c+l[4]*a+l[12],i[1]=l[1]*c+l[5]*a+l[13],i}function H0(i,d,l,c){var a=d[0]-l[0],p=d[1]-l[1],y=Math.sin(c),w=Math.cos(c);return i[0]=a*w-p*y+l[0],i[1]=a*y+p*w+l[1],i}function Om(i,d){var l=i[0],c=i[1],a=d[0],p=d[1],y=Math.sqrt(l*l+c*c)*Math.sqrt(a*a+p*p),w=y&&(l*a+c*p)/y;return Math.acos(Math.min(Math.max(w,-1),1))}function R0(i){return i[0]=0,i[1]=0,i}function hv(i){return"vec2("+i[0]+", "+i[1]+")"}function dv(i,d){return i[0]===d[0]&&i[1]===d[1]}function Kd(i,d){var l=i[0],c=i[1],a=d[0],p=d[1];return Math.abs(l-a)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(a))&&Math.abs(c-p)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(p))}var G0=null,Gg=xf,u0=null,Hm=null,r0=null,ig=null,Bg=null,m0=function(){var i=ld();return function(d,l,c,a,p,y){var w,O;for(l||(l=2),c||(c=0),a?O=Math.min(a*l+c,d.length):O=d.length,w=c;w0&&arguments[0]!==void 0?arguments[0]:{};(0,vt.Z)(this,i),(0,pn.Z)(this,"lastFlip",-1),(0,pn.Z)(this,"miter",xg(0,0)),(0,pn.Z)(this,"started",!1),(0,pn.Z)(this,"dash",!1),(0,pn.Z)(this,"totalDistance",0),(0,pn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Te.Z)(i,[{key:"extrude_gaode2",value:function(l,c){var a=this.complex;if(l.length<=1)return a;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var p=l.length,y=a.startIndex,w=1;wthis.miterLimit&&(ic=!0)}ic?(Pt.push(this.normal[0],this.normal[1],0),Pt.push(fu[0],fu[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,be.push.apply(be,(0,Ln.Z)(this.lastFlip!==-iu?[c,c+2,c+3]:[c+2,c+1,c+3])),be.push(c+2,c+3,c+4),Zn(Lm,j),ip(this.normal,Lm),Pt.push(this.normal[0],this.normal[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,he+=3):(this.extrusions(ut,Pt,p,fu,dl,this.totalDistance),be.push.apply(be,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),iu=-1,ip(this.normal,fu),he+=2),this.lastFlip=iu}else{if(Zn(this.normal,ge),qt){var Qs=ld(),Fs=ld();Gg(Fs,ge,this.normal),Od(Qs,ge,this.normal),Pt.push(Fs[0],Fs[1],0),Pt.push(Qs[0],Qs[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ut,Pt,p,this.normal,this.thickness,this.totalDistance);be.push.apply(be,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),he+=2}return he}},{key:"simpleSegment",value:function(l,c,a,p,y){var w=0,O=l.indices,V=l.positions,he=l.normals,be=Rd([p[0],p[1]]),ut=Rd([a[0],a[1]]);pt(ge,be,ut);var Pt=0;if(this.dash&&(Pt=this.lineSegmentDistance(be,ut),this.totalDistance+=Pt),this.normal||(this.normal=ld(),Zn(this.normal,ge)),this.started||(this.started=!0,this.extrusions(V,he,a,this.normal,this.thickness,this.totalDistance-Pt)),O.push(c+0,c+1,c+2),!y)Zn(this.normal,ge),this.extrusions(V,he,p,this.normal,this.thickness,this.totalDistance),O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),w+=2;else{var qt=Rd([y[0],y[1]]);ot(be,qt)&&Od(qt,be,pm(qt,xf(qt,be,ut))),pt(j,qt,be);var En=wt(Se,ld(),ge,j,this.thickness),qn=(0,zn.Z)(En,2),Zr=qn[0],Si=qn[1],to=gg(Se,this.normal)<0?-1:1;this.extrusions(V,he,p,Si,Zr,this.totalDistance),O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),to=-1,ip(this.normal,Si),w+=2,this.lastFlip=to}return w}},{key:"segment",value:function(l,c,a,p,y){var w=0,O=l.indices,V=l.positions,he=l.normals,be=this.cap==="square",ut=this.join==="bevel",Pt=Rd([p[0],p[1]]),qt=Rd([a[0],a[1]]);pt(ge,Pt,qt);var En=0;if(this.dash&&(En=this.lineSegmentDistance(Pt,qt),this.totalDistance+=En),this.normal||(this.normal=ld(),Zn(this.normal,ge)),!this.started)if(this.started=!0,be){var qn=ld(),Zr=ld();Od(qn,this.normal,ge),Od(Zr,this.normal,ge),he.push(Zr[0],Zr[1],0),he.push(qn[0],qn[1],0),V.push(a[0],a[1],a[2]|0,this.totalDistance-En,-this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),V.push(a[0],a[1],a[2]|0,this.totalDistance-En,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(V,he,a,this.normal,this.thickness,this.totalDistance-En);if(O.push(c+0,c+1,c+2),y){var ts=Rd([y[0],y[1]]);ot(Pt,ts)&&Od(ts,Pt,pm(ts,xf(ts,Pt,qt))),pt(j,ts,Pt);var Qs=wt(Se,ld(),ge,j,this.thickness),Fs=(0,zn.Z)(Qs,2),Us=Fs[0],Sa=Fs[1],dl=gg(Se,this.normal)<0?-1:1,fu=ut;if(!fu&&this.join==="miter"){var iu=Us;iu>this.miterLimit&&(fu=!0)}fu?(he.push(this.normal[0],this.normal[1],0),he.push(Sa[0],Sa[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,O.push.apply(O,(0,Ln.Z)(this.lastFlip!==-dl?[c,c+2,c+3]:[c+2,c+1,c+3])),O.push(c+2,c+3,c+4),Zn(Lm,j),ip(this.normal,Lm),he.push(this.normal[0],this.normal[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,w+=3):(this.extrusions(V,he,p,Sa,Us,this.totalDistance),O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),dl=-1,ip(this.normal,Sa),w+=2),this.lastFlip=dl}else{if(Zn(this.normal,ge),be){var Si=ld(),to=ld();Gg(to,ge,this.normal),Od(Si,ge,this.normal),he.push(to[0],to[1],0),he.push(Si[0],Si[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(V,he,p,this.normal,this.thickness,this.totalDistance);O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),w+=2}return w}},{key:"extrusions",value:function(l,c,a,p,y,w){c.push(p[0],p[1],0),c.push(p[0],p[1],0),l.push(a[0],a[1],a[2]|0,w,-y,a[2]|0),this.complex.indexes.push(this.currentIndex),l.push(a[0],a[1],a[2]|0,w,y,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var a=c[0]-l[0],p=c[1]-l[1];return Math.sqrt(a*a+p*p)}}]),i}();function ln(i){var d=i.coordinates,l=i.originCoordinates,c=i.version,a=new cn({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var p=d;Array.isArray(p[0][0])||(p=[d]);var y=l;Array.isArray(y[0][0])||(y=[l]);for(var w=0;w0}).forEach(function(Zr,Si){var to=ei(Zr[w]);(0,Nt.flattenEach)(to,function(ts){var Qs=(0,hn.getCoords)(ts),Fs=(0,Xe.Z)((0,Xe.Z)({},Zr),{},{_id:Si,coordinates:Qs});O.push(Fs)})}),{dataArray:O};for(var V=0;V>>0}function vo(i,d){return d===void 0?null:typeof(i.properties[d]*1)=="number"?i.properties[d]*1:i.properties&&i.properties[d]?Oi(i.properties[d]+"")%1000019:null}function wo(i,d){var l=[],c={};return i.features?(i.features=i.features.filter(function(a){var p=a.geometry;return a!=null&&p&&p.type&&p.coordinates&&p.coordinates.length>0}),i=ei(i),i.features.length===0?{dataArray:[],featureKeys:c}:((0,Nt.flattenEach)(i,function(a,p){var y=vo(a,d==null?void 0:d.featureId);y===null&&(y=p);var w=y,O=(0,hn.getCoords)(a),V=(0,Xe.Z)((0,Xe.Z)({},a.properties),{},{coordinates:O,_id:w});l.push(V)}),{dataArray:l,featureKeys:c})):(i.features=[],{dataArray:[]})}function jo(i,d,l,c){for(var a=c,p=l-d>>1,y=l-d,w,O=i[d],V=i[d+1],he=i[l],be=i[l+1],ut=d+3;uta)w=ut,a=Pt;else if(Pt===a){var qt=Math.abs(ut-p);qtc&&(w-d>3&&jo(i,d,w,c),i[w+2]=a,l-w>3&&jo(i,w,l,c))}function cs(i,d,l,c,a,p){var y=a-l,w=p-c;if(y!==0||w!==0){var O=((i-l)*y+(d-c)*w)/(y*y+w*w);O>1?(l=a,c=p):O>0&&(l+=y*O,c+=w*O)}return y=i-l,w=d-c,y*y+w*w}function oo(i,d,l,c){var a={id:typeof i=="undefined"?null:i,type:d,geometry:l,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ha(a),a}function ha(i){var d=i.geometry,l=i.type;if(l==="Point"||l==="MultiPoint"||l==="LineString")xo(i,d);else if(l==="Polygon"||l==="MultiLineString")for(var c=0;c0&&(c?y+=(a*V-O*p)/2:y+=Math.sqrt(Math.pow(O-a,2)+Math.pow(V-p,2))),a=O,p=V}var he=d.length-3;d[2]=1,jo(d,0,he,l),d[he+2]=1,d.size=Math.abs(y),d.start=0,d.end=d.size}function $t(i,d,l,c){for(var a=0;a1?1:l}function Io(i,d,l,c,a,p,y,w){if(l/=d,c/=d,p>=l&&y=c)return null;for(var O=[],V=0;V=l&&qt=c)continue;var En=[];if(ut==="Point"||ut==="MultiPoint")ls(be,En,l,c,a);else if(ut==="LineString")ua(be,En,l,c,a,!1,w.lineMetrics);else if(ut==="MultiLineString")So(be,En,l,c,a,!1);else if(ut==="Polygon")So(be,En,l,c,a,!0);else if(ut==="MultiPolygon")for(var qn=0;qn=l&&y<=c&&(d.push(i[p]),d.push(i[p+1]),d.push(i[p+2]))}}function ua(i,d,l,c,a,p,y){for(var w=lo(i),O=a===0?Ls:ma,V=i.start,he,be,ut=0;utl&&(be=O(w,Pt,qt,qn,Zr,l),y&&(w.start=V+he*be)):Si>c?to=l&&(be=O(w,Pt,qt,qn,Zr,l),ts=!0),to>c&&Si<=c&&(be=O(w,Pt,qt,qn,Zr,c),ts=!0),!p&&ts&&(y&&(w.end=V+he*be),d.push(w),w=lo(i)),y&&(V+=he)}var Qs=i.length-3;Pt=i[Qs],qt=i[Qs+1],En=i[Qs+2],Si=a===0?Pt:qt,Si>=l&&Si<=c&&No(w,Pt,qt,En),Qs=w.length-3,p&&Qs>=3&&(w[Qs]!==w[0]||w[Qs+1]!==w[1])&&No(w,w[0],w[1],w[2]),w.length&&d.push(w)}function lo(i){var d=[];return d.size=i.size,d.start=i.start,d.end=i.end,d}function So(i,d,l,c,a,p){for(var y=0;yy.maxX&&(y.maxX=he),be>y.maxY&&(y.maxY=be)}return y}function qa(i,d,l,c){var a=d.geometry,p=d.type,y=[];if(p==="Point"||p==="MultiPoint")for(var w=0;w0&&d.size<(a?y:c)){l.numPoints+=d.length/3;return}for(var w=[],O=0;Oy)&&(l.numSimplified++,w.push(d[O]),w.push(d[O+1])),l.numPoints++;a&&$i(w,p),i.push(w)}function $i(i,d){for(var l=0,c=0,a=i.length,p=a-2;c0===d)for(c=0,a=i.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(d.promoteId&&d.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=ki(i,d);this.tiles={},this.tileCoords=[],l&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",d.indexMaxZoom,d.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=Ne(c,d),c.length&&this.splitTile(c,0,0,0),l&&(c.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ko.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ko.prototype.splitTile=function(i,d,l,c,a,p,y){for(var w=[i,d,l,c],O=this.options,V=O.debug;w.length;){c=w.pop(),l=w.pop(),d=w.pop(),i=w.pop();var he=1<1&&console.time("creation"),ut=this.tiles[be]=ga(i,d,l,c,O),this.tileCoords.push({z:d,x:l,y:c}),V)){V>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",d,l,c,ut.numFeatures,ut.numPoints,ut.numSimplified),console.timeEnd("creation"));var Pt="z"+d;this.stats[Pt]=(this.stats[Pt]||0)+1,this.total++}if(ut.source=i,a){if(d===O.maxZoom||d===a)continue;var qt=1<1&&console.time("clipping");var En=.5*O.buffer/O.extent,qn=.5-En,Zr=.5+En,Si=1+En,to,ts,Qs,Fs,Us,Sa;to=ts=Qs=Fs=null,Us=Io(i,he,l-En,l+Zr,0,ut.minX,ut.maxX,O),Sa=Io(i,he,l+qn,l+Si,0,ut.minX,ut.maxX,O),i=null,Us&&(to=Io(Us,he,c-En,c+Zr,1,ut.minY,ut.maxY,O),ts=Io(Us,he,c+qn,c+Si,1,ut.minY,ut.maxY,O),Us=null),Sa&&(Qs=Io(Sa,he,c-En,c+Zr,1,ut.minY,ut.maxY,O),Fs=Io(Sa,he,c+qn,c+Si,1,ut.minY,ut.maxY,O),Sa=null),V>1&&console.timeEnd("clipping"),w.push(to||[],d+1,l*2,c*2),w.push(ts||[],d+1,l*2,c*2+1),w.push(Qs||[],d+1,l*2+1,c*2),w.push(Fs||[],d+1,l*2+1,c*2+1)}}},Ko.prototype.getTile=function(i,d,l){var c=this.options,a=c.extent,p=c.debug;if(i<0||i>24)return null;var y=1<1&&console.log("drilling down to z%d-%d-%d",i,d,l);for(var O=i,V=d,he=l,be;!be&&O>0;)O--,V=Math.floor(V/2),he=Math.floor(he/2),be=this.tiles[qs(O,V,he)];return!be||!be.source?null:(p>1&&console.log("found parent tile z%d-%d-%d",O,V,he),p>1&&console.time("drilling down"),this.splitTile(be.source,O,V,he,i,d,l),p>1&&console.timeEnd("drilling down"),this.tiles[w]?ll(this.tiles[w],a):null)};function qs(i,d,l){return((1<0)switch(c[0]){case"band":try{i[a]=d[c[1]][l]}catch(p){console.warn("Raster Data err!"),i[a]=0}break;default:fd(c,d,l)}})}function kh(i){var d=(0,zn.Z)(i,3),l=d[0],c=d[1],a=c===void 0?-1:c,p=d[2],y=p===void 0?-1:p;if(l===void 0)return console.warn("Express err!"),["+",0,0];var w=l.replace(/\s+/g,"");return[w,a,y]}function Fd(i){var d=kh(i),l=d[0],c=d[1],a=d[2];return Array.isArray(c)&&(c=Fd(i[1])),Array.isArray(a)&&(a=Fd(i[2])),Zf(l,c,a)}var Uo={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:rl}};function rl(i,d){for(var l=i[0].rasterData,c=i[1].rasterData,a=i[2].rasterData,p=[],y=(d==null?void 0:d.countCut)||[2,98],w=(0,zn.Z)(y,2),O=w[0],V=w[1],he=(d==null?void 0:d.RMinMax)||_c(l,O,V),be=(d==null?void 0:d.GMinMax)||_c(c,O,V),ut=(d==null?void 0:d.BMinMax)||_c(a,O,V),Pt=0;Pt"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},Jr=x(52155),_o=x.n(Jr);function Xo(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Ho(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function Ho(i,d){if(i){if(typeof i=="string")return Is(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Is(i,d)}}function Is(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lp&&(Pt=0,ut++),w[En]={x:Pt,y:be+ut*sa,width:sa,height:sa,advance:Zr},Pt+=sa}});var qt=c+a*2;return{mapping:w,xOffset:Pt,yOffset:be+ut*qt,canvasHeight:Js(be+(ut+1)*qt)}}function ia(i,d,l){var c=0,a=0,p=0,y=[],w={},O=Xo(i),V;try{for(O.s();!(V=O.n()).done;){var he=V.value;if(!w[he.id]){var be=he.size;c+be+d>l&&(io(w,y,a),c=0,a=p+a+d,p=0,y=[]),y.push({icon:he,xOffset:c}),c=c+be+d,p=Math.max(p,be)}}}catch(Pt){O.e(Pt)}finally{O.f()}y.length>0&&io(w,y,a);var ut=Js(p+a+d);return{mapping:w,canvasHeight:ut}}function io(i,d,l){var c=Xo(d),a;try{for(c.s();!(a=c.n()).done;){var p=a.value,y=p.icon,w=p.xOffset;i[y.id]=(0,Xe.Z)((0,Xe.Z)({},y),{},{x:w,y:l,image:y.image,width:y.width,height:y.height})}}catch(O){c.e(O)}finally{c.f()}}function Js(i){return Math.pow(2,Math.ceil(Math.log2(i)))}var Qa,La;function Gl(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=tu(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function tu(i,d){if(i){if(typeof i=="string")return Tu(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Tu(i,d)}}function Tu(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0?(f[0]=(B*M+Ze*m+J*E-ue*d)*2/st,f[1]=(J*M+Ze*d+ue*m-B*E)*2/st,f[2]=(ue*M+Ze*E+B*d-J*m)*2/st):(f[0]=(B*M+Ze*m+J*E-ue*d)*2,f[1]=(J*M+Ze*d+ue*m-B*E)*2,f[2]=(ue*M+Ze*E+B*d-J*m)*2),Q(i,v,f),i}function Be(i,v){return i[0]=v[12],i[1]=v[13],i[2]=v[14],i}function ot(i,v){var f=v[0],m=v[1],d=v[2],E=v[4],M=v[5],B=v[6],J=v[8],ue=v[9],Ze=v[10];return i[0]=Math.hypot(f,m,d),i[1]=Math.hypot(E,M,B),i[2]=Math.hypot(J,ue,Ze),i}function Sn(i,v){var f=new GE(3);ot(f,v);var m=1/f[0],d=1/f[1],E=1/f[2],M=v[0]*m,B=v[1]*d,J=v[2]*E,ue=v[4]*m,Ze=v[5]*d,st=v[6]*E,Fr=v[8]*m,Go=v[9]*d,Ta=v[10]*E,eu=M+Ze+Ta,kd=0;return eu>0?(kd=Math.sqrt(eu+1)*2,i[3]=.25*kd,i[0]=(st-Go)/kd,i[1]=(Fr-J)/kd,i[2]=(B-ue)/kd):M>Ze&&M>Ta?(kd=Math.sqrt(1+M-Ze-Ta)*2,i[3]=(st-Go)/kd,i[0]=.25*kd,i[1]=(B+ue)/kd,i[2]=(Fr+J)/kd):Ze>Ta?(kd=Math.sqrt(1+Ze-M-Ta)*2,i[3]=(Fr-J)/kd,i[0]=(B+ue)/kd,i[1]=.25*kd,i[2]=(st+Go)/kd):(kd=Math.sqrt(1+Ta-M-Ze)*2,i[3]=(B-ue)/kd,i[0]=(Fr+J)/kd,i[1]=(st+Go)/kd,i[2]=.25*kd),i}function js(i,v,f,m){var d=v[0],E=v[1],M=v[2],B=v[3],J=d+d,ue=E+E,Ze=M+M,st=d*J,Fr=d*ue,Go=d*Ze,Ta=E*ue,eu=E*Ze,kd=M*Ze,em=B*J,B0=B*ue,vv=B*Ze,y1=m[0],fy=m[1],J1=m[2];return i[0]=(1-(Ta+kd))*y1,i[1]=(Fr+vv)*y1,i[2]=(Go-B0)*y1,i[3]=0,i[4]=(Fr-vv)*fy,i[5]=(1-(st+kd))*fy,i[6]=(eu+em)*fy,i[7]=0,i[8]=(Go+B0)*J1,i[9]=(eu-em)*J1,i[10]=(1-(st+Ta))*J1,i[11]=0,i[12]=f[0],i[13]=f[1],i[14]=f[2],i[15]=1,i}function ka(i,v,f,m,d){var E=v[0],M=v[1],B=v[2],J=v[3],ue=E+E,Ze=M+M,st=B+B,Fr=E*ue,Go=E*Ze,Ta=E*st,eu=M*Ze,kd=M*st,em=B*st,B0=J*ue,vv=J*Ze,y1=J*st,fy=m[0],J1=m[1],ey=m[2],Fy=d[0],C_=d[1],yx=d[2],ux=(1-(eu+em))*fy,h2=(Go+y1)*fy,V2=(Ta-vv)*fy,aw=(Go-y1)*J1,XE=(1-(Fr+em))*J1,mT=(kd+B0)*J1,qT=(Ta+vv)*ey,j3=(kd-B0)*ey,fA=(1-(Fr+eu))*ey;return i[0]=ux,i[1]=h2,i[2]=V2,i[3]=0,i[4]=aw,i[5]=XE,i[6]=mT,i[7]=0,i[8]=qT,i[9]=j3,i[10]=fA,i[11]=0,i[12]=f[0]+Fy-(ux*Fy+aw*C_+qT*yx),i[13]=f[1]+C_-(h2*Fy+XE*C_+j3*yx),i[14]=f[2]+yx-(V2*Fy+mT*C_+fA*yx),i[15]=1,i}function Ud(i,v){var f=v[0],m=v[1],d=v[2],E=v[3],M=f+f,B=m+m,J=d+d,ue=f*M,Ze=m*M,st=m*B,Fr=d*M,Go=d*B,Ta=d*J,eu=E*M,kd=E*B,em=E*J;return i[0]=1-st-Ta,i[1]=Ze+em,i[2]=Fr-kd,i[3]=0,i[4]=Ze-em,i[5]=1-ue-Ta,i[6]=Go+eu,i[7]=0,i[8]=Fr+kd,i[9]=Go-eu,i[10]=1-ue-st,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function Ng(i,v,f,m,d,E,M){var B=1/(f-v),J=1/(d-m),ue=1/(E-M);return i[0]=E*2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=E*2*J,i[6]=0,i[7]=0,i[8]=(f+v)*B,i[9]=(d+m)*J,i[10]=(M+E)*ue,i[11]=-1,i[12]=0,i[13]=0,i[14]=M*E*2*ue,i[15]=0,i}function N0(i,v,f,m,d){var E=1/Math.tan(v/2),M;return i[0]=E/f,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=E,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,d!=null&&d!==1/0?(M=1/(m-d),i[10]=(d+m)*M,i[14]=2*d*m*M):(i[10]=-1,i[14]=-2*m),i}var U0=N0;function Gv(i,v,f,m,d){var E=1/Math.tan(v/2),M;return i[0]=E/f,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=E,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,d!=null&&d!==1/0?(M=1/(m-d),i[10]=d*M,i[14]=d*m*M):(i[10]=-1,i[14]=-m),i}function Zv(i,v,f,m){var d=Math.tan(v.upDegrees*Math.PI/180),E=Math.tan(v.downDegrees*Math.PI/180),M=Math.tan(v.leftDegrees*Math.PI/180),B=Math.tan(v.rightDegrees*Math.PI/180),J=2/(M+B),ue=2/(d+E);return i[0]=J,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=ue,i[6]=0,i[7]=0,i[8]=-((M-B)*J*.5),i[9]=(d-E)*ue*.5,i[10]=m/(f-m),i[11]=-1,i[12]=0,i[13]=0,i[14]=m*f/(f-m),i[15]=0,i}function o1(i,v,f,m,d,E,M){var B=1/(v-f),J=1/(m-d),ue=1/(E-M);return i[0]=-2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*J,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*ue,i[11]=0,i[12]=(v+f)*B,i[13]=(d+m)*J,i[14]=(M+E)*ue,i[15]=1,i}var qv=o1;function Sv(i,v,f,m,d,E,M){var B=1/(v-f),J=1/(m-d),ue=1/(E-M);return i[0]=-2*B,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*J,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=ue,i[11]=0,i[12]=(v+f)*B,i[13]=(d+m)*J,i[14]=E*ue,i[15]=1,i}function ny(i,v,f,m){var d,E,M,B,J,ue,Ze,st,Fr,Go,Ta=v[0],eu=v[1],kd=v[2],em=m[0],B0=m[1],vv=m[2],y1=f[0],fy=f[1],J1=f[2];return Math.abs(Ta-y1)0&&(Go=1/Math.sqrt(Go),Ze*=Go,st*=Go,Fr*=Go);var Ta=J*Fr-ue*st,eu=ue*Ze-B*Fr,kd=B*st-J*Ze;return Go=Ta*Ta+eu*eu+kd*kd,Go>0&&(Go=1/Math.sqrt(Go),Ta*=Go,eu*=Go,kd*=Go),i[0]=Ta,i[1]=eu,i[2]=kd,i[3]=0,i[4]=st*kd-Fr*eu,i[5]=Fr*Ta-Ze*kd,i[6]=Ze*eu-st*Ta,i[7]=0,i[8]=Ze,i[9]=st,i[10]=Fr,i[11]=0,i[12]=d,i[13]=E,i[14]=M,i[15]=1,i}function w_(i){return"mat4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+", "+i[6]+", "+i[7]+", "+i[8]+", "+i[9]+", "+i[10]+", "+i[11]+", "+i[12]+", "+i[13]+", "+i[14]+", "+i[15]+")"}function px(i){return Math.hypot(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15])}function $x(i,v,f){return i[0]=v[0]+f[0],i[1]=v[1]+f[1],i[2]=v[2]+f[2],i[3]=v[3]+f[3],i[4]=v[4]+f[4],i[5]=v[5]+f[5],i[6]=v[6]+f[6],i[7]=v[7]+f[7],i[8]=v[8]+f[8],i[9]=v[9]+f[9],i[10]=v[10]+f[10],i[11]=v[11]+f[11],i[12]=v[12]+f[12],i[13]=v[13]+f[13],i[14]=v[14]+f[14],i[15]=v[15]+f[15],i}function Ix(i,v,f){return i[0]=v[0]-f[0],i[1]=v[1]-f[1],i[2]=v[2]-f[2],i[3]=v[3]-f[3],i[4]=v[4]-f[4],i[5]=v[5]-f[5],i[6]=v[6]-f[6],i[7]=v[7]-f[7],i[8]=v[8]-f[8],i[9]=v[9]-f[9],i[10]=v[10]-f[10],i[11]=v[11]-f[11],i[12]=v[12]-f[12],i[13]=v[13]-f[13],i[14]=v[14]-f[14],i[15]=v[15]-f[15],i}function cw(i,v,f){return i[0]=v[0]*f,i[1]=v[1]*f,i[2]=v[2]*f,i[3]=v[3]*f,i[4]=v[4]*f,i[5]=v[5]*f,i[6]=v[6]*f,i[7]=v[7]*f,i[8]=v[8]*f,i[9]=v[9]*f,i[10]=v[10]*f,i[11]=v[11]*f,i[12]=v[12]*f,i[13]=v[13]*f,i[14]=v[14]*f,i[15]=v[15]*f,i}function Sx(i,v,f,m){return i[0]=v[0]+f[0]*m,i[1]=v[1]+f[1]*m,i[2]=v[2]+f[2]*m,i[3]=v[3]+f[3]*m,i[4]=v[4]+f[4]*m,i[5]=v[5]+f[5]*m,i[6]=v[6]+f[6]*m,i[7]=v[7]+f[7]*m,i[8]=v[8]+f[8]*m,i[9]=v[9]+f[9]*m,i[10]=v[10]+f[10]*m,i[11]=v[11]+f[11]*m,i[12]=v[12]+f[12]*m,i[13]=v[13]+f[13]*m,i[14]=v[14]+f[14]*m,i[15]=v[15]+f[15]*m,i}function W2(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]&&i[3]===v[3]&&i[4]===v[4]&&i[5]===v[5]&&i[6]===v[6]&&i[7]===v[7]&&i[8]===v[8]&&i[9]===v[9]&&i[10]===v[10]&&i[11]===v[11]&&i[12]===v[12]&&i[13]===v[13]&&i[14]===v[14]&&i[15]===v[15]}function gu(i,v){var f=i[0],m=i[1],d=i[2],E=i[3],M=i[4],B=i[5],J=i[6],ue=i[7],Ze=i[8],st=i[9],Fr=i[10],Go=i[11],Ta=i[12],eu=i[13],kd=i[14],em=i[15],B0=v[0],vv=v[1],y1=v[2],fy=v[3],J1=v[4],ey=v[5],Fy=v[6],C_=v[7],yx=v[8],ux=v[9],h2=v[10],V2=v[11],aw=v[12],XE=v[13],mT=v[14],qT=v[15];return Math.abs(f-B0)<=Xv*Math.max(1,Math.abs(f),Math.abs(B0))&&Math.abs(m-vv)<=Xv*Math.max(1,Math.abs(m),Math.abs(vv))&&Math.abs(d-y1)<=Xv*Math.max(1,Math.abs(d),Math.abs(y1))&&Math.abs(E-fy)<=Xv*Math.max(1,Math.abs(E),Math.abs(fy))&&Math.abs(M-J1)<=Xv*Math.max(1,Math.abs(M),Math.abs(J1))&&Math.abs(B-ey)<=Xv*Math.max(1,Math.abs(B),Math.abs(ey))&&Math.abs(J-Fy)<=Xv*Math.max(1,Math.abs(J),Math.abs(Fy))&&Math.abs(ue-C_)<=Xv*Math.max(1,Math.abs(ue),Math.abs(C_))&&Math.abs(Ze-yx)<=Xv*Math.max(1,Math.abs(Ze),Math.abs(yx))&&Math.abs(st-ux)<=Xv*Math.max(1,Math.abs(st),Math.abs(ux))&&Math.abs(Fr-h2)<=Xv*Math.max(1,Math.abs(Fr),Math.abs(h2))&&Math.abs(Go-V2)<=Xv*Math.max(1,Math.abs(Go),Math.abs(V2))&&Math.abs(Ta-aw)<=Xv*Math.max(1,Math.abs(Ta),Math.abs(aw))&&Math.abs(eu-XE)<=Xv*Math.max(1,Math.abs(eu),Math.abs(XE))&&Math.abs(kd-mT)<=Xv*Math.max(1,Math.abs(kd),Math.abs(mT))&&Math.abs(em-qT)<=Xv*Math.max(1,Math.abs(em),Math.abs(qT))}var bg=AS,i0=Ix,S0,Tv,cy=(S0=(0,Rg.b2)(),S0(Tv=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"viewport",void 0),(0,Na.Z)(this,"overridedViewProjectionMatrix",void 0),(0,Na.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,Na.Z)(this,"jitteredProjectionMatrix",void 0),(0,Na.Z)(this,"viewMatrixInverse",void 0),(0,Na.Z)(this,"cameraPosition",void 0)}return(0,gt.Z)(i,[{key:"init",value:function(){}},{key:"update",value:function(f){this.viewport=f,this.viewMatrixInverse=Jx(),nT(this.viewMatrixInverse,f.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var f=this.viewport.getCenter(),m=(0,hu.Z)(f,2),d=m[0],E=m[1];return[d,E]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(f,m){return this.viewport.projectFlat(f,m)}},{key:"setViewProjectionMatrix",value:function(f){this.overridedViewProjectionMatrix=f}},{key:"jitterProjectionMatrix",value:function(f,m){var d=PT(Jx(),[f,m,0]);this.jitteredProjectionMatrix=AS(Jx(),d,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=AS(Jx(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),i}())||Tv),Gy=function(i){return i.TOPRIGHT="topright",i.TOPLEFT="topleft",i.BOTTOMRIGHT="bottomright",i.BOTTOMLEFT="bottomleft",i.TOPCENTER="topcenter",i.BOTTOMCENTER="bottomcenter",i.LEFTCENTER="leftcenter",i.RIGHTCENTER="rightcenter",i.LEFTTOP="lefttop",i.RIGHTTOP="righttop",i.LEFTBOTTOM="leftbottom",i.RIGHTBOTTOM="rightbottom",i}({}),q1,i_;function ex(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=W1(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function W1(i,v){if(i){if(typeof i=="string")return A2(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return A2(i,v)}}function A2(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f-1&&this.controls.splice(m,1),f.remove(),this}},{key:"addControls",value:function(){var f=this;this.unAddControls.forEach(function(m){m.addTo(f.scene),f.controls.push(m)}),this.unAddControls=[]}},{key:"destroy",value:function(){var f=ex(this.controls),m;try{for(f.s();!(m=f.n()).done;){var d=m.value;d.remove()}}catch(E){f.e(E)}finally{f.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var f=this.controlCorners={},m="l7-",d=this.controlContainer=Ov("div",m+"control-container",this.container);function E(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=B.map(function(ue){return m+ue}).join(" ");f[B.filter(function(ue){return!["row","column"].includes(ue)}).join("")]=Ov("div",J,d)}function M(B){var J=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,su.Z)(J),[CC[B]])}Object.values(Gy).forEach(function(B){E(M(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var f in this.controlCorners)this.controlCorners[f]&&v1(this.controlCorners[f]);this.controlContainer&&v1(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var f=this,m=window.MutationObserver;if(m)for(var d=function(){var J=M[E],ue=J.match(/^(top|bottom)(left|right)$/);if(ue){var Ze=(0,hu.Z)(ue,3),st=Ze[1],Fr=Ze[2],Go=f.controlCorners["".concat(st).concat(Fr)],Ta=new m(function(eu){var kd=(0,hu.Z)(eu,1),em=kd[0].target;Go&&(Go.style[st]=em.clientHeight+"px")});Ta.observe(f.controlCorners["".concat(Fr).concat(st)],{childList:!0,attributes:!0})}},E=0,M=Object.keys(this.controlCorners);E-1&&this.markerLayers.splice(m,1)}},{key:"addMarker",value:function(f){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(f),f.addTo(this.scene)):this.unAddMarkers.push(f)}},{key:"addMarkers",value:function(){var f=this;this.unAddMarkers.forEach(function(m){m.addTo(f.scene),f.markers.push(m)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var f=this;this.unAddMarkerLayers.forEach(function(m){f.markerLayers.push(m),m.addTo(f.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(f){f.remove(),this.markers.indexOf(f);var m=this.markers.indexOf(f);m>-1&&this.markers.splice(m,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(f){this.scene=f,this.mapsService=f.get(cu.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(f){f.remove()}),this.markers=[],this.markerLayers.forEach(function(f){f.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(f){f.destroy()}}]),i}())||bC),$E,nS,cS=($E=(0,Rg.b2)(),$E(nS=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"scene",void 0),(0,Na.Z)(this,"mapsService",void 0),(0,Na.Z)(this,"popups",[]),(0,Na.Z)(this,"unAddPopups",[])}return(0,gt.Z)(i,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(f){f!=null&&f.isOpen()&&f.remove();var m=this.popups.indexOf(f);m>-1&&this.popups.splice(m,1);var d=this.unAddPopups.indexOf(f);d>-1&&this.unAddPopups.splice(d,1)}},{key:"destroy",value:function(){this.popups.forEach(function(f){return f.remove()})}},{key:"addPopup",value:function(f){var m=this;f&&f.getOptions().autoClose&&[].concat((0,su.Z)(this.popups),(0,su.Z)(this.unAddPopups)).forEach(function(d){d.getOptions().autoClose&&m.removePopup(d)}),this.isMarkerReady?(f.addTo(this.scene),this.popups.push(f)):this.unAddPopups.push(f),f.on("close",function(){m.removePopup(f)})}},{key:"initPopup",value:function(){var f=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(m){f.addPopup(m),f.unAddPopups=[]})}},{key:"init",value:function(f){this.scene=f,this.mapsService=f.get(cu.IMapService)}}]),i}())||nS),g1=function(i){return i.normal="normal",i.additive="additive",i.subtractive="subtractive",i.min="min",i.max="max",i.none="none",i}({}),z_=function(i){return i.MULTIPLE="MULTIPLE",i.SINGLE="SINGLE",i}({}),hS=function(i){return i.AND="and",i.OR="or",i}({}),NC=function(i){return i.INIT="init",i.UPDATE="update",i}({}),WS={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},MT=WS,zS,Zb,$w=Qv.merge,mS={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},eS={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:hS.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},DE=(zS=(0,Rg.b2)(),zS(Zb=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"sceneConfigCache",{}),(0,Na.Z)(this,"layerConfigCache",{}),(0,Na.Z)(this,"layerAttributeConfigCache",{})}return(0,gt.Z)(i,[{key:"getSceneConfig",value:function(f){return this.sceneConfigCache[f]}},{key:"getSceneWarninfo",value:function(f){return MT[f]}},{key:"setSceneConfig",value:function(f,m){this.sceneConfigCache[f]=(0,vn.Z)((0,vn.Z)({},mS),m)}},{key:"getLayerConfig",value:function(f){return this.layerConfigCache[f]}},{key:"setLayerConfig",value:function(f,m,d){this.layerConfigCache[m]=(0,vn.Z)({},$w({},this.sceneConfigCache[f],eS,d))}},{key:"getAttributeConfig",value:function(f){return this.layerAttributeConfigCache[f]}},{key:"setAttributeConfig",value:function(f,m){this.layerAttributeConfigCache[f]=(0,vn.Z)((0,vn.Z)({},this.layerAttributeConfigCache[f]),m)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),i}())||Zb);function ne(i,v,f,m){f&&Object.defineProperty(i,v,{enumerable:f.enumerable,configurable:f.configurable,writable:f.writable,value:f.initializer?f.initializer.call(m):void 0})}function H(i,v,f,m,d){var E={};return Object.keys(m).forEach(function(M){E[M]=m[M]}),E.enumerable=!!E.enumerable,E.configurable=!!E.configurable,("value"in E||E.initializer)&&(E.writable=!0),E=f.slice().reverse().reduce(function(M,B){return B(i,v,M)||M},E),d&&E.initializer!==void 0&&(E.value=E.initializer?E.initializer.call(d):void 0,E.initializer=void 0),E.initializer===void 0&&(Object.defineProperty(i,v,E),E=null),E}function ve(){var i=new GE(4);return GE!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0,i[3]=0),i}function He(i){var v=new glMatrix.ARRAY_TYPE(4);return v[0]=i[0],v[1]=i[1],v[2]=i[2],v[3]=i[3],v}function Nt(i,v,f,m){var d=new GE(4);return d[0]=i,d[1]=v,d[2]=f,d[3]=m,d}function Xr(i,v){return i[0]=v[0],i[1]=v[1],i[2]=v[2],i[3]=v[3],i}function Ar(i,v,f,m,d){return i[0]=v,i[1]=f,i[2]=m,i[3]=d,i}function Ea(i,v,f){return i[0]=v[0]+f[0],i[1]=v[1]+f[1],i[2]=v[2]+f[2],i[3]=v[3]+f[3],i}function iu(i,v,f){return i[0]=v[0]-f[0],i[1]=v[1]-f[1],i[2]=v[2]-f[2],i[3]=v[3]-f[3],i}function $g(i,v,f){return i[0]=v[0]*f[0],i[1]=v[1]*f[1],i[2]=v[2]*f[2],i[3]=v[3]*f[3],i}function C0(i,v,f){return i[0]=v[0]/f[0],i[1]=v[1]/f[1],i[2]=v[2]/f[2],i[3]=v[3]/f[3],i}function Z0(i,v){return i[0]=Math.ceil(v[0]),i[1]=Math.ceil(v[1]),i[2]=Math.ceil(v[2]),i[3]=Math.ceil(v[3]),i}function Nv(i,v){return i[0]=Math.floor(v[0]),i[1]=Math.floor(v[1]),i[2]=Math.floor(v[2]),i[3]=Math.floor(v[3]),i}function s1(i,v,f){return i[0]=Math.min(v[0],f[0]),i[1]=Math.min(v[1],f[1]),i[2]=Math.min(v[2],f[2]),i[3]=Math.min(v[3],f[3]),i}function M1(i,v,f){return i[0]=Math.max(v[0],f[0]),i[1]=Math.max(v[1],f[1]),i[2]=Math.max(v[2],f[2]),i[3]=Math.max(v[3],f[3]),i}function Ty(i,v){return i[0]=Math.round(v[0]),i[1]=Math.round(v[1]),i[2]=Math.round(v[2]),i[3]=Math.round(v[3]),i}function By(i,v,f){return i[0]=v[0]*f,i[1]=v[1]*f,i[2]=v[2]*f,i[3]=v[3]*f,i}function o_(i,v,f,m){return i[0]=v[0]+f[0]*m,i[1]=v[1]+f[1]*m,i[2]=v[2]+f[2]*m,i[3]=v[3]+f[3]*m,i}function B_(i,v){var f=v[0]-i[0],m=v[1]-i[1],d=v[2]-i[2],E=v[3]-i[3];return Math.hypot(f,m,d,E)}function b_(i,v){var f=v[0]-i[0],m=v[1]-i[1],d=v[2]-i[2],E=v[3]-i[3];return f*f+m*m+d*d+E*E}function V_(i){var v=i[0],f=i[1],m=i[2],d=i[3];return Math.hypot(v,f,m,d)}function Hx(i){var v=i[0],f=i[1],m=i[2],d=i[3];return v*v+f*f+m*m+d*d}function dw(i,v){return i[0]=-v[0],i[1]=-v[1],i[2]=-v[2],i[3]=-v[3],i}function $C(i,v){return i[0]=1/v[0],i[1]=1/v[1],i[2]=1/v[2],i[3]=1/v[3],i}function eE(i,v){var f=v[0],m=v[1],d=v[2],E=v[3],M=f*f+m*m+d*d+E*E;return M>0&&(M=1/Math.sqrt(M)),i[0]=f*M,i[1]=m*M,i[2]=d*M,i[3]=E*M,i}function ZC(i,v){return i[0]*v[0]+i[1]*v[1]+i[2]*v[2]+i[3]*v[3]}function HC(i,v,f,m){var d=f[0]*m[1]-f[1]*m[0],E=f[0]*m[2]-f[2]*m[0],M=f[0]*m[3]-f[3]*m[0],B=f[1]*m[2]-f[2]*m[1],J=f[1]*m[3]-f[3]*m[1],ue=f[2]*m[3]-f[3]*m[2],Ze=v[0],st=v[1],Fr=v[2],Go=v[3];return i[0]=st*ue-Fr*J+Go*B,i[1]=-(Ze*ue)+Fr*M-Go*E,i[2]=Ze*J-st*M+Go*d,i[3]=-(Ze*B)+st*E-Fr*d,i}function PC(i,v,f,m){var d=v[0],E=v[1],M=v[2],B=v[3];return i[0]=d+m*(f[0]-d),i[1]=E+m*(f[1]-E),i[2]=M+m*(f[2]-M),i[3]=B+m*(f[3]-B),i}function DS(i,v){v=v||1;var f,m,d,E,M,B;do f=glMatrix.RANDOM()*2-1,m=glMatrix.RANDOM()*2-1,M=f*f+m*m;while(M>=1);do d=glMatrix.RANDOM()*2-1,E=glMatrix.RANDOM()*2-1,B=d*d+E*E;while(B>=1);var J=Math.sqrt((1-M)/B);return i[0]=v*f,i[1]=v*m,i[2]=v*d*J,i[3]=v*E*J,i}function oC(i,v,f){var m=v[0],d=v[1],E=v[2],M=v[3];return i[0]=f[0]*m+f[4]*d+f[8]*E+f[12]*M,i[1]=f[1]*m+f[5]*d+f[9]*E+f[13]*M,i[2]=f[2]*m+f[6]*d+f[10]*E+f[14]*M,i[3]=f[3]*m+f[7]*d+f[11]*E+f[15]*M,i}function Vw(i,v,f){var m=v[0],d=v[1],E=v[2],M=f[0],B=f[1],J=f[2],ue=f[3],Ze=ue*m+B*E-J*d,st=ue*d+J*m-M*E,Fr=ue*E+M*d-B*m,Go=-M*m-B*d-J*E;return i[0]=Ze*ue+Go*-M+st*-J-Fr*-B,i[1]=st*ue+Go*-B+Fr*-M-Ze*-J,i[2]=Fr*ue+Go*-J+Ze*-B-st*-M,i[3]=v[3],i}function dE(i){return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}function $S(i){return"vec4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}function lT(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]&&i[3]===v[3]}function BT(i,v){var f=i[0],m=i[1],d=i[2],E=i[3],M=v[0],B=v[1],J=v[2],ue=v[3];return Math.abs(f-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(m-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))&&Math.abs(d-J)<=glMatrix.EPSILON*Math.max(1,Math.abs(d),Math.abs(J))&&Math.abs(E-ue)<=glMatrix.EPSILON*Math.max(1,Math.abs(E),Math.abs(ue))}var mA=null,_3=null,ID=null,b3=null,jA=null,Ux=null,Tx=null,hw=function(){var i=ve();return function(v,f,m,d,E,M){var B,J;for(f||(f=4),m||(m=0),d?J=Math.min(d*f+m,v.length):J=v.length,B=m;B0){var J=B.changedTouches[0];m.onHover({clientX:J.clientX,clientY:J.clientY,type:"touchend"})}}),(0,Na.Z)((0,mv.Z)(m),"onTouchMove",function(B){var J=B.changedTouches[0];m.onHover({clientX:J.clientX,clientY:J.clientY,type:"touchmove"})}),(0,Na.Z)((0,mv.Z)(m),"onHover",function(B){var J=B.clientX,ue=B.clientY,Ze=J,st=ue,Fr=B.type,Go=m.mapService.getMapContainer();if(Go){var Ta=Go.getBoundingClientRect(),eu=Ta.top,kd=Ta.left;Ze=Ze-kd-Go.clientLeft,st=st-eu-Go.clientTop}var em=m.mapService.containerToLngLat([Ze,st]);if(Fr==="click"){m.isDoubleTap(Ze,st,em);return}if(Fr==="touch"){m.isDoubleTap(Ze,st,em);return}Fr!=="click"&&Fr!=="dblclick"&&m.emit(eA.Hover,{x:Ze,y:st,lngLat:em,type:Fr,target:B})}),m}return(0,gt.Z)(f,[{key:"init",value:function(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}},{key:"destroy",value:function(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(eA.Hover)}},{key:"triggerHover",value:function(d){var E=d.x,M=d.y;this.emit(eA.Hover,{x:E,y:M})}},{key:"triggerSelect",value:function(d){this.emit(eA.Select,{featureId:d})}},{key:"triggerActive",value:function(d){this.emit(eA.Active,{featureId:d})}},{key:"addEventListenerOnMap",value:function(){var d=this.mapService.getMapContainer();if(d){var E=new(n3()).Manager(d);E.add(new(n3()).Tap({event:"dblclick",taps:2})),E.add(new(n3()).Tap({event:"click"})),E.add(new(n3()).Pan({threshold:0,pointers:0})),E.add(new(n3()).Press({})),E.on("dblclick click",this.onHammer),E.on("panstart panmove panend pancancel",this.onDrag),d.addEventListener("touchstart",this.onTouch),d.addEventListener("touchend",this.onTouchEnd),d.addEventListener("mousemove",this.onHover),d.addEventListener("touchmove",this.onTouchMove),d.addEventListener("mousedown",this.onHover,!0),d.addEventListener("mouseup",this.onHover),d.addEventListener("contextmenu",this.onHover),this.hammertime=E}}},{key:"removeEventListenerOnMap",value:function(){var d=this.mapService.getMapContainer();d&&(d.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),d.removeEventListener("touchstart",this.onTouch),d.removeEventListener("touchend",this.onTouchEnd),d.removeEventListener("mousedown",this.onHover),d.removeEventListener("mouseup",this.onHover),d.removeEventListener("contextmenu",this.onHover))}},{key:"interactionEvent",value:function(d){var E=d.type,M=d.pointerType,B,J;M==="touch"?(J=Math.floor(d.pointers[0].clientY),B=Math.floor(d.pointers[0].clientX)):(J=Math.floor(d.srcEvent.y),B=Math.floor(d.srcEvent.x));var ue=this.mapService.getMapContainer();if(ue){var Ze=ue.getBoundingClientRect(),st=Ze.top,Fr=Ze.left;B-=Fr,J-=st}var Go=this.mapService.containerToLngLat([B,J]);return{x:B,y:J,lngLat:Go,type:E,target:d.srcEvent}}},{key:"isDoubleTap",value:function(d,E,M){var B=this,J=new Date().getTime(),ue="click";J-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-d)<10&&Math.abs(this.lastClickXY[1]-E)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),ue="dblclick",this.emit(eA.Hover,{x:d,y:E,lngLat:M,type:ue})):(this.lastClickTime=J,this.lastClickXY=[d,E],this.clickTimer=setTimeout(function(){ue="click",B.emit(eA.Hover,{x:d,y:E,lngLat:M,type:ue})},400))}}]),f}(TE()),aI=H(a4.prototype,"mapService",[KE],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a4))||HD),W4=0;function gI(i){var v=i;if(typeof i=="string"&&(v=document.getElementById(i)),v){var f=document.createElement("div");return f.style.cssText+=` + font-family: '`.concat(a,`'; + src: url('`).concat(p,`') format('woff2'), + url('`).concat(p,`') format('woff'), + url('`).concat(p,`') format('truetype'); + }`),w.onload=function(){if(document.fonts)try{document.fonts.load("24px ".concat(a),"L7text"),document.fonts.ready.then(function(){y.emit("fontloaded",{fontFamily:a})})}catch(O){console.warn("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301 document.fonts !"),console.warn("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301 iconfont !"),console.warn(O)}},document.getElementsByTagName("head")[0].appendChild(w)}},{key:"destroy",value:function(){this.cache.clear(),this.iconFontMap.clear()}},{key:"generateFontAtlas",value:function(a,p,y){var w=this.fontOptions,O=w.fontFamily,V=w.fontWeight,he=w.fontSize,be=w.buffer,ut=w.sdf,Pt=w.radius,qt=w.cutoff,En=w.iconfont,qn=y&&y.data;qn||(qn=window.document.createElement("canvas"),qn.width=Vf);var Zr=qn.getContext("2d",{willReadFrequently:!0});ku(Zr,O,he,V);var Si=ds((0,Xe.Z)({getFontWidth:function(dm){return Zr.measureText(dm).width},fontHeight:he*oa,buffer:be,characterSet:p,maxCanvasWidth:Vf},y&&{mapping:y.mapping,xOffset:y.xOffset,yOffset:y.yOffset})),to=Si.mapping,ts=Si.canvasHeight,Qs=Si.xOffset,Fs=Si.yOffset,Us=Zr.getImageData(0,0,qn.width,qn.height);if(qn.height=ts,Zr.putImageData(Us,0,0),ku(Zr,O,he,V),ut){var Sa=new(_o())(he,be,Pt,qt,O,V),dl=Zr.getImageData(0,0,Sa.size,Sa.size),fu=Gl(p),iu;try{for(fu.s();!(iu=fu.n()).done;){var ic=iu.value;if(En){var Nc=String.fromCharCode(parseInt(ic.replace("&#x","").replace(";",""),16)),nh=Sa.draw(Nc);dd(nh,dl)}else dd(Sa.draw(ic),dl);Zr.putImageData(dl,to[ic].x,to[ic].y)}}catch(U0){fu.e(U0)}finally{fu.f()}}else{var Zp=Gl(p),hg;try{for(Zp.s();!(hg=Zp.n()).done;){var jg=hg.value;Zr.fillText(jg,to[jg].x,to[jg].y+he*Cl)}}catch(U0){Zp.e(U0)}finally{Zp.f()}}return{xOffset:Qs,yOffset:Fs,mapping:to,data:qn,width:qn.width,height:qn.height}}},{key:"getKey",value:function(){var a=this.fontOptions,p=a.fontFamily,y=a.fontWeight;return"".concat(p,"_").concat(y)}},{key:"getNewChars",value:function(a,p){var y=this.cache.get(a);if(!y)return p;var w=[],O=y.mapping,V=new Set(Object.keys(O)),he=new Set(p);return he.forEach(function(be){V.has(be)||w.push(be)}),w}}]),l}(Ic.EventEmitter))||La),gp,op;function $p(i){var d=Mh();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Mh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var df=3,um=1024,qg=64,qp=(gp=(0,xr.b2)(),gp(op=function(i){(0,ze.Z)(l,i);var d=$p(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0?(l[0]=(w*y+he*c+O*p-V*a)*2/be,l[1]=(O*y+he*a+V*c-w*p)*2/be,l[2]=(V*y+he*p+w*a-O*c)*2/be):(l[0]=(w*y+he*c+O*p-V*a)*2,l[1]=(O*y+he*a+V*c-w*p)*2,l[2]=(V*y+he*p+w*a-O*c)*2),N(i,d,l),i}function oe(i,d){return i[0]=d[12],i[1]=d[13],i[2]=d[14],i}function _e(i,d){var l=d[0],c=d[1],a=d[2],p=d[4],y=d[5],w=d[6],O=d[8],V=d[9],he=d[10];return i[0]=Math.hypot(l,c,a),i[1]=Math.hypot(p,y,w),i[2]=Math.hypot(O,V,he),i}function $e(i,d){var l=new Vp(3);_e(l,d);var c=1/l[0],a=1/l[1],p=1/l[2],y=d[0]*c,w=d[1]*a,O=d[2]*p,V=d[4]*c,he=d[5]*a,be=d[6]*p,ut=d[8]*c,Pt=d[9]*a,qt=d[10]*p,En=y+he+qt,qn=0;return En>0?(qn=Math.sqrt(En+1)*2,i[3]=.25*qn,i[0]=(be-Pt)/qn,i[1]=(ut-O)/qn,i[2]=(w-V)/qn):y>he&&y>qt?(qn=Math.sqrt(1+y-he-qt)*2,i[3]=(be-Pt)/qn,i[0]=.25*qn,i[1]=(w+V)/qn,i[2]=(ut+O)/qn):he>qt?(qn=Math.sqrt(1+he-y-qt)*2,i[3]=(ut-O)/qn,i[0]=(w+V)/qn,i[1]=.25*qn,i[2]=(be+Pt)/qn):(qn=Math.sqrt(1+qt-y-he)*2,i[3]=(w-V)/qn,i[0]=(ut+O)/qn,i[1]=(be+Pt)/qn,i[2]=.25*qn),i}function Ft(i,d,l,c){var a=d[0],p=d[1],y=d[2],w=d[3],O=a+a,V=p+p,he=y+y,be=a*O,ut=a*V,Pt=a*he,qt=p*V,En=p*he,qn=y*he,Zr=w*O,Si=w*V,to=w*he,ts=c[0],Qs=c[1],Fs=c[2];return i[0]=(1-(qt+qn))*ts,i[1]=(ut+to)*ts,i[2]=(Pt-Si)*ts,i[3]=0,i[4]=(ut-to)*Qs,i[5]=(1-(be+qn))*Qs,i[6]=(En+Zr)*Qs,i[7]=0,i[8]=(Pt+Si)*Fs,i[9]=(En-Zr)*Fs,i[10]=(1-(be+qt))*Fs,i[11]=0,i[12]=l[0],i[13]=l[1],i[14]=l[2],i[15]=1,i}function an(i,d,l,c,a){var p=d[0],y=d[1],w=d[2],O=d[3],V=p+p,he=y+y,be=w+w,ut=p*V,Pt=p*he,qt=p*be,En=y*he,qn=y*be,Zr=w*be,Si=O*V,to=O*he,ts=O*be,Qs=c[0],Fs=c[1],Us=c[2],Sa=a[0],dl=a[1],fu=a[2],iu=(1-(En+Zr))*Qs,ic=(Pt+ts)*Qs,Nc=(qt-to)*Qs,nh=(Pt-ts)*Fs,Zp=(1-(ut+Zr))*Fs,hg=(qn+Si)*Fs,jg=(qt+to)*Us,U0=(qn-Si)*Us,dm=(1-(ut+En))*Us;return i[0]=iu,i[1]=ic,i[2]=Nc,i[3]=0,i[4]=nh,i[5]=Zp,i[6]=hg,i[7]=0,i[8]=jg,i[9]=U0,i[10]=dm,i[11]=0,i[12]=l[0]+Sa-(iu*Sa+nh*dl+jg*fu),i[13]=l[1]+dl-(ic*Sa+Zp*dl+U0*fu),i[14]=l[2]+fu-(Nc*Sa+hg*dl+dm*fu),i[15]=1,i}function nr(i,d){var l=d[0],c=d[1],a=d[2],p=d[3],y=l+l,w=c+c,O=a+a,V=l*y,he=c*y,be=c*w,ut=a*y,Pt=a*w,qt=a*O,En=p*y,qn=p*w,Zr=p*O;return i[0]=1-be-qt,i[1]=he+Zr,i[2]=ut-qn,i[3]=0,i[4]=he-Zr,i[5]=1-V-qt,i[6]=Pt+En,i[7]=0,i[8]=ut+qn,i[9]=Pt-En,i[10]=1-V-be,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function Dr(i,d,l,c,a,p,y){var w=1/(l-d),O=1/(a-c),V=1/(p-y);return i[0]=p*2*w,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=p*2*O,i[6]=0,i[7]=0,i[8]=(l+d)*w,i[9]=(a+c)*O,i[10]=(y+p)*V,i[11]=-1,i[12]=0,i[13]=0,i[14]=y*p*2*V,i[15]=0,i}function bi(i,d,l,c,a){var p=1/Math.tan(d/2),y;return i[0]=p/l,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=p,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,a!=null&&a!==1/0?(y=1/(c-a),i[10]=(a+c)*y,i[14]=2*a*c*y):(i[10]=-1,i[14]=-2*c),i}var Di=bi;function Ro(i,d,l,c,a){var p=1/Math.tan(d/2),y;return i[0]=p/l,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=p,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,a!=null&&a!==1/0?(y=1/(c-a),i[10]=a*y,i[14]=a*c*y):(i[10]=-1,i[14]=-c),i}function Lo(i,d,l,c){var a=Math.tan(d.upDegrees*Math.PI/180),p=Math.tan(d.downDegrees*Math.PI/180),y=Math.tan(d.leftDegrees*Math.PI/180),w=Math.tan(d.rightDegrees*Math.PI/180),O=2/(y+w),V=2/(a+p);return i[0]=O,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=V,i[6]=0,i[7]=0,i[8]=-((y-w)*O*.5),i[9]=(a-p)*V*.5,i[10]=c/(l-c),i[11]=-1,i[12]=0,i[13]=0,i[14]=c*l/(l-c),i[15]=0,i}function Wo(i,d,l,c,a,p,y){var w=1/(d-l),O=1/(c-a),V=1/(p-y);return i[0]=-2*w,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*O,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*V,i[11]=0,i[12]=(d+l)*w,i[13]=(a+c)*O,i[14]=(y+p)*V,i[15]=1,i}var Bo=Wo;function ho(i,d,l,c,a,p,y){var w=1/(d-l),O=1/(c-a),V=1/(p-y);return i[0]=-2*w,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*O,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=V,i[11]=0,i[12]=(d+l)*w,i[13]=(a+c)*O,i[14]=p*V,i[15]=1,i}function Zs(i,d,l,c){var a,p,y,w,O,V,he,be,ut,Pt,qt=d[0],En=d[1],qn=d[2],Zr=c[0],Si=c[1],to=c[2],ts=l[0],Qs=l[1],Fs=l[2];return Math.abs(qt-ts)0&&(Pt=1/Math.sqrt(Pt),he*=Pt,be*=Pt,ut*=Pt);var qt=O*ut-V*be,En=V*he-w*ut,qn=w*be-O*he;return Pt=qt*qt+En*En+qn*qn,Pt>0&&(Pt=1/Math.sqrt(Pt),qt*=Pt,En*=Pt,qn*=Pt),i[0]=qt,i[1]=En,i[2]=qn,i[3]=0,i[4]=be*qn-ut*En,i[5]=ut*qt-he*qn,i[6]=he*En-be*qt,i[7]=0,i[8]=he,i[9]=be,i[10]=ut,i[11]=0,i[12]=a,i[13]=p,i[14]=y,i[15]=1,i}function hl(i){return"mat4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+", "+i[6]+", "+i[7]+", "+i[8]+", "+i[9]+", "+i[10]+", "+i[11]+", "+i[12]+", "+i[13]+", "+i[14]+", "+i[15]+")"}function au(i){return Math.hypot(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15])}function Ru(i,d,l){return i[0]=d[0]+l[0],i[1]=d[1]+l[1],i[2]=d[2]+l[2],i[3]=d[3]+l[3],i[4]=d[4]+l[4],i[5]=d[5]+l[5],i[6]=d[6]+l[6],i[7]=d[7]+l[7],i[8]=d[8]+l[8],i[9]=d[9]+l[9],i[10]=d[10]+l[10],i[11]=d[11]+l[11],i[12]=d[12]+l[12],i[13]=d[13]+l[13],i[14]=d[14]+l[14],i[15]=d[15]+l[15],i}function Su(i,d,l){return i[0]=d[0]-l[0],i[1]=d[1]-l[1],i[2]=d[2]-l[2],i[3]=d[3]-l[3],i[4]=d[4]-l[4],i[5]=d[5]-l[5],i[6]=d[6]-l[6],i[7]=d[7]-l[7],i[8]=d[8]-l[8],i[9]=d[9]-l[9],i[10]=d[10]-l[10],i[11]=d[11]-l[11],i[12]=d[12]-l[12],i[13]=d[13]-l[13],i[14]=d[14]-l[14],i[15]=d[15]-l[15],i}function ih(i,d,l){return i[0]=d[0]*l,i[1]=d[1]*l,i[2]=d[2]*l,i[3]=d[3]*l,i[4]=d[4]*l,i[5]=d[5]*l,i[6]=d[6]*l,i[7]=d[7]*l,i[8]=d[8]*l,i[9]=d[9]*l,i[10]=d[10]*l,i[11]=d[11]*l,i[12]=d[12]*l,i[13]=d[13]*l,i[14]=d[14]*l,i[15]=d[15]*l,i}function _u(i,d,l,c){return i[0]=d[0]+l[0]*c,i[1]=d[1]+l[1]*c,i[2]=d[2]+l[2]*c,i[3]=d[3]+l[3]*c,i[4]=d[4]+l[4]*c,i[5]=d[5]+l[5]*c,i[6]=d[6]+l[6]*c,i[7]=d[7]+l[7]*c,i[8]=d[8]+l[8]*c,i[9]=d[9]+l[9]*c,i[10]=d[10]+l[10]*c,i[11]=d[11]+l[11]*c,i[12]=d[12]+l[12]*c,i[13]=d[13]+l[13]*c,i[14]=d[14]+l[14]*c,i[15]=d[15]+l[15]*c,i}function zc(i,d){return i[0]===d[0]&&i[1]===d[1]&&i[2]===d[2]&&i[3]===d[3]&&i[4]===d[4]&&i[5]===d[5]&&i[6]===d[6]&&i[7]===d[7]&&i[8]===d[8]&&i[9]===d[9]&&i[10]===d[10]&&i[11]===d[11]&&i[12]===d[12]&&i[13]===d[13]&&i[14]===d[14]&&i[15]===d[15]}function Fn(i,d){var l=i[0],c=i[1],a=i[2],p=i[3],y=i[4],w=i[5],O=i[6],V=i[7],he=i[8],be=i[9],ut=i[10],Pt=i[11],qt=i[12],En=i[13],qn=i[14],Zr=i[15],Si=d[0],to=d[1],ts=d[2],Qs=d[3],Fs=d[4],Us=d[5],Sa=d[6],dl=d[7],fu=d[8],iu=d[9],ic=d[10],Nc=d[11],nh=d[12],Zp=d[13],hg=d[14],jg=d[15];return Math.abs(l-Si)<=Oo*Math.max(1,Math.abs(l),Math.abs(Si))&&Math.abs(c-to)<=Oo*Math.max(1,Math.abs(c),Math.abs(to))&&Math.abs(a-ts)<=Oo*Math.max(1,Math.abs(a),Math.abs(ts))&&Math.abs(p-Qs)<=Oo*Math.max(1,Math.abs(p),Math.abs(Qs))&&Math.abs(y-Fs)<=Oo*Math.max(1,Math.abs(y),Math.abs(Fs))&&Math.abs(w-Us)<=Oo*Math.max(1,Math.abs(w),Math.abs(Us))&&Math.abs(O-Sa)<=Oo*Math.max(1,Math.abs(O),Math.abs(Sa))&&Math.abs(V-dl)<=Oo*Math.max(1,Math.abs(V),Math.abs(dl))&&Math.abs(he-fu)<=Oo*Math.max(1,Math.abs(he),Math.abs(fu))&&Math.abs(be-iu)<=Oo*Math.max(1,Math.abs(be),Math.abs(iu))&&Math.abs(ut-ic)<=Oo*Math.max(1,Math.abs(ut),Math.abs(ic))&&Math.abs(Pt-Nc)<=Oo*Math.max(1,Math.abs(Pt),Math.abs(Nc))&&Math.abs(qt-nh)<=Oo*Math.max(1,Math.abs(qt),Math.abs(nh))&&Math.abs(En-Zp)<=Oo*Math.max(1,Math.abs(En),Math.abs(Zp))&&Math.abs(qn-hg)<=Oo*Math.max(1,Math.abs(qn),Math.abs(hg))&&Math.abs(Zr-jg)<=Oo*Math.max(1,Math.abs(Zr),Math.abs(jg))}var ur=wf,Hr=Su,gi,fo,Ys=(gi=(0,xr.b2)(),gi(fo=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"viewport",void 0),(0,pn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,pn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,pn.Z)(this,"jitteredProjectionMatrix",void 0),(0,pn.Z)(this,"viewMatrixInverse",void 0),(0,pn.Z)(this,"cameraPosition",void 0)}return(0,Te.Z)(i,[{key:"init",value:function(){}},{key:"update",value:function(l){this.viewport=l,this.viewMatrixInverse=Nu(),Jp(this.viewMatrixInverse,l.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var l=this.viewport.getCenter(),c=(0,zn.Z)(l,2),a=c[0],p=c[1];return[a,p]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}},{key:"setViewProjectionMatrix",value:function(l){this.overridedViewProjectionMatrix=l}},{key:"jitterProjectionMatrix",value:function(l,c){var a=Sg(Nu(),[l,c,0]);this.jitteredProjectionMatrix=wf(Nu(),a,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=wf(Nu(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),i}())||fo),Pa=function(i){return i.TOPRIGHT="topright",i.TOPLEFT="topleft",i.BOTTOMRIGHT="bottomright",i.BOTTOMLEFT="bottomleft",i.TOPCENTER="topcenter",i.BOTTOMCENTER="bottomcenter",i.LEFTCENTER="leftcenter",i.RIGHTCENTER="rightcenter",i.LEFTTOP="lefttop",i.RIGHTTOP="righttop",i.LEFTBOTTOM="leftbottom",i.RIGHTBOTTOM="rightbottom",i}({}),Ns,Ha;function ql(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=As(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function As(i,d){if(i){if(typeof i=="string")return xc(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return xc(i,d)}}function xc(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l-1&&this.controls.splice(c,1),l.remove(),this}},{key:"addControls",value:function(){var l=this;this.unAddControls.forEach(function(c){c.addTo(l.scene),l.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var l=ql(this.controls),c;try{for(l.s();!(c=l.n()).done;){var a=c.value;a.remove()}}catch(p){l.e(p)}finally{l.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var l=this.controlCorners={},c="l7-",a=this.controlContainer=va("div",c+"control-container",this.container);function p(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=w.map(function(V){return c+V}).join(" ");l[w.filter(function(V){return!["row","column"].includes(V)}).join("")]=va("div",O,a)}function y(w){var O=w.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Ln.Z)(O),[md[w]])}Object.values(Pa).forEach(function(w){p(y(w))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var l in this.controlCorners)this.controlCorners[l]&&Ua(this.controlCorners[l]);this.controlContainer&&Ua(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var l=this,c=window.MutationObserver;if(c)for(var a=function(){var O=y[p],V=O.match(/^(top|bottom)(left|right)$/);if(V){var he=(0,zn.Z)(V,3),be=he[1],ut=he[2],Pt=l.controlCorners["".concat(be).concat(ut)],qt=new c(function(En){var qn=(0,zn.Z)(En,1),Zr=qn[0].target;Pt&&(Pt.style[be]=Zr.clientHeight+"px")});qt.observe(l.controlCorners["".concat(ut).concat(be)],{childList:!0,attributes:!0})}},p=0,y=Object.keys(this.controlCorners);p-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(l){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(l),l.addTo(this.scene)):this.unAddMarkers.push(l)}},{key:"addMarkers",value:function(){var l=this;this.unAddMarkers.forEach(function(c){c.addTo(l.scene),l.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var l=this;this.unAddMarkerLayers.forEach(function(c){l.markerLayers.push(c),c.addTo(l.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(l){l.remove(),this.markers.indexOf(l);var c=this.markers.indexOf(l);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(In.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(l){l.remove()}),this.markers=[],this.markerLayers.forEach(function(l){l.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(l){l.destroy()}}]),i}())||pd),kp,Xd,rf=(kp=(0,xr.b2)(),kp(Xd=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"scene",void 0),(0,pn.Z)(this,"mapsService",void 0),(0,pn.Z)(this,"popups",[]),(0,pn.Z)(this,"unAddPopups",[])}return(0,Te.Z)(i,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(l){l!=null&&l.isOpen()&&l.remove();var c=this.popups.indexOf(l);c>-1&&this.popups.splice(c,1);var a=this.unAddPopups.indexOf(l);a>-1&&this.unAddPopups.splice(a,1)}},{key:"destroy",value:function(){this.popups.forEach(function(l){return l.remove()})}},{key:"addPopup",value:function(l){var c=this;l&&l.getOptions().autoClose&&[].concat((0,Ln.Z)(this.popups),(0,Ln.Z)(this.unAddPopups)).forEach(function(a){a.getOptions().autoClose&&c.removePopup(a)}),this.isMarkerReady?(l.addTo(this.scene),this.popups.push(l)):this.unAddPopups.push(l),l.on("close",function(){c.removePopup(l)})}},{key:"initPopup",value:function(){var l=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){l.addPopup(c),l.unAddPopups=[]})}},{key:"init",value:function(l){this.scene=l,this.mapsService=l.get(In.IMapService)}}]),i}())||Xd),es=function(i){return i.normal="normal",i.additive="additive",i.subtractive="subtractive",i.min="min",i.max="max",i.none="none",i}({}),Rl=function(i){return i.MULTIPLE="MULTIPLE",i.SINGLE="SINGLE",i}({}),sf=function(i){return i.AND="and",i.OR="or",i}({}),Ad=function(i){return i.INIT="init",i.UPDATE="update",i}({}),Ff={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},Ag=Ff,Pf,Xl,Ph=ks.merge,cf={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Gd={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:sf.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},Sp=(Pf=(0,xr.b2)(),Pf(Xl=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"sceneConfigCache",{}),(0,pn.Z)(this,"layerConfigCache",{}),(0,pn.Z)(this,"layerAttributeConfigCache",{})}return(0,Te.Z)(i,[{key:"getSceneConfig",value:function(l){return this.sceneConfigCache[l]}},{key:"getSceneWarninfo",value:function(l){return Ag[l]}},{key:"setSceneConfig",value:function(l,c){this.sceneConfigCache[l]=(0,Xe.Z)((0,Xe.Z)({},cf),c)}},{key:"getLayerConfig",value:function(l){return this.layerConfigCache[l]}},{key:"setLayerConfig",value:function(l,c,a){this.layerConfigCache[c]=(0,Xe.Z)({},Ph({},this.sceneConfigCache[l],Gd,a))}},{key:"getAttributeConfig",value:function(l){return this.layerAttributeConfigCache[l]}},{key:"setAttributeConfig",value:function(l,c){this.layerAttributeConfigCache[l]=(0,Xe.Z)((0,Xe.Z)({},this.layerAttributeConfigCache[l]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),i}())||Xl);function F(i,d,l,c){l&&Object.defineProperty(i,d,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(c):void 0})}function I(i,d,l,c,a){var p={};return Object.keys(c).forEach(function(y){p[y]=c[y]}),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=l.slice().reverse().reduce(function(y,w){return w(i,d,y)||y},p),a&&p.initializer!==void 0&&(p.value=p.initializer?p.initializer.call(a):void 0,p.initializer=void 0),p.initializer===void 0&&(Object.defineProperty(i,d,p),p=null),p}function K(){var i=new Vp(4);return Vp!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0,i[3]=0),i}function de(i){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=i[0],d[1]=i[1],d[2]=i[2],d[3]=i[3],d}function Re(i,d,l,c){var a=new Vp(4);return a[0]=i,a[1]=d,a[2]=l,a[3]=c,a}function gt(i,d){return i[0]=d[0],i[1]=d[1],i[2]=d[2],i[3]=d[3],i}function st(i,d,l,c,a){return i[0]=d,i[1]=l,i[2]=c,i[3]=a,i}function Yt(i,d,l){return i[0]=d[0]+l[0],i[1]=d[1]+l[1],i[2]=d[2]+l[2],i[3]=d[3]+l[3],i}function Tn(i,d,l){return i[0]=d[0]-l[0],i[1]=d[1]-l[1],i[2]=d[2]-l[2],i[3]=d[3]-l[3],i}function Mr(i,d,l){return i[0]=d[0]*l[0],i[1]=d[1]*l[1],i[2]=d[2]*l[2],i[3]=d[3]*l[3],i}function di(i,d,l){return i[0]=d[0]/l[0],i[1]=d[1]/l[1],i[2]=d[2]/l[2],i[3]=d[3]/l[3],i}function Li(i,d){return i[0]=Math.ceil(d[0]),i[1]=Math.ceil(d[1]),i[2]=Math.ceil(d[2]),i[3]=Math.ceil(d[3]),i}function Co(i,d){return i[0]=Math.floor(d[0]),i[1]=Math.floor(d[1]),i[2]=Math.floor(d[2]),i[3]=Math.floor(d[3]),i}function Zo(i,d,l){return i[0]=Math.min(d[0],l[0]),i[1]=Math.min(d[1],l[1]),i[2]=Math.min(d[2],l[2]),i[3]=Math.min(d[3],l[3]),i}function gs(i,d,l){return i[0]=Math.max(d[0],l[0]),i[1]=Math.max(d[1],l[1]),i[2]=Math.max(d[2],l[2]),i[3]=Math.max(d[3],l[3]),i}function ca(i,d){return i[0]=Math.round(d[0]),i[1]=Math.round(d[1]),i[2]=Math.round(d[2]),i[3]=Math.round(d[3]),i}function Aa(i,d,l){return i[0]=d[0]*l,i[1]=d[1]*l,i[2]=d[2]*l,i[3]=d[3]*l,i}function Ga(i,d,l,c){return i[0]=d[0]+l[0]*c,i[1]=d[1]+l[1]*c,i[2]=d[2]+l[2]*c,i[3]=d[3]+l[3]*c,i}function Pl(i,d){var l=d[0]-i[0],c=d[1]-i[1],a=d[2]-i[2],p=d[3]-i[3];return Math.hypot(l,c,a,p)}function ul(i,d){var l=d[0]-i[0],c=d[1]-i[1],a=d[2]-i[2],p=d[3]-i[3];return l*l+c*c+a*a+p*p}function Bl(i){var d=i[0],l=i[1],c=i[2],a=i[3];return Math.hypot(d,l,c,a)}function Uu(i){var d=i[0],l=i[1],c=i[2],a=i[3];return d*d+l*l+c*c+a*a}function oh(i,d){return i[0]=-d[0],i[1]=-d[1],i[2]=-d[2],i[3]=-d[3],i}function Md(i,d){return i[0]=1/d[0],i[1]=1/d[1],i[2]=1/d[2],i[3]=1/d[3],i}function Xf(i,d){var l=d[0],c=d[1],a=d[2],p=d[3],y=l*l+c*c+a*a+p*p;return y>0&&(y=1/Math.sqrt(y)),i[0]=l*y,i[1]=c*y,i[2]=a*y,i[3]=p*y,i}function Nd(i,d){return i[0]*d[0]+i[1]*d[1]+i[2]*d[2]+i[3]*d[3]}function Bd(i,d,l,c){var a=l[0]*c[1]-l[1]*c[0],p=l[0]*c[2]-l[2]*c[0],y=l[0]*c[3]-l[3]*c[0],w=l[1]*c[2]-l[2]*c[1],O=l[1]*c[3]-l[3]*c[1],V=l[2]*c[3]-l[3]*c[2],he=d[0],be=d[1],ut=d[2],Pt=d[3];return i[0]=be*V-ut*O+Pt*w,i[1]=-(he*V)+ut*y-Pt*p,i[2]=he*O-be*y+Pt*a,i[3]=-(he*w)+be*p-ut*a,i}function xd(i,d,l,c){var a=d[0],p=d[1],y=d[2],w=d[3];return i[0]=a+c*(l[0]-a),i[1]=p+c*(l[1]-p),i[2]=y+c*(l[2]-y),i[3]=w+c*(l[3]-w),i}function Sf(i,d){d=d||1;var l,c,a,p,y,w;do l=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,y=l*l+c*c;while(y>=1);do a=glMatrix.RANDOM()*2-1,p=glMatrix.RANDOM()*2-1,w=a*a+p*p;while(w>=1);var O=Math.sqrt((1-y)/w);return i[0]=d*l,i[1]=d*c,i[2]=d*a*O,i[3]=d*p*O,i}function Jh(i,d,l){var c=d[0],a=d[1],p=d[2],y=d[3];return i[0]=l[0]*c+l[4]*a+l[8]*p+l[12]*y,i[1]=l[1]*c+l[5]*a+l[9]*p+l[13]*y,i[2]=l[2]*c+l[6]*a+l[10]*p+l[14]*y,i[3]=l[3]*c+l[7]*a+l[11]*p+l[15]*y,i}function Oh(i,d,l){var c=d[0],a=d[1],p=d[2],y=l[0],w=l[1],O=l[2],V=l[3],he=V*c+w*p-O*a,be=V*a+O*c-y*p,ut=V*p+y*a-w*c,Pt=-y*c-w*a-O*p;return i[0]=he*V+Pt*-y+be*-O-ut*-w,i[1]=be*V+Pt*-w+ut*-y-he*-O,i[2]=ut*V+Pt*-O+he*-w-be*-y,i[3]=d[3],i}function ap(i){return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}function Rf(i){return"vec4("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}function og(i,d){return i[0]===d[0]&&i[1]===d[1]&&i[2]===d[2]&&i[3]===d[3]}function Mg(i,d){var l=i[0],c=i[1],a=i[2],p=i[3],y=d[0],w=d[1],O=d[2],V=d[3];return Math.abs(l-y)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-w)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(a-O)<=glMatrix.EPSILON*Math.max(1,Math.abs(a),Math.abs(O))&&Math.abs(p-V)<=glMatrix.EPSILON*Math.max(1,Math.abs(p),Math.abs(V))}var gm=null,v0=null,wv=null,y0=null,Um=null,Fu=null,Cu=null,sh=function(){var i=K();return function(d,l,c,a,p,y){var w,O;for(l||(l=4),c||(c=0),a?O=Math.min(a*l+c,d.length):O=d.length,w=c;w0){var O=w.changedTouches[0];c.onHover({clientX:O.clientX,clientY:O.clientY,type:"touchend"})}}),(0,pn.Z)((0,eo.Z)(c),"onTouchMove",function(w){var O=w.changedTouches[0];c.onHover({clientX:O.clientX,clientY:O.clientY,type:"touchmove"})}),(0,pn.Z)((0,eo.Z)(c),"onHover",function(w){var O=w.clientX,V=w.clientY,he=O,be=V,ut=w.type,Pt=c.mapService.getMapContainer();if(Pt){var qt=Pt.getBoundingClientRect(),En=qt.top,qn=qt.left;he=he-qn-Pt.clientLeft,be=be-En-Pt.clientTop}var Zr=c.mapService.containerToLngLat([he,be]);if(ut==="click"){c.isDoubleTap(he,be,Zr);return}if(ut==="touch"){c.isDoubleTap(he,be,Zr);return}ut!=="click"&&ut!=="dblclick"&&c.emit(Yg.Hover,{x:he,y:be,lngLat:Zr,type:ut,target:w})}),c}return(0,Te.Z)(l,[{key:"init",value:function(){this.addEventListenerOnMap(),this.$containter=this.mapService.getMapContainer()}},{key:"destroy",value:function(){this.hammertime&&this.hammertime.destroy(),this.removeEventListenerOnMap(),this.off(Yg.Hover)}},{key:"triggerHover",value:function(a){var p=a.x,y=a.y;this.emit(Yg.Hover,{x:p,y})}},{key:"triggerSelect",value:function(a){this.emit(Yg.Select,{featureId:a})}},{key:"triggerActive",value:function(a){this.emit(Yg.Active,{featureId:a})}},{key:"addEventListenerOnMap",value:function(){var a=this.mapService.getMapContainer();if(a){var p=new(Jm()).Manager(a);p.add(new(Jm()).Tap({event:"dblclick",taps:2})),p.add(new(Jm()).Tap({event:"click"})),p.add(new(Jm()).Pan({threshold:0,pointers:0})),p.add(new(Jm()).Press({})),p.on("dblclick click",this.onHammer),p.on("panstart panmove panend pancancel",this.onDrag),a.addEventListener("touchstart",this.onTouch),a.addEventListener("touchend",this.onTouchEnd),a.addEventListener("mousemove",this.onHover),a.addEventListener("touchmove",this.onTouchMove),a.addEventListener("mousedown",this.onHover,!0),a.addEventListener("mouseup",this.onHover),a.addEventListener("contextmenu",this.onHover),this.hammertime=p}}},{key:"removeEventListenerOnMap",value:function(){var a=this.mapService.getMapContainer();a&&(a.removeEventListener("mousemove",this.onHover),this.hammertime.off("dblclick click",this.onHammer),this.hammertime.off("panstart panmove panend pancancel",this.onDrag),a.removeEventListener("touchstart",this.onTouch),a.removeEventListener("touchend",this.onTouchEnd),a.removeEventListener("mousedown",this.onHover),a.removeEventListener("mouseup",this.onHover),a.removeEventListener("contextmenu",this.onHover))}},{key:"interactionEvent",value:function(a){var p=a.type,y=a.pointerType,w,O;y==="touch"?(O=Math.floor(a.pointers[0].clientY),w=Math.floor(a.pointers[0].clientX)):(O=Math.floor(a.srcEvent.y),w=Math.floor(a.srcEvent.x));var V=this.mapService.getMapContainer();if(V){var he=V.getBoundingClientRect(),be=he.top,ut=he.left;w-=ut,O-=be}var Pt=this.mapService.containerToLngLat([w,O]);return{x:w,y:O,lngLat:Pt,type:p,target:a.srcEvent}}},{key:"isDoubleTap",value:function(a,p,y){var w=this,O=new Date().getTime(),V="click";O-this.lastClickTime<400&&Math.abs(this.lastClickXY[0]-a)<10&&Math.abs(this.lastClickXY[1]-p)<10?(this.lastClickTime=0,this.lastClickXY=[-1,-1],this.clickTimer&&clearTimeout(this.clickTimer),V="dblclick",this.emit(Yg.Hover,{x:a,y:p,lngLat:y,type:V})):(this.lastClickTime=O,this.lastClickXY=[a,p],this.clickTimer=setTimeout(function(){V="click",w.emit(Yg.Hover,{x:a,y:p,lngLat:y,type:V})},400))}}]),l}(Hp()),n1=I(ny.prototype,"mapService",[Wp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ny))||Vv),Uy=0;function c1(i){var d=i;if(typeof i=="string"&&(d=document.getElementById(i)),d){var l=document.createElement("div");return l.style.cssText+=` position: absolute; z-index:2; height: 100%; width: 100%; pointer-events: none; - `,f.id="l7-scene-".concat(W4++),f.classList.add("l7-scene"),v.appendChild(f),f}return null}function zP(i){var v,f=!0;if((i==null||(v=i.target)===null||v===void 0?void 0:v.target)instanceof HTMLElement)for(var m,d=i==null||(m=i.target)===null||m===void 0?void 0:m.target;d;){var E,M=Array.from(d.classList);if(M.includes("l7-marker")||M.includes("l7-popup")){f=!1;break}d=(E=d)===null||E===void 0?void 0:E.parentElement}return f}var GI=function(i){return i[i.SAMPLED=0]="SAMPLED",i[i.RENDER_TARGET=1]="RENDER_TARGET",i}({}),MI,T4,PD,L3,wP,oP,EI,TI,eD,fD,mI,X3,LD;function Y3(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=mL(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function mL(i,v){if(i){if(typeof i=="string")return KI(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return KI(i,v)}}function KI(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fkd-1*kg||fy<0||J1>em-1*kg||J1<0)){aw.next=11;break}return aw.abrupt("return",!1);case 11:return aw.next=13,Go({x:Math.floor(fy/v.pickBufferScale),y:Math.floor((em-(B+1)*kg)/v.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:v.pickingFBO});case 13:return ey=aw.sent,v.pickedColors=ey,ey[0]!==0||ey[1]!==0||ey[2]!==0?(Fy=A0(ey),C_=d.layerPickService.getFeatureById(Fy),Fy!==d.getCurrentPickId()&&ue==="mousemove"&&(ue="mouseenter"),yx={x:M,y:B,type:ue,lngLat:J,featureId:Fy,feature:C_,target:Ze},C_&&(st=!0,d.setCurrentPickId(Fy),v.triggerHoverOnLayer(d,yx))):(ux={x:M,y:B,lngLat:J,type:d.getCurrentPickId()!==null&&ue==="mousemove"?"mouseout":"un"+ue,featureId:null,target:Ze,feature:null},v.triggerHoverOnLayer(d,(0,vn.Z)((0,vn.Z)({},ux),{},{type:"unpick"})),v.triggerHoverOnLayer(d,ux),d.setCurrentPickId(null)),vv&&d.layerPickService.highlightPickedFeature(ey),y1&&ue==="click"&&(ey==null?void 0:ey.toString())!==[0,0,0,0].toString()&&(h2=A0(ey),d.getCurrentSelectedId()===null||h2!==d.getCurrentSelectedId()?(d.layerPickService.selectFeature(ey),d.setCurrentSelectedId(h2)):(d.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),d.setCurrentSelectedId(null))),aw.abrupt("return",st);case 19:case"end":return aw.stop()}},m)}));return function(m,d){return f.apply(this,arguments)}}())}return(0,gt.Z)(i,[{key:"init",value:function(f){var m=this.rendererService,d=m.createTexture2D,E=m.createFramebuffer,M=m.getContainer,B=this.getContainerSize(M()),J=B.width,ue=B.height;J*=kg,ue*=kg,this.pickBufferScale=this.configService.getSceneConfig(f).pickBufferScale||1,J=Math.round(J/this.pickBufferScale),ue=Math.round(ue/this.pickBufferScale);var Ze=d({width:J,height:ue,usage:GI.RENDER_TARGET,label:"Picking Texture"});this.pickingFBO=E({color:Ze,depth:!0,width:J,height:ue}),this.interactionService.on(eA.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E,M){var B=this,J,ue,Ze,st;return Pv().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:return J=this.rendererService,ue=J.useFramebufferAsync,Ze=J.clear,this.resizePickingFBO(),d.hooks.beforePickingEncode.call(),Go.next=5,ue(this.pickingFBO,(0,v_.Z)(Pv().mark(function Ta(){return Pv().wrap(function(kd){for(;;)switch(kd.prev=kd.next){case 0:Ze({framebuffer:B.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),d.renderModels({ispick:!0});case 2:case"end":return kd.stop()}},Ta)})));case 5:return d.hooks.afterPickingEncode.call(),Go.next=8,this.pickBox(d,E);case 8:st=Go.sent,M(st);case 10:case"end":return Go.stop()}},m,this)}));function f(m,d,E){return v.apply(this,arguments)}return f}()},{key:"pickBox",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){var M=this,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1,fy,J1,ey,Fy,C_,yx,ux;return Pv().wrap(function(V2){for(;;)switch(V2.prev=V2.next){case 0:if(B=E.map(function(aw){var XE=aw<0?0:aw;return Math.floor(XE*kg/M.pickBufferScale)}),J=(0,hu.Z)(B,4),ue=J[0],Ze=J[1],st=J[2],Fr=J[3],Go=this.rendererService,Ta=Go.readPixelsAsync,eu=Go.getContainer,kd=this.getContainerSize(eu()),em=kd.width,B0=kd.height,em*=kg,B0*=kg,!(ue>(em-1)*kg/this.pickBufferScale||st<0||Ze>(B0-1)*kg/this.pickBufferScale||Fr<0)){V2.next=7;break}return V2.abrupt("return",[]);case 7:return vv=Math.min(em/this.pickBufferScale,st)-ue,y1=Math.min(B0/this.pickBufferScale,Fr)-Ze,V2.next=11,Ta({x:ue,y:Math.floor(B0/this.pickBufferScale-(Fr+1)),width:vv,height:y1,data:new Uint8Array(vv*y1*4),framebuffer:this.pickingFBO});case 11:for(fy=V2.sent,J1=[],ey={},Fy=0;Fy0&&arguments[0]!==void 0?arguments[0]:!0;(0,Zr.Z)(this,i),(0,Na.Z)(this,"autoStart",void 0),(0,Na.Z)(this,"startTime",0),(0,Na.Z)(this,"oldTime",0),(0,Na.Z)(this,"running",!1),(0,Na.Z)(this,"elapsedTime",0),this.autoStart=v}return(0,gt.Z)(i,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var f=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var m=(typeof performance=="undefined"?Date:performance).now();f=(m-this.oldTime)/1e3,this.oldTime=m,this.elapsedTime+=f}return f}}]),i}(),XI,OI,RI,A4,vL,MD,yL,$P,kI;function Z4(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=PM(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function PM(i,v){if(i){if(typeof i=="string")return _D(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _D(i,v)}}function _D(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f-1&&B.layerChildren.splice(J,1)):(ue=this.layers.indexOf(M),ue>-1&&this.layers.splice(ue,1)),M.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return st.stop()}},E,this)}));function d(E,M){return m.apply(this,arguments)}return d}()},{key:"removeAllLayers",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:this.destroy(),this.reRender();case 2:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"setEnableRender",value:function(d){this.enableRender=d}},{key:"renderLayers",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st,Fr,Go,Ta;return Pv().wrap(function(kd){for(;;)switch(kd.prev=kd.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){kd.next=2;break}return kd.abrupt("return");case 2:this.updateLayerRenderList(),M=this.debugService.generateRenderUid(),this.debugService.renderStart(M),this.alreadyInRendering=!0,this.clear(),B=Z4(this.layerList);try{for(B.s();!(J=B.n()).done;)ue=J.value,ue.prerender()}catch(em){B.e(em)}finally{B.f()}this.renderService.beginFrame(),Ze=Z4(this.layerList),kd.prev=11,Ze.s();case 13:if((st=Ze.n()).done){kd.next=25;break}if(Fr=st.value,Go=Fr.getLayerConfig(),Ta=Go.enableMask,Fr.masks.filter(function(em){return em.inited}).length>0&&Ta&&this.renderMask(Fr.masks),!Fr.getLayerConfig().enableMultiPassRenderer){kd.next=22;break}return kd.next=20,Fr.renderMultiPass();case 20:kd.next=23;break;case 22:Fr.render();case 23:kd.next=13;break;case 25:kd.next=30;break;case 27:kd.prev=27,kd.t0=kd.catch(11),Ze.e(kd.t0);case 30:return kd.prev=30,Ze.f(),kd.finish(30);case 33:this.renderService.endFrame(),this.debugService.renderEnd(M),this.alreadyInRendering=!1;case 36:case"end":return kd.stop()}},E,this,[[11,27,30,33]])}));function d(){return m.apply(this,arguments)}return d}()},{key:"renderMask",value:function(d){var E=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var M=d.length>1?z_.MULTIPLE:z_.SINGLE,B=Z4(d),J;try{for(B.s();!(J=B.n()).done;){var ue=J.value;ue.render({isStencil:!0,stencilType:M,stencilIndex:E++})}}catch(Ze){B.e(Ze)}finally{B.f()}}},{key:"beforeRenderData",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){var B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,M.hooks.beforeRenderData.promise();case 2:B=ue.sent,B&&this.renderLayers();case 4:case"end":return ue.stop()}},E,this)}));function d(E){return m.apply(this,arguments)}return d}()},{key:"renderTileLayerMask",value:function(d){var E=0,M=d.getLayerConfig(),B=M.enableMask,J=B===void 0?!0:B,ue=d.tileMask?1:0,Ze=d.masks.filter(function(eu){return eu.inited});ue=ue+(J?Ze.length:1);var st=ue>1?z_.MULTIPLE:z_.SINGLE;if((d.tileMask||Ze.length&&J)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Ze.length&&J){var Fr=Z4(Ze),Go;try{for(Fr.s();!(Go=Fr.n()).done;){var Ta=Go.value;Ta.render({isStencil:!0,stencilType:st,stencilIndex:E++})}}catch(eu){Fr.e(eu)}finally{Fr.f()}}d.tileMask&&d.tileMask.render({isStencil:!0,stencilType:st,stencilIndex:E++,stencilOperation:hS.OR})}},{key:"renderTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(this.renderTileLayerMask(M),!M.getLayerConfig().enableMultiPassRenderer){J.next=6;break}return J.next=4,M.renderMultiPass();case 4:J.next=8;break;case 6:return J.next=8,M.render();case 8:case"end":return J.stop()}},E,this)}));function d(E){return m.apply(this,arguments)}return d}()},{key:"updateLayerRenderList",value:function(){var d=this;this.layerList=[],this.layers.filter(function(E){return E.inited}).filter(function(E){return E.isVisible()}).sort(function(E,M){return E.zIndex-M.zIndex}).forEach(function(E){d.layerList.push(E)})}},{key:"destroy",value:function(){this.layers.forEach(function(d){d.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var d=Xg(this.mapService.bgColor);this.renderService.clear({color:d,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),f}(O2.EventEmitter),yL=H(MD.prototype,"renderService",[OI],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$P=H(MD.prototype,"mapService",[RI],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kI=H(MD.prototype,"debugService",[A4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MD))||vL),q3=l(56348),J0=function(i){return i[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.CULL_FACE=2884]="CULL_FACE",i[i.BLEND=3042]="BLEND",i[i.DITHER=3024]="DITHER",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.RED=6403]="RED",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.TEXTURE1=33985]="TEXTURE1",i[i.TEXTURE2=33986]="TEXTURE2",i[i.TEXTURE3=33987]="TEXTURE3",i[i.TEXTURE4=33988]="TEXTURE4",i[i.TEXTURE5=33989]="TEXTURE5",i[i.TEXTURE6=33990]="TEXTURE6",i[i.TEXTURE7=33991]="TEXTURE7",i[i.TEXTURE8=33992]="TEXTURE8",i[i.TEXTURE9=33993]="TEXTURE9",i[i.TEXTURE10=33994]="TEXTURE10",i[i.TEXTURE11=33995]="TEXTURE11",i[i.TEXTURE12=33996]="TEXTURE12",i[i.TEXTURE13=33997]="TEXTURE13",i[i.TEXTURE14=33998]="TEXTURE14",i[i.TEXTURE15=33999]="TEXTURE15",i[i.TEXTURE16=34e3]="TEXTURE16",i[i.TEXTURE17=34001]="TEXTURE17",i[i.TEXTURE18=34002]="TEXTURE18",i[i.TEXTURE19=34003]="TEXTURE19",i[i.TEXTURE20=34004]="TEXTURE20",i[i.TEXTURE21=34005]="TEXTURE21",i[i.TEXTURE22=34006]="TEXTURE22",i[i.TEXTURE23=34007]="TEXTURE23",i[i.TEXTURE24=34008]="TEXTURE24",i[i.TEXTURE25=34009]="TEXTURE25",i[i.TEXTURE26=34010]="TEXTURE26",i[i.TEXTURE27=34011]="TEXTURE27",i[i.TEXTURE28=34012]="TEXTURE28",i[i.TEXTURE29=34013]="TEXTURE29",i[i.TEXTURE30=34014]="TEXTURE30",i[i.TEXTURE31=34015]="TEXTURE31",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i}({}),eM=Qv.isNil,tM=function(){function i(v){var f=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"name",void 0),(0,Na.Z)(this,"type",void 0),(0,Na.Z)(this,"scale",void 0),(0,Na.Z)(this,"descriptor",void 0),(0,Na.Z)(this,"featureBufferLayout",[]),(0,Na.Z)(this,"needRescale",!1),(0,Na.Z)(this,"needRemapping",!1),(0,Na.Z)(this,"needRegenerateVertices",!1),(0,Na.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,Na.Z)(this,"vertexAttribute",void 0),(0,Na.Z)(this,"defaultCallback",function(m){if(m.length===0){var d;return((d=f.scale)===null||d===void 0?void 0:d.defaultValues)||[]}return m.map(function(E,M){var B,J=(B=f.scale)===null||B===void 0?void 0:B.scalers[M].func,ue=J(E);return ue})}),this.setProps(v)}return(0,gt.Z)(i,[{key:"setProps",value:function(f){Object.assign(this,f)}},{key:"mapping",value:function(f){var m;if((m=this.scale)!==null&&m!==void 0&&m.callback){var d,E=(d=this.scale)===null||d===void 0?void 0:d.callback.apply(d,(0,su.Z)(f));if(!eM(E))return[E]}return this.defaultCallback(f)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),i}(),LM=["buffer","update","name"],A5=["buffer","update","name"],VP,Lk,l4,YI,H4,qI,jP=(VP={},(0,Na.Z)(VP,J0.FLOAT,4),(0,Na.Z)(VP,J0.UNSIGNED_BYTE,1),(0,Na.Z)(VP,J0.UNSIGNED_SHORT,2),VP),MM=(Lk=(0,Rg.b2)(),l4=(0,Rg.f3)(cu.IRendererService),Lk(YI=(H4=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"attributesAndIndices",void 0),ne(this,"rendererService",qI,this),(0,Na.Z)(this,"attributes",[]),(0,Na.Z)(this,"triangulation",void 0),(0,Na.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,gt.Z)(i,[{key:"registerStyleAttribute",value:function(f){var m=this.getLayerStyleAttribute(f.name||"");return m?m.setProps(f):(m=new tM(f),this.attributes.push(m)),m}},{key:"unRegisterStyleAttribute",value:function(f){var m=this.attributes.findIndex(function(d){return d.name===f});m>-1&&this.attributes.splice(m,1)}},{key:"updateScaleAttribute",value:function(f){this.attributes.forEach(function(m){var d,E=m.name,M=(d=m.scale)===null||d===void 0?void 0:d.field;(f[E]||M&&f[M])&&(m.needRescale=!0,m.needRemapping=!0,m.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(f,m,d){var E=this.getLayerStyleAttribute(f);E||(E=this.registerStyleAttribute((0,vn.Z)((0,vn.Z)({},m),{},{name:f})));var M=m.scale;M&&E&&(E.scale=M,E.needRescale=!0,E.needRemapping=!0,E.needRegenerateVertices=!0,d&&d.featureRange&&(E.featureRange=d.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(f){return this.attributes.find(function(m){return m.name===f})}},{key:"getLayerAttributeScale",value:function(f){var m,d=this.getLayerStyleAttribute(f),E=d==null||(m=d.scale)===null||m===void 0?void 0:m.scalers;return E&&E[0]?E[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(f,m){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,E=arguments.length>3?arguments[3]:void 0,M=arguments.length>4?arguments[4]:void 0,B=this.attributes.find(function(fy){return fy.name===f});if(B&&B.descriptor){var J=B.descriptor,ue=J.update,Ze=J.buffer,st=J.size,Fr=st===void 0?0:st,Go=jP[Ze.type||J0.FLOAT];if(ue){var Ta=this.featureLayout,eu=Ta.elements,kd=Ta.sizePerElement,em=eu.slice(d,E);if(!em.length)return;var B0=em[0].offset,vv=B0*Fr*Go,y1=em.map(function(fy,J1){for(var ey=fy.featureIdx,Fy=fy.vertices,C_=fy.normals,yx=Fy.length/kd,ux=[],h2=0;h20&&E[E.length-1])&&(ue[0]===6||ue[0]===2)){f=0;continue}if(ue[0]===3&&(!E||ue[1]>E[0]&&ue[1]0)&&!(d=m.next()).done;)E.push(d.value)}catch(B){M={error:B}}finally{try{d&&!d.done&&(f=m.return)&&f.call(m)}finally{if(M)throw M.error}}return E}function WP(i,v,f){if(f||arguments.length===2)for(var m=0,d=v.length,E;m=0&&m.length%1===0}i.exports=v.default})(GD,GD.exports);var yI={},yO={exports:{}},OM={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(f){return function(){for(var m=[],d=arguments.length;d--;)m[d]=arguments[d];var E=m.pop();return f.call(this,m,E)}},i.exports=v.default})(OM,OM.exports);var EP={};Object.defineProperty(EP,"__esModule",{value:!0}),EP.fallback=RM,EP.wrap=wR;var _O=EP.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,bO=EP.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Mk=EP.hasNextTick=typeof CP=="object"&&typeof CP.nextTick=="function";function RM(i){setTimeout(i,0)}function wR(i){return function(v){for(var f=[],m=arguments.length-1;m-- >0;)f[m]=arguments[m+1];return i(function(){return v.apply(void 0,f)})}}var ZP;_O?ZP=queueMicrotask:bO?ZP=setImmediate:Mk?ZP=CP.nextTick:ZP=RM,EP.default=wR(ZP),function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=J;var f=OM.exports,m=B(f),d=EP,E=B(d),M=yI;function B(st){return st&&st.__esModule?st:{default:st}}function J(st){return(0,M.isAsync)(st)?function(){for(var Fr=[],Go=arguments.length;Go--;)Fr[Go]=arguments[Go];var Ta=Fr.pop(),eu=st.apply(this,Fr);return ue(eu,Ta)}:(0,m.default)(function(Fr,Go){var Ta;try{Ta=st.apply(this,Fr)}catch(eu){return Go(eu)}if(Ta&&typeof Ta.then=="function")return ue(Ta,Go);Go(null,Ta)})}function ue(st,Fr){return st.then(function(Go){Ze(Fr,null,Go)},function(Go){Ze(Fr,Go&&Go.message?Go:new Error(Go))})}function Ze(st,Fr,Go){try{st(Fr,Go)}catch(Ta){(0,E.default)(function(eu){throw eu},Ta)}}i.exports=v.default}(yO,yO.exports),Object.defineProperty(yI,"__esModule",{value:!0}),yI.isAsyncIterable=yI.isAsyncGenerator=yI.isAsync=void 0;var f6=yO.exports,xO=HP(f6);function HP(i){return i&&i.__esModule?i:{default:i}}function iM(i){return i[Symbol.toStringTag]==="AsyncFunction"}function kM(i){return i[Symbol.toStringTag]==="AsyncGenerator"}function D5(i){return typeof i[Symbol.asyncIterator]=="function"}function CR(i){if(typeof i!="function")throw new Error("expected a function");return iM(i)?(0,xO.default)(i):i}yI.default=CR,yI.isAsync=iM,yI.isAsyncGenerator=kM,yI.isAsyncIterable=D5;var u4={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=f;function f(m,d){if(d===void 0&&(d=m.length),!d)throw new Error("arity is undefined");function E(){for(var M=this,B=[],J=arguments.length;J--;)B[J]=arguments[J];return typeof B[d-1]=="function"?m.apply(this,B):new Promise(function(ue,Ze){B[d-1]=function(st){for(var Fr=[],Go=arguments.length-1;Go-- >0;)Fr[Go]=arguments[Go+1];if(st)return Ze(st);ue(Fr.length>1?Fr:Fr[0])},m.apply(M,B)})}return E}i.exports=v.default})(u4,u4.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0});var f=GD.exports,m=J(f),d=yI,E=J(d),M=u4.exports,B=J(M);function J(ue){return ue&&ue.__esModule?ue:{default:ue}}v.default=(0,B.default)(function(ue,Ze,st){var Fr=(0,m.default)(Ze)?[]:{};ue(Ze,function(Go,Ta,eu){(0,E.default)(Go)(function(kd){for(var em,B0=[],vv=arguments.length-1;vv-- >0;)B0[vv]=arguments[vv+1];B0.length<2&&(em=B0,B0=em[0]),Fr[Ta]=B0,eu(kd)})},function(Go){return st(Go,Fr)})},3),i.exports=v.default}(rM,rM.exports);var GP={exports:{}},oM={exports:{}},wO={exports:{}},TP={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=f;function f(m){function d(){for(var E=[],M=arguments.length;M--;)E[M]=arguments[M];if(m!==null){var B=m;m=null,B.apply(this,E)}}return Object.assign(d,m),d}i.exports=v.default})(TP,TP.exports);var _L={exports:{}},NM={exports:{}};(function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=function(f){return f[Symbol.iterator]&&f[Symbol.iterator]()},i.exports=v.default})(NM,NM.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=Ze;var f=GD.exports,m=M(f),d=NM.exports,E=M(d);function M(st){return st&&st.__esModule?st:{default:st}}function B(st){var Fr=-1,Go=st.length;return function(){return++Fr=B||Fr||Ze||(Fr=!0,M.next().then(function(B0){var vv=B0.value,y1=B0.done;if(!(st||Ze)){if(Fr=!1,y1){Ze=!0,Go<=0&&ue(null);return}Go++,J(vv,Ta,kd),Ta++,eu()}}).catch(em))}function kd(B0,vv){if(Go-=1,!st){if(B0)return em(B0);if(B0===!1){Ze=!0,st=!0;return}if(vv===m.default||Ze&&Go<=0)return Ze=!0,ue(null);eu()}}function em(B0){st||(Fr=!1,Ze=!0,ue(B0))}eu()}i.exports=v.default}(SO,SO.exports),function(i,v){Object.defineProperty(v,"__esModule",{value:!0});var f=TP.exports,m=Go(f),d=_L.exports,E=Go(d),M=CO.exports,B=Go(M),J=yI,ue=SO.exports,Ze=Go(ue),st=KP.exports,Fr=Go(st);function Go(Ta){return Ta&&Ta.__esModule?Ta:{default:Ta}}v.default=function(Ta){return function(eu,kd,em){if(em=(0,m.default)(em),Ta<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!eu)return em(null);if((0,J.isAsyncGenerator)(eu))return(0,Ze.default)(eu,Ta,kd,em);if((0,J.isAsyncIterable)(eu))return(0,Ze.default)(eu[Symbol.asyncIterator](),Ta,kd,em);var B0=(0,E.default)(eu),vv=!1,y1=!1,fy=0,J1=!1;function ey(C_,yx){if(!y1)if(fy-=1,C_)vv=!0,em(C_);else if(C_===!1)vv=!0,y1=!0;else{if(yx===Fr.default||vv&&fy<=0)return vv=!0,em(null);J1||Fy()}}function Fy(){for(J1=!0;fy0;)B0[vv]=arguments[vv+1];if(em!==!1){if(em||Ta===Fr.length)return Go.apply(void 0,[em].concat(B0));eu(B0)}}eu([])}v.default=(0,ue.default)(st),i.exports=v.default})(TO,TO.exports);var SR=AI(TO.exports),sM=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return SR(this.tasks)},i.prototype.tap=function(v,f){this.tasks.length===0?this.tasks.push(function(m){var d=f();m(d?null:!1,d)}):this.tasks.push(function(m,d){var E=f.apply(void 0,WP([],nM(m),!1));d(E?null:!1,v)})},i}(),ER=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return EO(this.tasks)},i.prototype.tap=function(v,f){this.tasks.push(function(m){var d=f();m(d,v)})},i}(),BM=function(){function i(){this.args=[],this.tasks=[]}return i.prototype.promise=function(){for(var v=arguments,f=[],m=0;m1&&arguments[1]!==void 0?arguments[1]:!1,f={};return i=i.replace(ia,function(m,d,E){var M=E.split(":"),B=M[0].trim(),J="";switch(M.length>1&&(J=M[1].trim()),d){case"bool":J=J==="true";break;case"float":case"int":J=Number(J);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":J?J=J.replace("[","").replace("]","").split(",").reduce(function(ue,Ze){return ue.push(Number(Ze.trim())),ue},[]):J=new Array(Va(d)).fill(0);break;default:}return f[B]=J,"".concat(v?"uniform ":"").concat(d," ").concat(B,`; -`)}),{content:i,uniforms:f}}function Cd(i){var v=wu(i,!0),f=v.content,m=v.uniforms;return f=f.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(d,E,M){M=M.trim().replace(/^.*$/gm,function(Ze){return"uniform ".concat(Ze)});var B=wu(M),J=B.content,ue=B.uniforms;return Object.assign(m,ue),"".concat(E,`{ -`).concat(J,` -};`)}),{content:f,uniforms:m}}function Ig(i){var v={};return i.replace(ia,function(f,m,d){var E=d.trim();return v[E]?"":(v[E]=!0,"uniform ".concat(m," ").concat(E,`; -`))})}var Qg,ly,Cy=Qv.uniq,F_="#define PI 3.14159265359",Ky=`#define SHIFT_RIGHT17 1.0 / 131072.0 + `,l.id="l7-scene-".concat(Uy++),l.classList.add("l7-scene"),d.appendChild(l),l}return null}function O_(i){var d,l=!0;if((i==null||(d=i.target)===null||d===void 0?void 0:d.target)instanceof HTMLElement)for(var c,a=i==null||(c=i.target)===null||c===void 0?void 0:c.target;a;){var p,y=Array.from(a.classList);if(y.includes("l7-marker")||y.includes("l7-popup")){l=!1;break}a=(p=a)===null||p===void 0?void 0:p.parentElement}return l}var $1=function(i){return i[i.SAMPLED=0]="SAMPLED",i[i.RENDER_TARGET=1]="RENDER_TARGET",i}({}),T1,Cy,Sv,A0,y_,t_,b1,x1,K0,sv,h1,V0,Ev;function $0(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=db(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function db(i,d){if(i){if(typeof i=="string")return W1(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return W1(i,d)}}function W1(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lqn-1*Sr||Qs<0||Fs>Zr-1*Sr||Fs<0)){nh.next=11;break}return nh.abrupt("return",!1);case 11:return nh.next=13,Pt({x:Math.floor(Qs/d.pickBufferScale),y:Math.floor((Zr-(w+1)*Sr)/d.pickBufferScale),width:1,height:1,data:new Uint8Array(4),framebuffer:d.pickingFBO});case 13:return Us=nh.sent,d.pickedColors=Us,Us[0]!==0||Us[1]!==0||Us[2]!==0?(Sa=Ei(Us),dl=a.layerPickService.getFeatureById(Sa),Sa!==a.getCurrentPickId()&&V==="mousemove"&&(V="mouseenter"),fu={x:y,y:w,type:V,lngLat:O,featureId:Sa,feature:dl,target:he},dl&&(be=!0,a.setCurrentPickId(Sa),d.triggerHoverOnLayer(a,fu))):(iu={x:y,y:w,lngLat:O,type:a.getCurrentPickId()!==null&&V==="mousemove"?"mouseout":"un"+V,featureId:null,target:he,feature:null},d.triggerHoverOnLayer(a,(0,Xe.Z)((0,Xe.Z)({},iu),{},{type:"unpick"})),d.triggerHoverOnLayer(a,iu),a.setCurrentPickId(null)),to&&a.layerPickService.highlightPickedFeature(Us),ts&&V==="click"&&(Us==null?void 0:Us.toString())!==[0,0,0,0].toString()&&(ic=Ei(Us),a.getCurrentSelectedId()===null||ic!==a.getCurrentSelectedId()?(a.layerPickService.selectFeature(Us),a.setCurrentSelectedId(ic)):(a.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),a.setCurrentSelectedId(null))),nh.abrupt("return",be);case 19:case"end":return nh.stop()}},c)}));return function(c,a){return l.apply(this,arguments)}}())}return(0,Te.Z)(i,[{key:"init",value:function(l){var c=this.rendererService,a=c.createTexture2D,p=c.createFramebuffer,y=c.getContainer,w=this.getContainerSize(y()),O=w.width,V=w.height;O*=Sr,V*=Sr,this.pickBufferScale=this.configService.getSceneConfig(l).pickBufferScale||1,O=Math.round(O/this.pickBufferScale),V=Math.round(V/this.pickBufferScale);var he=a({width:O,height:V,usage:$1.RENDER_TARGET,label:"Picking Texture"});this.pickingFBO=p({color:he,depth:!0,width:O,height:V}),this.interactionService.on(Yg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p,y){var w=this,O,V,he,be;return mo().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return O=this.rendererService,V=O.useFramebufferAsync,he=O.clear,this.resizePickingFBO(),a.hooks.beforePickingEncode.call(),Pt.next=5,V(this.pickingFBO,(0,al.Z)(mo().mark(function qt(){return mo().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:he({framebuffer:w.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),a.renderModels({ispick:!0});case 2:case"end":return qn.stop()}},qt)})));case 5:return a.hooks.afterPickingEncode.call(),Pt.next=8,this.pickBox(a,p);case 8:be=Pt.sent,y(be);case 10:case"end":return Pt.stop()}},c,this)}));function l(c,a,p){return d.apply(this,arguments)}return l}()},{key:"pickBox",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p){var y=this,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts,Qs,Fs,Us,Sa,dl,fu,iu;return mo().wrap(function(Nc){for(;;)switch(Nc.prev=Nc.next){case 0:if(w=p.map(function(nh){var Zp=nh<0?0:nh;return Math.floor(Zp*Sr/y.pickBufferScale)}),O=(0,zn.Z)(w,4),V=O[0],he=O[1],be=O[2],ut=O[3],Pt=this.rendererService,qt=Pt.readPixelsAsync,En=Pt.getContainer,qn=this.getContainerSize(En()),Zr=qn.width,Si=qn.height,Zr*=Sr,Si*=Sr,!(V>(Zr-1)*Sr/this.pickBufferScale||be<0||he>(Si-1)*Sr/this.pickBufferScale||ut<0)){Nc.next=7;break}return Nc.abrupt("return",[]);case 7:return to=Math.min(Zr/this.pickBufferScale,be)-V,ts=Math.min(Si/this.pickBufferScale,ut)-he,Nc.next=11,qt({x:V,y:Math.floor(Si/this.pickBufferScale-(ut+1)),width:to,height:ts,data:new Uint8Array(to*ts*4),framebuffer:this.pickingFBO});case 11:for(Qs=Nc.sent,Fs=[],Us={},Sa=0;Sa0&&arguments[0]!==void 0?arguments[0]:!0;(0,vt.Z)(this,i),(0,pn.Z)(this,"autoStart",void 0),(0,pn.Z)(this,"startTime",0),(0,pn.Z)(this,"oldTime",0),(0,pn.Z)(this,"running",!1),(0,pn.Z)(this,"elapsedTime",0),this.autoStart=d}return(0,Te.Z)(i,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var l=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();l=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=l}return l}}]),i}(),Z1,D1,I1,wy,fb,Av,pb,N_,L1;function Vy(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Tx(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function Tx(i,d){if(i){if(typeof i=="string")return pv(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return pv(i,d)}}function pv(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l-1&&w.layerChildren.splice(O,1)):(V=this.layers.indexOf(y),V>-1&&this.layers.splice(V,1)),y.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return be.stop()}},p,this)}));function a(p,y){return c.apply(this,arguments)}return a}()},{key:"removeAllLayers",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:this.destroy(),this.reRender();case 2:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"setEnableRender",value:function(a){this.enableRender=a}},{key:"renderLayers",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be,ut,Pt,qt;return mo().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){qn.next=2;break}return qn.abrupt("return");case 2:this.updateLayerRenderList(),y=this.debugService.generateRenderUid(),this.debugService.renderStart(y),this.alreadyInRendering=!0,this.clear(),w=Vy(this.layerList);try{for(w.s();!(O=w.n()).done;)V=O.value,V.prerender()}catch(Zr){w.e(Zr)}finally{w.f()}this.renderService.beginFrame(),he=Vy(this.layerList),qn.prev=11,he.s();case 13:if((be=he.n()).done){qn.next=25;break}if(ut=be.value,Pt=ut.getLayerConfig(),qt=Pt.enableMask,ut.masks.filter(function(Zr){return Zr.inited}).length>0&&qt&&this.renderMask(ut.masks),!ut.getLayerConfig().enableMultiPassRenderer){qn.next=22;break}return qn.next=20,ut.renderMultiPass();case 20:qn.next=23;break;case 22:ut.render();case 23:qn.next=13;break;case 25:qn.next=30;break;case 27:qn.prev=27,qn.t0=qn.catch(11),he.e(qn.t0);case 30:return qn.prev=30,he.f(),qn.finish(30);case 33:this.renderService.endFrame(),this.debugService.renderEnd(y),this.alreadyInRendering=!1;case 36:case"end":return qn.stop()}},p,this,[[11,27,30,33]])}));function a(){return c.apply(this,arguments)}return a}()},{key:"renderMask",value:function(a){var p=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var y=a.length>1?Rl.MULTIPLE:Rl.SINGLE,w=Vy(a),O;try{for(w.s();!(O=w.n()).done;){var V=O.value;V.render({isStencil:!0,stencilType:y,stencilIndex:p++})}}catch(he){w.e(he)}finally{w.f()}}},{key:"beforeRenderData",value:function(){var c=(0,al.Z)(mo().mark(function p(y){var w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,y.hooks.beforeRenderData.promise();case 2:w=V.sent,w&&this.renderLayers();case 4:case"end":return V.stop()}},p,this)}));function a(p){return c.apply(this,arguments)}return a}()},{key:"renderTileLayerMask",value:function(a){var p=0,y=a.getLayerConfig(),w=y.enableMask,O=w===void 0?!0:w,V=a.tileMask?1:0,he=a.masks.filter(function(En){return En.inited});V=V+(O?he.length:1);var be=V>1?Rl.MULTIPLE:Rl.SINGLE;if((a.tileMask||he.length&&O)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),he.length&&O){var ut=Vy(he),Pt;try{for(ut.s();!(Pt=ut.n()).done;){var qt=Pt.value;qt.render({isStencil:!0,stencilType:be,stencilIndex:p++})}}catch(En){ut.e(En)}finally{ut.f()}}a.tileMask&&a.tileMask.render({isStencil:!0,stencilType:be,stencilIndex:p++,stencilOperation:sf.OR})}},{key:"renderTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(y){return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(this.renderTileLayerMask(y),!y.getLayerConfig().enableMultiPassRenderer){O.next=6;break}return O.next=4,y.renderMultiPass();case 4:O.next=8;break;case 6:return O.next=8,y.render();case 8:case"end":return O.stop()}},p,this)}));function a(p){return c.apply(this,arguments)}return a}()},{key:"updateLayerRenderList",value:function(){var a=this;this.layerList=[],this.layers.filter(function(p){return p.inited}).filter(function(p){return p.isVisible()}).sort(function(p,y){return p.zIndex-y.zIndex}).forEach(function(p){a.layerList.push(p)})}},{key:"destroy",value:function(){this.layers.forEach(function(a){a.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var a=zr(this.mapService.bgColor);this.renderService.clear({color:a,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),l}(Ic.EventEmitter),pb=I(Av.prototype,"renderService",[D1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N_=I(Av.prototype,"mapService",[I1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L1=I(Av.prototype,"debugService",[wy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Av))||fb),W0=x(56348),Fi=function(i){return i[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.CULL_FACE=2884]="CULL_FACE",i[i.BLEND=3042]="BLEND",i[i.DITHER=3024]="DITHER",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.RED=6403]="RED",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.TEXTURE1=33985]="TEXTURE1",i[i.TEXTURE2=33986]="TEXTURE2",i[i.TEXTURE3=33987]="TEXTURE3",i[i.TEXTURE4=33988]="TEXTURE4",i[i.TEXTURE5=33989]="TEXTURE5",i[i.TEXTURE6=33990]="TEXTURE6",i[i.TEXTURE7=33991]="TEXTURE7",i[i.TEXTURE8=33992]="TEXTURE8",i[i.TEXTURE9=33993]="TEXTURE9",i[i.TEXTURE10=33994]="TEXTURE10",i[i.TEXTURE11=33995]="TEXTURE11",i[i.TEXTURE12=33996]="TEXTURE12",i[i.TEXTURE13=33997]="TEXTURE13",i[i.TEXTURE14=33998]="TEXTURE14",i[i.TEXTURE15=33999]="TEXTURE15",i[i.TEXTURE16=34e3]="TEXTURE16",i[i.TEXTURE17=34001]="TEXTURE17",i[i.TEXTURE18=34002]="TEXTURE18",i[i.TEXTURE19=34003]="TEXTURE19",i[i.TEXTURE20=34004]="TEXTURE20",i[i.TEXTURE21=34005]="TEXTURE21",i[i.TEXTURE22=34006]="TEXTURE22",i[i.TEXTURE23=34007]="TEXTURE23",i[i.TEXTURE24=34008]="TEXTURE24",i[i.TEXTURE25=34009]="TEXTURE25",i[i.TEXTURE26=34010]="TEXTURE26",i[i.TEXTURE27=34011]="TEXTURE27",i[i.TEXTURE28=34012]="TEXTURE28",i[i.TEXTURE29=34013]="TEXTURE29",i[i.TEXTURE30=34014]="TEXTURE30",i[i.TEXTURE31=34015]="TEXTURE31",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i}({}),Yb=ks.isNil,qb=function(){function i(d){var l=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"name",void 0),(0,pn.Z)(this,"type",void 0),(0,pn.Z)(this,"scale",void 0),(0,pn.Z)(this,"descriptor",void 0),(0,pn.Z)(this,"featureBufferLayout",[]),(0,pn.Z)(this,"needRescale",!1),(0,pn.Z)(this,"needRemapping",!1),(0,pn.Z)(this,"needRegenerateVertices",!1),(0,pn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,pn.Z)(this,"vertexAttribute",void 0),(0,pn.Z)(this,"defaultCallback",function(c){if(c.length===0){var a;return((a=l.scale)===null||a===void 0?void 0:a.defaultValues)||[]}return c.map(function(p,y){var w,O=(w=l.scale)===null||w===void 0?void 0:w.scalers[y].func,V=O(p);return V})}),this.setProps(d)}return(0,Te.Z)(i,[{key:"setProps",value:function(l){Object.assign(this,l)}},{key:"mapping",value:function(l){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var a,p=(a=this.scale)===null||a===void 0?void 0:a.callback.apply(a,(0,Ln.Z)(l));if(!Yb(p))return[p]}return this.defaultCallback(l)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),i}(),Dx=["buffer","update","name"],ww=["buffer","update","name"],B_,TS,ry,j1,$y,H1,z_=(B_={},(0,pn.Z)(B_,Fi.FLOAT,4),(0,pn.Z)(B_,Fi.UNSIGNED_BYTE,1),(0,pn.Z)(B_,Fi.UNSIGNED_SHORT,2),B_),Ix=(TS=(0,xr.b2)(),ry=(0,xr.f3)(In.IRendererService),TS(j1=($y=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"attributesAndIndices",void 0),F(this,"rendererService",H1,this),(0,pn.Z)(this,"attributes",[]),(0,pn.Z)(this,"triangulation",void 0),(0,pn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,Te.Z)(i,[{key:"registerStyleAttribute",value:function(l){var c=this.getLayerStyleAttribute(l.name||"");return c?c.setProps(l):(c=new qb(l),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(l){var c=this.attributes.findIndex(function(a){return a.name===l});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(l){this.attributes.forEach(function(c){var a,p=c.name,y=(a=c.scale)===null||a===void 0?void 0:a.field;(l[p]||y&&l[y])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(l,c,a){var p=this.getLayerStyleAttribute(l);p||(p=this.registerStyleAttribute((0,Xe.Z)((0,Xe.Z)({},c),{},{name:l})));var y=c.scale;y&&p&&(p.scale=y,p.needRescale=!0,p.needRemapping=!0,p.needRegenerateVertices=!0,a&&a.featureRange&&(p.featureRange=a.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(l){return this.attributes.find(function(c){return c.name===l})}},{key:"getLayerAttributeScale",value:function(l){var c,a=this.getLayerStyleAttribute(l),p=a==null||(c=a.scale)===null||c===void 0?void 0:c.scalers;return p&&p[0]?p[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(l,c){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=arguments.length>3?arguments[3]:void 0,y=arguments.length>4?arguments[4]:void 0,w=this.attributes.find(function(Qs){return Qs.name===l});if(w&&w.descriptor){var O=w.descriptor,V=O.update,he=O.buffer,be=O.size,ut=be===void 0?0:be,Pt=z_[he.type||Fi.FLOAT];if(V){var qt=this.featureLayout,En=qt.elements,qn=qt.sizePerElement,Zr=En.slice(a,p);if(!Zr.length)return;var Si=Zr[0].offset,to=Si*ut*Pt,ts=Zr.map(function(Qs,Fs){for(var Us=Qs.featureIdx,Sa=Qs.vertices,dl=Qs.normals,fu=Sa.length/qn,iu=[],ic=0;ic0&&p[p.length-1])&&(V[0]===6||V[0]===2)){l=0;continue}if(V[0]===3&&(!p||V[1]>p[0]&&V[1]0)&&!(a=c.next()).done;)p.push(a.value)}catch(w){y={error:w}}finally{try{a&&!a.done&&(l=c.return)&&l.call(c)}finally{if(y)throw y.error}}return p}function U_(i,d,l){if(l||arguments.length===2)for(var c=0,a=d.length,p;c=0&&c.length%1===0}i.exports=d.default})($v,$v.exports);var f1={},gC={exports:{}},Lx={exports:{}};(function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return function(){for(var c=[],a=arguments.length;a--;)c[a]=arguments[a];var p=c.pop();return l.call(this,c,p)}},i.exports=d.default})(Lx,Lx.exports);var x_={};Object.defineProperty(x_,"__esModule",{value:!0}),x_.fallback=Mx,x_.wrap=y2;var mC=x_.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,vC=x_.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,DS=x_.hasNextTick=typeof __=="object"&&typeof __.nextTick=="function";function Mx(i){setTimeout(i,0)}function y2(i){return function(d){for(var l=[],c=arguments.length-1;c-- >0;)l[c]=arguments[c+1];return i(function(){return d.apply(void 0,l)})}}var V_;mC?V_=queueMicrotask:vC?V_=setImmediate:DS?V_=__.nextTick:V_=Mx,x_.default=y2(V_),function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=O;var l=Lx.exports,c=w(l),a=x_,p=w(a),y=f1;function w(be){return be&&be.__esModule?be:{default:be}}function O(be){return(0,y.isAsync)(be)?function(){for(var ut=[],Pt=arguments.length;Pt--;)ut[Pt]=arguments[Pt];var qt=ut.pop(),En=be.apply(this,ut);return V(En,qt)}:(0,c.default)(function(ut,Pt){var qt;try{qt=be.apply(this,ut)}catch(En){return Pt(En)}if(qt&&typeof qt.then=="function")return V(qt,Pt);Pt(null,qt)})}function V(be,ut){return be.then(function(Pt){he(ut,null,Pt)},function(Pt){he(ut,Pt&&Pt.message?Pt:new Error(Pt))})}function he(be,ut,Pt){try{be(ut,Pt)}catch(qt){(0,p.default)(function(En){throw En},qt)}}i.exports=d.default}(gC,gC.exports),Object.defineProperty(f1,"__esModule",{value:!0}),f1.isAsyncIterable=f1.isAsyncGenerator=f1.isAsync=void 0;var cA=gC.exports,yC=$_(cA);function $_(i){return i&&i.__esModule?i:{default:i}}function ex(i){return i[Symbol.toStringTag]==="AsyncFunction"}function Px(i){return i[Symbol.toStringTag]==="AsyncGenerator"}function Sw(i){return typeof i[Symbol.asyncIterator]=="function"}function _2(i){if(typeof i!="function")throw new Error("expected a function");return ex(i)?(0,yC.default)(i):i}f1.default=_2,f1.isAsync=ex,f1.isAsyncGenerator=Px,f1.isAsyncIterable=Sw;var iy={exports:{}};(function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c,a){if(a===void 0&&(a=c.length),!a)throw new Error("arity is undefined");function p(){for(var y=this,w=[],O=arguments.length;O--;)w[O]=arguments[O];return typeof w[a-1]=="function"?c.apply(this,w):new Promise(function(V,he){w[a-1]=function(be){for(var ut=[],Pt=arguments.length-1;Pt-- >0;)ut[Pt]=arguments[Pt+1];if(be)return he(be);V(ut.length>1?ut:ut[0])},c.apply(y,w)})}return p}i.exports=d.default})(iy,iy.exports),function(i,d){Object.defineProperty(d,"__esModule",{value:!0});var l=$v.exports,c=O(l),a=f1,p=O(a),y=iy.exports,w=O(y);function O(V){return V&&V.__esModule?V:{default:V}}d.default=(0,w.default)(function(V,he,be){var ut=(0,c.default)(he)?[]:{};V(he,function(Pt,qt,En){(0,p.default)(Pt)(function(qn){for(var Zr,Si=[],to=arguments.length-1;to-- >0;)Si[to]=arguments[to+1];Si.length<2&&(Zr=Si,Si=Zr[0]),ut[qt]=Si,En(qn)})},function(Pt){return be(Pt,ut)})},3),i.exports=d.default}(Qb,Qb.exports);var W_={exports:{}},tx={exports:{}},_C={exports:{}},C_={exports:{}};(function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=l;function l(c){function a(){for(var p=[],y=arguments.length;y--;)p[y]=arguments[y];if(c!==null){var w=c;c=null,w.apply(this,p)}}return Object.assign(a,c),a}i.exports=d.default})(C_,C_.exports);var gb={exports:{}},Rx={exports:{}};(function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=function(l){return l[Symbol.iterator]&&l[Symbol.iterator]()},i.exports=d.default})(Rx,Rx.exports),function(i,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=he;var l=$v.exports,c=y(l),a=Rx.exports,p=y(a);function y(be){return be&&be.__esModule?be:{default:be}}function w(be){var ut=-1,Pt=be.length;return function(){return++ut=w||ut||he||(ut=!0,y.next().then(function(Si){var to=Si.value,ts=Si.done;if(!(be||he)){if(ut=!1,ts){he=!0,Pt<=0&&V(null);return}Pt++,O(to,qt,qn),qt++,En()}}).catch(Zr))}function qn(Si,to){if(Pt-=1,!be){if(Si)return Zr(Si);if(Si===!1){he=!0,be=!0;return}if(to===c.default||he&&Pt<=0)return he=!0,V(null);En()}}function Zr(Si){be||(ut=!1,he=!0,V(Si))}En()}i.exports=d.default}(xC,xC.exports),function(i,d){Object.defineProperty(d,"__esModule",{value:!0});var l=C_.exports,c=Pt(l),a=gb.exports,p=Pt(a),y=bC.exports,w=Pt(y),O=f1,V=xC.exports,he=Pt(V),be=Z_.exports,ut=Pt(be);function Pt(qt){return qt&&qt.__esModule?qt:{default:qt}}d.default=function(qt){return function(En,qn,Zr){if(Zr=(0,c.default)(Zr),qt<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!En)return Zr(null);if((0,O.isAsyncGenerator)(En))return(0,he.default)(En,qt,qn,Zr);if((0,O.isAsyncIterable)(En))return(0,he.default)(En[Symbol.asyncIterator](),qt,qn,Zr);var Si=(0,p.default)(En),to=!1,ts=!1,Qs=0,Fs=!1;function Us(dl,fu){if(!ts)if(Qs-=1,dl)to=!0,Zr(dl);else if(dl===!1)to=!0,ts=!0;else{if(fu===ut.default||to&&Qs<=0)return to=!0,Zr(null);Fs||Sa()}}function Sa(){for(Fs=!0;Qs0;)Si[to]=arguments[to+1];if(Zr!==!1){if(Zr||qt===ut.length)return Pt.apply(void 0,[Zr].concat(Si));En(Si)}}En([])}d.default=(0,V.default)(be),i.exports=d.default})(wC,wC.exports);var b2=C1(wC.exports),nx=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return b2(this.tasks)},i.prototype.tap=function(d,l){this.tasks.length===0?this.tasks.push(function(c){var a=l();c(a?null:!1,a)}):this.tasks.push(function(c,a){var p=l.apply(void 0,U_([],Jb(c),!1));a(p?null:!1,d)})},i}(),x2=function(){function i(){this.tasks=[]}return i.prototype.call=function(){return CC(this.tasks)},i.prototype.tap=function(d,l){this.tasks.push(function(c){var a=l();c(a,d)})},i}(),Ox=function(){function i(){this.args=[],this.tasks=[]}return i.prototype.promise=function(){for(var d=arguments,l=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,l={};return i=i.replace(jt,function(c,a,p){var y=p.split(":"),w=y[0].trim(),O="";switch(y.length>1&&(O=y[1].trim()),a){case"bool":O=O==="true";break;case"float":case"int":O=Number(O);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":O?O=O.replace("[","").replace("]","").split(",").reduce(function(V,he){return V.push(Number(he.trim())),V},[]):O=new Array(xn(a)).fill(0);break;default:}return l[w]=O,"".concat(d?"uniform ":"").concat(a," ").concat(w,`; +`)}),{content:i,uniforms:l}}function Kn(i){var d=Wn(i,!0),l=d.content,c=d.uniforms;return l=l.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(a,p,y){y=y.trim().replace(/^.*$/gm,function(he){return"uniform ".concat(he)});var w=Wn(y),O=w.content,V=w.uniforms;return Object.assign(c,V),"".concat(p,`{ +`).concat(O,` +};`)}),{content:l,uniforms:c}}function mr(i){var d={};return i.replace(jt,function(l,c,a){var p=a.trim();return d[p]?"":(d[p]=!0,"uniform ".concat(c," ").concat(p,`; +`))})}var Wr,Ks,aa=ks.uniq,Ml="#define PI 3.14159265359",Na=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -176,7 +176,7 @@ vec4 decode_color(vec2 encodedColor) { unpack_float(encodedColor[1]) / 255.0 ); } -`,yy=`layout(std140) uniform SceneUniforms { +`,na=`layout(std140) uniform SceneUniforms { mat4 u_ViewMatrix; mat4 u_ProjectionMatrix; mat4 u_ViewProjectionMatrix; @@ -199,7 +199,7 @@ layout(std140) uniform LayerUniforms { mat4 u_Mvp; vec2 u_sceneCenterMercator; }; -`,a_=`layout(std140) uniform PickingUniforms { +`,Ya=`layout(std140) uniform PickingUniforms { vec4 u_HighlightColor; vec4 u_SelectColor; vec3 u_PickingColor; @@ -210,7 +210,7 @@ layout(std140) uniform LayerUniforms { float u_shaderPick; float u_EnableSelect; float u_activeMix; -};`,Bx=`#define ambientRatio 0.5 +};`,Mu=`#define ambientRatio 0.5 #define diffuseRatio 0.3 #define specularRatio 0.2 @@ -235,7 +235,7 @@ float calc_lighting(vec4 pos) { return lightWeight; } -`,Ox=`// Blinn-Phong model +`,Iu=`// Blinn-Phong model // apply lighting in vertex shader instead of fragment shader // @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting uniform float u_Ambient : 1.0; @@ -298,7 +298,7 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { } return weight; } -`,a2=` +`,Ju=` in vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -373,7 +373,7 @@ vec4 filterColorAlpha(vec4 color, float alpha) { } } -`,r2=`layout(location = 3) in vec3 a_PickingColor; +`,Ku=`layout(location = 3) in vec3 a_PickingColor; out vec4 v_PickingResult; #pragma include "picking_uniforms" @@ -416,7 +416,7 @@ float setPickingOrder(float z) { bool selected = bool(v_PickingResult.a); return selected ? z + 1. : 0.; } -`,_2=` +`,hc=` #define E 2.718281828459045 vec2 ProjectFlat(vec2 lnglat){ float maxs=85.0511287798; @@ -485,7 +485,7 @@ float customPixelDistance(vec2 from, vec2 to) { vec2 a1 = ProjectFlat(from); vec2 b1 = ProjectFlat(to); return distance(a1, b1); -}`,N_=`#define TILE_SIZE 512.0 +}`,Ll=`#define TILE_SIZE 512.0 #define PI 3.1415926536 #define WORLD_SCALE TILE_SIZE / (PI * 2.0) #define EARTH_CIRCUMFERENCE 40.03e6 @@ -753,13 +753,13 @@ vec4 project_common_position_to_clipspace_v2(vec4 position) { return project_common_position_to_clipspace(position); } } -`,gT=`vec2 rotate_matrix(vec2 v, float a) { +`,cg=`vec2 rotate_matrix(vec2 v, float a) { float b = a / 180.0 * 3.1415926535897932384626433832795; float s = sin(b); float c = cos(b); mat2 m = mat2(c, s, -s, c); return m * v; -}`,fE=`/** +}`,up=`/** * 2D signed distance field functions * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm */ @@ -833,24 +833,24 @@ float sdVesica(vec2 p, float r, float d) { ? length(p-vec2(0.0,b)) : length(p-vec2(-d,0.0))-r; } -`,ZT=/precision\s+(high|low|medium)p\s+float/,iA=`#ifdef GL_FRAGMENT_PRECISION_HIGH +`,zg=/precision\s+(high|low|medium)p\s+float/,em=`#ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; #else precision mediump float; #endif -`,fS=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,TT=/void\s+main\s*\([^)]*\)\s*\{\n?/,QE=/}\n?[^{}]*$/,f3=(Qg=(0,Rg.b2)(),Qg(ly=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"moduleCache",{}),(0,Na.Z)(this,"rawContentCache",{})}return(0,gt.Z)(i,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:F_,fs:F_}),this.registerModule("decode",{vs:Ky,fs:""}),this.registerModule("scene_uniforms",{vs:yy,fs:yy}),this.registerModule("picking_uniforms",{vs:a_,fs:a_}),this.registerModule("projection",{vs:N_,fs:N_}),this.registerModule("project",{vs:_2,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:fE}),this.registerModule("lighting",{vs:Ox,fs:""}),this.registerModule("light",{vs:Bx,fs:""}),this.registerModule("picking",{vs:r2,fs:a2}),this.registerModule("rotation_2d",{vs:gT,fs:""})}},{key:"registerModule",value:function(f,m){m.vs=m.vs.replace(/\r\n/g,` -`),m.fs=m.fs.replace(/\r\n/g,` -`);var d=m.vs,E=m.fs,M=m.uniforms,B=m.inject,J=Cd(d),ue=J.content,Ze=J.uniforms,st=Cd(E),Fr=st.content,Go=st.uniforms;this.rawContentCache[f]={fs:Fr,inject:B,uniforms:(0,vn.Z)((0,vn.Z)((0,vn.Z)({},Ze),Go),M),vs:ue}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(f){var m=this,d=this.rawContentCache[f].vs,E=this.rawContentCache[f].fs,M=this.rawContentCache[f].inject,B={};M!=null&&M["vs:#decl"]&&(d=(M==null?void 0:M["vs:#decl"])+d,B=Cd(M==null?void 0:M["vs:#decl"]).uniforms),M!=null&&M["vs:#main-start"]&&(d=d.replace(TT,function(em){return em+(M==null?void 0:M["vs:#main-start"])})),M!=null&&M["fs:#decl"]&&(E=(M==null?void 0:M["fs:#decl"])+E);var J=this.processModule(d,[],"vs"),ue=J.content,Ze=J.includeList,st=this.processModule(E,[],"fs"),Fr=st.content,Go=st.includeList,Ta="",eu=Cy(Ze.concat(Go).concat(f)).reduce(function(em,B0){return(0,vn.Z)((0,vn.Z)({},em),m.rawContentCache[B0].uniforms)},(0,vn.Z)({},B));ZT.test(Fr)||(Ta=Ta+iA),Ta=Ta+Fr;var kd="";return ZT.test(ue)||(kd=kd+iA),kd=kd+ue,this.moduleCache[f]={fs:Ta.trim(),uniforms:eu,vs:kd.trim()},this.moduleCache[f]}},{key:"processModule",value:function(f,m,d){var E=this,M=f.replace(fS,function(B,J){var ue=J.split(" "),Ze=ue[0].replace(/"/g,"");if(m.indexOf(Ze)>-1)return"";var st=E.rawContentCache[Ze][d];m.push(Ze);var Fr=E.processModule(st,m,d),Go=Fr.content;return Go});return{content:M,includeList:m}}},{key:"injectDefines",value:function(f){var m=Object.keys(f).reduce(function(d,E){return d+"#define ".concat(E.toUpperCase()," ").concat(f[E],`; +`,af=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,Cg=/void\s+main\s*\([^)]*\)\s*\{\n?/,Kp=/}\n?[^{}]*$/,h0=(Wr=(0,xr.b2)(),Wr(Ks=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"moduleCache",{}),(0,pn.Z)(this,"rawContentCache",{})}return(0,Te.Z)(i,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Ml,fs:Ml}),this.registerModule("decode",{vs:Na,fs:""}),this.registerModule("scene_uniforms",{vs:na,fs:na}),this.registerModule("picking_uniforms",{vs:Ya,fs:Ya}),this.registerModule("projection",{vs:Ll,fs:Ll}),this.registerModule("project",{vs:hc,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:up}),this.registerModule("lighting",{vs:Iu,fs:""}),this.registerModule("light",{vs:Mu,fs:""}),this.registerModule("picking",{vs:Ku,fs:Ju}),this.registerModule("rotation_2d",{vs:cg,fs:""})}},{key:"registerModule",value:function(l,c){c.vs=c.vs.replace(/\r\n/g,` +`),c.fs=c.fs.replace(/\r\n/g,` +`);var a=c.vs,p=c.fs,y=c.uniforms,w=c.inject,O=Kn(a),V=O.content,he=O.uniforms,be=Kn(p),ut=be.content,Pt=be.uniforms;this.rawContentCache[l]={fs:ut,inject:w,uniforms:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},he),Pt),y),vs:V}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(l){var c=this,a=this.rawContentCache[l].vs,p=this.rawContentCache[l].fs,y=this.rawContentCache[l].inject,w={};y!=null&&y["vs:#decl"]&&(a=(y==null?void 0:y["vs:#decl"])+a,w=Kn(y==null?void 0:y["vs:#decl"]).uniforms),y!=null&&y["vs:#main-start"]&&(a=a.replace(Cg,function(Zr){return Zr+(y==null?void 0:y["vs:#main-start"])})),y!=null&&y["fs:#decl"]&&(p=(y==null?void 0:y["fs:#decl"])+p);var O=this.processModule(a,[],"vs"),V=O.content,he=O.includeList,be=this.processModule(p,[],"fs"),ut=be.content,Pt=be.includeList,qt="",En=aa(he.concat(Pt).concat(l)).reduce(function(Zr,Si){return(0,Xe.Z)((0,Xe.Z)({},Zr),c.rawContentCache[Si].uniforms)},(0,Xe.Z)({},w));zg.test(ut)||(qt=qt+em),qt=qt+ut;var qn="";return zg.test(V)||(qn=qn+em),qn=qn+V,this.moduleCache[l]={fs:qt.trim(),uniforms:En,vs:qn.trim()},this.moduleCache[l]}},{key:"processModule",value:function(l,c,a){var p=this,y=l.replace(af,function(w,O){var V=O.split(" "),he=V[0].replace(/"/g,"");if(c.indexOf(he)>-1)return"";var be=p.rawContentCache[he][a];c.push(he);var ut=p.processModule(be,c,a),Pt=ut.content;return Pt});return{content:y,includeList:c}}},{key:"injectDefines",value:function(l){var c=Object.keys(l).reduce(function(a,p){return a+"#define ".concat(p.toUpperCase()," ").concat(l[p],`; `)},` -`);return m}}]),i}())||ly);function l3(i,v){for(;!Object.prototype.hasOwnProperty.call(i,v)&&(i=(0,oi.Z)(i),i!==null););return i}function PS(){return typeof Reflect!="undefined"&&Reflect.get?PS=Reflect.get.bind():PS=function(v,f,m){var d=l3(v,f);if(d){var E=Object.getOwnPropertyDescriptor(d,f);return E.get?E.get.call(arguments.length<3?v:m):E.value}},PS.apply(this,arguments)}var J3=function(i){return i.Normal="normal",i.PostProcessing="post-processing",i}({}),KD,r3,u3=(KD=(0,Rg.b2)(),KD(r3=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"shaderModuleService",void 0),(0,Na.Z)(this,"rendererService",void 0),(0,Na.Z)(this,"cameraService",void 0),(0,Na.Z)(this,"mapService",void 0),(0,Na.Z)(this,"interactionService",void 0),(0,Na.Z)(this,"layerService",void 0),(0,Na.Z)(this,"config",void 0)}return(0,gt.Z)(i,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return J3.Normal}},{key:"init",value:function(f,m){this.config=m,this.rendererService=f.getContainer().get(cu.IRendererService),this.cameraService=f.getContainer().get(cu.ICameraService),this.mapService=f.getContainer().get(cu.IMapService),this.interactionService=f.getContainer().get(cu.IInteractionService),this.layerService=f.getContainer().get(cu.ILayerService),this.shaderModuleService=f.getContainer().get(cu.IShaderModuleService)}},{key:"render",value:function(f){}}]),i}())||r3),i3,tD;function AP(i){var v=I4();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function I4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var TR=(i3=(0,Rg.b2)(),i3(tD=function(i){(0,Ht.Z)(f,i);var v=AP(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(d,E){PS((0,oi.Z)(f.prototype),"init",this).call(this,d,E)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),f}(u3))||tD),bL,HT,xL,XP,DO;function AR(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=Nk(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function Nk(i,v){if(i){if(typeof i=="string")return Fk(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return Fk(i,v)}}function Fk(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fem||J1<0||ey>B0||ey<0)){var Fy;eu(m.pickingFBO,(0,v_.Z)(Pv().mark(function C_(){var yx,ux,h2,V2,aw;return Pv().wrap(function(mT){for(;;)switch(mT.prev=mT.next){case 0:return mT.next=2,Ta({x:Math.round(J1),y:Math.round(B0-(ue+1)*kg),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:m.pickingFBO});case 2:Fy=mT.sent,Fy[0]!==0||Fy[1]!==0||Fy[2]!==0?(ux=A0(Fy),h2=m.layer.getSource().getFeatureById(ux),V2={x:J,y:ue,type:st,lngLat:Ze,featureId:ux,feature:h2},h2&&(m.layer.setCurrentPickId(ux),m.triggerHoverOnLayer(V2))):(aw={x:J,y:ue,lngLat:Ze,type:m.layer.getCurrentPickId()===null?"un"+st:"mouseout",featureId:null,feature:null},m.triggerHoverOnLayer((0,vn.Z)((0,vn.Z)({},aw),{},{type:"unpick"})),m.triggerHoverOnLayer(aw),m.layer.setCurrentPickId(null)),y1&&m.highlightPickedFeature(Fy),fy&&st==="click"&&((yx=Fy)===null||yx===void 0?void 0:yx.toString())!==[0,0,0,0].toString()&&m.selectFeature(Fy);case 6:case"end":return mT.stop()}},C_)})))}}}),m}return(0,gt.Z)(f,[{key:"getType",value:function(){return J3.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(d,E){PS((0,oi.Z)(f.prototype),"init",this).call(this,d,E),this.layer=d;var M=this.rendererService,B=M.createTexture2D,J=M.createFramebuffer,ue=M.getViewportSize,Ze=ue(),st=Ze.width,Fr=Ze.height,Go=B({width:st,height:Fr,wrapS:J0.CLAMP_TO_EDGE,wrapT:J0.CLAMP_TO_EDGE,label:"Picking Texture"});this.pickingFBO=J({color:Go}),this.interactionService.on(eA.Hover,this.pickFromPickingFBO),this.interactionService.on(eA.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(eA.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(d){var E=this;if(!this.alreadyInRendering){var M=this.rendererService,B=M.getViewportSize,J=M.useFramebuffer,ue=M.clear,Ze=B(),st=Ze.width,Fr=Ze.height;this.alreadyInRendering=!0,(this.width!==st||this.height!==Fr)&&(this.pickingFBO.resize({width:st,height:Fr}),this.width=st,this.height=Fr),J(this.pickingFBO,function(){ue({framebuffer:E.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Go=E.layer.multiPassRenderer.getRenderFlag();E.layer.multiPassRenderer.setRenderFlag(!1),d.hooks.beforePickingEncode.call(),d.render(),d.hooks.afterPickingEncode.call(),E.layer.multiPassRenderer.setRenderFlag(Go),E.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(d){this.layer.emit(d.type,d)}},{key:"highlightPickedFeature",value:function(d){var E=(0,hu.Z)(d,3),M=E[0],B=E[1],J=E[2];this.layer.hooks.beforeHighlight.call([M,B,J]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(d){var E=(0,hu.Z)(d,3),M=E[0],B=E[1],J=E[2];this.layer.hooks.beforeSelect.call([M,B,J]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(d){var E=d.featureId,M=nv(E);this.selectFeature(new Uint8Array(M))}},{key:"highlightFeatureHandle",value:function(d){var E=d.featureId,M=nv(E);this.highlightPickedFeature(new Uint8Array(M))}}]),f}(u3))||y6),kF,NF,FF,x6,w6,b9=Qv.camelCase,C6=Qv.isNil,S6=Qv.upperFirst,x9=`attribute vec2 a_Position; +`);return c}}]),i}())||Ks);function o0(i,d){for(;!Object.prototype.hasOwnProperty.call(i,d)&&(i=(0,Tt.Z)(i),i!==null););return i}function Af(){return typeof Reflect!="undefined"&&Reflect.get?Af=Reflect.get.bind():Af=function(d,l,c){var a=o0(d,l);if(a){var p=Object.getOwnPropertyDescriptor(a,l);return p.get?p.get.call(arguments.length<3?d:c):p.value}},Af.apply(this,arguments)}var Z0=function(i){return i.Normal="normal",i.PostProcessing="post-processing",i}({}),Wv,Qm,s0=(Wv=(0,xr.b2)(),Wv(Qm=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"shaderModuleService",void 0),(0,pn.Z)(this,"rendererService",void 0),(0,pn.Z)(this,"cameraService",void 0),(0,pn.Z)(this,"mapService",void 0),(0,pn.Z)(this,"interactionService",void 0),(0,pn.Z)(this,"layerService",void 0),(0,pn.Z)(this,"config",void 0)}return(0,Te.Z)(i,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Z0.Normal}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(In.IRendererService),this.cameraService=l.getContainer().get(In.ICameraService),this.mapService=l.getContainer().get(In.IMapService),this.interactionService=l.getContainer().get(In.IInteractionService),this.layerService=l.getContainer().get(In.ILayerService),this.shaderModuleService=l.getContainer().get(In.IShaderModuleService)}},{key:"render",value:function(l){}}]),i}())||Qm),e0,X0;function w_(i){var d=Ey();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Ey(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var C2=(e0=(0,xr.b2)(),e0(X0=function(i){(0,ze.Z)(l,i);var d=w_(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(a,p){Af((0,Tt.Z)(l.prototype),"init",this).call(this,a,p)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),l}(s0))||X0),mb,Ug,vb,j_,EC;function w2(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=RS(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function RS(i,d){if(i){if(typeof i=="string")return kS(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return kS(i,d)}}function kS(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lZr||Fs<0||Us>Si||Us<0)){var Sa;En(c.pickingFBO,(0,al.Z)(mo().mark(function dl(){var fu,iu,ic,Nc,nh;return mo().wrap(function(hg){for(;;)switch(hg.prev=hg.next){case 0:return hg.next=2,qt({x:Math.round(Fs),y:Math.round(Si-(V+1)*Sr),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO});case 2:Sa=hg.sent,Sa[0]!==0||Sa[1]!==0||Sa[2]!==0?(iu=Ei(Sa),ic=c.layer.getSource().getFeatureById(iu),Nc={x:O,y:V,type:be,lngLat:he,featureId:iu,feature:ic},ic&&(c.layer.setCurrentPickId(iu),c.triggerHoverOnLayer(Nc))):(nh={x:O,y:V,lngLat:he,type:c.layer.getCurrentPickId()===null?"un"+be:"mouseout",featureId:null,feature:null},c.triggerHoverOnLayer((0,Xe.Z)((0,Xe.Z)({},nh),{},{type:"unpick"})),c.triggerHoverOnLayer(nh),c.layer.setCurrentPickId(null)),ts&&c.highlightPickedFeature(Sa),Qs&&be==="click"&&((fu=Sa)===null||fu===void 0?void 0:fu.toString())!==[0,0,0,0].toString()&&c.selectFeature(Sa);case 6:case"end":return hg.stop()}},dl)})))}}}),c}return(0,Te.Z)(l,[{key:"getType",value:function(){return Z0.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(a,p){Af((0,Tt.Z)(l.prototype),"init",this).call(this,a,p),this.layer=a;var y=this.rendererService,w=y.createTexture2D,O=y.createFramebuffer,V=y.getViewportSize,he=V(),be=he.width,ut=he.height,Pt=w({width:be,height:ut,wrapS:Fi.CLAMP_TO_EDGE,wrapT:Fi.CLAMP_TO_EDGE,label:"Picking Texture"});this.pickingFBO=O({color:Pt}),this.interactionService.on(Yg.Hover,this.pickFromPickingFBO),this.interactionService.on(Yg.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(Yg.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(a){var p=this;if(!this.alreadyInRendering){var y=this.rendererService,w=y.getViewportSize,O=y.useFramebuffer,V=y.clear,he=w(),be=he.width,ut=he.height;this.alreadyInRendering=!0,(this.width!==be||this.height!==ut)&&(this.pickingFBO.resize({width:be,height:ut}),this.width=be,this.height=ut),O(this.pickingFBO,function(){V({framebuffer:p.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Pt=p.layer.multiPassRenderer.getRenderFlag();p.layer.multiPassRenderer.setRenderFlag(!1),a.hooks.beforePickingEncode.call(),a.render(),a.hooks.afterPickingEncode.call(),p.layer.multiPassRenderer.setRenderFlag(Pt),p.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(a){this.layer.emit(a.type,a)}},{key:"highlightPickedFeature",value:function(a){var p=(0,zn.Z)(a,3),y=p[0],w=p[1],O=p[2];this.layer.hooks.beforeHighlight.call([y,w,O]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(a){var p=(0,zn.Z)(a,3),y=p[0],w=p[1],O=p[2];this.layer.hooks.beforeSelect.call([y,w,O]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(a){var p=a.featureId,y=Zi(p);this.selectFeature(new Uint8Array(y))}},{key:"highlightFeatureHandle",value:function(a){var p=a.featureId,y=Zi(p);this.highlightPickedFeature(new Uint8Array(y))}}]),l}(s0))||gA),P3,R3,k3,yA,_A,g4=ks.camelCase,bA=ks.isNil,xA=ks.upperFirst,m4=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,DP=(kF=(0,Rg.b2)(),NF=(0,Rg.f3)(cu.IShaderModuleService),kF(FF=(x6=function(){function i(){(0,Zr.Z)(this,i),ne(this,"shaderModuleService",w6,this),(0,Na.Z)(this,"rendererService",void 0),(0,Na.Z)(this,"config",void 0),(0,Na.Z)(this,"quad",x9),(0,Na.Z)(this,"enabled",!0),(0,Na.Z)(this,"renderToScreen",!1),(0,Na.Z)(this,"model",void 0),(0,Na.Z)(this,"name",void 0),(0,Na.Z)(this,"optionsToUpdate",{})}return(0,gt.Z)(i,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(f){this.name=f}},{key:"getType",value:function(){return J3.PostProcessing}},{key:"init",value:function(f,m){this.config=m,this.rendererService=f.getContainer().get(cu.IRendererService),this.shaderModuleService=f.getContainer().get(cu.IShaderModuleService);var d=this.rendererService,E=d.createAttribute,M=d.createBuffer,B=d.createModel,J=this.setupShaders(),ue=J.vs,Ze=J.fs,st=J.uniforms;this.model=B({vs:ue,fs:Ze,attributes:{a_Position:E({buffer:M({data:[-4,-4,4,-4,0,4],type:J0.FLOAT}),size:2})},uniforms:(0,vn.Z)((0,vn.Z)({u_Texture:null},st),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(f,m){var d=this,E=f.multiPassRenderer.getPostProcessor(),M=this.rendererService,B=M.useFramebuffer,J=M.getViewportSize,ue=M.clear,Ze=J(),st=Ze.width,Fr=Ze.height;B(this.renderToScreen?null:E.getWriteFBO(),function(){ue({framebuffer:E.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Go=(0,vn.Z)({u_BloomFinal:0,u_Texture:E.getReadFBO(),u_ViewportSize:[st,Fr]},d.convertOptionsToUniforms(d.optionsToUpdate));m&&(Go.u_BloomFinal=1,Go.u_Texture2=m),d.model.draw({uniforms:Go})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(f){this.enabled=f}},{key:"setRenderToScreen",value:function(f){this.renderToScreen=f}},{key:"updateOptions",value:function(f){this.optionsToUpdate=(0,vn.Z)((0,vn.Z)({},this.optionsToUpdate),f)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(f){var m={};return Object.keys(f).forEach(function(d){C6(f[d])||(m["u_".concat(S6(b9(d)))]=f[d])}),m}}]),i}(),w6=H(x6.prototype,"shaderModuleService",[NF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x6))||FF),E6,T6;function wL(i){var v=zk();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function zk(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var aM=`varying vec2 v_UV; +}`,S_=(P3=(0,xr.b2)(),R3=(0,xr.f3)(In.IShaderModuleService),P3(k3=(yA=function(){function i(){(0,vt.Z)(this,i),F(this,"shaderModuleService",_A,this),(0,pn.Z)(this,"rendererService",void 0),(0,pn.Z)(this,"config",void 0),(0,pn.Z)(this,"quad",m4),(0,pn.Z)(this,"enabled",!0),(0,pn.Z)(this,"renderToScreen",!1),(0,pn.Z)(this,"model",void 0),(0,pn.Z)(this,"name",void 0),(0,pn.Z)(this,"optionsToUpdate",{})}return(0,Te.Z)(i,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(l){this.name=l}},{key:"getType",value:function(){return Z0.PostProcessing}},{key:"init",value:function(l,c){this.config=c,this.rendererService=l.getContainer().get(In.IRendererService),this.shaderModuleService=l.getContainer().get(In.IShaderModuleService);var a=this.rendererService,p=a.createAttribute,y=a.createBuffer,w=a.createModel,O=this.setupShaders(),V=O.vs,he=O.fs,be=O.uniforms;this.model=w({vs:V,fs:he,attributes:{a_Position:p({buffer:y({data:[-4,-4,4,-4,0,4],type:Fi.FLOAT}),size:2})},uniforms:(0,Xe.Z)((0,Xe.Z)({u_Texture:null},be),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(l,c){var a=this,p=l.multiPassRenderer.getPostProcessor(),y=this.rendererService,w=y.useFramebuffer,O=y.getViewportSize,V=y.clear,he=O(),be=he.width,ut=he.height;w(this.renderToScreen?null:p.getWriteFBO(),function(){V({framebuffer:p.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Pt=(0,Xe.Z)({u_BloomFinal:0,u_Texture:p.getReadFBO(),u_ViewportSize:[be,ut]},a.convertOptionsToUniforms(a.optionsToUpdate));c&&(Pt.u_BloomFinal=1,Pt.u_Texture2=c),a.model.draw({uniforms:Pt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(l){this.enabled=l}},{key:"setRenderToScreen",value:function(l){this.renderToScreen=l}},{key:"updateOptions",value:function(l){this.optionsToUpdate=(0,Xe.Z)((0,Xe.Z)({},this.optionsToUpdate),l)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(l){var c={};return Object.keys(l).forEach(function(a){bA(l[a])||(c["u_".concat(xA(g4(a)))]=l[a])}),c}}]),i}(),_A=I(yA.prototype,"shaderModuleService",[R3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yA))||k3),CA,wA;function yb(i){var d=NS();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function NS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var rx=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -906,14 +906,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,A6=`attribute vec2 a_Position; +}`,SA=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,DR=Qv.isNil,BF=(E6=(0,Rg.b2)(),E6(T6=function(i){(0,Ht.Z)(f,i);var v=wL(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:A6,fs:aM});var d=this.shaderModuleService.getModule("blur-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}},{key:"convertOptionsToUniforms",value:function(d){var E={};return DR(d.bloomRadius)||(E.u_radius=d.bloomRadius),DR(d.bloomIntensity)||(E.u_intensity=d.bloomIntensity),DR(d.bloomBaseRadio)||(E.u_baseRadio=d.bloomBaseRadio),E}}]),f}(DP))||T6),$k,P4;function zM(i){var v=L5();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function L5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var w9=`varying vec2 v_UV; +}`,S2=ks.isNil,O3=(CA=(0,xr.b2)(),CA(wA=function(i){(0,ze.Z)(l,i);var d=yb(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:SA,fs:rx});var a=this.shaderModuleService.getModule("blur-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}},{key:"convertOptionsToUniforms",value:function(a){var p={};return S2(a.bloomRadius)||(p.u_radius=a.bloomRadius),S2(a.bloomIntensity)||(p.u_intensity=a.bloomIntensity),S2(a.bloomBaseRadio)||(p.u_baseRadio=a.bloomBaseRadio),p}}]),l}(S_))||wA),FS,Ay;function Nx(i){var d=Tw();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Tw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var v4=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -935,14 +935,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,Uk=`attribute vec2 a_Position; +}`,BS=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,zF=Qv.isNil,L4=($k=(0,Rg.b2)(),$k(P4=function(i){(0,Ht.Z)(f,i);var v=zM(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:Uk,fs:w9});var d=this.shaderModuleService.getModule("blur-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}},{key:"convertOptionsToUniforms",value:function(d){var E={};return zF(d.blurRadius)||(E.u_BlurDir=[d.blurRadius,0]),E}}]),f}(DP))||P4),D6,lM;function C9(i){var v=IP();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function IP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var I6=`varying vec2 v_UV; +}`,N3=ks.isNil,Ty=(FS=(0,xr.b2)(),FS(Ay=function(i){(0,ze.Z)(l,i);var d=Nx(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:BS,fs:v4});var a=this.shaderModuleService.getModule("blur-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}},{key:"convertOptionsToUniforms",value:function(a){var p={};return N3(a.blurRadius)||(p.u_BlurDir=[a.blurRadius,0]),p}}]),l}(S_))||Ay),EA,ix;function y4(i){var d=E_();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function E_(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var AA=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -964,14 +964,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,IR=`attribute vec2 a_Position; +}`,E2=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,$F=Qv.isNil,UF=(D6=(0,Rg.b2)(),D6(lM=function(i){(0,Ht.Z)(f,i);var v=C9(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:IR,fs:I6});var d=this.shaderModuleService.getModule("blur-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}},{key:"convertOptionsToUniforms",value:function(d){var E={};return $F(d.blurRadius)||(E.u_BlurDir=[0,d.blurRadius]),E}}]),f}(DP))||lM),Vk,jk;function S9(i){var v=M5();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function M5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var P6=`varying vec2 v_UV; +}`,F3=ks.isNil,B3=(EA=(0,xr.b2)(),EA(ix=function(i){(0,ze.Z)(l,i);var d=y4(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:E2,fs:AA});var a=this.shaderModuleService.getModule("blur-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}},{key:"convertOptionsToUniforms",value:function(a){var p={};return F3(a.blurRadius)||(p.u_BlurDir=[0,a.blurRadius]),p}}]),l}(S_))||ix),zS,US;function _4(i){var d=Dw();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Dw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var TA=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1014,27 +1014,27 @@ vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,VF=`attribute vec2 a_Position; +}`,z3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,E9=(Vk=(0,Rg.b2)(),Vk(jk=function(i){(0,Ht.Z)(f,i);var v=S9(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:VF,fs:P6});var d=this.shaderModuleService.getModule("colorhalftone-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}}]),f}(DP))||jk),jF,WF;function T9(i){var v=A9();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function A9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var O5=`varying vec2 v_UV; +}`,b4=(zS=(0,xr.b2)(),zS(US=function(i){(0,ze.Z)(l,i);var d=_4(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:z3,fs:TA});var a=this.shaderModuleService.getModule("colorhalftone-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}}]),l}(S_))||US),U3,V3;function x4(i){var d=C4();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function C4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Iw=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,PR=`attribute vec2 a_Position; +}`,A2=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,D9=(jF=(0,Rg.b2)(),jF(WF=function(i){(0,Ht.Z)(f,i);var v=T9(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:PR,fs:O5}),this.shaderModuleService.getModule("copy-pass")}}]),f}(DP))||WF),$M,QI;function LR(i){var v=ZF();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function ZF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var CL=`varying vec2 v_UV; +}`,w4=(U3=(0,xr.b2)(),U3(V3=function(i){(0,ze.Z)(l,i);var d=x4(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:A2,fs:Iw}),this.shaderModuleService.getModule("copy-pass")}}]),l}(S_))||V3),Fx,K1;function T2(i){var d=$3();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function $3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var _b=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1077,14 +1077,14 @@ vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoor void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,IO=`attribute vec2 a_Position; +}`,AC=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,L6=($M=(0,Rg.b2)(),$M(QI=function(i){(0,Ht.Z)(f,i);var v=LR(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:IO,fs:CL});var d=this.shaderModuleService.getModule("hexagonalpixelate-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}}]),f}(DP))||QI),MR,Av;function BC(i){var v=HF();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function HF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var I9=`varying vec2 v_UV; +}`,DA=(Fx=(0,xr.b2)(),Fx(K1=function(i){(0,ze.Z)(l,i);var d=T2(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:AC,fs:_b});var a=this.shaderModuleService.getModule("hexagonalpixelate-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}}]),l}(S_))||K1),D2,po;function Dd(i){var d=W3();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function W3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var S4=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1117,14 +1117,14 @@ vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,UM=`attribute vec2 a_Position; +}`,Bx=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,OR=(MR=(0,Rg.b2)(),MR(Av=function(i){(0,Ht.Z)(f,i);var v=BC(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:UM,fs:I9});var d=this.shaderModuleService.getModule("ink-pass"),E=d.vs,M=d.fs,B=d.uniforms,J=this.rendererService.getViewportSize(),ue=J.width,Ze=J.height;return{vs:E,fs:M,uniforms:(0,vn.Z)((0,vn.Z)({},B),{},{u_ViewportSize:[ue,Ze]})}}}]),f}(DP))||Av),_S,GF;function R5(i){var v=P9();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function P9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var L9=`varying vec2 v_UV; +}`,I2=(D2=(0,xr.b2)(),D2(po=function(i){(0,ze.Z)(l,i);var d=Dd(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:Bx,fs:S4});var a=this.shaderModuleService.getModule("ink-pass"),p=a.vs,y=a.fs,w=a.uniforms,O=this.rendererService.getViewportSize(),V=O.width,he=O.height;return{vs:p,fs:y,uniforms:(0,Xe.Z)((0,Xe.Z)({},w),{},{u_ViewportSize:[V,he]})}}}]),l}(S_))||po),ff,Z3;function Lw(i){var d=E4();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function E4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var A4=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1145,21 +1145,21 @@ vec4 noise_filterColor(vec4 color, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,uM=`attribute vec2 a_Position; +}`,ox=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,M9=(_S=(0,Rg.b2)(),_S(GF=function(i){(0,Ht.Z)(f,i);var v=R5(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:uM,fs:L9}),this.shaderModuleService.getModule("noise-pass")}}]),f}(DP))||GF),M6,O6;function R6(i){var v=SL();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function SL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var lP=`attribute vec2 a_Position; +}`,T4=(ff=(0,xr.b2)(),ff(Z3=function(i){(0,ze.Z)(l,i);var d=Lw(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:ox,fs:A4}),this.shaderModuleService.getModule("noise-pass")}}]),l}(S_))||Z3),IA,LA;function MA(i){var d=bb();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function bb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var i_=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,uP=`varying vec2 v_UV; +}`,o_=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1180,7 +1180,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,X4=(M6=(0,Rg.b2)(),M6(O6=function(i){(0,Ht.Z)(f,i);var v=R6(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:lP,fs:uP}),this.shaderModuleService.getModule("sepia-pass")}}]),f}(DP))||O6),cP,k5,RR,k6,cM,N6,KF=(cP=(0,Rg.b2)(),k5=(0,Rg.f3)(cu.IRendererService),RR=(0,Rg.zY)(),cP(k6=(cM=function(){function i(){(0,Zr.Z)(this,i),ne(this,"rendererService",N6,this),(0,Na.Z)(this,"passes",[]),(0,Na.Z)(this,"readFBO",void 0),(0,Na.Z)(this,"writeFBO",void 0)}return(0,gt.Z)(i,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var f=this.rendererService,m=f.getViewportSize,d=f.createTexture2D,E=m(),M=E.width,B=E.height;return d({x:0,y:0,width:M,height:B,copy:!0})}},{key:"getReadFBOTex",value:function(){var f=this,m=this.rendererService.useFramebuffer;return new Promise(function(d){m(f.readFBO,(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:d(f.getCurrentFBOTex());case 1:case"end":return B.stop()}},E)})))})}},{key:"renderBloomPass",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){var M,B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,this.getReadFBOTex();case 2:M=ue.sent,B=0;case 4:if(!(B<4)){ue.next=11;break}return ue.next=7,E.render(d,M);case 7:this.swap(),B++,ue.next=4;break;case 11:case"end":return ue.stop()}},m,this)}));function f(m,d){return v.apply(this,arguments)}return f}()},{key:"render",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d){var E,M;return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:E=0;case 1:if(!(E0;)f=f+m*(d%v),d=Math.floor(d/v),m=m/v;return f}var qF=1,PO=(cI=(0,Rg.b2)(),B3=(0,Rg.f3)(cu.IShaderModuleService),cI(F5=(Wk=function(i){(0,Ht.Z)(f,i);var v=YF(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M=1&&(ue(this.copyRenderTarget,function(){E.outputModel.draw({uniforms:{u_Texture:E.outputRenderTarget}})}),ue(d.multiPassRenderer.getPostProcessor().getReadFBO(),function(){E.copyModel.draw({uniforms:{u_Texture:E.copyRenderTarget}})}),d.multiPassRenderer.getPostProcessor().render(d));var B0=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=B0,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(d,E,M){this.shaderModuleService.registerModule(d,{vs:nD,fs:E});var B=this.shaderModuleService.getModule(d),J=B.vs,ue=B.fs,Ze=B.uniforms,st=this.rendererService,Fr=st.createAttribute,Go=st.createBuffer,Ta=st.createModel;return Ta((0,vn.Z)({vs:J,fs:ue,attributes:{a_Position:Fr({buffer:Go({data:[-4,-4,4,-4,0,4],type:J0.FLOAT}),size:2})},uniforms:(0,vn.Z)({},Ze),depth:{enable:!1},count:3},M))}}]),f}(u3),Zk=H(Wk.prototype,"shaderModuleService",[B3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wk))||F5),Y4=new Rg.W2;Y4.bind(cu.IGlobalConfigService).to(DE).inSingletonScope(),(0,Rg.GW)((0,Rg.b2)(),O2.EventEmitter),Y4.bind(cu.IEventEmitter).to(O2.EventEmitter);var Gk=(0,oh.Z)(Y4,!1),dP=function(v){var f=Gk.lazyInject(v);return function(m,d,E){f.call(this,m,d),E&&(E.initializer=function(){return m[d]})}},Kk=function(v){var f=Gk.lazyMultiInject(v);return function(m,d,E){f.call(this,m,d),E&&(E.initializer=function(){return m[d]})}},WD=Y4,$6=0;function Xk(){var i=new Rg.W2;return i.parent=Y4,i.bind(cu.SceneID).toConstantValue("".concat($6++)),i.bind(cu.IShaderModuleService).to(f3).inSingletonScope(),i.bind(cu.ILayerService).to(vO).inSingletonScope(),i.bind(cu.IDebugService).to(eI).inSingletonScope(),i.bind(cu.ISceneService).to(Ba).inSingletonScope(),i.bind(cu.ICameraService).to(cy).inSingletonScope(),i.bind(cu.ICoordinateSystemService).to(WA).inSingletonScope(),i.bind(cu.IInteractionService).to(yD).inSingletonScope(),i.bind(cu.IPickingService).to(vI).inSingletonScope(),i.bind(cu.IControlService).to(Gw).inSingletonScope(),i.bind(cu.IMarkerService).to(CE).inSingletonScope(),i.bind(cu.IIconService).to(jT).inSingletonScope(),i.bind(cu.IFontService).to(uS).inSingletonScope(),i.bind(cu.IPopupService).to(cS).inSingletonScope(),i.bind(cu.INormalPass).to(TR).whenTargetNamed("clear"),i.bind(cu.INormalPass).to(b6).whenTargetNamed("pixelPicking"),i.bind(cu.INormalPass).to(N5).whenTargetNamed("render"),i.bind(cu.INormalPass).to(PO).whenTargetNamed("taa"),i.bind(cu.IFactoryNormalPass).toFactory(function(v){return function(f){return v.container.getNamed(cu.INormalPass,f)}}),i.bind(cu.IPostProcessingPass).to(D9).whenTargetNamed("copy"),i.bind(cu.IPostProcessingPass).to(BF).whenTargetNamed("bloom"),i.bind(cu.IPostProcessingPass).to(L4).whenTargetNamed("blurH"),i.bind(cu.IPostProcessingPass).to(UF).whenTargetNamed("blurV"),i.bind(cu.IPostProcessingPass).to(M9).whenTargetNamed("noise"),i.bind(cu.IPostProcessingPass).to(X4).whenTargetNamed("sepia"),i.bind(cu.IPostProcessingPass).to(E9).whenTargetNamed("colorHalftone"),i.bind(cu.IPostProcessingPass).to(L6).whenTargetNamed("hexagonalPixelate"),i.bind(cu.IPostProcessingPass).to(OR).whenTargetNamed("ink"),i.bind(cu.IFactoryPostProcessingPass).toFactory(function(v){return function(f){var m=v.container.getNamed(cu.IPostProcessingPass,f);return m.setName(f),m}}),i}function TL(i){var v=new Rg.W2;return v.parent=i,v.bind(cu.IStyleAttributeService).to(MM).inSingletonScope(),v.bind(cu.IMultiPassRenderer).to(Bk).inSingletonScope(),v.bind(cu.IPostProcessor).to(KF).inSingletonScope(),v}var NR=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function rD(i){return NR.indexOf(i)}var E3=Qv.clamp,NA=2,FI=4,Yk=64,hP=128,LO=256,U6=512,YP=8192,MO=16384,O9=32768,JF=null,qP=131072,qk=262144,R9=524288,c4=1048576,SU=2097152,k9=4194304,B5=8388608,N9=16777216,F9=null;function z5(i,v){return i=E3(Math.floor(i),0,255),v=E3(Math.floor(v),0,255),256*i+v}function QF(i){var v=i.color,f=i.radius,m=i.tileX,d=i.tileY,E=i.shape,M=i.opacity,B=i.stroke,J=i.strokeWidth,ue=i.strokeOpacity,Ze=[],st=[],Fr=[],Go=[z5(v[0],v[1]),z5(v[2],v[3])],Ta=[z5(B[0],B[1]),z5(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(eu){var kd=(0,hu.Z)(eu,2),em=kd[0],B0=kd[1];Ze.push([].concat(Go,[(em+1)*B5+(B0+1)*SU+rD(E)*qP+f,(m+512)*R9+(d+512)*Yk])),st.push([].concat(Ta,[J,ue])),Fr.push([M,0,0,0])}),{packedBuffer:Ze,packedBuffer2:st,packedBuffer3:Fr}}function V6(i,v){if(i===0&&!v)return 0;if(i===1&&v)return 4294967295;var f=v?1:0,m=Math.floor(i*127);return m*F9+f*N9+m*qP+f*JF+m*U6+f*LO+m*NA+f}var AL={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},XT={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},z3=function(i){return i.LINEAR="linear",i.SEQUENTIAL="sequential",i.POWER="power",i.LOG="log",i.IDENTITY="identity",i.TIME="time",i.QUANTILE="quantile",i.QUANTIZE="quantize",i.THRESHOLD="threshold",i.CAT="cat",i.DIVERGING="diverging",i.CUSTOM="threshold",i}({}),VM=function(i){return i.CONSTANT="constant",i.VARIABLE="variable",i}({}),pS=function(i){return i[i.Attribute=0]="Attribute",i[i.InstancedAttribute=1]="InstancedAttribute",i[i.Uniform=2]="Uniform",i}({}),BI=["mapload","mapchange","mapAfterFrameChange"],OO=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],lD=function(i){return i.IMAGE="image",i.CUSTOMIMAGE="customImage",i.ARRAYBUFFER="arraybuffer",i.RGB="rgb",i.TERRAINRGB="terrainRGB",i.CUSTOMRGB="customRGB",i.CUSTOMARRAYBUFFER="customArrayBuffer",i.CUSTOMTERRAINRGB="customTerrainRGB",i}({}),B9=function(){var i=(0,v_.Z)(Pv().mark(function v(f,m,d,E){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",new Promise(function(J,ue){m({x:f.x,y:f.y,z:f.z},function(Ze,st){if(Ze||st.length===0){ue(Ze);return}st&&xt([{data:st,bands:[0]}],d,E,function(Fr,Go){Fr?ue(Fr):Go&&J(Go)})})}));case 1:case"end":return B.stop()}},v)}));return function(f,m,d,E){return i.apply(this,arguments)}}(),M4=function(){var i=(0,v_.Z)(Pv().mark(function v(f,m){return Pv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",new Promise(function(M,B){m({x:f.x,y:f.y,z:f.z},function(J,ue){if(J||!ue){B(J);return}ue instanceof ArrayBuffer?$0(ue,function(Ze,st){Ze&&B(Ze),M(st)}):ue instanceof HTMLImageElement?M(ue):B(J)})}));case 1:case"end":return E.stop()}},v)}));return function(f,m){return i.apply(this,arguments)}}();function z9(i,v){return Array.isArray(i)?typeof i[0]=="string"?i.map(function(f){return QC(f,v)}):i.map(function(f){return{url:QC(f.url,v),bands:f.bands||[0]}}):QC(i,v)}function FR(i){return typeof i=="string"?[{url:i,bands:[0]}]:typeof i[0]=="string"?i.map(function(v){return{url:v,bands:[0]}}):i}function yA(i,v){i.xhrCancel=function(){v.map(function(f){f.abort()})}}var e7=function(){var i=(0,v_.Z)(Pv().mark(function v(f,m,d,E,M){var B,J,ue,Ze,st,Fr;return Pv().wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:if(B=FR(m.url),!(B.length>1)){Ta.next=15;break}return Ta.next=4,Jk(B,m);case 4:if(J=Ta.sent,ue=J.rasterFiles,Ze=J.xhrList,st=J.errList,yA(f,Ze),!(st.length>0)){Ta.next=12;break}return d(st,null),Ta.abrupt("return");case 12:xt(ue,E,M,d),Ta.next=17;break;case 15:Fr=u0(m,function(eu,kd){if(eu)d(eu);else if(kd){var em=[{data:kd,bands:B[0].bands}];xt(em,E,M,d)}}),yA(f,[Fr]);case 17:case"end":return Ta.stop()}},v)}));return function(f,m,d,E,M){return i.apply(this,arguments)}}();function Jk(i,v){return $5.apply(this,arguments)}function $5(){return $5=(0,v_.Z)(Pv().mark(function i(v,f){var m,d,E,M,B,J,ue,Ze,st,Fr,Go;return Pv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:m=[],d=[],E=[],M=0;case 4:if(!(M1&&arguments[1]!==void 0?arguments[1]:{};if(_A(i))throw new Error("tile server url is error");var f=(v==null?void 0:v.dataType)||lD.IMAGE;f===lD.RGB&&(f=lD.ARRAYBUFFER);var m=function(M,B){switch(f){case lD.IMAGE:return j6(i,M,B,v);case lD.CUSTOMIMAGE:case lD.CUSTOMTERRAINRGB:return M4(B,v==null?void 0:v.getCustomData);case lD.ARRAYBUFFER:return t7(i,M,B,(v==null?void 0:v.format)||W6,v==null?void 0:v.operation);case lD.CUSTOMARRAYBUFFER:case lD.CUSTOMRGB:return B9(B,v==null?void 0:v.getCustomData,(v==null?void 0:v.format)||W6,v==null?void 0:v.operation);default:return j6(i,M,B,v)}},d=(0,vn.Z)((0,vn.Z)((0,vn.Z)({},DL),v),{},{getTileData:m});return{data:i,dataArray:[],tilesetOptions:d,isTile:!0}}var DI=["extent","min","max","width","height","format","operation"];function jM(i,v){var f=v.extent,m=v.min,d=v.max,E=v.width,M=v.height,B=v.format,J=v.operation,ue=(0,q3.Z)(v,DI),Ze;if(B===void 0||o0(i))Ze=Array.from(i);else{var st=Array.isArray(i)?i:[i];Ze=Zw(st,B,J)}var Fr={_id:1,dataArray:[(0,vn.Z)((0,vn.Z)({_id:1,data:Ze,width:E,height:M},ue),{},{min:m,max:d,coordinates:[[f[0],f[1]],[f[2],f[3]]]})]};return Fr}var eN={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},Z6=function(){var i=(0,v_.Z)(Pv().mark(function v(f){return Pv().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",new Promise(function(E){var M=(0,hu.Z)(f.bounds,4),B=M[0],J=M[1],ue=M[2],Ze=M[3],st={layers:{testTile:{features:[{type:"Feature",properties:{key:f.x+"/"+f.y+"/"+f.z,x:(B+ue)/2,y:(J+Ze)/2},geometry:{type:"LineString",coordinates:[[ue,Ze],[ue,J],[B,J],[B,J]]}}]}}};E(st)}));case 1:case"end":return d.stop()}},v)}));return function(f){return i.apply(this,arguments)}}();function H6(i,v){var f=function(E){return Z6(E)},m=(0,vn.Z)((0,vn.Z)((0,vn.Z)({},eN),v),{},{getTileData:f});return{data:i,dataArray:[],tilesetOptions:m,isTile:!0}}var tN=["extent","width","height"];function G6(i,v){var f=v.extent,m=v.width,d=v.height,E=(0,q3.Z)(v,tN);i.length<3&&console.warn("RGB\u89E3\u6790\u9700\u8981\u4E09\u4E2A\u6CE2\u6BB5\u7684\u6570\u636E");for(var M=E.bands||[0,1,2],B=(0,hu.Z)(M,3),J=B[0],ue=B[1],Ze=B[2],st=[i[J],i[ue],i[Ze]],Fr=[],Go=(E==null?void 0:E.countCut)||[2,98],Ta=(0,hu.Z)(Go,2),eu=Ta[0],kd=Ta[1],em=(E==null?void 0:E.RMinMax)||u2(st[0],eu,kd),B0=(E==null?void 0:E.GMinMax)||u2(st[1],eu,kd),vv=(E==null?void 0:E.BMinMax)||u2(st[2],eu,kd),y1=0;y1v&&(v=i[f]);return v}function rN(i){if(i.length===0)throw new Error("min requires at least one data point");for(var v=i[0],f=1;f=Math.abs(i[d])?f+=v-m+i[d]:f+=i[d]-m+v,v=m;return v+f*1}function i7(i){if(i.length===0)throw new Error("mean requires at least one data point");return r7(i)/i.length}var RO={min:rN,max:BR,mean:i7,sum:r7};function X6(i){var v=o7();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function o7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Y6=Qv.cloneDeep,WM=Qv.isFunction,O4=Qv.isString,s7=Qv.mergeWith;function $9(i,v){if(Array.isArray(v))return v}var zR=function(i){(0,Ht.Z)(f,i);var v=X6(f);function f(m,d){var E;return(0,Zr.Z)(this,f),E=v.call(this),(0,Na.Z)((0,mv.Z)(E),"type","source"),(0,Na.Z)((0,mv.Z)(E),"isTile",!1),(0,Na.Z)((0,mv.Z)(E),"inited",!1),(0,Na.Z)((0,mv.Z)(E),"hooks",{init:new aP}),(0,Na.Z)((0,mv.Z)(E),"parser",{type:"geojson"}),(0,Na.Z)((0,mv.Z)(E),"transforms",[]),(0,Na.Z)((0,mv.Z)(E),"cluster",!1),(0,Na.Z)((0,mv.Z)(E),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,Na.Z)((0,mv.Z)(E),"invalidExtent",!1),(0,Na.Z)((0,mv.Z)(E),"dataArrayChanged",!1),(0,Na.Z)((0,mv.Z)(E),"cfg",{autoRender:!0}),E.originData=m,E.initCfg(d),E.init().then(function(){E.inited=!0,E.emit("update",{type:"inited"})}),E}return(0,gt.Z)(f,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(d){return this.clusterIndex.getClusters(this.caculClusterExtent(2),d)}},{key:"getClustersLeaves",value:function(d){return this.clusterIndex.getLeaves(d,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(d){var E=this,M=this.clusterOptions,B=M.method,J=B===void 0?"sum":B,ue=M.field,Ze=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(d));this.clusterOptions.zoom=d,Ze.forEach(function(st){st.id||(st.properties.point_count=1)}),(ue||WM(J))&&(Ze=Ze.map(function(st){var Fr=st.id;if(Fr){var Go=E.clusterIndex.getLeaves(Fr,1/0),Ta=Go.map(function(em){return em.properties}),eu;if(O4(J)&&ue){var kd=_0(Ta,ue);eu=RO[J](kd)}WM(J)&&(eu=J(Ta)),st.properties.stat=eu}else st.properties.point_count=1;return st})),this.data=a("geojson")({type:"FeatureCollection",features:Ze}),this.executeTrans()}},{key:"getFeatureById",value:function(d){var E=this.parser,M=E.type,B=M===void 0?"geojson":M,J=E.geometry;if(B==="geojson"&&!this.cluster){var ue=d=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function q6(i,v){if(i){if(typeof i=="string")return l7(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return l7(i,v)}}function l7(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fm?d:m)}}catch(vv){E.e(vv)}finally{E.f()}var J=(f+m)/2,ue=J6(v,J);if(ue.xOffset<=0||ue.yOffset<=0)return{gridHash:{},gridOffset:ue};var Ze={},st=iN(i),Fr;try{for(st.s();!(Fr=st.n()).done;){var Go=Fr.value,Ta=Go.coordinates[1],eu=Go.coordinates[0];if(Number.isFinite(Ta)&&Number.isFinite(eu)){var kd=Math.floor((Ta+90)/ue.yOffset),em=Math.floor((eu+180)/ue.xOffset),B0="".concat(kd,"-").concat(em);Ze[B0]=Ze[B0]||{count:0,points:[]},Ze[B0].count+=1,Ze[B0].points.push(Go)}}}catch(vv){st.e(vv)}finally{st.f()}return{gridHash:Ze,gridOffset:ue}}function J6(i,v){var f=U9(i),m=Q6(v,i);return{yOffset:f,xOffset:m}}function U9(i){return i/oN*(180/Math.PI)}function Q6(i,v){return v/oN*(180/Math.PI)/Math.cos(i*Math.PI/180)}function aN(i,v,f){return Object.keys(i).reduce(function(m,d,E){var M=d.split("-"),B=parseInt(M[0],10),J=parseInt(M[1],10),ue={};if(f.field&&f.method){var Ze=MC(i[d].points,f.field);ue[f.method]=pw[f.method](Ze)}return Object.assign(ue,{_id:E,coordinates:VC([-180+v.xOffset*(J+.5),-90+v.yOffset*(B+.5)]),rawData:i[d].points,count:i[d].count}),m.push(ue),m},[])}var ZM=Math.PI/3,u7=[0,ZM,2*ZM,3*ZM,4*ZM,5*ZM];function $R(i){return i[0]}function V9(i){return i[1]}function j9(){var i=0,v=0,f=1,m=1,d=$R,E=V9,M,B,J;function ue(st){var Fr={},Go=[],Ta,eu=st.length;for(Ta=0;Ta1){var J1=em-y1,ey=y1+(emC_*C_+yx*yx&&(y1=ey+(vv&1?1:-1)/2,vv=Fy)}var ux=y1+"-"+vv,h2=Fr[ux];h2?h2.push(kd):(Go.push(h2=Fr[ux]=[kd]),h2.x=(y1+(vv&1)/2)*B,h2.y=vv*J)}return Go}function Ze(st){var Fr=0,Go=0;return u7.map(function(Ta){var eu=Math.sin(Ta)*st,kd=-Math.cos(Ta)*st,em=eu-Fr,B0=kd-Go;return Fr=eu,Go=kd,[em,B0]})}return ue.hexagon=function(st){return"m"+Ze(st==null?M:+st).join("l")+"z"},ue.centers=function(){for(var st=[],Fr=Math.round(v/J),Go=Math.round(i/B),Ta=Fr*J;Ta180||Math.abs(Ta[1][0])>180){if(B0.x>Go){var vv=this.mapsService.lngLatToContainer([ue-360,Ze]);B0.x=vv.x}if(B0.x<0){var y1=this.mapsService.lngLatToContainer([ue+360,Ze]);B0.x=y1.x}}(B0.x>Go||B0.x<0||B0.y>Fr||B0.y<0)&&(M.style.display="none"),M.style.left=B0.x+"px",M.style.top=B0.y+"px",console.log(B0),M.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)"}}}},{key:"onMapClick",value:function(d){var E=this.markerOption.element;this.popup&&E&&this.togglePopup()}},{key:"getCurrentContainerSize",value:function(){var d=this.mapsService.getContainer();return{containerHeight:(d==null?void 0:d.scrollHeight)||0,containerWidth:(d==null?void 0:d.scrollWidth)||0,bounds:this.mapsService.getBounds()}}},{key:"updateDraggable",value:function(){var d=this.markerOption.element;d==null||d.removeEventListener("mousedown",this.onMarkerDragStart),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.markerOption.draggable&&(d==null||d.addEventListener("mousedown",this.onMarkerDragStart))}},{key:"updatePosition",value:function(){if(this.mapsService){var d=this.markerOption,E=d.element,M=d.offsets,B=this.lngLat,J=B.lng,ue=B.lat,Ze=this.mapsService.lngLatToContainer([J,ue]);if(E){E.style.display="block",E.style.whiteSpace="nowrap";var st=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize(),Fr=st.containerHeight,Go=st.containerWidth,Ta=st.bounds;if(!Ta)return;if(Math.abs(Ta[0][0])>180||Math.abs(Ta[1][0])>180){if(Ze.x>Go){var eu=this.mapsService.lngLatToContainer([J-360,ue]);Ze.x=eu.x}if(Ze.x<0){var kd=this.mapsService.lngLatToContainer([J+360,ue]);Ze.x=kd.x}}(Ze.x>Go||Ze.x<0||Ze.y>Fr||Ze.y<0)&&(E.style.display="none"),E.style.left=Ze.x+M[0]+"px",E.style.top=Ze.y-M[1]+"px"}}}},{key:"init",value:function(){var d=this,E=this.markerOption.element,M=this.markerOption,B=M.color,J=M.anchor;if(!E){this.defaultMarker=!0,E=Ov("div"),this.markerOption.element=E;var ue=document.createElementNS("http://www.w3.org/2000/svg","svg");ue.setAttributeNS(null,"display","block"),ue.setAttributeNS(null,"height","48px"),ue.setAttributeNS(null,"width","48px"),ue.setAttributeNS(null,"viewBox","0 0 1024 1024");var Ze=document.createElementNS("http://www.w3.org/2000/svg","path");Ze.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),Ze.setAttributeNS(null,"fill",B),ue.appendChild(Ze),E.appendChild(ue)}K1(E,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(st){var Fr,Go,Ta=((Fr=d.markerOption)===null||Fr===void 0?void 0:Fr.style)&&((Go=d.markerOption)===null||Go===void 0?void 0:Go.style[st]);E&&(E.style[st]=Ta)}),uu(E,J,"marker")}},{key:"registerMarkerEvent",value:function(d){d.addEventListener("click",this.onMapClick),d.addEventListener("mousemove",this.eventHandle),d.addEventListener("click",this.eventHandle),d.addEventListener("mousedown",this.eventHandle),d.addEventListener("mouseup",this.eventHandle),d.addEventListener("dblclick",this.eventHandle),d.addEventListener("contextmenu",this.eventHandle),d.addEventListener("mouseover",this.eventHandle),d.addEventListener("mouseout",this.eventHandle),d.addEventListener("touchstart",this.eventHandle),d.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var d=this.getElement();d.removeEventListener("click",this.onMapClick),d.removeEventListener("mousemove",this.eventHandle),d.removeEventListener("click",this.eventHandle),d.removeEventListener("mousedown",this.eventHandle),d.removeEventListener("mouseup",this.eventHandle),d.removeEventListener("dblclick",this.eventHandle),d.removeEventListener("contextmenu",this.eventHandle),d.removeEventListener("mouseover",this.eventHandle),d.removeEventListener("mouseout",this.eventHandle),d.removeEventListener("touchstart",this.eventHandle),d.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(d){!this.mapsService||this.mapsService.version!=="GAODE2.x"||gx()||(d.type==="touchstart"&&(this.touchStartTime=Date.now()),d.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:d,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(d){return null}},{key:"onUp",value:function(d){throw new Error("Method not implemented.")}}]),f}(O2.EventEmitter);function Uo(i){var v=du();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function du(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Cg=Qv.merge,Mg=function(i){(0,Ht.Z)(f,i);var v=Uo(f);function f(m){var d,E;return(0,Zr.Z)(this,f),E=v.call(this),(0,Na.Z)((0,mv.Z)(E),"markers",[]),(0,Na.Z)((0,mv.Z)(E),"points",[]),(0,Na.Z)((0,mv.Z)(E),"clusterMarkers",[]),E.markerLayerOption=Cg(E.getDefault(),m),_x(["update"],(0,mv.Z)(E)),E.zoom=((d=E.markerLayerOption.clusterOption)===null||d===void 0?void 0:d.zoom)||-99,E}return(0,gt.Z)(f,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(d){return this.scene=d,this.mapsService=d.get(cu.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var d=this.mapsService.getContainer();this.containerSize={containerWidth:(d==null?void 0:d.scrollWidth)||0,containerHeight:(d==null?void 0:d.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(d){var E=this.markerLayerOption.cluster;if(d.getMarkerLayerContainerSize=this.getContainerSize.bind(this),E&&(this.addPoint(d,this.markers.length),this.mapsService)){var M=this.mapsService.getZoom(),B=this.mapsService.getBounds();this.bbox=cx(B,.5),this.zoom=Math.floor(M),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(d)}},{key:"removeMarker",value:function(d){this.markers.indexOf(d);var E=this.markers.indexOf(d);E>-1&&(this.markers.splice(E,1),this.markerLayerOption.cluster&&(this.removePoint(E),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(d){d.getElement().style.opacity="0"}),this.clusterMarkers.map(function(d){d.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(d){d.getElement().style.opacity="1"}),this.clusterMarkers.map(function(d){d.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var d=this.markerLayerOption.cluster;return d?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var d=this;this.getMarkers().forEach(function(E){E.addTo(d.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(d){d.remove()}),this.clusterMarkers.forEach(function(d){d.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(d,E){var M=d.getLnglat(),B=M.lng,J=M.lat,ue={geometry:{type:"Point",coordinates:[B,J]},properties:(0,vn.Z)((0,vn.Z)({},d.getExtData()),{},{marker_id:E})};this.points.push(ue),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(d){var E=this.points.findIndex(function(M){return M.properties.marker_id===d});E>-1&&this.points.splice(E,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var d=this.markerLayerOption.clusterOption,E=d.radius,M=d.minZoom,B=M===void 0?0:M,J=d.maxZoom;this.clusterIndex=new(K6())({radius:E,minZoom:B,maxZoom:J}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(d,E){var M=this,B=d[0].concat(d[1]),J=this.clusterIndex.getClusters(B,E);this.clusterMarkers.forEach(function(ue){ue.remove()}),this.clusterMarkers=[],J.forEach(function(ue){var Ze,st=M.markerLayerOption.clusterOption,Fr=st.field,Go=st.method;if((Ze=ue.properties)!==null&&Ze!==void 0&&Ze.cluster_id){var Ta,eu=M.getLeaves((Ta=ue.properties)===null||Ta===void 0?void 0:Ta.cluster_id);if(ue.properties.clusterData=eu,Fr&&Go){var kd=eu==null?void 0:eu.map(function(fy){var J1=(0,Na.Z)({},Fr,fy.properties[Fr]);return J1}),em=MC(kd,Fr),B0=AT(Go,em),vv="point_"+Go;ue.properties[vv]=B0.toFixed(2)}}var y1=M.clusterMarker(ue);M.clusterMarkers.push(y1),y1.addTo(M.scene)})}},{key:"getLeaves",value:function(d){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return d?this.clusterIndex.getLeaves(d,E,M):null}},{key:"clusterMarker",value:function(d){var E=this.markerLayerOption.clusterOption,M=E,B=M.element,J=B===void 0?this.generateElement.bind(this):B,ue=new Or({element:J(d)}).setLnglat({lng:d.geometry.coordinates[0],lat:d.geometry.coordinates[1]});return ue}},{key:"normalMarker",value:function(d){var E=d.properties.marker_id;return this.markers[E]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var d=this.mapsService.getZoom(),E=this.mapsService.getBounds();(!this.bbox||Math.abs(d-this.zoom)>=1||!Cx(this.bbox,E))&&(this.bbox=cx(E,.5),this.zoom=Math.floor(d),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(d){var E=Ov("div","l7-marker-cluster"),M=Ov("div","",E),B=Ov("span","",M),J=this.markerLayerOption.clusterOption,ue=J.field,Ze=J.method;d.properties.point_count=d.properties.point_count||1;var st=ue&&Ze?d.properties["point_"+Ze]||d.properties[ue]:d.properties.point_count;return B.textContent=st,E}}]),f}(O2.EventEmitter),av=l(7639);function Dv(i){var v=i1();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function i1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var p1=function(i){(0,Ht.Z)(f,i);var v=Dv(f);function f(m){var d;return(0,Zr.Z)(this,f),d=v.call(this),f.controlCount++,d.controlOption=(0,vn.Z)((0,vn.Z)({},d.getDefault(m)),m||{}),d}return(0,gt.Z)(f,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(d){var E=this.getDefault(d);Object.entries(d).forEach(function(M){var B=(0,hu.Z)(M,2),J=B[0],ue=B[1];ue===void 0&&(d[J]=E[J])}),"position"in d&&this.setPosition(d.position),"className"in d&&this.setClassName(d.className),"style"in d&&this.setStyle(d.style),this.controlOption=(0,vn.Z)((0,vn.Z)({},this.controlOption),d)}},{key:"addTo",value:function(d){this.mapsService=d.get(cu.IMapService),this.renderService=d.get(cu.IRendererService),this.layerService=d.get(cu.ILayerService),this.controlService=d.get(cu.IControlService),this.configService=d.get(cu.IGlobalConfigService),this.scene=d.get(cu.ISceneService),this.sceneContainer=d,this.isShow=!0,this.container=this.onAdd(),K1(this.container,"l7-control");var E=this.controlOption,M=E.className,B=E.style;return M&&this.setClassName(M),B&&this.setStyle(B),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;v1(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Ov("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var d=this.container;sx(d,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var d=this.container;K1(d,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(d){return{position:Gy.TOPRIGHT,name:"".concat(f.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(d){if(this.mapsService&&d&&d.screenX>0&&d.screenY>0){var E=this.mapsService.getContainer();E!==null&&E.focus()}}},{key:"setPosition",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gy.TOPLEFT,E=this.controlService;return E&&E.removeControl(this),this.controlOption.position=d,E&&E.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(d){var E=this.container,M=this.controlOption.className;M&&sx(E,M),d&&K1(E,d)}},{key:"setStyle",value:function(d){var E=this.container;d?E.setAttribute("style",d):E.removeAttribute("style")}},{key:"insertContainer",value:function(){var d=this.controlOption.position,E=this.container;if(d instanceof Element)d.appendChild(E);else{var M=this.controlService.controlCorners[d];["bottomleft","bottomright","righttop","rightbottom"].includes(d)?M.insertBefore(E,M.firstChild):M.appendChild(E)}}},{key:"checkUpdateOption",value:function(d,E){return E.some(function(M){return M in d})}}]),f}(TE());(0,Na.Z)(p1,"controlCount",0);function F0(i){var v=R1();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function R1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var s_=function(i){(0,Ht.Z)(f,i);var v=F0(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:"";return Ov("button","l7-button-control ".concat(d))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var d=this.controlOption,E=d.title,M=d.btnText,B=d.btnIcon;return this.setBtnTitle(E),this.setBtnText(M),this.setBtnIcon(B),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(d){var E=d.title,M=d.btnText,B=d.btnIcon;this.checkUpdateOption(d,["title"])&&this.setBtnTitle(E),this.checkUpdateOption(d,["btnIcon"])&&this.setBtnIcon(B),this.checkUpdateOption(d,["btnText"])&&this.setBtnText(M),PS((0,oi.Z)(f.prototype),"setOptions",this).call(this,d)}},{key:"setBtnTitle",value:function(d){var E;(E=this.button)===null||E===void 0||E.setAttribute("title",d!=null?d:"")}},{key:"setBtnIcon",value:function(d){if(this.buttonIcon&&v1(this.buttonIcon),d){var E,M=(E=this.button)===null||E===void 0?void 0:E.firstChild;if(M){var B;(B=this.button)===null||B===void 0||B.insertBefore(d,M)}else{var J;(J=this.button)===null||J===void 0||J.appendChild(d)}this.buttonIcon=d}}},{key:"setBtnText",value:function(d){if(this.button)if(sx(this.button,"l7-button-control--row"),sx(this.button,"l7-button-control--column"),d){var E=this.buttonText;if(!E){var M;E=Ov("div","l7-button-control__text"),(M=this.button)===null||M===void 0||M.appendChild(E),this.buttonText=E}E.innerText=d,K1(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!d&&this.buttonText&&(v1(this.buttonText),this.buttonText=void 0)}}]),f}(p1);function S_(i){var v=Vy();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Vy(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Qx=function(i){(0,Ht.Z)(f,i);var v=S_(f);function f(m,d){var E;return(0,Zr.Z)(this,f),E=v.call(this),(0,Na.Z)((0,mv.Z)(E),"isShow",!1),(0,Na.Z)((0,mv.Z)(E),"timeout",null),(0,Na.Z)((0,mv.Z)(E),"show",function(){return E.isShow||!E.contentDOM.innerHTML||(E.resetPopperPosition(),sx(E.popperDOM,"l7-popper-hide"),E.isShow=!0,E.option.unique&&f.conflictPopperList.forEach(function(M){M!==(0,mv.Z)(E)&&M.isShow&&M.hide()}),E.emit("show"),window.addEventListener("pointerdown",E.onPopperUnClick)),(0,mv.Z)(E)}),(0,Na.Z)((0,mv.Z)(E),"hide",function(){return E.isShow&&(K1(E.popperDOM,"l7-popper-hide"),E.isShow=!1,E.emit("hide"),window.removeEventListener("pointerdown",E.onPopperUnClick)),(0,mv.Z)(E)}),(0,Na.Z)((0,mv.Z)(E),"setHideTimeout",function(){E.timeout||(E.timeout=window.setTimeout(function(){E.isShow&&(E.hide(),E.timeout=null)},300))}),(0,Na.Z)((0,mv.Z)(E),"clearHideTimeout",function(){E.timeout&&(window.clearTimeout(E.timeout),E.timeout=null)}),(0,Na.Z)((0,mv.Z)(E),"onBtnClick",function(){E.isShow?E.hide():E.show()}),(0,Na.Z)((0,mv.Z)(E),"onPopperUnClick",function(M){ty(M.target,[".l7-button-control",".l7-popper-content"])||E.hide()}),(0,Na.Z)((0,mv.Z)(E),"onBtnMouseLeave",function(){E.setHideTimeout()}),(0,Na.Z)((0,mv.Z)(E),"onBtnMouseMove",function(){E.clearHideTimeout(),!E.isShow&&E.show()}),E.button=m,E.option=d,E.init(),d.unique&&f.conflictPopperList.push((0,mv.Z)(E)),E}return(0,gt.Z)(f,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(d){typeof d=="string"?this.contentDOM.innerHTML=d:d instanceof HTMLElement&&(Ay(this.contentDOM),this.contentDOM.appendChild(d)),this.content=d}},{key:"init",value:function(){var d=this.option.trigger;this.popperDOM=this.createPopper(),d==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),v1(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var d={},E=this.option,M=E.container,B=E.offset,J=B===void 0?[0,0]:B,ue=E.placement,Ze=(0,hu.Z)(J,2),st=Ze[0],Fr=Ze[1],Go=this.button.getBoundingClientRect(),Ta=M.getBoundingClientRect(),eu=k1(Go,Ta),kd=eu.left,em=eu.right,B0=eu.top,vv=eu.bottom,y1=!1,fy=!1;/^(left|right)/.test(ue)?(ue.includes("left")?d.right="".concat(Go.width+em,"px"):ue.includes("right")&&(d.left="".concat(Go.width+kd,"px")),ue.includes("start")?d.top="".concat(B0,"px"):ue.includes("end")?d.bottom="".concat(vv,"px"):(d.top="".concat(B0+Go.height/2,"px"),fy=!0,d.transform="translate(".concat(st,"px, calc(").concat(Fr,"px - 50%))"))):/^(top|bottom)/.test(ue)&&(ue.includes("top")?d.bottom="".concat(Go.height+vv,"px"):ue.includes("bottom")&&(d.top="".concat(Go.height+B0,"px")),ue.includes("start")?d.left="".concat(kd,"px"):ue.includes("end")?d.right="".concat(em,"px"):(d.left="".concat(kd+Go.width/2,"px"),y1=!0,d.transform="translate(calc(".concat(st,"px - 50%), ").concat(Fr,"px)"))),d.transform="translate(calc(".concat(st,"px - ").concat(y1?"50%":"0%","), calc(").concat(Fr,"px - ").concat(fy?"50%":"0%",")");var J1=ue.split("-");J1.length&&K1(this.popperDOM,J1.map(function(ey){return"l7-popper-".concat(ey)}).join(" ")),Vg(this.popperDOM,I1(d))}},{key:"createPopper",value:function(){var d=this.option,E=d.container,M=d.className,B=M===void 0?"":M,J=d.content,ue=Ov("div","l7-popper l7-popper-hide ".concat(B)),Ze=Ov("div","l7-popper-content"),st=Ov("div","l7-popper-arrow");return ue.appendChild(Ze),ue.appendChild(st),E.appendChild(ue),this.popperDOM=ue,this.contentDOM=Ze,J&&this.setContent(J),ue}}]),f}(O2.EventEmitter);(0,Na.Z)(Qx,"conflictPopperList",[]);function M2(i){var v=Gx();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Gx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var R_={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},p2=function(i){(0,Ht.Z)(f,i);var v=M2(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),PS((0,oi.Z)(f.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(d){var E,M=PS((0,oi.Z)(f.prototype),"getDefault",this).call(this,d),B=(E=d==null?void 0:d.position)!==null&&E!==void 0?E:M.position;return(0,vn.Z)((0,vn.Z)({},PS((0,oi.Z)(f.prototype),"getDefault",this).call(this,d)),{},{popperPlacement:B instanceof Element?"bottom":R_[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var d=PS((0,oi.Z)(f.prototype),"onAdd",this).call(this);return this.initPopper(),d}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var d=this,E=this.controlOption,M=E.popperClassName,B=E.popperPlacement,J=E.popperTrigger,ue=this.mapsService.getMapContainer();return this.popper=new Qx(this.button,{className:M,placement:B,trigger:J,container:ue,unique:!0}),this.popper.on("show",function(){d.emit("popperShow",d)}).on("hide",function(){d.emit("popperHide",d)}),this.popper}},{key:"setOptions",value:function(d){if(PS((0,oi.Z)(f.prototype),"setOptions",this).call(this,d),this.checkUpdateOption(d,["popperPlacement","popperTrigger","popperClassName"])){var E=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(E)}}}]),f}(s_);function qx(i){var v=sw();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function sw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var g2=function(i){return i.ActiveOptionClassName="l7-select-control-item-active",i.OptionValueAttrKey="data-option-value",i.OptionIndexAttrKey="data-option-index",i}(g2||{}),l2=function(i){(0,Ht.Z)(f,i);var v=qx(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M-1?m.selectValue.splice(J,1):m.selectValue=[].concat((0,su.Z)(m.selectValue),[B.value])}else m.selectValue=[B.value];m.setSelectValue(m.selectValue)}),m}return(0,gt.Z)(f,[{key:"setOptions",value:function(d){PS((0,oi.Z)(f.prototype),"setOptions",this).call(this,d);var E=d.options;E&&this.popper.setContent(this.getPopperContent(E))}},{key:"onAdd",value:function(){var d=PS((0,oi.Z)(f.prototype),"onAdd",this).call(this),E=this.controlOption.defaultValue;return E&&(this.selectValue=this.transSelectValue(E)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),d}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(d){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,M=this.transSelectValue(d);this.optionDOMList.forEach(function(B){var J=B.getAttribute(g2.OptionValueAttrKey),ue=B.querySelector("input[type=checkbox]"),Ze=B.querySelector("input[type=radio]"),st=M.includes(J),Fr=function(Ta,eu){I2(B,g2.ActiveOptionClassName,eu),Ta&&S1(Ta,eu)};Fr(ue,st),Fr(Ze,st)}),this.selectValue=M,E&&this.emit("selectChange",this.getIsMultiple()?M:M[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(d){var E=this,M=this.isImageOptions(),B=Ov("div",M?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&K1(B,"l7-select-control--multiple");var J=d.map(function(ue,Ze){var st=M?E.createImageOption(ue):E.createNormalOption(ue);return st.setAttribute(g2.OptionValueAttrKey,ue.value),st.setAttribute(g2.OptionIndexAttrKey,window.String(Ze)),st.addEventListener("click",E.onItemClick.bind(E,ue)),st});return B.append.apply(B,(0,su.Z)(J)),this.optionDOMList=J,B}},{key:"createImageOption",value:function(d){var E=this.selectValue.includes(d.value),M=Ov("div","l7-select-control-item ".concat(E?g2.ActiveOptionClassName:"")),B=Ov("img");B.setAttribute("src",d.img),U1(B),M.appendChild(B);var J=Ov("div","l7-select-control-item-row");this.getIsMultiple()&&M.appendChild(this.createCheckbox(E));var ue=Ov("span");return ue.innerText=d.text,J.appendChild(ue),M.appendChild(J),M}},{key:"createCheckbox",value:function(d){var E=Ov("input");return E.setAttribute("type","checkbox"),d&&S1(E,!0),E}},{key:"createRadio",value:function(d){var E=Ov("input");return E.setAttribute("type","radio"),d&&S1(E,!0),E}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(d){return d.img})}},{key:"transSelectValue",value:function(d){return Array.isArray(d)?d:[d]}}]),f}(p2),dS=function(v){var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.classList.add("l7-iconfont"),f.setAttribute("aria-hidden","true");var m=document.createElementNS("http://www.w3.org/2000/svg","use");return m.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(v)),f.appendChild(m),f};function ME(i){var v=LS();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function LS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var iT=function(i){(0,Ht.Z)(f,i);var v=ME(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function o3(i,v){if(i){if(typeof i=="string")return nE(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return nE(i,v)}}function nE(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0&&arguments[0]!==void 0?arguments[0]:document.documentElement,f=arguments.length>1?arguments[1]:void 0;return new Promise(function(m,d){var E=function B(){m2.off("change",B),m()};m2.on("change",E);var M=v[Jw.requestFullscreen](f);M instanceof Promise&&M.then(E).catch(d)})},exit:function(){return new Promise(function(v,f){if(!m2.isFullscreen){v();return}var m=function E(){m2.off("change",E),v()};m2.on("change",m);var d=document[Jw.exitFullscreen]();d instanceof Promise&&d.then(m).catch(f)})},toggle:function(v,f){return m2.isFullscreen?m2.exit():m2.request(v,f)},onchange:function(v){m2.on("change",v)},onerror:function(v){m2.on("error",v)},on:function(v,f){var m=Q_[v];m&&document.addEventListener(m,f,!1)},off:function(v,f){var m=Q_[v];m&&document.removeEventListener(m,f,!1)},raw:Jw};Object.defineProperties(m2,{isFullscreen:{get:function(){return!!document[Jw.fullscreenElement]}},element:{enumerable:!0,get:function(){var v;return(v=document[Jw.fullscreenElement])!==null&&v!==void 0?v:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Jw.fullscreenEnabled]}}}),Jw||(m2={isEnabled:!1});var vx=m2;function Ex(i){var v=er();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function er(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var zs=function(i){(0,Ht.Z)(f,i);var v=Ex(f);function f(m){var d;return(0,Zr.Z)(this,f),d=v.call(this,m),(0,Na.Z)((0,mv.Z)(d),"isFullscreen",!1),(0,Na.Z)((0,mv.Z)(d),"toggleFullscreen",(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!vx.isEnabled){B.next=3;break}return B.next=3,vx.toggle(d.mapContainer);case 3:case"end":return B.stop()}},E)}))),(0,Na.Z)((0,mv.Z)(d),"onClick",function(){d.toggleFullscreen()}),(0,Na.Z)((0,mv.Z)(d),"onFullscreenChange",function(){d.isFullscreen=!!document.fullscreenElement;var E=d.controlOption,M=E.btnText,B=E.btnIcon,J=E.title,ue=E.exitBtnText,Ze=E.exitBtnIcon,st=E.exitTitle;d.isFullscreen?(d.setBtnTitle(st),d.setBtnText(ue),d.setBtnIcon(Ze)):(d.setBtnTitle(J),d.setBtnText(M),d.setBtnIcon(B)),d.emit("fullscreenChange",d.isFullscreen)}),vx.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),d}return(0,gt.Z)(f,[{key:"setOptions",value:function(d){var E=d.exitBtnText,M=d.exitBtnIcon,B=d.exitTitle;this.isFullscreen&&(this.checkUpdateOption(d,["exitBtnIcon"])&&this.setBtnIcon(M),this.checkUpdateOption(d,["exitBtnText"])&&this.setBtnText(E),this.checkUpdateOption(d,["exitTitle"])&&this.setBtnTitle(B)),PS((0,oi.Z)(f.prototype),"setOptions",this).call(this,d)}},{key:"onAdd",value:function(){var d=PS((0,oi.Z)(f.prototype),"onAdd",this).call(this);return d.addEventListener("click",this.onClick),this.mapContainer=M_(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),d}},{key:"onRemove",value:function(){PS((0,oi.Z)(f.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(d){return(0,vn.Z)((0,vn.Z)({},PS((0,oi.Z)(f.prototype),"getDefault",this).call(this,d)),{},{title:"\u5168\u5C4F",btnIcon:dS("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:dS("l7-icon-exit-fullscreen")})}}]),f}(s_);function Md(i){var v=Q0();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Q0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var C1=function(i){(0,Ht.Z)(f,i);var v=Md(f);function f(m){var d;return(0,Zr.Z)(this,f),d=v.call(this,m),(0,Na.Z)((0,mv.Z)(d),"getGeoLocation",function(){return new Promise(function(E,M){window.navigator.geolocation.getCurrentPosition(function(B){var J=B.coords,ue=J!=null?J:{},Ze=ue.longitude,st=ue.latitude;!isNaN(Ze)&&!isNaN(st)?E([Ze,st]):M()},function(B){M(B)})})}),(0,Na.Z)((0,mv.Z)(d),"onClick",(0,v_.Z)(Pv().mark(function E(){var M,B,J;return Pv().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(window.navigator.geolocation){Ze.next=2;break}return Ze.abrupt("return");case 2:return M=d.controlOption.transform,Ze.next=5,d.getGeoLocation();case 5:if(B=Ze.sent,J=d.mapsService.getZoom(),Ze.t0=d.mapsService,Ze.t1=J>15?J:15,!M){Ze.next=15;break}return Ze.next=12,M(B);case 12:Ze.t2=Ze.sent,Ze.next=16;break;case 15:Ze.t2=B;case 16:Ze.t3=Ze.t2,Ze.t0.setZoomAndCenter.call(Ze.t0,Ze.t1,Ze.t3);case 18:case"end":return Ze.stop()}},E)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),d}return(0,gt.Z)(f,[{key:"getDefault",value:function(d){return(0,vn.Z)((0,vn.Z)({},PS((0,oi.Z)(f.prototype),"getDefault",this).call(this,d)),{},{title:"\u5B9A\u4F4D",btnIcon:dS("l7-icon-reposition")})}},{key:"onAdd",value:function(){var d=PS((0,oi.Z)(f.prototype),"onAdd",this).call(this);return d.addEventListener("click",this.onClick),d}}]),f}(s_);function D_(i){var v=N1();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function N1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function Z2(i){return Object.keys(i!=null?i:{}).every(function(v){return["layer","name","img"].includes(v)})}var ew=function(i){(0,Ht.Z)(f,i);var v=D_(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M=10?10:M>=5?5:M>=3?3:M>=2?2:1,E*M}},{key:"updateMetric",value:function(d){var E=this.getRoundNum(d),M=E<1e3?E+" m":E/1e3+" km";this.updateScale(this.mScale,M,E/d)}},{key:"updateImperial",value:function(d){var E=d*3.2808399,M,B,J;E>5280?(M=E/5280,B=this.getRoundNum(M),this.updateScale(this.iScale,B+" mi",B/M)):(J=this.getRoundNum(E),this.updateScale(this.iScale,J+" ft",J/E))}}]),f}(p1),zI,MA=(zI={},(0,Na.Z)(zI,g1.additive,{enable:!0,func:{srcRGB:J0.ONE,dstRGB:J0.ONE,srcAlpha:1,dstAlpha:1}}),(0,Na.Z)(zI,g1.none,{enable:!1}),(0,Na.Z)(zI,g1.normal,{enable:!0,func:{srcRGB:J0.SRC_ALPHA,dstRGB:J0.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,Na.Z)(zI,g1.subtractive,{enable:!0,func:{srcRGB:J0.ONE,dstRGB:J0.ONE,srcAlpha:J0.ZERO,dstAlpha:J0.ONE_MINUS_SRC_COLOR},equation:{rgb:J0.FUNC_SUBTRACT,alpha:J0.FUNC_SUBTRACT}}),(0,Na.Z)(zI,g1.max,{enable:!0,func:{srcRGB:J0.ONE,dstRGB:J0.ONE},equation:{rgb:J0.MAX_EXT}}),(0,Na.Z)(zI,g1.min,{enable:!0,func:{srcRGB:J0.ONE,dstRGB:J0.ONE},equation:{rgb:J0.MIN_EXT}}),zI);function _I(i){return i.map(function(v){return typeof v=="string"&&(v=[v,{}]),v})}function JP(i,v,f,m){var d=i.multiPassRenderer,E=i.getLayerConfig(),M=E.enableTAA;return M?d.add(m("taa")):d.add(m("render")),_I(v).forEach(function(B){var J=(0,hu.Z)(B,2),ue=J[0],Ze=J[1];d.add(f(ue),Ze)}),d.add(f("copy")),d}var II=function(){function i(v){(0,Zr.Z)(this,i),this.layer=v}return(0,gt.Z)(i,[{key:"pickRender",value:function(f){var m=this.layer.getContainer(),d=m.get(cu.ILayerService),E=this.layer;if(E.tileLayer)return E.tileLayer.pickRender(f);E.hooks.beforePickingEncode.call(),d.renderTileLayerMask(E),E.renderModels({ispick:!0}),E.hooks.afterPickingEncode.call()}},{key:"pick",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){var M,B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(M=this.layer.getContainer(),B=M.get(cu.IPickingService),d.type!=="RasterLayer"){ue.next=4;break}return ue.abrupt("return",this.pickRasterLayer(d,E));case 4:return this.pickRender(E),ue.abrupt("return",B.pickFromPickingFBO(d,E));case 6:case"end":return ue.stop()}},m,this)}));function f(m,d){return v.apply(this,arguments)}return f}()},{key:"pickRasterLayer",value:function(f,m,d){var E=this.layer.getContainer(),M=E.get(cu.IPickingService),B=E.get(cu.IMapService),J=this.layer.getSource().extent,ue=XC(m.lngLat,J),Ze={x:m.x,y:m.y,type:m.type,lngLat:m.lngLat,target:m,rasterValue:null},st=d||f;if(ue){var Fr=this.readRasterValue(f,J,B,m.x,m.y);return Ze.rasterValue=Fr,M.triggerHoverOnLayer(st,Ze),!0}else return Ze.type=m.type==="mousemove"?"mouseout":"un"+m.type,M.triggerHoverOnLayer(st,(0,vn.Z)((0,vn.Z)({},Ze),{},{type:"unpick"})),M.triggerHoverOnLayer(st,Ze),!1}},{key:"readRasterValue",value:function(f,m,d,E,M){var B=f.getSource().data.dataArray[0],J=(0,hu.Z)(m,4),ue=J[0],Ze=ue===void 0?0:ue,st=J[1],Fr=st===void 0?0:st,Go=J[2],Ta=Go===void 0?10:Go,eu=J[3],kd=eu===void 0?-10:eu,em=d.lngLatToContainer([Ze,Fr]),B0=d.lngLatToContainer([Ta,kd]),vv=B0.x-em.x,y1=em.y-B0.y,fy=[(E-em.x)/vv,(M-B0.y)/y1],J1=B.width||1,ey=B.height||1,Fy=Math.floor(fy[0]*J1),C_=Math.floor(fy[1]*ey),yx=Math.max(0,C_-1)*J1+Fy,ux=B.data[yx];return ux}},{key:"selectFeature",value:function(f){var m=this.layer,d=(0,hu.Z)(f,3),E=d[0],M=d[1],B=d[2];m.hooks.beforeSelect.call([E,M,B])}},{key:"highlightPickedFeature",value:function(f){var m=(0,hu.Z)(f,3),d=m[0],E=m[1],M=m[2];this.layer.hooks.beforeHighlight.call([d,E,M])}},{key:"getFeatureById",value:function(f){return this.layer.getSource().getFeatureById(f)}}]),i}(),pP=function(){function i(v){(0,Zr.Z)(this,i),this.layer=v;var f=this.layer.getContainer();this.rendererService=f.get(cu.IRendererService)}return(0,gt.Z)(i,[{key:"getColorTexture",value:function(f,m){var d=this.getTextureKey(f,m);return this.key===d?this.colorTexture:(this.createColorTexture(f,m),this.key=d,this.colorTexture)}},{key:"createColorTexture",value:function(f,m){var d=this.rendererService.createTexture2D,E=this.getColorRampBar(f,m),M=d({data:new Uint8Array(E.data),width:E.width,height:E.height,flipY:!1,unorm:!0});return this.colorTexture=M,M}},{key:"setColorTexture",value:function(f,m,d){this.key=this.getTextureKey(m,d),this.colorTexture=f}},{key:"destroy",value:function(){var f;(f=this.colorTexture)===null||f===void 0||f.destroy()}},{key:"getColorRampBar",value:function(f,m){switch(f.type){case"cat":return u1(f);case"quantize":return Eg(f);case"custom":return a1(f,m);case"linear":return n0(f,m);default:return t0(f)}}},{key:"getTextureKey",value:function(f,m){var d;return"".concat(f.colors.join("_"),"_").concat(f==null||(d=f.positions)===null||d===void 0?void 0:d.join("_"),"_").concat(f.type,"_").concat(m==null?void 0:m.join("_"))}}]),i}(),e8=["passes"],EU=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption","pickingEnabled"],Z9,c7,H9;function TU(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=oZ(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function oZ(i,v){if(i){if(typeof i=="string")return G9(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return G9(i,v)}}function G9(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0&&arguments[0]!==void 0?arguments[0]:{};return(0,Zr.Z)(this,f),m=v.call(this),(0,Na.Z)((0,mv.Z)(m),"id","".concat(lZ++)),(0,Na.Z)((0,mv.Z)(m),"name","".concat(lZ)),(0,Na.Z)((0,mv.Z)(m),"visible",!0),(0,Na.Z)((0,mv.Z)(m),"zIndex",0),(0,Na.Z)((0,mv.Z)(m),"inited",!1),(0,Na.Z)((0,mv.Z)(m),"layerModelNeedUpdate",!1),(0,Na.Z)((0,mv.Z)(m),"pickedFeatureID",null),(0,Na.Z)((0,mv.Z)(m),"selectedFeatureID",null),(0,Na.Z)((0,mv.Z)(m),"styleNeedUpdate",!1),(0,Na.Z)((0,mv.Z)(m),"forceRender",!1),(0,Na.Z)((0,mv.Z)(m),"clusterZoom",0),(0,Na.Z)((0,mv.Z)(m),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,Na.Z)((0,mv.Z)(m),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,Na.Z)((0,mv.Z)(m),"hooks",{init:new D4,afterInit:new ER,beforeRender:new ER,beforeRenderData:new qe,afterRender:new aP,beforePickingEncode:new aP,afterPickingEncode:new aP,beforeHighlight:new aP(["pickedColor"]),afterHighlight:new aP,beforeSelect:new aP(["pickedColor"]),afterSelect:new aP,beforeDestroy:new aP,afterDestroy:new aP}),(0,Na.Z)((0,mv.Z)(m),"models",[]),(0,Na.Z)((0,mv.Z)(m),"startInit",!1),(0,Na.Z)((0,mv.Z)(m),"layerChildren",[]),(0,Na.Z)((0,mv.Z)(m),"masks",[]),ne((0,mv.Z)(m),"configService",H9,(0,mv.Z)(m)),(0,Na.Z)((0,mv.Z)(m),"animateOptions",{enable:!1}),(0,Na.Z)((0,mv.Z)(m),"currentPickId",null),(0,Na.Z)((0,mv.Z)(m),"encodeStyleAttribute",{}),(0,Na.Z)((0,mv.Z)(m),"enableShaderEncodeStyles",[]),(0,Na.Z)((0,mv.Z)(m),"enableDataEncodeStyles",[]),(0,Na.Z)((0,mv.Z)(m),"pendingStyleAttributes",[]),(0,Na.Z)((0,mv.Z)(m),"scaleOptions",{}),(0,Na.Z)((0,mv.Z)(m),"animateStatus",!1),(0,Na.Z)((0,mv.Z)(m),"isDestroyed",!1),(0,Na.Z)((0,mv.Z)(m),"uniformBuffers",[]),(0,Na.Z)((0,mv.Z)(m),"encodeDataLength",0),(0,Na.Z)((0,mv.Z)(m),"sourceEvent",function(){m.dataState.dataSourceNeedUpdate=!0;var E=m.getLayerConfig();E&&E.autoFit&&m.fitBounds(E.fitBoundsOptions);var M=m.layerSource.getSourceCfg().autoRender;M&&setTimeout(function(){m.reRender()},10)}),m.name=d.name||m.id,m.zIndex=d.zIndex||0,m.rawConfig=d,m}return(0,gt.Z)(f,[{key:"addMask",value:function(d){this.masks.push(d),this.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}},{key:"removeMask",value:function(d){var E=this.masks.indexOf(d);E>-1&&this.masks.splice(E,1),this.updateLayerConfig({maskLayers:this.masks})}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(d){this.masks.push(d)}},{key:"removeMaskLayer",value:function(d){var E=this.masks.indexOf(d);E>-1&&this.masks.splice(E,1),d.destroy()}},{key:"getAttribute",value:function(d){return this.styleAttributeService.getLayerStyleAttribute(d)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(d){var E=this;if(Object.keys(d).map(function(B){B in E.rawConfig&&(E.rawConfig[B]=d[B])}),!this.startInit)this.needUpdateConfig=(0,vn.Z)((0,vn.Z)({},this.needUpdateConfig),d);else{var M=this.container.get(cu.SceneID);this.configService.setLayerConfig(M,this.id,(0,vn.Z)((0,vn.Z)((0,vn.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),d)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(d,E){this.container=d,this.sceneContainer=E}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(d){return this.plugins.push(d),this}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M=this,B,J,ue,Ze,st,Fr,Go;return Pv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:B=this.container.get(cu.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(cu.IIconService),this.fontService=this.container.get(cu.IFontService),this.rendererService=this.container.get(cu.IRendererService),this.layerService=this.container.get(cu.ILayerService),this.debugService=this.container.get(cu.IDebugService),this.interactionService=this.container.get(cu.IInteractionService),this.pickingService=this.container.get(cu.IPickingService),this.mapService=this.container.get(cu.IMapService),J=this.getLayerConfig(),ue=J.enableMultiPassRenderer,Ze=J.passes,ue&&Ze!==null&&Ze!==void 0&&Ze.length&&Ze.length>0&&this.mapService.on("mapAfterFrameChange",function(){M.renderLayers()}),this.cameraService=this.container.get(cu.ICameraService),this.coordinateService=this.container.get(cu.ICoordinateSystemService),this.shaderModuleService=this.container.get(cu.IShaderModuleService),this.postProcessingPassFactory=this.container.get(cu.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(cu.IFactoryNormalPass),this.styleAttributeService=this.container.get(cu.IStyleAttributeService),ue&&(this.multiPassRenderer=this.container.get(cu.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(kd){var em=kd.attributeName,B0=kd.attributeField,vv=kd.attributeValues,y1=kd.updateOptions;M.styleAttributeService.updateStyleAttribute(em,{scale:(0,vn.Z)({field:B0},M.splitValuesAndCallbackInAttribute(vv,B0?void 0:M.getLayerConfig()[em]))},y1)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(cu.ILayerPlugin),st=TU(this.plugins);try{for(st.s();!(Fr=st.n()).done;)Go=Fr.value,Go.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(kd){st.e(kd)}finally{st.f()}return this.layerPickService=new II(this),this.textureService=new pP(this),this.log(XT.LayerInitStart),eu.next=31,this.hooks.init.promise();case 31:this.log(XT.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return eu.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"log",value:function(d){var E,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var B="".concat(this.id,".").concat(M,".").concat(d),J={id:this.id,type:this.type};(E=this.debugService)===null||E===void 0||E.log(B,J)}}},{key:"updateModelData",value:function(d){d.attributes&&d.elements?this.models.map(function(E){E.updateAttributesAndElements(d.attributes,d.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(d){this.layerPickService=d}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var d=this.getLayerConfig(),E=d.animateOption;E!=null&&E.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(d,E,M){return this.updateStyleAttribute("color",d,E,M),this}},{key:"texture",value:function(d,E,M){return this.updateStyleAttribute("texture",d,E,M),this}},{key:"rotate",value:function(d,E,M){return this.updateStyleAttribute("rotate",d,E,M),this}},{key:"size",value:function(d,E,M){return this.updateStyleAttribute("size",d,E,M),this}},{key:"filter",value:function(d,E,M){var B=this.updateStyleAttribute("filter",d,E,M);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"shape",value:function(d,E,M){this.shapeOption={field:d,values:E};var B=this.updateStyleAttribute("shape",d,E,M);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"label",value:function(d,E,M){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:d,attributeValues:E,updateOptions:M}),this}},{key:"animate",value:function(d){var E={};return $I(d)?(E.enable=!0,E=(0,vn.Z)((0,vn.Z)({},E),d)):E.enable=d,this.updateLayerConfig({animateOption:E}),this}},{key:"source",value:function(d,E){return(d==null?void 0:d.type)==="source"?(this.setSource(d),this):(this.sourceOption={data:d,options:E},this.clusterZoom=0,this)}},{key:"setData",value:function(d,E){var M=this;return this.inited?(this.log(XT.SourceInitStart,NC.UPDATE),this.layerSource.setData(d,E),this.log(XT.SourceInitEnd,NC.UPDATE)):this.on("inited",function(){M.log(XT.SourceInitStart,NC.UPDATE);var B=M.getSource();B?M.layerSource.setData(d,E):M.source(new Se(d,E)),M.layerSource.once("update",function(){M.log(XT.SourceInitEnd,NC.UPDATE)})}),this}},{key:"style",value:function(d){var E=this,M=d.passes,B=(0,q3.Z)(d,e8);M&&_I(M).forEach(function(ue){var Ze=E.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ue[0]);Ze&&Ze.updateOptions(ue[1])}),B.borderColor&&(B.stroke=B.borderColor),B.borderWidth&&(B.strokeWidth=B.borderWidth);var J=B;return Object.keys(B).forEach(function(ue){var Ze=B[ue];Array.isArray(Ze)&&Ze.length===2&&!K9(Ze[0])&&!K9(Ze[1])&&(J[ue]={field:Ze[0],value:Ze[1]})}),this.encodeStyle(J),this.updateLayerConfig(J),this}},{key:"encodeStyle",value:function(d){var E=this;Object.keys(d).forEach(function(M){[].concat((0,su.Z)(E.enableShaderEncodeStyles),(0,su.Z)(E.enableDataEncodeStyles)).includes(M)&&sZ(d[M])&&(d[M].field||d[M].value)&&!W5(E.encodeStyleAttribute[M],d[M])?(E.encodeStyleAttribute[M]=d[M],E.updateStyleAttribute(M,d[M].field,d[M].value),E.inited&&(E.dataState.dataMappingNeedUpdate=!0)):E.encodeStyleAttribute[M]&&(delete E.encodeStyleAttribute[M],E.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(d,E){var M=(0,vn.Z)({},this.scaleOptions);if($I(d)?this.scaleOptions=(0,vn.Z)((0,vn.Z)({},this.scaleOptions),d):this.scaleOptions[d]=E,this.styleAttributeService&&!W5(M,this.scaleOptions)){var B=$I(d)?d:(0,Na.Z)({},d,E);this.styleAttributeService.updateScaleAttribute(B)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"prerender",value:function(){}},{key:"render",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(d),this))}},{key:"renderMultiPass",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){B.next=2;break}return B.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){B.next=7;break}return B.next=5,this.multiPassRenderer.render();case 5:B.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"active",value:function(d){var E={};return E.enableHighlight=$I(d)?!0:d,$I(d)?(E.enableHighlight=!0,d.color&&(E.highlightColor=d.color),d.mix&&(E.activeMix=d.mix)):E.enableHighlight=!!d,this.updateLayerConfig(E),this}},{key:"setActive",value:function(d,E){var M=this;if($I(d)){var B=d.x,J=B===void 0?0:B,ue=d.y,Ze=ue===void 0?0:ue;this.updateLayerConfig({highlightColor:$I(E)?E.color:this.getLayerConfig().highlightColor,activeMix:$I(E)?E.mix:this.getLayerConfig().activeMix}),this.pick({x:J,y:Ze})}else this.updateLayerConfig({pickedFeatureID:d,highlightColor:$I(E)?E.color:this.getLayerConfig().highlightColor,activeMix:$I(E)?E.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(nv(d)).then(function(){setTimeout(function(){M.reRender()},1)})}},{key:"select",value:function(d){var E={};return E.enableSelect=$I(d)?!0:d,$I(d)?(E.enableSelect=!0,d.color&&(E.selectColor=d.color),d.mix&&(E.selectMix=d.mix)):E.enableSelect=!!d,this.updateLayerConfig(E),this}},{key:"setSelect",value:function(d,E){var M=this;if($I(d)){var B=d.x,J=B===void 0?0:B,ue=d.y,Ze=ue===void 0?0:ue;this.updateLayerConfig({selectColor:$I(E)?E.color:this.getLayerConfig().selectColor,selectMix:$I(E)?E.mix:this.getLayerConfig().selectMix}),this.pick({x:J,y:Ze})}else this.updateLayerConfig({pickedFeatureID:d,selectColor:$I(E)?E.color:this.getLayerConfig().selectColor,selectMix:$I(E)?E.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(nv(d)).then(function(){setTimeout(function(){M.reRender()},1)})}},{key:"setBlend",value:function(d){return this.updateLayerConfig({blend:d}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(d){return this.zIndex=d,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(d){this.currentPickId=d}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(d){this.selectedFeatureID=d}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var d=this.mapService.getZoom(),E=this.getLayerConfig(),M=E.visible,B=E.minZoom,J=B===void 0?-1/0:B,ue=E.maxZoom,Ze=ue===void 0?1/0:ue;return!!M&&d>=J&&d0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(d=this.layerModel)===null||d===void 0||d.uniformBuffers.forEach(function(Fr){Fr.destroy()}),this.layerChildren.map(function(Fr){return Fr.destroy(!1)}),this.layerChildren=[];var Ze=this.getLayerConfig(),st=Ze.maskfence;st&&(this.masks.map(function(Fr){return Fr.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(E=this.multiPassRenderer)===null||E===void 0||E.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(M=this.layerModel)===null||M===void 0||M.clearModels(ue),(B=this.tileLayer)===null||B===void 0||B.destroy(),this.models=[],(J=this.debugService)===null||J===void 0||J.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var d;this.models.forEach(function(E){return E.destroy()}),(d=this.layerModel)===null||d===void 0||d.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(d){return d.needRescale||d.needRemapping||d.needRegenerateVertices}).length}},{key:"setSource",value:function(d){var E=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=d,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var M=this.mapService.getZoom();this.layerSource.updateClusterData(M)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(B){var J=B.type;if(E.coordCenter===void 0){var ue,Ze=E.layerSource.center;E.coordCenter=Ze,(ue=E.mapService)!==null&&ue!==void 0&&ue.setCoordCenter&&E.mapService.setCoordCenter(Ze)}if(J==="update"){if(E.tileLayer){E.tileLayer.reload();return}E.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(d){this.encodedData=d,this.encodeDataLength=d.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(d){return this.styleAttributeService.getLayerAttributeScale(d)}},{key:"getLegend",value:function(d){var E,M,B,J=this.styleAttributeService.getLayerStyleAttribute(d),ue=(J==null||(E=J.scale)===null||E===void 0?void 0:E.scalers)||[];return{type:(M=ue[0].option)===null||M===void 0?void 0:M.type,field:J==null||(B=J.scale)===null||B===void 0?void 0:B.field,items:this.getLegendItems(d)}}},{key:"getLegendItems",value:function(d){var E=this.styleAttributeService.getLayerAttributeScale(d);if(!E)return[];if(E.invertExtent){var M=E.range().map(function(ue){return(0,Na.Z)({value:E.invertExtent(ue)},d,ue)});return M}else if(E.ticks){var B=E.ticks().map(function(ue){return(0,Na.Z)({value:ue},d,E(ue))});return B}else if(E!=null&&E.domain){var J=E.domain().filter(function(ue){return!aZ(ue)}).map(function(ue){return(0,Na.Z)({value:ue},d,E(ue))});return J}return[]}},{key:"pick",value:function(d){var E=d.x,M=d.y;this.interactionService.triggerHover({x:E,y:M})}},{key:"boxSelect",value:function(d,E){this.pickingService.boxPickLayer(this,d,E)}},{key:"buildLayerModel",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){var B=this,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1,fy;return Pv().wrap(function(ey){for(;;)switch(ey.prev=ey.next){case 0:return J=M.moduleName,ue=M.vertexShader,Ze=M.fragmentShader,st=M.inject,Fr=M.triangulation,Go=M.styleOption,Ta=M.pickingEnabled,eu=Ta===void 0?!0:Ta,kd=(0,q3.Z)(M,EU),this.shaderModuleService.registerModule(J,{vs:ue,fs:Ze,inject:st}),em=this.shaderModuleService.getModule(J),B0=em.vs,vv=em.fs,y1=em.uniforms,fy=this.rendererService.createModel,ey.abrupt("return",new Promise(function(Fy){var C_=B.styleAttributeService.createAttributesAndIndices(B.encodedData,Fr,Go),yx=C_.attributes,ux=C_.elements,h2=C_.count,V2=[].concat((0,su.Z)(B.layerModel.uniformBuffers),(0,su.Z)(B.rendererService.uniformBuffers),[B.getLayerUniformBuffer()]);eu&&V2.push(B.getPickingUniformBuffer());var aw=(0,vn.Z)({attributes:yx,uniforms:y1,fs:vv,vs:B0,elements:ux,blend:MA[g1.normal],uniformBuffers:V2,textures:B.layerModel.textures},kd);h2&&(aw.count=h2);var XE=fy(aw);Fy(XE)}));case 5:case"end":return ey.stop()}},E,this)}));function d(E){return m.apply(this,arguments)}return d}()},{key:"createAttributes",value:function(d){var E=d.triangulation,M=this.styleAttributeService.createAttributes(this.encodedData,E),B=M.attributes;return B}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(d){var E=this.getLayerConfig(),M=E.enableHighlight,B=M===void 0?!0:M,J=E.enableSelect,ue=J===void 0?!0:J,Ze=this.eventNames().indexOf(d)!==-1||this.eventNames().indexOf("un"+d)!==-1;return(d==="click"||d==="dblclick")&&ue&&(Ze=!0),d==="mousemove"&&(B||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Ze=!0),this.isVisible()&&Ze}},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return B.stop()}},E)}));function d(){return m.apply(this,arguments)}return d}()},{key:"rebuildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.buildModels();case 2:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"renderMulPass",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,M.render();case 2:case"end":return J.stop()}},E)}));function d(E){return m.apply(this,arguments)}return d}()},{key:"renderModels",value:function(){var d=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(M){M.draw({uniforms:d.layerModel.getUninforms(),blend:d.layerModel.getBlend(),stencil:d.layerModel.getStencil(E),textures:d.layerModel.textures},(E==null?void 0:E.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(d,E,M,B){var J=this.configService.getAttributeConfig(this.id)||{};return W5(J[d],{field:E,values:M})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(d)!==-1&&this.configService.setAttributeConfig(this.id,(0,Na.Z)({},d,{field:E,values:M})),this.startInit?this.styleAttributeService.updateStyleAttribute(d,{scale:(0,vn.Z)({field:E},this.splitValuesAndCallbackInAttribute(M,this.getLayerConfig()[E]))},B):this.pendingStyleAttributes.push({attributeName:d,attributeField:E,attributeValues:M,updateOptions:B}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(d){console.warn("empty fn")}},{key:"processData",value:function(d){return d}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return this.models.forEach(function(Ze){return Ze.destroy()}),this.models=[],this.uniformBuffers.forEach(function(Ze){Ze.destroy()}),this.uniformBuffers=[],M=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(M),B=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(B),ue.next=10,this.layerModel.initModels();case 10:this.models=ue.sent;case 11:case"end":return ue.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getLayerUniformBuffer",value:function(){return this.uniformBuffers[0]}},{key:"getPickingUniformBuffer",value:function(){return this.uniformBuffers[1]}},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(d){return{values:lN(d)?void 0:d,callback:lN(d)?d:void 0}}}]),f}(O2.EventEmitter),H9=H(c7.prototype,"configService",[Z9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c7);function AU(i,v){return{enable:i,mask:255,func:{cmp:J0.EQUAL,ref:v?1:0,mask:1}}}function DU(i){return i.maskOperation===hS.OR?{enable:!0,mask:255,func:{cmp:J0.ALWAYS,ref:1,mask:255},opFront:{fail:J0.KEEP,zfail:J0.REPLACE,zpass:J0.REPLACE}}:{enable:!0,mask:255,func:{cmp:i.stencilType===z_.SINGLE||i.stencilIndex===0?J0.ALWAYS:J0.LESS,ref:i.stencilType===z_.SINGLE?1:i.stencilIndex===0?2:1,mask:255},opFront:{fail:J0.KEEP,zfail:J0.REPLACE,zpass:J0.REPLACE}}}var aE=function(i){return i[i.POSITION=0]="POSITION",i[i.COLOR=1]="COLOR",i[i.VERTEX_ID=2]="VERTEX_ID",i[i.PICKING_COLOR=3]="PICKING_COLOR",i[i.STROKE=4]="STROKE",i[i.OPACITY=5]="OPACITY",i[i.OFFSETS=6]="OFFSETS",i[i.ROTATION=7]="ROTATION",i[i.EXTRUSION_BASE=8]="EXTRUSION_BASE",i[i.SIZE=9]="SIZE",i[i.SHAPE=10]="SHAPE",i[i.EXTRUDE=11]="EXTRUDE",i[i.MAX=12]="MAX",i[i.NORMAL=13]="NORMAL",i[i.UV=14]="UV",i[i.LINEAR=15]="LINEAR",i}({});function oy(i){switch(i){case"rotation":return{name:"Rotation",type:pS.Attribute,descriptor:{name:"a_Rotation",shaderLocation:aE.ROTATION,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(f){var m=f.rotation,d=m===void 0?0:m;return Array.isArray(d)?[d[0]]:[d]}}};case"stroke":return{name:"stroke",type:pS.Attribute,descriptor:{name:"a_Stroke",shaderLocation:aE.STROKE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:4,update:function(f){var m=f.stroke,d=m===void 0?[1,1,1,1]:m;return d}}};case"opacity":return{name:"opacity",type:pS.Attribute,descriptor:{name:"a_Opacity",shaderLocation:aE.OPACITY,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(f){var m=f.opacity,d=m===void 0?1:m;return[d]}}};case"extrusionBase":return{name:"extrusionBase",type:pS.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:aE.EXTRUSION_BASE,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(f){var m=f.extrusionBase,d=m===void 0?0:m;return[d]}}};case"offsets":return{name:"offsets",type:pS.Attribute,descriptor:{name:"a_Offsets",shaderLocation:aE.OFFSETS,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:2,update:function(f){var m=f.offsets;return m}}};case"thetaOffset":return{name:"thetaOffset",type:pS.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:15,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(f){var m=f.thetaOffset,d=m===void 0?1:m;return[d]}}};default:return}}var P_={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},Xy={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function d_(i){var v="";return Object.keys(i).forEach(function(f){var m=i[f];Array.isArray(m)?v+="vec".concat(m.length," ").concat(f,`; -`):v+="flot ".concat(f,`; -`)}),v}function L_(i){return Math.max(Math.ceil(i/4)*4,4)}var O_,B2,Hw,X2={opacity:aE.OPACITY,stroke:aE.STROKE,offsets:aE.OFFSETS,rotation:aE.ROTATION,extrusionBase:aE.EXTRUSION_BASE,thetaOffset:15},Xx=(O_=dP(cu.IGlobalConfigService),B2=function(){function i(v){(0,Zr.Z)(this,i),(0,Na.Z)(this,"uniformBuffers",[]),(0,Na.Z)(this,"textures",[]),(0,Na.Z)(this,"preStyleAttribute",{}),(0,Na.Z)(this,"encodeStyleAttribute",{}),ne(this,"configService",Hw,this),this.layer=v,this.rendererService=v.getContainer().get(cu.IRendererService),this.pickingService=v.getContainer().get(cu.IPickingService),this.shaderModuleService=v.getContainer().get(cu.IShaderModuleService),this.styleAttributeService=v.getContainer().get(cu.IStyleAttributeService),this.mapService=v.getContainer().get(cu.IMapService),this.iconService=v.getContainer().get(cu.IIconService),this.fontService=v.getContainer().get(cu.IFontService),this.cameraService=v.getContainer().get(cu.ICameraService),this.layerService=v.getContainer().get(cu.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var f=this.rendererService.createTexture2D;this.createTexture2D=f}return(0,gt.Z)(i,[{key:"getBlend",value:function(){var f=this.layer.getLayerConfig(),m=f.blend,d=m===void 0?"normal":m;return MA[g1[d]]}},{key:"getStencil",value:function(f){var m=this.layer.getLayerConfig(),d=m.mask,E=d===void 0?!1:d,M=m.maskInside,B=M===void 0?!0:M,J=m.enableMask,ue=m.maskOperation,Ze=ue===void 0?hS.AND:ue;if(this.layer.type==="MaskLayer")return DU({isStencil:!0,stencilType:z_.SINGLE});if(f.isStencil)return DU((0,vn.Z)((0,vn.Z)({},f),{},{maskOperation:Ze}));var st=E||J&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return AU(st,B)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){var f=this.getCommonUniformsInfo(),m=this.getUniformsBufferInfo(this.getStyleAttribute());this.updateStyleUnifoms();var d=(0,vn.Z)((0,vn.Z)({},m.uniformsOption),f.uniformsOption);return!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(d.u_texture=this.textures[0]),d}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){return Pv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",!1);case 1:case"end":return E.stop()}},m)}));function f(){return v.apply(this,arguments)}return f}()},{key:"buildModels",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){return Pv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return E.stop()}},m)}));function f(){return v.apply(this,arguments)}return f}()},{key:"initModels",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){return Pv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return E.stop()}},m)}));function f(){return v.apply(this,arguments)}return f}()},{key:"clearModels",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"prerender",value:function(){}},{key:"render",value:function(f){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(f){return[f.enable?0:1,f.duration||4,f.interval||.2,f.trailLength||.1]}},{key:"startModelAnimate",value:function(){var f=this.layer.getLayerConfig(),m=f.animateOption;m.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var f=this.layer.encodeStyleAttribute,m="",d=[];this.layer.enableShaderEncodeStyles.forEach(function(B){f[B]?m+="#define USE_ATTRIBUTE_".concat(B.toUpperCase(),` 0.0; - -`):d.push(" ".concat(Xy[B]," u_").concat(B,";"));var J=X2[B];!J&&B==="THETA_OFFSET"&&(J=15),m+=` - #ifdef USE_ATTRIBUTE_`.concat(B.toUpperCase(),` - layout(location = `).concat(X2[B],") in ").concat(Xy[B]," a_").concat(B.charAt(0).toUpperCase()+B.slice(1),`; +}`;function WS(i,d){for(var l=0,c=1/d,a=i;a>0;)l=l+c*(a%d),a=Math.floor(a/d),c=c/d;return l}var K3=1,TC=(o1=(0,xr.b2)(),O0=(0,xr.f3)(In.IShaderModuleService),o1(Rw=(VS=function(i){(0,ze.Z)(l,i);var d=G3(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y=1&&(V(this.copyRenderTarget,function(){p.outputModel.draw({uniforms:{u_Texture:p.outputRenderTarget}})}),V(a.multiPassRenderer.getPostProcessor().getReadFBO(),function(){p.copyModel.draw({uniforms:{u_Texture:p.copyRenderTarget}})}),a.multiPassRenderer.getPostProcessor().render(a));var Si=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=Si,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(a,p,y){this.shaderModuleService.registerModule(a,{vs:Y0,fs:p});var w=this.shaderModuleService.getModule(a),O=w.vs,V=w.fs,he=w.uniforms,be=this.rendererService,ut=be.createAttribute,Pt=be.createBuffer,qt=be.createModel;return qt((0,Xe.Z)({vs:O,fs:V,attributes:{a_Position:ut({buffer:Pt({data:[-4,-4,4,-4,0,4],type:Fi.FLOAT}),size:2})},uniforms:(0,Xe.Z)({},he),depth:{enable:!1},count:3},y))}}]),l}(s0),$S=I(VS.prototype,"shaderModuleService",[O0],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),VS))||Rw),Hy=new xr.W2;Hy.bind(In.IGlobalConfigService).to(Sp).inSingletonScope(),(0,xr.GW)((0,xr.b2)(),Ic.EventEmitter),Hy.bind(In.IEventEmitter).to(Ic.EventEmitter);var ZS=(0,Hn.Z)(Hy,!1),a_=function(d){var l=ZS.lazyInject(d);return function(c,a,p){l.call(this,c,a),p&&(p.initializer=function(){return c[a]})}},jS=function(d){var l=ZS.lazyMultiInject(d);return function(c,a,p){l.call(this,c,a),p&&(p.initializer=function(){return c[a]})}},zv=Hy,FA=0;function HS(){var i=new xr.W2;return i.parent=Hy,i.bind(In.SceneID).toConstantValue("".concat(FA++)),i.bind(In.IShaderModuleService).to(h0).inSingletonScope(),i.bind(In.ILayerService).to(pC).inSingletonScope(),i.bind(In.IDebugService).to(Xv).inSingletonScope(),i.bind(In.ISceneService).to(yn).inSingletonScope(),i.bind(In.ICameraService).to(Ys).inSingletonScope(),i.bind(In.ICoordinateSystemService).to(Vm).inSingletonScope(),i.bind(In.IInteractionService).to(fv).inSingletonScope(),i.bind(In.IPickingService).to(d1).inSingletonScope(),i.bind(In.IControlService).to(Uh).inSingletonScope(),i.bind(In.IMarkerService).to(bp).inSingletonScope(),i.bind(In.IIconService).to(qp).inSingletonScope(),i.bind(In.IFontService).to(nf).inSingletonScope(),i.bind(In.IPopupService).to(rf).inSingletonScope(),i.bind(In.INormalPass).to(C2).whenTargetNamed("clear"),i.bind(In.INormalPass).to(vA).whenTargetNamed("pixelPicking"),i.bind(In.INormalPass).to(Pw).whenTargetNamed("render"),i.bind(In.INormalPass).to(TC).whenTargetNamed("taa"),i.bind(In.IFactoryNormalPass).toFactory(function(d){return function(l){return d.container.getNamed(In.INormalPass,l)}}),i.bind(In.IPostProcessingPass).to(w4).whenTargetNamed("copy"),i.bind(In.IPostProcessingPass).to(O3).whenTargetNamed("bloom"),i.bind(In.IPostProcessingPass).to(Ty).whenTargetNamed("blurH"),i.bind(In.IPostProcessingPass).to(B3).whenTargetNamed("blurV"),i.bind(In.IPostProcessingPass).to(T4).whenTargetNamed("noise"),i.bind(In.IPostProcessingPass).to(jy).whenTargetNamed("sepia"),i.bind(In.IPostProcessingPass).to(b4).whenTargetNamed("colorHalftone"),i.bind(In.IPostProcessingPass).to(DA).whenTargetNamed("hexagonalPixelate"),i.bind(In.IPostProcessingPass).to(I2).whenTargetNamed("ink"),i.bind(In.IFactoryPostProcessingPass).toFactory(function(d){return function(l){var c=d.container.getNamed(In.IPostProcessingPass,l);return c.setName(l),c}}),i}function Cb(i){var d=new xr.W2;return d.parent=i,d.bind(In.IStyleAttributeService).to(Ix).inSingletonScope(),d.bind(In.IMultiPassRenderer).to(OS).inSingletonScope(),d.bind(In.IPostProcessor).to(j3).inSingletonScope(),d}var P2=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function q0(i){return P2.indexOf(i)}var E0=ks.clamp,Rm=2,P1=4,GS=64,l_=128,DC=256,BA=512,H_=8192,IC=16384,D4=32768,X3=null,G_=131072,KS=262144,I4=524288,oy=1048576,bP=2097152,L4=4194304,kw=8388608,M4=16777216,P4=null;function Ow(i,d){return i=E0(Math.floor(i),0,255),d=E0(Math.floor(d),0,255),256*i+d}function Y3(i){var d=i.color,l=i.radius,c=i.tileX,a=i.tileY,p=i.shape,y=i.opacity,w=i.stroke,O=i.strokeWidth,V=i.strokeOpacity,he=[],be=[],ut=[],Pt=[Ow(d[0],d[1]),Ow(d[2],d[3])],qt=[Ow(w[0],w[1]),Ow(w[2],w[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(En){var qn=(0,zn.Z)(En,2),Zr=qn[0],Si=qn[1];he.push([].concat(Pt,[(Zr+1)*kw+(Si+1)*bP+q0(p)*G_+l,(c+512)*I4+(a+512)*GS])),be.push([].concat(qt,[O,V])),ut.push([y,0,0,0])}),{packedBuffer:he,packedBuffer2:be,packedBuffer3:ut}}function zA(i,d){if(i===0&&!d)return 0;if(i===1&&d)return 4294967295;var l=d?1:0,c=Math.floor(i*127);return c*P4+l*M4+c*G_+l*X3+c*BA+l*DC+c*Rm+l}var wb={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Wg={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},N0=function(i){return i.LINEAR="linear",i.SEQUENTIAL="sequential",i.POWER="power",i.LOG="log",i.IDENTITY="identity",i.TIME="time",i.QUANTILE="quantile",i.QUANTIZE="quantize",i.THRESHOLD="threshold",i.CAT="cat",i.DIVERGING="diverging",i.CUSTOM="threshold",i}({}),zx=function(i){return i.CONSTANT="constant",i.VARIABLE="variable",i}({}),lf=function(i){return i[i.Attribute=0]="Attribute",i[i.InstancedAttribute=1]="InstancedAttribute",i[i.Uniform=2]="Uniform",i}({}),R1=["mapload","mapchange","mapAfterFrameChange"],LC=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],nv=function(i){return i.IMAGE="image",i.CUSTOMIMAGE="customImage",i.ARRAYBUFFER="arraybuffer",i.RGB="rgb",i.TERRAINRGB="terrainRGB",i.CUSTOMRGB="customRGB",i.CUSTOMARRAYBUFFER="customArrayBuffer",i.CUSTOMTERRAINRGB="customTerrainRGB",i}({}),R4=function(){var i=(0,al.Z)(mo().mark(function d(l,c,a,p){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(O,V){c({x:l.x,y:l.y,z:l.z},function(he,be){if(he||be.length===0){V(he);return}be&&we([{data:be,bands:[0]}],a,p,function(ut,Pt){ut?V(ut):Pt&&O(Pt)})})}));case 1:case"end":return w.stop()}},d)}));return function(l,c,a,p){return i.apply(this,arguments)}}(),Dy=function(){var i=(0,al.Z)(mo().mark(function d(l,c){return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(y,w){c({x:l.x,y:l.y,z:l.z},function(O,V){if(O||!V){w(O);return}V instanceof ArrayBuffer?Bi(V,function(he,be){he&&w(he),y(be)}):V instanceof HTMLImageElement?y(V):w(O)})}));case 1:case"end":return p.stop()}},d)}));return function(l,c){return i.apply(this,arguments)}}();function k4(i,d){return Array.isArray(i)?typeof i[0]=="string"?i.map(function(l){return Hd(l,d)}):i.map(function(l){return{url:Hd(l.url,d),bands:l.bands||[0]}}):Hd(i,d)}function R2(i){return typeof i=="string"?[{url:i,bands:[0]}]:typeof i[0]=="string"?i.map(function(d){return{url:d,bands:[0]}}):i}function vm(i,d){i.xhrCancel=function(){d.map(function(l){l.abort()})}}var q3=function(){var i=(0,al.Z)(mo().mark(function d(l,c,a,p,y){var w,O,V,he,be,ut;return mo().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:if(w=R2(c.url),!(w.length>1)){qt.next=15;break}return qt.next=4,XS(w,c);case 4:if(O=qt.sent,V=O.rasterFiles,he=O.xhrList,be=O.errList,vm(l,he),!(be.length>0)){qt.next=12;break}return a(be,null),qt.abrupt("return");case 12:we(V,p,y,a),qt.next=17;break;case 15:ut=ai(c,function(En,qn){if(En)a(En);else if(qn){var Zr=[{data:qn,bands:w[0].bands}];we(Zr,p,y,a)}}),vm(l,[ut]);case 17:case"end":return qt.stop()}},d)}));return function(l,c,a,p,y){return i.apply(this,arguments)}}();function XS(i,d){return Nw.apply(this,arguments)}function Nw(){return Nw=(0,al.Z)(mo().mark(function i(d,l){var c,a,p,y,w,O,V,he,be,ut,Pt;return mo().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:c=[],a=[],p=[],y=0;case 4:if(!(y1&&arguments[1]!==void 0?arguments[1]:{};if(ym(i))throw new Error("tile server url is error");var l=(d==null?void 0:d.dataType)||nv.IMAGE;l===nv.RGB&&(l=nv.ARRAYBUFFER);var c=function(y,w){switch(l){case nv.IMAGE:return UA(i,y,w,d);case nv.CUSTOMIMAGE:case nv.CUSTOMTERRAINRGB:return Dy(w,d==null?void 0:d.getCustomData);case nv.ARRAYBUFFER:return J3(i,y,w,(d==null?void 0:d.format)||VA,d==null?void 0:d.operation);case nv.CUSTOMARRAYBUFFER:case nv.CUSTOMRGB:return R4(w,d==null?void 0:d.getCustomData,(d==null?void 0:d.format)||VA,d==null?void 0:d.operation);default:return UA(i,y,w,d)}},a=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Sb),d),{},{getTileData:c});return{data:i,dataArray:[],tilesetOptions:a,isTile:!0}}var w1=["extent","min","max","width","height","format","operation"];function Ux(i,d){var l=d.extent,c=d.min,a=d.max,p=d.width,y=d.height,w=d.format,O=d.operation,V=(0,W0.Z)(d,w1),he;if(w===void 0||Ir(i))he=Array.from(i);else{var be=Array.isArray(i)?i:[i];he=jh(be,w,O)}var ut={_id:1,dataArray:[(0,Xe.Z)((0,Xe.Z)({_id:1,data:he,width:p,height:y},V),{},{min:c,max:a,coordinates:[[l[0],l[1]],[l[2],l[3]]]})]};return ut}var qS={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},$A=function(){var i=(0,al.Z)(mo().mark(function d(l){return mo().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(p){var y=(0,zn.Z)(l.bounds,4),w=y[0],O=y[1],V=y[2],he=y[3],be={layers:{testTile:{features:[{type:"Feature",properties:{key:l.x+"/"+l.y+"/"+l.z,x:(w+V)/2,y:(O+he)/2},geometry:{type:"LineString",coordinates:[[V,he],[V,O],[w,O],[w,O]]}}]}}};p(be)}));case 1:case"end":return a.stop()}},d)}));return function(l){return i.apply(this,arguments)}}();function WA(i,d){var l=function(p){return $A(p)},c=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},qS),d),{},{getTileData:l});return{data:i,dataArray:[],tilesetOptions:c,isTile:!0}}var JS=["extent","width","height"];function ZA(i,d){var l=d.extent,c=d.width,a=d.height,p=(0,W0.Z)(d,JS);i.length<3&&console.warn("RGB\u89E3\u6790\u9700\u8981\u4E09\u4E2A\u6CE2\u6BB5\u7684\u6570\u636E");for(var y=p.bands||[0,1,2],w=(0,zn.Z)(y,3),O=w[0],V=w[1],he=w[2],be=[i[O],i[V],i[he]],ut=[],Pt=(p==null?void 0:p.countCut)||[2,98],qt=(0,zn.Z)(Pt,2),En=qt[0],qn=qt[1],Zr=(p==null?void 0:p.RMinMax)||_c(be[0],En,qn),Si=(p==null?void 0:p.GMinMax)||_c(be[1],En,qn),to=(p==null?void 0:p.BMinMax)||_c(be[2],En,qn),ts=0;tsd&&(d=i[l]);return d}function eE(i){if(i.length===0)throw new Error("min requires at least one data point");for(var d=i[0],l=1;l=Math.abs(i[a])?l+=d-c+i[a]:l+=i[a]-c+d,d=c;return d+l*1}function tD(i){if(i.length===0)throw new Error("mean requires at least one data point");return eD(i)/i.length}var MC={min:eE,max:k2,mean:tD,sum:eD};function HA(i){var d=nD();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function nD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var GA=ks.cloneDeep,Vx=ks.isFunction,Iy=ks.isString,rD=ks.mergeWith;function O4(i,d){if(Array.isArray(d))return d}var O2=function(i){(0,ze.Z)(l,i);var d=HA(l);function l(c,a){var p;return(0,vt.Z)(this,l),p=d.call(this),(0,pn.Z)((0,eo.Z)(p),"type","source"),(0,pn.Z)((0,eo.Z)(p),"isTile",!1),(0,pn.Z)((0,eo.Z)(p),"inited",!1),(0,pn.Z)((0,eo.Z)(p),"hooks",{init:new r_}),(0,pn.Z)((0,eo.Z)(p),"parser",{type:"geojson"}),(0,pn.Z)((0,eo.Z)(p),"transforms",[]),(0,pn.Z)((0,eo.Z)(p),"cluster",!1),(0,pn.Z)((0,eo.Z)(p),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,pn.Z)((0,eo.Z)(p),"invalidExtent",!1),(0,pn.Z)((0,eo.Z)(p),"dataArrayChanged",!1),(0,pn.Z)((0,eo.Z)(p),"cfg",{autoRender:!0}),p.originData=c,p.initCfg(a),p.init().then(function(){p.inited=!0,p.emit("update",{type:"inited"})}),p}return(0,Te.Z)(l,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(a){return this.clusterIndex.getClusters(this.caculClusterExtent(2),a)}},{key:"getClustersLeaves",value:function(a){return this.clusterIndex.getLeaves(a,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(a){var p=this,y=this.clusterOptions,w=y.method,O=w===void 0?"sum":w,V=y.field,he=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(a));this.clusterOptions.zoom=a,he.forEach(function(be){be.id||(be.properties.point_count=1)}),(V||Vx(O))&&(he=he.map(function(be){var ut=be.id;if(ut){var Pt=p.clusterIndex.getLeaves(ut,1/0),qt=Pt.map(function(Zr){return Zr.properties}),En;if(Iy(O)&&V){var qn=Cr(qt,V);En=MC[O](qn)}Vx(O)&&(En=O(qt)),be.properties.stat=En}else be.properties.point_count=1;return be})),this.data=Y("geojson")({type:"FeatureCollection",features:he}),this.executeTrans()}},{key:"getFeatureById",value:function(a){var p=this.parser,y=p.type,w=y===void 0?"geojson":y,O=p.geometry;if(w==="geojson"&&!this.cluster){var V=a=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function KA(i,d){if(i){if(typeof i=="string")return oD(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return oD(i,d)}}function oD(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lc?a:c)}}catch(to){p.e(to)}finally{p.f()}var O=(l+c)/2,V=XA(d,O);if(V.xOffset<=0||V.yOffset<=0)return{gridHash:{},gridOffset:V};var he={},be=tE(i),ut;try{for(be.s();!(ut=be.n()).done;){var Pt=ut.value,qt=Pt.coordinates[1],En=Pt.coordinates[0];if(Number.isFinite(qt)&&Number.isFinite(En)){var qn=Math.floor((qt+90)/V.yOffset),Zr=Math.floor((En+180)/V.xOffset),Si="".concat(qn,"-").concat(Zr);he[Si]=he[Si]||{count:0,points:[]},he[Si].count+=1,he[Si].points.push(Pt)}}}catch(to){be.e(to)}finally{be.f()}return{gridHash:he,gridOffset:V}}function XA(i,d){var l=N4(i),c=YA(d,i);return{yOffset:l,xOffset:c}}function N4(i){return i/nE*(180/Math.PI)}function YA(i,d){return d/nE*(180/Math.PI)/Math.cos(i*Math.PI/180)}function iE(i,d,l){return Object.keys(i).reduce(function(c,a,p){var y=a.split("-"),w=parseInt(y[0],10),O=parseInt(y[1],10),V={};if(l.field&&l.method){var he=wd(i[a].points,l.field);V[l.method]=lh[l.method](he)}return Object.assign(V,{_id:p,coordinates:Rd([-180+d.xOffset*(O+.5),-90+d.yOffset*(w+.5)]),rawData:i[a].points,count:i[a].count}),c.push(V),c},[])}var $x=Math.PI/3,sD=[0,$x,2*$x,3*$x,4*$x,5*$x];function N2(i){return i[0]}function F4(i){return i[1]}function B4(){var i=0,d=0,l=1,c=1,a=N2,p=F4,y,w,O;function V(be){var ut={},Pt=[],qt,En=be.length;for(qt=0;qt1){var Fs=Zr-ts,Us=ts+(Zrdl*dl+fu*fu&&(ts=Us+(to&1?1:-1)/2,to=Sa)}var iu=ts+"-"+to,ic=ut[iu];ic?ic.push(qn):(Pt.push(ic=ut[iu]=[qn]),ic.x=(ts+(to&1)/2)*w,ic.y=to*O)}return Pt}function he(be){var ut=0,Pt=0;return sD.map(function(qt){var En=Math.sin(qt)*be,qn=-Math.cos(qt)*be,Zr=En-ut,Si=qn-Pt;return ut=En,Pt=qn,[Zr,Si]})}return V.hexagon=function(be){return"m"+he(be==null?y:+be).join("l")+"z"},V.centers=function(){for(var be=[],ut=Math.round(d/O),Pt=Math.round(i/w),qt=ut*O;qt180||Math.abs(qt[1][0])>180){if(Si.x>Pt){var to=this.mapsService.lngLatToContainer([V-360,he]);Si.x=to.x}if(Si.x<0){var ts=this.mapsService.lngLatToContainer([V+360,he]);Si.x=ts.x}}(Si.x>Pt||Si.x<0||Si.y>ut||Si.y<0)&&(y.style.display="none"),y.style.left=Si.x+"px",y.style.top=Si.y+"px",console.log(Si),y.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)"}}}},{key:"onMapClick",value:function(a){var p=this.markerOption.element;this.popup&&p&&this.togglePopup()}},{key:"getCurrentContainerSize",value:function(){var a=this.mapsService.getContainer();return{containerHeight:(a==null?void 0:a.scrollHeight)||0,containerWidth:(a==null?void 0:a.scrollWidth)||0,bounds:this.mapsService.getBounds()}}},{key:"updateDraggable",value:function(){var a=this.markerOption.element;a==null||a.removeEventListener("mousedown",this.onMarkerDragStart),this.mapsService.off("mousemove",this.onMarkerDragMove),document.removeEventListener("mouseup",this.onMarkerDragEnd),this.markerOption.draggable&&(a==null||a.addEventListener("mousedown",this.onMarkerDragStart))}},{key:"updatePosition",value:function(){if(this.mapsService){var a=this.markerOption,p=a.element,y=a.offsets,w=this.lngLat,O=w.lng,V=w.lat,he=this.mapsService.lngLatToContainer([O,V]);if(p){p.style.display="block",p.style.whiteSpace="nowrap";var be=this.getMarkerLayerContainerSize()||this.getCurrentContainerSize(),ut=be.containerHeight,Pt=be.containerWidth,qt=be.bounds;if(!qt)return;if(Math.abs(qt[0][0])>180||Math.abs(qt[1][0])>180){if(he.x>Pt){var En=this.mapsService.lngLatToContainer([O-360,V]);he.x=En.x}if(he.x<0){var qn=this.mapsService.lngLatToContainer([O+360,V]);he.x=qn.x}}(he.x>Pt||he.x<0||he.y>ut||he.y<0)&&(p.style.display="none"),p.style.left=he.x+y[0]+"px",p.style.top=he.y-y[1]+"px"}}}},{key:"init",value:function(){var a=this,p=this.markerOption.element,y=this.markerOption,w=y.color,O=y.anchor;if(!p){this.defaultMarker=!0,p=va("div"),this.markerOption.element=p;var V=document.createElementNS("http://www.w3.org/2000/svg","svg");V.setAttributeNS(null,"display","block"),V.setAttributeNS(null,"height","48px"),V.setAttributeNS(null,"width","48px"),V.setAttributeNS(null,"viewBox","0 0 1024 1024");var he=document.createElementNS("http://www.w3.org/2000/svg","path");he.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),he.setAttributeNS(null,"fill",w),V.appendChild(he),p.appendChild(V)}Yl(p,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(be){var ut,Pt,qt=((ut=a.markerOption)===null||ut===void 0?void 0:ut.style)&&((Pt=a.markerOption)===null||Pt===void 0?void 0:Pt.style[be]);p&&(p.style[be]=qt)}),Rn(p,O,"marker")}},{key:"registerMarkerEvent",value:function(a){a.addEventListener("click",this.onMapClick),a.addEventListener("mousemove",this.eventHandle),a.addEventListener("click",this.eventHandle),a.addEventListener("mousedown",this.eventHandle),a.addEventListener("mouseup",this.eventHandle),a.addEventListener("dblclick",this.eventHandle),a.addEventListener("contextmenu",this.eventHandle),a.addEventListener("mouseover",this.eventHandle),a.addEventListener("mouseout",this.eventHandle),a.addEventListener("touchstart",this.eventHandle),a.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var a=this.getElement();a.removeEventListener("click",this.onMapClick),a.removeEventListener("mousemove",this.eventHandle),a.removeEventListener("click",this.eventHandle),a.removeEventListener("mousedown",this.eventHandle),a.removeEventListener("mouseup",this.eventHandle),a.removeEventListener("dblclick",this.eventHandle),a.removeEventListener("contextmenu",this.eventHandle),a.removeEventListener("mouseover",this.eventHandle),a.removeEventListener("mouseout",this.eventHandle),a.removeEventListener("touchstart",this.eventHandle),a.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(a){!this.mapsService||this.mapsService.version!=="GAODE2.x"||uu()||(a.type==="touchstart"&&(this.touchStartTime=Date.now()),a.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:a,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(a){return null}},{key:"onUp",value:function(a){throw new Error("Method not implemented.")}}]),l}(Ic.EventEmitter);function It(i){var d=On();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function On(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var dr=ks.merge,br=function(i){(0,ze.Z)(l,i);var d=It(l);function l(c){var a,p;return(0,vt.Z)(this,l),p=d.call(this),(0,pn.Z)((0,eo.Z)(p),"markers",[]),(0,pn.Z)((0,eo.Z)(p),"points",[]),(0,pn.Z)((0,eo.Z)(p),"clusterMarkers",[]),p.markerLayerOption=dr(p.getDefault(),c),pu(["update"],(0,eo.Z)(p)),p.zoom=((a=p.markerLayerOption.clusterOption)===null||a===void 0?void 0:a.zoom)||-99,p}return(0,Te.Z)(l,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(a){return this.scene=a,this.mapsService=a.get(In.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var a=this.mapsService.getContainer();this.containerSize={containerWidth:(a==null?void 0:a.scrollWidth)||0,containerHeight:(a==null?void 0:a.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(a){var p=this.markerLayerOption.cluster;if(a.getMarkerLayerContainerSize=this.getContainerSize.bind(this),p&&(this.addPoint(a,this.markers.length),this.mapsService)){var y=this.mapsService.getZoom(),w=this.mapsService.getBounds();this.bbox=ou(w,.5),this.zoom=Math.floor(y),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(a)}},{key:"removeMarker",value:function(a){this.markers.indexOf(a);var p=this.markers.indexOf(a);p>-1&&(this.markers.splice(p,1),this.markerLayerOption.cluster&&(this.removePoint(p),this.mapsService&&this.getClusterMarker(this.bbox,this.zoom)))}},{key:"hide",value:function(){this.markers.map(function(a){a.getElement().style.opacity="0"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(a){a.getElement().style.opacity="1"}),this.clusterMarkers.map(function(a){a.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var a=this.markerLayerOption.cluster;return a?this.clusterMarkers:this.markers}},{key:"getOriginMarkers",value:function(){return this.markers}},{key:"addMarkers",value:function(){var a=this;this.getMarkers().forEach(function(p){p.addTo(a.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(a){a.remove()}),this.clusterMarkers.forEach(function(a){a.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(a,p){var y=a.getLnglat(),w=y.lng,O=y.lat,V={geometry:{type:"Point",coordinates:[w,O]},properties:(0,Xe.Z)((0,Xe.Z)({},a.getExtData()),{},{marker_id:p})};this.points.push(V),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"removePoint",value:function(a){var p=this.points.findIndex(function(y){return y.properties.marker_id===a});p>-1&&this.points.splice(p,1),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var a=this.markerLayerOption.clusterOption,p=a.radius,y=a.minZoom,w=y===void 0?0:y,O=a.maxZoom;this.clusterIndex=new(jA())({radius:p,minZoom:w,maxZoom:O}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(a,p){var y=this,w=a[0].concat(a[1]),O=this.clusterIndex.getClusters(w,p);this.clusterMarkers.forEach(function(V){V.remove()}),this.clusterMarkers=[],O.forEach(function(V){var he,be=y.markerLayerOption.clusterOption,ut=be.field,Pt=be.method;if((he=V.properties)!==null&&he!==void 0&&he.cluster_id){var qt,En=y.getLeaves((qt=V.properties)===null||qt===void 0?void 0:qt.cluster_id);if(V.properties.clusterData=En,ut&&Pt){var qn=En==null?void 0:En.map(function(Qs){var Fs=(0,pn.Z)({},ut,Qs.properties[ut]);return Fs}),Zr=wd(qn,ut),Si=wg(Pt,Zr),to="point_"+Pt;V.properties[to]=Si.toFixed(2)}}var ts=y.clusterMarker(V);y.clusterMarkers.push(ts),ts.addTo(y.scene)})}},{key:"getLeaves",value:function(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return a?this.clusterIndex.getLeaves(a,p,y):null}},{key:"clusterMarker",value:function(a){var p=this.markerLayerOption.clusterOption,y=p,w=y.element,O=w===void 0?this.generateElement.bind(this):w,V=new lt({element:O(a)}).setLnglat({lng:a.geometry.coordinates[0],lat:a.geometry.coordinates[1]});return V}},{key:"normalMarker",value:function(a){var p=a.properties.marker_id;return this.markers[p]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var a=this.mapsService.getZoom(),p=this.mapsService.getBounds();(!this.bbox||Math.abs(a-this.zoom)>=1||!yu(this.bbox,p))&&(this.bbox=ou(p,.5),this.zoom=Math.floor(a),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(a){var p=va("div","l7-marker-cluster"),y=va("div","",p),w=va("span","",y),O=this.markerLayerOption.clusterOption,V=O.field,he=O.method;a.properties.point_count=a.properties.point_count||1;var be=V&&he?a.properties["point_"+he]||a.properties[V]:a.properties.point_count;return w.textContent=be,p}}]),l}(Ic.EventEmitter),Ki=x(7639);function go(i){var d=$o();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function $o(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Jo=function(i){(0,ze.Z)(l,i);var d=go(l);function l(c){var a;return(0,vt.Z)(this,l),a=d.call(this),l.controlCount++,a.controlOption=(0,Xe.Z)((0,Xe.Z)({},a.getDefault(c)),c||{}),a}return(0,Te.Z)(l,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(a){var p=this.getDefault(a);Object.entries(a).forEach(function(y){var w=(0,zn.Z)(y,2),O=w[0],V=w[1];V===void 0&&(a[O]=p[O])}),"position"in a&&this.setPosition(a.position),"className"in a&&this.setClassName(a.className),"style"in a&&this.setStyle(a.style),this.controlOption=(0,Xe.Z)((0,Xe.Z)({},this.controlOption),a)}},{key:"addTo",value:function(a){this.mapsService=a.get(In.IMapService),this.renderService=a.get(In.IRendererService),this.layerService=a.get(In.ILayerService),this.controlService=a.get(In.IControlService),this.configService=a.get(In.IGlobalConfigService),this.scene=a.get(In.ISceneService),this.sceneContainer=a,this.isShow=!0,this.container=this.onAdd(),Yl(this.container,"l7-control");var p=this.controlOption,y=p.className,w=p.style;return y&&this.setClassName(y),w&&this.setStyle(w),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Ua(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return va("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var a=this.container;Cc(a,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var a=this.container;Yl(a,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(a){return{position:Pa.TOPRIGHT,name:"".concat(l.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(a){if(this.mapsService&&a&&a.screenX>0&&a.screenY>0){var p=this.mapsService.getContainer();p!==null&&p.focus()}}},{key:"setPosition",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa.TOPLEFT,p=this.controlService;return p&&p.removeControl(this),this.controlOption.position=a,p&&p.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(a){var p=this.container,y=this.controlOption.className;y&&Cc(p,y),a&&Yl(p,a)}},{key:"setStyle",value:function(a){var p=this.container;a?p.setAttribute("style",a):p.removeAttribute("style")}},{key:"insertContainer",value:function(){var a=this.controlOption.position,p=this.container;if(a instanceof Element)a.appendChild(p);else{var y=this.controlService.controlCorners[a];["bottomleft","bottomright","righttop","rightbottom"].includes(a)?y.insertBefore(p,y.firstChild):y.appendChild(p)}}},{key:"checkUpdateOption",value:function(a,p){return p.some(function(y){return y in a})}}]),l}(Hp());(0,pn.Z)(Jo,"controlCount",0);function wi(i){var d=ms();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function ms(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Ka=function(i){(0,ze.Z)(l,i);var d=wi(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&arguments[0]!==void 0?arguments[0]:"";return va("button","l7-button-control ".concat(a))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var a=this.controlOption,p=a.title,y=a.btnText,w=a.btnIcon;return this.setBtnTitle(p),this.setBtnText(y),this.setBtnIcon(w),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(a){var p=a.title,y=a.btnText,w=a.btnIcon;this.checkUpdateOption(a,["title"])&&this.setBtnTitle(p),this.checkUpdateOption(a,["btnIcon"])&&this.setBtnIcon(w),this.checkUpdateOption(a,["btnText"])&&this.setBtnText(y),Af((0,Tt.Z)(l.prototype),"setOptions",this).call(this,a)}},{key:"setBtnTitle",value:function(a){var p;(p=this.button)===null||p===void 0||p.setAttribute("title",a!=null?a:"")}},{key:"setBtnIcon",value:function(a){if(this.buttonIcon&&Ua(this.buttonIcon),a){var p,y=(p=this.button)===null||p===void 0?void 0:p.firstChild;if(y){var w;(w=this.button)===null||w===void 0||w.insertBefore(a,y)}else{var O;(O=this.button)===null||O===void 0||O.appendChild(a)}this.buttonIcon=a}}},{key:"setBtnText",value:function(a){if(this.button)if(Cc(this.button,"l7-button-control--row"),Cc(this.button,"l7-button-control--column"),a){var p=this.buttonText;if(!p){var y;p=va("div","l7-button-control__text"),(y=this.button)===null||y===void 0||y.appendChild(p),this.buttonText=p}p.innerText=a,Yl(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!a&&this.buttonText&&(Ua(this.buttonText),this.buttonText=void 0)}}]),l}(Jo);function fl(i){var d=Ia();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Ia(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Hu=function(i){(0,ze.Z)(l,i);var d=fl(l);function l(c,a){var p;return(0,vt.Z)(this,l),p=d.call(this),(0,pn.Z)((0,eo.Z)(p),"isShow",!1),(0,pn.Z)((0,eo.Z)(p),"timeout",null),(0,pn.Z)((0,eo.Z)(p),"show",function(){return p.isShow||!p.contentDOM.innerHTML||(p.resetPopperPosition(),Cc(p.popperDOM,"l7-popper-hide"),p.isShow=!0,p.option.unique&&l.conflictPopperList.forEach(function(y){y!==(0,eo.Z)(p)&&y.isShow&&y.hide()}),p.emit("show"),window.addEventListener("pointerdown",p.onPopperUnClick)),(0,eo.Z)(p)}),(0,pn.Z)((0,eo.Z)(p),"hide",function(){return p.isShow&&(Yl(p.popperDOM,"l7-popper-hide"),p.isShow=!1,p.emit("hide"),window.removeEventListener("pointerdown",p.onPopperUnClick)),(0,eo.Z)(p)}),(0,pn.Z)((0,eo.Z)(p),"setHideTimeout",function(){p.timeout||(p.timeout=window.setTimeout(function(){p.isShow&&(p.hide(),p.timeout=null)},300))}),(0,pn.Z)((0,eo.Z)(p),"clearHideTimeout",function(){p.timeout&&(window.clearTimeout(p.timeout),p.timeout=null)}),(0,pn.Z)((0,eo.Z)(p),"onBtnClick",function(){p.isShow?p.hide():p.show()}),(0,pn.Z)((0,eo.Z)(p),"onPopperUnClick",function(y){Vs(y.target,[".l7-button-control",".l7-popper-content"])||p.hide()}),(0,pn.Z)((0,eo.Z)(p),"onBtnMouseLeave",function(){p.setHideTimeout()}),(0,pn.Z)((0,eo.Z)(p),"onBtnMouseMove",function(){p.clearHideTimeout(),!p.isShow&&p.show()}),p.button=c,p.option=a,p.init(),a.unique&&l.conflictPopperList.push((0,eo.Z)(p)),p}return(0,Te.Z)(l,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(a){typeof a=="string"?this.contentDOM.innerHTML=a:a instanceof HTMLElement&&(da(this.contentDOM),this.contentDOM.appendChild(a)),this.content=a}},{key:"init",value:function(){var a=this.option.trigger;this.popperDOM=this.createPopper(),a==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),Ua(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var a={},p=this.option,y=p.container,w=p.offset,O=w===void 0?[0,0]:w,V=p.placement,he=(0,zn.Z)(O,2),be=he[0],ut=he[1],Pt=this.button.getBoundingClientRect(),qt=y.getBoundingClientRect(),En=vs(Pt,qt),qn=En.left,Zr=En.right,Si=En.top,to=En.bottom,ts=!1,Qs=!1;/^(left|right)/.test(V)?(V.includes("left")?a.right="".concat(Pt.width+Zr,"px"):V.includes("right")&&(a.left="".concat(Pt.width+qn,"px")),V.includes("start")?a.top="".concat(Si,"px"):V.includes("end")?a.bottom="".concat(to,"px"):(a.top="".concat(Si+Pt.height/2,"px"),Qs=!0,a.transform="translate(".concat(be,"px, calc(").concat(ut,"px - 50%))"))):/^(top|bottom)/.test(V)&&(V.includes("top")?a.bottom="".concat(Pt.height+to,"px"):V.includes("bottom")&&(a.top="".concat(Pt.height+Si,"px")),V.includes("start")?a.left="".concat(qn,"px"):V.includes("end")?a.right="".concat(Zr,"px"):(a.left="".concat(qn+Pt.width/2,"px"),ts=!0,a.transform="translate(calc(".concat(be,"px - 50%), ").concat(ut,"px)"))),a.transform="translate(calc(".concat(be,"px - ").concat(ts?"50%":"0%","), calc(").concat(ut,"px - ").concat(Qs?"50%":"0%",")");var Fs=V.split("-");Fs.length&&Yl(this.popperDOM,Fs.map(function(Us){return"l7-popper-".concat(Us)}).join(" ")),Rr(this.popperDOM,fs(a))}},{key:"createPopper",value:function(){var a=this.option,p=a.container,y=a.className,w=y===void 0?"":y,O=a.content,V=va("div","l7-popper l7-popper-hide ".concat(w)),he=va("div","l7-popper-content"),be=va("div","l7-popper-arrow");return V.appendChild(he),V.appendChild(be),p.appendChild(V),this.popperDOM=V,this.contentDOM=he,O&&this.setContent(O),V}}]),l}(Ic.EventEmitter);(0,pn.Z)(Hu,"conflictPopperList",[]);function Dc(i){var d=Vu();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Vu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Tl={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},sc=function(i){(0,ze.Z)(l,i);var d=Dc(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Af((0,Tt.Z)(l.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(a){var p,y=Af((0,Tt.Z)(l.prototype),"getDefault",this).call(this,a),w=(p=a==null?void 0:a.position)!==null&&p!==void 0?p:y.position;return(0,Xe.Z)((0,Xe.Z)({},Af((0,Tt.Z)(l.prototype),"getDefault",this).call(this,a)),{},{popperPlacement:w instanceof Element?"bottom":Tl[w],popperTrigger:"click"})}},{key:"onAdd",value:function(){var a=Af((0,Tt.Z)(l.prototype),"onAdd",this).call(this);return this.initPopper(),a}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var a=this,p=this.controlOption,y=p.popperClassName,w=p.popperPlacement,O=p.popperTrigger,V=this.mapsService.getMapContainer();return this.popper=new Hu(this.button,{className:y,placement:w,trigger:O,container:V,unique:!0}),this.popper.on("show",function(){a.emit("popperShow",a)}).on("hide",function(){a.emit("popperHide",a)}),this.popper}},{key:"setOptions",value:function(a){if(Af((0,Tt.Z)(l.prototype),"setOptions",this).call(this,a),this.checkUpdateOption(a,["popperPlacement","popperTrigger","popperClassName"])){var p=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(p)}}}]),l}(Ka);function Zu(i){var d=th();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function th(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var ac=function(i){return i.ActiveOptionClassName="l7-select-control-item-active",i.OptionValueAttrKey="data-option-value",i.OptionIndexAttrKey="data-option-index",i}(ac||{}),Qu=function(i){(0,ze.Z)(l,i);var d=Zu(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y-1?c.selectValue.splice(O,1):c.selectValue=[].concat((0,Ln.Z)(c.selectValue),[w.value])}else c.selectValue=[w.value];c.setSelectValue(c.selectValue)}),c}return(0,Te.Z)(l,[{key:"setOptions",value:function(a){Af((0,Tt.Z)(l.prototype),"setOptions",this).call(this,a);var p=a.options;p&&this.popper.setContent(this.getPopperContent(p))}},{key:"onAdd",value:function(){var a=Af((0,Tt.Z)(l.prototype),"onAdd",this).call(this),p=this.controlOption.defaultValue;return p&&(this.selectValue=this.transSelectValue(p)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),a}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,y=this.transSelectValue(a);this.optionDOMList.forEach(function(w){var O=w.getAttribute(ac.OptionValueAttrKey),V=w.querySelector("input[type=checkbox]"),he=w.querySelector("input[type=radio]"),be=y.includes(O),ut=function(qt,En){_h(w,ac.ActiveOptionClassName,En),qt&&as(qt,En)};ut(V,be),ut(he,be)}),this.selectValue=y,p&&this.emit("selectChange",this.getIsMultiple()?y:y[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(a){var p=this,y=this.isImageOptions(),w=va("div",y?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&Yl(w,"l7-select-control--multiple");var O=a.map(function(V,he){var be=y?p.createImageOption(V):p.createNormalOption(V);return be.setAttribute(ac.OptionValueAttrKey,V.value),be.setAttribute(ac.OptionIndexAttrKey,window.String(he)),be.addEventListener("click",p.onItemClick.bind(p,V)),be});return w.append.apply(w,(0,Ln.Z)(O)),this.optionDOMList=O,w}},{key:"createImageOption",value:function(a){var p=this.selectValue.includes(a.value),y=va("div","l7-select-control-item ".concat(p?ac.ActiveOptionClassName:"")),w=va("img");w.setAttribute("src",a.img),Ss(w),y.appendChild(w);var O=va("div","l7-select-control-item-row");this.getIsMultiple()&&y.appendChild(this.createCheckbox(p));var V=va("span");return V.innerText=a.text,O.appendChild(V),y.appendChild(O),y}},{key:"createCheckbox",value:function(a){var p=va("input");return p.setAttribute("type","checkbox"),a&&as(p,!0),p}},{key:"createRadio",value:function(a){var p=va("input");return p.setAttribute("type","radio"),a&&as(p,!0),p}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(a){return a.img})}},{key:"transSelectValue",value:function(a){return Array.isArray(a)?a:[a]}}]),l}(sc),of=function(d){var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add("l7-iconfont"),l.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(d)),l.appendChild(c),l};function Ap(i){var d=Tf();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Tf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var eg=function(i){(0,ze.Z)(l,i);var d=Ap(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function t0(i,d){if(i){if(typeof i=="string")return qf(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return qf(i,d)}}function qf(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:document.documentElement,l=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,a){var p=function w(){lc.off("change",w),c()};lc.on("change",p);var y=d[$h.requestFullscreen](l);y instanceof Promise&&y.then(p).catch(a)})},exit:function(){return new Promise(function(d,l){if(!lc.isFullscreen){d();return}var c=function p(){lc.off("change",p),d()};lc.on("change",c);var a=document[$h.exitFullscreen]();a instanceof Promise&&a.then(c).catch(l)})},toggle:function(d,l){return lc.isFullscreen?lc.exit():lc.request(d,l)},onchange:function(d){lc.on("change",d)},onerror:function(d){lc.on("error",d)},on:function(d,l){var c=Kl[d];c&&document.addEventListener(c,l,!1)},off:function(d,l){var c=Kl[d];c&&document.removeEventListener(c,l,!1)},raw:$h};Object.defineProperties(lc,{isFullscreen:{get:function(){return!!document[$h.fullscreenElement]}},element:{enumerable:!0,get:function(){var d;return(d=document[$h.fullscreenElement])!==null&&d!==void 0?d:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[$h.fullscreenEnabled]}}}),$h||(lc={isEnabled:!1});var hu=lc;function bu(i){var d=Je();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Je(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Ot=function(i){(0,ze.Z)(l,i);var d=bu(l);function l(c){var a;return(0,vt.Z)(this,l),a=d.call(this,c),(0,pn.Z)((0,eo.Z)(a),"isFullscreen",!1),(0,pn.Z)((0,eo.Z)(a),"toggleFullscreen",(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!hu.isEnabled){w.next=3;break}return w.next=3,hu.toggle(a.mapContainer);case 3:case"end":return w.stop()}},p)}))),(0,pn.Z)((0,eo.Z)(a),"onClick",function(){a.toggleFullscreen()}),(0,pn.Z)((0,eo.Z)(a),"onFullscreenChange",function(){a.isFullscreen=!!document.fullscreenElement;var p=a.controlOption,y=p.btnText,w=p.btnIcon,O=p.title,V=p.exitBtnText,he=p.exitBtnIcon,be=p.exitTitle;a.isFullscreen?(a.setBtnTitle(be),a.setBtnText(V),a.setBtnIcon(he)):(a.setBtnTitle(O),a.setBtnText(y),a.setBtnIcon(w)),a.emit("fullscreenChange",a.isFullscreen)}),hu.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),a}return(0,Te.Z)(l,[{key:"setOptions",value:function(a){var p=a.exitBtnText,y=a.exitBtnIcon,w=a.exitTitle;this.isFullscreen&&(this.checkUpdateOption(a,["exitBtnIcon"])&&this.setBtnIcon(y),this.checkUpdateOption(a,["exitBtnText"])&&this.setBtnText(p),this.checkUpdateOption(a,["exitTitle"])&&this.setBtnTitle(w)),Af((0,Tt.Z)(l.prototype),"setOptions",this).call(this,a)}},{key:"onAdd",value:function(){var a=Af((0,Tt.Z)(l.prototype),"onAdd",this).call(this);return a.addEventListener("click",this.onClick),this.mapContainer=lu(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),a}},{key:"onRemove",value:function(){Af((0,Tt.Z)(l.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(a){return(0,Xe.Z)((0,Xe.Z)({},Af((0,Tt.Z)(l.prototype),"getDefault",this).call(this,a)),{},{title:"\u5168\u5C4F",btnIcon:of("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:of("l7-icon-exit-fullscreen")})}}]),l}(Ka);function Xn(i){var d=zi();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function zi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var os=function(i){(0,ze.Z)(l,i);var d=Xn(l);function l(c){var a;return(0,vt.Z)(this,l),a=d.call(this,c),(0,pn.Z)((0,eo.Z)(a),"getGeoLocation",function(){return new Promise(function(p,y){window.navigator.geolocation.getCurrentPosition(function(w){var O=w.coords,V=O!=null?O:{},he=V.longitude,be=V.latitude;!isNaN(he)&&!isNaN(be)?p([he,be]):y()},function(w){y(w)})})}),(0,pn.Z)((0,eo.Z)(a),"onClick",(0,al.Z)(mo().mark(function p(){var y,w,O;return mo().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(window.navigator.geolocation){he.next=2;break}return he.abrupt("return");case 2:return y=a.controlOption.transform,he.next=5,a.getGeoLocation();case 5:if(w=he.sent,O=a.mapsService.getZoom(),he.t0=a.mapsService,he.t1=O>15?O:15,!y){he.next=15;break}return he.next=12,y(w);case 12:he.t2=he.sent,he.next=16;break;case 15:he.t2=w;case 16:he.t3=he.t2,he.t0.setZoomAndCenter.call(he.t0,he.t1,he.t3);case 18:case"end":return he.stop()}},p)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),a}return(0,Te.Z)(l,[{key:"getDefault",value:function(a){return(0,Xe.Z)((0,Xe.Z)({},Af((0,Tt.Z)(l.prototype),"getDefault",this).call(this,a)),{},{title:"\u5B9A\u4F4D",btnIcon:of("l7-icon-reposition")})}},{key:"onAdd",value:function(){var a=Af((0,Tt.Z)(l.prototype),"onAdd",this).call(this);return a.addEventListener("click",this.onClick),a}}]),l}(Ka);function _l(i){var d=ys();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function ys(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function Uc(i){return Object.keys(i!=null?i:{}).every(function(d){return["layer","name","img"].includes(d)})}var Xc=function(i){(0,ze.Z)(l,i);var d=_l(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y=10?10:y>=5?5:y>=3?3:y>=2?2:1,p*y}},{key:"updateMetric",value:function(a){var p=this.getRoundNum(a),y=p<1e3?p+" m":p/1e3+" km";this.updateScale(this.mScale,y,p/a)}},{key:"updateImperial",value:function(a){var p=a*3.2808399,y,w,O;p>5280?(y=p/5280,w=this.getRoundNum(y),this.updateScale(this.iScale,w+" mi",w/y)):(O=this.getRoundNum(p),this.updateScale(this.iScale,O+" ft",O/p))}}]),l}(Jo),k1,Tm=(k1={},(0,pn.Z)(k1,es.additive,{enable:!0,func:{srcRGB:Fi.ONE,dstRGB:Fi.ONE,srcAlpha:1,dstAlpha:1}}),(0,pn.Z)(k1,es.none,{enable:!1}),(0,pn.Z)(k1,es.normal,{enable:!0,func:{srcRGB:Fi.SRC_ALPHA,dstRGB:Fi.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,pn.Z)(k1,es.subtractive,{enable:!0,func:{srcRGB:Fi.ONE,dstRGB:Fi.ONE,srcAlpha:Fi.ZERO,dstAlpha:Fi.ONE_MINUS_SRC_COLOR},equation:{rgb:Fi.FUNC_SUBTRACT,alpha:Fi.FUNC_SUBTRACT}}),(0,pn.Z)(k1,es.max,{enable:!0,func:{srcRGB:Fi.ONE,dstRGB:Fi.ONE},equation:{rgb:Fi.MAX_EXT}}),(0,pn.Z)(k1,es.min,{enable:!0,func:{srcRGB:Fi.ONE,dstRGB:Fi.ONE},equation:{rgb:Fi.MIN_EXT}}),k1);function p1(i){return i.map(function(d){return typeof d=="string"&&(d=[d,{}]),d})}function K_(i,d,l,c){var a=i.multiPassRenderer,p=i.getLayerConfig(),y=p.enableTAA;return y?a.add(c("taa")):a.add(c("render")),p1(d).forEach(function(w){var O=(0,zn.Z)(w,2),V=O[0],he=O[1];a.add(l(V),he)}),a.add(l("copy")),a}var S1=function(){function i(d){(0,vt.Z)(this,i),this.layer=d}return(0,Te.Z)(i,[{key:"pickRender",value:function(l){var c=this.layer.getContainer(),a=c.get(In.ILayerService),p=this.layer;if(p.tileLayer)return p.tileLayer.pickRender(l);p.hooks.beforePickingEncode.call(),a.renderTileLayerMask(p),p.renderModels({ispick:!0}),p.hooks.afterPickingEncode.call()}},{key:"pick",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p){var y,w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(y=this.layer.getContainer(),w=y.get(In.IPickingService),a.type!=="RasterLayer"){V.next=4;break}return V.abrupt("return",this.pickRasterLayer(a,p));case 4:return this.pickRender(p),V.abrupt("return",w.pickFromPickingFBO(a,p));case 6:case"end":return V.stop()}},c,this)}));function l(c,a){return d.apply(this,arguments)}return l}()},{key:"pickRasterLayer",value:function(l,c,a){var p=this.layer.getContainer(),y=p.get(In.IPickingService),w=p.get(In.IMapService),O=this.layer.getSource().extent,V=Vd(c.lngLat,O),he={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},be=a||l;if(V){var ut=this.readRasterValue(l,O,w,c.x,c.y);return he.rasterValue=ut,y.triggerHoverOnLayer(be,he),!0}else return he.type=c.type==="mousemove"?"mouseout":"un"+c.type,y.triggerHoverOnLayer(be,(0,Xe.Z)((0,Xe.Z)({},he),{},{type:"unpick"})),y.triggerHoverOnLayer(be,he),!1}},{key:"readRasterValue",value:function(l,c,a,p,y){var w=l.getSource().data.dataArray[0],O=(0,zn.Z)(c,4),V=O[0],he=V===void 0?0:V,be=O[1],ut=be===void 0?0:be,Pt=O[2],qt=Pt===void 0?10:Pt,En=O[3],qn=En===void 0?-10:En,Zr=a.lngLatToContainer([he,ut]),Si=a.lngLatToContainer([qt,qn]),to=Si.x-Zr.x,ts=Zr.y-Si.y,Qs=[(p-Zr.x)/to,(y-Si.y)/ts],Fs=w.width||1,Us=w.height||1,Sa=Math.floor(Qs[0]*Fs),dl=Math.floor(Qs[1]*Us),fu=Math.max(0,dl-1)*Fs+Sa,iu=w.data[fu];return iu}},{key:"selectFeature",value:function(l){var c=this.layer,a=(0,zn.Z)(l,3),p=a[0],y=a[1],w=a[2];c.hooks.beforeSelect.call([p,y,w])}},{key:"highlightPickedFeature",value:function(l){var c=(0,zn.Z)(l,3),a=c[0],p=c[1],y=c[2];this.layer.hooks.beforeHighlight.call([a,p,y])}},{key:"getFeatureById",value:function(l){return this.layer.getSource().getFeatureById(l)}}]),i}(),c_=function(){function i(d){(0,vt.Z)(this,i),this.layer=d;var l=this.layer.getContainer();this.rendererService=l.get(In.IRendererService)}return(0,Te.Z)(i,[{key:"getColorTexture",value:function(l,c){var a=this.getTextureKey(l,c);return this.key===a?this.colorTexture:(this.createColorTexture(l,c),this.key=a,this.colorTexture)}},{key:"createColorTexture",value:function(l,c){var a=this.rendererService.createTexture2D,p=this.getColorRampBar(l,c),y=a({data:new Uint8Array(p.data),width:p.width,height:p.height,flipY:!1,unorm:!0});return this.colorTexture=y,y}},{key:"setColorTexture",value:function(l,c,a){this.key=this.getTextureKey(c,a),this.colorTexture=l}},{key:"destroy",value:function(){var l;(l=this.colorTexture)===null||l===void 0||l.destroy()}},{key:"getColorRampBar",value:function(l,c){switch(l.type){case"cat":return Qo(l);case"quantize":return pr(l);case"custom":return qo(l,c);case"linear":return Xr(l,c);default:return Kr(l)}}},{key:"getTextureKey",value:function(l,c){var a;return"".concat(l.colors.join("_"),"_").concat(l==null||(a=l.positions)===null||a===void 0?void 0:a.join("_"),"_").concat(l.type,"_").concat(c==null?void 0:c.join("_"))}}]),i}(),qA=["passes"],xP=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption","pickingEnabled"],U4,aD,V4;function CP(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=tO(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function tO(i,d){if(i){if(typeof i=="string")return $4(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return $4(i,d)}}function $4(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:{};return(0,vt.Z)(this,l),c=d.call(this),(0,pn.Z)((0,eo.Z)(c),"id","".concat(iO++)),(0,pn.Z)((0,eo.Z)(c),"name","".concat(iO)),(0,pn.Z)((0,eo.Z)(c),"visible",!0),(0,pn.Z)((0,eo.Z)(c),"zIndex",0),(0,pn.Z)((0,eo.Z)(c),"inited",!1),(0,pn.Z)((0,eo.Z)(c),"layerModelNeedUpdate",!1),(0,pn.Z)((0,eo.Z)(c),"pickedFeatureID",null),(0,pn.Z)((0,eo.Z)(c),"selectedFeatureID",null),(0,pn.Z)((0,eo.Z)(c),"styleNeedUpdate",!1),(0,pn.Z)((0,eo.Z)(c),"forceRender",!1),(0,pn.Z)((0,eo.Z)(c),"clusterZoom",0),(0,pn.Z)((0,eo.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,pn.Z)((0,eo.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,pn.Z)((0,eo.Z)(c),"hooks",{init:new Sy,afterInit:new x2,beforeRender:new x2,beforeRenderData:new fe,afterRender:new r_,beforePickingEncode:new r_,afterPickingEncode:new r_,beforeHighlight:new r_(["pickedColor"]),afterHighlight:new r_,beforeSelect:new r_(["pickedColor"]),afterSelect:new r_,beforeDestroy:new r_,afterDestroy:new r_}),(0,pn.Z)((0,eo.Z)(c),"models",[]),(0,pn.Z)((0,eo.Z)(c),"startInit",!1),(0,pn.Z)((0,eo.Z)(c),"layerChildren",[]),(0,pn.Z)((0,eo.Z)(c),"masks",[]),F((0,eo.Z)(c),"configService",V4,(0,eo.Z)(c)),(0,pn.Z)((0,eo.Z)(c),"animateOptions",{enable:!1}),(0,pn.Z)((0,eo.Z)(c),"currentPickId",null),(0,pn.Z)((0,eo.Z)(c),"encodeStyleAttribute",{}),(0,pn.Z)((0,eo.Z)(c),"enableShaderEncodeStyles",[]),(0,pn.Z)((0,eo.Z)(c),"enableDataEncodeStyles",[]),(0,pn.Z)((0,eo.Z)(c),"pendingStyleAttributes",[]),(0,pn.Z)((0,eo.Z)(c),"scaleOptions",{}),(0,pn.Z)((0,eo.Z)(c),"animateStatus",!1),(0,pn.Z)((0,eo.Z)(c),"isDestroyed",!1),(0,pn.Z)((0,eo.Z)(c),"uniformBuffers",[]),(0,pn.Z)((0,eo.Z)(c),"encodeDataLength",0),(0,pn.Z)((0,eo.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var p=c.getLayerConfig();p&&p.autoFit&&c.fitBounds(p.fitBoundsOptions);var y=c.layerSource.getSourceCfg().autoRender;y&&setTimeout(function(){c.reRender()},10)}),c.name=a.name||c.id,c.zIndex=a.zIndex||0,c.rawConfig=a,c}return(0,Te.Z)(l,[{key:"addMask",value:function(a){this.masks.push(a),this.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}},{key:"removeMask",value:function(a){var p=this.masks.indexOf(a);p>-1&&this.masks.splice(p,1),this.updateLayerConfig({maskLayers:this.masks})}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(a){this.masks.push(a)}},{key:"removeMaskLayer",value:function(a){var p=this.masks.indexOf(a);p>-1&&this.masks.splice(p,1),a.destroy()}},{key:"getAttribute",value:function(a){return this.styleAttributeService.getLayerStyleAttribute(a)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(a){var p=this;if(Object.keys(a).map(function(w){w in p.rawConfig&&(p.rawConfig[w]=a[w])}),!this.startInit)this.needUpdateConfig=(0,Xe.Z)((0,Xe.Z)({},this.needUpdateConfig),a);else{var y=this.container.get(In.SceneID);this.configService.setLayerConfig(y,this.id,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),a)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(a,p){this.container=a,this.sceneContainer=p}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(a){return this.plugins.push(a),this}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y=this,w,O,V,he,be,ut,Pt;return mo().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:w=this.container.get(In.SceneID),this.startInit=!0,this.configService.setLayerConfig(w,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(In.IIconService),this.fontService=this.container.get(In.IFontService),this.rendererService=this.container.get(In.IRendererService),this.layerService=this.container.get(In.ILayerService),this.debugService=this.container.get(In.IDebugService),this.interactionService=this.container.get(In.IInteractionService),this.pickingService=this.container.get(In.IPickingService),this.mapService=this.container.get(In.IMapService),O=this.getLayerConfig(),V=O.enableMultiPassRenderer,he=O.passes,V&&he!==null&&he!==void 0&&he.length&&he.length>0&&this.mapService.on("mapAfterFrameChange",function(){y.renderLayers()}),this.cameraService=this.container.get(In.ICameraService),this.coordinateService=this.container.get(In.ICoordinateSystemService),this.shaderModuleService=this.container.get(In.IShaderModuleService),this.postProcessingPassFactory=this.container.get(In.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(In.IFactoryNormalPass),this.styleAttributeService=this.container.get(In.IStyleAttributeService),V&&(this.multiPassRenderer=this.container.get(In.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(qn){var Zr=qn.attributeName,Si=qn.attributeField,to=qn.attributeValues,ts=qn.updateOptions;y.styleAttributeService.updateStyleAttribute(Zr,{scale:(0,Xe.Z)({field:Si},y.splitValuesAndCallbackInAttribute(to,Si?void 0:y.getLayerConfig()[Zr]))},ts)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(In.ILayerPlugin),be=CP(this.plugins);try{for(be.s();!(ut=be.n()).done;)Pt=ut.value,Pt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(qn){be.e(qn)}finally{be.f()}return this.layerPickService=new S1(this),this.textureService=new c_(this),this.log(Wg.LayerInitStart),En.next=31,this.hooks.init.promise();case 31:this.log(Wg.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return En.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"log",value:function(a){var p,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var w="".concat(this.id,".").concat(y,".").concat(a),O={id:this.id,type:this.type};(p=this.debugService)===null||p===void 0||p.log(w,O)}}},{key:"updateModelData",value:function(a){a.attributes&&a.elements?this.models.map(function(p){p.updateAttributesAndElements(a.attributes,a.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(a){this.layerPickService=a}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var a=this.getLayerConfig(),p=a.animateOption;p!=null&&p.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(a,p,y){return this.updateStyleAttribute("color",a,p,y),this}},{key:"texture",value:function(a,p,y){return this.updateStyleAttribute("texture",a,p,y),this}},{key:"rotate",value:function(a,p,y){return this.updateStyleAttribute("rotate",a,p,y),this}},{key:"size",value:function(a,p,y){return this.updateStyleAttribute("size",a,p,y),this}},{key:"filter",value:function(a,p,y){var w=this.updateStyleAttribute("filter",a,p,y);return this.dataState.dataSourceNeedUpdate=w&&this.inited,this}},{key:"shape",value:function(a,p,y){this.shapeOption={field:a,values:p};var w=this.updateStyleAttribute("shape",a,p,y);return this.dataState.dataSourceNeedUpdate=w&&this.inited,this}},{key:"label",value:function(a,p,y){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:a,attributeValues:p,updateOptions:y}),this}},{key:"animate",value:function(a){var p={};return O1(a)?(p.enable=!0,p=(0,Xe.Z)((0,Xe.Z)({},p),a)):p.enable=a,this.updateLayerConfig({animateOption:p}),this}},{key:"source",value:function(a,p){return(a==null?void 0:a.type)==="source"?(this.setSource(a),this):(this.sourceOption={data:a,options:p},this.clusterZoom=0,this)}},{key:"setData",value:function(a,p){var y=this;return this.inited?(this.log(Wg.SourceInitStart,Ad.UPDATE),this.layerSource.setData(a,p),this.log(Wg.SourceInitEnd,Ad.UPDATE)):this.on("inited",function(){y.log(Wg.SourceInitStart,Ad.UPDATE);var w=y.getSource();w?y.layerSource.setData(a,p):y.source(new ee(a,p)),y.layerSource.once("update",function(){y.log(Wg.SourceInitEnd,Ad.UPDATE)})}),this}},{key:"style",value:function(a){var p=this,y=a.passes,w=(0,W0.Z)(a,qA);y&&p1(y).forEach(function(V){var he=p.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(V[0]);he&&he.updateOptions(V[1])}),w.borderColor&&(w.stroke=w.borderColor),w.borderWidth&&(w.strokeWidth=w.borderWidth);var O=w;return Object.keys(w).forEach(function(V){var he=w[V];Array.isArray(he)&&he.length===2&&!W4(he[0])&&!W4(he[1])&&(O[V]={field:he[0],value:he[1]})}),this.encodeStyle(O),this.updateLayerConfig(O),this}},{key:"encodeStyle",value:function(a){var p=this;Object.keys(a).forEach(function(y){[].concat((0,Ln.Z)(p.enableShaderEncodeStyles),(0,Ln.Z)(p.enableDataEncodeStyles)).includes(y)&&nO(a[y])&&(a[y].field||a[y].value)&&!Uw(p.encodeStyleAttribute[y],a[y])?(p.encodeStyleAttribute[y]=a[y],p.updateStyleAttribute(y,a[y].field,a[y].value),p.inited&&(p.dataState.dataMappingNeedUpdate=!0)):p.encodeStyleAttribute[y]&&(delete p.encodeStyleAttribute[y],p.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(a,p){var y=(0,Xe.Z)({},this.scaleOptions);if(O1(a)?this.scaleOptions=(0,Xe.Z)((0,Xe.Z)({},this.scaleOptions),a):this.scaleOptions[a]=p,this.styleAttributeService&&!Uw(y,this.scaleOptions)){var w=O1(a)?a:(0,pn.Z)({},a,p);this.styleAttributeService.updateScaleAttribute(w)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"prerender",value:function(){}},{key:"render",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(a),this))}},{key:"renderMultiPass",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){w.next=2;break}return w.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){w.next=7;break}return w.next=5,this.multiPassRenderer.render();case 5:w.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"active",value:function(a){var p={};return p.enableHighlight=O1(a)?!0:a,O1(a)?(p.enableHighlight=!0,a.color&&(p.highlightColor=a.color),a.mix&&(p.activeMix=a.mix)):p.enableHighlight=!!a,this.updateLayerConfig(p),this}},{key:"setActive",value:function(a,p){var y=this;if(O1(a)){var w=a.x,O=w===void 0?0:w,V=a.y,he=V===void 0?0:V;this.updateLayerConfig({highlightColor:O1(p)?p.color:this.getLayerConfig().highlightColor,activeMix:O1(p)?p.mix:this.getLayerConfig().activeMix}),this.pick({x:O,y:he})}else this.updateLayerConfig({pickedFeatureID:a,highlightColor:O1(p)?p.color:this.getLayerConfig().highlightColor,activeMix:O1(p)?p.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Zi(a)).then(function(){setTimeout(function(){y.reRender()},1)})}},{key:"select",value:function(a){var p={};return p.enableSelect=O1(a)?!0:a,O1(a)?(p.enableSelect=!0,a.color&&(p.selectColor=a.color),a.mix&&(p.selectMix=a.mix)):p.enableSelect=!!a,this.updateLayerConfig(p),this}},{key:"setSelect",value:function(a,p){var y=this;if(O1(a)){var w=a.x,O=w===void 0?0:w,V=a.y,he=V===void 0?0:V;this.updateLayerConfig({selectColor:O1(p)?p.color:this.getLayerConfig().selectColor,selectMix:O1(p)?p.mix:this.getLayerConfig().selectMix}),this.pick({x:O,y:he})}else this.updateLayerConfig({pickedFeatureID:a,selectColor:O1(p)?p.color:this.getLayerConfig().selectColor,selectMix:O1(p)?p.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Zi(a)).then(function(){setTimeout(function(){y.reRender()},1)})}},{key:"setBlend",value:function(a){return this.updateLayerConfig({blend:a}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(a){return this.zIndex=a,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(a){this.currentPickId=a}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(a){this.selectedFeatureID=a}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var a=this.mapService.getZoom(),p=this.getLayerConfig(),y=p.visible,w=p.minZoom,O=w===void 0?-1/0:w,V=p.maxZoom,he=V===void 0?1/0:V;return!!y&&a>=O&&a0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(a=this.layerModel)===null||a===void 0||a.uniformBuffers.forEach(function(ut){ut.destroy()}),this.layerChildren.map(function(ut){return ut.destroy(!1)}),this.layerChildren=[];var he=this.getLayerConfig(),be=he.maskfence;be&&(this.masks.map(function(ut){return ut.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(p=this.multiPassRenderer)===null||p===void 0||p.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(y=this.layerModel)===null||y===void 0||y.clearModels(V),(w=this.tileLayer)===null||w===void 0||w.destroy(),this.models=[],(O=this.debugService)===null||O===void 0||O.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var a;this.models.forEach(function(p){return p.destroy()}),(a=this.layerModel)===null||a===void 0||a.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(a){return a.needRescale||a.needRemapping||a.needRegenerateVertices}).length}},{key:"setSource",value:function(a){var p=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=a,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var y=this.mapService.getZoom();this.layerSource.updateClusterData(y)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(w){var O=w.type;if(p.coordCenter===void 0){var V,he=p.layerSource.center;p.coordCenter=he,(V=p.mapService)!==null&&V!==void 0&&V.setCoordCenter&&p.mapService.setCoordCenter(he)}if(O==="update"){if(p.tileLayer){p.tileLayer.reload();return}p.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(a){this.encodedData=a,this.encodeDataLength=a.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(a){return this.styleAttributeService.getLayerAttributeScale(a)}},{key:"getLegend",value:function(a){var p,y,w,O=this.styleAttributeService.getLayerStyleAttribute(a),V=(O==null||(p=O.scale)===null||p===void 0?void 0:p.scalers)||[];return{type:(y=V[0].option)===null||y===void 0?void 0:y.type,field:O==null||(w=O.scale)===null||w===void 0?void 0:w.field,items:this.getLegendItems(a)}}},{key:"getLegendItems",value:function(a){var p=this.styleAttributeService.getLayerAttributeScale(a);if(!p)return[];if(p.invertExtent){var y=p.range().map(function(V){return(0,pn.Z)({value:p.invertExtent(V)},a,V)});return y}else if(p.ticks){var w=p.ticks().map(function(V){return(0,pn.Z)({value:V},a,p(V))});return w}else if(p!=null&&p.domain){var O=p.domain().filter(function(V){return!rO(V)}).map(function(V){return(0,pn.Z)({value:V},a,p(V))});return O}return[]}},{key:"pick",value:function(a){var p=a.x,y=a.y;this.interactionService.triggerHover({x:p,y})}},{key:"boxSelect",value:function(a,p){this.pickingService.boxPickLayer(this,a,p)}},{key:"buildLayerModel",value:function(){var c=(0,al.Z)(mo().mark(function p(y){var w=this,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts,Qs;return mo().wrap(function(Us){for(;;)switch(Us.prev=Us.next){case 0:return O=y.moduleName,V=y.vertexShader,he=y.fragmentShader,be=y.inject,ut=y.triangulation,Pt=y.styleOption,qt=y.pickingEnabled,En=qt===void 0?!0:qt,qn=(0,W0.Z)(y,xP),this.shaderModuleService.registerModule(O,{vs:V,fs:he,inject:be}),Zr=this.shaderModuleService.getModule(O),Si=Zr.vs,to=Zr.fs,ts=Zr.uniforms,Qs=this.rendererService.createModel,Us.abrupt("return",new Promise(function(Sa){var dl=w.styleAttributeService.createAttributesAndIndices(w.encodedData,ut,Pt),fu=dl.attributes,iu=dl.elements,ic=dl.count,Nc=[].concat((0,Ln.Z)(w.layerModel.uniformBuffers),(0,Ln.Z)(w.rendererService.uniformBuffers),[w.getLayerUniformBuffer()]);En&&Nc.push(w.getPickingUniformBuffer());var nh=(0,Xe.Z)({attributes:fu,uniforms:ts,fs:to,vs:Si,elements:iu,blend:Tm[es.normal],uniformBuffers:Nc,textures:w.layerModel.textures},qn);ic&&(nh.count=ic);var Zp=Qs(nh);Sa(Zp)}));case 5:case"end":return Us.stop()}},p,this)}));function a(p){return c.apply(this,arguments)}return a}()},{key:"createAttributes",value:function(a){var p=a.triangulation,y=this.styleAttributeService.createAttributes(this.encodedData,p),w=y.attributes;return w}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(a){var p=this.getLayerConfig(),y=p.enableHighlight,w=y===void 0?!0:y,O=p.enableSelect,V=O===void 0?!0:O,he=this.eventNames().indexOf(a)!==-1||this.eventNames().indexOf("un"+a)!==-1;return(a==="click"||a==="dblclick")&&V&&(he=!0),a==="mousemove"&&(w||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(he=!0),this.isVisible()&&he}},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return w.stop()}},p)}));function a(){return c.apply(this,arguments)}return a}()},{key:"rebuildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.buildModels();case 2:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"renderMulPass",value:function(){var c=(0,al.Z)(mo().mark(function p(y){return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,y.render();case 2:case"end":return O.stop()}},p)}));function a(p){return c.apply(this,arguments)}return a}()},{key:"renderModels",value:function(){var a=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(y){y.draw({uniforms:a.layerModel.getUninforms(),blend:a.layerModel.getBlend(),stencil:a.layerModel.getStencil(p),textures:a.layerModel.textures},(p==null?void 0:p.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(a,p,y,w){var O=this.configService.getAttributeConfig(this.id)||{};return Uw(O[a],{field:p,values:y})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(a)!==-1&&this.configService.setAttributeConfig(this.id,(0,pn.Z)({},a,{field:p,values:y})),this.startInit?this.styleAttributeService.updateStyleAttribute(a,{scale:(0,Xe.Z)({field:p},this.splitValuesAndCallbackInAttribute(y,this.getLayerConfig()[p]))},w):this.pendingStyleAttributes.push({attributeName:a,attributeField:p,attributeValues:y,updateOptions:w}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(a){console.warn("empty fn")}},{key:"processData",value:function(a){return a}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return this.models.forEach(function(he){return he.destroy()}),this.models=[],this.uniformBuffers.forEach(function(he){he.destroy()}),this.uniformBuffers=[],y=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(y),w=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(w),V.next=10,this.layerModel.initModels();case 10:this.models=V.sent;case 11:case"end":return V.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getLayerUniformBuffer",value:function(){return this.uniformBuffers[0]}},{key:"getPickingUniformBuffer",value:function(){return this.uniformBuffers[1]}},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(a){return{values:oE(a)?void 0:a,callback:oE(a)?a:void 0}}}]),l}(Ic.EventEmitter),V4=I(aD.prototype,"configService",[U4],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),aD);function wP(i,d){return{enable:i,mask:255,func:{cmp:Fi.EQUAL,ref:d?1:0,mask:1}}}function SP(i){return i.maskOperation===sf.OR?{enable:!0,mask:255,func:{cmp:Fi.ALWAYS,ref:1,mask:255},opFront:{fail:Fi.KEEP,zfail:Fi.REPLACE,zpass:Fi.REPLACE}}:{enable:!0,mask:255,func:{cmp:i.stencilType===Rl.SINGLE||i.stencilIndex===0?Fi.ALWAYS:Fi.LESS,ref:i.stencilType===Rl.SINGLE?1:i.stencilIndex===0?2:1,mask:255},opFront:{fail:Fi.KEEP,zfail:Fi.REPLACE,zpass:Fi.REPLACE}}}var np=function(i){return i[i.POSITION=0]="POSITION",i[i.COLOR=1]="COLOR",i[i.VERTEX_ID=2]="VERTEX_ID",i[i.PICKING_COLOR=3]="PICKING_COLOR",i[i.STROKE=4]="STROKE",i[i.OPACITY=5]="OPACITY",i[i.OFFSETS=6]="OFFSETS",i[i.ROTATION=7]="ROTATION",i[i.EXTRUSION_BASE=8]="EXTRUSION_BASE",i[i.SIZE=9]="SIZE",i[i.SHAPE=10]="SHAPE",i[i.EXTRUDE=11]="EXTRUDE",i[i.MAX=12]="MAX",i[i.NORMAL=13]="NORMAL",i[i.UV=14]="UV",i[i.LINEAR=15]="LINEAR",i}({});function Gs(i){switch(i){case"rotation":return{name:"Rotation",type:lf.Attribute,descriptor:{name:"a_Rotation",shaderLocation:np.ROTATION,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(l){var c=l.rotation,a=c===void 0?0:c;return Array.isArray(a)?[a[0]]:[a]}}};case"stroke":return{name:"stroke",type:lf.Attribute,descriptor:{name:"a_Stroke",shaderLocation:np.STROKE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:4,update:function(l){var c=l.stroke,a=c===void 0?[1,1,1,1]:c;return a}}};case"opacity":return{name:"opacity",type:lf.Attribute,descriptor:{name:"a_Opacity",shaderLocation:np.OPACITY,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(l){var c=l.opacity,a=c===void 0?1:c;return[a]}}};case"extrusionBase":return{name:"extrusionBase",type:lf.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:np.EXTRUSION_BASE,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(l){var c=l.extrusionBase,a=c===void 0?0:c;return[a]}}};case"offsets":return{name:"offsets",type:lf.Attribute,descriptor:{name:"a_Offsets",shaderLocation:np.OFFSETS,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:2,update:function(l){var c=l.offsets;return c}}};case"thetaOffset":return{name:"thetaOffset",type:lf.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:15,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(l){var c=l.thetaOffset,a=c===void 0?1:c;return[a]}}};default:return}}var xl={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},Fa={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function il(i){var d="";return Object.keys(i).forEach(function(l){var c=i[l];Array.isArray(c)?d+="vec".concat(c.length," ").concat(l,`; +`):d+="flot ".concat(l,`; +`)}),d}function wl(i){return Math.max(Math.ceil(i/4)*4,4)}var El,Pc,Bh,Hc={opacity:np.OPACITY,stroke:np.STROKE,offsets:np.OFFSETS,rotation:np.ROTATION,extrusionBase:np.EXTRUSION_BASE,thetaOffset:15},$u=(El=a_(In.IGlobalConfigService),Pc=function(){function i(d){(0,vt.Z)(this,i),(0,pn.Z)(this,"uniformBuffers",[]),(0,pn.Z)(this,"textures",[]),(0,pn.Z)(this,"preStyleAttribute",{}),(0,pn.Z)(this,"encodeStyleAttribute",{}),F(this,"configService",Bh,this),this.layer=d,this.rendererService=d.getContainer().get(In.IRendererService),this.pickingService=d.getContainer().get(In.IPickingService),this.shaderModuleService=d.getContainer().get(In.IShaderModuleService),this.styleAttributeService=d.getContainer().get(In.IStyleAttributeService),this.mapService=d.getContainer().get(In.IMapService),this.iconService=d.getContainer().get(In.IIconService),this.fontService=d.getContainer().get(In.IFontService),this.cameraService=d.getContainer().get(In.ICameraService),this.layerService=d.getContainer().get(In.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var l=this.rendererService.createTexture2D;this.createTexture2D=l}return(0,Te.Z)(i,[{key:"getBlend",value:function(){var l=this.layer.getLayerConfig(),c=l.blend,a=c===void 0?"normal":c;return Tm[es[a]]}},{key:"getStencil",value:function(l){var c=this.layer.getLayerConfig(),a=c.mask,p=a===void 0?!1:a,y=c.maskInside,w=y===void 0?!0:y,O=c.enableMask,V=c.maskOperation,he=V===void 0?sf.AND:V;if(this.layer.type==="MaskLayer")return SP({isStencil:!0,stencilType:Rl.SINGLE});if(l.isStencil)return SP((0,Xe.Z)((0,Xe.Z)({},l),{},{maskOperation:he}));var be=p||O&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return wP(be,w)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){var l=this.getCommonUniformsInfo(),c=this.getUniformsBufferInfo(this.getStyleAttribute());this.updateStyleUnifoms();var a=(0,Xe.Z)((0,Xe.Z)({},c.uniformsOption),l.uniformsOption);return!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(a.u_texture=this.textures[0]),a}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var d=(0,al.Z)(mo().mark(function c(){return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",!1);case 1:case"end":return p.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var d=(0,al.Z)(mo().mark(function c(){return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return p.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"initModels",value:function(){var d=(0,al.Z)(mo().mark(function c(){return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return p.stop()}},c)}));function l(){return d.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"prerender",value:function(){}},{key:"render",value:function(l){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.duration||4,l.interval||.2,l.trailLength||.1]}},{key:"startModelAnimate",value:function(){var l=this.layer.getLayerConfig(),c=l.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var l=this.layer.encodeStyleAttribute,c="",a=[];this.layer.enableShaderEncodeStyles.forEach(function(w){l[w]?c+="#define USE_ATTRIBUTE_".concat(w.toUpperCase(),` 0.0; + +`):a.push(" ".concat(Fa[w]," u_").concat(w,";"));var O=Hc[w];!O&&w==="THETA_OFFSET"&&(O=15),c+=` + #ifdef USE_ATTRIBUTE_`.concat(w.toUpperCase(),` + layout(location = `).concat(Hc[w],") in ").concat(Fa[w]," a_").concat(w.charAt(0).toUpperCase()+w.slice(1),`; #endif - `)});var E=d.length?` + `)});var p=a.length?` layout(std140) uniform AttributeUniforms { -`.concat(d.join(` +`.concat(a.join(` `),` }; - `):"";m+=E;var M="";return this.layer.enableShaderEncodeStyles.forEach(function(B){M+=` + `):"";c+=p;var y="";return this.layer.enableShaderEncodeStyles.forEach(function(w){y+=` - #ifdef USE_ATTRIBUTE_`.concat(B.toUpperCase(),` - `).concat(Xy[B]," ").concat(B," = a_").concat(B.charAt(0).toUpperCase()+B.slice(1),`; + #ifdef USE_ATTRIBUTE_`.concat(w.toUpperCase(),` + `).concat(Fa[w]," ").concat(w," = a_").concat(w.charAt(0).toUpperCase()+w.slice(1),`; #else - `).concat(Xy[B]," ").concat(B," = u_").concat(B,`; + `).concat(Fa[w]," ").concat(w," = u_").concat(w,`; #endif - `)}),{"vs:#decl":m,"fs:#decl":E,"vs:#main-start":M}}},{key:"getStyleAttribute",value:function(){var f=this,m={};return this.layer.enableShaderEncodeStyles.forEach(function(d){if(!f.layer.encodeStyleAttribute[d]){var E=f.layer.getLayerConfig()[d],M=typeof E=="undefined"?P_[d]:E;d==="stroke"&&(M=Xg(M)),m["u_"+d]=M}}),m}},{key:"registerStyleAttribute",value:function(){var f=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(m){var d=oy(m);d&&(f.styleAttributeService.registerStyleAttribute(d),d.descriptor&&(d.descriptor.shaderLocation=X2[m]))})}},{key:"updateEncodeAttribute",value:function(f,m){this.encodeStyleAttribute[f]=m}},{key:"initUniformsBuffer",value:function(){var f=this.getUniformsBufferInfo(this.getStyleAttribute()),m=this.getCommonUniformsInfo();f.uniformsLength!==0&&(this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(L_(f.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.attributeUnifoms)),m.uniformsLength!==0&&(this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(L_(m.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.commonUnifoms))}},{key:"getUniformsBufferInfo",value:function(f){var m=0,d=[];return Object.values(f).forEach(function(E){Array.isArray(E)?(d.push.apply(d,(0,su.Z)(E)),m+=E.length):typeof E=="number"?(d.push(E),m+=1):typeof E=="boolean"&&(d.push(Number(E)),m+=1)}),{uniformsOption:f,uniformsLength:m,uniformsArray:d}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var f,m,d=this.getUniformsBufferInfo(this.getStyleAttribute()),E=d.uniformsArray,M=this.getCommonUniformsInfo(),B=M.uniformsArray;(f=this.attributeUnifoms)===null||f===void 0||f.subData({offset:0,data:new Uint8Array(new Float32Array(E).buffer)}),(m=this.commonUnifoms)===null||m===void 0||m.subData({offset:0,data:new Uint8Array(new Float32Array(B).buffer)})}}]),i}(),Hw=H(B2.prototype,"configService",[O_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B2),fw=function(i){return i[i.solid=0]="solid",i[i.dash=1]="dash",i}({}),vS=function(i){return i.VERTICAL="vertical",i.HORIZONTAL="horizontal",i}({}),qS=function(i){return i.NORMAL="normal",i.REPLACE="replace",i}({}),oT=function(i){return i[i.pixel=0]="pixel",i[i.meter=1]="meter",i}({}),ZS=function(i){return i.ALWAYS="always",i.DRAGEND="dragend",i}({});function pE(i){var v=OA();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function OA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var XD=function(i){(0,Ht.Z)(f,i);var v=pE(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&(E=1/Math.sqrt(E)),i[0]=v[0]*E,i[1]=v[1]*E,i[2]=v[2]*E,i}function LU(i,v){return i[0]*v[0]+i[1]*v[1]+i[2]*v[2]}function M3(i,v,f){var m=v[0],d=v[1],E=v[2],M=f[0],B=f[1],J=f[2];return i[0]=d*J-E*B,i[1]=E*M-m*J,i[2]=m*B-d*M,i}function Vfe(i,v,f,m){var d=v[0],E=v[1],M=v[2];return i[0]=d+m*(f[0]-d),i[1]=E+m*(f[1]-E),i[2]=M+m*(f[2]-M),i}function jfe(i,v,f,m,d,E){var M=E*E,B=M*(2*E-3)+1,J=M*(E-2)+E,ue=M*(E-1),Ze=M*(3-2*E);return i[0]=v[0]*B+f[0]*J+m[0]*ue+d[0]*Ze,i[1]=v[1]*B+f[1]*J+m[1]*ue+d[1]*Ze,i[2]=v[2]*B+f[2]*J+m[2]*ue+d[2]*Ze,i}function rY(i,v,f,m,d,E){var M=1-E,B=M*M,J=E*E,ue=B*M,Ze=3*E*B,st=3*J*M,Fr=J*E;return i[0]=v[0]*ue+f[0]*Ze+m[0]*st+d[0]*Fr,i[1]=v[1]*ue+f[1]*Ze+m[1]*st+d[1]*Fr,i[2]=v[2]*ue+f[2]*Ze+m[2]*st+d[2]*Fr,i}function Wfe(i,v){v=v||1;var f=LE()*2*Math.PI,m=LE()*2-1,d=Math.sqrt(1-m*m)*v;return i[0]=Math.cos(f)*d,i[1]=Math.sin(f)*d,i[2]=m*v,i}function h7(i,v,f){var m=v[0],d=v[1],E=v[2],M=f[3]*m+f[7]*d+f[11]*E+f[15];return M=M||1,i[0]=(f[0]*m+f[4]*d+f[8]*E+f[12])/M,i[1]=(f[1]*m+f[5]*d+f[9]*E+f[13])/M,i[2]=(f[2]*m+f[6]*d+f[10]*E+f[14])/M,i}function ore(i,v,f){var m=v[0],d=v[1],E=v[2];return i[0]=m*f[0]+d*f[3]+E*f[6],i[1]=m*f[1]+d*f[4]+E*f[7],i[2]=m*f[2]+d*f[5]+E*f[8],i}function hM(i,v,f){var m=f[0],d=f[1],E=f[2],M=f[3],B=v[0],J=v[1],ue=v[2],Ze=d*ue-E*J,st=E*B-m*ue,Fr=m*J-d*B,Go=d*Fr-E*st,Ta=E*Ze-m*Fr,eu=m*st-d*Ze,kd=M*2;return Ze*=kd,st*=kd,Fr*=kd,Go*=2,Ta*=2,eu*=2,i[0]=B+Ze+Go,i[1]=J+st+Ta,i[2]=ue+Fr+eu,i}function sre(i,v,f,m){var d=[],E=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],E[0]=d[0],E[1]=d[1]*Math.cos(m)-d[2]*Math.sin(m),E[2]=d[1]*Math.sin(m)+d[2]*Math.cos(m),i[0]=E[0]+f[0],i[1]=E[1]+f[1],i[2]=E[2]+f[2],i}function MU(i,v,f,m){var d=[],E=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],E[0]=d[2]*Math.sin(m)+d[0]*Math.cos(m),E[1]=d[1],E[2]=d[2]*Math.cos(m)-d[0]*Math.sin(m),i[0]=E[0]+f[0],i[1]=E[1]+f[1],i[2]=E[2]+f[2],i}function are(i,v,f,m){var d=[],E=[];return d[0]=v[0]-f[0],d[1]=v[1]-f[1],d[2]=v[2]-f[2],E[0]=d[0]*Math.cos(m)-d[1]*Math.sin(m),E[1]=d[0]*Math.sin(m)+d[1]*Math.cos(m),E[2]=d[2],i[0]=E[0]+f[0],i[1]=E[1]+f[1],i[2]=E[2]+f[2],i}function dZ(i,v){var f=i[0],m=i[1],d=i[2],E=v[0],M=v[1],B=v[2],J=Math.sqrt(f*f+m*m+d*d),ue=Math.sqrt(E*E+M*M+B*B),Ze=J*ue,st=Ze&&LU(i,v)/Ze;return Math.acos(Math.min(Math.max(st,-1),1))}function lre(i){return i[0]=0,i[1]=0,i[2]=0,i}function iY(i){return"vec3("+i[0]+", "+i[1]+", "+i[2]+")"}function Zfe(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]}function oY(i,v){var f=i[0],m=i[1],d=i[2],E=v[0],M=v[1],B=v[2];return Math.abs(f-E)<=Xv*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(m-M)<=Xv*Math.max(1,Math.abs(m),Math.abs(M))&&Math.abs(d-B)<=Xv*Math.max(1,Math.abs(d),Math.abs(B))}var OU=nre,Hfe=JX,Gfe=QX,uN=nY,f7=uZ,VI=HM,sY=PU,ure=function(){var i=LP();return function(v,f,m,d,E,M){var B,J;for(f||(f=3),m||(m=0),d?J=Math.min(d*f+m,v.length):J=v.length,B=m;B0)for(var fy=st.length,J1=fy-2*(J+1);J1+J+20&&arguments[0]!==void 0?arguments[0]:{};(0,Zr.Z)(this,i),(0,Na.Z)(this,"lastFlip",-1),(0,Na.Z)(this,"miter",wT(0,0)),(0,Na.Z)(this,"started",!1),(0,Na.Z)(this,"dash",!1),(0,Na.Z)(this,"totalDistance",0),(0,Na.Z)(this,"currentIndex",0),this.join=v.join||"miter",this.cap=v.cap||"butt",this.miterLimit=v.miterLimit||10,this.thickness=v.thickness||1,this.dash=v.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,gt.Z)(i,[{key:"simpleExtrude",value:function(f){var m=this.complex;if(f.length<=1)return m;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var d=f.length,E=m.startIndex,M=1;Mthis.miterLimit&&(h2=!0)}h2?(Go.push(this.normal[0],this.normal[1],0),Go.push(yx[0],yx[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,st.push.apply(st,(0,su.Z)(this.lastFlip!==-ux?[m,m+2,m+3]:[m+2,m+1,m+3])),st.push(m+2,m+3,m+4),H5(WR,Z5),oE(this.normal,WR),Go.push(this.normal[0],this.normal[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*ux,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ze+=3):(this.extrusions(Fr,Go,E,yx,C_,this.totalDistance),st.push.apply(st,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),ux=-1,oE(this.normal,yx),Ze+=2),this.lastFlip=ux}else{if(H5(this.normal,p4),Ta){var fy=cC(),J1=cC();tA(J1,p4,this.normal),WC(fy,p4,this.normal),Go.push(J1[0],J1[1],0),Go.push(fy[0],fy[1],0),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),Fr.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(Fr,Go,E,this.normal,this.thickness,this.totalDistance);st.push.apply(st,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),Ze+=2}return Ze}},{key:"segment",value:function(f,m,d,E,M){var B=0,J=f.indices,ue=f.positions,Ze=f.normals,st=this.cap==="square",Fr=this.join==="bevel",Go=VC([E[0],E[1]]),Ta=VC([d[0],d[1]]);t4(p4,Go,Ta);var eu=0;if(this.dash&&(eu=this.lineSegmentDistance(Go,Ta),this.totalDistance+=eu),this.normal||(this.normal=cC(),H5(this.normal,p4)),!this.started)if(this.started=!0,st){var kd=cC(),em=cC();WC(kd,this.normal,p4),WC(em,this.normal,p4),Ze.push(em[0],em[1],0),Ze.push(kd[0],kd[1],0),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,-this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(d[0],d[1],d[2]|0,this.totalDistance-eu,this.thickness,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ze,d,this.normal,this.thickness,this.totalDistance-eu);if(J.push(m+0,m+1,m+2),M){var y1=VC([M[0],M[1]]);$3(Go,y1)&&WC(y1,Go,CA(y1,wS(y1,Go,Ta))),t4(Z5,y1,Go);var fy=pZ(g7,cC(),p4,Z5,this.thickness),J1=(0,hu.Z)(fy,2),ey=J1[0],Fy=J1[1],C_=OT(g7,this.normal)<0?-1:1,yx=Fr;if(!yx&&this.join==="miter"){var ux=ey;ux>this.miterLimit&&(yx=!0)}yx?(Ze.push(this.normal[0],this.normal[1],0),Ze.push(Fy[0],Fy[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,J.push.apply(J,(0,su.Z)(this.lastFlip!==-C_?[m,m+2,m+3]:[m+2,m+1,m+3])),J.push(m+2,m+3,m+4),H5(WR,Z5),oE(this.normal,WR),Ze.push(this.normal[0],this.normal[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,-this.thickness*C_,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ue,Ze,E,Fy,ey,this.totalDistance),J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),C_=-1,oE(this.normal,Fy),B+=2),this.lastFlip=C_}else{if(H5(this.normal,p4),st){var B0=cC(),vv=cC();tA(vv,p4,this.normal),WC(B0,p4,this.normal),Ze.push(vv[0],vv[1],0),Ze.push(B0[0],B0[1],0),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),ue.push(E[0],E[1],E[2]|0,this.totalDistance,this.thickness,E[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ue,Ze,E,this.normal,this.thickness,this.totalDistance);J.push.apply(J,(0,su.Z)(this.lastFlip===1?[m,m+2,m+3]:[m+2,m+1,m+3])),B+=2}return B}},{key:"extrusions",value:function(f,m,d,E,M,B){m.push(E[0],E[1],0),m.push(E[0],E[1],0),f.push(d[0],d[1],d[2]|0,B,-M,d[2]|0),this.complex.indexes.push(this.currentIndex),f.push(d[0],d[1],d[2]|0,B,M,d[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(f,m){var d=m[0]-f[0],E=m[1]-f[1];return Math.sqrt(d*d+E*E)}}]),i}();function aY(i){var v=i[0][0],f=i[0][i[0].length-1];v[0]===f[0]&&v[1]===f[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var m=i[0].length,d=nw().flatten(i),E=d.vertices,M=d.dimensions,B=[],J=[],ue=0;ue1&&arguments[1]!==void 0?arguments[1]:!1,f=i[0][0],m=i[0][i[0].length-1];f[0]===m[0]&&f[1]===m[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var d=i[0].length,E=nw().flatten(i),M=E.vertices,B=E.dimensions,J=[],ue=[],Ze=[],st=0;st3&&arguments[3]!==void 0?arguments[3]:!1,d=LP(),E=LP(),M=LP();m&&(i=JS(i),v=JS(v),f=JS(f));var B=YA.apply(x,(0,su.Z)(i)),J=YA.apply(x,(0,su.Z)(v)),ue=YA.apply(x,(0,su.Z)(f));OU(d,ue,J),OU(E,B,J),M3(M,d,E);var Ze=LP();return gP(Ze,M),Ze}var GM,m7=function(i){return i.CYLINDER="cylinder",i.SQUARECOLUMN="squareColumn",i.TRIANGLECOLUMN="triangleColumn",i.HEXAGONCOLUMN="hexagonColumn",i.PENTAGONCOLUMN="pentagonColumn",i}({}),v7=function(i){return i.CIRCLE="circle",i.SQUARE="square",i.TRIANGLE="triangle",i.HEXAGON="hexagon",i.PENTAGON="pentagon",i}({});function kT(i){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=Math.PI*2/i,m=[],d=0;d1&&arguments[1]!==void 0?arguments[1]:!1;if(kU&&kU[i])return kU[i];var f=y7[i]?y7[i]():y7.cylinder(),m=uY([f],v);return kU[i]=m,m}function zU(i,v){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,d=new Float32Array(i.length/f*3),E,M,B,J=vec3.create(),ue=vec3.create(),Ze=vec3.create(),st=0,Fr=v.length;st0&&(p=1/Math.sqrt(p)),i[0]=d[0]*p,i[1]=d[1]*p,i[2]=d[2]*p,i}function TP(i,d){return i[0]*d[0]+i[1]*d[1]+i[2]*d[2]}function T0(i,d,l){var c=d[0],a=d[1],p=d[2],y=l[0],w=l[1],O=l[2];return i[0]=a*O-p*w,i[1]=p*y-c*O,i[2]=c*w-a*y,i}function wQ(i,d,l,c){var a=d[0],p=d[1],y=d[2];return i[0]=a+c*(l[0]-a),i[1]=p+c*(l[1]-p),i[2]=y+c*(l[2]-y),i}function SQ(i,d,l,c,a,p){var y=p*p,w=y*(2*p-3)+1,O=y*(p-2)+p,V=y*(p-1),he=y*(3-2*p);return i[0]=d[0]*w+l[0]*O+c[0]*V+a[0]*he,i[1]=d[1]*w+l[1]*O+c[1]*V+a[1]*he,i[2]=d[2]*w+l[2]*O+c[2]*V+a[2]*he,i}function jF(i,d,l,c,a,p){var y=1-p,w=y*y,O=p*p,V=w*y,he=3*p*w,be=3*O*y,ut=O*p;return i[0]=d[0]*V+l[0]*he+c[0]*be+a[0]*ut,i[1]=d[1]*V+l[1]*he+c[1]*be+a[1]*ut,i[2]=d[2]*V+l[2]*he+c[2]*be+a[2]*ut,i}function EQ(i,d){d=d||1;var l=Rp()*2*Math.PI,c=Rp()*2-1,a=Math.sqrt(1-c*c)*d;return i[0]=Math.cos(l)*a,i[1]=Math.sin(l)*a,i[2]=c*d,i}function uD(i,d,l){var c=d[0],a=d[1],p=d[2],y=l[3]*c+l[7]*a+l[11]*p+l[15];return y=y||1,i[0]=(l[0]*c+l[4]*a+l[8]*p+l[12])/y,i[1]=(l[1]*c+l[5]*a+l[9]*p+l[13])/y,i[2]=(l[2]*c+l[6]*a+l[10]*p+l[14])/y,i}function j$(i,d,l){var c=d[0],a=d[1],p=d[2];return i[0]=c*l[0]+a*l[3]+p*l[6],i[1]=c*l[1]+a*l[4]+p*l[7],i[2]=c*l[2]+a*l[5]+p*l[8],i}function lx(i,d,l){var c=l[0],a=l[1],p=l[2],y=l[3],w=d[0],O=d[1],V=d[2],he=a*V-p*O,be=p*w-c*V,ut=c*O-a*w,Pt=a*ut-p*be,qt=p*he-c*ut,En=c*be-a*he,qn=y*2;return he*=qn,be*=qn,ut*=qn,Pt*=2,qt*=2,En*=2,i[0]=w+he+Pt,i[1]=O+be+qt,i[2]=V+ut+En,i}function H$(i,d,l,c){var a=[],p=[];return a[0]=d[0]-l[0],a[1]=d[1]-l[1],a[2]=d[2]-l[2],p[0]=a[0],p[1]=a[1]*Math.cos(c)-a[2]*Math.sin(c),p[2]=a[1]*Math.sin(c)+a[2]*Math.cos(c),i[0]=p[0]+l[0],i[1]=p[1]+l[1],i[2]=p[2]+l[2],i}function DP(i,d,l,c){var a=[],p=[];return a[0]=d[0]-l[0],a[1]=d[1]-l[1],a[2]=d[2]-l[2],p[0]=a[2]*Math.sin(c)+a[0]*Math.cos(c),p[1]=a[1],p[2]=a[2]*Math.cos(c)-a[0]*Math.sin(c),i[0]=p[0]+l[0],i[1]=p[1]+l[1],i[2]=p[2]+l[2],i}function G$(i,d,l,c){var a=[],p=[];return a[0]=d[0]-l[0],a[1]=d[1]-l[1],a[2]=d[2]-l[2],p[0]=a[0]*Math.cos(c)-a[1]*Math.sin(c),p[1]=a[0]*Math.sin(c)+a[1]*Math.cos(c),p[2]=a[2],i[0]=p[0]+l[0],i[1]=p[1]+l[1],i[2]=p[2]+l[2],i}function aO(i,d){var l=i[0],c=i[1],a=i[2],p=d[0],y=d[1],w=d[2],O=Math.sqrt(l*l+c*c+a*a),V=Math.sqrt(p*p+y*y+w*w),he=O*V,be=he&&TP(i,d)/he;return Math.acos(Math.min(Math.max(be,-1),1))}function K$(i){return i[0]=0,i[1]=0,i[2]=0,i}function HF(i){return"vec3("+i[0]+", "+i[1]+", "+i[2]+")"}function AQ(i,d){return i[0]===d[0]&&i[1]===d[1]&&i[2]===d[2]}function GF(i,d){var l=i[0],c=i[1],a=i[2],p=d[0],y=d[1],w=d[2];return Math.abs(l-p)<=Oo*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-y)<=Oo*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(a-w)<=Oo*Math.max(1,Math.abs(a),Math.abs(w))}var IP=$$,TQ=UF,DQ=VF,sE=ZF,cD=oO,F1=Wx,KF=AP,X$=function(){var i=T_();return function(d,l,c,a,p,y){var w,O;for(l||(l=3),c||(c=0),a?O=Math.min(a*l+c,d.length):O=d.length,w=c;w0)for(var Qs=be.length,Fs=Qs-2*(O+1);Fs+O+20&&arguments[0]!==void 0?arguments[0]:{};(0,vt.Z)(this,i),(0,pn.Z)(this,"lastFlip",-1),(0,pn.Z)(this,"miter",xg(0,0)),(0,pn.Z)(this,"started",!1),(0,pn.Z)(this,"dash",!1),(0,pn.Z)(this,"totalDistance",0),(0,pn.Z)(this,"currentIndex",0),this.join=d.join||"miter",this.cap=d.cap||"butt",this.miterLimit=d.miterLimit||10,this.thickness=d.thickness||1,this.dash=d.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Te.Z)(i,[{key:"simpleExtrude",value:function(l){var c=this.complex;if(l.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var a=l.length,p=c.startIndex,y=1;ythis.miterLimit&&(ic=!0)}ic?(Pt.push(this.normal[0],this.normal[1],0),Pt.push(fu[0],fu[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,be.push.apply(be,(0,Ln.Z)(this.lastFlip!==-iu?[c,c+2,c+3]:[c+2,c+1,c+3])),be.push(c+2,c+3,c+4),$w(U2,Vw),ip(this.normal,U2),Pt.push(this.normal[0],this.normal[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*iu,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,he+=3):(this.extrusions(ut,Pt,p,fu,dl,this.totalDistance),be.push.apply(be,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),iu=-1,ip(this.normal,fu),he+=2),this.lastFlip=iu}else{if($w(this.normal,uy),qt){var Qs=ld(),Fs=ld();Gg(Fs,uy,this.normal),Od(Qs,uy,this.normal),Pt.push(Fs[0],Fs[1],0),Pt.push(Qs[0],Qs[1],0),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),ut.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ut,Pt,p,this.normal,this.thickness,this.totalDistance);be.push.apply(be,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),he+=2}return he}},{key:"segment",value:function(l,c,a,p,y){var w=0,O=l.indices,V=l.positions,he=l.normals,be=this.cap==="square",ut=this.join==="bevel",Pt=Rd([p[0],p[1]]),qt=Rd([a[0],a[1]]);Y1(uy,Pt,qt);var En=0;if(this.dash&&(En=this.lineSegmentDistance(Pt,qt),this.totalDistance+=En),this.normal||(this.normal=ld(),$w(this.normal,uy)),!this.started)if(this.started=!0,be){var qn=ld(),Zr=ld();Od(qn,this.normal,uy),Od(Zr,this.normal,uy),he.push(Zr[0],Zr[1],0),he.push(qn[0],qn[1],0),V.push(a[0],a[1],a[2]|0,this.totalDistance-En,-this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),V.push(a[0],a[1],a[2]|0,this.totalDistance-En,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(V,he,a,this.normal,this.thickness,this.totalDistance-En);if(O.push(c+0,c+1,c+2),y){var ts=Rd([y[0],y[1]]);F0(Pt,ts)&&Od(ts,Pt,pm(ts,xf(ts,Pt,qt))),Y1(Vw,ts,Pt);var Qs=cO(dD,ld(),uy,Vw,this.thickness),Fs=(0,zn.Z)(Qs,2),Us=Fs[0],Sa=Fs[1],dl=gg(dD,this.normal)<0?-1:1,fu=ut;if(!fu&&this.join==="miter"){var iu=Us;iu>this.miterLimit&&(fu=!0)}fu?(he.push(this.normal[0],this.normal[1],0),he.push(Sa[0],Sa[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,O.push.apply(O,(0,Ln.Z)(this.lastFlip!==-dl?[c,c+2,c+3]:[c+2,c+1,c+3])),O.push(c+2,c+3,c+4),$w(U2,Vw),ip(this.normal,U2),he.push(this.normal[0],this.normal[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,-this.thickness*dl,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,w+=3):(this.extrusions(V,he,p,Sa,Us,this.totalDistance),O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),dl=-1,ip(this.normal,Sa),w+=2),this.lastFlip=dl}else{if($w(this.normal,uy),be){var Si=ld(),to=ld();Gg(to,uy,this.normal),Od(Si,uy,this.normal),he.push(to[0],to[1],0),he.push(Si[0],Si[1],0),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),V.push(p[0],p[1],p[2]|0,this.totalDistance,this.thickness,p[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(V,he,p,this.normal,this.thickness,this.totalDistance);O.push.apply(O,(0,Ln.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),w+=2}return w}},{key:"extrusions",value:function(l,c,a,p,y,w){c.push(p[0],p[1],0),c.push(p[0],p[1],0),l.push(a[0],a[1],a[2]|0,w,-y,a[2]|0),this.complex.indexes.push(this.currentIndex),l.push(a[0],a[1],a[2]|0,w,y,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(l,c){var a=c[0]-l[0],p=c[1]-l[1];return Math.sqrt(a*a+p*p)}}]),i}();function XF(i){var d=i[0][0],l=i[0][i[0].length-1];d[0]===l[0]&&d[1]===l[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var c=i[0].length,a=eh().flatten(i),p=a.vertices,y=a.dimensions,w=[],O=[],V=0;V1&&arguments[1]!==void 0?arguments[1]:!1,l=i[0][0],c=i[0][i[0].length-1];l[0]===c[0]&&l[1]===c[1]&&(i[0]=i[0].slice(0,i[0].length-1));for(var a=i[0].length,p=eh().flatten(i),y=p.vertices,w=p.dimensions,O=[],V=[],he=[],be=0;be3&&arguments[3]!==void 0?arguments[3]:!1,a=T_(),p=T_(),y=T_();c&&(i=Hf(i),d=Hf(d),l=Hf(l));var w=Km.apply(A,(0,Ln.Z)(i)),O=Km.apply(A,(0,Ln.Z)(d)),V=Km.apply(A,(0,Ln.Z)(l));IP(a,V,O),IP(p,w,O),T0(y,a,p);var he=T_();return h_(he,y),he}var Zx,fD=function(i){return i.CYLINDER="cylinder",i.SQUARECOLUMN="squareColumn",i.TRIANGLECOLUMN="triangleColumn",i.HEXAGONCOLUMN="hexagonColumn",i.PENTAGONCOLUMN="pentagonColumn",i}({}),pD=function(i){return i.CIRCLE="circle",i.SQUARE="square",i.TRIANGLE="triangle",i.HEXAGON="hexagon",i.PENTAGON="pentagon",i}({});function Ig(i){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Math.PI*2/i,c=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:!1;if(MP&&MP[i])return MP[i];var l=gD[i]?gD[i]():gD.cylinder(),c=qF([l],d);return MP[i]=c,c}function OP(i,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=new Float32Array(i.length/l*3),p,y,w,O=vec3.create(),V=vec3.create(),he=vec3.create(),be=0,ut=d.length;be0&&arguments[0]!==void 0?arguments[0]:1,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ue=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Ze=d/2,st=E/2,Fr=Math.floor(M),Go=Math.floor(B),Ta=Fr+1,eu=Go+1,kd=d/Fr,em=E/Go,B0=[],vv=[],y1=0;y10&&arguments[0]!==void 0?arguments[0]:1,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,V=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,he=a/2,be=p/2,ut=Math.floor(y),Pt=Math.floor(w),qt=ut+1,En=Pt+1,qn=a/ut,Zr=p/Pt,Si=[],to=[],ts=0;tsFr&&(m.positions[Go+2]=st)):(m.positions[Go+2]-=Ze,m.positions[Go+2]0&&arguments[0]!==void 0?arguments[0]:10,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,J=[],ue=[],Ze=this.mapService,st=this.spriteAnimate===XM.UP?-this.spriteTop:this.spriteTop,Fr=0;Frut&&(c.positions[Pt+2]=be)):(c.positions[Pt+2]-=he,c.positions[Pt+2]0&&arguments[0]!==void 0?arguments[0]:10,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,O=[],V=[],he=this.mapService,be=this.spriteAnimate===Hx.UP?-this.spriteTop:this.spriteTop,ut=0;ut=i.colors.length?null:i.colors[m]),(0,Na.Z)(d,"value",f),d})}}function CY(i){var v=AZ();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function AZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var HU=function(i){(0,Ht.Z)(f,i);var v=CY(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{},M=this.getModelType();return M==="heatmap"?(this.layerModel&&this.layerModel.render(E),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(B){return B.draw({uniforms:d.layerModel.getUninforms(),blend:d.layerModel.getBlend(),stencil:d.layerModel.getStencil(E)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(d){d.attributes&&d.elements?this.models[0].updateAttributesAndElements(d.attributes,d.elements):console.warn("data error")}},{key:"getModelType",value:function(){var d,E=this.styleAttributeService.getLayerStyleAttribute("shape"),M=this.getLayerConfig(),B=M.shape3d,J=this.getSource(),ue=J.data.type,Ze=(E==null||(d=E.scale)===null||d===void 0?void 0:d.field)||"heatmap";return Ze==="heatmap"||Ze==="heatmap3d"?"heatmap":ue==="hexagon"?(B==null?void 0:B.indexOf(Ze))===-1?"hexagon":"grid3d":ue==="grid"?(B==null?void 0:B.indexOf(Ze))===-1?"grid":"grid3d":"heatmap"}},{key:"getLegend",value:function(d){if(this.getModelType()==="heatmap"){if(d!=="color")return{type:void 0,field:void 0,items:[]};var E=this.getLayerConfig().rampColors;return iz(E,d)}else return PS((0,oi.Z)(f.prototype),"getLegend",this).call(this,d)}}]),f}(q4);function Mre(i){var v=FO();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function FO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var SY=`uniform sampler2D u_texture; +`,Hw=function(i){(0,ze.Z)(l,i);var d=gW(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getUninforms",value:function(){var a=this.getCommonUniformsInfo(),p=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,Xe.Z)((0,Xe.Z)({},a.uniformsOption),p.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var a=this.layer.getLayerConfig(),p=a.opacity,y=a.coverage,w=a.angle,O={u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset],u_opacity:p||1,u_coverage:y||.9,u_angle:w||0},V=this.getUniformsBufferInfo(O);return V}},{key:"initModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",this.buildModels());case 1:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y;return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return this.initUniformsBuffer(),O.next=3,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:J4,fragmentShader:vW,triangulation:RP,depth:{enable:!1},primitive:Fi.TRIANGLES});case 3:return y=O.sent,O.abrupt("return",[y]);case 5:case"end":return O.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:lf.Attribute,descriptor:{name:"a_Pos",shaderLocation:10,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p){var y=p.version==="GAODE2.x"?p.originCoordinates:p.coordinates;return[y[0],y[1],0]}}})}}]),l}($u),W2={heatmap:CO,heatmap3d:CO,grid:fW,grid3d:cx,hexagon:Hw},Gw=W2;function Q4(i,d){return{type:i.type,field:"value",items:i.positions.map(function(l,c){var a;return a={},(0,pn.Z)(a,d,c>=i.colors.length?null:i.colors[c]),(0,pn.Z)(a,"value",l),a})}}function h7(i){var d=wO();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function wO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var $P=function(i){(0,ze.Z)(l,i);var d=h7(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&arguments[0]!==void 0?arguments[0]:{},y=this.getModelType();return y==="heatmap"?(this.layerModel&&this.layerModel.render(p),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(w){return w.draw({uniforms:a.layerModel.getUninforms(),blend:a.layerModel.getBlend(),stencil:a.layerModel.getStencil(p)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(a){a.attributes&&a.elements?this.models[0].updateAttributesAndElements(a.attributes,a.elements):console.warn("data error")}},{key:"getModelType",value:function(){var a,p=this.styleAttributeService.getLayerStyleAttribute("shape"),y=this.getLayerConfig(),w=y.shape3d,O=this.getSource(),V=O.data.type,he=(p==null||(a=p.scale)===null||a===void 0?void 0:a.field)||"heatmap";return he==="heatmap"||he==="heatmap3d"?"heatmap":V==="hexagon"?(w==null?void 0:w.indexOf(he))===-1?"hexagon":"grid3d":V==="grid"?(w==null?void 0:w.indexOf(he))===-1?"grid":"grid3d":"heatmap"}},{key:"getLegend",value:function(a){if(this.getModelType()==="heatmap"){if(a!=="color")return{type:void 0,field:void 0,items:[]};var p=this.getLayerConfig().rampColors;return Q4(p,a)}else return Af((0,Tt.Z)(l.prototype),"getLegend",this).call(this,a)}}]),l}(Gy);function yW(i){var d=kC();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function kC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var d7=`uniform sampler2D u_texture; layout(std140) uniform commonUniforms { float u_opacity:1.0; float u_brightness:1.0; @@ -1989,7 +1989,7 @@ void main() { if(outputColor.a < 0.01) discard; } -`,Ore=`layout(location = 0) in vec3 a_Position; +`,_W=`layout(location = 0) in vec3 a_Position; layout(location = 14) in vec2 a_Uv; layout(std140) uniform commonUniforms { @@ -2008,7 +2008,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,Rre=function(i){(0,Ht.Z)(f,i);var v=Mre(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),E=d.opacity,M=d.brightness,B=d.contrast,J=d.saturation,ue=d.gamma,Ze={u_opacity:Zg(E,1),u_brightness:Zg(M,1),u_contrast:Zg(B,1),u_saturation:Zg(J,1),u_gamma:Zg(ue,1)};this.textures=[this.texture];var st=this.getUniformsBufferInfo(Ze);return st}},{key:"initModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.loadTexture();case 2:return B.abrupt("return",this.buildModels());case 3:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy()}},{key:"loadTexture",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J;return Pv().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return M=this.rendererService.createTexture2D,this.texture=M({height:1,width:1}),B=this.layer.getSource(),Ze.next=5,B.data.images;case 5:J=Ze.sent,this.texture=M({data:J[0],width:J[0].width,height:J[0].height,mag:J0.LINEAR,min:J0.LINEAR});case 7:case"end":return Ze.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M;return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.initUniformsBuffer(),J.next=3,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:Ore,fragmentShader:SY,triangulation:b7,primitive:J0.TRIANGLES,blend:{enable:!0},depth:{enable:!1},pickingEnabled:!1});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:pS.Attribute,descriptor:{name:"a_Uv",shaderLocation:aE.UV,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:2,update:function(E,M,B){return[B[3],B[4]]}}})}}]),f}(Xx),kre={image:Rre},D7=kre;function EY(i){var v=s8();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function s8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var oz=function(i){(0,Ht.Z)(f,i);var v=EY(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M1&&arguments[1]!==void 0?arguments[1]:0,f=arguments.length>2?arguments[2]:void 0,m=(0,Ww.Z)(f.source)==="object"?f.source.type:f.source,d=(0,Ww.Z)(f.target)==="object"?f.target.type:f.target,E=(0,Ww.Z)(f.source)==="object"?f.source:{},M=E.width,B=M===void 0?m?XR[m]:0:M,J=E.height,ue=J===void 0?2:J,Ze=(0,Ww.Z)(f.target)==="object"?f.target:{},st=Ze.width,Fr=st===void 0?d?XR[d]:0:st,Go=Ze.height,Ta=Go===void 0?2:Go;return{vertices:[0,IL,1*B].concat((0,su.Z)(i),[1,IL,-1*Fr],(0,su.Z)(i),[1,-IL,-1*Fr],(0,su.Z)(i),[0,-IL,1*B],(0,su.Z)(i),[0,IL,1*B],(0,su.Z)(i),[1,IL,-1*Fr],(0,su.Z)(i),[1,-IL,-1*Fr],(0,su.Z)(i),[0,-IL,1*B],(0,su.Z)(i)),outLineIndices:[0,1,2,0,2,3].map(function(eu){return eu+v}),indices:[4,5,6,4,6,7].map(function(eu){return eu+v}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function hN(i,v){var f=(0,Ww.Z)(i)==="object"?i.type:i,m=v==="source"?1:-1,d=(0,Ww.Z)(i)==="object"?i:{};switch(f){case"circle":return Ure(m,d);case"triangle":return PZ(m,d);case"diamond":return J5(m,d);case"rect":return DY(m,d);case"classic":return IY(m,d);case"halfTriangle":return IZ(m,d);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function NT(i){var v=i.coordinates.flat(),f=1,m=1;return{vertices:[1,0,0].concat((0,su.Z)(v),[1,2,-3],(0,su.Z)(v),[1,1,-3],(0,su.Z)(v),[0,1,0],(0,su.Z)(v),[0,0,0],(0,su.Z)(v),[1,0,0],(0,su.Z)(v),[1,2,-3],(0,su.Z)(v),[1,1,-3],(0,su.Z)(v),[0,1,0],(0,su.Z)(v),[0,0,0],(0,su.Z)(v)),normals:[-f,2*m,1,2*m,-m,1,m,-m,1,m,-m,1,-f,-m,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function PY(i,v){return v?LY(i,v):NT(i)}function LY(i,v){var f=i.coordinates.flat(),m=v,d=m.target,E=d===void 0?"classic":d,M=m.source,B=M===void 0?"circle":M,J=MY(hN(B,"source"),f,0,0),ue=Vre(f,J.vertices.length/7,v),Ze=MY(hN(E,"target"),f,1,J.vertices.length/7+ue.vertices.length/7),st={vertices:[].concat((0,su.Z)(J.vertices),(0,su.Z)(ue.vertices),(0,su.Z)(Ze.vertices)),indices:[].concat((0,su.Z)(J.outLineIndices),(0,su.Z)(ue.outLineIndices),(0,su.Z)(Ze.outLineIndices),(0,su.Z)(J.indices),(0,su.Z)(ue.indices),(0,su.Z)(Ze.indices)),normals:[].concat((0,su.Z)(J.normals),(0,su.Z)(ue.normals),(0,su.Z)(Ze.normals)),size:7};return st}function MY(i,v){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=[],E=i.vertices,M=i.indices,B=i.dimensions,J=i.outLineIndices,ue=0;ue1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0,c=(0,rd.Z)(l.source)==="object"?l.source.type:l.source,a=(0,rd.Z)(l.target)==="object"?l.target.type:l.target,p=(0,rd.Z)(l.source)==="object"?l.source:{},y=p.width,w=y===void 0?c?j2[c]:0:y,O=p.height,V=O===void 0?2:O,he=(0,rd.Z)(l.target)==="object"?l.target:{},be=he.width,ut=be===void 0?a?j2[a]:0:be,Pt=he.height,qt=Pt===void 0?2:Pt;return{vertices:[0,Eb,1*w].concat((0,Ln.Z)(i),[1,Eb,-1*ut],(0,Ln.Z)(i),[1,-Eb,-1*ut],(0,Ln.Z)(i),[0,-Eb,1*w],(0,Ln.Z)(i),[0,Eb,1*w],(0,Ln.Z)(i),[1,Eb,-1*ut],(0,Ln.Z)(i),[1,-Eb,-1*ut],(0,Ln.Z)(i),[0,-Eb,1*w],(0,Ln.Z)(i)),outLineIndices:[0,1,2,0,2,3].map(function(En){return En+d}),indices:[4,5,6,4,6,7].map(function(En){return En+d}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function uE(i,d){var l=(0,rd.Z)(i)==="object"?i.type:i,c=d==="source"?1:-1,a=(0,rd.Z)(i)==="object"?i:{};switch(l){case"circle":return TW(c,a);case"triangle":return AO(c,a);case"diamond":return Kw(c,a);case"rect":return m7(c,a);case"classic":return v7(c,a);case"halfTriangle":return EO(c,a);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function Lg(i){var d=i.coordinates.flat(),l=1,c=1;return{vertices:[1,0,0].concat((0,Ln.Z)(d),[1,2,-3],(0,Ln.Z)(d),[1,1,-3],(0,Ln.Z)(d),[0,1,0],(0,Ln.Z)(d),[0,0,0],(0,Ln.Z)(d),[1,0,0],(0,Ln.Z)(d),[1,2,-3],(0,Ln.Z)(d),[1,1,-3],(0,Ln.Z)(d),[0,1,0],(0,Ln.Z)(d),[0,0,0],(0,Ln.Z)(d)),normals:[-l,2*c,1,2*c,-c,1,c,-c,1,c,-c,1,-l,-c,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function y7(i,d){return d?_7(i,d):Lg(i)}function _7(i,d){var l=i.coordinates.flat(),c=d,a=c.target,p=a===void 0?"classic":a,y=c.source,w=y===void 0?"circle":y,O=b7(uE(w,"source"),l,0,0),V=DW(l,O.vertices.length/7,d),he=b7(uE(p,"target"),l,1,O.vertices.length/7+V.vertices.length/7),be={vertices:[].concat((0,Ln.Z)(O.vertices),(0,Ln.Z)(V.vertices),(0,Ln.Z)(he.vertices)),indices:[].concat((0,Ln.Z)(O.outLineIndices),(0,Ln.Z)(V.outLineIndices),(0,Ln.Z)(he.outLineIndices),(0,Ln.Z)(O.indices),(0,Ln.Z)(V.indices),(0,Ln.Z)(he.indices)),normals:[].concat((0,Ln.Z)(O.normals),(0,Ln.Z)(V.normals),(0,Ln.Z)(he.normals)),size:7};return be}function b7(i,d){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=[],p=i.vertices,y=i.indices,w=i.dimensions,O=i.outLineIndices,V=0;V0&&M.enable){var J1=M.speed,ey=J1===void 0?.01:J1;this.raiseCount+=ey,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var Fy={u_sourceColor:y1,u_targetColor:fy,u_linearColor:vv,u_pickLight:Number(Fr),u_heightfixed:Number(Ta),u_r:M.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:iie(J)?J:1,u_opacitylinear:Number(kd.enable),u_opacitylinear_dir:kd.dir==="up"?1:0,u_lightEnable:Number(B0)},C_=this.getUniformsBufferInfo(Fy);return C_}},{key:"initModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.layer.getLayerConfig(),B=M.animateOption.repeat,J=B===void 0?1:B,this.raiseRepeat=J,st.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:rie,fragmentShader:az,triangulation:gZ,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:lv(this.mapService.version)},blend:this.getBlend()});case 4:return ue=st.sent,st.abrupt("return",[ue]);case 6:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:pS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E){var M=E.size;if(M){var B=[];return Array.isArray(M)&&(B=M.length===2?[M[0],M[0],M[1]]:M),Array.isArray(M)||(B=[M,M,M]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:pS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:pS.Attribute,descriptor:{name:"a_Pos",shaderLocation:15,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E){var M=vC(E.coordinates);return Y9([M[0],M[1]])}}})}}]),f}(Xx);function xD(i){var v=NY();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function NY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var oie=`in vec4 v_data; +`,ZW=ks.isNumber,w7=function(i){(0,ze.Z)(l,i);var d=$W(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&y.enable){var Fs=y.speed,Us=Fs===void 0?.01:Fs;this.raiseCount+=Us,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var Sa={u_sourceColor:ts,u_targetColor:Qs,u_linearColor:to,u_pickLight:Number(ut),u_heightfixed:Number(qt),u_r:y.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:ZW(O)?O:1,u_opacitylinear:Number(qn.enable),u_opacitylinear_dir:qn.dir==="up"?1:0,u_lightEnable:Number(Si)},dl=this.getUniformsBufferInfo(Sa);return dl}},{key:"initModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return this.initUniformsBuffer(),w.abrupt("return",this.buildModels());case 2:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.layer.getLayerConfig(),w=y.animateOption.repeat,O=w===void 0?1:w,this.raiseRepeat=O,be.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:WW,fragmentShader:nL,triangulation:hO,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:qi(this.mapService.version)},blend:this.getBlend()});case 4:return V=be.sent,be.abrupt("return",[V]);case 6:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:lf.Attribute,descriptor:{name:"a_Size",shaderLocation:np.SIZE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p){var y=p.size;if(y){var w=[];return Array.isArray(y)&&(w=y.length===2?[y[0],y[0],y[1]]:y),Array.isArray(y)||(w=[y,y,y]),w}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:lf.Attribute,descriptor:{name:"a_Normal",shaderLocation:np.NORMAL,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p,y,w,O,V){return V}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:lf.Attribute,descriptor:{name:"a_Pos",shaderLocation:15,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p){var y=hd(p.coordinates);return j4([y[0],y[1]])}}})}}]),l}($u);function mv(i){var d=S7();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function S7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var jW=`in vec4 v_data; in vec4 v_color; in float v_radius; @@ -3774,7 +3774,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,RZ=`layout(location = 0) in vec3 a_Position; +`,LO=`layout(location = 0) in vec3 a_Position; layout(location = 1) in vec4 a_Color; layout(location = 9) in float a_Size; layout(location = 10) in float a_Shape; @@ -3819,7 +3819,7 @@ void main() { gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + vec3(u_offsets,0.0), 1.0); setPickingColor(a_PickingColor); -}`,eV=function(i){(0,Ht.Z)(f,i);var v=xD(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),E=d.strokeOpacity,M=E===void 0?1:E,B=d.strokeWidth,J=B===void 0?0:B,ue=d.blend,Ze=d.blur,st=Ze===void 0?0:Ze;this.layer.getLayerConfig();var Fr={u_additive:ue==="additive"?1:0,u_stroke_opacity:M,u_stroke_width:J,u_blur:st},Go=this.getUniformsBufferInfo(Fr);return Go}},{key:"initModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.initUniformsBuffer(),B.abrupt("return",this.buildModels());case 2:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M;return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.layer.triangulation=pY,J.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:RZ,fragmentShader:oie,triangulation:pY,inject:this.getInject(),depth:{enable:!0},blend:this.getBlend()});case 3:return M=J.sent,J.abrupt("return",[M]);case 5:case"end":return J.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"animateOption2Array",value:function(d){return[d.enable?0:1,d.speed||1,d.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var d=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:pS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(M,B,J,ue){var Ze=(0,hu.Z)(J,3),st=Ze[0],Fr=Ze[1],Go=Ze[2],Ta=YA(0,0,1),eu=YA(st,0,Go),kd=st>=0?dZ(Ta,eu):Math.PI*2-dZ(Ta,eu),em=Math.PI*2-Math.asin(Fr/100),B0=Jx();X1(B0,B0,kd),a3(B0,B0,em);var vv=YA(1,1,0);h7(vv,vv,B0),gP(vv,vv);var y1=YA(-1,1,0);h7(y1,y1,B0),gP(y1,y1);var fy=YA(-1,-1,0);h7(fy,fy,B0),gP(fy,fy);var J1=YA(1,-1,0);h7(J1,J1,B0),gP(J1,J1);var ey=[].concat((0,su.Z)(vv),(0,su.Z)(y1),(0,su.Z)(fy),(0,su.Z)(J1)),Fy=ue%4*3;return[ey[Fy],ey[Fy+1],ey[Fy+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:pS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(M){var B=M.size,J=B===void 0?5:B;return Array.isArray(J)?[J[0]]:[J]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:pS.Attribute,descriptor:{name:"a_Shape",shaderLocation:aE.SHAPE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(M){var B=M.shape,J=B===void 0?2:B,ue=d.layer.getLayerConfig().shape2d,Ze=ue.indexOf(J);return[Ze]}}})}}]),f}(Xx);function FY(i){var v=BY();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function BY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var GA=` +}`,YP=function(i){(0,ze.Z)(l,i);var d=mv(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getCommonUniformsInfo",value:function(){var a=this.layer.getLayerConfig(),p=a.strokeOpacity,y=p===void 0?1:p,w=a.strokeWidth,O=w===void 0?0:w,V=a.blend,he=a.blur,be=he===void 0?0:he;this.layer.getLayerConfig();var ut={u_additive:V==="additive"?1:0,u_stroke_opacity:y,u_stroke_width:O,u_blur:be},Pt=this.getUniformsBufferInfo(ut);return Pt}},{key:"initModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return this.initUniformsBuffer(),w.abrupt("return",this.buildModels());case 2:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y;return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return this.layer.triangulation=n7,O.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:LO,fragmentShader:jW,triangulation:n7,inject:this.getInject(),depth:{enable:!0},blend:this.getBlend()});case 3:return y=O.sent,O.abrupt("return",[y]);case 5:case"end":return O.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:lf.Attribute,descriptor:{name:"a_Extrude",shaderLocation:np.EXTRUDE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(y,w,O,V){var he=(0,zn.Z)(O,3),be=he[0],ut=he[1],Pt=he[2],qt=Km(0,0,1),En=Km(be,0,Pt),qn=be>=0?aO(qt,En):Math.PI*2-aO(qt,En),Zr=Math.PI*2-Math.asin(ut/100),Si=Nu();Ps(Si,Si,qn),i0(Si,Si,Zr);var to=Km(1,1,0);uD(to,to,Si),h_(to,to);var ts=Km(-1,1,0);uD(ts,ts,Si),h_(ts,ts);var Qs=Km(-1,-1,0);uD(Qs,Qs,Si),h_(Qs,Qs);var Fs=Km(1,-1,0);uD(Fs,Fs,Si),h_(Fs,Fs);var Us=[].concat((0,Ln.Z)(to),(0,Ln.Z)(ts),(0,Ln.Z)(Qs),(0,Ln.Z)(Fs)),Sa=V%4*3;return[Us[Sa],Us[Sa+1],Us[Sa+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:lf.Attribute,descriptor:{name:"a_Size",shaderLocation:np.SIZE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(y){var w=y.size,O=w===void 0?5:w;return Array.isArray(O)?[O[0]]:[O]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:lf.Attribute,descriptor:{name:"a_Shape",shaderLocation:np.SHAPE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(y){var w=y.shape,O=w===void 0?2:w,V=a.layer.getLayerConfig().shape2d,he=V.indexOf(O);return[he]}}})}}]),l}($u);function E7(i){var d=A7();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function A7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Zm=` in vec4 v_color; in float v_lightWeight; out vec4 outputColor; @@ -3850,7 +3850,7 @@ void main() { outputColor = filterColor(outputColor); } } -`,YD=`#define pi 3.1415926535 +`,jv=`#define pi 3.1415926535 layout(location = 0) in vec3 a_Position; layout(location = 1) in vec4 a_Color; @@ -3949,7 +3949,7 @@ void main() { setPickingColor(a_PickingColor); } -`,lz=function(i){(0,Ht.Z)(f,i);var v=FY(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&M.enable){var y1=M.speed,fy=y1===void 0?.01:y1;this.raiseCount+=fy,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var J1={u_pickLight:Number(Ze),u_heightfixed:Number(Fr),u_r:M.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:em,u_sourceColor:B0,u_targetColor:vv,u_opacitylinear:Number(Ta.enable),u_opacitylinear_dir:Ta.dir==="up"?1:0,u_lightEnable:Number(kd)},ey=this.getUniformsBufferInfo(J1);return ey}},{key:"initModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st;return Pv().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:return M=this.layer.getLayerConfig(),B=M.depth,J=B===void 0?!0:B,ue=M.animateOption.repeat,Ze=ue===void 0?1:ue,this.raiseRepeat=Ze,this.initUniformsBuffer(),Go.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:YD,fragmentShader:GA,triangulation:gZ,inject:this.getInject(),cull:{enable:!0,face:lv(this.mapService.version)},depth:{enable:J}});case 5:return st=Go.sent,Go.abrupt("return",[st]);case 7:case"end":return Go.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:pS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E){var M=E.size;if(M){var B=[];return Array.isArray(M)&&(B=M.length===2?[M[0],M[0],M[1]]:M),Array.isArray(M)||(B=[M,M,M]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:pS.Attribute,descriptor:{name:"a_Normal",shaderLocation:aE.NORMAL,buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E,M,B,J,ue){return ue}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:pS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(E){var M=vC(E.coordinates);return[M[0],M[1],0]}}})}}]),f}(Xx);function O7(i){var v=kZ();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function kZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var jI=` +`,rL=function(i){(0,ze.Z)(l,i);var d=E7(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&y.enable){var ts=y.speed,Qs=ts===void 0?.01:ts;this.raiseCount+=Qs,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var Fs={u_pickLight:Number(he),u_heightfixed:Number(ut),u_r:y.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:Zr,u_sourceColor:Si,u_targetColor:to,u_opacitylinear:Number(qt.enable),u_opacitylinear_dir:qt.dir==="up"?1:0,u_lightEnable:Number(qn)},Us=this.getUniformsBufferInfo(Fs);return Us}},{key:"initModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",this.buildModels());case 1:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be;return mo().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return y=this.layer.getLayerConfig(),w=y.depth,O=w===void 0?!0:w,V=y.animateOption.repeat,he=V===void 0?1:V,this.raiseRepeat=he,this.initUniformsBuffer(),Pt.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:jv,fragmentShader:Zm,triangulation:hO,inject:this.getInject(),cull:{enable:!0,face:qi(this.mapService.version)},depth:{enable:O}});case 5:return be=Pt.sent,Pt.abrupt("return",[be]);case 7:case"end":return Pt.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:lf.Attribute,descriptor:{name:"a_Size",shaderLocation:np.SIZE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p){var y=p.size;if(y){var w=[];return Array.isArray(y)&&(w=y.length===2?[y[0],y[0],y[1]]:y),Array.isArray(y)||(w=[y,y,y]),w}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:lf.Attribute,descriptor:{name:"a_Normal",shaderLocation:np.NORMAL,buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p,y,w,O,V){return V}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:lf.Attribute,descriptor:{name:"a_Extrude",shaderLocation:np.EXTRUDE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(p){var y=hd(p.coordinates);return[y[0],y[1],0]}}})}}]),l}($u);function LD(i){var d=MO();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function MO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var B1=` layout(std140) uniform commonUniforms { vec3 u_blur_height_fixed; float u_stroke_width; @@ -4049,7 +4049,7 @@ void main() { discard; } } -`,sie=`layout(location = 0) in vec3 a_Position; +`,HW=`layout(location = 0) in vec3 a_Position; layout(location = 1) in vec4 a_Color; layout(location = 9) in float a_Size; layout(location = 10) in float a_Shape; @@ -4130,7 +4130,7 @@ void main() { setPickingColor(a_PickingColor); } -`,c8=function(i){(0,Ht.Z)(f,i);var v=O7(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getCommonUniformsInfo",value:function(){var d=this.layer.getLayerConfig(),E=d.strokeOpacity,M=E===void 0?1:E,B=d.strokeWidth,J=B===void 0?0:B,ue=d.blend,Ze=d.blur,st=Ze===void 0?0:Ze,Fr=d.raisingHeight,Go=Fr===void 0?0:Fr,Ta=d.heightfixed,eu=Ta===void 0?!1:Ta,kd=d.unit,em=kd===void 0?"pixel":kd,B0=this.getAnimateUniforms().u_time;isNaN(B0)&&(B0=-1);var vv={u_blur_height_fixed:[st,Number(Go),Number(eu)],u_stroke_width:J,u_additive:ue==="additive"?1:0,u_stroke_opacity:M,u_size_unit:oT[em],u_time:B0,u_animate:this.getAnimateUniforms().u_animate},y1=this.getUniformsBufferInfo(vv);return y1}},{key:"getAnimateUniforms",value:function(){var d=this.layer.getLayerConfig(),E=d.animateOption,M=E===void 0?{enable:!1}:E;return{u_animate:this.animateOption2Array(M),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Yr)}},{key:"initModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"buildModels",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st,Fr,Go;return Pv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:return M=this.layer.getLayerConfig(),B=M.animateOption,J=B===void 0?{enable:!1}:B,ue=this.getShaders(J),Ze=ue.frag,st=ue.vert,Fr=ue.type,this.layer.triangulation=Yr,this.initUniformsBuffer(),eu.next=6,this.layer.buildLayerModel({moduleName:Fr,vertexShader:st,fragmentShader:Ze,inject:this.getInject(),triangulation:Yr,depth:{enable:!1}});case 6:return Go=eu.sent,eu.abrupt("return",[Go]);case 8:case"end":return eu.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getShaders",value:function(d){return{frag:jI,vert:sie,type:"pointFill"}}},{key:"animateOption2Array",value:function(d){return[d.enable?0:1,d.speed||1,d.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var d=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:pS.Attribute,descriptor:{name:"a_Extrude",shaderLocation:aE.EXTRUDE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:3,update:function(M,B,J,ue){var Ze=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],st=ue%4*3;return[Ze[st],Ze[st+1],Ze[st+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:pS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(M){var B=M.size,J=B===void 0?5:B;return Array.isArray(J)?[J[0]]:[J]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:pS.Attribute,descriptor:{name:"a_Shape",shaderLocation:aE.SHAPE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(M){var B=M.shape,J=B===void 0?2:B,ue=d.indexOf(J);return[ue]}}})}}]),f}(Xx);function zY(i){var v=R7();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function R7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var $Y=`in vec2 v_uv;// \u672C\u8EAB\u7684 uv \u5750\u6807 +`,aT=function(i){(0,ze.Z)(l,i);var d=LD(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getCommonUniformsInfo",value:function(){var a=this.layer.getLayerConfig(),p=a.strokeOpacity,y=p===void 0?1:p,w=a.strokeWidth,O=w===void 0?0:w,V=a.blend,he=a.blur,be=he===void 0?0:he,ut=a.raisingHeight,Pt=ut===void 0?0:ut,qt=a.heightfixed,En=qt===void 0?!1:qt,qn=a.unit,Zr=qn===void 0?"pixel":qn,Si=this.getAnimateUniforms().u_time;isNaN(Si)&&(Si=-1);var to={u_blur_height_fixed:[be,Number(Pt),Number(En)],u_stroke_width:O,u_additive:V==="additive"?1:0,u_stroke_opacity:y,u_size_unit:tg[Zr],u_time:Si,u_animate:this.getAnimateUniforms().u_animate},ts=this.getUniformsBufferInfo(to);return ts}},{key:"getAnimateUniforms",value:function(){var a=this.layer.getLayerConfig(),p=a.animateOption,y=p===void 0?{enable:!1}:p;return{u_animate:this.animateOption2Array(y),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),mn)}},{key:"initModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",this.buildModels());case 1:case"end":return w.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"buildModels",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be,ut,Pt;return mo().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return y=this.layer.getLayerConfig(),w=y.animateOption,O=w===void 0?{enable:!1}:w,V=this.getShaders(O),he=V.frag,be=V.vert,ut=V.type,this.layer.triangulation=mn,this.initUniformsBuffer(),En.next=6,this.layer.buildLayerModel({moduleName:ut,vertexShader:be,fragmentShader:he,inject:this.getInject(),triangulation:mn,depth:{enable:!1}});case 6:return Pt=En.sent,En.abrupt("return",[Pt]);case 8:case"end":return En.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getShaders",value:function(a){return{frag:B1,vert:HW,type:"pointFill"}}},{key:"animateOption2Array",value:function(a){return[a.enable?0:1,a.speed||1,a.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var a=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:lf.Attribute,descriptor:{name:"a_Extrude",shaderLocation:np.EXTRUDE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:3,update:function(y,w,O,V){var he=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],be=V%4*3;return[he[be],he[be+1],he[be+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:lf.Attribute,descriptor:{name:"a_Size",shaderLocation:np.SIZE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(y){var w=y.size,O=w===void 0?5:w;return Array.isArray(O)?[O[0]]:[O]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:lf.Attribute,descriptor:{name:"a_Shape",shaderLocation:np.SHAPE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(y){var w=y.shape,O=w===void 0?2:w,V=a.indexOf(O);return[V]}}})}}]),l}($u);function T7(i){var d=MD();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function MD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var D7=`in vec2 v_uv;// \u672C\u8EAB\u7684 uv \u5750\u6807 in vec2 v_Iconuv; in float v_opacity; out vec4 outputColor; @@ -4153,7 +4153,7 @@ void main() { outputColor.a *= v_opacity; outputColor = filterColor(outputColor); } -`,d8=`layout(location = 0) in vec3 a_Position; +`,lT=`layout(location = 0) in vec3 a_Position; layout(location = 1) in vec4 a_Color; layout(location = 9) in float a_Size; layout(location = 11) in vec3 a_Extrude; @@ -4210,7 +4210,7 @@ void main() { setPickingColor(a_PickingColor); } -`,aie=function(i){(0,Ht.Z)(f,i);var v=zY(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function pie(i,v){if(i){if(typeof i=="string")return FZ(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return FZ(i,v)}}function FZ(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fthis.width||E<0||m>this.height)return M?!1:[];var J=[];if(f<=0&&m<=0&&this.width<=d&&this.height<=E){if(M)return!0;for(var ue=0;ue0:J}},{key:"queryCell",value:function(f,m,d,E,M,B,J,ue){var Ze=J.seenUids,st=this.boxCells[M];if(st!==null){var Fr=this.bboxes,Go=h8(st),Ta;try{for(Go.s();!(Ta=Go.n()).done;){var eu=Ta.value;if(!Ze.box[eu]){Ze.box[eu]=!0;var kd=eu*4;if(f<=Fr[kd+2]&&m<=Fr[kd+3]&&d>=Fr[kd+0]&&E>=Fr[kd+1]&&(!ue||ue(this.boxKeys[eu]))){if(J.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[eu],x1:Fr[kd],y1:Fr[kd+1],x2:Fr[kd+2],y2:Fr[kd+3]})}}}}catch(em){Go.e(em)}finally{Go.f()}}return!1}},{key:"forEachCell",value:function(f,m,d,E,M,B,J,ue){for(var Ze=this.convertToXCellCoord(f),st=this.convertToYCellCoord(m),Fr=this.convertToXCellCoord(d),Go=this.convertToYCellCoord(E),Ta=Ze;Ta<=Fr;Ta++)for(var eu=st;eu<=Go;eu++){var kd=this.xCellCount*eu+Ta;if(M.call(this,f,m,d,E,kd,B,J,ue))return}}},{key:"convertToXCellCoord",value:function(f){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(f*this.xScale)))}},{key:"convertToYCellCoord",value:function(f){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(f*this.yScale)))}}]),i}(),BZ=gie,mie=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"viewportPadding",100),this.width=v,this.height=f,this.viewportPadding=Math.max(v,f),this.grid=new BZ(v+this.viewportPadding,f+this.viewportPadding,25),this.screenRightBoundary=v+this.viewportPadding,this.screenBottomBoundary=f+this.viewportPadding,this.gridRightBoundary=v+2*this.viewportPadding,this.gridBottomBoundary=f+2*this.viewportPadding}return(0,gt.Z)(i,[{key:"placeCollisionBox",value:function(f){var m=f.x1+f.anchorPointX+this.viewportPadding,d=f.y1+f.anchorPointY+this.viewportPadding,E=f.x2+f.anchorPointX+this.viewportPadding,M=f.y2+f.anchorPointY+this.viewportPadding;return!this.isInsideGrid(m,d,E,M)||this.grid.hitTest(m,d,E,M)?{box:[]}:{box:[m,d,E,M]}}},{key:"insertCollisionBox",value:function(f,m){var d={featureIndex:m};this.grid.insert(d,f[0],f[1],f[2],f[3])}},{key:"project",value:function(f,m,d){var E=Nt(m,d,0,1),M=ve(),B=v2.apply(b,(0,su.Z)(f));return oC(M,E,B),{x:(M[0]/M[3]+1)/2*this.width+this.viewportPadding,y:(-M[1]/M[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(f,m,d,E){return d>=0&&f=0&&m=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function zZ(i,v){if(i){if(typeof i=="string")return ZY(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return ZY(i,v)}}function ZY(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f6&&arguments[6]!==void 0?arguments[6]:[0,0],B=arguments.length>7?arguments[7]:void 0,J=i.split(` -`),ue=[],Ze={positionedGlyphs:ue,top:M[1],bottom:M[1],left:M[0],right:M[0],lineCount:J.length,text:i};return B?B7(Ze,v,J,f,m,d,E):p8(Ze,v,J,f,m,d,E),ue.length?Ze:!1}function UZ(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],f=arguments.length>2?arguments[2]:void 0,m=i.positionedGlyphs,d=m===void 0?[]:m,E=[],M=WY(d),B;try{for(M.s();!(B=M.n()).done;){var J=B.value,ue=J.metrics,Ze=4,st=ue.advance*J.scale/2,Fr=f?[J.x+st,J.y]:[0,0],Go=f?[0,0]:[J.x+st+v[0],J.y+v[1]],Ta=(0-Ze)*J.scale-st+Go[0],eu=(0-Ze)*J.scale+Go[1],kd=Ta+ue.width*J.scale,em=eu+ue.height*J.scale,B0={x:Ta,y:eu},vv={x:kd,y:eu},y1={x:Ta,y:em},fy={x:kd,y:em};E.push({tl:B0,tr:vv,bl:y1,br:fy,tex:ue,glyphOffset:Fr})}}catch(J1){M.e(J1)}finally{M.f()}return E}function HY(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=vie(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function vie(i,v){if(i){if(typeof i=="string")return z7(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return z7(i,v)}}function z7(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function eZ(i,d){if(i){if(typeof i=="string")return RO(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return RO(i,d)}}function RO(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lthis.width||p<0||c>this.height)return y?!1:[];var O=[];if(l<=0&&c<=0&&this.width<=a&&this.height<=p){if(y)return!0;for(var V=0;V0:O}},{key:"queryCell",value:function(l,c,a,p,y,w,O,V){var he=O.seenUids,be=this.boxCells[y];if(be!==null){var ut=this.bboxes,Pt=uT(be),qt;try{for(Pt.s();!(qt=Pt.n()).done;){var En=qt.value;if(!he.box[En]){he.box[En]=!0;var qn=En*4;if(l<=ut[qn+2]&&c<=ut[qn+3]&&a>=ut[qn+0]&&p>=ut[qn+1]&&(!V||V(this.boxKeys[En]))){if(O.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[En],x1:ut[qn],y1:ut[qn+1],x2:ut[qn+2],y2:ut[qn+3]})}}}}catch(Zr){Pt.e(Zr)}finally{Pt.f()}}return!1}},{key:"forEachCell",value:function(l,c,a,p,y,w,O,V){for(var he=this.convertToXCellCoord(l),be=this.convertToYCellCoord(c),ut=this.convertToXCellCoord(a),Pt=this.convertToYCellCoord(p),qt=he;qt<=ut;qt++)for(var En=be;En<=Pt;En++){var qn=this.xCellCount*En+qt;if(y.call(this,l,c,a,p,qn,w,O,V))return}}},{key:"convertToXCellCoord",value:function(l){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(l*this.xScale)))}},{key:"convertToYCellCoord",value:function(l){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(l*this.yScale)))}}]),i}(),kO=tZ,nZ=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"viewportPadding",100),this.width=d,this.height=l,this.viewportPadding=Math.max(d,l),this.grid=new kO(d+this.viewportPadding,l+this.viewportPadding,25),this.screenRightBoundary=d+this.viewportPadding,this.screenBottomBoundary=l+this.viewportPadding,this.gridRightBoundary=d+2*this.viewportPadding,this.gridBottomBoundary=l+2*this.viewportPadding}return(0,Te.Z)(i,[{key:"placeCollisionBox",value:function(l){var c=l.x1+l.anchorPointX+this.viewportPadding,a=l.y1+l.anchorPointY+this.viewportPadding,p=l.x2+l.anchorPointX+this.viewportPadding,y=l.y2+l.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,a,p,y)||this.grid.hitTest(c,a,p,y)?{box:[]}:{box:[c,a,p,y]}}},{key:"insertCollisionBox",value:function(l,c){var a={featureIndex:c};this.grid.insert(a,l[0],l[1],l[2],l[3])}},{key:"project",value:function(l,c,a){var p=Re(c,a,0,1),y=K(),w=rc.apply(P,(0,Ln.Z)(l));return Jh(y,p,w),{x:(y[0]/y[3]+1)/2*this.width+this.viewportPadding,y:(-y[1]/y[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(l,c,a,p){return a>=0&&l=0&&c=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function OO(i,d){if(i){if(typeof i=="string")return R7(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return R7(i,d)}}function R7(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l6&&arguments[6]!==void 0?arguments[6]:[0,0],w=arguments.length>7?arguments[7]:void 0,O=i.split(` +`),V=[],he={positionedGlyphs:V,top:y[1],bottom:y[1],left:y[0],right:y[0],lineCount:O.length,text:i};return w?OD(he,d,O,l,c,a,p):hT(he,d,O,l,c,a,p),V.length?he:!1}function FO(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],l=arguments.length>2?arguments[2]:void 0,c=i.positionedGlyphs,a=c===void 0?[]:c,p=[],y=P7(a),w;try{for(y.s();!(w=y.n()).done;){var O=w.value,V=O.metrics,he=4,be=V.advance*O.scale/2,ut=l?[O.x+be,O.y]:[0,0],Pt=l?[0,0]:[O.x+be+d[0],O.y+d[1]],qt=(0-he)*O.scale-be+Pt[0],En=(0-he)*O.scale+Pt[1],qn=qt+V.width*O.scale,Zr=En+V.height*O.scale,Si={x:qt,y:En},to={x:qn,y:En},ts={x:qt,y:Zr},Qs={x:qn,y:Zr};p.push({tl:Si,tr:to,bl:ts,br:Qs,tex:V,glyphOffset:ut})}}catch(Fs){y.e(Fs)}finally{y.f()}return p}function k7(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=rZ(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function rZ(i,d){if(i){if(typeof i=="string")return ND(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return ND(i,d)}}function ND(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l.5||!em||J!==this.preTextStyle.textAllowOverlap)){vv.next=14;break}return vv.next=13,this.reBuildModel();case 13:return vv.abrupt("return",!0);case 14:return vv.abrupt("return",!1);case 15:case"end":return vv.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"clearModels",value:function(){var d;(d=this.texture)===null||d===void 0||d.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:pS.Attribute,descriptor:{shaderLocation:10,name:"a_textOffsets",buffer:{usage:J0.STATIC_DRAW,data:[],type:J0.FLOAT},size:2,update:function(E,M,B){return[B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:pS.Attribute,descriptor:{name:"a_tex",shaderLocation:aE.UV,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:2,update:function(E,M,B){return[B[3],B[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:pS.Attribute,descriptor:{name:"a_Size",shaderLocation:aE.SIZE,buffer:{usage:J0.DYNAMIC_DRAW,data:[],type:J0.FLOAT},size:1,update:function(E){var M=E.size,B=M===void 0?12:M;return Array.isArray(B)?[B[0]]:[B]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var d=this.mapService.getBounds();return cx(d,.5)}},{key:"initTextFont",value:function(){var d=this.getTextStyle(),E=d.fontWeight,M=d.fontFamily,B=this.rawEncodeData,J=[];B.forEach(function(ue){var Ze=ue.shape,st=Ze===void 0?"":Ze;st=st.toString();var Fr=HY(st),Go;try{for(Fr.s();!(Go=Fr.n()).done;){var Ta=Go.value;J.indexOf(Ta)===-1&&J.push(Ta)}}catch(eu){Fr.e(eu)}finally{Fr.f()}}),this.fontService.setFontOptions({characterSet:J,fontWeight:E,fontFamily:M,iconfont:!1})}},{key:"initIconFontTex",value:function(){var d=this.getTextStyle(),E=d.fontWeight,M=d.fontFamily,B=this.rawEncodeData,J=[];B.forEach(function(ue){var Ze=ue.shape,st=Ze===void 0?"":Ze;st="".concat(st),J.indexOf(st)===-1&&J.push(st)}),this.fontService.setFontOptions({characterSet:J,fontWeight:E,fontFamily:M,iconfont:!0})}},{key:"getTextStyle",value:function(){var d=this.layer.getLayerConfig(),E=d.fontWeight,M=E===void 0?"400":E,B=d.fontFamily,J=B===void 0?"sans-serif":B,ue=d.textAllowOverlap,Ze=ue===void 0?!1:ue,st=d.padding,Fr=st===void 0?[0,0]:st,Go=d.textAnchor,Ta=Go===void 0?"center":Go,eu=d.textOffset,kd=eu===void 0?[0,0]:eu,em=d.opacity,B0=em===void 0?1:em,vv=d.strokeOpacity,y1=vv===void 0?1:vv,fy=d.strokeWidth,J1=fy===void 0?0:fy,ey=d.stroke,Fy=ey===void 0?"#000":ey;return{fontWeight:M,fontFamily:J,textAllowOverlap:Ze,padding:Fr,textAnchor:Ta,textOffset:kd,opacity:B0,strokeOpacity:y1,strokeWidth:J1,stroke:Fy}}},{key:"generateGlyphLayout",value:function(d){var E=this,M=this.getFontServiceMapping(),B=this.layer.getLayerConfig(),J=B.spacing,ue=J===void 0?2:J,Ze=B.textAnchor,st=Ze===void 0?"center":Ze,Fr=B.textOffset,Go=this.rawEncodeData;this.glyphInfo=Go.map(function(Ta){var eu=Ta.shape,kd=eu===void 0?"":eu,em=Ta.id,B0=Ta.size,vv=B0===void 0?1:B0,y1=Ta.textOffset?Ta.textOffset:Fr||[0,0],fy=Ta.textAnchor?Ta.textAnchor:st||"center",J1=SS(kd.toString(),M,vv,fy,"left",ue,y1,d),ey=UZ(J1,y1,!1);return Ta.shaping=J1,Ta.glyphQuads=ey,Ta.centroid=vC(Ta.coordinates),Ta.originCentroid=Ta.version==="GAODE2.x"?vC(Ta.originCoordinates):Ta.originCentroid=Ta.centroid,E.glyphInfoMap[em]={shaping:J1,glyphQuads:ey,centroid:vC(Ta.coordinates)},Ta})}},{key:"getFontServiceMapping",value:function(){var d=this.layer.getLayerConfig(),E=d.fontWeight,M=E===void 0?"400":E,B=d.fontFamily,J=B===void 0?"sans-serif":B;return this.fontService.getMappingByKey("".concat(J,"_").concat(M))}},{key:"getFontServiceCanvas",value:function(){var d=this.layer.getLayerConfig(),E=d.fontWeight,M=E===void 0?"400":E,B=d.fontFamily,J=B===void 0?"sans-serif":B;return this.fontService.getCanvasByKey("".concat(J,"_").concat(M))}},{key:"filterGlyphs",value:function(){var d=this,E=this.layer.getLayerConfig(),M=E.padding,B=M===void 0?[0,0]:M,J=E.textAllowOverlap,ue=J===void 0?!1:J;if(!ue){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Ze=this.rendererService.getViewportSize(),st=Ze.width,Fr=Ze.height,Go=new mie(st,Fr),Ta=this.glyphInfo.filter(function(eu){var kd=eu.shaping,em=eu.id,B0=em===void 0?0:em,vv=eu.version==="GAODE2.x"?eu.originCentroid:eu.centroid,y1=eu.size,fy=y1/16,J1=d.mapService.lngLatToContainer(vv),ey=Go.placeCollisionBox({x1:kd.left*fy-B[0],x2:kd.right*fy+B[0],y1:kd.top*fy-B[1],y2:kd.bottom*fy+B[1],anchorPointX:J1.x,anchorPointY:J1.y}),Fy=ey.box;return Fy&&Fy.length?(Go.insertCollisionBox(Fy,B0),!0):!1});Ta.forEach(function(eu){d.glyphInfoMap[eu.id]=eu})}}},{key:"initGlyph",value:function(){var d=this.layer.getLayerConfig(),E=d.iconfont,M=E===void 0?!1:E;M?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(M)}},{key:"updateTexture",value:function(){var d=this.rendererService.createTexture2D,E=this.getFontServiceCanvas();this.textureHeight=E.height,this.texture&&this.texture.destroy(),this.texture=d({data:E,mag:J0.LINEAR,min:J0.LINEAR,width:E.width,height:E.height}),this.textures=[this.texture]}},{key:"reBuildModel",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M;return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return this.filterGlyphs(),J.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:yie,fragmentShader:jZ,triangulation:ek.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:M=J.sent,this.layer.models=[M];case 5:case"end":return J.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()}]),f}(Xx),J4={fillImage:aie,fill:c8,radar:fie,image:PL,normal:VY,simplePoint:tie,extrude:lz,text:bA,earthFill:eV,earthExtrude:kY},_ie=J4;function bie(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=GY(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function GY(i,v){if(i){if(typeof i=="string")return UO(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return UO(i,v)}}function UO(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f.5||!Zr||O!==this.preTextStyle.textAllowOverlap)){to.next=14;break}return to.next=13,this.reBuildModel();case 13:return to.abrupt("return",!0);case 14:return to.abrupt("return",!1);case 15:case"end":return to.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"clearModels",value:function(){var a;(a=this.texture)===null||a===void 0||a.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:lf.Attribute,descriptor:{shaderLocation:10,name:"a_textOffsets",buffer:{usage:Fi.STATIC_DRAW,data:[],type:Fi.FLOAT},size:2,update:function(p,y,w){return[w[5],w[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:lf.Attribute,descriptor:{name:"a_tex",shaderLocation:np.UV,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:2,update:function(p,y,w){return[w[3],w[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:lf.Attribute,descriptor:{name:"a_Size",shaderLocation:np.SIZE,buffer:{usage:Fi.DYNAMIC_DRAW,data:[],type:Fi.FLOAT},size:1,update:function(p){var y=p.size,w=y===void 0?12:y;return Array.isArray(w)?[w[0]]:[w]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var a=this.mapService.getBounds();return ou(a,.5)}},{key:"initTextFont",value:function(){var a=this.getTextStyle(),p=a.fontWeight,y=a.fontFamily,w=this.rawEncodeData,O=[];w.forEach(function(V){var he=V.shape,be=he===void 0?"":he;be=be.toString();var ut=k7(be),Pt;try{for(ut.s();!(Pt=ut.n()).done;){var qt=Pt.value;O.indexOf(qt)===-1&&O.push(qt)}}catch(En){ut.e(En)}finally{ut.f()}}),this.fontService.setFontOptions({characterSet:O,fontWeight:p,fontFamily:y,iconfont:!1})}},{key:"initIconFontTex",value:function(){var a=this.getTextStyle(),p=a.fontWeight,y=a.fontFamily,w=this.rawEncodeData,O=[];w.forEach(function(V){var he=V.shape,be=he===void 0?"":he;be="".concat(be),O.indexOf(be)===-1&&O.push(be)}),this.fontService.setFontOptions({characterSet:O,fontWeight:p,fontFamily:y,iconfont:!0})}},{key:"getTextStyle",value:function(){var a=this.layer.getLayerConfig(),p=a.fontWeight,y=p===void 0?"400":p,w=a.fontFamily,O=w===void 0?"sans-serif":w,V=a.textAllowOverlap,he=V===void 0?!1:V,be=a.padding,ut=be===void 0?[0,0]:be,Pt=a.textAnchor,qt=Pt===void 0?"center":Pt,En=a.textOffset,qn=En===void 0?[0,0]:En,Zr=a.opacity,Si=Zr===void 0?1:Zr,to=a.strokeOpacity,ts=to===void 0?1:to,Qs=a.strokeWidth,Fs=Qs===void 0?0:Qs,Us=a.stroke,Sa=Us===void 0?"#000":Us;return{fontWeight:y,fontFamily:O,textAllowOverlap:he,padding:ut,textAnchor:qt,textOffset:qn,opacity:Si,strokeOpacity:ts,strokeWidth:Fs,stroke:Sa}}},{key:"generateGlyphLayout",value:function(a){var p=this,y=this.getFontServiceMapping(),w=this.layer.getLayerConfig(),O=w.spacing,V=O===void 0?2:O,he=w.textAnchor,be=he===void 0?"center":he,ut=w.textOffset,Pt=this.rawEncodeData;this.glyphInfo=Pt.map(function(qt){var En=qt.shape,qn=En===void 0?"":En,Zr=qt.id,Si=qt.size,to=Si===void 0?1:Si,ts=qt.textOffset?qt.textOffset:ut||[0,0],Qs=qt.textAnchor?qt.textAnchor:be||"center",Fs=vf(qn.toString(),y,to,Qs,"left",V,ts,a),Us=FO(Fs,ts,!1);return qt.shaping=Fs,qt.glyphQuads=Us,qt.centroid=hd(qt.coordinates),qt.originCentroid=qt.version==="GAODE2.x"?hd(qt.originCoordinates):qt.originCentroid=qt.centroid,p.glyphInfoMap[Zr]={shaping:Fs,glyphQuads:Us,centroid:hd(qt.coordinates)},qt})}},{key:"getFontServiceMapping",value:function(){var a=this.layer.getLayerConfig(),p=a.fontWeight,y=p===void 0?"400":p,w=a.fontFamily,O=w===void 0?"sans-serif":w;return this.fontService.getMappingByKey("".concat(O,"_").concat(y))}},{key:"getFontServiceCanvas",value:function(){var a=this.layer.getLayerConfig(),p=a.fontWeight,y=p===void 0?"400":p,w=a.fontFamily,O=w===void 0?"sans-serif":w;return this.fontService.getCanvasByKey("".concat(O,"_").concat(y))}},{key:"filterGlyphs",value:function(){var a=this,p=this.layer.getLayerConfig(),y=p.padding,w=y===void 0?[0,0]:y,O=p.textAllowOverlap,V=O===void 0?!1:O;if(!V){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var he=this.rendererService.getViewportSize(),be=he.width,ut=he.height,Pt=new nZ(be,ut),qt=this.glyphInfo.filter(function(En){var qn=En.shaping,Zr=En.id,Si=Zr===void 0?0:Zr,to=En.version==="GAODE2.x"?En.originCentroid:En.centroid,ts=En.size,Qs=ts/16,Fs=a.mapService.lngLatToContainer(to),Us=Pt.placeCollisionBox({x1:qn.left*Qs-w[0],x2:qn.right*Qs+w[0],y1:qn.top*Qs-w[1],y2:qn.bottom*Qs+w[1],anchorPointX:Fs.x,anchorPointY:Fs.y}),Sa=Us.box;return Sa&&Sa.length?(Pt.insertCollisionBox(Sa,Si),!0):!1});qt.forEach(function(En){a.glyphInfoMap[En.id]=En})}}},{key:"initGlyph",value:function(){var a=this.layer.getLayerConfig(),p=a.iconfont,y=p===void 0?!1:p;y?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(y)}},{key:"updateTexture",value:function(){var a=this.rendererService.createTexture2D,p=this.getFontServiceCanvas();this.textureHeight=p.height,this.texture&&this.texture.destroy(),this.texture=a({data:p,mag:Fi.LINEAR,min:Fi.LINEAR,width:p.width,height:p.height}),this.textures=[this.texture]}},{key:"reBuildModel",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y;return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return this.filterGlyphs(),O.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:iZ,fragmentShader:zO,triangulation:Yw.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:y=O.sent,this.layer.models=[y];case 5:case"end":return O.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()}]),l}($u),Ky={fillImage:GW,fill:aT,radar:QW,image:Ab,normal:L7,simplePoint:VW,extrude:rL,text:_m,earthFill:YP,earthExtrude:w7},oZ=Ky;function sZ(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=O7(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function O7(i,d){if(i){if(typeof i=="string")return FC(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return FC(i,d)}}function FC(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:!0;d&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),f}(Xx),rH={fill:toe},noe=rH;function fq(i){var v=roe();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function roe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var iH=function(i){(0,Ht.Z)(f,i);var v=fq(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:!0;a&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),l}($u),QO={fill:VZ},$Z=QO;function tB(i){var d=WZ();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function WZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var eN=function(i){(0,ze.Z)(l,i);var d=tB(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&arguments[0]!==void 0?arguments[0]:{},M=this.layer.getLayerConfig(),B=M.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(d=this.colorModel)===null||d===void 0||d.draw({uniforms:{u_opacity:B||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(E)}),this.layer.hooks.afterRender.call()}}]),f}(Xx),kD={wind:yz},ND=kD;function cV(i){var v=YR();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function YR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var gq=function(i){(0,Ht.Z)(f,i);var v=cV(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(d),this}},{key:"getDefaultConfig",value:function(){var d=this.getModelType(),E={wind:{}};return E[d]}},{key:"getModelType",value:function(){return"wind"}}]),f}(q4),qD,mq,dV,vq,nk,uH,yq,_8=Qv.cloneDeep,coe=(qD=(0,Rg.b2)(),mq=(0,Rg.f3)(cu.IMapService),dV=(0,Rg.f3)(cu.IFontService),qD(vq=(nk=function(){function i(){(0,Zr.Z)(this,i),ne(this,"mapService",uH,this),ne(this,"fontService",yq,this)}return(0,gt.Z)(i,[{key:"apply",value:function(f,m){var d=this,E=m.styleAttributeService;f.hooks.init.tapPromise("DataMappingPlugin",(0,v_.Z)(Pv().mark(function M(){return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:f.log(XT.MappingStart,NC.INIT),d.generateMaping(f,{styleAttributeService:E}),f.log(XT.MappingEnd,NC.INIT);case 3:case"end":return J.stop()}},M)}))),f.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var M=(0,v_.Z)(Pv().mark(function B(J){var ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(J){st.next=2;break}return st.abrupt("return",J);case 2:return f.dataState.dataMappingNeedUpdate=!1,f.log(XT.MappingStart,NC.UPDATE),ue=d.generateMaping(f,{styleAttributeService:E}),f.log(XT.MappingEnd,NC.UPDATE),st.abrupt("return",ue);case 7:case"end":return st.stop()}},B)}));return function(B){return M.apply(this,arguments)}}()),f.hooks.beforeRender.tap("DataMappingPlugin",function(){var M=f.getSource();if(!(f.layerModelNeedUpdate||!M||!M.inited)){var B=E.getLayerStyleAttributes()||[],J=E.getLayerStyleAttribute("filter"),ue=M.data.dataArray;if(!(Array.isArray(ue)&&ue.length===0)){var Ze=B.filter(function(Go){return Go.needRemapping}),st=ue;if(J!=null&&J.needRemapping&&J!==null&&J!==void 0&&J.scale&&(st=ue.filter(function(Go){return d.applyAttributeMapping(J,Go)[0]})),Ze.length){var Fr=d.mapping(f,Ze,st,f.getEncodedData());f.setEncodedData(Fr)}}}})}},{key:"generateMaping",value:function(f,m){var d=this,E=m.styleAttributeService,M=E.getLayerStyleAttributes()||[],B=E.getLayerStyleAttribute("filter"),J=f.getSource().data.dataArray,ue=J;B!=null&&B.scale&&(ue=J.filter(function(st){return d.applyAttributeMapping(B,st)[0]})),ue=f.processData(ue);var Ze=this.mapping(f,M,ue,void 0);return f.setEncodedData(Ze),f.emit("dataUpdate",null),!0}},{key:"mapping",value:function(f,m,d,E){var M=this,B=m.filter(function(ue){return ue.scale!==void 0}).filter(function(ue){return ue.name!=="filter"}),J=d.map(function(ue,Ze){var st=E?E[Ze]:{},Fr=(0,vn.Z)({id:ue._id,coordinates:ue.coordinates},st);return B.forEach(function(Go){var Ta=M.applyAttributeMapping(Go,ue);(Go.name==="color"||Go.name==="stroke")&&(Ta=Ta.map(function(eu){return Xg(eu)})),Fr[Go.name]=Array.isArray(Ta)&&Ta.length===1?Ta[0]:Ta,Go.name==="shape"&&(Fr.shape=M.fontService.getIconFontKey(Fr[Go.name]))}),Fr});return m.forEach(function(ue){ue.needRemapping=!1}),this.adjustData2Amap2Coordinates(J,f),this.adjustData2SimpleCoordinates(J),J}},{key:"adjustData2Amap2Coordinates",value:function(f,m){var d=this;if(f.length>0&&this.mapService.version==="GAODE2.x"){var E=m.coordCenter||m.getSource().center;f.filter(function(M){return!M.originCoordinates}).map(function(M){M.version="GAODE2.x",M.originCoordinates=_8(M.coordinates),M.coordinates=d.mapService.coordToAMap2RelativeCoordinates(M.coordinates,E)})}}},{key:"adjustData2SimpleCoordinates",value:function(f){var m=this;f.length>0&&this.mapService.version==="SIMPLE"&&f.map(function(d){d.simpleCoordinate||(d.coordinates=m.unProjectCoordinates(d.coordinates),d.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(f){var m=this;if(typeof f[0]=="number")return this.mapService.simpleMapCoord.unproject(f);if(f[0]&&f[0][0]instanceof Array){var d=[];return f.map(function(M){var B=[];M.map(function(J){B.push(m.mapService.simpleMapCoord.unproject(J))}),d.push(B)}),d}else{var E=[];return f.map(function(M){E.push(m.mapService.simpleMapCoord.unproject(M))}),E}}},{key:"applyAttributeMapping",value:function(f,m){var d;if(!f.scale)return[];var E=(f==null||(d=f.scale)===null||d===void 0?void 0:d.scalers)||[],M=[];E.forEach(function(J){var ue,Ze=J.field;(m.hasOwnProperty(Ze)||((ue=f.scale)===null||ue===void 0?void 0:ue.type)==="variable")&&M.push(m[Ze])});var B=f.mapping?f.mapping(M):[];return B}},{key:"getArrowPoints",value:function(f,m){var d=[m[0]-f[0],m[1]-f[1]],E=i2(d),M=[f[0]+E[0]*1e-4,f[1]+E[1]*1e-4];return M}}]),i}(),uH=H(nk.prototype,"mapService",[mq],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yq=H(nk.prototype,"fontService",[dV],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nk))||vq),_q,bq,_z=(_q=(0,Rg.b2)(),_q(bq=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"apply",value:function(f){var m=this;this.mapService=f.getContainer().get(cu.IMapService),f.hooks.init.tapPromise("DataSourcePlugin",(0,v_.Z)(Pv().mark(function d(){var E,M,B,J;return Pv().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(f.log(XT.SourceInitStart,NC.INIT),E=f.getSource(),E||(M=f.sourceOption||f.defaultSourceConfig,B=M.data,J=M.options,E=new Se(B,J),f.setSource(E)),!E.inited){Ze.next=8;break}m.updateClusterData(f),f.log(XT.SourceInitEnd,NC.INIT),Ze.next=10;break;case 8:return Ze.next=10,new Promise(function(st){E.on("update",function(Fr){Fr.type==="inited"&&(m.updateClusterData(f),f.log(XT.SourceInitEnd,NC.INIT)),st(null)})});case 10:case"end":return Ze.stop()}},d)}))),f.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,v_.Z)(Pv().mark(function d(){var E,M,B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return E=m.updateClusterData(f),M=f.dataState.dataSourceNeedUpdate,f.dataState.dataSourceNeedUpdate=!1,B=E||M,ue.abrupt("return",B);case 5:case"end":return ue.stop()}},d)})))}},{key:"updateClusterData",value:function(f){if(f.isTileLayer||f.tileLayer||!f.getSource())return!1;var m=f.getSource(),d=m.cluster,E=m.clusterOptions.zoom,M=E===void 0?0:E,B=this.mapService.getZoom()-1,J=f.dataState.dataSourceNeedUpdate;return d&&J&&m.updateClusterData(Math.floor(B)),d&&Math.abs(f.clusterZoom-B)>=1?(M!==Math.floor(B)&&m.updateClusterData(Math.floor(B)),f.clusterZoom=B,!0):!1}}]),i}())||bq),Q4=l(57965);function H7(i,v,f,m,d){var E=i*i,M=E*i;return((1-3*i+3*E-M)*v+(4-6*E+3*M)*f+(1+3*i+3*E-3*M)*m+M*d)/6}function xq(i){var v=i.length-1;return function(f){var m=f<=0?f=0:f>=1?(f=1,v-1):Math.floor(f*v),d=i[m],E=i[m+1],M=m>0?i[m-1]:2*d-E,B=m180||f<-180?f-360*Math.round(f/360):f):constant(isNaN(i)?v:i)}function b8(i){return(i=+i)==1?x8:function(v,f){return f-v?doe(v,f,i):qR(isNaN(v)?f:v)}}function x8(i,v){var f=v-i;return f?fV(i,f):qR(isNaN(i)?v:i)}var wq=function i(v){var f=b8(v);function m(d,E){var M=f((d=jg(d)).r,(E=jg(E)).r),B=f(d.g,E.g),J=f(d.b,E.b),ue=x8(d.opacity,E.opacity);return function(Ze){return d.r=M(Ze),d.g=B(Ze),d.b=J(Ze),d.opacity=ue(Ze),d+""}}return m.gamma=i,m}(1);function Cq(i){return function(v){var f=v.length,m=new Array(f),d=new Array(f),E=new Array(f),M,B;for(M=0;M=i.length)return f!=null&&B.sort(f),m!=null?m(B):B;for(var st=-1,Fr=B.length,Go=i[J++],Ta,eu,kd=map(),em,B0=ue();++sti.length)return B;var ue,Ze=v[J-1];return m!=null&&J>=i.length?ue=B.entries():(ue=[],B.each(function(st,Fr){ue.push({key:Fr,values:M(st,J)})})),Ze!=null?ue.sort(function(st,Fr){return Ze(st.key,Fr.key)}):ue}return d={object:function(B){return E(B,0,vN,Sq)},map:function(B){return E(B,0,cH,tI)},entries:function(B){return M(E(B,0,cH,tI),0)},key:function(B){return i.push(B),d},sortKeys:function(B){return v[i.length-1]=B,d},sortValues:function(B){return f=B,d},rollup:function(B){return m=B,d}}}function vN(){return{}}function Sq(i,v,f){i[v]=f}function cH(){return map()}function tI(i,v,f){i.set(v,f)}function yN(){}var JR=w8.prototype;yN.prototype=K7.prototype={constructor:yN,has:JR.has,add:function(i){return i+="",this[JM+i]=i,this},remove:JR.remove,clear:JR.clear,values:JR.keys,size:JR.size,empty:JR.empty,each:JR.each};function K7(i,v){var f=new yN;if(i instanceof yN)i.each(function(E){f.add(E)});else if(i){var m=-1,d=i.length;if(v==null)for(;++mf&&(E=v.slice(f,E),B[M]?B[M]+=E:B[++M]=E),(m=m[0])===(d=d[0])?B[M]?B[M]+=d:B[++M]=d:(B[++M]=null,J.push({i:M,x:bI(m,d)})),f=hH.lastIndex;return ff&&(m=v,v=f,f=m),function(d){return Math.max(v,Math.min(f,d))}}function boe(i,v,f){var m=i[0],d=i[1],E=v[0],M=v[1];return d2?xoe:boe,J=ue=null,st}function st(Fr){return isNaN(Fr=+Fr)?E:(J||(J=B(i.map(m),v,f)))(m(M(Fr)))}return st.invert=function(Fr){return M(d((ue||(ue=B(v,i.map(m),bI)))(Fr)))},st.domain=function(Fr){return arguments.length?(i=EA.call(Fr,_oe),M===kP||(M=Aq(i)),Ze()):i.slice()},st.range=function(Fr){return arguments.length?(v=rk.call(Fr),Ze()):v.slice()},st.rangeRound=function(Fr){return v=rk.call(Fr),f=yoe,Ze()},st.clamp=function(Fr){return arguments.length?(M=Fr?Aq(i):kP,st):M!==kP},st.interpolate=function(Fr){return arguments.length?(f=Fr,Ze()):f},st.unknown=function(Fr){return arguments.length?(E=Fr,st):E},function(Fr,Go){return m=Fr,d=Go,Ze()}}function Dq(i,v){return gH()(i,v)}var woe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function C8(i){if(!(v=woe.exec(i)))throw new Error("invalid format: "+i);var v;return new mH({fill:v[1],align:v[2],sign:v[3],symbol:v[4],zero:v[5],width:v[6],comma:v[7],precision:v[8]&&v[8].slice(1),trim:v[9],type:v[10]})}C8.prototype=mH.prototype;function mH(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}mH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Iq(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function vV(i,v){if((f=(i=v?i.toExponential(v-1):i.toExponential()).indexOf("e"))<0)return null;var f,m=i.slice(0,f);return[m.length>1?m[0]+m.slice(2):m,+i.slice(f+1)]}function N4(i){return i=vV(Math.abs(i)),i?i[1]:NaN}function NP(i,v){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(N4(v)/3)))*3-N4(Math.abs(i)))}function Coe(i,v){return function(f,m){for(var d=f.length,E=[],M=0,B=i[0],J=0;d>0&&B>0&&(J+B+1>m&&(B=Math.max(1,m-J)),E.push(f.substring(d-=B,d+B)),!((J+=B+1)>m));)B=i[M=(M+1)%i.length];return E.reverse().join(v)}}function Soe(i){return function(v){return v.replace(/[0-9]/g,function(f){return i[+f]})}}function Eoe(i){e:for(var v=i.length,f=1,m=-1,d;f0&&(m=0);break}return m>0?i.slice(0,m)+i.slice(d+1):i}var Pq;function J7(i,v){var f=vV(i,v);if(!f)return i+"";var m=f[0],d=f[1],E=d-(Pq=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,M=m.length;return E===M?m:E>M?m+new Array(E-M+1).join("0"):E>0?m.slice(0,E)+"."+m.slice(E):"0."+new Array(1-E).join("0")+vV(i,Math.max(0,v+E-1))[0]}function Lq(i,v){var f=vV(i,v);if(!f)return i+"";var m=f[0],d=f[1];return d<0?"0."+new Array(-d).join("0")+m:m.length>d+1?m.slice(0,d+1)+"."+m.slice(d+1):m+new Array(d-m.length+2).join("0")}var Mq={"%":function(i,v){return(i*100).toFixed(v)},b:function(i){return Math.round(i).toString(2)},c:function(i){return i+""},d:Iq,e:function(i,v){return i.toExponential(v)},f:function(i,v){return i.toFixed(v)},g:function(i,v){return i.toPrecision(v)},o:function(i){return Math.round(i).toString(8)},p:function(i,v){return Lq(i*100,v)},r:Lq,s:J7,X:function(i){return Math.round(i).toString(16).toUpperCase()},x:function(i){return Math.round(i).toString(16)}};function Oq(i){return i}var Rq=Array.prototype.map,kq=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Toe(i){var v=i.grouping===void 0||i.thousands===void 0?Oq:Coe(Rq.call(i.grouping,Number),i.thousands+""),f=i.currency===void 0?"":i.currency[0]+"",m=i.currency===void 0?"":i.currency[1]+"",d=i.decimal===void 0?".":i.decimal+"",E=i.numerals===void 0?Oq:Soe(Rq.call(i.numerals,String)),M=i.percent===void 0?"%":i.percent+"",B=i.minus===void 0?"-":i.minus+"",J=i.nan===void 0?"NaN":i.nan+"";function ue(st){st=C8(st);var Fr=st.fill,Go=st.align,Ta=st.sign,eu=st.symbol,kd=st.zero,em=st.width,B0=st.comma,vv=st.precision,y1=st.trim,fy=st.type;fy==="n"?(B0=!0,fy="g"):Mq[fy]||(vv===void 0&&(vv=12),y1=!0,fy="g"),(kd||Fr==="0"&&Go==="=")&&(kd=!0,Fr="0",Go="=");var J1=eu==="$"?f:eu==="#"&&/[boxX]/.test(fy)?"0"+fy.toLowerCase():"",ey=eu==="$"?m:/[%p]/.test(fy)?M:"",Fy=Mq[fy],C_=/[defgprs%]/.test(fy);vv=vv===void 0?6:/[gprs]/.test(fy)?Math.max(1,Math.min(21,vv)):Math.max(0,Math.min(20,vv));function yx(ux){var h2=J1,V2=ey,aw,XE,mT;if(fy==="c")V2=Fy(ux)+V2,ux="";else{ux=+ux;var qT=ux<0||1/ux<0;if(ux=isNaN(ux)?J:Fy(Math.abs(ux),vv),y1&&(ux=Eoe(ux)),qT&&+ux==0&&Ta!=="+"&&(qT=!1),h2=(qT?Ta==="("?Ta:B:Ta==="-"||Ta==="("?"":Ta)+h2,V2=(fy==="s"?kq[8+Pq/3]:"")+V2+(qT&&Ta==="("?")":""),C_){for(aw=-1,XE=ux.length;++awmT||mT>57){V2=(mT===46?d+ux.slice(aw+1):ux.slice(aw))+V2,ux=ux.slice(0,aw);break}}}B0&&!kd&&(ux=v(ux,1/0));var j3=h2.length+ux.length+V2.length,fA=j3>1)+h2+ux+V2+fA.slice(j3);break;default:ux=fA+h2+ux+V2;break}return E(ux)}return yx.toString=function(){return st+""},yx}function Ze(st,Fr){var Go=ue((st=C8(st),st.type="f",st)),Ta=Math.max(-8,Math.min(8,Math.floor(N4(Fr)/3)))*3,eu=Math.pow(10,-Ta),kd=kq[8+Ta/3];return function(em){return Go(eu*em)+kd}}return{format:ue,formatPrefix:Ze}}var vH,Nq,Aoe;rL({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function rL(i){return vH=Toe(i),Nq=vH.format,Aoe=vH.formatPrefix,vH}function Q7(i,v){return i=Math.abs(i),v=Math.abs(v)-i,Math.max(0,N4(v)-N4(i))+1}function Nw(i){return Math.max(0,-N4(Math.abs(i)))}function WO(i,v,f,m){var d=(0,Q4.ly)(i,v,f),E;switch(m=C8(m==null?",f":m),m.type){case"s":{var M=Math.max(Math.abs(i),Math.abs(v));return m.precision==null&&!isNaN(E=NP(d,M))&&(m.precision=E),Aoe(m,M)}case"":case"e":case"g":case"p":case"r":{m.precision==null&&!isNaN(E=Q7(d,Math.max(Math.abs(i),Math.abs(v))))&&(m.precision=E-(m.type==="e"));break}case"f":case"%":{m.precision==null&&!isNaN(E=Nw(d))&&(m.precision=E-(m.type==="%")*2);break}}return Nq(m)}function S8(i){var v=i.domain;return i.ticks=function(f){var m=v();return(0,Q4.sd)(m[0],m[m.length-1],f==null?10:f)},i.tickFormat=function(f,m){var d=v();return WO(d[0],d[d.length-1],f==null?10:f,m)},i.nice=function(f){f==null&&(f=10);var m=v(),d=0,E=m.length-1,M=m[d],B=m[E],J;return B0?(M=Math.floor(M/J)*J,B=Math.ceil(B/J)*J,J=(0,Q4.G9)(M,B,f)):J<0&&(M=Math.ceil(M*J)/J,B=Math.floor(B*J)/J,J=(0,Q4.G9)(M,B,f)),J>0?(m[d]=Math.floor(M/J)*J,m[E]=Math.ceil(B/J)*J,v(m)):J<0&&(m[d]=Math.ceil(M*J)/J,m[E]=Math.floor(B*J)/J,v(m)),i},i}function bz(){var i=Dq(kP,kP);return i.copy=function(){return mV(i,bz())},m3.apply(i,arguments),S8(i)}function Doe(i){var v;function f(m){return isNaN(m=+m)?v:m}return f.invert=f,f.domain=f.range=function(m){return arguments.length?(i=map.call(m,number),f):i.slice()},f.unknown=function(m){return arguments.length?(v=m,f):v},f.copy=function(){return Doe(i).unknown(v)},i=arguments.length?map.call(i,number):[0,1],linearish(f)}function xz(i,v){i=i.slice();var f=0,m=i.length-1,d=i[f],E=i[m],M;return E0){for(;FrZe)break;B0.push(kd)}}else for(;Fr=1;--eu)if(kd=Ta*eu,!(kdZe)break;B0.push(kd)}}else B0=(0,Q4.sd)(Fr,Go,Math.min(Go-Fr,em)).map(E);return st?B0.reverse():B0},v.tickFormat=function(B,J){if(J==null&&(J=m===10?".0e":","),typeof J!="function"&&(J=Nq(J)),B===1/0)return J;B==null&&(B=10);var ue=Math.max(1,m*B/v.ticks().length);return function(Ze){var st=Ze/E(Math.round(d(Ze)));return st*m0?f[B-1]:i[0],B=f?[m[f-1],v]:[m[ue-1],m[ue]]},M.unknown=function(J){return arguments.length&&(E=J),M},M.thresholds=function(){return m.slice()},M.copy=function(){return E8().domain([i,v]).range(d).unknown(E)},m3.apply(S8(M),arguments)}function T8(){var i=[.5],v=[0,1],f,m=1;function d(E){return E<=E?v[(0,Q4.b4)(i,E,0,m)]:f}return d.domain=function(E){return arguments.length?(i=rk.call(E),m=Math.min(i.length,v.length-1),d):i.slice()},d.range=function(E){return arguments.length?(v=rk.call(E),m=Math.min(i.length,v.length-1),d):v.slice()},d.invertExtent=function(E){var M=v.indexOf(E);return[i[M-1],i[M]]},d.unknown=function(E){return arguments.length?(f=E,d):f},d.copy=function(){return T8().domain(i).range(v).unknown(f)},m3.apply(d,arguments)}var Cz=new Date,nB=new Date;function nI(i,v,f,m){function d(E){return i(E=arguments.length===0?new Date:new Date(+E)),E}return d.floor=function(E){return i(E=new Date(+E)),E},d.ceil=function(E){return i(E=new Date(E-1)),v(E,1),i(E),E},d.round=function(E){var M=d(E),B=d.ceil(E);return E-M0))return J;do J.push(ue=new Date(+E)),v(E,B),i(E);while(ue=M)for(;i(M),!E(M);)M.setTime(M-1)},function(M,B){if(M>=M)if(B<0)for(;++B<=0;)for(;v(M,-1),!E(M););else for(;--B>=0;)for(;v(M,1),!E(M););})},f&&(d.count=function(E,M){return Cz.setTime(+E),nB.setTime(+M),i(Cz),i(nB),Math.floor(f(Cz,nB))},d.every=function(E){return E=Math.floor(E),!isFinite(E)||!(E>0)?null:E>1?d.filter(m?function(M){return m(M)%E===0}:function(M){return d.count(0,M)%E===0}):d}),d}var rB=nI(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,v){i.setFullYear(i.getFullYear()+v)},function(i,v){return v.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});rB.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:nI(function(v){v.setFullYear(Math.floor(v.getFullYear()/i)*i),v.setMonth(0,1),v.setHours(0,0,0,0)},function(v,f){v.setFullYear(v.getFullYear()+f*i)})};var ok=rB,ipe=rB.range,jq=nI(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,v){i.setMonth(i.getMonth()+v)},function(i,v){return v.getMonth()-i.getMonth()+(v.getFullYear()-i.getFullYear())*12},function(i){return i.getMonth()}),Moe=jq,Ooe=jq.range,Sz=1e3,A8=6e4,Wq=36e5,bN=864e5,Zq=6048e5;function D8(i){return nI(function(v){v.setDate(v.getDate()-(v.getDay()+7-i)%7),v.setHours(0,0,0,0)},function(v,f){v.setDate(v.getDate()+f*7)},function(v,f){return(f-v-(f.getTimezoneOffset()-v.getTimezoneOffset())*A8)/Zq})}var iB=D8(0),oB=D8(1),Hq=D8(2),Roe=D8(3),e5=D8(4),ZO=D8(5),koe=D8(6),n1e=iB.range,xN=oB.range,ope=Hq.range,spe=Roe.range,QM=e5.range,xH=ZO.range,ape=koe.range,xV=nI(function(i){i.setHours(0,0,0,0)},function(i,v){i.setDate(i.getDate()+v)},function(i,v){return(v-i-(v.getTimezoneOffset()-i.getTimezoneOffset())*A8)/bN},function(i){return i.getDate()-1}),wH=xV,wV=xV.range,Gq=nI(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Sz-i.getMinutes()*A8)},function(i,v){i.setTime(+i+v*Wq)},function(i,v){return(v-i)/Wq},function(i){return i.getHours()}),sB=Gq,Kq=Gq.range,CH=nI(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Sz)},function(i,v){i.setTime(+i+v*A8)},function(i,v){return(v-i)/A8},function(i){return i.getMinutes()}),Noe=CH,lpe=CH.range,SH=nI(function(i){i.setTime(i-i.getMilliseconds())},function(i,v){i.setTime(+i+v*Sz)},function(i,v){return(v-i)/Sz},function(i){return i.getUTCSeconds()}),Xq=SH,I8=SH.range,CV=nI(function(){},function(i,v){i.setTime(+i+v)},function(i,v){return v-i});CV.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?nI(function(v){v.setTime(Math.floor(v/i)*i)},function(v,f){v.setTime(+v+f*i)},function(v,f){return(f-v)/i}):CV};var Foe=CV,upe=CV.range;function HO(i){return nI(function(v){v.setUTCDate(v.getUTCDate()-(v.getUTCDay()+7-i)%7),v.setUTCHours(0,0,0,0)},function(v,f){v.setUTCDate(v.getUTCDate()+f*7)},function(v,f){return(f-v)/Zq})}var Yq=HO(0),SV=HO(1),Boe=HO(2),qq=HO(3),aB=HO(4),EH=HO(5),zoe=HO(6),$oe=Yq.range,cpe=SV.range,lB=Boe.range,dpe=qq.range,t5=aB.range,hpe=EH.range,fpe=zoe.range,Jq=nI(function(i){i.setUTCHours(0,0,0,0)},function(i,v){i.setUTCDate(i.getUTCDate()+v)},function(i,v){return(v-i)/bN},function(i){return i.getUTCDate()-1}),TH=Jq,ppe=Jq.range,AH=nI(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,v){i.setUTCFullYear(i.getUTCFullYear()+v)},function(i,v){return v.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});AH.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:nI(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/i)*i),v.setUTCMonth(0,1),v.setUTCHours(0,0,0,0)},function(v,f){v.setUTCFullYear(v.getUTCFullYear()+f*i)})};var Ez=AH,gpe=AH.range;function DH(i){if(0<=i.y&&i.y<100){var v=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return v.setFullYear(i.y),v}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function EV(i){if(0<=i.y&&i.y<100){var v=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return v.setUTCFullYear(i.y),v}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function Tz(i,v,f){return{y:i,m:v,d:f,H:0,M:0,S:0,L:0}}function IH(i){var v=i.dateTime,f=i.date,m=i.time,d=i.periods,E=i.days,M=i.shortDays,B=i.months,J=i.shortMonths,ue=P8(d),Ze=Az(d),st=P8(E),Fr=Az(E),Go=P8(M),Ta=Az(M),eu=P8(B),kd=Az(B),em=P8(J),B0=Az(J),vv={a:qT,A:j3,b:fA,B:hI,c:null,d:IV,e:IV,f:uB,g:ese,G:wN,H:Koe,I:nJ,j:RH,L:ak,m:KO,M:Xoe,p:_R,q:Ak,Q:hB,s:aJ,S:Yoe,u:lk,U:Pz,V:qoe,w:kH,W:Joe,x:null,X:null,y:Qoe,Y:tse,Z:iJ,"%":MV},y1={a:XB,A:YB,b:FD,B:hL,c:null,d:cB,e:cB,f:rse,g:ase,G:FH,H:ML,I:r5,j:nse,L:oJ,m:PV,M:dB,p:gW,q:mW,Q:hB,s:aJ,S:ise,u:ose,U:NH,V:sJ,w:LV,W:sse,x:null,X:null,y:WI,Y:CN,Z:i5,"%":MV},fy={a:yx,A:ux,b:h2,B:V2,c:aw,d:LH,e:LH,f:Hoe,g:DV,G:GO,H:tJ,I:tJ,j:F4,L:sk,m:Iz,M:MH,p:C_,q:Woe,Q:L8,s:Goe,S:Zoe,u:eJ,U:n5,V:Dz,w:Uoe,W:Voe,x:XE,X:mT,y:DV,Y:GO,Z:joe,"%":OH};vv.x=J1(f,vv),vv.X=J1(m,vv),vv.c=J1(v,vv),y1.x=J1(f,y1),y1.X=J1(m,y1),y1.c=J1(v,y1);function J1(CT,k3){return function(sD){var NS=[],KL=-1,BD=0,TM=CT.length,AM,vF,yF;for(sD instanceof Date||(sD=new Date(+sD));++KL53)return null;"w"in NS||(NS.w=1),"Z"in NS?(BD=EV(Tz(NS.y,0,1)),TM=BD.getUTCDay(),BD=TM>4||TM===0?SV.ceil(BD):SV(BD),BD=TH.offset(BD,(NS.V-1)*7),NS.y=BD.getUTCFullYear(),NS.m=BD.getUTCMonth(),NS.d=BD.getUTCDate()+(NS.w+6)%7):(BD=DH(Tz(NS.y,0,1)),TM=BD.getDay(),BD=TM>4||TM===0?oB.ceil(BD):oB(BD),BD=wH.offset(BD,(NS.V-1)*7),NS.y=BD.getFullYear(),NS.m=BD.getMonth(),NS.d=BD.getDate()+(NS.w+6)%7)}else("W"in NS||"U"in NS)&&("w"in NS||(NS.w="u"in NS?NS.u%7:"W"in NS?1:0),TM="Z"in NS?EV(Tz(NS.y,0,1)).getUTCDay():DH(Tz(NS.y,0,1)).getDay(),NS.m=0,NS.d="W"in NS?(NS.w+6)%7+NS.W*7-(TM+5)%7:NS.w+NS.U*7-(TM+6)%7);return"Z"in NS?(NS.H+=NS.Z/100|0,NS.M+=NS.Z%100,EV(NS)):DH(NS)}}function Fy(CT,k3,sD,NS){for(var KL=0,BD=k3.length,TM=sD.length,AM,vF;KL=TM)return-1;if(AM=k3.charCodeAt(KL++),AM===37){if(AM=k3.charAt(KL++),vF=fy[AM in TV?k3.charAt(KL++):AM],!vF||(NS=vF(CT,sD,NS))<0)return-1}else if(AM!=sD.charCodeAt(NS++))return-1}return NS}function C_(CT,k3,sD){var NS=ue.exec(k3.slice(sD));return NS?(CT.p=Ze[NS[0].toLowerCase()],sD+NS[0].length):-1}function yx(CT,k3,sD){var NS=Go.exec(k3.slice(sD));return NS?(CT.w=Ta[NS[0].toLowerCase()],sD+NS[0].length):-1}function ux(CT,k3,sD){var NS=st.exec(k3.slice(sD));return NS?(CT.w=Fr[NS[0].toLowerCase()],sD+NS[0].length):-1}function h2(CT,k3,sD){var NS=em.exec(k3.slice(sD));return NS?(CT.m=B0[NS[0].toLowerCase()],sD+NS[0].length):-1}function V2(CT,k3,sD){var NS=eu.exec(k3.slice(sD));return NS?(CT.m=kd[NS[0].toLowerCase()],sD+NS[0].length):-1}function aw(CT,k3,sD){return Fy(CT,v,k3,sD)}function XE(CT,k3,sD){return Fy(CT,f,k3,sD)}function mT(CT,k3,sD){return Fy(CT,m,k3,sD)}function qT(CT){return M[CT.getDay()]}function j3(CT){return E[CT.getDay()]}function fA(CT){return J[CT.getMonth()]}function hI(CT){return B[CT.getMonth()]}function _R(CT){return d[+(CT.getHours()>=12)]}function Ak(CT){return 1+~~(CT.getMonth()/3)}function XB(CT){return M[CT.getUTCDay()]}function YB(CT){return E[CT.getUTCDay()]}function FD(CT){return J[CT.getUTCMonth()]}function hL(CT){return B[CT.getUTCMonth()]}function gW(CT){return d[+(CT.getUTCHours()>=12)]}function mW(CT){return 1+~~(CT.getUTCMonth()/3)}return{format:function(CT){var k3=J1(CT+="",vv);return k3.toString=function(){return CT},k3},parse:function(CT){var k3=ey(CT+="",!1);return k3.toString=function(){return CT},k3},utcFormat:function(CT){var k3=J1(CT+="",y1);return k3.toString=function(){return CT},k3},utcParse:function(CT){var k3=ey(CT+="",!0);return k3.toString=function(){return CT},k3}}}var TV={"-":"",_:" ",0:"0"},v4=/^\s*\d+/,Qq=/^%/,AV=/[\\^$*+?|[\]().{}]/g;function uD(i,v,f){var m=i<0?"-":"",d=(m?-i:i)+"",E=d.length;return m+(E68?1900:2e3),f+m[0].length):-1}function joe(i,v,f){var m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(v.slice(f,f+6));return m?(i.Z=m[1]?0:-(m[2]+(m[3]||"00")),f+m[0].length):-1}function Woe(i,v,f){var m=v4.exec(v.slice(f,f+1));return m?(i.q=m[0]*3-3,f+m[0].length):-1}function Iz(i,v,f){var m=v4.exec(v.slice(f,f+2));return m?(i.m=m[0]-1,f+m[0].length):-1}function LH(i,v,f){var m=v4.exec(v.slice(f,f+2));return m?(i.d=+m[0],f+m[0].length):-1}function F4(i,v,f){var m=v4.exec(v.slice(f,f+3));return m?(i.m=0,i.d=+m[0],f+m[0].length):-1}function tJ(i,v,f){var m=v4.exec(v.slice(f,f+2));return m?(i.H=+m[0],f+m[0].length):-1}function MH(i,v,f){var m=v4.exec(v.slice(f,f+2));return m?(i.M=+m[0],f+m[0].length):-1}function Zoe(i,v,f){var m=v4.exec(v.slice(f,f+2));return m?(i.S=+m[0],f+m[0].length):-1}function sk(i,v,f){var m=v4.exec(v.slice(f,f+3));return m?(i.L=+m[0],f+m[0].length):-1}function Hoe(i,v,f){var m=v4.exec(v.slice(f,f+6));return m?(i.L=Math.floor(m[0]/1e3),f+m[0].length):-1}function OH(i,v,f){var m=Qq.exec(v.slice(f,f+1));return m?f+m[0].length:-1}function L8(i,v,f){var m=v4.exec(v.slice(f));return m?(i.Q=+m[0],f+m[0].length):-1}function Goe(i,v,f){var m=v4.exec(v.slice(f));return m?(i.s=+m[0],f+m[0].length):-1}function IV(i,v){return uD(i.getDate(),v,2)}function Koe(i,v){return uD(i.getHours(),v,2)}function nJ(i,v){return uD(i.getHours()%12||12,v,2)}function RH(i,v){return uD(1+wH.count(ok(i),i),v,3)}function ak(i,v){return uD(i.getMilliseconds(),v,3)}function uB(i,v){return ak(i,v)+"000"}function KO(i,v){return uD(i.getMonth()+1,v,2)}function Xoe(i,v){return uD(i.getMinutes(),v,2)}function Yoe(i,v){return uD(i.getSeconds(),v,2)}function lk(i){var v=i.getDay();return v===0?7:v}function Pz(i,v){return uD(iB.count(ok(i)-1,i),v,2)}function rJ(i){var v=i.getDay();return v>=4||v===0?e5(i):e5.ceil(i)}function qoe(i,v){return i=rJ(i),uD(e5.count(ok(i),i)+(ok(i).getDay()===4),v,2)}function kH(i){return i.getDay()}function Joe(i,v){return uD(oB.count(ok(i)-1,i),v,2)}function Qoe(i,v){return uD(i.getFullYear()%100,v,2)}function ese(i,v){return i=rJ(i),uD(i.getFullYear()%100,v,2)}function tse(i,v){return uD(i.getFullYear()%1e4,v,4)}function wN(i,v){var f=i.getDay();return i=f>=4||f===0?e5(i):e5.ceil(i),uD(i.getFullYear()%1e4,v,4)}function iJ(i){var v=i.getTimezoneOffset();return(v>0?"-":(v*=-1,"+"))+uD(v/60|0,"0",2)+uD(v%60,"0",2)}function cB(i,v){return uD(i.getUTCDate(),v,2)}function ML(i,v){return uD(i.getUTCHours(),v,2)}function r5(i,v){return uD(i.getUTCHours()%12||12,v,2)}function nse(i,v){return uD(1+TH.count(Ez(i),i),v,3)}function oJ(i,v){return uD(i.getUTCMilliseconds(),v,3)}function rse(i,v){return oJ(i,v)+"000"}function PV(i,v){return uD(i.getUTCMonth()+1,v,2)}function dB(i,v){return uD(i.getUTCMinutes(),v,2)}function ise(i,v){return uD(i.getUTCSeconds(),v,2)}function ose(i){var v=i.getUTCDay();return v===0?7:v}function NH(i,v){return uD(Yq.count(Ez(i)-1,i),v,2)}function FP(i){var v=i.getUTCDay();return v>=4||v===0?aB(i):aB.ceil(i)}function sJ(i,v){return i=FP(i),uD(aB.count(Ez(i),i)+(Ez(i).getUTCDay()===4),v,2)}function LV(i){return i.getUTCDay()}function sse(i,v){return uD(SV.count(Ez(i)-1,i),v,2)}function WI(i,v){return uD(i.getUTCFullYear()%100,v,2)}function ase(i,v){return i=FP(i),uD(i.getUTCFullYear()%100,v,2)}function CN(i,v){return uD(i.getUTCFullYear()%1e4,v,4)}function FH(i,v){var f=i.getUTCDay();return i=f>=4||f===0?aB(i):aB.ceil(i),uD(i.getUTCFullYear()%1e4,v,4)}function i5(){return"+0000"}function MV(){return"%"}function hB(i){return+i}function aJ(i){return Math.floor(+i/1e3)}var uk,lJ,lse,use,cse;uJ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function uJ(i){return uk=IH(i),lJ=uk.format,lse=uk.parse,use=uk.utcFormat,cse=uk.utcParse,uk}var Lz=1e3,Mz=Lz*60,Oz=Mz*60,Rz=Oz*24,dse=Rz*7,cJ=Rz*30,SN=Rz*365;function dJ(i){return new Date(i)}function hJ(i){return i instanceof Date?+i:+new Date(+i)}function XO(i,v,f,m,d,E,M,B,J){var ue=Dq(kP,kP),Ze=ue.invert,st=ue.domain,Fr=J(".%L"),Go=J(":%S"),Ta=J("%I:%M"),eu=J("%I %p"),kd=J("%a %d"),em=J("%b %d"),B0=J("%B"),vv=J("%Y"),y1=[[M,1,Lz],[M,5,5*Lz],[M,15,15*Lz],[M,30,30*Lz],[E,1,Mz],[E,5,5*Mz],[E,15,15*Mz],[E,30,30*Mz],[d,1,Oz],[d,3,3*Oz],[d,6,6*Oz],[d,12,12*Oz],[m,1,Rz],[m,2,2*Rz],[f,1,dse],[v,1,cJ],[v,3,3*cJ],[i,1,SN]];function fy(ey){return(M(ey)2){var st=ue.scale.ticks(M.values.length);ue.scale.domain(st)}M.values?ue.scale.range(M.values):ue.scale.range(ue.option.domain);break;case z3.QUANTILE:case z3.QUANTIZE:case z3.THRESHOLD:ue.scale.range(M.values);break;case z3.IDENTITY:break;case z3.CAT:M.values?ue.scale.range(M.values):ue.scale.range(ue.option.domain);break;case z3.DIVERGING:case z3.SEQUENTIAL:ue.scale.interpolator(hoe(M.values));break}}if(M.values==="text"){var Fr;ue.scale.range((Fr=ue.option)===null||Fr===void 0?void 0:Fr.domain)}})):(M.type=VM.CONSTANT,M.defaultValues=J.map(function(ue,Ze){return ue.scale(M.names[Ze])})),M.scalers=J.map(function(ue){return{field:ue.field,func:ue.scale,option:ue.option}}),E.needRescale=!1}})}},{key:"parseFields",value:function(f){return Array.isArray(f)?f:vse(f)?f.split("*"):[f]}},{key:"createScale",value:function(f,m,d,E){var M,B,J=this.scaleOptions[m]&&((M=this.scaleOptions[m])===null||M===void 0?void 0:M.field)===f?this.scaleOptions[m]:this.scaleOptions[f],ue={field:f,scale:void 0,type:VM.VARIABLE,option:J};if(!E||!E.length)return J&&J.type?ue.scale=this.createDefaultScale(J):(ue.scale=LI([f]),ue.type=VM.CONSTANT),ue;var Ze=(B=E.find(function(Go){return!kz(Go[f])}))===null||B===void 0?void 0:B[f];if(this.isNumber(f)||kz(Ze)&&!J)ue.scale=LI([f]),ue.type=VM.CONSTANT;else{var st=J&&J.type||this.getDefaultType(Ze);d==="text"&&(st=z3.CAT),d===void 0&&(st=z3.IDENTITY);var Fr=this.createScaleConfig(st,f,J,E);ue.scale=this.createDefaultScale(Fr),ue.option=Fr}return ue}},{key:"getDefaultType",value:function(f){var m=z3.LINEAR;return typeof f=="string"&&(m=yse.test(f)?z3.TIME:z3.CAT),m}},{key:"createScaleConfig",value:function(f,m,d,E){var M={type:f},B=[];if(f===z3.QUANTILE){var J=new Map;E==null||E.forEach(function(st){J.set(st._id,st[m])}),B=Array.from(J.values())}else B=(E==null?void 0:E.map(function(st){return st[m]}))||[];if(d!=null&&d.domain)M.domain=d==null?void 0:d.domain;else if(f===z3.CAT||f===z3.IDENTITY)M.domain=BV(B);else if(f===z3.QUANTILE)M.domain=B;else if(f===z3.DIVERGING){var ue=(0,Q4.We)(B),Ze=(d==null?void 0:d.neutral)!==void 0?d==null?void 0:d.neutral:(ue[0]+ue[1])/2;M.domain=[ue[0],Ze,ue[1]]}else M.domain=(0,Q4.We)(B);return(0,vn.Z)((0,vn.Z)({},M),d)}},{key:"createDefaultScale",value:function(f){var m=f.type,d=f.domain,E=f.unknown,M=f.clamp,B=f.nice,J=_se[m]();return d&&J.domain&&J.domain(d),E&&J.unknown(E),M!==void 0&&J.clamp&&J.clamp(M),B!==void 0&&J.nice&&J.nice(B),J}}]),i}())||TN),M8,O8,R8=(M8=(0,Rg.b2)(),M8(O8=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"apply",value:function(f){f.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var m=f.animateStatus;m&&f.models.forEach(function(d){d.addUniforms((0,vn.Z)({},f.layerModel.getAnimateUniforms()))})})}}]),i}())||O8),AN,gJ,Nz=(AN=(0,Rg.b2)(),AN(gJ=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"apply",value:function(f){f.hooks.afterInit.tap("LayerMaskPlugin",function(){var m=f.getLayerConfig(),d=m.maskLayers,E=m.enableMask;if(!f.tileLayer&&d&&d.length>0){var M;(M=f.masks).push.apply(M,(0,su.Z)(d)),f.updateLayerConfig({mask:E})}})}}]),i}())||gJ),xse=function(){function i(v){var f=v.rendererService,m=v.layerService,d=v.parent;(0,Zr.Z)(this,i),(0,Na.Z)(this,"tileResource",new Map),(0,Na.Z)(this,"layerTiles",[]),this.rendererService=f,this.layerService=m,this.parent=d}return(0,gt.Z)(i,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(f){return this.layerTiles.some(function(m){return m.key===f})}},{key:"addTile",value:function(f){this.layerTiles.push(f)}},{key:"getTile",value:function(f){return this.layerTiles.find(function(m){return m.key===f})}},{key:"getVisibleTileBylngLat",value:function(f){return this.layerTiles.find(function(m){return m.isLoaded&&m.visible&&m.lnglatInBounds(f)})}},{key:"removeTile",value:function(f){var m=this.layerTiles.findIndex(function(E){return E.key===f}),d=this.layerTiles.splice(m,1);d[0]&&d[0].destroy()}},{key:"updateTileVisible",value:function(f){var m=this.getTile(f.key);if(f.isVisible)if(f.parent){var d=this.isChildrenLoaded(f.parent);m==null||m.updateVisible(d)}else m==null||m.updateVisible(!0);else if(f.parent){var E=this.isChildrenLoaded(f.parent);m==null||m.updateVisible(!E)}else m==null||m.updateVisible(!1)}},{key:"isParentLoaded",value:function(f){var m=f.parent;if(!m)return!0;var d=this.getTile(m==null?void 0:m.key);return!!(d!=null&&d.isLoaded)}},{key:"isChildrenLoaded",value:function(f){var m=this,d=f==null?void 0:f.children;return d.length===0?!0:d.every(function(E){var M=m.getTile(E==null?void 0:E.key);return M?(M==null?void 0:M.isLoaded)===!0:!0})}},{key:"render",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){var d=this,E,M;return Pv().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return E=this.getRenderLayers(),M=E.map(function(){var ue=(0,v_.Z)(Pv().mark(function Ze(st){return Pv().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:return Go.next=2,d.layerService.renderTileLayer(st);case 2:case"end":return Go.stop()}},Ze)}));return function(Ze){return ue.apply(this,arguments)}}()),J.next=4,Promise.all(M);case 4:case"end":return J.stop()}},m,this)}));function f(){return v.apply(this,arguments)}return f}()},{key:"getRenderLayers",value:function(){var f=this.layerTiles.filter(function(d){return d.visible&&d.isLoaded}),m=[];return f.map(function(d){return m.push.apply(m,(0,su.Z)(d.getLayers()))}),m}},{key:"getLayers",value:function(){var f=this.layerTiles.filter(function(d){return d.isLoaded}),m=[];return f.map(function(d){return m.push.apply(m,(0,su.Z)(d.getLayers()))}),m}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(f){return f.destroy()}),this.tileResource.clear()}}]),i}(),wse=l(35486),Cse=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"getCombineFeature",value:function(f){var m=null,d=f[0];return f.map(function(E){var M=N2.polygon(E.coordinates);m===null?m=M:m=(0,wse.Z)(m,M)}),d&&(m.properties=(0,vn.Z)({},d)),m}}]),i}(),DN="select",k8="active",mJ=function(){function i(v){var f=v.layerService,m=v.tileLayerService,d=v.parent;(0,Zr.Z)(this,i),(0,Na.Z)(this,"tilePickID",new Map),this.layerService=f,this.tileLayerService=m,this.parent=d,this.tileSourceService=new Cse}return(0,gt.Z)(i,[{key:"pickRender",value:function(f){var m=this.tileLayerService.getVisibleTileBylngLat(f.lngLat);if(m){var d=m.getMainLayer();d==null||d.layerPickService.pickRender(f)}}},{key:"pick",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(M=this.parent.getContainer(),B=M.get(cu.IPickingService),d.type!=="RasterLayer"){st.next=8;break}if(J=this.tileLayerService.getVisibleTileBylngLat(E.lngLat),!(J&&J.getMainLayer()!==void 0)){st.next=7;break}return ue=J.getMainLayer(),st.abrupt("return",ue.layerPickService.pickRasterLayer(ue,E,this.parent));case 7:return st.abrupt("return",!1);case 8:return this.pickRender(E),st.abrupt("return",B.pickFromPickingFBO(d,E));case 10:case"end":return st.stop()}},m,this)}));function f(m,d){return v.apply(this,arguments)}return f}()},{key:"selectFeature",value:function(f){var m=(0,hu.Z)(f,3),d=m[0],E=m[1],M=m[2],B=this.color2PickId(d,E,M);this.tilePickID.set(DN,B),this.updateHighLight(d,E,M,DN)}},{key:"highlightPickedFeature",value:function(f){var m=(0,hu.Z)(f,3),d=m[0],E=m[1],M=m[2],B=this.color2PickId(d,E,M);this.tilePickID.set(k8,B),this.updateHighLight(d,E,M,k8)}},{key:"updateHighLight",value:function(f,m,d,E){this.tileLayerService.tiles.map(function(M){var B=M.getMainLayer();switch(E){case DN:B==null||B.hooks.beforeSelect.call([f,m,d]);break;case k8:B==null||B.hooks.beforeHighlight.call([f,m,d]);break}})}},{key:"setPickState",value:function(){var f=this.tilePickID.get(DN),m=this.tilePickID.get(k8);if(f){var d=this.pickId2Color(f),E=(0,hu.Z)(d,3),M=E[0],B=E[1],J=E[2];this.updateHighLight(M,B,J,DN);return}if(m){var ue=this.pickId2Color(m),Ze=(0,hu.Z)(ue,3),st=Ze[0],Fr=Ze[1],Go=Ze[2];this.updateHighLight(st,Fr,Go,k8);return}}},{key:"color2PickId",value:function(f,m,d){return A0(new Uint8Array([f,m,d]))}},{key:"pickId2Color",value:function(f){return nv(f)}},{key:"getFeatureById",value:function(f){var m=this.tileLayerService.getTiles().filter(function(E){return E.visible}),d=[];return m.forEach(function(E){d.push.apply(d,(0,su.Z)(E.getFeatureById(f)))}),d}},{key:"pickRasterLayer",value:function(f,m,d){return!1}}]),i}();function vJ(i){return i==="PolygonLayer"?pN:i==="LineLayer"?MZ:uz}function ck(i){return["PolygonLayer","LineLayer"].indexOf(i)!==-1}function yJ(i){var v=Sse();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Sse(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var N8=function(i){(0,Ht.Z)(f,i);var v=yJ(f);function f(m,d){var E;return(0,Zr.Z)(this,f),E=v.call(this),(0,Na.Z)((0,mv.Z)(E),"visible",!0),(0,Na.Z)((0,mv.Z)(E),"layers",[]),(0,Na.Z)((0,mv.Z)(E),"isLoaded",!1),(0,Na.Z)((0,mv.Z)(E),"tileMaskLayers",[]),E.parent=d,E.sourceTile=m,E.x=m.x,E.y=m.y,E.z=m.z,E.key="".concat(E.x,"_").concat(E.y,"_").concat(E.z),E}return(0,gt.Z)(f,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(d){var E=(0,hu.Z)(this.sourceTile.bounds,4),M=E[0],B=E[1],J=E[2],ue=E[3],Ze=d.lng,st=d.lat;return Ze>=M&&Ze<=J&&st>=B&&st<=ue}},{key:"getLayerOptions",value:function(){var d,E=this.parent.getLayerConfig();return(0,vn.Z)((0,vn.Z)({},E),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:ck(this.parent.type),mask:E.mask||((d=E.maskLayers)===null||d===void 0?void 0:d.length)!==0&&E.enableMask})}},{key:"getMaskLayer",value:function(){var d=this,E=this.parent.getLayerConfig(),M=E.maskLayers,B=[];return M==null||M.forEach(function(J){if(!J.tileLayer)return B.push(J),J;var ue=J.tileLayer,Ze=ue.getTile(d.sourceTile.key),st=Ze==null?void 0:Ze.getLayers()[0];st&&B.push(st)}),B}},{key:"addTileMask",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J;return Pv().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return M=new pN({name:"mask",visible:!0,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").color("#0f0").style({opacity:.5}),B=TL(this.parent.sceneContainer),M.setContainer(B,this.parent.sceneContainer),Ze.next=5,M.init();case 5:return this.tileMask=M,J=this.getMainLayer(),J!==void 0&&(J.tileMask=M),Ze.abrupt("return",M);case 9:case"end":return Ze.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"addMask",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M,B){var J;return Pv().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return J=TL(this.parent.sceneContainer),B.setContainer(J,this.parent.sceneContainer),Ze.next=4,B.init();case 4:M.addMask(B),this.tileMaskLayers.push(B);case 6:case"end":return Ze.stop()}},E,this)}));function d(E,M){return m.apply(this,arguments)}return d}()},{key:"addLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(M){var B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return M.isTileLayer=!0,B=TL(this.parent.sceneContainer),M.setContainer(B,this.parent.sceneContainer),this.layers.push(M),ue.next=6,M.init();case 6:case"end":return ue.stop()}},E,this)}));function d(E){return m.apply(this,arguments)}return d}()},{key:"updateVisible",value:function(d){this.visible=d,this.updateOptions("visible",d)}},{key:"updateOptions",value:function(d,E){this.layers.forEach(function(M){M.updateLayerConfig((0,Na.Z)({},d,E))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(d){return[]}},{key:"getFeatureById",value:function(d){return[]}},{key:"destroy",value:function(){var d;(d=this.tileMask)===null||d===void 0||d.destroy(),this.layers.forEach(function(E){return E.destroy()})}}]),f}(O2.EventEmitter);function Ese(i){var v=Fz();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Fz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Tse=function(i){(0,Ht.Z)(f,i);var v=Ese(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.getSourceOption(),B=M.data.features[0].properties,J=new MZ().source(M.data,M.options).size(1).shape("line").color("red"),ue=new uz({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([B],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),st.next=6,this.addLayer(J);case 6:return st.next=8,this.addLayer(ue);case 8:this.isLoaded=!0;case 9:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),E=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:E},options:{parser:{type:"geojson"},transforms:d.transforms}}}}]),f}(N8);function Ase(i){var v=BH();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function BH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var _J=function(i){(0,Ht.Z)(f,i);var v=Ase(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new oz((0,vn.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Fr){var Go,Ta,eu=Fr;ue[eu]((Go=M[eu])===null||Go===void 0?void 0:Go.field,(Ta=M[eu])===null||Ta===void 0?void 0:Ta.values)}),st.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:d.transforms}}}}]),f}(N8);function Dse(i){var v=Ise();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Ise(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Pse=function(i){(0,Ht.Z)(f,i);var v=Dse(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new iH((0,vn.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Fr){var Go,Ta,eu=Fr;ue[eu]((Go=M[eu])===null||Go===void 0?void 0:Go.field,(Ta=M[eu])===null||Ta===void 0?void 0:Ta.values)}),st.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getFeatures",value:function(d){if(!d)return[];var E=this.sourceTile.data;return E.getTileData(d)}},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),E=this.parent.getLayerConfig(),M=E.sourceLayer,B=E.featureId,J=this.getFeatures(M);return{data:{type:"FeatureCollection",features:J},options:{parser:{type:"geojson",featureId:B},transforms:d.transforms}}}}]),f}(N8),Lse=["rasterData"];function zV(i){var v=zH();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function zH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Mse=function(i){(0,Ht.Z)(f,i);var v=zV(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new mM((0,vn.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Fr){var Go,Ta,eu=Fr;ue[eu]((Go=M[eu])===null||Go===void 0?void 0:Go.field,(Ta=M[eu])===null||Ta===void 0?void 0:Ta.values)}),st.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),E=this.sourceTile.data.data,M=E.rasterData,B=(0,q3.Z)(E,Lse);return{data:M,options:{parser:(0,vn.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:d.transforms}}}}]),f}(N8);function Ose(i){var v=$V();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function $V(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Rse=function(i){(0,Ht.Z)(f,i);var v=Ose(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue;return Pv().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=new mM((0,vn.Z)({},B)).source(J.data,J.options),M&&Object.keys(M).forEach(function(Fr){var Go,Ta,eu=Fr;ue[eu]((Go=M[eu])===null||Go===void 0?void 0:Go.field,(Ta=M[eu])===null||Ta===void 0?void 0:Ta.values)}),st.next=7,this.addLayer(ue);case 7:this.isLoaded=!0;case 8:case"end":return st.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:d.transforms}}}}]),f}(N8),kse=["rasterData"];function Nse(i){var v=UV();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function UV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Fse={positions:[0,1],colors:["#000","#fff"]},Bse=function(i){(0,Ht.Z)(f,i);var v=Nse(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"initTileLayer",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st,Fr;return Pv().wrap(function(Ta){for(;;)switch(Ta.prev=Ta.next){case 0:return M=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),J=this.getSourceOption(),ue=this.getLayerOptions(),Ze=ue.rampColors,st=ue.domain,this.colorTexture=this.parent.textureService.getColorTexture(Ze,st),Fr=new mM((0,vn.Z)((0,vn.Z)({},B),{},{colorTexture:this.colorTexture})).source(J.data,J.options),M&&Object.keys(M).forEach(function(eu){var kd,em,B0=eu;Fr[B0]((kd=M[B0])===null||kd===void 0?void 0:kd.field,(em=M[B0])===null||em===void 0?void 0:em.values)}),Ta.next=9,this.addLayer(Fr);case 9:this.isLoaded=!0;case 10:case"end":return Ta.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getSourceOption",value:function(){var d=this.parent.getSource(),E=this.sourceTile.data.data,M=E.rasterData,B=(0,q3.Z)(E,kse);return{data:M,options:{parser:(0,vn.Z)({type:"raster",extent:this.sourceTile.bounds},B),transforms:d.transforms}}}},{key:"styleUpdate",value:function(){for(var d=this,E=arguments.length,M=new Array(E),B=0;B=2&&!ue&&(f.parent.updateLayerConfig({visible:!0}),f.layerService.reRender())}f.lastViewStates&&f.lastViewStates.zoom===B&&f.lastViewStates.latLonBounds.toString()===M.toString()||(f.lastViewStates={zoom:B,latLonBounds:M},(d=f.tilesetManager)===null||d===void 0||d.throttleUpdate(B,M))}}),(0,Na.Z)(this,"viewchange",OL(this.mapchange,24)),this.parent=v;var m=this.parent.getContainer();this.rendererService=m.get(cu.IRendererService),this.layerService=m.get(cu.ILayerService),this.mapService=m.get(cu.IMapService),this.pickingService=m.get(cu.IPickingService),this.tileLayerService=new xse({rendererService:this.rendererService,layerService:this.layerService,parent:v}),this.tilePickService=new mJ({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:v}),this.parent.setLayerPickService(this.tilePickService),this.proxy(v),this.initTileSetManager()}return(0,gt.Z)(i,[{key:"initTileSetManager",value:function(){var f,m=this.parent.getSource();if(this.tilesetManager=m.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var d=this.getCurrentView(),E=d.latLonBounds,M=d.zoom;(f=this.tilesetManager)===null||f===void 0||f.update(M,E)}}},{key:"getCurrentView",value:function(){var f=this.mapService.getBounds(),m=[f[0][0],f[0][1],f[1][0],f[1][1]],d=this.mapService.getZoom();return{latLonBounds:m,zoom:d}}},{key:"bindTilesetEvent",value:function(){var f=this;this.tilesetManager.on("tile-loaded",function(m){}),this.tilesetManager.on("tile-unload",function(m){f.tileUnLoad(m)}),this.tilesetManager.on("tile-error",function(m,d){f.tileError(m)}),this.tilesetManager.on("tile-update",function(){f.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(f){return this.tileLayerService.getTile(f)}},{key:"tileLoaded",value:function(f){}},{key:"tileError",value:function(f){console.warn("error:",f)}},{key:"destroy",value:function(){var f;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(f=this.tilesetManager)===null||f===void 0||f.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var f;this.tilesetManager.clear();var m=this.getCurrentView(),d=m.latLonBounds,E=m.zoom;(f=this.tilesetManager)===null||f===void 0||f.update(E,d)}},{key:"tileUnLoad",value:function(f){this.tileLayerService.removeTile(f.key)}},{key:"tileUpdate",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){var d=this,E,M,B;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.tilesetManager){ue.next=2;break}return ue.abrupt("return");case 2:return E=this.parent.getMinZoom(),M=this.parent.getMaxZoom(),B=this.tilesetManager.tiles.filter(function(Ze){return Ze.isLoaded}).filter(function(Ze){return Ze.isVisibleChange}).filter(function(Ze){return Ze.data}).filter(function(Ze){return Ze.z>=E&&Ze.z0&&arguments[0]!==void 0?arguments[0]:"vertical",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;this.container.classList.remove("horizontal","vertical"),this.container.classList.add(d),d==="horizontal"?(this.container.style.top=E*100+"%",this.container.style.left=""):(this.container.style.left=E*100+"%",this.container.style.top="")}},{key:"setLayers",value:function(d,E){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,B=d.filter(function(ue){return E.includes(ue)===!1}),J=E.filter(function(ue){return d.includes(ue)===!1});this.addMaskToLayers(B,M),this.removeMaskFromLayers(J)}},{key:"addMaskToLayers",value:function(d,E){var M=this;d.forEach(function(B){B.updateLayerConfig({maskInside:!E}),B.addMask(M.maskLayer)})}},{key:"removeMaskFromLayers",value:function(d){var E=this;d.forEach(function(M){M.updateLayerConfig({maskInside:!0}),M.removeMask(E.maskLayer)})}},{key:"getMaskGeoData",value:function(){var d=this.controlOption,E=d.ratio,M=E===void 0?.5:E,B=d.orientation,J=B===void 0?"vertical":B,ue=J==="vertical",Ze=this.getBounds(),st=(0,hu.Z)(Ze,2),Fr=st[0],Go=st[1],Ta=(0,hu.Z)(Fr,2),eu=Ta[0],kd=Ta[1],em=(0,hu.Z)(Go,2),B0=em[0],vv=em[1],y1;if(ue){var fy=eu+(B0-eu)*M;y1=[[eu,vv],[fy,vv],[fy,kd],Fr,[eu,vv]]}else{var J1=this.getContainerSize(),ey=this.mapsService.containerToLngLat([J1[0],J1[1]*M]),Fy=ey.lat;y1=[[eu,vv],Go,[B0,Fy],[eu,Fy],[eu,vv]]}var C_={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[y1]}}]};return C_}},{key:"getContainerDOMRect",value:function(){var d,E=(d=this.mapsService.getContainer())===null||d===void 0?void 0:d.getBoundingClientRect();return E}},{key:"getContainerSize",value:function(){var d=this.mapsService.getSize();return d}},{key:"getBounds",value:function(){var d=this.mapsService.getBounds();return d}},{key:"addLayer",value:function(d){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=Array.isArray(d)?d:[d];if(E){var B,J=(B=this.controlOption.rightLayers).concat.apply(B,(0,su.Z)(M));this.setOptions({rightLayers:J})}else{var ue,Ze=(ue=this.controlOption.layers).concat.apply(ue,(0,su.Z)(M));this.setOptions({layers:Ze})}}},{key:"removeLayer",value:function(d){var E=Array.isArray(d)?d:[d],M=this.controlOption.layers.filter(function(J){return E.includes(J)}),B=this.controlOption.rightLayers.filter(function(J){return E.includes(J)});this.setOptions({layers:M,rightLayers:B})}},{key:"removeLayers",value:function(){this.setOptions({layers:[],rightLayers:[]})}}]),f}(p1);function Kse(i){var v=Xse();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Xse(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Yse=function(i){(0,Ht.Z)(f,i);var v=Kse(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;Mm.mapsService.getMinZoom()&&m.mapsService.zoomOut()}),(0,Na.Z)((0,mv.Z)(m),"updateDisabled",function(){var B=m.mapsService;m.zoomInButton.removeAttribute("disabled"),m.zoomOutButton.removeAttribute("disabled"),(m.disabled||B.getZoom()<=B.getMinZoom())&&m.zoomOutButton.setAttribute("disabled","true"),m.controlOption.showZoom&&m.zoomNumDiv&&(m.zoomNumDiv.innerText=String(Math.floor(B.getZoom()))),(m.disabled||B.getZoom()>=B.getMaxZoom())&&m.zoomInButton.setAttribute("disabled","true")}),m}return(0,gt.Z)(f,[{key:"getDefault",value:function(d){return(0,vn.Z)((0,vn.Z)({},PS((0,oi.Z)(f.prototype),"getDefault",this).call(this,d)),{},{position:Gy.BOTTOMRIGHT,name:"zoom",zoomInText:dS("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:dS("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(d){PS((0,oi.Z)(f.prototype),"setOptions",this).call(this,d),this.checkUpdateOption(d,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var d=Ov("div","l7-control-zoom");return this.resetButtonGroup(d),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),d}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(d){Ay(d),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",d,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",d)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",d,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(d,E,M,B,J){var ue=Ov("button",M,B);return typeof d=="string"?ue.innerHTML=d:ue.append(d),ue.title=E,J&&ue.addEventListener("click",J),ue}}]),f}(p1);function bB(i){var v=GV();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function GV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var jJ=function(i){(0,Ht.Z)(f,i);var v=bB(f);function f(m){var d;(0,Zr.Z)(this,f),d=v.call(this),(0,Na.Z)((0,mv.Z)(d),"isShow",!0),(0,Na.Z)((0,mv.Z)(d),"onMouseMove",function(M){var B,J=d.mapsService.getMapContainer(),ue=(B=J==null?void 0:J.getBoundingClientRect())!==null&&B!==void 0?B:{},Ze=ue.left,st=Ze===void 0?0:Ze,Fr=ue.top,Go=Fr===void 0?0:Fr;d.setPopupPosition(M.clientX-st,M.clientY-Go)}),(0,Na.Z)((0,mv.Z)(d),"updateLngLatPosition",function(){if(!(!d.mapsService||d.popupOption.followCursor)){var M=d.lngLat,B=M.lng,J=M.lat,ue=d.mapsService.lngLatToContainer([B,J]),Ze=ue.x,st=ue.y;d.setPopupPosition(Ze,st)}}),(0,Na.Z)((0,mv.Z)(d),"updateLngLatPositionWhenZoom",function(M){if(!(!d.mapsService||d.popupOption.followCursor)){var B=d.lngLat,J=B.lng,ue=B.lat,Ze=d.mapsService.lngLatToContainer([J,ue]),st=Ze.x,Fr=Ze.y,Go=M.map,Ta=Go.getSize();Ta.x=Ta.x/2,Ta.y=Ta.y/2;var eu=M.center,kd=M.zoom,em=Go.DE(d.lngLat,kd,eu);em.x=Math.round(em.x),em.y=Math.round(em.y),d.setPopupPosition(em.x,em.y,!0)}}),(0,Na.Z)((0,mv.Z)(d),"onKeyDown",function(M){M.keyCode===27&&d.remove()}),(0,Na.Z)((0,mv.Z)(d),"onCloseButtonClick",function(M){M.stopPropagation&&M.stopPropagation(),d.hide()}),(0,Na.Z)((0,mv.Z)(d),"updatePosition",function(M){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=!!d.lngLat,ue=d.popupOption,Ze=ue.className,st=ue.style,Fr=ue.maxWidth,Go=ue.anchor,Ta=ue.stopPropagation;if(!(!d.mapsService||!J||!d.content)){var eu=d.mapsService.getMarkerContainer();if(!d.container&&eu&&(d.container=Ov("div","l7-popup ".concat(Ze!=null?Ze:""," ").concat(d.isShow?"":"l7-popup-hide"),eu),st&&d.container.setAttribute("style",st),d.tip=Ov("div","l7-popup-tip",d.container),d.container.appendChild(d.content),Ta&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(B0){d.container.addEventListener(B0,function(vv){vv.stopPropagation()})}),d.container.style.whiteSpace="nowrap"),B?d.updateLngLatPositionWhenZoom(M):d.updateLngLatPosition(),rx(d.container,"".concat(Gg[Go])),uu(d.container,Go,"popup"),Fr){var kd=d.container.getBoundingClientRect(),em=kd.width;em>parseFloat(Fr)&&(d.container.style.width=Fr)}else d.container.style.removeProperty("width")}}),(0,Na.Z)((0,mv.Z)(d),"updateWhenZoom",function(M){d.updatePosition(M,!0)}),(0,Na.Z)((0,mv.Z)(d),"update",function(){d.updatePosition(null,!1)}),d.popupOption=(0,vn.Z)((0,vn.Z)({},d.getDefault(m!=null?m:{})),m);var E=d.popupOption.lngLat;return E&&(d.lngLat=E),d}return(0,gt.Z)(f,[{key:"lngLat",get:function(){var d;return(d=this.popupOption.lngLat)!==null&&d!==void 0?d:{lng:0,lat:0}},set:function(d){this.popupOption.lngLat=d}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(d){this.mapsService=d.get(cu.IMapService),this.sceneService=d.get(cu.ISceneService),this.layerService=d.get(cu.ILayerService),this.mapsService.on("zoomchange",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=d,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var E=this.popupOption,M=E.html,B=E.text,J=E.title;return M?this.setHTML(M):B&&this.setText(B),J&&this.setTitle(J),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&v1(this.content),this.container&&(v1(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("zoomchange",this.updateWhenZoom),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(d){return this.show(),this.popupOption=(0,vn.Z)((0,vn.Z)({},this.popupOption),d),this.checkUpdateOption(d,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(v1(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(d,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(d,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(d,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(d,["html"])&&d.html?this.setHTML(d.html):this.checkUpdateOption(d,["text"])&&d.text&&this.setText(d.text),this.checkUpdateOption(d,["lngLat"])&&d.lngLat&&this.setLnglat(d.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&sx(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&K1(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(d){return this.popupOption.html=d,this.setDOMContent(d)}},{key:"setText",value:function(d){return this.popupOption.text=d,this.setDOMContent(window.document.createTextNode(d))}},{key:"setTitle",value:function(d){this.show(),this.popupOption.title=d,d?(this.contentTitle||(this.contentTitle=Ov("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),Ay(this.contentTitle),E_(this.contentTitle,d)):this.contentTitle&&(v1(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var d=this.lngLat,E=d.lng,M=d.lat;return this.popupOption.autoPan&&this.mapsService.panTo([E,M]),this}},{key:"setLngLat",value:function(d){return this.setLnglat(d)}},{key:"setLnglat",value:function(d){var E=this;return this.show(),this.lngLat=d,Array.isArray(d)&&(this.lngLat={lng:d[0],lat:d[1]}),this.mapsService&&(this.mapsService.off("zoonanim",this.updateWhenZoom),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("zoonanim",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){E.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(d){return this.popupOption.maxWidth=d,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(d){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:cv.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(d){return this.show(),this.createContent(),E_(this.contentPanel,d),this.update(),this}},{key:"updateCloseOnClick",value:function(d){var E=this,M=this.mapsService;M&&(M==null||M.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!d&&requestAnimationFrame(function(){M==null||M.on("click",E.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(d){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!d&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(d){var E,M=(E=this.mapsService)===null||E===void 0?void 0:E.getContainer();M&&(M==null||M.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!d&&(M==null||M.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var d=this;if(this.content&&v1(this.content),this.contentTitle=void 0,this.content=Ov("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var E=dS("l7-icon-guanbi");K1(E,"l7-popup-close-button"),this.content.appendChild(E),this.popupOption.closeButtonOffsets&&(E.style.right=this.popupOption.closeButtonOffsets[0]+"px",E.style.top=this.popupOption.closeButtonOffsets[1]+"px"),E.setAttribute("aria-label","Close popup"),E.addEventListener("click",function(){d.hide()}),E.addEventListener("pointerup",function(M){M.stopPropagation()}),E.addEventListener("pointerdown",function(M){M.stopPropagation()}),this.closeButton=E}else this.closeButton=void 0;this.contentPanel=Ov("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(d,E){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.container){var B=this.popupOption.offsets;this.container.style.left=d+B[0]+"px",this.container.style.top=E-B[1]+"px",M?this.container.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)":this.container.style.transition=""}}},{key:"checkUpdateOption",value:function(d,E){return E.some(function(M){return M in d})}}]),f}(O2.EventEmitter);function qse(i){var v=KV();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function KV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var WJ=Qv.get,HH=function(i){(0,Ht.Z)(f,i);var v=qse(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:{},y=this.layer.getLayerConfig(),w=y.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(a=this.colorModel)===null||a===void 0||a.draw({uniforms:{u_opacity:w||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(p)}),this.layer.hooks.afterRender.call()}}]),l}($u),Iv={wind:fL},Lv=Iv;function s5(i){var d=H2();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function H2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var rB=function(i){(0,ze.Z)(l,i);var d=s5(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(a),this}},{key:"getDefaultConfig",value:function(){var a=this.getModelType(),p={wind:{}};return p[a]}},{key:"getModelType",value:function(){return"wind"}}]),l}(Gy),Hv,iB,a5,oB,Jw,oN,sB,mT=ks.cloneDeep,YZ=(Hv=(0,xr.b2)(),iB=(0,xr.f3)(In.IMapService),a5=(0,xr.f3)(In.IFontService),Hv(oB=(Jw=function(){function i(){(0,vt.Z)(this,i),F(this,"mapService",oN,this),F(this,"fontService",sB,this)}return(0,Te.Z)(i,[{key:"apply",value:function(l,c){var a=this,p=c.styleAttributeService;l.hooks.init.tapPromise("DataMappingPlugin",(0,al.Z)(mo().mark(function y(){return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:l.log(Wg.MappingStart,Ad.INIT),a.generateMaping(l,{styleAttributeService:p}),l.log(Wg.MappingEnd,Ad.INIT);case 3:case"end":return O.stop()}},y)}))),l.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var y=(0,al.Z)(mo().mark(function w(O){var V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(O){be.next=2;break}return be.abrupt("return",O);case 2:return l.dataState.dataMappingNeedUpdate=!1,l.log(Wg.MappingStart,Ad.UPDATE),V=a.generateMaping(l,{styleAttributeService:p}),l.log(Wg.MappingEnd,Ad.UPDATE),be.abrupt("return",V);case 7:case"end":return be.stop()}},w)}));return function(w){return y.apply(this,arguments)}}()),l.hooks.beforeRender.tap("DataMappingPlugin",function(){var y=l.getSource();if(!(l.layerModelNeedUpdate||!y||!y.inited)){var w=p.getLayerStyleAttributes()||[],O=p.getLayerStyleAttribute("filter"),V=y.data.dataArray;if(!(Array.isArray(V)&&V.length===0)){var he=w.filter(function(Pt){return Pt.needRemapping}),be=V;if(O!=null&&O.needRemapping&&O!==null&&O!==void 0&&O.scale&&(be=V.filter(function(Pt){return a.applyAttributeMapping(O,Pt)[0]})),he.length){var ut=a.mapping(l,he,be,l.getEncodedData());l.setEncodedData(ut)}}}})}},{key:"generateMaping",value:function(l,c){var a=this,p=c.styleAttributeService,y=p.getLayerStyleAttributes()||[],w=p.getLayerStyleAttribute("filter"),O=l.getSource().data.dataArray,V=O;w!=null&&w.scale&&(V=O.filter(function(be){return a.applyAttributeMapping(w,be)[0]})),V=l.processData(V);var he=this.mapping(l,y,V,void 0);return l.setEncodedData(he),l.emit("dataUpdate",null),!0}},{key:"mapping",value:function(l,c,a,p){var y=this,w=c.filter(function(V){return V.scale!==void 0}).filter(function(V){return V.name!=="filter"}),O=a.map(function(V,he){var be=p?p[he]:{},ut=(0,Xe.Z)({id:V._id,coordinates:V.coordinates},be);return w.forEach(function(Pt){var qt=y.applyAttributeMapping(Pt,V);(Pt.name==="color"||Pt.name==="stroke")&&(qt=qt.map(function(En){return zr(En)})),ut[Pt.name]=Array.isArray(qt)&&qt.length===1?qt[0]:qt,Pt.name==="shape"&&(ut.shape=y.fontService.getIconFontKey(ut[Pt.name]))}),ut});return c.forEach(function(V){V.needRemapping=!1}),this.adjustData2Amap2Coordinates(O,l),this.adjustData2SimpleCoordinates(O),O}},{key:"adjustData2Amap2Coordinates",value:function(l,c){var a=this;if(l.length>0&&this.mapService.version==="GAODE2.x"){var p=c.coordCenter||c.getSource().center;l.filter(function(y){return!y.originCoordinates}).map(function(y){y.version="GAODE2.x",y.originCoordinates=mT(y.coordinates),y.coordinates=a.mapService.coordToAMap2RelativeCoordinates(y.coordinates,p)})}}},{key:"adjustData2SimpleCoordinates",value:function(l){var c=this;l.length>0&&this.mapService.version==="SIMPLE"&&l.map(function(a){a.simpleCoordinate||(a.coordinates=c.unProjectCoordinates(a.coordinates),a.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(l){var c=this;if(typeof l[0]=="number")return this.mapService.simpleMapCoord.unproject(l);if(l[0]&&l[0][0]instanceof Array){var a=[];return l.map(function(y){var w=[];y.map(function(O){w.push(c.mapService.simpleMapCoord.unproject(O))}),a.push(w)}),a}else{var p=[];return l.map(function(y){p.push(c.mapService.simpleMapCoord.unproject(y))}),p}}},{key:"applyAttributeMapping",value:function(l,c){var a;if(!l.scale)return[];var p=(l==null||(a=l.scale)===null||a===void 0?void 0:a.scalers)||[],y=[];p.forEach(function(O){var V,he=O.field;(c.hasOwnProperty(he)||((V=l.scale)===null||V===void 0?void 0:V.type)==="variable")&&y.push(c[he])});var w=l.mapping?l.mapping(y):[];return w}},{key:"getArrowPoints",value:function(l,c){var a=[c[0]-l[0],c[1]-l[1]],p=Xu(a),y=[l[0]+p[0]*1e-4,l[1]+p[1]*1e-4];return y}}]),i}(),oN=I(Jw.prototype,"mapService",[iB],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sB=I(Jw.prototype,"fontService",[a5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jw))||oB),aB,lB,pL=(aB=(0,xr.b2)(),aB(lB=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"apply",value:function(l){var c=this;this.mapService=l.getContainer().get(In.IMapService),l.hooks.init.tapPromise("DataSourcePlugin",(0,al.Z)(mo().mark(function a(){var p,y,w,O;return mo().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(l.log(Wg.SourceInitStart,Ad.INIT),p=l.getSource(),p||(y=l.sourceOption||l.defaultSourceConfig,w=y.data,O=y.options,p=new ee(w,O),l.setSource(p)),!p.inited){he.next=8;break}c.updateClusterData(l),l.log(Wg.SourceInitEnd,Ad.INIT),he.next=10;break;case 8:return he.next=10,new Promise(function(be){p.on("update",function(ut){ut.type==="inited"&&(c.updateClusterData(l),l.log(Wg.SourceInitEnd,Ad.INIT)),be(null)})});case 10:case"end":return he.stop()}},a)}))),l.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,al.Z)(mo().mark(function a(){var p,y,w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return p=c.updateClusterData(l),y=l.dataState.dataSourceNeedUpdate,l.dataState.dataSourceNeedUpdate=!1,w=p||y,V.abrupt("return",w);case 5:case"end":return V.stop()}},a)})))}},{key:"updateClusterData",value:function(l){if(l.isTileLayer||l.tileLayer||!l.getSource())return!1;var c=l.getSource(),a=c.cluster,p=c.clusterOptions.zoom,y=p===void 0?0:p,w=this.mapService.getZoom()-1,O=l.dataState.dataSourceNeedUpdate;return a&&O&&c.updateClusterData(Math.floor(w)),a&&Math.abs(l.clusterZoom-w)>=1?(y!==Math.floor(w)&&c.updateClusterData(Math.floor(w)),l.clusterZoom=w,!0):!1}}]),i}())||lB),Xy=x(57965);function WD(i,d,l,c,a){var p=i*i,y=p*i;return((1-3*i+3*p-y)*d+(4-6*p+3*y)*l+(1+3*i+3*p-3*y)*c+y*a)/6}function uB(i){var d=i.length-1;return function(l){var c=l<=0?l=0:l>=1?(l=1,d-1):Math.floor(l*d),a=i[c],p=i[c+1],y=c>0?i[c-1]:2*a-p,w=c180||l<-180?l-360*Math.round(l/360):l):constant(isNaN(i)?d:i)}function vT(i){return(i=+i)==1?yT:function(d,l){return l-d?qZ(d,l,i):G2(isNaN(d)?l:d)}}function yT(i,d){var l=d-i;return l?u5(i,l):G2(isNaN(i)?d:i)}var cB=function i(d){var l=vT(d);function c(a,p){var y=l((a=Fr(a)).r,(p=Fr(p)).r),w=l(a.g,p.g),O=l(a.b,p.b),V=yT(a.opacity,p.opacity);return function(he){return a.r=y(he),a.g=w(he),a.b=O(he),a.opacity=V(he),a+""}}return c.gamma=i,c}(1);function hB(i){return function(d){var l=d.length,c=new Array(l),a=new Array(l),p=new Array(l),y,w;for(y=0;y=i.length)return l!=null&&w.sort(l),c!=null?c(w):w;for(var be=-1,ut=w.length,Pt=i[O++],qt,En,qn=map(),Zr,Si=V();++bei.length)return w;var V,he=d[O-1];return c!=null&&O>=i.length?V=w.entries():(V=[],w.each(function(be,ut){V.push({key:ut,values:y(be,O)})})),he!=null?V.sort(function(be,ut){return he(be.key,ut.key)}):V}return a={object:function(w){return p(w,0,pE,dB)},map:function(w){return p(w,0,sN,Yv)},entries:function(w){return y(p(w,0,sN,Yv),0)},key:function(w){return i.push(w),a},sortKeys:function(w){return d[i.length-1]=w,a},sortValues:function(w){return l=w,a},rollup:function(w){return c=w,a}}}function pE(){return{}}function dB(i,d,l){i[d]=l}function sN(){return map()}function Yv(i,d,l){i.set(d,l)}function gE(){}var K2=_T.prototype;gE.prototype=jD.prototype={constructor:gE,has:K2.has,add:function(i){return i+="",this[Xx+i]=i,this},remove:K2.remove,clear:K2.clear,values:K2.keys,size:K2.size,empty:K2.empty,each:K2.each};function jD(i,d){var l=new gE;if(i instanceof gE)i.each(function(p){l.add(p)});else if(i){var c=-1,a=i.length;if(d==null)for(;++cl&&(p=d.slice(l,p),w[y]?w[y]+=p:w[++y]=p),(c=c[0])===(a=a[0])?w[y]?w[y]+=a:w[++y]=a:(w[++y]=null,O.push({i:y,x:g1(c,a)})),l=lN.lastIndex;return ll&&(c=d,d=l,l=c),function(a){return Math.max(d,Math.min(l,a))}}function sj(i,d,l){var c=i[0],a=i[1],p=d[0],y=d[1];return a2?aj:sj,O=V=null,be}function be(ut){return isNaN(ut=+ut)?p:(O||(O=w(i.map(c),d,l)))(c(y(ut)))}return be.invert=function(ut){return y(a((V||(V=w(d,i.map(c),g1)))(ut)))},be.domain=function(ut){return arguments.length?(i=wm.call(ut,oj),y===M_||(y=gB(i)),he()):i.slice()},be.range=function(ut){return arguments.length?(d=Qw.call(ut),he()):d.slice()},be.rangeRound=function(ut){return d=Qw.call(ut),l=ij,he()},be.clamp=function(ut){return arguments.length?(y=ut?gB(i):M_,be):y!==M_},be.interpolate=function(ut){return arguments.length?(l=ut,he()):l},be.unknown=function(ut){return arguments.length?(p=ut,be):p},function(ut,Pt){return c=ut,a=Pt,he()}}function mB(i,d){return hN()(i,d)}var lj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bT(i){if(!(d=lj.exec(i)))throw new Error("invalid format: "+i);var d;return new dN({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}bT.prototype=dN.prototype;function dN(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}dN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function vB(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function f5(i,d){if((l=(i=d?i.toExponential(d-1):i.toExponential()).indexOf("e"))<0)return null;var l,c=i.slice(0,l);return[c.length>1?c[0]+c.slice(2):c,+i.slice(l+1)]}function Py(i){return i=f5(Math.abs(i)),i?i[1]:NaN}function P_(i,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Py(d)/3)))*3-Py(Math.abs(i)))}function uj(i,d){return function(l,c){for(var a=l.length,p=[],y=0,w=i[0],O=0;a>0&&w>0&&(O+w+1>c&&(w=Math.max(1,c-O)),p.push(l.substring(a-=w,a+w)),!((O+=w+1)>c));)w=i[y=(y+1)%i.length];return p.reverse().join(d)}}function cj(i){return function(d){return d.replace(/[0-9]/g,function(l){return i[+l]})}}function hj(i){e:for(var d=i.length,l=1,c=-1,a;l0&&(c=0);break}return c>0?i.slice(0,c)+i.slice(a+1):i}var yB;function XD(i,d){var l=f5(i,d);if(!l)return i+"";var c=l[0],a=l[1],p=a-(yB=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,y=c.length;return p===y?c:p>y?c+new Array(p-y+1).join("0"):p>0?c.slice(0,p)+"."+c.slice(p):"0."+new Array(1-p).join("0")+f5(i,Math.max(0,d+p-1))[0]}function _B(i,d){var l=f5(i,d);if(!l)return i+"";var c=l[0],a=l[1];return a<0?"0."+new Array(-a).join("0")+c:c.length>a+1?c.slice(0,a+1)+"."+c.slice(a+1):c+new Array(a-c.length+2).join("0")}var bB={"%":function(i,d){return(i*100).toFixed(d)},b:function(i){return Math.round(i).toString(2)},c:function(i){return i+""},d:vB,e:function(i,d){return i.toExponential(d)},f:function(i,d){return i.toFixed(d)},g:function(i,d){return i.toPrecision(d)},o:function(i){return Math.round(i).toString(8)},p:function(i,d){return _B(i*100,d)},r:_B,s:XD,X:function(i){return Math.round(i).toString(16).toUpperCase()},x:function(i){return Math.round(i).toString(16)}};function xB(i){return i}var CB=Array.prototype.map,wB=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function dj(i){var d=i.grouping===void 0||i.thousands===void 0?xB:uj(CB.call(i.grouping,Number),i.thousands+""),l=i.currency===void 0?"":i.currency[0]+"",c=i.currency===void 0?"":i.currency[1]+"",a=i.decimal===void 0?".":i.decimal+"",p=i.numerals===void 0?xB:cj(CB.call(i.numerals,String)),y=i.percent===void 0?"%":i.percent+"",w=i.minus===void 0?"-":i.minus+"",O=i.nan===void 0?"NaN":i.nan+"";function V(be){be=bT(be);var ut=be.fill,Pt=be.align,qt=be.sign,En=be.symbol,qn=be.zero,Zr=be.width,Si=be.comma,to=be.precision,ts=be.trim,Qs=be.type;Qs==="n"?(Si=!0,Qs="g"):bB[Qs]||(to===void 0&&(to=12),ts=!0,Qs="g"),(qn||ut==="0"&&Pt==="=")&&(qn=!0,ut="0",Pt="=");var Fs=En==="$"?l:En==="#"&&/[boxX]/.test(Qs)?"0"+Qs.toLowerCase():"",Us=En==="$"?c:/[%p]/.test(Qs)?y:"",Sa=bB[Qs],dl=/[defgprs%]/.test(Qs);to=to===void 0?6:/[gprs]/.test(Qs)?Math.max(1,Math.min(21,to)):Math.max(0,Math.min(20,to));function fu(iu){var ic=Fs,Nc=Us,nh,Zp,hg;if(Qs==="c")Nc=Sa(iu)+Nc,iu="";else{iu=+iu;var jg=iu<0||1/iu<0;if(iu=isNaN(iu)?O:Sa(Math.abs(iu),to),ts&&(iu=hj(iu)),jg&&+iu==0&&qt!=="+"&&(jg=!1),ic=(jg?qt==="("?qt:w:qt==="-"||qt==="("?"":qt)+ic,Nc=(Qs==="s"?wB[8+yB/3]:"")+Nc+(jg&&qt==="("?")":""),dl){for(nh=-1,Zp=iu.length;++nhhg||hg>57){Nc=(hg===46?a+iu.slice(nh+1):iu.slice(nh))+Nc,iu=iu.slice(0,nh);break}}}Si&&!qn&&(iu=d(iu,1/0));var U0=ic.length+iu.length+Nc.length,dm=U0>1)+ic+iu+Nc+dm.slice(U0);break;default:iu=dm+ic+iu+Nc;break}return p(iu)}return fu.toString=function(){return be+""},fu}function he(be,ut){var Pt=V((be=bT(be),be.type="f",be)),qt=Math.max(-8,Math.min(8,Math.floor(Py(ut)/3)))*3,En=Math.pow(10,-qt),qn=wB[8+qt/3];return function(Zr){return Pt(En*Zr)+qn}}return{format:V,formatPrefix:he}}var fN,SB,fj;Q_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Q_(i){return fN=dj(i),SB=fN.format,fj=fN.formatPrefix,fN}function YD(i,d){return i=Math.abs(i),d=Math.abs(d)-i,Math.max(0,Py(d)-Py(i))+1}function Dh(i){return Math.max(0,-Py(Math.abs(i)))}function UC(i,d,l,c){var a=(0,Xy.ly)(i,d,l),p;switch(c=bT(c==null?",f":c),c.type){case"s":{var y=Math.max(Math.abs(i),Math.abs(d));return c.precision==null&&!isNaN(p=P_(a,y))&&(c.precision=p),fj(c,y)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(p=YD(a,Math.max(Math.abs(i),Math.abs(d))))&&(c.precision=p-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(p=Dh(a))&&(c.precision=p-(c.type==="%")*2);break}}return SB(c)}function xT(i){var d=i.domain;return i.ticks=function(l){var c=d();return(0,Xy.sd)(c[0],c[c.length-1],l==null?10:l)},i.tickFormat=function(l,c){var a=d();return UC(a[0],a[a.length-1],l==null?10:l,c)},i.nice=function(l){l==null&&(l=10);var c=d(),a=0,p=c.length-1,y=c[a],w=c[p],O;return w0?(y=Math.floor(y/O)*O,w=Math.ceil(w/O)*O,O=(0,Xy.G9)(y,w,l)):O<0&&(y=Math.ceil(y*O)/O,w=Math.floor(w*O)/O,O=(0,Xy.G9)(y,w,l)),O>0?(c[a]=Math.floor(y/O)*O,c[p]=Math.ceil(w/O)*O,d(c)):O<0&&(c[a]=Math.ceil(y*O)/O,c[p]=Math.floor(w*O)/O,d(c)),i},i}function gL(){var i=mB(M_,M_);return i.copy=function(){return d5(i,gL())},p0.apply(i,arguments),xT(i)}function pj(i){var d;function l(c){return isNaN(c=+c)?d:c}return l.invert=l,l.domain=l.range=function(c){return arguments.length?(i=map.call(c,number),l):i.slice()},l.unknown=function(c){return arguments.length?(d=c,l):d},l.copy=function(){return pj(i).unknown(d)},i=arguments.length?map.call(i,number):[0,1],linearish(l)}function mL(i,d){i=i.slice();var l=0,c=i.length-1,a=i[l],p=i[c],y;return p0){for(;uthe)break;Si.push(qn)}}else for(;ut=1;--En)if(qn=qt*En,!(qnhe)break;Si.push(qn)}}else Si=(0,Xy.sd)(ut,Pt,Math.min(Pt-ut,Zr)).map(p);return be?Si.reverse():Si},d.tickFormat=function(w,O){if(O==null&&(O=c===10?".0e":","),typeof O!="function"&&(O=SB(O)),w===1/0)return O;w==null&&(w=10);var V=Math.max(1,c*w/d.ticks().length);return function(he){var be=he/p(Math.round(a(he)));return be*c0?l[w-1]:i[0],w=l?[c[l-1],d]:[c[V-1],c[V]]},y.unknown=function(O){return arguments.length&&(p=O),y},y.thresholds=function(){return c.slice()},y.copy=function(){return CT().domain([i,d]).range(a).unknown(p)},p0.apply(xT(y),arguments)}function wT(){var i=[.5],d=[0,1],l,c=1;function a(p){return p<=p?d[(0,Xy.b4)(i,p,0,c)]:l}return a.domain=function(p){return arguments.length?(i=Qw.call(p),c=Math.min(i.length,d.length-1),a):i.slice()},a.range=function(p){return arguments.length?(d=Qw.call(p),c=Math.min(i.length,d.length-1),a):d.slice()},a.invertExtent=function(p){var y=d.indexOf(p);return[i[y-1],i[y]]},a.unknown=function(p){return arguments.length?(l=p,a):l},a.copy=function(){return wT().domain(i).range(d).unknown(l)},p0.apply(a,arguments)}var yL=new Date,QD=new Date;function qv(i,d,l,c){function a(p){return i(p=arguments.length===0?new Date:new Date(+p)),p}return a.floor=function(p){return i(p=new Date(+p)),p},a.ceil=function(p){return i(p=new Date(p-1)),d(p,1),i(p),p},a.round=function(p){var y=a(p),w=a.ceil(p);return p-y0))return O;do O.push(V=new Date(+p)),d(p,w),i(p);while(V=y)for(;i(y),!p(y);)y.setTime(y-1)},function(y,w){if(y>=y)if(w<0)for(;++w<=0;)for(;d(y,-1),!p(y););else for(;--w>=0;)for(;d(y,1),!p(y););})},l&&(a.count=function(p,y){return yL.setTime(+p),QD.setTime(+y),i(yL),i(QD),Math.floor(l(yL,QD))},a.every=function(p){return p=Math.floor(p),!isFinite(p)||!(p>0)?null:p>1?a.filter(c?function(y){return c(y)%p===0}:function(y){return a.count(0,y)%p===0}):a}),a}var eI=qv(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,d){i.setFullYear(i.getFullYear()+d)},function(i,d){return d.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});eI.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:qv(function(d){d.setFullYear(Math.floor(d.getFullYear()/i)*i),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,l){d.setFullYear(d.getFullYear()+l*i)})};var tS=eI,zQ=eI.range,MB=qv(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,d){i.setMonth(i.getMonth()+d)},function(i,d){return d.getMonth()-i.getMonth()+(d.getFullYear()-i.getFullYear())*12},function(i){return i.getMonth()}),yj=MB,_j=MB.range,_L=1e3,ST=6e4,PB=36e5,vE=864e5,RB=6048e5;function ET(i){return qv(function(d){d.setDate(d.getDate()-(d.getDay()+7-i)%7),d.setHours(0,0,0,0)},function(d,l){d.setDate(d.getDate()+l*7)},function(d,l){return(l-d-(l.getTimezoneOffset()-d.getTimezoneOffset())*ST)/RB})}var tI=ET(0),nI=ET(1),kB=ET(2),bj=ET(3),Y2=ET(4),VC=ET(5),xj=ET(6),Mie=tI.range,yE=nI.range,UQ=kB.range,VQ=bj.range,Yx=Y2.range,vN=VC.range,$Q=xj.range,v5=qv(function(i){i.setHours(0,0,0,0)},function(i,d){i.setDate(i.getDate()+d)},function(i,d){return(d-i-(d.getTimezoneOffset()-i.getTimezoneOffset())*ST)/vE},function(i){return i.getDate()-1}),yN=v5,y5=v5.range,OB=qv(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*_L-i.getMinutes()*ST)},function(i,d){i.setTime(+i+d*PB)},function(i,d){return(d-i)/PB},function(i){return i.getHours()}),rI=OB,NB=OB.range,_N=qv(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*_L)},function(i,d){i.setTime(+i+d*ST)},function(i,d){return(d-i)/ST},function(i){return i.getMinutes()}),Cj=_N,WQ=_N.range,bN=qv(function(i){i.setTime(i-i.getMilliseconds())},function(i,d){i.setTime(+i+d*_L)},function(i,d){return(d-i)/_L},function(i){return i.getUTCSeconds()}),FB=bN,AT=bN.range,_5=qv(function(){},function(i,d){i.setTime(+i+d)},function(i,d){return d-i});_5.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?qv(function(d){d.setTime(Math.floor(d/i)*i)},function(d,l){d.setTime(+d+l*i)},function(d,l){return(l-d)/i}):_5};var wj=_5,ZQ=_5.range;function $C(i){return qv(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-i)%7),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCDate(d.getUTCDate()+l*7)},function(d,l){return(l-d)/RB})}var BB=$C(0),b5=$C(1),Sj=$C(2),zB=$C(3),iI=$C(4),xN=$C(5),Ej=$C(6),Aj=BB.range,jQ=b5.range,oI=Sj.range,HQ=zB.range,q2=iI.range,GQ=xN.range,KQ=Ej.range,UB=qv(function(i){i.setUTCHours(0,0,0,0)},function(i,d){i.setUTCDate(i.getUTCDate()+d)},function(i,d){return(d-i)/vE},function(i){return i.getUTCDate()-1}),CN=UB,XQ=UB.range,wN=qv(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,d){i.setUTCFullYear(i.getUTCFullYear()+d)},function(i,d){return d.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});wN.every=function(i){return!isFinite(i=Math.floor(i))||!(i>0)?null:qv(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/i)*i),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,l){d.setUTCFullYear(d.getUTCFullYear()+l*i)})};var bL=wN,YQ=wN.range;function SN(i){if(0<=i.y&&i.y<100){var d=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return d.setFullYear(i.y),d}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function x5(i){if(0<=i.y&&i.y<100){var d=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return d.setUTCFullYear(i.y),d}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function xL(i,d,l){return{y:i,m:d,d:l,H:0,M:0,S:0,L:0}}function EN(i){var d=i.dateTime,l=i.date,c=i.time,a=i.periods,p=i.days,y=i.shortDays,w=i.months,O=i.shortMonths,V=TT(a),he=CL(a),be=TT(p),ut=CL(p),Pt=TT(y),qt=CL(y),En=TT(w),qn=CL(w),Zr=TT(O),Si=CL(O),to={a:jg,A:U0,b:dm,B:a1,c:null,d:E5,e:E5,f:sI,g:Uj,G:_E,H:kj,I:ZB,j:LN,L:rS,m:ZC,M:Oj,p:g2,q:wS,Q:uI,s:XB,S:Nj,u:iS,U:EL,V:Fj,w:MN,W:Bj,x:null,X:null,y:zj,Y:Vj,Z:HB,"%":D5},ts={a:HI,A:GI,b:Mv,B:lb,c:null,d:aI,e:aI,f:Wj,g:Gj,G:RN,H:Db,I:Q2,j:$j,L:GB,m:A5,M:lI,p:hk,q:dk,Q:uI,s:XB,S:Zj,u:jj,U:PN,V:KB,w:T5,W:Hj,x:null,X:null,y:z1,Y:bE,Z:ew,"%":D5},Qs={a:fu,A:iu,b:ic,B:Nc,c:nh,d:TN,e:TN,f:Pj,g:S5,G:WC,H:WB,I:WB,j:Ry,L:nS,m:SL,M:DN,p:dl,q:Lj,Q:DT,s:Rj,S:Mj,u:$B,U:J2,V:wL,w:Tj,W:Dj,x:Zp,X:hg,y:S5,Y:WC,Z:Ij,"%":IN};to.x=Fs(l,to),to.X=Fs(c,to),to.c=Fs(d,to),ts.x=Fs(l,ts),ts.X=Fs(c,ts),ts.c=Fs(d,ts);function Fs(mg,L0){return function(ev){var Lf=[],Zb=-1,Pv=0,Cx=mg.length,Sx,p3,g3;for(ev instanceof Date||(ev=new Date(+ev));++Zb53)return null;"w"in Lf||(Lf.w=1),"Z"in Lf?(Pv=x5(xL(Lf.y,0,1)),Cx=Pv.getUTCDay(),Pv=Cx>4||Cx===0?b5.ceil(Pv):b5(Pv),Pv=CN.offset(Pv,(Lf.V-1)*7),Lf.y=Pv.getUTCFullYear(),Lf.m=Pv.getUTCMonth(),Lf.d=Pv.getUTCDate()+(Lf.w+6)%7):(Pv=SN(xL(Lf.y,0,1)),Cx=Pv.getDay(),Pv=Cx>4||Cx===0?nI.ceil(Pv):nI(Pv),Pv=yN.offset(Pv,(Lf.V-1)*7),Lf.y=Pv.getFullYear(),Lf.m=Pv.getMonth(),Lf.d=Pv.getDate()+(Lf.w+6)%7)}else("W"in Lf||"U"in Lf)&&("w"in Lf||(Lf.w="u"in Lf?Lf.u%7:"W"in Lf?1:0),Cx="Z"in Lf?x5(xL(Lf.y,0,1)).getUTCDay():SN(xL(Lf.y,0,1)).getDay(),Lf.m=0,Lf.d="W"in Lf?(Lf.w+6)%7+Lf.W*7-(Cx+5)%7:Lf.w+Lf.U*7-(Cx+6)%7);return"Z"in Lf?(Lf.H+=Lf.Z/100|0,Lf.M+=Lf.Z%100,x5(Lf)):SN(Lf)}}function Sa(mg,L0,ev,Lf){for(var Zb=0,Pv=L0.length,Cx=ev.length,Sx,p3;Zb=Cx)return-1;if(Sx=L0.charCodeAt(Zb++),Sx===37){if(Sx=L0.charAt(Zb++),p3=Qs[Sx in C5?L0.charAt(Zb++):Sx],!p3||(Lf=p3(mg,ev,Lf))<0)return-1}else if(Sx!=ev.charCodeAt(Lf++))return-1}return Lf}function dl(mg,L0,ev){var Lf=V.exec(L0.slice(ev));return Lf?(mg.p=he[Lf[0].toLowerCase()],ev+Lf[0].length):-1}function fu(mg,L0,ev){var Lf=Pt.exec(L0.slice(ev));return Lf?(mg.w=qt[Lf[0].toLowerCase()],ev+Lf[0].length):-1}function iu(mg,L0,ev){var Lf=be.exec(L0.slice(ev));return Lf?(mg.w=ut[Lf[0].toLowerCase()],ev+Lf[0].length):-1}function ic(mg,L0,ev){var Lf=Zr.exec(L0.slice(ev));return Lf?(mg.m=Si[Lf[0].toLowerCase()],ev+Lf[0].length):-1}function Nc(mg,L0,ev){var Lf=En.exec(L0.slice(ev));return Lf?(mg.m=qn[Lf[0].toLowerCase()],ev+Lf[0].length):-1}function nh(mg,L0,ev){return Sa(mg,d,L0,ev)}function Zp(mg,L0,ev){return Sa(mg,l,L0,ev)}function hg(mg,L0,ev){return Sa(mg,c,L0,ev)}function jg(mg){return y[mg.getDay()]}function U0(mg){return p[mg.getDay()]}function dm(mg){return O[mg.getMonth()]}function a1(mg){return w[mg.getMonth()]}function g2(mg){return a[+(mg.getHours()>=12)]}function wS(mg){return 1+~~(mg.getMonth()/3)}function HI(mg){return y[mg.getUTCDay()]}function GI(mg){return p[mg.getUTCDay()]}function Mv(mg){return O[mg.getUTCMonth()]}function lb(mg){return w[mg.getUTCMonth()]}function hk(mg){return a[+(mg.getUTCHours()>=12)]}function dk(mg){return 1+~~(mg.getUTCMonth()/3)}return{format:function(mg){var L0=Fs(mg+="",to);return L0.toString=function(){return mg},L0},parse:function(mg){var L0=Us(mg+="",!1);return L0.toString=function(){return mg},L0},utcFormat:function(mg){var L0=Fs(mg+="",ts);return L0.toString=function(){return mg},L0},utcParse:function(mg){var L0=Us(mg+="",!0);return L0.toString=function(){return mg},L0}}}var C5={"-":"",_:" ",0:"0"},dy=/^\s*\d+/,VB=/^%/,w5=/[\\^$*+?|[\]().{}]/g;function rv(i,d,l){var c=i<0?"-":"",a=(c?-i:i)+"",p=a.length;return c+(p68?1900:2e3),l+c[0].length):-1}function Ij(i,d,l){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(l,l+6));return c?(i.Z=c[1]?0:-(c[2]+(c[3]||"00")),l+c[0].length):-1}function Lj(i,d,l){var c=dy.exec(d.slice(l,l+1));return c?(i.q=c[0]*3-3,l+c[0].length):-1}function SL(i,d,l){var c=dy.exec(d.slice(l,l+2));return c?(i.m=c[0]-1,l+c[0].length):-1}function TN(i,d,l){var c=dy.exec(d.slice(l,l+2));return c?(i.d=+c[0],l+c[0].length):-1}function Ry(i,d,l){var c=dy.exec(d.slice(l,l+3));return c?(i.m=0,i.d=+c[0],l+c[0].length):-1}function WB(i,d,l){var c=dy.exec(d.slice(l,l+2));return c?(i.H=+c[0],l+c[0].length):-1}function DN(i,d,l){var c=dy.exec(d.slice(l,l+2));return c?(i.M=+c[0],l+c[0].length):-1}function Mj(i,d,l){var c=dy.exec(d.slice(l,l+2));return c?(i.S=+c[0],l+c[0].length):-1}function nS(i,d,l){var c=dy.exec(d.slice(l,l+3));return c?(i.L=+c[0],l+c[0].length):-1}function Pj(i,d,l){var c=dy.exec(d.slice(l,l+6));return c?(i.L=Math.floor(c[0]/1e3),l+c[0].length):-1}function IN(i,d,l){var c=VB.exec(d.slice(l,l+1));return c?l+c[0].length:-1}function DT(i,d,l){var c=dy.exec(d.slice(l));return c?(i.Q=+c[0],l+c[0].length):-1}function Rj(i,d,l){var c=dy.exec(d.slice(l));return c?(i.s=+c[0],l+c[0].length):-1}function E5(i,d){return rv(i.getDate(),d,2)}function kj(i,d){return rv(i.getHours(),d,2)}function ZB(i,d){return rv(i.getHours()%12||12,d,2)}function LN(i,d){return rv(1+yN.count(tS(i),i),d,3)}function rS(i,d){return rv(i.getMilliseconds(),d,3)}function sI(i,d){return rS(i,d)+"000"}function ZC(i,d){return rv(i.getMonth()+1,d,2)}function Oj(i,d){return rv(i.getMinutes(),d,2)}function Nj(i,d){return rv(i.getSeconds(),d,2)}function iS(i){var d=i.getDay();return d===0?7:d}function EL(i,d){return rv(tI.count(tS(i)-1,i),d,2)}function jB(i){var d=i.getDay();return d>=4||d===0?Y2(i):Y2.ceil(i)}function Fj(i,d){return i=jB(i),rv(Y2.count(tS(i),i)+(tS(i).getDay()===4),d,2)}function MN(i){return i.getDay()}function Bj(i,d){return rv(nI.count(tS(i)-1,i),d,2)}function zj(i,d){return rv(i.getFullYear()%100,d,2)}function Uj(i,d){return i=jB(i),rv(i.getFullYear()%100,d,2)}function Vj(i,d){return rv(i.getFullYear()%1e4,d,4)}function _E(i,d){var l=i.getDay();return i=l>=4||l===0?Y2(i):Y2.ceil(i),rv(i.getFullYear()%1e4,d,4)}function HB(i){var d=i.getTimezoneOffset();return(d>0?"-":(d*=-1,"+"))+rv(d/60|0,"0",2)+rv(d%60,"0",2)}function aI(i,d){return rv(i.getUTCDate(),d,2)}function Db(i,d){return rv(i.getUTCHours(),d,2)}function Q2(i,d){return rv(i.getUTCHours()%12||12,d,2)}function $j(i,d){return rv(1+CN.count(bL(i),i),d,3)}function GB(i,d){return rv(i.getUTCMilliseconds(),d,3)}function Wj(i,d){return GB(i,d)+"000"}function A5(i,d){return rv(i.getUTCMonth()+1,d,2)}function lI(i,d){return rv(i.getUTCMinutes(),d,2)}function Zj(i,d){return rv(i.getUTCSeconds(),d,2)}function jj(i){var d=i.getUTCDay();return d===0?7:d}function PN(i,d){return rv(BB.count(bL(i)-1,i),d,2)}function R_(i){var d=i.getUTCDay();return d>=4||d===0?iI(i):iI.ceil(i)}function KB(i,d){return i=R_(i),rv(iI.count(bL(i),i)+(bL(i).getUTCDay()===4),d,2)}function T5(i){return i.getUTCDay()}function Hj(i,d){return rv(b5.count(bL(i)-1,i),d,2)}function z1(i,d){return rv(i.getUTCFullYear()%100,d,2)}function Gj(i,d){return i=R_(i),rv(i.getUTCFullYear()%100,d,2)}function bE(i,d){return rv(i.getUTCFullYear()%1e4,d,4)}function RN(i,d){var l=i.getUTCDay();return i=l>=4||l===0?iI(i):iI.ceil(i),rv(i.getUTCFullYear()%1e4,d,4)}function ew(){return"+0000"}function D5(){return"%"}function uI(i){return+i}function XB(i){return Math.floor(+i/1e3)}var oS,YB,Kj,Xj,Yj;qB({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function qB(i){return oS=EN(i),YB=oS.format,Kj=oS.parse,Xj=oS.utcFormat,Yj=oS.utcParse,oS}var AL=1e3,TL=AL*60,DL=TL*60,IL=DL*24,qj=IL*7,JB=IL*30,xE=IL*365;function QB(i){return new Date(i)}function e9(i){return i instanceof Date?+i:+new Date(+i)}function jC(i,d,l,c,a,p,y,w,O){var V=mB(M_,M_),he=V.invert,be=V.domain,ut=O(".%L"),Pt=O(":%S"),qt=O("%I:%M"),En=O("%I %p"),qn=O("%a %d"),Zr=O("%b %d"),Si=O("%B"),to=O("%Y"),ts=[[y,1,AL],[y,5,5*AL],[y,15,15*AL],[y,30,30*AL],[p,1,TL],[p,5,5*TL],[p,15,15*TL],[p,30,30*TL],[a,1,DL],[a,3,3*DL],[a,6,6*DL],[a,12,12*DL],[c,1,IL],[c,2,2*IL],[l,1,qj],[d,1,JB],[d,3,3*JB],[i,1,xE]];function Qs(Us){return(y(Us)2){var be=V.scale.ticks(y.values.length);V.scale.domain(be)}y.values?V.scale.range(y.values):V.scale.range(V.option.domain);break;case N0.QUANTILE:case N0.QUANTIZE:case N0.THRESHOLD:V.scale.range(y.values);break;case N0.IDENTITY:break;case N0.CAT:y.values?V.scale.range(y.values):V.scale.range(V.option.domain);break;case N0.DIVERGING:case N0.SEQUENTIAL:V.scale.interpolator(JZ(y.values));break}}if(y.values==="text"){var ut;V.scale.range((ut=V.option)===null||ut===void 0?void 0:ut.domain)}})):(y.type=zx.CONSTANT,y.defaultValues=O.map(function(V,he){return V.scale(y.names[he])})),y.scalers=O.map(function(V){return{field:V.field,func:V.scale,option:V.option}}),p.needRescale=!1}})}},{key:"parseFields",value:function(l){return Array.isArray(l)?l:rH(l)?l.split("*"):[l]}},{key:"createScale",value:function(l,c,a,p){var y,w,O=this.scaleOptions[c]&&((y=this.scaleOptions[c])===null||y===void 0?void 0:y.field)===l?this.scaleOptions[c]:this.scaleOptions[l],V={field:l,scale:void 0,type:zx.VARIABLE,option:O};if(!p||!p.length)return O&&O.type?V.scale=this.createDefaultScale(O):(V.scale=A1([l]),V.type=zx.CONSTANT),V;var he=(w=p.find(function(Pt){return!LL(Pt[l])}))===null||w===void 0?void 0:w[l];if(this.isNumber(l)||LL(he)&&!O)V.scale=A1([l]),V.type=zx.CONSTANT;else{var be=O&&O.type||this.getDefaultType(he);a==="text"&&(be=N0.CAT),a===void 0&&(be=N0.IDENTITY);var ut=this.createScaleConfig(be,l,O,p);V.scale=this.createDefaultScale(ut),V.option=ut}return V}},{key:"getDefaultType",value:function(l){var c=N0.LINEAR;return typeof l=="string"&&(c=iH.test(l)?N0.TIME:N0.CAT),c}},{key:"createScaleConfig",value:function(l,c,a,p){var y={type:l},w=[];if(l===N0.QUANTILE){var O=new Map;p==null||p.forEach(function(be){O.set(be._id,be[c])}),w=Array.from(O.values())}else w=(p==null?void 0:p.map(function(be){return be[c]}))||[];if(a!=null&&a.domain)y.domain=a==null?void 0:a.domain;else if(l===N0.CAT||l===N0.IDENTITY)y.domain=k5(w);else if(l===N0.QUANTILE)y.domain=w;else if(l===N0.DIVERGING){var V=(0,Xy.We)(w),he=(a==null?void 0:a.neutral)!==void 0?a==null?void 0:a.neutral:(V[0]+V[1])/2;y.domain=[V[0],he,V[1]]}else y.domain=(0,Xy.We)(w);return(0,Xe.Z)((0,Xe.Z)({},y),a)}},{key:"createDefaultScale",value:function(l){var c=l.type,a=l.domain,p=l.unknown,y=l.clamp,w=l.nice,O=oH[c]();return a&&O.domain&&O.domain(a),p&&O.unknown(p),y!==void 0&&O.clamp&&O.clamp(y),w!==void 0&&O.nice&&O.nice(w),O}}]),i}())||wE),IT,LT,MT=(IT=(0,xr.b2)(),IT(LT=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"apply",value:function(l){l.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=l.animateStatus;c&&l.models.forEach(function(a){a.addUniforms((0,Xe.Z)({},l.layerModel.getAnimateUniforms()))})})}}]),i}())||LT),SE,r9,ML=(SE=(0,xr.b2)(),SE(r9=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"apply",value:function(l){l.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=l.getLayerConfig(),a=c.maskLayers,p=c.enableMask;if(!l.tileLayer&&a&&a.length>0){var y;(y=l.masks).push.apply(y,(0,Ln.Z)(a)),l.updateLayerConfig({mask:p})}})}}]),i}())||r9),aH=function(){function i(d){var l=d.rendererService,c=d.layerService,a=d.parent;(0,vt.Z)(this,i),(0,pn.Z)(this,"tileResource",new Map),(0,pn.Z)(this,"layerTiles",[]),this.rendererService=l,this.layerService=c,this.parent=a}return(0,Te.Z)(i,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(l){return this.layerTiles.some(function(c){return c.key===l})}},{key:"addTile",value:function(l){this.layerTiles.push(l)}},{key:"getTile",value:function(l){return this.layerTiles.find(function(c){return c.key===l})}},{key:"getVisibleTileBylngLat",value:function(l){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(l)})}},{key:"removeTile",value:function(l){var c=this.layerTiles.findIndex(function(p){return p.key===l}),a=this.layerTiles.splice(c,1);a[0]&&a[0].destroy()}},{key:"updateTileVisible",value:function(l){var c=this.getTile(l.key);if(l.isVisible)if(l.parent){var a=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(a)}else c==null||c.updateVisible(!0);else if(l.parent){var p=this.isChildrenLoaded(l.parent);c==null||c.updateVisible(!p)}else c==null||c.updateVisible(!1)}},{key:"isParentLoaded",value:function(l){var c=l.parent;if(!c)return!0;var a=this.getTile(c==null?void 0:c.key);return!!(a!=null&&a.isLoaded)}},{key:"isChildrenLoaded",value:function(l){var c=this,a=l==null?void 0:l.children;return a.length===0?!0:a.every(function(p){var y=c.getTile(p==null?void 0:p.key);return y?(y==null?void 0:y.isLoaded)===!0:!0})}},{key:"render",value:function(){var d=(0,al.Z)(mo().mark(function c(){var a=this,p,y;return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return p=this.getRenderLayers(),y=p.map(function(){var V=(0,al.Z)(mo().mark(function he(be){return mo().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,a.layerService.renderTileLayer(be);case 2:case"end":return Pt.stop()}},he)}));return function(he){return V.apply(this,arguments)}}()),O.next=4,Promise.all(y);case 4:case"end":return O.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"getRenderLayers",value:function(){var l=this.layerTiles.filter(function(a){return a.visible&&a.isLoaded}),c=[];return l.map(function(a){return c.push.apply(c,(0,Ln.Z)(a.getLayers()))}),c}},{key:"getLayers",value:function(){var l=this.layerTiles.filter(function(a){return a.isLoaded}),c=[];return l.map(function(a){return c.push.apply(c,(0,Ln.Z)(a.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(l){return l.destroy()}),this.tileResource.clear()}}]),i}(),lH=x(35486),uH=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"getCombineFeature",value:function(l){var c=null,a=l[0];return l.map(function(p){var y=Mc.polygon(p.coordinates);c===null?c=y:c=(0,lH.Z)(c,y)}),a&&(c.properties=(0,Xe.Z)({},a)),c}}]),i}(),EE="select",PT="active",i9=function(){function i(d){var l=d.layerService,c=d.tileLayerService,a=d.parent;(0,vt.Z)(this,i),(0,pn.Z)(this,"tilePickID",new Map),this.layerService=l,this.tileLayerService=c,this.parent=a,this.tileSourceService=new uH}return(0,Te.Z)(i,[{key:"pickRender",value:function(l){var c=this.tileLayerService.getVisibleTileBylngLat(l.lngLat);if(c){var a=c.getMainLayer();a==null||a.layerPickService.pickRender(l)}}},{key:"pick",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(y=this.parent.getContainer(),w=y.get(In.IPickingService),a.type!=="RasterLayer"){be.next=8;break}if(O=this.tileLayerService.getVisibleTileBylngLat(p.lngLat),!(O&&O.getMainLayer()!==void 0)){be.next=7;break}return V=O.getMainLayer(),be.abrupt("return",V.layerPickService.pickRasterLayer(V,p,this.parent));case 7:return be.abrupt("return",!1);case 8:return this.pickRender(p),be.abrupt("return",w.pickFromPickingFBO(a,p));case 10:case"end":return be.stop()}},c,this)}));function l(c,a){return d.apply(this,arguments)}return l}()},{key:"selectFeature",value:function(l){var c=(0,zn.Z)(l,3),a=c[0],p=c[1],y=c[2],w=this.color2PickId(a,p,y);this.tilePickID.set(EE,w),this.updateHighLight(a,p,y,EE)}},{key:"highlightPickedFeature",value:function(l){var c=(0,zn.Z)(l,3),a=c[0],p=c[1],y=c[2],w=this.color2PickId(a,p,y);this.tilePickID.set(PT,w),this.updateHighLight(a,p,y,PT)}},{key:"updateHighLight",value:function(l,c,a,p){this.tileLayerService.tiles.map(function(y){var w=y.getMainLayer();switch(p){case EE:w==null||w.hooks.beforeSelect.call([l,c,a]);break;case PT:w==null||w.hooks.beforeHighlight.call([l,c,a]);break}})}},{key:"setPickState",value:function(){var l=this.tilePickID.get(EE),c=this.tilePickID.get(PT);if(l){var a=this.pickId2Color(l),p=(0,zn.Z)(a,3),y=p[0],w=p[1],O=p[2];this.updateHighLight(y,w,O,EE);return}if(c){var V=this.pickId2Color(c),he=(0,zn.Z)(V,3),be=he[0],ut=he[1],Pt=he[2];this.updateHighLight(be,ut,Pt,PT);return}}},{key:"color2PickId",value:function(l,c,a){return Ei(new Uint8Array([l,c,a]))}},{key:"pickId2Color",value:function(l){return Zi(l)}},{key:"getFeatureById",value:function(l){var c=this.tileLayerService.getTiles().filter(function(p){return p.visible}),a=[];return c.forEach(function(p){a.push.apply(a,(0,Ln.Z)(p.getFeatureById(l)))}),a}},{key:"pickRasterLayer",value:function(l,c,a){return!1}}]),i}();function o9(i){return i==="PolygonLayer"?hE:i==="LineLayer"?DO:iL}function sS(i){return["PolygonLayer","LineLayer"].indexOf(i)!==-1}function s9(i){var d=cH();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function cH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var RT=function(i){(0,ze.Z)(l,i);var d=s9(l);function l(c,a){var p;return(0,vt.Z)(this,l),p=d.call(this),(0,pn.Z)((0,eo.Z)(p),"visible",!0),(0,pn.Z)((0,eo.Z)(p),"layers",[]),(0,pn.Z)((0,eo.Z)(p),"isLoaded",!1),(0,pn.Z)((0,eo.Z)(p),"tileMaskLayers",[]),p.parent=a,p.sourceTile=c,p.x=c.x,p.y=c.y,p.z=c.z,p.key="".concat(p.x,"_").concat(p.y,"_").concat(p.z),p}return(0,Te.Z)(l,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(a){var p=(0,zn.Z)(this.sourceTile.bounds,4),y=p[0],w=p[1],O=p[2],V=p[3],he=a.lng,be=a.lat;return he>=y&&he<=O&&be>=w&&be<=V}},{key:"getLayerOptions",value:function(){var a,p=this.parent.getLayerConfig();return(0,Xe.Z)((0,Xe.Z)({},p),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:sS(this.parent.type),mask:p.mask||((a=p.maskLayers)===null||a===void 0?void 0:a.length)!==0&&p.enableMask})}},{key:"getMaskLayer",value:function(){var a=this,p=this.parent.getLayerConfig(),y=p.maskLayers,w=[];return y==null||y.forEach(function(O){if(!O.tileLayer)return w.push(O),O;var V=O.tileLayer,he=V.getTile(a.sourceTile.key),be=he==null?void 0:he.getLayers()[0];be&&w.push(be)}),w}},{key:"addTileMask",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O;return mo().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return y=new hE({name:"mask",visible:!0,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").color("#0f0").style({opacity:.5}),w=Cb(this.parent.sceneContainer),y.setContainer(w,this.parent.sceneContainer),he.next=5,y.init();case 5:return this.tileMask=y,O=this.getMainLayer(),O!==void 0&&(O.tileMask=y),he.abrupt("return",y);case 9:case"end":return he.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"addMask",value:function(){var c=(0,al.Z)(mo().mark(function p(y,w){var O;return mo().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return O=Cb(this.parent.sceneContainer),w.setContainer(O,this.parent.sceneContainer),he.next=4,w.init();case 4:y.addMask(w),this.tileMaskLayers.push(w);case 6:case"end":return he.stop()}},p,this)}));function a(p,y){return c.apply(this,arguments)}return a}()},{key:"addLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(y){var w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return y.isTileLayer=!0,w=Cb(this.parent.sceneContainer),y.setContainer(w,this.parent.sceneContainer),this.layers.push(y),V.next=6,y.init();case 6:case"end":return V.stop()}},p,this)}));function a(p){return c.apply(this,arguments)}return a}()},{key:"updateVisible",value:function(a){this.visible=a,this.updateOptions("visible",a)}},{key:"updateOptions",value:function(a,p){this.layers.forEach(function(y){y.updateLayerConfig((0,pn.Z)({},a,p))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(a){return[]}},{key:"getFeatureById",value:function(a){return[]}},{key:"destroy",value:function(){var a;(a=this.tileMask)===null||a===void 0||a.destroy(),this.layers.forEach(function(p){return p.destroy()})}}]),l}(Ic.EventEmitter);function hH(i){var d=PL();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function PL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var dH=function(i){(0,ze.Z)(l,i);var d=hH(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.getSourceOption(),w=y.data.features[0].properties,O=new DO().source(y.data,y.options).size(1).shape("line").color("red"),V=new iL({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([w],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),be.next=6,this.addLayer(O);case 6:return be.next=8,this.addLayer(V);case 8:this.isLoaded=!0;case 9:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getSourceOption",value:function(){var a=this.parent.getSource(),p=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:p},options:{parser:{type:"geojson"},transforms:a.transforms}}}}]),l}(RT);function fH(i){var d=kN();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function kN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var a9=function(i){(0,ze.Z)(l,i);var d=fH(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.parent.getLayerAttributeConfig(),w=this.getLayerOptions(),O=this.getSourceOption(),V=new eL((0,Xe.Z)({},w)).source(O.data,O.options),y&&Object.keys(y).forEach(function(ut){var Pt,qt,En=ut;V[En]((Pt=y[En])===null||Pt===void 0?void 0:Pt.field,(qt=y[En])===null||qt===void 0?void 0:qt.values)}),be.next=7,this.addLayer(V);case 7:this.isLoaded=!0;case 8:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getSourceOption",value:function(){var a=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:a.transforms}}}}]),l}(RT);function pH(i){var d=gH();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function gH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var mH=function(i){(0,ze.Z)(l,i);var d=pH(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.parent.getLayerAttributeConfig(),w=this.getLayerOptions(),O=this.getSourceOption(),V=new eN((0,Xe.Z)({},w)).source(O.data,O.options),y&&Object.keys(y).forEach(function(ut){var Pt,qt,En=ut;V[En]((Pt=y[En])===null||Pt===void 0?void 0:Pt.field,(qt=y[En])===null||qt===void 0?void 0:qt.values)}),be.next=7,this.addLayer(V);case 7:this.isLoaded=!0;case 8:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getFeatures",value:function(a){if(!a)return[];var p=this.sourceTile.data;return p.getTileData(a)}},{key:"getSourceOption",value:function(){var a=this.parent.getSource(),p=this.parent.getLayerConfig(),y=p.sourceLayer,w=p.featureId,O=this.getFeatures(y);return{data:{type:"FeatureCollection",features:O},options:{parser:{type:"geojson",featureId:w},transforms:a.transforms}}}}]),l}(RT),vH=["rasterData"];function O5(i){var d=ON();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function ON(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var yH=function(i){(0,ze.Z)(l,i);var d=O5(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.parent.getLayerAttributeConfig(),w=this.getLayerOptions(),O=this.getSourceOption(),V=new dx((0,Xe.Z)({},w)).source(O.data,O.options),y&&Object.keys(y).forEach(function(ut){var Pt,qt,En=ut;V[En]((Pt=y[En])===null||Pt===void 0?void 0:Pt.field,(qt=y[En])===null||qt===void 0?void 0:qt.values)}),be.next=7,this.addLayer(V);case 7:this.isLoaded=!0;case 8:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getSourceOption",value:function(){var a=this.parent.getSource(),p=this.sourceTile.data.data,y=p.rasterData,w=(0,W0.Z)(p,vH);return{data:y,options:{parser:(0,Xe.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},w),transforms:a.transforms}}}}]),l}(RT);function _H(i){var d=N5();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function N5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var bH=function(i){(0,ze.Z)(l,i);var d=_H(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V;return mo().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return y=this.parent.getLayerAttributeConfig(),w=this.getLayerOptions(),O=this.getSourceOption(),V=new dx((0,Xe.Z)({},w)).source(O.data,O.options),y&&Object.keys(y).forEach(function(ut){var Pt,qt,En=ut;V[En]((Pt=y[En])===null||Pt===void 0?void 0:Pt.field,(qt=y[En])===null||qt===void 0?void 0:qt.values)}),be.next=7,this.addLayer(V);case 7:this.isLoaded=!0;case 8:case"end":return be.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getSourceOption",value:function(){var a=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:a.transforms}}}}]),l}(RT),xH=["rasterData"];function CH(i){var d=F5();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function F5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var wH={positions:[0,1],colors:["#000","#fff"]},SH=function(i){(0,ze.Z)(l,i);var d=CH(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"initTileLayer",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be,ut;return mo().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return y=this.parent.getLayerAttributeConfig(),w=this.getLayerOptions(),O=this.getSourceOption(),V=this.getLayerOptions(),he=V.rampColors,be=V.domain,this.colorTexture=this.parent.textureService.getColorTexture(he,be),ut=new dx((0,Xe.Z)((0,Xe.Z)({},w),{},{colorTexture:this.colorTexture})).source(O.data,O.options),y&&Object.keys(y).forEach(function(En){var qn,Zr,Si=En;ut[Si]((qn=y[Si])===null||qn===void 0?void 0:qn.field,(Zr=y[Si])===null||Zr===void 0?void 0:Zr.values)}),qt.next=9,this.addLayer(ut);case 9:this.isLoaded=!0;case 10:case"end":return qt.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getSourceOption",value:function(){var a=this.parent.getSource(),p=this.sourceTile.data.data,y=p.rasterData,w=(0,W0.Z)(p,xH);return{data:y,options:{parser:(0,Xe.Z)({type:"raster",extent:this.sourceTile.bounds},w),transforms:a.transforms}}}},{key:"styleUpdate",value:function(){for(var a=this,p=arguments.length,y=new Array(p),w=0;w=2&&!V&&(l.parent.updateLayerConfig({visible:!0}),l.layerService.reRender())}l.lastViewStates&&l.lastViewStates.zoom===w&&l.lastViewStates.latLonBounds.toString()===y.toString()||(l.lastViewStates={zoom:w,latLonBounds:y},(a=l.tilesetManager)===null||a===void 0||a.throttleUpdate(w,y))}}),(0,pn.Z)(this,"viewchange",Ib(this.mapchange,24)),this.parent=d;var c=this.parent.getContainer();this.rendererService=c.get(In.IRendererService),this.layerService=c.get(In.ILayerService),this.mapService=c.get(In.IMapService),this.pickingService=c.get(In.IPickingService),this.tileLayerService=new aH({rendererService:this.rendererService,layerService:this.layerService,parent:d}),this.tilePickService=new i9({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:d}),this.parent.setLayerPickService(this.tilePickService),this.proxy(d),this.initTileSetManager()}return(0,Te.Z)(i,[{key:"initTileSetManager",value:function(){var l,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var a=this.getCurrentView(),p=a.latLonBounds,y=a.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(y,p)}}},{key:"getCurrentView",value:function(){var l=this.mapService.getBounds(),c=[l[0][0],l[0][1],l[1][0],l[1][1]],a=this.mapService.getZoom();return{latLonBounds:c,zoom:a}}},{key:"bindTilesetEvent",value:function(){var l=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){l.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,a){l.tileError(c)}),this.tilesetManager.on("tile-update",function(){l.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(l){return this.tileLayerService.getTile(l)}},{key:"tileLoaded",value:function(l){}},{key:"tileError",value:function(l){console.warn("error:",l)}},{key:"destroy",value:function(){var l;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(l=this.tilesetManager)===null||l===void 0||l.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var l;this.tilesetManager.clear();var c=this.getCurrentView(),a=c.latLonBounds,p=c.zoom;(l=this.tilesetManager)===null||l===void 0||l.update(p,a)}},{key:"tileUnLoad",value:function(l){this.tileLayerService.removeTile(l.key)}},{key:"tileUpdate",value:function(){var d=(0,al.Z)(mo().mark(function c(){var a=this,p,y,w;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(this.tilesetManager){V.next=2;break}return V.abrupt("return");case 2:return p=this.parent.getMinZoom(),y=this.parent.getMaxZoom(),w=this.tilesetManager.tiles.filter(function(he){return he.isLoaded}).filter(function(he){return he.isVisibleChange}).filter(function(he){return he.data}).filter(function(he){return he.z>=p&&he.z0&&arguments[0]!==void 0?arguments[0]:"vertical",p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;this.container.classList.remove("horizontal","vertical"),this.container.classList.add(a),a==="horizontal"?(this.container.style.top=p*100+"%",this.container.style.left=""):(this.container.style.left=p*100+"%",this.container.style.top="")}},{key:"setLayers",value:function(a,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,w=a.filter(function(V){return p.includes(V)===!1}),O=p.filter(function(V){return a.includes(V)===!1});this.addMaskToLayers(w,y),this.removeMaskFromLayers(O)}},{key:"addMaskToLayers",value:function(a,p){var y=this;a.forEach(function(w){w.updateLayerConfig({maskInside:!p}),w.addMask(y.maskLayer)})}},{key:"removeMaskFromLayers",value:function(a){var p=this;a.forEach(function(y){y.updateLayerConfig({maskInside:!0}),y.removeMask(p.maskLayer)})}},{key:"getMaskGeoData",value:function(){var a=this.controlOption,p=a.ratio,y=p===void 0?.5:p,w=a.orientation,O=w===void 0?"vertical":w,V=O==="vertical",he=this.getBounds(),be=(0,zn.Z)(he,2),ut=be[0],Pt=be[1],qt=(0,zn.Z)(ut,2),En=qt[0],qn=qt[1],Zr=(0,zn.Z)(Pt,2),Si=Zr[0],to=Zr[1],ts;if(V){var Qs=En+(Si-En)*y;ts=[[En,to],[Qs,to],[Qs,qn],ut,[En,to]]}else{var Fs=this.getContainerSize(),Us=this.mapsService.containerToLngLat([Fs[0],Fs[1]*y]),Sa=Us.lat;ts=[[En,to],Pt,[Si,Sa],[En,Sa],[En,to]]}var dl={type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[ts]}}]};return dl}},{key:"getContainerDOMRect",value:function(){var a,p=(a=this.mapsService.getContainer())===null||a===void 0?void 0:a.getBoundingClientRect();return p}},{key:"getContainerSize",value:function(){var a=this.mapsService.getSize();return a}},{key:"getBounds",value:function(){var a=this.mapsService.getBounds();return a}},{key:"addLayer",value:function(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=Array.isArray(a)?a:[a];if(p){var w,O=(w=this.controlOption.rightLayers).concat.apply(w,(0,Ln.Z)(y));this.setOptions({rightLayers:O})}else{var V,he=(V=this.controlOption.layers).concat.apply(V,(0,Ln.Z)(y));this.setOptions({layers:he})}}},{key:"removeLayer",value:function(a){var p=Array.isArray(a)?a:[a],y=this.controlOption.layers.filter(function(O){return p.includes(O)}),w=this.controlOption.rightLayers.filter(function(O){return p.includes(O)});this.setOptions({layers:y,rightLayers:w})}},{key:"removeLayers",value:function(){this.setOptions({layers:[],rightLayers:[]})}}]),l}(Jo);function kH(i){var d=OH();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function OH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var NH=function(i){(0,ze.Z)(l,i);var d=kH(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;yc.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,pn.Z)((0,eo.Z)(c),"updateDisabled",function(){var w=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||w.getZoom()<=w.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(w.getZoom()))),(c.disabled||w.getZoom()>=w.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,Te.Z)(l,[{key:"getDefault",value:function(a){return(0,Xe.Z)((0,Xe.Z)({},Af((0,Tt.Z)(l.prototype),"getDefault",this).call(this,a)),{},{position:Pa.BOTTOMRIGHT,name:"zoom",zoomInText:of("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:of("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(a){Af((0,Tt.Z)(l.prototype),"setOptions",this).call(this,a),this.checkUpdateOption(a,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var a=va("div","l7-control-zoom");return this.resetButtonGroup(a),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),a}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(a){da(a),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",a,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",a)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",a,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(a,p,y,w,O){var V=va("button",y,w);return typeof a=="string"?V.innerHTML=a:V.append(a),V.title=p,O&&V.addEventListener("click",O),V}}]),l}(Jo);function vI(i){var d=W5();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function W5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var M9=function(i){(0,ze.Z)(l,i);var d=vI(l);function l(c){var a;(0,vt.Z)(this,l),a=d.call(this),(0,pn.Z)((0,eo.Z)(a),"isShow",!0),(0,pn.Z)((0,eo.Z)(a),"onMouseMove",function(y){var w,O=a.mapsService.getMapContainer(),V=(w=O==null?void 0:O.getBoundingClientRect())!==null&&w!==void 0?w:{},he=V.left,be=he===void 0?0:he,ut=V.top,Pt=ut===void 0?0:ut;a.setPopupPosition(y.clientX-be,y.clientY-Pt)}),(0,pn.Z)((0,eo.Z)(a),"updateLngLatPosition",function(){if(!(!a.mapsService||a.popupOption.followCursor)){var y=a.lngLat,w=y.lng,O=y.lat,V=a.mapsService.lngLatToContainer([w,O]),he=V.x,be=V.y;a.setPopupPosition(he,be)}}),(0,pn.Z)((0,eo.Z)(a),"updateLngLatPositionWhenZoom",function(y){if(!(!a.mapsService||a.popupOption.followCursor)){var w=a.lngLat,O=w.lng,V=w.lat,he=a.mapsService.lngLatToContainer([O,V]),be=he.x,ut=he.y,Pt=y.map,qt=Pt.getSize();qt.x=qt.x/2,qt.y=qt.y/2;var En=y.center,qn=y.zoom,Zr=Pt.DE(a.lngLat,qn,En);Zr.x=Math.round(Zr.x),Zr.y=Math.round(Zr.y),a.setPopupPosition(Zr.x,Zr.y,!0)}}),(0,pn.Z)((0,eo.Z)(a),"onKeyDown",function(y){y.keyCode===27&&a.remove()}),(0,pn.Z)((0,eo.Z)(a),"onCloseButtonClick",function(y){y.stopPropagation&&y.stopPropagation(),a.hide()}),(0,pn.Z)((0,eo.Z)(a),"updatePosition",function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=!!a.lngLat,V=a.popupOption,he=V.className,be=V.style,ut=V.maxWidth,Pt=V.anchor,qt=V.stopPropagation;if(!(!a.mapsService||!O||!a.content)){var En=a.mapsService.getMarkerContainer();if(!a.container&&En&&(a.container=va("div","l7-popup ".concat(he!=null?he:""," ").concat(a.isShow?"":"l7-popup-hide"),En),be&&a.container.setAttribute("style",be),a.tip=va("div","l7-popup-tip",a.container),a.container.appendChild(a.content),qt&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Si){a.container.addEventListener(Si,function(to){to.stopPropagation()})}),a.container.style.whiteSpace="nowrap"),w?a.updateLngLatPositionWhenZoom(y):a.updateLngLatPosition(),Ql(a.container,"".concat(Vr[Pt])),Rn(a.container,Pt,"popup"),ut){var qn=a.container.getBoundingClientRect(),Zr=qn.width;Zr>parseFloat(ut)&&(a.container.style.width=ut)}else a.container.style.removeProperty("width")}}),(0,pn.Z)((0,eo.Z)(a),"updateWhenZoom",function(y){a.updatePosition(y,!0)}),(0,pn.Z)((0,eo.Z)(a),"update",function(){a.updatePosition(null,!1)}),a.popupOption=(0,Xe.Z)((0,Xe.Z)({},a.getDefault(c!=null?c:{})),c);var p=a.popupOption.lngLat;return p&&(a.lngLat=p),a}return(0,Te.Z)(l,[{key:"lngLat",get:function(){var a;return(a=this.popupOption.lngLat)!==null&&a!==void 0?a:{lng:0,lat:0}},set:function(a){this.popupOption.lngLat=a}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(a){this.mapsService=a.get(In.IMapService),this.sceneService=a.get(In.ISceneService),this.layerService=a.get(In.ILayerService),this.mapsService.on("zoomchange",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=a,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var p=this.popupOption,y=p.html,w=p.text,O=p.title;return y?this.setHTML(y):w&&this.setText(w),O&&this.setTitle(O),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Ua(this.content),this.container&&(Ua(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("zoomchange",this.updateWhenZoom),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(a){return this.show(),this.popupOption=(0,Xe.Z)((0,Xe.Z)({},this.popupOption),a),this.checkUpdateOption(a,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Ua(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(a,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(a,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(a,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(a,["html"])&&a.html?this.setHTML(a.html):this.checkUpdateOption(a,["text"])&&a.text&&this.setText(a.text),this.checkUpdateOption(a,["lngLat"])&&a.lngLat&&this.setLnglat(a.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Cc(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&Yl(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(a){return this.popupOption.html=a,this.setDOMContent(a)}},{key:"setText",value:function(a){return this.popupOption.text=a,this.setDOMContent(window.document.createTextNode(a))}},{key:"setTitle",value:function(a){this.show(),this.popupOption.title=a,a?(this.contentTitle||(this.contentTitle=va("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),da(this.contentTitle),pl(this.contentTitle,a)):this.contentTitle&&(Ua(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var a=this.lngLat,p=a.lng,y=a.lat;return this.popupOption.autoPan&&this.mapsService.panTo([p,y]),this}},{key:"setLngLat",value:function(a){return this.setLnglat(a)}},{key:"setLnglat",value:function(a){var p=this;return this.show(),this.lngLat=a,Array.isArray(a)&&(this.lngLat={lng:a[0],lat:a[1]}),this.mapsService&&(this.mapsService.off("zoonanim",this.updateWhenZoom),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("zoonanim",this.updateWhenZoom),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){p.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(a){return this.popupOption.maxWidth=a,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(a){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:no.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(a){return this.show(),this.createContent(),pl(this.contentPanel,a),this.update(),this}},{key:"updateCloseOnClick",value:function(a){var p=this,y=this.mapsService;y&&(y==null||y.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!a&&requestAnimationFrame(function(){y==null||y.on("click",p.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(a){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!a&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(a){var p,y=(p=this.mapsService)===null||p===void 0?void 0:p.getContainer();y&&(y==null||y.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!a&&(y==null||y.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var a=this;if(this.content&&Ua(this.content),this.contentTitle=void 0,this.content=va("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var p=of("l7-icon-guanbi");Yl(p,"l7-popup-close-button"),this.content.appendChild(p),this.popupOption.closeButtonOffsets&&(p.style.right=this.popupOption.closeButtonOffsets[0]+"px",p.style.top=this.popupOption.closeButtonOffsets[1]+"px"),p.setAttribute("aria-label","Close popup"),p.addEventListener("click",function(){a.hide()}),p.addEventListener("pointerup",function(y){y.stopPropagation()}),p.addEventListener("pointerdown",function(y){y.stopPropagation()}),this.closeButton=p}else this.closeButton=void 0;this.contentPanel=va("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(a,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.container){var w=this.popupOption.offsets;this.container.style.left=a+w[0]+"px",this.container.style.top=p-w[1]+"px",y?this.container.style.transition="left 0.25s cubic-bezier(0,0,0.25,1), top 0.25s cubic-bezier(0,0,0.25,1)":this.container.style.transition=""}}},{key:"checkUpdateOption",value:function(a,p){return p.some(function(y){return y in a})}}]),l}(Ic.EventEmitter);function FH(i){var d=Z5();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Z5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var P9=ks.get,$N=function(i){(0,ze.Z)(l,i);var d=FH(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y=-90&&d<=90,"invalid latitude"),v*=XH;var E=m*eO,M=d*eO,B=v*(E+qO)/(2*qO),J=v*(qO-Math.log(Math.tan(XJ+M*.5)))/(2*qO);return[B,J]}function PN(i,v){var f=(0,hu.Z)(i,2),m=f[0],d=f[1];v*=XH;var E=m/v*(2*qO)-qO,M=2*(Math.atan(Math.exp(qO-d/v*(2*qO)))-XJ);return[E*YJ,M*YJ]}function qV(i){var v=i.latitude;assert(Number.isFinite(v));var f=Math.cos(v*eO);return eae(YH*f)-9}function qH(i){var v=i.latitude,f=i.longitude,m=i.zoom,d=i.scale,E=i.highPrecision,M=E===void 0?!1:E;d=d!==void 0?d:qJ(m),dk(Number.isFinite(v)&&Number.isFinite(f)&&Number.isFinite(d));var B={},J=XH*d,ue=Math.cos(v*eO),Ze=J/360,st=Ze/ue,Fr=J/YH/ue;if(B.pixelsPerMeter=[Fr,-Fr,Fr],B.metersPerPixel=[1/Fr,-1/Fr,1/Fr],B.pixelsPerDegree=[Ze,-st,Fr],B.degreesPerPixel=[1/Ze,-1/st,1/Fr],M){var Go=eO*Math.tan(v*eO)/ue,Ta=Ze*Go/2,eu=J/YH*Go,kd=eu/st*Fr;B.pixelsPerDegree2=[0,-Ta,eu],B.pixelsPerMeter2=[kd,0,kd]}return B}function mpe(i,v){var f=_slicedToArray(i,3),m=f[0],d=f[1],E=f[2],M=_slicedToArray(v,3),B=M[0],J=M[1],ue=M[2],Ze=1,st=qH({longitude:m,latitude:d,scale:Ze,highPrecision:!0}),Fr=st.pixelsPerMeter,Go=st.pixelsPerMeter2,Ta=YV(i,Ze);Ta[0]+=B*(Fr[0]+Go[0]*J),Ta[1]+=J*(Fr[1]+Go[1]*J);var eu=PN(Ta,Ze),kd=(E||0)+(ue||0);return Number.isFinite(E)||Number.isFinite(ue)?[eu[0],eu[1],kd]:eu}function tae(i){var v=i.height,f=i.pitch,m=i.bearing,d=i.altitude,E=i.center,M=E===void 0?null:E,B=i.flipY,J=B===void 0?!1:B,ue=Gz();return h3(ue,ue,[0,0,-d]),QT(ue,ue,[1,1,1/v]),a3(ue,ue,-f*eO),zD(ue,ue,m*eO),J&&QT(ue,ue,[1,-1,1]),M&&h3(ue,ue,cZ([],M)),ue}function Kz(i){var v=i.width,f=i.height,m=i.altitude,d=m===void 0?Qse:m,E=i.pitch,M=E===void 0?0:E,B=i.nearZMultiplier,J=B===void 0?1:B,ue=i.farZMultiplier,Ze=ue===void 0?1:ue,st=M*eO,Fr=Math.atan(.5/d),Go=Math.sin(Fr)*d/Math.sin(Math.PI/2-st-Fr),Ta=Math.cos(Math.PI/2-st)*Go+d;return{fov:2*Math.atan(f/2/d),aspect:v/f,focalDistance:d,near:J,far:Ta*Ze}}function JJ(i){var v=i.width,f=i.height,m=i.pitch,d=i.altitude,E=i.nearZMultiplier,M=i.farZMultiplier,B=Kz({width:v,height:f,altitude:d,pitch:m,nearZMultiplier:E,farZMultiplier:M}),J=B.fov,ue=B.aspect,Ze=B.near,st=B.far,Fr=U0([],J,ue,Ze,st);return Fr}function Xz(i,v){var f=(0,hu.Z)(i,3),m=f[0],d=f[1],E=f[2],M=E===void 0?0:E;return dk(Number.isFinite(m)&&Number.isFinite(d)&&Number.isFinite(M)),XV(v,[m,d,M,1])}function QJ(i,v){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=(0,hu.Z)(i,3),d=m[0],E=m[1],M=m[2];if(dk(Number.isFinite(d)&&Number.isFinite(E),"invalid pixel coordinate"),Number.isFinite(M)){var B=XV(v,[d,E,M,1]);return B}var J=XV(v,[d,E,0,1]),ue=XV(v,[d,E,1,1]),Ze=J[2],st=ue[2],Fr=Ze===st?0:((f||0)-Ze)/(st-Ze);return WT([],J,ue,Fr)}var JH=Gz(),nae=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=v.width,m=v.height,d=v.viewMatrix,E=d===void 0?JH:d,M=v.projectionMatrix,B=M===void 0?JH:M;(0,Zr.Z)(this,i),this.width=f||1,this.height=m||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=E,this.projectionMatrix=B;var J=Gz();AS(J,J,this.projectionMatrix),AS(J,J,this.viewMatrix),this.viewProjectionMatrix=J;var ue=Gz();QT(ue,ue,[this.width/2,-this.height/2,1]),h3(ue,ue,[1,-1,0]),AS(ue,ue,this.viewProjectionMatrix);var Ze=nT(Gz(),ue);if(!Ze)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ue,this.pixelUnprojectionMatrix=Ze,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,gt.Z)(i,[{key:"equals",value:function(f){return f instanceof i?f.width===this.width&&f.height===this.height&&gu(f.projectionMatrix,this.projectionMatrix)&&gu(f.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=m.topLeft,E=d===void 0?!0:d,M=this.projectPosition(f),B=Xz(M,this.pixelProjectionMatrix),J=(0,hu.Z)(B,2),ue=J[0],Ze=J[1],st=E?Ze:this.height-Ze;return f.length===2?[ue,st]:[ue,st,B[2]]}},{key:"unproject",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=m.topLeft,E=d===void 0?!0:d,M=m.targetZ,B=(0,hu.Z)(f,3),J=B[0],ue=B[1],Ze=B[2],st=E?ue:this.height-ue,Fr=M&&M*this.pixelsPerMeter,Go=QJ([J,st,Ze],this.pixelUnprojectionMatrix,Fr),Ta=this.unprojectPosition(Go),eu=(0,hu.Z)(Ta,3),kd=eu[0],em=eu[1],B0=eu[2];return Number.isFinite(Ze)?[kd,em,B0]:Number.isFinite(M)?[kd,em,M]:[kd,em]}},{key:"projectPosition",value:function(f){var m=this.projectFlat(f),d=(0,hu.Z)(m,2),E=d[0],M=d[1],B=(f[2]||0)*this.pixelsPerMeter;return[E,M,B]}},{key:"unprojectPosition",value:function(f){var m=this.unprojectFlat(f),d=(0,hu.Z)(m,2),E=d[0],M=d[1],B=(f[2]||0)/this.pixelsPerMeter;return[E,M,B]}},{key:"projectFlat",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f}},{key:"unprojectFlat",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return f}}]),i}();function rae(i){var v=i.width,f=i.height,m=i.bounds,d=i.minExtent,E=d===void 0?0:d,M=i.maxZoom,B=M===void 0?24:M,J=i.padding,ue=J===void 0?0:J,Ze=i.offset,st=Ze===void 0?[0,0]:Ze,Fr=(0,hu.Z)(m,2),Go=(0,hu.Z)(Fr[0],2),Ta=Go[0],eu=Go[1],kd=(0,hu.Z)(Fr[1],2),em=kd[0],B0=kd[1];if(Number.isFinite(ue)){var vv=ue;ue={top:vv,bottom:vv,left:vv,right:vv}}else dk(Number.isFinite(ue.top)&&Number.isFinite(ue.bottom)&&Number.isFinite(ue.left)&&Number.isFinite(ue.right));var y1=new JV({width:v,height:f,longitude:0,latitude:0,zoom:0}),fy=y1.project([Ta,B0]),J1=y1.project([em,eu]),ey=[Math.max(Math.abs(J1[0]-fy[0]),E),Math.max(Math.abs(J1[1]-fy[1]),E)],Fy=[v-ue.left-ue.right-Math.abs(st[0])*2,f-ue.top-ue.bottom-Math.abs(st[1])*2];dk(Fy[0]>0&&Fy[1]>0);var C_=Fy[0]/ey[0],yx=Fy[1]/ey[1],ux=(ue.right-ue.left)/2/C_,h2=(ue.bottom-ue.top)/2/yx,V2=[(J1[0]+fy[0])/2+ux,(J1[1]+fy[1])/2+h2],aw=y1.unproject(V2),XE=y1.zoom+Math.log2(Math.abs(Math.min(C_,yx)));return{longitude:aw[0],latitude:aw[1],zoom:Math.min(XE,B)}}var JV=function(i){(0,Ht.Z)(v,i);function v(){var f,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=m.width,E=m.height,M=m.latitude,B=M===void 0?0:M,J=m.longitude,ue=J===void 0?0:J,Ze=m.zoom,st=Ze===void 0?0:Ze,Fr=m.pitch,Go=Fr===void 0?0:Fr,Ta=m.bearing,eu=Ta===void 0?0:Ta,kd=m.altitude,em=kd===void 0?1.5:kd,B0=m.nearZMultiplier,vv=m.farZMultiplier;(0,Zr.Z)(this,v),d=d||1,E=E||1;var y1=qJ(st);em=Math.max(.75,em);var fy=YV([ue,B],y1);fy[2]=0;var J1=JJ({width:d,height:E,pitch:Go,bearing:eu,altitude:em,nearZMultiplier:B0||1/E,farZMultiplier:vv||1.01}),ey=tae({height:E,center:fy,pitch:Go,bearing:eu,altitude:em,flipY:!0});return f=(0,Zs.Z)(this,(0,oi.Z)(v).call(this,{width:d,height:E,viewMatrix:ey,projectionMatrix:J1})),f.latitude=B,f.longitude=ue,f.zoom=st,f.pitch=Go,f.bearing=eu,f.altitude=em,f.scale=y1,f.center=fy,f.pixelsPerMeter=qH((0,mv.Z)((0,mv.Z)(f))).pixelsPerMeter[2],Object.freeze((0,mv.Z)((0,mv.Z)(f))),f}return(0,gt.Z)(v,[{key:"projectFlat",value:function(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return YV(m,d)}},{key:"unprojectFlat",value:function(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return PN(m,d)}},{key:"getMapCenterByLngLatPosition",value:function(m){var d=m.lngLat,E=m.pos,M=QJ(E,this.pixelUnprojectionMatrix),B=YV(d,this.scale),J=WC([],B,W3([],M)),ue=WC([],this.center,J);return PN(ue,this.scale)}},{key:"getLocationAtPoint",value:function(m){var d=m.lngLat,E=m.pos;return this.getMapCenterByLngLatPosition({lngLat:d,pos:E})}},{key:"fitBounds",value:function(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=this.width,M=this.height,B=rae(Object.assign({width:E,height:M,bounds:m},d)),J=B.longitude,ue=B.latitude,Ze=B.zoom;return new v({width:E,height:M,longitude:J,latitude:ue,zoom:Ze})}}]),v}(nae),LN=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"syncWithMapCamera",value:function(f){var m=f.center,d=f.zoom,E=f.pitch,M=f.bearing,B=f.viewportHeight,J=f.viewportWidth,ue=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new JV((0,vn.Z)((0,vn.Z)({},ue),{},{width:J,height:B,longitude:m&&m[0],latitude:m&&m[1],zoom:d,pitch:E,bearing:M}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(f,m){return this.viewport.projectFlat(f,m)}}]),i}(),eQ=function(){function i(v){(0,Zr.Z)(this,i),(0,Na.Z)(this,"size",1e4),this.size=v||1e4}return(0,gt.Z)(i,[{key:"setSize",value:function(f){this.size=f}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(f){return(180+f)/360*this.size}},{key:"mercatorYfromLat",value:function(f){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(f){return f/this.size*360-180}},{key:"latFromMercatorY",value:function(f){var m=180-(1-f/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(m*Math.PI/180))-90}},{key:"project",value:function(f){var m=this.mercatorXfromLng(f[0]),d=this.mercatorYfromLat(f[1]);return[m,d]}},{key:"unproject",value:function(f){var m=this.lngFromMercatorX(f[0]),d=this.latFromMercatorY(f[1]);return[m,d]}}]),i}();function MN(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v={top:0,right:0,bottom:0,left:0};if(typeof i=="number")return{top:i,right:i,bottom:i,left:i};if(Array.isArray(i)){if(i.length===4)return{top:i[0],right:i[1],bottom:i[2],left:i[3]};if(i.length===2)return{top:i[0],right:i[1],bottom:i[0],left:i[1]}}return(0,vn.Z)((0,vn.Z)({},v),i)}var iae={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},Yz=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],tQ,nQ,rQ,QV,ej,tj,F8,nj,iQ,qz,Jz;function QH(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}QH(`.amap-logo{ +`);var VL,ZN,R9,HC=(VL=a_(In.IGlobalConfigService),ZN=function(){function i(d){(0,vt.Z)(this,i),F(this,"configService",R9,this),this.config=d}return(0,Te.Z)(i,[{key:"setContainer",value:function(l,c,a){l.bind(In.MapConfig).toConstantValue((0,Xe.Z)((0,Xe.Z)({},this.config),{},{id:c,canvas:a})),l.bind(In.IMapService).to(this.getServiceConstructor()).inSingletonScope()}},{key:"getServiceConstructor",value:function(){throw new Error("Method not implemented.")}}]),i}(),R9=I(ZN.prototype,"configService",[VL],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ZN),BH=x(95906),k9=x.n(BH);function $L(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function j5(i,d){var l=Jh([],d,i);return Aa(l,l,1/l[3]),l}function O9(i,d){var l=i%d;return l<0?d+l:l}function N9(i,d,l){return l*d+(1-l)*i}function aS(i,d){if(!i)throw new Error(d||"viewport-mercator-project: assertion failed.")}var GC=Math.PI,F9=GC/4,qx=GC/180,B9=180/GC,jN=512,HN=4003e4,zH=1.5;function z9(i){return Math.pow(2,i)}function UH(i){return Math.log2(i)}function H5(i,d){var l=(0,zn.Z)(i,2),c=l[0],a=l[1];aS(Number.isFinite(c)&&Number.isFinite(d)),aS(Number.isFinite(a)&&a>=-90&&a<=90,"invalid latitude"),d*=jN;var p=c*qx,y=a*qx,w=d*(p+GC)/(2*GC),O=d*(GC-Math.log(Math.tan(F9+y*.5)))/(2*GC);return[w,O]}function TE(i,d){var l=(0,zn.Z)(i,2),c=l[0],a=l[1];d*=jN;var p=c/d*(2*GC)-GC,y=2*(Math.atan(Math.exp(GC-a/d*(2*GC)))-F9);return[p*B9,y*B9]}function G5(i){var d=i.latitude;assert(Number.isFinite(d));var l=Math.cos(d*qx);return UH(HN*l)-9}function GN(i){var d=i.latitude,l=i.longitude,c=i.zoom,a=i.scale,p=i.highPrecision,y=p===void 0?!1:p;a=a!==void 0?a:z9(c),aS(Number.isFinite(d)&&Number.isFinite(l)&&Number.isFinite(a));var w={},O=jN*a,V=Math.cos(d*qx),he=O/360,be=he/V,ut=O/HN/V;if(w.pixelsPerMeter=[ut,-ut,ut],w.metersPerPixel=[1/ut,-1/ut,1/ut],w.pixelsPerDegree=[he,-be,ut],w.degreesPerPixel=[1/he,-1/be,1/ut],y){var Pt=qx*Math.tan(d*qx)/V,qt=he*Pt/2,En=O/HN*Pt,qn=En/be*ut;w.pixelsPerDegree2=[0,-qt,En],w.pixelsPerMeter2=[qn,0,qn]}return w}function qQ(i,d){var l=_slicedToArray(i,3),c=l[0],a=l[1],p=l[2],y=_slicedToArray(d,3),w=y[0],O=y[1],V=y[2],he=1,be=GN({longitude:c,latitude:a,scale:he,highPrecision:!0}),ut=be.pixelsPerMeter,Pt=be.pixelsPerMeter2,qt=H5(i,he);qt[0]+=w*(ut[0]+Pt[0]*O),qt[1]+=O*(ut[1]+Pt[1]*O);var En=TE(qt,he),qn=(p||0)+(V||0);return Number.isFinite(p)||Number.isFinite(V)?[En[0],En[1],qn]:En}function VH(i){var d=i.height,l=i.pitch,c=i.bearing,a=i.altitude,p=i.center,y=p===void 0?null:p,w=i.flipY,O=w===void 0?!1:w,V=$L();return c0(V,V,[0,0,-a]),Xg(V,V,[1,1,1/d]),i0(V,V,-l*qx),kv(V,V,c*qx),O&&Xg(V,V,[1,-1,1]),y&&c0(V,V,sO([],y)),V}function WL(i){var d=i.width,l=i.height,c=i.altitude,a=c===void 0?zH:c,p=i.pitch,y=p===void 0?0:p,w=i.nearZMultiplier,O=w===void 0?1:w,V=i.farZMultiplier,he=V===void 0?1:V,be=y*qx,ut=Math.atan(.5/a),Pt=Math.sin(ut)*a/Math.sin(Math.PI/2-be-ut),qt=Math.cos(Math.PI/2-be)*Pt+a;return{fov:2*Math.atan(l/2/a),aspect:d/l,focalDistance:a,near:O,far:qt*he}}function U9(i){var d=i.width,l=i.height,c=i.pitch,a=i.altitude,p=i.nearZMultiplier,y=i.farZMultiplier,w=WL({width:d,height:l,altitude:a,pitch:c,nearZMultiplier:p,farZMultiplier:y}),O=w.fov,V=w.aspect,he=w.near,be=w.far,ut=Di([],O,V,he,be);return ut}function ZL(i,d){var l=(0,zn.Z)(i,3),c=l[0],a=l[1],p=l[2],y=p===void 0?0:p;return aS(Number.isFinite(c)&&Number.isFinite(a)&&Number.isFinite(y)),j5(d,[c,a,y,1])}function V9(i,d){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,zn.Z)(i,3),a=c[0],p=c[1],y=c[2];if(aS(Number.isFinite(a)&&Number.isFinite(p),"invalid pixel coordinate"),Number.isFinite(y)){var w=j5(d,[a,p,y,1]);return w}var O=j5(d,[a,p,0,1]),V=j5(d,[a,p,1,1]),he=O[2],be=V[2],ut=he===be?0:((l||0)-he)/(be-he);return Fg([],O,V,ut)}var KN=$L(),$H=function(){function i(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=d.width,c=d.height,a=d.viewMatrix,p=a===void 0?KN:a,y=d.projectionMatrix,w=y===void 0?KN:y;(0,vt.Z)(this,i),this.width=l||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=p,this.projectionMatrix=w;var O=$L();wf(O,O,this.projectionMatrix),wf(O,O,this.viewMatrix),this.viewProjectionMatrix=O;var V=$L();Xg(V,V,[this.width/2,-this.height/2,1]),c0(V,V,[1,-1,0]),wf(V,V,this.viewProjectionMatrix);var he=Jp($L(),V);if(!he)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=V,this.pixelUnprojectionMatrix=he,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,Te.Z)(i,[{key:"equals",value:function(l){return l instanceof i?l.width===this.width&&l.height===this.height&&Fn(l.projectionMatrix,this.projectionMatrix)&&Fn(l.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.topLeft,p=a===void 0?!0:a,y=this.projectPosition(l),w=ZL(y,this.pixelProjectionMatrix),O=(0,zn.Z)(w,2),V=O[0],he=O[1],be=p?he:this.height-he;return l.length===2?[V,be]:[V,be,w[2]]}},{key:"unproject",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.topLeft,p=a===void 0?!0:a,y=c.targetZ,w=(0,zn.Z)(l,3),O=w[0],V=w[1],he=w[2],be=p?V:this.height-V,ut=y&&y*this.pixelsPerMeter,Pt=V9([O,be,he],this.pixelUnprojectionMatrix,ut),qt=this.unprojectPosition(Pt),En=(0,zn.Z)(qt,3),qn=En[0],Zr=En[1],Si=En[2];return Number.isFinite(he)?[qn,Zr,Si]:Number.isFinite(y)?[qn,Zr,y]:[qn,Zr]}},{key:"projectPosition",value:function(l){var c=this.projectFlat(l),a=(0,zn.Z)(c,2),p=a[0],y=a[1],w=(l[2]||0)*this.pixelsPerMeter;return[p,y,w]}},{key:"unprojectPosition",value:function(l){var c=this.unprojectFlat(l),a=(0,zn.Z)(c,2),p=a[0],y=a[1],w=(l[2]||0)/this.pixelsPerMeter;return[p,y,w]}},{key:"projectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}},{key:"unprojectFlat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return l}}]),i}();function WH(i){var d=i.width,l=i.height,c=i.bounds,a=i.minExtent,p=a===void 0?0:a,y=i.maxZoom,w=y===void 0?24:y,O=i.padding,V=O===void 0?0:O,he=i.offset,be=he===void 0?[0,0]:he,ut=(0,zn.Z)(c,2),Pt=(0,zn.Z)(ut[0],2),qt=Pt[0],En=Pt[1],qn=(0,zn.Z)(ut[1],2),Zr=qn[0],Si=qn[1];if(Number.isFinite(V)){var to=V;V={top:to,bottom:to,left:to,right:to}}else aS(Number.isFinite(V.top)&&Number.isFinite(V.bottom)&&Number.isFinite(V.left)&&Number.isFinite(V.right));var ts=new K5({width:d,height:l,longitude:0,latitude:0,zoom:0}),Qs=ts.project([qt,Si]),Fs=ts.project([Zr,En]),Us=[Math.max(Math.abs(Fs[0]-Qs[0]),p),Math.max(Math.abs(Fs[1]-Qs[1]),p)],Sa=[d-V.left-V.right-Math.abs(be[0])*2,l-V.top-V.bottom-Math.abs(be[1])*2];aS(Sa[0]>0&&Sa[1]>0);var dl=Sa[0]/Us[0],fu=Sa[1]/Us[1],iu=(V.right-V.left)/2/dl,ic=(V.bottom-V.top)/2/fu,Nc=[(Fs[0]+Qs[0])/2+iu,(Fs[1]+Qs[1])/2+ic],nh=ts.unproject(Nc),Zp=ts.zoom+Math.log2(Math.abs(Math.min(dl,fu)));return{longitude:nh[0],latitude:nh[1],zoom:Math.min(Zp,w)}}var K5=function(i){(0,ze.Z)(d,i);function d(){var l,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=c.width,p=c.height,y=c.latitude,w=y===void 0?0:y,O=c.longitude,V=O===void 0?0:O,he=c.zoom,be=he===void 0?0:he,ut=c.pitch,Pt=ut===void 0?0:ut,qt=c.bearing,En=qt===void 0?0:qt,qn=c.altitude,Zr=qn===void 0?1.5:qn,Si=c.nearZMultiplier,to=c.farZMultiplier;(0,vt.Z)(this,d),a=a||1,p=p||1;var ts=z9(be);Zr=Math.max(.75,Zr);var Qs=H5([V,w],ts);Qs[2]=0;var Fs=U9({width:a,height:p,pitch:Pt,bearing:En,altitude:Zr,nearZMultiplier:Si||1/p,farZMultiplier:to||1.01}),Us=VH({height:p,center:Qs,pitch:Pt,bearing:En,altitude:Zr,flipY:!0});return l=(0,Vt.Z)(this,(0,Tt.Z)(d).call(this,{width:a,height:p,viewMatrix:Us,projectionMatrix:Fs})),l.latitude=w,l.longitude=V,l.zoom=be,l.pitch=Pt,l.bearing=En,l.altitude=Zr,l.scale=ts,l.center=Qs,l.pixelsPerMeter=GN((0,eo.Z)((0,eo.Z)(l))).pixelsPerMeter[2],Object.freeze((0,eo.Z)((0,eo.Z)(l))),l}return(0,Te.Z)(d,[{key:"projectFlat",value:function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return H5(c,a)}},{key:"unprojectFlat",value:function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return TE(c,a)}},{key:"getMapCenterByLngLatPosition",value:function(c){var a=c.lngLat,p=c.pos,y=V9(p,this.pixelUnprojectionMatrix),w=H5(a,this.scale),O=Od([],w,M0([],y)),V=Od([],this.center,O);return TE(V,this.scale)}},{key:"getLocationAtPoint",value:function(c){var a=c.lngLat,p=c.pos;return this.getMapCenterByLngLatPosition({lngLat:a,pos:p})}},{key:"fitBounds",value:function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=this.width,y=this.height,w=WH(Object.assign({width:p,height:y,bounds:c},a)),O=w.longitude,V=w.latitude,he=w.zoom;return new d({width:p,height:y,longitude:O,latitude:V,zoom:he})}}]),d}($H),DE=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"syncWithMapCamera",value:function(l){var c=l.center,a=l.zoom,p=l.pitch,y=l.bearing,w=l.viewportHeight,O=l.viewportWidth,V=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new K5((0,Xe.Z)((0,Xe.Z)({},V),{},{width:O,height:w,longitude:c&&c[0],latitude:c&&c[1],zoom:a,pitch:p,bearing:y}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),i}(),$9=function(){function i(d){(0,vt.Z)(this,i),(0,pn.Z)(this,"size",1e4),this.size=d||1e4}return(0,Te.Z)(i,[{key:"setSize",value:function(l){this.size=l}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(l){return(180+l)/360*this.size}},{key:"mercatorYfromLat",value:function(l){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(l){return l/this.size*360-180}},{key:"latFromMercatorY",value:function(l){var c=180-(1-l/this.size)*360;return 360/Math.PI*Math.atan(Math.exp(c*Math.PI/180))-90}},{key:"project",value:function(l){var c=this.mercatorXfromLng(l[0]),a=this.mercatorYfromLat(l[1]);return[c,a]}},{key:"unproject",value:function(l){var c=this.lngFromMercatorX(l[0]),a=this.latFromMercatorY(l[1]);return[c,a]}}]),i}();function IE(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={top:0,right:0,bottom:0,left:0};if(typeof i=="number")return{top:i,right:i,bottom:i,left:i};if(Array.isArray(i)){if(i.length===4)return{top:i[0],right:i[1],bottom:i[2],left:i[3]};if(i.length===2)return{top:i[0],right:i[1],bottom:i[0],left:i[1]}}return(0,Xe.Z)((0,Xe.Z)({},d),i)}var ZH={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},jL=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],W9,Z9,j9,X5,Y5,q5,kT,J5,H9,HL,GL;function XN(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}XN(`.amap-logo{ display: none !important; } .amap-copyright { display: none !important; } -`);var oQ={contextmenu:"rightclick"},oae={contextmenu:"rightclick",camerachange:"viewchange"},sQ={"GAODE1.x":oQ,"GAODE2.x":oae},sae=0;window.forceWebGL=!0;var eG="15cd8a57710d40c9b7c0e3cc120f1200",aae="1.4.15",lae="amap-script",rj=!1,Qz=[],uae=12,aQ=(tQ=(0,Rg.b2)(),nQ=(0,Rg.f3)(cu.IGlobalConfigService),rQ=(0,Rg.f3)(cu.MapConfig),QV=(0,Rg.f3)(cu.ICoordinateSystemService),ej=(0,Rg.f3)(cu.IEventEmitter),tQ(tj=(F8=function(){function i(){var v=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"version",Ny["GAODE1.x"]),(0,Na.Z)(this,"simpleMapCoord",new eQ),(0,Na.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),ne(this,"configService",nj,this),ne(this,"config",iQ,this),ne(this,"coordinateSystemService",qz,this),ne(this,"eventEmitter",Jz,this),(0,Na.Z)(this,"handleCameraChanged",function(f){var m=f.camera,d=m.fov,E=m.near,M=m.far,B=m.height,J=m.pitch,ue=m.rotation,Ze=m.aspect,st=m.position,Fr=v.getCenter(),Go=Fr.lng,Ta=Fr.lat;if(v.emit("mapchange"),v.cameraChangedCallback){v.viewport.syncWithMapCamera({aspect:Ze,bearing:360-ue,far:M,fov:d,cameraHeight:B,near:E,pitch:J,zoom:v.map.getZoom()-1,center:[Go,Ta],offsetOrigin:[st.x,st.y]});var eu=v.config.offsetZoom,kd=eu===void 0?uae:eu;v.viewport.getZoom()>kd?v.coordinateSystemService.setCoordinateSystem(RS.P20_OFFSET):v.coordinateSystemService.setCoordinateSystem(RS.P20),v.cameraChangedCallback(v.viewport)}})}return(0,gt.Z)(i,[{key:"setBgColor",value:function(f){this.bgColor=f}},{key:"addMarkerContainer",value:function(){var f=this.map.getContainer();if(f!==null){var m=f.getElementsByClassName("amap-maps")[0];this.markerContainer=Ov("div","l7-marker-container",m)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(f,m){BI.indexOf(f)!==-1?this.eventEmitter.on(f,m):this.map.on(sQ[this.version][f]||f,m)}},{key:"off",value:function(f,m){BI.indexOf(f)!==-1?this.eventEmitter.off(f,m):this.map.off(sQ[this.version][f]||f,m)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var f;return(f=this.map.getContainer())===null||f===void 0?void 0:f.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var f=this.map.getSize();return[f.getWidth(),f.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(f){return this.map.setZoom(f+1)}},{key:"getCenter",value:function(f){if(f!=null&&f.padding){var m=this.getCenter(),d=MN(f.padding),E=this.lngLatToPixel([m.lng,m.lat]),M=[(d.right-d.left)/2,(d.bottom-d.top)/2],B=this.pixelToLngLat([E.x-M[0],E.y-M[1]]);return B}var J=this.map.getCenter();return{lng:J.getLng(),lat:J.getLat()}}},{key:"setCenter",value:function(f,m){if(m!=null&&m.padding){var d=MN(m.padding),E=this.lngLatToPixel(f),M=[(d.right-d.left)/2,(d.bottom-d.top)/2],B=this.pixelToLngLat([E.x+M[0],E.y+M[1]]);this.map.setCenter([B.lng,B.lat])}else this.map.setCenter(f)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var f=this.map.getBounds().toBounds(),m=f.getNorthEast(),d=f.getSouthWest(),E=this.getCenter(),M=E.lng>m.getLng()||E.lng0&&arguments[0]!==void 0?arguments[0]:0,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(f,m)}},{key:"fitBounds",value:function(f){this.map.setBounds(new AMap.Bounds([f[0][0],f[0][1],f[1][0],f[1][1]]))}},{key:"setZoomAndCenter",value:function(f,m){this.map.setZoomAndCenter(f+1,m)}},{key:"setMapStyle",value:function(f){this.map.setMapStyle(this.getMapStyleValue(f))}},{key:"setMapStatus",value:function(f){this.map.setStatus(f)}},{key:"getMapStyleConfig",value:function(){return iae}},{key:"getMapStyleValue",value:function(f){return this.getMapStyleConfig()[f]||f}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(f){var m=this.map.pixelToLngLat(new AMap.Pixel(f[0],f[1]));return{lng:m.getLng(),lat:m.getLat()}}},{key:"lngLatToPixel",value:function(f){var m=this.map.lnglatToPixel(new AMap.LngLat(f[0],f[1]));return{x:m.getX(),y:m.getY()}}},{key:"containerToLngLat",value:function(f){var m=new AMap.Pixel(f[0],f[1]),d=this.map.containerToLngLat(m);return{lng:d==null?void 0:d.getLng(),lat:d==null?void 0:d.getLat()}}},{key:"lngLatToContainer",value:function(f){var m=new AMap.LngLat(f[0],f[1]),d=this.map.lngLatToContainer(m);return{x:d.getX(),y:d.getY()}}},{key:"lngLatToCoord",value:function(f){var m=this.map.lngLatToGeodeticCoord(f),d=m.x,E=m.y;return[d,-E]}},{key:"lngLatToMercator",value:function(f,m){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(f,m,d){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],M=this.viewport.projectFlat(f),B=Jx();return h3(B,B,YA(M[0],M[1],m)),QT(B,B,YA(E[0],E[1],E[2])),a3(B,B,d[0]),X1(B,B,d[1]),zD(B,B,d[2]),B}},{key:"init",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){var d=this,E,M,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0;return Pv().wrap(function(y1){for(;;)switch(y1.prev=y1.next){case 0:return E=this.config,M=E.id,B=E.style,J=B===void 0?"light":B,ue=E.minZoom,Ze=ue===void 0?0:ue,st=E.maxZoom,Fr=st===void 0?18:st,Go=E.token,Ta=Go===void 0?eG:Go,eu=E.mapInstance,kd=E.plugin,em=kd===void 0?[]:kd,B0=(0,q3.Z)(E,Yz),y1.next=3,new Promise(function(fy){var J1=function(){if(eu)d.map=eu,d.$mapContainer=d.map.getContainer(),setTimeout(function(){d.map.on("camerachange",d.handleCameraChanged),fy()},30);else{d.$mapContainer=d.creatMapContainer(M);var Fy=(0,vn.Z)({mapStyle:d.getMapStyleValue(J),zooms:[Ze,Fr],viewMode:"3D"},B0);Fy.zoom&&(Fy.zoom+=1);var C_=new AMap.Map(d.$mapContainer,Fy);C_.on("camerachange",d.handleCameraChanged),C_.on("camerachange",function(){setTimeout(function(){return d.handleAfterMapChange()})}),d.map=C_,setTimeout(function(){fy()},10)}};!rj&&!eu?(Ta===eG&&console.warn("%c".concat(d.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),rj=!0,em.push("Map3D"),HJ().load({key:Ta,version:aae,plugins:em}).then(function(){J1(),Qz.length&&(Qz.forEach(function(ey){return ey()}),Qz=[])}).catch(function(ey){throw new Error(ey)})):rj&&window.AMap||eu?J1():Qz.push(J1)});case 3:this.viewport=new LN;case 4:case"end":return y1.stop()}},m,this)}));function f(){return v.apply(this,arguments)}return f}()},{key:"meterToCoord",value:function(f,m){var d=AMap.GeometryUtil.distance(Ug(AMap.LngLat,(0,su.Z)(f)),Ug(AMap.LngLat,(0,su.Z)(m))),E=this.lngLatToCoord(f),M=(0,hu.Z)(E,2),B=M[0],J=M[1],ue=this.lngLatToCoord(m),Ze=(0,hu.Z)(ue,2),st=Ze[0],Fr=Ze[1],Go=Math.sqrt(Math.pow(B-st,2)+Math.pow(J-Fr,2));return Go/d}},{key:"updateView",value:function(f){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(f){var m,d=(m=this.getContainer())===null||m===void 0?void 0:m.getElementsByClassName("amap-layer")[0],E=f==="jpg"?d==null?void 0:d.toDataURL("image/jpeg"):d==null?void 0:d.toDataURL("image/png");return E}},{key:"emit",value:function(f){for(var m,d=arguments.length,E=new Array(d>1?d-1:0),M=1;M1?d-1:0),M=1;Mqn?d.coordinateSystemService.setCoordinateSystem(Df.P20_OFFSET):d.coordinateSystemService.setCoordinateSystem(Df.P20),d.cameraChangedCallback(d.viewport)}})}return(0,Te.Z)(i,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getContainer();if(l!==null){var c=l.getElementsByClassName("amap-maps")[0];this.markerContainer=va("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(l,c){R1.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(K9[this.version][l]||l,c)}},{key:"off",value:function(l,c){R1.indexOf(l)!==-1?this.eventEmitter.off(l,c):this.map.off(K9[this.version][l]||l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var l;return(l=this.map.getContainer())===null||l===void 0?void 0:l.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var l=this.map.getSize();return[l.getWidth(),l.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(l){return this.map.setZoom(l+1)}},{key:"getCenter",value:function(l){if(l!=null&&l.padding){var c=this.getCenter(),a=IE(l.padding),p=this.lngLatToPixel([c.lng,c.lat]),y=[(a.right-a.left)/2,(a.bottom-a.top)/2],w=this.pixelToLngLat([p.x-y[0],p.y-y[1]]);return w}var O=this.map.getCenter();return{lng:O.getLng(),lat:O.getLat()}}},{key:"setCenter",value:function(l,c){if(c!=null&&c.padding){var a=IE(c.padding),p=this.lngLatToPixel(l),y=[(a.right-a.left)/2,(a.bottom-a.top)/2],w=this.pixelToLngLat([p.x+y[0],p.y+y[1]]);this.map.setCenter([w.lng,w.lat])}else this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var l=this.map.getBounds().toBounds(),c=l.getNorthEast(),a=l.getSouthWest(),p=this.getCenter(),y=p.lng>c.getLng()||p.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(l,c)}},{key:"fitBounds",value:function(l){this.map.setBounds(new AMap.Bounds([l[0][0],l[0][1],l[1][0],l[1][1]]))}},{key:"setZoomAndCenter",value:function(l,c){this.map.setZoomAndCenter(l+1,c)}},{key:"setMapStyle",value:function(l){this.map.setMapStyle(this.getMapStyleValue(l))}},{key:"setMapStatus",value:function(l){this.map.setStatus(l)}},{key:"getMapStyleConfig",value:function(){return ZH}},{key:"getMapStyleValue",value:function(l){return this.getMapStyleConfig()[l]||l}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(l){var c=this.map.pixelToLngLat(new AMap.Pixel(l[0],l[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(l){var c=this.map.lnglatToPixel(new AMap.LngLat(l[0],l[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(l){var c=new AMap.Pixel(l[0],l[1]),a=this.map.containerToLngLat(c);return{lng:a==null?void 0:a.getLng(),lat:a==null?void 0:a.getLat()}}},{key:"lngLatToContainer",value:function(l){var c=new AMap.LngLat(l[0],l[1]),a=this.map.lngLatToContainer(c);return{x:a.getX(),y:a.getY()}}},{key:"lngLatToCoord",value:function(l){var c=this.map.lngLatToGeodeticCoord(l),a=c.x,p=c.y;return[a,-p]}},{key:"lngLatToMercator",value:function(l,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(l,c,a){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],y=this.viewport.projectFlat(l),w=Nu();return c0(w,w,Km(y[0],y[1],c)),Xg(w,w,Km(p[0],p[1],p[2])),i0(w,w,a[0]),Ps(w,w,a[1]),kv(w,w,a[2]),w}},{key:"init",value:function(){var d=(0,al.Z)(mo().mark(function c(){var a=this,p,y,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si;return mo().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:return p=this.config,y=p.id,w=p.style,O=w===void 0?"light":w,V=p.minZoom,he=V===void 0?0:V,be=p.maxZoom,ut=be===void 0?18:be,Pt=p.token,qt=Pt===void 0?YN:Pt,En=p.mapInstance,qn=p.plugin,Zr=qn===void 0?[]:qn,Si=(0,W0.Z)(p,jL),ts.next=3,new Promise(function(Qs){var Fs=function(){if(En)a.map=En,a.$mapContainer=a.map.getContainer(),setTimeout(function(){a.map.on("camerachange",a.handleCameraChanged),Qs()},30);else{a.$mapContainer=a.creatMapContainer(y);var Sa=(0,Xe.Z)({mapStyle:a.getMapStyleValue(O),zooms:[he,ut],viewMode:"3D"},Si);Sa.zoom&&(Sa.zoom+=1);var dl=new AMap.Map(a.$mapContainer,Sa);dl.on("camerachange",a.handleCameraChanged),dl.on("camerachange",function(){setTimeout(function(){return a.handleAfterMapChange()})}),a.map=dl,setTimeout(function(){Qs()},10)}};!Q5&&!En?(qt===YN&&console.warn("%c".concat(a.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),Q5=!0,Zr.push("Map3D"),k9().load({key:qt,version:GH,plugins:Zr}).then(function(){Fs(),KL.length&&(KL.forEach(function(Us){return Us()}),KL=[])}).catch(function(Us){throw new Error(Us)})):Q5&&window.AMap||En?Fs():KL.push(Fs)});case 3:this.viewport=new DE;case 4:case"end":return ts.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,c){var a=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,Ln.Z)(l)),Yr(AMap.LngLat,(0,Ln.Z)(c))),p=this.lngLatToCoord(l),y=(0,zn.Z)(p,2),w=y[0],O=y[1],V=this.lngLatToCoord(c),he=(0,zn.Z)(V,2),be=he[0],ut=he[1],Pt=Math.sqrt(Math.pow(w-be,2)+Math.pow(O-ut,2));return Pt/a}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var c,a=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],p=l==="jpg"?a==null?void 0:a.toDataURL("image/jpeg"):a==null?void 0:a.toDataURL("image/png");return p}},{key:"emit",value:function(l){for(var c,a=arguments.length,p=new Array(a>1?a-1:0),y=1;y1?a-1:0),y=1;yfy?m.coordinateSystemService.setCoordinateSystem(RS.P20_OFFSET):m.coordinateSystemService.setCoordinateSystem(RS.P20),m.cameraChangedCallback(m.viewport)}}),m}return(0,gt.Z)(f,[{key:"getModelMatrix",value:function(d,E,M){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.viewport.projectFlat(d),ue=Jx();return h3(ue,ue,YA(J[0],J[1],E)),QT(ue,ue,YA(B[0],B[1],B[2])),a3(ue,ue,M[0]),X1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M=this,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1;return Pv().wrap(function(J1){for(;;)switch(J1.prev=J1.next){case 0:return B=this.config,J=B.id,ue=B.style,Ze=ue===void 0?"light":ue,st=B.minZoom,Fr=st===void 0?0:st,Go=B.maxZoom,Ta=Go===void 0?18:Go,eu=B.token,kd=eu===void 0?cQ:eu,em=B.mapInstance,B0=B.plugin,vv=B0===void 0?[]:B0,y1=(0,q3.Z)(B,oj),J1.next=3,new Promise(function(ey){var Fy=function(){if(em)M.map=em,M.$mapContainer=M.map.getContainer(),setTimeout(function(){M.map.on("camerachange",M.handleCameraChanged),ey()},30);else{M.$mapContainer=M.creatMapContainer(J);var yx=(0,vn.Z)({mapStyle:M.getMapStyleValue(Ze),zooms:[Fr,Ta],viewMode:"3D"},y1);yx.zoom&&(yx.zoom+=1);var ux=new AMap.Map(M.$mapContainer,yx);ux.on("camerachange",M.handleCameraChanged),ux.on("camerachange",function(){setTimeout(function(){return M.handleAfterMapChange()})}),M.map=ux,setTimeout(function(){ey()},10)}};!B8&&!em?(kd===cQ&&console.warn(M.configService.getSceneWarninfo("MapToken")),B8=!0,vv.push("Map3D"),lQ.load({key:kd,version:dae,plugins:vv}).then(function(C_){Fy(),t$.length&&(t$.forEach(function(yx){return yx()}),t$=[])}).catch(function(C_){throw new Error(C_)})):B8&&window.AMap||em?Fy():t$.push(Fy)});case 3:this.viewport=new vpe;case 4:case"end":return J1.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"meterToCoord",value:function(d,E){var M=AMap.GeometryUtil.distance(Ug(AMap.LngLat,(0,su.Z)(d)),Ug(AMap.LngLat,(0,su.Z)(E))),B=this.lngLatToCoord(d),J=(0,hu.Z)(B,2),ue=J[0],Ze=J[1],st=this.lngLatToCoord(E),Fr=(0,hu.Z)(st,2),Go=Fr[0],Ta=Fr[1],eu=Math.sqrt(Math.pow(ue-Go,2)+Math.pow(Ze-Ta,2));return eu/M}},{key:"updateView",value:function(d){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(d){var E,M=(E=this.getContainer())===null||E===void 0?void 0:E.getElementsByClassName("amap-layer")[0],B=d==="jpg"?M==null?void 0:M.toDataURL("image/jpeg"):M==null?void 0:M.toDataURL("image/png");return B}},{key:"onCameraChanged",value:function(d){this.cameraChangedCallback=d}}]),f}(aQ))||uQ);function sG(i){var v=aG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function aG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var lG=function(i){(0,Ht.Z)(f,i);var v=sG(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return dQ}}]),f}(YO),hae=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"projectionMatrix",Jx()),(0,Na.Z)(this,"viewMatrix",Jx()),(0,Na.Z)(this,"viewProjectionMatrix",Jx()),(0,Na.Z)(this,"ViewProjectionMatrixUncentered",Jx()),(0,Na.Z)(this,"viewUncenteredMatrix",Jx())}return(0,gt.Z)(i,[{key:"syncWithMapCamera",value:function(f){var m=f.zoom,d=m===void 0?1:m,E=f.center,M=E===void 0?[0,0]:E,B=f.offsetOrigin,J=B===void 0?[0,0]:B,ue=f.cameraPosition,Ze=ue===void 0?[0,0,0]:ue,st=f.up,Fr=st===void 0?[0,1,0]:st,Go=f.lookAt,Ta=Go===void 0?[0,0,0]:Go,eu=f.aspect,kd=eu===void 0?1:eu,em=f.near,B0=em===void 0?.1:em,vv=f.far,y1=vv===void 0?1e3:vv,fy=f.fov,J1=fy===void 0?45:fy;this.zoom=d,this.center=M,U0(this.projectionMatrix,J1/180*Math.PI,kd,B0,y1);var ey=YA.apply(x,(0,su.Z)(Ze)),Fy=YA.apply(x,(0,su.Z)(Ta)),C_=YA.apply(x,(0,su.Z)(Fr));ny(this.viewMatrix,ey,Fy,C_),this.viewUncenteredMatrix=LA(this.viewMatrix),h3(this.viewMatrix,this.viewMatrix,YA(-J[0],J[1],0)),AS(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),AS(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var f=(0,hu.Z)(this.center,2),m=f[0],d=f[1];return[m,d]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(f){var m=85.0511287798,d=Math.max(Math.min(m,f[1]),-m),E=256<<20,M=Math.PI/180,B=f[0]*M,J=d*M;J=Math.log(Math.tan(Math.PI/4+J/2));var ue=.5/Math.PI,Ze=.5,st=-.5/Math.PI;return M=.5,B=E*(ue*B+Ze)-215440491,J=-(E*(st*J+M)-106744817),[B,J]}}]),i}(),fae=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],hQ,aj;function uG(i){var v=pae();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function pae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function fk(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}fk(`.amap-logo{ + `,a.id="l7_amap_div"+HH++,c.appendChild(a),a}}]),i}(),J5=I(kT.prototype,"configService",[Z9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H9=I(kT.prototype,"config",[j9],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),HL=I(kT.prototype,"coordinateSystemService",[X5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),GL=I(kT.prototype,"eventEmitter",[Y5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kT))||q5);if(!window)throw Error("AMap JSAPI can only be used in Browser.");var KC=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(KC||{}),Lb={key:"",AMap:{version:"2.0",plugins:[]}},lS={AMap:KC.notload},qN=[],YH=function(d){if(typeof d=="function"){if(lS.AMap===KC.loaded){d(window.AMap);return}qN.push(d)}},eR=function(){var i=(0,al.Z)(mo().mark(function d(l){return mo().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(p,y){if(lS.AMap===KC.failed)y("");else if(lS.AMap===KC.notload){var w=l.key,O=l.version,V=l.plugins;if(!w){y("\u8BF7\u586B\u5199key");return}window.AMap&&location.host!=="lbs.amap.com"&&y("\u7981\u6B62\u591A\u79CDAPI\u52A0\u8F7D\u65B9\u5F0F\u6DF7\u7528"),Lb.key=w,Lb.AMap.version=O||Lb.AMap.version,Lb.AMap.plugins=V||Lb.AMap.plugins,lS.AMap=KC.loading;var he=document.body||document.head;window._onAPILoaded=function(qt){qt?(lS.AMap=KC.failed,y(qt)):(lS.AMap=KC.loaded,p(null))};var be=document.createElement("script");be.type="text/javascript",be.async=!1,be.src="https://webapi.amap.com/maps?callback=_onAPILoaded&v="+Lb.AMap.version+"&key="+w+"&plugin="+Lb.AMap.plugins.join(","),be.onerror=function(qt){lS.AMap=KC.failed,y(qt)},he.appendChild(be)}else if(lS.AMap===KC.loaded){if(l.key&&l.key!==Lb.key){y("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==Lb.AMap.version){y("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var ut=[];l.plugins&&l.plugins.forEach(function(qt){Lb.AMap.plugins.indexOf(qt)===-1&&ut.push(qt)}),ut.length&&window.AMap.plugin(ut,function(){p(window.AMap)})}else{if(l.key&&l.key!==Lb.key){y("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(l.version&&l.version!==Lb.AMap.version){y("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Pt=[];l.plugins&&l.plugins.forEach(function(qt){Lb.AMap.plugins.indexOf(qt)===-1&&Pt.push(qt)}),YH(function(){Pt.length&&window.AMap.plugin(Pt,function(){p(window.AMap)})})}}));case 1:case"end":return a.stop()}},d)}));return function(l){return i.apply(this,arguments)}}();function XL(){delete window.AMap,Lb={key:"",AMap:{version:"1.4.15",plugins:[]}},lS={AMap:KC.notload}}var Y9={load:eR,reset:XL},JN=Math.PI/180,JQ=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"projectionMatrix",Nu()),(0,pn.Z)(this,"viewMatrix",Nu()),(0,pn.Z)(this,"viewProjectionMatrix",Nu()),(0,pn.Z)(this,"ViewProjectionMatrixUncentered",Nu()),(0,pn.Z)(this,"viewUncenteredMatrix",Nu())}return(0,Te.Z)(i,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,a=c===void 0?1:c,p=l.pitch,y=p===void 0?0:p,w=l.bearing,O=w===void 0?0:w,V=l.center,he=V===void 0?[0,0]:V,be=l.offsetOrigin,ut=be===void 0?[0,0]:be,Pt=l.cameraHeight,qt=Pt===void 0?1:Pt,En=l.aspect,qn=En===void 0?1:En,Zr=l.near,Si=Zr===void 0?.1:Zr,to=l.far,ts=to===void 0?1e3:to,Qs=l.fov,Fs=Qs===void 0?0:Qs;this.zoom=a,this.center=he;var Us=y*JN,Sa=(360-O)*JN;Di(this.projectionMatrix,Fs,qn,Si,ts);var dl=Km(qt*Math.sin(Us)*Math.sin(Sa),-qt*Math.sin(Us)*Math.cos(Sa),qt*Math.cos(Us)),fu=Km(-Math.cos(Us)*Math.sin(Sa),Math.cos(Us)*Math.cos(Sa),Math.sin(Us));Zs(this.viewMatrix,dl,Km(0,0,0),fu),this.viewUncenteredMatrix=Kg(this.viewMatrix),c0(this.viewMatrix,this.viewMatrix,Km(-ut[0],ut[1],0)),wf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),wf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var l=(0,zn.Z)(this.center,2),c=l[0],a=l[1];return[c,a]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l){var c=85.0511287798,a=Math.max(Math.min(c,l[1]),-c),p=256<<20,y=Math.PI/180,w=l[0]*y,O=a*y;O=Math.log(Math.tan(Math.PI/4+O/2));var V=.5/Math.PI,he=.5,be=-.5/Math.PI;return y=.5,w=p*(V*w+he)-215440491,O=-(p*(be*O+y)-106744817),[w,O]}}]),i}(),tR=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],nR,q9;function QN(i){var d=e6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function e6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}window.forceWebGL=!0;var J9="15cd8a57710d40c9b7c0e3cc120f1200",qH="1.4.15",OT=!1,YL=[],t6=12,Q9=(nR=(0,xr.b2)(),nR(q9=function(i){(0,ze.Z)(l,i);var d=QN(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;yQs?c.coordinateSystemService.setCoordinateSystem(Df.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(Df.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,Te.Z)(l,[{key:"getModelMatrix",value:function(a,p,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=this.viewport.projectFlat(a),V=Nu();return c0(V,V,Km(O[0],O[1],p)),Xg(V,V,Km(w[0],w[1],w[2])),i0(V,V,y[0]),Ps(V,V,y[1]),kv(V,V,y[2]),V}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y=this,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts;return mo().wrap(function(Fs){for(;;)switch(Fs.prev=Fs.next){case 0:return w=this.config,O=w.id,V=w.style,he=V===void 0?"light":V,be=w.minZoom,ut=be===void 0?0:be,Pt=w.maxZoom,qt=Pt===void 0?18:Pt,En=w.token,qn=En===void 0?J9:En,Zr=w.mapInstance,Si=w.plugin,to=Si===void 0?[]:Si,ts=(0,W0.Z)(w,tR),Fs.next=3,new Promise(function(Us){var Sa=function(){if(Zr)y.map=Zr,y.$mapContainer=y.map.getContainer(),setTimeout(function(){y.map.on("camerachange",y.handleCameraChanged),Us()},30);else{y.$mapContainer=y.creatMapContainer(O);var fu=(0,Xe.Z)({mapStyle:y.getMapStyleValue(he),zooms:[ut,qt],viewMode:"3D"},ts);fu.zoom&&(fu.zoom+=1);var iu=new AMap.Map(y.$mapContainer,fu);iu.on("camerachange",y.handleCameraChanged),iu.on("camerachange",function(){setTimeout(function(){return y.handleAfterMapChange()})}),y.map=iu,setTimeout(function(){Us()},10)}};!OT&&!Zr?(qn===J9&&console.warn(y.configService.getSceneWarninfo("MapToken")),OT=!0,to.push("Map3D"),Y9.load({key:qn,version:qH,plugins:to}).then(function(dl){Sa(),YL.length&&(YL.forEach(function(fu){return fu()}),YL=[])}).catch(function(dl){throw new Error(dl)})):OT&&window.AMap||Zr?Sa():YL.push(Sa)});case 3:this.viewport=new JQ;case 4:case"end":return Fs.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"meterToCoord",value:function(a,p){var y=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,Ln.Z)(a)),Yr(AMap.LngLat,(0,Ln.Z)(p))),w=this.lngLatToCoord(a),O=(0,zn.Z)(w,2),V=O[0],he=O[1],be=this.lngLatToCoord(p),ut=(0,zn.Z)(be,2),Pt=ut[0],qt=ut[1],En=Math.sqrt(Math.pow(V-Pt,2)+Math.pow(he-qt,2));return En/y}},{key:"updateView",value:function(a){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(a){var p,y=(p=this.getContainer())===null||p===void 0?void 0:p.getElementsByClassName("amap-layer")[0],w=a==="jpg"?y==null?void 0:y.toDataURL("image/jpeg"):y==null?void 0:y.toDataURL("image/png");return w}},{key:"onCameraChanged",value:function(a){this.cameraChangedCallback=a}}]),l}(X9))||q9);function n6(i){var d=r6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function r6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var i6=function(i){(0,ze.Z)(l,i);var d=n6(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return Q9}}]),l}(HC),JH=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"projectionMatrix",Nu()),(0,pn.Z)(this,"viewMatrix",Nu()),(0,pn.Z)(this,"viewProjectionMatrix",Nu()),(0,pn.Z)(this,"ViewProjectionMatrixUncentered",Nu()),(0,pn.Z)(this,"viewUncenteredMatrix",Nu())}return(0,Te.Z)(i,[{key:"syncWithMapCamera",value:function(l){var c=l.zoom,a=c===void 0?1:c,p=l.center,y=p===void 0?[0,0]:p,w=l.offsetOrigin,O=w===void 0?[0,0]:w,V=l.cameraPosition,he=V===void 0?[0,0,0]:V,be=l.up,ut=be===void 0?[0,1,0]:be,Pt=l.lookAt,qt=Pt===void 0?[0,0,0]:Pt,En=l.aspect,qn=En===void 0?1:En,Zr=l.near,Si=Zr===void 0?.1:Zr,to=l.far,ts=to===void 0?1e3:to,Qs=l.fov,Fs=Qs===void 0?45:Qs;this.zoom=a,this.center=y,Di(this.projectionMatrix,Fs/180*Math.PI,qn,Si,ts);var Us=Km.apply(A,(0,Ln.Z)(he)),Sa=Km.apply(A,(0,Ln.Z)(qt)),dl=Km.apply(A,(0,Ln.Z)(ut));Zs(this.viewMatrix,Us,Sa,dl),this.viewUncenteredMatrix=Kg(this.viewMatrix),c0(this.viewMatrix,this.viewMatrix,Km(-O[0],O[1],0)),wf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),wf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var l=(0,zn.Z)(this.center,2),c=l[0],a=l[1];return[c,a]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(l){var c=85.0511287798,a=Math.max(Math.min(c,l[1]),-c),p=256<<20,y=Math.PI/180,w=l[0]*y,O=a*y;O=Math.log(Math.tan(Math.PI/4+O/2));var V=.5/Math.PI,he=.5,be=-.5/Math.PI;return y=.5,w=p*(V*w+he)-215440491,O=-(p*(be*O+y)-106744817),[w,O]}}]),i}(),QH=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],ez,rR;function o6(i){var d=eG();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function eG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function uS(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}uS(`.amap-logo{ display: none !important; } .amap-copyright { display: none !important; } -`);var fQ=[108.92361,34.54083];window.forceWebGL=!0;var pQ="f59bcf249433f8b05caaee19f349b3d7",gQ="2.0",n$=!1,gae=null,mae=(hQ=(0,Rg.b2)(),hQ(aj=function(i){(0,Ht.Z)(f,i);var v=uG(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;ME.getLng()||B.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.map.customCoords.lngLatToCoord(d),ue=Jx();return h3(ue,ue,YA(J[0],J[1],E)),QT(ue,ue,YA(B[0],B[1],B[2])),a3(ue,ue,M[0]),X1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1,fy,J1,ey,Fy,C_,yx,ux;return Pv().wrap(function(V2){for(;;)switch(V2.prev=V2.next){case 0:if(M=this.config,B=M.id,J=M.style,ue=J===void 0?"light":J,Ze=M.minZoom,st=Ze===void 0?0:Ze,Fr=M.maxZoom,Go=Fr===void 0?24:Fr,Ta=M.token,eu=Ta===void 0?pQ:Ta,kd=M.mapInstance,em=M.plugin,B0=em===void 0?[]:em,vv=M.version,y1=vv===void 0?gQ:vv,fy=(0,q3.Z)(M,fae),this.viewport=new hae,window.AMap||kd){V2.next=6;break}return B0.push("Map3D"),V2.next=6,HJ().load({key:eu,version:gQ,plugins:B0});case 6:kd?(this.map=kd,this.$mapContainer=this.map.getContainer(),ey=this.map.getCenter(),(J1=this.map.customCoords)===null||J1===void 0||J1.setCenter([ey.lng,ey.lat]),this.setCustomCoordCenter([ey.lng,ey.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),C_=(0,vn.Z)({mapStyle:this.getMapStyleValue(ue),zooms:[st,Go],viewMode:"3D"},fy),C_.zoom&&(C_.zoom+=1),eu===pQ&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),yx=new AMap.Map(this.$mapContainer,C_),this.map=yx,ux=yx.getCenter(),(Fy=this.map.customCoords)===null||Fy===void 0||Fy.setCenter([ux.lng,ux.lat]),this.setCustomCoordCenter([ux.lng,ux.lat]),yx.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return V2.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(d){this.cameraChangedCallback=d}},{key:"initViewPort",value:function(){var d,E=((d=this.map.customCoords)===null||d===void 0?void 0:d.getCameraParams())||{},M=E.fov,B=E.near,J=E.far,ue=E.aspect,Ze=E.position,st=E.lookAt,Fr=E.up;this.emit("mapchange");var Go=this.map.customCoords.getCenter(),Ta=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ue,far:J,fov:M,cameraPosition:Ze,lookAt:st,near:B,up:Fr,zoom:Ta-1,center:Go,offsetOrigin:[Ze[0],Ze[1]]}),this.coordinateSystemService.setCoordinateSystem(RS.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(d,E){var M=[0,0];return M[0]=d[0]-E[0],M[1]=d[1]-E[1],M}}]),f}(aQ))||aj);function vae(i){var v=yae();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function yae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var mQ=function(i){(0,Ht.Z)(f,i);var v=vae(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return mae}}]),f}(YO),_ae={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},vQ,lj,yQ,_Q,bQ,xQ,kL,ON,z8,wQ,r$,CQ={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},bae=12,pk=(vQ=(0,Rg.b2)(),lj=(0,Rg.f3)(cu.MapConfig),yQ=(0,Rg.f3)(cu.IGlobalConfigService),_Q=(0,Rg.f3)(cu.ICoordinateSystemService),bQ=(0,Rg.f3)(cu.IEventEmitter),vQ(xQ=(kL=function(){function i(){var v=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"version","DEFAUlTMAP"),(0,Na.Z)(this,"simpleMapCoord",new eQ),(0,Na.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),ne(this,"config",ON,this),ne(this,"configService",z8,this),ne(this,"coordinateSystemService",wQ,this),ne(this,"eventEmitter",r$,this),(0,Na.Z)(this,"handleCameraChanged",function(f){var m=v.map.getCenter(),d=m.lat,E=m.lng;v.emit("mapchange"),v.viewport.syncWithMapCamera({bearing:v.map.getBearing(),center:[E,d],viewportHeight:v.map.transform.height,pitch:v.map.getPitch(),viewportWidth:v.map.transform.width,zoom:v.map.getZoom(),cameraHeight:0}),v.updateCoordinateSystemService(),v.cameraChangedCallback(v.viewport)})}return(0,gt.Z)(i,[{key:"setBgColor",value:function(f){this.bgColor=f}},{key:"addMarkerContainer",value:function(){var f=this.map.getCanvasContainer();this.markerContainer=Ov("div","l7-marker-container",f),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(f,m){BI.indexOf(f)!==-1?this.eventEmitter.on(f,m):this.map.on(CQ[f]||f,m)}},{key:"off",value:function(f,m){this.map.off(CQ[f]||f,m),this.eventEmitter.off(f,m)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();var f=this.map.transform;return[f.width,f.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(f){return this.map.setZoom(f)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(f){this.map.setCenter(f)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(f){this.map.setBearing(f)}},{key:"zoomIn",value:function(f,m){this.map.zoomIn(f,m)}},{key:"zoomOut",value:function(f,m){this.map.zoomOut(f,m)}},{key:"setPitch",value:function(f){return this.map.setPitch(f)}},{key:"panTo",value:function(f){this.map.panTo(f)}},{key:"panBy",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([f,m])}},{key:"fitBounds",value:function(f,m){this.map.fitBounds(f,m)}},{key:"setMaxZoom",value:function(f){this.map.setMaxZoom(f)}},{key:"setMinZoom",value:function(f){this.map.setMinZoom(f)}},{key:"setMapStatus",value:function(f){f.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),f.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),f.dragEnable===!1&&this.map.dragPan.disable(),f.dragEnable===!0&&this.map.dragPan.enable(),f.rotateEnable===!1&&this.map.dragRotate.disable(),f.dragEnable===!0&&this.map.dragRotate.enable(),f.keyboardEnable===!1&&this.map.keyboard.disable(),f.keyboardEnable===!0&&this.map.keyboard.enable(),f.zoomEnable===!1&&this.map.scrollZoom.disable(),f.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(f,m){this.map.flyTo({zoom:f,center:m})}},{key:"setMapStyle",value:function(f){this.map.setStyle(this.getMapStyleValue(f))}},{key:"meterToCoord",value:function(f,m){return 1}},{key:"pixelToLngLat",value:function(f){return this.map.unproject(f)}},{key:"lngLatToPixel",value:function(f){return this.map.project(f)}},{key:"containerToLngLat",value:function(f){return this.map.unproject(f)}},{key:"lngLatToContainer",value:function(f){return this.map.project(f)}},{key:"getMapStyle",value:function(){try{var f,m=(f=this.map.getStyle().sprite)!==null&&f!==void 0?f:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(m)?m==null?void 0:m.replace(/\/\w+$/,"").replace(/sprites/,"styles"):m}catch(d){return""}}},{key:"getMapStyleConfig",value:function(){return _ae}},{key:"getMapStyleValue",value:function(f){var m;return(m=this.getMapStyleConfig()[f])!==null&&m!==void 0?m:f}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(f){for(var m,d=arguments.length,E=new Array(d>1?d-1:0),M=1;M1?d-1:0),M=1;Mbae&&m?this.coordinateSystemService.setCoordinateSystem(RS.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(RS.LNGLAT)}}]),i}(),ON=H(kL.prototype,"config",[lj],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z8=H(kL.prototype,"configService",[yQ],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wQ=H(kL.prototype,"coordinateSystemService",[_Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r$=H(kL.prototype,"eventEmitter",[bQ],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kL))||xQ);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var QO=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(QO||{}),tO={key:"",BMapGL:{version:"1.0"}},eR={BMapGL:QO.notload},xB=[],cG=function(v){if(typeof v=="function"){if(eR.BMapGL===QO.loaded){v(window.BMapGL);return}xB.push(v)}},z4=function(v){return new Promise(function(f,m){if(eR.BMapGL===QO.failed)m("");else if(eR.BMapGL===QO.notload){var d=v.key,E=v.version;if(!d){m("\u8BF7\u586B\u5199key");return}tO.key=d,tO.BMapGL.version=E||tO.BMapGL.version,eR.BMapGL=QO.loading;var M=document.body||document.head;window.___onBMapGLAPILoaded=function(J){if(delete window.___onBMapGLAPILoaded,J)eR.BMapGL=QO.failed,m(J);else for(eR.BMapGL=QO.loaded;xB.length;)xB.splice(0,1)[0](window.BMapGL)};var B=document.createElement("script");B.type="text/javascript",B.src="https://api.map.baidu.com/api?type=webgl&v=".concat(tO.BMapGL.version,"&ak=").concat(tO.key,"&callback=___onBMapGLAPILoaded"),B.onerror=function(J){eR.BMapGL=QO.failed,m(J)},M.appendChild(B),cG(f)}else if(eR.BMapGL===QO.loaded){if(v.key&&v.key!==tO.key){m("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(v.version&&v.version!==tO.BMapGL.version){m("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}f(window.BMapGL)}else{if(v.key&&v.key!==tO.key){m("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(v.version&&v.version!==tO.BMapGL.version){m("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}cG(f)}})},dG=function(){delete window.BMapGL,tO={key:"",BMapGL:{version:"1.0"}},eR={BMapGL:QO.notload}},SQ={load:z4,reset:dG},EQ=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function xae(i){var v=wae();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function wae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function Cae(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}Cae(`.BMap_cpyCtrl .anchorBL { +`);var tz=[108.92361,34.54083];window.forceWebGL=!0;var nz="f59bcf249433f8b05caaee19f349b3d7",rz="2.0",qL=!1,tG=null,nG=(ez=(0,xr.b2)(),ez(rR=function(i){(0,ze.Z)(l,i);var d=o6(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;yp.getLng()||w.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=this.map.customCoords.lngLatToCoord(a),V=Nu();return c0(V,V,Km(O[0],O[1],p)),Xg(V,V,Km(w[0],w[1],w[2])),i0(V,V,y[0]),Ps(V,V,y[1]),kv(V,V,y[2]),V}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts,Qs,Fs,Us,Sa,dl,fu,iu;return mo().wrap(function(Nc){for(;;)switch(Nc.prev=Nc.next){case 0:if(y=this.config,w=y.id,O=y.style,V=O===void 0?"light":O,he=y.minZoom,be=he===void 0?0:he,ut=y.maxZoom,Pt=ut===void 0?24:ut,qt=y.token,En=qt===void 0?nz:qt,qn=y.mapInstance,Zr=y.plugin,Si=Zr===void 0?[]:Zr,to=y.version,ts=to===void 0?rz:to,Qs=(0,W0.Z)(y,QH),this.viewport=new JH,window.AMap||qn){Nc.next=6;break}return Si.push("Map3D"),Nc.next=6,k9().load({key:En,version:rz,plugins:Si});case 6:qn?(this.map=qn,this.$mapContainer=this.map.getContainer(),Us=this.map.getCenter(),(Fs=this.map.customCoords)===null||Fs===void 0||Fs.setCenter([Us.lng,Us.lat]),this.setCustomCoordCenter([Us.lng,Us.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(w),dl=(0,Xe.Z)({mapStyle:this.getMapStyleValue(V),zooms:[be,Pt],viewMode:"3D"},Qs),dl.zoom&&(dl.zoom+=1),En===nz&&(window._AMapSecurityConfig={securityJsCode:"2653011adeb04230b3a26cc9a780a800"},console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;")),fu=new AMap.Map(this.$mapContainer,dl),this.map=fu,iu=fu.getCenter(),(Sa=this.map.customCoords)===null||Sa===void 0||Sa.setCenter([iu.lng,iu.lat]),this.setCustomCoordCenter([iu.lng,iu.lat]),fu.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return Nc.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(a){this.cameraChangedCallback=a}},{key:"initViewPort",value:function(){var a,p=((a=this.map.customCoords)===null||a===void 0?void 0:a.getCameraParams())||{},y=p.fov,w=p.near,O=p.far,V=p.aspect,he=p.position,be=p.lookAt,ut=p.up;this.emit("mapchange");var Pt=this.map.customCoords.getCenter(),qt=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:V,far:O,fov:y,cameraPosition:he,lookAt:be,near:w,up:ut,zoom:qt-1,center:Pt,offsetOrigin:[he[0],he[1]]}),this.coordinateSystemService.setCoordinateSystem(Df.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(a,p){var y=[0,0];return y[0]=a[0]-p[0],y[1]=a[1]-p[1],y}}]),l}(X9))||rR);function rG(i){var d=iG();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function iG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var iz=function(i){(0,ze.Z)(l,i);var d=rG(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return nG}}]),l}(HC),oG={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},oz,iR,sz,az,lz,uz,Mb,LE,NT,cz,JL,hz={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},sG=12,cS=(oz=(0,xr.b2)(),iR=(0,xr.f3)(In.MapConfig),sz=(0,xr.f3)(In.IGlobalConfigService),az=(0,xr.f3)(In.ICoordinateSystemService),lz=(0,xr.f3)(In.IEventEmitter),oz(uz=(Mb=function(){function i(){var d=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"version","DEFAUlTMAP"),(0,pn.Z)(this,"simpleMapCoord",new $9),(0,pn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),F(this,"config",LE,this),F(this,"configService",NT,this),F(this,"coordinateSystemService",cz,this),F(this,"eventEmitter",JL,this),(0,pn.Z)(this,"handleCameraChanged",function(l){var c=d.map.getCenter(),a=c.lat,p=c.lng;d.emit("mapchange"),d.viewport.syncWithMapCamera({bearing:d.map.getBearing(),center:[p,a],viewportHeight:d.map.transform.height,pitch:d.map.getPitch(),viewportWidth:d.map.transform.width,zoom:d.map.getZoom(),cameraHeight:0}),d.updateCoordinateSystemService(),d.cameraChangedCallback(d.viewport)})}return(0,Te.Z)(i,[{key:"setBgColor",value:function(l){this.bgColor=l}},{key:"addMarkerContainer",value:function(){var l=this.map.getCanvasContainer();this.markerContainer=va("div","l7-marker-container",l),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(l,c){R1.indexOf(l)!==-1?this.eventEmitter.on(l,c):this.map.on(hz[l]||l,c)}},{key:"off",value:function(l,c){this.map.off(hz[l]||l,c),this.eventEmitter.off(l,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version==="SIMPLE")return this.simpleMapCoord.getSize();var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(l){return this.map.setZoom(l)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(l){this.map.setCenter(l)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(l){this.map.setBearing(l)}},{key:"zoomIn",value:function(l,c){this.map.zoomIn(l,c)}},{key:"zoomOut",value:function(l,c){this.map.zoomOut(l,c)}},{key:"setPitch",value:function(l){return this.map.setPitch(l)}},{key:"panTo",value:function(l){this.map.panTo(l)}},{key:"panBy",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([l,c])}},{key:"fitBounds",value:function(l,c){this.map.fitBounds(l,c)}},{key:"setMaxZoom",value:function(l){this.map.setMaxZoom(l)}},{key:"setMinZoom",value:function(l){this.map.setMinZoom(l)}},{key:"setMapStatus",value:function(l){l.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),l.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),l.dragEnable===!1&&this.map.dragPan.disable(),l.dragEnable===!0&&this.map.dragPan.enable(),l.rotateEnable===!1&&this.map.dragRotate.disable(),l.dragEnable===!0&&this.map.dragRotate.enable(),l.keyboardEnable===!1&&this.map.keyboard.disable(),l.keyboardEnable===!0&&this.map.keyboard.enable(),l.zoomEnable===!1&&this.map.scrollZoom.disable(),l.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(l,c){this.map.flyTo({zoom:l,center:c})}},{key:"setMapStyle",value:function(l){this.map.setStyle(this.getMapStyleValue(l))}},{key:"meterToCoord",value:function(l,c){return 1}},{key:"pixelToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToPixel",value:function(l){return this.map.project(l)}},{key:"containerToLngLat",value:function(l){return this.map.unproject(l)}},{key:"lngLatToContainer",value:function(l){return this.map.project(l)}},{key:"getMapStyle",value:function(){try{var l,c=(l=this.map.getStyle().sprite)!==null&&l!==void 0?l:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(a){return""}}},{key:"getMapStyleConfig",value:function(){return oG}},{key:"getMapStyleValue",value:function(l){var c;return(c=this.getMapStyleConfig()[l])!==null&&c!==void 0?c:l}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var c,a=arguments.length,p=new Array(a>1?a-1:0),y=1;y1?a-1:0),y=1;ysG&&c?this.coordinateSystemService.setCoordinateSystem(Df.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Df.LNGLAT)}}]),i}(),LE=I(Mb.prototype,"config",[iR],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),NT=I(Mb.prototype,"configService",[sz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cz=I(Mb.prototype,"coordinateSystemService",[az],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),JL=I(Mb.prototype,"eventEmitter",[lz],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mb))||uz);if(!window)throw Error("BMapGL JSAPI can only be used in Browser.");var XC=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(XC||{}),Jx={key:"",BMapGL:{version:"1.0"}},YC={BMapGL:XC.notload},yI=[],s6=function(d){if(typeof d=="function"){if(YC.BMapGL===XC.loaded){d(window.BMapGL);return}yI.push(d)}},Oy=function(d){return new Promise(function(l,c){if(YC.BMapGL===XC.failed)c("");else if(YC.BMapGL===XC.notload){var a=d.key,p=d.version;if(!a){c("\u8BF7\u586B\u5199key");return}Jx.key=a,Jx.BMapGL.version=p||Jx.BMapGL.version,YC.BMapGL=XC.loading;var y=document.body||document.head;window.___onBMapGLAPILoaded=function(O){if(delete window.___onBMapGLAPILoaded,O)YC.BMapGL=XC.failed,c(O);else for(YC.BMapGL=XC.loaded;yI.length;)yI.splice(0,1)[0](window.BMapGL)};var w=document.createElement("script");w.type="text/javascript",w.src="https://api.map.baidu.com/api?type=webgl&v=".concat(Jx.BMapGL.version,"&ak=").concat(Jx.key,"&callback=___onBMapGLAPILoaded"),w.onerror=function(O){YC.BMapGL=XC.failed,c(O)},y.appendChild(w),s6(l)}else if(YC.BMapGL===XC.loaded){if(d.key&&d.key!==Jx.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Jx.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}l(window.BMapGL)}else{if(d.key&&d.key!==Jx.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(d.version&&d.version!==Jx.BMapGL.version){c("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}s6(l)}})},a6=function(){delete window.BMapGL,Jx={key:"",BMapGL:{version:"1.0"}},YC={BMapGL:XC.notload}},dz={load:Oy,reset:a6},fz=["id","center","zoom","token","mapInstance","version","mapSize","minZoom","maxZoom"];function aG(i){var d=lG();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function lG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function uG(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}uG(`.BMap_cpyCtrl .anchorBL { display: none !important; } .anchorBL { display: none !important; } -`);var TQ={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},i$="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",AQ="1.0",Sae=function(i){(0,Ht.Z)(f,i);var v=xae(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.viewport.projectFlat(d),ue=Jx();return h3(ue,ue,YA(J[0],J[1],E)),QT(ue,ue,YA(B[0],B[1],B[2])),a3(ue,ue,M[0]),X1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(d){var E=this.getMap()._webglPainter._canvas,M=d==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}},{key:"hideLogo",value:function(){var d=this.map.getContainer();d&&K1(d,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(d){var E=d.style,M=d.pitch,B=M===void 0?0:M,J=d.rotation,ue=J===void 0?0:J,Ze=d.logoVisible,st=Ze===void 0?!0:Ze;E&&this.setMapStyle(E),B&&this.setPitch(B),ue&&this.setRotation(ue),st===!1&&this.hideLogo()}}]),f}(pk);function Eae(i){var v=DQ();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function DQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var uj=function(i){(0,Ht.Z)(f,i);var v=Eae(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return Sae}}]),f}(YO),hG=l(58240),Tae=l.n(hG);function Aae(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=ype(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function ype(i,v){if(i){if(typeof i=="string")return IQ(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return IQ(i,v)}}function IQ(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f1?v-1:0),m=1;m90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,gt.Z)(i,[{key:"wrap",value:function(){return new i(iL(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(f){var m=Math.PI/180,d=this.lat*m,E=f.lat*m,M=Math.sin(d)*Math.sin(E)+Math.cos(d)*Math.cos(E)*Math.cos((f.lng-this.lng)*m),B=mP*Math.acos(Math.min(M,1));return B}}],[{key:"convert",value:function(f){if(f instanceof i)return f;if(Array.isArray(f)&&(f.length===2||f.length===3))return new i(Number(f[0]),Number(f[1]));if(!Array.isArray(f)&&(0,Ww.Z)(f)==="object"&&f!==null){var m="lng"in f?f.lng:f.lon;return new i(Number(m),Number(f.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),i}(),a$=function(){function i(v,f){(0,Zr.Z)(this,i),v&&(f?this.setSouthWest(v).setNorthEast(f):v.length===4?this.setSouthWest([v[0],v[1]]).setNorthEast([v[2],v[3]]):this.setSouthWest(v[0]).setNorthEast(v[1]))}return(0,gt.Z)(i,[{key:"setNorthEast",value:function(f){return this.ne=f instanceof CD?new CD(f.lng,f.lat):CD.convert(f),this}},{key:"setSouthWest",value:function(f){return this.sw=f instanceof CD?new CD(f.lng,f.lat):CD.convert(f),this}},{key:"extend",value:function(f){var m=this.sw,d=this.ne,E,M;if(f instanceof CD)E=f,M=f;else if(f instanceof i){if(E=f.sw,M=f.ne,!E||!M)return this}else{if(Array.isArray(f))if(f.length===4||f.every(Array.isArray)){var B=f;return this.extend(i.convert(B))}else{var J=f;return this.extend(CD.convert(J))}return this}return!m&&!d?(this.sw=new CD(E.lng,E.lat),this.ne=new CD(M.lng,M.lat)):(m.lng=Math.min(E.lng,m.lng),m.lat=Math.min(E.lat,m.lat),d.lng=Math.max(M.lng,d.lng),d.lat=Math.max(M.lat,d.lat)),this}},{key:"getCenter",value:function(){return new CD((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new CD(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new CD(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(f){var m=CD.convert(f),d=m.lng,E=m.lat,M=this.sw.lat<=E&&E<=this.ne.lat,B=this.sw.lng<=d&&d<=this.ne.lng;return this.sw.lng>this.ne.lng&&(B=this.sw.lng>=d&&d>=this.ne.lng),M&&B}}],[{key:"convert",value:function(f){return f instanceof i?f:new i(f)}}]),i}(),O3=function(){function i(v,f){(0,Zr.Z)(this,i),this.x=v,this.y=f}return(0,gt.Z)(i,[{key:"clone",value:function(){return new i(this.x,this.y)}},{key:"_add",value:function(f){return this.x+=f.x,this.y+=f.y,this}},{key:"add",value:function(f){return this.clone()._add(f)}},{key:"_sub",value:function(f){return this.x-=f.x,this.y-=f.y,this}},{key:"sub",value:function(f){return this.clone()._sub(f)}},{key:"_multByPoint",value:function(f){return this.x*=f.x,this.y*=f.y,this}},{key:"multByPoint",value:function(f){return this.clone()._multByPoint(f)}},{key:"_divByPoint",value:function(f){return this.x/=f.x,this.y/=f.y,this}},{key:"divByPoint",value:function(f){return this.clone()._divByPoint(f)}},{key:"_mult",value:function(f){return this.x*=f,this.y*=f,this}},{key:"mult",value:function(f){return this.clone()._mult(f)}},{key:"_div",value:function(f){return this.x/=f,this.y/=f,this}},{key:"div",value:function(f){return this.clone()._div(f)}},{key:"_rotate",value:function(f){var m=Math.cos(f),d=Math.sin(f),E=m*this.x-d*this.y,M=d*this.x+m*this.y;return this.x=E,this.y=M,this}},{key:"rotate",value:function(f){return this.clone()._rotate(f)}},{key:"_rotateAround",value:function(f,m){var d=Math.cos(f),E=Math.sin(f),M=m.x+d*(this.x-m.x)-E*(this.y-m.y),B=m.y+E*(this.x-m.x)+d*(this.y-m.y);return this.x=M,this.y=B,this}},{key:"roateAround",value:function(f,m){return this.clone()._rotateAround(f,m)}},{key:"_matMult",value:function(f){var m=f[0]*this.x+f[1]*this.y,d=f[2]*this.x+f[3]*this.y;return this.x=m,this.y=d,this}},{key:"matMult",value:function(f){return this.clone()._matMult(f)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var f=this.y;return this.y=this.x,this.x=-f,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(f){return this.x===f.x&&this.y===f.y}},{key:"dist",value:function(f){return Math.sqrt(this.distSqr(f))}},{key:"distSqr",value:function(f){var m=f.x-this.x,d=f.y-this.y;return m*m+d*d}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(f){return Math.atan2(this.y-f.y,this.x-f.x)}},{key:"angleWith",value:function(f){return this.angleWithSep(f.x,f.y)}},{key:"angleWithSep",value:function(f,m){return Math.atan2(this.x*m-this.y*f,this.x*f+this.y*m)}}],[{key:"convert",value:function(f){return f instanceof i?f:Array.isArray(f)?new i(f[0],f[1]):f}}]),i}();function cj(){var i=new GE(4);return GE!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i}function _pe(i){var v=new glMatrix.ARRAY_TYPE(4);return v[0]=i[0],v[1]=i[1],v[2]=i[2],v[3]=i[3],v}function Iae(i,v){return i[0]=v[0],i[1]=v[1],i[2]=v[2],i[3]=v[3],i}function Pae(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i}function bpe(i,v,f,m){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=i,d[1]=v,d[2]=f,d[3]=m,d}function xpe(i,v,f,m,d){return i[0]=v,i[1]=f,i[2]=m,i[3]=d,i}function r1e(i,v){if(i===v){var f=v[1];i[1]=v[2],i[2]=f}else i[0]=v[0],i[1]=v[2],i[2]=v[1],i[3]=v[3];return i}function i1e(i,v){var f=v[0],m=v[1],d=v[2],E=v[3],M=f*E-d*m;return M?(M=1/M,i[0]=E*M,i[1]=-m*M,i[2]=-d*M,i[3]=f*M,i):null}function o1e(i,v){var f=v[0];return i[0]=v[3],i[1]=-v[1],i[2]=-v[2],i[3]=f,i}function s1e(i){return i[0]*i[3]-i[2]*i[1]}function mG(i,v,f){var m=v[0],d=v[1],E=v[2],M=v[3],B=f[0],J=f[1],ue=f[2],Ze=f[3];return i[0]=m*B+E*J,i[1]=d*B+M*J,i[2]=m*ue+E*Ze,i[3]=d*ue+M*Ze,i}function wpe(i,v,f){var m=v[0],d=v[1],E=v[2],M=v[3],B=Math.sin(f),J=Math.cos(f);return i[0]=m*J+E*B,i[1]=d*J+M*B,i[2]=m*-B+E*J,i[3]=d*-B+M*J,i}function a1e(i,v,f){var m=v[0],d=v[1],E=v[2],M=v[3],B=f[0],J=f[1];return i[0]=m*B,i[1]=d*B,i[2]=E*J,i[3]=M*J,i}function l1e(i,v){var f=Math.sin(v),m=Math.cos(v);return i[0]=m,i[1]=f,i[2]=-f,i[3]=m,i}function u1e(i,v){return i[0]=v[0],i[1]=0,i[2]=0,i[3]=v[1],i}function RN(i){return"mat2("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}function Lae(i){return Math.hypot(i[0],i[1],i[2],i[3])}function Mae(i,v,f,m){return i[2]=m[2]/m[0],f[0]=m[0],f[1]=m[1],f[3]=m[3]-i[2]*f[1],[i,v,f]}function Cpe(i,v,f){return i[0]=v[0]+f[0],i[1]=v[1]+f[1],i[2]=v[2]+f[2],i[3]=v[3]+f[3],i}function Spe(i,v,f){return i[0]=v[0]-f[0],i[1]=v[1]-f[1],i[2]=v[2]-f[2],i[3]=v[3]-f[3],i}function Epe(i,v){return i[0]===v[0]&&i[1]===v[1]&&i[2]===v[2]&&i[3]===v[3]}function Tpe(i,v){var f=i[0],m=i[1],d=i[2],E=i[3],M=v[0],B=v[1],J=v[2],ue=v[3];return Math.abs(f-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(m-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))&&Math.abs(d-J)<=glMatrix.EPSILON*Math.max(1,Math.abs(d),Math.abs(J))&&Math.abs(E-ue)<=glMatrix.EPSILON*Math.max(1,Math.abs(E),Math.abs(ue))}function Ape(i,v,f){return i[0]=v[0]*f,i[1]=v[1]*f,i[2]=v[2]*f,i[3]=v[3]*f,i}function Oae(i,v,f,m){return i[0]=v[0]+f[0]*m,i[1]=v[1]+f[1]*m,i[2]=v[2]+f[2]*m,i[3]=v[3]+f[3]*m,i}var Dpe=null,Ipe=null,gk=function(){function i(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,Zr.Z)(this,i),isNaN(v)||v<0||isNaN(f)||f<0||isNaN(m)||m<0||isNaN(d)||d<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=v,this.bottom=f,this.left=m,this.right=d}return(0,gt.Z)(i,[{key:"interpolate",value:function(f,m,d){return m.top!=null&&f.top!=null&&(this.top=nO(f.top,m.top,d)),m.bottom!=null&&f.bottom!=null&&(this.bottom=nO(f.bottom,m.bottom,d)),m.left!=null&&f.left!=null&&(this.left=nO(f.left,m.left,d)),m.right!=null&&f.right!=null&&(this.right=nO(f.right,m.right,d)),this}},{key:"getCenter",value:function(f,m){var d=o5((this.left+f-this.right)/2,0,f),E=o5((this.top+m-this.bottom)/2,0,m);return new O3(d,E)}},{key:"equals",value:function(f){return this.top===f.top&&this.bottom===f.bottom&&this.left===f.left&&this.right===f.right}},{key:"clone",value:function(){return new i(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),i}(),l$=2*Math.PI*mP;function vG(i){return l$*Math.cos(i*Math.PI/180)}function kN(i){return(180+i)/360}function dj(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function MQ(i,v){return i/vG(v)}function hj(i){return i*360-180}function yG(i){var v=180-i*360;return 360/Math.PI*Math.atan(Math.exp(v*Math.PI/180))-90}function u$(i,v){return i*vG(yG(v))}function Rae(i){return 1/Math.cos(i*Math.PI/180)}var mk=function(){function i(v,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,Zr.Z)(this,i),this.x=+v,this.y=+f,this.z=+m}return(0,gt.Z)(i,[{key:"toLngLat",value:function(){return new CD(hj(this.x),yG(this.y))}},{key:"toAltitude",value:function(){return u$(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/l$*Rae(yG(this.y))}}],[{key:"fromLngLat",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=CD.convert(f);return new i(kN(d.lng),dj(d.lat),MQ(m,d.lat))}}]),i}();function kae(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=OQ(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function OQ(i,v){if(i){if(typeof i=="string")return _G(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _G(i,v)}}function _G(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fm&&(ue=m-em)}if(this.lngRange){var B0=Ta.x,vv=Ze.x/2;B0-vvE&&(J=E-vv)}(J!==void 0||ue!==void 0)&&(this.center=this.unproject(new O3(J!==void 0?J:Ta.x,ue!==void 0?ue:Ta.y))),this.unmodified=st,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var f=this._fov/2,m=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(f)*this.height;var d=Math.PI/2+this._pitch,E=this._fov*(.5+m.y/this.height),M=Math.sin(E)*this.cameraToCenterDistance/Math.sin(o5(Math.PI-d-E,.01,Math.PI-.01)),B=this.point,J=B.x,ue=B.y,Ze=Math.cos(Math.PI/2-this._pitch)*M+this.cameraToCenterDistance,st=Ze*1.01,Fr=this.height/50,Go=new Float64Array(16);U0(Go,this._fov,this.width/this.height,Fr,st),Go[8]=-m.x*2/this.width,Go[9]=m.y*2/this.height,QT(Go,Go,[1,-1,1]),h3(Go,Go,[0,0,-this.cameraToCenterDistance]),a3(Go,Go,this._pitch),zD(Go,Go,this.angle),h3(Go,Go,[-J,-ue,0]),this.mercatorMatrix=QT([],Go,[this.worldSize,this.worldSize,this.worldSize]),QT(Go,Go,[1,1,MQ(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Go,this.invProjMatrix=nT([],this.projMatrix);var Ta=this.width%2/2,eu=this.height%2/2,kd=Math.cos(this.angle),em=Math.sin(this.angle),B0=J-Math.round(J)+kd*Ta+em*eu,vv=ue-Math.round(ue)+kd*eu+em*Ta,y1=new Float64Array(Go);if(h3(y1,y1,[B0>.5?B0-1:B0,vv>.5?vv-1:vv,0]),this.alignedProjMatrix=y1,Go=Jx(),QT(Go,Go,[this.width/2,-this.height/2,1]),h3(Go,Go,[1,-1,0]),this.labelPlaneMatrix=Go,Go=Jx(),QT(Go,Go,[1,-1,1]),h3(Go,Go,[-1,-1,0]),QT(Go,Go,[2/this.width,2/this.height,1]),this.glCoordMatrix=Go,this.pixelMatrix=AS(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Go=nT(new Float64Array(16),this.pixelMatrix),!Go)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Go,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),i}(),Bae=Qv.merge,V3=(0,gt.Z)(function i(v){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,Zr.Z)(this,i),Bae(this,f),this.type=v});function zae(i){var v=RQ();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function RQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var tR=Qv.merge,kQ=function(i){(0,Ht.Z)(f,i);var v=zae(f);function f(m){var d;(0,Zr.Z)(this,f),d=v.call(this),(0,Na.Z)((0,mv.Z)(d),"renderFrameCallback",function(){var Ze=Math.min((s5()-d.easeStart)/d.easeOptions.duration,1);d.onEaseFrame(d.easeOptions.easing(Ze)),Ze<1?d.easeFrameId=d.requestRenderFrame(d.renderFrameCallback):d.stop()}),d.options=m;var E=m.minZoom,M=m.maxZoom,B=m.minPitch,J=m.maxPitch,ue=m.renderWorldCopies;return d.moving=!1,d.zooming=!1,d.bearingSnap=m.bearingSnap,d.pitchEnabled=m.pitchEnabled,d.rotateEnabled=m.rotateEnabled,d.transform=new Fae(E,M,B,J,ue),d}return(0,gt.Z)(f,[{key:"requestRenderFrame",value:function(d){return 0}},{key:"cancelRenderFrame",value:function(d){}},{key:"getCenter",value:function(){var d=this.transform.center,E=d.lng,M=d.lat;return new CD(E,M)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(d,E){return this.jumpTo({center:d},E)}},{key:"setPitch",value:function(d,E){return this.jumpTo({pitch:d},E),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(d,E,M){return this.easeTo(tR({center:d},E),M)}},{key:"panBy",value:function(d,E,M){return d=O3.convert(d).mult(-1),this.panTo(this.transform.center,LQ({offset:d},E||{}),M)}},{key:"zoomOut",value:function(d,E){return this.zoomTo(this.getZoom()-1,d,E),this}},{key:"setBearing",value:function(d,E){return this.jumpTo({bearing:d},E),this}},{key:"setZoom",value:function(d,E){return this.jumpTo({zoom:d},E),this}},{key:"zoomIn",value:function(d,E){return this.zoomTo(this.getZoom()+1,d,E),this}},{key:"zoomTo",value:function(d,E,M){return this.easeTo(tR({zoom:d},E),M)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(d,E){return this.jumpTo({padding:d},E),this}},{key:"rotateTo",value:function(d,E,M){return this.easeTo(tR({bearing:d},E),M)}},{key:"resetNorth",value:function(d,E){return this.rotateTo(0,tR({duration:1e3},d),E),this}},{key:"resetNorthPitch",value:function(d,E){return this.easeTo(tR({bearing:0,pitch:0,duration:1e3},d),E),this}},{key:"fitBounds",value:function(d,E,M){return this.fitInternal(this.cameraForBounds(d,E),E,M)}},{key:"cameraForBounds",value:function(d,E){return d=a$.convert(d),this.cameraForBoxAndBearing(d.getNorthWest(),d.getSouthEast(),0,E)}},{key:"snapToNorth",value:function(d,E){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1?arguments[1]:void 0;this.stop();var M=this.transform,B=!1,J=!1,ue=!1;return d.zoom!==void 0&&M.zoom!==+d.zoom&&(B=!0,M.zoom=+d.zoom),d.center!==void 0&&(M.center=CD.convert(d.center)),d.bearing!==void 0&&M.bearing!==+d.bearing&&(J=!0,M.bearing=+d.bearing),d.pitch!==void 0&&M.pitch!==+d.pitch&&(ue=!0,M.pitch=+d.pitch),d.padding!==void 0&&!M.isPaddingEqual(d.padding)&&(M.padding=d.padding),this.emit("movestart",new V3("movestart",E)),this.emit("move",new V3("move",E)),B&&(this.emit("zoomstart",new V3("zoomstart",E)),this.emit("zoom",new V3("zoom",E)),this.emit("zoomend",new V3("zoomend",E))),J&&(this.emit("rotatestart",new V3("rotatestart",E)),this.emit("rotate",new V3("rotate",E)),this.emit("rotateend",new V3("rotateend",E))),ue&&(this.emit("pitchstart",new V3("pitchstart",E)),this.emit("pitch",new V3("pitch",E)),this.emit("pitchend",new V3("pitchend",E))),this.emit("moveend",new V3("moveend",E))}},{key:"easeTo",value:function(){var d=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1?arguments[1]:void 0;E=tR({offset:[0,0],duration:500,easing:pG},E),(E.animate===!1||!E.essential&&$8())&&(E.duration=0);var B=this.transform,J=this.getZoom(),ue=this.getBearing(),Ze=this.getPitch(),st=this.getPadding(),Fr=E.zoom?+E.zoom:J,Go=E.bearing?this.normalizeBearing(E.bearing,ue):ue,Ta=E.pitch?+E.pitch:Ze,eu=E.padding?E.padding:B.padding,kd=O3.convert(E.offset),em=B.centerPoint.add(kd),B0=B.pointLocation(em),vv=CD.convert(E.center||B0);this.normalizeCenter(vv);var y1=B.project(B0),fy=B.project(vv).sub(y1),J1=B.zoomScale(Fr-J),ey,Fy;E.around&&(ey=CD.convert(E.around),Fy=B.locationPoint(ey));var C_={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||Fr!==J,this.rotating=this.rotating||ue!==Go,this.pitching=this.pitching||Ta!==Ze,this.padding=!B.isPaddingEqual(eu),this.easeId=E.easeId,this.prepareEase(M,E.noMoveStart,C_),clearTimeout(this.easeEndTimeoutID),this.ease(function(yx){if(d.zooming&&(B.zoom=nO(J,Fr,yx)),d.rotating&&d.rotateEnabled&&(B.bearing=nO(ue,Go,yx)),d.pitching&&d.pitchEnabled&&(B.pitch=nO(Ze,Ta,yx)),d.padding&&(B.interpolatePadding(st,eu,yx),em=B.centerPoint.add(kd)),ey)B.setLocationAtPoint(ey,Fy);else{var ux=B.zoomScale(B.zoom-J),h2=Fr>J?Math.min(2,J1):Math.max(.5,J1),V2=Math.pow(h2,1-yx),aw=B.unproject(y1.add(fy.mult(yx*V2)).mult(ux));B.setLocationAtPoint(B.renderWorldCopies?aw.wrap():aw,em)}d.fireMoveEvents(M)},function(yx){d.afterEase(M,yx)},E),this}},{key:"flyTo",value:function(){var d=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1?arguments[1]:void 0;if(!E.essential&&$8()){var B=gG(E,["center","zoom","bearing","pitch","around"]);return this.jumpTo(B,M)}this.stop(),E=tR({offset:[0,0],speed:1.2,curve:1.42,easing:pG},E);var J=this.transform,ue=this.getZoom(),Ze=this.getBearing(),st=this.getPitch(),Fr=this.getPadding(),Go=E.zoom?o5(+E.zoom,J.minZoom,J.maxZoom):ue,Ta=E.bearing?this.normalizeBearing(E.bearing,Ze):Ze,eu=E.pitch?+E.pitch:st,kd="padding"in E?E.padding:J.padding,em=J.zoomScale(Go-ue),B0=O3.convert(E.offset),vv=J.centerPoint.add(B0),y1=J.pointLocation(vv),fy=CD.convert(E.center||y1);this.normalizeCenter(fy);var J1=J.project(y1),ey=J.project(fy).sub(J1),Fy=E.curve,C_=Math.max(J.width,J.height),yx=C_/em,ux=ey.mag();if("minZoom"in E){var h2=o5(Math.min(E.minZoom,ue,Go),J.minZoom,J.maxZoom),V2=C_/J.zoomScale(h2-ue);Fy=Math.sqrt(V2/ux*2)}var aw=Fy*Fy;function XE(FD){var hL=(yx*yx-C_*C_+(FD?-1:1)*aw*aw*ux*ux)/(2*(FD?yx:C_)*aw*ux);return Math.log(Math.sqrt(hL*hL+1)-hL)}function mT(FD){return(Math.exp(FD)-Math.exp(-FD))/2}function qT(FD){return(Math.exp(FD)+Math.exp(-FD))/2}function j3(FD){return mT(FD)/qT(FD)}var fA=XE(0),hI=function(hL){return qT(fA)/qT(fA+Fy*hL)},_R=function(hL){return C_*((qT(fA)*j3(fA+Fy*hL)-mT(fA))/aw)/ux},Ak=(XE(1)-fA)/Fy;if(Math.abs(ux)<1e-6||!isFinite(Ak)){if(Math.abs(C_-yx)<1e-6)return this.easeTo(E,M);var XB=yxE.maxDuration&&(E.duration=0),this.zooming=!0,this.rotating=Ze!==Ta,this.pitching=eu!==st,this.padding=!J.isPaddingEqual(kd),this.prepareEase(M,!1),this.ease(function(FD){var hL=FD*Ak,gW=1/hI(hL);J.zoom=FD===1?Go:ue+J.scaleZoom(gW),d.rotating&&(J.bearing=nO(Ze,Ta,FD)),d.pitching&&(J.pitch=nO(st,eu,FD)),d.padding&&(J.interpolatePadding(Fr,kd,FD),vv=J.centerPoint.add(B0));var mW=FD===1?fy:J.unproject(J1.add(ey.mult(_R(hL))).mult(gW));J.setLocationAtPoint(J.renderWorldCopies?mW.wrap():mW,vv),d.fireMoveEvents(M)},function(){return d.afterEase(M)},E),this}},{key:"fitScreenCoordinates",value:function(d,E,M,B,J){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(O3.convert(d)),this.transform.pointLocation(O3.convert(E)),M,B),B,J)}},{key:"stop",value:function(d,E){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var M=this.onEaseEnd;delete this.onEaseEnd,M.call(this,E)}return this}},{key:"normalizeBearing",value:function(d,E){d=iL(d,-180,180);var M=Math.abs(d-E);return Math.abs(d-360-E)180?-360:M<-180?360:0}}},{key:"fireMoveEvents",value:function(d){this.emit("move",new V3("move",d)),this.zooming&&this.emit("zoom",new V3("zoom",d)),this.rotating&&this.emit("rotate",new V3("rotate",d)),this.pitching&&this.emit("rotate",new V3("pitch",d))}},{key:"prepareEase",value:function(d){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!E&&!M.moving&&this.emit("movestart",new V3("movestart",d)),this.zooming&&!M.zooming&&this.emit("zoomstart",new V3("zoomstart",d)),this.rotating&&!M.rotating&&this.emit("rotatestart",new V3("rotatestart",d)),this.pitching&&!M.pitching&&this.emit("pitchstart",new V3("pitchstart",d))}},{key:"afterEase",value:function(d,E){if(!(this.easeId&&E&&this.easeId===E)){delete this.easeId;var M=this.zooming,B=this.rotating,J=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,M&&this.emit("zoomend",new V3("zoomend",d)),B&&this.emit("rotateend",new V3("rotateend",d)),J&&this.emit("pitchend",new V3("pitchend",d)),this.emit("moveend",new V3("moveend",d))}}},{key:"ease",value:function(d,E,M){M.animate===!1||M.duration===0?(d(1),E()):(this.easeStart=s5(),this.easeOptions=M,this.onEaseFrame=d,this.onEaseEnd=E,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(d,E,M,B){var J={top:0,bottom:0,right:0,left:0};if(B=tR({padding:J,offset:[0,0],maxZoom:this.transform.maxZoom},B),typeof B.padding=="number"){var ue=B.padding;B.padding={top:ue,bottom:ue,right:ue,left:ue}}B.padding=tR(J,B.padding);var Ze=this.transform,st=Ze.padding,Fr=Ze.project(CD.convert(d)),Go=Ze.project(CD.convert(E)),Ta=Fr.rotate(-M*Math.PI/180),eu=Go.rotate(-M*Math.PI/180),kd=new O3(Math.max(Ta.x,eu.x),Math.max(Ta.y,eu.y)),em=new O3(Math.min(Ta.x,eu.x),Math.min(Ta.y,eu.y)),B0=kd.sub(em),vv=(Ze.width-(st.left+st.right+B.padding.left+B.padding.right))/B0.x,y1=(Ze.height-(st.top+st.bottom+B.padding.top+B.padding.bottom))/B0.y;if(!(y1<0||vv<0)){var fy=Math.min(Ze.scaleZoom(Ze.scale*Math.min(vv,y1)),B.maxZoom),J1=O3.convert(B.offset),ey=(B.padding.left-B.padding.right)/2,Fy=(B.padding.top-B.padding.bottom)/2,C_=new O3(J1.x+ey,J1.y+Fy),yx=C_.mult(Ze.scale/Ze.zoomScale(fy)),ux=Ze.unproject(Fr.add(Go).div(2).sub(yx));return{center:ux,zoom:fy,bearing:M}}}},{key:"fitInternal",value:function(d,E,M){return d?(E=tR(d,E),delete E.padding,E.linear?this.easeTo(E,M):this.flyTo(E,M)):this}}]),f}(O2.EventEmitter);function NQ(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=U8(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function U8(i,v){if(i){if(typeof i=="string")return NL(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return NL(i,v)}}function NL(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f3&&arguments[3]!==void 0?arguments[3]:{};"passive"in m&&_M?i.addEventListener(v,f,m):i.addEventListener(v,f,m.capture)},oL.removeEventListener=function(i,v,f){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in m&&_M?i.removeEventListener(v,f,m):i.removeEventListener(v,f,m.capture)};var CB=function i(v){v.preventDefault(),v.stopPropagation(),window.removeEventListener("click",i,!0)};oL.suppressClick=function(){window.addEventListener("click",CB,!0),setTimeout(function(){window.removeEventListener("click",CB,!0)},0)},oL.mousePos=function(i,v){var f=i.getBoundingClientRect();return new O3(v.clientX-f.left-i.clientLeft,v.clientY-f.top-i.clientTop)},oL.touchPos=function(i,v){var f=i.getBoundingClientRect(),m=[],d=NQ(v),E;try{for(d.s();!(E=d.n()).done;){var M=E.value;m.push(new O3(M.clientX-f.left-i.clientLeft,M.clientY-f.top-i.clientTop))}}catch(B){d.e(B)}finally{d.f()}return m},oL.mouseButton=function(i){return i.button},oL.remove=function(i){i.parentNode&&i.parentNode.removeChild(i)};function bG(i){var v=$ae();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function $ae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Uae=Qv.merge,vk=function(i){(0,Ht.Z)(f,i);var v=bG(f);function f(m,d,E){var M,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,Zr.Z)(this,f);var J=xI.mousePos(d.getCanvasContainer(),E),ue=d.unproject(J);return M=v.call(this,m,Uae({point:J,lngLat:ue,originalEvent:E},B)),M.defaultPrevented=!1,M.target=d,M}return(0,gt.Z)(f,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),f}(V3);function Vae(i){var v=xG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function xG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var fj=function(i){(0,Ht.Z)(f,i);var v=Vae(f);function f(m,d,E){var M;(0,Zr.Z)(this,f);var B=m==="touchend"?E.changedTouches:E.touches,J=xI.touchPos(d.getCanvasContainer(),B),ue=J.map(function(Fr){return d.unproject(Fr)}),Ze=J.reduce(function(Fr,Go,Ta,eu){return Fr.add(Go.div(eu.length))},new O3(0,0)),st=d.unproject(Ze);return M=v.call(this,m,{points:J,point:Ze,lngLats:ue,lngLat:st,originalEvent:E}),M.defaultPrevented=!1,M}return(0,gt.Z)(f,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),f}(V3);function jae(i){var v=wG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function wG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var c$=function(i){(0,Ht.Z)(f,i);var v=jae(f);function f(m,d,E){var M;return(0,Zr.Z)(this,f),M=v.call(this,m,{originalEvent:E}),M.defaultPrevented=!1,M}return(0,gt.Z)(f,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),f}(V3),Wae=function(){function i(v){(0,Zr.Z)(this,i),this.map=v}return(0,gt.Z)(i,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(f){this.map.emit(f.type,new vk(f.type,this.map,f))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new vk("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(f){this.delayContextMenu?this.contextMenuEvent=f:this.map.emit(f.type,new vk(f.type,this.map,f)),this.map.listeners("contextmenu")&&f.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),i}(),d$=function(){function i(v,f){(0,Zr.Z)(this,i),this.map=v,this.el=v.getCanvasContainer(),this.container=v.getContainer(),this.clickTolerance=f.clickTolerance||1}return(0,gt.Z)(i,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(f,m){this.isEnabled()&&f.shiftKey&&f.button===0&&(xI.disableDrag(),this.startPos=this.lastPos=m,this.active=!0)}},{key:"mousemoveWindow",value:function(f,m){if(this.active){var d=m;if(!(this.lastPos.equals(d)||!this.box&&d.dist(this.startPos)=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function pj(i,v){if(i){if(typeof i=="string")return gj(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return gj(i,v)}}function gj(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0&&m-f[0].time>d;)f.shift()}},{key:"onMoveEnd",value:function(f){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var m={zoom:0,bearing:0,pitch:0,pan:new O3(0,0),pinchAround:void 0,around:void 0},d=zQ(this.inertiaBuffer),E;try{for(d.s();!(E=d.n()).done;){var M=E.value.settings;m.zoom+=M.zoomDelta||0,m.bearing+=M.bearingDelta||0,m.pitch+=M.pitchDelta||0,M.panDelta&&m.pan._add(M.panDelta),M.around&&(m.around=M.around),M.pinchAround&&(m.pinchAround=M.pinchAround)}}catch(eu){d.e(eu)}finally{d.f()}var B=this.inertiaBuffer[this.inertiaBuffer.length-1],J=B.time-this.inertiaBuffer[0].time,ue={};if(m.pan.mag()){var Ze=f$(m.pan.mag(),J,SB({},$Q,f||{}));ue.offset=m.pan.mult(Ze.amount/m.pan.mag()),ue.center=this.map.transform.center,h$(ue,Ze)}if(m.zoom){var st=f$(m.zoom,J,CG);ue.zoom=this.map.transform.zoom+st.amount,h$(ue,st)}if(m.bearing){var Fr=f$(m.bearing,J,vj);ue.bearing=this.map.transform.bearing+o5(Fr.amount,-179,179),h$(ue,Fr)}if(m.pitch){var Go=f$(m.pitch,J,yj);ue.pitch=this.map.transform.pitch+Go.amount,h$(ue,Go)}if(ue.zoom||ue.bearing){var Ta=m.pinchAround===void 0?m.around:m.pinchAround;ue.around=Ta?this.map.unproject(Ta):this.map.getCenter()}return this.clear(),SB(ue,{noMoveStart:!0})}}}]),i}();function h$(i,v){(!i.duration||i.duration=this.clickTolerance||this.map.emit(f.type,new vk(f.type,this.map,f))}},{key:"dblclick",value:function(f){return this.firePreventable(new vk(f.type,this.map,f))}},{key:"mouseover",value:function(f){this.map.emit(f.type,new vk(f.type,this.map,f))}},{key:"mouseout",value:function(f){this.map.emit(f.type,new vk(f.type,this.map,f))}},{key:"touchstart",value:function(f){return this.firePreventable(new fj(f.type,this.map,f))}},{key:"touchmove",value:function(f){this.map.emit(f.type,new fj(f.type,this.map,f))}},{key:"touchend",value:function(f){this.map.emit(f.type,new fj(f.type,this.map,f))}},{key:"touchcancel",value:function(f){this.map.emit(f.type,new fj(f.type,this.map,f))}},{key:"firePreventable",value:function(f){if(this.map.emit(f.type,f),f.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),i}(),_j,bj=0,TG=2,AG=(_j={},(0,Na.Z)(_j,bj,1),(0,Na.Z)(_j,TG,2),_j);function UQ(i,v){var f=AG[v];return i.buttons===void 0||(i.buttons&f)!==f}var DG=function(){function i(v){(0,Zr.Z)(this,i),this.reset(),this.clickTolerance=v.clickTolerance||1}return(0,gt.Z)(i,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(f,m){if(!this.lastPoint){var d=xI.mouseButton(f);this.correctButton(f,d)&&(this.lastPoint=m,this.eventButton=d)}}},{key:"mousemoveWindow",value:function(f,m){var d=this.lastPoint;if(d){if(f.preventDefault(),UQ(f,this.eventButton)){this.reset();return}if(!(!this.moved&&m.dist(d)ZQ?m.wheelZoomRate:m.defaultZoomRate,M=HQ/(1+Math.exp(-Math.abs(m.delta*E)));m.delta<0&&M!==0&&(M=1/M);var B=typeof m.targetZoom=="number"?d.zoomScale(m.targetZoom):d.scale;m.targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(B*M))),m.type==="wheel"&&(m.startZoom=d.zoom,m.easing=m.smoothOutEasing(200)),m.delta=0}var J=typeof m.targetZoom=="number"?m.targetZoom:d.zoom,ue=m.startZoom,Ze=m.easing,st=!1,Fr;if(m.type==="wheel"&&ue&&Ze){var Go=Math.min((s5()-m.lastWheelEventTime)/200,1),Ta=Ze(Go);Fr=nO(ue,J,Ta),Go<1?m.frameId||(m.frameId=!0):st=!0}else Fr=J,st=!0;return m.active=!0,st&&(m.active=!1,m.finishTimeout=setTimeout(function(){m.zooming=!1,m.handler.triggerRenderFrame(),delete m.targetZoom,delete m.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!st,zoomDelta:Fr-d.zoom,around:m.aroundPoint,originalEvent:m.lastWheelEvent}}}),this.map=v,this.el=v.getCanvasContainer(),this.handler=f,this.delta=0,this.defaultZoomRate=MG,this.wheelZoomRate=ele}return(0,gt.Z)(i,[{key:"setZoomRate",value:function(f){this.defaultZoomRate=f}},{key:"setWheelZoomRate",value:function(f){this.wheelZoomRate=f}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(f){this.isEnabled()||(this.enabled=!0,this.aroundCenter=f&&f.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(f){if(this.isEnabled()){var m=f.deltaMode===window.WheelEvent.DOM_DELTA_LINE?f.deltaY*40:f.deltaY,d=s5(),E=d-(this.lastWheelEventTime||0);this.lastWheelEventTime=d,m!==0&&m%ZQ===0?this.type="wheel":m!==0&&Math.abs(m)<4?this.type="trackpad":E>400?(this.type=null,this.lastValue=m,this.timeout=setTimeout(this.onTimeout,40,f)):this.type||(this.type=Math.abs(E*m)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,m+=this.lastValue)),f.shiftKey&&m&&(m=m/4),this.type&&(this.lastWheelEvent=f,this.delta-=m,this.active||this.start(f)),f.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(f){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(f)}},{key:"start",value:function(f){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var m=xI.mousePos(this.el,f);this.around=CD.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(m)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(f){var m=pG;if(this.prevEase){var d=this.prevEase,E=(s5()-d.start)/d.duration,M=d.easing(E+.01)-d.easing(E),B=.27/Math.sqrt(M*M+1e-4)*.01,J=Math.sqrt(.27*.27-B*B);m=fG(B,J,.25,1)}return this.prevEase={start:s5(),duration:f,easing:m},m}}]),i}(),GQ=OG,RG=function(){function i(v,f){(0,Zr.Z)(this,i),this.clickZoom=v,this.tapZoom=f}return(0,gt.Z)(i,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),i}(),tle=function(){function i(v,f,m){(0,Zr.Z)(this,i),this.el=v,this.mousePan=f,this.touchPan=m}return(0,gt.Z)(i,[{key:"enable",value:function(f){this.inertiaOptions=f||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),i}(),nle=function(){function i(v,f,m){(0,Zr.Z)(this,i),this.pitchWithRotate=v.pitchWithRotate,this.mouseRotate=f,this.mousePitch=m}return(0,gt.Z)(i,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),i}(),rle=function(){function i(v,f,m,d){(0,Zr.Z)(this,i),this.el=v,this.touchZoom=f,this.touchRotate=m,this.tapDragZoom=d,this.rotationDisabled=!1,this.enabled=!0}return(0,gt.Z)(i,[{key:"enable",value:function(f){this.touchZoom.enable(f),this.rotationDisabled||this.touchRotate.enable(f),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),i}();function kG(i,v){for(var f={},m=0;m=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function Lpe(i,v){if(i){if(typeof i=="string")return ole(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return ole(i,v)}}function ole(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);fthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=f.timeStamp),d.length===this.numTouches&&(this.centroid=xj(m),this.touches=kG(d,m)))}},{key:"touchmove",value:function(f,m,d){if(!(this.aborted||!this.centroid)){var E=kG(d,m);for(var M in this.touches)if(this.touches[M]){var B=this.touches[M],J=E[M];(!J||J.dist(B)>ale)&&(this.aborted=!0)}}}},{key:"touchend",value:function(f,m,d){if((!this.centroid||f.timeStamp-this.startTime>Mpe)&&(this.aborted=!0),d.length===0){var E=!this.aborted&&this.centroid;if(this.reset(),E)return E}}}]),i}(),KQ=function(){function i(v){(0,Zr.Z)(this,i),this.singleTap=new Ope(v),this.numTaps=v.numTaps,this.reset()}return(0,gt.Z)(i,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(f,m,d){this.singleTap.touchstart(f,m,d)}},{key:"touchmove",value:function(f,m,d){this.singleTap.touchmove(f,m,d)}},{key:"touchend",value:function(f,m,d){var E=this.singleTap.touchend(f,m,d);if(E){var M=f.timeStamp-this.lastTimesle&&this.reset(),this.tapTime?d.length>0&&(this.swipePoint=m[0],this.swipeTouch=d[0].identifier):this.tap.touchstart(f,m,d))}},{key:"touchmove",value:function(f,m,d){if(!this.tapTime)this.tap.touchmove(f,m,d);else if(this.swipePoint){if(d[0].identifier!==this.swipeTouch)return;var E=m[0],M=E.y-this.swipePoint.y;return this.swipePoint=E,f.preventDefault(),this.active=!0,{zoomDelta:M/128}}}},{key:"touchend",value:function(f,m,d){if(this.tapTime)this.swipePoint&&d.length===0&&this.reset();else{var E=this.tap.touchend(f,m,d);E&&(this.tapTime=f.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),i}(),Rpe=function(){function i(){(0,Zr.Z)(this,i),this.zoomIn=new KQ({numTouches:1,numTaps:2}),this.zoomOut=new KQ({numTouches:2,numTaps:1}),this.reset()}return(0,gt.Z)(i,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(f,m,d){this.zoomIn.touchstart(f,m,d),this.zoomOut.touchstart(f,m,d)}},{key:"touchmove",value:function(f,m,d){this.zoomIn.touchmove(f,m,d),this.zoomOut.touchmove(f,m,d)}},{key:"touchend",value:function(f,m,d){var E=this,M=this.zoomIn.touchend(f,m,d),B=this.zoomOut.touchend(f,m,d);if(M)return this.active=!0,f.preventDefault(),setTimeout(function(){return E.reset()},0),{cameraAnimation:function(ue){return ue.easeTo({duration:300,zoom:ue.getZoom()+1,around:ue.unproject(M)},{originalEvent:f})}};if(B)return this.active=!0,f.preventDefault(),setTimeout(function(){return E.reset()},0),{cameraAnimation:function(ue){return ue.easeTo({duration:300,zoom:ue.getZoom()-1,around:ue.unproject(B)},{originalEvent:f})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),i}(),nR=function(){function i(v){(0,Zr.Z)(this,i),this.minTouches=1,this.clickTolerance=v.clickTolerance||1,this.reset()}return(0,gt.Z)(i,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new O3(0,0)}},{key:"touchstart",value:function(f,m,d){return this.calculateTransform(f,m,d)}},{key:"touchmove",value:function(f,m,d){if(this.active)return f.preventDefault(),this.calculateTransform(f,m,d)}},{key:"touchend",value:function(f,m,d){this.calculateTransform(f,m,d),this.active&&d.length0&&(this.active=!0);var E=kG(d,m),M=new O3(0,0),B=new O3(0,0),J=0;for(var ue in E)if(E[ue]){var Ze=E[ue],st=this.touches[ue];st&&(M._add(Ze),B._add(Ze.sub(st)),J++,E[ue]=Ze)}if(this.touches=E,!(JMath.abs(i.x)}var lle=100,l5=function(i){(0,Ht.Z)(f,i);var v=j8(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"reset",value:function(){PS((0,oi.Z)(f.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(d){this.lastPoints=d,NG(d[0].sub(d[1]))&&(this.valid=!1)}},{key:"move",value:function(d,E,M){var B=d[0].sub(this.lastPoints[0]),J=d[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(B,J,M.timeStamp),!!this.valid){this.lastPoints=d,this.active=!0;var ue=(B.y+J.y)/2,Ze=-.5;return{pitchDelta:ue*Ze}}}},{key:"gestureBeginsVertically",value:function(d,E,M){if(this.valid!==void 0)return this.valid;var B=2,J=d.mag()>=B,ue=E.mag()>=B;if(!(!J&&!ue)){if(!J||!ue)return this.firstMove===void 0&&(this.firstMove=M),M-this.firstMove0==E.y>0;return NG(d)&&NG(E)&&Ze}}}]),f}(p$);function zA(i){var v=bM();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function bM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var FG=25;function BG(i,v){return i.angleWith(v)*180/Math.PI}var Sj=function(i){(0,Ht.Z)(f,i);var v=zA(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"reset",value:function(){PS((0,oi.Z)(f.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(d){this.startVector=this.vector=d[0].sub(d[1]),this.minDiameter=d[0].dist(d[1])}},{key:"move",value:function(d,E){var M=this.vector;if(this.vector=d[0].sub(d[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:BG(this.vector,M),pinchAround:E}}},{key:"isBelowThreshold",value:function(d){this.minDiameter=Math.min(this.minDiameter,d.mag());var E=Math.PI*this.minDiameter,M=FG/E*360,B=BG(d,this.startVector);return Math.abs(B)=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function UG(i,v){if(i){if(typeof i=="string")return qQ(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return qQ(i,v)}}function qQ(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);faL}).reduce(function(J,ue){return J+(ue-aL)/aL},0),B=M/(m+M)*100;return{loadTime:v,fullLoadTime:f,fps:E,percentDroppedFrames:B}}};function m$(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=iR(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function iR(i,v){if(i){if(typeof i=="string")return oR(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return oR(i,v)}}function oR(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0&&arguments[0]!==void 0?arguments[0]:0,m=this.currentlyRunning=this.queue;this.queue=[];var d=m$(m),E;try{for(d.s();!(E=d.n()).done;){var M=E.value;if(!M.cancelled&&(M.callback(f),this.cleared))break}}catch(B){d.e(B)}finally{d.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),i}(),v$=u5;function c5(i){var v=ule();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function ule(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function Dj(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}Dj(`.l7-map { +`);var pz={mapmove:"moving",contextmenu:"rightclick",camerachange:"update",zoomchange:"zoomend"},QL="zLhopYPPERGtpGOgimcdKcCimGRyyIsh",gz="1.0",cG=function(i){(0,ze.Z)(l,i);var d=aG(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=this.viewport.projectFlat(a),V=Nu();return c0(V,V,Km(O[0],O[1],p)),Xg(V,V,Km(w[0],w[1],w[2])),i0(V,V,y[0]),Ps(V,V,y[1]),kv(V,V,y[2]),V}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(a){var p=this.getMap()._webglPainter._canvas,y=a==="jpg"?p==null?void 0:p.toDataURL("image/jpeg"):p==null?void 0:p.toDataURL("image/png");return y}},{key:"hideLogo",value:function(){var a=this.map.getContainer();a&&Yl(a,"bmap-contianer--hide-logo")}},{key:"initMapByConfig",value:function(a){var p=a.style,y=a.pitch,w=y===void 0?0:y,O=a.rotation,V=O===void 0?0:O,he=a.logoVisible,be=he===void 0?!0:he;p&&this.setMapStyle(p),w&&this.setPitch(w),V&&this.setRotation(V),be===!1&&this.hideLogo()}}]),l}(cS);function hG(i){var d=mz();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function mz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var oR=function(i){(0,ze.Z)(l,i);var d=hG(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return cG}}]),l}(HC),l6=x(58240),dG=x.n(l6);function fG(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=QQ(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function QQ(i,d){if(i){if(typeof i=="string")return vz(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return vz(i,d)}}function vz(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l1?d-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,Te.Z)(i,[{key:"wrap",value:function(){return new i(eb(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(l){var c=Math.PI/180,a=this.lat*c,p=l.lat*c,y=Math.sin(a)*Math.sin(p)+Math.cos(a)*Math.cos(p)*Math.cos((l.lng-this.lng)*c),w=d_*Math.acos(Math.min(y,1));return w}}],[{key:"convert",value:function(l){if(l instanceof i)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new i(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&(0,rd.Z)(l)==="object"&&l!==null){var c="lng"in l?l.lng:l.lon;return new i(Number(c),Number(l.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),i}(),nM=function(){function i(d,l){(0,vt.Z)(this,i),d&&(l?this.setSouthWest(d).setNorthEast(l):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))}return(0,Te.Z)(i,[{key:"setNorthEast",value:function(l){return this.ne=l instanceof yv?new yv(l.lng,l.lat):yv.convert(l),this}},{key:"setSouthWest",value:function(l){return this.sw=l instanceof yv?new yv(l.lng,l.lat):yv.convert(l),this}},{key:"extend",value:function(l){var c=this.sw,a=this.ne,p,y;if(l instanceof yv)p=l,y=l;else if(l instanceof i){if(p=l.sw,y=l.ne,!p||!y)return this}else{if(Array.isArray(l))if(l.length===4||l.every(Array.isArray)){var w=l;return this.extend(i.convert(w))}else{var O=l;return this.extend(yv.convert(O))}return this}return!c&&!a?(this.sw=new yv(p.lng,p.lat),this.ne=new yv(y.lng,y.lat)):(c.lng=Math.min(p.lng,c.lng),c.lat=Math.min(p.lat,c.lat),a.lng=Math.max(y.lng,a.lng),a.lat=Math.max(y.lat,a.lat)),this}},{key:"getCenter",value:function(){return new yv((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new yv(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new yv(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(l){var c=yv.convert(l),a=c.lng,p=c.lat,y=this.sw.lat<=p&&p<=this.ne.lat,w=this.sw.lng<=a&&a<=this.ne.lng;return this.sw.lng>this.ne.lng&&(w=this.sw.lng>=a&&a>=this.ne.lng),y&&w}}],[{key:"convert",value:function(l){return l instanceof i?l:new i(l)}}]),i}(),D0=function(){function i(d,l){(0,vt.Z)(this,i),this.x=d,this.y=l}return(0,Te.Z)(i,[{key:"clone",value:function(){return new i(this.x,this.y)}},{key:"_add",value:function(l){return this.x+=l.x,this.y+=l.y,this}},{key:"add",value:function(l){return this.clone()._add(l)}},{key:"_sub",value:function(l){return this.x-=l.x,this.y-=l.y,this}},{key:"sub",value:function(l){return this.clone()._sub(l)}},{key:"_multByPoint",value:function(l){return this.x*=l.x,this.y*=l.y,this}},{key:"multByPoint",value:function(l){return this.clone()._multByPoint(l)}},{key:"_divByPoint",value:function(l){return this.x/=l.x,this.y/=l.y,this}},{key:"divByPoint",value:function(l){return this.clone()._divByPoint(l)}},{key:"_mult",value:function(l){return this.x*=l,this.y*=l,this}},{key:"mult",value:function(l){return this.clone()._mult(l)}},{key:"_div",value:function(l){return this.x/=l,this.y/=l,this}},{key:"div",value:function(l){return this.clone()._div(l)}},{key:"_rotate",value:function(l){var c=Math.cos(l),a=Math.sin(l),p=c*this.x-a*this.y,y=a*this.x+c*this.y;return this.x=p,this.y=y,this}},{key:"rotate",value:function(l){return this.clone()._rotate(l)}},{key:"_rotateAround",value:function(l,c){var a=Math.cos(l),p=Math.sin(l),y=c.x+a*(this.x-c.x)-p*(this.y-c.y),w=c.y+p*(this.x-c.x)+a*(this.y-c.y);return this.x=y,this.y=w,this}},{key:"roateAround",value:function(l,c){return this.clone()._rotateAround(l,c)}},{key:"_matMult",value:function(l){var c=l[0]*this.x+l[1]*this.y,a=l[2]*this.x+l[3]*this.y;return this.x=c,this.y=a,this}},{key:"matMult",value:function(l){return this.clone()._matMult(l)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var l=this.y;return this.y=this.x,this.x=-l,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(l){return this.x===l.x&&this.y===l.y}},{key:"dist",value:function(l){return Math.sqrt(this.distSqr(l))}},{key:"distSqr",value:function(l){var c=l.x-this.x,a=l.y-this.y;return c*c+a*a}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(l){return Math.atan2(this.y-l.y,this.x-l.x)}},{key:"angleWith",value:function(l){return this.angleWithSep(l.x,l.y)}},{key:"angleWithSep",value:function(l,c){return Math.atan2(this.x*c-this.y*l,this.x*l+this.y*c)}}],[{key:"convert",value:function(l){return l instanceof i?l:Array.isArray(l)?new i(l[0],l[1]):l}}]),i}();function sR(){var i=new Vp(4);return Vp!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i}function eee(i){var d=new glMatrix.ARRAY_TYPE(4);return d[0]=i[0],d[1]=i[1],d[2]=i[2],d[3]=i[3],d}function gG(i,d){return i[0]=d[0],i[1]=d[1],i[2]=d[2],i[3]=d[3],i}function mG(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i}function tee(i,d,l,c){var a=new glMatrix.ARRAY_TYPE(4);return a[0]=i,a[1]=d,a[2]=l,a[3]=c,a}function nee(i,d,l,c,a){return i[0]=d,i[1]=l,i[2]=c,i[3]=a,i}function Pie(i,d){if(i===d){var l=d[1];i[1]=d[2],i[2]=l}else i[0]=d[0],i[1]=d[2],i[2]=d[1],i[3]=d[3];return i}function Rie(i,d){var l=d[0],c=d[1],a=d[2],p=d[3],y=l*p-a*c;return y?(y=1/y,i[0]=p*y,i[1]=-c*y,i[2]=-a*y,i[3]=l*y,i):null}function kie(i,d){var l=d[0];return i[0]=d[3],i[1]=-d[1],i[2]=-d[2],i[3]=l,i}function Oie(i){return i[0]*i[3]-i[2]*i[1]}function d6(i,d,l){var c=d[0],a=d[1],p=d[2],y=d[3],w=l[0],O=l[1],V=l[2],he=l[3];return i[0]=c*w+p*O,i[1]=a*w+y*O,i[2]=c*V+p*he,i[3]=a*V+y*he,i}function ree(i,d,l){var c=d[0],a=d[1],p=d[2],y=d[3],w=Math.sin(l),O=Math.cos(l);return i[0]=c*O+p*w,i[1]=a*O+y*w,i[2]=c*-w+p*O,i[3]=a*-w+y*O,i}function Nie(i,d,l){var c=d[0],a=d[1],p=d[2],y=d[3],w=l[0],O=l[1];return i[0]=c*w,i[1]=a*w,i[2]=p*O,i[3]=y*O,i}function Fie(i,d){var l=Math.sin(d),c=Math.cos(d);return i[0]=c,i[1]=l,i[2]=-l,i[3]=c,i}function Bie(i,d){return i[0]=d[0],i[1]=0,i[2]=0,i[3]=d[1],i}function ME(i){return"mat2("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+")"}function vG(i){return Math.hypot(i[0],i[1],i[2],i[3])}function yG(i,d,l,c){return i[2]=c[2]/c[0],l[0]=c[0],l[1]=c[1],l[3]=c[3]-i[2]*l[1],[i,d,l]}function iee(i,d,l){return i[0]=d[0]+l[0],i[1]=d[1]+l[1],i[2]=d[2]+l[2],i[3]=d[3]+l[3],i}function oee(i,d,l){return i[0]=d[0]-l[0],i[1]=d[1]-l[1],i[2]=d[2]-l[2],i[3]=d[3]-l[3],i}function see(i,d){return i[0]===d[0]&&i[1]===d[1]&&i[2]===d[2]&&i[3]===d[3]}function aee(i,d){var l=i[0],c=i[1],a=i[2],p=i[3],y=d[0],w=d[1],O=d[2],V=d[3];return Math.abs(l-y)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-w)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(a-O)<=glMatrix.EPSILON*Math.max(1,Math.abs(a),Math.abs(O))&&Math.abs(p-V)<=glMatrix.EPSILON*Math.max(1,Math.abs(p),Math.abs(V))}function lee(i,d,l){return i[0]=d[0]*l,i[1]=d[1]*l,i[2]=d[2]*l,i[3]=d[3]*l,i}function _G(i,d,l,c){return i[0]=d[0]+l[0]*c,i[1]=d[1]+l[1]*c,i[2]=d[2]+l[2]*c,i[3]=d[3]+l[3]*c,i}var uee=null,cee=null,hS=function(){function i(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,vt.Z)(this,i),isNaN(d)||d<0||isNaN(l)||l<0||isNaN(c)||c<0||isNaN(a)||a<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=l,this.left=c,this.right=a}return(0,Te.Z)(i,[{key:"interpolate",value:function(l,c,a){return c.top!=null&&l.top!=null&&(this.top=Qx(l.top,c.top,a)),c.bottom!=null&&l.bottom!=null&&(this.bottom=Qx(l.bottom,c.bottom,a)),c.left!=null&&l.left!=null&&(this.left=Qx(l.left,c.left,a)),c.right!=null&&l.right!=null&&(this.right=Qx(l.right,c.right,a)),this}},{key:"getCenter",value:function(l,c){var a=tw((this.left+l-this.right)/2,0,l),p=tw((this.top+c-this.bottom)/2,0,c);return new D0(a,p)}},{key:"equals",value:function(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}},{key:"clone",value:function(){return new i(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),i}(),rM=2*Math.PI*d_;function f6(i){return rM*Math.cos(i*Math.PI/180)}function PE(i){return(180+i)/360}function aR(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function bz(i,d){return i/f6(d)}function lR(i){return i*360-180}function p6(i){var d=180-i*360;return 360/Math.PI*Math.atan(Math.exp(d*Math.PI/180))-90}function iM(i,d){return i*f6(p6(d))}function bG(i){return 1/Math.cos(i*Math.PI/180)}var dS=function(){function i(d,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,vt.Z)(this,i),this.x=+d,this.y=+l,this.z=+c}return(0,Te.Z)(i,[{key:"toLngLat",value:function(){return new yv(lR(this.x),p6(this.y))}},{key:"toAltitude",value:function(){return iM(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/rM*bG(p6(this.y))}}],[{key:"fromLngLat",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=yv.convert(l);return new i(PE(a.lng),aR(a.lat),bz(c,a.lat))}}]),i}();function xG(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=xz(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function xz(i,d){if(i){if(typeof i=="string")return g6(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return g6(i,d)}}function g6(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lc&&(V=c-Zr)}if(this.lngRange){var Si=qt.x,to=he.x/2;Si-top&&(O=p-to)}(O!==void 0||V!==void 0)&&(this.center=this.unproject(new D0(O!==void 0?O:qt.x,V!==void 0?V:qt.y))),this.unmodified=be,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var l=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(l)*this.height;var a=Math.PI/2+this._pitch,p=this._fov*(.5+c.y/this.height),y=Math.sin(p)*this.cameraToCenterDistance/Math.sin(tw(Math.PI-a-p,.01,Math.PI-.01)),w=this.point,O=w.x,V=w.y,he=Math.cos(Math.PI/2-this._pitch)*y+this.cameraToCenterDistance,be=he*1.01,ut=this.height/50,Pt=new Float64Array(16);Di(Pt,this._fov,this.width/this.height,ut,be),Pt[8]=-c.x*2/this.width,Pt[9]=c.y*2/this.height,Xg(Pt,Pt,[1,-1,1]),c0(Pt,Pt,[0,0,-this.cameraToCenterDistance]),i0(Pt,Pt,this._pitch),kv(Pt,Pt,this.angle),c0(Pt,Pt,[-O,-V,0]),this.mercatorMatrix=Xg([],Pt,[this.worldSize,this.worldSize,this.worldSize]),Xg(Pt,Pt,[1,1,bz(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Pt,this.invProjMatrix=Jp([],this.projMatrix);var qt=this.width%2/2,En=this.height%2/2,qn=Math.cos(this.angle),Zr=Math.sin(this.angle),Si=O-Math.round(O)+qn*qt+Zr*En,to=V-Math.round(V)+qn*En+Zr*qt,ts=new Float64Array(Pt);if(c0(ts,ts,[Si>.5?Si-1:Si,to>.5?to-1:to,0]),this.alignedProjMatrix=ts,Pt=Nu(),Xg(Pt,Pt,[this.width/2,-this.height/2,1]),c0(Pt,Pt,[1,-1,0]),this.labelPlaneMatrix=Pt,Pt=Nu(),Xg(Pt,Pt,[1,-1,1]),c0(Pt,Pt,[-1,-1,0]),Xg(Pt,Pt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Pt,this.pixelMatrix=wf(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Pt=Jp(new Float64Array(16),this.pixelMatrix),!Pt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Pt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),i}(),SG=ks.merge,z0=(0,Te.Z)(function i(d){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,vt.Z)(this,i),SG(this,l),this.type=d});function EG(i){var d=Cz();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function Cz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var qC=ks.merge,wz=function(i){(0,ze.Z)(l,i);var d=EG(l);function l(c){var a;(0,vt.Z)(this,l),a=d.call(this),(0,pn.Z)((0,eo.Z)(a),"renderFrameCallback",function(){var he=Math.min((nw()-a.easeStart)/a.easeOptions.duration,1);a.onEaseFrame(a.easeOptions.easing(he)),he<1?a.easeFrameId=a.requestRenderFrame(a.renderFrameCallback):a.stop()}),a.options=c;var p=c.minZoom,y=c.maxZoom,w=c.minPitch,O=c.maxPitch,V=c.renderWorldCopies;return a.moving=!1,a.zooming=!1,a.bearingSnap=c.bearingSnap,a.pitchEnabled=c.pitchEnabled,a.rotateEnabled=c.rotateEnabled,a.transform=new wG(p,y,w,O,V),a}return(0,Te.Z)(l,[{key:"requestRenderFrame",value:function(a){return 0}},{key:"cancelRenderFrame",value:function(a){}},{key:"getCenter",value:function(){var a=this.transform.center,p=a.lng,y=a.lat;return new yv(p,y)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(a,p){return this.jumpTo({center:a},p)}},{key:"setPitch",value:function(a,p){return this.jumpTo({pitch:a},p),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(a,p,y){return this.easeTo(qC({center:a},p),y)}},{key:"panBy",value:function(a,p,y){return a=D0.convert(a).mult(-1),this.panTo(this.transform.center,_z({offset:a},p||{}),y)}},{key:"zoomOut",value:function(a,p){return this.zoomTo(this.getZoom()-1,a,p),this}},{key:"setBearing",value:function(a,p){return this.jumpTo({bearing:a},p),this}},{key:"setZoom",value:function(a,p){return this.jumpTo({zoom:a},p),this}},{key:"zoomIn",value:function(a,p){return this.zoomTo(this.getZoom()+1,a,p),this}},{key:"zoomTo",value:function(a,p,y){return this.easeTo(qC({zoom:a},p),y)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(a,p){return this.jumpTo({padding:a},p),this}},{key:"rotateTo",value:function(a,p,y){return this.easeTo(qC({bearing:a},p),y)}},{key:"resetNorth",value:function(a,p){return this.rotateTo(0,qC({duration:1e3},a),p),this}},{key:"resetNorthPitch",value:function(a,p){return this.easeTo(qC({bearing:0,pitch:0,duration:1e3},a),p),this}},{key:"fitBounds",value:function(a,p,y){return this.fitInternal(this.cameraForBounds(a,p),p,y)}},{key:"cameraForBounds",value:function(a,p){return a=nM.convert(a),this.cameraForBoxAndBearing(a.getNorthWest(),a.getSouthEast(),0,p)}},{key:"snapToNorth",value:function(a,p){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;this.stop();var y=this.transform,w=!1,O=!1,V=!1;return a.zoom!==void 0&&y.zoom!==+a.zoom&&(w=!0,y.zoom=+a.zoom),a.center!==void 0&&(y.center=yv.convert(a.center)),a.bearing!==void 0&&y.bearing!==+a.bearing&&(O=!0,y.bearing=+a.bearing),a.pitch!==void 0&&y.pitch!==+a.pitch&&(V=!0,y.pitch=+a.pitch),a.padding!==void 0&&!y.isPaddingEqual(a.padding)&&(y.padding=a.padding),this.emit("movestart",new z0("movestart",p)),this.emit("move",new z0("move",p)),w&&(this.emit("zoomstart",new z0("zoomstart",p)),this.emit("zoom",new z0("zoom",p)),this.emit("zoomend",new z0("zoomend",p))),O&&(this.emit("rotatestart",new z0("rotatestart",p)),this.emit("rotate",new z0("rotate",p)),this.emit("rotateend",new z0("rotateend",p))),V&&(this.emit("pitchstart",new z0("pitchstart",p)),this.emit("pitch",new z0("pitch",p)),this.emit("pitchend",new z0("pitchend",p))),this.emit("moveend",new z0("moveend",p))}},{key:"easeTo",value:function(){var a=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=arguments.length>1?arguments[1]:void 0;p=qC({offset:[0,0],duration:500,easing:c6},p),(p.animate===!1||!p.essential&&FT())&&(p.duration=0);var w=this.transform,O=this.getZoom(),V=this.getBearing(),he=this.getPitch(),be=this.getPadding(),ut=p.zoom?+p.zoom:O,Pt=p.bearing?this.normalizeBearing(p.bearing,V):V,qt=p.pitch?+p.pitch:he,En=p.padding?p.padding:w.padding,qn=D0.convert(p.offset),Zr=w.centerPoint.add(qn),Si=w.pointLocation(Zr),to=yv.convert(p.center||Si);this.normalizeCenter(to);var ts=w.project(Si),Qs=w.project(to).sub(ts),Fs=w.zoomScale(ut-O),Us,Sa;p.around&&(Us=yv.convert(p.around),Sa=w.locationPoint(Us));var dl={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||ut!==O,this.rotating=this.rotating||V!==Pt,this.pitching=this.pitching||qt!==he,this.padding=!w.isPaddingEqual(En),this.easeId=p.easeId,this.prepareEase(y,p.noMoveStart,dl),clearTimeout(this.easeEndTimeoutID),this.ease(function(fu){if(a.zooming&&(w.zoom=Qx(O,ut,fu)),a.rotating&&a.rotateEnabled&&(w.bearing=Qx(V,Pt,fu)),a.pitching&&a.pitchEnabled&&(w.pitch=Qx(he,qt,fu)),a.padding&&(w.interpolatePadding(be,En,fu),Zr=w.centerPoint.add(qn)),Us)w.setLocationAtPoint(Us,Sa);else{var iu=w.zoomScale(w.zoom-O),ic=ut>O?Math.min(2,Fs):Math.max(.5,Fs),Nc=Math.pow(ic,1-fu),nh=w.unproject(ts.add(Qs.mult(fu*Nc)).mult(iu));w.setLocationAtPoint(w.renderWorldCopies?nh.wrap():nh,Zr)}a.fireMoveEvents(y)},function(fu){a.afterEase(y,fu)},p),this}},{key:"flyTo",value:function(){var a=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=arguments.length>1?arguments[1]:void 0;if(!p.essential&&FT()){var w=h6(p,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,y)}this.stop(),p=qC({offset:[0,0],speed:1.2,curve:1.42,easing:c6},p);var O=this.transform,V=this.getZoom(),he=this.getBearing(),be=this.getPitch(),ut=this.getPadding(),Pt=p.zoom?tw(+p.zoom,O.minZoom,O.maxZoom):V,qt=p.bearing?this.normalizeBearing(p.bearing,he):he,En=p.pitch?+p.pitch:be,qn="padding"in p?p.padding:O.padding,Zr=O.zoomScale(Pt-V),Si=D0.convert(p.offset),to=O.centerPoint.add(Si),ts=O.pointLocation(to),Qs=yv.convert(p.center||ts);this.normalizeCenter(Qs);var Fs=O.project(ts),Us=O.project(Qs).sub(Fs),Sa=p.curve,dl=Math.max(O.width,O.height),fu=dl/Zr,iu=Us.mag();if("minZoom"in p){var ic=tw(Math.min(p.minZoom,V,Pt),O.minZoom,O.maxZoom),Nc=dl/O.zoomScale(ic-V);Sa=Math.sqrt(Nc/iu*2)}var nh=Sa*Sa;function Zp(Mv){var lb=(fu*fu-dl*dl+(Mv?-1:1)*nh*nh*iu*iu)/(2*(Mv?fu:dl)*nh*iu);return Math.log(Math.sqrt(lb*lb+1)-lb)}function hg(Mv){return(Math.exp(Mv)-Math.exp(-Mv))/2}function jg(Mv){return(Math.exp(Mv)+Math.exp(-Mv))/2}function U0(Mv){return hg(Mv)/jg(Mv)}var dm=Zp(0),a1=function(lb){return jg(dm)/jg(dm+Sa*lb)},g2=function(lb){return dl*((jg(dm)*U0(dm+Sa*lb)-hg(dm))/nh)/iu},wS=(Zp(1)-dm)/Sa;if(Math.abs(iu)<1e-6||!isFinite(wS)){if(Math.abs(dl-fu)<1e-6)return this.easeTo(p,y);var HI=fup.maxDuration&&(p.duration=0),this.zooming=!0,this.rotating=he!==qt,this.pitching=En!==be,this.padding=!O.isPaddingEqual(qn),this.prepareEase(y,!1),this.ease(function(Mv){var lb=Mv*wS,hk=1/a1(lb);O.zoom=Mv===1?Pt:V+O.scaleZoom(hk),a.rotating&&(O.bearing=Qx(he,qt,Mv)),a.pitching&&(O.pitch=Qx(be,En,Mv)),a.padding&&(O.interpolatePadding(ut,qn,Mv),to=O.centerPoint.add(Si));var dk=Mv===1?Qs:O.unproject(Fs.add(Us.mult(g2(lb))).mult(hk));O.setLocationAtPoint(O.renderWorldCopies?dk.wrap():dk,to),a.fireMoveEvents(y)},function(){return a.afterEase(y)},p),this}},{key:"fitScreenCoordinates",value:function(a,p,y,w,O){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(D0.convert(a)),this.transform.pointLocation(D0.convert(p)),y,w),w,O)}},{key:"stop",value:function(a,p){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var y=this.onEaseEnd;delete this.onEaseEnd,y.call(this,p)}return this}},{key:"normalizeBearing",value:function(a,p){a=eb(a,-180,180);var y=Math.abs(a-p);return Math.abs(a-360-p)180?-360:y<-180?360:0}}},{key:"fireMoveEvents",value:function(a){this.emit("move",new z0("move",a)),this.zooming&&this.emit("zoom",new z0("zoom",a)),this.rotating&&this.emit("rotate",new z0("rotate",a)),this.pitching&&this.emit("rotate",new z0("pitch",a))}},{key:"prepareEase",value:function(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!p&&!y.moving&&this.emit("movestart",new z0("movestart",a)),this.zooming&&!y.zooming&&this.emit("zoomstart",new z0("zoomstart",a)),this.rotating&&!y.rotating&&this.emit("rotatestart",new z0("rotatestart",a)),this.pitching&&!y.pitching&&this.emit("pitchstart",new z0("pitchstart",a))}},{key:"afterEase",value:function(a,p){if(!(this.easeId&&p&&this.easeId===p)){delete this.easeId;var y=this.zooming,w=this.rotating,O=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,y&&this.emit("zoomend",new z0("zoomend",a)),w&&this.emit("rotateend",new z0("rotateend",a)),O&&this.emit("pitchend",new z0("pitchend",a)),this.emit("moveend",new z0("moveend",a))}}},{key:"ease",value:function(a,p,y){y.animate===!1||y.duration===0?(a(1),p()):(this.easeStart=nw(),this.easeOptions=y,this.onEaseFrame=a,this.onEaseEnd=p,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(a,p,y,w){var O={top:0,bottom:0,right:0,left:0};if(w=qC({padding:O,offset:[0,0],maxZoom:this.transform.maxZoom},w),typeof w.padding=="number"){var V=w.padding;w.padding={top:V,bottom:V,right:V,left:V}}w.padding=qC(O,w.padding);var he=this.transform,be=he.padding,ut=he.project(yv.convert(a)),Pt=he.project(yv.convert(p)),qt=ut.rotate(-y*Math.PI/180),En=Pt.rotate(-y*Math.PI/180),qn=new D0(Math.max(qt.x,En.x),Math.max(qt.y,En.y)),Zr=new D0(Math.min(qt.x,En.x),Math.min(qt.y,En.y)),Si=qn.sub(Zr),to=(he.width-(be.left+be.right+w.padding.left+w.padding.right))/Si.x,ts=(he.height-(be.top+be.bottom+w.padding.top+w.padding.bottom))/Si.y;if(!(ts<0||to<0)){var Qs=Math.min(he.scaleZoom(he.scale*Math.min(to,ts)),w.maxZoom),Fs=D0.convert(w.offset),Us=(w.padding.left-w.padding.right)/2,Sa=(w.padding.top-w.padding.bottom)/2,dl=new D0(Fs.x+Us,Fs.y+Sa),fu=dl.mult(he.scale/he.zoomScale(Qs)),iu=he.unproject(ut.add(Pt).div(2).sub(fu));return{center:iu,zoom:Qs,bearing:y}}}},{key:"fitInternal",value:function(a,p,y){return a?(p=qC(a,p),delete p.padding,p.linear?this.easeTo(p,y):this.flyTo(p,y)):this}}]),l}(Ic.EventEmitter);function Sz(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=BT(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function BT(i,d){if(i){if(typeof i=="string")return Pb(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Pb(i,d)}}function Pb(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&gx?i.addEventListener(d,l,c):i.addEventListener(d,l,c.capture)},tb.removeEventListener=function(i,d,l){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&gx?i.removeEventListener(d,l,c):i.removeEventListener(d,l,c.capture)};var bI=function i(d){d.preventDefault(),d.stopPropagation(),window.removeEventListener("click",i,!0)};tb.suppressClick=function(){window.addEventListener("click",bI,!0),setTimeout(function(){window.removeEventListener("click",bI,!0)},0)},tb.mousePos=function(i,d){var l=i.getBoundingClientRect();return new D0(d.clientX-l.left-i.clientLeft,d.clientY-l.top-i.clientTop)},tb.touchPos=function(i,d){var l=i.getBoundingClientRect(),c=[],a=Sz(d),p;try{for(a.s();!(p=a.n()).done;){var y=p.value;c.push(new D0(y.clientX-l.left-i.clientLeft,y.clientY-l.top-i.clientTop))}}catch(w){a.e(w)}finally{a.f()}return c},tb.mouseButton=function(i){return i.button},tb.remove=function(i){i.parentNode&&i.parentNode.removeChild(i)};function m6(i){var d=AG();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function AG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var TG=ks.merge,fS=function(i){(0,ze.Z)(l,i);var d=m6(l);function l(c,a,p){var y,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,vt.Z)(this,l);var O=m1.mousePos(a.getCanvasContainer(),p),V=a.unproject(O);return y=d.call(this,c,TG({point:O,lngLat:V,originalEvent:p},w)),y.defaultPrevented=!1,y.target=a,y}return(0,Te.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(z0);function DG(i){var d=v6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function v6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var uR=function(i){(0,ze.Z)(l,i);var d=DG(l);function l(c,a,p){var y;(0,vt.Z)(this,l);var w=c==="touchend"?p.changedTouches:p.touches,O=m1.touchPos(a.getCanvasContainer(),w),V=O.map(function(ut){return a.unproject(ut)}),he=O.reduce(function(ut,Pt,qt,En){return ut.add(Pt.div(En.length))},new D0(0,0)),be=a.unproject(he);return y=d.call(this,c,{points:O,point:he,lngLats:V,lngLat:be,originalEvent:p}),y.defaultPrevented=!1,y}return(0,Te.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(z0);function IG(i){var d=y6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function y6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var oM=function(i){(0,ze.Z)(l,i);var d=IG(l);function l(c,a,p){var y;return(0,vt.Z)(this,l),y=d.call(this,c,{originalEvent:p}),y.defaultPrevented=!1,y}return(0,Te.Z)(l,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),l}(z0),LG=function(){function i(d){(0,vt.Z)(this,i),this.map=d}return(0,Te.Z)(i,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(l){this.map.emit(l.type,new fS(l.type,this.map,l))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new fS("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(l){this.delayContextMenu?this.contextMenuEvent=l:this.map.emit(l.type,new fS(l.type,this.map,l)),this.map.listeners("contextmenu")&&l.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),i}(),sM=function(){function i(d,l){(0,vt.Z)(this,i),this.map=d,this.el=d.getCanvasContainer(),this.container=d.getContainer(),this.clickTolerance=l.clickTolerance||1}return(0,Te.Z)(i,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(l,c){this.isEnabled()&&l.shiftKey&&l.button===0&&(m1.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(l,c){if(this.active){var a=c;if(!(this.lastPos.equals(a)||!this.box&&a.dist(this.startPos)=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function cR(i,d){if(i){if(typeof i=="string")return hR(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return hR(i,d)}}function hR(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0&&c-l[0].time>a;)l.shift()}},{key:"onMoveEnd",value:function(l){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new D0(0,0),pinchAround:void 0,around:void 0},a=Tz(this.inertiaBuffer),p;try{for(a.s();!(p=a.n()).done;){var y=p.value.settings;c.zoom+=y.zoomDelta||0,c.bearing+=y.bearingDelta||0,c.pitch+=y.pitchDelta||0,y.panDelta&&c.pan._add(y.panDelta),y.around&&(c.around=y.around),y.pinchAround&&(c.pinchAround=y.pinchAround)}}catch(En){a.e(En)}finally{a.f()}var w=this.inertiaBuffer[this.inertiaBuffer.length-1],O=w.time-this.inertiaBuffer[0].time,V={};if(c.pan.mag()){var he=lM(c.pan.mag(),O,xI({},Dz,l||{}));V.offset=c.pan.mult(he.amount/c.pan.mag()),V.center=this.map.transform.center,aM(V,he)}if(c.zoom){var be=lM(c.zoom,O,_6);V.zoom=this.map.transform.zoom+be.amount,aM(V,be)}if(c.bearing){var ut=lM(c.bearing,O,fR);V.bearing=this.map.transform.bearing+tw(ut.amount,-179,179),aM(V,ut)}if(c.pitch){var Pt=lM(c.pitch,O,pR);V.pitch=this.map.transform.pitch+Pt.amount,aM(V,Pt)}if(V.zoom||V.bearing){var qt=c.pinchAround===void 0?c.around:c.pinchAround;V.around=qt?this.map.unproject(qt):this.map.getCenter()}return this.clear(),xI(V,{noMoveStart:!0})}}}]),i}();function aM(i,d){(!i.duration||i.duration=this.clickTolerance||this.map.emit(l.type,new fS(l.type,this.map,l))}},{key:"dblclick",value:function(l){return this.firePreventable(new fS(l.type,this.map,l))}},{key:"mouseover",value:function(l){this.map.emit(l.type,new fS(l.type,this.map,l))}},{key:"mouseout",value:function(l){this.map.emit(l.type,new fS(l.type,this.map,l))}},{key:"touchstart",value:function(l){return this.firePreventable(new uR(l.type,this.map,l))}},{key:"touchmove",value:function(l){this.map.emit(l.type,new uR(l.type,this.map,l))}},{key:"touchend",value:function(l){this.map.emit(l.type,new uR(l.type,this.map,l))}},{key:"touchcancel",value:function(l){this.map.emit(l.type,new uR(l.type,this.map,l))}},{key:"firePreventable",value:function(l){if(this.map.emit(l.type,l),l.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),i}(),gR,mR=0,C6=2,w6=(gR={},(0,pn.Z)(gR,mR,1),(0,pn.Z)(gR,C6,2),gR);function Iz(i,d){var l=w6[d];return i.buttons===void 0||(i.buttons&l)!==l}var S6=function(){function i(d){(0,vt.Z)(this,i),this.reset(),this.clickTolerance=d.clickTolerance||1}return(0,Te.Z)(i,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(l,c){if(!this.lastPoint){var a=m1.mouseButton(l);this.correctButton(l,a)&&(this.lastPoint=c,this.eventButton=a)}}},{key:"mousemoveWindow",value:function(l,c){var a=this.lastPoint;if(a){if(l.preventDefault(),Iz(l,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(a)Rz?c.wheelZoomRate:c.defaultZoomRate,y=kz/(1+Math.exp(-Math.abs(c.delta*p)));c.delta<0&&y!==0&&(y=1/y);var w=typeof c.targetZoom=="number"?a.zoomScale(c.targetZoom):a.scale;c.targetZoom=Math.min(a.maxZoom,Math.max(a.minZoom,a.scaleZoom(w*y))),c.type==="wheel"&&(c.startZoom=a.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var O=typeof c.targetZoom=="number"?c.targetZoom:a.zoom,V=c.startZoom,he=c.easing,be=!1,ut;if(c.type==="wheel"&&V&&he){var Pt=Math.min((nw()-c.lastWheelEventTime)/200,1),qt=he(Pt);ut=Qx(V,O,qt),Pt<1?c.frameId||(c.frameId=!0):be=!0}else ut=O,be=!0;return c.active=!0,be&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!be,zoomDelta:ut-a.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=d,this.el=d.getCanvasContainer(),this.handler=l,this.delta=0,this.defaultZoomRate=D6,this.wheelZoomRate=UG}return(0,Te.Z)(i,[{key:"setZoomRate",value:function(l){this.defaultZoomRate=l}},{key:"setWheelZoomRate",value:function(l){this.wheelZoomRate=l}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(l){this.isEnabled()||(this.enabled=!0,this.aroundCenter=l&&l.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(l){if(this.isEnabled()){var c=l.deltaMode===window.WheelEvent.DOM_DELTA_LINE?l.deltaY*40:l.deltaY,a=nw(),p=a-(this.lastWheelEventTime||0);this.lastWheelEventTime=a,c!==0&&c%Rz===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":p>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,l)):this.type||(this.type=Math.abs(p*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),l.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=l,this.delta-=c,this.active||this.start(l)),l.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(l){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(l)}},{key:"start",value:function(l){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var c=m1.mousePos(this.el,l);this.around=yv.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(l){var c=c6;if(this.prevEase){var a=this.prevEase,p=(nw()-a.start)/a.duration,y=a.easing(p+.01)-a.easing(p),w=.27/Math.sqrt(y*y+1e-4)*.01,O=Math.sqrt(.27*.27-w*w);c=u6(w,O,.25,1)}return this.prevEase={start:nw(),duration:l,easing:c},c}}]),i}(),Oz=I6,L6=function(){function i(d,l){(0,vt.Z)(this,i),this.clickZoom=d,this.tapZoom=l}return(0,Te.Z)(i,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),i}(),VG=function(){function i(d,l,c){(0,vt.Z)(this,i),this.el=d,this.mousePan=l,this.touchPan=c}return(0,Te.Z)(i,[{key:"enable",value:function(l){this.inertiaOptions=l||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),i}(),$G=function(){function i(d,l,c){(0,vt.Z)(this,i),this.pitchWithRotate=d.pitchWithRotate,this.mouseRotate=l,this.mousePitch=c}return(0,Te.Z)(i,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),i}(),WG=function(){function i(d,l,c,a){(0,vt.Z)(this,i),this.el=d,this.touchZoom=l,this.touchRotate=c,this.tapDragZoom=a,this.rotationDisabled=!1,this.enabled=!0}return(0,Te.Z)(i,[{key:"enable",value:function(l){this.touchZoom.enable(l),this.rotationDisabled||this.touchRotate.enable(l),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),i}();function M6(i,d){for(var l={},c=0;c=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function dee(i,d){if(i){if(typeof i=="string")return jG(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return jG(i,d)}}function jG(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=l.timeStamp),a.length===this.numTouches&&(this.centroid=vR(c),this.touches=M6(a,c)))}},{key:"touchmove",value:function(l,c,a){if(!(this.aborted||!this.centroid)){var p=M6(a,c);for(var y in this.touches)if(this.touches[y]){var w=this.touches[y],O=p[y];(!O||O.dist(w)>GG)&&(this.aborted=!0)}}}},{key:"touchend",value:function(l,c,a){if((!this.centroid||l.timeStamp-this.startTime>fee)&&(this.aborted=!0),a.length===0){var p=!this.aborted&&this.centroid;if(this.reset(),p)return p}}}]),i}(),Nz=function(){function i(d){(0,vt.Z)(this,i),this.singleTap=new pee(d),this.numTaps=d.numTaps,this.reset()}return(0,Te.Z)(i,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(l,c,a){this.singleTap.touchstart(l,c,a)}},{key:"touchmove",value:function(l,c,a){this.singleTap.touchmove(l,c,a)}},{key:"touchend",value:function(l,c,a){var p=this.singleTap.touchend(l,c,a);if(p){var y=l.timeStamp-this.lastTimeHG&&this.reset(),this.tapTime?a.length>0&&(this.swipePoint=c[0],this.swipeTouch=a[0].identifier):this.tap.touchstart(l,c,a))}},{key:"touchmove",value:function(l,c,a){if(!this.tapTime)this.tap.touchmove(l,c,a);else if(this.swipePoint){if(a[0].identifier!==this.swipeTouch)return;var p=c[0],y=p.y-this.swipePoint.y;return this.swipePoint=p,l.preventDefault(),this.active=!0,{zoomDelta:y/128}}}},{key:"touchend",value:function(l,c,a){if(this.tapTime)this.swipePoint&&a.length===0&&this.reset();else{var p=this.tap.touchend(l,c,a);p&&(this.tapTime=l.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),i}(),gee=function(){function i(){(0,vt.Z)(this,i),this.zoomIn=new Nz({numTouches:1,numTaps:2}),this.zoomOut=new Nz({numTouches:2,numTaps:1}),this.reset()}return(0,Te.Z)(i,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(l,c,a){this.zoomIn.touchstart(l,c,a),this.zoomOut.touchstart(l,c,a)}},{key:"touchmove",value:function(l,c,a){this.zoomIn.touchmove(l,c,a),this.zoomOut.touchmove(l,c,a)}},{key:"touchend",value:function(l,c,a){var p=this,y=this.zoomIn.touchend(l,c,a),w=this.zoomOut.touchend(l,c,a);if(y)return this.active=!0,l.preventDefault(),setTimeout(function(){return p.reset()},0),{cameraAnimation:function(V){return V.easeTo({duration:300,zoom:V.getZoom()+1,around:V.unproject(y)},{originalEvent:l})}};if(w)return this.active=!0,l.preventDefault(),setTimeout(function(){return p.reset()},0),{cameraAnimation:function(V){return V.easeTo({duration:300,zoom:V.getZoom()-1,around:V.unproject(w)},{originalEvent:l})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),i}(),JC=function(){function i(d){(0,vt.Z)(this,i),this.minTouches=1,this.clickTolerance=d.clickTolerance||1,this.reset()}return(0,Te.Z)(i,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new D0(0,0)}},{key:"touchstart",value:function(l,c,a){return this.calculateTransform(l,c,a)}},{key:"touchmove",value:function(l,c,a){if(this.active)return l.preventDefault(),this.calculateTransform(l,c,a)}},{key:"touchend",value:function(l,c,a){this.calculateTransform(l,c,a),this.active&&a.length0&&(this.active=!0);var p=M6(a,c),y=new D0(0,0),w=new D0(0,0),O=0;for(var V in p)if(p[V]){var he=p[V],be=this.touches[V];be&&(y._add(he),w._add(he.sub(be)),O++,p[V]=he)}if(this.touches=p,!(OMath.abs(i.x)}var KG=100,iw=function(i){(0,ze.Z)(l,i);var d=UT(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"reset",value:function(){Af((0,Tt.Z)(l.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(a){this.lastPoints=a,P6(a[0].sub(a[1]))&&(this.valid=!1)}},{key:"move",value:function(a,p,y){var w=a[0].sub(this.lastPoints[0]),O=a[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(w,O,y.timeStamp),!!this.valid){this.lastPoints=a,this.active=!0;var V=(w.y+O.y)/2,he=-.5;return{pitchDelta:V*he}}}},{key:"gestureBeginsVertically",value:function(a,p,y){if(this.valid!==void 0)return this.valid;var w=2,O=a.mag()>=w,V=p.mag()>=w;if(!(!O&&!V)){if(!O||!V)return this.firstMove===void 0&&(this.firstMove=y),y-this.firstMove0==p.y>0;return P6(a)&&P6(p)&&he}}}]),l}(uM);function Bm(i){var d=mx();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function mx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var R6=25;function k6(i,d){return i.angleWith(d)*180/Math.PI}var bR=function(i){(0,ze.Z)(l,i);var d=Bm(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"reset",value:function(){Af((0,Tt.Z)(l.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(a){this.startVector=this.vector=a[0].sub(a[1]),this.minDiameter=a[0].dist(a[1])}},{key:"move",value:function(a,p){var y=this.vector;if(this.vector=a[0].sub(a[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:k6(this.vector,y),pinchAround:p}}},{key:"isBelowThreshold",value:function(a){this.minDiameter=Math.min(this.minDiameter,a.mag());var p=Math.PI*this.minDiameter,y=R6/p*360,w=k6(a,this.startVector);return Math.abs(w)=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function F6(i,d){if(i){if(typeof i=="string")return zz(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return zz(i,d)}}function zz(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);lrb}).reduce(function(O,V){return O+(V-rb)/rb},0),w=y/(c+y)*100;return{loadTime:d,fullLoadTime:l,fps:p,percentDroppedFrames:w}}};function hM(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=e2(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function e2(i,d){if(i){if(typeof i=="string")return t2(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return t2(i,d)}}function t2(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var a=hM(c),p;try{for(a.s();!(p=a.n()).done;){var y=p.value;if(!y.cancelled&&(y.callback(l),this.cleared))break}}catch(w){a.e(w)}finally{a.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),i}(),dM=ow;function sw(i){var d=XG();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function XG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function SR(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}SR(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -6782,7 +6782,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var EB=-2,ZG=22,QQ=Qv.merge,UN=0,y$=60,cle={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:EB,maxZoom:ZG,minPitch:UN,maxPitch:y$,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},dle=function(i){(0,Ht.Z)(f,i);var v=c5(f);function f(m){var d;return(0,Zr.Z)(this,f),d=v.call(this,QQ({},cle,m)),(0,Na.Z)((0,mv.Z)(d),"renderTaskQueue",new v$),(0,Na.Z)((0,mv.Z)(d),"trackResize",!0),(0,Na.Z)((0,mv.Z)(d),"onWindowOnline",function(){d.update()}),(0,Na.Z)((0,mv.Z)(d),"onWindowResize",function(E){d.trackResize&&d.resize({originalEvent:E}).update()}),d.initContainer(),d.resize(),d.handlers=new jG((0,mv.Z)(d),d.options),typeof window!="undefined"&&(window.addEventListener("online",d.onWindowOnline,!1),window.addEventListener("resize",d.onWindowResize,!1),window.addEventListener("orientationchange",d.onWindowResize,!1)),d}return(0,gt.Z)(f,[{key:"resize",value:function(d){var E=this.containerDimensions(),M=E[0],B=E[1];this.transform.resize(M,B);var J=!this.moving;return J&&(this.stop(),this.emit("movestart",new Event("movestart",d)),this.emit("move",new Event("move",d))),this.emit("resize",new Event("resize",d)),J&&this.emit("moveend",new Event("moveend",d)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(d){return this.transform.locationPoint(CD.convert(d))}},{key:"unproject",value:function(d){return this.transform.pointLocation(O3.convert(d))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(d){this.transform.setMaxBounds(a$.convert(d))}},{key:"setStyle",value:function(d){}},{key:"setMinZoom",value:function(d){if(d=d==null?EB:d,d>=EB&&d<=this.transform.maxZoom)return this.transform.minZoom=d,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=d,this.getZoom()>d&&this.setZoom(d),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(d){if(d=d==null?UN:d,d=UN&&d<=this.transform.maxPitch)return this.transform.minPitch=d,this.getPitch()y$)throw new Error("maxPitch must be less than or equal to ".concat(y$));if(d>=this.transform.minPitch)return this.transform.maxPitch=d,this.getPitch()>d&&this.setPitch(d),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(d){this.transform.renderWorldCopies=!!d}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear(),this.handlers.destroy(),typeof window!="undefined"&&(window.removeEventListener("online",this.onWindowOnline,!1),window.removeEventListener("resize",this.onWindowResize,!1),window.removeEventListener("orientationchange",this.onWindowResize,!1))}},{key:"requestRenderFrame",value:function(d){return this.update(),this.renderTaskQueue.add(d)}},{key:"cancelRenderFrame",value:function(d){return this.renderTaskQueue.remove(d)}},{key:"triggerRepaint",value:function(){var d=this;this.frame||(this.frame=s$(function(E){$N.frame(E),d.frame=null,d.update(E)}))}},{key:"update",value:function(d){var E=this;this.frame||(this.frame=s$(function(M){$N.frame(M),E.frame=null,E.renderTaskQueue.run(d)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var d=this.container;d.classList.add("l7-map");var E=this.canvasContainer=Ov("div","l7-canvas-container",d);this.options.interactive&&E.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var d=0,E=0;return this.container&&(d=this.container.clientWidth||400,E=this.container.clientHeight||300),[d,E]}},{key:"resizeCanvas",value:function(d,E){var M=kg||1;this.canvas.width=M*d,this.canvas.height=M*E,this.canvas.style.width="".concat(d,"px"),this.canvas.style.height="".concat(E,"px")}}]),f}(kQ),hle=Qv.throttle,eee=function(){function i(v){var f=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"onHashChange",function(){var m=f.getCurrentHash();if(m.length>=3&&!m.some(function(E){return isNaN(+E)})){var d=f.map.dragRotate.isEnabled()&&f.map.touchZoomRotate.isEnabled()?+(m[3]||0):f.map.getBearing();return f.map.jumpTo({center:[+m[2],+m[1]],zoom:+m[0],bearing:d,pitch:+(m[4]||0)}),!0}return!1}),(0,Na.Z)(this,"getCurrentHash",function(){var m=window.location.hash.replace("#","");if(f.hashName){var d;return m.split("&").map(function(E){return E.split("=")}).forEach(function(E){E[0]===f.hashName&&(d=E)}),(d&&d[1]||"").split("/")}return m.split("/")}),(0,Na.Z)(this,"updateHashUnthrottled",function(){var m=f.getHashString();try{window.history.replaceState(window.history.state,"",m)}catch(d){}}),this.hashName=v&&encodeURIComponent(v),this.updateHash=hle(this.updateHashUnthrottled,30*1e3/100)}return(0,gt.Z)(i,[{key:"addTo",value:function(f){return this.map=f,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(f){var m=this.map.getCenter(),d=Math.round(this.map.getZoom()*100)/100,E=Math.ceil((d*Math.LN2+Math.log(512/360/.5))/Math.LN10),M=Math.pow(10,E),B=Math.round(m.lng*M)/M,J=Math.round(m.lat*M)/M,ue=this.map.getBearing(),Ze=this.map.getPitch(),st="";if(f?st+="/".concat(B,"/").concat(J,"/").concat(d):st+="".concat(d,"/").concat(J,"/").concat(B),(ue||Ze)&&(st+="/".concat(Math.round(ue*10)/10)),Ze&&(st+="/".concat(Math.round(Ze))),this.hashName){var Fr=this.hashName,Go=!1,Ta=window.location.hash.slice(1).split("&").map(function(eu){var kd=eu.split("=")[0];return kd===Fr?(Go=!0,"".concat(kd,"=").concat(st)):eu}).filter(function(eu){return eu});return Go||Ta.push("".concat(Fr,"=").concat(st)),"#".concat(Ta.join("&"))}return"#".concat(st)}}]),i}(),tee=eee;function nee(i){var v=HG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function HG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function ree(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}ree(`.l7-map { +`);var CI=-2,V6=22,Vz=ks.merge,BE=0,fM=60,YG={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:CI,maxZoom:V6,minPitch:BE,maxPitch:fM,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},qG=function(i){(0,ze.Z)(l,i);var d=sw(l);function l(c){var a;return(0,vt.Z)(this,l),a=d.call(this,Vz({},YG,c)),(0,pn.Z)((0,eo.Z)(a),"renderTaskQueue",new dM),(0,pn.Z)((0,eo.Z)(a),"trackResize",!0),(0,pn.Z)((0,eo.Z)(a),"onWindowOnline",function(){a.update()}),(0,pn.Z)((0,eo.Z)(a),"onWindowResize",function(p){a.trackResize&&a.resize({originalEvent:p}).update()}),a.initContainer(),a.resize(),a.handlers=new z6((0,eo.Z)(a),a.options),typeof window!="undefined"&&(window.addEventListener("online",a.onWindowOnline,!1),window.addEventListener("resize",a.onWindowResize,!1),window.addEventListener("orientationchange",a.onWindowResize,!1)),a}return(0,Te.Z)(l,[{key:"resize",value:function(a){var p=this.containerDimensions(),y=p[0],w=p[1];this.transform.resize(y,w);var O=!this.moving;return O&&(this.stop(),this.emit("movestart",new Event("movestart",a)),this.emit("move",new Event("move",a))),this.emit("resize",new Event("resize",a)),O&&this.emit("moveend",new Event("moveend",a)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(a){return this.transform.locationPoint(yv.convert(a))}},{key:"unproject",value:function(a){return this.transform.pointLocation(D0.convert(a))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(a){this.transform.setMaxBounds(nM.convert(a))}},{key:"setStyle",value:function(a){}},{key:"setMinZoom",value:function(a){if(a=a==null?CI:a,a>=CI&&a<=this.transform.maxZoom)return this.transform.minZoom=a,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=a,this.getZoom()>a&&this.setZoom(a),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(a){if(a=a==null?BE:a,a=BE&&a<=this.transform.maxPitch)return this.transform.minPitch=a,this.getPitch()fM)throw new Error("maxPitch must be less than or equal to ".concat(fM));if(a>=this.transform.minPitch)return this.transform.maxPitch=a,this.getPitch()>a&&this.setPitch(a),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(a){this.transform.renderWorldCopies=!!a}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear(),this.handlers.destroy(),typeof window!="undefined"&&(window.removeEventListener("online",this.onWindowOnline,!1),window.removeEventListener("resize",this.onWindowResize,!1),window.removeEventListener("orientationchange",this.onWindowResize,!1))}},{key:"requestRenderFrame",value:function(a){return this.update(),this.renderTaskQueue.add(a)}},{key:"cancelRenderFrame",value:function(a){return this.renderTaskQueue.remove(a)}},{key:"triggerRepaint",value:function(){var a=this;this.frame||(this.frame=tM(function(p){FE.frame(p),a.frame=null,a.update(p)}))}},{key:"update",value:function(a){var p=this;this.frame||(this.frame=tM(function(y){FE.frame(y),p.frame=null,p.renderTaskQueue.run(a)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var a=this.container;a.classList.add("l7-map");var p=this.canvasContainer=va("div","l7-canvas-container",a);this.options.interactive&&p.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var a=0,p=0;return this.container&&(a=this.container.clientWidth||400,p=this.container.clientHeight||300),[a,p]}},{key:"resizeCanvas",value:function(a,p){var y=Sr||1;this.canvas.width=y*a,this.canvas.height=y*p,this.canvas.style.width="".concat(a,"px"),this.canvas.style.height="".concat(p,"px")}}]),l}(wz),JG=ks.throttle,$z=function(){function i(d){var l=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"onHashChange",function(){var c=l.getCurrentHash();if(c.length>=3&&!c.some(function(p){return isNaN(+p)})){var a=l.map.dragRotate.isEnabled()&&l.map.touchZoomRotate.isEnabled()?+(c[3]||0):l.map.getBearing();return l.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:a,pitch:+(c[4]||0)}),!0}return!1}),(0,pn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(l.hashName){var a;return c.split("&").map(function(p){return p.split("=")}).forEach(function(p){p[0]===l.hashName&&(a=p)}),(a&&a[1]||"").split("/")}return c.split("/")}),(0,pn.Z)(this,"updateHashUnthrottled",function(){var c=l.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(a){}}),this.hashName=d&&encodeURIComponent(d),this.updateHash=JG(this.updateHashUnthrottled,30*1e3/100)}return(0,Te.Z)(i,[{key:"addTo",value:function(l){return this.map=l,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(l){var c=this.map.getCenter(),a=Math.round(this.map.getZoom()*100)/100,p=Math.ceil((a*Math.LN2+Math.log(512/360/.5))/Math.LN10),y=Math.pow(10,p),w=Math.round(c.lng*y)/y,O=Math.round(c.lat*y)/y,V=this.map.getBearing(),he=this.map.getPitch(),be="";if(l?be+="/".concat(w,"/").concat(O,"/").concat(a):be+="".concat(a,"/").concat(O,"/").concat(w),(V||he)&&(be+="/".concat(Math.round(V*10)/10)),he&&(be+="/".concat(Math.round(he))),this.hashName){var ut=this.hashName,Pt=!1,qt=window.location.hash.slice(1).split("&").map(function(En){var qn=En.split("=")[0];return qn===ut?(Pt=!0,"".concat(qn,"=").concat(be)):En}).filter(function(En){return En});return Pt||qt.push("".concat(ut,"=").concat(be)),"#".concat(qt.join("&"))}return"#".concat(be)}}]),i}(),Wz=$z;function Zz(i){var d=$6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function $6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function jz(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}jz(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -6882,75 +6882,75 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`),function(){if(typeof window.CustomEvent=="function")return!1;function i(v,f){f=f||{bubbles:!1,cancelable:!1,detail:void 0};var m=document.createEvent("CustomEvent");return m.initCustomEvent(v,f.bubbles,f.cancelable,f.detail),m}i.prototype=window.Event.prototype,window.CustomEvent=i}();var _$=-2,TB=22,VN=Qv.merge,b$=0,Ij=60,jN={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:_$,maxZoom:TB,minPitch:b$,maxPitch:Ij,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},fle=function(i){(0,Ht.Z)(f,i);var v=nee(f);function f(m){var d;(0,Zr.Z)(this,f),d=v.call(this,VN({},jN,m)),(0,Na.Z)((0,mv.Z)(d),"renderTaskQueue",new v$),(0,Na.Z)((0,mv.Z)(d),"trackResize",!0),(0,Na.Z)((0,mv.Z)(d),"onWindowOnline",function(){d.update()}),(0,Na.Z)((0,mv.Z)(d),"onWindowResize",function(M){d.trackResize&&d.resize({originalEvent:M}).update()}),d.initContainer(),d.resize(),d.handlers=new jG((0,mv.Z)(d),d.options),typeof window!="undefined"&&(window.addEventListener("online",d.onWindowOnline,!1),window.addEventListener("resize",d.onWindowResize,!1),window.addEventListener("orientationchange",d.onWindowResize,!1));var E=typeof m.hash=="string"&&m.hash||void 0;return m.hash&&(d.hash=new tee(E).addTo((0,mv.Z)(d))),(!d.hash||!d.hash.onHashChange())&&(d.jumpTo({center:m.center,zoom:m.zoom,bearing:m.bearing,pitch:m.pitch}),m.bounds&&(d.resize(),d.fitBounds(m.bounds,VN({},m.fitBoundsOptions,{duration:0})))),d}return(0,gt.Z)(f,[{key:"resize",value:function(d){var E=this.containerDimensions(),M=(0,hu.Z)(E,2),B=M[0],J=M[1];this.transform.resize(B,J);var ue=!this.moving;return ue&&(this.stop(),this.emit("movestart",new window.CustomEvent("movestart",d)),this.emit("move",new window.CustomEvent("move",d))),this.emit("resize",new window.CustomEvent("resize",d)),ue&&this.emit("moveend",new window.CustomEvent("moveend",d)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(d){return this.transform.locationPoint(CD.convert(d))}},{key:"unproject",value:function(d){return this.transform.pointLocation(O3.convert(d))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(d){this.transform.setMaxBounds(a$.convert(d))}},{key:"setStyle",value:function(d){}},{key:"setMinZoom",value:function(d){if(d=d==null?_$:d,d>=_$&&d<=this.transform.maxZoom)return this.transform.minZoom=d,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=d,this.getZoom()>d&&this.setZoom(d),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(d){if(d=d==null?b$:d,d=b$&&d<=this.transform.maxPitch)return this.transform.minPitch=d,this.getPitch()Ij)throw new Error("maxPitch must be less than or equal to ".concat(Ij));if(d>=this.transform.minPitch)return this.transform.maxPitch=d,this.getPitch()>d&&this.setPitch(d),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(d){this.transform.renderWorldCopies=!!d}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear(),this.handlers.destroy(),typeof window!="undefined"&&(window.removeEventListener("online",this.onWindowOnline,!1),window.removeEventListener("resize",this.onWindowResize,!1),window.removeEventListener("orientationchange",this.onWindowResize,!1))}},{key:"requestRenderFrame",value:function(d){return this.update(),this.renderTaskQueue.add(d)}},{key:"cancelRenderFrame",value:function(d){return this.renderTaskQueue.remove(d)}},{key:"triggerRepaint",value:function(){var d=this;this.frame||(this.frame=s$(function(E){$N.frame(E),d.frame=null,d.update(E)}))}},{key:"update",value:function(d){var E=this;this.frame||(this.frame=s$(function(M){$N.frame(M),E.frame=null,E.renderTaskQueue.run(d)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var d=this.container;d.classList.add("l7-map");var E=this.canvasContainer=Ov("div","l7-canvas-container",d);this.options.interactive&&E.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var d=0,E=0;return this.container&&(d=this.container.clientWidth,E=this.container.clientHeight,d=d===0?400:d,E=E===0?300:E),[d,E]}}]),f}(kQ),x$=function(){function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"xzReg",-Math.PI*.6),(0,Na.Z)(this,"yReg",Math.PI*.2),(0,Na.Z)(this,"earthCameraRadius",200),(0,Na.Z)(this,"earthCameraZoom",1),(0,Na.Z)(this,"cameraPosition",LP()),(0,Na.Z)(this,"projectionMatrix",Jx()),(0,Na.Z)(this,"modelMatrix",Jx()),(0,Na.Z)(this,"viewMatrix",Jx()),(0,Na.Z)(this,"viewProjectionMatrix",Jx()),(0,Na.Z)(this,"ViewProjectionMatrixUncentered",Jx()),(0,Na.Z)(this,"viewUncenteredMatrix",Jx())}return(0,gt.Z)(i,[{key:"syncWithMapCamera",value:function(f){var m=f.viewportHeight,d=m===void 0?1:m,E=f.viewportWidth,M=E===void 0?1:E,B=M/d,J=.1,ue=1e4,Ze=20;U0(this.projectionMatrix,Ze,B,J,ue);var st=this.earthCameraRadius*Math.cos(this.xzReg),Fr=this.earthCameraRadius*Math.sin(this.xzReg),Go=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=YA(st,Go,Fr),gP(this.cameraPosition,this.cameraPosition),JX(this.cameraPosition,this.cameraPosition,YA(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),VR(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var Ta=LP();M3(Ta,this.cameraPosition,YA(0,1,0));var eu=YA(0,1,0);M3(eu,Ta,this.cameraPosition);var kd=YA(0,0,0);ny(this.viewMatrix,this.cameraPosition,kd,eu),this.viewUncenteredMatrix=LA(this.viewMatrix),AS(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),AS(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(f){this.xzReg+=f*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(f){this.yReg+=f*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(f){this.earthCameraZoom+=f,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(f,m){return this.viewport.projectFlat(f,m)}}]),i}(),lL=["id","style","rotation"],iee,Pj;function H8(i){var v=GG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function GG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var w$={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},ple=12,gle=(iee=(0,Rg.b2)(),iee(Pj=function(i){(0,Ht.Z)(f,i);var v=H8(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;MMath.abs(B.originalEvent.movementY)?B.originalEvent.movementX>0?m.viewport.rotateY(ue):B.originalEvent.movementX<0&&m.viewport.rotateY(-ue):B.originalEvent.movementY>0?m.viewport.rotateX(ue):B.originalEvent.movementY<0&&m.viewport.rotateX(-ue));var Ze=m.config.offsetCoordinate,st=Ze===void 0?!0:Ze;m.viewport.syncWithMapCamera({viewportHeight:m.map.transform.height,viewportWidth:m.map.transform.width}),m.viewport.getZoom()>ple&&st?m.coordinateSystemService.setCoordinateSystem(RS.LNGLAT_OFFSET):m.coordinateSystemService.setCoordinateSystem(RS.LNGLAT),m.cameraChangedCallback(m.viewport)}),m}return(0,gt.Z)(f,[{key:"lngLatToMercator",value:function(d,E){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(d,E,M,B,J){throw new Error("Method not implemented.")}},{key:"on",value:function(d,E){BI.indexOf(d)!==-1?this.eventEmitter.on(d,E):this.map.on(w$[d]||d,E)}},{key:"off",value:function(d,E){this.map.off(w$[d]||d,E),this.eventEmitter.off(d,E)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var d=this.map.transform;return[d.width,d.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M,B,J,ue,Ze,st,Fr,Go;return Pv().wrap(function(eu){for(;;)switch(eu.prev=eu.next){case 0:M=this.config,B=M.id,J=B===void 0?"map":B,ue=M.style,Ze=ue===void 0?"light":ue,st=M.rotation,Fr=st===void 0?0:st,Go=(0,q3.Z)(M,lL),this.viewport=new x$,this.$mapContainer=this.creatMapContainer(J),this.map=new dle((0,vn.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ze),bearing:Fr},Go)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return eu.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"destroy",value:function(){var d;(d=this.$mapContainer)===null||d===void 0||(d=d.parentNode)===null||d===void 0||d.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(d){for(var E,M=arguments.length,B=new Array(M>1?M-1:0),J=1;J1?M-1:0),J=1;J1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},M=this.lngLatToMercator(d,0),B=M.x,J=M.y;return[B-E.x,J-E.y]}},{key:"lngLatToMercator",value:function(d,E){var M=mk.fromLngLat(d,E),B=M.x,J=B===void 0?0:B,ue=M.y,Ze=ue===void 0?0:ue,st=M.z,Fr=st===void 0?0:st;return{x:J,y:Ze,z:Fr}}},{key:"getModelMatrix",value:function(d,E,M){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ue=mk.fromLngLat(d,E),Ze=ue.meterInMercatorCoordinateUnits(),st=Jx();return h3(st,st,YA(ue.x-J.x,ue.y-J.y,ue.z||0-J.z)),QT(st,st,YA(Ze*B[0],-Ze*B[1],Ze*B[2])),a3(st,st,M[0]),X1(st,st,M[1]),zD(st,st,M[2]),st}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M=this,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv,y1,fy;return Pv().wrap(function(ey){for(;;)switch(ey.prev=ey.next){case 0:B=this.config,J=B.id,ue=J===void 0?"map":J,Ze=B.style,st=Ze===void 0?"light":Ze,Fr=B.rotation,Go=Fr===void 0?0:Fr,Ta=B.mapInstance,eu=B.version,kd=eu===void 0?"DEFAULTMAP":eu,em=B.mapSize,B0=em===void 0?1e4:em,vv=B.interactive,y1=vv===void 0?!0:vv,fy=(0,q3.Z)(B,C$),this.viewport=new LN,this.version=kd,this.simpleMapCoord.setSize(B0),kd==="SIMPLE"&&fy.center&&(fy.center=this.simpleMapCoord.unproject(fy.center)),Ta?(this.map=Ta,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ue),this.map=new fle((0,vn.Z)({container:this.$mapContainer,style:this.getMapStyleValue(st),bearing:Go},fy))),this.map.on("load",function(){M.handleCameraChanged()}),y1&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){M.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return ey.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"exportMap",value:function(d){var E=this.map.getCanvas(),M=d==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}}]),f}(pk))||oee);function S$(i){var v=yle();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function yle(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var E$=function(i){(0,Ht.Z)(f,i);var v=S$(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return XG}}]),f}(YO),_le=l(17369),T$=l.n(_le),d5=function(){function i(){(0,Zr.Z)(this,i)}return(0,gt.Z)(i,[{key:"syncWithMapCamera",value:function(f){var m=f.center,d=f.zoom,E=f.pitch,M=f.bearing,B=f.viewportHeight,J=f.viewportWidth;this.viewport=new JV({width:J,height:B,longitude:m&&m[0],latitude:m&&m[1],zoom:d,pitch:E,bearing:M})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(f,m){return this.viewport.projectFlat(f,m)}}]),i}(),see=["id","attributionControl","style","token","rotation","mapInstance"],A$,aee;function ble(i){var v=YG();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function YG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function xle(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}xle(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=T$();var DB=0,qG="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",G8=(A$=(0,Rg.b2)(),A$(aee=function(i){(0,Ht.Z)(f,i);var v=ble(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},M=this.lngLatToMercator(d,0),B=M.x,J=M.y;return[B-E.x,J-E.y]}},{key:"lngLatToMercator",value:function(d,E){var M=window.mapboxgl.MercatorCoordinate.fromLngLat(d,E),B=M.x,J=B===void 0?0:B,ue=M.y,Ze=ue===void 0?0:ue,st=M.z,Fr=st===void 0?0:st;return{x:J,y:Ze,z:Fr}}},{key:"getModelMatrix",value:function(d,E,M){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ue=window.mapboxgl.MercatorCoordinate.fromLngLat(d,E),Ze=ue.meterInMercatorCoordinateUnits(),st=Jx();return h3(st,st,YA(ue.x-J.x,ue.y-J.y,ue.z||0-J.z)),QT(st,st,YA(Ze*B[0],-Ze*B[1],Ze*B[2])),a3(st,st,M[0]),X1(st,st,M[1]),zD(st,st,M[2]),st}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M=this,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em,B0,vv;return Pv().wrap(function(fy){for(;;)switch(fy.prev=fy.next){case 0:B=this.config,J=B.id,ue=J===void 0?"map":J,Ze=B.attributionControl,st=Ze===void 0?!1:Ze,Fr=B.style,Go=Fr===void 0?"light":Fr,Ta=B.token,eu=Ta===void 0?qG:Ta,kd=B.rotation,em=kd===void 0?0:kd,B0=B.mapInstance,vv=(0,q3.Z)(B,see),this.viewport=new d5,!B0&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),eu===qG&&Go!=="blank"&&!window.mapboxgl.accessToken&&!B0&&console.warn(this.configService.getSceneWarninfo("MapToken")),!B0&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=eu),B0?(this.map=B0,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ue),this.map=new window.mapboxgl.Map((0,vn.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Go),attributionControl:st,bearing:em},vv))),this.map.on("load",function(){M.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return fy.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"destroy",value:function(){var d;(d=this.$mapContainer)===null||d===void 0||(d=d.parentNode)===null||d===void 0||d.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(d){for(var E,M=arguments.length,B=new Array(M>1?M-1:0),J=1;J1?M-1:0),J=1;J=pM&&a<=this.transform.maxZoom)return this.transform.minZoom=a,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=a,this.getZoom()>a&&this.setZoom(a),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(a){if(a=a==null?gM:a,a=gM&&a<=this.transform.maxPitch)return this.transform.minPitch=a,this.getPitch()ER)throw new Error("maxPitch must be less than or equal to ".concat(ER));if(a>=this.transform.minPitch)return this.transform.maxPitch=a,this.getPitch()>a&&this.setPitch(a),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(a){this.transform.renderWorldCopies=!!a}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear(),this.handlers.destroy(),typeof window!="undefined"&&(window.removeEventListener("online",this.onWindowOnline,!1),window.removeEventListener("resize",this.onWindowResize,!1),window.removeEventListener("orientationchange",this.onWindowResize,!1))}},{key:"requestRenderFrame",value:function(a){return this.update(),this.renderTaskQueue.add(a)}},{key:"cancelRenderFrame",value:function(a){return this.renderTaskQueue.remove(a)}},{key:"triggerRepaint",value:function(){var a=this;this.frame||(this.frame=tM(function(p){FE.frame(p),a.frame=null,a.update(p)}))}},{key:"update",value:function(a){var p=this;this.frame||(this.frame=tM(function(y){FE.frame(y),p.frame=null,p.renderTaskQueue.run(a)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var a=this.container;a.classList.add("l7-map");var p=this.canvasContainer=va("div","l7-canvas-container",a);this.options.interactive&&p.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var a=0,p=0;return this.container&&(a=this.container.clientWidth,p=this.container.clientHeight,a=a===0?400:a,p=p===0?300:p),[a,p]}}]),l}(wz),mM=function(){function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"xzReg",-Math.PI*.6),(0,pn.Z)(this,"yReg",Math.PI*.2),(0,pn.Z)(this,"earthCameraRadius",200),(0,pn.Z)(this,"earthCameraZoom",1),(0,pn.Z)(this,"cameraPosition",T_()),(0,pn.Z)(this,"projectionMatrix",Nu()),(0,pn.Z)(this,"modelMatrix",Nu()),(0,pn.Z)(this,"viewMatrix",Nu()),(0,pn.Z)(this,"viewProjectionMatrix",Nu()),(0,pn.Z)(this,"ViewProjectionMatrixUncentered",Nu()),(0,pn.Z)(this,"viewUncenteredMatrix",Nu())}return(0,Te.Z)(i,[{key:"syncWithMapCamera",value:function(l){var c=l.viewportHeight,a=c===void 0?1:c,p=l.viewportWidth,y=p===void 0?1:p,w=y/a,O=.1,V=1e4,he=20;Di(this.projectionMatrix,he,w,O,V);var be=this.earthCameraRadius*Math.cos(this.xzReg),ut=this.earthCameraRadius*Math.sin(this.xzReg),Pt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=Km(be,Pt,ut),h_(this.cameraPosition,this.cameraPosition),UF(this.cameraPosition,this.cameraPosition,Km(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),B2(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var qt=T_();T0(qt,this.cameraPosition,Km(0,1,0));var En=Km(0,1,0);T0(En,qt,this.cameraPosition);var qn=Km(0,0,0);Zs(this.viewMatrix,this.cameraPosition,qn,En),this.viewUncenteredMatrix=Kg(this.viewMatrix),wf(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),wf(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(l){this.xzReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(l){this.yReg+=l*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(l){this.earthCameraZoom+=l,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),i}(),ib=["id","style","rotation"],Hz,AR;function WT(i){var d=W6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function W6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var vM={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},eK=12,tK=(Hz=(0,xr.b2)(),Hz(AR=function(i){(0,ze.Z)(l,i);var d=WT(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;yMath.abs(w.originalEvent.movementY)?w.originalEvent.movementX>0?c.viewport.rotateY(V):w.originalEvent.movementX<0&&c.viewport.rotateY(-V):w.originalEvent.movementY>0?c.viewport.rotateX(V):w.originalEvent.movementY<0&&c.viewport.rotateX(-V));var he=c.config.offsetCoordinate,be=he===void 0?!0:he;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>eK&&be?c.coordinateSystemService.setCoordinateSystem(Df.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Df.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,Te.Z)(l,[{key:"lngLatToMercator",value:function(a,p){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(a,p,y,w,O){throw new Error("Method not implemented.")}},{key:"on",value:function(a,p){R1.indexOf(a)!==-1?this.eventEmitter.on(a,p):this.map.on(vM[a]||a,p)}},{key:"off",value:function(a,p){this.map.off(vM[a]||a,p),this.eventEmitter.off(a,p)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var a=this.map.transform;return[a.width,a.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y,w,O,V,he,be,ut,Pt;return mo().wrap(function(En){for(;;)switch(En.prev=En.next){case 0:y=this.config,w=y.id,O=w===void 0?"map":w,V=y.style,he=V===void 0?"light":V,be=y.rotation,ut=be===void 0?0:be,Pt=(0,W0.Z)(y,ib),this.viewport=new mM,this.$mapContainer=this.creatMapContainer(O),this.map=new qG((0,Xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(he),bearing:ut},Pt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return En.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"destroy",value:function(){var a;(a=this.$mapContainer)===null||a===void 0||(a=a.parentNode)===null||a===void 0||a.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(a){for(var p,y=arguments.length,w=new Array(y>1?y-1:0),O=1;O1?y-1:0),O=1;O1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},y=this.lngLatToMercator(a,0),w=y.x,O=y.y;return[w-p.x,O-p.y]}},{key:"lngLatToMercator",value:function(a,p){var y=dS.fromLngLat(a,p),w=y.x,O=w===void 0?0:w,V=y.y,he=V===void 0?0:V,be=y.z,ut=be===void 0?0:be;return{x:O,y:he,z:ut}}},{key:"getModelMatrix",value:function(a,p,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},V=dS.fromLngLat(a,p),he=V.meterInMercatorCoordinateUnits(),be=Nu();return c0(be,be,Km(V.x-O.x,V.y-O.y,V.z||0-O.z)),Xg(be,be,Km(he*w[0],-he*w[1],he*w[2])),i0(be,be,y[0]),Ps(be,be,y[1]),kv(be,be,y[2]),be}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y=this,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to,ts,Qs;return mo().wrap(function(Us){for(;;)switch(Us.prev=Us.next){case 0:w=this.config,O=w.id,V=O===void 0?"map":O,he=w.style,be=he===void 0?"light":he,ut=w.rotation,Pt=ut===void 0?0:ut,qt=w.mapInstance,En=w.version,qn=En===void 0?"DEFAULTMAP":En,Zr=w.mapSize,Si=Zr===void 0?1e4:Zr,to=w.interactive,ts=to===void 0?!0:to,Qs=(0,W0.Z)(w,yM),this.viewport=new DE,this.version=qn,this.simpleMapCoord.setSize(Si),qn==="SIMPLE"&&Qs.center&&(Qs.center=this.simpleMapCoord.unproject(Qs.center)),qt?(this.map=qt,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(V),this.map=new QG((0,Xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(be),bearing:Pt},Qs))),this.map.on("load",function(){y.handleCameraChanged()}),ts&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){y.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return Us.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"exportMap",value:function(a){var p=this.map.getCanvas(),y=a==="jpg"?p==null?void 0:p.toDataURL("image/jpeg"):p==null?void 0:p.toDataURL("image/png");return y}}]),l}(cS))||Gz);function _M(i){var d=iK();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function iK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var bM=function(i){(0,ze.Z)(l,i);var d=_M(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return j6}}]),l}(HC),oK=x(17369),xM=x.n(oK),aw=function(){function i(){(0,vt.Z)(this,i)}return(0,Te.Z)(i,[{key:"syncWithMapCamera",value:function(l){var c=l.center,a=l.zoom,p=l.pitch,y=l.bearing,w=l.viewportHeight,O=l.viewportWidth;this.viewport=new K5({width:O,height:w,longitude:c&&c[0],latitude:c&&c[1],zoom:a,pitch:p,bearing:y})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(l,c){return this.viewport.projectFlat(l,c)}}]),i}(),Kz=["id","attributionControl","style","token","rotation","mapInstance"],CM,Xz;function sK(i){var d=H6();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function H6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function aK(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}aK(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=xM();var EI=0,G6="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",ZT=(CM=(0,xr.b2)(),CM(Xz=function(i){(0,ze.Z)(l,i);var d=sK(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},y=this.lngLatToMercator(a,0),w=y.x,O=y.y;return[w-p.x,O-p.y]}},{key:"lngLatToMercator",value:function(a,p){var y=window.mapboxgl.MercatorCoordinate.fromLngLat(a,p),w=y.x,O=w===void 0?0:w,V=y.y,he=V===void 0?0:V,be=y.z,ut=be===void 0?0:be;return{x:O,y:he,z:ut}}},{key:"getModelMatrix",value:function(a,p,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},V=window.mapboxgl.MercatorCoordinate.fromLngLat(a,p),he=V.meterInMercatorCoordinateUnits(),be=Nu();return c0(be,be,Km(V.x-O.x,V.y-O.y,V.z||0-O.z)),Xg(be,be,Km(he*w[0],-he*w[1],he*w[2])),i0(be,be,y[0]),Ps(be,be,y[1]),kv(be,be,y[2]),be}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y=this,w,O,V,he,be,ut,Pt,qt,En,qn,Zr,Si,to;return mo().wrap(function(Qs){for(;;)switch(Qs.prev=Qs.next){case 0:w=this.config,O=w.id,V=O===void 0?"map":O,he=w.attributionControl,be=he===void 0?!1:he,ut=w.style,Pt=ut===void 0?"light":ut,qt=w.token,En=qt===void 0?G6:qt,qn=w.rotation,Zr=qn===void 0?0:qn,Si=w.mapInstance,to=(0,W0.Z)(w,Kz),this.viewport=new aw,!Si&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),En===G6&&Pt!=="blank"&&!window.mapboxgl.accessToken&&!Si&&console.warn(this.configService.getSceneWarninfo("MapToken")),!Si&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=En),Si?(this.map=Si,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(V),this.map=new window.mapboxgl.Map((0,Xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Pt),attributionControl:be,bearing:Zr},to))),this.map.on("load",function(){y.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return Qs.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"destroy",value:function(){var a;(a=this.$mapContainer)===null||a===void 0||(a=a.parentNode)===null||a===void 0||a.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(a){for(var p,y=arguments.length,w=new Array(y>1?y-1:0),O=1;O1?y-1:0),O=1;O.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=ZN();var cee=0,dee=(Oj=(0,Rg.b2)(),Oj(eK=function(i){(0,Ht.Z)(f,i);var v=I$(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},M=this.lngLatToMercator(d,0),B=M.x,J=M.y;return[B-E.x,J-E.y]}},{key:"lngLatToMercator",value:function(d,E){var M=window.maplibregl.MercatorCoordinate.fromLngLat(d,E),B=M.x,J=B===void 0?0:B,ue=M.y,Ze=ue===void 0?0:ue,st=M.z,Fr=st===void 0?0:st;return{x:J,y:Ze,z:Fr}}},{key:"getModelMatrix",value:function(d,E,M){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ue=window.maplibregl.MercatorCoordinate.fromLngLat(d,E),Ze=ue.meterInMercatorCoordinateUnits(),st=Jx();return h3(st,st,YA(ue.x-J.x,ue.y-J.y,ue.z||0-J.z)),QT(st,st,YA(Ze*B[0],-Ze*B[1],Ze*B[2])),a3(st,st,M[0]),X1(st,st,M[1]),zD(st,st,M[2]),st}},{key:"init",value:function(){var m=(0,v_.Z)(Pv().mark(function E(){var M=this,B,J,ue,Ze,st,Fr,Go,Ta,eu,kd,em;return Pv().wrap(function(vv){for(;;)switch(vv.prev=vv.next){case 0:B=this.config,J=B.id,ue=J===void 0?"map":J,Ze=B.attributionControl,st=Ze===void 0?!1:Ze,Fr=B.style,Go=Fr===void 0?"light":Fr,Ta=B.rotation,eu=Ta===void 0?0:Ta,kd=B.mapInstance,em=(0,q3.Z)(B,QG),this.viewport=new d5,!kd&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),kd?(this.map=kd,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ue),this.map=new window.maplibregl.Map((0,vn.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Go),attributionControl:st,bearing:eu},em))),this.map.on("load",function(){M.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return vv.stop()}},E,this)}));function d(){return m.apply(this,arguments)}return d}()},{key:"destroy",value:function(){var d;(d=this.$mapContainer)===null||d===void 0||(d=d.parentNode)===null||d===void 0||d.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(d){for(var E,M=arguments.length,B=new Array(M>1?M-1:0),J=1;J1?M-1:0),J=1;J.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;-webkit-box-sizing:border-box;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.maplibregl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.maplibregl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{-ms-flex-item-align:center;align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{-webkit-animation:maplibregl-user-location-dot-pulse 2s infinite;animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35);-webkit-box-sizing:border-box;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@-webkit-keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}70%{opacity:0;-webkit-transform:scale(3);transform:scale(3)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.4);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1.4em;inset:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;-webkit-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;-webkit-transition:opacity .05s;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`),window.maplibregl=$E();var Jz=0,Qz=(IR=(0,xr.b2)(),IR(Y6=function(i){(0,ze.Z)(l,i);var d=SM(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},y=this.lngLatToMercator(a,0),w=y.x,O=y.y;return[w-p.x,O-p.y]}},{key:"lngLatToMercator",value:function(a,p){var y=window.maplibregl.MercatorCoordinate.fromLngLat(a,p),w=y.x,O=w===void 0?0:w,V=y.y,he=V===void 0?0:V,be=y.z,ut=be===void 0?0:be;return{x:O,y:he,z:ut}}},{key:"getModelMatrix",value:function(a,p,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},V=window.maplibregl.MercatorCoordinate.fromLngLat(a,p),he=V.meterInMercatorCoordinateUnits(),be=Nu();return c0(be,be,Km(V.x-O.x,V.y-O.y,V.z||0-O.z)),Xg(be,be,Km(he*w[0],-he*w[1],he*w[2])),i0(be,be,y[0]),Ps(be,be,y[1]),kv(be,be,y[2]),be}},{key:"init",value:function(){var c=(0,al.Z)(mo().mark(function p(){var y=this,w,O,V,he,be,ut,Pt,qt,En,qn,Zr;return mo().wrap(function(to){for(;;)switch(to.prev=to.next){case 0:w=this.config,O=w.id,V=O===void 0?"map":O,he=w.attributionControl,be=he===void 0?!1:he,ut=w.style,Pt=ut===void 0?"light":ut,qt=w.rotation,En=qt===void 0?0:qt,qn=w.mapInstance,Zr=(0,W0.Z)(w,X6),this.viewport=new aw,!qn&&!window.maplibregl&&console.error(this.configService.getSceneWarninfo("SDK")),qn?(this.map=qn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(V),this.map=new window.maplibregl.Map((0,Xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Pt),attributionControl:be,bearing:En},Zr))),this.map.on("load",function(){y.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 7:case"end":return to.stop()}},p,this)}));function a(){return c.apply(this,arguments)}return a}()},{key:"destroy",value:function(){var a;(a=this.$mapContainer)===null||a===void 0||(a=a.parentNode)===null||a===void 0||a.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(a){for(var p,y=arguments.length,w=new Array(y>1?y-1:0),O=1;O1?y-1:0),O=1;O3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.viewport.projectFlat(d),ue=Jx();return h3(ue,ue,YA(J[0],J[1],E)),QT(ue,ue,YA(B[0],B[1],B[2])),a3(ue,ue,M[0]),X1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(d){var E=this.getMapCanvasContainer(),M=d==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var d=this.map.getContainer();d&&K1(d,"tmap-contianer--hide-logo")}}]),f}(pk);function gee(i){var v=mee();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function mee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var wle=function(i){(0,Ht.Z)(f,i);var v=gee(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return pee}}]),f}(YO),Cle=function(v){var f=v.tk;return new Promise(function(m,d){var E=document.createElement("script");E.type="text/javascript",E.src="https://api.tianditu.gov.cn/api?v=4.0&tk=".concat(f),E.onload=function(){console.log("TianDiTu API script loaded."),m(!0)},E.onerror=function(){console.error("Failed to load TianDiTu API script."),m(!1)},document.head.appendChild(E)})},vee=function(){},Y8=["id","mapInstance","center","token","version","minZoom","maxZoom","logoVisible","zoom"];function Nj(i){var v=yee();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function yee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var oK=0,IB={zoomchange:["Ge"]},Sle=function(i){(0,Ht.Z)(f,i);var v=Nj(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M0&&arguments[0]!==void 0?arguments[0]:0,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([d,E])}},{key:"fitBounds",value:function(d,E){var M=(0,hu.Z)(d,2),B=M[0],J=M[1];this.map.setViewport([new window.T.LngLat(B[0],B[1]),new window.T.LngLat(J[0],J[1])])}},{key:"setMaxZoom",value:function(d){this.map.setMaxZoom(d)}},{key:"setMinZoom",value:function(d){this.map.setMinZoom(d)}},{key:"setMapStatus",value:function(d){d.doubleClickZoom===!0&&this.map.enableDoubleClickZoom(),d.doubleClickZoom===!1&&this.map.disableDoubleClickZoom(),d.dragEnable===!1&&this.map.disableDrag(),d.dragEnable===!0&&this.map.enableDrag(),d.keyboardEnable===!1&&this.map.disableKeyboard(),d.keyboardEnable===!0&&this.map.enableKeyboard(),d.zoomEnable===!1&&this.map.disableScrollWheelZoom(),d.zoomEnable===!0&&this.map.enableScrollWheelZoom()}},{key:"getModelMatrix",value:function(d,E,M,B,J){throw new Error("Method not implemented.")}},{key:"pixelToLngLat",value:function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=this.map.layerPointToLngLat({x:M,y:B});return{lng:J.lng,lat:J.lat}}},{key:"lngLatToPixel",value:function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=this.map.lngLatToLayerPoint({lng:M,lat:B});return{x:J.x,y:J.y}}},{key:"containerToLngLat",value:function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=this.map.containerPointToLngLat({x:M,y:B});return{lng:J.lng,lat:J.lat}}},{key:"lngLatToContainer",value:function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=this.map.lngLatToContainerPoint({lat:B,lng:M});return{x:J.x,y:J.y}}},{key:"lngLatToCoord",value:function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1],J=this.lngLatToPixel([M,B]);return[J.x,J.y]}},{key:"lngLatToCoords",value:function(d){var E=this;return d.map(function(M){return Array.isArray(M[0])?E.lngLatToCoords(M):E.lngLatToCoord(M)})}},{key:"getBounds",value:function(){var d=this.map.getBounds(),E=d.getSouthWest(),M=d.getNorthEast();return[[E.lng,E.lat],[M.lng,M.lat]]}},{key:"lngLatToMercator",value:function(d,E){var M=mk.fromLngLat(d,E),B=M.x,J=B===void 0?0:B,ue=M.y,Ze=ue===void 0?0:ue,st=M.z,Fr=st===void 0?0:st;return{x:J,y:Ze,z:Fr}}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"creatMapContainer",value:function(d){var E=d;typeof d=="string"&&(E=document.getElementById(d));var M=document.createElement("div");return M.style.cssText+=` +`);var DM="OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77",tU="1.exp",HT={mapmove:"center_changed",camerachange:["drag","pan","rotate","pitch","zoom"],zoomchange:"zoom",dragging:"drag"},nU=function(i){(0,ze.Z)(l,i);var d=i2(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=this.viewport.projectFlat(a),V=Nu();return c0(V,V,Km(O[0],O[1],p)),Xg(V,V,Km(w[0],w[1],w[2])),i0(V,V,y[0]),Ps(V,V,y[1]),kv(V,V,y[2]),V}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(a){var p=this.getMapCanvasContainer(),y=a==="jpg"?p==null?void 0:p.toDataURL("image/jpeg"):p==null?void 0:p.toDataURL("image/png");return y}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var a=this.map.getContainer();a&&Yl(a,"tmap-contianer--hide-logo")}}]),l}(cS);function rU(i){var d=iU();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function iU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var lK=function(i){(0,ze.Z)(l,i);var d=rU(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return nU}}]),l}(HC),uK=function(d){var l=d.tk;return new Promise(function(c,a){var p=document.createElement("script");p.type="text/javascript",p.src="https://api.tianditu.gov.cn/api?v=4.0&tk=".concat(l),p.onload=function(){console.log("TianDiTu API script loaded."),c(!0)},p.onerror=function(){console.error("Failed to load TianDiTu API script."),c(!1)},document.head.appendChild(p)})},oU=function(){},GT=["id","mapInstance","center","token","version","minZoom","maxZoom","logoVisible","zoom"];function PR(i){var d=sU();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function sU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var t8=0,AI={zoomchange:["Ge"]},cK=function(i){(0,ze.Z)(l,i);var d=PR(l);function l(){var c;(0,vt.Z)(this,l);for(var a=arguments.length,p=new Array(a),y=0;y0&&arguments[0]!==void 0?arguments[0]:0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([a,p])}},{key:"fitBounds",value:function(a,p){var y=(0,zn.Z)(a,2),w=y[0],O=y[1];this.map.setViewport([new window.T.LngLat(w[0],w[1]),new window.T.LngLat(O[0],O[1])])}},{key:"setMaxZoom",value:function(a){this.map.setMaxZoom(a)}},{key:"setMinZoom",value:function(a){this.map.setMinZoom(a)}},{key:"setMapStatus",value:function(a){a.doubleClickZoom===!0&&this.map.enableDoubleClickZoom(),a.doubleClickZoom===!1&&this.map.disableDoubleClickZoom(),a.dragEnable===!1&&this.map.disableDrag(),a.dragEnable===!0&&this.map.enableDrag(),a.keyboardEnable===!1&&this.map.disableKeyboard(),a.keyboardEnable===!0&&this.map.enableKeyboard(),a.zoomEnable===!1&&this.map.disableScrollWheelZoom(),a.zoomEnable===!0&&this.map.enableScrollWheelZoom()}},{key:"getModelMatrix",value:function(a,p,y,w,O){throw new Error("Method not implemented.")}},{key:"pixelToLngLat",value:function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=this.map.layerPointToLngLat({x:y,y:w});return{lng:O.lng,lat:O.lat}}},{key:"lngLatToPixel",value:function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=this.map.lngLatToLayerPoint({lng:y,lat:w});return{x:O.x,y:O.y}}},{key:"containerToLngLat",value:function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=this.map.containerPointToLngLat({x:y,y:w});return{lng:O.lng,lat:O.lat}}},{key:"lngLatToContainer",value:function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=this.map.lngLatToContainerPoint({lat:w,lng:y});return{x:O.x,y:O.y}}},{key:"lngLatToCoord",value:function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1],O=this.lngLatToPixel([y,w]);return[O.x,O.y]}},{key:"lngLatToCoords",value:function(a){var p=this;return a.map(function(y){return Array.isArray(y[0])?p.lngLatToCoords(y):p.lngLatToCoord(y)})}},{key:"getBounds",value:function(){var a=this.map.getBounds(),p=a.getSouthWest(),y=a.getNorthEast();return[[p.lng,p.lat],[y.lng,y.lat]]}},{key:"lngLatToMercator",value:function(a,p){var y=dS.fromLngLat(a,p),w=y.x,O=w===void 0?0:w,V=y.y,he=V===void 0?0:V,be=y.z,ut=be===void 0?0:be;return{x:O,y:he,z:ut}}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"creatMapContainer",value:function(a){var p=a;typeof a=="string"&&(p=document.getElementById(a));var y=document.createElement("div");return y.style.cssText+=` position: absolute; top: 0; height: 100%; width: 100%; - `,M.id="l7_tdt_div"+oK++,E.appendChild(M),M}}]),f}(pk);function Ele(i){var v=_ee();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function _ee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var sK=function(i){(0,Ht.Z)(f,i);var v=Ele(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return Sle}}]),f}(YO);if(!window)throw Error("Google Map JSAPI can only be used in Browser.");var FL=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(FL||{}),yk={key:""},y4={GMap:FL.notload},HN=[],vP=function(v){if(typeof v=="function"){if(y4.GMap===FL.loaded){v(window.google.maps.Map);return}HN.push(v)}},bee=function(v){return new Promise(function(f,m){if(y4.GMap===FL.failed)m("");else if(y4.GMap===FL.notload){var d=v.key;if(!d){m("\u8BF7\u586B\u5199key");return}yk.key=d,y4.GMap=FL.loading,window.initMap=function(B){if(delete window.initMap,B)y4.GMap=FL.failed,m(B);else for(y4.GMap=FL.loaded;HN.length;)HN.splice(0,1)[0](window.google.maps.Map)};var E=document.createElement("script");E.type="text/javascript",E.async=!1,E.src="https://maps.googleapis.com/maps/api/js?key=".concat(yk.key,"&callback=initMap"),E.onerror=function(B){y4.GMap=FL.failed,m(B)};var M=document.body||document.head;M.appendChild(E),vP(f)}else if(y4.GMap===FL.loaded){if(v.key&&v.key!==yk.key){m("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}vP(f)}})},oO=function(){delete window.google,y4={GMap:FL.notload}},PB={load:bee,reset:oO},aK=["id","mapInstance","center","token","minZoom","maxZoom","rotation","pitch","mapSize","logoVisible"];function uR(i){var v=R$();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function R$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function xee(i,v){var f=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,m=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(f||m)&&(v||(v=document),!!v)){var d=v.head||v.getElementsByTagName("head")[0];if(!d){d=v.createElement("head");var E=v.body||v.getElementsByTagName("body")[0];E?E.parentNode.insertBefore(d,E):v.documentElement.appendChild(d)}var M=v.createElement("style");return M.type="text/css",M.styleSheet?M.styleSheet.cssText=i:M.appendChild(v.createTextNode(i)),d.appendChild(M),M}}xee(`img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],.logo-text { + `,y.id="l7_tdt_div"+t8++,p.appendChild(y),y}}]),l}(cS);function hK(i){var d=aU();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function aU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var n8=function(i){(0,ze.Z)(l,i);var d=hK(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return cK}}]),l}(HC);if(!window)throw Error("Google Map JSAPI can only be used in Browser.");var Rb=function(i){return i.notload="notload",i.loading="loading",i.loaded="loaded",i.failed="failed",i}(Rb||{}),pS={key:""},fy={GMap:Rb.notload},WE=[],f_=function(d){if(typeof d=="function"){if(fy.GMap===Rb.loaded){d(window.google.maps.Map);return}WE.push(d)}},lU=function(d){return new Promise(function(l,c){if(fy.GMap===Rb.failed)c("");else if(fy.GMap===Rb.notload){var a=d.key;if(!a){c("\u8BF7\u586B\u5199key");return}pS.key=a,fy.GMap=Rb.loading,window.initMap=function(w){if(delete window.initMap,w)fy.GMap=Rb.failed,c(w);else for(fy.GMap=Rb.loaded;WE.length;)WE.splice(0,1)[0](window.google.maps.Map)};var p=document.createElement("script");p.type="text/javascript",p.async=!1,p.src="https://maps.googleapis.com/maps/api/js?key=".concat(pS.key,"&callback=initMap"),p.onerror=function(w){fy.GMap=Rb.failed,c(w)};var y=document.body||document.head;y.appendChild(p),f_(l)}else if(fy.GMap===Rb.loaded){if(d.key&&d.key!==pS.key){c("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}f_(l)}})},nC=function(){delete window.google,fy={GMap:Rb.notload}},TI={load:lU,reset:nC},r8=["id","mapInstance","center","token","minZoom","maxZoom","rotation","pitch","mapSize","logoVisible"];function o2(i){var d=IM();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function IM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function uU(i,d){var l=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(l||c)&&(d||(d=document),!!d)){var a=d.head||d.getElementsByTagName("head")[0];if(!a){a=d.createElement("head");var p=d.body||d.getElementsByTagName("body")[0];p?p.parentNode.insertBefore(a,p):d.documentElement.appendChild(a)}var y=d.createElement("style");return y.type="text/css",y.styleSheet?y.styleSheet.cssText=i:y.appendChild(d.createTextNode(i)),a.appendChild(y),y}}uU(`img[src*='//mapapi.qq.com/web/jsapi/logo/logo_def.png'],.logo-text { display: none !important; } -`);var k$="AIzaSyDBDCfl4pvuDtaazdCog3LmhA7CQLhmcRE",wM={mapmove:"center_changed",camerachange:["drag","pan","rotate","tilt","zoom_changed"],zoomchange:"zoom_changed",dragging:"drag"},Tle=function(i){(0,Ht.Z)(f,i);var v=uR(f);function f(){var m;(0,Zr.Z)(this,f);for(var d=arguments.length,E=new Array(d),M=0;M3&&arguments[3]!==void 0?arguments[3]:[1,1,1],J=this.viewport.projectFlat(d),ue=Jx();return h3(ue,ue,YA(J[0],J[1],E)),QT(ue,ue,YA(B[0],B[1],B[2])),a3(ue,ue,M[0]),X1(ue,ue,M[1]),zD(ue,ue,M[2]),ue}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(d){var E=this.getMapCanvasContainer(),M=d==="jpg"?E==null?void 0:E.toDataURL("image/jpeg"):E==null?void 0:E.toDataURL("image/png");return M}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var d=this.map.getDiv();d&&K1(d,"tmap-contianer--hide-logo")}}]),f}(pk);function Ale(i){var v=Dle();return function(){var m=(0,oi.Z)(i),d;if(v){var E=(0,oi.Z)(this).constructor;d=Reflect.construct(m,arguments,E)}else d=m.apply(this,arguments);return(0,Zs.Z)(this,d)}}function Dle(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var Ile=function(i){(0,Ht.Z)(f,i);var v=Ale(f);function f(){return(0,Zr.Z)(this,f),v.apply(this,arguments)}return(0,gt.Z)(f,[{key:"getServiceConstructor",value:function(){return Tle}}]),f}(YO),wee=l(45409),Cee=l.n(wee),lK=function(){function i(v,f){(0,Zr.Z)(this,i);var m=f.buffer,d=f.offset,E=f.stride,M=f.normalized,B=f.size,J=f.divisor;this.buffer=m,this.attribute={buffer:m.get(),offset:d||0,stride:E||0,normalized:M||!1,divisor:J||0},B&&(this.attribute.size=B)}return(0,gt.Z)(i,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(f){this.buffer.subData(f)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),i}(),cR,LB,_k,eP,GN,bk,q8,MB,BL,YT,wI,h5,zL,KN,Ple=(cR={},(0,Na.Z)(cR,J0.POINTS,"points"),(0,Na.Z)(cR,J0.LINES,"lines"),(0,Na.Z)(cR,J0.LINE_LOOP,"line loop"),(0,Na.Z)(cR,J0.LINE_STRIP,"line strip"),(0,Na.Z)(cR,J0.TRIANGLES,"triangles"),(0,Na.Z)(cR,J0.TRIANGLE_FAN,"triangle fan"),(0,Na.Z)(cR,J0.TRIANGLE_STRIP,"triangle strip"),cR),See=(LB={},(0,Na.Z)(LB,J0.STATIC_DRAW,"static"),(0,Na.Z)(LB,J0.DYNAMIC_DRAW,"dynamic"),(0,Na.Z)(LB,J0.STREAM_DRAW,"stream"),LB),N$=(_k={},(0,Na.Z)(_k,J0.BYTE,"int8"),(0,Na.Z)(_k,J0.INT,"int32"),(0,Na.Z)(_k,J0.UNSIGNED_BYTE,"uint8"),(0,Na.Z)(_k,J0.UNSIGNED_SHORT,"uint16"),(0,Na.Z)(_k,J0.UNSIGNED_INT,"uint32"),(0,Na.Z)(_k,J0.FLOAT,"float"),_k),uK=(eP={},(0,Na.Z)(eP,J0.ALPHA,"alpha"),(0,Na.Z)(eP,J0.LUMINANCE,"luminance"),(0,Na.Z)(eP,J0.LUMINANCE_ALPHA,"luminance alpha"),(0,Na.Z)(eP,J0.RGB,"rgb"),(0,Na.Z)(eP,J0.RGBA,"rgba"),(0,Na.Z)(eP,J0.RGBA4,"rgba4"),(0,Na.Z)(eP,J0.RGB5_A1,"rgb5 a1"),(0,Na.Z)(eP,J0.RGB565,"rgb565"),(0,Na.Z)(eP,J0.DEPTH_COMPONENT,"depth"),(0,Na.Z)(eP,J0.DEPTH_STENCIL,"depth stencil"),eP),Lle=(GN={},(0,Na.Z)(GN,J0.DONT_CARE,"dont care"),(0,Na.Z)(GN,J0.NICEST,"nice"),(0,Na.Z)(GN,J0.FASTEST,"fast"),GN),Eee=(bk={},(0,Na.Z)(bk,J0.NEAREST,"nearest"),(0,Na.Z)(bk,J0.LINEAR,"linear"),(0,Na.Z)(bk,J0.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,Na.Z)(bk,J0.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,Na.Z)(bk,J0.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,Na.Z)(bk,J0.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),bk),F$=(q8={},(0,Na.Z)(q8,J0.REPEAT,"repeat"),(0,Na.Z)(q8,J0.CLAMP_TO_EDGE,"clamp"),(0,Na.Z)(q8,J0.MIRRORED_REPEAT,"mirror"),q8),Tee=(MB={},(0,Na.Z)(MB,J0.NONE,"none"),(0,Na.Z)(MB,J0.BROWSER_DEFAULT_WEBGL,"browser"),MB),Mle=(BL={},(0,Na.Z)(BL,J0.NEVER,"never"),(0,Na.Z)(BL,J0.ALWAYS,"always"),(0,Na.Z)(BL,J0.LESS,"less"),(0,Na.Z)(BL,J0.LEQUAL,"lequal"),(0,Na.Z)(BL,J0.GREATER,"greater"),(0,Na.Z)(BL,J0.GEQUAL,"gequal"),(0,Na.Z)(BL,J0.EQUAL,"equal"),(0,Na.Z)(BL,J0.NOTEQUAL,"notequal"),BL),J8=(YT={},(0,Na.Z)(YT,J0.FUNC_ADD,"add"),(0,Na.Z)(YT,J0.MIN_EXT,"min"),(0,Na.Z)(YT,J0.MAX_EXT,"max"),(0,Na.Z)(YT,J0.FUNC_SUBTRACT,"subtract"),(0,Na.Z)(YT,J0.FUNC_REVERSE_SUBTRACT,"reverse subtract"),YT),OB=(wI={},(0,Na.Z)(wI,J0.ZERO,"zero"),(0,Na.Z)(wI,J0.ONE,"one"),(0,Na.Z)(wI,J0.SRC_COLOR,"src color"),(0,Na.Z)(wI,J0.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,Na.Z)(wI,J0.SRC_ALPHA,"src alpha"),(0,Na.Z)(wI,J0.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,Na.Z)(wI,J0.DST_COLOR,"dst color"),(0,Na.Z)(wI,J0.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,Na.Z)(wI,J0.DST_ALPHA,"dst alpha"),(0,Na.Z)(wI,J0.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,Na.Z)(wI,J0.CONSTANT_COLOR,"constant color"),(0,Na.Z)(wI,J0.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,Na.Z)(wI,J0.CONSTANT_ALPHA,"constant alpha"),(0,Na.Z)(wI,J0.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,Na.Z)(wI,J0.SRC_ALPHA_SATURATE,"src alpha saturate"),wI),Fj=(h5={},(0,Na.Z)(h5,J0.NEVER,"never"),(0,Na.Z)(h5,J0.ALWAYS,"always"),(0,Na.Z)(h5,J0.LESS,"less"),(0,Na.Z)(h5,J0.LEQUAL,"lequal"),(0,Na.Z)(h5,J0.GREATER,"greater"),(0,Na.Z)(h5,J0.GEQUAL,"gequal"),(0,Na.Z)(h5,J0.EQUAL,"equal"),(0,Na.Z)(h5,J0.NOTEQUAL,"notequal"),h5),Q8=(zL={},(0,Na.Z)(zL,J0.ZERO,"zero"),(0,Na.Z)(zL,J0.KEEP,"keep"),(0,Na.Z)(zL,J0.REPLACE,"replace"),(0,Na.Z)(zL,J0.INVERT,"invert"),(0,Na.Z)(zL,J0.INCR,"increment"),(0,Na.Z)(zL,J0.DECR,"decrement"),(0,Na.Z)(zL,J0.INCR_WRAP,"increment wrap"),(0,Na.Z)(zL,J0.DECR_WRAP,"decrement wrap"),zL),Bj=(KN={},(0,Na.Z)(KN,J0.FRONT,"front"),(0,Na.Z)(KN,J0.BACK,"back"),KN),Ole=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"isDestroyed",!1);var m=f.data,d=f.usage,E=f.type;this.buffer=v.buffer({data:m,usage:See[d||J0.STATIC_DRAW],type:N$[E||J0.UNSIGNED_BYTE]})}return(0,gt.Z)(i,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(f){var m=f.data,d=f.offset;this.buffer.subdata(m,d)}}]),i}(),eF=function(){function i(v,f){(0,Zr.Z)(this,i);var m=f.data,d=f.usage,E=f.type,M=f.count;this.elements=v.elements({data:m,usage:See[d||J0.STATIC_DRAW],type:N$[E||J0.UNSIGNED_BYTE],count:M})}return(0,gt.Z)(i,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(f){var m=f.data;this.elements.subdata(m)}},{key:"destroy",value:function(){}}]),i}(),cK=function(){function i(v,f){(0,Zr.Z)(this,i);var m=f.width,d=f.height,E=f.color,M=f.colors,B={width:m,height:d};Array.isArray(M)&&(B.colors=M.map(function(J){return J.get()})),E&&typeof E!="boolean"&&(B.color=E.get()),this.framebuffer=v.framebuffer(B)}return(0,gt.Z)(i,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(f){var m=f.width,d=f.height;this.framebuffer.resize(m,d)}}]),i}(),zj=function(i){return i==null},CM=zj,Aee={}.toString,$j=function(i,v){return Aee.call(i)==="[object "+v+"]"},dK=$j,Rle=function(i){return dK(i,"Number")},XN=Rle,Dee=function(i,v,f){return if?f:i},kle=Dee,lE=l(32290),Iee=l(37271),Pee=Iee,T_;(function(i){i[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",i[i.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.CULL_FACE=2884]="CULL_FACE",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.BLEND=3042]="BLEND",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.DITHER=3024]="DITHER",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DOUBLE=5130]="DOUBLE",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.ALWAYS=519]="ALWAYS",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.GEQUAL=518]="GEQUAL",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",i[i.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",i[i.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.READ_BUFFER=3074]="READ_BUFFER",i[i.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",i[i.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",i[i.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",i[i.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",i[i.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",i[i.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",i[i.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",i[i.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",i[i.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",i[i.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",i[i.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",i[i.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",i[i.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",i[i.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",i[i.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",i[i.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",i[i.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",i[i.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",i[i.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",i[i.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",i[i.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",i[i.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",i[i.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",i[i.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",i[i.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",i[i.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",i[i.RED=6403]="RED",i[i.RGB8=32849]="RGB8",i[i.RGBA8=32856]="RGBA8",i[i.RGB10_A2=32857]="RGB10_A2",i[i.TEXTURE_3D=32879]="TEXTURE_3D",i[i.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",i[i.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",i[i.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",i[i.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",i[i.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",i[i.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",i[i.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",i[i.SRGB=35904]="SRGB",i[i.SRGB8=35905]="SRGB8",i[i.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",i[i.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",i[i.RGBA32F=34836]="RGBA32F",i[i.RGB32F=34837]="RGB32F",i[i.RGBA16F=34842]="RGBA16F",i[i.RGB16F=34843]="RGB16F",i[i.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",i[i.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",i[i.R11F_G11F_B10F=35898]="R11F_G11F_B10F",i[i.RGB9_E5=35901]="RGB9_E5",i[i.RGBA32UI=36208]="RGBA32UI",i[i.RGB32UI=36209]="RGB32UI",i[i.RGBA16UI=36214]="RGBA16UI",i[i.RGB16UI=36215]="RGB16UI",i[i.RGBA8UI=36220]="RGBA8UI",i[i.RGB8UI=36221]="RGB8UI",i[i.RGBA32I=36226]="RGBA32I",i[i.RGB32I=36227]="RGB32I",i[i.RGBA16I=36232]="RGBA16I",i[i.RGB16I=36233]="RGB16I",i[i.RGBA8I=36238]="RGBA8I",i[i.RGB8I=36239]="RGB8I",i[i.RED_INTEGER=36244]="RED_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTEGER",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.R8=33321]="R8",i[i.RG8=33323]="RG8",i[i.R16F=33325]="R16F",i[i.R32F=33326]="R32F",i[i.RG16F=33327]="RG16F",i[i.RG32F=33328]="RG32F",i[i.R8I=33329]="R8I",i[i.R8UI=33330]="R8UI",i[i.R16I=33331]="R16I",i[i.R16UI=33332]="R16UI",i[i.R32I=33333]="R32I",i[i.R32UI=33334]="R32UI",i[i.RG8I=33335]="RG8I",i[i.RG8UI=33336]="RG8UI",i[i.RG16I=33337]="RG16I",i[i.RG16UI=33338]="RG16UI",i[i.RG32I=33339]="RG32I",i[i.RG32UI=33340]="RG32UI",i[i.R8_SNORM=36756]="R8_SNORM",i[i.RG8_SNORM=36757]="RG8_SNORM",i[i.RGB8_SNORM=36758]="RGB8_SNORM",i[i.RGBA8_SNORM=36759]="RGBA8_SNORM",i[i.RGB10_A2UI=36975]="RGB10_A2UI",i[i.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",i[i.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",i[i.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",i[i.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",i[i.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",i[i.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",i[i.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",i[i.HALF_FLOAT=5131]="HALF_FLOAT",i[i.RG=33319]="RG",i[i.RG_INTEGER=33320]="RG_INTEGER",i[i.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",i[i.CURRENT_QUERY=34917]="CURRENT_QUERY",i[i.QUERY_RESULT=34918]="QUERY_RESULT",i[i.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",i[i.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",i[i.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",i[i.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",i[i.DRAW_BUFFER0=34853]="DRAW_BUFFER0",i[i.DRAW_BUFFER1=34854]="DRAW_BUFFER1",i[i.DRAW_BUFFER2=34855]="DRAW_BUFFER2",i[i.DRAW_BUFFER3=34856]="DRAW_BUFFER3",i[i.DRAW_BUFFER4=34857]="DRAW_BUFFER4",i[i.DRAW_BUFFER5=34858]="DRAW_BUFFER5",i[i.DRAW_BUFFER6=34859]="DRAW_BUFFER6",i[i.DRAW_BUFFER7=34860]="DRAW_BUFFER7",i[i.DRAW_BUFFER8=34861]="DRAW_BUFFER8",i[i.DRAW_BUFFER9=34862]="DRAW_BUFFER9",i[i.DRAW_BUFFER10=34863]="DRAW_BUFFER10",i[i.DRAW_BUFFER11=34864]="DRAW_BUFFER11",i[i.DRAW_BUFFER12=34865]="DRAW_BUFFER12",i[i.DRAW_BUFFER13=34866]="DRAW_BUFFER13",i[i.DRAW_BUFFER14=34867]="DRAW_BUFFER14",i[i.DRAW_BUFFER15=34868]="DRAW_BUFFER15",i[i.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",i[i.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",i[i.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",i[i.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",i[i.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",i[i.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",i[i.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",i[i.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",i[i.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",i[i.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",i[i.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",i[i.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",i[i.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",i[i.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",i[i.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",i[i.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",i[i.SAMPLER_3D=35679]="SAMPLER_3D",i[i.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",i[i.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",i[i.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",i[i.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",i[i.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",i[i.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",i[i.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",i[i.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",i[i.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",i[i.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",i[i.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",i[i.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",i[i.MAX_SAMPLES=36183]="MAX_SAMPLES",i[i.SAMPLER_BINDING=35097]="SAMPLER_BINDING",i[i.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",i[i.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",i[i.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",i[i.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",i[i.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",i[i.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",i[i.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",i[i.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",i[i.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",i[i.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",i[i.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",i[i.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",i[i.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",i[i.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",i[i.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",i[i.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",i[i.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",i[i.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",i[i.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",i[i.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",i[i.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",i[i.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",i[i.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",i[i.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",i[i.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",i[i.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",i[i.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",i[i.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",i[i.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",i[i.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",i[i.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",i[i.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",i[i.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",i[i.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",i[i.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",i[i.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",i[i.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",i[i.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",i[i.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",i[i.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",i[i.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",i[i.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",i[i.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",i[i.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",i[i.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",i[i.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",i[i.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",i[i.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",i[i.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",i[i.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",i[i.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",i[i.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",i[i.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",i[i.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",i[i.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",i[i.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",i[i.UNIFORM_TYPE=35383]="UNIFORM_TYPE",i[i.UNIFORM_SIZE=35384]="UNIFORM_SIZE",i[i.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",i[i.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",i[i.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",i[i.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",i[i.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",i[i.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",i[i.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",i[i.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",i[i.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",i[i.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",i[i.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",i[i.OBJECT_TYPE=37138]="OBJECT_TYPE",i[i.SYNC_CONDITION=37139]="SYNC_CONDITION",i[i.SYNC_STATUS=37140]="SYNC_STATUS",i[i.SYNC_FLAGS=37141]="SYNC_FLAGS",i[i.SYNC_FENCE=37142]="SYNC_FENCE",i[i.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",i[i.UNSIGNALED=37144]="UNSIGNALED",i[i.SIGNALED=37145]="SIGNALED",i[i.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",i[i.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",i[i.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",i[i.WAIT_FAILED=37149]="WAIT_FAILED",i[i.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",i[i.COLOR=6144]="COLOR",i[i.DEPTH=6145]="DEPTH",i[i.STENCIL=6146]="STENCIL",i[i.MIN=32775]="MIN",i[i.MAX=32776]="MAX",i[i.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",i[i.STREAM_READ=35041]="STREAM_READ",i[i.STREAM_COPY=35042]="STREAM_COPY",i[i.STATIC_READ=35045]="STATIC_READ",i[i.STATIC_COPY=35046]="STATIC_COPY",i[i.DYNAMIC_READ=35049]="DYNAMIC_READ",i[i.DYNAMIC_COPY=35050]="DYNAMIC_COPY",i[i.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",i[i.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",i[i.INVALID_INDEX=4294967295]="INVALID_INDEX",i[i.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",i[i.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",i[i.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",i[i.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",i[i.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",i[i.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",i[i.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",i[i.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",i[i.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",i[i.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",i[i.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",i[i.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",i[i.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",i[i.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",i[i.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",i[i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",i[i.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",i[i.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",i[i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",i[i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",i[i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",i[i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",i[i.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",i[i.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",i[i.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",i[i.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",i[i.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",i[i.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",i[i.RGBA32F_EXT=34836]="RGBA32F_EXT",i[i.RGB32F_EXT=34837]="RGB32F_EXT",i[i.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",i[i.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.SRGB_EXT=35904]="SRGB_EXT",i[i.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",i[i.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",i[i.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",i[i.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",i[i.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",i[i.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",i[i.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",i[i.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",i[i.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",i[i.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",i[i.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",i[i.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",i[i.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",i[i.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",i[i.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",i[i.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",i[i.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",i[i.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",i[i.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",i[i.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",i[i.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",i[i.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",i[i.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",i[i.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",i[i.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",i[i.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",i[i.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",i[i.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",i[i.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",i[i.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",i[i.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",i[i.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",i[i.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",i[i.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",i[i.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",i[i.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",i[i.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",i[i.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",i[i.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",i[i.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",i[i.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",i[i.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",i[i.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",i[i.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",i[i.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",i[i.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(T_||(T_={}));var FA;(function(i){i[i.Buffer=0]="Buffer",i[i.Texture=1]="Texture",i[i.RenderTarget=2]="RenderTarget",i[i.Sampler=3]="Sampler",i[i.Program=4]="Program",i[i.Bindings=5]="Bindings",i[i.InputLayout=6]="InputLayout",i[i.RenderPipeline=7]="RenderPipeline",i[i.ComputePipeline=8]="ComputePipeline",i[i.Readback=9]="Readback",i[i.QueryPool=10]="QueryPool",i[i.RenderBundle=11]="RenderBundle"})(FA||(FA={}));var AA;(function(i){i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS"})(AA||(AA={}));var f5;(function(i){i[i.CCW=2305]="CCW",i[i.CW=2304]="CW"})(f5||(f5={}));var $L;(function(i){i[i.NONE=0]="NONE",i[i.FRONT=1]="FRONT",i[i.BACK=2]="BACK",i[i.FRONT_AND_BACK=3]="FRONT_AND_BACK"})($L||($L={}));var KA;(function(i){i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC=768]="SRC",i[i.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",i[i.DST=774]="DST",i[i.ONE_MINUS_DST=775]="ONE_MINUS_DST",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.CONST=32769]="CONST",i[i.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})(KA||(KA={}));var $4;(function(i){i[i.ADD=32774]="ADD",i[i.SUBSTRACT=32778]="SUBSTRACT",i[i.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",i[i.MIN=32775]="MIN",i[i.MAX=32776]="MAX"})($4||($4={}));var uL;(function(i){i[i.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",i[i.REPEAT=1]="REPEAT",i[i.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(uL||(uL={}));var rI;(function(i){i[i.POINT=0]="POINT",i[i.BILINEAR=1]="BILINEAR"})(rI||(rI={}));var _4;(function(i){i[i.NO_MIP=0]="NO_MIP",i[i.NEAREST=1]="NEAREST",i[i.LINEAR=2]="LINEAR"})(_4||(_4={}));var ZI;(function(i){i[i.POINTS=0]="POINTS",i[i.TRIANGLES=1]="TRIANGLES",i[i.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",i[i.LINES=3]="LINES",i[i.LINE_STRIP=4]="LINE_STRIP"})(ZI||(ZI={}));var SD;(function(i){i[i.MAP_READ=1]="MAP_READ",i[i.MAP_WRITE=2]="MAP_WRITE",i[i.COPY_SRC=4]="COPY_SRC",i[i.COPY_DST=8]="COPY_DST",i[i.INDEX=16]="INDEX",i[i.VERTEX=32]="VERTEX",i[i.UNIFORM=64]="UNIFORM",i[i.STORAGE=128]="STORAGE",i[i.INDIRECT=256]="INDIRECT",i[i.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(SD||(SD={}));var UL;(function(i){i[i.STATIC=1]="STATIC",i[i.DYNAMIC=2]="DYNAMIC"})(UL||(UL={}));var YN;(function(i){i[i.VERTEX=1]="VERTEX",i[i.INSTANCE=2]="INSTANCE"})(YN||(YN={}));var dR;(function(i){i.LOADED="loaded"})(dR||(dR={}));var DA;(function(i){i[i.TEXTURE_2D=0]="TEXTURE_2D",i[i.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",i[i.TEXTURE_3D=2]="TEXTURE_3D",i[i.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(DA||(DA={}));var tP;(function(i){i[i.SAMPLED=1]="SAMPLED",i[i.RENDER_TARGET=2]="RENDER_TARGET",i[i.STORAGE=4]="STORAGE"})(tP||(tP={}));var b4;(function(i){i[i.NONE=0]="NONE",i[i.RED=1]="RED",i[i.GREEN=2]="GREEN",i[i.BLUE=4]="BLUE",i[i.ALPHA=8]="ALPHA",i[i.RGB=7]="RGB",i[i.ALL=15]="ALL"})(b4||(b4={}));var ZD;(function(i){i[i.KEEP=7680]="KEEP",i[i.ZERO=0]="ZERO",i[i.REPLACE=7681]="REPLACE",i[i.INVERT=5386]="INVERT",i[i.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",i[i.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",i[i.INCREMENT_WRAP=34055]="INCREMENT_WRAP",i[i.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(ZD||(ZD={}));function Nle(i,v,f,m){var d=DA.TEXTURE_2D,E=1,M=tP.SAMPLED;return{dimension:d,format:i,width:v,height:f,depthOrArrayLayers:E,mipLevelCount:m,usage:M}}var JD;(function(i){i[i.Float=0]="Float",i[i.UnfilterableFloat=1]="UnfilterableFloat",i[i.Uint=2]="Uint",i[i.Sint=3]="Sint",i[i.Depth=4]="Depth"})(JD||(JD={}));var hR;(function(i){i[i.LOWER_LEFT=0]="LOWER_LEFT",i[i.UPPER_LEFT=1]="UPPER_LEFT"})(hR||(hR={}));var qN;(function(i){i[i.NEGATIVE_ONE=0]="NEGATIVE_ONE",i[i.ZERO=1]="ZERO"})(qN||(qN={}));var Uj;(function(i){i[i.OcclusionConservative=0]="OcclusionConservative"})(Uj||(Uj={}));var Uw;(function(i){i[i.U8=1]="U8",i[i.U16=2]="U16",i[i.U32=3]="U32",i[i.S8=4]="S8",i[i.S16=5]="S16",i[i.S32=6]="S32",i[i.F16=7]="F16",i[i.F32=8]="F32",i[i.BC1=65]="BC1",i[i.BC2=66]="BC2",i[i.BC3=67]="BC3",i[i.BC4_UNORM=68]="BC4_UNORM",i[i.BC4_SNORM=69]="BC4_SNORM",i[i.BC5_UNORM=70]="BC5_UNORM",i[i.BC5_SNORM=71]="BC5_SNORM",i[i.U16_PACKED_5551=97]="U16_PACKED_5551",i[i.U16_PACKED_565=98]="U16_PACKED_565",i[i.D24=129]="D24",i[i.D32F=130]="D32F",i[i.D24S8=131]="D24S8",i[i.D32FS8=132]="D32FS8"})(Uw||(Uw={}));var _E;(function(i){i[i.R=1]="R",i[i.RG=2]="RG",i[i.RGB=3]="RGB",i[i.RGBA=4]="RGBA",i[i.A=5]="A"})(_E||(_E={}));function kpe(i){return i}var ES;(function(i){i[i.None=0]="None",i[i.Normalized=1]="Normalized",i[i.sRGB=2]="sRGB",i[i.Depth=4]="Depth",i[i.Stencil=8]="Stencil",i[i.RenderTarget=16]="RenderTarget",i[i.Luminance=32]="Luminance"})(ES||(ES={}));function HS(i,v,f){return i<<16|v<<8|f}var Ax;(function(i){i[i.ALPHA=HS(Uw.U8,_E.A,ES.None)]="ALPHA",i[i.U8_LUMINANCE=HS(Uw.U8,_E.A,ES.Luminance)]="U8_LUMINANCE",i[i.F16_LUMINANCE=HS(Uw.F16,_E.A,ES.Luminance)]="F16_LUMINANCE",i[i.F32_LUMINANCE=HS(Uw.F32,_E.A,ES.Luminance)]="F32_LUMINANCE",i[i.F16_R=HS(Uw.F16,_E.R,ES.None)]="F16_R",i[i.F16_RG=HS(Uw.F16,_E.RG,ES.None)]="F16_RG",i[i.F16_RGB=HS(Uw.F16,_E.RGB,ES.None)]="F16_RGB",i[i.F16_RGBA=HS(Uw.F16,_E.RGBA,ES.None)]="F16_RGBA",i[i.F32_R=HS(Uw.F32,_E.R,ES.None)]="F32_R",i[i.F32_RG=HS(Uw.F32,_E.RG,ES.None)]="F32_RG",i[i.F32_RGB=HS(Uw.F32,_E.RGB,ES.None)]="F32_RGB",i[i.F32_RGBA=HS(Uw.F32,_E.RGBA,ES.None)]="F32_RGBA",i[i.U8_R=HS(Uw.U8,_E.R,ES.None)]="U8_R",i[i.U8_R_NORM=HS(Uw.U8,_E.R,ES.Normalized)]="U8_R_NORM",i[i.U8_RG=HS(Uw.U8,_E.RG,ES.None)]="U8_RG",i[i.U8_RG_NORM=HS(Uw.U8,_E.RG,ES.Normalized)]="U8_RG_NORM",i[i.U8_RGB=HS(Uw.U8,_E.RGB,ES.None)]="U8_RGB",i[i.U8_RGB_NORM=HS(Uw.U8,_E.RGB,ES.Normalized)]="U8_RGB_NORM",i[i.U8_RGB_SRGB=HS(Uw.U8,_E.RGB,ES.sRGB|ES.Normalized)]="U8_RGB_SRGB",i[i.U8_RGBA=HS(Uw.U8,_E.RGBA,ES.None)]="U8_RGBA",i[i.U8_RGBA_NORM=HS(Uw.U8,_E.RGBA,ES.Normalized)]="U8_RGBA_NORM",i[i.U8_RGBA_SRGB=HS(Uw.U8,_E.RGBA,ES.sRGB|ES.Normalized)]="U8_RGBA_SRGB",i[i.U16_R=HS(Uw.U16,_E.R,ES.None)]="U16_R",i[i.U16_R_NORM=HS(Uw.U16,_E.R,ES.Normalized)]="U16_R_NORM",i[i.U16_RG_NORM=HS(Uw.U16,_E.RG,ES.Normalized)]="U16_RG_NORM",i[i.U16_RGBA_NORM=HS(Uw.U16,_E.RGBA,ES.Normalized)]="U16_RGBA_NORM",i[i.U16_RGBA=HS(Uw.U16,_E.RGBA,ES.None)]="U16_RGBA",i[i.U16_RGB=HS(Uw.U16,_E.RGB,ES.None)]="U16_RGB",i[i.U16_RG=HS(Uw.U16,_E.RG,ES.None)]="U16_RG",i[i.U32_R=HS(Uw.U32,_E.R,ES.None)]="U32_R",i[i.U32_RG=HS(Uw.U32,_E.RG,ES.None)]="U32_RG",i[i.U32_RGB=HS(Uw.U32,_E.RGB,ES.None)]="U32_RGB",i[i.U32_RGBA=HS(Uw.U32,_E.RGBA,ES.None)]="U32_RGBA",i[i.S8_R=HS(Uw.S8,_E.R,ES.None)]="S8_R",i[i.S8_R_NORM=HS(Uw.S8,_E.R,ES.Normalized)]="S8_R_NORM",i[i.S8_RG_NORM=HS(Uw.S8,_E.RG,ES.Normalized)]="S8_RG_NORM",i[i.S8_RGB_NORM=HS(Uw.S8,_E.RGB,ES.Normalized)]="S8_RGB_NORM",i[i.S8_RGBA_NORM=HS(Uw.S8,_E.RGBA,ES.Normalized)]="S8_RGBA_NORM",i[i.S16_R=HS(Uw.S16,_E.R,ES.None)]="S16_R",i[i.S16_RG=HS(Uw.S16,_E.RG,ES.None)]="S16_RG",i[i.S16_RG_NORM=HS(Uw.S16,_E.RG,ES.Normalized)]="S16_RG_NORM",i[i.S16_RGB_NORM=HS(Uw.S16,_E.RGB,ES.Normalized)]="S16_RGB_NORM",i[i.S16_RGBA=HS(Uw.S16,_E.RGBA,ES.None)]="S16_RGBA",i[i.S16_RGBA_NORM=HS(Uw.S16,_E.RGBA,ES.Normalized)]="S16_RGBA_NORM",i[i.S32_R=HS(Uw.S32,_E.R,ES.None)]="S32_R",i[i.S32_RG=HS(Uw.S32,_E.RG,ES.None)]="S32_RG",i[i.S32_RGB=HS(Uw.S32,_E.RGB,ES.None)]="S32_RGB",i[i.S32_RGBA=HS(Uw.S32,_E.RGBA,ES.None)]="S32_RGBA",i[i.U16_RGBA_5551=HS(Uw.U16_PACKED_5551,_E.RGBA,ES.Normalized)]="U16_RGBA_5551",i[i.U16_RGB_565=HS(Uw.U16_PACKED_565,_E.RGB,ES.Normalized)]="U16_RGB_565",i[i.BC1=HS(Uw.BC1,_E.RGBA,ES.Normalized)]="BC1",i[i.BC1_SRGB=HS(Uw.BC1,_E.RGBA,ES.Normalized|ES.sRGB)]="BC1_SRGB",i[i.BC2=HS(Uw.BC2,_E.RGBA,ES.Normalized)]="BC2",i[i.BC2_SRGB=HS(Uw.BC2,_E.RGBA,ES.Normalized|ES.sRGB)]="BC2_SRGB",i[i.BC3=HS(Uw.BC3,_E.RGBA,ES.Normalized)]="BC3",i[i.BC3_SRGB=HS(Uw.BC3,_E.RGBA,ES.Normalized|ES.sRGB)]="BC3_SRGB",i[i.BC4_UNORM=HS(Uw.BC4_UNORM,_E.R,ES.Normalized)]="BC4_UNORM",i[i.BC4_SNORM=HS(Uw.BC4_SNORM,_E.R,ES.Normalized)]="BC4_SNORM",i[i.BC5_UNORM=HS(Uw.BC5_UNORM,_E.RG,ES.Normalized)]="BC5_UNORM",i[i.BC5_SNORM=HS(Uw.BC5_SNORM,_E.RG,ES.Normalized)]="BC5_SNORM",i[i.D24=HS(Uw.D24,_E.R,ES.Depth)]="D24",i[i.D24_S8=HS(Uw.D24S8,_E.RG,ES.Depth|ES.Stencil)]="D24_S8",i[i.D32F=HS(Uw.D32F,_E.R,ES.Depth)]="D32F",i[i.D32F_S8=HS(Uw.D32FS8,_E.RG,ES.Depth|ES.Stencil)]="D32F_S8",i[i.U8_RGB_RT=HS(Uw.U8,_E.RGB,ES.RenderTarget|ES.Normalized)]="U8_RGB_RT",i[i.U8_RGBA_RT=HS(Uw.U8,_E.RGBA,ES.RenderTarget|ES.Normalized)]="U8_RGBA_RT",i[i.U8_RGBA_RT_SRGB=HS(Uw.U8,_E.RGBA,ES.RenderTarget|ES.Normalized|ES.sRGB)]="U8_RGBA_RT_SRGB"})(Ax||(Ax={}));function Vj(i){return i>>>8&255}function fR(i){return i>>>16&255}function tF(i){return i&255}function hK(i){switch(i){case Uw.F32:case Uw.U32:case Uw.S32:return 4;case Uw.U16:case Uw.S16:case Uw.F16:return 2;case Uw.U8:case Uw.S8:return 1;default:throw new Error("whoops")}}function fK(i){return hK(fR(i))}function c1e(i){return Vj(i)}function Npe(i){var v=hK(fR(i)),f=Vj(i);return v*f}function d1e(i,v){return i&4294967040|v}function h1e(i,v){return i&4294902015|v<<8}function jj(i){var v=tF(i);if(v&ES.Depth)return JD.Depth;if(v&ES.Normalized)return JD.Float;var f=fR(i);if(f===Uw.F16||f===Uw.F32)return JD.Float;if(f===Uw.U8||f===Uw.U16||f===Uw.U32)return JD.Uint;if(f===Uw.S8||f===Uw.S16||f===Uw.S32)return JD.Sint;throw new Error("whoops")}function hA(i,v){if(v===void 0&&(v=""),!i)throw new Error("Assert fail: ".concat(v))}function sO(i){if(i!=null)return i;throw new Error("Missing object")}function Lee(i,v){return i.r===v.r&&i.g===v.g&&i.b===v.b&&i.a===v.a}function nF(i,v){i.r=v.r,i.g=v.g,i.b=v.b,i.a=v.a}function pK(i){var v=i.r,f=i.g,m=i.b,d=i.a;return{r:v,g:f,b:m,a:d}}function RB(i,v,f,m){return m===void 0&&(m=1),{r:i,g:v,b:f,a:m}}var B$=RB(0,0,0,0),Mee=RB(0,0,0,1),Fle=RB(1,1,1,0),gK=RB(1,1,1,1),kB=!0;function Oee(i,v){v===void 0&&(v=kB),v&&(i[10]=-i[10],i[14]=-i[14])}function Fpe(i,v){v===void 0&&(v=kB),v&&(i[10]=-i[10],i[14]=-i[14]+1)}function Ble(i,v){if(v===void 0&&(v=kB),v)switch(i){case AA.LESS:return AA.GREATER;case AA.LEQUAL:return AA.GEQUAL;case AA.GEQUAL:return AA.LEQUAL;case AA.GREATER:return AA.LESS;default:return i}else return i}function Bpe(i,v){return v===void 0&&(v=kB),v?1-i:i}function mK(i,v){return v===void 0&&(v=kB),v?-i:i}function zle(i,v,f,m){if(m===void 0&&(m=kB),f=Ble(f,m),f===AA.LESS)return iv;if(f===AA.GEQUAL)return i>=v;throw new Error("whoops")}function pR(i){return!!(i&&!(i&i-1))}function xk(i,v){return i!=null?i:v}function JN(i){return i===void 0?null:i}function NB(i,v,f){i.length=v,i.fill(f)}function Wj(i,v){var f=v-1;return i+f&~f}function zpe(i,v){return((i+v-1)/v|0)*v}function Ree(i,v,f){for(var m=0,d=i.length;m>>1),M=f(v,i[E]);M<0?d=E:m=E+1}return m}function $pe(i,v,f){var m=Ree(i,v,f);i.splice(m,0,v)}function Upe(i,v,f){return f?i|=v:i&=~v,i}function vK(i,v){for(var f=new Array(i),m=0;m3&&arguments[3]!==void 0?arguments[3]:[1,1,1],O=this.viewport.projectFlat(a),V=Nu();return c0(V,V,Km(O[0],O[1],p)),Xg(V,V,Km(w[0],w[1],w[2])),i0(V,V,y[0]),Ps(V,V,y[1]),kv(V,V,y[2]),V}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(a){var p=this.getMapCanvasContainer(),y=a==="jpg"?p==null?void 0:p.toDataURL("image/jpeg"):p==null?void 0:p.toDataURL("image/png");return y}},{key:"rotateY",value:function(){throw new Error("Method not implemented.")}},{key:"hideLogo",value:function(){var a=this.map.getDiv();a&&Yl(a,"tmap-contianer--hide-logo")}}]),l}(cS);function fK(i){var d=pK();return function(){var c=(0,Tt.Z)(i),a;if(d){var p=(0,Tt.Z)(this).constructor;a=Reflect.construct(c,arguments,p)}else a=c.apply(this,arguments);return(0,Vt.Z)(this,a)}}function pK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}var gK=function(i){(0,ze.Z)(l,i);var d=fK(l);function l(){return(0,vt.Z)(this,l),d.apply(this,arguments)}return(0,Te.Z)(l,[{key:"getServiceConstructor",value:function(){return dK}}]),l}(HC),cU=x(45409),hU=x.n(cU),i8=function(){function i(d,l){(0,vt.Z)(this,i);var c=l.buffer,a=l.offset,p=l.stride,y=l.normalized,w=l.size,O=l.divisor;this.buffer=c,this.attribute={buffer:c.get(),offset:a||0,stride:p||0,normalized:y||!1,divisor:O||0},w&&(this.attribute.size=w)}return(0,Te.Z)(i,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),i}(),s2,DI,gS,Yy,ZE,mS,KT,II,kb,Zg,v1,lw,Ob,jE,mK=(s2={},(0,pn.Z)(s2,Fi.POINTS,"points"),(0,pn.Z)(s2,Fi.LINES,"lines"),(0,pn.Z)(s2,Fi.LINE_LOOP,"line loop"),(0,pn.Z)(s2,Fi.LINE_STRIP,"line strip"),(0,pn.Z)(s2,Fi.TRIANGLES,"triangles"),(0,pn.Z)(s2,Fi.TRIANGLE_FAN,"triangle fan"),(0,pn.Z)(s2,Fi.TRIANGLE_STRIP,"triangle strip"),s2),dU=(DI={},(0,pn.Z)(DI,Fi.STATIC_DRAW,"static"),(0,pn.Z)(DI,Fi.DYNAMIC_DRAW,"dynamic"),(0,pn.Z)(DI,Fi.STREAM_DRAW,"stream"),DI),MM=(gS={},(0,pn.Z)(gS,Fi.BYTE,"int8"),(0,pn.Z)(gS,Fi.INT,"int32"),(0,pn.Z)(gS,Fi.UNSIGNED_BYTE,"uint8"),(0,pn.Z)(gS,Fi.UNSIGNED_SHORT,"uint16"),(0,pn.Z)(gS,Fi.UNSIGNED_INT,"uint32"),(0,pn.Z)(gS,Fi.FLOAT,"float"),gS),o8=(Yy={},(0,pn.Z)(Yy,Fi.ALPHA,"alpha"),(0,pn.Z)(Yy,Fi.LUMINANCE,"luminance"),(0,pn.Z)(Yy,Fi.LUMINANCE_ALPHA,"luminance alpha"),(0,pn.Z)(Yy,Fi.RGB,"rgb"),(0,pn.Z)(Yy,Fi.RGBA,"rgba"),(0,pn.Z)(Yy,Fi.RGBA4,"rgba4"),(0,pn.Z)(Yy,Fi.RGB5_A1,"rgb5 a1"),(0,pn.Z)(Yy,Fi.RGB565,"rgb565"),(0,pn.Z)(Yy,Fi.DEPTH_COMPONENT,"depth"),(0,pn.Z)(Yy,Fi.DEPTH_STENCIL,"depth stencil"),Yy),vK=(ZE={},(0,pn.Z)(ZE,Fi.DONT_CARE,"dont care"),(0,pn.Z)(ZE,Fi.NICEST,"nice"),(0,pn.Z)(ZE,Fi.FASTEST,"fast"),ZE),fU=(mS={},(0,pn.Z)(mS,Fi.NEAREST,"nearest"),(0,pn.Z)(mS,Fi.LINEAR,"linear"),(0,pn.Z)(mS,Fi.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,pn.Z)(mS,Fi.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,pn.Z)(mS,Fi.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,pn.Z)(mS,Fi.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),mS),PM=(KT={},(0,pn.Z)(KT,Fi.REPEAT,"repeat"),(0,pn.Z)(KT,Fi.CLAMP_TO_EDGE,"clamp"),(0,pn.Z)(KT,Fi.MIRRORED_REPEAT,"mirror"),KT),pU=(II={},(0,pn.Z)(II,Fi.NONE,"none"),(0,pn.Z)(II,Fi.BROWSER_DEFAULT_WEBGL,"browser"),II),yK=(kb={},(0,pn.Z)(kb,Fi.NEVER,"never"),(0,pn.Z)(kb,Fi.ALWAYS,"always"),(0,pn.Z)(kb,Fi.LESS,"less"),(0,pn.Z)(kb,Fi.LEQUAL,"lequal"),(0,pn.Z)(kb,Fi.GREATER,"greater"),(0,pn.Z)(kb,Fi.GEQUAL,"gequal"),(0,pn.Z)(kb,Fi.EQUAL,"equal"),(0,pn.Z)(kb,Fi.NOTEQUAL,"notequal"),kb),XT=(Zg={},(0,pn.Z)(Zg,Fi.FUNC_ADD,"add"),(0,pn.Z)(Zg,Fi.MIN_EXT,"min"),(0,pn.Z)(Zg,Fi.MAX_EXT,"max"),(0,pn.Z)(Zg,Fi.FUNC_SUBTRACT,"subtract"),(0,pn.Z)(Zg,Fi.FUNC_REVERSE_SUBTRACT,"reverse subtract"),Zg),LI=(v1={},(0,pn.Z)(v1,Fi.ZERO,"zero"),(0,pn.Z)(v1,Fi.ONE,"one"),(0,pn.Z)(v1,Fi.SRC_COLOR,"src color"),(0,pn.Z)(v1,Fi.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,pn.Z)(v1,Fi.SRC_ALPHA,"src alpha"),(0,pn.Z)(v1,Fi.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,pn.Z)(v1,Fi.DST_COLOR,"dst color"),(0,pn.Z)(v1,Fi.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,pn.Z)(v1,Fi.DST_ALPHA,"dst alpha"),(0,pn.Z)(v1,Fi.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,pn.Z)(v1,Fi.CONSTANT_COLOR,"constant color"),(0,pn.Z)(v1,Fi.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,pn.Z)(v1,Fi.CONSTANT_ALPHA,"constant alpha"),(0,pn.Z)(v1,Fi.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,pn.Z)(v1,Fi.SRC_ALPHA_SATURATE,"src alpha saturate"),v1),RR=(lw={},(0,pn.Z)(lw,Fi.NEVER,"never"),(0,pn.Z)(lw,Fi.ALWAYS,"always"),(0,pn.Z)(lw,Fi.LESS,"less"),(0,pn.Z)(lw,Fi.LEQUAL,"lequal"),(0,pn.Z)(lw,Fi.GREATER,"greater"),(0,pn.Z)(lw,Fi.GEQUAL,"gequal"),(0,pn.Z)(lw,Fi.EQUAL,"equal"),(0,pn.Z)(lw,Fi.NOTEQUAL,"notequal"),lw),YT=(Ob={},(0,pn.Z)(Ob,Fi.ZERO,"zero"),(0,pn.Z)(Ob,Fi.KEEP,"keep"),(0,pn.Z)(Ob,Fi.REPLACE,"replace"),(0,pn.Z)(Ob,Fi.INVERT,"invert"),(0,pn.Z)(Ob,Fi.INCR,"increment"),(0,pn.Z)(Ob,Fi.DECR,"decrement"),(0,pn.Z)(Ob,Fi.INCR_WRAP,"increment wrap"),(0,pn.Z)(Ob,Fi.DECR_WRAP,"decrement wrap"),Ob),kR=(jE={},(0,pn.Z)(jE,Fi.FRONT,"front"),(0,pn.Z)(jE,Fi.BACK,"back"),jE),_K=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"isDestroyed",!1);var c=l.data,a=l.usage,p=l.type;this.buffer=d.buffer({data:c,usage:dU[a||Fi.STATIC_DRAW],type:MM[p||Fi.UNSIGNED_BYTE]})}return(0,Te.Z)(i,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(l){var c=l.data,a=l.offset;this.buffer.subdata(c,a)}}]),i}(),qT=function(){function i(d,l){(0,vt.Z)(this,i);var c=l.data,a=l.usage,p=l.type,y=l.count;this.elements=d.elements({data:c,usage:dU[a||Fi.STATIC_DRAW],type:MM[p||Fi.UNSIGNED_BYTE],count:y})}return(0,Te.Z)(i,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(l){var c=l.data;this.elements.subdata(c)}},{key:"destroy",value:function(){}}]),i}(),s8=function(){function i(d,l){(0,vt.Z)(this,i);var c=l.width,a=l.height,p=l.color,y=l.colors,w={width:c,height:a};Array.isArray(y)&&(w.colors=y.map(function(O){return O.get()})),p&&typeof p!="boolean"&&(w.color=p.get()),this.framebuffer=d.framebuffer(w)}return(0,Te.Z)(i,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(l){var c=l.width,a=l.height;this.framebuffer.resize(c,a)}}]),i}(),OR=function(i){return i==null},_x=OR,gU={}.toString,NR=function(i,d){return gU.call(i)==="[object "+d+"]"},a8=NR,bK=function(i){return a8(i,"Number")},HE=bK,mU=function(i,d,l){return il?l:i},xK=mU,rp=x(32290),vU=x(37271),yU=vU,gl;(function(i){i[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",i[i.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.CULL_FACE=2884]="CULL_FACE",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.BLEND=3042]="BLEND",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.DITHER=3024]="DITHER",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DOUBLE=5130]="DOUBLE",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.ALWAYS=519]="ALWAYS",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.GEQUAL=518]="GEQUAL",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",i[i.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",i[i.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.READ_BUFFER=3074]="READ_BUFFER",i[i.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",i[i.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",i[i.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",i[i.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",i[i.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",i[i.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",i[i.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",i[i.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",i[i.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",i[i.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",i[i.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",i[i.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",i[i.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",i[i.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",i[i.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",i[i.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",i[i.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",i[i.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",i[i.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",i[i.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",i[i.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",i[i.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",i[i.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",i[i.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",i[i.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",i[i.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",i[i.RED=6403]="RED",i[i.RGB8=32849]="RGB8",i[i.RGBA8=32856]="RGBA8",i[i.RGB10_A2=32857]="RGB10_A2",i[i.TEXTURE_3D=32879]="TEXTURE_3D",i[i.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",i[i.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",i[i.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",i[i.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",i[i.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",i[i.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",i[i.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",i[i.SRGB=35904]="SRGB",i[i.SRGB8=35905]="SRGB8",i[i.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",i[i.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",i[i.RGBA32F=34836]="RGBA32F",i[i.RGB32F=34837]="RGB32F",i[i.RGBA16F=34842]="RGBA16F",i[i.RGB16F=34843]="RGB16F",i[i.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",i[i.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",i[i.R11F_G11F_B10F=35898]="R11F_G11F_B10F",i[i.RGB9_E5=35901]="RGB9_E5",i[i.RGBA32UI=36208]="RGBA32UI",i[i.RGB32UI=36209]="RGB32UI",i[i.RGBA16UI=36214]="RGBA16UI",i[i.RGB16UI=36215]="RGB16UI",i[i.RGBA8UI=36220]="RGBA8UI",i[i.RGB8UI=36221]="RGB8UI",i[i.RGBA32I=36226]="RGBA32I",i[i.RGB32I=36227]="RGB32I",i[i.RGBA16I=36232]="RGBA16I",i[i.RGB16I=36233]="RGB16I",i[i.RGBA8I=36238]="RGBA8I",i[i.RGB8I=36239]="RGB8I",i[i.RED_INTEGER=36244]="RED_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTEGER",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.R8=33321]="R8",i[i.RG8=33323]="RG8",i[i.R16F=33325]="R16F",i[i.R32F=33326]="R32F",i[i.RG16F=33327]="RG16F",i[i.RG32F=33328]="RG32F",i[i.R8I=33329]="R8I",i[i.R8UI=33330]="R8UI",i[i.R16I=33331]="R16I",i[i.R16UI=33332]="R16UI",i[i.R32I=33333]="R32I",i[i.R32UI=33334]="R32UI",i[i.RG8I=33335]="RG8I",i[i.RG8UI=33336]="RG8UI",i[i.RG16I=33337]="RG16I",i[i.RG16UI=33338]="RG16UI",i[i.RG32I=33339]="RG32I",i[i.RG32UI=33340]="RG32UI",i[i.R8_SNORM=36756]="R8_SNORM",i[i.RG8_SNORM=36757]="RG8_SNORM",i[i.RGB8_SNORM=36758]="RGB8_SNORM",i[i.RGBA8_SNORM=36759]="RGBA8_SNORM",i[i.RGB10_A2UI=36975]="RGB10_A2UI",i[i.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",i[i.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",i[i.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",i[i.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",i[i.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",i[i.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",i[i.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",i[i.HALF_FLOAT=5131]="HALF_FLOAT",i[i.RG=33319]="RG",i[i.RG_INTEGER=33320]="RG_INTEGER",i[i.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",i[i.CURRENT_QUERY=34917]="CURRENT_QUERY",i[i.QUERY_RESULT=34918]="QUERY_RESULT",i[i.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",i[i.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",i[i.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",i[i.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",i[i.DRAW_BUFFER0=34853]="DRAW_BUFFER0",i[i.DRAW_BUFFER1=34854]="DRAW_BUFFER1",i[i.DRAW_BUFFER2=34855]="DRAW_BUFFER2",i[i.DRAW_BUFFER3=34856]="DRAW_BUFFER3",i[i.DRAW_BUFFER4=34857]="DRAW_BUFFER4",i[i.DRAW_BUFFER5=34858]="DRAW_BUFFER5",i[i.DRAW_BUFFER6=34859]="DRAW_BUFFER6",i[i.DRAW_BUFFER7=34860]="DRAW_BUFFER7",i[i.DRAW_BUFFER8=34861]="DRAW_BUFFER8",i[i.DRAW_BUFFER9=34862]="DRAW_BUFFER9",i[i.DRAW_BUFFER10=34863]="DRAW_BUFFER10",i[i.DRAW_BUFFER11=34864]="DRAW_BUFFER11",i[i.DRAW_BUFFER12=34865]="DRAW_BUFFER12",i[i.DRAW_BUFFER13=34866]="DRAW_BUFFER13",i[i.DRAW_BUFFER14=34867]="DRAW_BUFFER14",i[i.DRAW_BUFFER15=34868]="DRAW_BUFFER15",i[i.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",i[i.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",i[i.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",i[i.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",i[i.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",i[i.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",i[i.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",i[i.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",i[i.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",i[i.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",i[i.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",i[i.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",i[i.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",i[i.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",i[i.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",i[i.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",i[i.SAMPLER_3D=35679]="SAMPLER_3D",i[i.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",i[i.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",i[i.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",i[i.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",i[i.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",i[i.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",i[i.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",i[i.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",i[i.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",i[i.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",i[i.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",i[i.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",i[i.MAX_SAMPLES=36183]="MAX_SAMPLES",i[i.SAMPLER_BINDING=35097]="SAMPLER_BINDING",i[i.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",i[i.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",i[i.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",i[i.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",i[i.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",i[i.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",i[i.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",i[i.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",i[i.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",i[i.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",i[i.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",i[i.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",i[i.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",i[i.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",i[i.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",i[i.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",i[i.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",i[i.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",i[i.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",i[i.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",i[i.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",i[i.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",i[i.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",i[i.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",i[i.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",i[i.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",i[i.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",i[i.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",i[i.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",i[i.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",i[i.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",i[i.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",i[i.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",i[i.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",i[i.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",i[i.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",i[i.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",i[i.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",i[i.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",i[i.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",i[i.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",i[i.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",i[i.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",i[i.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",i[i.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",i[i.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",i[i.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",i[i.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",i[i.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",i[i.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",i[i.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",i[i.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",i[i.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",i[i.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",i[i.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",i[i.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",i[i.UNIFORM_TYPE=35383]="UNIFORM_TYPE",i[i.UNIFORM_SIZE=35384]="UNIFORM_SIZE",i[i.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",i[i.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",i[i.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",i[i.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",i[i.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",i[i.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",i[i.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",i[i.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",i[i.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",i[i.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",i[i.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",i[i.OBJECT_TYPE=37138]="OBJECT_TYPE",i[i.SYNC_CONDITION=37139]="SYNC_CONDITION",i[i.SYNC_STATUS=37140]="SYNC_STATUS",i[i.SYNC_FLAGS=37141]="SYNC_FLAGS",i[i.SYNC_FENCE=37142]="SYNC_FENCE",i[i.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",i[i.UNSIGNALED=37144]="UNSIGNALED",i[i.SIGNALED=37145]="SIGNALED",i[i.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",i[i.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",i[i.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",i[i.WAIT_FAILED=37149]="WAIT_FAILED",i[i.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",i[i.COLOR=6144]="COLOR",i[i.DEPTH=6145]="DEPTH",i[i.STENCIL=6146]="STENCIL",i[i.MIN=32775]="MIN",i[i.MAX=32776]="MAX",i[i.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",i[i.STREAM_READ=35041]="STREAM_READ",i[i.STREAM_COPY=35042]="STREAM_COPY",i[i.STATIC_READ=35045]="STATIC_READ",i[i.STATIC_COPY=35046]="STATIC_COPY",i[i.DYNAMIC_READ=35049]="DYNAMIC_READ",i[i.DYNAMIC_COPY=35050]="DYNAMIC_COPY",i[i.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",i[i.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",i[i.INVALID_INDEX=4294967295]="INVALID_INDEX",i[i.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",i[i.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",i[i.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",i[i.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",i[i.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",i[i.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",i[i.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",i[i.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",i[i.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",i[i.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",i[i.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",i[i.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",i[i.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",i[i.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",i[i.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",i[i.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",i[i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",i[i.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",i[i.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",i[i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",i[i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",i[i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",i[i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",i[i.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",i[i.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",i[i.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",i[i.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",i[i.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",i[i.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",i[i.RGBA32F_EXT=34836]="RGBA32F_EXT",i[i.RGB32F_EXT=34837]="RGB32F_EXT",i[i.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",i[i.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.SRGB_EXT=35904]="SRGB_EXT",i[i.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",i[i.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",i[i.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",i[i.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",i[i.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",i[i.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",i[i.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",i[i.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",i[i.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",i[i.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",i[i.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",i[i.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",i[i.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",i[i.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",i[i.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",i[i.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",i[i.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",i[i.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",i[i.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",i[i.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",i[i.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",i[i.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",i[i.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",i[i.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",i[i.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",i[i.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",i[i.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",i[i.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",i[i.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",i[i.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",i[i.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",i[i.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",i[i.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",i[i.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",i[i.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",i[i.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",i[i.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",i[i.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",i[i.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",i[i.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",i[i.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",i[i.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",i[i.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",i[i.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",i[i.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",i[i.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(gl||(gl={}));var km;(function(i){i[i.Buffer=0]="Buffer",i[i.Texture=1]="Texture",i[i.RenderTarget=2]="RenderTarget",i[i.Sampler=3]="Sampler",i[i.Program=4]="Program",i[i.Bindings=5]="Bindings",i[i.InputLayout=6]="InputLayout",i[i.RenderPipeline=7]="RenderPipeline",i[i.ComputePipeline=8]="ComputePipeline",i[i.Readback=9]="Readback",i[i.QueryPool=10]="QueryPool",i[i.RenderBundle=11]="RenderBundle"})(km||(km={}));var Em;(function(i){i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS"})(Em||(Em={}));var uw;(function(i){i[i.CCW=2305]="CCW",i[i.CW=2304]="CW"})(uw||(uw={}));var Nb;(function(i){i[i.NONE=0]="NONE",i[i.FRONT=1]="FRONT",i[i.BACK=2]="BACK",i[i.FRONT_AND_BACK=3]="FRONT_AND_BACK"})(Nb||(Nb={}));var jm;(function(i){i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC=768]="SRC",i[i.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",i[i.DST=774]="DST",i[i.ONE_MINUS_DST=775]="ONE_MINUS_DST",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.CONST=32769]="CONST",i[i.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})(jm||(jm={}));var Ny;(function(i){i[i.ADD=32774]="ADD",i[i.SUBSTRACT=32778]="SUBSTRACT",i[i.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",i[i.MIN=32775]="MIN",i[i.MAX=32776]="MAX"})(Ny||(Ny={}));var ob;(function(i){i[i.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",i[i.REPEAT=1]="REPEAT",i[i.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(ob||(ob={}));var Jv;(function(i){i[i.POINT=0]="POINT",i[i.BILINEAR=1]="BILINEAR"})(Jv||(Jv={}));var py;(function(i){i[i.NO_MIP=0]="NO_MIP",i[i.NEAREST=1]="NEAREST",i[i.LINEAR=2]="LINEAR"})(py||(py={}));var U1;(function(i){i[i.POINTS=0]="POINTS",i[i.TRIANGLES=1]="TRIANGLES",i[i.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",i[i.LINES=3]="LINES",i[i.LINE_STRIP=4]="LINE_STRIP"})(U1||(U1={}));var _v;(function(i){i[i.MAP_READ=1]="MAP_READ",i[i.MAP_WRITE=2]="MAP_WRITE",i[i.COPY_SRC=4]="COPY_SRC",i[i.COPY_DST=8]="COPY_DST",i[i.INDEX=16]="INDEX",i[i.VERTEX=32]="VERTEX",i[i.UNIFORM=64]="UNIFORM",i[i.STORAGE=128]="STORAGE",i[i.INDIRECT=256]="INDIRECT",i[i.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(_v||(_v={}));var Fb;(function(i){i[i.STATIC=1]="STATIC",i[i.DYNAMIC=2]="DYNAMIC"})(Fb||(Fb={}));var GE;(function(i){i[i.VERTEX=1]="VERTEX",i[i.INSTANCE=2]="INSTANCE"})(GE||(GE={}));var a2;(function(i){i.LOADED="loaded"})(a2||(a2={}));var Am;(function(i){i[i.TEXTURE_2D=0]="TEXTURE_2D",i[i.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",i[i.TEXTURE_3D=2]="TEXTURE_3D",i[i.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(Am||(Am={}));var qy;(function(i){i[i.SAMPLED=1]="SAMPLED",i[i.RENDER_TARGET=2]="RENDER_TARGET",i[i.STORAGE=4]="STORAGE"})(qy||(qy={}));var gy;(function(i){i[i.NONE=0]="NONE",i[i.RED=1]="RED",i[i.GREEN=2]="GREEN",i[i.BLUE=4]="BLUE",i[i.ALPHA=8]="ALPHA",i[i.RGB=7]="RGB",i[i.ALL=15]="ALL"})(gy||(gy={}));var Uv;(function(i){i[i.KEEP=7680]="KEEP",i[i.ZERO=0]="ZERO",i[i.REPLACE=7681]="REPLACE",i[i.INVERT=5386]="INVERT",i[i.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",i[i.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",i[i.INCREMENT_WRAP=34055]="INCREMENT_WRAP",i[i.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(Uv||(Uv={}));function CK(i,d,l,c){var a=Am.TEXTURE_2D,p=1,y=qy.SAMPLED;return{dimension:a,format:i,width:d,height:l,depthOrArrayLayers:p,mipLevelCount:c,usage:y}}var Gv;(function(i){i[i.Float=0]="Float",i[i.UnfilterableFloat=1]="UnfilterableFloat",i[i.Uint=2]="Uint",i[i.Sint=3]="Sint",i[i.Depth=4]="Depth"})(Gv||(Gv={}));var l2;(function(i){i[i.LOWER_LEFT=0]="LOWER_LEFT",i[i.UPPER_LEFT=1]="UPPER_LEFT"})(l2||(l2={}));var KE;(function(i){i[i.NEGATIVE_ONE=0]="NEGATIVE_ONE",i[i.ZERO=1]="ZERO"})(KE||(KE={}));var FR;(function(i){i[i.OcclusionConservative=0]="OcclusionConservative"})(FR||(FR={}));var Rh;(function(i){i[i.U8=1]="U8",i[i.U16=2]="U16",i[i.U32=3]="U32",i[i.S8=4]="S8",i[i.S16=5]="S16",i[i.S32=6]="S32",i[i.F16=7]="F16",i[i.F32=8]="F32",i[i.BC1=65]="BC1",i[i.BC2=66]="BC2",i[i.BC3=67]="BC3",i[i.BC4_UNORM=68]="BC4_UNORM",i[i.BC4_SNORM=69]="BC4_SNORM",i[i.BC5_UNORM=70]="BC5_UNORM",i[i.BC5_SNORM=71]="BC5_SNORM",i[i.U16_PACKED_5551=97]="U16_PACKED_5551",i[i.U16_PACKED_565=98]="U16_PACKED_565",i[i.D24=129]="D24",i[i.D32F=130]="D32F",i[i.D24S8=131]="D24S8",i[i.D32FS8=132]="D32FS8"})(Rh||(Rh={}));var mp;(function(i){i[i.R=1]="R",i[i.RG=2]="RG",i[i.RGB=3]="RGB",i[i.RGBA=4]="RGBA",i[i.A=5]="A"})(mp||(mp={}));function mee(i){return i}var yf;(function(i){i[i.None=0]="None",i[i.Normalized=1]="Normalized",i[i.sRGB=2]="sRGB",i[i.Depth=4]="Depth",i[i.Stencil=8]="Stencil",i[i.RenderTarget=16]="RenderTarget",i[i.Luminance=32]="Luminance"})(yf||(yf={}));function zf(i,d,l){return i<<16|d<<8|l}var wu;(function(i){i[i.ALPHA=zf(Rh.U8,mp.A,yf.None)]="ALPHA",i[i.U8_LUMINANCE=zf(Rh.U8,mp.A,yf.Luminance)]="U8_LUMINANCE",i[i.F16_LUMINANCE=zf(Rh.F16,mp.A,yf.Luminance)]="F16_LUMINANCE",i[i.F32_LUMINANCE=zf(Rh.F32,mp.A,yf.Luminance)]="F32_LUMINANCE",i[i.F16_R=zf(Rh.F16,mp.R,yf.None)]="F16_R",i[i.F16_RG=zf(Rh.F16,mp.RG,yf.None)]="F16_RG",i[i.F16_RGB=zf(Rh.F16,mp.RGB,yf.None)]="F16_RGB",i[i.F16_RGBA=zf(Rh.F16,mp.RGBA,yf.None)]="F16_RGBA",i[i.F32_R=zf(Rh.F32,mp.R,yf.None)]="F32_R",i[i.F32_RG=zf(Rh.F32,mp.RG,yf.None)]="F32_RG",i[i.F32_RGB=zf(Rh.F32,mp.RGB,yf.None)]="F32_RGB",i[i.F32_RGBA=zf(Rh.F32,mp.RGBA,yf.None)]="F32_RGBA",i[i.U8_R=zf(Rh.U8,mp.R,yf.None)]="U8_R",i[i.U8_R_NORM=zf(Rh.U8,mp.R,yf.Normalized)]="U8_R_NORM",i[i.U8_RG=zf(Rh.U8,mp.RG,yf.None)]="U8_RG",i[i.U8_RG_NORM=zf(Rh.U8,mp.RG,yf.Normalized)]="U8_RG_NORM",i[i.U8_RGB=zf(Rh.U8,mp.RGB,yf.None)]="U8_RGB",i[i.U8_RGB_NORM=zf(Rh.U8,mp.RGB,yf.Normalized)]="U8_RGB_NORM",i[i.U8_RGB_SRGB=zf(Rh.U8,mp.RGB,yf.sRGB|yf.Normalized)]="U8_RGB_SRGB",i[i.U8_RGBA=zf(Rh.U8,mp.RGBA,yf.None)]="U8_RGBA",i[i.U8_RGBA_NORM=zf(Rh.U8,mp.RGBA,yf.Normalized)]="U8_RGBA_NORM",i[i.U8_RGBA_SRGB=zf(Rh.U8,mp.RGBA,yf.sRGB|yf.Normalized)]="U8_RGBA_SRGB",i[i.U16_R=zf(Rh.U16,mp.R,yf.None)]="U16_R",i[i.U16_R_NORM=zf(Rh.U16,mp.R,yf.Normalized)]="U16_R_NORM",i[i.U16_RG_NORM=zf(Rh.U16,mp.RG,yf.Normalized)]="U16_RG_NORM",i[i.U16_RGBA_NORM=zf(Rh.U16,mp.RGBA,yf.Normalized)]="U16_RGBA_NORM",i[i.U16_RGBA=zf(Rh.U16,mp.RGBA,yf.None)]="U16_RGBA",i[i.U16_RGB=zf(Rh.U16,mp.RGB,yf.None)]="U16_RGB",i[i.U16_RG=zf(Rh.U16,mp.RG,yf.None)]="U16_RG",i[i.U32_R=zf(Rh.U32,mp.R,yf.None)]="U32_R",i[i.U32_RG=zf(Rh.U32,mp.RG,yf.None)]="U32_RG",i[i.U32_RGB=zf(Rh.U32,mp.RGB,yf.None)]="U32_RGB",i[i.U32_RGBA=zf(Rh.U32,mp.RGBA,yf.None)]="U32_RGBA",i[i.S8_R=zf(Rh.S8,mp.R,yf.None)]="S8_R",i[i.S8_R_NORM=zf(Rh.S8,mp.R,yf.Normalized)]="S8_R_NORM",i[i.S8_RG_NORM=zf(Rh.S8,mp.RG,yf.Normalized)]="S8_RG_NORM",i[i.S8_RGB_NORM=zf(Rh.S8,mp.RGB,yf.Normalized)]="S8_RGB_NORM",i[i.S8_RGBA_NORM=zf(Rh.S8,mp.RGBA,yf.Normalized)]="S8_RGBA_NORM",i[i.S16_R=zf(Rh.S16,mp.R,yf.None)]="S16_R",i[i.S16_RG=zf(Rh.S16,mp.RG,yf.None)]="S16_RG",i[i.S16_RG_NORM=zf(Rh.S16,mp.RG,yf.Normalized)]="S16_RG_NORM",i[i.S16_RGB_NORM=zf(Rh.S16,mp.RGB,yf.Normalized)]="S16_RGB_NORM",i[i.S16_RGBA=zf(Rh.S16,mp.RGBA,yf.None)]="S16_RGBA",i[i.S16_RGBA_NORM=zf(Rh.S16,mp.RGBA,yf.Normalized)]="S16_RGBA_NORM",i[i.S32_R=zf(Rh.S32,mp.R,yf.None)]="S32_R",i[i.S32_RG=zf(Rh.S32,mp.RG,yf.None)]="S32_RG",i[i.S32_RGB=zf(Rh.S32,mp.RGB,yf.None)]="S32_RGB",i[i.S32_RGBA=zf(Rh.S32,mp.RGBA,yf.None)]="S32_RGBA",i[i.U16_RGBA_5551=zf(Rh.U16_PACKED_5551,mp.RGBA,yf.Normalized)]="U16_RGBA_5551",i[i.U16_RGB_565=zf(Rh.U16_PACKED_565,mp.RGB,yf.Normalized)]="U16_RGB_565",i[i.BC1=zf(Rh.BC1,mp.RGBA,yf.Normalized)]="BC1",i[i.BC1_SRGB=zf(Rh.BC1,mp.RGBA,yf.Normalized|yf.sRGB)]="BC1_SRGB",i[i.BC2=zf(Rh.BC2,mp.RGBA,yf.Normalized)]="BC2",i[i.BC2_SRGB=zf(Rh.BC2,mp.RGBA,yf.Normalized|yf.sRGB)]="BC2_SRGB",i[i.BC3=zf(Rh.BC3,mp.RGBA,yf.Normalized)]="BC3",i[i.BC3_SRGB=zf(Rh.BC3,mp.RGBA,yf.Normalized|yf.sRGB)]="BC3_SRGB",i[i.BC4_UNORM=zf(Rh.BC4_UNORM,mp.R,yf.Normalized)]="BC4_UNORM",i[i.BC4_SNORM=zf(Rh.BC4_SNORM,mp.R,yf.Normalized)]="BC4_SNORM",i[i.BC5_UNORM=zf(Rh.BC5_UNORM,mp.RG,yf.Normalized)]="BC5_UNORM",i[i.BC5_SNORM=zf(Rh.BC5_SNORM,mp.RG,yf.Normalized)]="BC5_SNORM",i[i.D24=zf(Rh.D24,mp.R,yf.Depth)]="D24",i[i.D24_S8=zf(Rh.D24S8,mp.RG,yf.Depth|yf.Stencil)]="D24_S8",i[i.D32F=zf(Rh.D32F,mp.R,yf.Depth)]="D32F",i[i.D32F_S8=zf(Rh.D32FS8,mp.RG,yf.Depth|yf.Stencil)]="D32F_S8",i[i.U8_RGB_RT=zf(Rh.U8,mp.RGB,yf.RenderTarget|yf.Normalized)]="U8_RGB_RT",i[i.U8_RGBA_RT=zf(Rh.U8,mp.RGBA,yf.RenderTarget|yf.Normalized)]="U8_RGBA_RT",i[i.U8_RGBA_RT_SRGB=zf(Rh.U8,mp.RGBA,yf.RenderTarget|yf.Normalized|yf.sRGB)]="U8_RGBA_RT_SRGB"})(wu||(wu={}));function BR(i){return i>>>8&255}function u2(i){return i>>>16&255}function JT(i){return i&255}function l8(i){switch(i){case Rh.F32:case Rh.U32:case Rh.S32:return 4;case Rh.U16:case Rh.S16:case Rh.F16:return 2;case Rh.U8:case Rh.S8:return 1;default:throw new Error("whoops")}}function u8(i){return l8(u2(i))}function zie(i){return BR(i)}function vee(i){var d=l8(u2(i)),l=BR(i);return d*l}function Uie(i,d){return i&4294967040|d}function Vie(i,d){return i&4294902015|d<<8}function zR(i){var d=JT(i);if(d&yf.Depth)return Gv.Depth;if(d&yf.Normalized)return Gv.Float;var l=u2(i);if(l===Rh.F16||l===Rh.F32)return Gv.Float;if(l===Rh.U8||l===Rh.U16||l===Rh.U32)return Gv.Uint;if(l===Rh.S8||l===Rh.S16||l===Rh.S32)return Gv.Sint;throw new Error("whoops")}function hm(i,d){if(d===void 0&&(d=""),!i)throw new Error("Assert fail: ".concat(d))}function rC(i){if(i!=null)return i;throw new Error("Missing object")}function _U(i,d){return i.r===d.r&&i.g===d.g&&i.b===d.b&&i.a===d.a}function QT(i,d){i.r=d.r,i.g=d.g,i.b=d.b,i.a=d.a}function c8(i){var d=i.r,l=i.g,c=i.b,a=i.a;return{r:d,g:l,b:c,a}}function MI(i,d,l,c){return c===void 0&&(c=1),{r:i,g:d,b:l,a:c}}var RM=MI(0,0,0,0),bU=MI(0,0,0,1),wK=MI(1,1,1,0),h8=MI(1,1,1,1),PI=!0;function xU(i,d){d===void 0&&(d=PI),d&&(i[10]=-i[10],i[14]=-i[14])}function yee(i,d){d===void 0&&(d=PI),d&&(i[10]=-i[10],i[14]=-i[14]+1)}function SK(i,d){if(d===void 0&&(d=PI),d)switch(i){case Em.LESS:return Em.GREATER;case Em.LEQUAL:return Em.GEQUAL;case Em.GEQUAL:return Em.LEQUAL;case Em.GREATER:return Em.LESS;default:return i}else return i}function _ee(i,d){return d===void 0&&(d=PI),d?1-i:i}function d8(i,d){return d===void 0&&(d=PI),d?-i:i}function EK(i,d,l,c){if(c===void 0&&(c=PI),l=SK(l,c),l===Em.LESS)return id;if(l===Em.GEQUAL)return i>=d;throw new Error("whoops")}function c2(i){return!!(i&&!(i&i-1))}function vS(i,d){return i!=null?i:d}function XE(i){return i===void 0?null:i}function RI(i,d,l){i.length=d,i.fill(l)}function UR(i,d){var l=d-1;return i+l&~l}function bee(i,d){return((i+d-1)/d|0)*d}function CU(i,d,l){for(var c=0,a=i.length;c>>1),y=l(d,i[p]);y<0?a=p:c=p+1}return c}function xee(i,d,l){var c=CU(i,d,l);i.splice(c,0,d)}function Cee(i,d,l){return l?i|=d:i&=~d,i}function f8(i,d){for(var l=new Array(i),c=0;c-1;if(J=J.replace(";","").replace("[","").trim(),!B.startsWith("#")){if(B){var Ze=f.find(function(Go){return B===Go.type});if(Ze)if(ue)for(var st=function(Go){Ze.uniforms.forEach(function(Ta){v.push("".concat(J,"[").concat(Go,"].").concat(Ta.name))})},Fr=0;Fr<5;Fr++)st(Fr);else Ze.uniforms.forEach(function(Go){v.push("".concat(J,".").concat(Go.name))})}J&&v.push(J)}}),""}),v}function U$(i){if(i===void 0)return null;var v=/binding\s*=\s*(\d+)/.exec(i);if(v!==null){var f=parseInt(v[1],10);if(!Number.isNaN(f))return f}return null}function qj(i){var v="",f=i;return[f,v]}function VD(i,v,f,m,d){var E;m===void 0&&(m=null),d===void 0&&(d=!0);var M=i.glslVersion==="#version 100",B=v==="frag"&&((E=f.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||E===void 0?void 0:E.length)>1,J=f.replace(`\r +`).forEach(function(p){var y=p.trim().split(" "),w=y[0]||"",O=y[1]||"",V=O.indexOf("[")>-1;if(O=O.replace(";","").replace("[","").trim(),!w.startsWith("#")){if(w){var he=l.find(function(Pt){return w===Pt.type});if(he)if(V)for(var be=function(Pt){he.uniforms.forEach(function(qt){d.push("".concat(O,"[").concat(Pt,"].").concat(qt.name))})},ut=0;ut<5;ut++)be(ut);else he.uniforms.forEach(function(Pt){d.push("".concat(O,".").concat(Pt.name))})}O&&d.push(O)}}),""}),d}function NM(i){if(i===void 0)return null;var d=/binding\s*=\s*(\d+)/.exec(i);if(d!==null){var l=parseInt(d[1],10);if(!Number.isNaN(l))return l}return null}function GR(i){var d="",l=i;return[l,d]}function Fv(i,d,l,c,a){var p;c===void 0&&(c=null),a===void 0&&(a=!0);var y=i.glslVersion==="#version 100",w=d==="frag"&&((p=l.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||p===void 0?void 0:p.length)>1,O=l.replace(`\r `,` `).split(` -`).map(function(J1){return J1.replace(/[/][/].*$/,"")}).filter(function(J1){var ey=!J1||/^\s+$/.test(J1);return!ey}),ue="";m!==null&&(ue=Object.keys(m).map(function(J1){return yP(J1,m[J1])}).join(` -`));var Ze=J.find(function(J1){return J1.startsWith("precision")})||"precision mediump float;",st=d?J.filter(function(J1){return!J1.startsWith("precision")}).join(` -`):J.join(` -`),Fr="";if(i.viewportOrigin===hR.UPPER_LEFT&&(Fr+="".concat(yP("VIEWPORT_ORIGIN_TL","1"),` -`)),i.clipSpaceNearZ===qN.ZERO&&(Fr+="".concat(yP("CLIPSPACE_NEAR_ZERO","1"),` -`)),i.explicitBindingLocations){var Go=0,Ta=0,eu=0;st=st.replace(/^\s*(layout\((.*)\))?\s*uniform(.+{)$/gm,function(J1,ey,Fy,C_){var yx=Fy?"".concat(Fy,", "):"";return"layout(".concat(yx,"set = ").concat(Go,", binding = ").concat(Ta++,") uniform ").concat(C_)}),Go++,Ta=0,hA(i.separateSamplerTextures),st=st.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(J1,ey,Fy,C_,yx){var ux=U$(Fy);ux===null&&(ux=Ta++);var h2=(0,lE.CR)(qj(C_),2),V2=h2[0],aw=h2[1];return v==="frag"?` -layout(set = `.concat(Go,", binding = ").concat(ux*2+0,") uniform texture").concat(V2," T_").concat(yx,`; -layout(set = `).concat(Go,", binding = ").concat(ux*2+1,") uniform sampler").concat(aw," S_").concat(yx,";").trim():""}),st=st.replace(v==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(J1,ey){return"layout(location = ".concat(eu++,") ").concat(ey)}),Fr+="".concat(yP("gl_VertexID","gl_VertexIndex"),` -`),Fr+="".concat(yP("gl_InstanceID","gl_InstanceIndex"),` -`),Ze=Ze.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var kd=0;st=st.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(J1,ey,Fy,C_,yx){var ux=U$(Fy);return ux===null&&(ux=kd++),"uniform sampler".concat(C_," ").concat(yx,"; // BINDING=").concat(ux)})}if(i.separateSamplerTextures)st=st.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(J1,ey,Fy){return"sampler".concat(ey,"(T_").concat(Fy,", S_").concat(Fy,")")}),st=st.replace(/\bTEXTURE\((.*?)\)/g,function(J1,ey){return"T_".concat(ey)});else{var em=[];st=st.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(J1,ey,Fy){return em.push([Fy,ey]),Fy}),M&&em.forEach(function(J1){var ey=(0,lE.CR)(J1,2),Fy=ey[0],C_=ey[1];st=st.replace(new RegExp("texture\\(".concat(Fy),"g"),function(){return"texture".concat(C_,"(").concat(Fy)})}),st=st.replace(/\bTEXTURE\((.*?)\)/g,function(J1,ey){return ey})}var B0="".concat(M?"":i.glslVersion,` -`).concat(M&&B?`#extension GL_EXT_draw_buffers : require +`).map(function(Fs){return Fs.replace(/[/][/].*$/,"")}).filter(function(Fs){var Us=!Fs||/^\s+$/.test(Fs);return!Us}),V="";c!==null&&(V=Object.keys(c).map(function(Fs){return p_(Fs,c[Fs])}).join(` +`));var he=O.find(function(Fs){return Fs.startsWith("precision")})||"precision mediump float;",be=a?O.filter(function(Fs){return!Fs.startsWith("precision")}).join(` +`):O.join(` +`),ut="";if(i.viewportOrigin===l2.UPPER_LEFT&&(ut+="".concat(p_("VIEWPORT_ORIGIN_TL","1"),` +`)),i.clipSpaceNearZ===KE.ZERO&&(ut+="".concat(p_("CLIPSPACE_NEAR_ZERO","1"),` +`)),i.explicitBindingLocations){var Pt=0,qt=0,En=0;be=be.replace(/^\s*(layout\((.*)\))?\s*uniform(.+{)$/gm,function(Fs,Us,Sa,dl){var fu=Sa?"".concat(Sa,", "):"";return"layout(".concat(fu,"set = ").concat(Pt,", binding = ").concat(qt++,") uniform ").concat(dl)}),Pt++,qt=0,hm(i.separateSamplerTextures),be=be.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(Fs,Us,Sa,dl,fu){var iu=NM(Sa);iu===null&&(iu=qt++);var ic=(0,rp.CR)(GR(dl),2),Nc=ic[0],nh=ic[1];return d==="frag"?` +layout(set = `.concat(Pt,", binding = ").concat(iu*2+0,") uniform texture").concat(Nc," T_").concat(fu,`; +layout(set = `).concat(Pt,", binding = ").concat(iu*2+1,") uniform sampler").concat(nh," S_").concat(fu,";").trim():""}),be=be.replace(d==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(Fs,Us){return"layout(location = ".concat(En++,") ").concat(Us)}),ut+="".concat(p_("gl_VertexID","gl_VertexIndex"),` +`),ut+="".concat(p_("gl_InstanceID","gl_InstanceIndex"),` +`),he=he.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var qn=0;be=be.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(Fs,Us,Sa,dl,fu){var iu=NM(Sa);return iu===null&&(iu=qn++),"uniform sampler".concat(dl," ").concat(fu,"; // BINDING=").concat(iu)})}if(i.separateSamplerTextures)be=be.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(Fs,Us,Sa){return"sampler".concat(Us,"(T_").concat(Sa,", S_").concat(Sa,")")}),be=be.replace(/\bTEXTURE\((.*?)\)/g,function(Fs,Us){return"T_".concat(Us)});else{var Zr=[];be=be.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(Fs,Us,Sa){return Zr.push([Sa,Us]),Sa}),y&&Zr.forEach(function(Fs){var Us=(0,rp.CR)(Fs,2),Sa=Us[0],dl=Us[1];be=be.replace(new RegExp("texture\\(".concat(Sa),"g"),function(){return"texture".concat(dl,"(").concat(Sa)})}),be=be.replace(/\bTEXTURE\((.*?)\)/g,function(Fs,Us){return Us})}var Si="".concat(y?"":i.glslVersion,` +`).concat(y&&w?`#extension GL_EXT_draw_buffers : require `:"",` -`).concat(M&&v==="frag"?`#extension GL_OES_standard_derivatives : enable -`:"").concat(d?Ze:"",` -`).concat(Fr||"").concat(ue?ue+` +`).concat(y&&d==="frag"?`#extension GL_OES_standard_derivatives : enable +`:"").concat(a?he:"",` +`).concat(ut||"").concat(V?V+` `:"",` -`).concat(st,` -`).trim();if(i.explicitBindingLocations&&v==="frag"&&(B0=B0.replace(/^\b(out)\b/g,function(J1,ey){return"layout(location = 0) ".concat(ey)})),M){if(v==="frag"&&(B0=B0.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(J1,ey,Fy){return"varying ".concat(ey," ").concat(Fy,`; -`)})),v==="vert"&&(B0=B0.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(J1,ey,Fy){return"varying ".concat(ey," ").concat(Fy,`; -`)}),B0=B0.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(J1,ey,Fy){return"attribute ".concat(ey," ").concat(Fy,`; -`)})),B0=B0.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(J1,ey){return ey.trim().replace(/^.*$/gm,function(Fy){var C_=Fy.trim();return C_.startsWith("#")?C_:Fy?"uniform ".concat(C_):""})}),v==="frag")if(B){var vv=[];B0=B0.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(J1,ey){return vv.push(ey),"vec4 ".concat(ey,`; -`)});var y1=B0.lastIndexOf("}");B0=B0.substring(0,y1)+` - `.concat(vv.map(function(J1,ey){return"gl_FragData[".concat(ey,"] = ").concat(J1,`; +`).concat(be,` +`).trim();if(i.explicitBindingLocations&&d==="frag"&&(Si=Si.replace(/^\b(out)\b/g,function(Fs,Us){return"layout(location = 0) ".concat(Us)})),y){if(d==="frag"&&(Si=Si.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(Fs,Us,Sa){return"varying ".concat(Us," ").concat(Sa,`; +`)})),d==="vert"&&(Si=Si.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(Fs,Us,Sa){return"varying ".concat(Us," ").concat(Sa,`; +`)}),Si=Si.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(Fs,Us,Sa){return"attribute ".concat(Us," ").concat(Sa,`; +`)})),Si=Si.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(Fs,Us){return Us.trim().replace(/^.*$/gm,function(Sa){var dl=Sa.trim();return dl.startsWith("#")?dl:Sa?"uniform ".concat(dl):""})}),d==="frag")if(w){var to=[];Si=Si.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(Fs,Us){return to.push(Us),"vec4 ".concat(Us,`; +`)});var ts=Si.lastIndexOf("}");Si=Si.substring(0,ts)+` + `.concat(to.map(function(Fs,Us){return"gl_FragData[".concat(Us,"] = ").concat(Fs,`; `)}).join(` -`))+B0.substring(y1)}else{var fy;if(B0=B0.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(J1,ey,Fy){return fy=Fy,"".concat(ey," ").concat(Fy,`; -`)}),fy){var y1=B0.lastIndexOf("}");B0=B0.substring(0,y1)+` - gl_FragColor = vec4(`.concat(fy,`); -`)+B0.substring(y1)}}B0=B0.replace(/^\s*layout\((.*)\)/gm,"")}return B0}function AK(i,v,f,m){m===void 0&&(m=null);var d=VD(i,"vert",v,m),E=VD(i,"frag",f,m);return{vert:v,frag:f,preprocessedVert:d,preprocessedFrag:E}}var SM=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=i.call(this)||this;return E.id=m,E.device=d,E.device.resourceCreationTracker!==null&&E.device.resourceCreationTracker.trackResourceCreated(E),E}return v.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},v}(Pee),tue=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;M.type=FA.Bindings;var B=E.uniformBufferBindings,J=E.samplerBindings;return M.uniformBufferBindings=B||[],M.samplerBindings=J||[],M.bindingLayouts=M.createBindingLayouts(),M}return v.prototype.createBindingLayouts=function(){var f=0,m=0,d=[],E=this.uniformBufferBindings.length,M=this.samplerBindings.length;return d.push({firstUniformBuffer:f,numUniformBuffers:E,firstSampler:m,numSamplers:M}),f+=E,m+=M,{numUniformBuffers:f,numSamplers:m,bindingLayoutTables:d}},v}(SM);function OE(i){return typeof WebGL2RenderingContext!="undefined"&&i instanceof WebGL2RenderingContext?!0:!!(i&&i._version===2)}function DK(i){var v=fR(i);switch(v){case Uw.BC1:case Uw.BC2:case Uw.BC3:case Uw.BC4_UNORM:case Uw.BC4_SNORM:case Uw.BC5_UNORM:case Uw.BC5_SNORM:return!0;default:return!1}}function Jj(i){var v=tF(i);if(v&ES.Normalized)return!1;var f=fR(i);return f===Uw.S8||f===Uw.S16||f===Uw.S32||f===Uw.U8||f===Uw.U16||f===Uw.U32}function V$(i){switch(i){case UL.STATIC:return T_.STATIC_DRAW;case UL.DYNAMIC:return T_.DYNAMIC_DRAW}}function Qj(i){if(i&SD.INDEX)return T_.ELEMENT_ARRAY_BUFFER;if(i&SD.VERTEX)return T_.ARRAY_BUFFER;if(i&SD.UNIFORM)return T_.UNIFORM_BUFFER}function IK(i){switch(i){case ZI.TRIANGLES:return T_.TRIANGLES;case ZI.POINTS:return T_.POINTS;case ZI.TRIANGLE_STRIP:return T_.TRIANGLE_STRIP;case ZI.LINES:return T_.LINES;case ZI.LINE_STRIP:return T_.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function iF(i){switch(i){case Uw.U8:return T_.UNSIGNED_BYTE;case Uw.U16:return T_.UNSIGNED_SHORT;case Uw.U32:return T_.UNSIGNED_INT;case Uw.S8:return T_.BYTE;case Uw.S16:return T_.SHORT;case Uw.S32:return T_.INT;case Uw.F16:return T_.HALF_FLOAT;case Uw.F32:return T_.FLOAT;default:throw new Error("whoops")}}function nue(i){switch(i){case _E.R:return 1;case _E.RG:return 2;case _E.RGB:return 3;case _E.RGBA:return 4;default:return 1}}function rue(i){var v=fR(i),f=Vj(i),m=tF(i),d=iF(v),E=nue(f),M=!!(m&ES.Normalized);return{size:E,type:d,normalized:M}}function iue(i){switch(i){case Ax.U8_R:return T_.UNSIGNED_BYTE;case Ax.U16_R:return T_.UNSIGNED_SHORT;case Ax.U32_R:return T_.UNSIGNED_INT;default:throw new Error("whoops")}}function g5(i){switch(i){case uL.CLAMP_TO_EDGE:return T_.CLAMP_TO_EDGE;case uL.REPEAT:return T_.REPEAT;case uL.MIRRORED_REPEAT:return T_.MIRRORED_REPEAT;default:throw new Error("whoops")}}function lO(i,v){if(v===_4.LINEAR&&i===rI.BILINEAR)return T_.LINEAR_MIPMAP_LINEAR;if(v===_4.LINEAR&&i===rI.POINT)return T_.NEAREST_MIPMAP_LINEAR;if(v===_4.NEAREST&&i===rI.BILINEAR)return T_.LINEAR_MIPMAP_NEAREST;if(v===_4.NEAREST&&i===rI.POINT)return T_.NEAREST_MIPMAP_NEAREST;if(v===_4.NO_MIP&&i===rI.BILINEAR)return T_.LINEAR;if(v===_4.NO_MIP&&i===rI.POINT)return T_.NEAREST;throw new Error("Unknown texture filter mode")}function $B(i,v){v===void 0&&(v=0);var f=i;return f.gl_buffer_pages[v/f.pageByteSize|0]}function e6(i){var v=i;return v.gl_texture}function PK(i){var v=i;return v.gl_sampler}function m5(i,v){i.name=v,i.__SPECTOR_Metadata={name:v}}function j$(i,v){for(var f=[];;){var m=v.exec(i);if(!m)break;f.push(m)}return f}function t6(i){return i.blendMode==$4.ADD&&i.blendSrcFactor==KA.ONE&&i.blendDstFactor===KA.ZERO}function Sk(i){switch(i){case Uj.OcclusionConservative:return T_.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function eW(i){if(i===DA.TEXTURE_2D)return T_.TEXTURE_2D;if(i===DA.TEXTURE_2D_ARRAY)return T_.TEXTURE_2D_ARRAY;if(i===DA.TEXTURE_CUBE_MAP)return T_.TEXTURE_CUBE_MAP;if(i===DA.TEXTURE_3D)return T_.TEXTURE_3D;throw new Error("whoops")}function W$(i,v,f,m){return!(i%f!==0||v%m!==0)}var oue=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;M.type=FA.Buffer;var B=E.viewOrSize,J=E.usage,ue=E.hint,Ze=ue===void 0?UL.STATIC:ue,st=d.uniformBufferMaxPageByteSize,Fr=d.gl,Go=J&SD.UNIFORM;Go||(OE(Fr)?Fr.bindVertexArray(null):d.OES_vertex_array_object.bindVertexArrayOES(null));var Ta=XN(B)?Wj(B,4):Wj(B.byteLength,4);M.gl_buffer_pages=[];var eu;if(Go){for(var kd=Ta;kd>0;)M.gl_buffer_pages.push(M.createBufferPage(Math.min(kd,st),J,Ze)),kd-=st;eu=st}else M.gl_buffer_pages.push(M.createBufferPage(Ta,J,Ze)),eu=Ta;return M.pageByteSize=eu,M.byteSize=Ta,M.usage=J,M.gl_target=Qj(J),XN(B)||M.setSubData(0,new Uint8Array(B.buffer)),Go||(OE(Fr)?Fr.bindVertexArray(M.device.currentBoundVAO):d.OES_vertex_array_object.bindVertexArrayOES(M.device.currentBoundVAO)),M}return v.prototype.setSubData=function(f,m,d,E){d===void 0&&(d=0),E===void 0&&(E=m.byteLength-d);for(var M=this.device.gl,B=this.pageByteSize,J=f+E,ue=f,Ze=f%B;ue=1,!M){Ze=B.device.ensureResourceExists(J.createTexture());var Fr=B.device.translateTextureType(E.format),Go=B.device.translateTextureInternalFormat(E.format);if(B.device.setActiveTexture(J.TEXTURE0),B.device.currentTextures[0]=null,B.preprocessImage(),E.dimension===DA.TEXTURE_2D){if(ue=T_.TEXTURE_2D,J.bindTexture(ue,Ze),B.immutable)if(OE(J))J.texStorage2D(ue,st,Go,E.width,E.height);else{var Ta=(Go===T_.DEPTH_COMPONENT||B.isNPOT(),0);(B.format===Ax.D32F||B.format===Ax.D24_S8)&&!OE(J)&&!d.WEBGL_depth_texture||(J.texImage2D(ue,Ta,Go,E.width,E.height,0,Go,Fr,null),B.mipmaps&&(B.mipmaps=!1,J.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_MIN_FILTER,T_.LINEAR),J.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_WRAP_S,T_.CLAMP_TO_EDGE),J.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_WRAP_T,T_.CLAMP_TO_EDGE)))}hA(E.depthOrArrayLayers===1)}else if(E.dimension===DA.TEXTURE_2D_ARRAY)ue=T_.TEXTURE_2D_ARRAY,J.bindTexture(ue,Ze),B.immutable&&OE(J)&&J.texStorage3D(ue,st,Go,E.width,E.height,E.depthOrArrayLayers);else if(E.dimension===DA.TEXTURE_3D)ue=T_.TEXTURE_3D,J.bindTexture(ue,Ze),B.immutable&&OE(J)&&J.texStorage3D(ue,st,Go,E.width,E.height,E.depthOrArrayLayers);else if(E.dimension===DA.TEXTURE_CUBE_MAP)ue=T_.TEXTURE_CUBE_MAP,J.bindTexture(ue,Ze),B.immutable&&OE(J)&&J.texStorage2D(ue,st,Go,E.width,E.height),hA(E.depthOrArrayLayers===6);else throw new Error("whoops")}return B.gl_texture=Ze,B.gl_target=ue,B.mipLevelCount=st,B}return v.prototype.setImageData=function(f,m){m===void 0&&(m=0);var d=this.device.gl;DK(this.format);var E=this.gl_target===T_.TEXTURE_3D||this.gl_target===T_.TEXTURE_2D_ARRAY,M=this.gl_target===T_.TEXTURE_CUBE_MAP,B=eue(f[0]);this.device.setActiveTexture(d.TEXTURE0),this.device.currentTextures[0]=null;var J=f[0],ue,Ze;B?(ue=this.width,Ze=this.height):(ue=J.width,Ze=J.height,this.width=ue,this.height=Ze),d.bindTexture(this.gl_target,this.gl_texture);var st=this.device.translateTextureFormat(this.format),Fr=OE(d)?this.device.translateInternalTextureFormat(this.format):st,Go=this.device.translateTextureType(this.format);this.preprocessImage();for(var Ta=0;Ta1){var m=fR(f.format);if(m===Uw.BC1)for(var d=f.width,E=f.height,M=0;M1?B.renderbufferStorageMultisample(T_.RENDERBUFFER,Fr,eu,ue,Ze):B.renderbufferStorage(T_.RENDERBUFFER,eu,ue,Ze)}return M.format=J,M.width=ue,M.height=Ze,M.sampleCount=Fr,M}return v.prototype.destroy=function(){i.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},v}(SM),nP;(function(i){i[i.NeedsCompile=0]="NeedsCompile",i[i.Compiling=1]="Compiling",i[i.NeedsBind=2]="NeedsBind",i[i.ReadyToUse=3]="ReadyToUse"})(nP||(nP={}));var LK=function(i){(0,lE.ZT)(v,i);function v(f,m){var d=f.id,E=f.device,M=f.descriptor,B=i.call(this,{id:d,device:E})||this;B.rawVertexGLSL=m,B.type=FA.Program,B.uniformSetters={},B.attributes=[];var J=B.device.gl;return B.descriptor=M,B.gl_program=B.device.ensureResourceExists(J.createProgram()),B.gl_shader_vert=null,B.gl_shader_frag=null,B.compileState=nP.NeedsCompile,B.tryCompileProgram(),B}return v.prototype.destroy=function(){i.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},v.prototype.tryCompileProgram=function(){hA(this.compileState===nP.NeedsCompile);var f=this.descriptor,m=f.vertex,d=f.fragment,E=this.device.gl;m!=null&&m.glsl&&(d!=null&&d.glsl)&&(this.gl_shader_vert=this.compileShader(m.postprocess?m.postprocess(m.glsl):m.glsl,E.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(d.postprocess?d.postprocess(d.glsl):d.glsl,E.FRAGMENT_SHADER),E.attachShader(this.gl_program,this.gl_shader_vert),E.attachShader(this.gl_program,this.gl_shader_frag),E.linkProgram(this.gl_program),this.compileState=nP.Compiling,OE(E)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},v.prototype.readAttributesFromLinkedProgram=function(){for(var f,m=this.device.gl,d=m.getProgramParameter(this.gl_program,m.ACTIVE_ATTRIBUTES),E=jee(this.descriptor.vertex.glsl),M=Yj(this.rawVertexGLSL,E),B=function(Ze){var st=m.getActiveAttrib(J.gl_program,Ze),Fr=st.name,Go=st.type,Ta=st.size,eu=m.getAttribLocation(J.gl_program,Fr),kd=(f=M.find(function(em){return em.name===Fr}))===null||f===void 0?void 0:f.location;eu>=0&&!CM(kd)&&(J.attributes[kd]={name:Fr,location:eu,type:Go,size:Ta})},J=this,ue=0;ue1)for(var J=0;J0;)y.gl_buffer_pages.push(y.createBufferPage(Math.min(qn,be),O,he)),qn-=be;En=be}else y.gl_buffer_pages.push(y.createBufferPage(qt,O,he)),En=qt;return y.pageByteSize=En,y.byteSize=qt,y.usage=O,y.gl_target=XR(O),HE(w)||y.setSubData(0,new Uint8Array(w.buffer)),Pt||(Tp(ut)?ut.bindVertexArray(y.device.currentBoundVAO):a.OES_vertex_array_object.bindVertexArrayOES(y.device.currentBoundVAO)),y}return d.prototype.setSubData=function(l,c,a,p){a===void 0&&(a=0),p===void 0&&(p=c.byteLength-a);for(var y=this.device.gl,w=this.pageByteSize,O=l+p,V=l,he=l%w;V=1,!y){he=w.device.ensureResourceExists(O.createTexture());var ut=w.device.translateTextureType(p.format),Pt=w.device.translateTextureInternalFormat(p.format);if(w.device.setActiveTexture(O.TEXTURE0),w.device.currentTextures[0]=null,w.preprocessImage(),p.dimension===Am.TEXTURE_2D){if(V=gl.TEXTURE_2D,O.bindTexture(V,he),w.immutable)if(Tp(O))O.texStorage2D(V,be,Pt,p.width,p.height);else{var qt=(Pt===gl.DEPTH_COMPONENT||w.isNPOT(),0);(w.format===wu.D32F||w.format===wu.D24_S8)&&!Tp(O)&&!a.WEBGL_depth_texture||(O.texImage2D(V,qt,Pt,p.width,p.height,0,Pt,ut,null),w.mipmaps&&(w.mipmaps=!1,O.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.LINEAR),O.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE),O.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE)))}hm(p.depthOrArrayLayers===1)}else if(p.dimension===Am.TEXTURE_2D_ARRAY)V=gl.TEXTURE_2D_ARRAY,O.bindTexture(V,he),w.immutable&&Tp(O)&&O.texStorage3D(V,be,Pt,p.width,p.height,p.depthOrArrayLayers);else if(p.dimension===Am.TEXTURE_3D)V=gl.TEXTURE_3D,O.bindTexture(V,he),w.immutable&&Tp(O)&&O.texStorage3D(V,be,Pt,p.width,p.height,p.depthOrArrayLayers);else if(p.dimension===Am.TEXTURE_CUBE_MAP)V=gl.TEXTURE_CUBE_MAP,O.bindTexture(V,he),w.immutable&&Tp(O)&&O.texStorage2D(V,be,Pt,p.width,p.height),hm(p.depthOrArrayLayers===6);else throw new Error("whoops")}return w.gl_texture=he,w.gl_target=V,w.mipLevelCount=be,w}return d.prototype.setImageData=function(l,c){c===void 0&&(c=0);var a=this.device.gl;S8(this.format);var p=this.gl_target===gl.TEXTURE_3D||this.gl_target===gl.TEXTURE_2D_ARRAY,y=this.gl_target===gl.TEXTURE_CUBE_MAP,w=UK(l[0]);this.device.setActiveTexture(a.TEXTURE0),this.device.currentTextures[0]=null;var O=l[0],V,he;w?(V=this.width,he=this.height):(V=O.width,he=O.height,this.width=V,this.height=he),a.bindTexture(this.gl_target,this.gl_texture);var be=this.device.translateTextureFormat(this.format),ut=Tp(a)?this.device.translateInternalTextureFormat(this.format):be,Pt=this.device.translateTextureType(this.format);this.preprocessImage();for(var qt=0;qt1){var c=u2(l.format);if(c===Rh.BC1)for(var a=l.width,p=l.height,y=0;y1?w.renderbufferStorageMultisample(gl.RENDERBUFFER,ut,En,V,he):w.renderbufferStorage(gl.RENDERBUFFER,En,V,he)}return y.format=O,y.width=V,y.height=he,y.sampleCount=ut,y}return d.prototype.destroy=function(){i.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},d}(bx),Jy;(function(i){i[i.NeedsCompile=0]="NeedsCompile",i[i.Compiling=1]="Compiling",i[i.NeedsBind=2]="NeedsBind",i[i.ReadyToUse=3]="ReadyToUse"})(Jy||(Jy={}));var T8=function(i){(0,rp.ZT)(d,i);function d(l,c){var a=l.id,p=l.device,y=l.descriptor,w=i.call(this,{id:a,device:p})||this;w.rawVertexGLSL=c,w.type=km.Program,w.uniformSetters={},w.attributes=[];var O=w.device.gl;return w.descriptor=y,w.gl_program=w.device.ensureResourceExists(O.createProgram()),w.gl_shader_vert=null,w.gl_shader_frag=null,w.compileState=Jy.NeedsCompile,w.tryCompileProgram(),w}return d.prototype.destroy=function(){i.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},d.prototype.tryCompileProgram=function(){hm(this.compileState===Jy.NeedsCompile);var l=this.descriptor,c=l.vertex,a=l.fragment,p=this.device.gl;c!=null&&c.glsl&&(a!=null&&a.glsl)&&(this.gl_shader_vert=this.compileShader(c.postprocess?c.postprocess(c.glsl):c.glsl,p.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(a.postprocess?a.postprocess(a.glsl):a.glsl,p.FRAGMENT_SHADER),p.attachShader(this.gl_program,this.gl_shader_vert),p.attachShader(this.gl_program,this.gl_shader_frag),p.linkProgram(this.gl_program),this.compileState=Jy.Compiling,Tp(p)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},d.prototype.readAttributesFromLinkedProgram=function(){for(var l,c=this.device.gl,a=c.getProgramParameter(this.gl_program,c.ACTIVE_ATTRIBUTES),p=MU(this.descriptor.vertex.glsl),y=HR(this.rawVertexGLSL,p),w=function(he){var be=c.getActiveAttrib(O.gl_program,he),ut=be.name,Pt=be.type,qt=be.size,En=c.getAttribLocation(O.gl_program,ut),qn=(l=y.find(function(Zr){return Zr.name===ut}))===null||l===void 0?void 0:l.location;En>=0&&!_x(qn)&&(O.attributes[qn]={name:ut,location:En,type:Pt,size:qt})},O=this,V=0;V1)for(var O=0;O1&&J.device.EXT_texture_filter_anisotropic!==null&&(hA(E.minFilter===rI.BILINEAR&&E.magFilter===rI.BILINEAR&&E.mipmapFilter===_4.LINEAR),ue.samplerParameterf(Ze,J.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,st)),J.gl_sampler=Ze}else J.descriptor=E;return J}return v.prototype.setTextureParameters=function(f,m,d){var E,M=this.device.gl,B=this.descriptor;this.isNPOT(m,d)?M.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_MIN_FILTER,T_.LINEAR):M.texParameteri(f,T_.TEXTURE_MIN_FILTER,lO(B.minFilter,B.mipmapFilter)),M.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_WRAP_S,g5(B.addressModeU)),M.texParameteri(T_.TEXTURE_2D,T_.TEXTURE_WRAP_T,g5(B.addressModeV)),M.texParameteri(f,T_.TEXTURE_MAG_FILTER,lO(B.magFilter,_4.NO_MIP));var J=(E=B.maxAnisotropy)!==null&&E!==void 0?E:1;J>1&&this.device.EXT_texture_filter_anisotropic!==null&&(hA(B.minFilter===rI.BILINEAR&&B.magFilter===rI.BILINEAR&&B.mipmapFilter===_4.LINEAR),M.texParameteri(f,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,J))},v.prototype.destroy=function(){i.prototype.destroy.call(this),OE(this.device.gl)&&this.device.gl.deleteSampler(PK(this))},v.prototype.isNPOT=function(f,m){return!pR(f)||!pR(m)},v}(SM),aue=function(){function i(){}return i.prototype.dispatchWorkgroups=function(v,f,m){},i.prototype.dispatchWorkgroupsIndirect=function(v,f){},i.prototype.setPipeline=function(v){},i.prototype.setBindings=function(v){},i.prototype.pushDebugGroup=function(v){},i.prototype.popDebugGroup=function(){},i.prototype.insertDebugMarker=function(v){},i}(),UB=function(i){(0,lE.ZT)(v,i);function v(){var f=i!==null&&i.apply(this,arguments)||this;return f.type=FA.RenderBundle,f.commands=[],f}return v.prototype.push=function(f){this.commands.push(f)},v.prototype.replay=function(){this.commands.forEach(function(f){return f()})},v}(SM),n6=65536,lue=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,uue=function(){function i(v,f){f===void 0&&(f={}),this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=FB(VL),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=hR.LOWER_LEFT,this.clipSpaceNearZ=qN.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=v,this.contextAttributes=sO(v.getContextAttributes()),OE(v)?(this.EXT_texture_norm16=v.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=v.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=v.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=v.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=v.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=v.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=v.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=v.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=v.getExtension("EXT_color_buffer_half_float"),v.getExtension("EXT_frag_depth"),v.getExtension("OES_element_index_uint"),v.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=v.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=v.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=v.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=v.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=v.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=v.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=v.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=v.getExtension("KHR_parallel_shader_compile"),OE(v)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new oF({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:DA.TEXTURE_2D,mipLevelCount:1,usage:tP.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Ax.U8_RGB_RT:Ax.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=JD.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(v.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(DA.TEXTURE_2D,JD.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(DA.TEXTURE_2D,JD.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:SD.VERTEX,hint:UL.STATIC}),OE(v)&&(this.fallbackTexture2DArray=this.createFallbackTexture(DA.TEXTURE_2D_ARRAY,JD.Float),this.fallbackTexture3D=this.createFallbackTexture(DA.TEXTURE_3D,JD.Float),this.fallbackTextureCube=this.createFallbackTexture(DA.TEXTURE_CUBE_MAP,JD.Float)),this.currentMegaState.depthCompare=AA.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=b4.ALL,v.enable(v.DEPTH_TEST),v.enable(v.STENCIL_TEST),this.checkLimits(),f.shaderDebug&&(this.shaderDebug=!0),f.trackResources&&(this.resourceCreationTracker=new Gee)}return i.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},i.prototype.createFallbackTexture=function(v,f){var m=v===DA.TEXTURE_CUBE_MAP?6:1,d=f===JD.Depth?Ax.D32F:Ax.U8_RGBA_NORM,E=this.createTexture({dimension:v,format:d,usage:tP.SAMPLED,width:1,height:1,depthOrArrayLayers:m,mipLevelCount:1});return f===JD.Float&&E.setImageData([new Uint8Array(4*m)]),e6(E)},i.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},i.prototype.checkLimits=function(){var v=this.gl;if(this.maxVertexAttribs=v.getParameter(T_.MAX_VERTEX_ATTRIBS),OE(v)){this.uniformBufferMaxPageByteSize=Math.min(v.getParameter(T_.MAX_UNIFORM_BLOCK_SIZE),n6),this.uniformBufferWordAlignment=v.getParameter(v.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var f=v.getInternalformatParameter(v.RENDERBUFFER,v.DEPTH32F_STENCIL8,v.SAMPLES);this.supportedSampleCounts=f?(0,lE.ev)([],(0,lE.CR)(f),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=n6;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(m,d){return m-d})},i.prototype.configureSwapChain=function(v,f,m){var d=this.scTexture;d.width=v,d.height=f,this.scPlatformFramebuffer=JN(m)},i.prototype.getDevice=function(){return this},i.prototype.getCanvas=function(){return this.gl.canvas},i.prototype.getOnscreenTexture=function(){return this.scTexture},i.prototype.beginFrame=function(){},i.prototype.endFrame=function(){},i.prototype.translateTextureInternalFormat=function(v,f){switch(f===void 0&&(f=!1),v){case Ax.ALPHA:return T_.ALPHA;case Ax.U8_LUMINANCE:case Ax.F16_LUMINANCE:case Ax.F32_LUMINANCE:return T_.LUMINANCE;case Ax.F16_R:return T_.R16F;case Ax.F16_RG:return T_.RG16F;case Ax.F16_RGB:return T_.RGB16F;case Ax.F16_RGBA:return T_.RGBA16F;case Ax.F32_R:return T_.R32F;case Ax.F32_RG:return T_.RG32F;case Ax.F32_RGB:return T_.RGB32F;case Ax.F32_RGBA:return OE(this.gl)?T_.RGBA32F:f?this.WEBGL_color_buffer_float.RGBA32F_EXT:T_.RGBA;case Ax.U8_R_NORM:return T_.R8;case Ax.U8_RG_NORM:return T_.RG8;case Ax.U8_RGB_NORM:case Ax.U8_RGB_RT:return T_.RGB8;case Ax.U8_RGB_SRGB:return T_.SRGB8;case Ax.U8_RGBA_NORM:case Ax.U8_RGBA_RT:return OE(this.gl)?T_.RGBA8:f?T_.RGBA4:T_.RGBA;case Ax.U8_RGBA:return T_.RGBA;case Ax.U8_RGBA_SRGB:case Ax.U8_RGBA_RT_SRGB:return T_.SRGB8_ALPHA8;case Ax.U16_R:return T_.R16UI;case Ax.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Ax.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Ax.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Ax.U16_RGBA_5551:return T_.RGB5_A1;case Ax.U16_RGB_565:return T_.RGB565;case Ax.U32_R:return T_.R32UI;case Ax.S8_RGBA_NORM:return T_.RGBA8_SNORM;case Ax.S8_RG_NORM:return T_.RG8_SNORM;case Ax.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Ax.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Ax.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Ax.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Ax.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Ax.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Ax.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Ax.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Ax.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Ax.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Ax.D32F_S8:return OE(this.gl)?T_.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?T_.DEPTH_STENCIL:T_.DEPTH_COMPONENT16;case Ax.D24_S8:return OE(this.gl)?T_.DEPTH24_STENCIL8:this.WEBGL_depth_texture?T_.DEPTH_STENCIL:T_.DEPTH_COMPONENT16;case Ax.D32F:return OE(this.gl)?T_.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?T_.DEPTH_COMPONENT:T_.DEPTH_COMPONENT16;case Ax.D24:return OE(this.gl)?T_.DEPTH_COMPONENT24:this.WEBGL_depth_texture?T_.DEPTH_COMPONENT:T_.DEPTH_COMPONENT16;default:throw new Error("whoops")}},i.prototype.translateTextureType=function(v){var f=fR(v);switch(f){case Uw.U8:return T_.UNSIGNED_BYTE;case Uw.U16:return T_.UNSIGNED_SHORT;case Uw.U32:return T_.UNSIGNED_INT;case Uw.S8:return T_.BYTE;case Uw.F16:return T_.HALF_FLOAT;case Uw.F32:return T_.FLOAT;case Uw.U16_PACKED_5551:return T_.UNSIGNED_SHORT_5_5_5_1;case Uw.D32F:return OE(this.gl)?T_.FLOAT:this.WEBGL_depth_texture?T_.UNSIGNED_INT:T_.UNSIGNED_BYTE;case Uw.D24:return OE(this.gl)?T_.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?T_.UNSIGNED_SHORT:T_.UNSIGNED_BYTE;case Uw.D24S8:return OE(this.gl)?T_.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?T_.UNSIGNED_INT_24_8_WEBGL:T_.UNSIGNED_BYTE;case Uw.D32FS8:return T_.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},i.prototype.translateInternalTextureFormat=function(v){switch(v){case Ax.F32_R:return T_.R32F;case Ax.F32_RG:return T_.RG32F;case Ax.F32_RGB:return T_.RGB32F;case Ax.F32_RGBA:return T_.RGBA32F;case Ax.F16_R:return T_.R16F;case Ax.F16_RG:return T_.RG16F;case Ax.F16_RGB:return T_.RGB16F;case Ax.F16_RGBA:return T_.RGBA16F}return this.translateTextureFormat(v)},i.prototype.translateTextureFormat=function(v){if(DK(v)||v===Ax.F32_LUMINANCE||v===Ax.U8_LUMINANCE)return this.translateTextureInternalFormat(v);var f=OE(this.gl)||!OE(this.gl)&&!!this.WEBGL_depth_texture;switch(v){case Ax.D24_S8:case Ax.D32F_S8:return f?T_.DEPTH_STENCIL:T_.RGBA;case Ax.D24:case Ax.D32F:return f?T_.DEPTH_COMPONENT:T_.RGBA}var m=Jj(v),d=Vj(v);switch(d){case _E.A:return T_.ALPHA;case _E.R:return m?T_.RED_INTEGER:T_.RED;case _E.RG:return m?T_.RG_INTEGER:T_.RG;case _E.RGB:return m?T_.RGB_INTEGER:T_.RGB;case _E.RGBA:return T_.RGBA}},i.prototype.setActiveTexture=function(v){this.currentActiveTexture!==v&&(this.gl.activeTexture(v),this.currentActiveTexture=v)},i.prototype.bindVAO=function(v){this.currentBoundVAO!==v&&(OE(this.gl)?this.gl.bindVertexArray(v):this.OES_vertex_array_object.bindVertexArrayOES(v),this.currentBoundVAO=v)},i.prototype.programCompiled=function(v){hA(v.compileState!==nP.NeedsCompile),v.compileState===nP.Compiling&&(v.compileState=nP.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(v))},i.prototype.useProgram=function(v){this.currentProgram!==v&&(this.programCompiled(v),this.gl.useProgram(v.gl_program),this.currentProgram=v)},i.prototype.ensureResourceExists=function(v){if(v===null){var f=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(f))}else return v},i.prototype.createBuffer=function(v){return new oue({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createTexture=function(v){return new oF({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createSampler=function(v){return new Kee({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createRenderTarget=function(v){return new tW({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createRenderTargetFromTexture=function(v){var f=v,m=f.format,d=f.width,E=f.height,M=f.mipLevelCount;return hA(M===1),this.createRenderTarget({format:m,width:d,height:E,sampleCount:1,texture:v})},i.prototype.createProgram=function(v){var f,m,d,E=(f=v.vertex)===null||f===void 0?void 0:f.glsl;return!((m=v.vertex)===null||m===void 0)&&m.glsl&&(v.vertex.glsl=VD(this.queryVendorInfo(),"vert",v.vertex.glsl)),!((d=v.fragment)===null||d===void 0)&&d.glsl&&(v.fragment.glsl=VD(this.queryVendorInfo(),"frag",v.fragment.glsl)),this.createProgramSimple(v,E)},i.prototype.createProgramSimple=function(v,f){var m=new LK({id:this.getNextUniqueId(),device:this,descriptor:v},f);return m},i.prototype.createBindings=function(v){return new tue({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createInputLayout=function(v){return new Wee({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createRenderPipeline=function(v){return new Zee({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createComputePass=function(){return new aue},i.prototype.createComputePipeline=function(v){return new Hee({id:this.getNextUniqueId(),device:this,descriptor:v})},i.prototype.createReadback=function(){return new sue({id:this.getNextUniqueId(),device:this})},i.prototype.createQueryPool=function(v,f){return new rP({id:this.getNextUniqueId(),device:this,descriptor:{type:v,elemCount:f}})},i.prototype.formatRenderPassDescriptor=function(v){var f,m,d,E,M,B,J=v.colorAttachment;v.depthClearValue=(f=v.depthClearValue)!==null&&f!==void 0?f:"load",v.stencilClearValue=(m=v.stencilClearValue)!==null&&m!==void 0?m:"load";for(var ue=0;ue=0;f--)this.debugGroupStack[f].drawCallCount+=v},i.prototype.debugGroupStatisticsBufferUpload=function(v){v===void 0&&(v=1);for(var f=this.debugGroupStack.length-1;f>=0;f--)this.debugGroupStack[f].bufferUploadCount+=v},i.prototype.debugGroupStatisticsTextureBind=function(v){v===void 0&&(v=1);for(var f=this.debugGroupStack.length-1;f>=0;f--)this.debugGroupStack[f].textureBindCount+=v},i.prototype.debugGroupStatisticsTriangles=function(v){for(var f=this.debugGroupStack.length-1;f>=0;f--)this.debugGroupStack[f].triangleCount+=v},i.prototype.reportShaderError=function(v,f){var m=this.gl,d=m.getShaderParameter(v,m.COMPILE_STATUS);if(!d){console.error(aO(f));var E=m.getExtension("WEBGL_debug_shaders");E&&console.error(E.getTranslatedShaderSource(v)),console.error(m.getShaderInfoLog(v))}return d},i.prototype.checkProgramCompilationForErrors=function(v){var f=this.gl,m=v.gl_program;if(!f.getProgramParameter(m,f.LINK_STATUS)){var d=v.descriptor;if(!this.reportShaderError(v.gl_shader_vert,d.vertex.glsl)||!this.reportShaderError(v.gl_shader_frag,d.fragment.glsl))return;console.error(f.getProgramInfoLog(v.gl_program))}},i.prototype.bindFramebufferAttachment=function(v,f,m,d){var E=this.gl;if(CM(m))E.framebufferRenderbuffer(v,f,E.RENDERBUFFER,null);else if(m.type===FA.RenderTarget)m.gl_renderbuffer!==null?E.framebufferRenderbuffer(v,f,E.RENDERBUFFER,m.gl_renderbuffer):m.texture!==null&&E.framebufferTexture2D(v,f,T_.TEXTURE_2D,e6(m.texture),d);else if(m.type===FA.Texture){var M=e6(m);m.dimension===DA.TEXTURE_2D?E.framebufferTexture2D(v,f,T_.TEXTURE_2D,M,d):OE(E)&&(m.dimension,DA.TEXTURE_2D_ARRAY)}},i.prototype.bindFramebufferDepthStencilAttachment=function(v,f){var m=this.gl,d=CM(f)?ES.Depth|ES.Stencil:tF(f.format),E=!!(d&ES.Depth),M=!!(d&ES.Stencil);if(E&&M){var B=OE(this.gl)||!OE(this.gl)&&!!this.WEBGL_depth_texture;B?this.bindFramebufferAttachment(v,m.DEPTH_STENCIL_ATTACHMENT,f,0):this.bindFramebufferAttachment(v,m.DEPTH_ATTACHMENT,f,0)}else E?(this.bindFramebufferAttachment(v,m.DEPTH_ATTACHMENT,f,0),this.bindFramebufferAttachment(v,m.STENCIL_ATTACHMENT,null,0)):M&&(this.bindFramebufferAttachment(v,m.STENCIL_ATTACHMENT,f,0),this.bindFramebufferAttachment(v,m.DEPTH_ATTACHMENT,null,0))},i.prototype.validateCurrentAttachments=function(){for(var v=-1,f=-1,m=-1,d=0;d=ue.numUniformBuffers),hA(B.length>=ue.numSamplers);for(var Ze=0;Ze1&&O.device.EXT_texture_filter_anisotropic!==null&&(hm(p.minFilter===Jv.BILINEAR&&p.magFilter===Jv.BILINEAR&&p.mipmapFilter===py.LINEAR),V.samplerParameterf(he,O.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,be)),O.gl_sampler=he}else O.descriptor=p;return O}return d.prototype.setTextureParameters=function(l,c,a){var p,y=this.device.gl,w=this.descriptor;this.isNPOT(c,a)?y.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.LINEAR):y.texParameteri(l,gl.TEXTURE_MIN_FILTER,oC(w.minFilter,w.mipmapFilter)),y.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,hw(w.addressModeU)),y.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,hw(w.addressModeV)),y.texParameteri(l,gl.TEXTURE_MAG_FILTER,oC(w.magFilter,py.NO_MIP));var O=(p=w.maxAnisotropy)!==null&&p!==void 0?p:1;O>1&&this.device.EXT_texture_filter_anisotropic!==null&&(hm(w.minFilter===Jv.BILINEAR&&w.magFilter===Jv.BILINEAR&&w.mipmapFilter===py.LINEAR),y.texParameteri(l,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,O))},d.prototype.destroy=function(){i.prototype.destroy.call(this),Tp(this.device.gl)&&this.device.gl.deleteSampler(A8(this))},d.prototype.isNPOT=function(l,c){return!c2(l)||!c2(c)},d}(bx),GK=function(){function i(){}return i.prototype.dispatchWorkgroups=function(d,l,c){},i.prototype.dispatchWorkgroupsIndirect=function(d,l){},i.prototype.setPipeline=function(d){},i.prototype.setBindings=function(d){},i.prototype.pushDebugGroup=function(d){},i.prototype.popDebugGroup=function(){},i.prototype.insertDebugMarker=function(d){},i}(),BI=function(i){(0,rp.ZT)(d,i);function d(){var l=i!==null&&i.apply(this,arguments)||this;return l.type=km.RenderBundle,l.commands=[],l}return d.prototype.push=function(l){this.commands.push(l)},d.prototype.replay=function(){this.commands.forEach(function(l){return l()})},d}(bx),QE=65536,KK=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,XK=function(){function i(d,l){l===void 0&&(l={}),this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=kI(Bb),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=l2.LOWER_LEFT,this.clipSpaceNearZ=KE.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=d,this.contextAttributes=rC(d.getContextAttributes()),Tp(d)?(this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=d.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=d.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=d.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=d.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=d.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=d.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=d.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=d.getExtension("EXT_color_buffer_half_float"),d.getExtension("EXT_frag_depth"),d.getExtension("OES_element_index_uint"),d.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=d.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=d.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=d.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=d.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=d.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=d.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=d.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=d.getExtension("KHR_parallel_shader_compile"),Tp(d)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new n3({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Am.TEXTURE_2D,mipLevelCount:1,usage:qy.RENDER_TARGET,format:this.contextAttributes.alpha===!1?wu.U8_RGB_RT:wu.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=Gv.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(d.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Am.TEXTURE_2D,Gv.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Am.TEXTURE_2D,Gv.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:_v.VERTEX,hint:Fb.STATIC}),Tp(d)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Am.TEXTURE_2D_ARRAY,Gv.Float),this.fallbackTexture3D=this.createFallbackTexture(Am.TEXTURE_3D,Gv.Float),this.fallbackTextureCube=this.createFallbackTexture(Am.TEXTURE_CUBE_MAP,Gv.Float)),this.currentMegaState.depthCompare=Em.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=gy.ALL,d.enable(d.DEPTH_TEST),d.enable(d.STENCIL_TEST),this.checkLimits(),l.shaderDebug&&(this.shaderDebug=!0),l.trackResources&&(this.resourceCreationTracker=new OU)}return i.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},i.prototype.createFallbackTexture=function(d,l){var c=d===Am.TEXTURE_CUBE_MAP?6:1,a=l===Gv.Depth?wu.D32F:wu.U8_RGBA_NORM,p=this.createTexture({dimension:d,format:a,usage:qy.SAMPLED,width:1,height:1,depthOrArrayLayers:c,mipLevelCount:1});return l===Gv.Float&&p.setImageData([new Uint8Array(4*c)]),qE(p)},i.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},i.prototype.checkLimits=function(){var d=this.gl;if(this.maxVertexAttribs=d.getParameter(gl.MAX_VERTEX_ATTRIBS),Tp(d)){this.uniformBufferMaxPageByteSize=Math.min(d.getParameter(gl.MAX_UNIFORM_BLOCK_SIZE),QE),this.uniformBufferWordAlignment=d.getParameter(d.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var l=d.getInternalformatParameter(d.RENDERBUFFER,d.DEPTH32F_STENCIL8,d.SAMPLES);this.supportedSampleCounts=l?(0,rp.ev)([],(0,rp.CR)(l),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=QE;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(c,a){return c-a})},i.prototype.configureSwapChain=function(d,l,c){var a=this.scTexture;a.width=d,a.height=l,this.scPlatformFramebuffer=XE(c)},i.prototype.getDevice=function(){return this},i.prototype.getCanvas=function(){return this.gl.canvas},i.prototype.getOnscreenTexture=function(){return this.scTexture},i.prototype.beginFrame=function(){},i.prototype.endFrame=function(){},i.prototype.translateTextureInternalFormat=function(d,l){switch(l===void 0&&(l=!1),d){case wu.ALPHA:return gl.ALPHA;case wu.U8_LUMINANCE:case wu.F16_LUMINANCE:case wu.F32_LUMINANCE:return gl.LUMINANCE;case wu.F16_R:return gl.R16F;case wu.F16_RG:return gl.RG16F;case wu.F16_RGB:return gl.RGB16F;case wu.F16_RGBA:return gl.RGBA16F;case wu.F32_R:return gl.R32F;case wu.F32_RG:return gl.RG32F;case wu.F32_RGB:return gl.RGB32F;case wu.F32_RGBA:return Tp(this.gl)?gl.RGBA32F:l?this.WEBGL_color_buffer_float.RGBA32F_EXT:gl.RGBA;case wu.U8_R_NORM:return gl.R8;case wu.U8_RG_NORM:return gl.RG8;case wu.U8_RGB_NORM:case wu.U8_RGB_RT:return gl.RGB8;case wu.U8_RGB_SRGB:return gl.SRGB8;case wu.U8_RGBA_NORM:case wu.U8_RGBA_RT:return Tp(this.gl)?gl.RGBA8:l?gl.RGBA4:gl.RGBA;case wu.U8_RGBA:return gl.RGBA;case wu.U8_RGBA_SRGB:case wu.U8_RGBA_RT_SRGB:return gl.SRGB8_ALPHA8;case wu.U16_R:return gl.R16UI;case wu.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case wu.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case wu.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case wu.U16_RGBA_5551:return gl.RGB5_A1;case wu.U16_RGB_565:return gl.RGB565;case wu.U32_R:return gl.R32UI;case wu.S8_RGBA_NORM:return gl.RGBA8_SNORM;case wu.S8_RG_NORM:return gl.RG8_SNORM;case wu.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case wu.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case wu.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case wu.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case wu.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case wu.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case wu.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case wu.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case wu.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case wu.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case wu.D32F_S8:return Tp(this.gl)?gl.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?gl.DEPTH_STENCIL:gl.DEPTH_COMPONENT16;case wu.D24_S8:return Tp(this.gl)?gl.DEPTH24_STENCIL8:this.WEBGL_depth_texture?gl.DEPTH_STENCIL:gl.DEPTH_COMPONENT16;case wu.D32F:return Tp(this.gl)?gl.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?gl.DEPTH_COMPONENT:gl.DEPTH_COMPONENT16;case wu.D24:return Tp(this.gl)?gl.DEPTH_COMPONENT24:this.WEBGL_depth_texture?gl.DEPTH_COMPONENT:gl.DEPTH_COMPONENT16;default:throw new Error("whoops")}},i.prototype.translateTextureType=function(d){var l=u2(d);switch(l){case Rh.U8:return gl.UNSIGNED_BYTE;case Rh.U16:return gl.UNSIGNED_SHORT;case Rh.U32:return gl.UNSIGNED_INT;case Rh.S8:return gl.BYTE;case Rh.F16:return gl.HALF_FLOAT;case Rh.F32:return gl.FLOAT;case Rh.U16_PACKED_5551:return gl.UNSIGNED_SHORT_5_5_5_1;case Rh.D32F:return Tp(this.gl)?gl.FLOAT:this.WEBGL_depth_texture?gl.UNSIGNED_INT:gl.UNSIGNED_BYTE;case Rh.D24:return Tp(this.gl)?gl.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?gl.UNSIGNED_SHORT:gl.UNSIGNED_BYTE;case Rh.D24S8:return Tp(this.gl)?gl.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?gl.UNSIGNED_INT_24_8_WEBGL:gl.UNSIGNED_BYTE;case Rh.D32FS8:return gl.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},i.prototype.translateInternalTextureFormat=function(d){switch(d){case wu.F32_R:return gl.R32F;case wu.F32_RG:return gl.RG32F;case wu.F32_RGB:return gl.RGB32F;case wu.F32_RGBA:return gl.RGBA32F;case wu.F16_R:return gl.R16F;case wu.F16_RG:return gl.RG16F;case wu.F16_RGB:return gl.RGB16F;case wu.F16_RGBA:return gl.RGBA16F}return this.translateTextureFormat(d)},i.prototype.translateTextureFormat=function(d){if(S8(d)||d===wu.F32_LUMINANCE||d===wu.U8_LUMINANCE)return this.translateTextureInternalFormat(d);var l=Tp(this.gl)||!Tp(this.gl)&&!!this.WEBGL_depth_texture;switch(d){case wu.D24_S8:case wu.D32F_S8:return l?gl.DEPTH_STENCIL:gl.RGBA;case wu.D24:case wu.D32F:return l?gl.DEPTH_COMPONENT:gl.RGBA}var c=KR(d),a=BR(d);switch(a){case mp.A:return gl.ALPHA;case mp.R:return c?gl.RED_INTEGER:gl.RED;case mp.RG:return c?gl.RG_INTEGER:gl.RG;case mp.RGB:return c?gl.RGB_INTEGER:gl.RGB;case mp.RGBA:return gl.RGBA}},i.prototype.setActiveTexture=function(d){this.currentActiveTexture!==d&&(this.gl.activeTexture(d),this.currentActiveTexture=d)},i.prototype.bindVAO=function(d){this.currentBoundVAO!==d&&(Tp(this.gl)?this.gl.bindVertexArray(d):this.OES_vertex_array_object.bindVertexArrayOES(d),this.currentBoundVAO=d)},i.prototype.programCompiled=function(d){hm(d.compileState!==Jy.NeedsCompile),d.compileState===Jy.Compiling&&(d.compileState=Jy.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(d))},i.prototype.useProgram=function(d){this.currentProgram!==d&&(this.programCompiled(d),this.gl.useProgram(d.gl_program),this.currentProgram=d)},i.prototype.ensureResourceExists=function(d){if(d===null){var l=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(l))}else return d},i.prototype.createBuffer=function(d){return new jK({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createTexture=function(d){return new n3({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createSampler=function(d){return new NU({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createRenderTarget=function(d){return new qR({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createRenderTargetFromTexture=function(d){var l=d,c=l.format,a=l.width,p=l.height,y=l.mipLevelCount;return hm(y===1),this.createRenderTarget({format:c,width:a,height:p,sampleCount:1,texture:d})},i.prototype.createProgram=function(d){var l,c,a,p=(l=d.vertex)===null||l===void 0?void 0:l.glsl;return!((c=d.vertex)===null||c===void 0)&&c.glsl&&(d.vertex.glsl=Fv(this.queryVendorInfo(),"vert",d.vertex.glsl)),!((a=d.fragment)===null||a===void 0)&&a.glsl&&(d.fragment.glsl=Fv(this.queryVendorInfo(),"frag",d.fragment.glsl)),this.createProgramSimple(d,p)},i.prototype.createProgramSimple=function(d,l){var c=new T8({id:this.getNextUniqueId(),device:this,descriptor:d},l);return c},i.prototype.createBindings=function(d){return new VK({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createInputLayout=function(d){return new PU({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createRenderPipeline=function(d){return new RU({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createComputePass=function(){return new GK},i.prototype.createComputePipeline=function(d){return new kU({id:this.getNextUniqueId(),device:this,descriptor:d})},i.prototype.createReadback=function(){return new HK({id:this.getNextUniqueId(),device:this})},i.prototype.createQueryPool=function(d,l){return new Qy({id:this.getNextUniqueId(),device:this,descriptor:{type:d,elemCount:l}})},i.prototype.formatRenderPassDescriptor=function(d){var l,c,a,p,y,w,O=d.colorAttachment;d.depthClearValue=(l=d.depthClearValue)!==null&&l!==void 0?l:"load",d.stencilClearValue=(c=d.stencilClearValue)!==null&&c!==void 0?c:"load";for(var V=0;V=0;l--)this.debugGroupStack[l].drawCallCount+=d},i.prototype.debugGroupStatisticsBufferUpload=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].bufferUploadCount+=d},i.prototype.debugGroupStatisticsTextureBind=function(d){d===void 0&&(d=1);for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].textureBindCount+=d},i.prototype.debugGroupStatisticsTriangles=function(d){for(var l=this.debugGroupStack.length-1;l>=0;l--)this.debugGroupStack[l].triangleCount+=d},i.prototype.reportShaderError=function(d,l){var c=this.gl,a=c.getShaderParameter(d,c.COMPILE_STATUS);if(!a){console.error(iC(l));var p=c.getExtension("WEBGL_debug_shaders");p&&console.error(p.getTranslatedShaderSource(d)),console.error(c.getShaderInfoLog(d))}return a},i.prototype.checkProgramCompilationForErrors=function(d){var l=this.gl,c=d.gl_program;if(!l.getProgramParameter(c,l.LINK_STATUS)){var a=d.descriptor;if(!this.reportShaderError(d.gl_shader_vert,a.vertex.glsl)||!this.reportShaderError(d.gl_shader_frag,a.fragment.glsl))return;console.error(l.getProgramInfoLog(d.gl_program))}},i.prototype.bindFramebufferAttachment=function(d,l,c,a){var p=this.gl;if(_x(c))p.framebufferRenderbuffer(d,l,p.RENDERBUFFER,null);else if(c.type===km.RenderTarget)c.gl_renderbuffer!==null?p.framebufferRenderbuffer(d,l,p.RENDERBUFFER,c.gl_renderbuffer):c.texture!==null&&p.framebufferTexture2D(d,l,gl.TEXTURE_2D,qE(c.texture),a);else if(c.type===km.Texture){var y=qE(c);c.dimension===Am.TEXTURE_2D?p.framebufferTexture2D(d,l,gl.TEXTURE_2D,y,a):Tp(p)&&(c.dimension,Am.TEXTURE_2D_ARRAY)}},i.prototype.bindFramebufferDepthStencilAttachment=function(d,l){var c=this.gl,a=_x(l)?yf.Depth|yf.Stencil:JT(l.format),p=!!(a&yf.Depth),y=!!(a&yf.Stencil);if(p&&y){var w=Tp(this.gl)||!Tp(this.gl)&&!!this.WEBGL_depth_texture;w?this.bindFramebufferAttachment(d,c.DEPTH_STENCIL_ATTACHMENT,l,0):this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0)}else p?(this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,null,0)):y&&(this.bindFramebufferAttachment(d,c.STENCIL_ATTACHMENT,l,0),this.bindFramebufferAttachment(d,c.DEPTH_ATTACHMENT,null,0))},i.prototype.validateCurrentAttachments=function(){for(var d=-1,l=-1,c=-1,a=0;a=V.numUniformBuffers),hm(w.length>=V.numSamplers);for(var he=0;he{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&Z$.decode();let sF=null;function aF(){return(sF===null||sF.byteLength===0)&&(sF=new Uint8Array(i4.memory.buffer)),sF}function lF(i,v){return i=i>>>0,Z$.decode(aF().subarray(i,i+v))}const uO=new Array(128).fill(void 0);uO.push(void 0,null,!0,!1);let i6=uO.length;function nW(i){i6===uO.length&&uO.push(uO.length+1);const v=i6;return i6=uO[v],uO[v]=i,v}function R3(i){return uO[i]}function o6(i){i<132||(uO[i]=i6,i6=i)}function cue(i){const v=R3(i);return o6(i),v}let Ek=0;const uF=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},rW=typeof uF.encodeInto=="function"?function(i,v){return uF.encodeInto(i,v)}:function(i,v){const f=uF.encode(i);return v.set(f),{read:i.length,written:f.length}};function MK(i,v,f){if(f===void 0){const B=uF.encode(i),J=v(B.length,1)>>>0;return aF().subarray(J,J+B.length).set(B),Ek=B.length,J}let m=i.length,d=v(m,1)>>>0;const E=aF();let M=0;for(;M127)break;E[d+M]=B}if(M!==m){M!==0&&(i=i.slice(M)),d=f(d,m,m=M+i.length*3,1)>>>0;const B=aF().subarray(d+M,d+m),J=rW(i,B);M+=J.written}return Ek=M,d}let VB=null;function iW(){return(VB===null||VB.byteLength===0)&&(VB=new Int32Array(i4.memory.buffer)),VB}function due(i,v,f){let m,d;try{const B=i4.__wbindgen_add_to_stack_pointer(-16),J=MK(i,i4.__wbindgen_malloc,i4.__wbindgen_realloc),ue=Ek,Ze=MK(v,i4.__wbindgen_malloc,i4.__wbindgen_realloc),st=Ek;i4.glsl_compile(B,J,ue,Ze,st,f);var E=iW()[B/4+0],M=iW()[B/4+1];return m=E,d=M,lF(E,M)}finally{i4.__wbindgen_add_to_stack_pointer(16),i4.__wbindgen_free(m,d,1)}}class jB{static __wrap(v){v=v>>>0;const f=Object.create(jB.prototype);return f.__wbg_ptr=v,f}__destroy_into_raw(){const v=this.__wbg_ptr;return this.__wbg_ptr=0,v}free(){const v=this.__destroy_into_raw();i4.__wbg_wgslcomposer_free(v)}constructor(){const v=i4.wgslcomposer_new();return jB.__wrap(v)}wgsl_compile(v){let f,m;try{const M=i4.__wbindgen_add_to_stack_pointer(-16),B=MK(v,i4.__wbindgen_malloc,i4.__wbindgen_realloc),J=Ek;i4.wgslcomposer_wgsl_compile(M,this.__wbg_ptr,B,J);var d=iW()[M/4+0],E=iW()[M/4+1];return f=d,m=E,lF(d,E)}finally{i4.__wbindgen_add_to_stack_pointer(16),i4.__wbindgen_free(f,m,1)}}}function Xee(i,v){return Bw(this,null,function*(){if(typeof Response=="function"&&i instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(i,v)}catch(m){if(i.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",m);else throw m}const f=yield i.arrayBuffer();return yield WebAssembly.instantiate(f,v)}else{const f=yield WebAssembly.instantiate(i,v);return f instanceof WebAssembly.Instance?{instance:f,module:i}:f}})}function hue(){const i={};return i.wbg={},i.wbg.__wbindgen_string_new=function(v,f){const m=lF(v,f);return nW(m)},i.wbg.__wbindgen_object_drop_ref=function(v){cue(v)},i.wbg.__wbg_log_1d3ae0273d8f4f8a=function(v){console.log(R3(v))},i.wbg.__wbg_log_576ca876af0d4a77=function(v,f){console.log(R3(v),R3(f))},i.wbg.__wbindgen_throw=function(v,f){throw new Error(lF(v,f))},i}function fue(i,v){return i4=i.exports,Yee.__wbindgen_wasm_module=v,VB=null,sF=null,i4}function Yee(i){return Bw(this,null,function*(){if(i4!==void 0)return i4;const v=hue();(typeof i=="string"||typeof Request=="function"&&i instanceof Request||typeof URL=="function"&&i instanceof URL)&&(i=fetch(i));const{instance:f,module:m}=yield Xee(yield i,v);return fue(f,m)})}var x4;(function(i){i[i.COPY_SRC=1]="COPY_SRC",i[i.COPY_DST=2]="COPY_DST",i[i.TEXTURE_BINDING=4]="TEXTURE_BINDING",i[i.STORAGE_BINDING=8]="STORAGE_BINDING",i[i.STORAGE=8]="STORAGE",i[i.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(x4||(x4={}));var OK;(function(i){i[i.READ=1]="READ",i[i.WRITE=2]="WRITE"})(OK||(OK={}));function pue(i){var v=0;return i&tP.SAMPLED&&(v|=x4.TEXTURE_BINDING|x4.COPY_DST|x4.COPY_SRC),i&tP.STORAGE&&(v|=x4.TEXTURE_BINDING|x4.STORAGE_BINDING|x4.COPY_SRC|x4.COPY_DST),i&tP.RENDER_TARGET&&(v|=x4.RENDER_ATTACHMENT|x4.TEXTURE_BINDING|x4.COPY_SRC|x4.COPY_DST),v}function RK(i){if(i===Ax.U8_R_NORM)return"r8unorm";if(i===Ax.S8_R_NORM)return"r8snorm";if(i===Ax.U8_RG_NORM)return"rg8unorm";if(i===Ax.S8_RG_NORM)return"rg8snorm";if(i===Ax.U32_R)return"r32uint";if(i===Ax.S32_R)return"r32sint";if(i===Ax.F32_R)return"r32float";if(i===Ax.U16_RG)return"rg16uint";if(i===Ax.S16_RG)return"rg16sint";if(i===Ax.F16_RG)return"rg16float";if(i===Ax.U8_RGBA_RT)return"bgra8unorm";if(i===Ax.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(i===Ax.U8_RGBA_NORM)return"rgba8unorm";if(i===Ax.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(i===Ax.S8_RGBA_NORM)return"rgba8snorm";if(i===Ax.F32_RGB)return"rgb9e5ufloat";if(i===Ax.U32_RG)return"rg32uint";if(i===Ax.S32_RG)return"rg32sint";if(i===Ax.F32_RG)return"rg32float";if(i===Ax.U16_RGBA)return"rgba16uint";if(i===Ax.S16_RGBA)return"rgba16sint";if(i===Ax.F16_RGBA)return"rgba16float";if(i===Ax.F32_RGBA)return"rgba32float";if(i===Ax.U32_RGBA)return"rgba32uint";if(i===Ax.S32_RGBA)return"rgba32sint";if(i===Ax.D24)return"depth24plus";if(i===Ax.D24_S8)return"depth24plus-stencil8";if(i===Ax.D32F)return"depth32float";if(i===Ax.D32F_S8)return"depth32float-stencil8";if(i===Ax.BC1)return"bc1-rgba-unorm";if(i===Ax.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(i===Ax.BC2)return"bc2-rgba-unorm";if(i===Ax.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(i===Ax.BC3)return"bc3-rgba-unorm";if(i===Ax.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(i===Ax.BC4_SNORM)return"bc4-r-snorm";if(i===Ax.BC4_UNORM)return"bc4-r-unorm";if(i===Ax.BC5_SNORM)return"bc5-rg-snorm";if(i===Ax.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function gue(i){if(i===DA.TEXTURE_2D)return"2d";if(i===DA.TEXTURE_CUBE_MAP)return"2d";if(i===DA.TEXTURE_2D_ARRAY)return"2d";if(i===DA.TEXTURE_3D)return"3d";throw new Error("whoops")}function mue(i){if(i===DA.TEXTURE_2D)return"2d";if(i===DA.TEXTURE_CUBE_MAP)return"cube";if(i===DA.TEXTURE_2D_ARRAY)return"2d-array";if(i===DA.TEXTURE_3D)return"3d";throw new Error("whoops")}function vue(i){var v=0;return i&SD.INDEX&&(v|=GPUBufferUsage.INDEX),i&SD.VERTEX&&(v|=GPUBufferUsage.VERTEX),i&SD.UNIFORM&&(v|=GPUBufferUsage.UNIFORM),i&SD.STORAGE&&(v|=GPUBufferUsage.STORAGE),i&SD.COPY_SRC&&(v|=GPUBufferUsage.COPY_SRC),i&SD.INDIRECT&&(v|=GPUBufferUsage.INDIRECT),v|=GPUBufferUsage.COPY_DST,v}function kK(i){if(i===uL.CLAMP_TO_EDGE)return"clamp-to-edge";if(i===uL.REPEAT)return"repeat";if(i===uL.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function qee(i){if(i===rI.BILINEAR)return"linear";if(i===rI.POINT)return"nearest";throw new Error("whoops")}function yue(i){if(i===_4.LINEAR)return"linear";if(i===_4.NEAREST)return"nearest";if(i===_4.NO_MIP)return"nearest";throw new Error("whoops")}function WB(i){var v=i;return v.gpuBuffer}function _ue(i){var v=i;return v.gpuSampler}function bue(i){var v=i;return v.querySet}function xue(i){if(i===Uj.OcclusionConservative)return"occlusion";throw new Error("whoops")}function Jee(i){switch(i){case ZI.TRIANGLES:return"triangle-list";case ZI.POINTS:return"point-list";case ZI.TRIANGLE_STRIP:return"triangle-strip";case ZI.LINES:return"line-list";case ZI.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function v5(i){if(i===$L.NONE)return"none";if(i===$L.FRONT)return"front";if(i===$L.BACK)return"back";throw new Error("whoops")}function Hpe(i){if(i===f5.CCW)return"ccw";if(i===f5.CW)return"cw";throw new Error("whoops")}function wue(i,v){return{topology:Jee(i),cullMode:v5(v.cullMode),frontFace:Hpe(v.frontFace)}}function ZB(i){if(i===KA.ZERO)return"zero";if(i===KA.ONE)return"one";if(i===KA.SRC)return"src";if(i===KA.ONE_MINUS_SRC)return"one-minus-src";if(i===KA.DST)return"dst";if(i===KA.ONE_MINUS_DST)return"one-minus-dst";if(i===KA.SRC_ALPHA)return"src-alpha";if(i===KA.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(i===KA.DST_ALPHA)return"dst-alpha";if(i===KA.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(i===KA.CONST)return"constant";if(i===KA.ONE_MINUS_CONSTANT)return"one-minus-constant";if(i===KA.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function Cue(i){if(i===$4.ADD)return"add";if(i===$4.SUBSTRACT)return"subtract";if(i===$4.REVERSE_SUBSTRACT)return"reverse-subtract";if(i===$4.MIN)return"min";if(i===$4.MAX)return"max";throw new Error("whoops")}function NK(i){return{operation:Cue(i.blendMode),srcFactor:ZB(i.blendSrcFactor),dstFactor:ZB(i.blendDstFactor)}}function FK(i){return i.blendMode===$4.ADD&&i.blendSrcFactor===KA.ONE&&i.blendDstFactor===KA.ZERO}function BK(i){if(!(FK(i.rgbBlendState)&&FK(i.alphaBlendState)))return{color:NK(i.rgbBlendState),alpha:NK(i.alphaBlendState)}}function Qee(i,v){return{format:RK(v),blend:BK(i),writeMask:i.channelWriteMask}}function ete(i,v){return v.attachmentsState.map(function(f,m){return Qee(f,i[m])})}function cF(i){if(i===AA.NEVER)return"never";if(i===AA.LESS)return"less";if(i===AA.EQUAL)return"equal";if(i===AA.LEQUAL)return"less-equal";if(i===AA.GREATER)return"greater";if(i===AA.NOTEQUAL)return"not-equal";if(i===AA.GEQUAL)return"greater-equal";if(i===AA.ALWAYS)return"always";throw new Error("whoops")}function mR(i){if(i===ZD.KEEP)return"keep";if(i===ZD.REPLACE)return"replace";if(i===ZD.ZERO)return"zero";if(i===ZD.DECREMENT_CLAMP)return"decrement-clamp";if(i===ZD.DECREMENT_WRAP)return"decrement-wrap";if(i===ZD.INCREMENT_CLAMP)return"increment-clamp";if(i===ZD.INCREMENT_WRAP)return"increment-wrap";if(i===ZD.INVERT)return"invert";throw new Error("whoops")}function tte(i,v){if(!CM(i))return{format:RK(i),depthWriteEnabled:!!v.depthWrite,depthCompare:cF(v.depthCompare),depthBias:v.polygonOffset?1:0,depthBiasSlopeScale:v.polygonOffset?1:0,stencilFront:{compare:cF(v.stencilFront.compare),passOp:mR(v.stencilFront.passOp),failOp:mR(v.stencilFront.failOp),depthFailOp:mR(v.stencilFront.depthFailOp)},stencilBack:{compare:cF(v.stencilBack.compare),passOp:mR(v.stencilBack.passOp),failOp:mR(v.stencilBack.failOp),depthFailOp:mR(v.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function y5(i){if(i!==null){if(i===Ax.U16_R)return"uint16";if(i===Ax.U32_R)return"uint32";throw new Error("whoops")}}function dF(i){if(i===YN.VERTEX)return"vertex";if(i===YN.INSTANCE)return"instance";throw new Error("whoops")}function Sue(i){if(i===Ax.U8_R)return"uint8x2";if(i===Ax.U8_RG)return"uint8x2";if(i===Ax.U8_RGB)return"uint8x4";if(i===Ax.U8_RGBA)return"uint8x4";if(i===Ax.U8_RG_NORM)return"unorm8x2";if(i===Ax.U8_RGBA_NORM)return"unorm8x4";if(i===Ax.S8_RGB_NORM)return"snorm8x4";if(i===Ax.S8_RGBA_NORM)return"snorm8x4";if(i===Ax.U16_RG_NORM)return"unorm16x2";if(i===Ax.U16_RGBA_NORM)return"unorm16x4";if(i===Ax.S16_RG_NORM)return"snorm16x2";if(i===Ax.S16_RGBA_NORM)return"snorm16x4";if(i===Ax.S16_RG)return"uint16x2";if(i===Ax.F16_RG)return"float16x2";if(i===Ax.F16_RGBA)return"float16x4";if(i===Ax.F32_R)return"float32";if(i===Ax.F32_RG)return"float32x2";if(i===Ax.F32_RGB)return"float32x3";if(i===Ax.F32_RGBA)return"float32x4";throw"whoops"}function zK(i){var v=fR(i);switch(v){case Uw.BC1:case Uw.BC2:case Uw.BC3:case Uw.BC4_SNORM:case Uw.BC4_UNORM:case Uw.BC5_SNORM:case Uw.BC5_UNORM:return!0;default:return!1}}function dL(i){var v=fR(i);switch(v){case Uw.BC1:case Uw.BC2:case Uw.BC3:case Uw.BC4_SNORM:case Uw.BC4_UNORM:case Uw.BC5_SNORM:case Uw.BC5_UNORM:return 4;default:return 1}}function oW(i,v,f,m){switch(f===void 0&&(f=!1),i){case Ax.S8_R:case Ax.S8_R_NORM:case Ax.S8_RG_NORM:case Ax.S8_RGB_NORM:case Ax.S8_RGBA_NORM:{var d=v instanceof ArrayBuffer?new Int8Array(v):new Int8Array(v);return m&&d.set(new Int8Array(m)),d}case Ax.U8_R:case Ax.U8_R_NORM:case Ax.U8_RG:case Ax.U8_RG_NORM:case Ax.U8_RGB:case Ax.U8_RGB_NORM:case Ax.U8_RGB_SRGB:case Ax.U8_RGBA:case Ax.U8_RGBA_NORM:case Ax.U8_RGBA_SRGB:{var E=v instanceof ArrayBuffer?new Uint8Array(v):new Uint8Array(v);return m&&E.set(new Uint8Array(m)),E}case Ax.S16_R:case Ax.S16_RG:case Ax.S16_RG_NORM:case Ax.S16_RGB_NORM:case Ax.S16_RGBA:case Ax.S16_RGBA_NORM:{var M=v instanceof ArrayBuffer?new Int16Array(v):new Int16Array(f?v/2:v);return m&&M.set(new Int16Array(m)),M}case Ax.U16_R:case Ax.U16_RGB:case Ax.U16_RGBA_5551:case Ax.U16_RGBA_NORM:case Ax.U16_RG_NORM:case Ax.U16_R_NORM:{var B=v instanceof ArrayBuffer?new Uint16Array(v):new Uint16Array(f?v/2:v);return m&&B.set(new Uint16Array(m)),B}case Ax.S32_R:{var J=v instanceof ArrayBuffer?new Int32Array(v):new Int32Array(f?v/4:v);return m&&J.set(new Int32Array(m)),J}case Ax.U32_R:case Ax.U32_RG:{var ue=v instanceof ArrayBuffer?new Uint32Array(v):new Uint32Array(f?v/4:v);return m&&ue.set(new Uint32Array(m)),ue}case Ax.F32_R:case Ax.F32_RG:case Ax.F32_RGB:case Ax.F32_RGBA:{var Ze=v instanceof ArrayBuffer?new Float32Array(v):new Float32Array(f?v/4:v);return m&&Ze.set(new Float32Array(m)),Ze}}var st=v instanceof ArrayBuffer?new Uint8Array(v):new Uint8Array(v);return m&&st.set(new Uint8Array(m)),st}function Gpe(i){var v=(i&32768)>>15,f=(i&31744)>>10,m=i&1023;return f===0?(v?-1:1)*Math.pow(2,-14)*(m/Math.pow(2,10)):f==31?m?NaN:(v?-1:1)*(1/0):(v?-1:1)*Math.pow(2,f-15)*(1+m/Math.pow(2,10))}function nte(i){switch(i){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}}var vR=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=i.call(this)||this;return E.id=m,E.device=d,E}return v.prototype.destroy=function(){},v}(Pee),Eue=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M,B,J=i.call(this,{id:m,device:d})||this;J.type=FA.Bindings;var ue=E.pipeline;hA(!!ue);var Ze=E.uniformBufferBindings,st=E.storageBufferBindings,Fr=E.samplerBindings,Go=E.storageTextureBindings;J.numUniformBuffers=(Ze==null?void 0:Ze.length)||0;var Ta=[[],[],[],[]],eu=0;if(Ze&&Ze.length)for(var kd=0;kdst;)this.device.device.queue.writeBuffer(M,f+Fr,m.buffer,B+Fr,st),Fr+=st;this.device.device.queue.writeBuffer(M,f+Fr,m.buffer,B+Fr,E-Fr)},v.prototype.destroy=function(){i.prototype.destroy.call(this),this.gpuBuffer.destroy()},v}(vR),ite=function(){function i(){this.gpuComputePassEncoder=null}return i.prototype.dispatchWorkgroups=function(v,f,m){this.gpuComputePassEncoder.dispatchWorkgroups(v,f,m)},i.prototype.dispatchWorkgroupsIndirect=function(v,f){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(v.gpuBuffer,f)},i.prototype.finish=function(){this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.frameCommandEncoder=null},i.prototype.beginComputePass=function(v){hA(this.gpuComputePassEncoder===null),this.frameCommandEncoder=v,this.gpuComputePassEncoder=this.frameCommandEncoder.beginComputePass(this.gpuComputePassDescriptor)},i.prototype.setPipeline=function(v){var f=v,m=sO(f.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(m)},i.prototype.setBindings=function(v){var f=this,m=v;m.gpuBindGroup.forEach(function(d,E){d&&f.gpuComputePassEncoder.setBindGroup(E,m.gpuBindGroup[E])})},i.prototype.pushDebugGroup=function(v){this.gpuComputePassEncoder.pushDebugGroup(v)},i.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},i.prototype.insertDebugMarker=function(v){this.gpuComputePassEncoder.insertDebugMarker(v)},i}(),Tue=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;M.type=FA.ComputePipeline,M.gpuComputePipeline=null,M.descriptor=E;var B=E.program,J=B.computeStage;if(J===null)return M;var ue={layout:"auto",compute:(0,lE.pi)({},J)};return M.gpuComputePipeline=M.device.device.createComputePipeline(ue),M.name!==void 0&&(M.gpuComputePipeline.label=M.name),M}return v.prototype.getBindGroupLayout=function(f){return this.gpuComputePipeline.getBindGroupLayout(f)},v}(vR),ote=function(i){(0,lE.ZT)(v,i);function v(f){var m,d,E,M,B=f.id,J=f.device,ue=f.descriptor,Ze=i.call(this,{id:B,device:J})||this;Ze.type=FA.InputLayout;var st=[];try{for(var Fr=(0,lE.XA)(ue.vertexBufferDescriptors),Go=Fr.next();!Go.done;Go=Fr.next()){var Ta=Go.value,eu=Ta.arrayStride,kd=Ta.stepMode,em=Ta.attributes;st.push({arrayStride:eu,stepMode:dF(kd),attributes:[]});try{for(var B0=(E=void 0,(0,lE.XA)(em)),vv=B0.next();!vv.done;vv=B0.next()){var y1=vv.value,fy=y1.shaderLocation,J1=y1.format,ey=y1.offset;st[st.length-1].attributes.push({shaderLocation:fy,format:Sue(J1),offset:ey})}}catch(Fy){E={error:Fy}}finally{try{vv&&!vv.done&&(M=B0.return)&&M.call(B0)}finally{if(E)throw E.error}}}}catch(Fy){m={error:Fy}}finally{try{Go&&!Go.done&&(d=Fr.return)&&d.call(Fr)}finally{if(m)throw m.error}}return Ze.indexFormat=y5(ue.indexBufferFormat),Ze.buffers=st,Ze}return v}(vR),ste=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;return M.type=FA.Program,M.vertexStage=null,M.fragmentStage=null,M.computeStage=null,M.descriptor=E,E.vertex&&(M.vertexStage=M.createShaderStage(E.vertex,"vertex")),E.fragment&&(M.fragmentStage=M.createShaderStage(E.fragment,"fragment")),E.compute&&(M.computeStage=M.createShaderStage(E.compute,"compute")),M}return v.prototype.setUniformsLegacy=function(f){},v.prototype.createShaderStage=function(f,m){var d,E,M=f.glsl,B=f.wgsl,J=f.entryPoint,ue=f.postprocess,Ze=!1,st=B;if(!st)try{st=this.device.glsl_compile(M,m,Ze)}catch(em){throw console.error(em,M),new Error("whoops")}var Fr=function(em){if(!st.includes(em))return"continue";st=st.replace("var T_".concat(em,": texture_2d;"),"var T_".concat(em,": texture_depth_2d;")),st=st.replace(new RegExp("textureSample\\(T_".concat(em,"(.*)\\);$"),"gm"),function(B0,vv){return"vec4(textureSample(T_".concat(em).concat(vv,"), 0.0, 0.0, 0.0);")})};try{for(var Go=(0,lE.XA)(["u_TextureFramebufferDepth"]),Ta=Go.next();!Ta.done;Ta=Go.next()){var eu=Ta.value;Fr(eu)}}catch(em){d={error:em}}finally{try{Ta&&!Ta.done&&(E=Go.return)&&E.call(Go)}finally{if(d)throw d.error}}ue&&(st=ue(st));var kd=this.device.device.createShaderModule({code:st});return{module:kd,entryPoint:J||"main"}},v}(vR),Aue=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;M.type=FA.QueryPool;var B=E.elemCount,J=E.type;return M.querySet=M.device.device.createQuerySet({type:xue(J),count:B}),M.resolveBuffer=M.device.device.createBuffer({size:B*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),M.cpuBuffer=M.device.device.createBuffer({size:B*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),M.results=null,M}return v.prototype.queryResultOcclusion=function(f){return this.results===null?null:this.results[f]!==BigInt(0)},v.prototype.destroy=function(){i.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},v}(vR),Kpe=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=i.call(this,{id:m,device:d})||this;return E.type=FA.Readback,E}return v.prototype.readTexture=function(f,m,d,E,M,B,J,ue){return J===void 0&&(J=0),(0,lE.mG)(this,void 0,void 0,function(){var Ze,st,Fr,Go,Ta,eu,kd,em;return(0,lE.Jh)(this,function(B0){return Ze=f,st=0,Fr=nte(Ze.gpuTextureformat),Go=Math.ceil(E/Fr.width)*Fr.length,Ta=Math.ceil(Go/256)*256,eu=Ta*M,kd=this.device.createBuffer({usage:SD.STORAGE|SD.MAP_READ|SD.COPY_DST,hint:UL.STATIC,viewOrSize:eu}),em=this.device.device.createCommandEncoder(),em.copyTextureToBuffer({texture:Ze.gpuTexture,mipLevel:0,origin:{x:m,y:d,z:Math.max(st,0)}},{buffer:kd.gpuBuffer,offset:0,bytesPerRow:Ta},{width:E,height:M,depthOrArrayLayers:1}),this.device.device.queue.submit([em.finish()]),[2,this.readBuffer(kd,0,B.byteLength===eu?B:null,J,eu,Ze.format,!0,!1,Go,Ta,M)]})})},v.prototype.readTextureSync=function(f,m,d,E,M,B,J,ue){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},v.prototype.readBuffer=function(f,m,d,E,M,B,J,ue,Ze,st,Fr){var Go=this;m===void 0&&(m=0),d===void 0&&(d=null),M===void 0&&(M=0),B===void 0&&(B=Ax.U8_RGB),J===void 0&&(J=!1),Ze===void 0&&(Ze=0),st===void 0&&(st=0),Fr===void 0&&(Fr=0);var Ta=f,eu=M||Ta.size,kd=d||Ta.view,em=kd&&kd.constructor&&kd.constructor.BYTES_PER_ELEMENT||fK(B),B0=Ta;if(!(Ta.usage&SD.MAP_READ&&Ta.usage&SD.COPY_DST)){var vv=this.device.device.createCommandEncoder();B0=this.device.createBuffer({usage:SD.STORAGE|SD.MAP_READ|SD.COPY_DST,hint:UL.STATIC,viewOrSize:eu}),vv.copyBufferToBuffer(Ta.gpuBuffer,m,B0.gpuBuffer,0,eu),this.device.device.queue.submit([vv.finish()])}return new Promise(function(y1,fy){B0.gpuBuffer.mapAsync(OK.READ,m,eu).then(function(){var J1=B0.gpuBuffer.getMappedRange(m,eu),ey=kd;if(J)ey===null?ey=oW(B,eu,!0,J1):ey=oW(B,ey.buffer,void 0,J1);else if(ey===null)switch(em){case 1:ey=new Uint8Array(eu),ey.set(new Uint8Array(J1));break;case 2:ey=Go.getHalfFloatAsFloatRGBAArrayBuffer(eu/2,J1);break;case 4:ey=new Float32Array(eu/4),ey.set(new Float32Array(J1));break}else switch(em){case 1:ey=new Uint8Array(ey.buffer),ey.set(new Uint8Array(J1));break;case 2:ey=Go.getHalfFloatAsFloatRGBAArrayBuffer(eu/2,J1,kd);break;case 4:var Fy=kd&&kd.constructor||Float32Array;ey=new Fy(ey.buffer),ey.set(new Fy(J1));break}if(Ze!==st){em===1&&!J&&(Ze*=2,st*=2);for(var C_=new Uint8Array(ey.buffer),yx=Ze,ux=0,h2=1;h21?Fr.resolveTarget=this.getTextureView(st,this.gfxColorResolveToLevel[ue]):Fr.storeOp="store")}else{this.gpuColorAttachments.length=ue,this.gfxColorAttachment.length=ue,this.gfxColorResolveTo.length=ue;break}}if(this.gfxDepthStencilAttachment=v.depthStencilAttachment,this.gfxDepthStencilResolveTo=v.depthStencilResolveTo,v.depthStencilAttachment){var Ta=v.depthStencilAttachment,Fr=this.gpuDepthStencilAttachment;Fr.view=Ta.gpuTextureView;var eu=!!(tF(Ta.format)&ES.Depth);eu?(v.depthClearValue==="load"?Fr.depthLoadOp="load":(Fr.depthLoadOp="clear",Fr.depthClearValue=v.depthClearValue),v.depthStencilStore||this.gfxDepthStencilResolveTo!==null?Fr.depthStoreOp="store":Fr.depthStoreOp="discard"):(Fr.depthLoadOp=void 0,Fr.depthStoreOp=void 0);var kd=!!(tF(Ta.format)&ES.Stencil);kd?(v.stencilClearValue==="load"?Fr.stencilLoadOp="load":(Fr.stencilLoadOp="clear",Fr.stencilClearValue=v.stencilClearValue),v.depthStencilStore||this.gfxDepthStencilResolveTo!==null?Fr.stencilStoreOp="store":Fr.stencilStoreOp="discard"):(Fr.stencilLoadOp=void 0,Fr.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=CM(v.occlusionQueryPool)?void 0:bue(v.occlusionQueryPool)},i.prototype.beginRenderPass=function(v,f){hA(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(f),this.frameCommandEncoder=v,this.gpuRenderPassEncoder=this.frameCommandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},i.prototype.flipY=function(v,f){var m=this.device.swapChainHeight;return m-v-f},i.prototype.setViewport=function(v,f,m,d,E,M){E===void 0&&(E=0),M===void 0&&(M=1),this.gpuRenderPassEncoder.setViewport(v,this.flipY(f,d),m,d,E,M)},i.prototype.setScissorRect=function(v,f,m,d){this.gpuRenderPassEncoder.setScissorRect(v,this.flipY(f,d),m,d)},i.prototype.setPipeline=function(v){var f=v,m=sO(f.gpuRenderPipeline);this.getEncoder().setPipeline(m)},i.prototype.setVertexInput=function(v,f,m){if(v!==null){var d=this.getEncoder(),E=v;m!==null&&d.setIndexBuffer(WB(m.buffer),sO(E.indexFormat),m.offset);for(var M=0;M1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.frameCommandEncoder=null},i.prototype.copyAttachment=function(v,f,m,d){hA(m.sampleCount===1);var E={texture:m.gpuTexture,mipLevel:d},M={texture:v.gpuTexture,mipLevel:f};hA(m.width>>>d===v.width>>>f),hA(m.height>>>d===v.height>>>f),hA(!!(m.usage&x4.COPY_SRC)),hA(!!(v.usage&x4.COPY_DST)),this.frameCommandEncoder.copyTextureToTexture(E,M,[v.width,v.height,1])},i}(),ate=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=i.call(this,{id:m,device:d})||this;return M.type=FA.RenderPipeline,M.isCreatingAsync=!1,M.gpuRenderPipeline=null,M.descriptor=E,M.device.createRenderPipelineInternal(M,!1),M}return v.prototype.getBindGroupLayout=function(f){return this.gpuRenderPipeline.getBindGroupLayout(f)},v}(vR),yR=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M,B,J=i.call(this,{id:m,device:d})||this;J.type=FA.Sampler;var ue=E.lodMinClamp,Ze=E.mipmapFilter===_4.NO_MIP?E.lodMinClamp:E.lodMaxClamp,st=(M=E.maxAnisotropy)!==null&&M!==void 0?M:1;return st>1&&hA(E.minFilter===rI.BILINEAR&&E.magFilter===rI.BILINEAR&&E.mipmapFilter===_4.LINEAR),J.gpuSampler=J.device.device.createSampler({addressModeU:kK(E.addressModeU),addressModeV:kK(E.addressModeV),addressModeW:kK((B=E.addressModeW)!==null&&B!==void 0?B:E.addressModeU),lodMinClamp:ue,lodMaxClamp:Ze,minFilter:qee(E.minFilter),magFilter:qee(E.magFilter),mipmapFilter:yue(E.mipmapFilter),compare:E.compareFunction!==void 0?cF(E.compareFunction):void 0,maxAnisotropy:st}),J}return v}(vR),H$=function(i){(0,lE.ZT)(v,i);function v(f){var m=f.id,d=f.device,E=f.descriptor,M=f.skipCreate,B=f.sampleCount,J=i.call(this,{id:m,device:d})||this;J.type=FA.Texture,J.flipY=!1;var ue=E.format,Ze=E.dimension,st=E.width,Fr=E.height,Go=E.depthOrArrayLayers,Ta=E.mipLevelCount,eu=E.usage,kd=E.pixelStore;return J.flipY=!!(kd!=null&&kd.unpackFlipY),J.device.createTextureShared({format:ue,dimension:Ze!=null?Ze:DA.TEXTURE_2D,width:st,height:Fr,depthOrArrayLayers:Go!=null?Go:1,mipLevelCount:Ta!=null?Ta:1,usage:eu,sampleCount:B!=null?B:1},J,M),J}return v.prototype.textureFromImageBitmapOrCanvas=function(f,m,d){for(var E=m[0].width,M=m[0].height,B={size:{width:E,height:M,depthOrArrayLayers:d},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},J=f.createTexture(B),ue=0;ue>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},i.prototype.queryTextureFormatSupported=function(v,f,m){if(zK(v)){if(!this.featureTextureCompressionBC)return!1;var d=dL(v);return f%d!==0||m%d!==0?!1:this.featureTextureCompressionBC}switch(v){case Ax.U16_RGBA_NORM:return!1;case Ax.F32_RGBA:return!1}return!0},i.prototype.queryPlatformAvailable=function(){return!0},i.prototype.queryVendorInfo=function(){return this},i.prototype.queryRenderPass=function(v){var f=v;return f.descriptor},i.prototype.queryRenderTarget=function(v){var f=v;return f},i.prototype.setResourceName=function(v,f){if(v.name=f,v.type===FA.Buffer){var m=v;m.gpuBuffer.label=f}else if(v.type===FA.Texture){var m=v;m.gpuTexture.label=f,m.gpuTextureView.label=f}else if(v.type===FA.RenderTarget){var m=v;m.gpuTexture.label=f,m.gpuTextureView.label=f}else if(v.type===FA.Sampler){var m=v;m.gpuSampler.label=f}else if(v.type===FA.RenderPipeline){var m=v;m.gpuRenderPipeline!==null&&(m.gpuRenderPipeline.label=f)}},i.prototype.setResourceLeakCheck=function(v,f){},i.prototype.checkForLeaks=function(){},i.prototype.programPatched=function(v){},i.prototype.pipelineQueryReady=function(v){var f=v;return f.gpuRenderPipeline!==null},i.prototype.pipelineForceReady=function(v){var f=v;this.createRenderPipelineInternal(f,!1)},i}(),Due=function(){function i(v){this.pluginOptions=v}return i.prototype.createSwapChain=function(v){return(0,lE.mG)(this,void 0,void 0,function(){var f,m,d,E,M,B,J,ue;return(0,lE.Jh)(this,function(Ze){switch(Ze.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];f=null,Ze.label=1;case 1:return Ze.trys.push([1,3,,4]),m=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:m})];case 2:return f=Ze.sent(),[3,4];case 3:return d=Ze.sent(),console.log(d),[3,4];case 4:return f===null?[2,null]:(E=["depth32float-stencil8","texture-compression-bc","float32-filterable"],M=E.filter(function(st){return f.features.has(st)}),[4,f.requestDevice({requiredFeatures:M})]);case 5:if(B=Ze.sent(),B&&(J=this.pluginOptions.onContextLost,B.lost.then(function(){J&&J()})),B===null)return[2,null];if(ue=v.getContext("webgpu"),!ue)return[2,null];Ze.label=6;case 6:return Ze.trys.push([6,8,,9]),[4,Yee(this.pluginOptions.shaderCompilerPath)];case 7:return Ze.sent(),[3,9];case 8:return Ze.sent(),[3,9];case 9:return[2,new HL(f,B,v,ue,due,jB&&new jB)]}})})},i}(),Iue=Qv.isPlainObject,Pue=Qv.isTypedArray,HB=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"destroyed",!1),(0,Na.Z)(this,"uniforms",{}),this.reGl=v;var m=f.vs,d=f.fs,E=f.attributes,M=f.uniforms,B=f.primitive,J=f.count,ue=f.elements,Ze=f.depth,st=f.cull,Fr=f.instances,Go={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:hR.LOWER_LEFT,clipSpaceNearZ:qN.NEGATIVE_ONE,supportMRT:!1},Ta={};this.options=f,M&&(this.uniforms=this.extractUniforms(M),Object.keys(M).forEach(function(vv){Ta[vv]=v.prop(vv)}));var eu={};Object.keys(E).forEach(function(vv){eu[vv]=E[vv].get()});var kd=Ig(VD(Go,"frag",d,null,!1)),em=Ig(VD(Go,"vert",m,null,!1)),B0={attributes:eu,frag:kd,uniforms:Ta,vert:em,colorMask:v.prop("colorMask"),lineWidth:1,blend:{enable:v.prop("blend.enable"),func:v.prop("blend.func"),equation:v.prop("blend.equation"),color:v.prop("blend.color")},stencil:{enable:v.prop("stencil.enable"),mask:v.prop("stencil.mask"),func:v.prop("stencil.func"),opFront:v.prop("stencil.opFront"),opBack:v.prop("stencil.opBack")},primitive:Ple[B===void 0?J0.TRIANGLES:B]};Fr&&(B0.instances=Fr),J?B0.count=J:ue&&(B0.elements=ue.get()),this.initDepthDrawParams({depth:Ze},B0),this.initCullDrawParams({cull:st},B0),this.drawCommand=v(B0),this.drawParams=B0}return(0,gt.Z)(i,[{key:"updateAttributesAndElements",value:function(f,m){var d={};Object.keys(f).forEach(function(E){d[E]=f[E].get()}),this.drawParams.attributes=d,this.drawParams.elements=m.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(f){var m={};Object.keys(f).forEach(function(d){m[d]=f[d].get()}),this.drawParams.attributes=m,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(f){this.uniforms=(0,vn.Z)((0,vn.Z)({},this.uniforms),this.extractUniforms(f))}},{key:"draw",value:function(f,m){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var d=(0,vn.Z)((0,vn.Z)({},this.uniforms),this.extractUniforms(f.uniforms||{})),E={};Object.keys(d).forEach(function(M){var B=(0,Ww.Z)(d[M]);B==="boolean"||B==="number"||Array.isArray(d[M])||d[M].BYTES_PER_ELEMENT?E[M]=d[M]:E[M]=d[M].get()}),E.blend=m?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(f),E.stencil=this.getStencilDrawParams(f),E.colorMask=this.getColorMaskDrawParams(f,m),this.drawCommand(E)}}},{key:"destroy",value:function(){var f;(f=this.drawParams)===null||f===void 0||(f=f.elements)===null||f===void 0||f.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(m){m==null||m.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(f,m){var d=f.depth;d&&(m.depth={enable:d.enable===void 0?!0:!!d.enable,mask:d.mask===void 0?!0:!!d.mask,func:Mle[d.func||J0.LESS],range:d.range||[0,1]})}},{key:"getBlendDrawParams",value:function(f){var m=f.blend,d=m||{},E=d.enable,M=d.func,B=d.equation,J=d.color,ue=J===void 0?[0,0,0,0]:J;return{enable:!!E,func:{srcRGB:OB[M&&M.srcRGB||J0.SRC_ALPHA],srcAlpha:OB[M&&M.srcAlpha||J0.SRC_ALPHA],dstRGB:OB[M&&M.dstRGB||J0.ONE_MINUS_SRC_ALPHA],dstAlpha:OB[M&&M.dstAlpha||J0.ONE_MINUS_SRC_ALPHA]},equation:{rgb:J8[B&&B.rgb||J0.FUNC_ADD],alpha:J8[B&&B.alpha||J0.FUNC_ADD]},color:ue}}},{key:"getStencilDrawParams",value:function(f){var m=f.stencil,d=m||{},E=d.enable,M=d.mask,B=M===void 0?-1:M,J=d.func,ue=J===void 0?{cmp:J0.ALWAYS,ref:0,mask:-1}:J,Ze=d.opFront,st=Ze===void 0?{fail:J0.KEEP,zfail:J0.KEEP,zpass:J0.KEEP}:Ze,Fr=d.opBack,Go=Fr===void 0?{fail:J0.KEEP,zfail:J0.KEEP,zpass:J0.KEEP}:Fr;return{enable:!!E,mask:B,func:(0,vn.Z)((0,vn.Z)({},ue),{},{cmp:Fj[ue.cmp]}),opFront:{fail:Q8[st.fail],zfail:Q8[st.zfail],zpass:Q8[st.zpass]},opBack:{fail:Q8[Go.fail],zfail:Q8[Go.zfail],zpass:Q8[Go.zpass]}}}},{key:"getColorMaskDrawParams",value:function(f,m){var d=f.stencil,E=d!=null&&d.enable&&d.opFront&&!m?[!1,!1,!1,!1]:[!0,!0,!0,!0];return E}},{key:"initCullDrawParams",value:function(f,m){var d=f.cull;if(d){var E=d.enable,M=d.face,B=M===void 0?J0.BACK:M;m.cull={enable:!!E,face:Bj[B]}}}},{key:"extractUniforms",value:function(f){var m=this,d={};return Object.keys(f).forEach(function(E){m.extractUniformsRecursively(E,f[E],d,"")}),d}},{key:"extractUniformsRecursively",value:function(f,m,d,E){var M=this;if(m===null||typeof m=="number"||typeof m=="boolean"||Array.isArray(m)&&typeof m[0]=="number"||Pue(m)||m===""||"resize"in m){d["".concat(E&&E+".").concat(f)]=m;return}Iue(m)&&Object.keys(m).forEach(function(B){M.extractUniformsRecursively(B,m[B],d,"".concat(E&&E+".").concat(f))}),Array.isArray(m)&&m.forEach(function(B,J){Object.keys(B).forEach(function(ue){M.extractUniformsRecursively(ue,B[ue],d,"".concat(E&&E+".").concat(f,"[").concat(J,"]"))})})}}]),i}(),lte=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"isDestroy",!1);var m=f.data,d=f.type,E=d===void 0?J0.UNSIGNED_BYTE:d,M=f.width,B=f.height,J=f.flipY,ue=J===void 0?!1:J,Ze=f.format,st=Ze===void 0?J0.RGBA:Ze,Fr=f.mipmap,Go=Fr===void 0?!1:Fr,Ta=f.wrapS,eu=Ta===void 0?J0.CLAMP_TO_EDGE:Ta,kd=f.wrapT,em=kd===void 0?J0.CLAMP_TO_EDGE:kd,B0=f.aniso,vv=B0===void 0?0:B0,y1=f.alignment,fy=y1===void 0?1:y1,J1=f.premultiplyAlpha,ey=J1===void 0?!1:J1,Fy=f.mag,C_=Fy===void 0?J0.NEAREST:Fy,yx=f.min,ux=yx===void 0?J0.NEAREST:yx,h2=f.colorSpace,V2=h2===void 0?J0.BROWSER_DEFAULT_WEBGL:h2,aw=f.x,XE=aw===void 0?0:aw,mT=f.y,qT=mT===void 0?0:mT,j3=f.copy,fA=j3===void 0?!1:j3;this.width=M,this.height=B;var hI={width:M,height:B,type:N$[E],format:uK[st],wrapS:F$[eu],wrapT:F$[em],mag:Eee[C_],min:Eee[ux],alignment:fy,flipY:ue,colorSpace:Tee[V2],premultiplyAlpha:ey,aniso:vv,x:XE,y:qT,copy:fA};m&&(hI.data=m),typeof Go=="number"?hI.mipmap=Lle[Go]:typeof Go=="boolean"&&(hI.mipmap=Go),this.texture=v.texture(hI)}return(0,gt.Z)(i,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(f)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(f){var m=f.width,d=f.height;this.texture.resize(m,d),this.width=m,this.height=d}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var f;(f=this.texture)===null||f===void 0||f.destroy()}this.isDestroy=!0}}]),i}(),ute,cte,dte=(ute=(0,Rg.b2)(),ute(cte=function(){function i(){var v=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"uniformBuffers",[]),(0,Na.Z)(this,"queryVerdorInfo",function(){return"WebGL1"}),(0,Na.Z)(this,"createModel",function(f){return new HB(v.gl,f)}),(0,Na.Z)(this,"createAttribute",function(f){return new lK(v.gl,f)}),(0,Na.Z)(this,"createBuffer",function(f){return new Ole(v.gl,f)}),(0,Na.Z)(this,"createElements",function(f){return new eF(v.gl,f)}),(0,Na.Z)(this,"createTexture2D",function(f){return new lte(v.gl,f)}),(0,Na.Z)(this,"createFramebuffer",function(f){return new cK(v.gl,f)}),(0,Na.Z)(this,"useFramebuffer",function(f,m){v.gl({framebuffer:f?f.get():null})(m)}),(0,Na.Z)(this,"useFramebufferAsync",function(){var f=(0,v_.Z)(Pv().mark(function m(d,E){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:v.gl({framebuffer:d?d.get():null})(E);case 1:case"end":return B.stop()}},m)}));return function(m,d){return f.apply(this,arguments)}}()),(0,Na.Z)(this,"clear",function(f){var m,d=f.color,E=f.depth,M=f.stencil,B=f.framebuffer,J=B===void 0?null:B,ue={color:d,depth:E,stencil:M};ue.framebuffer=J===null?J:J.get(),(m=v.gl)===null||m===void 0||m.clear(ue)}),(0,Na.Z)(this,"viewport",function(f){var m=f.x,d=f.y,E=f.width,M=f.height;v.gl._gl.viewport(m,d,E,M),v.width=E,v.height=M,v.gl._refresh()}),(0,Na.Z)(this,"readPixels",function(f){var m=f.framebuffer,d=f.x,E=f.y,M=f.width,B=f.height,J={x:d,y:E,width:M,height:B};return m&&(J.framebuffer=m.get()),v.gl.read(J)}),(0,Na.Z)(this,"readPixelsAsync",function(){var f=(0,v_.Z)(Pv().mark(function m(d){return Pv().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",v.readPixels(d));case 1:case"end":return M.stop()}},m)}));return function(m){return f.apply(this,arguments)}}()),(0,Na.Z)(this,"getViewportSize",function(){return{width:v.gl._gl.drawingBufferWidth,height:v.gl._gl.drawingBufferHeight}}),(0,Na.Z)(this,"getContainer",function(){var f;return(f=v.canvas)===null||f===void 0?void 0:f.parentElement}),(0,Na.Z)(this,"getCanvas",function(){return v.canvas}),(0,Na.Z)(this,"getGLContext",function(){return v.gl._gl}),(0,Na.Z)(this,"destroy",function(){var f;v.canvas=null,(f=v.gl)===null||f===void 0||(f=f._gl)===null||f===void 0||(f=f.getExtension("WEBGL_lose_context"))===null||f===void 0||f.loseContext(),v.gl.destroy(),v.gl=null})}return(0,gt.Z)(i,[{key:"init",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E,M){var B=this;return Pv().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.canvas=d,!M){ue.next=5;break}this.gl=M,ue.next=8;break;case 5:return ue.next=7,new Promise(function(Ze,st){Cee()({canvas:B.canvas,attributes:{alpha:!0,antialias:E.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:E.preserveDrawingBuffer,stencil:E.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Go,Ta){(Go||!Ta)&&st(Go),Ze(Ta)}})});case 7:this.gl=ue.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ue.stop()}},m,this)}));function f(m,d,E){return v.apply(this,arguments)}return f}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(f){return!!this.getGLContext().getExtension(f)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var f=this.getGLContext();f.disable(f.CULL_FACE)}},{key:"setDirty",value:function(f){this.isDirty=f}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),i}())||cte),UK=function(){function i(v,f){(0,Zr.Z)(this,i);var m=f.buffer,d=f.offset,E=f.stride,M=f.normalized,B=f.size,J=f.divisor,ue=f.shaderLocation;this.buffer=m,this.attribute={shaderLocation:ue,buffer:m.get(),offset:d||0,stride:E||0,normalized:M||!1,divisor:J||0},B&&(this.attribute.size=B)}return(0,gt.Z)(i,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(f){this.buffer.subData(f)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),i}(),_5,Tk,GB,G$,K$,b5,X$,hF,_P,x5,w5,sW=(_5={},(0,Na.Z)(_5,J0.FLOAT,Float32Array),(0,Na.Z)(_5,J0.UNSIGNED_BYTE,Uint8Array),(0,Na.Z)(_5,J0.SHORT,Int16Array),(0,Na.Z)(_5,J0.UNSIGNED_SHORT,Uint16Array),(0,Na.Z)(_5,J0.INT,Int32Array),(0,Na.Z)(_5,J0.UNSIGNED_INT,Uint32Array),_5),Y$=(Tk={},(0,Na.Z)(Tk,J0.POINTS,ZI.POINTS),(0,Na.Z)(Tk,J0.LINES,ZI.LINES),(0,Na.Z)(Tk,J0.LINE_LOOP,ZI.LINES),(0,Na.Z)(Tk,J0.LINE_STRIP,ZI.LINE_STRIP),(0,Na.Z)(Tk,J0.TRIANGLES,ZI.TRIANGLES),(0,Na.Z)(Tk,J0.TRIANGLE_FAN,ZI.TRIANGLES),(0,Na.Z)(Tk,J0.TRIANGLE_STRIP,ZI.TRIANGLE_STRIP),Tk),aW=(GB={},(0,Na.Z)(GB,1,Ax.F32_R),(0,Na.Z)(GB,2,Ax.F32_RG),(0,Na.Z)(GB,3,Ax.F32_RGB),(0,Na.Z)(GB,4,Ax.F32_RGBA),GB),hte=(G$={},(0,Na.Z)(G$,J0.STATIC_DRAW,UL.STATIC),(0,Na.Z)(G$,J0.DYNAMIC_DRAW,UL.DYNAMIC),(0,Na.Z)(G$,J0.STREAM_DRAW,UL.DYNAMIC),G$),lW=(K$={},(0,Na.Z)(K$,J0.REPEAT,uL.REPEAT),(0,Na.Z)(K$,J0.CLAMP_TO_EDGE,uL.CLAMP_TO_EDGE),(0,Na.Z)(K$,J0.MIRRORED_REPEAT,uL.MIRRORED_REPEAT),K$),w4=(b5={},(0,Na.Z)(b5,J0.NEVER,AA.NEVER),(0,Na.Z)(b5,J0.ALWAYS,AA.ALWAYS),(0,Na.Z)(b5,J0.LESS,AA.LESS),(0,Na.Z)(b5,J0.LEQUAL,AA.LEQUAL),(0,Na.Z)(b5,J0.GREATER,AA.GREATER),(0,Na.Z)(b5,J0.GEQUAL,AA.GEQUAL),(0,Na.Z)(b5,J0.EQUAL,AA.EQUAL),(0,Na.Z)(b5,J0.NOTEQUAL,AA.NOTEQUAL),b5),Lue=(X$={},(0,Na.Z)(X$,J0.FRONT,$L.FRONT),(0,Na.Z)(X$,J0.BACK,$L.BACK),X$),fte=(hF={},(0,Na.Z)(hF,J0.FUNC_ADD,$4.ADD),(0,Na.Z)(hF,J0.MIN_EXT,$4.MIN),(0,Na.Z)(hF,J0.MAX_EXT,$4.MAX),(0,Na.Z)(hF,J0.FUNC_SUBTRACT,$4.SUBSTRACT),(0,Na.Z)(hF,J0.FUNC_REVERSE_SUBTRACT,$4.REVERSE_SUBSTRACT),hF),uW=(_P={},(0,Na.Z)(_P,J0.ZERO,KA.ZERO),(0,Na.Z)(_P,J0.ONE,KA.ONE),(0,Na.Z)(_P,J0.SRC_COLOR,KA.SRC),(0,Na.Z)(_P,J0.ONE_MINUS_SRC_COLOR,KA.ONE_MINUS_SRC),(0,Na.Z)(_P,J0.SRC_ALPHA,KA.SRC_ALPHA),(0,Na.Z)(_P,J0.ONE_MINUS_SRC_ALPHA,KA.ONE_MINUS_SRC_ALPHA),(0,Na.Z)(_P,J0.DST_COLOR,KA.DST),(0,Na.Z)(_P,J0.ONE_MINUS_DST_COLOR,KA.ONE_MINUS_DST),(0,Na.Z)(_P,J0.DST_ALPHA,KA.DST_ALPHA),(0,Na.Z)(_P,J0.ONE_MINUS_DST_ALPHA,KA.ONE_MINUS_DST_ALPHA),(0,Na.Z)(_P,J0.CONSTANT_COLOR,KA.CONST),(0,Na.Z)(_P,J0.ONE_MINUS_CONSTANT_COLOR,KA.ONE_MINUS_CONSTANT),(0,Na.Z)(_P,J0.CONSTANT_ALPHA,KA.CONST),(0,Na.Z)(_P,J0.ONE_MINUS_CONSTANT_ALPHA,KA.ONE_MINUS_CONSTANT),(0,Na.Z)(_P,J0.SRC_ALPHA_SATURATE,KA.SRC_ALPHA_SATURATE),_P),KB=(x5={},(0,Na.Z)(x5,J0.REPLACE,ZD.REPLACE),(0,Na.Z)(x5,J0.KEEP,ZD.KEEP),(0,Na.Z)(x5,J0.ZERO,ZD.ZERO),(0,Na.Z)(x5,J0.INVERT,ZD.INVERT),(0,Na.Z)(x5,J0.INCR,ZD.INCREMENT_CLAMP),(0,Na.Z)(x5,J0.DECR,ZD.DECREMENT_CLAMP),(0,Na.Z)(x5,J0.INCR_WRAP,ZD.INCREMENT_WRAP),(0,Na.Z)(x5,J0.DECR_WRAP,ZD.DECREMENT_WRAP),x5),Mue=(w5={},(0,Na.Z)(w5,J0.ALWAYS,AA.ALWAYS),(0,Na.Z)(w5,J0.EQUAL,AA.EQUAL),(0,Na.Z)(w5,J0.GEQUAL,AA.GEQUAL),(0,Na.Z)(w5,J0.GREATER,AA.GREATER),(0,Na.Z)(w5,J0.LEQUAL,AA.LEQUAL),(0,Na.Z)(w5,J0.LESS,AA.LESS),(0,Na.Z)(w5,J0.NEVER,AA.NEVER),(0,Na.Z)(w5,J0.NOTEQUAL,AA.NOTEQUAL),w5),Oue={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function cW(i){return Object.prototype.toString.call(i)in Oue}function q$(i,v){for(var f=i.length,m=Math.ceil(f/3),d=f+m,E=new Float32Array(d),M=0;M=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function iP(i,v){if(i){if(typeof i=="string")return VK(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return VK(i,v)}}function VK(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f1&&arguments[1]!==void 0?arguments[1]:0;return i+=v,i+=i<<10,i+=i>>>6,i>>>0}function pte(i){return i+=i<<3,i^=i>>>11,i+=i<<15,i>>>0}function gte(i){return 0}var Rue=(0,gt.Z)(function i(){(0,Zr.Z)(this,i),(0,Na.Z)(this,"keys",[]),(0,Na.Z)(this,"values",[])}),dW=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"buckets",new Map),this.keyEqualFunc=v,this.keyHashFunc=f}return(0,gt.Z)(i,[{key:"findBucketIndex",value:function(f,m){for(var d=0;d=0)){B.next=12;break}return B.next=9,d.values[E];case 9:E--,B.next=6;break;case 12:B.next=3;break;case 14:B.next=19;break;case 16:B.prev=16,B.t0=B.catch(1),f.e(B.t0);case 19:return B.prev=19,f.f(),B.finish(19);case 22:case"end":return B.stop()}},v,this,[[1,16,19,22]])})}]),i}();function hW(i,v){var f=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!f){if(Array.isArray(i)||(f=kue(i))||v&&i&&typeof i.length=="number"){f&&(i=f);var m=0,d=function(){};return{s:d,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(ue){throw ue},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,M=!1,B;return{s:function(){f=f.call(i)},n:function(){var ue=f.next();return E=ue.done,ue},e:function(ue){M=!0,B=ue},f:function(){try{!E&&f.return!=null&&f.return()}finally{if(M)throw B}}}}function kue(i,v){if(i){if(typeof i=="string")return mte(i,v);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return mte(i,v)}}function mte(i,v){(v==null||v>i.length)&&(v=i.length);for(var f=0,m=new Array(v);f0}),m=this.device.createBindings(E),this.bindingsCache.add(E,m)}return m}},{key:"createRenderPipeline",value:function(f){var m=this.renderPipelinesCache.get(f);if(m===null){var d=CK(f);d.colorAttachmentFormats=d.colorAttachmentFormats.filter(function(E){return E}),m=this.device.createRenderPipeline(d),this.renderPipelinesCache.add(d,m)}return m}},{key:"createInputLayout",value:function(f){f.vertexBufferDescriptors=f.vertexBufferDescriptors.filter(function(E){return!!E});var m=this.inputLayoutsCache.get(f);if(m===null){var d=Yle(f);m=this.device.createInputLayout(d),this.inputLayoutsCache.add(d,m)}return m}},{key:"createProgram",value:function(f){var m=this.programCache.get(f);if(m===null){var d=Uue(f);m=this.device.createProgram(f),this.programCache.add(d,m)}return m}},{key:"destroy",value:function(){var f=hW(this.bindingsCache.values()),m;try{for(f.s();!(m=f.n()).done;){var d=m.value;d.destroy()}}catch(Ta){f.e(Ta)}finally{f.f()}var E=hW(this.renderPipelinesCache.values()),M;try{for(E.s();!(M=E.n()).done;){var B=M.value;B.destroy()}}catch(Ta){E.e(Ta)}finally{E.f()}var J=hW(this.inputLayoutsCache.values()),ue;try{for(J.s();!(ue=J.n()).done;){var Ze=ue.value;Ze.destroy()}}catch(Ta){J.e(Ta)}finally{J.f()}var st=hW(this.programCache.values()),Fr;try{for(st.s();!(Fr=st.n()).done;){var Go=Fr.value;Go.destroy()}}catch(Ta){st.e(Ta)}finally{st.f()}this.bindingsCache.clear(),this.renderPipelinesCache.clear(),this.inputLayoutsCache.clear(),this.programCache.clear()}}]),i}(),jue=function(){function i(v,f){(0,Zr.Z)(this,i);var m=f.data,d=f.type,E=f.count,M=E===void 0?0:E,B;cW(m)?B=m:B=new sW[this.type||J0.UNSIGNED_INT](m),this.type=d,this.count=M,this.indexBuffer=v.createBuffer({viewOrSize:B,usage:SD.INDEX})}return(0,gt.Z)(i,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(f){var m=f.data,d;cW(m)?d=m:d=new sW[this.type||J0.UNSIGNED_INT](m),this.indexBuffer.setSubData(0,new Uint8Array(d.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),i}();function yte(i){return!!(i&&i.texture)}var _te=function(){function i(v,f){(0,Zr.Z)(this,i),(0,Na.Z)(this,"isDestroy",!1),this.device=v,this.options=f;var m=f.wrapS,d=m===void 0?J0.CLAMP_TO_EDGE:m,E=f.wrapT,M=E===void 0?J0.CLAMP_TO_EDGE:E,B=f.aniso,J=f.mipmap,ue=J===void 0?!1:J,Ze=f.mag,st=Ze===void 0?J0.NEAREST:Ze,Fr=f.min,Go=Fr===void 0?J0.NEAREST:Fr;this.createTexture(f),this.sampler=v.createSampler({addressModeU:lW[d],addressModeV:lW[M],minFilter:Go===J0.NEAREST?rI.POINT:rI.BILINEAR,magFilter:st===J0.NEAREST?rI.POINT:rI.BILINEAR,mipmapFilter:_4.NO_MIP,maxAnisotropy:B})}return(0,gt.Z)(i,[{key:"createTexture",value:function(f){var m=f.type,d=m===void 0?J0.UNSIGNED_BYTE:m,E=f.width,M=f.height,B=f.flipY,J=B===void 0?!1:B,ue=f.format,Ze=ue===void 0?J0.RGBA:ue,st=f.aniso,Fr=f.alignment,Go=Fr===void 0?1:Fr,Ta=f.usage,eu=Ta===void 0?GI.SAMPLED:Ta,kd=f.unorm,em=kd===void 0?!1:kd,B0=f.label,vv=f.data;this.width=E,this.height=M;var y1=Ax.U8_RGBA_RT;if(d===J0.UNSIGNED_BYTE&&Ze===J0.RGBA)y1=em?Ax.U8_RGBA_NORM:Ax.U8_RGBA_RT;else if(d===J0.UNSIGNED_BYTE&&Ze===J0.LUMINANCE)y1=Ax.U8_LUMINANCE;else if(d===J0.FLOAT&&Ze===J0.RGB)this.device.queryVendorInfo().platformString==="WebGPU"?(vv&&(vv=q$(vv,0)),y1=Ax.F32_RGBA):y1=Ax.F32_RGB;else if(d===J0.FLOAT&&Ze===J0.RGBA)y1=Ax.F32_RGBA;else if(d===J0.FLOAT&&Ze===J0.RED)y1=Ax.F32_R;else throw new Error("create texture error, type: ".concat(d,", format: ").concat(Ze));this.texture=this.device.createTexture({format:y1,width:E,height:M,usage:eu===GI.SAMPLED?tP.SAMPLED:tP.RENDER_TARGET,pixelStore:{unpackFlipY:J,packAlignment:Go},mipLevelCount:1}),B0&&this.device.setResourceName(this.texture,B0),vv&&this.texture.setImageData([vv])}},{key:"get",value:function(){return this.texture}},{key:"update",value:function(f){var m=f.data;this.texture.setImageData([m])}},{key:"bind",value:function(){}},{key:"resize",value:function(f){var m=f.width,d=f.height;(this.width!==m||this.height!==d)&&this.destroy(),this.options.width=m,this.options.height=d,this.createTexture(this.options),this.isDestroy=!1}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy&&!this.texture.destroyed){var f;(f=this.texture)===null||f===void 0||f.destroy()}this.isDestroy=!0}}]),i}(),bte=function(){function i(v,f){(0,Zr.Z)(this,i),this.device=v,this.options=f,this.createColorRenderTarget(),this.createDepthRenderTarget()}return(0,gt.Z)(i,[{key:"createColorRenderTarget",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,m=this.options,d=m.width,E=m.height,M=m.color;M&&(yte(M)?(f&&M.resize({width:d,height:E}),this.colorTexture=M.get(),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=M.width,this.height=M.height):d&&E&&(this.colorTexture=this.device.createTexture({format:Ax.U8_RGBA_RT,usage:tP.RENDER_TARGET,width:d,height:E}),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=d,this.height=E))}},{key:"createDepthRenderTarget",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,m=this.options,d=m.width,E=m.height,M=m.depth;M&&(yte(M)?(f&&M.resize({width:d,height:E}),this.depthTexture=M.get(),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=M.width,this.height=M.height):d&&E&&(this.depthTexture=this.device.createTexture({format:Ax.D24_S8,usage:tP.RENDER_TARGET,width:d,height:E}),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=d,this.height=E))}},{key:"get",value:function(){return this.colorRenderTarget}},{key:"destroy",value:function(){var f,m;(f=this.colorRenderTarget)===null||f===void 0||f.destroy(),(m=this.depthRenderTarget)===null||m===void 0||m.destroy()}},{key:"resize",value:function(f){var m=f.width,d=f.height;(this.width!==m||this.height!==d)&&(this.destroy(),this.colorTexture.destroyed=!0,this.depthTexture.destroyed=!0,this.options.width=m,this.options.height=d,this.createColorRenderTarget(!0),this.createDepthRenderTarget(!0))}}]),i}(),Wue=Qv.isPlainObject,Zue=Qv.isTypedArray,Xpe=function(){function i(v,f,m){var d=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"destroyed",!1),(0,Na.Z)(this,"uniforms",{}),(0,Na.Z)(this,"vertexBuffers",[]),this.device=v,this.options=f,this.service=m;var E=f.vs,M=f.fs,B=f.attributes,J=f.uniforms,ue=f.count,Ze=f.elements,st=f.diagnosticDerivativeUniformityEnabled;this.options=f;var Fr=st?"":this.service.viewportOrigin===hR.UPPER_LEFT?"diagnostic(off,derivative_uniformity);":"";this.program=m.renderCache.createProgram({vertex:{glsl:E},fragment:{glsl:M,postprocess:function(em){return Fr+em}}}),J&&(this.uniforms=this.extractUniforms(J));var Go=[],Ta=0;Object.keys(B).forEach(function(kd){var em=B[kd],B0=em.get();d.vertexBuffers.push(B0.get());var vv=em.attribute,y1=vv.offset,fy=y1===void 0?0:y1,J1=vv.stride,ey=J1===void 0?0:J1,Fy=vv.size,C_=Fy===void 0?1:Fy,yx=vv.divisor,ux=yx===void 0?0:yx,h2=vv.shaderLocation,V2=h2===void 0?0:h2;Go.push({arrayStride:ey||C_*4,stepMode:YN.VERTEX,attributes:[{format:aW[C_],shaderLocation:V2,offset:fy,divisor:ux}]}),Ta=B0.size/C_}),ue||(this.options.count=Ta),Ze&&(this.indexBuffer=Ze.get());var eu=m.renderCache.createInputLayout({vertexBufferDescriptors:Go,indexBufferFormat:Ze?Ax.U32_R:null,program:this.program});this.inputLayout=eu,this.pipeline=this.createPipeline(f)}return(0,gt.Z)(i,[{key:"createPipeline",value:function(f,m){var d=f.primitive,E=d===void 0?J0.TRIANGLES:d,M=f.depth,B=f.cull,J=f.blend,ue=f.stencil,Ze=this.initDepthDrawParams({depth:M}),st=!!(Ze&&Ze.enable),Fr=this.initCullDrawParams({cull:B}),Go=!!(Fr&&Fr.enable),Ta=this.getBlendDrawParams({blend:J}),eu=!!(Ta&&Ta.enable),kd=this.getStencilDrawParams({stencil:ue}),em=!!(kd&&kd.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:Y$[E],colorAttachmentFormats:[Ax.U8_RGBA_RT],depthStencilAttachmentFormat:Ax.D24_S8,megaStateDescriptor:{attachmentsState:[m?{channelWriteMask:b4.ALL,rgbBlendState:{blendMode:$4.ADD,blendSrcFactor:KA.ONE,blendDstFactor:KA.ZERO},alphaBlendState:{blendMode:$4.ADD,blendSrcFactor:KA.ONE,blendDstFactor:KA.ZERO}}:{channelWriteMask:em&&kd.opFront.zpass===ZD.REPLACE?b4.NONE:b4.ALL,rgbBlendState:{blendMode:eu&&Ta.equation.rgb||$4.ADD,blendSrcFactor:eu&&Ta.func.srcRGB||KA.SRC_ALPHA,blendDstFactor:eu&&Ta.func.dstRGB||KA.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:eu&&Ta.equation.alpha||$4.ADD,blendSrcFactor:eu&&Ta.func.srcAlpha||KA.ONE,blendDstFactor:eu&&Ta.func.dstAlpha||KA.ONE}}],blendConstant:eu?B$:void 0,depthWrite:st,depthCompare:st&&Ze.func||AA.LESS,cullMode:Go&&Fr.face||$L.NONE,stencilWrite:em,stencilFront:{compare:em?kd.func.cmp:AA.ALWAYS,passOp:kd.opFront.zpass,failOp:kd.opFront.fail,depthFailOp:kd.opFront.zfail,mask:kd.opFront.mask},stencilBack:{compare:em?kd.func.cmp:AA.ALWAYS,passOp:kd.opBack.zpass,failOp:kd.opBack.fail,depthFailOp:kd.opBack.zfail,mask:kd.opBack.mask}}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(f){this.uniforms=(0,vn.Z)((0,vn.Z)({},this.uniforms),this.extractUniforms(f))}},{key:"draw",value:function(f,m){var d=this,E=(0,vn.Z)((0,vn.Z)({},this.options),f),M=E.count,B=M===void 0?0:M,J=E.instances,ue=E.elements,Ze=E.uniforms,st=Ze===void 0?{}:Ze,Fr=E.uniformBuffers,Go=E.textures;this.uniforms=(0,vn.Z)((0,vn.Z)({},this.uniforms),this.extractUniforms(st));var Ta=this.service,eu=Ta.renderPass,kd=Ta.currentFramebuffer,em=Ta.width,B0=Ta.height,vv=Ta.renderCache;this.pipeline=this.createPipeline(E,m);var y1=this.service.device,fy=y1.swapChainHeight;if(y1.swapChainHeight=(kd==null?void 0:kd.height)||B0,eu.setViewport(0,0,(kd==null?void 0:kd.width)||em,(kd==null?void 0:kd.height)||B0),y1.swapChainHeight=fy,eu.setPipeline(this.pipeline),eu.setStencilReference(1),eu.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(ey){return{buffer:ey}}),ue?{buffer:this.indexBuffer,offset:0}:null),Fr&&(this.bindings=vv.createBindings({pipeline:this.pipeline,uniformBufferBindings:Fr.map(function(ey,Fy){var C_=ey;return{binding:Fy,buffer:C_.get(),size:C_.size}}),samplerBindings:Go==null?void 0:Go.map(function(ey){return{texture:ey.texture,sampler:ey.sampler}})})),this.bindings&&(eu.setBindings(this.bindings),Object.keys(this.uniforms).forEach(function(ey){var Fy=d.uniforms[ey];Fy instanceof _te?d.uniforms[ey]=Fy.get():Fy instanceof bte&&(d.uniforms[ey]=Fy.get().texture)}),this.program.setUniformsLegacy(this.uniforms)),ue){var J1=ue.count;J1===0?eu.draw(B,J):eu.drawIndexed(J1,J)}else eu.draw(B,J)}},{key:"destroy",value:function(){var f,m,d;this.program.destroy(),(f=this.vertexBuffers)===null||f===void 0||f.forEach(function(E){return E.destroy()}),(m=this.indexBuffer)===null||m===void 0||m.destroy(),(d=this.bindings)===null||d===void 0||d.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(f){var m=f.depth;if(m)return{enable:m.enable===void 0?!0:!!m.enable,mask:m.mask===void 0?!0:!!m.mask,func:w4[m.func||J0.LESS],range:m.range||[0,1]}}},{key:"getBlendDrawParams",value:function(f){var m=f.blend,d=m||{},E=d.enable,M=d.func,B=d.equation,J=d.color,ue=J===void 0?[0,0,0,0]:J;return{enable:!!E,func:{srcRGB:uW[M&&M.srcRGB||J0.SRC_ALPHA],srcAlpha:uW[M&&M.srcAlpha||J0.SRC_ALPHA],dstRGB:uW[M&&M.dstRGB||J0.ONE_MINUS_SRC_ALPHA],dstAlpha:uW[M&&M.dstAlpha||J0.ONE_MINUS_SRC_ALPHA]},equation:{rgb:fte[B&&B.rgb||J0.FUNC_ADD],alpha:fte[B&&B.alpha||J0.FUNC_ADD]},color:ue}}},{key:"getStencilDrawParams",value:function(f){var m=f.stencil,d=m||{},E=d.enable,M=d.mask,B=M===void 0?4294967295:M,J=d.func,ue=J===void 0?{cmp:J0.ALWAYS,ref:0,mask:4294967295}:J,Ze=d.opFront,st=Ze===void 0?{fail:J0.KEEP,zfail:J0.KEEP,zpass:J0.KEEP}:Ze,Fr=d.opBack,Go=Fr===void 0?{fail:J0.KEEP,zfail:J0.KEEP,zpass:J0.KEEP}:Fr;return{enable:!!E,mask:B,func:(0,vn.Z)((0,vn.Z)({},ue),{},{cmp:Mue[ue.cmp]}),opFront:{fail:KB[st.fail],zfail:KB[st.zfail],zpass:KB[st.zpass],mask:ue.mask},opBack:{fail:KB[Go.fail],zfail:KB[Go.zfail],zpass:KB[Go.zpass],mask:ue.mask}}}},{key:"initCullDrawParams",value:function(f){var m=f.cull;if(m){var d=m.enable,E=m.face,M=E===void 0?J0.BACK:E;return{enable:!!d,face:Lue[M]}}}},{key:"extractUniforms",value:function(f){var m=this,d={};return Object.keys(f).forEach(function(E){m.extractUniformsRecursively(E,f[E],d,"")}),d}},{key:"extractUniformsRecursively",value:function(f,m,d,E){var M=this;if(m===null||typeof m=="number"||typeof m=="boolean"||Array.isArray(m)&&typeof m[0]=="number"||Zue(m)||m===""||"resize"in m){d["".concat(E&&E+".").concat(f)]=m;return}Wue(m)&&Object.keys(m).forEach(function(B){M.extractUniformsRecursively(B,m[B],d,"".concat(E&&E+".").concat(f))}),Array.isArray(m)&&m.forEach(function(B,J){Object.keys(B).forEach(function(ue){M.extractUniformsRecursively(ue,B[ue],d,"".concat(E&&E+".").concat(f,"[").concat(J,"]"))})})}}]),i}();function EM(i){return typeof WebGL2RenderingContext!="undefined"&&i instanceof WebGL2RenderingContext?!0:!!(i&&i._version===2)}var gF,fW,GL=Qv.isUndefined,jK=(gF=(0,Rg.b2)(),gF(fW=function(){function i(){var v=this;(0,Zr.Z)(this,i),(0,Na.Z)(this,"uniformBuffers",[]),(0,Na.Z)(this,"queryVerdorInfo",function(){return v.device.queryVendorInfo().platformString}),(0,Na.Z)(this,"createModel",function(f){return new Xpe(v.device,f,v)}),(0,Na.Z)(this,"createAttribute",function(f){return new UK(v.device,f)}),(0,Na.Z)(this,"createBuffer",function(f){return new U4(v.device,f)}),(0,Na.Z)(this,"createElements",function(f){return new jue(v.device,f)}),(0,Na.Z)(this,"createTexture2D",function(f){return new _te(v.device,f)}),(0,Na.Z)(this,"createFramebuffer",function(f){return new bte(v.device,f)}),(0,Na.Z)(this,"useFramebuffer",function(f,m){v.currentFramebuffer=f,v.beginFrame(),m(),v.endFrame(),v.currentFramebuffer=null}),(0,Na.Z)(this,"useFramebufferAsync",function(){var f=(0,v_.Z)(Pv().mark(function m(d,E){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return v.currentFramebuffer=d,v.preRenderPass=v.renderPass,v.beginFrame(),B.next=5,E();case 5:v.endFrame(),v.currentFramebuffer=null,v.renderPass=v.preRenderPass;case 8:case"end":return B.stop()}},m)}));return function(m,d){return f.apply(this,arguments)}}()),(0,Na.Z)(this,"clear",function(f){var m=f.color,d=f.depth,E=f.stencil,M=f.framebuffer,B=M===void 0?null:M;if(B)B.clearOptions={color:m,depth:d,stencil:E};else{var J=v.queryVerdorInfo();if(J==="WebGL1"){var ue=v.getGLContext();GL(E)?GL(d)||(ue.clearDepth(d),ue.clear(ue.DEPTH_BUFFER_BIT)):(ue.clearStencil(E),ue.clear(ue.STENCIL_BUFFER_BIT))}else if(J==="WebGL2"){var Ze=v.getGLContext();GL(E)?GL(d)||Ze.clearBufferfv(Ze.DEPTH,0,[d]):Ze.clearBufferiv(Ze.STENCIL,0,[E])}}}),(0,Na.Z)(this,"viewport",function(f){var m=f.width,d=f.height;v.swapChain.configureSwapChain(m,d),v.createMainColorDepthRT(m,d),v.width=m,v.height=d}),(0,Na.Z)(this,"readPixels",function(f){var m=f.framebuffer,d=f.x,E=f.y,M=f.width,B=f.height,J=v.device.createReadback(),ue=m.colorTexture,Ze=J.readTextureSync(ue,d,v.viewportOrigin===hR.LOWER_LEFT?E:v.height-E,M,B,new Uint8Array(M*B*4));return J.destroy(),Ze}),(0,Na.Z)(this,"readPixelsAsync",function(){var f=(0,v_.Z)(Pv().mark(function m(d){var E,M,B,J,ue,Ze,st,Fr,Go,Ta;return Pv().wrap(function(kd){for(;;)switch(kd.prev=kd.next){case 0:return E=d.framebuffer,M=d.x,B=d.y,J=d.width,ue=d.height,Ze=v.device.createReadback(),st=E.colorTexture,kd.next=5,Ze.readTexture(st,M,v.viewportOrigin===hR.LOWER_LEFT?B:v.height-B,J,ue,new Uint8Array(J*ue*4));case 5:if(Fr=kd.sent,v.viewportOrigin!==hR.LOWER_LEFT)for(Go=0;Go1&&arguments[1]!==void 0?arguments[1]:{};return(0,Zr.Z)(this,f),d=v.call(this),(0,Na.Z)((0,mv.Z)(d),"isEnable",!1),(0,Na.Z)((0,mv.Z)(d),"onDragStart",function(M){d.box.style.display="block",d.startEvent=d.endEvent=M,d.syncBoxBound(),d.emit("selectstart",d.getLngLatBox(),d.startEvent,d.endEvent)}),(0,Na.Z)((0,mv.Z)(d),"onDragging",function(M){d.endEvent=M,d.syncBoxBound(),d.emit("selecting",d.getLngLatBox(),d.startEvent,d.endEvent)}),(0,Na.Z)((0,mv.Z)(d),"onDragEnd",function(M){d.endEvent=M,d.box.style.display="none",d.emit("selectend",d.getLngLatBox(),d.startEvent,d.endEvent)}),d.scene=m,d.options=E,d}return(0,gt.Z)(f,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var d=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var E=Ov("div",void 0,this.container);E.classList.add("l7-select-box"),d&&E.classList.add(d),E.style.display="none",this.box=E}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var d=this.startEvent,E=d.x,M=d.y,B=this.endEvent,J=B.x,ue=B.y,Ze=Math.min(E,J),st=Math.min(M,ue),Fr=Math.abs(E-J),Go=Math.abs(M-ue);this.box.style.top="".concat(st,"px"),this.box.style.left="".concat(Ze,"px"),this.box.style.width="".concat(Fr,"px"),this.box.style.height="".concat(Go,"px")}},{key:"getLngLatBox",value:function(){var d=this.startEvent.lngLat,E=d.lng,M=d.lat,B=this.endEvent.lngLat,J=B.lng,ue=B.lat;return U2([[E,M],[J,ue]])}}]),f}(O2.EventEmitter),Gue=function(){function i(v){(0,Zr.Z)(this,i);var f=v.id,m=v.map,d=v.canvas,E=v.renderer,M=E===void 0?"regl":E,B=Xk();this.container=B,m.setContainer(B,f,d),B.bind(cu.IRendererService).to(M==="regl"?dte:jK).inSingletonScope(),this.sceneService=B.get(cu.ISceneService),this.mapService=B.get(cu.IMapService),this.iconService=B.get(cu.IIconService),this.fontService=B.get(cu.IFontService),this.controlService=B.get(cu.IControlService),this.layerService=B.get(cu.ILayerService),this.debugService=B.get(cu.IDebugService),this.debugService.setEnable(v.debug),this.markerService=B.get(cu.IMarkerService),this.interactionService=B.get(cu.IInteractionService),this.popupService=B.get(cu.IPopupService),this.boxSelect=new Hue(this,{}),this.initComponent(f),this.sceneService.init(v),this.initControl()}return(0,gt.Z)(i,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d){return Pv().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.sceneService.exportPng(d));case 1:case"end":return M.stop()}},m,this)}));function f(m){return v.apply(this,arguments)}return f}()},{key:"exportMap",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d){return Pv().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.abrupt("return",this.sceneService.exportPng(d));case 1:case"end":return M.stop()}},m,this)}));function f(m){return v.apply(this,arguments)}return f}()},{key:"registerRenderService",value:function(f){var m=this;if(this.sceneService.loaded){var d=new f(this);d.init()}else this.on("loaded",function(){var E=new f(m);E.init()})}},{key:"setBgColor",value:function(f){this.mapService.setBgColor(f)}},{key:"addLayer",value:function(f){var m=this,d=TL(this.container);if(f.setContainer(d,this.container),this.sceneService.addLayer(f),f.inited){var E=this.initMask(f);this.addMask(E,f.id)}else f.on("inited",function(){var M=m.initMask(f);m.addMask(M,f.id)})}},{key:"initMask",value:function(f){var m=f.getLayerConfig(),d=m.mask,E=m.maskfence,M=m.maskColor,B=M===void 0?"#000":M,J=m.maskOpacity,ue=J===void 0?0:J;if(!(!d||!E)){var Ze=new iH().source(E).shape("fill").style({color:B,opacity:ue});return Ze}}},{key:"addMask",value:function(f,m){if(f){var d=this.getLayer(m);if(d){var E=TL(this.container);f.setContainer(E,this.container),d.addMaskLayer(f),this.sceneService.addMask(f)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(f){return this.layerService.getLayer(f)}},{key:"getLayerByName",value:function(f){return this.layerService.getLayerByName(f)}},{key:"removeLayer",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.layerService.remove(d,E);case 2:case"end":return B.stop()}},m,this)}));function f(m,d){return v.apply(this,arguments)}return f}()},{key:"removeAllLayer",value:function(){var v=(0,v_.Z)(Pv().mark(function m(){return Pv().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this.layerService.removeAllLayers();case 2:case"end":return E.stop()}},m,this)}));function f(){return v.apply(this,arguments)}return f}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(f){this.layerService.setEnableRender(f)}},{key:"addIconFont",value:function(f,m){this.fontService.addIconFont(f,m)}},{key:"addIconFonts",value:function(f){var m=this;f.forEach(function(d){var E=(0,hu.Z)(d,2),M=E[0],B=E[1];m.fontService.addIconFont(M,B)})}},{key:"addFontFace",value:function(f,m){var d=this;this.fontService.once("fontloaded",function(E){d.emit("fontloaded",E)}),this.fontService.addFontFace(f,m)}},{key:"addImage",value:function(){var v=(0,v_.Z)(Pv().mark(function m(d,E){return Pv().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.iconService.addImage(d,E);case 2:case"end":return B.stop()}},m,this)}));function f(m,d){return v.apply(this,arguments)}return f}()},{key:"hasImage",value:function(f){return this.iconService.hasImage(f)}},{key:"removeImage",value:function(f){this.iconService.removeImage(f)}},{key:"addIconFontGlyphs",value:function(f,m){this.fontService.addIconGlyphs(m)}},{key:"addControl",value:function(f){this.controlService.addControl(f,this.container)}},{key:"removeControl",value:function(f){this.controlService.removeControl(f)}},{key:"getControlByName",value:function(f){return this.controlService.getControlByName(f)}},{key:"addMarker",value:function(f){this.markerService.addMarker(f)}},{key:"addMarkerLayer",value:function(f){this.markerService.addMarkerLayer(f)}},{key:"removeMarkerLayer",value:function(f){this.markerService.removeMarkerLayer(f)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(f){this.popupService.addPopup(f)}},{key:"removePopup",value:function(f){this.popupService.removePopup(f)}},{key:"on",value:function(f,m){if(pW.includes(f)){var d;(d=this.boxSelect)===null||d===void 0||d.on(f,m)}else OO.includes(f)?this.sceneService.on(f,m):this.mapService.on(f,m)}},{key:"once",value:function(f,m){if(pW.includes(f)){var d;(d=this.boxSelect)===null||d===void 0||d.once(f,m)}else OO.includes(f)?this.sceneService.once(f,m):this.mapService.once(f,m)}},{key:"emit",value:function(f,m){OO.indexOf(f)===-1?this.mapService.on(f,m):this.sceneService.emit(f,m)}},{key:"off",value:function(f,m){if(pW.includes(f)){var d;(d=this.boxSelect)===null||d===void 0||d.off(f,m)}else OO.includes(f)?this.sceneService.off(f,m):this.mapService.off(f,m)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(f){return this.mapService.getCenter(f)}},{key:"setCenter",value:function(f,m){return this.mapService.setCenter(f,m)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(f){return this.mapService.setPitch(f)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(f){this.mapService.setRotation(f)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(f){this.mapService.panTo(f)}},{key:"panBy",value:function(f,m){this.mapService.panBy(f,m)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(f){this.mapService.setZoom(f)}},{key:"fitBounds",value:function(f,m){var d=this.sceneService.getSceneConfig(),E=d.fitBoundsOptions,M=d.animate;this.mapService.fitBounds(f,m||(0,vn.Z)((0,vn.Z)({},E),{},{animate:M}))}},{key:"setZoomAndCenter",value:function(f,m){this.mapService.setZoomAndCenter(f,m)}},{key:"setMapStyle",value:function(f){this.mapService.setMapStyle(f)}},{key:"setMapStatus",value:function(f){this.mapService.setMapStatus(f)}},{key:"pixelToLngLat",value:function(f){return this.mapService.pixelToLngLat(f)}},{key:"lngLatToPixel",value:function(f){return this.mapService.lngLatToPixel(f)}},{key:"containerToLngLat",value:function(f){return this.mapService.containerToLngLat(f)}},{key:"lngLatToContainer",value:function(f){return this.mapService.lngLatToContainer(f)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(f,m){this.container.bind(cu.IPostProcessingPass).to(f).whenTargetNamed(m)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var f=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),m&&this.boxSelect.once("selectend",function(){f.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(f){return H0.REGISTERED_PROTOCOLS[f]}},{key:"startAnimate",value:function(){this.layerService.startAnimate()}},{key:"stopAnimate",value:function(){this.layerService.stopAnimate()}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(f){this.controlService.init({container:M_(f)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var f=this.sceneService.getSceneConfig(),m=f.logoVisible,d=f.logoPosition;m&&this.addControl(new mw({position:d}))}}],[{key:"addProtocol",value:function(f,m){H0.REGISTERED_PROTOCOLS[f]=m}},{key:"removeProtocol",value:function(f){delete H0.REGISTERED_PROTOCOLS[f]}}]),i}(),Kue="2.20.18"},86465:function(c,g,l){"use strict";l.d(g,{br:function(){return ZE},L6:function(){return QC},ot:function(){return za},l_:function(){return _r},$2:function(){return gd},Ie:function(){return US},OB:function(){return E2},w3:function(){return uv},Jx:function(){return Xv},CB:function(){return lx},ns:function(){return eT},dW:function(){return $T},GI:function(){return cC},YY:function(){return xE},kp:function(){return t_},jf:function(){return Qw},AB:function(){return zE},Ly:function(){return xS},dN:function(){return nv},$r:function(){return xu}});var u=l(23051),D=l(77617),b=l(92269),x=function(xt){return function(Et,jn){var Oa=(0,D.useRef)(),Rg=(0,D.useRef)(0);(jn===void 0||!(0,b.k)(jn,Oa.current))&&(Oa.current=jn,Rg.current+=1),xt(Et,[Rg.current])}},y=x(D.useEffect),w=l(92310),a=l.n(w),S=l(63364),I=l(40984),N=l(92378),ie="*",ze=function(){function xt(){this._events={}}return xt.prototype.on=function(Et,jn,Oa){return this._events[Et]||(this._events[Et]=[]),this._events[Et].push({callback:jn,once:!!Oa}),this},xt.prototype.once=function(Et,jn){return this.on(Et,jn,!0)},xt.prototype.emit=function(Et){for(var jn=this,Oa=[],Rg=1;Rg=xt.length?{done:!0}:{done:!1,value:xt[Oa++]}},e:function(_1){throw _1},f:Rg}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oh=!0,cu=!1,m0;return{s:function(){jn=jn.call(xt)},n:function(){var _1=jn.next();return oh=_1.done,_1},e:function(_1){cu=!0,m0=_1},f:function(){try{!oh&&jn.return!=null&&jn.return()}finally{if(cu)throw m0}}}}function rt(xt,Et){if(xt){if(typeof xt=="string")return It(xt,Et);var jn=Object.prototype.toString.call(xt).slice(8,-1);if(jn==="Object"&&xt.constructor&&(jn=xt.constructor.name),jn==="Map"||jn==="Set")return Array.from(xt);if(jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jn))return It(xt,Et)}}function It(xt,Et){(Et==null||Et>xt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Et!=null?Et:{}).map(function(jn){var Oa=gt(jn,2),Rg=Oa[0],oh=Oa[1],cu=(0,ai.Z)(Rg),m0=oh;return typeof m0=="number"?m0="".concat(m0,"px"):typeof m0=="string"&&(m0=m0.replace("'","")),"".concat(cu," :").concat(m0)}).join("; ")};function Pg(xt,Et){return d0(xt)||X0(xt,Et)||e0(xt,Et)||Ug()}function Ug(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e0(xt,Et){if(xt){if(typeof xt=="string")return H0(xt,Et);var jn=Object.prototype.toString.call(xt).slice(8,-1);if(jn==="Object"&&xt.constructor&&(jn=xt.constructor.name),jn==="Map"||jn==="Set")return Array.from(xt);if(jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jn))return H0(xt,Et)}}function H0(xt,Et){(Et==null||Et>xt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn1&&arguments[1]!==void 0?arguments[1]:!1;return Object.entries(xt).sort(function(jn,Oa){var Rg=Pg(jn,1),oh=Rg[0],cu=Pg(Oa,1),m0=cu[0];return oh.localeCompare(m0)}).map(function(jn){var Oa=Pg(jn,2),Rg=Oa[0],oh=Oa[1],cu=String(oh);return Et&&(cu=window.encodeURI(String(oh))),"".concat(Rg,"=").concat(cu)}).join("&")}function Lv(xt,Et){return"".concat(xt,"?").concat(jv(Et,!0))}function Je(xt){"@babel/helpers - typeof";return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},Je(xt)}function k0(){"use strict";k0=function(){return Et};var xt,Et={},jn=Object.prototype,Oa=jn.hasOwnProperty,Rg=Object.defineProperty||function(m_,ay,Yy){m_[ay]=Yy.value},oh=typeof Symbol=="function"?Symbol:{},cu=oh.iterator||"@@iterator",m0=oh.asyncIterator||"@@asyncIterator",Hv=oh.toStringTag||"@@toStringTag";function _1(m_,ay,Yy){return Object.defineProperty(m_,ay,{value:Yy,enumerable:!0,configurable:!0,writable:!0}),m_[ay]}try{_1({},"")}catch(m_){_1=function(Yy,Wx,e2){return Yy[Wx]=e2}}function kv(m_,ay,Yy,Wx){var e2=ay&&ay.prototype instanceof c_?ay:c_,Nx=Object.create(e2.prototype),fC=new Cw(Wx||[]);return Rg(Nx,"_invoke",{value:Y2(m_,Yy,fC)}),Nx}function L1(m_,ay,Yy){try{return{type:"normal",arg:m_.call(ay,Yy)}}catch(Wx){return{type:"throw",arg:Wx}}}Et.wrap=kv;var uy="suspendedStart",D1="suspendedYield",Ey="executing",xv="completed",dy={};function c_(){}function Hy(){}function nx(){}var bx={};_1(bx,cu,function(){return this});var Rx=Object.getPrototypeOf,R2=Rx&&Rx(Rx(pC([])));R2&&R2!==jn&&Oa.call(R2,cu)&&(bx=R2);var Dx=nx.prototype=c_.prototype=Object.create(bx);function rw(m_){["next","throw","return"].forEach(function(ay){_1(m_,ay,function(Yy){return this._invoke(ay,Yy)})})}function Dw(m_,ay){function Yy(e2,Nx,fC,uS){var FE=L1(m_[e2],m_,Nx);if(FE.type!=="throw"){var yE=FE.arg,JE=yE.value;return JE&&Je(JE)=="object"&&Oa.call(JE,"__await")?ay.resolve(JE.__await).then(function(CS){Yy("next",CS,fC,uS)},function(CS){Yy("throw",CS,fC,uS)}):ay.resolve(JE).then(function(CS){yE.value=CS,fC(yE)},function(CS){return Yy("throw",CS,fC,uS)})}uS(FE.arg)}var Wx;Rg(this,"_invoke",{value:function(Nx,fC){function uS(){return new ay(function(FE,yE){Yy(Nx,fC,FE,yE)})}return Wx=Wx?Wx.then(uS,uS):uS()}})}function Y2(m_,ay,Yy){var Wx=uy;return function(e2,Nx){if(Wx===Ey)throw new Error("Generator is already running");if(Wx===xv){if(e2==="throw")throw Nx;return{value:xt,done:!0}}for(Yy.method=e2,Yy.arg=Nx;;){var fC=Yy.delegate;if(fC){var uS=qw(fC,Yy);if(uS){if(uS===dy)continue;return uS}}if(Yy.method==="next")Yy.sent=Yy._sent=Yy.arg;else if(Yy.method==="throw"){if(Wx===uy)throw Wx=xv,Yy.arg;Yy.dispatchException(Yy.arg)}else Yy.method==="return"&&Yy.abrupt("return",Yy.arg);Wx=Ey;var FE=L1(m_,ay,Yy);if(FE.type==="normal"){if(Wx=Yy.done?xv:D1,FE.arg===dy)continue;return{value:FE.arg,done:Yy.done}}FE.type==="throw"&&(Wx=xv,Yy.method="throw",Yy.arg=FE.arg)}}}function qw(m_,ay){var Yy=ay.method,Wx=m_.iterator[Yy];if(Wx===xt)return ay.delegate=null,Yy==="throw"&&m_.iterator.return&&(ay.method="return",ay.arg=xt,qw(m_,ay),ay.method==="throw")||Yy!=="return"&&(ay.method="throw",ay.arg=new TypeError("The iterator does not provide a '"+Yy+"' method")),dy;var e2=L1(Wx,m_.iterator,ay.arg);if(e2.type==="throw")return ay.method="throw",ay.arg=e2.arg,ay.delegate=null,dy;var Nx=e2.arg;return Nx?Nx.done?(ay[m_.resultName]=Nx.value,ay.next=m_.nextLoc,ay.method!=="return"&&(ay.method="next",ay.arg=xt),ay.delegate=null,dy):Nx:(ay.method="throw",ay.arg=new TypeError("iterator result is not an object"),ay.delegate=null,dy)}function z1(m_){var ay={tryLoc:m_[0]};1 in m_&&(ay.catchLoc=m_[1]),2 in m_&&(ay.finallyLoc=m_[2],ay.afterLoc=m_[3]),this.tryEntries.push(ay)}function BS(m_){var ay=m_.completion||{};ay.type="normal",delete ay.arg,m_.completion=ay}function Cw(m_){this.tryEntries=[{tryLoc:"root"}],m_.forEach(z1,this),this.reset(!0)}function pC(m_){if(m_||m_===""){var ay=m_[cu];if(ay)return ay.call(m_);if(typeof m_.next=="function")return m_;if(!isNaN(m_.length)){var Yy=-1,Wx=function e2(){for(;++Yy=0;--e2){var Nx=this.tryEntries[e2],fC=Nx.completion;if(Nx.tryLoc==="root")return Wx("end");if(Nx.tryLoc<=this.prev){var uS=Oa.call(Nx,"catchLoc"),FE=Oa.call(Nx,"finallyLoc");if(uS&&FE){if(this.prev=0;--Wx){var e2=this.tryEntries[Wx];if(e2.tryLoc<=this.prev&&Oa.call(e2,"finallyLoc")&&this.prev=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.finallyLoc===ay)return this.complete(Wx.completion,Wx.afterLoc),BS(Wx),dy}},catch:function(ay){for(var Yy=this.tryEntries.length-1;Yy>=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.tryLoc===ay){var e2=Wx.completion;if(e2.type==="throw"){var Nx=e2.arg;BS(Wx)}return Nx}}throw new Error("illegal catch attempt")},delegateYield:function(ay,Yy,Wx){return this.delegate={iterator:pC(ay),resultName:Yy,nextLoc:Wx},this.method==="next"&&(this.arg=xt),dy}},Et}function G0(xt,Et,jn,Oa,Rg,oh,cu){try{var m0=xt[oh](cu),Hv=m0.value}catch(_1){jn(_1);return}m0.done?Et(Hv):Promise.resolve(Hv).then(Oa,Rg)}function iv(xt){return function(){var Et=this,jn=arguments;return new Promise(function(Oa,Rg){var oh=xt.apply(Et,jn);function cu(Hv){G0(oh,Oa,Rg,cu,m0,"next",Hv)}function m0(Hv){G0(oh,Oa,Rg,cu,m0,"throw",Hv)}cu(void 0)})}}var u0=function(){var xt=iv(k0().mark(function Et(jn,Oa){return k0().wrap(function(oh){for(;;)switch(oh.prev=oh.next){case 0:if(jn!=="Map"){oh.next=2;break}return oh.abrupt("return",new u.Map(Oa));case 2:if(jn!=="Gaode"){oh.next=6;break}return oh.abrupt("return",new u.GaodeMap(Oa));case 6:if(jn!=="GaodeV1"){oh.next=10;break}return oh.abrupt("return",new u.GaodeMapV1(Oa));case 10:if(jn!=="GaodeV2"){oh.next=12;break}return oh.abrupt("return",new u.GaodeMapV2(Oa));case 12:if(jn!=="Tencent"){oh.next=14;break}return oh.abrupt("return",Promise.resolve(Promise.resolve().then(l.bind(l,23051))).then(function(cu){var m0=cu.TencentMap;return new m0(Oa)}));case 14:if(jn!=="Baidu"){oh.next=16;break}return oh.abrupt("return",Promise.resolve(Promise.resolve().then(l.bind(l,23051))).then(function(cu){var m0=cu.BaiduMap;return new m0(Oa)}));case 16:return oh.abrupt("return",Promise.resolve(Promise.resolve().then(l.bind(l,23051))).then(function(cu){var m0=cu.Mapbox;return new m0(Oa)}));case 17:case"end":return oh.stop()}},Et)}));return function(jn,Oa){return xt.apply(this,arguments)}}(),B1=function(xt,Et){return xt?xt.map(function(jn,Oa){return Object.is(xt[Oa],Et==null?void 0:Et[Oa])?-1:Oa}).filter(function(jn){return jn>=0}):Et?Et.map(function(jn,Oa){return Oa}):[]},Dg=function(xt,Et){var jn=(0,D.useRef)();(0,D.useEffect)(function(){var Oa=B1(jn.current,Et),Rg=jn.current;return jn.current=Et,xt(Oa,Rg,Et)},Et)},zo=Dg,mu=l(41806),Ag={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},c0=Object.keys(Ag);function L0(xt){return uu(xt)||Gg(xt)||cv(xt)||$0()}function $0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cv(xt,Et){if(xt){if(typeof xt=="string")return Gs(xt,Et);var jn=Object.prototype.toString.call(xt).slice(8,-1);if(jn==="Object"&&xt.constructor&&(jn=xt.constructor.name),jn==="Map"||jn==="Set")return Array.from(xt);if(jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jn))return Gs(xt,Et)}}function Gg(xt){if(typeof Symbol!="undefined"&&xt[Symbol.iterator]!=null||xt["@@iterator"]!=null)return Array.from(xt)}function uu(xt){if(Array.isArray(xt))return Gs(xt)}function Gs(xt,Et){(Et==null||Et>xt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn=0)&&Object.prototype.propertyIsEnumerable.call(xt,Oa)&&(jn[Oa]=xt[Oa])}return jn}function ui(xt,Et){if(xt==null)return{};var jn={},Oa=Object.keys(xt),Rg,oh;for(oh=0;oh=0)&&(jn[Rg]=xt[Rg]);return jn}var ya=D.createContext(null),gd=(0,D.memo)((0,D.forwardRef)(function(Et,jn){var Oa=Et.id,Rg=Et.style,oh=Et.className,cu=Et.map,m0=Et.mapType,Hv=m0===void 0?"Gaode":m0,_1=Et.mapOptions,kv=_1===void 0?{}:_1,L1=Et.onLayerManagerCreated,uy=Et.onSceneLoaded,D1=Et.children,Ey=rn(Et,_h),xv=(0,D.useRef)(),dy=(0,D.useState)(null),c_=Jg(dy,2),Hy=c_[0],nx=c_[1],bx=(0,D.useRef)({scene:null,layerManager:null}),Rx=bx.current;(0,D.useEffect)(function(){var Dx,rw=!0,Dw=(0,S.Z)(cu)?u0(Hv,kv):typeof cu=="function"?cu():cu;return Promise.resolve(Dw).then(function(Y2){if(rw){Dx=new u.Scene(fr(fr({},Ey),{},{id:xv.current,map:Y2}));var qw=new Ca({scene:Dx});Rx.scene=Dx,Rx.layerManager=qw,Dx.once("loaded",function(){uy&&uy(Dx),L1&&L1(qw),nx(Dx)})}}).catch(function(Y2){console.error(Y2)}),function(){rw=!1,Dx&&(Rx.scene=null,Rx.layerManager=null,Dx.destroy())}},[]),Ia(Hy,Et),(0,D.useImperativeHandle)(jn,function(){return{getScene:function(){return Hy},getMap:function(){return Hy.map}}},[Hy]),(0,D.useEffect)(function(){Hy&&kv.style&&Hy.setMapStyle(kv.style)},[kv.style]),y(function(){(0,I.Z)(Hy)||(kv.center&&(0,N.Z)(kv.zoom)?Hy.setZoomAndCenter(kv.zoom,kv.center):(0,N.Z)(kv.zoom)?Hy.setZoom(kv.zoom):kv.center&&Hy.setCenter(kv.center))},[kv.zoom,kv.center]),(0,D.useEffect)(function(){Hy&&(0,N.Z)(kv.pitch)&&Hy.setPitch(kv.pitch)},[kv.pitch]),(0,D.useEffect)(function(){Hy&&(0,N.Z)(kv.rotation)&&Hy.setRotation(kv.rotation)},[kv.rotation]);var R2=(0,D.useMemo)(function(){return fr({position:"relative"},Rg)},[Rg]);return D.createElement("div",{id:Oa,ref:xv,style:R2,className:a()("larkmap",oh)},Hy&&D.createElement(ya.Provider,{value:Rx},D1))})),Su=l(8142),xu=function(){var Et=(0,D.useContext)(ya);if(!Et)throw new Error("The useScene must be used in the LarkMap container");var jn=Et.scene;return jn},xa=function(Et,jn,Oa){var Rg=xu(),oh=(0,D.useRef)();(0,D.useEffect)(function(){var cu=new u.Control(Oa);return cu.onAdd=function(){return Et(Rg)},cu.onRemove=function(){},oh.current=cu,Rg.addControl(cu),function(){typeof jn=="function"&&jn(Rg),oh.current=null,Rg.removeControl(cu)}},[]),(0,Su.Z)(function(){var cu;(cu=oh.current)===null||cu===void 0||cu.setOptions(Oa)},[Oa])},Td=function(){var Et=(0,D.useContext)(ya);if(!Et)throw new Error("The useLayerManager must be used in the LarkMap container");var jn=Et.layerManager;return jn};function jg(xt,Et){return $a(xt)||Sa(xt,Et)||tv(xt,Et)||Wa()}function Wa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tv(xt,Et){if(xt){if(typeof xt=="string")return Bs(xt,Et);var jn=Object.prototype.toString.call(xt).slice(8,-1);if(jn==="Object"&&xt.constructor&&(jn=xt.constructor.name),jn==="Map"||jn==="Set")return Array.from(xt);if(jn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jn))return Bs(xt,Et)}}function Bs(xt,Et){(Et==null||Et>xt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn=0)&&Object.prototype.propertyIsEnumerable.call(xt,Oa)&&(jn[Oa]=xt[Oa])}return jn}function sv(xt,Et){if(xt==null)return{};var jn={},Oa=Object.keys(xt),Rg,oh;for(oh=0;oh=0)&&(jn[Rg]=xt[Rg]);return jn}var yv=function(Et,jn){var Oa=jn.onCreated,Rg=jn.source,oh=ev(jn,Eg),cu=Td(),m0=(0,D.useRef)(),Hv=(0,D.useRef)(oh),_1=(0,D.useRef)(Rg);return m0.current||(m0.current=new Et(jn),Oa&&m0.current.once("inited",function(){return Oa(m0.current)}),cu.addLayer(m0.current)),(0,Su.Z)(function(){if(m0.current){var kv=!(0,t0.Z)(Hv.current,oh);kv&&(m0.current.update(oh),Hv.current=(0,n0.Z)(oh))}},[oh]),(0,Su.Z)(function(){if(m0.current){var kv=Rg.data,L1=ev(Rg,a1),uy=_1.current,D1=uy.data,Ey=ev(uy,Hg),xv=kv!==D1||!(0,t0.Z)(L1,Ey);xv&&(m0.current.changeData(Rg),_1.current=h0({},Rg))}},[Rg]),(0,D.useEffect)(function(){return function(){m0.current&&(cu.removeLayer(m0.current),m0.current=null)}},[]),m0},$v={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},E0=function(Et,jn){var Oa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$v,Rg=(0,D.useMemo)(function(){return Object.keys(Oa)},[Oa]),oh=function(kv){Rg.forEach(function(L1){var uy=Oa[L1],D1=jn[L1];L1&&D1&&Et[kv](uy,D1)})},cu=function(){return oh("on")},m0=function(){return oh("off")},Hv=(0,D.useRef)(!0);Hv.current&&cu(),(0,D.useEffect)(function(){return Hv.current?Hv.current=!1:cu(),function(){m0()}},Rg.map(function(_1){return jn[_1]})),(0,mu.Z)(function(){m0()})},E1=null,$1=null,l0=l(32290),z0={}.toString,W0=function(xt,Et){return z0.call(xt)==="[object "+Et+"]"},Rv=W0,R0=function(xt){return Rv(xt,"Function")},gv=function(xt){return Array.isArray?Array.isArray(xt):Rv(xt,"Array")},G1=function(xt){var Et=typeof xt;return xt!==null&&Et==="object"||Et==="function"};function xy(xt,Et){if(xt){var jn;if(gv(xt))for(var Oa=0,Rg=xt.length;Oa-1;)Z1.call(xt,oh,1);return xt},zy=null,hv=Array.prototype.splice,Qv=function(Et,jn){if(!isArrayLike(Et))return[];for(var Oa=Et?jn.length:0,Rg=Oa-1;Oa--;){var oh=void 0,cu=jn[Oa];(Oa===Rg||cu!==oh)&&(oh=cu,hv.call(Et,cu,1))}return Et},Y1=null,M_=function(xt,Et,jn){if(!gv(xt)&&!si(xt))return xt;var Oa=jn;return Dy(xt,function(Rg,oh){Oa=Et(Oa,Rg,oh)}),Oa},h1=M_,_v=function(xt,Et){var jn=[];if(!isArrayLike(xt))return jn;for(var Oa=-1,Rg=[],oh=xt.length;++Oaoh[m0])return 1;if(Rg[m0]0},A_=null,gx=function(xt,Et){if(isArray(xt)){for(var jn,Oa=-1/0,Rg=0;RgOa&&(jn=oh,Oa=cu)}return jn}},Na=function(xt,Et){if(isArray(xt)){for(var jn,Oa=1/0,Rg=0;Rgm0&&kv>m0);)if(Hv.push(_1),m0-=kv,cu=cu.substr(Rg),!cu)return Hv.join("");for(;_1=cu.substr(0,1),kv=measureTextWidth(_1,jn),!(kv+oh>m0);)if(Hv.push(_1),m0-=kv,cu=cu.substr(1),!cu)return Hv.join("");return""+Hv.join("")+Oa},VS=function(){function xt(){this.map={}}return xt.prototype.has=function(Et){return this.map[Et]!==void 0},xt.prototype.get=function(Et,jn){var Oa=this.map[Et];return Oa===void 0?jn:Oa},xt.prototype.set=function(Et,jn){this.map[Et]=jn},xt.prototype.clear=function(){this.map={}},xt.prototype.delete=function(Et){delete this.map[Et]},xt.prototype.size=function(){return Object.keys(this.map).length},xt}(),YS=null;function G2(xt,Et){return function(){for(var jn=[],Oa=0;Oaxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn=0)&&Object.prototype.propertyIsEnumerable.call(xt,Oa)&&(jn[Oa]=xt[Oa])}return jn}function G3(xt,Et){if(xt==null)return{};var jn={},Oa=Object.keys(xt),Rg,oh;for(oh=0;oh=0)&&(jn[Rg]=xt[Rg]);return jn}var tA="SECRET_COMBOBOX_MODE_DO_NOT_USE",JA="larkmap-select",QA=function(Et,jn){var Oa=Et.prefixCls,Rg=Et.bordered,oh=Rg===void 0?!0:Rg,cu=Et.className,m0=Et.getPopupContainer,Hv=Et.dropdownClassName,_1=Et.popupClassName,kv=Et.listHeight,L1=kv===void 0?256:kv,uy=Et.placement,D1=Et.listItemHeight,Ey=D1===void 0?24:D1,xv=Et.disabled,dy=Et.notFoundContent,c_=rS(Et,H3),Hy=D.useMemo(function(){var Rx=c_,R2=Rx.mode;if(R2!=="combobox")return R2===tA?"combobox":R2},[c_]),nx=(0,qE.Z)(c_,"suffixIcon","itemIcon"),bx=a()(D3({},"".concat(JA,"-borderless"),!oh),cu);return D.createElement(TS.ZP,VA({ref:jn},nx,{listHeight:L1,listItemHeight:Ey,mode:Hy,prefixCls:JA,placement:uy,notFoundContent:dy!=null?dy:"\u5F53\u524D\u65E0\u6570\u636E",className:bx,getPopupContainer:m0,dropdownClassName:_1,disabled:xv}))},e3=D.forwardRef(QA);e3.SECRET_COMBOBOX_MODE_DO_NOT_USE=tA,e3.Option=TS.Wx,e3.OptGroup=TS.Xo;var aT=e3;function VT(xt){"@babel/helpers - typeof";return VT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},VT(xt)}var y3=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],PA=["keywords","privateKey"];function RA(){return RA=Object.assign?Object.assign.bind():function(xt){for(var Et=1;Et=0;--e2){var Nx=this.tryEntries[e2],fC=Nx.completion;if(Nx.tryLoc==="root")return Wx("end");if(Nx.tryLoc<=this.prev){var uS=Oa.call(Nx,"catchLoc"),FE=Oa.call(Nx,"finallyLoc");if(uS&&FE){if(this.prev=0;--Wx){var e2=this.tryEntries[Wx];if(e2.tryLoc<=this.prev&&Oa.call(e2,"finallyLoc")&&this.prev=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.finallyLoc===ay)return this.complete(Wx.completion,Wx.afterLoc),BS(Wx),dy}},catch:function(ay){for(var Yy=this.tryEntries.length-1;Yy>=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.tryLoc===ay){var e2=Wx.completion;if(e2.type==="throw"){var Nx=e2.arg;BS(Wx)}return Nx}}throw new Error("illegal catch attempt")},delegateYield:function(ay,Yy,Wx){return this.delegate={iterator:pC(ay),resultName:Yy,nextLoc:Wx},this.method==="next"&&(this.arg=xt),dy}},Et}function he(xt){return Eu(xt)||ci(xt)||ru(xt)||yt()}function yt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ci(xt){if(typeof Symbol!="undefined"&&xt[Symbol.iterator]!=null||xt["@@iterator"]!=null)return Array.from(xt)}function Eu(xt){if(Array.isArray(xt))return Rd(xt)}function Ne(xt,Et){var jn=Object.keys(xt);if(Object.getOwnPropertySymbols){var Oa=Object.getOwnPropertySymbols(xt);Et&&(Oa=Oa.filter(function(Rg){return Object.getOwnPropertyDescriptor(xt,Rg).enumerable})),jn.push.apply(jn,Oa)}return jn}function Me(xt){for(var Et=1;Etxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn=0)&&Object.prototype.propertyIsEnumerable.call(xt,Oa)&&(jn[Oa]=xt[Oa])}return jn}function Fd(xt,Et){if(xt==null)return{};var jn={},Oa=Object.keys(xt),Rg,oh;for(oh=0;oh=0)&&(jn[Rg]=xt[Rg]);return jn}var zg=aT.Option,v0=function(Et){var jn=Et.searchParams,Oa=Et.showDistrict,Rg=Et.showAddress,oh=Et.onSearchFinish,cu=Et.onChange,m0=au(Et,y3),Hv=(0,D.useState)([]),_1=qs(Hv,2),kv=_1[0],L1=_1[1];(0,D.useEffect)(function(){oh==null||oh(kv)},[oh,kv]);var uy=(0,OT.Z)(function(){var xv=Ws(Qe().mark(function dy(c_){var Hy,nx,bx,Rx,R2,Dx,rw;return Qe().wrap(function(Y2){for(;;)switch(Y2.prev=Y2.next){case 0:if(c_){Y2.next=3;break}return L1([]),Y2.abrupt("return");case 3:return nx=jn.keywords,bx=jn.privateKey,Rx=au(jn,PA),R2=Me(Me({},Rx),{},{keywords:[].concat(he((nx!=null?nx:"").split("|")),[c_]).filter(function(qw){return!!qw}).join("|")}),bx&&(R2.sig=WT()(jv(R2,!1)+bx)),Dx="".concat(gE,"?").concat(jv(R2,!0)),Y2.next=9,fetch(Dx);case 9:return Y2.next=11,Y2.sent.json();case 11:rw=Y2.sent,L1(((Hy=rw==null?void 0:rw.tips)!==null&&Hy!==void 0?Hy:[]).filter(function(qw){return qw.location&&qw.location.length}).map(function(qw){var z1=qw.location.split(","),BS=qs(z1,2),Cw=BS[0],pC=BS[1];return qw.longitude=+Cw,qw.latitude=+pC,qw}));case 13:case"end":return Y2.stop()}},dy)}));return function(dy){return xv.apply(this,arguments)}}(),{wait:1e3}),D1=uy.run,Ey=(0,D.useCallback)(function(xv){var dy=xv&&kv.find(function(c_){return c_.name===xv});cu==null||cu(xv||void 0,dy||void 0)},[cu,kv]);return D.createElement(aT,RA({className:"".concat(aD),onSearch:D1,onChange:Ey,clearIcon:function(){return null}},m0),kv.map(function(xv){var dy="".concat(Oa?xv.district:"").concat(Rg?xv.address:"");return D.createElement(zg,{key:xv.id,value:xv.name},D.createElement("div",{title:xv.name,className:"".concat(aD,"__option-name")},xv.name),dy&&D.createElement("div",{title:dy,className:"".concat(aD,"__option-tip")},dy))}))};v0.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var x0=l(88234),a0=l(4639),M0="larkmap-administrative-location",O0="https://restapi.amap.com/v3/geocode/regeo";function Y0(xt){"@babel/helpers - typeof";return Y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},Y0(xt)}function V0(){"use strict";V0=function(){return Et};var xt,Et={},jn=Object.prototype,Oa=jn.hasOwnProperty,Rg=Object.defineProperty||function(m_,ay,Yy){m_[ay]=Yy.value},oh=typeof Symbol=="function"?Symbol:{},cu=oh.iterator||"@@iterator",m0=oh.asyncIterator||"@@asyncIterator",Hv=oh.toStringTag||"@@toStringTag";function _1(m_,ay,Yy){return Object.defineProperty(m_,ay,{value:Yy,enumerable:!0,configurable:!0,writable:!0}),m_[ay]}try{_1({},"")}catch(m_){_1=function(Yy,Wx,e2){return Yy[Wx]=e2}}function kv(m_,ay,Yy,Wx){var e2=ay&&ay.prototype instanceof c_?ay:c_,Nx=Object.create(e2.prototype),fC=new Cw(Wx||[]);return Rg(Nx,"_invoke",{value:Y2(m_,Yy,fC)}),Nx}function L1(m_,ay,Yy){try{return{type:"normal",arg:m_.call(ay,Yy)}}catch(Wx){return{type:"throw",arg:Wx}}}Et.wrap=kv;var uy="suspendedStart",D1="suspendedYield",Ey="executing",xv="completed",dy={};function c_(){}function Hy(){}function nx(){}var bx={};_1(bx,cu,function(){return this});var Rx=Object.getPrototypeOf,R2=Rx&&Rx(Rx(pC([])));R2&&R2!==jn&&Oa.call(R2,cu)&&(bx=R2);var Dx=nx.prototype=c_.prototype=Object.create(bx);function rw(m_){["next","throw","return"].forEach(function(ay){_1(m_,ay,function(Yy){return this._invoke(ay,Yy)})})}function Dw(m_,ay){function Yy(e2,Nx,fC,uS){var FE=L1(m_[e2],m_,Nx);if(FE.type!=="throw"){var yE=FE.arg,JE=yE.value;return JE&&Y0(JE)=="object"&&Oa.call(JE,"__await")?ay.resolve(JE.__await).then(function(CS){Yy("next",CS,fC,uS)},function(CS){Yy("throw",CS,fC,uS)}):ay.resolve(JE).then(function(CS){yE.value=CS,fC(yE)},function(CS){return Yy("throw",CS,fC,uS)})}uS(FE.arg)}var Wx;Rg(this,"_invoke",{value:function(Nx,fC){function uS(){return new ay(function(FE,yE){Yy(Nx,fC,FE,yE)})}return Wx=Wx?Wx.then(uS,uS):uS()}})}function Y2(m_,ay,Yy){var Wx=uy;return function(e2,Nx){if(Wx===Ey)throw new Error("Generator is already running");if(Wx===xv){if(e2==="throw")throw Nx;return{value:xt,done:!0}}for(Yy.method=e2,Yy.arg=Nx;;){var fC=Yy.delegate;if(fC){var uS=qw(fC,Yy);if(uS){if(uS===dy)continue;return uS}}if(Yy.method==="next")Yy.sent=Yy._sent=Yy.arg;else if(Yy.method==="throw"){if(Wx===uy)throw Wx=xv,Yy.arg;Yy.dispatchException(Yy.arg)}else Yy.method==="return"&&Yy.abrupt("return",Yy.arg);Wx=Ey;var FE=L1(m_,ay,Yy);if(FE.type==="normal"){if(Wx=Yy.done?xv:D1,FE.arg===dy)continue;return{value:FE.arg,done:Yy.done}}FE.type==="throw"&&(Wx=xv,Yy.method="throw",Yy.arg=FE.arg)}}}function qw(m_,ay){var Yy=ay.method,Wx=m_.iterator[Yy];if(Wx===xt)return ay.delegate=null,Yy==="throw"&&m_.iterator.return&&(ay.method="return",ay.arg=xt,qw(m_,ay),ay.method==="throw")||Yy!=="return"&&(ay.method="throw",ay.arg=new TypeError("The iterator does not provide a '"+Yy+"' method")),dy;var e2=L1(Wx,m_.iterator,ay.arg);if(e2.type==="throw")return ay.method="throw",ay.arg=e2.arg,ay.delegate=null,dy;var Nx=e2.arg;return Nx?Nx.done?(ay[m_.resultName]=Nx.value,ay.next=m_.nextLoc,ay.method!=="return"&&(ay.method="next",ay.arg=xt),ay.delegate=null,dy):Nx:(ay.method="throw",ay.arg=new TypeError("iterator result is not an object"),ay.delegate=null,dy)}function z1(m_){var ay={tryLoc:m_[0]};1 in m_&&(ay.catchLoc=m_[1]),2 in m_&&(ay.finallyLoc=m_[2],ay.afterLoc=m_[3]),this.tryEntries.push(ay)}function BS(m_){var ay=m_.completion||{};ay.type="normal",delete ay.arg,m_.completion=ay}function Cw(m_){this.tryEntries=[{tryLoc:"root"}],m_.forEach(z1,this),this.reset(!0)}function pC(m_){if(m_||m_===""){var ay=m_[cu];if(ay)return ay.call(m_);if(typeof m_.next=="function")return m_;if(!isNaN(m_.length)){var Yy=-1,Wx=function e2(){for(;++Yy=0;--e2){var Nx=this.tryEntries[e2],fC=Nx.completion;if(Nx.tryLoc==="root")return Wx("end");if(Nx.tryLoc<=this.prev){var uS=Oa.call(Nx,"catchLoc"),FE=Oa.call(Nx,"finallyLoc");if(uS&&FE){if(this.prev=0;--Wx){var e2=this.tryEntries[Wx];if(e2.tryLoc<=this.prev&&Oa.call(e2,"finallyLoc")&&this.prev=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.finallyLoc===ay)return this.complete(Wx.completion,Wx.afterLoc),BS(Wx),dy}},catch:function(ay){for(var Yy=this.tryEntries.length-1;Yy>=0;--Yy){var Wx=this.tryEntries[Yy];if(Wx.tryLoc===ay){var e2=Wx.completion;if(e2.type==="throw"){var Nx=e2.arg;BS(Wx)}return Nx}}throw new Error("illegal catch attempt")},delegateYield:function(ay,Yy,Wx){return this.delegate={iterator:pC(ay),resultName:Yy,nextLoc:Wx},this.method==="next"&&(this.arg=xt),dy}},Et}function t1(xt){return Fg(xt)||y0(xt)||Jv(xt)||Zg()}function Zg(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y0(xt){if(typeof Symbol!="undefined"&&xt[Symbol.iterator]!=null||xt["@@iterator"]!=null)return Array.from(xt)}function Fg(xt){if(Array.isArray(xt))return m1(xt)}function _0(xt,Et){var jn=Object.keys(xt);if(Object.getOwnPropertySymbols){var Oa=Object.getOwnPropertySymbols(xt);Et&&(Oa=Oa.filter(function(Rg){return Object.getOwnPropertyDescriptor(xt,Rg).enumerable})),jn.push.apply(jn,Oa)}return jn}function Ou(xt){for(var Et=1;Etxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn2&&arguments[2]!==void 0?arguments[2]:5,Rg=[Et],oh=u_()(Et).object(),cu=u_()(jn).object();if(Oa<2)return Oa<1?[]:Rg;var m0={r:(oh.r-cu.r)/(Oa-1),g:(oh.g-cu.g)/(Oa-1),b:(oh.b-cu.b)/(Oa-1)};return(0,U_.Z)(new Array(Oa-2),function(Hv,_1){return Rg.push(u_()({r:(0,hx.Z)(oh.r-m0.r*(_1+1),0),g:(0,hx.Z)(oh.g-m0.g*(_1+1),0),b:(0,hx.Z)(oh.b-m0.b*(_1+1),0)}).hex())}),Rg.push(jn),Rg};function p_(xt){"@babel/helpers - typeof";return p_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},p_(xt)}function G_(xt,Et,jn){return Et=Ry(Et),Et in xt?Object.defineProperty(xt,Et,{value:jn,enumerable:!0,configurable:!0,writable:!0}):xt[Et]=jn,xt}function Ry(xt){var Et=Uv(xt,"string");return p_(Et)==="symbol"?Et:String(Et)}function Uv(xt,Et){if(p_(xt)!=="object"||xt===null)return xt;var jn=xt[Symbol.toPrimitive];if(jn!==void 0){var Oa=jn.call(xt,Et||"default");if(p_(Oa)!=="object")return Oa;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Et==="string"?String:Number)(xt)}var hy="larkmap-legend-category";function x1(xt){var Et=xt.labels,jn=xt.colors,Oa=xt.geometryType,Rg=Oa===void 0?"circle":Oa,oh=xt.isStrokeColor,cu=xt.style,m0=xt.className;function Hv(L1){return oh?{border:"2px solid ".concat(L1)}:{background:L1}}function _1(L1){return D.createElement("div",{className:a()(hy,m0),style:cu},Et.map(function(uy,D1){return D.createElement("div",{className:"".concat(hy,"__content"),key:uy},D.createElement("div",{className:a()("".concat(hy,"__content__shape"),G_({},"".concat(hy,"__content__").concat(Rg),Rg)),style:Hv(L1[D1])}),D.createElement("div",{className:"".concat(hy,"labels")},uy))}))}function kv(){if(Array.isArray(jn))return _1(jn);var L1=Oy(jn.startColor,jn.endColor,Et.length);return _1(L1)}return D.createElement(kv,null)}x1.defaultProps={geometryType:"circle",isStrokeColor:!1};var by=l(26437),Ly="larkmap-legend-ramp",y_=function(Et){var jn=Et[Et.length-1],Oa=Et[0];return Number.isFinite(Oa)||(Oa=parseInt(Oa,10)),Number.isFinite(jn)||(jn=parseInt(jn,10)),[Oa,jn]};function jy(xt){var Et=xt.labels,jn=xt.labelUnit,Oa=jn===void 0?"":jn,Rg=xt.colors,oh=Et[0]+Oa,cu=Et[Et.length-1]+Oa;return D.createElement(D.Fragment,null,D.createElement("div",{className:"".concat(Ly,"__continuous"),style:{background:"linear-gradient(to right,".concat(Rg,")")}}),D.createElement("div",{className:"".concat(Ly,"__continuous-labelbar")},D.createElement("span",null,oh),D.createElement("span",null,cu)))}function P0(xt){var Et=xt.labels,jn=xt.labelUnit,Oa=jn===void 0?"":jn,Rg=xt.colors,oh=(0,D.useRef)(null),cu=(0,by.Z)(oh),m0=(cu==null?void 0:cu.width)/(Rg.length+1),Hv=Et;if(Et.length+1===Rg.length){var _1="< "+Et[0],kv="\u2265 "+Et[Et.length-1];Hv.unshift(_1),Hv.push(kv)}var L1=function(D1){var Ey="".concat(Et[D1]).concat(Oa," - ").concat(Et[D1+1]).concat(Oa);return Ey};return D.createElement("div",{className:"".concat(Ly,"__dis-continuous"),ref:oh},Number.isNaN(m0)?null:D.createElement(D.Fragment,null,D.createElement("div",{className:"".concat(Ly,"__dis-continuous__colors"),style:{paddingLeft:m0/2}},Rg==null?void 0:Rg.map(function(uy,D1){return D.createElement("div",{key:uy,title:L1(D1),className:"".concat(Ly,"__dis-continuous__color"),style:{background:uy,width:m0}})})),D.createElement("div",{className:"".concat(Ly,"__dis-continuous__labels")},Et==null?void 0:Et.map(function(uy){var D1=uy+Oa;return D.createElement("span",{key:uy,className:"".concat(Ly,"__dis-continuous__label")},D1)}))))}function A1(xt){var Et=xt.isContinuous,jn=xt.labels,Oa=xt.colors,Rg=xt.labelUnit,oh=xt.className,cu=xt.style;return D.createElement("div",{className:a()("".concat(Ly),oh),style:cu},Et?D.createElement(jy,{labels:jn,labelUnit:Rg,colors:Oa}):D.createElement(P0,{labels:jn,labelUnit:Rg,colors:Oa}))}A1.defaultProps={isContinuous:!1,labelUnit:""};var ry=l(29075),Wy={point:ry.DrawPoint,line:ry.DrawLine,polygon:ry.DrawPolygon,rect:ry.DrawRect,circle:ry.DrawCircle};function ix(xt){"@babel/helpers - typeof";return ix=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},ix(xt)}function jx(xt,Et){var jn=Object.keys(xt);if(Object.getOwnPropertySymbols){var Oa=Object.getOwnPropertySymbols(xt);Et&&(Oa=Oa.filter(function(Rg){return Object.getOwnPropertyDescriptor(xt,Rg).enumerable})),jn.push.apply(jn,Oa)}return jn}function n_(xt){for(var Et=1;Etxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jnxt.length)&&(Et=xt.length);for(var jn=0,Oa=new Array(Et);jn=No&&++r0;else{let No=-1;for(let qt of xd)(qt=Yg(qt,++No,xd))!=null&&(qt=+qt)>=qt&&++r0}return r0}function S(xd){return Math.max(1,Math.ceil(Math.log(a(xd))/Math.LN2)+1)}function I(xd,Yg){let r0,No;if(Yg===void 0)for(const qt of xd)qt!=null&&(r0===void 0?qt>=qt&&(r0=No=qt):(r0>qt&&(r0=qt),No=Sr&&(r0=No=Sr):(r0>Sr&&(r0=Sr),No=N?10:Sr>=ie?5:Sr>=ze?2:1;let Rs,wa,bu;return qt<0?(bu=Math.pow(10,-qt)/si,Rs=Math.round(xd*bu),wa=Math.round(Yg*bu),Rs/buYg&&--wa,bu=-bu):(bu=Math.pow(10,qt)*si,Rs=Math.round(xd/bu),wa=Math.round(Yg/bu),Rs*buYg&&--wa),wa0))return[];if(xd===Yg)return[xd];const No=Yg=qt))return[];const Rs=Sr-qt+1,wa=new Array(Rs);if(No)if(si<0)for(let bu=0;bu0?(xd=Math.floor(xd/qt)*qt,Yg=Math.ceil(Yg/qt)*qt):qt<0&&(xd=Math.ceil(xd*qt)/qt,Yg=Math.floor(Yg*qt)/qt),No=qt}}var Ot=Array.prototype,wn=Ot.slice;function Hs(xd,Yg){return xd-Yg}function jr(xd){for(var Yg=0,r0=xd.length,No=xd[r0-1][1]*xd[0][0]-xd[r0-1][0]*xd[0][1];++Yg()=>xd;function Yn(xd,Yg){for(var r0=-1,No=Yg.length,qt;++r0No!=Ga>No&&r0<(ga-bu)*(No-s0)/(Ga-s0)+bu&&(qt=-qt)}return qt}function _n(xd,Yg,r0){var No;return Mt(xd,Yg,r0)&&Bt(xd[No=+(xd[0]===Yg[0])],r0[No],Yg[No])}function Mt(xd,Yg,r0){return(Yg[0]-xd[0])*(r0[1]-xd[1])===(r0[0]-xd[0])*(Yg[1]-xd[1])}function Bt(xd,Yg,r0){return xd<=Yg&&Yg<=r0||r0<=Yg&&Yg<=xd}function Rt(){}var on=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Hr(){var xd=1,Yg=1,r0=S,No=wa;function qt(bu){var s0=r0(bu);if(Array.isArray(s0))s0=s0.slice().sort(Hs);else{const In=I(bu,vn);for(s0=ct(...It(In[0],In[1],s0),s0);s0[s0.length-1]>=In[1];)s0.pop();for(;s0[1]Sr(bu,In))}function Sr(bu,s0){const In=s0==null?NaN:+s0;if(isNaN(In))throw new Error(`invalid value: ${s0}`);var ga=[],Ga=[];return si(bu,In,function(Lu){No(Lu,bu,In),jr(Lu)>0?ga.push([Lu]):Ga.push(Lu)}),Ga.forEach(function(Lu){for(var dv=0,Cv=ga.length,Wv;dv=s0,on[c1<<2].forEach(Z1);++Lu0&&Ga0&&Lu=0&&In>=0))throw new Error("invalid size");return xd=s0,Yg=In,qt},qt.thresholds=function(bu){return arguments.length?(r0=typeof bu=="function"?bu:Array.isArray(bu)?Jr(wn.call(bu)):Jr(bu),qt):r0},qt.smooth=function(bu){return arguments.length?(No=bu?wa:Rt,qt):No===wa},qt}function vn(xd){return isFinite(xd)?xd:NaN}function Ca(xd,Yg){return xd==null?!1:+xd>=Yg}function ai(xd){return xd==null||isNaN(xd=+xd)?-1/0:xd}function gt(xd,Yg,r0,No){const qt=No-Yg,Sr=r0-Yg,si=isFinite(qt)||isFinite(Sr)?qt/Sr:Math.sign(qt)/Math.sign(Sr);return isNaN(si)?xd:xd+si-.5}var Zr=l(91482),Ht=l.n(Zr);function Zs(xd,Yg){return Ug(xd)||Pg(xd,Yg)||Pa(xd,Yg)||oi()}function oi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(xd,Yg){if(xd){if(typeof xd=="string")return Aa(xd,Yg);var r0=Object.prototype.toString.call(xd).slice(8,-1);if(r0==="Object"&&xd.constructor&&(r0=xd.constructor.name),r0==="Map"||r0==="Set")return Array.from(xd);if(r0==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r0))return Aa(xd,Yg)}}function Aa(xd,Yg){(Yg==null||Yg>xd.length)&&(Yg=xd.length);for(var r0=0,No=new Array(Yg);r01&&arguments[1]!==void 0?arguments[1]:"image/png",r0=document.createElement("canvas"),No=r0.getContext("2d");return r0.width=xd.width,r0.height=xd.height,No.drawImage(xd,0,0,xd.width,xd.height),r0.toDataURL(Yg)}function X0(xd){var Yg=e0(xd),r0=new Image;return r0.src=Yg.toDataURL(),r0}function d0(xd,Yg,r0,No){for(var qt=new Uint8ClampedArray(xd.data),Sr=new Uint8ClampedArray(4*r0*No),si=0;si0){var Rs=4*si;Sr[Rs+0]=qt[Rs+0],Sr[Rs+1]=qt[Rs+1],Sr[Rs+2]=Math.max(qt[Rs+2],200),Sr[Rs+3]=qt[Rs+3]}return X0(new ImageData(Sr,r0,No))}function jv(xd,Yg,r0){for(var No=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,qt=Yg,Sr=0,si=r0,Rs=0,wa=0;wa0){var bu=wa%Yg,s0=Math.floor(wa/Yg);qt=Math.min(qt,bu),Sr=Math.max(Sr,bu),si=Math.min(si,s0),Rs=Math.max(Rs,s0)}return[qt-No,Sr+No,si-No,Rs+No]}function Lv(xd,Yg,r0,No,qt,Sr){for(var si=[],Rs=0,wa=Yg;wa0?1:-1}return si}function Je(xd,Yg,r0){var No=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,qt=xd.map(function(si){return{x:si[0]+Yg,y:si[1]+r0}});if(No===0)return qt;var Sr=Ht()(qt,No,!0);return Sr}var k0=function(Yg){return new Promise(function(r0,No){var qt=new FileReader;qt.readAsDataURL(Yg),qt.onload=function(){return r0(qt.result)},qt.onerror=function(Sr){return No(Sr)}})};function G0(xd,Yg,r0){var No=jv(xd,Yg,r0),qt=Zs(No,4),Sr=qt[0],si=qt[1],Rs=qt[2],wa=qt[3],bu=Lv(Sr,Rs,si,wa,xd,Yg),s0=d0(bu,si-Sr,wa-Rs);return X0(s0)}function iv(xd,Yg,r0){var No=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,qt=jv(xd,Yg,r0),Sr=Zs(qt,4),si=Sr[0],Rs=Sr[1],wa=Sr[2],bu=Sr[3],s0=Lv(si,wa,Rs,bu,xd,Yg),In=Rs-si,ga=bu-wa,Ga=Hr().size([In,ga]).smooth(!1).thresholds(2),Lu=Ga(s0);return Je(Lu[1].coordinates[0][0],si,wa,No)}function u0(xd,Yg){for(var r0=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,No=0;No0)&&(xd.data[4*No+0]=0,xd.data[4*No+1]=0,xd.data[4*No+2]=0,xd.data[4*No+3]=0);return X0(xd)}function B1(xd,Yg,r0,No){for(var qt=jv(Yg,r0,No),Sr=Zs(qt,4),si=Sr[0],Rs=Sr[1],wa=Sr[2],bu=Sr[3],s0=new Uint8ClampedArray(4*(Rs-si)*(bu-wa)).fill(0),In=0,ga=wa;ga0&&(s0[In*4]=xd.data[Lu*4],s0[In*4+1]=xd.data[Lu*4+1],s0[In*4+2]=xd.data[Lu*4+2],s0[In*4+3]=xd.data[Lu*4+3]),In++}var dv=new ImageData(s0,Rs-si,bu-wa);return X0(dv)}function Dg(xd){var Yg=document.createElement("a");Yg.href=xd.src,Yg.download="image",Yg.click()}function zo(xd){var Yg=document.createElement("a");Yg.href=xd.toDataURL("image/png"),Yg.download="image",Yg.click()}function mu(xd){var Yg=document.createElement("canvas"),r0=Yg.getContext("2d");return Yg.width=xd.width,Yg.height=xd.height,r0==null||r0.drawImage(xd,0,0),r0==null?void 0:r0.getImageData(0,0,xd.width,xd.height)}var Ag=function(Yg){var r0=1024,No=Yg.naturalWidth,qt=Yg.naturalHeight,Sr=r0/Math.max(qt,No);return{height:qt,width:No,samScale:Sr}},c0=function(Yg,r0){var No=1024,qt=No/Math.max(r0,Yg);return{height:r0,width:Yg,samScale:qt}};function L0(xd){"@babel/helpers - typeof";return L0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Yg){return typeof Yg}:function(Yg){return Yg&&typeof Symbol=="function"&&Yg.constructor===Symbol&&Yg!==Symbol.prototype?"symbol":typeof Yg},L0(xd)}function $0(){"use strict";$0=function(){return xd};var xd={},Yg=Object.prototype,r0=Yg.hasOwnProperty,No=Object.defineProperty||function(h1,_v,Iv){h1[_v]=Iv.value},qt=typeof Symbol=="function"?Symbol:{},Sr=qt.iterator||"@@iterator",si=qt.asyncIterator||"@@asyncIterator",Rs=qt.toStringTag||"@@toStringTag";function wa(h1,_v,Iv){return Object.defineProperty(h1,_v,{value:Iv,enumerable:!0,configurable:!0,writable:!0}),h1[_v]}try{wa({},"")}catch(h1){wa=function(Iv,Ov,v1){return Iv[Ov]=v1}}function bu(h1,_v,Iv,Ov){var v1=_v&&_v.prototype instanceof ga?_v:ga,K1=Object.create(v1.prototype),sx=new Qv(Ov||[]);return No(K1,"_invoke",{value:sy(h1,Iv,sx)}),K1}function s0(h1,_v,Iv){try{return{type:"normal",arg:h1.call(_v,Iv)}}catch(Ov){return{type:"throw",arg:Ov}}}xd.wrap=bu;var In={};function ga(){}function Ga(){}function Lu(){}var dv={};wa(dv,Sr,function(){return this});var Cv=Object.getPrototypeOf,Wv=Cv&&Cv(Cv(Y1([])));Wv&&Wv!==Yg&&r0.call(Wv,Sr)&&(dv=Wv);var c1=Lu.prototype=ga.prototype=Object.create(dv);function P1(h1){["next","throw","return"].forEach(function(_v){wa(h1,_v,function(Iv){return this._invoke(_v,Iv)})})}function Z1(h1,_v){function Iv(v1,K1,sx,Kx){var t2=s0(h1[v1],h1,K1);if(t2.type!=="throw"){var I2=t2.arg,D2=I2.value;return D2&&L0(D2)=="object"&&r0.call(D2,"__await")?_v.resolve(D2.__await).then(function(J_){Iv("next",J_,sx,Kx)},function(J_){Iv("throw",J_,sx,Kx)}):_v.resolve(D2).then(function(J_){I2.value=J_,sx(I2)},function(J_){return Iv("throw",J_,sx,Kx)})}Kx(t2.arg)}var Ov;No(this,"_invoke",{value:function(K1,sx){function Kx(){return new _v(function(t2,I2){Iv(K1,sx,t2,I2)})}return Ov=Ov?Ov.then(Kx,Kx):Kx()}})}function sy(h1,_v,Iv){var Ov="suspendedStart";return function(v1,K1){if(Ov==="executing")throw new Error("Generator is already running");if(Ov==="completed"){if(v1==="throw")throw K1;return M_()}for(Iv.method=v1,Iv.arg=K1;;){var sx=Iv.delegate;if(sx){var Kx=wy(sx,Iv);if(Kx){if(Kx===In)continue;return Kx}}if(Iv.method==="next")Iv.sent=Iv._sent=Iv.arg;else if(Iv.method==="throw"){if(Ov==="suspendedStart")throw Ov="completed",Iv.arg;Iv.dispatchException(Iv.arg)}else Iv.method==="return"&&Iv.abrupt("return",Iv.arg);Ov="executing";var t2=s0(h1,_v,Iv);if(t2.type==="normal"){if(Ov=Iv.done?"completed":"suspendedYield",t2.arg===In)continue;return{value:t2.arg,done:Iv.done}}t2.type==="throw"&&(Ov="completed",Iv.method="throw",Iv.arg=t2.arg)}}}function wy(h1,_v){var Iv=_v.method,Ov=h1.iterator[Iv];if(Ov===void 0)return _v.delegate=null,Iv==="throw"&&h1.iterator.return&&(_v.method="return",_v.arg=void 0,wy(h1,_v),_v.method==="throw")||Iv!=="return"&&(_v.method="throw",_v.arg=new TypeError("The iterator does not provide a '"+Iv+"' method")),In;var v1=s0(Ov,h1.iterator,_v.arg);if(v1.type==="throw")return _v.method="throw",_v.arg=v1.arg,_v.delegate=null,In;var K1=v1.arg;return K1?K1.done?(_v[h1.resultName]=K1.value,_v.next=h1.nextLoc,_v.method!=="return"&&(_v.method="next",_v.arg=void 0),_v.delegate=null,In):K1:(_v.method="throw",_v.arg=new TypeError("iterator result is not an object"),_v.delegate=null,In)}function zy(h1){var _v={tryLoc:h1[0]};1 in h1&&(_v.catchLoc=h1[1]),2 in h1&&(_v.finallyLoc=h1[2],_v.afterLoc=h1[3]),this.tryEntries.push(_v)}function hv(h1){var _v=h1.completion||{};_v.type="normal",delete _v.arg,h1.completion=_v}function Qv(h1){this.tryEntries=[{tryLoc:"root"}],h1.forEach(zy,this),this.reset(!0)}function Y1(h1){if(h1){var _v=h1[Sr];if(_v)return _v.call(h1);if(typeof h1.next=="function")return h1;if(!isNaN(h1.length)){var Iv=-1,Ov=function v1(){for(;++Iv=0;--v1){var K1=this.tryEntries[v1],sx=K1.completion;if(K1.tryLoc==="root")return Ov("end");if(K1.tryLoc<=this.prev){var Kx=r0.call(K1,"catchLoc"),t2=r0.call(K1,"finallyLoc");if(Kx&&t2){if(this.prev=0;--Ov){var v1=this.tryEntries[Ov];if(v1.tryLoc<=this.prev&&r0.call(v1,"finallyLoc")&&this.prev=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.finallyLoc===_v)return this.complete(Ov.completion,Ov.afterLoc),hv(Ov),In}},catch:function(_v){for(var Iv=this.tryEntries.length-1;Iv>=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.tryLoc===_v){var v1=Ov.completion;if(v1.type==="throw"){var K1=v1.arg;hv(Ov)}return K1}}throw new Error("illegal catch attempt")},delegateYield:function(_v,Iv,Ov){return this.delegate={iterator:Y1(_v),resultName:Iv,nextLoc:Ov},this.method==="next"&&(this.arg=void 0),In}},xd}function cv(xd,Yg,r0,No,qt,Sr,si){try{var Rs=xd[Sr](si),wa=Rs.value}catch(bu){r0(bu);return}Rs.done?Yg(wa):Promise.resolve(wa).then(No,qt)}function Gg(xd){return function(){var Yg=this,r0=arguments;return new Promise(function(No,qt){var Sr=xd.apply(Yg,r0);function si(wa){cv(Sr,No,qt,si,Rs,"next",wa)}function Rs(wa){cv(Sr,No,qt,si,Rs,"throw",wa)}si(void 0)})}}function uu(xd,Yg){if(!(xd instanceof Yg))throw new TypeError("Cannot call a class as a function")}function Gs(xd,Yg){for(var r0=0;r01&&bu[1]!==void 0?bu[1]:"float32",si=new w,typeof qt!="string"){In.next=6;break}In.t0=si.load(qt),In.next=9;break;case 6:return In.next=8,si.parse(qt);case 8:In.t0=In.sent;case 9:Rs=In.t0,wa=new fr.Tensor(Sr,Rs.data,Rs.shape),this.tensor=wa;case 12:case"end":return In.stop()}},No,this)}));function r0(No){return Yg.apply(this,arguments)}return r0}()},{key:"predict",value:function(){var Yg=Gg($0().mark(function No(qt){var Sr,si,Rs;return $0().wrap(function(bu){for(;;)switch(bu.prev=bu.next){case 0:if(bu.prev=0,!(this.model===null||qt===null||this.tensor===null||this.modelScale===null)){bu.next=6;break}return console.log("model not loaded"),bu.abrupt("return");case 6:if(Sr=b({clicks:qt,tensor:this.tensor,modelScale:this.modelScale}),Sr!==void 0){bu.next=9;break}return bu.abrupt("return");case 9:return bu.next=11,this.model.run(Sr);case 11:return si=bu.sent,Rs=si[this.model.outputNames[0]],bu.abrupt("return",Rs);case 14:bu.next=20;break;case 16:return bu.prev=16,bu.t0=bu.catch(0),console.log(bu.t0),bu.abrupt("return");case 20:case"end":return bu.stop()}},No,this,[[0,16]])}));function r0(No){return Yg.apply(this,arguments)}return r0}()},{key:"predictByBox",value:function(){var Yg=Gg($0().mark(function No(qt){return $0().wrap(function(si){for(;;)switch(si.prev=si.next){case 0:return si.abrupt("return",qt);case 1:case"end":return si.stop()}},No)}));function r0(No){return Yg.apply(this,arguments)}return r0}()},{key:"exportMaskImage",value:function(r0){if(this.imageData!==void 0)return d0(this.imageData,r0.data,r0.dims[3],r0.dims[2])}},{key:"exportMaskClip",value:function(r0){return G0(r0.data,r0.dims[3],r0.dims[2])}},{key:"exportImage",value:function(r0){var No=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return u0(this.imageData,r0.data,No)}},{key:"exportImageClip",value:function(r0){if(this.imageData!==void 0)return B1(this.imageData,r0.data,r0.dims[3],r0.dims[2])}},{key:"exportVector",value:function(r0){var No=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return iv(r0.data,r0.dims[3],r0.dims[2],No)}},{key:"setWasmUrl",value:function(r0){D.OB.wasm.wasmPaths=r0}},{key:"getImageScale",value:function(r0){var No=r0.width,qt=r0.height;this.modelScale=c0(No,qt)}}]),xd}();function Ra(xd){"@babel/helpers - typeof";return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Yg){return typeof Yg}:function(Yg){return Yg&&typeof Symbol=="function"&&Yg.constructor===Symbol&&Yg!==Symbol.prototype?"symbol":typeof Yg},Ra(xd)}function Sg(xd,Yg){return qr(xd)||Mo(xd,Yg)||j0(xd,Yg)||Jg()}function Jg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j0(xd,Yg){if(xd){if(typeof xd=="string")return Wo(xd,Yg);var r0=Object.prototype.toString.call(xd).slice(8,-1);if(r0==="Object"&&xd.constructor&&(r0=xd.constructor.name),r0==="Map"||r0==="Set")return Array.from(xd);if(r0==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r0))return Wo(xd,Yg)}}function Wo(xd,Yg){(Yg==null||Yg>xd.length)&&(Yg=xd.length);for(var r0=0,No=new Array(Yg);r00&&arguments[0]!==void 0?arguments[0]:256,r0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";On(this,xd),ya(this,"tileSize",void 0),ya(this,"type",void 0),ya(this,"initialResolution",void 0),ya(this,"originShift",void 0),this.tileSize=Yg,this.type=r0,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return ui(xd,[{key:"lngLatToMeters",value:function(r0,No){var qt=r0*this.originShift/180,Sr=Math.log(Math.tan((90+No)*Math.PI/360))/(Math.PI/180);return Sr=Sr*this.originShift/180,[qt,Sr]}},{key:"metersToLngLat",value:function(r0,No){var qt=r0/this.originShift*180,Sr=No/this.originShift*180;return Sr=180/Math.PI*(2*Math.atan(Math.exp(Sr*Math.PI/180))-Math.PI/2),[qt,Sr]}},{key:"pixelsToMeters",value:function(r0,No,qt){var Sr=this.resolution(qt),si=r0*Sr-this.originShift,Rs=(this.type==="tms"?No:Math.pow(2,qt)*256-No)*Sr-this.originShift;return[si,Rs]}},{key:"metersToPixels",value:function(r0,No,qt){var Sr=this.resolution(qt),si=(r0+this.originShift)/Sr,Rs=(No+this.originShift)/Sr;return Rs=this.type==="tms"?Rs:Math.pow(2,qt)*256-Rs,[si,Rs]}},{key:"metersToTile",value:function(r0,No,qt){var Sr=this.metersToPixels(r0,No,qt),si=Sg(Sr,2),Rs=si[0],wa=si[1];return this.pixelsToTile(Rs,wa)}},{key:"tileToMeters",value:function(r0,No,qt){return this.pixelsToMeters(r0*this.tileSize,No*this.tileSize,qt)}},{key:"tileToLngLat",value:function(r0,No,qt){var Sr=this.tileToMeters(r0,No,qt),si=Sg(Sr,2),Rs=si[0],wa=si[1];return this.metersToLngLat(Rs,wa)}},{key:"pixelsToTile",value:function(r0,No){var qt=Math.floor(Math.ceil(r0/this.tileSize)-1),Sr=Math.floor(Math.ceil(No/this.tileSize)-1);return[qt,Sr]}},{key:"pixelsToRaster",value:function(r0,No,qt){var Sr=this.tileSize<xd.length)&&(Yg=xd.length);for(var r0=0,No=new Array(Yg);r0=0;--v1){var K1=this.tryEntries[v1],sx=K1.completion;if(K1.tryLoc==="root")return Ov("end");if(K1.tryLoc<=this.prev){var Kx=r0.call(K1,"catchLoc"),t2=r0.call(K1,"finallyLoc");if(Kx&&t2){if(this.prev=0;--Ov){var v1=this.tryEntries[Ov];if(v1.tryLoc<=this.prev&&r0.call(v1,"finallyLoc")&&this.prev=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.finallyLoc===_v)return this.complete(Ov.completion,Ov.afterLoc),hv(Ov),In}},catch:function(_v){for(var Iv=this.tryEntries.length-1;Iv>=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.tryLoc===_v){var v1=Ov.completion;if(v1.type==="throw"){var K1=v1.arg;hv(Ov)}return K1}}throw new Error("illegal catch attempt")},delegateYield:function(_v,Iv,Ov){return this.delegate={iterator:Y1(_v),resultName:Iv,nextLoc:Ov},this.method==="next"&&(this.arg=void 0),In}},xd}function Bd(xd,Yg,r0,No,qt,Sr,si){try{var Rs=xd[Sr](si),wa=Rs.value}catch(bu){r0(bu);return}Rs.done?Yg(wa):Promise.resolve(wa).then(No,qt)}function Bg(xd){return function(){var Yg=this,r0=arguments;return new Promise(function(No,qt){var Sr=xd.apply(Yg,r0);function si(wa){Bd(Sr,No,qt,si,Rs,"next",wa)}function Rs(wa){Bd(Sr,No,qt,si,Rs,"throw",wa)}si(void 0)})}}var Og=null,g0=function(Yg){var r0=Td(Yg,4),No=r0[0],qt=r0[1],Sr=r0[2],si=r0[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[No,qt],[No,si],[Sr,si],[Sr,qt],[No,qt]]]}}]}},qg=function(Yg){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[Yg]}}]}},Xg=function(){return{type:"FeatureCollection",features:[]}};function A0(xd){"@babel/helpers - typeof";return A0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Yg){return typeof Yg}:function(Yg){return Yg&&typeof Symbol=="function"&&Yg.constructor===Symbol&&Yg!==Symbol.prototype?"symbol":typeof Yg},A0(xd)}function nv(xd,Yg){return u1(xd)||n0(xd,Yg)||Gd(xd,Yg)||t0()}function t0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n0(xd,Yg){var r0=xd==null?null:typeof Symbol!="undefined"&&xd[Symbol.iterator]||xd["@@iterator"];if(r0!=null){var No,qt,Sr,si,Rs=[],wa=!0,bu=!1;try{if(Sr=(r0=r0.call(xd)).next,Yg===0){if(Object(r0)!==r0)return;wa=!1}else for(;!(wa=(No=Sr.call(r0)).done)&&(Rs.push(No.value),Rs.length!==Yg);wa=!0);}catch(s0){bu=!0,qt=s0}finally{try{if(!wa&&r0.return!=null&&(si=r0.return(),Object(si)!==si))return}finally{if(bu)throw qt}}return Rs}}function u1(xd){if(Array.isArray(xd))return xd}function Eg(){"use strict";Eg=function(){return xd};var xd={},Yg=Object.prototype,r0=Yg.hasOwnProperty,No=Object.defineProperty||function(h1,_v,Iv){h1[_v]=Iv.value},qt=typeof Symbol=="function"?Symbol:{},Sr=qt.iterator||"@@iterator",si=qt.asyncIterator||"@@asyncIterator",Rs=qt.toStringTag||"@@toStringTag";function wa(h1,_v,Iv){return Object.defineProperty(h1,_v,{value:Iv,enumerable:!0,configurable:!0,writable:!0}),h1[_v]}try{wa({},"")}catch(h1){wa=function(Iv,Ov,v1){return Iv[Ov]=v1}}function bu(h1,_v,Iv,Ov){var v1=_v&&_v.prototype instanceof ga?_v:ga,K1=Object.create(v1.prototype),sx=new Qv(Ov||[]);return No(K1,"_invoke",{value:sy(h1,Iv,sx)}),K1}function s0(h1,_v,Iv){try{return{type:"normal",arg:h1.call(_v,Iv)}}catch(Ov){return{type:"throw",arg:Ov}}}xd.wrap=bu;var In={};function ga(){}function Ga(){}function Lu(){}var dv={};wa(dv,Sr,function(){return this});var Cv=Object.getPrototypeOf,Wv=Cv&&Cv(Cv(Y1([])));Wv&&Wv!==Yg&&r0.call(Wv,Sr)&&(dv=Wv);var c1=Lu.prototype=ga.prototype=Object.create(dv);function P1(h1){["next","throw","return"].forEach(function(_v){wa(h1,_v,function(Iv){return this._invoke(_v,Iv)})})}function Z1(h1,_v){function Iv(v1,K1,sx,Kx){var t2=s0(h1[v1],h1,K1);if(t2.type!=="throw"){var I2=t2.arg,D2=I2.value;return D2&&A0(D2)=="object"&&r0.call(D2,"__await")?_v.resolve(D2.__await).then(function(J_){Iv("next",J_,sx,Kx)},function(J_){Iv("throw",J_,sx,Kx)}):_v.resolve(D2).then(function(J_){I2.value=J_,sx(I2)},function(J_){return Iv("throw",J_,sx,Kx)})}Kx(t2.arg)}var Ov;No(this,"_invoke",{value:function(K1,sx){function Kx(){return new _v(function(t2,I2){Iv(K1,sx,t2,I2)})}return Ov=Ov?Ov.then(Kx,Kx):Kx()}})}function sy(h1,_v,Iv){var Ov="suspendedStart";return function(v1,K1){if(Ov==="executing")throw new Error("Generator is already running");if(Ov==="completed"){if(v1==="throw")throw K1;return M_()}for(Iv.method=v1,Iv.arg=K1;;){var sx=Iv.delegate;if(sx){var Kx=wy(sx,Iv);if(Kx){if(Kx===In)continue;return Kx}}if(Iv.method==="next")Iv.sent=Iv._sent=Iv.arg;else if(Iv.method==="throw"){if(Ov==="suspendedStart")throw Ov="completed",Iv.arg;Iv.dispatchException(Iv.arg)}else Iv.method==="return"&&Iv.abrupt("return",Iv.arg);Ov="executing";var t2=s0(h1,_v,Iv);if(t2.type==="normal"){if(Ov=Iv.done?"completed":"suspendedYield",t2.arg===In)continue;return{value:t2.arg,done:Iv.done}}t2.type==="throw"&&(Ov="completed",Iv.method="throw",Iv.arg=t2.arg)}}}function wy(h1,_v){var Iv=_v.method,Ov=h1.iterator[Iv];if(Ov===void 0)return _v.delegate=null,Iv==="throw"&&h1.iterator.return&&(_v.method="return",_v.arg=void 0,wy(h1,_v),_v.method==="throw")||Iv!=="return"&&(_v.method="throw",_v.arg=new TypeError("The iterator does not provide a '"+Iv+"' method")),In;var v1=s0(Ov,h1.iterator,_v.arg);if(v1.type==="throw")return _v.method="throw",_v.arg=v1.arg,_v.delegate=null,In;var K1=v1.arg;return K1?K1.done?(_v[h1.resultName]=K1.value,_v.next=h1.nextLoc,_v.method!=="return"&&(_v.method="next",_v.arg=void 0),_v.delegate=null,In):K1:(_v.method="throw",_v.arg=new TypeError("iterator result is not an object"),_v.delegate=null,In)}function zy(h1){var _v={tryLoc:h1[0]};1 in h1&&(_v.catchLoc=h1[1]),2 in h1&&(_v.finallyLoc=h1[2],_v.afterLoc=h1[3]),this.tryEntries.push(_v)}function hv(h1){var _v=h1.completion||{};_v.type="normal",delete _v.arg,h1.completion=_v}function Qv(h1){this.tryEntries=[{tryLoc:"root"}],h1.forEach(zy,this),this.reset(!0)}function Y1(h1){if(h1){var _v=h1[Sr];if(_v)return _v.call(h1);if(typeof h1.next=="function")return h1;if(!isNaN(h1.length)){var Iv=-1,Ov=function v1(){for(;++Iv=0;--v1){var K1=this.tryEntries[v1],sx=K1.completion;if(K1.tryLoc==="root")return Ov("end");if(K1.tryLoc<=this.prev){var Kx=r0.call(K1,"catchLoc"),t2=r0.call(K1,"finallyLoc");if(Kx&&t2){if(this.prev=0;--Ov){var v1=this.tryEntries[Ov];if(v1.tryLoc<=this.prev&&r0.call(v1,"finallyLoc")&&this.prev=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.finallyLoc===_v)return this.complete(Ov.completion,Ov.afterLoc),hv(Ov),In}},catch:function(_v){for(var Iv=this.tryEntries.length-1;Iv>=0;--Iv){var Ov=this.tryEntries[Iv];if(Ov.tryLoc===_v){var v1=Ov.completion;if(v1.type==="throw"){var K1=v1.arg;hv(Ov)}return K1}}throw new Error("illegal catch attempt")},delegateYield:function(_v,Iv,Ov){return this.delegate={iterator:Y1(_v),resultName:Iv,nextLoc:Ov},this.method==="next"&&(this.arg=void 0),In}},xd}function a1(xd){return lv(xd)||h0(xd)||Gd(xd)||Hg()}function Hg(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gd(xd,Yg){if(xd){if(typeof xd=="string")return su(xd,Yg);var r0=Object.prototype.toString.call(xd).slice(8,-1);if(r0==="Object"&&xd.constructor&&(r0=xd.constructor.name),r0==="Map"||r0==="Set")return Array.from(xd);if(r0==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r0))return su(xd,Yg)}}function h0(xd){if(typeof Symbol!="undefined"&&xd[Symbol.iterator]!=null||xd["@@iterator"]!=null)return Array.from(xd)}function lv(xd){if(Array.isArray(xd))return su(xd)}function su(xd,Yg){(Yg==null||Yg>xd.length)&&(Yg=xd.length);for(var r0=0,No=new Array(Yg);r01&&Ga[1]!==void 0?Ga[1]:5,dv.next=3,this.exportVector(si,wa);case 3:return bu=dv.sent,s0=this.imageBounds,In=bu.map(function(Cv){var Wv=[Cv.x*Rs.metersPerpixelsX+s0[0],(Rs.imageOption.height-Cv.y)*Rs.metersPerpixelsY+s0[1]],c1=Rs.mapHelper.metersToLngLat(Wv[0],Wv[1]);return c1}),ga=qg(In),dv.abrupt("return",ga);case 8:case"end":return dv.stop()}},Sr,this)}));function qt(Sr){return No.apply(this,arguments)}return qt}()},{key:"lngLat2ImagePixel",value:function(qt){if(this.imageBounds){var Sr=this.mapHelper.lngLatToMeters(qt[0],qt[1]),si=nv(Sr,2),Rs=si[0],wa=si[1],bu=(Rs-this.imageBounds[0])/this.metersPerpixelsX,s0=(wa-this.imageBounds[1])/this.metersPerpixelsY;return s0=this.imageOption.height-s0,[bu,s0]}}}]),r0}(ri)},12722:function(c,g,l){"use strict";l.d(g,{T6:function(){return ze},VD:function(){return Ie},WE:function(){return a},Yt:function(){return ct},lC:function(){return b},py:function(){return w},rW:function(){return D},s:function(){return I},ve:function(){return y},vq:function(){return S}});var u=l(12187);function D(At,rt,It){return{r:(0,u.sh)(At,255)*255,g:(0,u.sh)(rt,255)*255,b:(0,u.sh)(It,255)*255}}function b(At,rt,It){At=(0,u.sh)(At,255),rt=(0,u.sh)(rt,255),It=(0,u.sh)(It,255);var Ot=Math.max(At,rt,It),wn=Math.min(At,rt,It),Hs=0,jr=0,Jr=(Ot+wn)/2;if(Ot===wn)jr=0,Hs=0;else{var Yn=Ot-wn;switch(jr=Jr>.5?Yn/(2-Ot-wn):Yn/(Ot+wn),Ot){case At:Hs=(rt-It)/Yn+(rt1&&(It-=1),It<1/6?At+(rt-At)*(6*It):It<1/2?rt:It<2/3?At+(rt-At)*(2/3-It)*6:At}function y(At,rt,It){var Ot,wn,Hs;if(At=(0,u.sh)(At,360),rt=(0,u.sh)(rt,100),It=(0,u.sh)(It,100),rt===0)wn=It,Hs=It,Ot=It;else{var jr=It<.5?It*(1+rt):It+rt-It*rt,Jr=2*It-jr;Ot=x(Jr,jr,At+1/3),wn=x(Jr,jr,At),Hs=x(Jr,jr,At-1/3)}return{r:Ot*255,g:wn*255,b:Hs*255}}function w(At,rt,It){At=(0,u.sh)(At,255),rt=(0,u.sh)(rt,255),It=(0,u.sh)(It,255);var Ot=Math.max(At,rt,It),wn=Math.min(At,rt,It),Hs=0,jr=Ot,Jr=Ot-wn,Yn=Ot===0?0:Jr/Ot;if(Ot===wn)Hs=0;else{switch(Ot){case At:Hs=(rt-It)/Jr+(rt>16,g:(At&65280)>>8,b:At&255}}},93796:function(c,g,l){"use strict";l.d(g,{R:function(){return u}});var u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},9915:function(c,g,l){"use strict";l.d(g,{uA:function(){return x}});var u=l(12722),D=l(93796),b=l(12187);function x(Ie){var ct={r:0,g:0,b:0},At=1,rt=null,It=null,Ot=null,wn=!1,Hs=!1;return typeof Ie=="string"&&(Ie=ie(Ie)),typeof Ie=="object"&&(ze(Ie.r)&&ze(Ie.g)&&ze(Ie.b)?(ct=(0,u.rW)(Ie.r,Ie.g,Ie.b),wn=!0,Hs=String(Ie.r).substr(-1)==="%"?"prgb":"rgb"):ze(Ie.h)&&ze(Ie.s)&&ze(Ie.v)?(rt=(0,b.JX)(Ie.s),It=(0,b.JX)(Ie.v),ct=(0,u.WE)(Ie.h,rt,It),wn=!0,Hs="hsv"):ze(Ie.h)&&ze(Ie.s)&&ze(Ie.l)&&(rt=(0,b.JX)(Ie.s),Ot=(0,b.JX)(Ie.l),ct=(0,u.ve)(Ie.h,rt,Ot),wn=!0,Hs="hsl"),Object.prototype.hasOwnProperty.call(Ie,"a")&&(At=Ie.a)),At=(0,b.Yq)(At),{ok:wn,format:Ie.format||Hs,r:Math.min(255,Math.max(ct.r,0)),g:Math.min(255,Math.max(ct.g,0)),b:Math.min(255,Math.max(ct.b,0)),a:At}}var y="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",a="(?:".concat(w,")|(?:").concat(y,")"),S="[\\s|\\(]+(".concat(a,")[,|\\s]+(").concat(a,")[,|\\s]+(").concat(a,")\\s*\\)?"),I="[\\s|\\(]+(".concat(a,")[,|\\s]+(").concat(a,")[,|\\s]+(").concat(a,")[,|\\s]+(").concat(a,")\\s*\\)?"),N={CSS_UNIT:new RegExp(a),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ie(Ie){if(Ie=Ie.trim().toLowerCase(),Ie.length===0)return!1;var ct=!1;if(D.R[Ie])Ie=D.R[Ie],ct=!0;else if(Ie==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var At=N.rgb.exec(Ie);return At?{r:At[1],g:At[2],b:At[3]}:(At=N.rgba.exec(Ie),At?{r:At[1],g:At[2],b:At[3],a:At[4]}:(At=N.hsl.exec(Ie),At?{h:At[1],s:At[2],l:At[3]}:(At=N.hsla.exec(Ie),At?{h:At[1],s:At[2],l:At[3],a:At[4]}:(At=N.hsv.exec(Ie),At?{h:At[1],s:At[2],v:At[3]}:(At=N.hsva.exec(Ie),At?{h:At[1],s:At[2],v:At[3],a:At[4]}:(At=N.hex8.exec(Ie),At?{r:(0,u.VD)(At[1]),g:(0,u.VD)(At[2]),b:(0,u.VD)(At[3]),a:(0,u.T6)(At[4]),format:ct?"name":"hex8"}:(At=N.hex6.exec(Ie),At?{r:(0,u.VD)(At[1]),g:(0,u.VD)(At[2]),b:(0,u.VD)(At[3]),format:ct?"name":"hex"}:(At=N.hex4.exec(Ie),At?{r:(0,u.VD)(At[1]+At[1]),g:(0,u.VD)(At[2]+At[2]),b:(0,u.VD)(At[3]+At[3]),a:(0,u.T6)(At[4]+At[4]),format:ct?"name":"hex8"}:(At=N.hex3.exec(Ie),At?{r:(0,u.VD)(At[1]+At[1]),g:(0,u.VD)(At[2]+At[2]),b:(0,u.VD)(At[3]+At[3]),format:ct?"name":"hex"}:!1)))))))))}function ze(Ie){return!!N.CSS_UNIT.exec(String(Ie))}},64993:function(c,g,l){"use strict";l.d(g,{C:function(){return y}});var u=l(12722),D=l(93796),b=l(9915),x=l(12187),y=function(){function a(S,I){S===void 0&&(S=""),I===void 0&&(I={});var N;if(S instanceof a)return S;typeof S=="number"&&(S=(0,u.Yt)(S)),this.originalInput=S;var ie=(0,b.uA)(S);this.originalInput=S,this.r=ie.r,this.g=ie.g,this.b=ie.b,this.a=ie.a,this.roundA=Math.round(100*this.a)/100,this.format=(N=I.format)!==null&&N!==void 0?N:ie.format,this.gradientType=I.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=ie.ok}return a.prototype.isDark=function(){return this.getBrightness()<128},a.prototype.isLight=function(){return!this.isDark()},a.prototype.getBrightness=function(){var S=this.toRgb();return(S.r*299+S.g*587+S.b*114)/1e3},a.prototype.getLuminance=function(){var S=this.toRgb(),I,N,ie,ze=S.r/255,Ie=S.g/255,ct=S.b/255;return ze<=.03928?I=ze/12.92:I=Math.pow((ze+.055)/1.055,2.4),Ie<=.03928?N=Ie/12.92:N=Math.pow((Ie+.055)/1.055,2.4),ct<=.03928?ie=ct/12.92:ie=Math.pow((ct+.055)/1.055,2.4),.2126*I+.7152*N+.0722*ie},a.prototype.getAlpha=function(){return this.a},a.prototype.setAlpha=function(S){return this.a=(0,x.Yq)(S),this.roundA=Math.round(100*this.a)/100,this},a.prototype.isMonochrome=function(){var S=this.toHsl().s;return S===0},a.prototype.toHsv=function(){var S=(0,u.py)(this.r,this.g,this.b);return{h:S.h*360,s:S.s,v:S.v,a:this.a}},a.prototype.toHsvString=function(){var S=(0,u.py)(this.r,this.g,this.b),I=Math.round(S.h*360),N=Math.round(S.s*100),ie=Math.round(S.v*100);return this.a===1?"hsv(".concat(I,", ").concat(N,"%, ").concat(ie,"%)"):"hsva(".concat(I,", ").concat(N,"%, ").concat(ie,"%, ").concat(this.roundA,")")},a.prototype.toHsl=function(){var S=(0,u.lC)(this.r,this.g,this.b);return{h:S.h*360,s:S.s,l:S.l,a:this.a}},a.prototype.toHslString=function(){var S=(0,u.lC)(this.r,this.g,this.b),I=Math.round(S.h*360),N=Math.round(S.s*100),ie=Math.round(S.l*100);return this.a===1?"hsl(".concat(I,", ").concat(N,"%, ").concat(ie,"%)"):"hsla(".concat(I,", ").concat(N,"%, ").concat(ie,"%, ").concat(this.roundA,")")},a.prototype.toHex=function(S){return S===void 0&&(S=!1),(0,u.vq)(this.r,this.g,this.b,S)},a.prototype.toHexString=function(S){return S===void 0&&(S=!1),"#"+this.toHex(S)},a.prototype.toHex8=function(S){return S===void 0&&(S=!1),(0,u.s)(this.r,this.g,this.b,this.a,S)},a.prototype.toHex8String=function(S){return S===void 0&&(S=!1),"#"+this.toHex8(S)},a.prototype.toHexShortString=function(S){return S===void 0&&(S=!1),this.a===1?this.toHexString(S):this.toHex8String(S)},a.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},a.prototype.toRgbString=function(){var S=Math.round(this.r),I=Math.round(this.g),N=Math.round(this.b);return this.a===1?"rgb(".concat(S,", ").concat(I,", ").concat(N,")"):"rgba(".concat(S,", ").concat(I,", ").concat(N,", ").concat(this.roundA,")")},a.prototype.toPercentageRgb=function(){var S=function(I){return"".concat(Math.round((0,x.sh)(I,255)*100),"%")};return{r:S(this.r),g:S(this.g),b:S(this.b),a:this.a}},a.prototype.toPercentageRgbString=function(){var S=function(I){return Math.round((0,x.sh)(I,255)*100)};return this.a===1?"rgb(".concat(S(this.r),"%, ").concat(S(this.g),"%, ").concat(S(this.b),"%)"):"rgba(".concat(S(this.r),"%, ").concat(S(this.g),"%, ").concat(S(this.b),"%, ").concat(this.roundA,")")},a.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var S="#"+(0,u.vq)(this.r,this.g,this.b,!1),I=0,N=Object.entries(D.R);I=0,ze=!I&&ie&&(S.startsWith("hex")||S==="name");return ze?S==="name"&&this.a===0?this.toName():this.toRgbString():(S==="rgb"&&(N=this.toRgbString()),S==="prgb"&&(N=this.toPercentageRgbString()),(S==="hex"||S==="hex6")&&(N=this.toHexString()),S==="hex3"&&(N=this.toHexString(!0)),S==="hex4"&&(N=this.toHex8String(!0)),S==="hex8"&&(N=this.toHex8String()),S==="name"&&(N=this.toName()),S==="hsl"&&(N=this.toHslString()),S==="hsv"&&(N=this.toHsvString()),N||this.toHexString())},a.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},a.prototype.clone=function(){return new a(this.toString())},a.prototype.lighten=function(S){S===void 0&&(S=10);var I=this.toHsl();return I.l+=S/100,I.l=(0,x.V2)(I.l),new a(I)},a.prototype.brighten=function(S){S===void 0&&(S=10);var I=this.toRgb();return I.r=Math.max(0,Math.min(255,I.r-Math.round(255*-(S/100)))),I.g=Math.max(0,Math.min(255,I.g-Math.round(255*-(S/100)))),I.b=Math.max(0,Math.min(255,I.b-Math.round(255*-(S/100)))),new a(I)},a.prototype.darken=function(S){S===void 0&&(S=10);var I=this.toHsl();return I.l-=S/100,I.l=(0,x.V2)(I.l),new a(I)},a.prototype.tint=function(S){return S===void 0&&(S=10),this.mix("white",S)},a.prototype.shade=function(S){return S===void 0&&(S=10),this.mix("black",S)},a.prototype.desaturate=function(S){S===void 0&&(S=10);var I=this.toHsl();return I.s-=S/100,I.s=(0,x.V2)(I.s),new a(I)},a.prototype.saturate=function(S){S===void 0&&(S=10);var I=this.toHsl();return I.s+=S/100,I.s=(0,x.V2)(I.s),new a(I)},a.prototype.greyscale=function(){return this.desaturate(100)},a.prototype.spin=function(S){var I=this.toHsl(),N=(I.h+S)%360;return I.h=N<0?360+N:N,new a(I)},a.prototype.mix=function(S,I){I===void 0&&(I=50);var N=this.toRgb(),ie=new a(S).toRgb(),ze=I/100,Ie={r:(ie.r-N.r)*ze+N.r,g:(ie.g-N.g)*ze+N.g,b:(ie.b-N.b)*ze+N.b,a:(ie.a-N.a)*ze+N.a};return new a(Ie)},a.prototype.analogous=function(S,I){S===void 0&&(S=6),I===void 0&&(I=30);var N=this.toHsl(),ie=360/I,ze=[this];for(N.h=(N.h-(ie*S>>1)+720)%360;--S;)N.h=(N.h+ie)%360,ze.push(new a(N));return ze},a.prototype.complement=function(){var S=this.toHsl();return S.h=(S.h+180)%360,new a(S)},a.prototype.monochromatic=function(S){S===void 0&&(S=6);for(var I=this.toHsv(),N=I.h,ie=I.s,ze=I.v,Ie=[],ct=1/S;S--;)Ie.push(new a({h:N,s:ie,v:ze})),ze=(ze+ct)%1;return Ie},a.prototype.splitcomplement=function(){var S=this.toHsl(),I=S.h;return[this,new a({h:(I+72)%360,s:S.s,l:S.l}),new a({h:(I+216)%360,s:S.s,l:S.l})]},a.prototype.onBackground=function(S){var I=this.toRgb(),N=new a(S).toRgb(),ie=I.a+N.a*(1-I.a);return new a({r:(I.r*I.a+N.r*N.a*(1-I.a))/ie,g:(I.g*I.a+N.g*N.a*(1-I.a))/ie,b:(I.b*I.a+N.b*N.a*(1-I.a))/ie,a:ie})},a.prototype.triad=function(){return this.polyad(3)},a.prototype.tetrad=function(){return this.polyad(4)},a.prototype.polyad=function(S){for(var I=this.toHsl(),N=I.h,ie=[this],ze=360/S,Ie=1;Ie1)&&(S=1),S}function w(S){return S<=1?"".concat(Number(S)*100,"%"):S}function a(S){return S.length===1?"0"+S:String(S)}},68564:function(c,g,l){"use strict";l.d(g,{iv:function(){return xd}});function u(No){if(No.sheet)return No.sheet;for(var qt=0;qt0?ze(Yn,--jr):0,wn--,Jr===10&&(wn=1,Ot--),Jr}function Rt(){return Jr=jr2||Ca(Jr)>3?"":" "}function oi(No){for(;Rt();)switch(Ca(Jr)){case 0:append(Ug(jr-1),No);break;case 2:append(Zr(Jr),No);break;default:append(from(Jr),No)}return No}function Pa(No,qt){for(;--qt&&Rt()&&!(Jr<48||Jr>102||Jr>57&&Jr<65||Jr>70&&Jr<97););return vn(No,Hr()+(qt<6&&on()==32&&Rt()==32))}function Aa(No){for(;Rt();)switch(Jr){case No:return jr;case 34:case 39:No!==34&&No!==39&&Aa(Jr);break;case 40:No===41&&Aa(No);break;case 92:Rt();break}return jr}function Pg(No,qt){for(;Rt()&&No+Jr!==47+10;)if(No+Jr===42+42&&on()===47)break;return"/*"+vn(qt,jr-1)+"*"+y(No===47?No:Rt())}function Ug(No){for(;!Ca(on());)Rt();return vn(No,jr)}var e0="-ms-",H0="-moz-",X0="-webkit-",d0="comm",jv="rule",Lv="decl",Je="@page",k0="@media",G0="@import",iv="@charset",u0="@viewport",B1="@supports",Dg="@document",zo="@namespace",mu="@keyframes",Ag="@font-face",c0="@counter-style",L0="@font-feature-values",$0="@layer";function cv(No,qt){for(var Sr="",si=At(No),Rs=0;Rs-1&&!No.return)switch(No.type){case DECLARATION:No.return=prefix(No.value,No.length,Sr);return;case KEYFRAMES:return serialize([copy(No,{value:replace(No.value,"@","@"+WEBKIT)})],si);case RULESET:if(No.length)return combine(No.props,function(Rs){switch(match(Rs,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(No,{props:[replace(Rs,/:(read-\w+)/,":"+MOZ+"$1")]})],si);case"::placeholder":return serialize([copy(No,{props:[replace(Rs,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(No,{props:[replace(Rs,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(No,{props:[replace(Rs,/:(plac\w+)/,MS+"input-$1")]})],si)}return""})}}function lu(No){switch(No.type){case RULESET:No.props=No.props.map(function(qt){return combine(tokenize(qt),function(Sr,si,Rs){switch(charat(Sr,0)){case 12:return substr(Sr,1,strlen(Sr));case 0:case 40:case 43:case 62:case 126:return Sr;case 58:Rs[++si]==="global"&&(Rs[si]="",Rs[++si]="\f"+substr(Rs[si],si=1,-1));case 32:return si===1?"":Sr;default:switch(si){case 0:return No=Sr,sizeof(Rs)>1?"":Sr;case(si=sizeof(Rs)-1):case 2:return si===2?Sr+No+No:Sr+No;default:return Sr}}})})}}function _h(No){return gt(Kr("",null,null,null,[""],No=ai(No),0,[0],No))}function Kr(No,qt,Sr,si,Rs,wa,bu,s0,In){for(var ga=0,Ga=0,Lu=bu,dv=0,Cv=0,Wv=0,c1=1,P1=1,Z1=1,sy=0,wy="",zy=Rs,hv=wa,Qv=si,Y1=wy;P1;)switch(Wv=sy,sy=Rt()){case 40:if(Wv!=108&&ze(Y1,Lu-1)==58){ie(Y1+=N(Zr(sy),"&","&\f"),"&\f")!=-1&&(Z1=-1);break}case 34:case 39:case 91:Y1+=Zr(sy);break;case 9:case 10:case 13:case 32:Y1+=Zs(Wv);break;case 92:Y1+=Pa(Hr()-1,7);continue;case 47:switch(on()){case 42:case 47:rt(ri(Pg(Rt(),Hr()),qt,Sr),In);break;default:Y1+="/"}break;case 123*c1:s0[ga++]=ct(Y1)*Z1;case 125*c1:case 59:case 0:switch(sy){case 0:case 125:P1=0;case 59+Ga:Z1==-1&&(Y1=N(Y1,/\f/g,"")),Cv>0&&ct(Y1)-Lu&&rt(Cv>32?Ra(Y1+";",si,Sr,Lu-1):Ra(N(Y1," ","")+";",si,Sr,Lu-2),In);break;case 59:Y1+=";";default:if(rt(Qv=fr(Y1,qt,Sr,ga,Ga,Rs,s0,wy,zy=[],hv=[],Lu),wa),sy===123)if(Ga===0)Kr(Y1,qt,Qv,Qv,zy,wa,Lu,s0,hv);else switch(dv===99&&ze(Y1,3)===110?100:dv){case 100:case 108:case 109:case 115:Kr(No,Qv,Qv,si&&rt(fr(No,Qv,Qv,0,0,Rs,s0,wy,Rs,zy=[],Lu),hv),Rs,hv,Lu,s0,si?zy:hv);break;default:Kr(Y1,Qv,Qv,Qv,[""],hv,0,s0,hv)}}ga=Ga=Cv=0,c1=Z1=1,wy=Y1="",Lu=bu;break;case 58:Lu=1+ct(Y1),Cv=Wv;default:if(c1<1){if(sy==123)--c1;else if(sy==125&&c1++==0&&Bt()==125)continue}switch(Y1+=y(sy),sy*c1){case 38:Z1=Ga>0?1:(Y1+="\f",-1);break;case 44:s0[ga++]=(ct(Y1)-1)*Z1,Z1=1;break;case 64:on()===45&&(Y1+=Zr(Rt())),dv=on(),Ga=Lu=ct(wy=Y1+=Ug(Hr())),sy++;break;case 45:Wv===45&&ct(Y1)==2&&(c1=0)}}return wa}function fr(No,qt,Sr,si,Rs,wa,bu,s0,In,ga,Ga){for(var Lu=Rs-1,dv=Rs===0?wa:[""],Cv=At(dv),Wv=0,c1=0,P1=0;Wv0?dv[Z1]+" "+sy:N(sy,/&\f/g,dv[Z1])))&&(In[P1++]=wy);return Lt(No,qt,Sr,Rs===0?jv:s0,In,ga,Ga)}function ri(No,qt,Sr){return Lt(No,qt,Sr,d0,y(Mt()),Ie(No,2,-2),0)}function Ra(No,qt,Sr,si){return Lt(No,qt,Sr,Lv,Ie(No,0,si),Ie(No,si+1,-1),si)}var Sg=function(qt,Sr,si){for(var Rs=0,wa=0;Rs=wa,wa=on(),Rs===38&&wa===12&&(Sr[si]=1),!Ca(wa);)Rt();return vn(qt,jr)},Jg=function(qt,Sr){var si=-1,Rs=44;do switch(Ca(Rs)){case 0:Rs===38&&on()===12&&(Sr[si]=1),qt[si]+=Sg(jr-1,Sr,si);break;case 2:qt[si]+=Zr(Rs);break;case 4:if(Rs===44){qt[++si]=on()===58?"&\f":"",Sr[si]=qt[si].length;break}default:qt[si]+=y(Rs)}while(Rs=Rt());return qt},j0=function(qt,Sr){return gt(Jg(ai(qt),Sr))},Wo=new WeakMap,Mo=function(qt){if(!(qt.type!=="rule"||!qt.parent||qt.length<1)){for(var Sr=qt.value,si=qt.parent,Rs=qt.column===si.column&&qt.line===si.line;si.type!=="rule";)if(si=si.parent,!si)return;if(!(qt.props.length===1&&Sr.charCodeAt(0)!==58&&!Wo.get(si))&&!Rs){Wo.set(qt,!0);for(var wa=[],bu=j0(Sr,wa),s0=si.props,In=0,ga=0;In-1},ui=function(qt){return function(Sr,si,Rs){if(!(Sr.type!=="rule"||qt.compat)){var wa=Sr.value.match(/(:first|:nth|:nth-last)-child/g);if(wa){for(var bu=!!Sr.parent,s0=bu?Sr.parent.children:Rs,In=s0.length-1;In>=0;In--){var ga=s0[In];if(ga.line=0;si--)if(!ya(Sr[si]))return!0;return!1},Su=function(qt){qt.type="",qt.value="",qt.return="",qt.children="",qt.props=""},xu=function(qt,Sr,si){ya(qt)&&(qt.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Su(qt)):gd(Sr,si)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Su(qt)))};function xa(No,qt){switch(a(No,qt)){case 5103:return X0+"print-"+No+No;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X0+No+No;case 5349:case 4246:case 4810:case 6968:case 2756:return X0+No+H0+No+e0+No+No;case 6828:case 4268:return X0+No+e0+No+No;case 6165:return X0+No+e0+"flex-"+No+No;case 5187:return X0+No+N(No,/(\w+).+(:[^]+)/,X0+"box-$1$2"+e0+"flex-$1$2")+No;case 5443:return X0+No+e0+"flex-item-"+N(No,/flex-|-self/,"")+No;case 4675:return X0+No+e0+"flex-line-pack"+N(No,/align-content|flex-|-self/,"")+No;case 5548:return X0+No+e0+N(No,"shrink","negative")+No;case 5292:return X0+No+e0+N(No,"basis","preferred-size")+No;case 6060:return X0+"box-"+N(No,"-grow","")+X0+No+e0+N(No,"grow","positive")+No;case 4554:return X0+N(No,/([^-])(transform)/g,"$1"+X0+"$2")+No;case 6187:return N(N(N(No,/(zoom-|grab)/,X0+"$1"),/(image-set)/,X0+"$1"),No,"")+No;case 5495:case 3959:return N(No,/(image-set\([^]*)/,X0+"$1$`$1");case 4968:return N(N(No,/(.+:)(flex-)?(.*)/,X0+"box-pack:$3"+e0+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X0+No+No;case 4095:case 3583:case 4068:case 2532:return N(No,/(.+)-inline(.+)/,X0+"$1$2")+No;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(ct(No)-1-qt>6)switch(ze(No,qt+1)){case 109:if(ze(No,qt+4)!==45)break;case 102:return N(No,/(.+:)(.+)-([^]+)/,"$1"+X0+"$2-$3$1"+H0+(ze(No,qt+3)==108?"$3":"$2-$3"))+No;case 115:return~ie(No,"stretch")?xa(N(No,"stretch","fill-available"),qt)+No:No}break;case 4949:if(ze(No,qt+1)!==115)break;case 6444:switch(ze(No,ct(No)-3-(~ie(No,"!important")&&10))){case 107:return N(No,":",":"+X0)+No;case 101:return N(No,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X0+(ze(No,14)===45?"inline-":"")+"box$3$1"+X0+"$2$3$1"+e0+"$2box$3")+No}break;case 5936:switch(ze(No,qt+11)){case 114:return X0+No+e0+N(No,/[svh]\w+-[tblr]{2}/,"tb")+No;case 108:return X0+No+e0+N(No,/[svh]\w+-[tblr]{2}/,"tb-rl")+No;case 45:return X0+No+e0+N(No,/[svh]\w+-[tblr]{2}/,"lr")+No}return X0+No+e0+No+No}return No}var Td=function(qt,Sr,si,Rs){if(qt.length>-1&&!qt.return)switch(qt.type){case Lv:qt.return=xa(qt.value,qt.length);break;case mu:return cv([_n(qt,{value:N(qt.value,"@","@"+X0)})],Rs);case jv:if(qt.length)return It(qt.props,function(wa){switch(I(wa,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cv([_n(qt,{props:[N(wa,/:(read-\w+)/,":"+H0+"$1")]})],Rs);case"::placeholder":return cv([_n(qt,{props:[N(wa,/:(plac\w+)/,":"+X0+"input-$1")]}),_n(qt,{props:[N(wa,/:(plac\w+)/,":"+H0+"$1")]}),_n(qt,{props:[N(wa,/:(plac\w+)/,e0+"input-$1")]})],Rs)}return""})}},jg=[Td],Wa=function(qt){var Sr=qt.key;if(Sr==="css"){var si=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(si,function(c1){var P1=c1.getAttribute("data-emotion");P1.indexOf(" ")!==-1&&(document.head.appendChild(c1),c1.setAttribute("data-s",""))})}var Rs=qt.stylisPlugins||jg,wa={},bu,s0=[];bu=qt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Sr+' "]'),function(c1){for(var P1=c1.getAttribute("data-emotion").split(" "),Z1=1;Z1=4;++si,Rs-=4)Sr=No.charCodeAt(si)&255|(No.charCodeAt(++si)&255)<<8|(No.charCodeAt(++si)&255)<<16|(No.charCodeAt(++si)&255)<<24,Sr=(Sr&65535)*1540483477+((Sr>>>16)*59797<<16),Sr^=Sr>>>24,qt=(Sr&65535)*1540483477+((Sr>>>16)*59797<<16)^(qt&65535)*1540483477+((qt>>>16)*59797<<16);switch(Rs){case 3:qt^=(No.charCodeAt(si+2)&255)<<16;case 2:qt^=(No.charCodeAt(si+1)&255)<<8;case 1:qt^=No.charCodeAt(si)&255,qt=(qt&65535)*1540483477+((qt>>>16)*59797<<16)}return qt^=qt>>>13,qt=(qt&65535)*1540483477+((qt>>>16)*59797<<16),((qt^qt>>>15)>>>0).toString(36)}var Bs={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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};function Sa(No){var qt=Object.create(null);return function(Sr){return qt[Sr]===void 0&&(qt[Sr]=No(Sr)),qt[Sr]}}var $a=`You have illegal escape sequence in your template literal, most likely inside content's property value. +}`}}),this.blitVertexBuffer=this.createBuffer({usage:_v.VERTEX|_v.COPY_DST,viewOrSize:new Float32Array([-4,-4,4,-4,0,4])}),this.blitInputLayout=this.createInputLayout({vertexBufferDescriptors:[{arrayStride:4*2,stepMode:GE.VERTEX,attributes:[{format:wu.F32_RG,offset:4*0,shaderLocation:0}]}],indexBufferFormat:null,program:this.blitProgram}),this.blitRenderPipeline=this.createRenderPipeline({topology:U1.TRIANGLES,sampleCount:1,program:this.blitProgram,colorAttachmentFormats:[wu.U8_RGBA_RT],depthStencilAttachmentFormat:null,inputLayout:this.blitInputLayout,megaStateDescriptor:kI(Bb)}),this.blitBindings=this.createBindings({samplerBindings:[{sampler:null,texture:d.texture}],uniformBufferBindings:[]}),this.blitProgram.setUniformsLegacy({u_Texture:d}));var c=this.currentRenderPassDescriptor;this.currentRenderPassDescriptor=null,this.inBlitRenderPass=!0;var a=this.createRenderPass({colorAttachment:[d],colorResolveTo:[l],colorClearColor:[wK]}),p=this.getCanvas(),y=p.width,w=p.height;a.setPipeline(this.blitRenderPipeline),a.setBindings(this.blitBindings),a.setVertexInput(this.blitInputLayout,[{buffer:this.blitVertexBuffer}],null),a.setViewport(0,0,y,w),this.gl.disable(this.gl.BLEND),a.draw(3,0),this.gl.enable(this.gl.BLEND),this.currentRenderPassDescriptor=c,this.inBlitRenderPass=!1},i}(),eA=function(){function i(d){this.pluginOptions=d}return i.prototype.createSwapChain=function(d){return(0,rp.mG)(this,void 0,void 0,function(){var l,c,a,p,y,w,O,V,he,be,ut,Pt,qt;return(0,rp.Jh)(this,function(En){return l=this.pluginOptions,c=l.targets,a=l.xrCompatible,p=l.antialias,y=p===void 0?!1:p,w=l.preserveDrawingBuffer,O=w===void 0?!1:w,V=l.premultipliedAlpha,he=V===void 0?!0:V,be=l.shaderDebug,ut=l.trackResources,Pt={antialias:y,preserveDrawingBuffer:O,stencil:!0,premultipliedAlpha:he,xrCompatible:a},this.handleContextEvents(d),c.includes("webgl2")&&(qt=d.getContext("webgl2",Pt)||d.getContext("experimental-webgl2",Pt)),!qt&&c.includes("webgl1")&&(qt=d.getContext("webgl",Pt)||d.getContext("experimental-webgl",Pt)),[2,new XK(qt,{shaderDebug:be,trackResources:ut})]})})},i.prototype.handleContextEvents=function(d){var l=this.pluginOptions,c=l.onContextLost,a=l.onContextRestored,p=l.onContextCreationError;p&&d.addEventListener("webglcontextcreationerror",p,!1),c&&d.addEventListener("webglcontextlost",c,!1),a&&d.addEventListener("webglcontextrestored",a,!1)},i}();let Q1;const UM=typeof TextDecoder!="undefined"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&UM.decode();let r3=null;function i3(){return(r3===null||r3.byteLength===0)&&(r3=new Uint8Array(Q1.memory.buffer)),r3}function o3(i,d){return i=i>>>0,UM.decode(i3().subarray(i,i+d))}const sC=new Array(128).fill(void 0);sC.push(void 0,null,!0,!1);let tA=sC.length;function JR(i){tA===sC.length&&sC.push(sC.length+1);const d=tA;return tA=sC[d],sC[d]=i,d}function I0(i){return sC[i]}function nA(i){i<132||(sC[i]=tA,tA=i)}function YK(i){const d=I0(i);return nA(i),d}let xS=0;const s3=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},QR=typeof s3.encodeInto=="function"?function(i,d){return s3.encodeInto(i,d)}:function(i,d){const l=s3.encode(i);return d.set(l),{read:i.length,written:l.length}};function D8(i,d,l){if(l===void 0){const w=s3.encode(i),O=d(w.length,1)>>>0;return i3().subarray(O,O+w.length).set(w),xS=w.length,O}let c=i.length,a=d(c,1)>>>0;const p=i3();let y=0;for(;y127)break;p[a+y]=w}if(y!==c){y!==0&&(i=i.slice(y)),a=l(a,c,c=y+i.length*3,1)>>>0;const w=i3().subarray(a+y,a+c),O=QR(i,w);y+=O.written}return xS=y,a}let zI=null;function ek(){return(zI===null||zI.byteLength===0)&&(zI=new Int32Array(Q1.memory.buffer)),zI}function qK(i,d,l){let c,a;try{const w=Q1.__wbindgen_add_to_stack_pointer(-16),O=D8(i,Q1.__wbindgen_malloc,Q1.__wbindgen_realloc),V=xS,he=D8(d,Q1.__wbindgen_malloc,Q1.__wbindgen_realloc),be=xS;Q1.glsl_compile(w,O,V,he,be,l);var p=ek()[w/4+0],y=ek()[w/4+1];return c=p,a=y,o3(p,y)}finally{Q1.__wbindgen_add_to_stack_pointer(16),Q1.__wbindgen_free(c,a,1)}}class UI{static __wrap(d){d=d>>>0;const l=Object.create(UI.prototype);return l.__wbg_ptr=d,l}__destroy_into_raw(){const d=this.__wbg_ptr;return this.__wbg_ptr=0,d}free(){const d=this.__destroy_into_raw();Q1.__wbg_wgslcomposer_free(d)}constructor(){const d=Q1.wgslcomposer_new();return UI.__wrap(d)}wgsl_compile(d){let l,c;try{const y=Q1.__wbindgen_add_to_stack_pointer(-16),w=D8(d,Q1.__wbindgen_malloc,Q1.__wbindgen_realloc),O=xS;Q1.wgslcomposer_wgsl_compile(y,this.__wbg_ptr,w,O);var a=ek()[y/4+0],p=ek()[y/4+1];return l=a,c=p,o3(a,p)}finally{Q1.__wbindgen_add_to_stack_pointer(16),Q1.__wbindgen_free(l,c,1)}}}function FU(i,d){return vP(this,null,function*(){if(typeof Response=="function"&&i instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(i,d)}catch(c){if(i.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",c);else throw c}const l=yield i.arrayBuffer();return yield WebAssembly.instantiate(l,d)}else{const l=yield WebAssembly.instantiate(i,d);return l instanceof WebAssembly.Instance?{instance:l,module:i}:l}})}function JK(){const i={};return i.wbg={},i.wbg.__wbindgen_string_new=function(d,l){const c=o3(d,l);return JR(c)},i.wbg.__wbindgen_object_drop_ref=function(d){YK(d)},i.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(I0(d))},i.wbg.__wbg_log_576ca876af0d4a77=function(d,l){console.log(I0(d),I0(l))},i.wbg.__wbindgen_throw=function(d,l){throw new Error(o3(d,l))},i}function QK(i,d){return Q1=i.exports,BU.__wbindgen_wasm_module=d,zI=null,r3=null,Q1}function BU(i){return vP(this,null,function*(){if(Q1!==void 0)return Q1;const d=JK();(typeof i=="string"||typeof Request=="function"&&i instanceof Request||typeof URL=="function"&&i instanceof URL)&&(i=fetch(i));const{instance:l,module:c}=yield FU(yield i,d);return QK(l,c)})}var vy;(function(i){i[i.COPY_SRC=1]="COPY_SRC",i[i.COPY_DST=2]="COPY_DST",i[i.TEXTURE_BINDING=4]="TEXTURE_BINDING",i[i.STORAGE_BINDING=8]="STORAGE_BINDING",i[i.STORAGE=8]="STORAGE",i[i.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(vy||(vy={}));var I8;(function(i){i[i.READ=1]="READ",i[i.WRITE=2]="WRITE"})(I8||(I8={}));function eX(i){var d=0;return i&qy.SAMPLED&&(d|=vy.TEXTURE_BINDING|vy.COPY_DST|vy.COPY_SRC),i&qy.STORAGE&&(d|=vy.TEXTURE_BINDING|vy.STORAGE_BINDING|vy.COPY_SRC|vy.COPY_DST),i&qy.RENDER_TARGET&&(d|=vy.RENDER_ATTACHMENT|vy.TEXTURE_BINDING|vy.COPY_SRC|vy.COPY_DST),d}function L8(i){if(i===wu.U8_R_NORM)return"r8unorm";if(i===wu.S8_R_NORM)return"r8snorm";if(i===wu.U8_RG_NORM)return"rg8unorm";if(i===wu.S8_RG_NORM)return"rg8snorm";if(i===wu.U32_R)return"r32uint";if(i===wu.S32_R)return"r32sint";if(i===wu.F32_R)return"r32float";if(i===wu.U16_RG)return"rg16uint";if(i===wu.S16_RG)return"rg16sint";if(i===wu.F16_RG)return"rg16float";if(i===wu.U8_RGBA_RT)return"bgra8unorm";if(i===wu.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(i===wu.U8_RGBA_NORM)return"rgba8unorm";if(i===wu.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(i===wu.S8_RGBA_NORM)return"rgba8snorm";if(i===wu.F32_RGB)return"rgb9e5ufloat";if(i===wu.U32_RG)return"rg32uint";if(i===wu.S32_RG)return"rg32sint";if(i===wu.F32_RG)return"rg32float";if(i===wu.U16_RGBA)return"rgba16uint";if(i===wu.S16_RGBA)return"rgba16sint";if(i===wu.F16_RGBA)return"rgba16float";if(i===wu.F32_RGBA)return"rgba32float";if(i===wu.U32_RGBA)return"rgba32uint";if(i===wu.S32_RGBA)return"rgba32sint";if(i===wu.D24)return"depth24plus";if(i===wu.D24_S8)return"depth24plus-stencil8";if(i===wu.D32F)return"depth32float";if(i===wu.D32F_S8)return"depth32float-stencil8";if(i===wu.BC1)return"bc1-rgba-unorm";if(i===wu.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(i===wu.BC2)return"bc2-rgba-unorm";if(i===wu.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(i===wu.BC3)return"bc3-rgba-unorm";if(i===wu.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(i===wu.BC4_SNORM)return"bc4-r-snorm";if(i===wu.BC4_UNORM)return"bc4-r-unorm";if(i===wu.BC5_SNORM)return"bc5-rg-snorm";if(i===wu.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function tX(i){if(i===Am.TEXTURE_2D)return"2d";if(i===Am.TEXTURE_CUBE_MAP)return"2d";if(i===Am.TEXTURE_2D_ARRAY)return"2d";if(i===Am.TEXTURE_3D)return"3d";throw new Error("whoops")}function nX(i){if(i===Am.TEXTURE_2D)return"2d";if(i===Am.TEXTURE_CUBE_MAP)return"cube";if(i===Am.TEXTURE_2D_ARRAY)return"2d-array";if(i===Am.TEXTURE_3D)return"3d";throw new Error("whoops")}function rX(i){var d=0;return i&_v.INDEX&&(d|=GPUBufferUsage.INDEX),i&_v.VERTEX&&(d|=GPUBufferUsage.VERTEX),i&_v.UNIFORM&&(d|=GPUBufferUsage.UNIFORM),i&_v.STORAGE&&(d|=GPUBufferUsage.STORAGE),i&_v.COPY_SRC&&(d|=GPUBufferUsage.COPY_SRC),i&_v.INDIRECT&&(d|=GPUBufferUsage.INDIRECT),d|=GPUBufferUsage.COPY_DST,d}function M8(i){if(i===ob.CLAMP_TO_EDGE)return"clamp-to-edge";if(i===ob.REPEAT)return"repeat";if(i===ob.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function zU(i){if(i===Jv.BILINEAR)return"linear";if(i===Jv.POINT)return"nearest";throw new Error("whoops")}function iX(i){if(i===py.LINEAR)return"linear";if(i===py.NEAREST)return"nearest";if(i===py.NO_MIP)return"nearest";throw new Error("whoops")}function VI(i){var d=i;return d.gpuBuffer}function oX(i){var d=i;return d.gpuSampler}function sX(i){var d=i;return d.querySet}function aX(i){if(i===FR.OcclusionConservative)return"occlusion";throw new Error("whoops")}function UU(i){switch(i){case U1.TRIANGLES:return"triangle-list";case U1.POINTS:return"point-list";case U1.TRIANGLE_STRIP:return"triangle-strip";case U1.LINES:return"line-list";case U1.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function fw(i){if(i===Nb.NONE)return"none";if(i===Nb.FRONT)return"front";if(i===Nb.BACK)return"back";throw new Error("whoops")}function Tee(i){if(i===uw.CCW)return"ccw";if(i===uw.CW)return"cw";throw new Error("whoops")}function lX(i,d){return{topology:UU(i),cullMode:fw(d.cullMode),frontFace:Tee(d.frontFace)}}function $I(i){if(i===jm.ZERO)return"zero";if(i===jm.ONE)return"one";if(i===jm.SRC)return"src";if(i===jm.ONE_MINUS_SRC)return"one-minus-src";if(i===jm.DST)return"dst";if(i===jm.ONE_MINUS_DST)return"one-minus-dst";if(i===jm.SRC_ALPHA)return"src-alpha";if(i===jm.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(i===jm.DST_ALPHA)return"dst-alpha";if(i===jm.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(i===jm.CONST)return"constant";if(i===jm.ONE_MINUS_CONSTANT)return"one-minus-constant";if(i===jm.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function uX(i){if(i===Ny.ADD)return"add";if(i===Ny.SUBSTRACT)return"subtract";if(i===Ny.REVERSE_SUBSTRACT)return"reverse-subtract";if(i===Ny.MIN)return"min";if(i===Ny.MAX)return"max";throw new Error("whoops")}function P8(i){return{operation:uX(i.blendMode),srcFactor:$I(i.blendSrcFactor),dstFactor:$I(i.blendDstFactor)}}function R8(i){return i.blendMode===Ny.ADD&&i.blendSrcFactor===jm.ONE&&i.blendDstFactor===jm.ZERO}function k8(i){if(!(R8(i.rgbBlendState)&&R8(i.alphaBlendState)))return{color:P8(i.rgbBlendState),alpha:P8(i.alphaBlendState)}}function VU(i,d){return{format:L8(d),blend:k8(i),writeMask:i.channelWriteMask}}function $U(i,d){return d.attachmentsState.map(function(l,c){return VU(l,i[c])})}function a3(i){if(i===Em.NEVER)return"never";if(i===Em.LESS)return"less";if(i===Em.EQUAL)return"equal";if(i===Em.LEQUAL)return"less-equal";if(i===Em.GREATER)return"greater";if(i===Em.NOTEQUAL)return"not-equal";if(i===Em.GEQUAL)return"greater-equal";if(i===Em.ALWAYS)return"always";throw new Error("whoops")}function d2(i){if(i===Uv.KEEP)return"keep";if(i===Uv.REPLACE)return"replace";if(i===Uv.ZERO)return"zero";if(i===Uv.DECREMENT_CLAMP)return"decrement-clamp";if(i===Uv.DECREMENT_WRAP)return"decrement-wrap";if(i===Uv.INCREMENT_CLAMP)return"increment-clamp";if(i===Uv.INCREMENT_WRAP)return"increment-wrap";if(i===Uv.INVERT)return"invert";throw new Error("whoops")}function WU(i,d){if(!_x(i))return{format:L8(i),depthWriteEnabled:!!d.depthWrite,depthCompare:a3(d.depthCompare),depthBias:d.polygonOffset?1:0,depthBiasSlopeScale:d.polygonOffset?1:0,stencilFront:{compare:a3(d.stencilFront.compare),passOp:d2(d.stencilFront.passOp),failOp:d2(d.stencilFront.failOp),depthFailOp:d2(d.stencilFront.depthFailOp)},stencilBack:{compare:a3(d.stencilBack.compare),passOp:d2(d.stencilBack.passOp),failOp:d2(d.stencilBack.failOp),depthFailOp:d2(d.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function pw(i){if(i!==null){if(i===wu.U16_R)return"uint16";if(i===wu.U32_R)return"uint32";throw new Error("whoops")}}function l3(i){if(i===GE.VERTEX)return"vertex";if(i===GE.INSTANCE)return"instance";throw new Error("whoops")}function cX(i){if(i===wu.U8_R)return"uint8x2";if(i===wu.U8_RG)return"uint8x2";if(i===wu.U8_RGB)return"uint8x4";if(i===wu.U8_RGBA)return"uint8x4";if(i===wu.U8_RG_NORM)return"unorm8x2";if(i===wu.U8_RGBA_NORM)return"unorm8x4";if(i===wu.S8_RGB_NORM)return"snorm8x4";if(i===wu.S8_RGBA_NORM)return"snorm8x4";if(i===wu.U16_RG_NORM)return"unorm16x2";if(i===wu.U16_RGBA_NORM)return"unorm16x4";if(i===wu.S16_RG_NORM)return"snorm16x2";if(i===wu.S16_RGBA_NORM)return"snorm16x4";if(i===wu.S16_RG)return"uint16x2";if(i===wu.F16_RG)return"float16x2";if(i===wu.F16_RGBA)return"float16x4";if(i===wu.F32_R)return"float32";if(i===wu.F32_RG)return"float32x2";if(i===wu.F32_RGB)return"float32x3";if(i===wu.F32_RGBA)return"float32x4";throw"whoops"}function O8(i){var d=u2(i);switch(d){case Rh.BC1:case Rh.BC2:case Rh.BC3:case Rh.BC4_SNORM:case Rh.BC4_UNORM:case Rh.BC5_SNORM:case Rh.BC5_UNORM:return!0;default:return!1}}function ab(i){var d=u2(i);switch(d){case Rh.BC1:case Rh.BC2:case Rh.BC3:case Rh.BC4_SNORM:case Rh.BC4_UNORM:case Rh.BC5_SNORM:case Rh.BC5_UNORM:return 4;default:return 1}}function tk(i,d,l,c){switch(l===void 0&&(l=!1),i){case wu.S8_R:case wu.S8_R_NORM:case wu.S8_RG_NORM:case wu.S8_RGB_NORM:case wu.S8_RGBA_NORM:{var a=d instanceof ArrayBuffer?new Int8Array(d):new Int8Array(d);return c&&a.set(new Int8Array(c)),a}case wu.U8_R:case wu.U8_R_NORM:case wu.U8_RG:case wu.U8_RG_NORM:case wu.U8_RGB:case wu.U8_RGB_NORM:case wu.U8_RGB_SRGB:case wu.U8_RGBA:case wu.U8_RGBA_NORM:case wu.U8_RGBA_SRGB:{var p=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&p.set(new Uint8Array(c)),p}case wu.S16_R:case wu.S16_RG:case wu.S16_RG_NORM:case wu.S16_RGB_NORM:case wu.S16_RGBA:case wu.S16_RGBA_NORM:{var y=d instanceof ArrayBuffer?new Int16Array(d):new Int16Array(l?d/2:d);return c&&y.set(new Int16Array(c)),y}case wu.U16_R:case wu.U16_RGB:case wu.U16_RGBA_5551:case wu.U16_RGBA_NORM:case wu.U16_RG_NORM:case wu.U16_R_NORM:{var w=d instanceof ArrayBuffer?new Uint16Array(d):new Uint16Array(l?d/2:d);return c&&w.set(new Uint16Array(c)),w}case wu.S32_R:{var O=d instanceof ArrayBuffer?new Int32Array(d):new Int32Array(l?d/4:d);return c&&O.set(new Int32Array(c)),O}case wu.U32_R:case wu.U32_RG:{var V=d instanceof ArrayBuffer?new Uint32Array(d):new Uint32Array(l?d/4:d);return c&&V.set(new Uint32Array(c)),V}case wu.F32_R:case wu.F32_RG:case wu.F32_RGB:case wu.F32_RGBA:{var he=d instanceof ArrayBuffer?new Float32Array(d):new Float32Array(l?d/4:d);return c&&he.set(new Float32Array(c)),he}}var be=d instanceof ArrayBuffer?new Uint8Array(d):new Uint8Array(d);return c&&be.set(new Uint8Array(c)),be}function Dee(i){var d=(i&32768)>>15,l=(i&31744)>>10,c=i&1023;return l===0?(d?-1:1)*Math.pow(2,-14)*(c/Math.pow(2,10)):l==31?c?NaN:(d?-1:1)*(1/0):(d?-1:1)*Math.pow(2,l-15)*(1+c/Math.pow(2,10))}function ZU(i){switch(i){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}}var f2=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=i.call(this)||this;return p.id=c,p.device=a,p}return d.prototype.destroy=function(){},d}(yU),hX=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y,w,O=i.call(this,{id:c,device:a})||this;O.type=km.Bindings;var V=p.pipeline;hm(!!V);var he=p.uniformBufferBindings,be=p.storageBufferBindings,ut=p.samplerBindings,Pt=p.storageTextureBindings;O.numUniformBuffers=(he==null?void 0:he.length)||0;var qt=[[],[],[],[]],En=0;if(he&&he.length)for(var qn=0;qnbe;)this.device.device.queue.writeBuffer(y,l+ut,c.buffer,w+ut,be),ut+=be;this.device.device.queue.writeBuffer(y,l+ut,c.buffer,w+ut,p-ut)},d.prototype.destroy=function(){i.prototype.destroy.call(this),this.gpuBuffer.destroy()},d}(f2),HU=function(){function i(){this.gpuComputePassEncoder=null}return i.prototype.dispatchWorkgroups=function(d,l,c){this.gpuComputePassEncoder.dispatchWorkgroups(d,l,c)},i.prototype.dispatchWorkgroupsIndirect=function(d,l){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(d.gpuBuffer,l)},i.prototype.finish=function(){this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.frameCommandEncoder=null},i.prototype.beginComputePass=function(d){hm(this.gpuComputePassEncoder===null),this.frameCommandEncoder=d,this.gpuComputePassEncoder=this.frameCommandEncoder.beginComputePass(this.gpuComputePassDescriptor)},i.prototype.setPipeline=function(d){var l=d,c=rC(l.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(c)},i.prototype.setBindings=function(d){var l=this,c=d;c.gpuBindGroup.forEach(function(a,p){a&&l.gpuComputePassEncoder.setBindGroup(p,c.gpuBindGroup[p])})},i.prototype.pushDebugGroup=function(d){this.gpuComputePassEncoder.pushDebugGroup(d)},i.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},i.prototype.insertDebugMarker=function(d){this.gpuComputePassEncoder.insertDebugMarker(d)},i}(),dX=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y=i.call(this,{id:c,device:a})||this;y.type=km.ComputePipeline,y.gpuComputePipeline=null,y.descriptor=p;var w=p.program,O=w.computeStage;if(O===null)return y;var V={layout:"auto",compute:(0,rp.pi)({},O)};return y.gpuComputePipeline=y.device.device.createComputePipeline(V),y.name!==void 0&&(y.gpuComputePipeline.label=y.name),y}return d.prototype.getBindGroupLayout=function(l){return this.gpuComputePipeline.getBindGroupLayout(l)},d}(f2),GU=function(i){(0,rp.ZT)(d,i);function d(l){var c,a,p,y,w=l.id,O=l.device,V=l.descriptor,he=i.call(this,{id:w,device:O})||this;he.type=km.InputLayout;var be=[];try{for(var ut=(0,rp.XA)(V.vertexBufferDescriptors),Pt=ut.next();!Pt.done;Pt=ut.next()){var qt=Pt.value,En=qt.arrayStride,qn=qt.stepMode,Zr=qt.attributes;be.push({arrayStride:En,stepMode:l3(qn),attributes:[]});try{for(var Si=(p=void 0,(0,rp.XA)(Zr)),to=Si.next();!to.done;to=Si.next()){var ts=to.value,Qs=ts.shaderLocation,Fs=ts.format,Us=ts.offset;be[be.length-1].attributes.push({shaderLocation:Qs,format:cX(Fs),offset:Us})}}catch(Sa){p={error:Sa}}finally{try{to&&!to.done&&(y=Si.return)&&y.call(Si)}finally{if(p)throw p.error}}}}catch(Sa){c={error:Sa}}finally{try{Pt&&!Pt.done&&(a=ut.return)&&a.call(ut)}finally{if(c)throw c.error}}return he.indexFormat=pw(V.indexBufferFormat),he.buffers=be,he}return d}(f2),KU=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y=i.call(this,{id:c,device:a})||this;return y.type=km.Program,y.vertexStage=null,y.fragmentStage=null,y.computeStage=null,y.descriptor=p,p.vertex&&(y.vertexStage=y.createShaderStage(p.vertex,"vertex")),p.fragment&&(y.fragmentStage=y.createShaderStage(p.fragment,"fragment")),p.compute&&(y.computeStage=y.createShaderStage(p.compute,"compute")),y}return d.prototype.setUniformsLegacy=function(l){},d.prototype.createShaderStage=function(l,c){var a,p,y=l.glsl,w=l.wgsl,O=l.entryPoint,V=l.postprocess,he=!1,be=w;if(!be)try{be=this.device.glsl_compile(y,c,he)}catch(Zr){throw console.error(Zr,y),new Error("whoops")}var ut=function(Zr){if(!be.includes(Zr))return"continue";be=be.replace("var T_".concat(Zr,": texture_2d;"),"var T_".concat(Zr,": texture_depth_2d;")),be=be.replace(new RegExp("textureSample\\(T_".concat(Zr,"(.*)\\);$"),"gm"),function(Si,to){return"vec4(textureSample(T_".concat(Zr).concat(to,"), 0.0, 0.0, 0.0);")})};try{for(var Pt=(0,rp.XA)(["u_TextureFramebufferDepth"]),qt=Pt.next();!qt.done;qt=Pt.next()){var En=qt.value;ut(En)}}catch(Zr){a={error:Zr}}finally{try{qt&&!qt.done&&(p=Pt.return)&&p.call(Pt)}finally{if(a)throw a.error}}V&&(be=V(be));var qn=this.device.device.createShaderModule({code:be});return{module:qn,entryPoint:O||"main"}},d}(f2),fX=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y=i.call(this,{id:c,device:a})||this;y.type=km.QueryPool;var w=p.elemCount,O=p.type;return y.querySet=y.device.device.createQuerySet({type:aX(O),count:w}),y.resolveBuffer=y.device.device.createBuffer({size:w*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),y.cpuBuffer=y.device.device.createBuffer({size:w*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),y.results=null,y}return d.prototype.queryResultOcclusion=function(l){return this.results===null?null:this.results[l]!==BigInt(0)},d.prototype.destroy=function(){i.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},d}(f2),Iee=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=i.call(this,{id:c,device:a})||this;return p.type=km.Readback,p}return d.prototype.readTexture=function(l,c,a,p,y,w,O,V){return O===void 0&&(O=0),(0,rp.mG)(this,void 0,void 0,function(){var he,be,ut,Pt,qt,En,qn,Zr;return(0,rp.Jh)(this,function(Si){return he=l,be=0,ut=ZU(he.gpuTextureformat),Pt=Math.ceil(p/ut.width)*ut.length,qt=Math.ceil(Pt/256)*256,En=qt*y,qn=this.device.createBuffer({usage:_v.STORAGE|_v.MAP_READ|_v.COPY_DST,hint:Fb.STATIC,viewOrSize:En}),Zr=this.device.device.createCommandEncoder(),Zr.copyTextureToBuffer({texture:he.gpuTexture,mipLevel:0,origin:{x:c,y:a,z:Math.max(be,0)}},{buffer:qn.gpuBuffer,offset:0,bytesPerRow:qt},{width:p,height:y,depthOrArrayLayers:1}),this.device.device.queue.submit([Zr.finish()]),[2,this.readBuffer(qn,0,w.byteLength===En?w:null,O,En,he.format,!0,!1,Pt,qt,y)]})})},d.prototype.readTextureSync=function(l,c,a,p,y,w,O,V){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},d.prototype.readBuffer=function(l,c,a,p,y,w,O,V,he,be,ut){var Pt=this;c===void 0&&(c=0),a===void 0&&(a=null),y===void 0&&(y=0),w===void 0&&(w=wu.U8_RGB),O===void 0&&(O=!1),he===void 0&&(he=0),be===void 0&&(be=0),ut===void 0&&(ut=0);var qt=l,En=y||qt.size,qn=a||qt.view,Zr=qn&&qn.constructor&&qn.constructor.BYTES_PER_ELEMENT||u8(w),Si=qt;if(!(qt.usage&_v.MAP_READ&&qt.usage&_v.COPY_DST)){var to=this.device.device.createCommandEncoder();Si=this.device.createBuffer({usage:_v.STORAGE|_v.MAP_READ|_v.COPY_DST,hint:Fb.STATIC,viewOrSize:En}),to.copyBufferToBuffer(qt.gpuBuffer,c,Si.gpuBuffer,0,En),this.device.device.queue.submit([to.finish()])}return new Promise(function(ts,Qs){Si.gpuBuffer.mapAsync(I8.READ,c,En).then(function(){var Fs=Si.gpuBuffer.getMappedRange(c,En),Us=qn;if(O)Us===null?Us=tk(w,En,!0,Fs):Us=tk(w,Us.buffer,void 0,Fs);else if(Us===null)switch(Zr){case 1:Us=new Uint8Array(En),Us.set(new Uint8Array(Fs));break;case 2:Us=Pt.getHalfFloatAsFloatRGBAArrayBuffer(En/2,Fs);break;case 4:Us=new Float32Array(En/4),Us.set(new Float32Array(Fs));break}else switch(Zr){case 1:Us=new Uint8Array(Us.buffer),Us.set(new Uint8Array(Fs));break;case 2:Us=Pt.getHalfFloatAsFloatRGBAArrayBuffer(En/2,Fs,qn);break;case 4:var Sa=qn&&qn.constructor||Float32Array;Us=new Sa(Us.buffer),Us.set(new Sa(Fs));break}if(he!==be){Zr===1&&!O&&(he*=2,be*=2);for(var dl=new Uint8Array(Us.buffer),fu=he,iu=0,ic=1;ic1?ut.resolveTarget=this.getTextureView(be,this.gfxColorResolveToLevel[V]):ut.storeOp="store")}else{this.gpuColorAttachments.length=V,this.gfxColorAttachment.length=V,this.gfxColorResolveTo.length=V;break}}if(this.gfxDepthStencilAttachment=d.depthStencilAttachment,this.gfxDepthStencilResolveTo=d.depthStencilResolveTo,d.depthStencilAttachment){var qt=d.depthStencilAttachment,ut=this.gpuDepthStencilAttachment;ut.view=qt.gpuTextureView;var En=!!(JT(qt.format)&yf.Depth);En?(d.depthClearValue==="load"?ut.depthLoadOp="load":(ut.depthLoadOp="clear",ut.depthClearValue=d.depthClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?ut.depthStoreOp="store":ut.depthStoreOp="discard"):(ut.depthLoadOp=void 0,ut.depthStoreOp=void 0);var qn=!!(JT(qt.format)&yf.Stencil);qn?(d.stencilClearValue==="load"?ut.stencilLoadOp="load":(ut.stencilLoadOp="clear",ut.stencilClearValue=d.stencilClearValue),d.depthStencilStore||this.gfxDepthStencilResolveTo!==null?ut.stencilStoreOp="store":ut.stencilStoreOp="discard"):(ut.stencilLoadOp=void 0,ut.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=_x(d.occlusionQueryPool)?void 0:sX(d.occlusionQueryPool)},i.prototype.beginRenderPass=function(d,l){hm(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(l),this.frameCommandEncoder=d,this.gpuRenderPassEncoder=this.frameCommandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},i.prototype.flipY=function(d,l){var c=this.device.swapChainHeight;return c-d-l},i.prototype.setViewport=function(d,l,c,a,p,y){p===void 0&&(p=0),y===void 0&&(y=1),this.gpuRenderPassEncoder.setViewport(d,this.flipY(l,a),c,a,p,y)},i.prototype.setScissorRect=function(d,l,c,a){this.gpuRenderPassEncoder.setScissorRect(d,this.flipY(l,a),c,a)},i.prototype.setPipeline=function(d){var l=d,c=rC(l.gpuRenderPipeline);this.getEncoder().setPipeline(c)},i.prototype.setVertexInput=function(d,l,c){if(d!==null){var a=this.getEncoder(),p=d;c!==null&&a.setIndexBuffer(VI(c.buffer),rC(p.indexFormat),c.offset);for(var y=0;y1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.frameCommandEncoder=null},i.prototype.copyAttachment=function(d,l,c,a){hm(c.sampleCount===1);var p={texture:c.gpuTexture,mipLevel:a},y={texture:d.gpuTexture,mipLevel:l};hm(c.width>>>a===d.width>>>l),hm(c.height>>>a===d.height>>>l),hm(!!(c.usage&vy.COPY_SRC)),hm(!!(d.usage&vy.COPY_DST)),this.frameCommandEncoder.copyTextureToTexture(p,y,[d.width,d.height,1])},i}(),XU=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y=i.call(this,{id:c,device:a})||this;return y.type=km.RenderPipeline,y.isCreatingAsync=!1,y.gpuRenderPipeline=null,y.descriptor=p,y.device.createRenderPipelineInternal(y,!1),y}return d.prototype.getBindGroupLayout=function(l){return this.gpuRenderPipeline.getBindGroupLayout(l)},d}(f2),p2=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y,w,O=i.call(this,{id:c,device:a})||this;O.type=km.Sampler;var V=p.lodMinClamp,he=p.mipmapFilter===py.NO_MIP?p.lodMinClamp:p.lodMaxClamp,be=(y=p.maxAnisotropy)!==null&&y!==void 0?y:1;return be>1&&hm(p.minFilter===Jv.BILINEAR&&p.magFilter===Jv.BILINEAR&&p.mipmapFilter===py.LINEAR),O.gpuSampler=O.device.device.createSampler({addressModeU:M8(p.addressModeU),addressModeV:M8(p.addressModeV),addressModeW:M8((w=p.addressModeW)!==null&&w!==void 0?w:p.addressModeU),lodMinClamp:V,lodMaxClamp:he,minFilter:zU(p.minFilter),magFilter:zU(p.magFilter),mipmapFilter:iX(p.mipmapFilter),compare:p.compareFunction!==void 0?a3(p.compareFunction):void 0,maxAnisotropy:be}),O}return d}(f2),VM=function(i){(0,rp.ZT)(d,i);function d(l){var c=l.id,a=l.device,p=l.descriptor,y=l.skipCreate,w=l.sampleCount,O=i.call(this,{id:c,device:a})||this;O.type=km.Texture,O.flipY=!1;var V=p.format,he=p.dimension,be=p.width,ut=p.height,Pt=p.depthOrArrayLayers,qt=p.mipLevelCount,En=p.usage,qn=p.pixelStore;return O.flipY=!!(qn!=null&&qn.unpackFlipY),O.device.createTextureShared({format:V,dimension:he!=null?he:Am.TEXTURE_2D,width:be,height:ut,depthOrArrayLayers:Pt!=null?Pt:1,mipLevelCount:qt!=null?qt:1,usage:En,sampleCount:w!=null?w:1},O,y),O}return d.prototype.textureFromImageBitmapOrCanvas=function(l,c,a){for(var p=c[0].width,y=c[0].height,w={size:{width:p,height:y,depthOrArrayLayers:a},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},O=l.createTexture(w),V=0;V>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},i.prototype.queryTextureFormatSupported=function(d,l,c){if(O8(d)){if(!this.featureTextureCompressionBC)return!1;var a=ab(d);return l%a!==0||c%a!==0?!1:this.featureTextureCompressionBC}switch(d){case wu.U16_RGBA_NORM:return!1;case wu.F32_RGBA:return!1}return!0},i.prototype.queryPlatformAvailable=function(){return!0},i.prototype.queryVendorInfo=function(){return this},i.prototype.queryRenderPass=function(d){var l=d;return l.descriptor},i.prototype.queryRenderTarget=function(d){var l=d;return l},i.prototype.setResourceName=function(d,l){if(d.name=l,d.type===km.Buffer){var c=d;c.gpuBuffer.label=l}else if(d.type===km.Texture){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===km.RenderTarget){var c=d;c.gpuTexture.label=l,c.gpuTextureView.label=l}else if(d.type===km.Sampler){var c=d;c.gpuSampler.label=l}else if(d.type===km.RenderPipeline){var c=d;c.gpuRenderPipeline!==null&&(c.gpuRenderPipeline.label=l)}},i.prototype.setResourceLeakCheck=function(d,l){},i.prototype.checkForLeaks=function(){},i.prototype.programPatched=function(d){},i.prototype.pipelineQueryReady=function(d){var l=d;return l.gpuRenderPipeline!==null},i.prototype.pipelineForceReady=function(d){var l=d;this.createRenderPipelineInternal(l,!1)},i}(),pX=function(){function i(d){this.pluginOptions=d}return i.prototype.createSwapChain=function(d){return(0,rp.mG)(this,void 0,void 0,function(){var l,c,a,p,y,w,O,V;return(0,rp.Jh)(this,function(he){switch(he.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];l=null,he.label=1;case 1:return he.trys.push([1,3,,4]),c=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:c})];case 2:return l=he.sent(),[3,4];case 3:return a=he.sent(),console.log(a),[3,4];case 4:return l===null?[2,null]:(p=["depth32float-stencil8","texture-compression-bc","float32-filterable"],y=p.filter(function(be){return l.features.has(be)}),[4,l.requestDevice({requiredFeatures:y})]);case 5:if(w=he.sent(),w&&(O=this.pluginOptions.onContextLost,w.lost.then(function(){O&&O()})),w===null)return[2,null];if(V=d.getContext("webgpu"),!V)return[2,null];he.label=6;case 6:return he.trys.push([6,8,,9]),[4,BU(this.pluginOptions.shaderCompilerPath)];case 7:return he.sent(),[3,9];case 8:return he.sent(),[3,9];case 9:return[2,new $b(l,w,d,V,qK,UI&&new UI)]}})})},i}(),gX=ks.isPlainObject,mX=ks.isTypedArray,WI=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"destroyed",!1),(0,pn.Z)(this,"uniforms",{}),this.reGl=d;var c=l.vs,a=l.fs,p=l.attributes,y=l.uniforms,w=l.primitive,O=l.count,V=l.elements,he=l.depth,be=l.cull,ut=l.instances,Pt={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:l2.LOWER_LEFT,clipSpaceNearZ:KE.NEGATIVE_ONE,supportMRT:!1},qt={};this.options=l,y&&(this.uniforms=this.extractUniforms(y),Object.keys(y).forEach(function(to){qt[to]=d.prop(to)}));var En={};Object.keys(p).forEach(function(to){En[to]=p[to].get()});var qn=mr(Fv(Pt,"frag",a,null,!1)),Zr=mr(Fv(Pt,"vert",c,null,!1)),Si={attributes:En,frag:qn,uniforms:qt,vert:Zr,colorMask:d.prop("colorMask"),lineWidth:1,blend:{enable:d.prop("blend.enable"),func:d.prop("blend.func"),equation:d.prop("blend.equation"),color:d.prop("blend.color")},stencil:{enable:d.prop("stencil.enable"),mask:d.prop("stencil.mask"),func:d.prop("stencil.func"),opFront:d.prop("stencil.opFront"),opBack:d.prop("stencil.opBack")},primitive:mK[w===void 0?Fi.TRIANGLES:w]};ut&&(Si.instances=ut),O?Si.count=O:V&&(Si.elements=V.get()),this.initDepthDrawParams({depth:he},Si),this.initCullDrawParams({cull:be},Si),this.drawCommand=d(Si),this.drawParams=Si}return(0,Te.Z)(i,[{key:"updateAttributesAndElements",value:function(l,c){var a={};Object.keys(l).forEach(function(p){a[p]=l[p].get()}),this.drawParams.attributes=a,this.drawParams.elements=c.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(l){var c={};Object.keys(l).forEach(function(a){c[a]=l[a].get()}),this.drawParams.attributes=c,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(l){this.uniforms=(0,Xe.Z)((0,Xe.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l,c){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var a=(0,Xe.Z)((0,Xe.Z)({},this.uniforms),this.extractUniforms(l.uniforms||{})),p={};Object.keys(a).forEach(function(y){var w=(0,rd.Z)(a[y]);w==="boolean"||w==="number"||Array.isArray(a[y])||a[y].BYTES_PER_ELEMENT?p[y]=a[y]:p[y]=a[y].get()}),p.blend=c?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(l),p.stencil=this.getStencilDrawParams(l),p.colorMask=this.getColorMaskDrawParams(l,c),this.drawCommand(p)}}},{key:"destroy",value:function(){var l;(l=this.drawParams)===null||l===void 0||(l=l.elements)===null||l===void 0||l.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(c){c==null||c.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l,c){var a=l.depth;a&&(c.depth={enable:a.enable===void 0?!0:!!a.enable,mask:a.mask===void 0?!0:!!a.mask,func:yK[a.func||Fi.LESS],range:a.range||[0,1]})}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,a=c||{},p=a.enable,y=a.func,w=a.equation,O=a.color,V=O===void 0?[0,0,0,0]:O;return{enable:!!p,func:{srcRGB:LI[y&&y.srcRGB||Fi.SRC_ALPHA],srcAlpha:LI[y&&y.srcAlpha||Fi.SRC_ALPHA],dstRGB:LI[y&&y.dstRGB||Fi.ONE_MINUS_SRC_ALPHA],dstAlpha:LI[y&&y.dstAlpha||Fi.ONE_MINUS_SRC_ALPHA]},equation:{rgb:XT[w&&w.rgb||Fi.FUNC_ADD],alpha:XT[w&&w.alpha||Fi.FUNC_ADD]},color:V}}},{key:"getStencilDrawParams",value:function(l){var c=l.stencil,a=c||{},p=a.enable,y=a.mask,w=y===void 0?-1:y,O=a.func,V=O===void 0?{cmp:Fi.ALWAYS,ref:0,mask:-1}:O,he=a.opFront,be=he===void 0?{fail:Fi.KEEP,zfail:Fi.KEEP,zpass:Fi.KEEP}:he,ut=a.opBack,Pt=ut===void 0?{fail:Fi.KEEP,zfail:Fi.KEEP,zpass:Fi.KEEP}:ut;return{enable:!!p,mask:w,func:(0,Xe.Z)((0,Xe.Z)({},V),{},{cmp:RR[V.cmp]}),opFront:{fail:YT[be.fail],zfail:YT[be.zfail],zpass:YT[be.zpass]},opBack:{fail:YT[Pt.fail],zfail:YT[Pt.zfail],zpass:YT[Pt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(l,c){var a=l.stencil,p=a!=null&&a.enable&&a.opFront&&!c?[!1,!1,!1,!1]:[!0,!0,!0,!0];return p}},{key:"initCullDrawParams",value:function(l,c){var a=l.cull;if(a){var p=a.enable,y=a.face,w=y===void 0?Fi.BACK:y;c.cull={enable:!!p,face:kR[w]}}}},{key:"extractUniforms",value:function(l){var c=this,a={};return Object.keys(l).forEach(function(p){c.extractUniformsRecursively(p,l[p],a,"")}),a}},{key:"extractUniformsRecursively",value:function(l,c,a,p){var y=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||mX(c)||c===""||"resize"in c){a["".concat(p&&p+".").concat(l)]=c;return}gX(c)&&Object.keys(c).forEach(function(w){y.extractUniformsRecursively(w,c[w],a,"".concat(p&&p+".").concat(l))}),Array.isArray(c)&&c.forEach(function(w,O){Object.keys(w).forEach(function(V){y.extractUniformsRecursively(V,w[V],a,"".concat(p&&p+".").concat(l,"[").concat(O,"]"))})})}}]),i}(),YU=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"isDestroy",!1);var c=l.data,a=l.type,p=a===void 0?Fi.UNSIGNED_BYTE:a,y=l.width,w=l.height,O=l.flipY,V=O===void 0?!1:O,he=l.format,be=he===void 0?Fi.RGBA:he,ut=l.mipmap,Pt=ut===void 0?!1:ut,qt=l.wrapS,En=qt===void 0?Fi.CLAMP_TO_EDGE:qt,qn=l.wrapT,Zr=qn===void 0?Fi.CLAMP_TO_EDGE:qn,Si=l.aniso,to=Si===void 0?0:Si,ts=l.alignment,Qs=ts===void 0?1:ts,Fs=l.premultiplyAlpha,Us=Fs===void 0?!1:Fs,Sa=l.mag,dl=Sa===void 0?Fi.NEAREST:Sa,fu=l.min,iu=fu===void 0?Fi.NEAREST:fu,ic=l.colorSpace,Nc=ic===void 0?Fi.BROWSER_DEFAULT_WEBGL:ic,nh=l.x,Zp=nh===void 0?0:nh,hg=l.y,jg=hg===void 0?0:hg,U0=l.copy,dm=U0===void 0?!1:U0;this.width=y,this.height=w;var a1={width:y,height:w,type:MM[p],format:o8[be],wrapS:PM[En],wrapT:PM[Zr],mag:fU[dl],min:fU[iu],alignment:Qs,flipY:V,colorSpace:pU[Nc],premultiplyAlpha:Us,aniso:to,x:Zp,y:jg,copy:dm};c&&(a1.data=c),typeof Pt=="number"?a1.mipmap=vK[Pt]:typeof Pt=="boolean"&&(a1.mipmap=Pt),this.texture=d.texture(a1)}return(0,Te.Z)(i,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(l)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(l){var c=l.width,a=l.height;this.texture.resize(c,a),this.width=c,this.height=a}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),i}(),qU,JU,QU=(qU=(0,xr.b2)(),qU(JU=function(){function i(){var d=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"uniformBuffers",[]),(0,pn.Z)(this,"queryVerdorInfo",function(){return"WebGL1"}),(0,pn.Z)(this,"createModel",function(l){return new WI(d.gl,l)}),(0,pn.Z)(this,"createAttribute",function(l){return new i8(d.gl,l)}),(0,pn.Z)(this,"createBuffer",function(l){return new _K(d.gl,l)}),(0,pn.Z)(this,"createElements",function(l){return new qT(d.gl,l)}),(0,pn.Z)(this,"createTexture2D",function(l){return new YU(d.gl,l)}),(0,pn.Z)(this,"createFramebuffer",function(l){return new s8(d.gl,l)}),(0,pn.Z)(this,"useFramebuffer",function(l,c){d.gl({framebuffer:l?l.get():null})(c)}),(0,pn.Z)(this,"useFramebufferAsync",function(){var l=(0,al.Z)(mo().mark(function c(a,p){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:d.gl({framebuffer:a?a.get():null})(p);case 1:case"end":return w.stop()}},c)}));return function(c,a){return l.apply(this,arguments)}}()),(0,pn.Z)(this,"clear",function(l){var c,a=l.color,p=l.depth,y=l.stencil,w=l.framebuffer,O=w===void 0?null:w,V={color:a,depth:p,stencil:y};V.framebuffer=O===null?O:O.get(),(c=d.gl)===null||c===void 0||c.clear(V)}),(0,pn.Z)(this,"viewport",function(l){var c=l.x,a=l.y,p=l.width,y=l.height;d.gl._gl.viewport(c,a,p,y),d.width=p,d.height=y,d.gl._refresh()}),(0,pn.Z)(this,"readPixels",function(l){var c=l.framebuffer,a=l.x,p=l.y,y=l.width,w=l.height,O={x:a,y:p,width:y,height:w};return c&&(O.framebuffer=c.get()),d.gl.read(O)}),(0,pn.Z)(this,"readPixelsAsync",function(){var l=(0,al.Z)(mo().mark(function c(a){return mo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",d.readPixels(a));case 1:case"end":return y.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()),(0,pn.Z)(this,"getViewportSize",function(){return{width:d.gl._gl.drawingBufferWidth,height:d.gl._gl.drawingBufferHeight}}),(0,pn.Z)(this,"getContainer",function(){var l;return(l=d.canvas)===null||l===void 0?void 0:l.parentElement}),(0,pn.Z)(this,"getCanvas",function(){return d.canvas}),(0,pn.Z)(this,"getGLContext",function(){return d.gl._gl}),(0,pn.Z)(this,"destroy",function(){var l;d.canvas=null,(l=d.gl)===null||l===void 0||(l=l._gl)===null||l===void 0||(l=l.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),d.gl.destroy(),d.gl=null})}return(0,Te.Z)(i,[{key:"init",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p,y){var w=this;return mo().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(this.canvas=a,!y){V.next=5;break}this.gl=y,V.next=8;break;case 5:return V.next=7,new Promise(function(he,be){hU()({canvas:w.canvas,attributes:{alpha:!0,antialias:p.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:p.preserveDrawingBuffer,stencil:p.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Pt,qt){(Pt||!qt)&&be(Pt),he(qt)}})});case 7:this.gl=V.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return V.stop()}},c,this)}));function l(c,a,p){return d.apply(this,arguments)}return l}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(l){return!!this.getGLContext().getExtension(l)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var l=this.getGLContext();l.disable(l.CULL_FACE)}},{key:"setDirty",value:function(l){this.isDirty=l}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),i}())||JU),F8=function(){function i(d,l){(0,vt.Z)(this,i);var c=l.buffer,a=l.offset,p=l.stride,y=l.normalized,w=l.size,O=l.divisor,V=l.shaderLocation;this.buffer=c,this.attribute={shaderLocation:V,buffer:c.get(),offset:a||0,stride:p||0,normalized:y||!1,divisor:O||0},w&&(this.attribute.size=w)}return(0,Te.Z)(i,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(l){this.buffer.subData(l)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),i}(),gw,CS,ZI,$M,WM,mw,ZM,u3,g_,vw,yw,nk=(gw={},(0,pn.Z)(gw,Fi.FLOAT,Float32Array),(0,pn.Z)(gw,Fi.UNSIGNED_BYTE,Uint8Array),(0,pn.Z)(gw,Fi.SHORT,Int16Array),(0,pn.Z)(gw,Fi.UNSIGNED_SHORT,Uint16Array),(0,pn.Z)(gw,Fi.INT,Int32Array),(0,pn.Z)(gw,Fi.UNSIGNED_INT,Uint32Array),gw),jM=(CS={},(0,pn.Z)(CS,Fi.POINTS,U1.POINTS),(0,pn.Z)(CS,Fi.LINES,U1.LINES),(0,pn.Z)(CS,Fi.LINE_LOOP,U1.LINES),(0,pn.Z)(CS,Fi.LINE_STRIP,U1.LINE_STRIP),(0,pn.Z)(CS,Fi.TRIANGLES,U1.TRIANGLES),(0,pn.Z)(CS,Fi.TRIANGLE_FAN,U1.TRIANGLES),(0,pn.Z)(CS,Fi.TRIANGLE_STRIP,U1.TRIANGLE_STRIP),CS),rk=(ZI={},(0,pn.Z)(ZI,1,wu.F32_R),(0,pn.Z)(ZI,2,wu.F32_RG),(0,pn.Z)(ZI,3,wu.F32_RGB),(0,pn.Z)(ZI,4,wu.F32_RGBA),ZI),eV=($M={},(0,pn.Z)($M,Fi.STATIC_DRAW,Fb.STATIC),(0,pn.Z)($M,Fi.DYNAMIC_DRAW,Fb.DYNAMIC),(0,pn.Z)($M,Fi.STREAM_DRAW,Fb.DYNAMIC),$M),ik=(WM={},(0,pn.Z)(WM,Fi.REPEAT,ob.REPEAT),(0,pn.Z)(WM,Fi.CLAMP_TO_EDGE,ob.CLAMP_TO_EDGE),(0,pn.Z)(WM,Fi.MIRRORED_REPEAT,ob.MIRRORED_REPEAT),WM),yy=(mw={},(0,pn.Z)(mw,Fi.NEVER,Em.NEVER),(0,pn.Z)(mw,Fi.ALWAYS,Em.ALWAYS),(0,pn.Z)(mw,Fi.LESS,Em.LESS),(0,pn.Z)(mw,Fi.LEQUAL,Em.LEQUAL),(0,pn.Z)(mw,Fi.GREATER,Em.GREATER),(0,pn.Z)(mw,Fi.GEQUAL,Em.GEQUAL),(0,pn.Z)(mw,Fi.EQUAL,Em.EQUAL),(0,pn.Z)(mw,Fi.NOTEQUAL,Em.NOTEQUAL),mw),vX=(ZM={},(0,pn.Z)(ZM,Fi.FRONT,Nb.FRONT),(0,pn.Z)(ZM,Fi.BACK,Nb.BACK),ZM),tV=(u3={},(0,pn.Z)(u3,Fi.FUNC_ADD,Ny.ADD),(0,pn.Z)(u3,Fi.MIN_EXT,Ny.MIN),(0,pn.Z)(u3,Fi.MAX_EXT,Ny.MAX),(0,pn.Z)(u3,Fi.FUNC_SUBTRACT,Ny.SUBSTRACT),(0,pn.Z)(u3,Fi.FUNC_REVERSE_SUBTRACT,Ny.REVERSE_SUBSTRACT),u3),ok=(g_={},(0,pn.Z)(g_,Fi.ZERO,jm.ZERO),(0,pn.Z)(g_,Fi.ONE,jm.ONE),(0,pn.Z)(g_,Fi.SRC_COLOR,jm.SRC),(0,pn.Z)(g_,Fi.ONE_MINUS_SRC_COLOR,jm.ONE_MINUS_SRC),(0,pn.Z)(g_,Fi.SRC_ALPHA,jm.SRC_ALPHA),(0,pn.Z)(g_,Fi.ONE_MINUS_SRC_ALPHA,jm.ONE_MINUS_SRC_ALPHA),(0,pn.Z)(g_,Fi.DST_COLOR,jm.DST),(0,pn.Z)(g_,Fi.ONE_MINUS_DST_COLOR,jm.ONE_MINUS_DST),(0,pn.Z)(g_,Fi.DST_ALPHA,jm.DST_ALPHA),(0,pn.Z)(g_,Fi.ONE_MINUS_DST_ALPHA,jm.ONE_MINUS_DST_ALPHA),(0,pn.Z)(g_,Fi.CONSTANT_COLOR,jm.CONST),(0,pn.Z)(g_,Fi.ONE_MINUS_CONSTANT_COLOR,jm.ONE_MINUS_CONSTANT),(0,pn.Z)(g_,Fi.CONSTANT_ALPHA,jm.CONST),(0,pn.Z)(g_,Fi.ONE_MINUS_CONSTANT_ALPHA,jm.ONE_MINUS_CONSTANT),(0,pn.Z)(g_,Fi.SRC_ALPHA_SATURATE,jm.SRC_ALPHA_SATURATE),g_),jI=(vw={},(0,pn.Z)(vw,Fi.REPLACE,Uv.REPLACE),(0,pn.Z)(vw,Fi.KEEP,Uv.KEEP),(0,pn.Z)(vw,Fi.ZERO,Uv.ZERO),(0,pn.Z)(vw,Fi.INVERT,Uv.INVERT),(0,pn.Z)(vw,Fi.INCR,Uv.INCREMENT_CLAMP),(0,pn.Z)(vw,Fi.DECR,Uv.DECREMENT_CLAMP),(0,pn.Z)(vw,Fi.INCR_WRAP,Uv.INCREMENT_WRAP),(0,pn.Z)(vw,Fi.DECR_WRAP,Uv.DECREMENT_WRAP),vw),yX=(yw={},(0,pn.Z)(yw,Fi.ALWAYS,Em.ALWAYS),(0,pn.Z)(yw,Fi.EQUAL,Em.EQUAL),(0,pn.Z)(yw,Fi.GEQUAL,Em.GEQUAL),(0,pn.Z)(yw,Fi.GREATER,Em.GREATER),(0,pn.Z)(yw,Fi.LEQUAL,Em.LEQUAL),(0,pn.Z)(yw,Fi.LESS,Em.LESS),(0,pn.Z)(yw,Fi.NEVER,Em.NEVER),(0,pn.Z)(yw,Fi.NOTEQUAL,Em.NOTEQUAL),yw),_X={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function sk(i){return Object.prototype.toString.call(i)in _X}function HM(i,d){for(var l=i.length,c=Math.ceil(l/3),a=l+c,p=new Float32Array(a),y=0;y=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function e_(i,d){if(i){if(typeof i=="string")return B8(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return B8(i,d)}}function B8(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l1&&arguments[1]!==void 0?arguments[1]:0;return i+=d,i+=i<<10,i+=i>>>6,i>>>0}function nV(i){return i+=i<<3,i^=i>>>11,i+=i<<15,i>>>0}function rV(i){return 0}var bX=(0,Te.Z)(function i(){(0,vt.Z)(this,i),(0,pn.Z)(this,"keys",[]),(0,pn.Z)(this,"values",[])}),ak=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"buckets",new Map),this.keyEqualFunc=d,this.keyHashFunc=l}return(0,Te.Z)(i,[{key:"findBucketIndex",value:function(l,c){for(var a=0;a=0)){w.next=12;break}return w.next=9,a.values[p];case 9:p--,w.next=6;break;case 12:w.next=3;break;case 14:w.next=19;break;case 16:w.prev=16,w.t0=w.catch(1),l.e(w.t0);case 19:return w.prev=19,l.f(),w.finish(19);case 22:case"end":return w.stop()}},d,this,[[1,16,19,22]])})}]),i}();function lk(i,d){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=xX(i))||d&&i&&typeof i.length=="number"){l&&(i=l);var c=0,a=function(){};return{s:a,n:function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}},e:function(V){throw V},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,w;return{s:function(){l=l.call(i)},n:function(){var V=l.next();return p=V.done,V},e:function(V){y=!0,w=V},f:function(){try{!p&&l.return!=null&&l.return()}finally{if(y)throw w}}}}function xX(i,d){if(i){if(typeof i=="string")return iV(i,d);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return iV(i,d)}}function iV(i,d){(d==null||d>i.length)&&(d=i.length);for(var l=0,c=new Array(d);l0}),c=this.device.createBindings(p),this.bindingsCache.add(p,c)}return c}},{key:"createRenderPipeline",value:function(l){var c=this.renderPipelinesCache.get(l);if(c===null){var a=_8(l);a.colorAttachmentFormats=a.colorAttachmentFormats.filter(function(p){return p}),c=this.device.createRenderPipeline(a),this.renderPipelinesCache.add(a,c)}return c}},{key:"createInputLayout",value:function(l){l.vertexBufferDescriptors=l.vertexBufferDescriptors.filter(function(p){return!!p});var c=this.inputLayoutsCache.get(l);if(c===null){var a=NK(l);c=this.device.createInputLayout(a),this.inputLayoutsCache.add(a,c)}return c}},{key:"createProgram",value:function(l){var c=this.programCache.get(l);if(c===null){var a=TX(l);c=this.device.createProgram(l),this.programCache.add(a,c)}return c}},{key:"destroy",value:function(){var l=lk(this.bindingsCache.values()),c;try{for(l.s();!(c=l.n()).done;){var a=c.value;a.destroy()}}catch(qt){l.e(qt)}finally{l.f()}var p=lk(this.renderPipelinesCache.values()),y;try{for(p.s();!(y=p.n()).done;){var w=y.value;w.destroy()}}catch(qt){p.e(qt)}finally{p.f()}var O=lk(this.inputLayoutsCache.values()),V;try{for(O.s();!(V=O.n()).done;){var he=V.value;he.destroy()}}catch(qt){O.e(qt)}finally{O.f()}var be=lk(this.programCache.values()),ut;try{for(be.s();!(ut=be.n()).done;){var Pt=ut.value;Pt.destroy()}}catch(qt){be.e(qt)}finally{be.f()}this.bindingsCache.clear(),this.renderPipelinesCache.clear(),this.inputLayoutsCache.clear(),this.programCache.clear()}}]),i}(),IX=function(){function i(d,l){(0,vt.Z)(this,i);var c=l.data,a=l.type,p=l.count,y=p===void 0?0:p,w;sk(c)?w=c:w=new nk[this.type||Fi.UNSIGNED_INT](c),this.type=a,this.count=y,this.indexBuffer=d.createBuffer({viewOrSize:w,usage:_v.INDEX})}return(0,Te.Z)(i,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(l){var c=l.data,a;sk(c)?a=c:a=new nk[this.type||Fi.UNSIGNED_INT](c),this.indexBuffer.setSubData(0,new Uint8Array(a.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),i}();function sV(i){return!!(i&&i.texture)}var aV=function(){function i(d,l){(0,vt.Z)(this,i),(0,pn.Z)(this,"isDestroy",!1),this.device=d,this.options=l;var c=l.wrapS,a=c===void 0?Fi.CLAMP_TO_EDGE:c,p=l.wrapT,y=p===void 0?Fi.CLAMP_TO_EDGE:p,w=l.aniso,O=l.mipmap,V=O===void 0?!1:O,he=l.mag,be=he===void 0?Fi.NEAREST:he,ut=l.min,Pt=ut===void 0?Fi.NEAREST:ut;this.createTexture(l),this.sampler=d.createSampler({addressModeU:ik[a],addressModeV:ik[y],minFilter:Pt===Fi.NEAREST?Jv.POINT:Jv.BILINEAR,magFilter:be===Fi.NEAREST?Jv.POINT:Jv.BILINEAR,mipmapFilter:py.NO_MIP,maxAnisotropy:w})}return(0,Te.Z)(i,[{key:"createTexture",value:function(l){var c=l.type,a=c===void 0?Fi.UNSIGNED_BYTE:c,p=l.width,y=l.height,w=l.flipY,O=w===void 0?!1:w,V=l.format,he=V===void 0?Fi.RGBA:V,be=l.aniso,ut=l.alignment,Pt=ut===void 0?1:ut,qt=l.usage,En=qt===void 0?$1.SAMPLED:qt,qn=l.unorm,Zr=qn===void 0?!1:qn,Si=l.label,to=l.data;this.width=p,this.height=y;var ts=wu.U8_RGBA_RT;if(a===Fi.UNSIGNED_BYTE&&he===Fi.RGBA)ts=Zr?wu.U8_RGBA_NORM:wu.U8_RGBA_RT;else if(a===Fi.UNSIGNED_BYTE&&he===Fi.LUMINANCE)ts=wu.U8_LUMINANCE;else if(a===Fi.FLOAT&&he===Fi.RGB)this.device.queryVendorInfo().platformString==="WebGPU"?(to&&(to=HM(to,0)),ts=wu.F32_RGBA):ts=wu.F32_RGB;else if(a===Fi.FLOAT&&he===Fi.RGBA)ts=wu.F32_RGBA;else if(a===Fi.FLOAT&&he===Fi.RED)ts=wu.F32_R;else throw new Error("create texture error, type: ".concat(a,", format: ").concat(he));this.texture=this.device.createTexture({format:ts,width:p,height:y,usage:En===$1.SAMPLED?qy.SAMPLED:qy.RENDER_TARGET,pixelStore:{unpackFlipY:O,packAlignment:Pt},mipLevelCount:1}),Si&&this.device.setResourceName(this.texture,Si),to&&this.texture.setImageData([to])}},{key:"get",value:function(){return this.texture}},{key:"update",value:function(l){var c=l.data;this.texture.setImageData([c])}},{key:"bind",value:function(){}},{key:"resize",value:function(l){var c=l.width,a=l.height;(this.width!==c||this.height!==a)&&this.destroy(),this.options.width=c,this.options.height=a,this.createTexture(this.options),this.isDestroy=!1}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy&&!this.texture.destroyed){var l;(l=this.texture)===null||l===void 0||l.destroy()}this.isDestroy=!0}}]),i}(),lV=function(){function i(d,l){(0,vt.Z)(this,i),this.device=d,this.options=l,this.createColorRenderTarget(),this.createDepthRenderTarget()}return(0,Te.Z)(i,[{key:"createColorRenderTarget",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,c=this.options,a=c.width,p=c.height,y=c.color;y&&(sV(y)?(l&&y.resize({width:a,height:p}),this.colorTexture=y.get(),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=y.width,this.height=y.height):a&&p&&(this.colorTexture=this.device.createTexture({format:wu.U8_RGBA_RT,usage:qy.RENDER_TARGET,width:a,height:p}),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=a,this.height=p))}},{key:"createDepthRenderTarget",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,c=this.options,a=c.width,p=c.height,y=c.depth;y&&(sV(y)?(l&&y.resize({width:a,height:p}),this.depthTexture=y.get(),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=y.width,this.height=y.height):a&&p&&(this.depthTexture=this.device.createTexture({format:wu.D24_S8,usage:qy.RENDER_TARGET,width:a,height:p}),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=a,this.height=p))}},{key:"get",value:function(){return this.colorRenderTarget}},{key:"destroy",value:function(){var l,c;(l=this.colorRenderTarget)===null||l===void 0||l.destroy(),(c=this.depthRenderTarget)===null||c===void 0||c.destroy()}},{key:"resize",value:function(l){var c=l.width,a=l.height;(this.width!==c||this.height!==a)&&(this.destroy(),this.colorTexture.destroyed=!0,this.depthTexture.destroyed=!0,this.options.width=c,this.options.height=a,this.createColorRenderTarget(!0),this.createDepthRenderTarget(!0))}}]),i}(),LX=ks.isPlainObject,MX=ks.isTypedArray,Lee=function(){function i(d,l,c){var a=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"destroyed",!1),(0,pn.Z)(this,"uniforms",{}),(0,pn.Z)(this,"vertexBuffers",[]),this.device=d,this.options=l,this.service=c;var p=l.vs,y=l.fs,w=l.attributes,O=l.uniforms,V=l.count,he=l.elements,be=l.diagnosticDerivativeUniformityEnabled;this.options=l;var ut=be?"":this.service.viewportOrigin===l2.UPPER_LEFT?"diagnostic(off,derivative_uniformity);":"";this.program=c.renderCache.createProgram({vertex:{glsl:p},fragment:{glsl:y,postprocess:function(Zr){return ut+Zr}}}),O&&(this.uniforms=this.extractUniforms(O));var Pt=[],qt=0;Object.keys(w).forEach(function(qn){var Zr=w[qn],Si=Zr.get();a.vertexBuffers.push(Si.get());var to=Zr.attribute,ts=to.offset,Qs=ts===void 0?0:ts,Fs=to.stride,Us=Fs===void 0?0:Fs,Sa=to.size,dl=Sa===void 0?1:Sa,fu=to.divisor,iu=fu===void 0?0:fu,ic=to.shaderLocation,Nc=ic===void 0?0:ic;Pt.push({arrayStride:Us||dl*4,stepMode:GE.VERTEX,attributes:[{format:rk[dl],shaderLocation:Nc,offset:Qs,divisor:iu}]}),qt=Si.size/dl}),V||(this.options.count=qt),he&&(this.indexBuffer=he.get());var En=c.renderCache.createInputLayout({vertexBufferDescriptors:Pt,indexBufferFormat:he?wu.U32_R:null,program:this.program});this.inputLayout=En,this.pipeline=this.createPipeline(l)}return(0,Te.Z)(i,[{key:"createPipeline",value:function(l,c){var a=l.primitive,p=a===void 0?Fi.TRIANGLES:a,y=l.depth,w=l.cull,O=l.blend,V=l.stencil,he=this.initDepthDrawParams({depth:y}),be=!!(he&&he.enable),ut=this.initCullDrawParams({cull:w}),Pt=!!(ut&&ut.enable),qt=this.getBlendDrawParams({blend:O}),En=!!(qt&&qt.enable),qn=this.getStencilDrawParams({stencil:V}),Zr=!!(qn&&qn.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:jM[p],colorAttachmentFormats:[wu.U8_RGBA_RT],depthStencilAttachmentFormat:wu.D24_S8,megaStateDescriptor:{attachmentsState:[c?{channelWriteMask:gy.ALL,rgbBlendState:{blendMode:Ny.ADD,blendSrcFactor:jm.ONE,blendDstFactor:jm.ZERO},alphaBlendState:{blendMode:Ny.ADD,blendSrcFactor:jm.ONE,blendDstFactor:jm.ZERO}}:{channelWriteMask:Zr&&qn.opFront.zpass===Uv.REPLACE?gy.NONE:gy.ALL,rgbBlendState:{blendMode:En&&qt.equation.rgb||Ny.ADD,blendSrcFactor:En&&qt.func.srcRGB||jm.SRC_ALPHA,blendDstFactor:En&&qt.func.dstRGB||jm.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:En&&qt.equation.alpha||Ny.ADD,blendSrcFactor:En&&qt.func.srcAlpha||jm.ONE,blendDstFactor:En&&qt.func.dstAlpha||jm.ONE}}],blendConstant:En?RM:void 0,depthWrite:be,depthCompare:be&&he.func||Em.LESS,cullMode:Pt&&ut.face||Nb.NONE,stencilWrite:Zr,stencilFront:{compare:Zr?qn.func.cmp:Em.ALWAYS,passOp:qn.opFront.zpass,failOp:qn.opFront.fail,depthFailOp:qn.opFront.zfail,mask:qn.opFront.mask},stencilBack:{compare:Zr?qn.func.cmp:Em.ALWAYS,passOp:qn.opBack.zpass,failOp:qn.opBack.fail,depthFailOp:qn.opBack.zfail,mask:qn.opBack.mask}}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(l){this.uniforms=(0,Xe.Z)((0,Xe.Z)({},this.uniforms),this.extractUniforms(l))}},{key:"draw",value:function(l,c){var a=this,p=(0,Xe.Z)((0,Xe.Z)({},this.options),l),y=p.count,w=y===void 0?0:y,O=p.instances,V=p.elements,he=p.uniforms,be=he===void 0?{}:he,ut=p.uniformBuffers,Pt=p.textures;this.uniforms=(0,Xe.Z)((0,Xe.Z)({},this.uniforms),this.extractUniforms(be));var qt=this.service,En=qt.renderPass,qn=qt.currentFramebuffer,Zr=qt.width,Si=qt.height,to=qt.renderCache;this.pipeline=this.createPipeline(p,c);var ts=this.service.device,Qs=ts.swapChainHeight;if(ts.swapChainHeight=(qn==null?void 0:qn.height)||Si,En.setViewport(0,0,(qn==null?void 0:qn.width)||Zr,(qn==null?void 0:qn.height)||Si),ts.swapChainHeight=Qs,En.setPipeline(this.pipeline),En.setStencilReference(1),En.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(Us){return{buffer:Us}}),V?{buffer:this.indexBuffer,offset:0}:null),ut&&(this.bindings=to.createBindings({pipeline:this.pipeline,uniformBufferBindings:ut.map(function(Us,Sa){var dl=Us;return{binding:Sa,buffer:dl.get(),size:dl.size}}),samplerBindings:Pt==null?void 0:Pt.map(function(Us){return{texture:Us.texture,sampler:Us.sampler}})})),this.bindings&&(En.setBindings(this.bindings),Object.keys(this.uniforms).forEach(function(Us){var Sa=a.uniforms[Us];Sa instanceof aV?a.uniforms[Us]=Sa.get():Sa instanceof lV&&(a.uniforms[Us]=Sa.get().texture)}),this.program.setUniformsLegacy(this.uniforms)),V){var Fs=V.count;Fs===0?En.draw(w,O):En.drawIndexed(Fs,O)}else En.draw(w,O)}},{key:"destroy",value:function(){var l,c,a;this.program.destroy(),(l=this.vertexBuffers)===null||l===void 0||l.forEach(function(p){return p.destroy()}),(c=this.indexBuffer)===null||c===void 0||c.destroy(),(a=this.bindings)===null||a===void 0||a.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(l){var c=l.depth;if(c)return{enable:c.enable===void 0?!0:!!c.enable,mask:c.mask===void 0?!0:!!c.mask,func:yy[c.func||Fi.LESS],range:c.range||[0,1]}}},{key:"getBlendDrawParams",value:function(l){var c=l.blend,a=c||{},p=a.enable,y=a.func,w=a.equation,O=a.color,V=O===void 0?[0,0,0,0]:O;return{enable:!!p,func:{srcRGB:ok[y&&y.srcRGB||Fi.SRC_ALPHA],srcAlpha:ok[y&&y.srcAlpha||Fi.SRC_ALPHA],dstRGB:ok[y&&y.dstRGB||Fi.ONE_MINUS_SRC_ALPHA],dstAlpha:ok[y&&y.dstAlpha||Fi.ONE_MINUS_SRC_ALPHA]},equation:{rgb:tV[w&&w.rgb||Fi.FUNC_ADD],alpha:tV[w&&w.alpha||Fi.FUNC_ADD]},color:V}}},{key:"getStencilDrawParams",value:function(l){var c=l.stencil,a=c||{},p=a.enable,y=a.mask,w=y===void 0?4294967295:y,O=a.func,V=O===void 0?{cmp:Fi.ALWAYS,ref:0,mask:4294967295}:O,he=a.opFront,be=he===void 0?{fail:Fi.KEEP,zfail:Fi.KEEP,zpass:Fi.KEEP}:he,ut=a.opBack,Pt=ut===void 0?{fail:Fi.KEEP,zfail:Fi.KEEP,zpass:Fi.KEEP}:ut;return{enable:!!p,mask:w,func:(0,Xe.Z)((0,Xe.Z)({},V),{},{cmp:yX[V.cmp]}),opFront:{fail:jI[be.fail],zfail:jI[be.zfail],zpass:jI[be.zpass],mask:V.mask},opBack:{fail:jI[Pt.fail],zfail:jI[Pt.zfail],zpass:jI[Pt.zpass],mask:V.mask}}}},{key:"initCullDrawParams",value:function(l){var c=l.cull;if(c){var a=c.enable,p=c.face,y=p===void 0?Fi.BACK:p;return{enable:!!a,face:vX[y]}}}},{key:"extractUniforms",value:function(l){var c=this,a={};return Object.keys(l).forEach(function(p){c.extractUniformsRecursively(p,l[p],a,"")}),a}},{key:"extractUniformsRecursively",value:function(l,c,a,p){var y=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||MX(c)||c===""||"resize"in c){a["".concat(p&&p+".").concat(l)]=c;return}LX(c)&&Object.keys(c).forEach(function(w){y.extractUniformsRecursively(w,c[w],a,"".concat(p&&p+".").concat(l))}),Array.isArray(c)&&c.forEach(function(w,O){Object.keys(w).forEach(function(V){y.extractUniformsRecursively(V,w[V],a,"".concat(p&&p+".").concat(l,"[").concat(O,"]"))})})}}]),i}();function xx(i){return typeof WebGL2RenderingContext!="undefined"&&i instanceof WebGL2RenderingContext?!0:!!(i&&i._version===2)}var d3,uk,Wb=ks.isUndefined,z8=(d3=(0,xr.b2)(),d3(uk=function(){function i(){var d=this;(0,vt.Z)(this,i),(0,pn.Z)(this,"uniformBuffers",[]),(0,pn.Z)(this,"queryVerdorInfo",function(){return d.device.queryVendorInfo().platformString}),(0,pn.Z)(this,"createModel",function(l){return new Lee(d.device,l,d)}),(0,pn.Z)(this,"createAttribute",function(l){return new F8(d.device,l)}),(0,pn.Z)(this,"createBuffer",function(l){return new Fy(d.device,l)}),(0,pn.Z)(this,"createElements",function(l){return new IX(d.device,l)}),(0,pn.Z)(this,"createTexture2D",function(l){return new aV(d.device,l)}),(0,pn.Z)(this,"createFramebuffer",function(l){return new lV(d.device,l)}),(0,pn.Z)(this,"useFramebuffer",function(l,c){d.currentFramebuffer=l,d.beginFrame(),c(),d.endFrame(),d.currentFramebuffer=null}),(0,pn.Z)(this,"useFramebufferAsync",function(){var l=(0,al.Z)(mo().mark(function c(a,p){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return d.currentFramebuffer=a,d.preRenderPass=d.renderPass,d.beginFrame(),w.next=5,p();case 5:d.endFrame(),d.currentFramebuffer=null,d.renderPass=d.preRenderPass;case 8:case"end":return w.stop()}},c)}));return function(c,a){return l.apply(this,arguments)}}()),(0,pn.Z)(this,"clear",function(l){var c=l.color,a=l.depth,p=l.stencil,y=l.framebuffer,w=y===void 0?null:y;if(w)w.clearOptions={color:c,depth:a,stencil:p};else{var O=d.queryVerdorInfo();if(O==="WebGL1"){var V=d.getGLContext();Wb(p)?Wb(a)||(V.clearDepth(a),V.clear(V.DEPTH_BUFFER_BIT)):(V.clearStencil(p),V.clear(V.STENCIL_BUFFER_BIT))}else if(O==="WebGL2"){var he=d.getGLContext();Wb(p)?Wb(a)||he.clearBufferfv(he.DEPTH,0,[a]):he.clearBufferiv(he.STENCIL,0,[p])}}}),(0,pn.Z)(this,"viewport",function(l){var c=l.width,a=l.height;d.swapChain.configureSwapChain(c,a),d.createMainColorDepthRT(c,a),d.width=c,d.height=a}),(0,pn.Z)(this,"readPixels",function(l){var c=l.framebuffer,a=l.x,p=l.y,y=l.width,w=l.height,O=d.device.createReadback(),V=c.colorTexture,he=O.readTextureSync(V,a,d.viewportOrigin===l2.LOWER_LEFT?p:d.height-p,y,w,new Uint8Array(y*w*4));return O.destroy(),he}),(0,pn.Z)(this,"readPixelsAsync",function(){var l=(0,al.Z)(mo().mark(function c(a){var p,y,w,O,V,he,be,ut,Pt,qt;return mo().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return p=a.framebuffer,y=a.x,w=a.y,O=a.width,V=a.height,he=d.device.createReadback(),be=p.colorTexture,qn.next=5,he.readTexture(be,y,d.viewportOrigin===l2.LOWER_LEFT?w:d.height-w,O,V,new Uint8Array(O*V*4));case 5:if(ut=qn.sent,d.viewportOrigin!==l2.LOWER_LEFT)for(Pt=0;Pt1&&arguments[1]!==void 0?arguments[1]:{};return(0,vt.Z)(this,l),a=d.call(this),(0,pn.Z)((0,eo.Z)(a),"isEnable",!1),(0,pn.Z)((0,eo.Z)(a),"onDragStart",function(y){a.box.style.display="block",a.startEvent=a.endEvent=y,a.syncBoxBound(),a.emit("selectstart",a.getLngLatBox(),a.startEvent,a.endEvent)}),(0,pn.Z)((0,eo.Z)(a),"onDragging",function(y){a.endEvent=y,a.syncBoxBound(),a.emit("selecting",a.getLngLatBox(),a.startEvent,a.endEvent)}),(0,pn.Z)((0,eo.Z)(a),"onDragEnd",function(y){a.endEvent=y,a.box.style.display="none",a.emit("selectend",a.getLngLatBox(),a.startEvent,a.endEvent)}),a.scene=c,a.options=p,a}return(0,Te.Z)(l,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var a=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var p=va("div",void 0,this.container);p.classList.add("l7-select-box"),a&&p.classList.add(a),p.style.display="none",this.box=p}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var a=this.startEvent,p=a.x,y=a.y,w=this.endEvent,O=w.x,V=w.y,he=Math.min(p,O),be=Math.min(y,V),ut=Math.abs(p-O),Pt=Math.abs(y-V);this.box.style.top="".concat(be,"px"),this.box.style.left="".concat(he,"px"),this.box.style.width="".concat(ut,"px"),this.box.style.height="".concat(Pt,"px")}},{key:"getLngLatBox",value:function(){var a=this.startEvent.lngLat,p=a.lng,y=a.lat,w=this.endEvent.lngLat,O=w.lng,V=w.lat;return Oc([[p,y],[O,V]])}}]),l}(Ic.EventEmitter),RX=function(){function i(d){(0,vt.Z)(this,i);var l=d.id,c=d.map,a=d.canvas,p=d.renderer,y=p===void 0?"regl":p,w=HS();this.container=w,c.setContainer(w,l,a),w.bind(In.IRendererService).to(y==="regl"?QU:z8).inSingletonScope(),this.sceneService=w.get(In.ISceneService),this.mapService=w.get(In.IMapService),this.iconService=w.get(In.IIconService),this.fontService=w.get(In.IFontService),this.controlService=w.get(In.IControlService),this.layerService=w.get(In.ILayerService),this.debugService=w.get(In.IDebugService),this.debugService.setEnable(d.debug),this.markerService=w.get(In.IMarkerService),this.interactionService=w.get(In.IInteractionService),this.popupService=w.get(In.IPopupService),this.boxSelect=new PX(this,{}),this.initComponent(l),this.sceneService.init(d),this.initControl()}return(0,Te.Z)(i,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var d=(0,al.Z)(mo().mark(function c(a){return mo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",this.sceneService.exportPng(a));case 1:case"end":return y.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"exportMap",value:function(){var d=(0,al.Z)(mo().mark(function c(a){return mo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",this.sceneService.exportPng(a));case 1:case"end":return y.stop()}},c,this)}));function l(c){return d.apply(this,arguments)}return l}()},{key:"registerRenderService",value:function(l){var c=this;if(this.sceneService.loaded){var a=new l(this);a.init()}else this.on("loaded",function(){var p=new l(c);p.init()})}},{key:"setBgColor",value:function(l){this.mapService.setBgColor(l)}},{key:"addLayer",value:function(l){var c=this,a=Cb(this.container);if(l.setContainer(a,this.container),this.sceneService.addLayer(l),l.inited){var p=this.initMask(l);this.addMask(p,l.id)}else l.on("inited",function(){var y=c.initMask(l);c.addMask(y,l.id)})}},{key:"initMask",value:function(l){var c=l.getLayerConfig(),a=c.mask,p=c.maskfence,y=c.maskColor,w=y===void 0?"#000":y,O=c.maskOpacity,V=O===void 0?0:O;if(!(!a||!p)){var he=new eN().source(p).shape("fill").style({color:w,opacity:V});return he}}},{key:"addMask",value:function(l,c){if(l){var a=this.getLayer(c);if(a){var p=Cb(this.container);l.setContainer(p,this.container),a.addMaskLayer(l),this.sceneService.addMask(l)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(l){return this.layerService.getLayer(l)}},{key:"getLayerByName",value:function(l){return this.layerService.getLayerByName(l)}},{key:"removeLayer",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.layerService.remove(a,p);case 2:case"end":return w.stop()}},c,this)}));function l(c,a){return d.apply(this,arguments)}return l}()},{key:"removeAllLayer",value:function(){var d=(0,al.Z)(mo().mark(function c(){return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.layerService.removeAllLayers();case 2:case"end":return p.stop()}},c,this)}));function l(){return d.apply(this,arguments)}return l}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(l){this.layerService.setEnableRender(l)}},{key:"addIconFont",value:function(l,c){this.fontService.addIconFont(l,c)}},{key:"addIconFonts",value:function(l){var c=this;l.forEach(function(a){var p=(0,zn.Z)(a,2),y=p[0],w=p[1];c.fontService.addIconFont(y,w)})}},{key:"addFontFace",value:function(l,c){var a=this;this.fontService.once("fontloaded",function(p){a.emit("fontloaded",p)}),this.fontService.addFontFace(l,c)}},{key:"addImage",value:function(){var d=(0,al.Z)(mo().mark(function c(a,p){return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.iconService.addImage(a,p);case 2:case"end":return w.stop()}},c,this)}));function l(c,a){return d.apply(this,arguments)}return l}()},{key:"hasImage",value:function(l){return this.iconService.hasImage(l)}},{key:"removeImage",value:function(l){this.iconService.removeImage(l)}},{key:"addIconFontGlyphs",value:function(l,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(l){this.controlService.addControl(l,this.container)}},{key:"removeControl",value:function(l){this.controlService.removeControl(l)}},{key:"getControlByName",value:function(l){return this.controlService.getControlByName(l)}},{key:"addMarker",value:function(l){this.markerService.addMarker(l)}},{key:"addMarkerLayer",value:function(l){this.markerService.addMarkerLayer(l)}},{key:"removeMarkerLayer",value:function(l){this.markerService.removeMarkerLayer(l)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(l){this.popupService.addPopup(l)}},{key:"removePopup",value:function(l){this.popupService.removePopup(l)}},{key:"on",value:function(l,c){if(ck.includes(l)){var a;(a=this.boxSelect)===null||a===void 0||a.on(l,c)}else LC.includes(l)?this.sceneService.on(l,c):this.mapService.on(l,c)}},{key:"once",value:function(l,c){if(ck.includes(l)){var a;(a=this.boxSelect)===null||a===void 0||a.once(l,c)}else LC.includes(l)?this.sceneService.once(l,c):this.mapService.once(l,c)}},{key:"emit",value:function(l,c){LC.indexOf(l)===-1?this.mapService.on(l,c):this.sceneService.emit(l,c)}},{key:"off",value:function(l,c){if(ck.includes(l)){var a;(a=this.boxSelect)===null||a===void 0||a.off(l,c)}else LC.includes(l)?this.sceneService.off(l,c):this.mapService.off(l,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(l){return this.mapService.getCenter(l)}},{key:"setCenter",value:function(l,c){return this.mapService.setCenter(l,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(l){return this.mapService.setPitch(l)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(l){this.mapService.setRotation(l)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(l){this.mapService.panTo(l)}},{key:"panBy",value:function(l,c){this.mapService.panBy(l,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(l){this.mapService.setZoom(l)}},{key:"fitBounds",value:function(l,c){var a=this.sceneService.getSceneConfig(),p=a.fitBoundsOptions,y=a.animate;this.mapService.fitBounds(l,c||(0,Xe.Z)((0,Xe.Z)({},p),{},{animate:y}))}},{key:"setZoomAndCenter",value:function(l,c){this.mapService.setZoomAndCenter(l,c)}},{key:"setMapStyle",value:function(l){this.mapService.setMapStyle(l)}},{key:"setMapStatus",value:function(l){this.mapService.setMapStatus(l)}},{key:"pixelToLngLat",value:function(l){return this.mapService.pixelToLngLat(l)}},{key:"lngLatToPixel",value:function(l){return this.mapService.lngLatToPixel(l)}},{key:"containerToLngLat",value:function(l){return this.mapService.containerToLngLat(l)}},{key:"lngLatToContainer",value:function(l){return this.mapService.lngLatToContainer(l)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(l,c){this.container.bind(In.IPostProcessingPass).to(l).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){l.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(l){return Xi.REGISTERED_PROTOCOLS[l]}},{key:"startAnimate",value:function(){this.layerService.startAnimate()}},{key:"stopAnimate",value:function(){this.layerService.stopAnimate()}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(l){this.controlService.init({container:lu(l)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var l=this.sceneService.getSceneConfig(),c=l.logoVisible,a=l.logoPosition;c&&this.addControl(new dh({position:a}))}}],[{key:"addProtocol",value:function(l,c){Xi.REGISTERED_PROTOCOLS[l]=c}},{key:"removeProtocol",value:function(l){delete Xi.REGISTERED_PROTOCOLS[l]}}]),i}(),kX="2.20.18"},86465:function(St,me,x){"use strict";x.d(me,{br:function(){return zp},L6:function(){return Hd},ot:function(){return _n},l_:function(){return Qe},$2:function(){return ir},Ie:function(){return kf},OB:function(){return yc},w3:function(){return Gi},Jx:function(){return Oo},CB:function(){return du},ns:function(){return rg},dW:function(){return kg},GI:function(){return ld},YY:function(){return yp},kp:function(){return ha},jf:function(){return Gh},AB:function(){return Pp},Ly:function(){return gf},dN:function(){return Zi},$r:function(){return Jn}});var v=x(23051),z=x(77617),P=x(92269),A=function(we){return function(Ee,He){var Jt=(0,z.useRef)(),xr=(0,z.useRef)(0);(He===void 0||!(0,P.k)(He,Jt.current))&&(Jt.current=He,xr.current+=1),we(Ee,[xr.current])}},W=A(z.useEffect),X=x(92310),Y=x.n(X),ie=x(63364),ae=x(40984),se=x(92378),Ie="*",Be=function(){function we(){this._events={}}return we.prototype.on=function(Ee,He,Jt){return this._events[Ee]||(this._events[Ee]=[]),this._events[Ee].push({callback:He,once:!!Jt}),this},we.prototype.once=function(Ee,He){return this.on(Ee,He,!0)},we.prototype.emit=function(Ee){for(var He=this,Jt=[],xr=1;xr=we.length?{done:!0}:{done:!1,value:we[Jt++]}},e:function(Xo){throw Xo},f:xr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Hn=!0,In=!1,Jr;return{s:function(){He=He.call(we)},n:function(){var Xo=He.next();return Hn=Xo.done,Xo},e:function(Xo){In=!0,Jr=Xo},f:function(){try{!Hn&&He.return!=null&&He.return()}finally{if(In)throw Jr}}}}function Ge(we,Ee){if(we){if(typeof we=="string")return at(we,Ee);var He=Object.prototype.toString.call(we).slice(8,-1);if(He==="Object"&&we.constructor&&(He=we.constructor.name),He==="Map"||He==="Set")return Array.from(we);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return at(we,Ee)}}function at(we,Ee){(Ee==null||Ee>we.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Ee!=null?Ee:{}).map(function(He){var Jt=Te(He,2),xr=Jt[0],Hn=Jt[1],In=(0,Nt.Z)(xr),Jr=Hn;return typeof Jr=="number"?Jr="".concat(Jr,"px"):typeof Jr=="string"&&(Jr=Jr.replace("'","")),"".concat(In," :").concat(Jr)}).join("; ")};function Lr(we,Ee){return hi(we)||Qi(we,Ee)||fi(we,Ee)||Yr()}function Yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fi(we,Ee){if(we){if(typeof we=="string")return Xi(we,Ee);var He=Object.prototype.toString.call(we).slice(8,-1);if(He==="Object"&&we.constructor&&(He=we.constructor.name),He==="Map"||He==="Set")return Array.from(we);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return Xi(we,Ee)}}function Xi(we,Ee){(Ee==null||Ee>we.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He1&&arguments[1]!==void 0?arguments[1]:!1;return Object.entries(we).sort(function(He,Jt){var xr=Lr(He,1),Hn=xr[0],In=Lr(Jt,1),Jr=In[0];return Hn.localeCompare(Jr)}).map(function(He){var Jt=Lr(He,2),xr=Jt[0],Hn=Jt[1],In=String(Hn);return Ee&&(In=window.encodeURI(String(Hn))),"".concat(xr,"=").concat(In)}).join("&")}function Mo(we,Ee){return"".concat(we,"?").concat(Go(Ee,!0))}function pe(we){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},pe(we)}function Ii(){"use strict";Ii=function(){return Ee};var we,Ee={},He=Object.prototype,Jt=He.hasOwnProperty,xr=Object.defineProperty||function(Cl,oa,Xa){Cl[oa]=Xa.value},Hn=typeof Symbol=="function"?Symbol:{},In=Hn.iterator||"@@iterator",Jr=Hn.asyncIterator||"@@asyncIterator",_o=Hn.toStringTag||"@@toStringTag";function Xo(Cl,oa,Xa){return Object.defineProperty(Cl,oa,{value:Xa,enumerable:!0,configurable:!0,writable:!0}),Cl[oa]}try{Xo({},"")}catch(Cl){Xo=function(Xa,Wu,qu){return Xa[Wu]=qu}}function Ho(Cl,oa,Xa,Wu){var qu=oa&&oa.prototype instanceof Qa?oa:Qa,ku=Object.create(qu.prototype),dd=new $d(Wu||[]);return xr(ku,"_invoke",{value:Lc(Cl,Xa,dd)}),ku}function Is(Cl,oa,Xa){try{return{type:"normal",arg:Cl.call(oa,Xa)}}catch(Wu){return{type:"throw",arg:Wu}}}Ee.wrap=Ho;var sa="suspendedStart",ds="suspendedYield",ia="executing",io="completed",Js={};function Qa(){}function La(){}function Gl(){}var tu={};Xo(tu,In,function(){return this});var Tu=Object.getPrototypeOf,Tc=Tu&&Tu(Tu(Vf([])));Tc&&Tc!==He&&Jt.call(Tc,In)&&(tu=Tc);var Sl=Gl.prototype=Qa.prototype=Object.create(tu);function Yu(Cl){["next","throw","return"].forEach(function(oa){Xo(Cl,oa,function(Xa){return this._invoke(oa,Xa)})})}function kc(Cl,oa){function Xa(qu,ku,dd,nf){var gp=Is(Cl[qu],Cl,ku);if(gp.type!=="throw"){var op=gp.arg,$p=op.value;return $p&&pe($p)=="object"&&Jt.call($p,"__await")?oa.resolve($p.__await).then(function(Mh){Xa("next",Mh,dd,nf)},function(Mh){Xa("throw",Mh,dd,nf)}):oa.resolve($p).then(function(Mh){op.value=Mh,dd(op)},function(Mh){return Xa("throw",Mh,dd,nf)})}nf(gp.arg)}var Wu;xr(this,"_invoke",{value:function(ku,dd){function nf(){return new oa(function(gp,op){Xa(ku,dd,gp,op)})}return Wu=Wu?Wu.then(nf,nf):nf()}})}function Lc(Cl,oa,Xa){var Wu=sa;return function(qu,ku){if(Wu===ia)throw new Error("Generator is already running");if(Wu===io){if(qu==="throw")throw ku;return{value:we,done:!0}}for(Xa.method=qu,Xa.arg=ku;;){var dd=Xa.delegate;if(dd){var nf=Nh(dd,Xa);if(nf){if(nf===Js)continue;return nf}}if(Xa.method==="next")Xa.sent=Xa._sent=Xa.arg;else if(Xa.method==="throw"){if(Wu===sa)throw Wu=io,Xa.arg;Xa.dispatchException(Xa.arg)}else Xa.method==="return"&&Xa.abrupt("return",Xa.arg);Wu=ia;var gp=Is(Cl,oa,Xa);if(gp.type==="normal"){if(Wu=Xa.done?io:ds,gp.arg===Js)continue;return{value:gp.arg,done:Xa.done}}gp.type==="throw"&&(Wu=io,Xa.method="throw",Xa.arg=gp.arg)}}}function Nh(Cl,oa){var Xa=oa.method,Wu=Cl.iterator[Xa];if(Wu===we)return oa.delegate=null,Xa==="throw"&&Cl.iterator.return&&(oa.method="return",oa.arg=we,Nh(Cl,oa),oa.method==="throw")||Xa!=="return"&&(oa.method="throw",oa.arg=new TypeError("The iterator does not provide a '"+Xa+"' method")),Js;var qu=Is(Wu,Cl.iterator,oa.arg);if(qu.type==="throw")return oa.method="throw",oa.arg=qu.arg,oa.delegate=null,Js;var ku=qu.arg;return ku?ku.done?(oa[Cl.resultName]=ku.value,oa.next=Cl.nextLoc,oa.method!=="return"&&(oa.method="next",oa.arg=we),oa.delegate=null,Js):ku:(oa.method="throw",oa.arg=new TypeError("iterator result is not an object"),oa.delegate=null,Js)}function xs(Cl){var oa={tryLoc:Cl[0]};1 in Cl&&(oa.catchLoc=Cl[1]),2 in Cl&&(oa.finallyLoc=Cl[2],oa.afterLoc=Cl[3]),this.tryEntries.push(oa)}function mf(Cl){var oa=Cl.completion||{};oa.type="normal",delete oa.arg,Cl.completion=oa}function $d(Cl){this.tryEntries=[{tryLoc:"root"}],Cl.forEach(xs,this),this.reset(!0)}function Vf(Cl){if(Cl||Cl===""){var oa=Cl[In];if(oa)return oa.call(Cl);if(typeof Cl.next=="function")return Cl;if(!isNaN(Cl.length)){var Xa=-1,Wu=function qu(){for(;++Xa=0;--qu){var ku=this.tryEntries[qu],dd=ku.completion;if(ku.tryLoc==="root")return Wu("end");if(ku.tryLoc<=this.prev){var nf=Jt.call(ku,"catchLoc"),gp=Jt.call(ku,"finallyLoc");if(nf&&gp){if(this.prev=0;--Wu){var qu=this.tryEntries[Wu];if(qu.tryLoc<=this.prev&&Jt.call(qu,"finallyLoc")&&this.prev=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.finallyLoc===oa)return this.complete(Wu.completion,Wu.afterLoc),mf(Wu),Js}},catch:function(oa){for(var Xa=this.tryEntries.length-1;Xa>=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.tryLoc===oa){var qu=Wu.completion;if(qu.type==="throw"){var ku=qu.arg;mf(Wu)}return ku}}throw new Error("illegal catch attempt")},delegateYield:function(oa,Xa,Wu){return this.delegate={iterator:Vf(oa),resultName:Xa,nextLoc:Wu},this.method==="next"&&(this.arg=we),Js}},Ee}function Vi(we,Ee,He,Jt,xr,Hn,In){try{var Jr=we[Hn](In),_o=Jr.value}catch(Xo){He(Xo);return}Jr.done?Ee(_o):Promise.resolve(_o).then(Jt,xr)}function ro(we){return function(){var Ee=this,He=arguments;return new Promise(function(Jt,xr){var Hn=we.apply(Ee,He);function In(_o){Vi(Hn,Jt,xr,In,Jr,"next",_o)}function Jr(_o){Vi(Hn,Jt,xr,In,Jr,"throw",_o)}In(void 0)})}}var ai=function(){var we=ro(Ii().mark(function Ee(He,Jt){return Ii().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:if(He!=="Map"){Hn.next=2;break}return Hn.abrupt("return",new v.Map(Jt));case 2:if(He!=="Gaode"){Hn.next=6;break}return Hn.abrupt("return",new v.GaodeMap(Jt));case 6:if(He!=="GaodeV1"){Hn.next=10;break}return Hn.abrupt("return",new v.GaodeMapV1(Jt));case 10:if(He!=="GaodeV2"){Hn.next=12;break}return Hn.abrupt("return",new v.GaodeMapV2(Jt));case 12:if(He!=="Tencent"){Hn.next=14;break}return Hn.abrupt("return",Promise.resolve(Promise.resolve().then(x.bind(x,23051))).then(function(In){var Jr=In.TencentMap;return new Jr(Jt)}));case 14:if(He!=="Baidu"){Hn.next=16;break}return Hn.abrupt("return",Promise.resolve(Promise.resolve().then(x.bind(x,23051))).then(function(In){var Jr=In.BaiduMap;return new Jr(Jt)}));case 16:return Hn.abrupt("return",Promise.resolve(Promise.resolve().then(x.bind(x,23051))).then(function(In){var Jr=In.Mapbox;return new Jr(Jt)}));case 17:case"end":return Hn.stop()}},Ee)}));return function(He,Jt){return we.apply(this,arguments)}}(),Ms=function(we,Ee){return we?we.map(function(He,Jt){return Object.is(we[Jt],Ee==null?void 0:Ee[Jt])?-1:Jt}).filter(function(He){return He>=0}):Ee?Ee.map(function(He,Jt){return Jt}):[]},Ar=function(we,Ee){var He=(0,z.useRef)();(0,z.useEffect)(function(){var Jt=Ms(He.current,Ee),xr=He.current;return He.current=Ee,we(Jt,xr,Ee)},Ee)},Rt=Ar,jn=x(41806),wr={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},oi=Object.keys(wr);function Ti(we){return Rn(we)||Vr(we)||no(we)||Bi()}function Bi(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(we,Ee){if(we){if(typeof we=="string")return Xt(we,Ee);var He=Object.prototype.toString.call(we).slice(8,-1);if(He==="Object"&&we.constructor&&(He=we.constructor.name),He==="Map"||He==="Set")return Array.from(we);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return Xt(we,Ee)}}function Vr(we){if(typeof Symbol!="undefined"&&we[Symbol.iterator]!=null||we["@@iterator"]!=null)return Array.from(we)}function Rn(we){if(Array.isArray(we))return Xt(we)}function Xt(we,Ee){(Ee==null||Ee>we.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He=0)&&Object.prototype.propertyIsEnumerable.call(we,Jt)&&(He[Jt]=we[Jt])}return He}function Bt(we,Ee){if(we==null)return{};var He={},Jt=Object.keys(we),xr,Hn;for(Hn=0;Hn=0)&&(He[xr]=we[xr]);return He}var rn=z.createContext(null),ir=(0,z.memo)((0,z.forwardRef)(function(Ee,He){var Jt=Ee.id,xr=Ee.style,Hn=Ee.className,In=Ee.map,Jr=Ee.mapType,_o=Jr===void 0?"Gaode":Jr,Xo=Ee.mapOptions,Ho=Xo===void 0?{}:Xo,Is=Ee.onLayerManagerCreated,sa=Ee.onSceneLoaded,ds=Ee.children,ia=it(Ee,hr),io=(0,z.useRef)(),Js=(0,z.useState)(null),Qa=qr(Js,2),La=Qa[0],Gl=Qa[1],tu=(0,z.useRef)({scene:null,layerManager:null}),Tu=tu.current;(0,z.useEffect)(function(){var Sl,Yu=!0,kc=(0,ie.Z)(In)?ai(_o,Ho):typeof In=="function"?In():In;return Promise.resolve(kc).then(function(Lc){if(Yu){Sl=new v.Scene(tt(tt({},ia),{},{id:io.current,map:Lc}));var Nh=new hn({scene:Sl});Tu.scene=Sl,Tu.layerManager=Nh,Sl.once("loaded",function(){sa&&sa(Sl),Is&&Is(Nh),Gl(Sl)})}}).catch(function(Lc){console.error(Lc)}),function(){Yu=!1,Sl&&(Tu.scene=null,Tu.layerManager=null,Sl.destroy())}},[]),Sn(La,Ee),(0,z.useImperativeHandle)(He,function(){return{getScene:function(){return La},getMap:function(){return La.map}}},[La]),(0,z.useEffect)(function(){La&&Ho.style&&La.setMapStyle(Ho.style)},[Ho.style]),W(function(){(0,ae.Z)(La)||(Ho.center&&(0,se.Z)(Ho.zoom)?La.setZoomAndCenter(Ho.zoom,Ho.center):(0,se.Z)(Ho.zoom)?La.setZoom(Ho.zoom):Ho.center&&La.setCenter(Ho.center))},[Ho.zoom,Ho.center]),(0,z.useEffect)(function(){La&&(0,se.Z)(Ho.pitch)&&La.setPitch(Ho.pitch)},[Ho.pitch]),(0,z.useEffect)(function(){La&&(0,se.Z)(Ho.rotation)&&La.setRotation(Ho.rotation)},[Ho.rotation]);var Tc=(0,z.useMemo)(function(){return tt({position:"relative"},xr)},[xr]);return z.createElement("div",{id:Jt,ref:io,style:Tc,className:Y()("larkmap",Hn)},La&&z.createElement(rn.Provider,{value:Tu},ds))})),tr=x(8142),Jn=function(){var Ee=(0,z.useContext)(rn);if(!Ee)throw new Error("The useScene must be used in the LarkMap container");var He=Ee.scene;return He},nn=function(Ee,He,Jt){var xr=Jn(),Hn=(0,z.useRef)();(0,z.useEffect)(function(){var In=new v.Control(Jt);return In.onAdd=function(){return Ee(xr)},In.onRemove=function(){},Hn.current=In,xr.addControl(In),function(){typeof He=="function"&&He(xr),Hn.current=null,xr.removeControl(In)}},[]),(0,tr.Z)(function(){var In;(In=Hn.current)===null||In===void 0||In.setOptions(Jt)},[Jt])},er=function(){var Ee=(0,z.useContext)(rn);if(!Ee)throw new Error("The useLayerManager must be used in the LarkMap container");var He=Ee.layerManager;return He};function Fr(we,Ee){return Cn(we)||en(we,Ee)||bo(we,Ee)||jr()}function jr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bo(we,Ee){if(we){if(typeof we=="string")return zt(we,Ee);var He=Object.prototype.toString.call(we).slice(8,-1);if(He==="Object"&&we.constructor&&(He=we.constructor.name),He==="Map"||He==="Set")return Array.from(we);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return zt(we,Ee)}}function zt(we,Ee){(Ee==null||Ee>we.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He=0)&&Object.prototype.propertyIsEnumerable.call(we,Jt)&&(He[Jt]=we[Jt])}return He}function Yi(we,Ee){if(we==null)return{};var He={},Jt=Object.keys(we),xr,Hn;for(Hn=0;Hn=0)&&(He[xr]=we[xr]);return He}var so=function(Ee,He){var Jt=He.onCreated,xr=He.source,Hn=Wi(He,pr),In=er(),Jr=(0,z.useRef)(),_o=(0,z.useRef)(Hn),Xo=(0,z.useRef)(xr);return Jr.current||(Jr.current=new Ee(He),Jt&&Jr.current.once("inited",function(){return Jt(Jr.current)}),In.addLayer(Jr.current)),(0,tr.Z)(function(){if(Jr.current){var Ho=!(0,Kr.Z)(_o.current,Hn);Ho&&(Jr.current.update(Hn),_o.current=(0,Xr.Z)(Hn))}},[Hn]),(0,tr.Z)(function(){if(Jr.current){var Ho=xr.data,Is=Wi(xr,qo),sa=Xo.current,ds=sa.data,ia=Wi(sa,Br),io=Ho!==ds||!(0,Kr.Z)(Is,ia);io&&(Jr.current.changeData(xr),Xo.current=ii({},xr))}},[xr]),(0,z.useEffect)(function(){return function(){Jr.current&&(In.removeLayer(Jr.current),Jr.current=null)}},[]),Jr},ko={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},_i=function(Ee,He){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ko,xr=(0,z.useMemo)(function(){return Object.keys(Jt)},[Jt]),Hn=function(Ho){xr.forEach(function(Is){var sa=Jt[Is],ds=He[Is];Is&&ds&&Ee[Ho](sa,ds)})},In=function(){return Hn("on")},Jr=function(){return Hn("off")},_o=(0,z.useRef)(!0);_o.current&&In(),(0,z.useEffect)(function(){return _o.current?_o.current=!1:In(),function(){Jr()}},xr.map(function(Xo){return He[Xo]})),(0,jn.Z)(function(){Jr()})},hs=null,Ts=null,Qr=x(32290),Ai={}.toString,Ri=function(we,Ee){return Ai.call(we)==="[object "+Ee+"]"},To=Ri,yo=function(we){return To(we,"Function")},ao=function(we){return Array.isArray?Array.isArray(we):To(we,"Array")},Bs=function(we){var Ee=typeof we;return we!==null&&Ee==="object"||Ee==="function"};function fa(we,Ee){if(we){var He;if(ao(we))for(var Jt=0,xr=we.length;Jt-1;)xa.call(we,Hn,1);return we},Ba=null,Al=Array.prototype.splice,ks=function(Ee,He){if(!isArrayLike(Ee))return[];for(var Jt=Ee?He.length:0,xr=Jt-1;Jt--;){var Hn=void 0,In=He[Jt];(Jt===xr||In!==Hn)&&(Hn=In,Al.call(Ee,In,1))}return Ee},Za=null,lu=function(we,Ee,He){if(!ao(we)&&!Zt(we))return we;var Jt=He;return ba(we,function(xr,Hn){Jt=Ee(Jt,xr,Hn)}),Jt},mu=lu,nu=function(we,Ee){var He=[];if(!isArrayLike(we))return He;for(var Jt=-1,xr=[],Hn=we.length;++JtHn[Jr])return 1;if(xr[Jr]0},ml=null,uu=function(we,Ee){if(isArray(we)){for(var He,Jt=-1/0,xr=0;xrJt&&(He=Hn,Jt=In)}return He}},pn=function(we,Ee){if(isArray(we)){for(var He,Jt=1/0,xr=0;xrJr&&Ho>Jr);)if(_o.push(Xo),Jr-=Ho,In=In.substr(xr),!In)return _o.join("");for(;Xo=In.substr(0,1),Ho=measureTextWidth(Xo,He),!(Ho+Hn>Jr);)if(_o.push(Xo),Jr-=Ho,In=In.substr(1),!In)return _o.join("");return""+_o.join("")+Jt},Of=function(){function we(){this.map={}}return we.prototype.has=function(Ee){return this.map[Ee]!==void 0},we.prototype.get=function(Ee,He){var Jt=this.map[Ee];return Jt===void 0?He:Jt},we.prototype.set=function(Ee,He){this.map[Ee]=He},we.prototype.clear=function(){this.map={}},we.prototype.delete=function(Ee){delete this.map[Ee]},we.prototype.size=function(){return Object.keys(this.map).length},we}(),Wf=null;function Wc(we,Ee){return function(){for(var He=[],Jt=0;Jtwe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He=0)&&Object.prototype.propertyIsEnumerable.call(we,Jt)&&(He[Jt]=we[Jt])}return He}function G0(we,Ee){if(we==null)return{};var He={},Jt=Object.keys(we),xr,Hn;for(Hn=0;Hn=0)&&(He[xr]=we[xr]);return He}var Gg="SECRET_COMBOBOX_MODE_DO_NOT_USE",u0="larkmap-select",Hm=function(Ee,He){var Jt=Ee.prefixCls,xr=Ee.bordered,Hn=xr===void 0?!0:xr,In=Ee.className,Jr=Ee.getPopupContainer,_o=Ee.dropdownClassName,Xo=Ee.popupClassName,Ho=Ee.listHeight,Is=Ho===void 0?256:Ho,sa=Ee.placement,ds=Ee.listItemHeight,ia=ds===void 0?24:ds,io=Ee.disabled,Js=Ee.notFoundContent,Qa=Kd(Ee,H0),La=z.useMemo(function(){var Tu=Qa,Tc=Tu.mode;if(Tc!=="combobox")return Tc===Gg?"combobox":Tc},[Qa]),Gl=(0,Gp.Z)(Qa,"suffixIcon","itemIcon"),tu=Y()(R0({},"".concat(u0,"-borderless"),!Hn),In);return z.createElement(Cf.ZP,Om({ref:He},Gl,{listHeight:Is,listItemHeight:ia,mode:La,prefixCls:u0,placement:sa,notFoundContent:Js!=null?Js:"\u5F53\u524D\u65E0\u6570\u636E",className:tu,getPopupContainer:Jr,dropdownClassName:Xo,disabled:io}))},r0=z.forwardRef(Hm);r0.SECRET_COMBOBOX_MODE_DO_NOT_USE=Gg,r0.Option=Cf.Wx,r0.OptGroup=Cf.Xo;var ig=r0;function Bg(we){"@babel/helpers - typeof";return Bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},Bg(we)}var m0=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],Lm=["keywords","privateKey"];function Mm(){return Mm=Object.assign?Object.assign.bind():function(we){for(var Ee=1;Ee=0;--qu){var ku=this.tryEntries[qu],dd=ku.completion;if(ku.tryLoc==="root")return Wu("end");if(ku.tryLoc<=this.prev){var nf=Jt.call(ku,"catchLoc"),gp=Jt.call(ku,"finallyLoc");if(nf&&gp){if(this.prev=0;--Wu){var qu=this.tryEntries[Wu];if(qu.tryLoc<=this.prev&&Jt.call(qu,"finallyLoc")&&this.prev=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.finallyLoc===oa)return this.complete(Wu.completion,Wu.afterLoc),mf(Wu),Js}},catch:function(oa){for(var Xa=this.tryEntries.length-1;Xa>=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.tryLoc===oa){var qu=Wu.completion;if(qu.type==="throw"){var ku=qu.arg;mf(Wu)}return ku}}throw new Error("illegal catch attempt")},delegateYield:function(oa,Xa,Wu){return this.delegate={iterator:Vf(oa),resultName:Xa,nextLoc:Wu},this.method==="next"&&(this.arg=we),Js}},Ee}function j(we){return Zn(we)||wt(we)||$r(we)||Se()}function Se(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(we){if(typeof Symbol!="undefined"&&we[Symbol.iterator]!=null||we["@@iterator"]!=null)return Array.from(we)}function Zn(we){if(Array.isArray(we))return ti(we)}function pt(we,Ee){var He=Object.keys(we);if(Object.getOwnPropertySymbols){var Jt=Object.getOwnPropertySymbols(we);Ee&&(Jt=Jt.filter(function(xr){return Object.getOwnPropertyDescriptor(we,xr).enumerable})),He.push.apply(He,Jt)}return He}function ot(we){for(var Ee=1;Eewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He=0)&&Object.prototype.propertyIsEnumerable.call(we,Jt)&&(He[Jt]=we[Jt])}return He}function Fe(we,Ee){if(we==null)return{};var He={},Jt=Object.keys(we),xr,Hn;for(Hn=0;Hn=0)&&(He[xr]=we[xr]);return He}var Ut=ig.Option,fn=function(Ee){var He=Ee.searchParams,Jt=Ee.showDistrict,xr=Ee.showAddress,Hn=Ee.onSearchFinish,In=Ee.onChange,Jr=Me(Ee,m0),_o=(0,z.useState)([]),Xo=Yn(_o,2),Ho=Xo[0],Is=Xo[1];(0,z.useEffect)(function(){Hn==null||Hn(Ho)},[Hn,Ho]);var sa=(0,gg.Z)(function(){var io=Mn(ge().mark(function Js(Qa){var La,Gl,tu,Tu,Tc,Sl,Yu;return ge().wrap(function(Lc){for(;;)switch(Lc.prev=Lc.next){case 0:if(Qa){Lc.next=3;break}return Is([]),Lc.abrupt("return");case 3:return Gl=He.keywords,tu=He.privateKey,Tu=Me(He,Lm),Tc=ot(ot({},Tu),{},{keywords:[].concat(j((Gl!=null?Gl:"").split("|")),[Qa]).filter(function(Nh){return!!Nh}).join("|")}),tu&&(Tc.sig=Fg()(Go(Tc,!1)+tu)),Sl="".concat(hp,"?").concat(Go(Tc,!0)),Lc.next=9,fetch(Sl);case 9:return Lc.next=11,Lc.sent.json();case 11:Yu=Lc.sent,Is(((La=Yu==null?void 0:Yu.tips)!==null&&La!==void 0?La:[]).filter(function(Nh){return Nh.location&&Nh.location.length}).map(function(Nh){var xs=Nh.location.split(","),mf=Yn(xs,2),$d=mf[0],Vf=mf[1];return Nh.longitude=+$d,Nh.latitude=+Vf,Nh}));case 13:case"end":return Lc.stop()}},Js)}));return function(Js){return io.apply(this,arguments)}}(),{wait:1e3}),ds=sa.run,ia=(0,z.useCallback)(function(io){var Js=io&&Ho.find(function(Qa){return Qa.name===io});In==null||In(io||void 0,Js||void 0)},[In,Ho]);return z.createElement(ig,Mm({className:"".concat(tv),onSearch:ds,onChange:ia,clearIcon:function(){return null}},Jr),Ho.map(function(io){var Js="".concat(Jt?io.district:"").concat(xr?io.address:"");return z.createElement(Ut,{key:io.id,value:io.name},z.createElement("div",{title:io.name,className:"".concat(tv,"__option-name")},io.name),Js&&z.createElement("div",{title:Js,className:"".concat(tv,"__option-tip")},Js))}))};fn.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var An=x(88234),wn=x(4639),gr="larkmap-administrative-location",cr="https://restapi.amap.com/v3/geocode/regeo";function Tr(we){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},Tr(we)}function Nr(){"use strict";Nr=function(){return Ee};var we,Ee={},He=Object.prototype,Jt=He.hasOwnProperty,xr=Object.defineProperty||function(Cl,oa,Xa){Cl[oa]=Xa.value},Hn=typeof Symbol=="function"?Symbol:{},In=Hn.iterator||"@@iterator",Jr=Hn.asyncIterator||"@@asyncIterator",_o=Hn.toStringTag||"@@toStringTag";function Xo(Cl,oa,Xa){return Object.defineProperty(Cl,oa,{value:Xa,enumerable:!0,configurable:!0,writable:!0}),Cl[oa]}try{Xo({},"")}catch(Cl){Xo=function(Xa,Wu,qu){return Xa[Wu]=qu}}function Ho(Cl,oa,Xa,Wu){var qu=oa&&oa.prototype instanceof Qa?oa:Qa,ku=Object.create(qu.prototype),dd=new $d(Wu||[]);return xr(ku,"_invoke",{value:Lc(Cl,Xa,dd)}),ku}function Is(Cl,oa,Xa){try{return{type:"normal",arg:Cl.call(oa,Xa)}}catch(Wu){return{type:"throw",arg:Wu}}}Ee.wrap=Ho;var sa="suspendedStart",ds="suspendedYield",ia="executing",io="completed",Js={};function Qa(){}function La(){}function Gl(){}var tu={};Xo(tu,In,function(){return this});var Tu=Object.getPrototypeOf,Tc=Tu&&Tu(Tu(Vf([])));Tc&&Tc!==He&&Jt.call(Tc,In)&&(tu=Tc);var Sl=Gl.prototype=Qa.prototype=Object.create(tu);function Yu(Cl){["next","throw","return"].forEach(function(oa){Xo(Cl,oa,function(Xa){return this._invoke(oa,Xa)})})}function kc(Cl,oa){function Xa(qu,ku,dd,nf){var gp=Is(Cl[qu],Cl,ku);if(gp.type!=="throw"){var op=gp.arg,$p=op.value;return $p&&Tr($p)=="object"&&Jt.call($p,"__await")?oa.resolve($p.__await).then(function(Mh){Xa("next",Mh,dd,nf)},function(Mh){Xa("throw",Mh,dd,nf)}):oa.resolve($p).then(function(Mh){op.value=Mh,dd(op)},function(Mh){return Xa("throw",Mh,dd,nf)})}nf(gp.arg)}var Wu;xr(this,"_invoke",{value:function(ku,dd){function nf(){return new oa(function(gp,op){Xa(ku,dd,gp,op)})}return Wu=Wu?Wu.then(nf,nf):nf()}})}function Lc(Cl,oa,Xa){var Wu=sa;return function(qu,ku){if(Wu===ia)throw new Error("Generator is already running");if(Wu===io){if(qu==="throw")throw ku;return{value:we,done:!0}}for(Xa.method=qu,Xa.arg=ku;;){var dd=Xa.delegate;if(dd){var nf=Nh(dd,Xa);if(nf){if(nf===Js)continue;return nf}}if(Xa.method==="next")Xa.sent=Xa._sent=Xa.arg;else if(Xa.method==="throw"){if(Wu===sa)throw Wu=io,Xa.arg;Xa.dispatchException(Xa.arg)}else Xa.method==="return"&&Xa.abrupt("return",Xa.arg);Wu=ia;var gp=Is(Cl,oa,Xa);if(gp.type==="normal"){if(Wu=Xa.done?io:ds,gp.arg===Js)continue;return{value:gp.arg,done:Xa.done}}gp.type==="throw"&&(Wu=io,Xa.method="throw",Xa.arg=gp.arg)}}}function Nh(Cl,oa){var Xa=oa.method,Wu=Cl.iterator[Xa];if(Wu===we)return oa.delegate=null,Xa==="throw"&&Cl.iterator.return&&(oa.method="return",oa.arg=we,Nh(Cl,oa),oa.method==="throw")||Xa!=="return"&&(oa.method="throw",oa.arg=new TypeError("The iterator does not provide a '"+Xa+"' method")),Js;var qu=Is(Wu,Cl.iterator,oa.arg);if(qu.type==="throw")return oa.method="throw",oa.arg=qu.arg,oa.delegate=null,Js;var ku=qu.arg;return ku?ku.done?(oa[Cl.resultName]=ku.value,oa.next=Cl.nextLoc,oa.method!=="return"&&(oa.method="next",oa.arg=we),oa.delegate=null,Js):ku:(oa.method="throw",oa.arg=new TypeError("iterator result is not an object"),oa.delegate=null,Js)}function xs(Cl){var oa={tryLoc:Cl[0]};1 in Cl&&(oa.catchLoc=Cl[1]),2 in Cl&&(oa.finallyLoc=Cl[2],oa.afterLoc=Cl[3]),this.tryEntries.push(oa)}function mf(Cl){var oa=Cl.completion||{};oa.type="normal",delete oa.arg,Cl.completion=oa}function $d(Cl){this.tryEntries=[{tryLoc:"root"}],Cl.forEach(xs,this),this.reset(!0)}function Vf(Cl){if(Cl||Cl===""){var oa=Cl[In];if(oa)return oa.call(Cl);if(typeof Cl.next=="function")return Cl;if(!isNaN(Cl.length)){var Xa=-1,Wu=function qu(){for(;++Xa=0;--qu){var ku=this.tryEntries[qu],dd=ku.completion;if(ku.tryLoc==="root")return Wu("end");if(ku.tryLoc<=this.prev){var nf=Jt.call(ku,"catchLoc"),gp=Jt.call(ku,"finallyLoc");if(nf&&gp){if(this.prev=0;--Wu){var qu=this.tryEntries[Wu];if(qu.tryLoc<=this.prev&&Jt.call(qu,"finallyLoc")&&this.prev=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.finallyLoc===oa)return this.complete(Wu.completion,Wu.afterLoc),mf(Wu),Js}},catch:function(oa){for(var Xa=this.tryEntries.length-1;Xa>=0;--Xa){var Wu=this.tryEntries[Xa];if(Wu.tryLoc===oa){var qu=Wu.completion;if(qu.type==="throw"){var ku=qu.arg;mf(Wu)}return ku}}throw new Error("illegal catch attempt")},delegateYield:function(oa,Xa,Wu){return this.delegate={iterator:Vf(oa),resultName:Xa,nextLoc:Wu},this.method==="next"&&(this.arg=we),Js}},Ee}function Pi(we){return Vn(we)||Or(we)||wo(we)||Bn()}function Bn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Or(we){if(typeof Symbol!="undefined"&&we[Symbol.iterator]!=null||we["@@iterator"]!=null)return Array.from(we)}function Vn(we){if(Array.isArray(we))return jo(we)}function Cr(we,Ee){var He=Object.keys(we);if(Object.getOwnPropertySymbols){var Jt=Object.getOwnPropertySymbols(we);Ee&&(Jt=Jt.filter(function(xr){return Object.getOwnPropertyDescriptor(we,xr).enumerable})),He.push.apply(He,Jt)}return He}function kn(we){for(var Ee=1;Eewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He2&&arguments[2]!==void 0?arguments[2]:5,xr=[Ee],Hn=ja()(Ee).object(),In=ja()(He).object();if(Jt<2)return Jt<1?[]:xr;var Jr={r:(Hn.r-In.r)/(Jt-1),g:(Hn.g-In.g)/(Jt-1),b:(Hn.b-In.b)/(Jt-1)};return(0,Ol.Z)(new Array(Jt-2),function(_o,Xo){return xr.push(ja()({r:(0,ll.Z)(Hn.r-Jr.r*(Xo+1),0),g:(0,ll.Z)(Hn.g-Jr.g*(Xo+1),0),b:(0,ll.Z)(Hn.b-Jr.b*(Xo+1),0)}).hex())}),xr.push(He),xr};function ga(we){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},ga(we)}function qa(we,Ee,He){return Ee=bs(Ee),Ee in we?Object.defineProperty(we,Ee,{value:He,enumerable:!0,configurable:!0,writable:!0}):we[Ee]=He,we}function bs(we){var Ee=$i(we,"string");return ga(Ee)==="symbol"?Ee:String(Ee)}function $i(we,Ee){if(ga(we)!=="object"||we===null)return we;var He=we[Symbol.toPrimitive];if(He!==void 0){var Jt=He.call(we,Ee||"default");if(ga(Jt)!=="object")return Jt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(we)}var $s="larkmap-legend-category";function Ko(we){var Ee=we.labels,He=we.colors,Jt=we.geometryType,xr=Jt===void 0?"circle":Jt,Hn=we.isStrokeColor,In=we.style,Jr=we.className;function _o(Is){return Hn?{border:"2px solid ".concat(Is)}:{background:Is}}function Xo(Is){return z.createElement("div",{className:Y()($s,Jr),style:In},Ee.map(function(sa,ds){return z.createElement("div",{className:"".concat($s,"__content"),key:sa},z.createElement("div",{className:Y()("".concat($s,"__content__shape"),qa({},"".concat($s,"__content__").concat(xr),xr)),style:_o(Is[ds])}),z.createElement("div",{className:"".concat($s,"labels")},sa))}))}function Ho(){if(Array.isArray(He))return Xo(He);var Is=ta(He.startColor,He.endColor,Ee.length);return Xo(Is)}return z.createElement(Ho,null)}Ko.defaultProps={geometryType:"circle",isStrokeColor:!1};var qs=x(26437),pa="larkmap-legend-ramp",vl=function(Ee){var He=Ee[Ee.length-1],Jt=Ee[0];return Number.isFinite(Jt)||(Jt=parseInt(Jt,10)),Number.isFinite(He)||(He=parseInt(He,10)),[Jt,He]};function Wa(we){var Ee=we.labels,He=we.labelUnit,Jt=He===void 0?"":He,xr=we.colors,Hn=Ee[0]+Jt,In=Ee[Ee.length-1]+Jt;return z.createElement(z.Fragment,null,z.createElement("div",{className:"".concat(pa,"__continuous"),style:{background:"linear-gradient(to right,".concat(xr,")")}}),z.createElement("div",{className:"".concat(pa,"__continuous-labelbar")},z.createElement("span",null,Hn),z.createElement("span",null,In)))}function yi(we){var Ee=we.labels,He=we.labelUnit,Jt=He===void 0?"":He,xr=we.colors,Hn=(0,z.useRef)(null),In=(0,qs.Z)(Hn),Jr=(In==null?void 0:In.width)/(xr.length+1),_o=Ee;if(Ee.length+1===xr.length){var Xo="< "+Ee[0],Ho="\u2265 "+Ee[Ee.length-1];_o.unshift(Xo),_o.push(Ho)}var Is=function(ds){var ia="".concat(Ee[ds]).concat(Jt," - ").concat(Ee[ds+1]).concat(Jt);return ia};return z.createElement("div",{className:"".concat(pa,"__dis-continuous"),ref:Hn},Number.isNaN(Jr)?null:z.createElement(z.Fragment,null,z.createElement("div",{className:"".concat(pa,"__dis-continuous__colors"),style:{paddingLeft:Jr/2}},xr==null?void 0:xr.map(function(sa,ds){return z.createElement("div",{key:sa,title:Is(ds),className:"".concat(pa,"__dis-continuous__color"),style:{background:sa,width:Jr}})})),z.createElement("div",{className:"".concat(pa,"__dis-continuous__labels")},Ee==null?void 0:Ee.map(function(sa){var ds=sa+Jt;return z.createElement("span",{key:sa,className:"".concat(pa,"__dis-continuous__label")},ds)}))))}function ss(we){var Ee=we.isContinuous,He=we.labels,Jt=we.colors,xr=we.labelUnit,Hn=we.className,In=we.style;return z.createElement("div",{className:Y()("".concat(pa),Hn),style:In},Ee?z.createElement(Wa,{labels:He,labelUnit:xr,colors:Jt}):z.createElement(yi,{labels:He,labelUnit:xr,colors:Jt}))}ss.defaultProps={isContinuous:!1,labelUnit:""};var Ws=x(29075),Ra={point:Ws.DrawPoint,line:Ws.DrawLine,polygon:Ws.DrawPolygon,rect:Ws.DrawRect,circle:Ws.DrawCircle};function Nl(we){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},Nl(we)}function zu(we,Ee){var He=Object.keys(we);if(Object.getOwnPropertySymbols){var Jt=Object.getOwnPropertySymbols(we);Ee&&(Jt=Jt.filter(function(xr){return Object.getOwnPropertyDescriptor(we,xr).enumerable})),He.push.apply(He,Jt)}return He}function Va(we){for(var Ee=1;Eewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);Hewe.length)&&(Ee=we.length);for(var He=0,Jt=new Array(Ee);He.5?ht/(2-Ye-rt):ht/(Ye+rt),Ye){case nt:Gt=(Ge-at)/ht+(Ge1&&(at-=1),at<1/6?nt+(Ge-nt)*(6*at):at<1/2?Ge:at<2/3?nt+(Ge-nt)*(2/3-at)*6:nt}function W(nt,Ge,at){var Ye,rt,Gt;if(nt=(0,v.sh)(nt,360),Ge=(0,v.sh)(Ge,100),at=(0,v.sh)(at,100),Ge===0)rt=at,Gt=at,Ye=at;else{var yt=at<.5?at*(1+Ge):at+Ge-at*Ge,Et=2*at-yt;Ye=A(Et,yt,nt+1/3),rt=A(Et,yt,nt),Gt=A(Et,yt,nt-1/3)}return{r:Ye*255,g:rt*255,b:Gt*255}}function X(nt,Ge,at){nt=(0,v.sh)(nt,255),Ge=(0,v.sh)(Ge,255),at=(0,v.sh)(at,255);var Ye=Math.max(nt,Ge,at),rt=Math.min(nt,Ge,at),Gt=0,yt=Ye,Et=Ye-rt,ht=Ye===0?0:Et/Ye;if(Ye===rt)Gt=0;else{switch(Ye){case nt:Gt=(Ge-at)/Et+(Ge>16,g:(nt&65280)>>8,b:nt&255}}},93796:function(St,me,x){"use strict";x.d(me,{R:function(){return v}});var v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},9915:function(St,me,x){"use strict";x.d(me,{uA:function(){return A}});var v=x(12722),z=x(93796),P=x(12187);function A(Ce){var ct={r:0,g:0,b:0},nt=1,Ge=null,at=null,Ye=null,rt=!1,Gt=!1;return typeof Ce=="string"&&(Ce=Ie(Ce)),typeof Ce=="object"&&(Be(Ce.r)&&Be(Ce.g)&&Be(Ce.b)?(ct=(0,v.rW)(Ce.r,Ce.g,Ce.b),rt=!0,Gt=String(Ce.r).substr(-1)==="%"?"prgb":"rgb"):Be(Ce.h)&&Be(Ce.s)&&Be(Ce.v)?(Ge=(0,P.JX)(Ce.s),at=(0,P.JX)(Ce.v),ct=(0,v.WE)(Ce.h,Ge,at),rt=!0,Gt="hsv"):Be(Ce.h)&&Be(Ce.s)&&Be(Ce.l)&&(Ge=(0,P.JX)(Ce.s),Ye=(0,P.JX)(Ce.l),ct=(0,v.ve)(Ce.h,Ge,Ye),rt=!0,Gt="hsl"),Object.prototype.hasOwnProperty.call(Ce,"a")&&(nt=Ce.a)),nt=(0,P.Yq)(nt),{ok:rt,format:Ce.format||Gt,r:Math.min(255,Math.max(ct.r,0)),g:Math.min(255,Math.max(ct.g,0)),b:Math.min(255,Math.max(ct.b,0)),a:nt}}var W="[-\\+]?\\d+%?",X="[-\\+]?\\d*\\.\\d+%?",Y="(?:".concat(X,")|(?:").concat(W,")"),ie="[\\s|\\(]+(".concat(Y,")[,|\\s]+(").concat(Y,")[,|\\s]+(").concat(Y,")\\s*\\)?"),ae="[\\s|\\(]+(".concat(Y,")[,|\\s]+(").concat(Y,")[,|\\s]+(").concat(Y,")[,|\\s]+(").concat(Y,")\\s*\\)?"),se={CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+ae),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ie(Ce){if(Ce=Ce.trim().toLowerCase(),Ce.length===0)return!1;var ct=!1;if(z.R[Ce])Ce=z.R[Ce],ct=!0;else if(Ce==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var nt=se.rgb.exec(Ce);return nt?{r:nt[1],g:nt[2],b:nt[3]}:(nt=se.rgba.exec(Ce),nt?{r:nt[1],g:nt[2],b:nt[3],a:nt[4]}:(nt=se.hsl.exec(Ce),nt?{h:nt[1],s:nt[2],l:nt[3]}:(nt=se.hsla.exec(Ce),nt?{h:nt[1],s:nt[2],l:nt[3],a:nt[4]}:(nt=se.hsv.exec(Ce),nt?{h:nt[1],s:nt[2],v:nt[3]}:(nt=se.hsva.exec(Ce),nt?{h:nt[1],s:nt[2],v:nt[3],a:nt[4]}:(nt=se.hex8.exec(Ce),nt?{r:(0,v.VD)(nt[1]),g:(0,v.VD)(nt[2]),b:(0,v.VD)(nt[3]),a:(0,v.T6)(nt[4]),format:ct?"name":"hex8"}:(nt=se.hex6.exec(Ce),nt?{r:(0,v.VD)(nt[1]),g:(0,v.VD)(nt[2]),b:(0,v.VD)(nt[3]),format:ct?"name":"hex"}:(nt=se.hex4.exec(Ce),nt?{r:(0,v.VD)(nt[1]+nt[1]),g:(0,v.VD)(nt[2]+nt[2]),b:(0,v.VD)(nt[3]+nt[3]),a:(0,v.T6)(nt[4]+nt[4]),format:ct?"name":"hex8"}:(nt=se.hex3.exec(Ce),nt?{r:(0,v.VD)(nt[1]+nt[1]),g:(0,v.VD)(nt[2]+nt[2]),b:(0,v.VD)(nt[3]+nt[3]),format:ct?"name":"hex"}:!1)))))))))}function Be(Ce){return!!se.CSS_UNIT.exec(String(Ce))}},64993:function(St,me,x){"use strict";x.d(me,{C:function(){return W}});var v=x(12722),z=x(93796),P=x(9915),A=x(12187),W=function(){function Y(ie,ae){ie===void 0&&(ie=""),ae===void 0&&(ae={});var se;if(ie instanceof Y)return ie;typeof ie=="number"&&(ie=(0,v.Yt)(ie)),this.originalInput=ie;var Ie=(0,P.uA)(ie);this.originalInput=ie,this.r=Ie.r,this.g=Ie.g,this.b=Ie.b,this.a=Ie.a,this.roundA=Math.round(100*this.a)/100,this.format=(se=ae.format)!==null&&se!==void 0?se:Ie.format,this.gradientType=ae.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=Ie.ok}return Y.prototype.isDark=function(){return this.getBrightness()<128},Y.prototype.isLight=function(){return!this.isDark()},Y.prototype.getBrightness=function(){var ie=this.toRgb();return(ie.r*299+ie.g*587+ie.b*114)/1e3},Y.prototype.getLuminance=function(){var ie=this.toRgb(),ae,se,Ie,Be=ie.r/255,Ce=ie.g/255,ct=ie.b/255;return Be<=.03928?ae=Be/12.92:ae=Math.pow((Be+.055)/1.055,2.4),Ce<=.03928?se=Ce/12.92:se=Math.pow((Ce+.055)/1.055,2.4),ct<=.03928?Ie=ct/12.92:Ie=Math.pow((ct+.055)/1.055,2.4),.2126*ae+.7152*se+.0722*Ie},Y.prototype.getAlpha=function(){return this.a},Y.prototype.setAlpha=function(ie){return this.a=(0,A.Yq)(ie),this.roundA=Math.round(100*this.a)/100,this},Y.prototype.isMonochrome=function(){var ie=this.toHsl().s;return ie===0},Y.prototype.toHsv=function(){var ie=(0,v.py)(this.r,this.g,this.b);return{h:ie.h*360,s:ie.s,v:ie.v,a:this.a}},Y.prototype.toHsvString=function(){var ie=(0,v.py)(this.r,this.g,this.b),ae=Math.round(ie.h*360),se=Math.round(ie.s*100),Ie=Math.round(ie.v*100);return this.a===1?"hsv(".concat(ae,", ").concat(se,"%, ").concat(Ie,"%)"):"hsva(".concat(ae,", ").concat(se,"%, ").concat(Ie,"%, ").concat(this.roundA,")")},Y.prototype.toHsl=function(){var ie=(0,v.lC)(this.r,this.g,this.b);return{h:ie.h*360,s:ie.s,l:ie.l,a:this.a}},Y.prototype.toHslString=function(){var ie=(0,v.lC)(this.r,this.g,this.b),ae=Math.round(ie.h*360),se=Math.round(ie.s*100),Ie=Math.round(ie.l*100);return this.a===1?"hsl(".concat(ae,", ").concat(se,"%, ").concat(Ie,"%)"):"hsla(".concat(ae,", ").concat(se,"%, ").concat(Ie,"%, ").concat(this.roundA,")")},Y.prototype.toHex=function(ie){return ie===void 0&&(ie=!1),(0,v.vq)(this.r,this.g,this.b,ie)},Y.prototype.toHexString=function(ie){return ie===void 0&&(ie=!1),"#"+this.toHex(ie)},Y.prototype.toHex8=function(ie){return ie===void 0&&(ie=!1),(0,v.s)(this.r,this.g,this.b,this.a,ie)},Y.prototype.toHex8String=function(ie){return ie===void 0&&(ie=!1),"#"+this.toHex8(ie)},Y.prototype.toHexShortString=function(ie){return ie===void 0&&(ie=!1),this.a===1?this.toHexString(ie):this.toHex8String(ie)},Y.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},Y.prototype.toRgbString=function(){var ie=Math.round(this.r),ae=Math.round(this.g),se=Math.round(this.b);return this.a===1?"rgb(".concat(ie,", ").concat(ae,", ").concat(se,")"):"rgba(".concat(ie,", ").concat(ae,", ").concat(se,", ").concat(this.roundA,")")},Y.prototype.toPercentageRgb=function(){var ie=function(ae){return"".concat(Math.round((0,A.sh)(ae,255)*100),"%")};return{r:ie(this.r),g:ie(this.g),b:ie(this.b),a:this.a}},Y.prototype.toPercentageRgbString=function(){var ie=function(ae){return Math.round((0,A.sh)(ae,255)*100)};return this.a===1?"rgb(".concat(ie(this.r),"%, ").concat(ie(this.g),"%, ").concat(ie(this.b),"%)"):"rgba(".concat(ie(this.r),"%, ").concat(ie(this.g),"%, ").concat(ie(this.b),"%, ").concat(this.roundA,")")},Y.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var ie="#"+(0,v.vq)(this.r,this.g,this.b,!1),ae=0,se=Object.entries(z.R);ae=0,Be=!ae&&Ie&&(ie.startsWith("hex")||ie==="name");return Be?ie==="name"&&this.a===0?this.toName():this.toRgbString():(ie==="rgb"&&(se=this.toRgbString()),ie==="prgb"&&(se=this.toPercentageRgbString()),(ie==="hex"||ie==="hex6")&&(se=this.toHexString()),ie==="hex3"&&(se=this.toHexString(!0)),ie==="hex4"&&(se=this.toHex8String(!0)),ie==="hex8"&&(se=this.toHex8String()),ie==="name"&&(se=this.toName()),ie==="hsl"&&(se=this.toHslString()),ie==="hsv"&&(se=this.toHsvString()),se||this.toHexString())},Y.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},Y.prototype.clone=function(){return new Y(this.toString())},Y.prototype.lighten=function(ie){ie===void 0&&(ie=10);var ae=this.toHsl();return ae.l+=ie/100,ae.l=(0,A.V2)(ae.l),new Y(ae)},Y.prototype.brighten=function(ie){ie===void 0&&(ie=10);var ae=this.toRgb();return ae.r=Math.max(0,Math.min(255,ae.r-Math.round(255*-(ie/100)))),ae.g=Math.max(0,Math.min(255,ae.g-Math.round(255*-(ie/100)))),ae.b=Math.max(0,Math.min(255,ae.b-Math.round(255*-(ie/100)))),new Y(ae)},Y.prototype.darken=function(ie){ie===void 0&&(ie=10);var ae=this.toHsl();return ae.l-=ie/100,ae.l=(0,A.V2)(ae.l),new Y(ae)},Y.prototype.tint=function(ie){return ie===void 0&&(ie=10),this.mix("white",ie)},Y.prototype.shade=function(ie){return ie===void 0&&(ie=10),this.mix("black",ie)},Y.prototype.desaturate=function(ie){ie===void 0&&(ie=10);var ae=this.toHsl();return ae.s-=ie/100,ae.s=(0,A.V2)(ae.s),new Y(ae)},Y.prototype.saturate=function(ie){ie===void 0&&(ie=10);var ae=this.toHsl();return ae.s+=ie/100,ae.s=(0,A.V2)(ae.s),new Y(ae)},Y.prototype.greyscale=function(){return this.desaturate(100)},Y.prototype.spin=function(ie){var ae=this.toHsl(),se=(ae.h+ie)%360;return ae.h=se<0?360+se:se,new Y(ae)},Y.prototype.mix=function(ie,ae){ae===void 0&&(ae=50);var se=this.toRgb(),Ie=new Y(ie).toRgb(),Be=ae/100,Ce={r:(Ie.r-se.r)*Be+se.r,g:(Ie.g-se.g)*Be+se.g,b:(Ie.b-se.b)*Be+se.b,a:(Ie.a-se.a)*Be+se.a};return new Y(Ce)},Y.prototype.analogous=function(ie,ae){ie===void 0&&(ie=6),ae===void 0&&(ae=30);var se=this.toHsl(),Ie=360/ae,Be=[this];for(se.h=(se.h-(Ie*ie>>1)+720)%360;--ie;)se.h=(se.h+Ie)%360,Be.push(new Y(se));return Be},Y.prototype.complement=function(){var ie=this.toHsl();return ie.h=(ie.h+180)%360,new Y(ie)},Y.prototype.monochromatic=function(ie){ie===void 0&&(ie=6);for(var ae=this.toHsv(),se=ae.h,Ie=ae.s,Be=ae.v,Ce=[],ct=1/ie;ie--;)Ce.push(new Y({h:se,s:Ie,v:Be})),Be=(Be+ct)%1;return Ce},Y.prototype.splitcomplement=function(){var ie=this.toHsl(),ae=ie.h;return[this,new Y({h:(ae+72)%360,s:ie.s,l:ie.l}),new Y({h:(ae+216)%360,s:ie.s,l:ie.l})]},Y.prototype.onBackground=function(ie){var ae=this.toRgb(),se=new Y(ie).toRgb(),Ie=ae.a+se.a*(1-ae.a);return new Y({r:(ae.r*ae.a+se.r*se.a*(1-ae.a))/Ie,g:(ae.g*ae.a+se.g*se.a*(1-ae.a))/Ie,b:(ae.b*ae.a+se.b*se.a*(1-ae.a))/Ie,a:Ie})},Y.prototype.triad=function(){return this.polyad(3)},Y.prototype.tetrad=function(){return this.polyad(4)},Y.prototype.polyad=function(ie){for(var ae=this.toHsl(),se=ae.h,Ie=[this],Be=360/ie,Ce=1;Ce1)&&(ie=1),ie}function X(ie){return ie<=1?"".concat(Number(ie)*100,"%"):ie}function Y(ie){return ie.length===1?"0"+ie:String(ie)}},68564:function(St,me,x){"use strict";x.d(me,{iv:function(){return Ds}});function v(sn){if(sn.sheet)return sn.sheet;for(var dt=0;dt0?Be(ht,--yt):0,rt--,Et===10&&(rt=1,Ye--),Et}function je(){return Et=yt2||hn(Et)>3?"":" "}function Tt(sn){for(;je();)switch(hn(Et)){case 0:append(Yr(yt-1),sn);break;case 2:append(vt(Et),sn);break;default:append(from(Et),sn)}return sn}function un(sn,dt){for(;--dt&&je()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return Xe(sn,Ct()+(dt<6&&ft()==32&&je()==32))}function on(sn){for(;je();)switch(Et){case sn:return yt;case 34:case 39:sn!==34&&sn!==39&&on(Et);break;case 40:sn===41&&on(sn);break;case 92:je();break}return yt}function Lr(sn,dt){for(;je()&&sn+Et!==47+10;)if(sn+Et===42+42&&ft()===47)break;return"/*"+Xe(dt,yt-1)+"*"+W(sn===47?sn:je())}function Yr(sn){for(;!hn(ft());)je();return Xe(sn,yt)}var fi="-ms-",Xi="-moz-",Qi="-webkit-",hi="comm",Go="rule",Mo="decl",pe="@page",Ii="@media",Vi="@import",ro="@charset",ai="@viewport",Ms="@supports",Ar="@document",Rt="@namespace",jn="@keyframes",wr="@font-face",oi="@counter-style",Ti="@font-feature-values",Bi="@layer";function no(sn,dt){for(var Mt="",Zt=nt(sn),Kt=0;Kt-1&&!sn.return)switch(sn.type){case DECLARATION:sn.return=prefix(sn.value,sn.length,Mt);return;case KEYFRAMES:return serialize([copy(sn,{value:replace(sn.value,"@","@"+WEBKIT)})],Zt);case RULESET:if(sn.length)return combine(sn.props,function(Kt){switch(match(Kt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(sn,{props:[replace(Kt,/:(read-\w+)/,":"+MOZ+"$1")]})],Zt);case"::placeholder":return serialize([copy(sn,{props:[replace(Kt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(sn,{props:[replace(Kt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(sn,{props:[replace(Kt,/:(plac\w+)/,MS+"input-$1")]})],Zt)}return""})}}function Pn(sn){switch(sn.type){case RULESET:sn.props=sn.props.map(function(dt){return combine(tokenize(dt),function(Mt,Zt,Kt){switch(charat(Mt,0)){case 12:return substr(Mt,1,strlen(Mt));case 0:case 40:case 43:case 62:case 126:return Mt;case 58:Kt[++Zt]==="global"&&(Kt[Zt]="",Kt[++Zt]="\f"+substr(Kt[Zt],Zt=1,-1));case 32:return Zt===1?"":Mt;default:switch(Zt){case 0:return sn=Mt,sizeof(Kt)>1?"":Mt;case(Zt=sizeof(Kt)-1):case 2:return Zt===2?Mt+sn+sn:Mt+sn;default:return Mt}}})})}}function hr(sn){return Te(mt("",null,null,null,[""],sn=Nt(sn),0,[0],sn))}function mt(sn,dt,Mt,Zt,Kt,Nn,Ur,Ui,Ao){for(var rs=0,ps=0,Po=Ur,$a=0,nl=0,ka=0,Xs=1,zs=1,xa=1,Ea=0,_a="",Ba=Kt,Al=Nn,ks=Zt,Za=_a;zs;)switch(ka=Ea,Ea=je()){case 40:if(ka!=108&&Be(Za,Po-1)==58){Ie(Za+=se(vt(Ea),"&","&\f"),"&\f")!=-1&&(xa=-1);break}case 34:case 39:case 91:Za+=vt(Ea);break;case 9:case 10:case 13:case 32:Za+=Vt(ka);break;case 92:Za+=un(Ct()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ge(kt(Lr(je(),Ct()),dt,Mt),Ao);break;default:Za+="/"}break;case 123*Xs:Ui[rs++]=ct(Za)*xa;case 125*Xs:case 59:case 0:switch(Ea){case 0:case 125:zs=0;case 59+ps:xa==-1&&(Za=se(Za,/\f/g,"")),nl>0&&ct(Za)-Po&&Ge(nl>32?vn(Za+";",Zt,Mt,Po-1):vn(se(Za," ","")+";",Zt,Mt,Po-2),Ao);break;case 59:Za+=";";default:if(Ge(ks=tt(Za,dt,Mt,rs,ps,Kt,Ui,_a,Ba=[],Al=[],Po),Nn),Ea===123)if(ps===0)mt(Za,dt,ks,ks,Ba,Nn,Po,Ui,Al);else switch($a===99&&Be(Za,3)===110?100:$a){case 100:case 108:case 109:case 115:mt(sn,ks,ks,Zt&&Ge(tt(sn,ks,ks,0,0,Kt,Ui,_a,Kt,Ba=[],Po),Al),Kt,Al,Po,Ui,Zt?Ba:Al);break;default:mt(Za,ks,ks,ks,[""],Al,0,Ui,Al)}}rs=ps=nl=0,Xs=xa=1,_a=Za="",Po=Ur;break;case 58:Po=1+ct(Za),nl=ka;default:if(Xs<1){if(Ea==123)--Xs;else if(Ea==125&&Xs++==0&&Ue()==125)continue}switch(Za+=W(Ea),Ea*Xs){case 38:xa=ps>0?1:(Za+="\f",-1);break;case 44:Ui[rs++]=(ct(Za)-1)*xa,xa=1;break;case 64:ft()===45&&(Za+=vt(je())),$a=ft(),ps=Po=ct(_a=Za+=Yr(Ct())),Ea++;break;case 45:ka===45&&ct(Za)==2&&(Xs=0)}}return Nn}function tt(sn,dt,Mt,Zt,Kt,Nn,Ur,Ui,Ao,rs,ps){for(var Po=Kt-1,$a=Kt===0?Nn:[""],nl=nt($a),ka=0,Xs=0,zs=0;ka0?$a[xa]+" "+Ea:se(Ea,/&\f/g,$a[xa])))&&(Ao[zs++]=_a);return Pe(sn,dt,Mt,Kt===0?Go:Ui,Ao,rs,ps)}function kt(sn,dt,Mt){return Pe(sn,dt,Mt,hi,W(Oe()),Ce(sn,2,-2),0)}function vn(sn,dt,Mt,Zt){return Pe(sn,dt,Mt,Mo,Ce(sn,0,Zt),Ce(sn,Zt+1,-1),Zt)}var vr=function(dt,Mt,Zt){for(var Kt=0,Nn=0;Kt=Nn,Nn=ft(),Kt===38&&Nn===12&&(Mt[Zt]=1),!hn(Nn);)je();return Xe(dt,yt)},qr=function(dt,Mt){var Zt=-1,Kt=44;do switch(hn(Kt)){case 0:Kt===38&&ft()===12&&(Mt[Zt]=1),dt[Zt]+=vr(yt-1,Mt,Zt);break;case 2:dt[Zt]+=vt(Kt);break;case 4:if(Kt===44){dt[++Zt]=ft()===58?"&\f":"",Mt[Zt]=dt[Zt].length;break}default:dt[Zt]+=W(Kt)}while(Kt=je());return dt},Ni=function(dt,Mt){return Te(qr(Nt(dt),Mt))},li=new WeakMap,Un=function(dt){if(!(dt.type!=="rule"||!dt.parent||dt.length<1)){for(var Mt=dt.value,Zt=dt.parent,Kt=dt.column===Zt.column&&dt.line===Zt.line;Zt.type!=="rule";)if(Zt=Zt.parent,!Zt)return;if(!(dt.props.length===1&&Mt.charCodeAt(0)!==58&&!li.get(Zt))&&!Kt){li.set(dt,!0);for(var Nn=[],Ur=Ni(Mt,Nn),Ui=Zt.props,Ao=0,rs=0;Ao-1},Bt=function(dt){return function(Mt,Zt,Kt){if(!(Mt.type!=="rule"||dt.compat)){var Nn=Mt.value.match(/(:first|:nth|:nth-last)-child/g);if(Nn){for(var Ur=!!Mt.parent,Ui=Ur?Mt.parent.children:Kt,Ao=Ui.length-1;Ao>=0;Ao--){var rs=Ui[Ao];if(rs.line=0;Zt--)if(!rn(Mt[Zt]))return!0;return!1},tr=function(dt){dt.type="",dt.value="",dt.return="",dt.children="",dt.props=""},Jn=function(dt,Mt,Zt){rn(dt)&&(dt.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),tr(dt)):ir(Mt,Zt)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),tr(dt)))};function nn(sn,dt){switch(Y(sn,dt)){case 5103:return Qi+"print-"+sn+sn;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qi+sn+sn;case 5349:case 4246:case 4810:case 6968:case 2756:return Qi+sn+Xi+sn+fi+sn+sn;case 6828:case 4268:return Qi+sn+fi+sn+sn;case 6165:return Qi+sn+fi+"flex-"+sn+sn;case 5187:return Qi+sn+se(sn,/(\w+).+(:[^]+)/,Qi+"box-$1$2"+fi+"flex-$1$2")+sn;case 5443:return Qi+sn+fi+"flex-item-"+se(sn,/flex-|-self/,"")+sn;case 4675:return Qi+sn+fi+"flex-line-pack"+se(sn,/align-content|flex-|-self/,"")+sn;case 5548:return Qi+sn+fi+se(sn,"shrink","negative")+sn;case 5292:return Qi+sn+fi+se(sn,"basis","preferred-size")+sn;case 6060:return Qi+"box-"+se(sn,"-grow","")+Qi+sn+fi+se(sn,"grow","positive")+sn;case 4554:return Qi+se(sn,/([^-])(transform)/g,"$1"+Qi+"$2")+sn;case 6187:return se(se(se(sn,/(zoom-|grab)/,Qi+"$1"),/(image-set)/,Qi+"$1"),sn,"")+sn;case 5495:case 3959:return se(sn,/(image-set\([^]*)/,Qi+"$1$`$1");case 4968:return se(se(sn,/(.+:)(flex-)?(.*)/,Qi+"box-pack:$3"+fi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qi+sn+sn;case 4095:case 3583:case 4068:case 2532:return se(sn,/(.+)-inline(.+)/,Qi+"$1$2")+sn;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(ct(sn)-1-dt>6)switch(Be(sn,dt+1)){case 109:if(Be(sn,dt+4)!==45)break;case 102:return se(sn,/(.+:)(.+)-([^]+)/,"$1"+Qi+"$2-$3$1"+Xi+(Be(sn,dt+3)==108?"$3":"$2-$3"))+sn;case 115:return~Ie(sn,"stretch")?nn(se(sn,"stretch","fill-available"),dt)+sn:sn}break;case 4949:if(Be(sn,dt+1)!==115)break;case 6444:switch(Be(sn,ct(sn)-3-(~Ie(sn,"!important")&&10))){case 107:return se(sn,":",":"+Qi)+sn;case 101:return se(sn,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qi+(Be(sn,14)===45?"inline-":"")+"box$3$1"+Qi+"$2$3$1"+fi+"$2box$3")+sn}break;case 5936:switch(Be(sn,dt+11)){case 114:return Qi+sn+fi+se(sn,/[svh]\w+-[tblr]{2}/,"tb")+sn;case 108:return Qi+sn+fi+se(sn,/[svh]\w+-[tblr]{2}/,"tb-rl")+sn;case 45:return Qi+sn+fi+se(sn,/[svh]\w+-[tblr]{2}/,"lr")+sn}return Qi+sn+fi+sn+sn}return sn}var er=function(dt,Mt,Zt,Kt){if(dt.length>-1&&!dt.return)switch(dt.type){case Mo:dt.return=nn(dt.value,dt.length);break;case jn:return no([et(dt,{value:se(dt.value,"@","@"+Qi)})],Kt);case Go:if(dt.length)return at(dt.props,function(Nn){switch(ae(Nn,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([et(dt,{props:[se(Nn,/:(read-\w+)/,":"+Xi+"$1")]})],Kt);case"::placeholder":return no([et(dt,{props:[se(Nn,/:(plac\w+)/,":"+Qi+"input-$1")]}),et(dt,{props:[se(Nn,/:(plac\w+)/,":"+Xi+"$1")]}),et(dt,{props:[se(Nn,/:(plac\w+)/,fi+"input-$1")]})],Kt)}return""})}},Fr=[er],jr=function(dt){var Mt=dt.key;if(Mt==="css"){var Zt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Zt,function(Xs){var zs=Xs.getAttribute("data-emotion");zs.indexOf(" ")!==-1&&(document.head.appendChild(Xs),Xs.setAttribute("data-s",""))})}var Kt=dt.stylisPlugins||Fr,Nn={},Ur,Ui=[];Ur=dt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Mt+' "]'),function(Xs){for(var zs=Xs.getAttribute("data-emotion").split(" "),xa=1;xa=4;++Zt,Kt-=4)Mt=sn.charCodeAt(Zt)&255|(sn.charCodeAt(++Zt)&255)<<8|(sn.charCodeAt(++Zt)&255)<<16|(sn.charCodeAt(++Zt)&255)<<24,Mt=(Mt&65535)*1540483477+((Mt>>>16)*59797<<16),Mt^=Mt>>>24,dt=(Mt&65535)*1540483477+((Mt>>>16)*59797<<16)^(dt&65535)*1540483477+((dt>>>16)*59797<<16);switch(Kt){case 3:dt^=(sn.charCodeAt(Zt+2)&255)<<16;case 2:dt^=(sn.charCodeAt(Zt+1)&255)<<8;case 1:dt^=sn.charCodeAt(Zt)&255,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16)}return dt^=dt>>>13,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16),((dt^dt>>>15)>>>0).toString(36)}var zt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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};function en(sn){var dt=Object.create(null);return function(Mt){return dt[Mt]===void 0&&(dt[Mt]=sn(Mt)),dt[Mt]}}var Cn=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Bd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bg=/[A-Z]|^ms/g,Og=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g0=function(qt){return qt.charCodeAt(1)===45},qg=function(qt){return qt!=null&&typeof qt!="boolean"},Xg=Sa(function(No){return g0(No)?No:No.replace(Bg,"-$&").toLowerCase()}),A0=function(qt,Sr){switch(qt){case"animation":case"animationName":if(typeof Sr=="string")return Sr.replace(Og,function(si,Rs,wa){return hu={name:Rs,styles:wa,next:hu},Rs})}return Bs[qt]!==1&&!g0(qt)&&typeof Sr=="number"&&Sr!==0?Sr+"px":Sr};if(!1)var nv,t0,n0,u1,Eg,a1;var Hg=null;function Gd(No,qt,Sr){if(Sr==null)return"";if(Sr.__emotion_styles!==void 0)return Sr;switch(typeof Sr){case"boolean":return"";case"object":{if(Sr.anim===1)return hu={name:Sr.name,styles:Sr.styles,next:hu},Sr.name;if(Sr.styles!==void 0){var si=Sr.next;if(si!==void 0)for(;si!==void 0;)hu={name:si.name,styles:si.styles,next:hu},si=si.next;var Rs=Sr.styles+";";return Rs}return h0(No,qt,Sr)}case"function":{if(No!==void 0){var wa=hu,bu=Sr(No);return hu=wa,Gd(No,qt,bu)}break}case"string":if(!1)var s0,In;break}if(qt==null)return Sr;var ga=qt[Sr];return ga!==void 0?ga:Sr}function h0(No,qt,Sr){var si="";if(Array.isArray(Sr))for(var Rs=0;Rs=Math.abs(I)?x-N+I:I-N+x,x=N}x+y>=0!=!!b&&D.reverse()}},93904:function(c,g,l){var u=l(90417),D=l(47709);function b(x,y){var w,a=[];if(typeof x=="object")w=x;else if(typeof x=="string")try{w=u.parse(x)}catch(N){var S=N.message.match(/line (\d+)/),I=parseInt(S[1],10);return[{line:I-1,message:N.message,error:N}]}else return[{message:"Expected string or object as input",line:0}];return a=a.concat(D.hint(w,y)),a}c.exports.$=b},47709:function(c,g,l){var u=l(58627);function D(b,x){var y=[],w=0,a=10,S=6;function I(Bt){if((!x||x.noDuplicateMembers!==!1)&&Bt.__duplicateProperties__&&y.push({message:"An object contained duplicate members, making parsing ambigous: "+Bt.__duplicateProperties__.join(", "),line:Bt.__line__}),!ie(Bt,"type","string"))if(_n[Bt.type])Bt&&_n[Bt.type](Bt);else{var Rt=Mt[Bt.type.toLowerCase()];Rt!==void 0?y.push({message:"Expected "+Rt+" but got "+Bt.type+" (case sensitive)",line:Bt.__line__}):y.push({message:"The type "+Bt.type+" is unknown",line:Bt.__line__})}}function N(Bt,Rt){return Bt.every(function(on){return on!==null&&typeof on===Rt})}function ie(Bt,Rt,on){if(typeof Bt[Rt]=="undefined")return y.push({message:'"'+Rt+'" member required',line:Bt.__line__});if(on==="array"){if(!Array.isArray(Bt[Rt]))return y.push({message:'"'+Rt+'" member should be an array, but is an '+typeof Bt[Rt]+" instead",line:Bt.__line__})}else{if(on==="object"&&Bt[Rt]&&Bt[Rt].constructor!==Object)return y.push({message:'"'+Rt+'" member should be '+on+", but is an "+Bt[Rt].constructor.name+" instead",line:Bt.__line__});if(on&&typeof Bt[Rt]!==on)return y.push({message:'"'+Rt+'" member should be '+on+", but is an "+typeof Bt[Rt]+" instead",line:Bt.__line__})}}function ze(Bt){if(At(Bt),Bt.properties!==void 0&&y.push({message:'FeatureCollection object cannot contain a "properties" member',line:Bt.__line__}),Bt.coordinates!==void 0&&y.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:Bt.__line__}),!ie(Bt,"features","array")){if(!N(Bt.features,"object"))return y.push({message:"Every feature must be an object",line:Bt.__line__});Bt.features.forEach(Lt)}}function Ie(Bt,Rt){if(!Array.isArray(Bt))return y.push({message:"position should be an array, is a "+typeof Bt+" instead",line:Bt.__line__||Rt});if(Bt.length<2)return y.push({message:"position must have 2 or more elements",line:Bt.__line__||Rt});if(Bt.length>3)return y.push({message:"position should not have more than 3 elements",level:"message",line:Bt.__line__||Rt});if(!N(Bt,"number"))return y.push({message:"each element in a position must be a number",line:Bt.__line__||Rt});if(x&&x.precisionWarning){if(w===a)return w+=1,y.push({message:"truncated warnings: we've encountered coordinate precision warning "+a+" times, no more warnings will be reported",level:"message",line:Bt.__line__||Rt});wS)return w+=1,y.push({message:"precision of coordinates should be reduced",level:"message",line:Bt.__line__||Rt})})}}function ct(Bt,Rt,on,Hr){if(Hr===void 0&&Bt.__line__!==void 0&&(Hr=Bt.__line__),on===0)return Ie(Bt,Hr);if(on===1&&Rt){if(Rt==="LinearRing"){if(!Array.isArray(Bt[Bt.length-1]))return y.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:Hr}),!0;if(Bt.length<4&&y.push({message:"a LinearRing of coordinates needs to have four or more positions",line:Hr}),Bt.length&&(Bt[Bt.length-1].length!==Bt[0].length||!Bt[Bt.length-1].every(function(Ca,ai){return Bt[0][ai]===Ca})))return y.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:Hr}),!0}else if(Rt==="Line"&&Bt.length<2)return y.push({message:"a line needs to have two or more coordinates to be valid",line:Hr})}if(!Array.isArray(Bt))y.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:Hr});else{var vn=Bt.map(function(Ca){return ct(Ca,Rt,on-1,Ca.__line__||Hr)});return vn.some(function(Ca){return Ca})}}function At(Bt){if(Bt.bbox){if(Array.isArray(Bt.bbox))return N(Bt.bbox,"number")||y.push({message:"each element in a bbox member must be a number",line:Bt.bbox.__line__}),Bt.bbox.length===4||Bt.bbox.length===6||y.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:Bt.bbox.__line__}),y.length;y.push({message:"bbox member must be an array of numbers, but is a "+typeof Bt.bbox,line:Bt.__line__})}}function rt(Bt){Bt.properties!==void 0&&y.push({message:'geometry object cannot contain a "properties" member',line:Bt.__line__}),Bt.geometry!==void 0&&y.push({message:'geometry object cannot contain a "geometry" member',line:Bt.__line__}),Bt.features!==void 0&&y.push({message:'geometry object cannot contain a "features" member',line:Bt.__line__})}function It(Bt){At(Bt),rt(Bt),ie(Bt,"coordinates","array")||Ie(Bt.coordinates)}function Ot(Bt){At(Bt),!ie(Bt,"coordinates","array")&&(ct(Bt.coordinates,"LinearRing",2)||x&&x.ignoreRightHandRule===!0||u(Bt,y))}function wn(Bt){At(Bt),!ie(Bt,"coordinates","array")&&(ct(Bt.coordinates,"LinearRing",3)||x&&x.ignoreRightHandRule===!0||u(Bt,y))}function Hs(Bt){At(Bt),ie(Bt,"coordinates","array")||ct(Bt.coordinates,"Line",1)}function jr(Bt){At(Bt),ie(Bt,"coordinates","array")||ct(Bt.coordinates,"Line",2)}function Jr(Bt){At(Bt),ie(Bt,"coordinates","array")||ct(Bt.coordinates,"",1)}function Yn(Bt){At(Bt),ie(Bt,"geometries","array")||(N(Bt.geometries,"object")||y.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:Bt.__line__}),Bt.geometries.length===1&&y.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:Bt.geometries.__line__}),Bt.geometries.forEach(function(Rt){Rt&&(Rt.type==="GeometryCollection"&&y.push({message:"GeometryCollection should avoid nested geometry collections",line:Bt.geometries.__line__}),I(Rt))}))}function Lt(Bt){At(Bt),Bt.id!==void 0&&typeof Bt.id!="string"&&typeof Bt.id!="number"&&y.push({message:'Feature "id" member must have a string or number value',line:Bt.__line__}),Bt.features!==void 0&&y.push({message:'Feature object cannot contain a "features" member',line:Bt.__line__}),Bt.coordinates!==void 0&&y.push({message:'Feature object cannot contain a "coordinates" member',line:Bt.__line__}),Bt.type!=="Feature"&&y.push({message:"GeoJSON features must have a type=feature member",line:Bt.__line__}),ie(Bt,"properties","object"),ie(Bt,"geometry","object")||Bt.geometry&&I(Bt.geometry)}var _n={Point:It,Feature:Lt,MultiPoint:Jr,LineString:Hs,MultiLineString:jr,FeatureCollection:ze,GeometryCollection:Yn,Polygon:Ot,MultiPolygon:wn},Mt=Object.keys(_n).reduce(function(Bt,Rt){return Bt[Rt.toLowerCase()]=Rt,Bt},{});return typeof b!="object"||b===null||b===void 0?(y.push({message:"The root of a GeoJSON object must be an object.",line:0}),y):(I(b),y.forEach(function(Bt){({}).hasOwnProperty.call(Bt,"line")&&Bt.line===void 0&&delete Bt.line}),y)}c.exports.hint=D},58627:function(c){function g(D){var b=0;if(D.length>2)for(var x,y,w=0;w=0}function l(D){if(D&&D.length>0){if(g(D[0]))return!1;var b=D.slice(1,D.length);if(!b.every(g))return!1}return!0}function u(D){if(D.type==="Polygon")return l(D.coordinates);if(D.type==="MultiPolygon")return D.coordinates.every(l)}c.exports=function(b,x){u(b)||x.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:b.__line__})}},59263:function(c){"use strict";c.exports=g;function g(l,u){this.x=l,this.y=u}g.prototype={clone:function(){return new g(this.x,this.y)},add:function(l){return this.clone()._add(l)},sub:function(l){return this.clone()._sub(l)},multByPoint:function(l){return this.clone()._multByPoint(l)},divByPoint:function(l){return this.clone()._divByPoint(l)},mult:function(l){return this.clone()._mult(l)},div:function(l){return this.clone()._div(l)},rotate:function(l){return this.clone()._rotate(l)},rotateAround:function(l,u){return this.clone()._rotateAround(l,u)},matMult:function(l){return this.clone()._matMult(l)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(l){return this.x===l.x&&this.y===l.y},dist:function(l){return Math.sqrt(this.distSqr(l))},distSqr:function(l){var u=l.x-this.x,D=l.y-this.y;return u*u+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(l){return Math.atan2(this.y-l.y,this.x-l.x)},angleWith:function(l){return this.angleWithSep(l.x,l.y)},angleWithSep:function(l,u){return Math.atan2(this.x*u-this.y*l,this.x*l+this.y*u)},_matMult:function(l){var u=l[0]*this.x+l[1]*this.y,D=l[2]*this.x+l[3]*this.y;return this.x=u,this.y=D,this},_add:function(l){return this.x+=l.x,this.y+=l.y,this},_sub:function(l){return this.x-=l.x,this.y-=l.y,this},_mult:function(l){return this.x*=l,this.y*=l,this},_div:function(l){return this.x/=l,this.y/=l,this},_multByPoint:function(l){return this.x*=l.x,this.y*=l.y,this},_divByPoint:function(l){return this.x/=l.x,this.y/=l.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var l=this.y;return this.y=this.x,this.x=-l,this},_rotate:function(l){var u=Math.cos(l),D=Math.sin(l),b=u*this.x-D*this.y,x=D*this.x+u*this.y;return this.x=b,this.y=x,this},_rotateAround:function(l,u){var D=Math.cos(l),b=Math.sin(l),x=u.x+D*(this.x-u.x)-b*(this.y-u.y),y=u.y+b*(this.x-u.x)+D*(this.y-u.y);return this.x=x,this.y=y,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},g.convert=function(l){return l instanceof g?l:Array.isArray(l)?new g(l[0],l[1]):l}},52155:function(c){"use strict";c.exports=l,c.exports.default=l;var g=1e20;function l(y,w,a,S,I,N){this.fontSize=y||24,this.buffer=w===void 0?3:w,this.cutoff=S||.25,this.fontFamily=I||"sans-serif",this.fontWeight=N||"normal",this.radius=a||8;var ie=this.size=this.fontSize+this.buffer*2,ze=ie+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=ie,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(ze*ze),this.gridInner=new Float64Array(ze*ze),this.f=new Float64Array(ze),this.z=new Float64Array(ze+1),this.v=new Uint16Array(ze),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(ie/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function u(y,w,a,S,I,N,ie){N.fill(g,0,w*a),ie.fill(0,0,w*a);for(var ze=(w-S)/2,Ie=0;Ie-1);Ie++,N[Ie]=ze,ie[Ie]=ct,ie[Ie+1]=g}for(ze=0,Ie=0;zeb)return b;for(;Dy?D=x:b=x,x=(b-D)*.5+D}return x},g.prototype.solve=function(l,u){return this.sampleCurveY(this.solveCurveX(l,u))}},8332:function(c,g,l){c.exports.VectorTile=l(29148),l(82442),l(37815)},29148:function(c,g,l){"use strict";var u=l(37815);c.exports=D;function D(x,y){this.layers=x.readFields(b,{},y)}function b(x,y,w){if(x===3){var a=new u(w,w.readVarint()+w.pos);a.length&&(y[a.name]=a)}}},82442:function(c,g,l){"use strict";var u=l(59263);c.exports=D;function D(a,S,I,N,ie){this.properties={},this.extent=I,this.type=0,this._pbf=a,this._geometry=-1,this._keys=N,this._values=ie,a.readFields(b,this,S)}function b(a,S,I){a==1?S.id=I.readVarint():a==2?x(I,S):a==3?S.type=I.readVarint():a==4&&(S._geometry=I.pos)}function x(a,S){for(var I=a.readVarint()+a.pos;a.pos>3}if(N--,I===1||I===2)ie+=a.readSVarint(),ze+=a.readSVarint(),I===1&&(ct&&Ie.push(ct),ct=[]),ct.push(new u(ie,ze));else if(I===7)ct&&ct.push(ct[0].clone());else throw new Error("unknown command "+I)}return ct&&Ie.push(ct),Ie},D.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var S=a.readVarint()+a.pos,I=1,N=0,ie=0,ze=0,Ie=1/0,ct=-1/0,At=1/0,rt=-1/0;a.pos>3}if(N--,I===1||I===2)ie+=a.readSVarint(),ze+=a.readSVarint(),iect&&(ct=ie),zert&&(rt=ze);else if(I!==7)throw new Error("unknown command "+I)}return[Ie,At,ct,rt]},D.prototype.toGeoJSON=function(a,S,I){var N=this.extent*Math.pow(2,I),ie=this.extent*a,ze=this.extent*S,Ie=this.loadGeometry(),ct=D.types[this.type],At,rt;function It(Hs){for(var jr=0;jr>3;w=S===1?y.readString():S===2?y.readFloat():S===3?y.readDouble():S===4?y.readVarint64():S===5?y.readVarint():S===6?y.readSVarint():S===7?y.readBoolean():null}return w}D.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var w=this._pbf.readVarint()+this._pbf.pos;return new u(this._pbf,w,this.extent,this._keys,this._values)}},76314:function(c,g,l){"use strict";var u;u={value:!0};var D=l(9750);function b(x){var y=[1/0,1/0,-1/0,-1/0];return D.coordEach(x,function(w){y[0]>w[0]&&(y[0]=w[0]),y[1]>w[1]&&(y[1]=w[1]),y[2]=0))throw new Error("precision must be a positive number");var Rt=Math.pow(10,Bt||0);return Math.round(Mt*Rt)/Rt}g.round=Ie;function ct(Mt,Bt){Bt===void 0&&(Bt="kilometers");var Rt=g.factors[Bt];if(!Rt)throw new Error(Bt+" units is invalid");return Mt*Rt}g.radiansToLength=ct;function At(Mt,Bt){Bt===void 0&&(Bt="kilometers");var Rt=g.factors[Bt];if(!Rt)throw new Error(Bt+" units is invalid");return Mt/Rt}g.lengthToRadians=At;function rt(Mt,Bt){return Ot(At(Mt,Bt))}g.lengthToDegrees=rt;function It(Mt){var Bt=Mt%360;return Bt<0&&(Bt+=360),Bt}g.bearingToAzimuth=It;function Ot(Mt){var Bt=Mt%(2*Math.PI);return Bt*180/Math.PI}g.radiansToDegrees=Ot;function wn(Mt){var Bt=Mt%360;return Bt*Math.PI/180}g.degreesToRadians=wn;function Hs(Mt,Bt,Rt){if(Bt===void 0&&(Bt="kilometers"),Rt===void 0&&(Rt="kilometers"),!(Mt>=0))throw new Error("length must be a positive number");return ct(At(Mt,Bt),Rt)}g.convertLength=Hs;function jr(Mt,Bt,Rt){if(Bt===void 0&&(Bt="meters"),Rt===void 0&&(Rt="kilometers"),!(Mt>=0))throw new Error("area must be a positive number");var on=g.areaFactors[Bt];if(!on)throw new Error("invalid original units");var Hr=g.areaFactors[Rt];if(!Hr)throw new Error("invalid final units");return Mt/on*Hr}g.convertArea=jr;function Jr(Mt){return!isNaN(Mt)&&Mt!==null&&!Array.isArray(Mt)}g.isNumber=Jr;function Yn(Mt){return!!Mt&&Mt.constructor===Object}g.isObject=Yn;function Lt(Mt){if(!Mt)throw new Error("bbox is required");if(!Array.isArray(Mt))throw new Error("bbox must be an Array");if(Mt.length!==4&&Mt.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Mt.forEach(function(Bt){if(!Jr(Bt))throw new Error("bbox must only contain numbers")})}g.validateBBox=Lt;function _n(Mt){if(!Mt)throw new Error("id is required");if(["string","number"].indexOf(typeof Mt)===-1)throw new Error("id must be a number or a string")}g.validateId=_n},9750:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var u=l(78161);function D(wn,Hs,jr){if(wn!==null)for(var Jr,Yn,Lt,_n,Mt,Bt,Rt,on=0,Hr=0,vn,Ca=wn.type,ai=Ca==="FeatureCollection",gt=Ca==="Feature",Zr=ai?wn.features.length:1,Ht=0;HtBt||ai>Rt||gt>on){Mt=Hr,Bt=Jr,Rt=ai,on=gt,Lt=0;return}var Zr=u.lineString([Mt,Hr],jr.properties);if(Hs(Zr,Jr,Yn,gt,Lt)===!1)return!1;Lt++,Mt=Hr})===!1)return!1}}})}function ct(wn,Hs,jr){var Jr=jr,Yn=!1;return Ie(wn,function(Lt,_n,Mt,Bt,Rt){Yn===!1&&jr===void 0?Jr=Lt:Jr=Hs(Jr,Lt,_n,Mt,Bt,Rt),Yn=!0}),Jr}function At(wn,Hs){if(!wn)throw new Error("geojson is required");ie(wn,function(jr,Jr,Yn){if(jr.geometry!==null){var Lt=jr.geometry.type,_n=jr.geometry.coordinates;switch(Lt){case"LineString":if(Hs(jr,Jr,Yn,0,0)===!1)return!1;break;case"Polygon":for(var Mt=0;Mt<_n.length;Mt++)if(Hs(u.lineString(_n[Mt],jr.properties),Jr,Yn,Mt)===!1)return!1;break}}})}function rt(wn,Hs,jr){var Jr=jr;return At(wn,function(Yn,Lt,_n,Mt){Lt===0&&jr===void 0?Jr=Yn:Jr=Hs(Jr,Yn,Lt,_n,Mt)}),Jr}function It(wn,Hs){if(Hs=Hs||{},!u.isObject(Hs))throw new Error("options is invalid");var jr=Hs.featureIndex||0,Jr=Hs.multiFeatureIndex||0,Yn=Hs.geometryIndex||0,Lt=Hs.segmentIndex||0,_n=Hs.properties,Mt;switch(wn.type){case"FeatureCollection":jr<0&&(jr=wn.features.length+jr),_n=_n||wn.features[jr].properties,Mt=wn.features[jr].geometry;break;case"Feature":_n=_n||wn.properties,Mt=wn.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Mt=wn;break;default:throw new Error("geojson is invalid")}if(Mt===null)return null;var Bt=Mt.coordinates;switch(Mt.type){case"Point":case"MultiPoint":return null;case"LineString":return Lt<0&&(Lt=Bt.length+Lt-1),u.lineString([Bt[Lt],Bt[Lt+1]],_n,Hs);case"Polygon":return Yn<0&&(Yn=Bt.length+Yn),Lt<0&&(Lt=Bt[Yn].length+Lt-1),u.lineString([Bt[Yn][Lt],Bt[Yn][Lt+1]],_n,Hs);case"MultiLineString":return Jr<0&&(Jr=Bt.length+Jr),Lt<0&&(Lt=Bt[Jr].length+Lt-1),u.lineString([Bt[Jr][Lt],Bt[Jr][Lt+1]],_n,Hs);case"MultiPolygon":return Jr<0&&(Jr=Bt.length+Jr),Yn<0&&(Yn=Bt[Jr].length+Yn),Lt<0&&(Lt=Bt[Jr][Yn].length-Lt-1),u.lineString([Bt[Jr][Yn][Lt],Bt[Jr][Yn][Lt+1]],_n,Hs)}throw new Error("geojson is invalid")}function Ot(wn,Hs){if(Hs=Hs||{},!u.isObject(Hs))throw new Error("options is invalid");var jr=Hs.featureIndex||0,Jr=Hs.multiFeatureIndex||0,Yn=Hs.geometryIndex||0,Lt=Hs.coordIndex||0,_n=Hs.properties,Mt;switch(wn.type){case"FeatureCollection":jr<0&&(jr=wn.features.length+jr),_n=_n||wn.features[jr].properties,Mt=wn.features[jr].geometry;break;case"Feature":_n=_n||wn.properties,Mt=wn.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Mt=wn;break;default:throw new Error("geojson is invalid")}if(Mt===null)return null;var Bt=Mt.coordinates;switch(Mt.type){case"Point":return u.point(Bt,_n,Hs);case"MultiPoint":return Jr<0&&(Jr=Bt.length+Jr),u.point(Bt[Jr],_n,Hs);case"LineString":return Lt<0&&(Lt=Bt.length+Lt),u.point(Bt[Lt],_n,Hs);case"Polygon":return Yn<0&&(Yn=Bt.length+Yn),Lt<0&&(Lt=Bt[Yn].length+Lt),u.point(Bt[Yn][Lt],_n,Hs);case"MultiLineString":return Jr<0&&(Jr=Bt.length+Jr),Lt<0&&(Lt=Bt[Jr].length+Lt),u.point(Bt[Jr][Lt],_n,Hs);case"MultiPolygon":return Jr<0&&(Jr=Bt.length+Jr),Yn<0&&(Yn=Bt[Jr].length+Yn),Lt<0&&(Lt=Bt[Jr][Yn].length-Lt),u.point(Bt[Jr][Yn][Lt],_n,Hs)}throw new Error("geojson is invalid")}g.coordAll=S,g.coordEach=D,g.coordReduce=b,g.featureEach=w,g.featureReduce=a,g.findPoint=Ot,g.findSegment=It,g.flattenEach=ie,g.flattenReduce=ze,g.geomEach=I,g.geomReduce=N,g.lineEach=At,g.lineReduce=rt,g.propEach=x,g.propReduce=y,g.segmentEach=Ie,g.segmentReduce=ct},18859:function(c,g){"use strict";function l(y,w,a){if(a===void 0&&(a=Array.prototype),y&&typeof a.find=="function")return a.find.call(y,w);for(var S=0;S=Math.abs(ae)?A-se+ae:ae-se+A,A=se}A+W>=0!=!!P&&z.reverse()}},93904:function(St,me,x){var v=x(90417),z=x(47709);function P(A,W){var X,Y=[];if(typeof A=="object")X=A;else if(typeof A=="string")try{X=v.parse(A)}catch(se){var ie=se.message.match(/line (\d+)/),ae=parseInt(ie[1],10);return[{line:ae-1,message:se.message,error:se}]}else return[{message:"Expected string or object as input",line:0}];return Y=Y.concat(z.hint(X,W)),Y}St.exports.$=P},47709:function(St,me,x){var v=x(58627);function z(P,A){var W=[],X=0,Y=10,ie=6;function ae(Ue){if((!A||A.noDuplicateMembers!==!1)&&Ue.__duplicateProperties__&&W.push({message:"An object contained duplicate members, making parsing ambigous: "+Ue.__duplicateProperties__.join(", "),line:Ue.__line__}),!Ie(Ue,"type","string"))if(et[Ue.type])Ue&&et[Ue.type](Ue);else{var je=Oe[Ue.type.toLowerCase()];je!==void 0?W.push({message:"Expected "+je+" but got "+Ue.type+" (case sensitive)",line:Ue.__line__}):W.push({message:"The type "+Ue.type+" is unknown",line:Ue.__line__})}}function se(Ue,je){return Ue.every(function(ft){return ft!==null&&typeof ft===je})}function Ie(Ue,je,ft){if(typeof Ue[je]=="undefined")return W.push({message:'"'+je+'" member required',line:Ue.__line__});if(ft==="array"){if(!Array.isArray(Ue[je]))return W.push({message:'"'+je+'" member should be an array, but is an '+typeof Ue[je]+" instead",line:Ue.__line__})}else{if(ft==="object"&&Ue[je]&&Ue[je].constructor!==Object)return W.push({message:'"'+je+'" member should be '+ft+", but is an "+Ue[je].constructor.name+" instead",line:Ue.__line__});if(ft&&typeof Ue[je]!==ft)return W.push({message:'"'+je+'" member should be '+ft+", but is an "+typeof Ue[je]+" instead",line:Ue.__line__})}}function Be(Ue){if(nt(Ue),Ue.properties!==void 0&&W.push({message:'FeatureCollection object cannot contain a "properties" member',line:Ue.__line__}),Ue.coordinates!==void 0&&W.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:Ue.__line__}),!Ie(Ue,"features","array")){if(!se(Ue.features,"object"))return W.push({message:"Every feature must be an object",line:Ue.__line__});Ue.features.forEach(Pe)}}function Ce(Ue,je){if(!Array.isArray(Ue))return W.push({message:"position should be an array, is a "+typeof Ue+" instead",line:Ue.__line__||je});if(Ue.length<2)return W.push({message:"position must have 2 or more elements",line:Ue.__line__||je});if(Ue.length>3)return W.push({message:"position should not have more than 3 elements",level:"message",line:Ue.__line__||je});if(!se(Ue,"number"))return W.push({message:"each element in a position must be a number",line:Ue.__line__||je});if(A&&A.precisionWarning){if(X===Y)return X+=1,W.push({message:"truncated warnings: we've encountered coordinate precision warning "+Y+" times, no more warnings will be reported",level:"message",line:Ue.__line__||je});Xie)return X+=1,W.push({message:"precision of coordinates should be reduced",level:"message",line:Ue.__line__||je})})}}function ct(Ue,je,ft,Ct){if(Ct===void 0&&Ue.__line__!==void 0&&(Ct=Ue.__line__),ft===0)return Ce(Ue,Ct);if(ft===1&&je){if(je==="LinearRing"){if(!Array.isArray(Ue[Ue.length-1]))return W.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:Ct}),!0;if(Ue.length<4&&W.push({message:"a LinearRing of coordinates needs to have four or more positions",line:Ct}),Ue.length&&(Ue[Ue.length-1].length!==Ue[0].length||!Ue[Ue.length-1].every(function(hn,Nt){return Ue[0][Nt]===hn})))return W.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:Ct}),!0}else if(je==="Line"&&Ue.length<2)return W.push({message:"a line needs to have two or more coordinates to be valid",line:Ct})}if(!Array.isArray(Ue))W.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:Ct});else{var Xe=Ue.map(function(hn){return ct(hn,je,ft-1,hn.__line__||Ct)});return Xe.some(function(hn){return hn})}}function nt(Ue){if(Ue.bbox){if(Array.isArray(Ue.bbox))return se(Ue.bbox,"number")||W.push({message:"each element in a bbox member must be a number",line:Ue.bbox.__line__}),Ue.bbox.length===4||Ue.bbox.length===6||W.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:Ue.bbox.__line__}),W.length;W.push({message:"bbox member must be an array of numbers, but is a "+typeof Ue.bbox,line:Ue.__line__})}}function Ge(Ue){Ue.properties!==void 0&&W.push({message:'geometry object cannot contain a "properties" member',line:Ue.__line__}),Ue.geometry!==void 0&&W.push({message:'geometry object cannot contain a "geometry" member',line:Ue.__line__}),Ue.features!==void 0&&W.push({message:'geometry object cannot contain a "features" member',line:Ue.__line__})}function at(Ue){nt(Ue),Ge(Ue),Ie(Ue,"coordinates","array")||Ce(Ue.coordinates)}function Ye(Ue){nt(Ue),!Ie(Ue,"coordinates","array")&&(ct(Ue.coordinates,"LinearRing",2)||A&&A.ignoreRightHandRule===!0||v(Ue,W))}function rt(Ue){nt(Ue),!Ie(Ue,"coordinates","array")&&(ct(Ue.coordinates,"LinearRing",3)||A&&A.ignoreRightHandRule===!0||v(Ue,W))}function Gt(Ue){nt(Ue),Ie(Ue,"coordinates","array")||ct(Ue.coordinates,"Line",1)}function yt(Ue){nt(Ue),Ie(Ue,"coordinates","array")||ct(Ue.coordinates,"Line",2)}function Et(Ue){nt(Ue),Ie(Ue,"coordinates","array")||ct(Ue.coordinates,"",1)}function ht(Ue){nt(Ue),Ie(Ue,"geometries","array")||(se(Ue.geometries,"object")||W.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:Ue.__line__}),Ue.geometries.length===1&&W.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:Ue.geometries.__line__}),Ue.geometries.forEach(function(je){je&&(je.type==="GeometryCollection"&&W.push({message:"GeometryCollection should avoid nested geometry collections",line:Ue.geometries.__line__}),ae(je))}))}function Pe(Ue){nt(Ue),Ue.id!==void 0&&typeof Ue.id!="string"&&typeof Ue.id!="number"&&W.push({message:'Feature "id" member must have a string or number value',line:Ue.__line__}),Ue.features!==void 0&&W.push({message:'Feature object cannot contain a "features" member',line:Ue.__line__}),Ue.coordinates!==void 0&&W.push({message:'Feature object cannot contain a "coordinates" member',line:Ue.__line__}),Ue.type!=="Feature"&&W.push({message:"GeoJSON features must have a type=feature member",line:Ue.__line__}),Ie(Ue,"properties","object"),Ie(Ue,"geometry","object")||Ue.geometry&&ae(Ue.geometry)}var et={Point:at,Feature:Pe,MultiPoint:Et,LineString:Gt,MultiLineString:yt,FeatureCollection:Be,GeometryCollection:ht,Polygon:Ye,MultiPolygon:rt},Oe=Object.keys(et).reduce(function(Ue,je){return Ue[je.toLowerCase()]=je,Ue},{});return typeof P!="object"||P===null||P===void 0?(W.push({message:"The root of a GeoJSON object must be an object.",line:0}),W):(ae(P),W.forEach(function(Ue){({}).hasOwnProperty.call(Ue,"line")&&Ue.line===void 0&&delete Ue.line}),W)}St.exports.hint=z},58627:function(St){function me(z){var P=0;if(z.length>2)for(var A,W,X=0;X=0}function x(z){if(z&&z.length>0){if(me(z[0]))return!1;var P=z.slice(1,z.length);if(!P.every(me))return!1}return!0}function v(z){if(z.type==="Polygon")return x(z.coordinates);if(z.type==="MultiPolygon")return z.coordinates.every(x)}St.exports=function(P,A){v(P)||A.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:P.__line__})}},59263:function(St){"use strict";St.exports=me;function me(x,v){this.x=x,this.y=v}me.prototype={clone:function(){return new me(this.x,this.y)},add:function(x){return this.clone()._add(x)},sub:function(x){return this.clone()._sub(x)},multByPoint:function(x){return this.clone()._multByPoint(x)},divByPoint:function(x){return this.clone()._divByPoint(x)},mult:function(x){return this.clone()._mult(x)},div:function(x){return this.clone()._div(x)},rotate:function(x){return this.clone()._rotate(x)},rotateAround:function(x,v){return this.clone()._rotateAround(x,v)},matMult:function(x){return this.clone()._matMult(x)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(x){return this.x===x.x&&this.y===x.y},dist:function(x){return Math.sqrt(this.distSqr(x))},distSqr:function(x){var v=x.x-this.x,z=x.y-this.y;return v*v+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(x){return Math.atan2(this.y-x.y,this.x-x.x)},angleWith:function(x){return this.angleWithSep(x.x,x.y)},angleWithSep:function(x,v){return Math.atan2(this.x*v-this.y*x,this.x*x+this.y*v)},_matMult:function(x){var v=x[0]*this.x+x[1]*this.y,z=x[2]*this.x+x[3]*this.y;return this.x=v,this.y=z,this},_add:function(x){return this.x+=x.x,this.y+=x.y,this},_sub:function(x){return this.x-=x.x,this.y-=x.y,this},_mult:function(x){return this.x*=x,this.y*=x,this},_div:function(x){return this.x/=x,this.y/=x,this},_multByPoint:function(x){return this.x*=x.x,this.y*=x.y,this},_divByPoint:function(x){return this.x/=x.x,this.y/=x.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var x=this.y;return this.y=this.x,this.x=-x,this},_rotate:function(x){var v=Math.cos(x),z=Math.sin(x),P=v*this.x-z*this.y,A=z*this.x+v*this.y;return this.x=P,this.y=A,this},_rotateAround:function(x,v){var z=Math.cos(x),P=Math.sin(x),A=v.x+z*(this.x-v.x)-P*(this.y-v.y),W=v.y+P*(this.x-v.x)+z*(this.y-v.y);return this.x=A,this.y=W,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},me.convert=function(x){return x instanceof me?x:Array.isArray(x)?new me(x[0],x[1]):x}},52155:function(St){"use strict";St.exports=x,St.exports.default=x;var me=1e20;function x(W,X,Y,ie,ae,se){this.fontSize=W||24,this.buffer=X===void 0?3:X,this.cutoff=ie||.25,this.fontFamily=ae||"sans-serif",this.fontWeight=se||"normal",this.radius=Y||8;var Ie=this.size=this.fontSize+this.buffer*2,Be=Ie+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=Ie,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(Be*Be),this.gridInner=new Float64Array(Be*Be),this.f=new Float64Array(Be),this.z=new Float64Array(Be+1),this.v=new Uint16Array(Be),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(Ie/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function v(W,X,Y,ie,ae,se,Ie){se.fill(me,0,X*Y),Ie.fill(0,0,X*Y);for(var Be=(X-ie)/2,Ce=0;Ce-1);Ce++,se[Ce]=Be,Ie[Ce]=ct,Ie[Ce+1]=me}for(Be=0,Ce=0;BeP)return P;for(;zW?z=A:P=A,A=(P-z)*.5+z}return A},me.prototype.solve=function(x,v){return this.sampleCurveY(this.solveCurveX(x,v))}},8332:function(St,me,x){St.exports.VectorTile=x(29148),x(82442),x(37815)},29148:function(St,me,x){"use strict";var v=x(37815);St.exports=z;function z(A,W){this.layers=A.readFields(P,{},W)}function P(A,W,X){if(A===3){var Y=new v(X,X.readVarint()+X.pos);Y.length&&(W[Y.name]=Y)}}},82442:function(St,me,x){"use strict";var v=x(59263);St.exports=z;function z(Y,ie,ae,se,Ie){this.properties={},this.extent=ae,this.type=0,this._pbf=Y,this._geometry=-1,this._keys=se,this._values=Ie,Y.readFields(P,this,ie)}function P(Y,ie,ae){Y==1?ie.id=ae.readVarint():Y==2?A(ae,ie):Y==3?ie.type=ae.readVarint():Y==4&&(ie._geometry=ae.pos)}function A(Y,ie){for(var ae=Y.readVarint()+Y.pos;Y.pos>3}if(se--,ae===1||ae===2)Ie+=Y.readSVarint(),Be+=Y.readSVarint(),ae===1&&(ct&&Ce.push(ct),ct=[]),ct.push(new v(Ie,Be));else if(ae===7)ct&&ct.push(ct[0].clone());else throw new Error("unknown command "+ae)}return ct&&Ce.push(ct),Ce},z.prototype.bbox=function(){var Y=this._pbf;Y.pos=this._geometry;for(var ie=Y.readVarint()+Y.pos,ae=1,se=0,Ie=0,Be=0,Ce=1/0,ct=-1/0,nt=1/0,Ge=-1/0;Y.pos>3}if(se--,ae===1||ae===2)Ie+=Y.readSVarint(),Be+=Y.readSVarint(),Iect&&(ct=Ie),BeGe&&(Ge=Be);else if(ae!==7)throw new Error("unknown command "+ae)}return[Ce,nt,ct,Ge]},z.prototype.toGeoJSON=function(Y,ie,ae){var se=this.extent*Math.pow(2,ae),Ie=this.extent*Y,Be=this.extent*ie,Ce=this.loadGeometry(),ct=z.types[this.type],nt,Ge;function at(Gt){for(var yt=0;yt>3;X=ie===1?W.readString():ie===2?W.readFloat():ie===3?W.readDouble():ie===4?W.readVarint64():ie===5?W.readVarint():ie===6?W.readSVarint():ie===7?W.readBoolean():null}return X}z.prototype.feature=function(W){if(W<0||W>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[W];var X=this._pbf.readVarint()+this._pbf.pos;return new v(this._pbf,X,this.extent,this._keys,this._values)}},76314:function(St,me,x){"use strict";var v;v={value:!0};var z=x(9750);function P(A){var W=[1/0,1/0,-1/0,-1/0];return z.coordEach(A,function(X){W[0]>X[0]&&(W[0]=X[0]),W[1]>X[1]&&(W[1]=X[1]),W[2]=0))throw new Error("precision must be a positive number");var je=Math.pow(10,Ue||0);return Math.round(Oe*je)/je}me.round=Ce;function ct(Oe,Ue){Ue===void 0&&(Ue="kilometers");var je=me.factors[Ue];if(!je)throw new Error(Ue+" units is invalid");return Oe*je}me.radiansToLength=ct;function nt(Oe,Ue){Ue===void 0&&(Ue="kilometers");var je=me.factors[Ue];if(!je)throw new Error(Ue+" units is invalid");return Oe/je}me.lengthToRadians=nt;function Ge(Oe,Ue){return Ye(nt(Oe,Ue))}me.lengthToDegrees=Ge;function at(Oe){var Ue=Oe%360;return Ue<0&&(Ue+=360),Ue}me.bearingToAzimuth=at;function Ye(Oe){var Ue=Oe%(2*Math.PI);return Ue*180/Math.PI}me.radiansToDegrees=Ye;function rt(Oe){var Ue=Oe%360;return Ue*Math.PI/180}me.degreesToRadians=rt;function Gt(Oe,Ue,je){if(Ue===void 0&&(Ue="kilometers"),je===void 0&&(je="kilometers"),!(Oe>=0))throw new Error("length must be a positive number");return ct(nt(Oe,Ue),je)}me.convertLength=Gt;function yt(Oe,Ue,je){if(Ue===void 0&&(Ue="meters"),je===void 0&&(je="kilometers"),!(Oe>=0))throw new Error("area must be a positive number");var ft=me.areaFactors[Ue];if(!ft)throw new Error("invalid original units");var Ct=me.areaFactors[je];if(!Ct)throw new Error("invalid final units");return Oe/ft*Ct}me.convertArea=yt;function Et(Oe){return!isNaN(Oe)&&Oe!==null&&!Array.isArray(Oe)}me.isNumber=Et;function ht(Oe){return!!Oe&&Oe.constructor===Object}me.isObject=ht;function Pe(Oe){if(!Oe)throw new Error("bbox is required");if(!Array.isArray(Oe))throw new Error("bbox must be an Array");if(Oe.length!==4&&Oe.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");Oe.forEach(function(Ue){if(!Et(Ue))throw new Error("bbox must only contain numbers")})}me.validateBBox=Pe;function et(Oe){if(!Oe)throw new Error("id is required");if(["string","number"].indexOf(typeof Oe)===-1)throw new Error("id must be a number or a string")}me.validateId=et},9750:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0});var v=x(78161);function z(rt,Gt,yt){if(rt!==null)for(var Et,ht,Pe,et,Oe,Ue,je,ft=0,Ct=0,Xe,hn=rt.type,Nt=hn==="FeatureCollection",Te=hn==="Feature",vt=Nt?rt.features.length:1,ze=0;zeUe||Nt>je||Te>ft){Oe=Ct,Ue=Et,je=Nt,ft=Te,Pe=0;return}var vt=v.lineString([Oe,Ct],yt.properties);if(Gt(vt,Et,ht,Te,Pe)===!1)return!1;Pe++,Oe=Ct})===!1)return!1}}})}function ct(rt,Gt,yt){var Et=yt,ht=!1;return Ce(rt,function(Pe,et,Oe,Ue,je){ht===!1&&yt===void 0?Et=Pe:Et=Gt(Et,Pe,et,Oe,Ue,je),ht=!0}),Et}function nt(rt,Gt){if(!rt)throw new Error("geojson is required");Ie(rt,function(yt,Et,ht){if(yt.geometry!==null){var Pe=yt.geometry.type,et=yt.geometry.coordinates;switch(Pe){case"LineString":if(Gt(yt,Et,ht,0,0)===!1)return!1;break;case"Polygon":for(var Oe=0;Oe=wn+Hs||wn?new java.lang.String(Ot,wn,Hs)+"":Ot}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(Ot){Ie.prototype[Ot]=function(){return null}});function It(Ot,wn){Ot.currentElement?Ot.currentElement.appendChild(wn):Ot.doc.appendChild(wn)}u=Ie,u=N,u=ie},32706:function(c,g,l){var u=l(18859),D=u.find,b=u.NAMESPACE;function x(Bs){return Bs!==""}function y(Bs){return Bs?Bs.split(/[\t\n\f\r ]+/).filter(x):[]}function w(Bs,Sa){return Bs.hasOwnProperty(Sa)||(Bs[Sa]=!0),Bs}function a(Bs){if(!Bs)return[];var Sa=y(Bs);return Object.keys(Sa.reduce(w,{}))}function S(Bs){return function(Sa){return Bs&&Bs.indexOf(Sa)!==-1}}function I(Bs,Sa){for(var $a in Bs)Object.prototype.hasOwnProperty.call(Bs,$a)&&(Sa[$a]=Bs[$a])}function N(Bs,Sa){var $a=Bs.prototype;if(!($a instanceof Sa)){let Bg=function(){};var Bd=Bg;Bg.prototype=Sa.prototype,Bg=new Bg,I($a,Bg),Bs.prototype=$a=Bg}$a.constructor!=Bs&&(typeof Bs!="function"&&console.error("unknown Class:"+Bs),$a.constructor=Bs)}var ie={},ze=ie.ELEMENT_NODE=1,Ie=ie.ATTRIBUTE_NODE=2,ct=ie.TEXT_NODE=3,At=ie.CDATA_SECTION_NODE=4,rt=ie.ENTITY_REFERENCE_NODE=5,It=ie.ENTITY_NODE=6,Ot=ie.PROCESSING_INSTRUCTION_NODE=7,wn=ie.COMMENT_NODE=8,Hs=ie.DOCUMENT_NODE=9,jr=ie.DOCUMENT_TYPE_NODE=10,Jr=ie.DOCUMENT_FRAGMENT_NODE=11,Yn=ie.NOTATION_NODE=12,Lt={},_n={},Mt=Lt.INDEX_SIZE_ERR=(_n[1]="Index size error",1),Bt=Lt.DOMSTRING_SIZE_ERR=(_n[2]="DOMString size error",2),Rt=Lt.HIERARCHY_REQUEST_ERR=(_n[3]="Hierarchy request error",3),on=Lt.WRONG_DOCUMENT_ERR=(_n[4]="Wrong document",4),Hr=Lt.INVALID_CHARACTER_ERR=(_n[5]="Invalid character",5),vn=Lt.NO_DATA_ALLOWED_ERR=(_n[6]="No data allowed",6),Ca=Lt.NO_MODIFICATION_ALLOWED_ERR=(_n[7]="No modification allowed",7),ai=Lt.NOT_FOUND_ERR=(_n[8]="Not found",8),gt=Lt.NOT_SUPPORTED_ERR=(_n[9]="Not supported",9),Zr=Lt.INUSE_ATTRIBUTE_ERR=(_n[10]="Attribute in use",10),Ht=Lt.INVALID_STATE_ERR=(_n[11]="Invalid state",11),Zs=Lt.SYNTAX_ERR=(_n[12]="Syntax error",12),oi=Lt.INVALID_MODIFICATION_ERR=(_n[13]="Invalid modification",13),Pa=Lt.NAMESPACE_ERR=(_n[14]="Invalid namespace",14),Aa=Lt.INVALID_ACCESS_ERR=(_n[15]="Invalid access",15);function Pg(Bs,Sa){if(Sa instanceof Error)var $a=Sa;else $a=this,Error.call(this,_n[Bs]),this.message=_n[Bs],Error.captureStackTrace&&Error.captureStackTrace(this,Pg);return $a.code=Bs,Sa&&(this.message=this.message+": "+Sa),$a}Pg.prototype=Error.prototype,I(Lt,Pg);function Ug(){}Ug.prototype={length:0,item:function(Bs){return Bs>=0&&Bs=0){for(var Bg=Sa.length-1;Bd0},lookupPrefix:function(Bs){for(var Sa=this;Sa;){var $a=Sa._nsMap;if($a){for(var Bd in $a)if(Object.prototype.hasOwnProperty.call($a,Bd)&&$a[Bd]===Bs)return Bd}Sa=Sa.nodeType==Ie?Sa.ownerDocument:Sa.parentNode}return null},lookupNamespaceURI:function(Bs){for(var Sa=this;Sa;){var $a=Sa._nsMap;if($a&&Object.prototype.hasOwnProperty.call($a,Bs))return $a[Bs];Sa=Sa.nodeType==Ie?Sa.ownerDocument:Sa.parentNode}return null},isDefaultNamespace:function(Bs){var Sa=this.lookupPrefix(Bs);return Sa==null}};function G0(Bs){return Bs=="<"&&"<"||Bs==">"&&">"||Bs=="&"&&"&"||Bs=='"'&&"""||"&#"+Bs.charCodeAt()+";"}I(ie,k0),I(ie,k0.prototype);function iv(Bs,Sa){if(Sa(Bs))return!0;if(Bs=Bs.firstChild)do if(iv(Bs,Sa))return!0;while(Bs=Bs.nextSibling)}function u0(){this.ownerDocument=this}function B1(Bs,Sa,$a){Bs&&Bs._inc++;var Bd=$a.namespaceURI;Bd===b.XMLNS&&(Sa._nsMap[$a.prefix?$a.localName:""]=$a.value)}function Dg(Bs,Sa,$a,Bd){Bs&&Bs._inc++;var Bg=$a.namespaceURI;Bg===b.XMLNS&&delete Sa._nsMap[$a.prefix?$a.localName:""]}function zo(Bs,Sa,$a){if(Bs&&Bs._inc){Bs._inc++;var Bd=Sa.childNodes;if($a)Bd[Bd.length++]=$a;else{for(var Bg=Sa.firstChild,Og=0;Bg;)Bd[Og++]=Bg,Bg=Bg.nextSibling;Bd.length=Og,delete Bd[Bd.length]}}}function mu(Bs,Sa){var $a=Sa.previousSibling,Bd=Sa.nextSibling;return $a?$a.nextSibling=Bd:Bs.firstChild=Bd,Bd?Bd.previousSibling=$a:Bs.lastChild=$a,Sa.parentNode=null,Sa.previousSibling=null,Sa.nextSibling=null,zo(Bs.ownerDocument,Bs),Sa}function Ag(Bs){return Bs&&(Bs.nodeType===k0.DOCUMENT_NODE||Bs.nodeType===k0.DOCUMENT_FRAGMENT_NODE||Bs.nodeType===k0.ELEMENT_NODE)}function c0(Bs){return Bs&&($0(Bs)||cv(Bs)||L0(Bs)||Bs.nodeType===k0.DOCUMENT_FRAGMENT_NODE||Bs.nodeType===k0.COMMENT_NODE||Bs.nodeType===k0.PROCESSING_INSTRUCTION_NODE)}function L0(Bs){return Bs&&Bs.nodeType===k0.DOCUMENT_TYPE_NODE}function $0(Bs){return Bs&&Bs.nodeType===k0.ELEMENT_NODE}function cv(Bs){return Bs&&Bs.nodeType===k0.TEXT_NODE}function Gg(Bs,Sa){var $a=Bs.childNodes||[];if(D($a,$0)||L0(Sa))return!1;var Bd=D($a,L0);return!(Sa&&Bd&&$a.indexOf(Bd)>$a.indexOf(Sa))}function uu(Bs,Sa){var $a=Bs.childNodes||[];function Bd(Og){return $0(Og)&&Og!==Sa}if(D($a,Bd))return!1;var Bg=D($a,L0);return!(Sa&&Bg&&$a.indexOf(Bg)>$a.indexOf(Sa))}function Gs(Bs,Sa,$a){if(!Ag(Bs))throw new Pg(Rt,"Unexpected parent node type "+Bs.nodeType);if($a&&$a.parentNode!==Bs)throw new Pg(ai,"child not in parent");if(!c0(Sa)||L0(Sa)&&Bs.nodeType!==k0.DOCUMENT_NODE)throw new Pg(Rt,"Unexpected node type "+Sa.nodeType+" for parent node type "+Bs.nodeType)}function Ia(Bs,Sa,$a){var Bd=Bs.childNodes||[],Bg=Sa.childNodes||[];if(Sa.nodeType===k0.DOCUMENT_FRAGMENT_NODE){var Og=Bg.filter($0);if(Og.length>1||D(Bg,cv))throw new Pg(Rt,"More than one element or text in fragment");if(Og.length===1&&!Gg(Bs,$a))throw new Pg(Rt,"Element in fragment can not be inserted before doctype")}if($0(Sa)&&!Gg(Bs,$a))throw new Pg(Rt,"Only one element can be added and only after doctype");if(L0(Sa)){if(D(Bd,L0))throw new Pg(Rt,"Only one doctype is allowed");var g0=D(Bd,$0);if($a&&Bd.indexOf(g0)1||D(Bg,cv))throw new Pg(Rt,"More than one element or text in fragment");if(Og.length===1&&!uu(Bs,$a))throw new Pg(Rt,"Element in fragment can not be inserted before doctype")}if($0(Sa)&&!uu(Bs,$a))throw new Pg(Rt,"Only one element can be added and only after doctype");if(L0(Sa)){let Xg=function(A0){return L0(A0)&&A0!==$a};var qg=Xg;if(D(Bd,Xg))throw new Pg(Rt,"Only one doctype is allowed");var g0=D(Bd,$0);if($a&&Bd.indexOf(g0)0&&iv($a.documentElement,function(Bg){if(Bg!==$a&&Bg.nodeType===ze){var Og=Bg.getAttribute("class");if(Og){var g0=Bs===Og;if(!g0){var qg=a(Og);g0=Sa.every(S(qg))}g0&&Bd.push(Bg)}}}),Bd})},createElement:function(Bs){var Sa=new fr;Sa.ownerDocument=this,Sa.nodeName=Bs,Sa.tagName=Bs,Sa.localName=Bs,Sa.childNodes=new Ug;var $a=Sa.attributes=new X0;return $a._ownerElement=Sa,Sa},createDocumentFragment:function(){var Bs=new rn;return Bs.ownerDocument=this,Bs.childNodes=new Ug,Bs},createTextNode:function(Bs){var Sa=new Sg;return Sa.ownerDocument=this,Sa.appendData(Bs),Sa},createComment:function(Bs){var Sa=new Jg;return Sa.ownerDocument=this,Sa.appendData(Bs),Sa},createCDATASection:function(Bs){var Sa=new j0;return Sa.ownerDocument=this,Sa.appendData(Bs),Sa},createProcessingInstruction:function(Bs,Sa){var $a=new ui;return $a.ownerDocument=this,$a.tagName=$a.nodeName=$a.target=Bs,$a.nodeValue=$a.data=Sa,$a},createAttribute:function(Bs){var Sa=new ri;return Sa.ownerDocument=this,Sa.name=Bs,Sa.nodeName=Bs,Sa.localName=Bs,Sa.specified=!0,Sa},createEntityReference:function(Bs){var Sa=new On;return Sa.ownerDocument=this,Sa.nodeName=Bs,Sa},createElementNS:function(Bs,Sa){var $a=new fr,Bd=Sa.split(":"),Bg=$a.attributes=new X0;return $a.childNodes=new Ug,$a.ownerDocument=this,$a.nodeName=Sa,$a.tagName=Sa,$a.namespaceURI=Bs,Bd.length==2?($a.prefix=Bd[0],$a.localName=Bd[1]):$a.localName=Sa,Bg._ownerElement=$a,$a},createAttributeNS:function(Bs,Sa){var $a=new ri,Bd=Sa.split(":");return $a.ownerDocument=this,$a.nodeName=Sa,$a.name=Sa,$a.namespaceURI=Bs,$a.specified=!0,Bd.length==2?($a.prefix=Bd[0],$a.localName=Bd[1]):$a.localName=Sa,$a}},N(u0,k0);function fr(){this._nsMap={}}fr.prototype={nodeType:ze,hasAttribute:function(Bs){return this.getAttributeNode(Bs)!=null},getAttribute:function(Bs){var Sa=this.getAttributeNode(Bs);return Sa&&Sa.value||""},getAttributeNode:function(Bs){return this.attributes.getNamedItem(Bs)},setAttribute:function(Bs,Sa){var $a=this.ownerDocument.createAttribute(Bs);$a.value=$a.nodeValue=""+Sa,this.setAttributeNode($a)},removeAttribute:function(Bs){var Sa=this.getAttributeNode(Bs);Sa&&this.removeAttributeNode(Sa)},appendChild:function(Bs){return Bs.nodeType===Jr?this.insertBefore(Bs,null):Kr(this,Bs)},setAttributeNode:function(Bs){return this.attributes.setNamedItem(Bs)},setAttributeNodeNS:function(Bs){return this.attributes.setNamedItemNS(Bs)},removeAttributeNode:function(Bs){return this.attributes.removeNamedItem(Bs.nodeName)},removeAttributeNS:function(Bs,Sa){var $a=this.getAttributeNodeNS(Bs,Sa);$a&&this.removeAttributeNode($a)},hasAttributeNS:function(Bs,Sa){return this.getAttributeNodeNS(Bs,Sa)!=null},getAttributeNS:function(Bs,Sa){var $a=this.getAttributeNodeNS(Bs,Sa);return $a&&$a.value||""},setAttributeNS:function(Bs,Sa,$a){var Bd=this.ownerDocument.createAttributeNS(Bs,Sa);Bd.value=Bd.nodeValue=""+$a,this.setAttributeNode(Bd)},getAttributeNodeNS:function(Bs,Sa){return this.attributes.getNamedItemNS(Bs,Sa)},getElementsByTagName:function(Bs){return new e0(this,function(Sa){var $a=[];return iv(Sa,function(Bd){Bd!==Sa&&Bd.nodeType==ze&&(Bs==="*"||Bd.tagName==Bs)&&$a.push(Bd)}),$a})},getElementsByTagNameNS:function(Bs,Sa){return new e0(this,function($a){var Bd=[];return iv($a,function(Bg){Bg!==$a&&Bg.nodeType===ze&&(Bs==="*"||Bg.namespaceURI===Bs)&&(Sa==="*"||Bg.localName==Sa)&&Bd.push(Bg)}),Bd})}},u0.prototype.getElementsByTagName=fr.prototype.getElementsByTagName,u0.prototype.getElementsByTagNameNS=fr.prototype.getElementsByTagNameNS,N(fr,k0);function ri(){}ri.prototype.nodeType=Ie,N(ri,k0);function Ra(){}Ra.prototype={data:"",substringData:function(Bs,Sa){return this.data.substring(Bs,Bs+Sa)},appendData:function(Bs){Bs=this.data+Bs,this.nodeValue=this.data=Bs,this.length=Bs.length},insertData:function(Bs,Sa){this.replaceData(Bs,0,Sa)},appendChild:function(Bs){throw new Error(_n[Rt])},deleteData:function(Bs,Sa){this.replaceData(Bs,Sa,"")},replaceData:function(Bs,Sa,$a){var Bd=this.data.substring(0,Bs),Bg=this.data.substring(Bs+Sa);$a=Bd+$a+Bg,this.nodeValue=this.data=$a,this.length=$a.length}},N(Ra,k0);function Sg(){}Sg.prototype={nodeName:"#text",nodeType:ct,splitText:function(Bs){var Sa=this.data,$a=Sa.substring(Bs);Sa=Sa.substring(0,Bs),this.data=this.nodeValue=Sa,this.length=Sa.length;var Bd=this.ownerDocument.createTextNode($a);return this.parentNode&&this.parentNode.insertBefore(Bd,this.nextSibling),Bd}},N(Sg,Ra);function Jg(){}Jg.prototype={nodeName:"#comment",nodeType:wn},N(Jg,Ra);function j0(){}j0.prototype={nodeName:"#cdata-section",nodeType:At},N(j0,Ra);function Wo(){}Wo.prototype.nodeType=jr,N(Wo,k0);function Mo(){}Mo.prototype.nodeType=Yn,N(Mo,k0);function qr(){}qr.prototype.nodeType=It,N(qr,k0);function On(){}On.prototype.nodeType=rt,N(On,k0);function rn(){}rn.prototype.nodeName="#document-fragment",rn.prototype.nodeType=Jr,N(rn,k0);function ui(){}ui.prototype.nodeType=Ot,N(ui,k0);function ya(){}ya.prototype.serializeToString=function(Bs,Sa,$a){return gd.call(Bs,Sa,$a)},k0.prototype.toString=gd;function gd(Bs,Sa){var $a=[],Bd=this.nodeType==9&&this.documentElement||this,Bg=Bd.prefix,Og=Bd.namespaceURI;if(Og&&Bg==null){var Bg=Bd.lookupPrefix(Og);if(Bg==null)var g0=[{namespace:Og,prefix:null}]}return xa(this,$a,Bs,Sa,g0),$a.join("")}function Su(Bs,Sa,$a){var Bd=Bs.prefix||"",Bg=Bs.namespaceURI;if(!Bg||Bd==="xml"&&Bg===b.XML||Bg===b.XMLNS)return!1;for(var Og=$a.length;Og--;){var g0=$a[Og];if(g0.prefix===Bd)return g0.namespace!==Bg}return!0}function xu(Bs,Sa,$a){Bs.push(" ",Sa,'="',$a.replace(/[<>&"\t\n\r]/g,G0),'"')}function xa(Bs,Sa,$a,Bd,Bg){if(Bg||(Bg=[]),Bd)if(Bs=Bd(Bs),Bs){if(typeof Bs=="string"){Sa.push(Bs);return}}else return;switch(Bs.nodeType){case ze:var Og=Bs.attributes,g0=Og.length,Gd=Bs.firstChild,qg=Bs.tagName;$a=b.isHTML(Bs.namespaceURI)||$a;var Xg=qg;if(!$a&&!Bs.prefix&&Bs.namespaceURI){for(var A0,nv=0;nv=0;t0--){var n0=Bg[t0];if(n0.prefix===""&&n0.namespace===Bs.namespaceURI){A0=n0.namespace;break}}if(A0!==Bs.namespaceURI)for(var t0=Bg.length-1;t0>=0;t0--){var n0=Bg[t0];if(n0.namespace===Bs.namespaceURI){n0.prefix&&(Xg=n0.prefix+":"+qg);break}}}Sa.push("<",Xg);for(var u1=0;u1"),$a&&/^script$/i.test(qg))for(;Gd;)Gd.data?Sa.push(Gd.data):xa(Gd,Sa,$a,Bd,Bg.slice()),Gd=Gd.nextSibling;else for(;Gd;)xa(Gd,Sa,$a,Bd,Bg.slice()),Gd=Gd.nextSibling;Sa.push("")}else Sa.push("/>");return;case Hs:case Jr:for(var Gd=Bs.firstChild;Gd;)xa(Gd,Sa,$a,Bd,Bg.slice()),Gd=Gd.nextSibling;return;case Ie:return xu(Sa,Bs.name,Bs.value);case ct:return Sa.push(Bs.data.replace(/[<&>]/g,G0));case At:return Sa.push("");case wn:return Sa.push("");case jr:var h0=Bs.publicId,lv=Bs.systemId;if(Sa.push("");else if(lv&&lv!=".")Sa.push(" SYSTEM ",lv,">");else{var su=Bs.internalSubset;su&&Sa.push(" [",su,"]"),Sa.push(">")}return;case Ot:return Sa.push("");case rt:return Sa.push("&",Bs.nodeName,";");default:Sa.push("??",Bs.nodeName)}}function Td(Bs,Sa,$a){var Bd;switch(Sa.nodeType){case ze:Bd=Sa.cloneNode(!1),Bd.ownerDocument=Bs;case Jr:break;case Ie:$a=!0;break}if(Bd||(Bd=Sa.cloneNode(!1)),Bd.ownerDocument=Bs,Bd.parentNode=null,$a)for(var Bg=Sa.firstChild;Bg;)Bd.appendChild(Td(Bs,Bg,$a)),Bg=Bg.nextSibling;return Bd}function jg(Bs,Sa,$a){var Bd=new Sa.constructor;for(var Bg in Sa)if(Object.prototype.hasOwnProperty.call(Sa,Bg)){var Og=Sa[Bg];typeof Og!="object"&&Og!=Bd[Bg]&&(Bd[Bg]=Og)}switch(Sa.childNodes&&(Bd.childNodes=new Ug),Bd.ownerDocument=Bs,Bd.nodeType){case ze:var g0=Sa.attributes,qg=Bd.attributes=new X0,Xg=g0.length;qg._ownerElement=Bd;for(var A0=0;A0",lt:"<",quot:'"'}),g.HTML_ENTITIES=u({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),g.entityMap=g.HTML_ENTITIES},65952:function(c,g,l){var u,D=l(32706);u=D.DOMImplementation,g.B=D.XMLSerializer,l(36980)},12128:function(c,g,l){var u=l(18859).NAMESPACE,D=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=new RegExp("[\\-\\.0-9"+D.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),x=new RegExp("^"+D.source+b.source+"*(?::"+D.source+b.source+"*)?$"),y=0,w=1,a=2,S=3,I=4,N=5,ie=6,ze=7;function Ie(Mt,Bt){this.message=Mt,this.locator=Bt,Error.captureStackTrace&&Error.captureStackTrace(this,Ie)}Ie.prototype=new Error,Ie.prototype.name=Ie.name;function ct(){}ct.prototype={parse:function(Mt,Bt,Rt){var on=this.domBuilder;on.startDocument(),jr(Bt,Bt={}),At(Mt,Bt,Rt,on,this.errorHandler),on.endDocument()}};function At(Mt,Bt,Rt,on,Hr){function vn(Ag){if(Ag>65535){Ag-=65536;var c0=55296+(Ag>>10),L0=56320+(Ag&1023);return String.fromCharCode(c0,L0)}else return String.fromCharCode(Ag)}function Ca(Ag){var c0=Ag.slice(1,-1);return Object.hasOwnProperty.call(Rt,c0)?Rt[c0]:c0.charAt(0)==="#"?vn(parseInt(c0.substr(1).replace("x","0x"))):(Hr.error("entity not found:"+Ag),Ag)}function ai(Ag){if(Ag>Pg){var c0=Mt.substring(Pg,Ag).replace(/&#?\w+;/g,Ca);oi&>(Pg),on.characters(c0,0,Ag-Pg),Pg=Ag}}function gt(Ag,c0){for(;Ag>=Ht&&(c0=Zs.exec(Mt));)Zr=c0.index,Ht=Zr+c0[0].length,oi.lineNumber++;oi.columnNumber=Ag-Zr+1}for(var Zr=0,Ht=0,Zs=/.*(?:\r\n?|\n)|.*$/g,oi=on.locator,Pa=[{currentNSMap:Bt}],Aa={},Pg=0;;){try{var Ug=Mt.indexOf("<",Pg);if(Ug<0){if(!Mt.substr(Pg).match(/^\s*$/)){var e0=on.doc,H0=e0.createTextNode(Mt.substr(Pg));e0.appendChild(H0),on.currentElement=H0}return}switch(Ug>Pg&&ai(Ug),Mt.charAt(Ug+1)){case"/":var u0=Mt.indexOf(">",Ug+3),X0=Mt.substring(Ug+2,u0).replace(/[ \t\n\r]+$/g,""),d0=Pa.pop();u0<0?(X0=Mt.substring(Ug+2).replace(/[\s<].*/,""),Hr.error("end tag name: "+X0+" is not complete:"+d0.tagName),u0=Ug+1+X0.length):X0.match(/\sPg?Pg=u0:ai(Math.max(Ug,Pg)+1)}}function rt(Mt,Bt){return Bt.lineNumber=Mt.lineNumber,Bt.columnNumber=Mt.columnNumber,Bt}function It(Mt,Bt,Rt,on,Hr,vn){function Ca(Pa,Aa,Pg){Rt.attributeNames.hasOwnProperty(Pa)&&vn.fatalError("Attribute "+Pa+" redefined"),Rt.addValue(Pa,Aa.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,Hr),Pg)}for(var ai,gt,Zr=++Bt,Ht=y;;){var Zs=Mt.charAt(Zr);switch(Zs){case"=":if(Ht===w)ai=Mt.slice(Bt,Zr),Ht=S;else if(Ht===a)Ht=S;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(Ht===S||Ht===w)if(Ht===w&&(vn.warning('attribute value must after "="'),ai=Mt.slice(Bt,Zr)),Bt=Zr+1,Zr=Mt.indexOf(Zs,Bt),Zr>0)gt=Mt.slice(Bt,Zr),Ca(ai,gt,Bt-1),Ht=N;else throw new Error("attribute value no end '"+Zs+"' match");else if(Ht==I)gt=Mt.slice(Bt,Zr),Ca(ai,gt,Bt),vn.warning('attribute "'+ai+'" missed start quot('+Zs+")!!"),Bt=Zr+1,Ht=N;else throw new Error('attribute value must after "="');break;case"/":switch(Ht){case y:Rt.setTagName(Mt.slice(Bt,Zr));case N:case ie:case ze:Ht=ze,Rt.closed=!0;case I:case w:break;case a:Rt.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return vn.error("unexpected end of input"),Ht==y&&Rt.setTagName(Mt.slice(Bt,Zr)),Zr;case">":switch(Ht){case y:Rt.setTagName(Mt.slice(Bt,Zr));case N:case ie:case ze:break;case I:case w:gt=Mt.slice(Bt,Zr),gt.slice(-1)==="/"&&(Rt.closed=!0,gt=gt.slice(0,-1));case a:Ht===a&&(gt=ai),Ht==I?(vn.warning('attribute "'+gt+'" missed quot(")!'),Ca(ai,gt,Bt)):((!u.isHTML(on[""])||!gt.match(/^(?:disabled|checked|selected)$/i))&&vn.warning('attribute "'+gt+'" missed value!! "'+gt+'" instead!!'),Ca(gt,gt,Bt));break;case S:throw new Error("attribute value missed!!")}return Zr;case"\x80":Zs=" ";default:if(Zs<=" ")switch(Ht){case y:Rt.setTagName(Mt.slice(Bt,Zr)),Ht=ie;break;case w:ai=Mt.slice(Bt,Zr),Ht=a;break;case I:var gt=Mt.slice(Bt,Zr);vn.warning('attribute "'+gt+'" missed quot(")!!'),Ca(ai,gt,Bt);case N:Ht=ie;break}else switch(Ht){case a:var oi=Rt.tagName;(!u.isHTML(on[""])||!ai.match(/^(?:disabled|checked|selected)$/i))&&vn.warning('attribute "'+ai+'" missed value!! "'+ai+'" instead2!!'),Ca(ai,ai,Bt),Bt=Zr,Ht=w;break;case N:vn.warning('attribute space is required"'+ai+'"!!');case ie:Ht=w,Bt=Zr;break;case S:Ht=I,Bt=Zr;break;case ze:throw new Error("elements closed character '/' and '>' must be connected to")}}Zr++}}function Ot(Mt,Bt,Rt){for(var on=Mt.tagName,Hr=null,Zs=Mt.length;Zs--;){var vn=Mt[Zs],Ca=vn.qName,ai=vn.value,oi=Ca.indexOf(":");if(oi>0)var gt=vn.prefix=Ca.slice(0,oi),Zr=Ca.slice(oi+1),Ht=gt==="xmlns"&&Zr;else Zr=Ca,gt=null,Ht=Ca==="xmlns"&&"";vn.localName=Zr,Ht!==!1&&(Hr==null&&(Hr={},jr(Rt,Rt={})),Rt[Ht]=Hr[Ht]=ai,vn.uri=u.XMLNS,Bt.startPrefixMapping(Ht,ai))}for(var Zs=Mt.length;Zs--;){vn=Mt[Zs];var gt=vn.prefix;gt&&(gt==="xml"&&(vn.uri=u.XML),gt!=="xmlns"&&(vn.uri=Rt[gt||""]))}var oi=on.indexOf(":");oi>0?(gt=Mt.prefix=on.slice(0,oi),Zr=Mt.localName=on.slice(oi+1)):(gt=null,Zr=Mt.localName=on);var Pa=Mt.uri=Rt[gt||""];if(Bt.startElement(Pa,Zr,on,Mt),Mt.closed){if(Bt.endElement(Pa,Zr,on),Hr)for(gt in Hr)Object.prototype.hasOwnProperty.call(Hr,gt)&&Bt.endPrefixMapping(gt)}else return Mt.currentNSMap=Rt,Mt.localNSMap=Hr,!0}function wn(Mt,Bt,Rt,on,Hr){if(/^(?:script|textarea)$/i.test(Rt)){var vn=Mt.indexOf("",Bt),Ca=Mt.substring(Bt+1,vn);if(/[&<]/.test(Ca))return/^script$/i.test(Rt)?(Hr.characters(Ca,0,Ca.length),vn):(Ca=Ca.replace(/&#?\w+;/g,on),Hr.characters(Ca,0,Ca.length),vn)}return Bt+1}function Hs(Mt,Bt,Rt,on){var Hr=on[Rt];return Hr==null&&(Hr=Mt.lastIndexOf(""),Hr",Bt+4);return vn>Bt?(Rt.comment(Mt,Bt+4,vn-Bt-4),vn+3):(on.error("Unclosed comment"),-1)}else return-1;default:if(Mt.substr(Bt+3,6)=="CDATA["){var vn=Mt.indexOf("]]>",Bt+9);return Rt.startCDATA(),Rt.characters(Mt,Bt+9,vn-Bt-9),Rt.endCDATA(),vn+3}var Ca=_n(Mt,Bt),ai=Ca.length;if(ai>1&&/!doctype/i.test(Ca[0][0])){var gt=Ca[1][0],Zr=!1,Ht=!1;ai>3&&(/^public$/i.test(Ca[2][0])?(Zr=Ca[3][0],Ht=ai>4&&Ca[4][0]):/^system$/i.test(Ca[2][0])&&(Ht=Ca[3][0]));var Zs=Ca[ai-1];return Rt.startDTD(gt,Zr,Ht),Rt.endDTD(),Zs.index+Zs[0].length}}return-1}function Yn(Mt,Bt,Rt){var on=Mt.indexOf("?>",Bt);if(on){var Hr=Mt.substring(Bt,on).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(Hr){var vn=Hr[0].length;return Rt.processingInstruction(Hr[1],Hr[2]),on+2}else return-1}return-1}function Lt(){this.attributeNames={}}Lt.prototype={setTagName:function(Mt){if(!x.test(Mt))throw new Error("invalid tagName:"+Mt);this.tagName=Mt},addValue:function(Mt,Bt,Rt){if(!x.test(Mt))throw new Error("invalid attribute:"+Mt);this.attributeNames[Mt]=this.length,this[this.length++]={qName:Mt,value:Bt,offset:Rt}},length:0,getLocalName:function(Mt){return this[Mt].localName},getLocator:function(Mt){return this[Mt].locator},getQName:function(Mt){return this[Mt].qName},getURI:function(Mt){return this[Mt].uri},getValue:function(Mt){return this[Mt].value}};function _n(Mt,Bt){var Rt,on=[],Hr=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(Hr.lastIndex=Bt,Hr.exec(Mt);Rt=Hr.exec(Mt);)if(on.push(Rt),Rt[1])return on}g.XMLReader=ct,g.ParseError=Ie},18551:function(c,g,l){"use strict";var u=l(32290),D=l(77617),b=l(7428);function x(w){return(0,b.mf)(w[Symbol.asyncIterator])}function y(w,a){(0,D.useEffect)(function(){var S=w(),I=!1;function N(){return(0,u.mG)(this,void 0,void 0,function(){var ie;return(0,u.Jh)(this,function(ze){switch(ze.label){case 0:if(!x(S))return[3,4];ze.label=1;case 1:return[4,S.next()];case 2:return ie=ze.sent(),ie.done||I?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,S];case 5:ze.sent(),ze.label=6;case 6:return[2]}})})}return N(),function(){I=!0}},a)}g.Z=y},65397:function(c,g,l){"use strict";var u=l(32290),D=l(77617),b=l(52882);function x(y,w){var a=(0,u.CR)((0,D.useState)(y),2),S=a[0],I=a[1],N=(0,b.Z)(function(){I(y)},w).run;return(0,D.useEffect)(function(){N()},[y]),S}g.Z=x},52882:function(c,g,l){"use strict";var u=l(32290),D=l(41571),b=l.n(D),x=l(77617),y=l(44795),w=l(41806),a=l(7428),S=l(99823);function I(N,ie){var ze;S.Z&&((0,a.mf)(N)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof N)));var Ie=(0,y.Z)(N),ct=(ze=ie==null?void 0:ie.wait)!==null&&ze!==void 0?ze:1e3,At=(0,x.useMemo)(function(){return b()(function(){for(var rt=[],It=0;It{const{type:S,children:I,prefixCls:N,buttonProps:ie,close:ze,autoFocus:Ie,emitEvent:ct,isSilent:At,quitOnNullishReturnValue:rt,actionFn:It}=a,Ot=D.useRef(!1),wn=D.useRef(null),[Hs,jr]=(0,u.Z)(!1),Jr=function(){ze==null||ze.apply(void 0,arguments)};D.useEffect(()=>{let _n=null;return Ie&&(_n=setTimeout(()=>{var Mt;(Mt=wn.current)===null||Mt===void 0||Mt.focus()})),()=>{_n&&clearTimeout(_n)}},[]);const Yn=_n=>{y(_n)&&(jr(!0),_n.then(function(){jr(!1,!0),Jr.apply(void 0,arguments),Ot.current=!1},Mt=>{if(jr(!1,!0),Ot.current=!1,!(At!=null&&At()))return Promise.reject(Mt)}))},Lt=_n=>{if(Ot.current)return;if(Ot.current=!0,!It){Jr();return}let Mt;if(ct){if(Mt=It(_n),rt&&!y(Mt)){Ot.current=!1,Jr(_n);return}}else if(It.length)Mt=It(ze),Ot.current=!1;else if(Mt=It(),!Mt){Jr();return}Yn(Mt)};return D.createElement(b.ZP,Object.assign({},(0,x.nx)(S),{onClick:Lt,loading:Hs,prefixCls:N},ie,{ref:wn}),I)};g.Z=w},62625:function(c,g,l){"use strict";l.d(g,{i:function(){return y}});var u=l(77617),D=l(89308),b=l(64495),x=l(58798);function y(a){return S=>u.createElement(b.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(a,Object.assign({},S)))}const w=(a,S,I,N)=>y(ze=>{const{prefixCls:Ie,style:ct}=ze,At=u.useRef(null),[rt,It]=u.useState(0),[Ot,wn]=u.useState(0),[Hs,jr]=(0,D.Z)(!1,{value:ze.open}),{getPrefixCls:Jr}=u.useContext(x.E_),Yn=Jr(S||"select",Ie);u.useEffect(()=>{if(jr(!0),typeof ResizeObserver!="undefined"){const Mt=new ResizeObserver(Rt=>{const on=Rt[0].target;It(on.offsetHeight+8),wn(on.offsetWidth)}),Bt=setInterval(()=>{var Rt;const on=I?`.${I(Yn)}`:`.${Yn}-dropdown`,Hr=(Rt=At.current)===null||Rt===void 0?void 0:Rt.querySelector(on);Hr&&(clearInterval(Bt),Mt.observe(Hr))},10);return()=>{clearInterval(Bt),Mt.disconnect()}}},[]);let Lt=Object.assign(Object.assign({},ze),{style:Object.assign(Object.assign({},ct),{margin:0}),open:Hs,visible:Hs,getPopupContainer:()=>At.current});N&&(Lt=N(Lt));const _n={paddingBottom:rt,position:"relative",minWidth:Ot};return u.createElement("div",{ref:At,style:_n},u.createElement(a,Object.assign({},Lt)))});g.Z=w},98389:function(c,g,l){"use strict";l.d(g,{Z:function(){return u}});const u=D=>D?typeof D=="function"?D():D:null},67445:function(c,g,l){"use strict";var u=l(77617),D=l(4531);function b(y,w,a){return typeof y=="boolean"?y:w===void 0?!!a:w!==!1&&w!==null}function x(y,w,a){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.createElement(D.Z,null),I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!b(y,w,I))return[!1,null];const ie=typeof w=="boolean"||w===void 0||w===null?S:w;return[!0,a?a(ie):ie]}g.Z=x},51626:function(c,g,l){"use strict";l.d(g,{Z:function(){return D}});var u=l(77617);function D(){const[,b]=u.useReducer(x=>x+1,0);return b}},40870:function(c,g,l){"use strict";l.d(g,{Cn:function(){return N},u6:function(){return w}});var u=l(77617),D=l(57832),b=l(13150);const x=100,w=x*10,a={Modal:x,Drawer:x,Popover:x,Popconfirm:x,Tooltip:x,Tour:x},S={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function I(ie){return ie in a}function N(ie,ze){const[,Ie]=(0,D.ZP)(),ct=u.useContext(b.Z),At=I(ie);if(ze!==void 0)return[ze,ze];let rt=ct!=null?ct:0;return At?(rt+=(ct?0:Ie.zIndexPopupBase)+a[ie],rt=Math.min(rt,Ie.zIndexPopupBase+w)):rt+=S[ie],[ct===void 0?ze:rt,rt]}},12149:function(c,g,l){"use strict";l.d(g,{m:function(){return a}});const u=()=>({height:0,opacity:0}),D=S=>{const{scrollHeight:I}=S;return{height:I,opacity:1}},b=S=>({height:S?S.offsetHeight:0}),x=(S,I)=>(I==null?void 0:I.deadline)===!0||I.propertyName==="height",y=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:u,onEnterStart:u,onAppearActive:D,onEnterActive:D,onLeaveStart:b,onLeaveActive:u,onAppearEnd:x,onEnterEnd:x,onLeaveEnd:x,motionDeadline:500}},w=null,a=(S,I,N)=>N!==void 0?N:`${S}-${I}`;g.Z=y},81420:function(c,g,l){"use strict";l.d(g,{Z:function(){return w}});var u=l(50489);function D(a,S,I,N){if(N===!1)return{adjustX:!1,adjustY:!1};const ie=N&&typeof N=="object"?N:{},ze={};switch(a){case"top":case"bottom":ze.shiftX=S.arrowOffsetHorizontal*2+I,ze.shiftY=!0,ze.adjustY=!0;break;case"left":case"right":ze.shiftY=S.arrowOffsetVertical*2+I,ze.shiftX=!0,ze.adjustX=!0;break}const Ie=Object.assign(Object.assign({},ze),ie);return Ie.shiftX||(Ie.adjustX=!0),Ie.shiftY||(Ie.adjustY=!0),Ie}const b={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"]}},x={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"]}},y=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function w(a){const{arrowWidth:S,autoAdjustOverflow:I,arrowPointAtCenter:N,offset:ie,borderRadius:ze,visibleFirst:Ie}=a,ct=S/2,At={};return Object.keys(b).forEach(rt=>{const It=N&&x[rt]||b[rt],Ot=Object.assign(Object.assign({},It),{offset:[0,0],dynamicInset:!0});switch(At[rt]=Ot,y.has(rt)&&(Ot.autoArrow=!1),rt){case"top":case"topLeft":case"topRight":Ot.offset[1]=-ct-ie;break;case"bottom":case"bottomLeft":case"bottomRight":Ot.offset[1]=ct+ie;break;case"left":case"leftTop":case"leftBottom":Ot.offset[0]=-ct-ie;break;case"right":case"rightTop":case"rightBottom":Ot.offset[0]=ct+ie;break}const wn=(0,u.wZ)({contentRadius:ze,limitVerticalRadius:!0});if(N)switch(rt){case"topLeft":case"bottomLeft":Ot.offset[0]=-wn.arrowOffsetHorizontal-ct;break;case"topRight":case"bottomRight":Ot.offset[0]=wn.arrowOffsetHorizontal+ct;break;case"leftTop":case"rightTop":Ot.offset[1]=-wn.arrowOffsetHorizontal-ct;break;case"leftBottom":case"rightBottom":Ot.offset[1]=wn.arrowOffsetHorizontal+ct;break}Ot.overflow=D(rt,wn,S,I),Ie&&(Ot.htmlRegion="visibleFirst")}),At}},20612:function(c,g,l){"use strict";var u;l.d(g,{M2:function(){return x},Tm:function(){return w},l$:function(){return b}});var D=l(77617);const{isValidElement:b}=u||(u=l.t(D,2));function x(a){return a&&b(a)&&a.type===D.Fragment}function y(a,S,I){return b(a)?D.cloneElement(a,typeof I=="function"?I(a.props||{}):I):S}function w(a,S){return y(a,a,S)}},5754:function(c,g,l){"use strict";l.d(g,{ZP:function(){return w},c4:function(){return b},m9:function(){return a}});var u=l(77617),D=l(57832);const b=["xxl","xl","lg","md","sm","xs"],x=S=>({xs:`(max-width: ${S.screenXSMax}px)`,sm:`(min-width: ${S.screenSM}px)`,md:`(min-width: ${S.screenMD}px)`,lg:`(min-width: ${S.screenLG}px)`,xl:`(min-width: ${S.screenXL}px)`,xxl:`(min-width: ${S.screenXXL}px)`}),y=S=>{const I=S,N=[].concat(b).reverse();return N.forEach((ie,ze)=>{const Ie=ie.toUpperCase(),ct=`screen${Ie}Min`,At=`screen${Ie}`;if(!(I[ct]<=I[At]))throw new Error(`${ct}<=${At} fails : !(${I[ct]}<=${I[At]})`);if(ze{const N=new Map;let ie=-1,ze={};return{matchHandlers:{},dispatch(Ie){return ze=Ie,N.forEach(ct=>ct(ze)),N.size>=1},subscribe(Ie){return N.size||this.register(),ie+=1,N.set(ie,Ie),Ie(ze),ie},unsubscribe(Ie){N.delete(Ie),N.size||this.unregister()},unregister(){Object.keys(I).forEach(Ie=>{const ct=I[Ie],At=this.matchHandlers[ct];At==null||At.mql.removeListener(At==null?void 0:At.listener)}),N.clear()},register(){Object.keys(I).forEach(Ie=>{const ct=I[Ie],At=It=>{let{matches:Ot}=It;this.dispatch(Object.assign(Object.assign({},ze),{[Ie]:Ot}))},rt=window.matchMedia(ct);rt.addListener(At),this.matchHandlers[ct]={mql:rt,listener:At},At(rt)})},responsiveMap:I}},[S])}const a=(S,I)=>{if(I&&typeof I=="object")for(let N=0;Na||w},80074:function(c,g,l){"use strict";l.d(g,{G8:function(){return a},ln:function(){return S}});var u=l(77617),D=l(32188);function b(){}let x=null;function y(){x=null,rcResetWarned()}let w=null;const a=u.createContext({}),S=()=>{const N=()=>{};return N.deprecated=b,N};var I=null},20261:function(c,g,l){"use strict";l.d(g,{Z:function(){return Mt}});var u=l(92310),D=l.n(u),b=l(17763),x=l(66209),y=l(77617),w=l(58798),a=l(20612),S=l(79263);const I=Bt=>{const{componentCls:Rt,colorPrimary:on}=Bt;return{[Rt]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${on})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Bt.motionEaseOutCirc}`,`opacity 2s ${Bt.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Bt.motionEaseInOut}`,`opacity 0.35s ${Bt.motionEaseInOut}`].join(",")}}}}};var N=(0,S.ZP)("Wave",Bt=>[I(Bt)]),ie=l(46142),ze=l(74570),Ie=l(44516),ct=l(59905);function At(Bt){const Rt=(Bt||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return Rt&&Rt[1]&&Rt[2]&&Rt[3]?!(Rt[1]===Rt[2]&&Rt[2]===Rt[3]):!0}function rt(Bt){return Bt&&Bt!=="#fff"&&Bt!=="#ffffff"&&Bt!=="rgb(255, 255, 255)"&&Bt!=="rgba(255, 255, 255, 1)"&&At(Bt)&&!/rgba\((?:\d*, ){3}0\)/.test(Bt)&&Bt!=="transparent"}function It(Bt){const{borderTopColor:Rt,borderColor:on,backgroundColor:Hr}=getComputedStyle(Bt);return rt(Rt)?Rt:rt(on)?on:rt(Hr)?Hr:null}var Ot=l(10386);function wn(Bt){return Number.isNaN(Bt)?0:Bt}const Hs=Bt=>{const{className:Rt,target:on,component:Hr}=Bt,vn=y.useRef(null),[Ca,ai]=y.useState(null),[gt,Zr]=y.useState([]),[Ht,Zs]=y.useState(0),[oi,Pa]=y.useState(0),[Aa,Pg]=y.useState(0),[Ug,e0]=y.useState(0),[H0,X0]=y.useState(!1),d0={left:Ht,top:oi,width:Aa,height:Ug,borderRadius:gt.map(Je=>`${Je}px`).join(" ")};Ca&&(d0["--wave-color"]=Ca);function jv(){const Je=getComputedStyle(on);ai(It(on));const k0=Je.position==="static",{borderLeftWidth:G0,borderTopWidth:iv}=Je;Zs(k0?on.offsetLeft:wn(-parseFloat(G0))),Pa(k0?on.offsetTop:wn(-parseFloat(iv))),Pg(on.offsetWidth),e0(on.offsetHeight);const{borderTopLeftRadius:u0,borderTopRightRadius:B1,borderBottomLeftRadius:Dg,borderBottomRightRadius:zo}=Je;Zr([u0,B1,zo,Dg].map(mu=>wn(parseFloat(mu))))}if(y.useEffect(()=>{if(on){const Je=(0,ze.Z)(()=>{jv(),X0(!0)});let k0;return typeof ResizeObserver!="undefined"&&(k0=new ResizeObserver(jv),k0.observe(on)),()=>{ze.Z.cancel(Je),k0==null||k0.disconnect()}}},[]),!H0)return null;const Lv=(Hr==="Checkbox"||Hr==="Radio")&&(on==null?void 0:on.classList.contains(Ot.A));return y.createElement(Ie.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Je,k0)=>{var G0;if(k0.deadline||k0.propertyName==="opacity"){const iv=(G0=vn.current)===null||G0===void 0?void 0:G0.parentElement;(0,ct.v)(iv).then(()=>{iv==null||iv.remove()})}return!1}},Je=>{let{className:k0}=Je;return y.createElement("div",{ref:vn,className:D()(Rt,{"wave-quick":Lv},k0),style:d0})})};var Jr=(Bt,Rt)=>{var on;const{component:Hr}=Rt;if(Hr==="Checkbox"&&!(!((on=Bt.querySelector("input"))===null||on===void 0)&&on.checked))return;const vn=document.createElement("div");vn.style.position="absolute",vn.style.left="0px",vn.style.top="0px",Bt==null||Bt.insertBefore(vn,Bt==null?void 0:Bt.firstChild),(0,ct.s)(y.createElement(Hs,Object.assign({},Rt,{target:Bt})),vn)},Yn=l(57832);function Lt(Bt,Rt,on){const{wave:Hr}=y.useContext(w.E_),[,vn,Ca]=(0,Yn.ZP)(),ai=(0,ie.zX)(Ht=>{const Zs=Bt.current;if(Hr!=null&&Hr.disabled||!Zs)return;const oi=Zs.querySelector(`.${Ot.A}`)||Zs,{showEffect:Pa}=Hr||{};(Pa||Jr)(oi,{className:Rt,token:vn,component:on,event:Ht,hashId:Ca})}),gt=y.useRef();return Ht=>{ze.Z.cancel(gt.current),gt.current=(0,ze.Z)(()=>{ai(Ht)})}}var Mt=Bt=>{const{children:Rt,disabled:on,component:Hr}=Bt,{getPrefixCls:vn}=(0,y.useContext)(w.E_),Ca=(0,y.useRef)(null),ai=vn("wave"),[,gt]=N(ai),Zr=Lt(Ca,D()(ai,gt),Hr);if(y.useEffect(()=>{const Zs=Ca.current;if(!Zs||Zs.nodeType!==1||on)return;const oi=Pa=>{!(0,x.Z)(Pa.target)||!Zs.getAttribute||Zs.getAttribute("disabled")||Zs.disabled||Zs.className.includes("disabled")||Zs.className.includes("-leave")||Zr(Pa)};return Zs.addEventListener("click",oi,!0),()=>{Zs.removeEventListener("click",oi,!0)}},[on]),!y.isValidElement(Rt))return Rt!=null?Rt:null;const Ht=(0,b.Yr)(Rt)?(0,b.sQ)(Rt.ref,Ca):Ca;return(0,a.Tm)(Rt,{ref:Ht})}},10386:function(c,g,l){"use strict";l.d(g,{A:function(){return u}});const u="ant-wave-target"},13150:function(c,g,l){"use strict";var u=l(77617);const D=u.createContext(void 0);g.Z=D},69221:function(c,g,l){"use strict";l.d(g,{Te:function(){return a},aG:function(){return x},hU:function(){return I},nx:function(){return y}});var u=l(77617),D=l(20612);const b=/^[\u4e00-\u9fa5]{2}$/,x=b.test.bind(b);function y(Ie){return Ie==="danger"?{danger:!0}:{type:Ie}}function w(Ie){return typeof Ie=="string"}function a(Ie){return Ie==="text"||Ie==="link"}function S(Ie,ct){if(Ie==null)return;const At=ct?" ":"";return typeof Ie!="string"&&typeof Ie!="number"&&w(Ie.type)&&x(Ie.props.children)?(0,D.Tm)(Ie,{children:Ie.props.children.split("").join(At)}):w(Ie)?x(Ie)?u.createElement("span",null,Ie.split("").join(At)):u.createElement("span",null,Ie):(0,D.M2)(Ie)?u.createElement("span",null,Ie):Ie}function I(Ie,ct){let At=!1;const rt=[];return u.Children.forEach(Ie,It=>{const Ot=typeof It,wn=Ot==="string"||Ot==="number";if(At&&wn){const Hs=rt.length-1,jr=rt[Hs];rt[Hs]=`${jr}${It}`}else rt.push(It);At=wn}),u.Children.map(rt,It=>S(It,ct))}const N=null,ie=null,ze=null},99622:function(c,g,l){"use strict";l.d(g,{ZP:function(){return _h}});var u=l(77617),D=l(92310),b=l.n(D),x=l(41123),y=l(17763),w=l(20261),a=l(58798),S=l(57801),I=l(20804),N=l(55449),ie=l(57832),ze=function(Kr,fr){var ri={};for(var Ra in Kr)Object.prototype.hasOwnProperty.call(Kr,Ra)&&fr.indexOf(Ra)<0&&(ri[Ra]=Kr[Ra]);if(Kr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sg=0,Ra=Object.getOwnPropertySymbols(Kr);Sg{const{getPrefixCls:fr,direction:ri}=u.useContext(a.E_),{prefixCls:Ra,size:Sg,className:Jg}=Kr,j0=ze(Kr,["prefixCls","size","className"]),Wo=fr("btn-group",Ra),[,,Mo]=(0,ie.ZP)();let qr="";switch(Sg){case"large":qr="lg";break;case"small":qr="sm";break;case"middle":default:}const On=b()(Wo,{[`${Wo}-${qr}`]:qr,[`${Wo}-rtl`]:ri==="rtl"},Jg,Mo);return u.createElement(Ie.Provider,{value:Sg},u.createElement("div",Object.assign({},j0,{className:On})))},rt=l(69221),Ot=(0,u.forwardRef)((Kr,fr)=>{const{className:ri,style:Ra,children:Sg,prefixCls:Jg}=Kr,j0=b()(`${Jg}-icon`,ri);return u.createElement("span",{ref:fr,className:j0,style:Ra},Sg)}),wn=l(20555),Hs=l(44516);const jr=(0,u.forwardRef)((Kr,fr)=>{let{prefixCls:ri,className:Ra,style:Sg,iconClassName:Jg}=Kr;const j0=b()(`${ri}-loading-icon`,Ra);return u.createElement(Ot,{prefixCls:ri,className:j0,style:Sg,ref:fr},u.createElement(wn.Z,{className:Jg}))}),Jr=()=>({width:0,opacity:0,transform:"scale(0)"}),Yn=Kr=>({width:Kr.scrollWidth,opacity:1,transform:"scale(1)"});var _n=Kr=>{const{prefixCls:fr,loading:ri,existIcon:Ra,className:Sg,style:Jg}=Kr,j0=!!ri;return Ra?u.createElement(jr,{prefixCls:fr,className:Sg,style:Jg}):u.createElement(Hs.ZP,{visible:j0,motionName:`${fr}-loading-icon-motion`,motionLeave:j0,removeOnLeave:!0,onAppearStart:Jr,onAppearActive:Yn,onEnterStart:Jr,onEnterActive:Yn,onLeaveStart:Yn,onLeaveActive:Jr},(Wo,Mo)=>{let{className:qr,style:On}=Wo;return u.createElement(jr,{prefixCls:fr,className:Sg,style:Object.assign(Object.assign({},Jg),On),ref:Mo,iconClassName:qr})})},Mt=l(78600),Bt=l(91110),Rt=l(90882),on=l(79263);const Hr=(Kr,fr)=>({[`> span, > ${Kr}`]:{"&:not(:last-child)":{[`&, & > ${Kr}`]:{"&:not(:disabled)":{borderInlineEndColor:fr}}},"&:not(:first-child)":{[`&, & > ${Kr}`]:{"&:not(:disabled)":{borderInlineStartColor:fr}}}}});var Ca=Kr=>{const{componentCls:fr,fontSize:ri,lineWidth:Ra,groupBorderColor:Sg,colorErrorHover:Jg}=Kr;return{[`${fr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${fr}`]:{"&:not(:last-child)":{[`&, & > ${fr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:Kr.calc(Ra).mul(-1).equal(),[`&, & > ${fr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[fr]:{position:"relative",zIndex:1,[`&:hover, +`)}function Ie(Ye){this.options=Ye||{locator:{}}}Ie.prototype.parseFromString=function(Ye,rt){var Gt=this.options,yt=new ae,Et=Gt.domBuilder||new Ce,ht=Gt.errorHandler,Pe=Gt.locator,et=Gt.xmlns||{},Oe=/\/x?html?$/.test(rt),Ue=Oe?A.HTML_ENTITIES:A.XML_ENTITIES;Pe&&Et.setDocumentLocator(Pe),yt.errorHandler=Be(ht,Et,Pe),yt.domBuilder=Gt.domBuilder||Et,Oe&&(et[""]=Y.HTML),et.xml=et.xml||Y.XML;var je=Gt.normalizeLineEndings||se;return Ye&&typeof Ye=="string"?yt.parse(je(Ye),et,Ue):yt.errorHandler.error("invalid doc source"),Et.doc};function Be(Ye,rt,Gt){if(!Ye){if(rt instanceof Ce)return rt;Ye=rt}var yt={},Et=Ye instanceof Function;Gt=Gt||{};function ht(Pe){var et=Ye[Pe];!et&&Et&&(et=Ye.length==2?function(Oe){Ye(Pe,Oe)}:Ye),yt[Pe]=et&&function(Oe){et("[xmldom "+Pe+"] "+Oe+nt(Gt))}||function(){}}return ht("warning"),ht("error"),ht("fatalError"),yt}function Ce(){this.cdata=!1}function ct(Ye,rt){rt.lineNumber=Ye.lineNumber,rt.columnNumber=Ye.columnNumber}Ce.prototype={startDocument:function(){this.doc=new X().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(Ye,rt,Gt,yt){var Et=this.doc,ht=Et.createElementNS(Ye,Gt||rt),Pe=yt.length;at(this,ht),this.currentElement=ht,this.locator&&ct(this.locator,ht);for(var et=0;et=rt+Gt||rt?new java.lang.String(Ye,rt,Gt)+"":Ye}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(Ye){Ce.prototype[Ye]=function(){return null}});function at(Ye,rt){Ye.currentElement?Ye.currentElement.appendChild(rt):Ye.doc.appendChild(rt)}v=Ce,v=se,v=Ie},32706:function(St,me,x){var v=x(18859),z=v.find,P=v.NAMESPACE;function A(zt){return zt!==""}function W(zt){return zt?zt.split(/[\t\n\f\r ]+/).filter(A):[]}function X(zt,en){return zt.hasOwnProperty(en)||(zt[en]=!0),zt}function Y(zt){if(!zt)return[];var en=W(zt);return Object.keys(en.reduce(X,{}))}function ie(zt){return function(en){return zt&&zt.indexOf(en)!==-1}}function ae(zt,en){for(var Cn in zt)Object.prototype.hasOwnProperty.call(zt,Cn)&&(en[Cn]=zt[Cn])}function se(zt,en){var Cn=zt.prototype;if(!(Cn instanceof en)){let Pr=function(){};var rr=Pr;Pr.prototype=en.prototype,Pr=new Pr,ae(Cn,Pr),zt.prototype=Cn=Pr}Cn.constructor!=zt&&(typeof zt!="function"&&console.error("unknown Class:"+zt),Cn.constructor=zt)}var Ie={},Be=Ie.ELEMENT_NODE=1,Ce=Ie.ATTRIBUTE_NODE=2,ct=Ie.TEXT_NODE=3,nt=Ie.CDATA_SECTION_NODE=4,Ge=Ie.ENTITY_REFERENCE_NODE=5,at=Ie.ENTITY_NODE=6,Ye=Ie.PROCESSING_INSTRUCTION_NODE=7,rt=Ie.COMMENT_NODE=8,Gt=Ie.DOCUMENT_NODE=9,yt=Ie.DOCUMENT_TYPE_NODE=10,Et=Ie.DOCUMENT_FRAGMENT_NODE=11,ht=Ie.NOTATION_NODE=12,Pe={},et={},Oe=Pe.INDEX_SIZE_ERR=(et[1]="Index size error",1),Ue=Pe.DOMSTRING_SIZE_ERR=(et[2]="DOMString size error",2),je=Pe.HIERARCHY_REQUEST_ERR=(et[3]="Hierarchy request error",3),ft=Pe.WRONG_DOCUMENT_ERR=(et[4]="Wrong document",4),Ct=Pe.INVALID_CHARACTER_ERR=(et[5]="Invalid character",5),Xe=Pe.NO_DATA_ALLOWED_ERR=(et[6]="No data allowed",6),hn=Pe.NO_MODIFICATION_ALLOWED_ERR=(et[7]="No modification allowed",7),Nt=Pe.NOT_FOUND_ERR=(et[8]="Not found",8),Te=Pe.NOT_SUPPORTED_ERR=(et[9]="Not supported",9),vt=Pe.INUSE_ATTRIBUTE_ERR=(et[10]="Attribute in use",10),ze=Pe.INVALID_STATE_ERR=(et[11]="Invalid state",11),Vt=Pe.SYNTAX_ERR=(et[12]="Syntax error",12),Tt=Pe.INVALID_MODIFICATION_ERR=(et[13]="Invalid modification",13),un=Pe.NAMESPACE_ERR=(et[14]="Invalid namespace",14),on=Pe.INVALID_ACCESS_ERR=(et[15]="Invalid access",15);function Lr(zt,en){if(en instanceof Error)var Cn=en;else Cn=this,Error.call(this,et[zt]),this.message=et[zt],Error.captureStackTrace&&Error.captureStackTrace(this,Lr);return Cn.code=zt,en&&(this.message=this.message+": "+en),Cn}Lr.prototype=Error.prototype,ae(Pe,Lr);function Yr(){}Yr.prototype={length:0,item:function(zt){return zt>=0&&zt=0){for(var Pr=en.length-1;rr0},lookupPrefix:function(zt){for(var en=this;en;){var Cn=en._nsMap;if(Cn){for(var rr in Cn)if(Object.prototype.hasOwnProperty.call(Cn,rr)&&Cn[rr]===zt)return rr}en=en.nodeType==Ce?en.ownerDocument:en.parentNode}return null},lookupNamespaceURI:function(zt){for(var en=this;en;){var Cn=en._nsMap;if(Cn&&Object.prototype.hasOwnProperty.call(Cn,zt))return Cn[zt];en=en.nodeType==Ce?en.ownerDocument:en.parentNode}return null},isDefaultNamespace:function(zt){var en=this.lookupPrefix(zt);return en==null}};function Vi(zt){return zt=="<"&&"<"||zt==">"&&">"||zt=="&"&&"&"||zt=='"'&&"""||"&#"+zt.charCodeAt()+";"}ae(Ie,Ii),ae(Ie,Ii.prototype);function ro(zt,en){if(en(zt))return!0;if(zt=zt.firstChild)do if(ro(zt,en))return!0;while(zt=zt.nextSibling)}function ai(){this.ownerDocument=this}function Ms(zt,en,Cn){zt&&zt._inc++;var rr=Cn.namespaceURI;rr===P.XMLNS&&(en._nsMap[Cn.prefix?Cn.localName:""]=Cn.value)}function Ar(zt,en,Cn,rr){zt&&zt._inc++;var Pr=Cn.namespaceURI;Pr===P.XMLNS&&delete en._nsMap[Cn.prefix?Cn.localName:""]}function Rt(zt,en,Cn){if(zt&&zt._inc){zt._inc++;var rr=en.childNodes;if(Cn)rr[rr.length++]=Cn;else{for(var Pr=en.firstChild,Er=0;Pr;)rr[Er++]=Pr,Pr=Pr.nextSibling;rr.length=Er,delete rr[rr.length]}}}function jn(zt,en){var Cn=en.previousSibling,rr=en.nextSibling;return Cn?Cn.nextSibling=rr:zt.firstChild=rr,rr?rr.previousSibling=Cn:zt.lastChild=Cn,en.parentNode=null,en.previousSibling=null,en.nextSibling=null,Rt(zt.ownerDocument,zt),en}function wr(zt){return zt&&(zt.nodeType===Ii.DOCUMENT_NODE||zt.nodeType===Ii.DOCUMENT_FRAGMENT_NODE||zt.nodeType===Ii.ELEMENT_NODE)}function oi(zt){return zt&&(Bi(zt)||no(zt)||Ti(zt)||zt.nodeType===Ii.DOCUMENT_FRAGMENT_NODE||zt.nodeType===Ii.COMMENT_NODE||zt.nodeType===Ii.PROCESSING_INSTRUCTION_NODE)}function Ti(zt){return zt&&zt.nodeType===Ii.DOCUMENT_TYPE_NODE}function Bi(zt){return zt&&zt.nodeType===Ii.ELEMENT_NODE}function no(zt){return zt&&zt.nodeType===Ii.TEXT_NODE}function Vr(zt,en){var Cn=zt.childNodes||[];if(z(Cn,Bi)||Ti(en))return!1;var rr=z(Cn,Ti);return!(en&&rr&&Cn.indexOf(rr)>Cn.indexOf(en))}function Rn(zt,en){var Cn=zt.childNodes||[];function rr(Er){return Bi(Er)&&Er!==en}if(z(Cn,rr))return!1;var Pr=z(Cn,Ti);return!(en&&Pr&&Cn.indexOf(Pr)>Cn.indexOf(en))}function Xt(zt,en,Cn){if(!wr(zt))throw new Lr(je,"Unexpected parent node type "+zt.nodeType);if(Cn&&Cn.parentNode!==zt)throw new Lr(Nt,"child not in parent");if(!oi(en)||Ti(en)&&zt.nodeType!==Ii.DOCUMENT_NODE)throw new Lr(je,"Unexpected node type "+en.nodeType+" for parent node type "+zt.nodeType)}function Sn(zt,en,Cn){var rr=zt.childNodes||[],Pr=en.childNodes||[];if(en.nodeType===Ii.DOCUMENT_FRAGMENT_NODE){var Er=Pr.filter(Bi);if(Er.length>1||z(Pr,no))throw new Lr(je,"More than one element or text in fragment");if(Er.length===1&&!Vr(zt,Cn))throw new Lr(je,"Element in fragment can not be inserted before doctype")}if(Bi(en)&&!Vr(zt,Cn))throw new Lr(je,"Only one element can be added and only after doctype");if(Ti(en)){if(z(rr,Ti))throw new Lr(je,"Only one doctype is allowed");var ui=z(rr,Bi);if(Cn&&rr.indexOf(ui)1||z(Pr,no))throw new Lr(je,"More than one element or text in fragment");if(Er.length===1&&!Rn(zt,Cn))throw new Lr(je,"Element in fragment can not be inserted before doctype")}if(Bi(en)&&!Rn(zt,Cn))throw new Lr(je,"Only one element can be added and only after doctype");if(Ti(en)){let zr=function(Ei){return Ti(Ei)&&Ei!==Cn};var Gr=zr;if(z(rr,zr))throw new Lr(je,"Only one doctype is allowed");var ui=z(rr,Bi);if(Cn&&rr.indexOf(ui)0&&ro(Cn.documentElement,function(Pr){if(Pr!==Cn&&Pr.nodeType===Be){var Er=Pr.getAttribute("class");if(Er){var ui=zt===Er;if(!ui){var Gr=Y(Er);ui=en.every(ie(Gr))}ui&&rr.push(Pr)}}}),rr})},createElement:function(zt){var en=new tt;en.ownerDocument=this,en.nodeName=zt,en.tagName=zt,en.localName=zt,en.childNodes=new Yr;var Cn=en.attributes=new Qi;return Cn._ownerElement=en,en},createDocumentFragment:function(){var zt=new it;return zt.ownerDocument=this,zt.childNodes=new Yr,zt},createTextNode:function(zt){var en=new vr;return en.ownerDocument=this,en.appendData(zt),en},createComment:function(zt){var en=new qr;return en.ownerDocument=this,en.appendData(zt),en},createCDATASection:function(zt){var en=new Ni;return en.ownerDocument=this,en.appendData(zt),en},createProcessingInstruction:function(zt,en){var Cn=new Bt;return Cn.ownerDocument=this,Cn.tagName=Cn.nodeName=Cn.target=zt,Cn.nodeValue=Cn.data=en,Cn},createAttribute:function(zt){var en=new kt;return en.ownerDocument=this,en.name=zt,en.nodeName=zt,en.localName=zt,en.specified=!0,en},createEntityReference:function(zt){var en=new xt;return en.ownerDocument=this,en.nodeName=zt,en},createElementNS:function(zt,en){var Cn=new tt,rr=en.split(":"),Pr=Cn.attributes=new Qi;return Cn.childNodes=new Yr,Cn.ownerDocument=this,Cn.nodeName=en,Cn.tagName=en,Cn.namespaceURI=zt,rr.length==2?(Cn.prefix=rr[0],Cn.localName=rr[1]):Cn.localName=en,Pr._ownerElement=Cn,Cn},createAttributeNS:function(zt,en){var Cn=new kt,rr=en.split(":");return Cn.ownerDocument=this,Cn.nodeName=en,Cn.name=en,Cn.namespaceURI=zt,Cn.specified=!0,rr.length==2?(Cn.prefix=rr[0],Cn.localName=rr[1]):Cn.localName=en,Cn}},se(ai,Ii);function tt(){this._nsMap={}}tt.prototype={nodeType:Be,hasAttribute:function(zt){return this.getAttributeNode(zt)!=null},getAttribute:function(zt){var en=this.getAttributeNode(zt);return en&&en.value||""},getAttributeNode:function(zt){return this.attributes.getNamedItem(zt)},setAttribute:function(zt,en){var Cn=this.ownerDocument.createAttribute(zt);Cn.value=Cn.nodeValue=""+en,this.setAttributeNode(Cn)},removeAttribute:function(zt){var en=this.getAttributeNode(zt);en&&this.removeAttributeNode(en)},appendChild:function(zt){return zt.nodeType===Et?this.insertBefore(zt,null):mt(this,zt)},setAttributeNode:function(zt){return this.attributes.setNamedItem(zt)},setAttributeNodeNS:function(zt){return this.attributes.setNamedItemNS(zt)},removeAttributeNode:function(zt){return this.attributes.removeNamedItem(zt.nodeName)},removeAttributeNS:function(zt,en){var Cn=this.getAttributeNodeNS(zt,en);Cn&&this.removeAttributeNode(Cn)},hasAttributeNS:function(zt,en){return this.getAttributeNodeNS(zt,en)!=null},getAttributeNS:function(zt,en){var Cn=this.getAttributeNodeNS(zt,en);return Cn&&Cn.value||""},setAttributeNS:function(zt,en,Cn){var rr=this.ownerDocument.createAttributeNS(zt,en);rr.value=rr.nodeValue=""+Cn,this.setAttributeNode(rr)},getAttributeNodeNS:function(zt,en){return this.attributes.getNamedItemNS(zt,en)},getElementsByTagName:function(zt){return new fi(this,function(en){var Cn=[];return ro(en,function(rr){rr!==en&&rr.nodeType==Be&&(zt==="*"||rr.tagName==zt)&&Cn.push(rr)}),Cn})},getElementsByTagNameNS:function(zt,en){return new fi(this,function(Cn){var rr=[];return ro(Cn,function(Pr){Pr!==Cn&&Pr.nodeType===Be&&(zt==="*"||Pr.namespaceURI===zt)&&(en==="*"||Pr.localName==en)&&rr.push(Pr)}),rr})}},ai.prototype.getElementsByTagName=tt.prototype.getElementsByTagName,ai.prototype.getElementsByTagNameNS=tt.prototype.getElementsByTagNameNS,se(tt,Ii);function kt(){}kt.prototype.nodeType=Ce,se(kt,Ii);function vn(){}vn.prototype={data:"",substringData:function(zt,en){return this.data.substring(zt,zt+en)},appendData:function(zt){zt=this.data+zt,this.nodeValue=this.data=zt,this.length=zt.length},insertData:function(zt,en){this.replaceData(zt,0,en)},appendChild:function(zt){throw new Error(et[je])},deleteData:function(zt,en){this.replaceData(zt,en,"")},replaceData:function(zt,en,Cn){var rr=this.data.substring(0,zt),Pr=this.data.substring(zt+en);Cn=rr+Cn+Pr,this.nodeValue=this.data=Cn,this.length=Cn.length}},se(vn,Ii);function vr(){}vr.prototype={nodeName:"#text",nodeType:ct,splitText:function(zt){var en=this.data,Cn=en.substring(zt);en=en.substring(0,zt),this.data=this.nodeValue=en,this.length=en.length;var rr=this.ownerDocument.createTextNode(Cn);return this.parentNode&&this.parentNode.insertBefore(rr,this.nextSibling),rr}},se(vr,vn);function qr(){}qr.prototype={nodeName:"#comment",nodeType:rt},se(qr,vn);function Ni(){}Ni.prototype={nodeName:"#cdata-section",nodeType:nt},se(Ni,vn);function li(){}li.prototype.nodeType=yt,se(li,Ii);function Un(){}Un.prototype.nodeType=ht,se(Un,Ii);function dn(){}dn.prototype.nodeType=at,se(dn,Ii);function xt(){}xt.prototype.nodeType=Ge,se(xt,Ii);function it(){}it.prototype.nodeName="#document-fragment",it.prototype.nodeType=Et,se(it,Ii);function Bt(){}Bt.prototype.nodeType=Ye,se(Bt,Ii);function rn(){}rn.prototype.serializeToString=function(zt,en,Cn){return ir.call(zt,en,Cn)},Ii.prototype.toString=ir;function ir(zt,en){var Cn=[],rr=this.nodeType==9&&this.documentElement||this,Pr=rr.prefix,Er=rr.namespaceURI;if(Er&&Pr==null){var Pr=rr.lookupPrefix(Er);if(Pr==null)var ui=[{namespace:Er,prefix:null}]}return nn(this,Cn,zt,en,ui),Cn.join("")}function tr(zt,en,Cn){var rr=zt.prefix||"",Pr=zt.namespaceURI;if(!Pr||rr==="xml"&&Pr===P.XML||Pr===P.XMLNS)return!1;for(var Er=Cn.length;Er--;){var ui=Cn[Er];if(ui.prefix===rr)return ui.namespace!==Pr}return!0}function Jn(zt,en,Cn){zt.push(" ",en,'="',Cn.replace(/[<>&"\t\n\r]/g,Vi),'"')}function nn(zt,en,Cn,rr,Pr){if(Pr||(Pr=[]),rr)if(zt=rr(zt),zt){if(typeof zt=="string"){en.push(zt);return}}else return;switch(zt.nodeType){case Be:var Er=zt.attributes,ui=Er.length,sr=zt.firstChild,Gr=zt.tagName;Cn=P.isHTML(zt.namespaceURI)||Cn;var zr=Gr;if(!Cn&&!zt.prefix&&zt.namespaceURI){for(var Ei,Zi=0;Zi=0;Kr--){var Xr=Pr[Kr];if(Xr.prefix===""&&Xr.namespace===zt.namespaceURI){Ei=Xr.namespace;break}}if(Ei!==zt.namespaceURI)for(var Kr=Pr.length-1;Kr>=0;Kr--){var Xr=Pr[Kr];if(Xr.namespace===zt.namespaceURI){Xr.prefix&&(zr=Xr.prefix+":"+Gr);break}}}en.push("<",zr);for(var Qo=0;Qo"),Cn&&/^script$/i.test(Gr))for(;sr;)sr.data?en.push(sr.data):nn(sr,en,Cn,rr,Pr.slice()),sr=sr.nextSibling;else for(;sr;)nn(sr,en,Cn,rr,Pr.slice()),sr=sr.nextSibling;en.push("")}else en.push("/>");return;case Gt:case Et:for(var sr=zt.firstChild;sr;)nn(sr,en,Cn,rr,Pr.slice()),sr=sr.nextSibling;return;case Ce:return Jn(en,zt.name,zt.value);case ct:return en.push(zt.data.replace(/[<&>]/g,Vi));case nt:return en.push("");case rt:return en.push("");case yt:var ii=zt.publicId,qi=zt.systemId;if(en.push("");else if(qi&&qi!=".")en.push(" SYSTEM ",qi,">");else{var Ln=zt.internalSubset;Ln&&en.push(" [",Ln,"]"),en.push(">")}return;case Ye:return en.push("");case Ge:return en.push("&",zt.nodeName,";");default:en.push("??",zt.nodeName)}}function er(zt,en,Cn){var rr;switch(en.nodeType){case Be:rr=en.cloneNode(!1),rr.ownerDocument=zt;case Et:break;case Ce:Cn=!0;break}if(rr||(rr=en.cloneNode(!1)),rr.ownerDocument=zt,rr.parentNode=null,Cn)for(var Pr=en.firstChild;Pr;)rr.appendChild(er(zt,Pr,Cn)),Pr=Pr.nextSibling;return rr}function Fr(zt,en,Cn){var rr=new en.constructor;for(var Pr in en)if(Object.prototype.hasOwnProperty.call(en,Pr)){var Er=en[Pr];typeof Er!="object"&&Er!=rr[Pr]&&(rr[Pr]=Er)}switch(en.childNodes&&(rr.childNodes=new Yr),rr.ownerDocument=zt,rr.nodeType){case Be:var ui=en.attributes,Gr=rr.attributes=new Qi,zr=ui.length;Gr._ownerElement=rr;for(var Ei=0;Ei",lt:"<",quot:'"'}),me.HTML_ENTITIES=v({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),me.entityMap=me.HTML_ENTITIES},65952:function(St,me,x){var v,z=x(32706);v=z.DOMImplementation,me.B=z.XMLSerializer,x(36980)},12128:function(St,me,x){var v=x(18859).NAMESPACE,z=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,P=new RegExp("[\\-\\.0-9"+z.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),A=new RegExp("^"+z.source+P.source+"*(?::"+z.source+P.source+"*)?$"),W=0,X=1,Y=2,ie=3,ae=4,se=5,Ie=6,Be=7;function Ce(Oe,Ue){this.message=Oe,this.locator=Ue,Error.captureStackTrace&&Error.captureStackTrace(this,Ce)}Ce.prototype=new Error,Ce.prototype.name=Ce.name;function ct(){}ct.prototype={parse:function(Oe,Ue,je){var ft=this.domBuilder;ft.startDocument(),yt(Ue,Ue={}),nt(Oe,Ue,je,ft,this.errorHandler),ft.endDocument()}};function nt(Oe,Ue,je,ft,Ct){function Xe(wr){if(wr>65535){wr-=65536;var oi=55296+(wr>>10),Ti=56320+(wr&1023);return String.fromCharCode(oi,Ti)}else return String.fromCharCode(wr)}function hn(wr){var oi=wr.slice(1,-1);return Object.hasOwnProperty.call(je,oi)?je[oi]:oi.charAt(0)==="#"?Xe(parseInt(oi.substr(1).replace("x","0x"))):(Ct.error("entity not found:"+wr),wr)}function Nt(wr){if(wr>Lr){var oi=Oe.substring(Lr,wr).replace(/&#?\w+;/g,hn);Tt&&Te(Lr),ft.characters(oi,0,wr-Lr),Lr=wr}}function Te(wr,oi){for(;wr>=ze&&(oi=Vt.exec(Oe));)vt=oi.index,ze=vt+oi[0].length,Tt.lineNumber++;Tt.columnNumber=wr-vt+1}for(var vt=0,ze=0,Vt=/.*(?:\r\n?|\n)|.*$/g,Tt=ft.locator,un=[{currentNSMap:Ue}],on={},Lr=0;;){try{var Yr=Oe.indexOf("<",Lr);if(Yr<0){if(!Oe.substr(Lr).match(/^\s*$/)){var fi=ft.doc,Xi=fi.createTextNode(Oe.substr(Lr));fi.appendChild(Xi),ft.currentElement=Xi}return}switch(Yr>Lr&&Nt(Yr),Oe.charAt(Yr+1)){case"/":var ai=Oe.indexOf(">",Yr+3),Qi=Oe.substring(Yr+2,ai).replace(/[ \t\n\r]+$/g,""),hi=un.pop();ai<0?(Qi=Oe.substring(Yr+2).replace(/[\s<].*/,""),Ct.error("end tag name: "+Qi+" is not complete:"+hi.tagName),ai=Yr+1+Qi.length):Qi.match(/\sLr?Lr=ai:Nt(Math.max(Yr,Lr)+1)}}function Ge(Oe,Ue){return Ue.lineNumber=Oe.lineNumber,Ue.columnNumber=Oe.columnNumber,Ue}function at(Oe,Ue,je,ft,Ct,Xe){function hn(un,on,Lr){je.attributeNames.hasOwnProperty(un)&&Xe.fatalError("Attribute "+un+" redefined"),je.addValue(un,on.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,Ct),Lr)}for(var Nt,Te,vt=++Ue,ze=W;;){var Vt=Oe.charAt(vt);switch(Vt){case"=":if(ze===X)Nt=Oe.slice(Ue,vt),ze=ie;else if(ze===Y)ze=ie;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ze===ie||ze===X)if(ze===X&&(Xe.warning('attribute value must after "="'),Nt=Oe.slice(Ue,vt)),Ue=vt+1,vt=Oe.indexOf(Vt,Ue),vt>0)Te=Oe.slice(Ue,vt),hn(Nt,Te,Ue-1),ze=se;else throw new Error("attribute value no end '"+Vt+"' match");else if(ze==ae)Te=Oe.slice(Ue,vt),hn(Nt,Te,Ue),Xe.warning('attribute "'+Nt+'" missed start quot('+Vt+")!!"),Ue=vt+1,ze=se;else throw new Error('attribute value must after "="');break;case"/":switch(ze){case W:je.setTagName(Oe.slice(Ue,vt));case se:case Ie:case Be:ze=Be,je.closed=!0;case ae:case X:break;case Y:je.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Xe.error("unexpected end of input"),ze==W&&je.setTagName(Oe.slice(Ue,vt)),vt;case">":switch(ze){case W:je.setTagName(Oe.slice(Ue,vt));case se:case Ie:case Be:break;case ae:case X:Te=Oe.slice(Ue,vt),Te.slice(-1)==="/"&&(je.closed=!0,Te=Te.slice(0,-1));case Y:ze===Y&&(Te=Nt),ze==ae?(Xe.warning('attribute "'+Te+'" missed quot(")!'),hn(Nt,Te,Ue)):((!v.isHTML(ft[""])||!Te.match(/^(?:disabled|checked|selected)$/i))&&Xe.warning('attribute "'+Te+'" missed value!! "'+Te+'" instead!!'),hn(Te,Te,Ue));break;case ie:throw new Error("attribute value missed!!")}return vt;case"\x80":Vt=" ";default:if(Vt<=" ")switch(ze){case W:je.setTagName(Oe.slice(Ue,vt)),ze=Ie;break;case X:Nt=Oe.slice(Ue,vt),ze=Y;break;case ae:var Te=Oe.slice(Ue,vt);Xe.warning('attribute "'+Te+'" missed quot(")!!'),hn(Nt,Te,Ue);case se:ze=Ie;break}else switch(ze){case Y:var Tt=je.tagName;(!v.isHTML(ft[""])||!Nt.match(/^(?:disabled|checked|selected)$/i))&&Xe.warning('attribute "'+Nt+'" missed value!! "'+Nt+'" instead2!!'),hn(Nt,Nt,Ue),Ue=vt,ze=X;break;case se:Xe.warning('attribute space is required"'+Nt+'"!!');case Ie:ze=X,Ue=vt;break;case ie:ze=ae,Ue=vt;break;case Be:throw new Error("elements closed character '/' and '>' must be connected to")}}vt++}}function Ye(Oe,Ue,je){for(var ft=Oe.tagName,Ct=null,Vt=Oe.length;Vt--;){var Xe=Oe[Vt],hn=Xe.qName,Nt=Xe.value,Tt=hn.indexOf(":");if(Tt>0)var Te=Xe.prefix=hn.slice(0,Tt),vt=hn.slice(Tt+1),ze=Te==="xmlns"&&vt;else vt=hn,Te=null,ze=hn==="xmlns"&&"";Xe.localName=vt,ze!==!1&&(Ct==null&&(Ct={},yt(je,je={})),je[ze]=Ct[ze]=Nt,Xe.uri=v.XMLNS,Ue.startPrefixMapping(ze,Nt))}for(var Vt=Oe.length;Vt--;){Xe=Oe[Vt];var Te=Xe.prefix;Te&&(Te==="xml"&&(Xe.uri=v.XML),Te!=="xmlns"&&(Xe.uri=je[Te||""]))}var Tt=ft.indexOf(":");Tt>0?(Te=Oe.prefix=ft.slice(0,Tt),vt=Oe.localName=ft.slice(Tt+1)):(Te=null,vt=Oe.localName=ft);var un=Oe.uri=je[Te||""];if(Ue.startElement(un,vt,ft,Oe),Oe.closed){if(Ue.endElement(un,vt,ft),Ct)for(Te in Ct)Object.prototype.hasOwnProperty.call(Ct,Te)&&Ue.endPrefixMapping(Te)}else return Oe.currentNSMap=je,Oe.localNSMap=Ct,!0}function rt(Oe,Ue,je,ft,Ct){if(/^(?:script|textarea)$/i.test(je)){var Xe=Oe.indexOf("",Ue),hn=Oe.substring(Ue+1,Xe);if(/[&<]/.test(hn))return/^script$/i.test(je)?(Ct.characters(hn,0,hn.length),Xe):(hn=hn.replace(/&#?\w+;/g,ft),Ct.characters(hn,0,hn.length),Xe)}return Ue+1}function Gt(Oe,Ue,je,ft){var Ct=ft[je];return Ct==null&&(Ct=Oe.lastIndexOf(""),Ct",Ue+4);return Xe>Ue?(je.comment(Oe,Ue+4,Xe-Ue-4),Xe+3):(ft.error("Unclosed comment"),-1)}else return-1;default:if(Oe.substr(Ue+3,6)=="CDATA["){var Xe=Oe.indexOf("]]>",Ue+9);return je.startCDATA(),je.characters(Oe,Ue+9,Xe-Ue-9),je.endCDATA(),Xe+3}var hn=et(Oe,Ue),Nt=hn.length;if(Nt>1&&/!doctype/i.test(hn[0][0])){var Te=hn[1][0],vt=!1,ze=!1;Nt>3&&(/^public$/i.test(hn[2][0])?(vt=hn[3][0],ze=Nt>4&&hn[4][0]):/^system$/i.test(hn[2][0])&&(ze=hn[3][0]));var Vt=hn[Nt-1];return je.startDTD(Te,vt,ze),je.endDTD(),Vt.index+Vt[0].length}}return-1}function ht(Oe,Ue,je){var ft=Oe.indexOf("?>",Ue);if(ft){var Ct=Oe.substring(Ue,ft).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(Ct){var Xe=Ct[0].length;return je.processingInstruction(Ct[1],Ct[2]),ft+2}else return-1}return-1}function Pe(){this.attributeNames={}}Pe.prototype={setTagName:function(Oe){if(!A.test(Oe))throw new Error("invalid tagName:"+Oe);this.tagName=Oe},addValue:function(Oe,Ue,je){if(!A.test(Oe))throw new Error("invalid attribute:"+Oe);this.attributeNames[Oe]=this.length,this[this.length++]={qName:Oe,value:Ue,offset:je}},length:0,getLocalName:function(Oe){return this[Oe].localName},getLocator:function(Oe){return this[Oe].locator},getQName:function(Oe){return this[Oe].qName},getURI:function(Oe){return this[Oe].uri},getValue:function(Oe){return this[Oe].value}};function et(Oe,Ue){var je,ft=[],Ct=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(Ct.lastIndex=Ue,Ct.exec(Oe);je=Ct.exec(Oe);)if(ft.push(je),je[1])return ft}me.XMLReader=ct,me.ParseError=Ce},18551:function(St,me,x){"use strict";var v=x(32290),z=x(77617),P=x(7428);function A(X){return(0,P.mf)(X[Symbol.asyncIterator])}function W(X,Y){(0,z.useEffect)(function(){var ie=X(),ae=!1;function se(){return(0,v.mG)(this,void 0,void 0,function(){var Ie;return(0,v.Jh)(this,function(Be){switch(Be.label){case 0:if(!A(ie))return[3,4];Be.label=1;case 1:return[4,ie.next()];case 2:return Ie=Be.sent(),Ie.done||ae?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,ie];case 5:Be.sent(),Be.label=6;case 6:return[2]}})})}return se(),function(){ae=!0}},Y)}me.Z=W},65397:function(St,me,x){"use strict";var v=x(32290),z=x(77617),P=x(52882);function A(W,X){var Y=(0,v.CR)((0,z.useState)(W),2),ie=Y[0],ae=Y[1],se=(0,P.Z)(function(){ae(W)},X).run;return(0,z.useEffect)(function(){se()},[W]),ie}me.Z=A},52882:function(St,me,x){"use strict";var v=x(32290),z=x(41571),P=x.n(z),A=x(77617),W=x(44795),X=x(41806),Y=x(7428),ie=x(99823);function ae(se,Ie){var Be;ie.Z&&((0,Y.mf)(se)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof se)));var Ce=(0,W.Z)(se),ct=(Be=Ie==null?void 0:Ie.wait)!==null&&Be!==void 0?Be:1e3,nt=(0,A.useMemo)(function(){return P()(function(){for(var Ge=[],at=0;at{const{type:ie,children:ae,prefixCls:se,buttonProps:Ie,close:Be,autoFocus:Ce,emitEvent:ct,isSilent:nt,quitOnNullishReturnValue:Ge,actionFn:at}=Y,Ye=z.useRef(!1),rt=z.useRef(null),[Gt,yt]=(0,v.Z)(!1),Et=function(){Be==null||Be.apply(void 0,arguments)};z.useEffect(()=>{let et=null;return Ce&&(et=setTimeout(()=>{var Oe;(Oe=rt.current)===null||Oe===void 0||Oe.focus()})),()=>{et&&clearTimeout(et)}},[]);const ht=et=>{W(et)&&(yt(!0),et.then(function(){yt(!1,!0),Et.apply(void 0,arguments),Ye.current=!1},Oe=>{if(yt(!1,!0),Ye.current=!1,!(nt!=null&&nt()))return Promise.reject(Oe)}))},Pe=et=>{if(Ye.current)return;if(Ye.current=!0,!at){Et();return}let Oe;if(ct){if(Oe=at(et),Ge&&!W(Oe)){Ye.current=!1,Et(et);return}}else if(at.length)Oe=at(Be),Ye.current=!1;else if(Oe=at(),!Oe){Et();return}ht(Oe)};return z.createElement(P.ZP,Object.assign({},(0,A.nx)(ie),{onClick:Pe,loading:Gt,prefixCls:se},Ie,{ref:rt}),ae)};me.Z=X},62625:function(St,me,x){"use strict";x.d(me,{i:function(){return W}});var v=x(77617),z=x(89308),P=x(64495),A=x(58798);function W(Y){return ie=>v.createElement(P.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(Y,Object.assign({},ie)))}const X=(Y,ie,ae,se)=>W(Be=>{const{prefixCls:Ce,style:ct}=Be,nt=v.useRef(null),[Ge,at]=v.useState(0),[Ye,rt]=v.useState(0),[Gt,yt]=(0,z.Z)(!1,{value:Be.open}),{getPrefixCls:Et}=v.useContext(A.E_),ht=Et(ie||"select",Ce);v.useEffect(()=>{if(yt(!0),typeof ResizeObserver!="undefined"){const Oe=new ResizeObserver(je=>{const ft=je[0].target;at(ft.offsetHeight+8),rt(ft.offsetWidth)}),Ue=setInterval(()=>{var je;const ft=ae?`.${ae(ht)}`:`.${ht}-dropdown`,Ct=(je=nt.current)===null||je===void 0?void 0:je.querySelector(ft);Ct&&(clearInterval(Ue),Oe.observe(Ct))},10);return()=>{clearInterval(Ue),Oe.disconnect()}}},[]);let Pe=Object.assign(Object.assign({},Be),{style:Object.assign(Object.assign({},ct),{margin:0}),open:Gt,visible:Gt,getPopupContainer:()=>nt.current});se&&(Pe=se(Pe));const et={paddingBottom:Ge,position:"relative",minWidth:Ye};return v.createElement("div",{ref:nt,style:et},v.createElement(Y,Object.assign({},Pe)))});me.Z=X},98389:function(St,me,x){"use strict";x.d(me,{Z:function(){return v}});const v=z=>z?typeof z=="function"?z():z:null},67445:function(St,me,x){"use strict";var v=x(77617),z=x(4531);function P(W,X,Y){return typeof W=="boolean"?W:X===void 0?!!Y:X!==!1&&X!==null}function A(W,X,Y){let ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v.createElement(z.Z,null),ae=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!P(W,X,ae))return[!1,null];const Ie=typeof X=="boolean"||X===void 0||X===null?ie:X;return[!0,Y?Y(Ie):Ie]}me.Z=A},51626:function(St,me,x){"use strict";x.d(me,{Z:function(){return z}});var v=x(77617);function z(){const[,P]=v.useReducer(A=>A+1,0);return P}},40870:function(St,me,x){"use strict";x.d(me,{Cn:function(){return se},u6:function(){return X}});var v=x(77617),z=x(57832),P=x(13150);const A=100,X=A*10,Y={Modal:A,Drawer:A,Popover:A,Popconfirm:A,Tooltip:A,Tour:A},ie={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ae(Ie){return Ie in Y}function se(Ie,Be){const[,Ce]=(0,z.ZP)(),ct=v.useContext(P.Z),nt=ae(Ie);if(Be!==void 0)return[Be,Be];let Ge=ct!=null?ct:0;return nt?(Ge+=(ct?0:Ce.zIndexPopupBase)+Y[Ie],Ge=Math.min(Ge,Ce.zIndexPopupBase+X)):Ge+=ie[Ie],[ct===void 0?Be:Ge,Ge]}},12149:function(St,me,x){"use strict";x.d(me,{m:function(){return Y}});const v=()=>({height:0,opacity:0}),z=ie=>{const{scrollHeight:ae}=ie;return{height:ae,opacity:1}},P=ie=>({height:ie?ie.offsetHeight:0}),A=(ie,ae)=>(ae==null?void 0:ae.deadline)===!0||ae.propertyName==="height",W=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:v,onEnterStart:v,onAppearActive:z,onEnterActive:z,onLeaveStart:P,onLeaveActive:v,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500}},X=null,Y=(ie,ae,se)=>se!==void 0?se:`${ie}-${ae}`;me.Z=W},81420:function(St,me,x){"use strict";x.d(me,{Z:function(){return X}});var v=x(50489);function z(Y,ie,ae,se){if(se===!1)return{adjustX:!1,adjustY:!1};const Ie=se&&typeof se=="object"?se:{},Be={};switch(Y){case"top":case"bottom":Be.shiftX=ie.arrowOffsetHorizontal*2+ae,Be.shiftY=!0,Be.adjustY=!0;break;case"left":case"right":Be.shiftY=ie.arrowOffsetVertical*2+ae,Be.shiftX=!0,Be.adjustX=!0;break}const Ce=Object.assign(Object.assign({},Be),Ie);return Ce.shiftX||(Ce.adjustX=!0),Ce.shiftY||(Ce.adjustY=!0),Ce}const P={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"]}},A={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"]}},W=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function X(Y){const{arrowWidth:ie,autoAdjustOverflow:ae,arrowPointAtCenter:se,offset:Ie,borderRadius:Be,visibleFirst:Ce}=Y,ct=ie/2,nt={};return Object.keys(P).forEach(Ge=>{const at=se&&A[Ge]||P[Ge],Ye=Object.assign(Object.assign({},at),{offset:[0,0],dynamicInset:!0});switch(nt[Ge]=Ye,W.has(Ge)&&(Ye.autoArrow=!1),Ge){case"top":case"topLeft":case"topRight":Ye.offset[1]=-ct-Ie;break;case"bottom":case"bottomLeft":case"bottomRight":Ye.offset[1]=ct+Ie;break;case"left":case"leftTop":case"leftBottom":Ye.offset[0]=-ct-Ie;break;case"right":case"rightTop":case"rightBottom":Ye.offset[0]=ct+Ie;break}const rt=(0,v.wZ)({contentRadius:Be,limitVerticalRadius:!0});if(se)switch(Ge){case"topLeft":case"bottomLeft":Ye.offset[0]=-rt.arrowOffsetHorizontal-ct;break;case"topRight":case"bottomRight":Ye.offset[0]=rt.arrowOffsetHorizontal+ct;break;case"leftTop":case"rightTop":Ye.offset[1]=-rt.arrowOffsetHorizontal-ct;break;case"leftBottom":case"rightBottom":Ye.offset[1]=rt.arrowOffsetHorizontal+ct;break}Ye.overflow=z(Ge,rt,ie,ae),Ce&&(Ye.htmlRegion="visibleFirst")}),nt}},20612:function(St,me,x){"use strict";var v;x.d(me,{M2:function(){return A},Tm:function(){return X},l$:function(){return P}});var z=x(77617);const{isValidElement:P}=v||(v=x.t(z,2));function A(Y){return Y&&P(Y)&&Y.type===z.Fragment}function W(Y,ie,ae){return P(Y)?z.cloneElement(Y,typeof ae=="function"?ae(Y.props||{}):ae):ie}function X(Y,ie){return W(Y,Y,ie)}},5754:function(St,me,x){"use strict";x.d(me,{ZP:function(){return X},c4:function(){return P},m9:function(){return Y}});var v=x(77617),z=x(57832);const P=["xxl","xl","lg","md","sm","xs"],A=ie=>({xs:`(max-width: ${ie.screenXSMax}px)`,sm:`(min-width: ${ie.screenSM}px)`,md:`(min-width: ${ie.screenMD}px)`,lg:`(min-width: ${ie.screenLG}px)`,xl:`(min-width: ${ie.screenXL}px)`,xxl:`(min-width: ${ie.screenXXL}px)`}),W=ie=>{const ae=ie,se=[].concat(P).reverse();return se.forEach((Ie,Be)=>{const Ce=Ie.toUpperCase(),ct=`screen${Ce}Min`,nt=`screen${Ce}`;if(!(ae[ct]<=ae[nt]))throw new Error(`${ct}<=${nt} fails : !(${ae[ct]}<=${ae[nt]})`);if(Be{const se=new Map;let Ie=-1,Be={};return{matchHandlers:{},dispatch(Ce){return Be=Ce,se.forEach(ct=>ct(Be)),se.size>=1},subscribe(Ce){return se.size||this.register(),Ie+=1,se.set(Ie,Ce),Ce(Be),Ie},unsubscribe(Ce){se.delete(Ce),se.size||this.unregister()},unregister(){Object.keys(ae).forEach(Ce=>{const ct=ae[Ce],nt=this.matchHandlers[ct];nt==null||nt.mql.removeListener(nt==null?void 0:nt.listener)}),se.clear()},register(){Object.keys(ae).forEach(Ce=>{const ct=ae[Ce],nt=at=>{let{matches:Ye}=at;this.dispatch(Object.assign(Object.assign({},Be),{[Ce]:Ye}))},Ge=window.matchMedia(ct);Ge.addListener(nt),this.matchHandlers[ct]={mql:Ge,listener:nt},nt(Ge)})},responsiveMap:ae}},[ie])}const Y=(ie,ae)=>{if(ae&&typeof ae=="object")for(let se=0;seY||X},80074:function(St,me,x){"use strict";x.d(me,{G8:function(){return Y},ln:function(){return ie}});var v=x(77617),z=x(32188);function P(){}let A=null;function W(){A=null,rcResetWarned()}let X=null;const Y=v.createContext({}),ie=()=>{const se=()=>{};return se.deprecated=P,se};var ae=null},20261:function(St,me,x){"use strict";x.d(me,{Z:function(){return Oe}});var v=x(92310),z=x.n(v),P=x(17763),A=x(66209),W=x(77617),X=x(58798),Y=x(20612),ie=x(79263);const ae=Ue=>{const{componentCls:je,colorPrimary:ft}=Ue;return{[je]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${ft})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Ue.motionEaseOutCirc}`,`opacity 2s ${Ue.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Ue.motionEaseInOut}`,`opacity 0.35s ${Ue.motionEaseInOut}`].join(",")}}}}};var se=(0,ie.ZP)("Wave",Ue=>[ae(Ue)]),Ie=x(46142),Be=x(74570),Ce=x(44516),ct=x(59905);function nt(Ue){const je=(Ue||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return je&&je[1]&&je[2]&&je[3]?!(je[1]===je[2]&&je[2]===je[3]):!0}function Ge(Ue){return Ue&&Ue!=="#fff"&&Ue!=="#ffffff"&&Ue!=="rgb(255, 255, 255)"&&Ue!=="rgba(255, 255, 255, 1)"&&nt(Ue)&&!/rgba\((?:\d*, ){3}0\)/.test(Ue)&&Ue!=="transparent"}function at(Ue){const{borderTopColor:je,borderColor:ft,backgroundColor:Ct}=getComputedStyle(Ue);return Ge(je)?je:Ge(ft)?ft:Ge(Ct)?Ct:null}var Ye=x(10386);function rt(Ue){return Number.isNaN(Ue)?0:Ue}const Gt=Ue=>{const{className:je,target:ft,component:Ct}=Ue,Xe=W.useRef(null),[hn,Nt]=W.useState(null),[Te,vt]=W.useState([]),[ze,Vt]=W.useState(0),[Tt,un]=W.useState(0),[on,Lr]=W.useState(0),[Yr,fi]=W.useState(0),[Xi,Qi]=W.useState(!1),hi={left:ze,top:Tt,width:on,height:Yr,borderRadius:Te.map(pe=>`${pe}px`).join(" ")};hn&&(hi["--wave-color"]=hn);function Go(){const pe=getComputedStyle(ft);Nt(at(ft));const Ii=pe.position==="static",{borderLeftWidth:Vi,borderTopWidth:ro}=pe;Vt(Ii?ft.offsetLeft:rt(-parseFloat(Vi))),un(Ii?ft.offsetTop:rt(-parseFloat(ro))),Lr(ft.offsetWidth),fi(ft.offsetHeight);const{borderTopLeftRadius:ai,borderTopRightRadius:Ms,borderBottomLeftRadius:Ar,borderBottomRightRadius:Rt}=pe;vt([ai,Ms,Rt,Ar].map(jn=>rt(parseFloat(jn))))}if(W.useEffect(()=>{if(ft){const pe=(0,Be.Z)(()=>{Go(),Qi(!0)});let Ii;return typeof ResizeObserver!="undefined"&&(Ii=new ResizeObserver(Go),Ii.observe(ft)),()=>{Be.Z.cancel(pe),Ii==null||Ii.disconnect()}}},[]),!Xi)return null;const Mo=(Ct==="Checkbox"||Ct==="Radio")&&(ft==null?void 0:ft.classList.contains(Ye.A));return W.createElement(Ce.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(pe,Ii)=>{var Vi;if(Ii.deadline||Ii.propertyName==="opacity"){const ro=(Vi=Xe.current)===null||Vi===void 0?void 0:Vi.parentElement;(0,ct.v)(ro).then(()=>{ro==null||ro.remove()})}return!1}},pe=>{let{className:Ii}=pe;return W.createElement("div",{ref:Xe,className:z()(je,{"wave-quick":Mo},Ii),style:hi})})};var Et=(Ue,je)=>{var ft;const{component:Ct}=je;if(Ct==="Checkbox"&&!(!((ft=Ue.querySelector("input"))===null||ft===void 0)&&ft.checked))return;const Xe=document.createElement("div");Xe.style.position="absolute",Xe.style.left="0px",Xe.style.top="0px",Ue==null||Ue.insertBefore(Xe,Ue==null?void 0:Ue.firstChild),(0,ct.s)(W.createElement(Gt,Object.assign({},je,{target:Ue})),Xe)},ht=x(57832);function Pe(Ue,je,ft){const{wave:Ct}=W.useContext(X.E_),[,Xe,hn]=(0,ht.ZP)(),Nt=(0,Ie.zX)(ze=>{const Vt=Ue.current;if(Ct!=null&&Ct.disabled||!Vt)return;const Tt=Vt.querySelector(`.${Ye.A}`)||Vt,{showEffect:un}=Ct||{};(un||Et)(Tt,{className:je,token:Xe,component:ft,event:ze,hashId:hn})}),Te=W.useRef();return ze=>{Be.Z.cancel(Te.current),Te.current=(0,Be.Z)(()=>{Nt(ze)})}}var Oe=Ue=>{const{children:je,disabled:ft,component:Ct}=Ue,{getPrefixCls:Xe}=(0,W.useContext)(X.E_),hn=(0,W.useRef)(null),Nt=Xe("wave"),[,Te]=se(Nt),vt=Pe(hn,z()(Nt,Te),Ct);if(W.useEffect(()=>{const Vt=hn.current;if(!Vt||Vt.nodeType!==1||ft)return;const Tt=un=>{!(0,A.Z)(un.target)||!Vt.getAttribute||Vt.getAttribute("disabled")||Vt.disabled||Vt.className.includes("disabled")||Vt.className.includes("-leave")||vt(un)};return Vt.addEventListener("click",Tt,!0),()=>{Vt.removeEventListener("click",Tt,!0)}},[ft]),!W.isValidElement(je))return je!=null?je:null;const ze=(0,P.Yr)(je)?(0,P.sQ)(je.ref,hn):hn;return(0,Y.Tm)(je,{ref:ze})}},10386:function(St,me,x){"use strict";x.d(me,{A:function(){return v}});const v="ant-wave-target"},13150:function(St,me,x){"use strict";var v=x(77617);const z=v.createContext(void 0);me.Z=z},69221:function(St,me,x){"use strict";x.d(me,{Te:function(){return Y},aG:function(){return A},hU:function(){return ae},nx:function(){return W}});var v=x(77617),z=x(20612);const P=/^[\u4e00-\u9fa5]{2}$/,A=P.test.bind(P);function W(Ce){return Ce==="danger"?{danger:!0}:{type:Ce}}function X(Ce){return typeof Ce=="string"}function Y(Ce){return Ce==="text"||Ce==="link"}function ie(Ce,ct){if(Ce==null)return;const nt=ct?" ":"";return typeof Ce!="string"&&typeof Ce!="number"&&X(Ce.type)&&A(Ce.props.children)?(0,z.Tm)(Ce,{children:Ce.props.children.split("").join(nt)}):X(Ce)?A(Ce)?v.createElement("span",null,Ce.split("").join(nt)):v.createElement("span",null,Ce):(0,z.M2)(Ce)?v.createElement("span",null,Ce):Ce}function ae(Ce,ct){let nt=!1;const Ge=[];return v.Children.forEach(Ce,at=>{const Ye=typeof at,rt=Ye==="string"||Ye==="number";if(nt&&rt){const Gt=Ge.length-1,yt=Ge[Gt];Ge[Gt]=`${yt}${at}`}else Ge.push(at);nt=rt}),v.Children.map(Ge,at=>ie(at,ct))}const se=null,Ie=null,Be=null},99622:function(St,me,x){"use strict";x.d(me,{ZP:function(){return hr}});var v=x(77617),z=x(92310),P=x.n(z),A=x(41123),W=x(17763),X=x(20261),Y=x(58798),ie=x(57801),ae=x(20804),se=x(55449),Ie=x(57832),Be=function(mt,tt){var kt={};for(var vn in mt)Object.prototype.hasOwnProperty.call(mt,vn)&&tt.indexOf(vn)<0&&(kt[vn]=mt[vn]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,vn=Object.getOwnPropertySymbols(mt);vr{const{getPrefixCls:tt,direction:kt}=v.useContext(Y.E_),{prefixCls:vn,size:vr,className:qr}=mt,Ni=Be(mt,["prefixCls","size","className"]),li=tt("btn-group",vn),[,,Un]=(0,Ie.ZP)();let dn="";switch(vr){case"large":dn="lg";break;case"small":dn="sm";break;case"middle":default:}const xt=P()(li,{[`${li}-${dn}`]:dn,[`${li}-rtl`]:kt==="rtl"},qr,Un);return v.createElement(Ce.Provider,{value:vr},v.createElement("div",Object.assign({},Ni,{className:xt})))},Ge=x(69221),Ye=(0,v.forwardRef)((mt,tt)=>{const{className:kt,style:vn,children:vr,prefixCls:qr}=mt,Ni=P()(`${qr}-icon`,kt);return v.createElement("span",{ref:tt,className:Ni,style:vn},vr)}),rt=x(20555),Gt=x(44516);const yt=(0,v.forwardRef)((mt,tt)=>{let{prefixCls:kt,className:vn,style:vr,iconClassName:qr}=mt;const Ni=P()(`${kt}-loading-icon`,vn);return v.createElement(Ye,{prefixCls:kt,className:Ni,style:vr,ref:tt},v.createElement(rt.Z,{className:qr}))}),Et=()=>({width:0,opacity:0,transform:"scale(0)"}),ht=mt=>({width:mt.scrollWidth,opacity:1,transform:"scale(1)"});var et=mt=>{const{prefixCls:tt,loading:kt,existIcon:vn,className:vr,style:qr}=mt,Ni=!!kt;return vn?v.createElement(yt,{prefixCls:tt,className:vr,style:qr}):v.createElement(Gt.ZP,{visible:Ni,motionName:`${tt}-loading-icon-motion`,motionLeave:Ni,removeOnLeave:!0,onAppearStart:Et,onAppearActive:ht,onEnterStart:Et,onEnterActive:ht,onLeaveStart:ht,onLeaveActive:Et},(li,Un)=>{let{className:dn,style:xt}=li;return v.createElement(yt,{prefixCls:tt,className:vr,style:Object.assign(Object.assign({},qr),xt),ref:Un,iconClassName:dn})})},Oe=x(78600),Ue=x(91110),je=x(90882),ft=x(79263);const Ct=(mt,tt)=>({[`> span, > ${mt}`]:{"&:not(:last-child)":{[`&, & > ${mt}`]:{"&:not(:disabled)":{borderInlineEndColor:tt}}},"&:not(:first-child)":{[`&, & > ${mt}`]:{"&:not(:disabled)":{borderInlineStartColor:tt}}}}});var hn=mt=>{const{componentCls:tt,fontSize:kt,lineWidth:vn,groupBorderColor:vr,colorErrorHover:qr}=mt;return{[`${tt}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${tt}`]:{"&:not(:last-child)":{[`&, & > ${tt}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:mt.calc(vn).mul(-1).equal(),[`&, & > ${tt}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[tt]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${fr}-icon-only`]:{fontSize:ri}},Hr(`${fr}-primary`,Sg),Hr(`${fr}-danger`,Jg)]}},ai=l(14506);const gt=Kr=>{const{paddingInline:fr,onlyIconSize:ri,paddingBlock:Ra}=Kr;return(0,Rt.TS)(Kr,{buttonPaddingHorizontal:fr,buttonPaddingVertical:Ra,buttonIconOnlyFontSize:ri})},Zr=Kr=>{var fr,ri,Ra,Sg,Jg,j0;const Wo=(fr=Kr.contentFontSize)!==null&&fr!==void 0?fr:Kr.fontSize,Mo=(ri=Kr.contentFontSizeSM)!==null&&ri!==void 0?ri:Kr.fontSize,qr=(Ra=Kr.contentFontSizeLG)!==null&&Ra!==void 0?Ra:Kr.fontSizeLG,On=(Sg=Kr.contentLineHeight)!==null&&Sg!==void 0?Sg:(0,ai.D)(Wo),rn=(Jg=Kr.contentLineHeightSM)!==null&&Jg!==void 0?Jg:(0,ai.D)(Mo),ui=(j0=Kr.contentLineHeightLG)!==null&&j0!==void 0?j0:(0,ai.D)(qr);return{fontWeight:400,defaultShadow:`0 ${Kr.controlOutlineWidth}px 0 ${Kr.controlTmpOutline}`,primaryShadow:`0 ${Kr.controlOutlineWidth}px 0 ${Kr.controlOutline}`,dangerShadow:`0 ${Kr.controlOutlineWidth}px 0 ${Kr.colorErrorOutline}`,primaryColor:Kr.colorTextLightSolid,dangerColor:Kr.colorTextLightSolid,borderColorDisabled:Kr.colorBorder,defaultGhostColor:Kr.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:Kr.colorBgContainer,paddingInline:Kr.paddingContentHorizontal-Kr.lineWidth,paddingInlineLG:Kr.paddingContentHorizontal-Kr.lineWidth,paddingInlineSM:8-Kr.lineWidth,onlyIconSize:Kr.fontSizeLG,onlyIconSizeSM:Kr.fontSizeLG-2,onlyIconSizeLG:Kr.fontSizeLG+2,groupBorderColor:Kr.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:Kr.colorBgTextHover,defaultColor:Kr.colorText,defaultBg:Kr.colorBgContainer,defaultBorderColor:Kr.colorBorder,defaultBorderColorDisabled:Kr.colorBorder,defaultHoverBg:Kr.colorBgContainer,defaultHoverColor:Kr.colorPrimaryHover,defaultHoverBorderColor:Kr.colorPrimaryHover,defaultActiveBg:Kr.colorBgContainer,defaultActiveColor:Kr.colorPrimaryActive,defaultActiveBorderColor:Kr.colorPrimaryActive,contentFontSize:Wo,contentFontSizeSM:Mo,contentFontSizeLG:qr,contentLineHeight:On,contentLineHeightSM:rn,contentLineHeightLG:ui,paddingBlock:Math.max((Kr.controlHeight-Wo*On)/2-Kr.lineWidth,0),paddingBlockSM:Math.max((Kr.controlHeightSM-Mo*rn)/2-Kr.lineWidth,0),paddingBlockLG:Math.max((Kr.controlHeightLG-qr*ui)/2-Kr.lineWidth,0)}},Ht=Kr=>{const{componentCls:fr,iconCls:ri,fontWeight:Ra}=Kr;return{[fr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ra,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,Mt.bf)(Kr.lineWidth)} ${Kr.lineType} transparent`,cursor:"pointer",transition:`all ${Kr.motionDurationMid} ${Kr.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:Kr.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${fr}-icon`]:{lineHeight:0},[`> ${ri} + span, > span + ${ri}`]:{marginInlineStart:Kr.marginXS},[`&:not(${fr}-icon-only) > ${fr}-icon`]:{[`&${fr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:Kr.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Bt.Qy)(Kr)),[`&${fr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${fr}-two-chinese-chars > *:not(${ri})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${fr}-compact-item`]:{flex:"none"}}}},Zs=(Kr,fr,ri)=>({[`&:not(:disabled):not(${Kr}-disabled)`]:{"&:hover":fr,"&:active":ri}}),oi=Kr=>({minWidth:Kr.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Pa=Kr=>({borderRadius:Kr.controlHeight,paddingInlineStart:Kr.calc(Kr.controlHeight).div(2).equal(),paddingInlineEnd:Kr.calc(Kr.controlHeight).div(2).equal()}),Aa=Kr=>({cursor:"not-allowed",borderColor:Kr.borderColorDisabled,color:Kr.colorTextDisabled,background:Kr.colorBgContainerDisabled,boxShadow:"none"}),Pg=(Kr,fr,ri,Ra,Sg,Jg,j0,Wo)=>({[`&${Kr}-background-ghost`]:Object.assign(Object.assign({color:ri||void 0,background:fr,borderColor:Ra||void 0,boxShadow:"none"},Zs(Kr,Object.assign({background:fr},j0),Object.assign({background:fr},Wo))),{"&:disabled":{cursor:"not-allowed",color:Sg||void 0,borderColor:Jg||void 0}})}),Ug=Kr=>({[`&:disabled, &${Kr.componentCls}-disabled`]:Object.assign({},Aa(Kr))}),e0=Kr=>Object.assign({},Ug(Kr)),H0=Kr=>({[`&:disabled, &${Kr.componentCls}-disabled`]:{cursor:"not-allowed",color:Kr.colorTextDisabled}}),X0=Kr=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e0(Kr)),{background:Kr.defaultBg,borderColor:Kr.defaultBorderColor,color:Kr.defaultColor,boxShadow:Kr.defaultShadow}),Zs(Kr.componentCls,{color:Kr.defaultHoverColor,borderColor:Kr.defaultHoverBorderColor,background:Kr.defaultHoverBg},{color:Kr.defaultActiveColor,borderColor:Kr.defaultActiveBorderColor,background:Kr.defaultActiveBg})),Pg(Kr.componentCls,Kr.ghostBg,Kr.defaultGhostColor,Kr.defaultGhostBorderColor,Kr.colorTextDisabled,Kr.colorBorder)),{[`&${Kr.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:Kr.colorError,borderColor:Kr.colorError},Zs(Kr.componentCls,{color:Kr.colorErrorHover,borderColor:Kr.colorErrorBorderHover},{color:Kr.colorErrorActive,borderColor:Kr.colorErrorActive})),Pg(Kr.componentCls,Kr.ghostBg,Kr.colorError,Kr.colorError,Kr.colorTextDisabled,Kr.colorBorder)),Ug(Kr))}),d0=Kr=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e0(Kr)),{color:Kr.primaryColor,background:Kr.colorPrimary,boxShadow:Kr.primaryShadow}),Zs(Kr.componentCls,{color:Kr.colorTextLightSolid,background:Kr.colorPrimaryHover},{color:Kr.colorTextLightSolid,background:Kr.colorPrimaryActive})),Pg(Kr.componentCls,Kr.ghostBg,Kr.colorPrimary,Kr.colorPrimary,Kr.colorTextDisabled,Kr.colorBorder,{color:Kr.colorPrimaryHover,borderColor:Kr.colorPrimaryHover},{color:Kr.colorPrimaryActive,borderColor:Kr.colorPrimaryActive})),{[`&${Kr.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:Kr.colorError,boxShadow:Kr.dangerShadow,color:Kr.dangerColor},Zs(Kr.componentCls,{background:Kr.colorErrorHover},{background:Kr.colorErrorActive})),Pg(Kr.componentCls,Kr.ghostBg,Kr.colorError,Kr.colorError,Kr.colorTextDisabled,Kr.colorBorder,{color:Kr.colorErrorHover,borderColor:Kr.colorErrorHover},{color:Kr.colorErrorActive,borderColor:Kr.colorErrorActive})),Ug(Kr))}),jv=Kr=>Object.assign(Object.assign({},X0(Kr)),{borderStyle:"dashed"}),Lv=Kr=>Object.assign(Object.assign(Object.assign({color:Kr.colorLink},Zs(Kr.componentCls,{color:Kr.colorLinkHover,background:Kr.linkHoverBg},{color:Kr.colorLinkActive})),H0(Kr)),{[`&${Kr.componentCls}-dangerous`]:Object.assign(Object.assign({color:Kr.colorError},Zs(Kr.componentCls,{color:Kr.colorErrorHover},{color:Kr.colorErrorActive})),H0(Kr))}),Je=Kr=>Object.assign(Object.assign(Object.assign({},Zs(Kr.componentCls,{color:Kr.colorText,background:Kr.textHoverBg},{color:Kr.colorText,background:Kr.colorBgTextActive})),H0(Kr)),{[`&${Kr.componentCls}-dangerous`]:Object.assign(Object.assign({color:Kr.colorError},H0(Kr)),Zs(Kr.componentCls,{color:Kr.colorErrorHover,background:Kr.colorErrorBg},{color:Kr.colorErrorHover,background:Kr.colorErrorBg}))}),k0=Kr=>{const{componentCls:fr}=Kr;return{[`${fr}-default`]:X0(Kr),[`${fr}-primary`]:d0(Kr),[`${fr}-dashed`]:jv(Kr),[`${fr}-link`]:Lv(Kr),[`${fr}-text`]:Je(Kr),[`${fr}-ghost`]:Pg(Kr.componentCls,Kr.ghostBg,Kr.colorBgContainer,Kr.colorBgContainer,Kr.colorTextDisabled,Kr.colorBorder)}},G0=function(Kr){let fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:ri,controlHeight:Ra,fontSize:Sg,lineHeight:Jg,borderRadius:j0,buttonPaddingHorizontal:Wo,iconCls:Mo,buttonPaddingVertical:qr}=Kr,On=`${ri}-icon-only`;return[{[`${fr}`]:{fontSize:Sg,lineHeight:Jg,height:Ra,padding:`${(0,Mt.bf)(qr)} ${(0,Mt.bf)(Wo)}`,borderRadius:j0,[`&${On}`]:{width:Ra,paddingInlineStart:0,paddingInlineEnd:0,[`&${ri}-round`]:{width:"auto"},[Mo]:{fontSize:Kr.buttonIconOnlyFontSize}},[`&${ri}-loading`]:{opacity:Kr.opacityLoading,cursor:"default"},[`${ri}-loading-icon`]:{transition:`width ${Kr.motionDurationSlow} ${Kr.motionEaseInOut}, opacity ${Kr.motionDurationSlow} ${Kr.motionEaseInOut}`}}},{[`${ri}${ri}-circle${fr}`]:oi(Kr)},{[`${ri}${ri}-round${fr}`]:Pa(Kr)}]},iv=Kr=>{const fr=(0,Rt.TS)(Kr,{fontSize:Kr.contentFontSize,lineHeight:Kr.contentLineHeight});return G0(fr,Kr.componentCls)},u0=Kr=>{const fr=(0,Rt.TS)(Kr,{controlHeight:Kr.controlHeightSM,fontSize:Kr.contentFontSizeSM,lineHeight:Kr.contentLineHeightSM,padding:Kr.paddingXS,buttonPaddingHorizontal:Kr.paddingInlineSM,buttonPaddingVertical:Kr.paddingBlockSM,borderRadius:Kr.borderRadiusSM,buttonIconOnlyFontSize:Kr.onlyIconSizeSM});return G0(fr,`${Kr.componentCls}-sm`)},B1=Kr=>{const fr=(0,Rt.TS)(Kr,{controlHeight:Kr.controlHeightLG,fontSize:Kr.contentFontSizeLG,lineHeight:Kr.contentLineHeightLG,buttonPaddingHorizontal:Kr.paddingInlineLG,buttonPaddingVertical:Kr.paddingBlockLG,borderRadius:Kr.borderRadiusLG,buttonIconOnlyFontSize:Kr.onlyIconSizeLG});return G0(fr,`${Kr.componentCls}-lg`)},Dg=Kr=>{const{componentCls:fr}=Kr;return{[fr]:{[`&${fr}-block`]:{width:"100%"}}}};var zo=(0,on.I$)("Button",Kr=>{const fr=gt(Kr);return[Ht(fr),iv(fr),u0(fr),B1(fr),Dg(fr),k0(fr),Ca(fr)]},Zr,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),mu=l(99109);function Ag(Kr,fr){return{[`&-item:not(${fr}-last-item)`]:{marginBottom:Kr.calc(Kr.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function c0(Kr,fr){return{[`&-item:not(${fr}-first-item):not(${fr}-last-item)`]:{borderRadius:0},[`&-item${fr}-first-item:not(${fr}-last-item)`]:{[`&, &${Kr}-sm, &${Kr}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${fr}-last-item:not(${fr}-first-item)`]:{[`&, &${Kr}-sm, &${Kr}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function L0(Kr){const fr=`${Kr.componentCls}-compact-vertical`;return{[fr]:Object.assign(Object.assign({},Ag(Kr,fr)),c0(Kr.componentCls,fr))}}const $0=Kr=>{const{componentCls:fr,calc:ri}=Kr;return{[fr]:{[`&-compact-item${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:ri(Kr.lineWidth).mul(-1).equal(),insetInlineStart:ri(Kr.lineWidth).mul(-1).equal(),display:"inline-block",width:Kr.lineWidth,height:`calc(100% + ${(0,Mt.bf)(Kr.lineWidth)} * 2)`,backgroundColor:Kr.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${fr}-primary`]:{[`&:not([disabled]) + ${fr}-compact-vertical-item${fr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:ri(Kr.lineWidth).mul(-1).equal(),insetInlineStart:ri(Kr.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,Mt.bf)(Kr.lineWidth)} * 2)`,height:Kr.lineWidth,backgroundColor:Kr.colorPrimaryHover,content:'""'}}}}}}};var cv=(0,on.bk)(["Button","compact"],Kr=>{const fr=gt(Kr);return[(0,mu.c)(fr),L0(fr),$0(fr)]},Zr),Gg=function(Kr,fr){var ri={};for(var Ra in Kr)Object.prototype.hasOwnProperty.call(Kr,Ra)&&fr.indexOf(Ra)<0&&(ri[Ra]=Kr[Ra]);if(Kr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sg=0,Ra=Object.getOwnPropertySymbols(Kr);Sg{var ri,Ra;const{loading:Sg=!1,prefixCls:Jg,type:j0="default",danger:Wo,shape:Mo="default",size:qr,styles:On,disabled:rn,className:ui,rootClassName:ya,children:gd,icon:Su,ghost:xu=!1,block:xa=!1,htmlType:Td="button",classNames:jg,style:Wa={}}=Kr,tv=Gg(Kr,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Bs,autoInsertSpaceInButton:Sa,direction:$a,button:Bd}=(0,u.useContext)(a.E_),Bg=Bs("btn",Jg),[Og,g0,qg]=zo(Bg),Xg=(0,u.useContext)(S.Z),A0=rn!=null?rn:Xg,nv=(0,u.useContext)(Ie),t0=(0,u.useMemo)(()=>uu(Sg),[Sg]),[n0,u1]=(0,u.useState)(t0.loading),[Eg,a1]=(0,u.useState)(!1),Hg=(0,u.createRef)(),Gd=(0,y.sQ)(fr,Hg),h0=u.Children.count(gd)===1&&!Su&&!(0,rt.Te)(j0);(0,u.useEffect)(()=>{let G1=null;t0.delay>0?G1=setTimeout(()=>{G1=null,u1(!0)},t0.delay):u1(t0.loading);function xy(){G1&&(clearTimeout(G1),G1=null)}return xy},[t0]),(0,u.useEffect)(()=>{if(!Gd||!Gd.current||Sa===!1)return;const G1=Gd.current.textContent;h0&&(0,rt.aG)(G1)?Eg||a1(!0):Eg&&a1(!1)},[Gd]);const lv=G1=>{const{onClick:xy}=Kr;if(n0||A0){G1.preventDefault();return}xy==null||xy(G1)},su=Sa!==!1,{compactSize:hu,compactItemClassnames:ev}=(0,N.ri)(Bg,$a),sv={large:"lg",small:"sm",middle:void 0},yv=(0,I.Z)(G1=>{var xy,Dy;return(Dy=(xy=qr!=null?qr:hu)!==null&&xy!==void 0?xy:nv)!==null&&Dy!==void 0?Dy:G1}),$v=yv&&sv[yv]||"",E0=n0?"loading":Su,E1=(0,x.Z)(tv,["navigate"]),$1=b()(Bg,g0,qg,{[`${Bg}-${Mo}`]:Mo!=="default"&&Mo,[`${Bg}-${j0}`]:j0,[`${Bg}-${$v}`]:$v,[`${Bg}-icon-only`]:!gd&&gd!==0&&!!E0,[`${Bg}-background-ghost`]:xu&&!(0,rt.Te)(j0),[`${Bg}-loading`]:n0,[`${Bg}-two-chinese-chars`]:Eg&&su&&!n0,[`${Bg}-block`]:xa,[`${Bg}-dangerous`]:!!Wo,[`${Bg}-rtl`]:$a==="rtl"},ev,ui,ya,Bd==null?void 0:Bd.className),l0=Object.assign(Object.assign({},Bd==null?void 0:Bd.style),Wa),z0=b()(jg==null?void 0:jg.icon,(ri=Bd==null?void 0:Bd.classNames)===null||ri===void 0?void 0:ri.icon),W0=Object.assign(Object.assign({},(On==null?void 0:On.icon)||{}),((Ra=Bd==null?void 0:Bd.styles)===null||Ra===void 0?void 0:Ra.icon)||{}),Rv=Su&&!n0?u.createElement(Ot,{prefixCls:Bg,className:z0,style:W0},Su):u.createElement(_n,{existIcon:!!Su,prefixCls:Bg,loading:!!n0}),R0=gd||gd===0?(0,rt.hU)(gd,h0&&su):null;if(E1.href!==void 0)return Og(u.createElement("a",Object.assign({},E1,{className:b()($1,{[`${Bg}-disabled`]:A0}),href:A0?void 0:E1.href,style:l0,onClick:lv,ref:Gd,tabIndex:A0?-1:0}),Rv,R0));let gv=u.createElement("button",Object.assign({},tv,{type:Td,className:$1,style:l0,onClick:lv,disabled:A0,ref:Gd}),Rv,R0,!!ev&&u.createElement(cv,{key:"compact",prefixCls:Bg}));return(0,rt.Te)(j0)||(gv=u.createElement(w.Z,{component:"Button",disabled:!!n0},gv)),Og(gv)},Ia=(0,u.forwardRef)(Gs);Ia.Group=At,Ia.__ANT_BUTTON=!0;var lu=Ia,_h=lu},18398:function(c,g,l){"use strict";l.d(g,{Z:function(){return su}});var u=l(49397),D=l(77617),b=l(92310),x=l.n(b),y=l(79384),w=l(54131),a=l(35372),S=l(56348),I=l(51409),N=l(1081),ie=l(33890),ze=l(89308),Ie=D.createContext(null),ct=Ie,At=l(13255),rt=l(16514),It="__rc_cascader_search_mark__",Ot=function(ev,sv,yv){var $v=yv.label;return sv.some(function(E0){return String(E0[$v]).toLowerCase().includes(ev.toLowerCase())})},wn=function(ev,sv,yv,$v){return sv.map(function(E0){return E0[$v.label]}).join(" / ")},Hs=function(hu,ev,sv,yv,$v,E0){var E1=$v.filter,$1=E1===void 0?Ot:E1,l0=$v.render,z0=l0===void 0?wn:l0,W0=$v.limit,Rv=W0===void 0?50:W0,R0=$v.sort;return D.useMemo(function(){var gv=[];if(!hu)return[];function G1(xy,Dy){var H1=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;xy.forEach(function(xd){if(!(!R0&&Rv!==!1&&Rv>0&&gv.length>=Rv)){var Yg=[].concat((0,u.Z)(Dy),[xd]),r0=xd[sv.children],No=H1||xd.disabled;if((!r0||r0.length===0||E0)&&$1(hu,Yg,{label:sv.label})){var qt;gv.push((0,w.Z)((0,w.Z)({},xd),{},(qt={disabled:No},(0,rt.Z)(qt,sv.label,z0(hu,Yg,yv,sv)),(0,rt.Z)(qt,It,Yg),(0,rt.Z)(qt,sv.children,void 0),qt)))}r0&&G1(xd[sv.children],Yg,No)}})}return G1(ev,[]),R0&&gv.sort(function(xy,Dy){return R0(xy[It],Dy[It],hu,sv)}),Rv!==!1&&Rv>0?gv.slice(0,Rv):gv},[hu,ev,sv,yv,z0,E0,$1,R0,Rv])},jr="__RC_CASCADER_SPLIT__",Jr="SHOW_PARENT",Yn="SHOW_CHILD";function Lt(hu){return hu.join(jr)}function _n(hu){return hu.map(Lt)}function Mt(hu){return hu.split(jr)}function Bt(hu){var ev=hu||{},sv=ev.label,yv=ev.value,$v=ev.children,E0=yv||"value";return{label:sv||"label",value:E0,key:E0,children:$v||"children"}}function Rt(hu,ev){var sv,yv;return(sv=hu.isLeaf)!==null&&sv!==void 0?sv:!((yv=hu[ev.children])!==null&&yv!==void 0&&yv.length)}function on(hu){var ev=hu.parentElement;if(ev){var sv=hu.offsetTop-ev.offsetTop;sv-ev.scrollTop<0?ev.scrollTo({top:sv}):sv+hu.offsetHeight-ev.scrollTop>ev.offsetHeight&&ev.scrollTo({top:sv+hu.offsetHeight-ev.offsetHeight})}}function Hr(hu,ev){return hu.map(function(sv){var yv;return(yv=sv[It])===null||yv===void 0?void 0:yv.map(function($v){return $v[ev.value]})})}function vn(hu){return Array.isArray(hu)&&Array.isArray(hu[0])}function Ca(hu){return hu?vn(hu)?hu:(hu.length===0?[]:[hu]).map(function(ev){return Array.isArray(ev)?ev:[ev]}):[]}function ai(hu,ev,sv){var yv=new Set(hu),$v=ev();return hu.filter(function(E0){var E1=$v[E0],$1=E1?E1.parent:null,l0=E1?E1.children:null;return E1&&E1.node.disabled?!0:sv===Yn?!(l0&&l0.some(function(z0){return z0.key&&yv.has(z0.key)})):!($1&&!$1.node.disabled&&yv.has($1.key))})}function gt(hu,ev,sv){for(var yv=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,$v=ev,E0=[],E1=function(){var z0,W0,Rv,R0=hu[$1],gv=(z0=$v)===null||z0===void 0?void 0:z0.findIndex(function(xy){var Dy=xy[sv.value];return yv?String(Dy)===String(R0):Dy===R0}),G1=gv!==-1?(W0=$v)===null||W0===void 0?void 0:W0[gv]:null;E0.push({value:(Rv=G1==null?void 0:G1[sv.value])!==null&&Rv!==void 0?Rv:R0,index:gv,option:G1}),$v=G1==null?void 0:G1[sv.children]},$1=0;$11){var Sr=G1.slice(0,-1);xd(Sr)}else z0(!1)},No=function(){var Sr,si=((Sr=Dy[xy])===null||Sr===void 0?void 0:Sr[sv.children])||[],Rs=si.find(function(bu){return!bu.disabled});if(Rs){var wa=[].concat((0,u.Z)(G1),[Rs[sv.value]]);xd(wa)}};D.useImperativeHandle(hu,function(){return{onKeyDown:function(Sr){var si=Sr.which;switch(si){case G0.Z.UP:case G0.Z.DOWN:{var Rs=0;si===G0.Z.UP?Rs=-1:si===G0.Z.DOWN&&(Rs=1),Rs!==0&&Yg(Rs);break}case G0.Z.LEFT:{if(l0)break;Rv?No():r0();break}case G0.Z.RIGHT:{if(l0)break;Rv?r0():No();break}case G0.Z.BACKSPACE:{l0||r0();break}case G0.Z.ENTER:{if(G1.length){var wa=Dy[xy],bu=(wa==null?void 0:wa[It])||[];bu.length?E0(bu.map(function(s0){return s0[sv.value]}),bu[bu.length-1]):E0(G1,Dy[xy])}break}case G0.Z.ESC:z0(!1),W0&&Sr.stopPropagation()}},onKeyUp:function(){}}})},u0=D.forwardRef(function(hu,ev){var sv,yv,$v,E0=hu.prefixCls,E1=hu.multiple,$1=hu.searchValue,l0=hu.toggleOpen,z0=hu.notFoundContent,W0=hu.direction,Rv=hu.open,R0=D.useRef(),gv=W0==="rtl",G1=D.useContext(ct),xy=G1.options,Dy=G1.values,H1=G1.halfValues,xd=G1.fieldNames,Yg=G1.changeOnSelect,r0=G1.onSelect,No=G1.searchOptions,qt=G1.dropdownPrefixCls,Sr=G1.loadData,si=G1.expandTrigger,Rs=qt||E0,wa=D.useState([]),bu=(0,a.Z)(wa,2),s0=bu[0],In=bu[1],ga=function(Ov){if(!(!Sr||$1)){var v1=gt(Ov,xy,xd),K1=v1.map(function(t2){var I2=t2.option;return I2}),sx=K1[K1.length-1];if(sx&&!Rt(sx,xd)){var Kx=Lt(Ov);In(function(t2){return[].concat((0,u.Z)(t2),[Kx])}),Sr(K1)}}};D.useEffect(function(){s0.length&&s0.forEach(function(Iv){var Ov=Mt(Iv),v1=gt(Ov,xy,xd,!0).map(function(sx){var Kx=sx.option;return Kx}),K1=v1[v1.length-1];(!K1||K1[xd.children]||Rt(K1,xd))&&In(function(sx){return sx.filter(function(Kx){return Kx!==Iv})})})},[xy,s0,xd]);var Ga=D.useMemo(function(){return new Set(_n(Dy))},[Dy]),Lu=D.useMemo(function(){return new Set(_n(H1))},[H1]),dv=k0(E1,Rv),Cv=(0,a.Z)(dv,2),Wv=Cv[0],c1=Cv[1],P1=function(Ov){c1(Ov),ga(Ov)},Z1=function(Ov){var v1=Ov.disabled,K1=Rt(Ov,xd);return!v1&&(K1||Yg||E1)},sy=function(Ov,v1){var K1=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;r0(Ov),!E1&&(v1||Yg&&(si==="hover"||K1))&&l0(!1)},wy=D.useMemo(function(){return $1?No:xy},[$1,No,xy]),zy=D.useMemo(function(){for(var Iv=[{options:wy}],Ov=wy,v1=Hr(Ov,xd),K1=function(){var t2=Wv[sx],I2=Ov.find(function(J_,ax){return(v1[ax]?Lt(v1[ax]):J_[xd.value])===t2}),D2=I2==null?void 0:I2[xd.children];if(!(D2!=null&&D2.length))return 1;Ov=D2,Iv.push({options:D2})},sx=0;sx":H1,Yg=sv.loadingIcon,r0=sv.direction,No=sv.notFoundContent,qt=No===void 0?"Not Found":No,Sr=!!l0,si=(0,mu.C8)(z0,{value:W0,postState:Ca}),Rs=(0,a.Z)(si,2),wa=Rs[0],bu=Rs[1],s0=D.useMemo(function(){return Bt(Rv)},[JSON.stringify(Rv)]),In=Pa(s0,$1),ga=(0,a.Z)(In,3),Ga=ga[0],Lu=ga[1],dv=ga[2],Cv=Ht(Ga,s0),Wv=H0(Sr,wa,Lu,dv,Cv),c1=(0,a.Z)(Wv,3),P1=c1[0],Z1=c1[1],sy=c1[2],wy=(0,mu.zX)(function(h1){if(bu(h1),gv){var _v=Ca(h1),Iv=_v.map(function(K1){return gt(K1,Ga,s0).map(function(sx){return sx.option})}),Ov=Sr?_v:_v[0],v1=Sr?Iv:Iv[0];gv(Ov,v1)}}),zy=e0(Sr,wy,P1,Z1,sy,Lu,dv,G1),hv=(0,mu.zX)(function(h1){zy(h1)}),Qv=D.useMemo(function(){return{options:Ga,fieldNames:s0,values:P1,halfValues:Z1,changeOnSelect:R0,onSelect:hv,checkable:l0,searchOptions:[],dropdownPrefixCls:null,loadData:xy,expandTrigger:Dy,expandIcon:xd,loadingIcon:Yg,dropdownMenuColumnStyle:null}},[Ga,s0,P1,Z1,R0,hv,l0,xy,Dy,xd,Yg]),Y1="".concat($v,"-panel"),M_=!Ga.length;return D.createElement(ct.Provider,{value:Qv},D.createElement("div",{className:x()(Y1,(ev={},(0,rt.Z)(ev,"".concat(Y1,"-rtl"),r0==="rtl"),(0,rt.Z)(ev,"".concat(Y1,"-empty"),M_),ev),E1),style:E0},M_?qt:D.createElement(B1,{prefixCls:$v,searchValue:null,multiple:Sr,toggleOpen:Ag,open:!0,direction:r0})))}function L0(hu){var ev=hu.onPopupVisibleChange,sv=hu.popupVisible,yv=hu.popupClassName,$v=hu.popupPlacement;warning(!ev,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(sv===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(yv===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning($v===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function $0(hu,ev){if(hu){var sv=function yv($v){for(var E0=0;E0<$v.length;E0++){var E1=$v[E0];if(E1[ev==null?void 0:ev.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(E1[ev==null?void 0:ev.children])&&yv(E1[ev==null?void 0:ev.children]))return!0}};sv(hu)}}var cv=null,Gg=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"],uu=D.forwardRef(function(hu,ev){var sv=hu.id,yv=hu.prefixCls,$v=yv===void 0?"rc-cascader":yv,E0=hu.fieldNames,E1=hu.defaultValue,$1=hu.value,l0=hu.changeOnSelect,z0=hu.onChange,W0=hu.displayRender,Rv=hu.checkable,R0=hu.autoClearSearchValue,gv=R0===void 0?!0:R0,G1=hu.searchValue,xy=hu.onSearch,Dy=hu.showSearch,H1=hu.expandTrigger,xd=hu.options,Yg=hu.dropdownPrefixCls,r0=hu.loadData,No=hu.popupVisible,qt=hu.open,Sr=hu.popupClassName,si=hu.dropdownClassName,Rs=hu.dropdownMenuColumnStyle,wa=hu.dropdownStyle,bu=hu.popupPlacement,s0=hu.placement,In=hu.onDropdownVisibleChange,ga=hu.onPopupVisibleChange,Ga=hu.expandIcon,Lu=Ga===void 0?">":Ga,dv=hu.loadingIcon,Cv=hu.children,Wv=hu.dropdownMatchSelectWidth,c1=Wv===void 0?!1:Wv,P1=hu.showCheckedStrategy,Z1=P1===void 0?Jr:P1,sy=(0,S.Z)(hu,Gg),wy=(0,N.ZP)(sv),zy=!!Rv,hv=(0,ze.Z)(E1,{value:$1,postState:Ca}),Qv=(0,a.Z)(hv,2),Y1=Qv[0],M_=Qv[1],h1=D.useMemo(function(){return Bt(E0)},[JSON.stringify(E0)]),_v=Pa(h1,xd),Iv=(0,a.Z)(_v,3),Ov=Iv[0],v1=Iv[1],K1=Iv[2],sx=(0,ze.Z)("",{value:G1,postState:function(Na){return Na||""}}),Kx=(0,a.Z)(sx,2),t2=Kx[0],I2=Kx[1],D2=function(Na,_x){I2(Na),_x.source!=="blur"&&xy&&xy(Na)},J_=Pg(Dy),ax=(0,a.Z)(J_,2),rx=ax[0],ov=ax[1],rv=Hs(t2,Ov,h1,Yg||$v,ov,l0),yd=Ht(Ov,h1),kg=H0(zy,Y1,v1,K1,yd),Vg=(0,a.Z)(kg,3),wv=Vg[0],b1=Vg[1],I1=Vg[2],k1=D.useMemo(function(){var gx=_n(wv),Na=ai(gx,v1,Z1);return[].concat((0,u.Z)(I1),(0,u.Z)(K1(Na)))},[wv,v1,K1,I1,Z1]),S1=Zr(k1,Ov,h1,zy,W0),Ay=(0,ie.Z)(function(gx){if(M_(gx),z0){var Na=Ca(gx),_x=Na.map(function(N2){return gt(N2,Ov,h1).map(function(j2){return j2.option})}),c2=zy?Na:Na[0],b2=zy?_x:_x[0];z0(c2,b2)}}),U1=e0(zy,Ay,wv,b1,I1,v1,K1,Z1),E_=(0,ie.Z)(function(gx){(!zy||gv)&&I2(""),U1(gx)}),ty=function(Na,_x){if(_x.type==="clear"){Ay([]);return}var c2=_x.values[0],b2=c2.valueCells;E_(b2)},h_=qt!==void 0?qt:No,g_=si||Sr,ox=s0||bu,$_=function(Na){In==null||In(Na),ga==null||ga(Na)},K_=D.useMemo(function(){return{options:Ov,fieldNames:h1,values:wv,halfValues:b1,changeOnSelect:l0,onSelect:E_,checkable:Rv,searchOptions:rv,dropdownPrefixCls:Yg,loadData:r0,expandTrigger:H1,expandIcon:Lu,loadingIcon:dv,dropdownMenuColumnStyle:Rs}},[Ov,h1,wv,b1,l0,E_,Rv,rv,Yg,r0,H1,Lu,dv,Rs]),k_=!(t2?rv:Ov).length,A_=t2&&ov.matchInputWidth||k_?{}:{minWidth:"auto"};return D.createElement(ct.Provider,{value:K_},D.createElement(I.Ac,(0,y.Z)({},sy,{ref:ev,id:wy,prefixCls:$v,autoClearSearchValue:gv,dropdownMatchSelectWidth:c1,dropdownStyle:(0,w.Z)((0,w.Z)({},A_),wa),displayValues:S1,onDisplayValuesChange:ty,mode:zy?"multiple":void 0,searchValue:t2,onSearch:D2,showSearch:rx,OptionList:zo,emptyOptions:k_,open:h_,dropdownClassName:g_,placement:ox,onDropdownVisibleChange:$_,getRawInputElement:function(){return Cv}})))});uu.SHOW_PARENT=Jr,uu.SHOW_CHILD=Yn,uu.Panel=c0;var Gs=uu,Ia=Gs,lu=l(41123),_h=l(40870),Kr=l(12149),fr=l(62625),ri=l(24902),Ra=l(58798),Sg=l(70990),Jg=l(57801),j0=l(26504),Wo=l(20804),Mo=l(51623),qr=l(90426),On=l(21028),rn=l(22785),ui=l(14275),ya=l(60621),gd=l(55449);function Su(hu,ev){const{getPrefixCls:sv,direction:yv,renderEmpty:$v}=D.useContext(Ra.E_),E0=ev||yv,E1=sv("select",hu),$1=sv("cascader",hu);return[E1,$1,E0,$v]}function xu(hu,ev){return D.useMemo(()=>ev?D.createElement("span",{className:`${hu}-checkbox-inner`}):!1,[ev])}var xa=l(39820),Td=l(20555),jg=l(24545);function Wa(hu,ev,sv){let yv=sv;sv||(yv=ev?D.createElement(xa.Z,null):D.createElement(jg.Z,null));const $v=D.createElement("span",{className:`${hu}-menu-item-loading-icon`},D.createElement(Td.Z,{spin:!0}));return[yv,$v]}var tv=l(99109),Bs=l(79263),Sa=l(78600),$a=l(75906),Bd=l(91110),Og=hu=>{const{prefixCls:ev,componentCls:sv}=hu,yv=`${sv}-menu-item`,$v=` - &${yv}-expand ${yv}-expand-icon, - ${yv}-loading-icon -`;return[(0,$a.C2)(`${ev}-checkbox`,hu),{[sv]:{"&-checkbox":{top:0,marginInlineEnd:hu.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${sv}-menu-empty`]:{[`${sv}-menu`]:{width:"100%",height:"auto",[yv]:{color:hu.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:hu.controlItemWidth,height:hu.dropdownHeight,margin:0,padding:hu.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Sa.bf)(hu.lineWidth)} ${hu.lineType} ${hu.colorSplit}`},"&-item":Object.assign(Object.assign({},Bd.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:hu.optionPadding,lineHeight:hu.lineHeight,cursor:"pointer",transition:`all ${hu.motionDurationMid}`,borderRadius:hu.borderRadiusSM,"&:hover":{background:hu.controlItemBgHover},"&-disabled":{color:hu.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[$v]:{color:hu.colorTextDisabled}},[`&-active:not(${yv}-disabled)`]:{["&, &:hover"]:{fontWeight:hu.optionSelectedFontWeight,backgroundColor:hu.optionSelectedBg}},"&-content":{flex:"auto"},[$v]:{marginInlineStart:hu.paddingXXS,color:hu.colorTextDescription,fontSize:hu.fontSizeIcon},"&-keyword":{color:hu.colorHighlight}})}}}]};const g0=hu=>{const{componentCls:ev,antCls:sv}=hu;return[{[ev]:{width:hu.controlWidth}},{[`${ev}-dropdown`]:[{[`&${sv}-select-dropdown`]:{padding:0}},Og(hu)]},{[`${ev}-dropdown-rtl`]:{direction:"rtl"}},(0,tv.c)(hu)]},qg=hu=>{const ev=Math.round((hu.controlHeight-hu.fontSize*hu.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:hu.controlItemBgActive,optionSelectedFontWeight:hu.fontWeightStrong,optionPadding:`${ev}px ${hu.paddingSM}px`,menuPadding:hu.paddingXXS}};var Xg=(0,Bs.I$)("Cascader",hu=>[g0(hu)],qg);const A0=hu=>{const{componentCls:ev}=hu;return{[`${ev}-panel`]:[Og(hu),{display:"inline-flex",border:`${(0,Sa.bf)(hu.lineWidth)} ${hu.lineType} ${hu.colorSplit}`,borderRadius:hu.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${ev}-menus`]:{alignItems:"stretch"},[`${ev}-menu`]:{height:"auto"},"&-empty":{padding:hu.paddingXXS}}]}};var nv=(0,Bs.ZP)(["Cascader","Panel"],hu=>A0(hu),qg),n0=hu=>{const{prefixCls:ev,className:sv,multiple:yv,rootClassName:$v,notFoundContent:E0,direction:E1,expandIcon:$1}=hu,[l0,z0,W0,Rv]=Su(ev,E1),R0=(0,j0.Z)(z0),[gv,G1,xy]=Xg(z0,R0);nv(z0);const Dy=W0==="rtl",[H1,xd]=Wa(l0,Dy,$1),Yg=E0||(Rv==null?void 0:Rv("Cascader"))||D.createElement(Sg.Z,{componentName:"Cascader"}),r0=xu(z0,yv);return gv(D.createElement(c0,Object.assign({},hu,{checkable:r0,prefixCls:z0,className:x()(sv,G1,$v,xy,R0),notFoundContent:Yg,direction:W0,expandIcon:H1,loadingIcon:xd})))},u1=function(hu,ev){var sv={};for(var yv in hu)Object.prototype.hasOwnProperty.call(hu,yv)&&ev.indexOf(yv)<0&&(sv[yv]=hu[yv]);if(hu!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $v=0,yv=Object.getOwnPropertySymbols(hu);$vl0===0?[$1]:[].concat((0,u.Z)(E1),[ev,$1]),[]),$v=[];let E0=0;return yv.forEach((E1,$1)=>{const l0=E0+E1.length;let z0=hu.slice(E0,l0);E0=l0,$1%2===1&&(z0=D.createElement("span",{className:`${sv}-menu-item-keyword`,key:`separator-${$1}`},z0)),$v.push(z0)}),$v}const Gd=(hu,ev,sv,yv)=>{const $v=[],E0=hu.toLowerCase();return ev.forEach((E1,$1)=>{$1!==0&&$v.push(" / ");let l0=E1[yv.label];const z0=typeof l0;(z0==="string"||z0==="number")&&(l0=Hg(String(l0),E0,sv)),$v.push(l0)}),$v},h0=D.forwardRef((hu,ev)=>{var sv;const{prefixCls:yv,size:$v,disabled:E0,className:E1,rootClassName:$1,multiple:l0,bordered:z0=!0,transitionName:W0,choiceTransitionName:Rv="",popupClassName:R0,dropdownClassName:gv,expandIcon:G1,placement:xy,showSearch:Dy,allowClear:H1=!0,notFoundContent:xd,direction:Yg,getPopupContainer:r0,status:No,showArrow:qt,builtinPlacements:Sr,style:si,variant:Rs}=hu,wa=u1(hu,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),bu=(0,lu.Z)(wa,["suffixIcon"]),{getPopupContainer:s0,getPrefixCls:In,popupOverflow:ga,cascader:Ga}=D.useContext(Ra.E_),{status:Lu,hasFeedback:dv,isFormItemInput:Cv,feedbackIcon:Wv}=D.useContext(Mo.aM),c1=(0,ri.F)(Lu,No),[P1,Z1,sy,wy]=Su(yv,Yg),zy=sy==="rtl",hv=In(),Qv=(0,j0.Z)(P1),[Y1,M_,h1]=(0,rn.Z)(P1,Qv),_v=(0,j0.Z)(Z1),[Iv]=Xg(Z1,_v),{compactSize:Ov,compactItemClassnames:v1}=(0,gd.ri)(P1,Yg),[K1,sx]=(0,qr.Z)(Rs,z0),Kx=xd||(wy==null?void 0:wy("Cascader"))||D.createElement(Sg.Z,{componentName:"Cascader"}),t2=x()(R0||gv,`${Z1}-dropdown`,{[`${Z1}-dropdown-rtl`]:sy==="rtl"},$1,Qv,_v,M_,h1),I2=D.useMemo(()=>{if(!Dy)return Dy;let Ay={render:Gd};return typeof Dy=="object"&&(Ay=Object.assign(Object.assign({},Ay),Dy)),Ay},[Dy]),D2=(0,Wo.Z)(Ay=>{var U1;return(U1=$v!=null?$v:Ov)!==null&&U1!==void 0?U1:Ay}),J_=D.useContext(Jg.Z),ax=E0!=null?E0:J_,[rx,ov]=Wa(P1,zy,G1),rv=xu(Z1,l0),yd=(0,ya.Z)(hu.suffixIcon,qt),{suffixIcon:kg,removeIcon:Vg,clearIcon:wv}=(0,ui.Z)(Object.assign(Object.assign({},hu),{hasFeedback:dv,feedbackIcon:Wv,showSuffixIcon:yd,multiple:l0,prefixCls:P1,componentName:"Cascader"})),b1=D.useMemo(()=>xy!==void 0?xy:zy?"bottomRight":"bottomLeft",[xy,zy]),I1=H1===!0?{clearIcon:wv}:H1,[k1]=(0,_h.Cn)("SelectLike",(sv=bu.dropdownStyle)===null||sv===void 0?void 0:sv.zIndex),S1=D.createElement(Ia,Object.assign({prefixCls:P1,className:x()(!yv&&Z1,{[`${P1}-lg`]:D2==="large",[`${P1}-sm`]:D2==="small",[`${P1}-rtl`]:zy,[`${P1}-${K1}`]:sx,[`${P1}-in-form-item`]:Cv},(0,ri.Z)(P1,c1,dv),v1,Ga==null?void 0:Ga.className,E1,$1,Qv,_v,M_,h1),disabled:ax,style:Object.assign(Object.assign({},Ga==null?void 0:Ga.style),si)},bu,{builtinPlacements:(0,On.Z)(Sr,ga),direction:sy,placement:b1,notFoundContent:Kx,allowClear:I1,showSearch:I2,expandIcon:rx,suffixIcon:kg,removeIcon:Vg,loadingIcon:ov,checkable:rv,dropdownClassName:t2,dropdownPrefixCls:yv||Z1,dropdownStyle:Object.assign(Object.assign({},bu.dropdownStyle),{zIndex:k1}),choiceTransitionName:(0,Kr.m)(hv,"",Rv),transitionName:(0,Kr.m)(hv,"slide-up",W0),getPopupContainer:r0||s0,ref:ev}));return Iv(Y1(S1))}),lv=(0,fr.Z)(h0);h0.SHOW_PARENT=a1,h0.SHOW_CHILD=Eg,h0.Panel=n0,h0._InternalPanelDoNotUseOrYouWillBeFired=lv;var su=h0},75906:function(c,g,l){"use strict";l.d(g,{C2:function(){return w}});var u=l(78600),D=l(91110),b=l(90882),x=l(79263);const y=a=>{const{checkboxCls:S}=a,I=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,D.Wf)(a)),{display:"inline-flex",flexWrap:"wrap",columnGap:a.marginXS,[`> ${a.antCls}-row`]:{flex:1}}),[I]:Object.assign(Object.assign({},(0,D.Wf)(a)),{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}}}),[S]:Object.assign(Object.assign({},(0,D.Wf)(a)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:a.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,D.oN)(a))},[`${S}-inner`]:{boxSizing:"border-box",display:"block",width:a.checkboxSize,height:a.checkboxSize,direction:"ltr",backgroundColor:a.colorBgContainer,border:`${(0,u.bf)(a.lineWidth)} ${a.lineType} ${a.colorBorder}`,borderRadius:a.borderRadiusSM,borderCollapse:"separate",transition:`all ${a.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:a.calc(a.checkboxSize).div(14).mul(5).equal(),height:a.calc(a.checkboxSize).div(14).mul(8).equal(),border:`${(0,u.bf)(a.lineWidthBold)} solid ${a.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${a.motionDurationFast} ${a.motionEaseInBack}, opacity ${a.motionDurationFast}`}},"& + span":{paddingInlineStart:a.paddingXS,paddingInlineEnd:a.paddingXS}})},{[` - ${I}:not(${I}-disabled), - ${S}:not(${S}-disabled) - `]:{[`&:hover ${S}-inner`]:{borderColor:a.colorPrimary}},[`${I}:not(${I}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:a.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:a.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:a.colorPrimary,borderColor:a.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${a.motionDurationMid} ${a.motionEaseOutBack} ${a.motionDurationFast}`}}},[` - ${I}-checked:not(${I}-disabled), - ${S}-checked:not(${S}-disabled) - `]:{[`&:hover ${S}-inner`]:{backgroundColor:a.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:a.colorBgContainer,borderColor:a.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:a.calc(a.fontSizeLG).div(2).equal(),height:a.calc(a.fontSizeLG).div(2).equal(),backgroundColor:a.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${I}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:a.colorBgContainerDisabled,borderColor:a.colorBorder,"&:after":{borderColor:a.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:a.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:a.colorTextDisabled}}}]};function w(a,S){const I=(0,b.TS)(S,{checkboxCls:`.${a}`,checkboxSize:S.controlInteractiveSize});return[y(I)]}g.ZP=(0,x.I$)("Checkbox",(a,S)=>{let{prefixCls:I}=S;return[w(I,a)]})},61611:function(c,g,l){"use strict";l.d(g,{Z:function(){return rx}});var u=l(77617),D=l(92310),b=l.n(D),x=l(89308),y=l(62625),w=l(24902),a=l(58798),S=l(57801),I=l(26504),N=l(20804),ie=l(51623),ze=l(73323),Ie=l(37114),ct=l(79384),At=l(16514),rt=l(35372),It=l(54131),Ot=l(61577),wn=l(22946),Hs=l(3711),jr=l(71038),Jr=l(56348),Yn=l(13255),Lt=l(64993),_n=["b"],Mt=["v"],Bt=function(rv){return Math.round(Number(rv||0))},Rt=function(rv){if(rv&&(0,Yn.Z)(rv)==="object"&&"h"in rv&&"b"in rv){var yd=rv,kg=yd.b,Vg=(0,Jr.Z)(yd,_n);return(0,It.Z)((0,It.Z)({},Vg),{},{v:kg})}return typeof rv=="string"&&/hsb/.test(rv)?rv.replace(/hsb/,"hsv"):rv},on=function(ov){(0,Hs.Z)(yd,ov);var rv=(0,jr.Z)(yd);function yd(kg){return(0,Ot.Z)(this,yd),rv.call(this,Rt(kg))}return(0,wn.Z)(yd,[{key:"toHsbString",value:function(){var Vg=this.toHsb(),wv=Bt(Vg.s*100),b1=Bt(Vg.b*100),I1=Bt(Vg.h),k1=Vg.a,S1="hsb(".concat(I1,", ").concat(wv,"%, ").concat(b1,"%)"),Ay="hsba(".concat(I1,", ").concat(wv,"%, ").concat(b1,"%, ").concat(k1.toFixed(k1===0?0:2),")");return k1===1?S1:Ay}},{key:"toHsb",value:function(){var Vg=this.toHsv();(0,Yn.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(Vg=this.originalInput);var wv=Vg,b1=wv.v,I1=(0,Jr.Z)(wv,Mt);return(0,It.Z)((0,It.Z)({},I1),{},{b:Vg.v})}}]),yd}(Lt.C),Hr="rc-color-picker",vn=function(rv){return rv instanceof on?rv:new on(rv)},Ca=vn("#1677ff"),ai=function(rv){var yd=rv.offset,kg=rv.targetRef,Vg=rv.containerRef,wv=rv.color,b1=rv.type,I1=Vg.current.getBoundingClientRect(),k1=I1.width,S1=I1.height,Ay=kg.current.getBoundingClientRect(),U1=Ay.width,E_=Ay.height,ty=U1/2,h_=E_/2,g_=(yd.x+ty)/k1,ox=1-(yd.y+h_)/S1,$_=wv.toHsb(),K_=g_,k_=(yd.x+ty)/k1*360;if(b1)switch(b1){case"hue":return vn((0,It.Z)((0,It.Z)({},$_),{},{h:k_<=0?0:k_}));case"alpha":return vn((0,It.Z)((0,It.Z)({},$_),{},{a:K_<=0?0:K_}))}return vn({h:$_.h,s:g_<=0?0:g_,b:ox>=1?1:ox,a:$_.a})},gt=function(rv,yd,kg,Vg){var wv=rv.current.getBoundingClientRect(),b1=wv.width,I1=wv.height,k1=yd.current.getBoundingClientRect(),S1=k1.width,Ay=k1.height,U1=S1/2,E_=Ay/2,ty=kg.toHsb();if(!(S1===0&&Ay===0||S1!==Ay)){if(Vg)switch(Vg){case"hue":return{x:ty.h/360*b1-U1,y:-E_/3};case"alpha":return{x:ty.a/1*b1-U1,y:-E_/3}}return{x:ty.s*b1-U1,y:(1-ty.b)*I1-E_}}},Zr=function(rv){var yd=rv.color,kg=rv.prefixCls,Vg=rv.className,wv=rv.style,b1=rv.onClick,I1="".concat(kg,"-color-block");return u.createElement("div",{className:b()(I1,Vg),style:wv,onClick:b1},u.createElement("div",{className:"".concat(I1,"-inner"),style:{background:yd}}))},Ht=Zr;function Zs(ov){var rv="touches"in ov?ov.touches[0]:ov,yd=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,kg=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:rv.pageX-yd,pageY:rv.pageY-kg}}function oi(ov){var rv=ov.offset,yd=ov.targetRef,kg=ov.containerRef,Vg=ov.direction,wv=ov.onDragChange,b1=ov.onDragChangeComplete,I1=ov.calculate,k1=ov.color,S1=ov.disabledDrag,Ay=(0,u.useState)(rv||{x:0,y:0}),U1=(0,rt.Z)(Ay,2),E_=U1[0],ty=U1[1],h_=(0,u.useRef)(null),g_=(0,u.useRef)(null),ox=(0,u.useRef)({flag:!1});(0,u.useEffect)(function(){if(ox.current.flag===!1){var gx=I1==null?void 0:I1(kg);gx&&ty(gx)}},[k1,kg]),(0,u.useEffect)(function(){return function(){document.removeEventListener("mousemove",h_.current),document.removeEventListener("mouseup",g_.current),document.removeEventListener("touchmove",h_.current),document.removeEventListener("touchend",g_.current),h_.current=null,g_.current=null}},[]);var $_=function(Na){var _x=Zs(Na),c2=_x.pageX,b2=_x.pageY,N2=kg.current.getBoundingClientRect(),j2=N2.x,mC=N2.y,XC=N2.width,EC=N2.height,Pw=yd.current.getBoundingClientRect(),Aw=Pw.width,KC=Pw.height,JS=Aw/2,sS=KC/2,UC=Math.max(0,Math.min(c2-j2,XC))-JS,FS=Math.max(0,Math.min(b2-mC,EC))-sS,KS={x:UC,y:Vg==="x"?E_.y:FS};if(Aw===0&&KC===0||Aw!==KC)return!1;ty(KS),wv==null||wv(KS)},K_=function(Na){Na.preventDefault(),$_(Na)},k_=function(Na){Na.preventDefault(),ox.current.flag=!1,document.removeEventListener("mousemove",h_.current),document.removeEventListener("mouseup",g_.current),document.removeEventListener("touchmove",h_.current),document.removeEventListener("touchend",g_.current),h_.current=null,g_.current=null,b1==null||b1()},A_=function(Na){document.removeEventListener("mousemove",h_.current),document.removeEventListener("mouseup",g_.current),!S1&&($_(Na),ox.current.flag=!0,document.addEventListener("mousemove",K_),document.addEventListener("mouseup",k_),document.addEventListener("touchmove",K_),document.addEventListener("touchend",k_),h_.current=K_,g_.current=k_)};return[E_,A_]}var Pa=oi,Aa=function(rv){var yd=rv.size,kg=yd===void 0?"default":yd,Vg=rv.color,wv=rv.prefixCls;return u.createElement("div",{className:b()("".concat(wv,"-handler"),(0,At.Z)({},"".concat(wv,"-handler-sm"),kg==="small")),style:{backgroundColor:Vg}})},Pg=Aa,Ug=function(rv){var yd=rv.children,kg=rv.style,Vg=rv.prefixCls;return u.createElement("div",{className:"".concat(Vg,"-palette"),style:(0,It.Z)({position:"relative"},kg)},yd)},e0=Ug,H0=(0,u.forwardRef)(function(ov,rv){var yd=ov.children,kg=ov.offset;return u.createElement("div",{ref:rv,style:{position:"absolute",left:kg.x,top:kg.y,zIndex:1}},yd)}),X0=H0,d0=function(rv){var yd=rv.color,kg=rv.onChange,Vg=rv.prefixCls,wv=rv.onChangeComplete,b1=rv.disabled,I1=(0,u.useRef)(),k1=(0,u.useRef)(),S1=(0,u.useRef)(yd),Ay=Pa({color:yd,containerRef:I1,targetRef:k1,calculate:function(g_){return gt(g_,k1,yd)},onDragChange:function(g_){var ox=ai({offset:g_,targetRef:k1,containerRef:I1,color:yd});S1.current=ox,kg(ox)},onDragChangeComplete:function(){return wv==null?void 0:wv(S1.current)},disabledDrag:b1}),U1=(0,rt.Z)(Ay,2),E_=U1[0],ty=U1[1];return u.createElement("div",{ref:I1,className:"".concat(Vg,"-select"),onMouseDown:ty,onTouchStart:ty},u.createElement(e0,{prefixCls:Vg},u.createElement(X0,{offset:E_,ref:k1},u.createElement(Pg,{color:yd.toRgbString(),prefixCls:Vg})),u.createElement("div",{className:"".concat(Vg,"-saturation"),style:{backgroundColor:"hsl(".concat(yd.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},jv=d0,Lv=function(rv){var yd=rv.colors,kg=rv.children,Vg=rv.direction,wv=Vg===void 0?"to right":Vg,b1=rv.type,I1=rv.prefixCls,k1=(0,u.useMemo)(function(){return yd.map(function(S1,Ay){var U1=vn(S1);return b1==="alpha"&&Ay===yd.length-1&&U1.setAlpha(1),U1.toRgbString()}).join(",")},[yd,b1]);return u.createElement("div",{className:"".concat(I1,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(wv,", ").concat(k1,")")}},kg)},Je=Lv,k0=function(rv){var yd=rv.gradientColors,kg=rv.direction,Vg=rv.type,wv=Vg===void 0?"hue":Vg,b1=rv.color,I1=rv.value,k1=rv.onChange,S1=rv.onChangeComplete,Ay=rv.disabled,U1=rv.prefixCls,E_=(0,u.useRef)(),ty=(0,u.useRef)(),h_=(0,u.useRef)(b1),g_=Pa({color:b1,targetRef:ty,containerRef:E_,calculate:function(A_){return gt(A_,ty,b1,wv)},onDragChange:function(A_){var gx=ai({offset:A_,targetRef:ty,containerRef:E_,color:b1,type:wv});h_.current=gx,k1(gx)},onDragChangeComplete:function(){S1==null||S1(h_.current,wv)},direction:"x",disabledDrag:Ay}),ox=(0,rt.Z)(g_,2),$_=ox[0],K_=ox[1];return u.createElement("div",{ref:E_,className:b()("".concat(U1,"-slider"),"".concat(U1,"-slider-").concat(wv)),onMouseDown:K_,onTouchStart:K_},u.createElement(e0,{prefixCls:U1},u.createElement(X0,{offset:$_,ref:ty},u.createElement(Pg,{size:"small",color:I1,prefixCls:U1})),u.createElement(Je,{colors:yd,direction:kg,type:wv,prefixCls:U1})))},G0=k0;function iv(ov){return ov!==void 0}var u0=function(rv,yd){var kg=yd.defaultValue,Vg=yd.value,wv=(0,u.useState)(function(){var S1;return iv(Vg)?S1=Vg:iv(kg)?S1=kg:S1=rv,vn(S1)}),b1=(0,rt.Z)(wv,2),I1=b1[0],k1=b1[1];return(0,u.useEffect)(function(){Vg&&k1(vn(Vg))},[Vg]),[I1,k1]},B1=u0,Dg=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],zo=(0,u.forwardRef)(function(ov,rv){var yd=ov.value,kg=ov.defaultValue,Vg=ov.prefixCls,wv=Vg===void 0?Hr:Vg,b1=ov.onChange,I1=ov.onChangeComplete,k1=ov.className,S1=ov.style,Ay=ov.panelRender,U1=ov.disabledAlpha,E_=U1===void 0?!1:U1,ty=ov.disabled,h_=ty===void 0?!1:ty,g_=B1(Ca,{value:yd,defaultValue:kg}),ox=(0,rt.Z)(g_,2),$_=ox[0],K_=ox[1],k_=(0,u.useMemo)(function(){var c2=vn($_.toRgbString());return c2.setAlpha(1),c2.toRgbString()},[$_]),A_=b()("".concat(wv,"-panel"),k1,(0,At.Z)({},"".concat(wv,"-panel-disabled"),h_)),gx={prefixCls:wv,onChangeComplete:I1,disabled:h_},Na=function(b2,N2){yd||K_(b2),b1==null||b1(b2,N2)},_x=u.createElement(u.Fragment,null,u.createElement(jv,(0,ct.Z)({color:$_,onChange:Na},gx)),u.createElement("div",{className:"".concat(wv,"-slider-container")},u.createElement("div",{className:b()("".concat(wv,"-slider-group"),(0,At.Z)({},"".concat(wv,"-slider-group-disabled-alpha"),E_))},u.createElement(G0,(0,ct.Z)({gradientColors:Dg,color:$_,value:"hsl(".concat($_.toHsb().h,",100%, 50%)"),onChange:function(b2){return Na(b2,"hue")}},gx)),!E_&&u.createElement(G0,(0,ct.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",k_],color:$_,value:$_.toRgbString(),onChange:function(b2){return Na(b2,"alpha")}},gx))),u.createElement(Ht,{color:$_.toRgbString(),prefixCls:wv})));return u.createElement("div",{className:A_,style:S1,ref:rv},typeof Ay=="function"?Ay(_x):_x)}),mu=zo;const Ag=u.createContext({}),c0=u.createContext({}),{Provider:L0}=Ag,{Provider:$0}=c0,cv=(ov,rv)=>(ov==null?void 0:ov.replace(/[^\w/]/gi,"").slice(0,rv?8:6))||"",Gg=(ov,rv)=>ov?cv(ov,rv):"";let uu=function(){function ov(rv){(0,Ot.Z)(this,ov),this.metaColor=new on(rv),rv||this.metaColor.setAlpha(0)}return(0,wn.Z)(ov,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Gg(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),ov}();const Gs=ov=>ov instanceof uu?ov:new uu(ov),Ia=ov=>Math.round(Number(ov||0)),lu=ov=>Ia(ov.toHsb().a*100),_h=(ov,rv)=>{const yd=ov.toHsb();return yd.a=rv||1,Gs(yd)};var fr=ov=>{let{prefixCls:rv,value:yd,colorCleared:kg,onChange:Vg}=ov;const wv=()=>{if(yd&&!kg){const b1=yd.toHsb();b1.a=0;const I1=Gs(b1);Vg==null||Vg(I1)}};return u.createElement("div",{className:`${rv}-clear`,onClick:wv})},ri=l(16042),Ra;(function(ov){ov.hex="hex",ov.rgb="rgb",ov.hsb="hsb"})(Ra||(Ra={}));var Sg=l(71750),j0=ov=>{let{prefixCls:rv,min:yd=0,max:kg=100,value:Vg,onChange:wv,className:b1,formatter:I1}=ov;const k1=`${rv}-steppers`,[S1,Ay]=(0,u.useState)(Vg);return(0,u.useEffect)(()=>{Number.isNaN(Vg)||Ay(Vg)},[Vg]),u.createElement(Sg.Z,{className:b()(k1,b1),min:yd,max:kg,value:S1,formatter:I1,size:"small",onChange:U1=>{Vg||Ay(U1||0),wv==null||wv(U1)}})},Mo=ov=>{let{prefixCls:rv,value:yd,onChange:kg}=ov;const Vg=`${rv}-alpha-input`,[wv,b1]=(0,u.useState)(Gs(yd||"#000"));(0,u.useEffect)(()=>{yd&&b1(yd)},[yd]);const I1=k1=>{const S1=wv.toHsb();S1.a=(k1||0)/100;const Ay=Gs(S1);yd||b1(Ay),kg==null||kg(Ay)};return u.createElement(j0,{value:lu(wv),prefixCls:rv,formatter:k1=>`${k1}%`,className:Vg,onChange:I1})},qr=l(46527);const On=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,rn=ov=>On.test(`#${ov}`);var ya=ov=>{let{prefixCls:rv,value:yd,onChange:kg}=ov;const Vg=`${rv}-hex-input`,[wv,b1]=(0,u.useState)(yd==null?void 0:yd.toHex());(0,u.useEffect)(()=>{const k1=yd==null?void 0:yd.toHex();rn(k1)&&yd&&b1(cv(k1))},[yd]);const I1=k1=>{const S1=k1.target.value;b1(cv(S1)),rn(cv(S1,!0))&&(kg==null||kg(Gs(S1)))};return u.createElement(qr.Z,{className:Vg,value:wv,prefix:"#",onChange:I1,size:"small"})},Su=ov=>{let{prefixCls:rv,value:yd,onChange:kg}=ov;const Vg=`${rv}-hsb-input`,[wv,b1]=(0,u.useState)(Gs(yd||"#000"));(0,u.useEffect)(()=>{yd&&b1(yd)},[yd]);const I1=(k1,S1)=>{const Ay=wv.toHsb();Ay[S1]=S1==="h"?k1:(k1||0)/100;const U1=Gs(Ay);yd||b1(U1),kg==null||kg(U1)};return u.createElement("div",{className:Vg},u.createElement(j0,{max:360,min:0,value:Number(wv.toHsb().h),prefixCls:rv,className:Vg,formatter:k1=>Ia(k1||0).toString(),onChange:k1=>I1(Number(k1),"h")}),u.createElement(j0,{max:100,min:0,value:Number(wv.toHsb().s)*100,prefixCls:rv,className:Vg,formatter:k1=>`${Ia(k1||0)}%`,onChange:k1=>I1(Number(k1),"s")}),u.createElement(j0,{max:100,min:0,value:Number(wv.toHsb().b)*100,prefixCls:rv,className:Vg,formatter:k1=>`${Ia(k1||0)}%`,onChange:k1=>I1(Number(k1),"b")}))},xa=ov=>{let{prefixCls:rv,value:yd,onChange:kg}=ov;const Vg=`${rv}-rgb-input`,[wv,b1]=(0,u.useState)(Gs(yd||"#000"));(0,u.useEffect)(()=>{yd&&b1(yd)},[yd]);const I1=(k1,S1)=>{const Ay=wv.toRgb();Ay[S1]=k1||0;const U1=Gs(Ay);yd||b1(U1),kg==null||kg(U1)};return u.createElement("div",{className:Vg},u.createElement(j0,{max:255,min:0,value:Number(wv.toRgb().r),prefixCls:rv,className:Vg,onChange:k1=>I1(Number(k1),"r")}),u.createElement(j0,{max:255,min:0,value:Number(wv.toRgb().g),prefixCls:rv,className:Vg,onChange:k1=>I1(Number(k1),"g")}),u.createElement(j0,{max:255,min:0,value:Number(wv.toRgb().b),prefixCls:rv,className:Vg,onChange:k1=>I1(Number(k1),"b")}))};const Td=[Ra.hex,Ra.hsb,Ra.rgb].map(ov=>({value:ov,label:ov.toLocaleUpperCase()}));var Wa=ov=>{const{prefixCls:rv,format:yd,value:kg,disabledAlpha:Vg,onFormatChange:wv,onChange:b1}=ov,[I1,k1]=(0,x.Z)(Ra.hex,{value:yd,onChange:wv}),S1=`${rv}-input`,Ay=E_=>{k1(E_)},U1=(0,u.useMemo)(()=>{const E_={value:kg,prefixCls:rv,onChange:b1};switch(I1){case Ra.hsb:return u.createElement(Su,Object.assign({},E_));case Ra.rgb:return u.createElement(xa,Object.assign({},E_));case Ra.hex:default:return u.createElement(ya,Object.assign({},E_))}},[I1,rv,kg,b1]);return u.createElement("div",{className:`${S1}-container`},u.createElement(ri.Z,{value:I1,variant:"borderless",getPopupContainer:E_=>E_,popupMatchSelectWidth:68,placement:"bottomRight",onChange:Ay,className:`${rv}-format-select`,size:"small",options:Td}),u.createElement("div",{className:S1},U1),!Vg&&u.createElement(Mo,{prefixCls:rv,value:kg,onChange:b1}))},tv=function(ov,rv){var yd={};for(var kg in ov)Object.prototype.hasOwnProperty.call(ov,kg)&&rv.indexOf(kg)<0&&(yd[kg]=ov[kg]);if(ov!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vg=0,kg=Object.getOwnPropertySymbols(ov);Vg{const ov=(0,u.useContext)(Ag),{prefixCls:rv,colorCleared:yd,allowClear:kg,value:Vg,disabledAlpha:wv,onChange:b1,onClear:I1,onChangeComplete:k1}=ov,S1=tv(ov,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return u.createElement(u.Fragment,null,kg&&u.createElement(fr,Object.assign({prefixCls:rv,value:Vg,colorCleared:yd,onChange:Ay=>{b1==null||b1(Ay),I1==null||I1()}},S1)),u.createElement(mu,{prefixCls:rv,value:Vg==null?void 0:Vg.toHsb(),disabledAlpha:wv,onChange:(Ay,U1)=>b1==null?void 0:b1(Ay,U1,!0),onChangeComplete:k1}),u.createElement(Wa,Object.assign({value:Vg,onChange:b1,prefixCls:rv,disabledAlpha:wv},S1)))},$a=l(24545),Bd=l(49397),Bg=l(32188),Og=l(6415),g0=l(44516),qg=l(39193),Xg=u.forwardRef(function(ov,rv){var yd,kg=ov.prefixCls,Vg=ov.forceRender,wv=ov.className,b1=ov.style,I1=ov.children,k1=ov.isActive,S1=ov.role,Ay=u.useState(k1||Vg),U1=(0,rt.Z)(Ay,2),E_=U1[0],ty=U1[1];return u.useEffect(function(){(Vg||k1)&&ty(!0)},[Vg,k1]),E_?u.createElement("div",{ref:rv,className:b()("".concat(kg,"-content"),(yd={},(0,At.Z)(yd,"".concat(kg,"-content-active"),k1),(0,At.Z)(yd,"".concat(kg,"-content-inactive"),!k1),yd),wv),style:b1,role:S1},u.createElement("div",{className:"".concat(kg,"-content-box")},I1)):null});Xg.displayName="PanelContent";var A0=Xg,nv=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],t0=u.forwardRef(function(ov,rv){var yd,kg,Vg=ov.showArrow,wv=Vg===void 0?!0:Vg,b1=ov.headerClass,I1=ov.isActive,k1=ov.onItemClick,S1=ov.forceRender,Ay=ov.className,U1=ov.prefixCls,E_=ov.collapsible,ty=ov.accordion,h_=ov.panelKey,g_=ov.extra,ox=ov.header,$_=ov.expandIcon,K_=ov.openMotion,k_=ov.destroyInactivePanel,A_=ov.children,gx=(0,Jr.Z)(ov,nv),Na=E_==="disabled",_x=E_==="header",c2=E_==="icon",b2=g_!=null&&typeof g_!="boolean",N2=function(){k1==null||k1(h_)},j2=function(KC){(KC.key==="Enter"||KC.keyCode===qg.Z.ENTER||KC.which===qg.Z.ENTER)&&N2()},mC=typeof $_=="function"?$_(ov):u.createElement("i",{className:"arrow"});mC&&(mC=u.createElement("div",{className:"".concat(U1,"-expand-icon"),onClick:["header","icon"].includes(E_)?N2:void 0},mC));var XC=b()((yd={},(0,At.Z)(yd,"".concat(U1,"-item"),!0),(0,At.Z)(yd,"".concat(U1,"-item-active"),I1),(0,At.Z)(yd,"".concat(U1,"-item-disabled"),Na),yd),Ay),EC=b()(b1,(kg={},(0,At.Z)(kg,"".concat(U1,"-header"),!0),(0,At.Z)(kg,"".concat(U1,"-header-collapsible-only"),_x),(0,At.Z)(kg,"".concat(U1,"-icon-collapsible-only"),c2),kg)),Pw={className:EC,"aria-expanded":I1,"aria-disabled":Na,onKeyDown:j2};return!_x&&!c2&&(Pw.onClick=N2,Pw.role=ty?"tab":"button",Pw.tabIndex=Na?-1:0),u.createElement("div",(0,ct.Z)({},gx,{ref:rv,className:XC}),u.createElement("div",Pw,wv&&mC,u.createElement("span",{className:"".concat(U1,"-header-text"),onClick:E_==="header"?N2:void 0},ox),b2&&u.createElement("div",{className:"".concat(U1,"-extra")},g_)),u.createElement(g0.ZP,(0,ct.Z)({visible:I1,leavedClassName:"".concat(U1,"-content-hidden")},K_,{forceRender:S1,removeOnLeave:k_}),function(Aw,KC){var JS=Aw.className,sS=Aw.style;return u.createElement(A0,{ref:KC,prefixCls:U1,className:JS,style:sS,isActive:I1,forceRender:S1,role:ty?"tabpanel":void 0},A_)}))}),n0=t0,u1=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Eg=function(rv,yd){var kg=yd.prefixCls,Vg=yd.accordion,wv=yd.collapsible,b1=yd.destroyInactivePanel,I1=yd.onItemClick,k1=yd.activeKey,S1=yd.openMotion,Ay=yd.expandIcon;return rv.map(function(U1,E_){var ty=U1.children,h_=U1.label,g_=U1.key,ox=U1.collapsible,$_=U1.onItemClick,K_=U1.destroyInactivePanel,k_=(0,Jr.Z)(U1,u1),A_=String(g_!=null?g_:E_),gx=ox!=null?ox:wv,Na=K_!=null?K_:b1,_x=function(N2){gx!=="disabled"&&(I1(N2),$_==null||$_(N2))},c2=!1;return Vg?c2=k1[0]===A_:c2=k1.indexOf(A_)>-1,u.createElement(n0,(0,ct.Z)({},k_,{prefixCls:kg,key:A_,panelKey:A_,isActive:c2,accordion:Vg,openMotion:S1,expandIcon:Ay,header:h_,collapsible:gx,onItemClick:_x,destroyInactivePanel:Na}),ty)})},a1=function(rv,yd,kg){if(!rv)return null;var Vg=kg.prefixCls,wv=kg.accordion,b1=kg.collapsible,I1=kg.destroyInactivePanel,k1=kg.onItemClick,S1=kg.activeKey,Ay=kg.openMotion,U1=kg.expandIcon,E_=rv.key||String(yd),ty=rv.props,h_=ty.header,g_=ty.headerClass,ox=ty.destroyInactivePanel,$_=ty.collapsible,K_=ty.onItemClick,k_=!1;wv?k_=S1[0]===E_:k_=S1.indexOf(E_)>-1;var A_=$_!=null?$_:b1,gx=function(c2){A_!=="disabled"&&(k1(c2),K_==null||K_(c2))},Na={key:E_,panelKey:E_,header:h_,headerClass:g_,isActive:k_,prefixCls:Vg,destroyInactivePanel:ox!=null?ox:I1,openMotion:Ay,accordion:wv,children:rv.props.children,onItemClick:gx,expandIcon:U1,collapsible:A_};return typeof rv.type=="string"?rv:(Object.keys(Na).forEach(function(_x){typeof Na[_x]=="undefined"&&delete Na[_x]}),u.cloneElement(rv,Na))};function Hg(ov,rv,yd){return Array.isArray(ov)?Eg(ov,yd):(0,Og.Z)(rv).map(function(kg,Vg){return a1(kg,Vg,yd)})}var Gd=Hg;function h0(ov){var rv=ov;if(!Array.isArray(rv)){var yd=(0,Yn.Z)(rv);rv=yd==="number"||yd==="string"?[rv]:[]}return rv.map(function(kg){return String(kg)})}var lv=u.forwardRef(function(ov,rv){var yd=ov.prefixCls,kg=yd===void 0?"rc-collapse":yd,Vg=ov.destroyInactivePanel,wv=Vg===void 0?!1:Vg,b1=ov.style,I1=ov.accordion,k1=ov.className,S1=ov.children,Ay=ov.collapsible,U1=ov.openMotion,E_=ov.expandIcon,ty=ov.activeKey,h_=ov.defaultActiveKey,g_=ov.onChange,ox=ov.items,$_=b()(kg,k1),K_=(0,x.Z)([],{value:ty,onChange:function(b2){return g_==null?void 0:g_(b2)},defaultValue:h_,postState:h0}),k_=(0,rt.Z)(K_,2),A_=k_[0],gx=k_[1],Na=function(b2){return gx(function(){if(I1)return A_[0]===b2?[]:[b2];var N2=A_.indexOf(b2),j2=N2>-1;return j2?A_.filter(function(mC){return mC!==b2}):[].concat((0,Bd.Z)(A_),[b2])})};(0,Bg.ZP)(!S1,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var _x=Gd(ox,S1,{prefixCls:kg,accordion:I1,openMotion:U1,expandIcon:E_,collapsible:Ay,destroyInactivePanel:wv,onItemClick:Na,activeKey:A_});return u.createElement("div",{ref:rv,className:$_,style:b1,role:I1?"tablist":void 0},_x)}),su=Object.assign(lv,{Panel:n0}),hu=su,ev=su.Panel,sv=l(41123),yv=l(12149),$v=l(20612),E1=u.forwardRef((ov,rv)=>{const{getPrefixCls:yd}=u.useContext(a.E_),{prefixCls:kg,className:Vg,showArrow:wv=!0}=ov,b1=yd("collapse",kg),I1=b()({[`${b1}-no-arrow`]:!wv},Vg);return u.createElement(hu.Panel,Object.assign({ref:rv},ov,{prefixCls:b1,className:I1}))}),$1=l(78600),l0=l(91110),z0=l(36385),W0=l(79263),Rv=l(90882);const R0=ov=>{const{componentCls:rv,contentBg:yd,padding:kg,headerBg:Vg,headerPadding:wv,collapseHeaderPaddingSM:b1,collapseHeaderPaddingLG:I1,collapsePanelBorderRadius:k1,lineWidth:S1,lineType:Ay,colorBorder:U1,colorText:E_,colorTextHeading:ty,colorTextDisabled:h_,fontSizeLG:g_,lineHeight:ox,lineHeightLG:$_,marginSM:K_,paddingSM:k_,paddingLG:A_,paddingXS:gx,motionDurationSlow:Na,fontSizeIcon:_x,contentPadding:c2,fontHeight:b2,fontHeightLG:N2}=ov,j2=`${(0,$1.bf)(S1)} ${Ay} ${U1}`;return{[rv]:Object.assign(Object.assign({},(0,l0.Wf)(ov)),{backgroundColor:Vg,border:j2,borderBottom:0,borderRadius:k1,["&-rtl"]:{direction:"rtl"},[`& > ${rv}-item`]:{borderBottom:j2,["&:last-child"]:{[` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${tt}-icon-only`]:{fontSize:kt}},Ct(`${tt}-primary`,vr),Ct(`${tt}-danger`,qr)]}},Nt=x(14506);const Te=mt=>{const{paddingInline:tt,onlyIconSize:kt,paddingBlock:vn}=mt;return(0,je.TS)(mt,{buttonPaddingHorizontal:tt,buttonPaddingVertical:vn,buttonIconOnlyFontSize:kt})},vt=mt=>{var tt,kt,vn,vr,qr,Ni;const li=(tt=mt.contentFontSize)!==null&&tt!==void 0?tt:mt.fontSize,Un=(kt=mt.contentFontSizeSM)!==null&&kt!==void 0?kt:mt.fontSize,dn=(vn=mt.contentFontSizeLG)!==null&&vn!==void 0?vn:mt.fontSizeLG,xt=(vr=mt.contentLineHeight)!==null&&vr!==void 0?vr:(0,Nt.D)(li),it=(qr=mt.contentLineHeightSM)!==null&&qr!==void 0?qr:(0,Nt.D)(Un),Bt=(Ni=mt.contentLineHeightLG)!==null&&Ni!==void 0?Ni:(0,Nt.D)(dn);return{fontWeight:400,defaultShadow:`0 ${mt.controlOutlineWidth}px 0 ${mt.controlTmpOutline}`,primaryShadow:`0 ${mt.controlOutlineWidth}px 0 ${mt.controlOutline}`,dangerShadow:`0 ${mt.controlOutlineWidth}px 0 ${mt.colorErrorOutline}`,primaryColor:mt.colorTextLightSolid,dangerColor:mt.colorTextLightSolid,borderColorDisabled:mt.colorBorder,defaultGhostColor:mt.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:mt.colorBgContainer,paddingInline:mt.paddingContentHorizontal-mt.lineWidth,paddingInlineLG:mt.paddingContentHorizontal-mt.lineWidth,paddingInlineSM:8-mt.lineWidth,onlyIconSize:mt.fontSizeLG,onlyIconSizeSM:mt.fontSizeLG-2,onlyIconSizeLG:mt.fontSizeLG+2,groupBorderColor:mt.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:mt.colorBgTextHover,defaultColor:mt.colorText,defaultBg:mt.colorBgContainer,defaultBorderColor:mt.colorBorder,defaultBorderColorDisabled:mt.colorBorder,defaultHoverBg:mt.colorBgContainer,defaultHoverColor:mt.colorPrimaryHover,defaultHoverBorderColor:mt.colorPrimaryHover,defaultActiveBg:mt.colorBgContainer,defaultActiveColor:mt.colorPrimaryActive,defaultActiveBorderColor:mt.colorPrimaryActive,contentFontSize:li,contentFontSizeSM:Un,contentFontSizeLG:dn,contentLineHeight:xt,contentLineHeightSM:it,contentLineHeightLG:Bt,paddingBlock:Math.max((mt.controlHeight-li*xt)/2-mt.lineWidth,0),paddingBlockSM:Math.max((mt.controlHeightSM-Un*it)/2-mt.lineWidth,0),paddingBlockLG:Math.max((mt.controlHeightLG-dn*Bt)/2-mt.lineWidth,0)}},ze=mt=>{const{componentCls:tt,iconCls:kt,fontWeight:vn}=mt;return{[tt]:{outline:"none",position:"relative",display:"inline-block",fontWeight:vn,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,Oe.bf)(mt.lineWidth)} ${mt.lineType} transparent`,cursor:"pointer",transition:`all ${mt.motionDurationMid} ${mt.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:mt.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${tt}-icon`]:{lineHeight:0},[`> ${kt} + span, > span + ${kt}`]:{marginInlineStart:mt.marginXS},[`&:not(${tt}-icon-only) > ${tt}-icon`]:{[`&${tt}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:mt.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Ue.Qy)(mt)),[`&${tt}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${tt}-two-chinese-chars > *:not(${kt})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${tt}-compact-item`]:{flex:"none"}}}},Vt=(mt,tt,kt)=>({[`&:not(:disabled):not(${mt}-disabled)`]:{"&:hover":tt,"&:active":kt}}),Tt=mt=>({minWidth:mt.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),un=mt=>({borderRadius:mt.controlHeight,paddingInlineStart:mt.calc(mt.controlHeight).div(2).equal(),paddingInlineEnd:mt.calc(mt.controlHeight).div(2).equal()}),on=mt=>({cursor:"not-allowed",borderColor:mt.borderColorDisabled,color:mt.colorTextDisabled,background:mt.colorBgContainerDisabled,boxShadow:"none"}),Lr=(mt,tt,kt,vn,vr,qr,Ni,li)=>({[`&${mt}-background-ghost`]:Object.assign(Object.assign({color:kt||void 0,background:tt,borderColor:vn||void 0,boxShadow:"none"},Vt(mt,Object.assign({background:tt},Ni),Object.assign({background:tt},li))),{"&:disabled":{cursor:"not-allowed",color:vr||void 0,borderColor:qr||void 0}})}),Yr=mt=>({[`&:disabled, &${mt.componentCls}-disabled`]:Object.assign({},on(mt))}),fi=mt=>Object.assign({},Yr(mt)),Xi=mt=>({[`&:disabled, &${mt.componentCls}-disabled`]:{cursor:"not-allowed",color:mt.colorTextDisabled}}),Qi=mt=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fi(mt)),{background:mt.defaultBg,borderColor:mt.defaultBorderColor,color:mt.defaultColor,boxShadow:mt.defaultShadow}),Vt(mt.componentCls,{color:mt.defaultHoverColor,borderColor:mt.defaultHoverBorderColor,background:mt.defaultHoverBg},{color:mt.defaultActiveColor,borderColor:mt.defaultActiveBorderColor,background:mt.defaultActiveBg})),Lr(mt.componentCls,mt.ghostBg,mt.defaultGhostColor,mt.defaultGhostBorderColor,mt.colorTextDisabled,mt.colorBorder)),{[`&${mt.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:mt.colorError,borderColor:mt.colorError},Vt(mt.componentCls,{color:mt.colorErrorHover,borderColor:mt.colorErrorBorderHover},{color:mt.colorErrorActive,borderColor:mt.colorErrorActive})),Lr(mt.componentCls,mt.ghostBg,mt.colorError,mt.colorError,mt.colorTextDisabled,mt.colorBorder)),Yr(mt))}),hi=mt=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fi(mt)),{color:mt.primaryColor,background:mt.colorPrimary,boxShadow:mt.primaryShadow}),Vt(mt.componentCls,{color:mt.colorTextLightSolid,background:mt.colorPrimaryHover},{color:mt.colorTextLightSolid,background:mt.colorPrimaryActive})),Lr(mt.componentCls,mt.ghostBg,mt.colorPrimary,mt.colorPrimary,mt.colorTextDisabled,mt.colorBorder,{color:mt.colorPrimaryHover,borderColor:mt.colorPrimaryHover},{color:mt.colorPrimaryActive,borderColor:mt.colorPrimaryActive})),{[`&${mt.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:mt.colorError,boxShadow:mt.dangerShadow,color:mt.dangerColor},Vt(mt.componentCls,{background:mt.colorErrorHover},{background:mt.colorErrorActive})),Lr(mt.componentCls,mt.ghostBg,mt.colorError,mt.colorError,mt.colorTextDisabled,mt.colorBorder,{color:mt.colorErrorHover,borderColor:mt.colorErrorHover},{color:mt.colorErrorActive,borderColor:mt.colorErrorActive})),Yr(mt))}),Go=mt=>Object.assign(Object.assign({},Qi(mt)),{borderStyle:"dashed"}),Mo=mt=>Object.assign(Object.assign(Object.assign({color:mt.colorLink},Vt(mt.componentCls,{color:mt.colorLinkHover,background:mt.linkHoverBg},{color:mt.colorLinkActive})),Xi(mt)),{[`&${mt.componentCls}-dangerous`]:Object.assign(Object.assign({color:mt.colorError},Vt(mt.componentCls,{color:mt.colorErrorHover},{color:mt.colorErrorActive})),Xi(mt))}),pe=mt=>Object.assign(Object.assign(Object.assign({},Vt(mt.componentCls,{color:mt.colorText,background:mt.textHoverBg},{color:mt.colorText,background:mt.colorBgTextActive})),Xi(mt)),{[`&${mt.componentCls}-dangerous`]:Object.assign(Object.assign({color:mt.colorError},Xi(mt)),Vt(mt.componentCls,{color:mt.colorErrorHover,background:mt.colorErrorBg},{color:mt.colorErrorHover,background:mt.colorErrorBg}))}),Ii=mt=>{const{componentCls:tt}=mt;return{[`${tt}-default`]:Qi(mt),[`${tt}-primary`]:hi(mt),[`${tt}-dashed`]:Go(mt),[`${tt}-link`]:Mo(mt),[`${tt}-text`]:pe(mt),[`${tt}-ghost`]:Lr(mt.componentCls,mt.ghostBg,mt.colorBgContainer,mt.colorBgContainer,mt.colorTextDisabled,mt.colorBorder)}},Vi=function(mt){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:kt,controlHeight:vn,fontSize:vr,lineHeight:qr,borderRadius:Ni,buttonPaddingHorizontal:li,iconCls:Un,buttonPaddingVertical:dn}=mt,xt=`${kt}-icon-only`;return[{[`${tt}`]:{fontSize:vr,lineHeight:qr,height:vn,padding:`${(0,Oe.bf)(dn)} ${(0,Oe.bf)(li)}`,borderRadius:Ni,[`&${xt}`]:{width:vn,paddingInlineStart:0,paddingInlineEnd:0,[`&${kt}-round`]:{width:"auto"},[Un]:{fontSize:mt.buttonIconOnlyFontSize}},[`&${kt}-loading`]:{opacity:mt.opacityLoading,cursor:"default"},[`${kt}-loading-icon`]:{transition:`width ${mt.motionDurationSlow} ${mt.motionEaseInOut}, opacity ${mt.motionDurationSlow} ${mt.motionEaseInOut}`}}},{[`${kt}${kt}-circle${tt}`]:Tt(mt)},{[`${kt}${kt}-round${tt}`]:un(mt)}]},ro=mt=>{const tt=(0,je.TS)(mt,{fontSize:mt.contentFontSize,lineHeight:mt.contentLineHeight});return Vi(tt,mt.componentCls)},ai=mt=>{const tt=(0,je.TS)(mt,{controlHeight:mt.controlHeightSM,fontSize:mt.contentFontSizeSM,lineHeight:mt.contentLineHeightSM,padding:mt.paddingXS,buttonPaddingHorizontal:mt.paddingInlineSM,buttonPaddingVertical:mt.paddingBlockSM,borderRadius:mt.borderRadiusSM,buttonIconOnlyFontSize:mt.onlyIconSizeSM});return Vi(tt,`${mt.componentCls}-sm`)},Ms=mt=>{const tt=(0,je.TS)(mt,{controlHeight:mt.controlHeightLG,fontSize:mt.contentFontSizeLG,lineHeight:mt.contentLineHeightLG,buttonPaddingHorizontal:mt.paddingInlineLG,buttonPaddingVertical:mt.paddingBlockLG,borderRadius:mt.borderRadiusLG,buttonIconOnlyFontSize:mt.onlyIconSizeLG});return Vi(tt,`${mt.componentCls}-lg`)},Ar=mt=>{const{componentCls:tt}=mt;return{[tt]:{[`&${tt}-block`]:{width:"100%"}}}};var Rt=(0,ft.I$)("Button",mt=>{const tt=Te(mt);return[ze(tt),ro(tt),ai(tt),Ms(tt),Ar(tt),Ii(tt),hn(tt)]},vt,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),jn=x(99109);function wr(mt,tt){return{[`&-item:not(${tt}-last-item)`]:{marginBottom:mt.calc(mt.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function oi(mt,tt){return{[`&-item:not(${tt}-first-item):not(${tt}-last-item)`]:{borderRadius:0},[`&-item${tt}-first-item:not(${tt}-last-item)`]:{[`&, &${mt}-sm, &${mt}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${tt}-last-item:not(${tt}-first-item)`]:{[`&, &${mt}-sm, &${mt}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ti(mt){const tt=`${mt.componentCls}-compact-vertical`;return{[tt]:Object.assign(Object.assign({},wr(mt,tt)),oi(mt.componentCls,tt))}}const Bi=mt=>{const{componentCls:tt,calc:kt}=mt;return{[tt]:{[`&-compact-item${tt}-primary`]:{[`&:not([disabled]) + ${tt}-compact-item${tt}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:kt(mt.lineWidth).mul(-1).equal(),insetInlineStart:kt(mt.lineWidth).mul(-1).equal(),display:"inline-block",width:mt.lineWidth,height:`calc(100% + ${(0,Oe.bf)(mt.lineWidth)} * 2)`,backgroundColor:mt.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${tt}-primary`]:{[`&:not([disabled]) + ${tt}-compact-vertical-item${tt}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:kt(mt.lineWidth).mul(-1).equal(),insetInlineStart:kt(mt.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,Oe.bf)(mt.lineWidth)} * 2)`,height:mt.lineWidth,backgroundColor:mt.colorPrimaryHover,content:'""'}}}}}}};var no=(0,ft.bk)(["Button","compact"],mt=>{const tt=Te(mt);return[(0,jn.c)(tt),Ti(tt),Bi(tt)]},vt),Vr=function(mt,tt){var kt={};for(var vn in mt)Object.prototype.hasOwnProperty.call(mt,vn)&&tt.indexOf(vn)<0&&(kt[vn]=mt[vn]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vr=0,vn=Object.getOwnPropertySymbols(mt);vr{var kt,vn;const{loading:vr=!1,prefixCls:qr,type:Ni="default",danger:li,shape:Un="default",size:dn,styles:xt,disabled:it,className:Bt,rootClassName:rn,children:ir,icon:tr,ghost:Jn=!1,block:nn=!1,htmlType:er="button",classNames:Fr,style:jr={}}=mt,bo=Vr(mt,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:zt,autoInsertSpaceInButton:en,direction:Cn,button:rr}=(0,v.useContext)(Y.E_),Pr=zt("btn",qr),[Er,ui,Gr]=Rt(Pr),zr=(0,v.useContext)(ie.Z),Ei=it!=null?it:zr,Zi=(0,v.useContext)(Ce),Kr=(0,v.useMemo)(()=>Rn(vr),[vr]),[Xr,Qo]=(0,v.useState)(Kr.loading),[pr,qo]=(0,v.useState)(!1),Br=(0,v.createRef)(),sr=(0,W.sQ)(tt,Br),ii=v.Children.count(ir)===1&&!tr&&!(0,Ge.Te)(Ni);(0,v.useEffect)(()=>{let Bs=null;Kr.delay>0?Bs=setTimeout(()=>{Bs=null,Qo(!0)},Kr.delay):Qo(Kr.loading);function fa(){Bs&&(clearTimeout(Bs),Bs=null)}return fa},[Kr]),(0,v.useEffect)(()=>{if(!sr||!sr.current||en===!1)return;const Bs=sr.current.textContent;ii&&(0,Ge.aG)(Bs)?pr||qo(!0):pr&&qo(!1)},[sr]);const qi=Bs=>{const{onClick:fa}=mt;if(Xr||Ei){Bs.preventDefault();return}fa==null||fa(Bs)},Ln=en!==!1,{compactSize:zn,compactItemClassnames:Wi}=(0,se.ri)(Pr,Cn),Yi={large:"lg",small:"sm",middle:void 0},so=(0,ae.Z)(Bs=>{var fa,ba;return(ba=(fa=dn!=null?dn:zn)!==null&&fa!==void 0?fa:Zi)!==null&&ba!==void 0?ba:Bs}),ko=so&&Yi[so]||"",_i=Xr?"loading":tr,hs=(0,A.Z)(bo,["navigate"]),Ts=P()(Pr,ui,Gr,{[`${Pr}-${Un}`]:Un!=="default"&&Un,[`${Pr}-${Ni}`]:Ni,[`${Pr}-${ko}`]:ko,[`${Pr}-icon-only`]:!ir&&ir!==0&&!!_i,[`${Pr}-background-ghost`]:Jn&&!(0,Ge.Te)(Ni),[`${Pr}-loading`]:Xr,[`${Pr}-two-chinese-chars`]:pr&&Ln&&!Xr,[`${Pr}-block`]:nn,[`${Pr}-dangerous`]:!!li,[`${Pr}-rtl`]:Cn==="rtl"},Wi,Bt,rn,rr==null?void 0:rr.className),Qr=Object.assign(Object.assign({},rr==null?void 0:rr.style),jr),Ai=P()(Fr==null?void 0:Fr.icon,(kt=rr==null?void 0:rr.classNames)===null||kt===void 0?void 0:kt.icon),Ri=Object.assign(Object.assign({},(xt==null?void 0:xt.icon)||{}),((vn=rr==null?void 0:rr.styles)===null||vn===void 0?void 0:vn.icon)||{}),To=tr&&!Xr?v.createElement(Ye,{prefixCls:Pr,className:Ai,style:Ri},tr):v.createElement(et,{existIcon:!!tr,prefixCls:Pr,loading:!!Xr}),yo=ir||ir===0?(0,Ge.hU)(ir,ii&&Ln):null;if(hs.href!==void 0)return Er(v.createElement("a",Object.assign({},hs,{className:P()(Ts,{[`${Pr}-disabled`]:Ei}),href:Ei?void 0:hs.href,style:Qr,onClick:qi,ref:sr,tabIndex:Ei?-1:0}),To,yo));let ao=v.createElement("button",Object.assign({},bo,{type:er,className:Ts,style:Qr,onClick:qi,disabled:Ei,ref:sr}),To,yo,!!Wi&&v.createElement(no,{key:"compact",prefixCls:Pr}));return(0,Ge.Te)(Ni)||(ao=v.createElement(X.Z,{component:"Button",disabled:!!Xr},ao)),Er(ao)},Sn=(0,v.forwardRef)(Xt);Sn.Group=nt,Sn.__ANT_BUTTON=!0;var Pn=Sn,hr=Pn},18398:function(St,me,x){"use strict";x.d(me,{Z:function(){return Ln}});var v=x(49397),z=x(77617),P=x(92310),A=x.n(P),W=x(79384),X=x(54131),Y=x(35372),ie=x(56348),ae=x(51409),se=x(1081),Ie=x(33890),Be=x(89308),Ce=z.createContext(null),ct=Ce,nt=x(13255),Ge=x(16514),at="__rc_cascader_search_mark__",Ye=function(Wi,Yi,so){var ko=so.label;return Yi.some(function(_i){return String(_i[ko]).toLowerCase().includes(Wi.toLowerCase())})},rt=function(Wi,Yi,so,ko){return Yi.map(function(_i){return _i[ko.label]}).join(" / ")},Gt=function(zn,Wi,Yi,so,ko,_i){var hs=ko.filter,Ts=hs===void 0?Ye:hs,Qr=ko.render,Ai=Qr===void 0?rt:Qr,Ri=ko.limit,To=Ri===void 0?50:Ri,yo=ko.sort;return z.useMemo(function(){var ao=[];if(!zn)return[];function Bs(fa,ba){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;fa.forEach(function(Ds){if(!(!yo&&To!==!1&&To>0&&ao.length>=To)){var el=[].concat((0,v.Z)(ba),[Ds]),tl=Ds[Yi.children],sn=Rs||Ds.disabled;if((!tl||tl.length===0||_i)&&Ts(zn,el,{label:Yi.label})){var dt;ao.push((0,X.Z)((0,X.Z)({},Ds),{},(dt={disabled:sn},(0,Ge.Z)(dt,Yi.label,Ai(zn,el,so,Yi)),(0,Ge.Z)(dt,at,el),(0,Ge.Z)(dt,Yi.children,void 0),dt)))}tl&&Bs(Ds[Yi.children],el,sn)}})}return Bs(Wi,[]),yo&&ao.sort(function(fa,ba){return yo(fa[at],ba[at],zn,Yi)}),To!==!1&&To>0?ao.slice(0,To):ao},[zn,Wi,Yi,so,Ai,_i,Ts,yo,To])},yt="__RC_CASCADER_SPLIT__",Et="SHOW_PARENT",ht="SHOW_CHILD";function Pe(zn){return zn.join(yt)}function et(zn){return zn.map(Pe)}function Oe(zn){return zn.split(yt)}function Ue(zn){var Wi=zn||{},Yi=Wi.label,so=Wi.value,ko=Wi.children,_i=so||"value";return{label:Yi||"label",value:_i,key:_i,children:ko||"children"}}function je(zn,Wi){var Yi,so;return(Yi=zn.isLeaf)!==null&&Yi!==void 0?Yi:!((so=zn[Wi.children])!==null&&so!==void 0&&so.length)}function ft(zn){var Wi=zn.parentElement;if(Wi){var Yi=zn.offsetTop-Wi.offsetTop;Yi-Wi.scrollTop<0?Wi.scrollTo({top:Yi}):Yi+zn.offsetHeight-Wi.scrollTop>Wi.offsetHeight&&Wi.scrollTo({top:Yi+zn.offsetHeight-Wi.offsetHeight})}}function Ct(zn,Wi){return zn.map(function(Yi){var so;return(so=Yi[at])===null||so===void 0?void 0:so.map(function(ko){return ko[Wi.value]})})}function Xe(zn){return Array.isArray(zn)&&Array.isArray(zn[0])}function hn(zn){return zn?Xe(zn)?zn:(zn.length===0?[]:[zn]).map(function(Wi){return Array.isArray(Wi)?Wi:[Wi]}):[]}function Nt(zn,Wi,Yi){var so=new Set(zn),ko=Wi();return zn.filter(function(_i){var hs=ko[_i],Ts=hs?hs.parent:null,Qr=hs?hs.children:null;return hs&&hs.node.disabled?!0:Yi===ht?!(Qr&&Qr.some(function(Ai){return Ai.key&&so.has(Ai.key)})):!(Ts&&!Ts.node.disabled&&so.has(Ts.key))})}function Te(zn,Wi,Yi){for(var so=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ko=Wi,_i=[],hs=function(){var Ai,Ri,To,yo=zn[Ts],ao=(Ai=ko)===null||Ai===void 0?void 0:Ai.findIndex(function(fa){var ba=fa[Yi.value];return so?String(ba)===String(yo):ba===yo}),Bs=ao!==-1?(Ri=ko)===null||Ri===void 0?void 0:Ri[ao]:null;_i.push({value:(To=Bs==null?void 0:Bs[Yi.value])!==null&&To!==void 0?To:yo,index:ao,option:Bs}),ko=Bs==null?void 0:Bs[Yi.children]},Ts=0;Ts1){var Mt=Bs.slice(0,-1);Ds(Mt)}else Ai(!1)},sn=function(){var Mt,Zt=((Mt=ba[fa])===null||Mt===void 0?void 0:Mt[Yi.children])||[],Kt=Zt.find(function(Ur){return!Ur.disabled});if(Kt){var Nn=[].concat((0,v.Z)(Bs),[Kt[Yi.value]]);Ds(Nn)}};z.useImperativeHandle(zn,function(){return{onKeyDown:function(Mt){var Zt=Mt.which;switch(Zt){case Vi.Z.UP:case Vi.Z.DOWN:{var Kt=0;Zt===Vi.Z.UP?Kt=-1:Zt===Vi.Z.DOWN&&(Kt=1),Kt!==0&&el(Kt);break}case Vi.Z.LEFT:{if(Qr)break;To?sn():tl();break}case Vi.Z.RIGHT:{if(Qr)break;To?tl():sn();break}case Vi.Z.BACKSPACE:{Qr||tl();break}case Vi.Z.ENTER:{if(Bs.length){var Nn=ba[fa],Ur=(Nn==null?void 0:Nn[at])||[];Ur.length?_i(Ur.map(function(Ui){return Ui[Yi.value]}),Ur[Ur.length-1]):_i(Bs,ba[fa])}break}case Vi.Z.ESC:Ai(!1),Ri&&Mt.stopPropagation()}},onKeyUp:function(){}}})},ai=z.forwardRef(function(zn,Wi){var Yi,so,ko,_i=zn.prefixCls,hs=zn.multiple,Ts=zn.searchValue,Qr=zn.toggleOpen,Ai=zn.notFoundContent,Ri=zn.direction,To=zn.open,yo=z.useRef(),ao=Ri==="rtl",Bs=z.useContext(ct),fa=Bs.options,ba=Bs.values,Rs=Bs.halfValues,Ds=Bs.fieldNames,el=Bs.changeOnSelect,tl=Bs.onSelect,sn=Bs.searchOptions,dt=Bs.dropdownPrefixCls,Mt=Bs.loadData,Zt=Bs.expandTrigger,Kt=dt||_i,Nn=z.useState([]),Ur=(0,Y.Z)(Nn,2),Ui=Ur[0],Ao=Ur[1],rs=function(va){if(!(!Mt||Ts)){var Ua=Te(va,fa,Ds),Yl=Ua.map(function(mh){var _h=mh.option;return _h}),Cc=Yl[Yl.length-1];if(Cc&&!je(Cc,Ds)){var ch=Pe(va);Ao(function(mh){return[].concat((0,v.Z)(mh),[ch])}),Mt(Yl)}}};z.useEffect(function(){Ui.length&&Ui.forEach(function(Fl){var va=Oe(Fl),Ua=Te(va,fa,Ds,!0).map(function(Cc){var ch=Cc.option;return ch}),Yl=Ua[Ua.length-1];(!Yl||Yl[Ds.children]||je(Yl,Ds))&&Ao(function(Cc){return Cc.filter(function(ch){return ch!==Fl})})})},[fa,Ui,Ds]);var ps=z.useMemo(function(){return new Set(et(ba))},[ba]),Po=z.useMemo(function(){return new Set(et(Rs))},[Rs]),$a=Ii(hs,To),nl=(0,Y.Z)($a,2),ka=nl[0],Xs=nl[1],zs=function(va){Xs(va),rs(va)},xa=function(va){var Ua=va.disabled,Yl=je(va,Ds);return!Ua&&(Yl||el||hs)},Ea=function(va,Ua){var Yl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;tl(va),!hs&&(Ua||el&&(Zt==="hover"||Yl))&&Qr(!1)},_a=z.useMemo(function(){return Ts?sn:fa},[Ts,sn,fa]),Ba=z.useMemo(function(){for(var Fl=[{options:_a}],va=_a,Ua=Ct(va,Ds),Yl=function(){var mh=ka[Cc],_h=va.find(function(vu,ru){return(Ua[ru]?Pe(Ua[ru]):vu[Ds.value])===mh}),wh=_h==null?void 0:_h[Ds.children];if(!(wh!=null&&wh.length))return 1;va=wh,Fl.push({options:wh})},Cc=0;Cc":Rs,el=Yi.loadingIcon,tl=Yi.direction,sn=Yi.notFoundContent,dt=sn===void 0?"Not Found":sn,Mt=!!Qr,Zt=(0,jn.C8)(Ai,{value:Ri,postState:hn}),Kt=(0,Y.Z)(Zt,2),Nn=Kt[0],Ur=Kt[1],Ui=z.useMemo(function(){return Ue(To)},[JSON.stringify(To)]),Ao=un(Ui,Ts),rs=(0,Y.Z)(Ao,3),ps=rs[0],Po=rs[1],$a=rs[2],nl=ze(ps,Ui),ka=Xi(Mt,Nn,Po,$a,nl),Xs=(0,Y.Z)(ka,3),zs=Xs[0],xa=Xs[1],Ea=Xs[2],_a=(0,jn.zX)(function(mu){if(Ur(mu),ao){var nu=hn(mu),Fl=nu.map(function(Yl){return Te(Yl,ps,Ui).map(function(Cc){return Cc.option})}),va=Mt?nu:nu[0],Ua=Mt?Fl:Fl[0];ao(va,Ua)}}),Ba=fi(Mt,_a,zs,xa,Ea,Po,$a,Bs),Al=(0,jn.zX)(function(mu){Ba(mu)}),ks=z.useMemo(function(){return{options:ps,fieldNames:Ui,values:zs,halfValues:xa,changeOnSelect:yo,onSelect:Al,checkable:Qr,searchOptions:[],dropdownPrefixCls:null,loadData:fa,expandTrigger:ba,expandIcon:Ds,loadingIcon:el,dropdownMenuColumnStyle:null}},[ps,Ui,zs,xa,yo,Al,Qr,fa,ba,Ds,el]),Za="".concat(ko,"-panel"),lu=!ps.length;return z.createElement(ct.Provider,{value:ks},z.createElement("div",{className:A()(Za,(Wi={},(0,Ge.Z)(Wi,"".concat(Za,"-rtl"),tl==="rtl"),(0,Ge.Z)(Wi,"".concat(Za,"-empty"),lu),Wi),hs),style:_i},lu?dt:z.createElement(Ms,{prefixCls:ko,searchValue:null,multiple:Mt,toggleOpen:wr,open:!0,direction:tl})))}function Ti(zn){var Wi=zn.onPopupVisibleChange,Yi=zn.popupVisible,so=zn.popupClassName,ko=zn.popupPlacement;warning(!Wi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Yi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(so===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(ko===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Bi(zn,Wi){if(zn){var Yi=function so(ko){for(var _i=0;_i":ps,$a=zn.loadingIcon,nl=zn.children,ka=zn.dropdownMatchSelectWidth,Xs=ka===void 0?!1:ka,zs=zn.showCheckedStrategy,xa=zs===void 0?Et:zs,Ea=(0,ie.Z)(zn,Vr),_a=(0,se.ZP)(Yi),Ba=!!To,Al=(0,Be.Z)(hs,{value:Ts,postState:hn}),ks=(0,Y.Z)(Al,2),Za=ks[0],lu=ks[1],mu=z.useMemo(function(){return Ue(_i)},[JSON.stringify(_i)]),nu=un(mu,Ds),Fl=(0,Y.Z)(nu,3),va=Fl[0],Ua=Fl[1],Yl=Fl[2],Cc=(0,Be.Z)("",{value:Bs,postState:function(pn){return pn||""}}),ch=(0,Y.Z)(Cc,2),mh=ch[0],_h=ch[1],wh=function(pn,pu){_h(pn),pu.source!=="blur"&&fa&&fa(pn)},vu=Lr(ba),ru=(0,Y.Z)(vu,2),Ql=ru[0],Hi=ru[1],ji=Gt(mh,va,mu,el||ko,Hi,Qr),Gn=ze(va,mu),Sr=Xi(Ba,Za,Ua,Yl,Gn),Rr=(0,Y.Z)(Sr,3),co=Rr[0],ns=Rr[1],fs=Rr[2],vs=z.useMemo(function(){var uu=et(co),pn=Nt(uu,Ua,xa);return[].concat((0,v.Z)(fs),(0,v.Z)(Yl(pn)))},[co,Ua,Yl,fs,xa]),as=vt(vs,va,mu,Ba,Ri),da=(0,Ie.Z)(function(uu){if(lu(uu),Ai){var pn=hn(uu),pu=pn.map(function(Mc){return Te(Mc,va,mu).map(function(Fc){return Fc.option})}),tc=Ba?pn:pn[0],dc=Ba?pu:pu[0];Ai(tc,dc)}}),Ss=fi(Ba,da,co,ns,fs,Ua,Yl,xa),pl=(0,Ie.Z)(function(uu){(!Ba||ao)&&_h(""),Ss(uu)}),Vs=function(pn,pu){if(pu.type==="clear"){da([]);return}var tc=pu.values[0],dc=tc.valueCells;pl(dc)},ol=dt!==void 0?dt:sn,sl=Zt||Mt,eu=Ui||Ur,kl=function(pn){Ao==null||Ao(pn),rs==null||rs(pn)},Wl=z.useMemo(function(){return{options:va,fieldNames:mu,values:co,halfValues:ns,changeOnSelect:Qr,onSelect:pl,checkable:To,searchOptions:ji,dropdownPrefixCls:el,loadData:tl,expandTrigger:Rs,expandIcon:Po,loadingIcon:$a,dropdownMenuColumnStyle:Kt}},[va,mu,co,ns,Qr,pl,To,ji,el,tl,Rs,Po,$a,Kt]),Dl=!(mh?ji:va).length,ml=mh&&Hi.matchInputWidth||Dl?{}:{minWidth:"auto"};return z.createElement(ct.Provider,{value:Wl},z.createElement(ae.Ac,(0,W.Z)({},Ea,{ref:Wi,id:_a,prefixCls:ko,autoClearSearchValue:ao,dropdownMatchSelectWidth:Xs,dropdownStyle:(0,X.Z)((0,X.Z)({},ml),Nn),displayValues:as,onDisplayValuesChange:Vs,mode:Ba?"multiple":void 0,searchValue:mh,onSearch:wh,showSearch:Ql,OptionList:Rt,emptyOptions:Dl,open:ol,dropdownClassName:sl,placement:eu,onDropdownVisibleChange:kl,getRawInputElement:function(){return nl}})))});Rn.SHOW_PARENT=Et,Rn.SHOW_CHILD=ht,Rn.Panel=oi;var Xt=Rn,Sn=Xt,Pn=x(41123),hr=x(40870),mt=x(12149),tt=x(62625),kt=x(24902),vn=x(58798),vr=x(70990),qr=x(57801),Ni=x(26504),li=x(20804),Un=x(51623),dn=x(90426),xt=x(21028),it=x(22785),Bt=x(14275),rn=x(60621),ir=x(55449);function tr(zn,Wi){const{getPrefixCls:Yi,direction:so,renderEmpty:ko}=z.useContext(vn.E_),_i=Wi||so,hs=Yi("select",zn),Ts=Yi("cascader",zn);return[hs,Ts,_i,ko]}function Jn(zn,Wi){return z.useMemo(()=>Wi?z.createElement("span",{className:`${zn}-checkbox-inner`}):!1,[Wi])}var nn=x(39820),er=x(20555),Fr=x(24545);function jr(zn,Wi,Yi){let so=Yi;Yi||(so=Wi?z.createElement(nn.Z,null):z.createElement(Fr.Z,null));const ko=z.createElement("span",{className:`${zn}-menu-item-loading-icon`},z.createElement(er.Z,{spin:!0}));return[so,ko]}var bo=x(99109),zt=x(79263),en=x(78600),Cn=x(75906),rr=x(91110),Er=zn=>{const{prefixCls:Wi,componentCls:Yi}=zn,so=`${Yi}-menu-item`,ko=` + &${so}-expand ${so}-expand-icon, + ${so}-loading-icon +`;return[(0,Cn.C2)(`${Wi}-checkbox`,zn),{[Yi]:{"&-checkbox":{top:0,marginInlineEnd:zn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Yi}-menu-empty`]:{[`${Yi}-menu`]:{width:"100%",height:"auto",[so]:{color:zn.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:zn.controlItemWidth,height:zn.dropdownHeight,margin:0,padding:zn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,en.bf)(zn.lineWidth)} ${zn.lineType} ${zn.colorSplit}`},"&-item":Object.assign(Object.assign({},rr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:zn.optionPadding,lineHeight:zn.lineHeight,cursor:"pointer",transition:`all ${zn.motionDurationMid}`,borderRadius:zn.borderRadiusSM,"&:hover":{background:zn.controlItemBgHover},"&-disabled":{color:zn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[ko]:{color:zn.colorTextDisabled}},[`&-active:not(${so}-disabled)`]:{["&, &:hover"]:{fontWeight:zn.optionSelectedFontWeight,backgroundColor:zn.optionSelectedBg}},"&-content":{flex:"auto"},[ko]:{marginInlineStart:zn.paddingXXS,color:zn.colorTextDescription,fontSize:zn.fontSizeIcon},"&-keyword":{color:zn.colorHighlight}})}}}]};const ui=zn=>{const{componentCls:Wi,antCls:Yi}=zn;return[{[Wi]:{width:zn.controlWidth}},{[`${Wi}-dropdown`]:[{[`&${Yi}-select-dropdown`]:{padding:0}},Er(zn)]},{[`${Wi}-dropdown-rtl`]:{direction:"rtl"}},(0,bo.c)(zn)]},Gr=zn=>{const Wi=Math.round((zn.controlHeight-zn.fontSize*zn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:zn.controlItemBgActive,optionSelectedFontWeight:zn.fontWeightStrong,optionPadding:`${Wi}px ${zn.paddingSM}px`,menuPadding:zn.paddingXXS}};var zr=(0,zt.I$)("Cascader",zn=>[ui(zn)],Gr);const Ei=zn=>{const{componentCls:Wi}=zn;return{[`${Wi}-panel`]:[Er(zn),{display:"inline-flex",border:`${(0,en.bf)(zn.lineWidth)} ${zn.lineType} ${zn.colorSplit}`,borderRadius:zn.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Wi}-menus`]:{alignItems:"stretch"},[`${Wi}-menu`]:{height:"auto"},"&-empty":{padding:zn.paddingXXS}}]}};var Zi=(0,zt.ZP)(["Cascader","Panel"],zn=>Ei(zn),Gr),Xr=zn=>{const{prefixCls:Wi,className:Yi,multiple:so,rootClassName:ko,notFoundContent:_i,direction:hs,expandIcon:Ts}=zn,[Qr,Ai,Ri,To]=tr(Wi,hs),yo=(0,Ni.Z)(Ai),[ao,Bs,fa]=zr(Ai,yo);Zi(Ai);const ba=Ri==="rtl",[Rs,Ds]=jr(Qr,ba,Ts),el=_i||(To==null?void 0:To("Cascader"))||z.createElement(vr.Z,{componentName:"Cascader"}),tl=Jn(Ai,so);return ao(z.createElement(oi,Object.assign({},zn,{checkable:tl,prefixCls:Ai,className:A()(Yi,Bs,ko,fa,yo),notFoundContent:el,direction:Ri,expandIcon:Rs,loadingIcon:Ds})))},Qo=function(zn,Wi){var Yi={};for(var so in zn)Object.prototype.hasOwnProperty.call(zn,so)&&Wi.indexOf(so)<0&&(Yi[so]=zn[so]);if(zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ko=0,so=Object.getOwnPropertySymbols(zn);koQr===0?[Ts]:[].concat((0,v.Z)(hs),[Wi,Ts]),[]),ko=[];let _i=0;return so.forEach((hs,Ts)=>{const Qr=_i+hs.length;let Ai=zn.slice(_i,Qr);_i=Qr,Ts%2===1&&(Ai=z.createElement("span",{className:`${Yi}-menu-item-keyword`,key:`separator-${Ts}`},Ai)),ko.push(Ai)}),ko}const sr=(zn,Wi,Yi,so)=>{const ko=[],_i=zn.toLowerCase();return Wi.forEach((hs,Ts)=>{Ts!==0&&ko.push(" / ");let Qr=hs[so.label];const Ai=typeof Qr;(Ai==="string"||Ai==="number")&&(Qr=Br(String(Qr),_i,Yi)),ko.push(Qr)}),ko},ii=z.forwardRef((zn,Wi)=>{var Yi;const{prefixCls:so,size:ko,disabled:_i,className:hs,rootClassName:Ts,multiple:Qr,bordered:Ai=!0,transitionName:Ri,choiceTransitionName:To="",popupClassName:yo,dropdownClassName:ao,expandIcon:Bs,placement:fa,showSearch:ba,allowClear:Rs=!0,notFoundContent:Ds,direction:el,getPopupContainer:tl,status:sn,showArrow:dt,builtinPlacements:Mt,style:Zt,variant:Kt}=zn,Nn=Qo(zn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Ur=(0,Pn.Z)(Nn,["suffixIcon"]),{getPopupContainer:Ui,getPrefixCls:Ao,popupOverflow:rs,cascader:ps}=z.useContext(vn.E_),{status:Po,hasFeedback:$a,isFormItemInput:nl,feedbackIcon:ka}=z.useContext(Un.aM),Xs=(0,kt.F)(Po,sn),[zs,xa,Ea,_a]=tr(so,el),Ba=Ea==="rtl",Al=Ao(),ks=(0,Ni.Z)(zs),[Za,lu,mu]=(0,it.Z)(zs,ks),nu=(0,Ni.Z)(xa),[Fl]=zr(xa,nu),{compactSize:va,compactItemClassnames:Ua}=(0,ir.ri)(zs,el),[Yl,Cc]=(0,dn.Z)(Kt,Ai),ch=Ds||(_a==null?void 0:_a("Cascader"))||z.createElement(vr.Z,{componentName:"Cascader"}),mh=A()(yo||ao,`${xa}-dropdown`,{[`${xa}-dropdown-rtl`]:Ea==="rtl"},Ts,ks,nu,lu,mu),_h=z.useMemo(()=>{if(!ba)return ba;let da={render:sr};return typeof ba=="object"&&(da=Object.assign(Object.assign({},da),ba)),da},[ba]),wh=(0,li.Z)(da=>{var Ss;return(Ss=ko!=null?ko:va)!==null&&Ss!==void 0?Ss:da}),vu=z.useContext(qr.Z),ru=_i!=null?_i:vu,[Ql,Hi]=jr(zs,Ba,Bs),ji=Jn(xa,Qr),Gn=(0,rn.Z)(zn.suffixIcon,dt),{suffixIcon:Sr,removeIcon:Rr,clearIcon:co}=(0,Bt.Z)(Object.assign(Object.assign({},zn),{hasFeedback:$a,feedbackIcon:ka,showSuffixIcon:Gn,multiple:Qr,prefixCls:zs,componentName:"Cascader"})),ns=z.useMemo(()=>fa!==void 0?fa:Ba?"bottomRight":"bottomLeft",[fa,Ba]),fs=Rs===!0?{clearIcon:co}:Rs,[vs]=(0,hr.Cn)("SelectLike",(Yi=Ur.dropdownStyle)===null||Yi===void 0?void 0:Yi.zIndex),as=z.createElement(Sn,Object.assign({prefixCls:zs,className:A()(!so&&xa,{[`${zs}-lg`]:wh==="large",[`${zs}-sm`]:wh==="small",[`${zs}-rtl`]:Ba,[`${zs}-${Yl}`]:Cc,[`${zs}-in-form-item`]:nl},(0,kt.Z)(zs,Xs,$a),Ua,ps==null?void 0:ps.className,hs,Ts,ks,nu,lu,mu),disabled:ru,style:Object.assign(Object.assign({},ps==null?void 0:ps.style),Zt)},Ur,{builtinPlacements:(0,xt.Z)(Mt,rs),direction:Ea,placement:ns,notFoundContent:ch,allowClear:fs,showSearch:_h,expandIcon:Ql,suffixIcon:Sr,removeIcon:Rr,loadingIcon:Hi,checkable:ji,dropdownClassName:mh,dropdownPrefixCls:so||xa,dropdownStyle:Object.assign(Object.assign({},Ur.dropdownStyle),{zIndex:vs}),choiceTransitionName:(0,mt.m)(Al,"",To),transitionName:(0,mt.m)(Al,"slide-up",Ri),getPopupContainer:tl||Ui,ref:Wi}));return Fl(Za(as))}),qi=(0,tt.Z)(ii);ii.SHOW_PARENT=qo,ii.SHOW_CHILD=pr,ii.Panel=Xr,ii._InternalPanelDoNotUseOrYouWillBeFired=qi;var Ln=ii},75906:function(St,me,x){"use strict";x.d(me,{C2:function(){return X}});var v=x(78600),z=x(91110),P=x(90882),A=x(79263);const W=Y=>{const{checkboxCls:ie}=Y,ae=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,z.Wf)(Y)),{display:"inline-flex",flexWrap:"wrap",columnGap:Y.marginXS,[`> ${Y.antCls}-row`]:{flex:1}}),[ae]:Object.assign(Object.assign({},(0,z.Wf)(Y)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ae}`]:{marginInlineStart:0},[`&${ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,z.Wf)(Y)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Y.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,z.oN)(Y))},[`${ie}-inner`]:{boxSizing:"border-box",display:"block",width:Y.checkboxSize,height:Y.checkboxSize,direction:"ltr",backgroundColor:Y.colorBgContainer,border:`${(0,v.bf)(Y.lineWidth)} ${Y.lineType} ${Y.colorBorder}`,borderRadius:Y.borderRadiusSM,borderCollapse:"separate",transition:`all ${Y.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Y.calc(Y.checkboxSize).div(14).mul(5).equal(),height:Y.calc(Y.checkboxSize).div(14).mul(8).equal(),border:`${(0,v.bf)(Y.lineWidthBold)} solid ${Y.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Y.motionDurationFast} ${Y.motionEaseInBack}, opacity ${Y.motionDurationFast}`}},"& + span":{paddingInlineStart:Y.paddingXS,paddingInlineEnd:Y.paddingXS}})},{[` + ${ae}:not(${ae}-disabled), + ${ie}:not(${ie}-disabled) + `]:{[`&:hover ${ie}-inner`]:{borderColor:Y.colorPrimary}},[`${ae}:not(${ae}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:Y.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:Y.colorPrimary,borderColor:Y.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Y.motionDurationMid} ${Y.motionEaseOutBack} ${Y.motionDurationFast}`}}},[` + ${ae}-checked:not(${ae}-disabled), + ${ie}-checked:not(${ie}-disabled) + `]:{[`&:hover ${ie}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:Y.colorBgContainer,borderColor:Y.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Y.calc(Y.fontSizeLG).div(2).equal(),height:Y.calc(Y.fontSizeLG).div(2).equal(),backgroundColor:Y.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ae}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:Y.colorBgContainerDisabled,borderColor:Y.colorBorder,"&:after":{borderColor:Y.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Y.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:Y.colorTextDisabled}}}]};function X(Y,ie){const ae=(0,P.TS)(ie,{checkboxCls:`.${Y}`,checkboxSize:ie.controlInteractiveSize});return[W(ae)]}me.ZP=(0,A.I$)("Checkbox",(Y,ie)=>{let{prefixCls:ae}=ie;return[X(ae,Y)]})},61611:function(St,me,x){"use strict";x.d(me,{Z:function(){return Ql}});var v=x(77617),z=x(92310),P=x.n(z),A=x(89308),W=x(62625),X=x(24902),Y=x(58798),ie=x(57801),ae=x(26504),se=x(20804),Ie=x(51623),Be=x(73323),Ce=x(37114),ct=x(79384),nt=x(16514),Ge=x(35372),at=x(54131),Ye=x(61577),rt=x(22946),Gt=x(3711),yt=x(71038),Et=x(56348),ht=x(13255),Pe=x(64993),et=["b"],Oe=["v"],Ue=function(ji){return Math.round(Number(ji||0))},je=function(ji){if(ji&&(0,ht.Z)(ji)==="object"&&"h"in ji&&"b"in ji){var Gn=ji,Sr=Gn.b,Rr=(0,Et.Z)(Gn,et);return(0,at.Z)((0,at.Z)({},Rr),{},{v:Sr})}return typeof ji=="string"&&/hsb/.test(ji)?ji.replace(/hsb/,"hsv"):ji},ft=function(Hi){(0,Gt.Z)(Gn,Hi);var ji=(0,yt.Z)(Gn);function Gn(Sr){return(0,Ye.Z)(this,Gn),ji.call(this,je(Sr))}return(0,rt.Z)(Gn,[{key:"toHsbString",value:function(){var Rr=this.toHsb(),co=Ue(Rr.s*100),ns=Ue(Rr.b*100),fs=Ue(Rr.h),vs=Rr.a,as="hsb(".concat(fs,", ").concat(co,"%, ").concat(ns,"%)"),da="hsba(".concat(fs,", ").concat(co,"%, ").concat(ns,"%, ").concat(vs.toFixed(vs===0?0:2),")");return vs===1?as:da}},{key:"toHsb",value:function(){var Rr=this.toHsv();(0,ht.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(Rr=this.originalInput);var co=Rr,ns=co.v,fs=(0,Et.Z)(co,Oe);return(0,at.Z)((0,at.Z)({},fs),{},{b:Rr.v})}}]),Gn}(Pe.C),Ct="rc-color-picker",Xe=function(ji){return ji instanceof ft?ji:new ft(ji)},hn=Xe("#1677ff"),Nt=function(ji){var Gn=ji.offset,Sr=ji.targetRef,Rr=ji.containerRef,co=ji.color,ns=ji.type,fs=Rr.current.getBoundingClientRect(),vs=fs.width,as=fs.height,da=Sr.current.getBoundingClientRect(),Ss=da.width,pl=da.height,Vs=Ss/2,ol=pl/2,sl=(Gn.x+Vs)/vs,eu=1-(Gn.y+ol)/as,kl=co.toHsb(),Wl=sl,Dl=(Gn.x+Vs)/vs*360;if(ns)switch(ns){case"hue":return Xe((0,at.Z)((0,at.Z)({},kl),{},{h:Dl<=0?0:Dl}));case"alpha":return Xe((0,at.Z)((0,at.Z)({},kl),{},{a:Wl<=0?0:Wl}))}return Xe({h:kl.h,s:sl<=0?0:sl,b:eu>=1?1:eu,a:kl.a})},Te=function(ji,Gn,Sr,Rr){var co=ji.current.getBoundingClientRect(),ns=co.width,fs=co.height,vs=Gn.current.getBoundingClientRect(),as=vs.width,da=vs.height,Ss=as/2,pl=da/2,Vs=Sr.toHsb();if(!(as===0&&da===0||as!==da)){if(Rr)switch(Rr){case"hue":return{x:Vs.h/360*ns-Ss,y:-pl/3};case"alpha":return{x:Vs.a/1*ns-Ss,y:-pl/3}}return{x:Vs.s*ns-Ss,y:(1-Vs.b)*fs-pl}}},vt=function(ji){var Gn=ji.color,Sr=ji.prefixCls,Rr=ji.className,co=ji.style,ns=ji.onClick,fs="".concat(Sr,"-color-block");return v.createElement("div",{className:P()(fs,Rr),style:co,onClick:ns},v.createElement("div",{className:"".concat(fs,"-inner"),style:{background:Gn}}))},ze=vt;function Vt(Hi){var ji="touches"in Hi?Hi.touches[0]:Hi,Gn=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Sr=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:ji.pageX-Gn,pageY:ji.pageY-Sr}}function Tt(Hi){var ji=Hi.offset,Gn=Hi.targetRef,Sr=Hi.containerRef,Rr=Hi.direction,co=Hi.onDragChange,ns=Hi.onDragChangeComplete,fs=Hi.calculate,vs=Hi.color,as=Hi.disabledDrag,da=(0,v.useState)(ji||{x:0,y:0}),Ss=(0,Ge.Z)(da,2),pl=Ss[0],Vs=Ss[1],ol=(0,v.useRef)(null),sl=(0,v.useRef)(null),eu=(0,v.useRef)({flag:!1});(0,v.useEffect)(function(){if(eu.current.flag===!1){var uu=fs==null?void 0:fs(Sr);uu&&Vs(uu)}},[vs,Sr]),(0,v.useEffect)(function(){return function(){document.removeEventListener("mousemove",ol.current),document.removeEventListener("mouseup",sl.current),document.removeEventListener("touchmove",ol.current),document.removeEventListener("touchend",sl.current),ol.current=null,sl.current=null}},[]);var kl=function(pn){var pu=Vt(pn),tc=pu.pageX,dc=pu.pageY,Mc=Sr.current.getBoundingClientRect(),Fc=Mc.x,cd=Mc.y,Vd=Mc.width,yd=Mc.height,Sh=Gn.current.getBoundingClientRect(),xh=Sh.width,Ud=Sh.height,Hf=xh/2,ef=Ud/2,Pd=Math.max(0,Math.min(tc-Fc,Vd))-Hf,Mf=Math.max(0,Math.min(dc-cd,yd))-ef,$f={x:Pd,y:Rr==="x"?pl.y:Mf};if(xh===0&&Ud===0||xh!==Ud)return!1;Vs($f),co==null||co($f)},Wl=function(pn){pn.preventDefault(),kl(pn)},Dl=function(pn){pn.preventDefault(),eu.current.flag=!1,document.removeEventListener("mousemove",ol.current),document.removeEventListener("mouseup",sl.current),document.removeEventListener("touchmove",ol.current),document.removeEventListener("touchend",sl.current),ol.current=null,sl.current=null,ns==null||ns()},ml=function(pn){document.removeEventListener("mousemove",ol.current),document.removeEventListener("mouseup",sl.current),!as&&(kl(pn),eu.current.flag=!0,document.addEventListener("mousemove",Wl),document.addEventListener("mouseup",Dl),document.addEventListener("touchmove",Wl),document.addEventListener("touchend",Dl),ol.current=Wl,sl.current=Dl)};return[pl,ml]}var un=Tt,on=function(ji){var Gn=ji.size,Sr=Gn===void 0?"default":Gn,Rr=ji.color,co=ji.prefixCls;return v.createElement("div",{className:P()("".concat(co,"-handler"),(0,nt.Z)({},"".concat(co,"-handler-sm"),Sr==="small")),style:{backgroundColor:Rr}})},Lr=on,Yr=function(ji){var Gn=ji.children,Sr=ji.style,Rr=ji.prefixCls;return v.createElement("div",{className:"".concat(Rr,"-palette"),style:(0,at.Z)({position:"relative"},Sr)},Gn)},fi=Yr,Xi=(0,v.forwardRef)(function(Hi,ji){var Gn=Hi.children,Sr=Hi.offset;return v.createElement("div",{ref:ji,style:{position:"absolute",left:Sr.x,top:Sr.y,zIndex:1}},Gn)}),Qi=Xi,hi=function(ji){var Gn=ji.color,Sr=ji.onChange,Rr=ji.prefixCls,co=ji.onChangeComplete,ns=ji.disabled,fs=(0,v.useRef)(),vs=(0,v.useRef)(),as=(0,v.useRef)(Gn),da=un({color:Gn,containerRef:fs,targetRef:vs,calculate:function(sl){return Te(sl,vs,Gn)},onDragChange:function(sl){var eu=Nt({offset:sl,targetRef:vs,containerRef:fs,color:Gn});as.current=eu,Sr(eu)},onDragChangeComplete:function(){return co==null?void 0:co(as.current)},disabledDrag:ns}),Ss=(0,Ge.Z)(da,2),pl=Ss[0],Vs=Ss[1];return v.createElement("div",{ref:fs,className:"".concat(Rr,"-select"),onMouseDown:Vs,onTouchStart:Vs},v.createElement(fi,{prefixCls:Rr},v.createElement(Qi,{offset:pl,ref:vs},v.createElement(Lr,{color:Gn.toRgbString(),prefixCls:Rr})),v.createElement("div",{className:"".concat(Rr,"-saturation"),style:{backgroundColor:"hsl(".concat(Gn.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Go=hi,Mo=function(ji){var Gn=ji.colors,Sr=ji.children,Rr=ji.direction,co=Rr===void 0?"to right":Rr,ns=ji.type,fs=ji.prefixCls,vs=(0,v.useMemo)(function(){return Gn.map(function(as,da){var Ss=Xe(as);return ns==="alpha"&&da===Gn.length-1&&Ss.setAlpha(1),Ss.toRgbString()}).join(",")},[Gn,ns]);return v.createElement("div",{className:"".concat(fs,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(co,", ").concat(vs,")")}},Sr)},pe=Mo,Ii=function(ji){var Gn=ji.gradientColors,Sr=ji.direction,Rr=ji.type,co=Rr===void 0?"hue":Rr,ns=ji.color,fs=ji.value,vs=ji.onChange,as=ji.onChangeComplete,da=ji.disabled,Ss=ji.prefixCls,pl=(0,v.useRef)(),Vs=(0,v.useRef)(),ol=(0,v.useRef)(ns),sl=un({color:ns,targetRef:Vs,containerRef:pl,calculate:function(ml){return Te(ml,Vs,ns,co)},onDragChange:function(ml){var uu=Nt({offset:ml,targetRef:Vs,containerRef:pl,color:ns,type:co});ol.current=uu,vs(uu)},onDragChangeComplete:function(){as==null||as(ol.current,co)},direction:"x",disabledDrag:da}),eu=(0,Ge.Z)(sl,2),kl=eu[0],Wl=eu[1];return v.createElement("div",{ref:pl,className:P()("".concat(Ss,"-slider"),"".concat(Ss,"-slider-").concat(co)),onMouseDown:Wl,onTouchStart:Wl},v.createElement(fi,{prefixCls:Ss},v.createElement(Qi,{offset:kl,ref:Vs},v.createElement(Lr,{size:"small",color:fs,prefixCls:Ss})),v.createElement(pe,{colors:Gn,direction:Sr,type:co,prefixCls:Ss})))},Vi=Ii;function ro(Hi){return Hi!==void 0}var ai=function(ji,Gn){var Sr=Gn.defaultValue,Rr=Gn.value,co=(0,v.useState)(function(){var as;return ro(Rr)?as=Rr:ro(Sr)?as=Sr:as=ji,Xe(as)}),ns=(0,Ge.Z)(co,2),fs=ns[0],vs=ns[1];return(0,v.useEffect)(function(){Rr&&vs(Xe(Rr))},[Rr]),[fs,vs]},Ms=ai,Ar=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],Rt=(0,v.forwardRef)(function(Hi,ji){var Gn=Hi.value,Sr=Hi.defaultValue,Rr=Hi.prefixCls,co=Rr===void 0?Ct:Rr,ns=Hi.onChange,fs=Hi.onChangeComplete,vs=Hi.className,as=Hi.style,da=Hi.panelRender,Ss=Hi.disabledAlpha,pl=Ss===void 0?!1:Ss,Vs=Hi.disabled,ol=Vs===void 0?!1:Vs,sl=Ms(hn,{value:Gn,defaultValue:Sr}),eu=(0,Ge.Z)(sl,2),kl=eu[0],Wl=eu[1],Dl=(0,v.useMemo)(function(){var tc=Xe(kl.toRgbString());return tc.setAlpha(1),tc.toRgbString()},[kl]),ml=P()("".concat(co,"-panel"),vs,(0,nt.Z)({},"".concat(co,"-panel-disabled"),ol)),uu={prefixCls:co,onChangeComplete:fs,disabled:ol},pn=function(dc,Mc){Gn||Wl(dc),ns==null||ns(dc,Mc)},pu=v.createElement(v.Fragment,null,v.createElement(Go,(0,ct.Z)({color:kl,onChange:pn},uu)),v.createElement("div",{className:"".concat(co,"-slider-container")},v.createElement("div",{className:P()("".concat(co,"-slider-group"),(0,nt.Z)({},"".concat(co,"-slider-group-disabled-alpha"),pl))},v.createElement(Vi,(0,ct.Z)({gradientColors:Ar,color:kl,value:"hsl(".concat(kl.toHsb().h,",100%, 50%)"),onChange:function(dc){return pn(dc,"hue")}},uu)),!pl&&v.createElement(Vi,(0,ct.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Dl],color:kl,value:kl.toRgbString(),onChange:function(dc){return pn(dc,"alpha")}},uu))),v.createElement(ze,{color:kl.toRgbString(),prefixCls:co})));return v.createElement("div",{className:ml,style:as,ref:ji},typeof da=="function"?da(pu):pu)}),jn=Rt;const wr=v.createContext({}),oi=v.createContext({}),{Provider:Ti}=wr,{Provider:Bi}=oi,no=(Hi,ji)=>(Hi==null?void 0:Hi.replace(/[^\w/]/gi,"").slice(0,ji?8:6))||"",Vr=(Hi,ji)=>Hi?no(Hi,ji):"";let Rn=function(){function Hi(ji){(0,Ye.Z)(this,Hi),this.metaColor=new ft(ji),ji||this.metaColor.setAlpha(0)}return(0,rt.Z)(Hi,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Vr(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),Hi}();const Xt=Hi=>Hi instanceof Rn?Hi:new Rn(Hi),Sn=Hi=>Math.round(Number(Hi||0)),Pn=Hi=>Sn(Hi.toHsb().a*100),hr=(Hi,ji)=>{const Gn=Hi.toHsb();return Gn.a=ji||1,Xt(Gn)};var tt=Hi=>{let{prefixCls:ji,value:Gn,colorCleared:Sr,onChange:Rr}=Hi;const co=()=>{if(Gn&&!Sr){const ns=Gn.toHsb();ns.a=0;const fs=Xt(ns);Rr==null||Rr(fs)}};return v.createElement("div",{className:`${ji}-clear`,onClick:co})},kt=x(16042),vn;(function(Hi){Hi.hex="hex",Hi.rgb="rgb",Hi.hsb="hsb"})(vn||(vn={}));var vr=x(71750),Ni=Hi=>{let{prefixCls:ji,min:Gn=0,max:Sr=100,value:Rr,onChange:co,className:ns,formatter:fs}=Hi;const vs=`${ji}-steppers`,[as,da]=(0,v.useState)(Rr);return(0,v.useEffect)(()=>{Number.isNaN(Rr)||da(Rr)},[Rr]),v.createElement(vr.Z,{className:P()(vs,ns),min:Gn,max:Sr,value:as,formatter:fs,size:"small",onChange:Ss=>{Rr||da(Ss||0),co==null||co(Ss)}})},Un=Hi=>{let{prefixCls:ji,value:Gn,onChange:Sr}=Hi;const Rr=`${ji}-alpha-input`,[co,ns]=(0,v.useState)(Xt(Gn||"#000"));(0,v.useEffect)(()=>{Gn&&ns(Gn)},[Gn]);const fs=vs=>{const as=co.toHsb();as.a=(vs||0)/100;const da=Xt(as);Gn||ns(da),Sr==null||Sr(da)};return v.createElement(Ni,{value:Pn(co),prefixCls:ji,formatter:vs=>`${vs}%`,className:Rr,onChange:fs})},dn=x(46527);const xt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,it=Hi=>xt.test(`#${Hi}`);var rn=Hi=>{let{prefixCls:ji,value:Gn,onChange:Sr}=Hi;const Rr=`${ji}-hex-input`,[co,ns]=(0,v.useState)(Gn==null?void 0:Gn.toHex());(0,v.useEffect)(()=>{const vs=Gn==null?void 0:Gn.toHex();it(vs)&&Gn&&ns(no(vs))},[Gn]);const fs=vs=>{const as=vs.target.value;ns(no(as)),it(no(as,!0))&&(Sr==null||Sr(Xt(as)))};return v.createElement(dn.Z,{className:Rr,value:co,prefix:"#",onChange:fs,size:"small"})},tr=Hi=>{let{prefixCls:ji,value:Gn,onChange:Sr}=Hi;const Rr=`${ji}-hsb-input`,[co,ns]=(0,v.useState)(Xt(Gn||"#000"));(0,v.useEffect)(()=>{Gn&&ns(Gn)},[Gn]);const fs=(vs,as)=>{const da=co.toHsb();da[as]=as==="h"?vs:(vs||0)/100;const Ss=Xt(da);Gn||ns(Ss),Sr==null||Sr(Ss)};return v.createElement("div",{className:Rr},v.createElement(Ni,{max:360,min:0,value:Number(co.toHsb().h),prefixCls:ji,className:Rr,formatter:vs=>Sn(vs||0).toString(),onChange:vs=>fs(Number(vs),"h")}),v.createElement(Ni,{max:100,min:0,value:Number(co.toHsb().s)*100,prefixCls:ji,className:Rr,formatter:vs=>`${Sn(vs||0)}%`,onChange:vs=>fs(Number(vs),"s")}),v.createElement(Ni,{max:100,min:0,value:Number(co.toHsb().b)*100,prefixCls:ji,className:Rr,formatter:vs=>`${Sn(vs||0)}%`,onChange:vs=>fs(Number(vs),"b")}))},nn=Hi=>{let{prefixCls:ji,value:Gn,onChange:Sr}=Hi;const Rr=`${ji}-rgb-input`,[co,ns]=(0,v.useState)(Xt(Gn||"#000"));(0,v.useEffect)(()=>{Gn&&ns(Gn)},[Gn]);const fs=(vs,as)=>{const da=co.toRgb();da[as]=vs||0;const Ss=Xt(da);Gn||ns(Ss),Sr==null||Sr(Ss)};return v.createElement("div",{className:Rr},v.createElement(Ni,{max:255,min:0,value:Number(co.toRgb().r),prefixCls:ji,className:Rr,onChange:vs=>fs(Number(vs),"r")}),v.createElement(Ni,{max:255,min:0,value:Number(co.toRgb().g),prefixCls:ji,className:Rr,onChange:vs=>fs(Number(vs),"g")}),v.createElement(Ni,{max:255,min:0,value:Number(co.toRgb().b),prefixCls:ji,className:Rr,onChange:vs=>fs(Number(vs),"b")}))};const er=[vn.hex,vn.hsb,vn.rgb].map(Hi=>({value:Hi,label:Hi.toLocaleUpperCase()}));var jr=Hi=>{const{prefixCls:ji,format:Gn,value:Sr,disabledAlpha:Rr,onFormatChange:co,onChange:ns}=Hi,[fs,vs]=(0,A.Z)(vn.hex,{value:Gn,onChange:co}),as=`${ji}-input`,da=pl=>{vs(pl)},Ss=(0,v.useMemo)(()=>{const pl={value:Sr,prefixCls:ji,onChange:ns};switch(fs){case vn.hsb:return v.createElement(tr,Object.assign({},pl));case vn.rgb:return v.createElement(nn,Object.assign({},pl));case vn.hex:default:return v.createElement(rn,Object.assign({},pl))}},[fs,ji,Sr,ns]);return v.createElement("div",{className:`${as}-container`},v.createElement(kt.Z,{value:fs,variant:"borderless",getPopupContainer:pl=>pl,popupMatchSelectWidth:68,placement:"bottomRight",onChange:da,className:`${ji}-format-select`,size:"small",options:er}),v.createElement("div",{className:as},Ss),!Rr&&v.createElement(Un,{prefixCls:ji,value:Sr,onChange:ns}))},bo=function(Hi,ji){var Gn={};for(var Sr in Hi)Object.prototype.hasOwnProperty.call(Hi,Sr)&&ji.indexOf(Sr)<0&&(Gn[Sr]=Hi[Sr]);if(Hi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rr=0,Sr=Object.getOwnPropertySymbols(Hi);Rr{const Hi=(0,v.useContext)(wr),{prefixCls:ji,colorCleared:Gn,allowClear:Sr,value:Rr,disabledAlpha:co,onChange:ns,onClear:fs,onChangeComplete:vs}=Hi,as=bo(Hi,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return v.createElement(v.Fragment,null,Sr&&v.createElement(tt,Object.assign({prefixCls:ji,value:Rr,colorCleared:Gn,onChange:da=>{ns==null||ns(da),fs==null||fs()}},as)),v.createElement(jn,{prefixCls:ji,value:Rr==null?void 0:Rr.toHsb(),disabledAlpha:co,onChange:(da,Ss)=>ns==null?void 0:ns(da,Ss,!0),onChangeComplete:vs}),v.createElement(jr,Object.assign({value:Rr,onChange:ns,prefixCls:ji,disabledAlpha:co},as)))},Cn=x(24545),rr=x(49397),Pr=x(32188),Er=x(6415),ui=x(44516),Gr=x(39193),zr=v.forwardRef(function(Hi,ji){var Gn,Sr=Hi.prefixCls,Rr=Hi.forceRender,co=Hi.className,ns=Hi.style,fs=Hi.children,vs=Hi.isActive,as=Hi.role,da=v.useState(vs||Rr),Ss=(0,Ge.Z)(da,2),pl=Ss[0],Vs=Ss[1];return v.useEffect(function(){(Rr||vs)&&Vs(!0)},[Rr,vs]),pl?v.createElement("div",{ref:ji,className:P()("".concat(Sr,"-content"),(Gn={},(0,nt.Z)(Gn,"".concat(Sr,"-content-active"),vs),(0,nt.Z)(Gn,"".concat(Sr,"-content-inactive"),!vs),Gn),co),style:ns,role:as},v.createElement("div",{className:"".concat(Sr,"-content-box")},fs)):null});zr.displayName="PanelContent";var Ei=zr,Zi=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Kr=v.forwardRef(function(Hi,ji){var Gn,Sr,Rr=Hi.showArrow,co=Rr===void 0?!0:Rr,ns=Hi.headerClass,fs=Hi.isActive,vs=Hi.onItemClick,as=Hi.forceRender,da=Hi.className,Ss=Hi.prefixCls,pl=Hi.collapsible,Vs=Hi.accordion,ol=Hi.panelKey,sl=Hi.extra,eu=Hi.header,kl=Hi.expandIcon,Wl=Hi.openMotion,Dl=Hi.destroyInactivePanel,ml=Hi.children,uu=(0,Et.Z)(Hi,Zi),pn=pl==="disabled",pu=pl==="header",tc=pl==="icon",dc=sl!=null&&typeof sl!="boolean",Mc=function(){vs==null||vs(ol)},Fc=function(Ud){(Ud.key==="Enter"||Ud.keyCode===Gr.Z.ENTER||Ud.which===Gr.Z.ENTER)&&Mc()},cd=typeof kl=="function"?kl(Hi):v.createElement("i",{className:"arrow"});cd&&(cd=v.createElement("div",{className:"".concat(Ss,"-expand-icon"),onClick:["header","icon"].includes(pl)?Mc:void 0},cd));var Vd=P()((Gn={},(0,nt.Z)(Gn,"".concat(Ss,"-item"),!0),(0,nt.Z)(Gn,"".concat(Ss,"-item-active"),fs),(0,nt.Z)(Gn,"".concat(Ss,"-item-disabled"),pn),Gn),da),yd=P()(ns,(Sr={},(0,nt.Z)(Sr,"".concat(Ss,"-header"),!0),(0,nt.Z)(Sr,"".concat(Ss,"-header-collapsible-only"),pu),(0,nt.Z)(Sr,"".concat(Ss,"-icon-collapsible-only"),tc),Sr)),Sh={className:yd,"aria-expanded":fs,"aria-disabled":pn,onKeyDown:Fc};return!pu&&!tc&&(Sh.onClick=Mc,Sh.role=Vs?"tab":"button",Sh.tabIndex=pn?-1:0),v.createElement("div",(0,ct.Z)({},uu,{ref:ji,className:Vd}),v.createElement("div",Sh,co&&cd,v.createElement("span",{className:"".concat(Ss,"-header-text"),onClick:pl==="header"?Mc:void 0},eu),dc&&v.createElement("div",{className:"".concat(Ss,"-extra")},sl)),v.createElement(ui.ZP,(0,ct.Z)({visible:fs,leavedClassName:"".concat(Ss,"-content-hidden")},Wl,{forceRender:as,removeOnLeave:Dl}),function(xh,Ud){var Hf=xh.className,ef=xh.style;return v.createElement(Ei,{ref:Ud,prefixCls:Ss,className:Hf,style:ef,isActive:fs,forceRender:as,role:Vs?"tabpanel":void 0},ml)}))}),Xr=Kr,Qo=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],pr=function(ji,Gn){var Sr=Gn.prefixCls,Rr=Gn.accordion,co=Gn.collapsible,ns=Gn.destroyInactivePanel,fs=Gn.onItemClick,vs=Gn.activeKey,as=Gn.openMotion,da=Gn.expandIcon;return ji.map(function(Ss,pl){var Vs=Ss.children,ol=Ss.label,sl=Ss.key,eu=Ss.collapsible,kl=Ss.onItemClick,Wl=Ss.destroyInactivePanel,Dl=(0,Et.Z)(Ss,Qo),ml=String(sl!=null?sl:pl),uu=eu!=null?eu:co,pn=Wl!=null?Wl:ns,pu=function(Mc){uu!=="disabled"&&(fs(Mc),kl==null||kl(Mc))},tc=!1;return Rr?tc=vs[0]===ml:tc=vs.indexOf(ml)>-1,v.createElement(Xr,(0,ct.Z)({},Dl,{prefixCls:Sr,key:ml,panelKey:ml,isActive:tc,accordion:Rr,openMotion:as,expandIcon:da,header:ol,collapsible:uu,onItemClick:pu,destroyInactivePanel:pn}),Vs)})},qo=function(ji,Gn,Sr){if(!ji)return null;var Rr=Sr.prefixCls,co=Sr.accordion,ns=Sr.collapsible,fs=Sr.destroyInactivePanel,vs=Sr.onItemClick,as=Sr.activeKey,da=Sr.openMotion,Ss=Sr.expandIcon,pl=ji.key||String(Gn),Vs=ji.props,ol=Vs.header,sl=Vs.headerClass,eu=Vs.destroyInactivePanel,kl=Vs.collapsible,Wl=Vs.onItemClick,Dl=!1;co?Dl=as[0]===pl:Dl=as.indexOf(pl)>-1;var ml=kl!=null?kl:ns,uu=function(tc){ml!=="disabled"&&(vs(tc),Wl==null||Wl(tc))},pn={key:pl,panelKey:pl,header:ol,headerClass:sl,isActive:Dl,prefixCls:Rr,destroyInactivePanel:eu!=null?eu:fs,openMotion:da,accordion:co,children:ji.props.children,onItemClick:uu,expandIcon:Ss,collapsible:ml};return typeof ji.type=="string"?ji:(Object.keys(pn).forEach(function(pu){typeof pn[pu]=="undefined"&&delete pn[pu]}),v.cloneElement(ji,pn))};function Br(Hi,ji,Gn){return Array.isArray(Hi)?pr(Hi,Gn):(0,Er.Z)(ji).map(function(Sr,Rr){return qo(Sr,Rr,Gn)})}var sr=Br;function ii(Hi){var ji=Hi;if(!Array.isArray(ji)){var Gn=(0,ht.Z)(ji);ji=Gn==="number"||Gn==="string"?[ji]:[]}return ji.map(function(Sr){return String(Sr)})}var qi=v.forwardRef(function(Hi,ji){var Gn=Hi.prefixCls,Sr=Gn===void 0?"rc-collapse":Gn,Rr=Hi.destroyInactivePanel,co=Rr===void 0?!1:Rr,ns=Hi.style,fs=Hi.accordion,vs=Hi.className,as=Hi.children,da=Hi.collapsible,Ss=Hi.openMotion,pl=Hi.expandIcon,Vs=Hi.activeKey,ol=Hi.defaultActiveKey,sl=Hi.onChange,eu=Hi.items,kl=P()(Sr,vs),Wl=(0,A.Z)([],{value:Vs,onChange:function(dc){return sl==null?void 0:sl(dc)},defaultValue:ol,postState:ii}),Dl=(0,Ge.Z)(Wl,2),ml=Dl[0],uu=Dl[1],pn=function(dc){return uu(function(){if(fs)return ml[0]===dc?[]:[dc];var Mc=ml.indexOf(dc),Fc=Mc>-1;return Fc?ml.filter(function(cd){return cd!==dc}):[].concat((0,rr.Z)(ml),[dc])})};(0,Pr.ZP)(!as,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var pu=sr(eu,as,{prefixCls:Sr,accordion:fs,openMotion:Ss,expandIcon:pl,collapsible:da,destroyInactivePanel:co,onItemClick:pn,activeKey:ml});return v.createElement("div",{ref:ji,className:kl,style:ns,role:fs?"tablist":void 0},pu)}),Ln=Object.assign(qi,{Panel:Xr}),zn=Ln,Wi=Ln.Panel,Yi=x(41123),so=x(12149),ko=x(20612),hs=v.forwardRef((Hi,ji)=>{const{getPrefixCls:Gn}=v.useContext(Y.E_),{prefixCls:Sr,className:Rr,showArrow:co=!0}=Hi,ns=Gn("collapse",Sr),fs=P()({[`${ns}-no-arrow`]:!co},Rr);return v.createElement(zn.Panel,Object.assign({ref:ji},Hi,{prefixCls:ns,className:fs}))}),Ts=x(78600),Qr=x(91110),Ai=x(36385),Ri=x(79263),To=x(90882);const yo=Hi=>{const{componentCls:ji,contentBg:Gn,padding:Sr,headerBg:Rr,headerPadding:co,collapseHeaderPaddingSM:ns,collapseHeaderPaddingLG:fs,collapsePanelBorderRadius:vs,lineWidth:as,lineType:da,colorBorder:Ss,colorText:pl,colorTextHeading:Vs,colorTextDisabled:ol,fontSizeLG:sl,lineHeight:eu,lineHeightLG:kl,marginSM:Wl,paddingSM:Dl,paddingLG:ml,paddingXS:uu,motionDurationSlow:pn,fontSizeIcon:pu,contentPadding:tc,fontHeight:dc,fontHeightLG:Mc}=Hi,Fc=`${(0,Ts.bf)(as)} ${da} ${Ss}`;return{[ji]:Object.assign(Object.assign({},(0,Qr.Wf)(Hi)),{backgroundColor:Rr,border:Fc,borderBottom:0,borderRadius:vs,["&-rtl"]:{direction:"rtl"},[`& > ${ji}-item`]:{borderBottom:Fc,["&:last-child"]:{[` &, - & > ${rv}-header`]:{borderRadius:`0 0 ${(0,$1.bf)(k1)} ${(0,$1.bf)(k1)}`}},[`> ${rv}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:wv,color:ty,lineHeight:ox,cursor:"pointer",transition:`all ${Na}, visibility 0s`,[`> ${rv}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${rv}-expand-icon`]:{height:b2,display:"flex",alignItems:"center",paddingInlineEnd:K_},[`${rv}-arrow`]:Object.assign(Object.assign({},(0,l0.Ro)()),{fontSize:_x,svg:{transition:`transform ${Na}`}}),[`${rv}-header-text`]:{marginInlineEnd:"auto"}},[`${rv}-icon-collapsible-only`]:{cursor:"unset",[`${rv}-expand-icon`]:{cursor:"pointer"}}},[`${rv}-content`]:{color:E_,backgroundColor:yd,borderTop:j2,[`& > ${rv}-content-box`]:{padding:c2},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${rv}-item`]:{[`> ${rv}-header`]:{padding:b1,paddingInlineStart:gx,[`> ${rv}-expand-icon`]:{marginInlineStart:ov.calc(k_).sub(gx).equal()}},[`> ${rv}-content > ${rv}-content-box`]:{padding:k_}}},["&-large"]:{[`> ${rv}-item`]:{fontSize:g_,lineHeight:$_,[`> ${rv}-header`]:{padding:I1,paddingInlineStart:kg,[`> ${rv}-expand-icon`]:{height:N2,marginInlineStart:ov.calc(A_).sub(kg).equal()}},[`> ${rv}-content > ${rv}-content-box`]:{padding:A_}}},[`${rv}-item:last-child`]:{[`> ${rv}-content`]:{borderRadius:`0 0 ${(0,$1.bf)(k1)} ${(0,$1.bf)(k1)}`}},[`& ${rv}-item-disabled > ${rv}-header`]:{[` + & > ${ji}-header`]:{borderRadius:`0 0 ${(0,Ts.bf)(vs)} ${(0,Ts.bf)(vs)}`}},[`> ${ji}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:co,color:Vs,lineHeight:eu,cursor:"pointer",transition:`all ${pn}, visibility 0s`,[`> ${ji}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${ji}-expand-icon`]:{height:dc,display:"flex",alignItems:"center",paddingInlineEnd:Wl},[`${ji}-arrow`]:Object.assign(Object.assign({},(0,Qr.Ro)()),{fontSize:pu,svg:{transition:`transform ${pn}`}}),[`${ji}-header-text`]:{marginInlineEnd:"auto"}},[`${ji}-icon-collapsible-only`]:{cursor:"unset",[`${ji}-expand-icon`]:{cursor:"pointer"}}},[`${ji}-content`]:{color:pl,backgroundColor:Gn,borderTop:Fc,[`& > ${ji}-content-box`]:{padding:tc},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${ji}-item`]:{[`> ${ji}-header`]:{padding:ns,paddingInlineStart:uu,[`> ${ji}-expand-icon`]:{marginInlineStart:Hi.calc(Dl).sub(uu).equal()}},[`> ${ji}-content > ${ji}-content-box`]:{padding:Dl}}},["&-large"]:{[`> ${ji}-item`]:{fontSize:sl,lineHeight:kl,[`> ${ji}-header`]:{padding:fs,paddingInlineStart:Sr,[`> ${ji}-expand-icon`]:{height:Mc,marginInlineStart:Hi.calc(ml).sub(Sr).equal()}},[`> ${ji}-content > ${ji}-content-box`]:{padding:ml}}},[`${ji}-item:last-child`]:{[`> ${ji}-content`]:{borderRadius:`0 0 ${(0,Ts.bf)(vs)} ${(0,Ts.bf)(vs)}`}},[`& ${ji}-item-disabled > ${ji}-header`]:{[` &, & > .arrow - `]:{color:h_,cursor:"not-allowed"}},[`&${rv}-icon-position-end`]:{[`& > ${rv}-item`]:{[`> ${rv}-header`]:{[`${rv}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:K_}}}}})}},gv=ov=>{const{componentCls:rv}=ov,yd=`> ${rv}-item > ${rv}-header ${rv}-arrow svg`;return{[`${rv}-rtl`]:{[yd]:{transform:"rotate(180deg)"}}}},G1=ov=>{const{componentCls:rv,headerBg:yd,paddingXXS:kg,colorBorder:Vg}=ov;return{[`${rv}-borderless`]:{backgroundColor:yd,border:0,[`> ${rv}-item`]:{borderBottom:`1px solid ${Vg}`},[` - > ${rv}-item:last-child, - > ${rv}-item:last-child ${rv}-header - `]:{borderRadius:0},[`> ${rv}-item:last-child`]:{borderBottom:0},[`> ${rv}-item > ${rv}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${rv}-item > ${rv}-content > ${rv}-content-box`]:{paddingTop:kg}}}},xy=ov=>{const{componentCls:rv,paddingSM:yd}=ov;return{[`${rv}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${rv}-item`]:{borderBottom:0,[`> ${rv}-content`]:{backgroundColor:"transparent",border:0,[`> ${rv}-content-box`]:{paddingBlock:yd}}}}}},Dy=ov=>({headerPadding:`${ov.paddingSM}px ${ov.padding}px`,headerBg:ov.colorFillAlter,contentPadding:`${ov.padding}px 16px`,contentBg:ov.colorBgContainer});var H1=(0,W0.I$)("Collapse",ov=>{const rv=(0,Rv.TS)(ov,{collapseHeaderPaddingSM:`${(0,$1.bf)(ov.paddingXS)} ${(0,$1.bf)(ov.paddingSM)}`,collapseHeaderPaddingLG:`${(0,$1.bf)(ov.padding)} ${(0,$1.bf)(ov.paddingLG)}`,collapsePanelBorderRadius:ov.borderRadiusLG});return[R0(rv),G1(rv),xy(rv),gv(rv),(0,z0.Z)(rv)]},Dy),Yg=Object.assign(u.forwardRef((ov,rv)=>{const{getPrefixCls:yd,direction:kg,collapse:Vg}=u.useContext(a.E_),{prefixCls:wv,className:b1,rootClassName:I1,style:k1,bordered:S1=!0,ghost:Ay,size:U1,expandIconPosition:E_="start",children:ty,expandIcon:h_}=ov,g_=(0,N.Z)(N2=>{var j2;return(j2=U1!=null?U1:N2)!==null&&j2!==void 0?j2:"middle"}),ox=yd("collapse",wv),$_=yd(),[K_,k_,A_]=H1(ox),gx=u.useMemo(()=>E_==="left"?"start":E_==="right"?"end":E_,[E_]),Na=function(){let N2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const j2=h_?h_(N2):u.createElement($a.Z,{rotate:N2.isActive?90:void 0});return(0,$v.Tm)(j2,()=>({className:b()(j2.props.className,`${ox}-arrow`)}))},_x=b()(`${ox}-icon-position-${gx}`,{[`${ox}-borderless`]:!S1,[`${ox}-rtl`]:kg==="rtl",[`${ox}-ghost`]:!!Ay,[`${ox}-${g_}`]:g_!=="middle"},Vg==null?void 0:Vg.className,b1,I1,k_,A_),c2=Object.assign(Object.assign({},(0,yv.Z)($_)),{motionAppear:!1,leavedClassName:`${ox}-content-hidden`}),b2=u.useMemo(()=>ty?(0,Og.Z)(ty).map((N2,j2)=>{var mC,XC;if(!((mC=N2.props)===null||mC===void 0)&&mC.disabled){const EC=(XC=N2.key)!==null&&XC!==void 0?XC:String(j2),{disabled:Pw,collapsible:Aw}=N2.props,KC=Object.assign(Object.assign({},(0,sv.Z)(N2.props,["disabled"])),{key:EC,collapsible:Aw!=null?Aw:Pw?"disabled":void 0});return(0,$v.Tm)(N2,KC)}return N2}):null,[ty]);return K_(u.createElement(hu,Object.assign({ref:rv,openMotion:c2},(0,sv.Z)(ov,["rootClassName"]),{expandIcon:Na,prefixCls:ox,className:_x,style:Object.assign(Object.assign({},Vg==null?void 0:Vg.style),k1)}),b2))}),{Panel:E1}),r0=Yg,No=l(50700),qt=l(57832);const Sr=ov=>ov.map(rv=>(rv.colors=rv.colors.map(Gs),rv)),si=(ov,rv)=>{const{r:yd,g:kg,b:Vg,a:wv}=ov.toRgb(),b1=new on(ov.toRgbString()).onBackground(rv).toHsv();return wv<=.5?b1.v>.5:yd*.299+kg*.587+Vg*.114>192},Rs=ov=>{let{label:rv}=ov;return`panel-${rv}`};var bu=ov=>{let{prefixCls:rv,presets:yd,value:kg,onChange:Vg}=ov;const[wv]=(0,No.Z)("ColorPicker"),[,b1]=(0,qt.ZP)(),[I1]=(0,x.Z)(Sr(yd),{value:Sr(yd),postState:Sr}),k1=`${rv}-presets`,S1=(0,u.useMemo)(()=>I1.reduce((E_,ty)=>{const{defaultOpen:h_=!0}=ty;return h_&&E_.push(Rs(ty)),E_},[]),[I1]),Ay=E_=>{Vg==null||Vg(E_)},U1=I1.map(E_=>{var ty;return{key:Rs(E_),label:u.createElement("div",{className:`${k1}-label`},E_==null?void 0:E_.label),children:u.createElement("div",{className:`${k1}-items`},Array.isArray(E_==null?void 0:E_.colors)&&((ty=E_.colors)===null||ty===void 0?void 0:ty.length)>0?E_.colors.map((h_,g_)=>u.createElement(Ht,{key:`preset-${g_}-${h_.toHexString()}`,color:Gs(h_).toRgbString(),prefixCls:rv,className:b()(`${k1}-color`,{[`${k1}-color-checked`]:h_.toHexString()===(kg==null?void 0:kg.toHexString()),[`${k1}-color-bright`]:si(h_,b1.colorBgElevated)}),onClick:()=>Ay(h_)})):u.createElement("span",{className:`${k1}-empty`},wv.presetEmpty))}});return u.createElement("div",{className:k1},u.createElement(r0,{defaultActiveKey:S1,ghost:!0,items:U1}))},In=()=>{const{prefixCls:ov,value:rv,presets:yd,onChange:kg}=(0,u.useContext)(c0);return Array.isArray(yd)?u.createElement(bu,{value:rv,presets:yd,prefixCls:ov,onChange:kg}):null},ga=function(ov,rv){var yd={};for(var kg in ov)Object.prototype.hasOwnProperty.call(ov,kg)&&rv.indexOf(kg)<0&&(yd[kg]=ov[kg]);if(ov!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vg=0,kg=Object.getOwnPropertySymbols(ov);Vg{const{prefixCls:rv,presets:yd,panelRender:kg,color:Vg,onChange:wv,onClear:b1}=ov,I1=ga(ov,["prefixCls","presets","panelRender","color","onChange","onClear"]),k1=`${rv}-inner`,S1=Object.assign({prefixCls:rv,value:Vg,onChange:wv,onClear:b1},I1),Ay=u.useMemo(()=>({prefixCls:rv,value:Vg,presets:yd,onChange:wv}),[rv,Vg,yd,wv]),U1=u.createElement("div",{className:`${k1}-content`},u.createElement(Sa,null),Array.isArray(yd)&&u.createElement(Ie.Z,null),u.createElement(In,null));return u.createElement(L0,{value:S1},u.createElement($0,{value:Ay},u.createElement("div",{className:k1},typeof kg=="function"?kg(U1,{components:{Picker:Sa,Presets:In}}):U1)))},dv=function(ov,rv){var yd={};for(var kg in ov)Object.prototype.hasOwnProperty.call(ov,kg)&&rv.indexOf(kg)<0&&(yd[kg]=ov[kg]);if(ov!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vg=0,kg=Object.getOwnPropertySymbols(ov);Vg{const{color:yd,prefixCls:kg,open:Vg,colorCleared:wv,disabled:b1,format:I1,className:k1,showText:S1}=ov,Ay=dv(ov,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),U1=`${kg}-trigger`,E_=(0,u.useMemo)(()=>wv?u.createElement(fr,{prefixCls:kg}):u.createElement(Ht,{prefixCls:kg,color:yd.toRgbString()}),[yd,wv,kg]),ty=()=>{const g_=yd.toHexString().toUpperCase(),ox=lu(yd);switch(I1){case"rgb":return yd.toRgbString();case"hsb":return yd.toHsbString();case"hex":default:return ox<100?`${g_.slice(0,7)},${ox}%`:g_}},h_=()=>{if(typeof S1=="function")return S1(yd);if(S1)return ty()};return u.createElement("div",Object.assign({ref:rv,className:b()(U1,k1,{[`${U1}-active`]:Vg,[`${U1}-disabled`]:b1})},Ay),E_,S1&&u.createElement("div",{className:`${U1}-text`},h_()))});function c1(ov){return ov!==void 0}var Z1=(ov,rv)=>{const{defaultValue:yd,value:kg}=rv,[Vg,wv]=(0,u.useState)(()=>{let b1;return c1(kg)?b1=kg:c1(yd)?b1=yd:b1=ov,Gs(b1||"")});return(0,u.useEffect)(()=>{kg&&wv(Gs(kg))},[kg]),[Vg,wv]};const sy=(ov,rv)=>({backgroundImage:`conic-gradient(${rv} 0 25%, transparent 0 50%, ${rv} 0 75%, transparent 0)`,backgroundSize:`${ov} ${ov}`});var zy=(ov,rv)=>{const{componentCls:yd,borderRadiusSM:kg,colorPickerInsetShadow:Vg,lineWidth:wv,colorFillSecondary:b1}=ov;return{[`${yd}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:kg,width:rv,height:rv,boxShadow:Vg},sy("50%",ov.colorFillSecondary)),{[`${yd}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,$1.bf)(wv)} solid ${b1}`,borderRadius:"inherit"}})}},Qv=ov=>{const{componentCls:rv,antCls:yd,fontSizeSM:kg,lineHeightSM:Vg,colorPickerAlphaInputWidth:wv,marginXXS:b1,paddingXXS:I1,controlHeightSM:k1,marginXS:S1,fontSizeIcon:Ay,paddingXS:U1,colorTextPlaceholder:E_,colorPickerInputNumberHandleWidth:ty,lineWidth:h_}=ov;return{[`${rv}-input-container`]:{display:"flex",[`${rv}-steppers${yd}-input-number`]:{fontSize:kg,lineHeight:Vg,[`${yd}-input-number-input`]:{paddingInlineStart:I1,paddingInlineEnd:0},[`${yd}-input-number-handler-wrap`]:{width:ty}},[`${rv}-steppers${rv}-alpha-input`]:{flex:`0 0 ${(0,$1.bf)(wv)}`,marginInlineStart:b1},[`${rv}-format-select${yd}-select`]:{marginInlineEnd:S1,width:"auto","&-single":{[`${yd}-select-selector`]:{padding:0,border:0},[`${yd}-select-arrow`]:{insetInlineEnd:0},[`${yd}-select-selection-item`]:{paddingInlineEnd:ov.calc(Ay).add(b1).equal(),fontSize:kg,lineHeight:`${(0,$1.bf)(k1)}`},[`${yd}-select-item-option-content`]:{fontSize:kg,lineHeight:Vg},[`${yd}-select-dropdown`]:{[`${yd}-select-item`]:{minHeight:"auto"}}}},[`${rv}-input`]:{gap:b1,alignItems:"center",flex:1,width:0,[`${rv}-hsb-input,${rv}-rgb-input`]:{display:"flex",gap:b1,alignItems:"center"},[`${rv}-steppers`]:{flex:1},[`${rv}-hex-input${yd}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,$1.bf)(U1)}`,[`${yd}-input`]:{fontSize:kg,textTransform:"uppercase",lineHeight:(0,$1.bf)(ov.calc(k1).sub(ov.calc(h_).mul(2)).equal())},[`${yd}-input-prefix`]:{color:E_}}}}}},M_=ov=>{const{componentCls:rv,controlHeightLG:yd,borderRadiusSM:kg,colorPickerInsetShadow:Vg,marginSM:wv,colorBgElevated:b1,colorFillSecondary:I1,lineWidthBold:k1,colorPickerHandlerSize:S1,colorPickerHandlerSizeSM:Ay,colorPickerSliderHeight:U1}=ov;return{[`${rv}-select`]:{[`${rv}-palette`]:{minHeight:ov.calc(yd).mul(4).equal(),overflow:"hidden",borderRadius:kg},[`${rv}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:Vg,inset:0},marginBottom:wv},[`${rv}-handler`]:{width:S1,height:S1,border:`${(0,$1.bf)(k1)} solid ${b1}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${Vg}, 0 0 0 1px ${I1}`,"&-sm":{width:Ay,height:Ay}},[`${rv}-slider`]:{borderRadius:ov.calc(U1).div(2).equal(),[`${rv}-palette`]:{height:U1},[`${rv}-gradient`]:{borderRadius:ov.calc(U1).div(2).equal(),boxShadow:Vg},"&-alpha":sy(`${(0,$1.bf)(U1)}`,ov.colorFillSecondary),"&-hue":{marginBottom:wv}},[`${rv}-slider-container`]:{display:"flex",gap:wv,marginBottom:wv,[`${rv}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${rv}-slider`]:{flex:1,marginBottom:0}}}}}},_v=ov=>{const{componentCls:rv,antCls:yd,colorTextQuaternary:kg,paddingXXS:Vg,colorPickerPresetColorSize:wv,fontSizeSM:b1,colorText:I1,lineHeightSM:k1,lineWidth:S1,borderRadius:Ay,colorFill:U1,colorWhite:E_,marginXXS:ty,paddingXS:h_,fontHeightSM:g_}=ov;return{[`${rv}-presets`]:{[`${yd}-collapse-item > ${yd}-collapse-header`]:{padding:0,[`${yd}-collapse-expand-icon`]:{height:g_,color:kg,paddingInlineEnd:Vg}},[`${yd}-collapse`]:{display:"flex",flexDirection:"column",gap:ty},[`${yd}-collapse-item > ${yd}-collapse-content > ${yd}-collapse-content-box`]:{padding:`${(0,$1.bf)(h_)} 0`},"&-label":{fontSize:b1,color:I1,lineHeight:k1},"&-items":{display:"flex",flexWrap:"wrap",gap:ov.calc(ty).mul(1.5).equal(),[`${rv}-presets-color`]:{position:"relative",cursor:"pointer",width:wv,height:wv,"&::before":{content:'""',pointerEvents:"none",width:ov.calc(wv).add(ov.calc(S1).mul(4)).equal(),height:ov.calc(wv).add(ov.calc(S1).mul(4)).equal(),position:"absolute",top:ov.calc(S1).mul(-2).equal(),insetInlineStart:ov.calc(S1).mul(-2).equal(),borderRadius:Ay,border:`${(0,$1.bf)(S1)} solid transparent`,transition:`border-color ${ov.motionDurationMid} ${ov.motionEaseInBack}`},"&:hover::before":{borderColor:U1},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ov.calc(wv).div(13).mul(5).equal(),height:ov.calc(wv).div(13).mul(8).equal(),border:`${(0,$1.bf)(ov.lineWidthBold)} solid ${ov.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ov.motionDurationFast} ${ov.motionEaseInBack}, opacity ${ov.motionDurationFast}`},[`&${rv}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:E_,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${ov.motionDurationMid} ${ov.motionEaseOutBack} ${ov.motionDurationFast}`},[`&${rv}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:b1,color:kg}}}};const Iv=(ov,rv,yd)=>({borderInlineEndWidth:ov.lineWidth,borderColor:rv,boxShadow:`0 0 0 ${(0,$1.bf)(ov.controlOutlineWidth)} ${yd}`,outline:0}),Ov=ov=>{const{componentCls:rv}=ov;return{"&-rtl":{[`${rv}-presets-color`]:{"&::after":{direction:"ltr"}},[`${rv}-clear`]:{"&::after":{direction:"ltr"}}}}},v1=(ov,rv,yd)=>{const{componentCls:kg,borderRadiusSM:Vg,lineWidth:wv,colorSplit:b1,red6:I1}=ov;return{[`${kg}-clear`]:Object.assign(Object.assign({width:rv,height:rv,borderRadius:Vg,border:`${(0,$1.bf)(wv)} solid ${b1}`,position:"relative",overflow:"hidden"},yd),{"&::after":{content:'""',position:"absolute",insetInlineEnd:wv,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:I1}})}},K1=ov=>{const{componentCls:rv,colorError:yd,colorWarning:kg,colorErrorHover:Vg,colorWarningHover:wv,colorErrorOutline:b1,colorWarningOutline:I1}=ov;return{[`&${rv}-status-error`]:{borderColor:yd,"&:hover":{borderColor:Vg},[`&${rv}-trigger-active`]:Object.assign({},Iv(ov,yd,b1))},[`&${rv}-status-warning`]:{borderColor:kg,"&:hover":{borderColor:wv},[`&${rv}-trigger-active`]:Object.assign({},Iv(ov,kg,I1))}}},sx=ov=>{const{componentCls:rv,controlHeightLG:yd,controlHeightSM:kg,controlHeight:Vg,controlHeightXS:wv,borderRadius:b1,borderRadiusSM:I1,borderRadiusXS:k1,borderRadiusLG:S1,fontSizeLG:Ay}=ov;return{[`&${rv}-lg`]:{minWidth:yd,height:yd,borderRadius:S1,[`${rv}-color-block, ${rv}-clear`]:{width:Vg,height:Vg,borderRadius:b1},[`${rv}-trigger-text`]:{fontSize:Ay}},[`&${rv}-sm`]:{minWidth:kg,height:kg,borderRadius:I1,[`${rv}-color-block, ${rv}-clear`]:{width:wv,height:wv,borderRadius:k1}}}},Kx=ov=>{const{antCls:rv,componentCls:yd,colorPickerWidth:kg,colorPrimary:Vg,motionDurationMid:wv,colorBgElevated:b1,colorTextDisabled:I1,colorText:k1,colorBgContainerDisabled:S1,borderRadius:Ay,marginXS:U1,marginSM:E_,controlHeight:ty,controlHeightSM:h_,colorBgTextActive:g_,colorPickerPresetColorSize:ox,colorPickerPreviewSize:$_,lineWidth:K_,colorBorder:k_,paddingXXS:A_,fontSize:gx,colorPrimaryHover:Na,controlOutline:_x}=ov;return[{[yd]:Object.assign({[`${yd}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:kg,[`& > ${rv}-divider`]:{margin:`${(0,$1.bf)(E_)} 0 ${(0,$1.bf)(U1)}`}},[`${yd}-panel`]:Object.assign({},M_(ov))},zy(ov,$_)),Qv(ov)),_v(ov)),v1(ov,ox,{marginInlineStart:"auto",marginBottom:U1})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:ty,height:ty,borderRadius:Ay,border:`${(0,$1.bf)(K_)} solid ${k_}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${wv}`,background:b1,padding:ov.calc(A_).sub(K_).equal(),[`${yd}-trigger-text`]:{marginInlineStart:U1,marginInlineEnd:ov.calc(U1).sub(ov.calc(A_).sub(K_)).equal(),fontSize:gx,color:k1},"&:hover":{borderColor:Na},[`&${yd}-trigger-active`]:Object.assign({},Iv(ov,Vg,_x)),"&-disabled":{color:I1,background:S1,cursor:"not-allowed","&:hover":{borderColor:g_},[`${yd}-trigger-text`]:{color:I1}}},v1(ov,h_)),zy(ov,h_)),K1(ov)),sx(ov))},Ov(ov))}]};var t2=(0,W0.I$)("ColorPicker",ov=>{const{colorTextQuaternary:rv,marginSM:yd}=ov,kg=8,Vg=(0,Rv.TS)(ov,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${rv}`,colorPickerSliderHeight:kg,colorPickerPreviewSize:ov.calc(kg).mul(2).add(yd).equal()});return[Kx(Vg)]}),I2=function(ov,rv){var yd={};for(var kg in ov)Object.prototype.hasOwnProperty.call(ov,kg)&&rv.indexOf(kg)<0&&(yd[kg]=ov[kg]);if(ov!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vg=0,kg=Object.getOwnPropertySymbols(ov);Vg{const{value:rv,defaultValue:yd,format:kg,defaultFormat:Vg,allowClear:wv=!1,presets:b1,children:I1,trigger:k1="click",open:S1,disabled:Ay,placement:U1="bottomLeft",arrow:E_=!0,panelRender:ty,showText:h_,style:g_,className:ox,size:$_,rootClassName:K_,prefixCls:k_,styles:A_,disabledAlpha:gx=!1,onFormatChange:Na,onChange:_x,onClear:c2,onOpenChange:b2,onChangeComplete:N2,getPopupContainer:j2,autoAdjustOverflow:mC=!0,destroyTooltipOnHide:XC}=ov,EC=I2(ov,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:Pw,direction:Aw,colorPicker:KC}=(0,u.useContext)(a.E_),JS=(0,u.useContext)(S.Z),sS=Ay!=null?Ay:JS,[UC,FS]=Z1("",{value:rv,defaultValue:yd}),[KS,VC]=(0,x.Z)(!1,{value:S1,postState:bw=>!sS&&bw,onChange:b2}),[vE,T1]=(0,x.Z)(kg,{value:kg,defaultValue:Vg,onChange:Na}),[ky,$y]=(0,u.useState)(!rv&&!yd),l_=Pw("color-picker",k_),cx=(0,u.useMemo)(()=>lu(UC)<100,[UC]),{status:Cx}=u.useContext(ie.aM),P2=(0,N.Z)($_),i2=(0,I.Z)(l_),[tx,z2,L2]=t2(l_,i2),jw={[`${l_}-rtl`]:Aw},w2=b()(K_,L2,i2,jw),gw=b()((0,w.Z)(l_,Cx),{[`${l_}-sm`]:P2==="small",[`${l_}-lg`]:P2==="large"},KC==null?void 0:KC.className,w2,ox,z2),vC=b()(l_,w2),Fw=(0,u.useRef)(!0),U2=(bw,Ow,j1)=>{let Px=Gs(bw);(ky||(rv===null||!rv&&yd===null))&&($y(!1),lu(UC)===0&&Ow!=="alpha"&&(Px=_h(Px))),gx&&cx&&(Px=_h(Px)),j1?Fw.current=!1:N2==null||N2(Px),FS(Px),_x==null||_x(Px,Px.toHexString())},Tw=()=>{$y(!0),c2==null||c2()},q_=bw=>{Fw.current=!0;let Ow=Gs(bw);gx&&cx&&(Ow=_h(bw)),N2==null||N2(Ow)},Kw={open:KS,trigger:k1,placement:U1,arrow:E_,rootClassName:K_,getPopupContainer:j2,autoAdjustOverflow:mC,destroyTooltipOnHide:XC},Ny={prefixCls:l_,color:UC,allowClear:wv,colorCleared:ky,disabled:sS,disabledAlpha:gx,presets:b1,panelRender:ty,format:vE,onFormatChange:T1,onChangeComplete:q_},dx=Object.assign(Object.assign({},KC==null?void 0:KC.style),g_);return tx(u.createElement(ze.Z,Object.assign({style:A_==null?void 0:A_.popup,overlayInnerStyle:A_==null?void 0:A_.popupOverlayInner,onOpenChange:bw=>{Fw.current&&!sS&&VC(bw)},content:u.createElement(ie.Ux,{override:!0,status:!0},u.createElement(Lu,Object.assign({},Ny,{onChange:U2,onChangeComplete:q_,onClear:Tw}))),overlayClassName:vC},Kw),I1||u.createElement(Wv,Object.assign({open:KS,className:gw,style:dx,color:rv?Gs(rv):UC,prefixCls:l_,disabled:sS,colorCleared:ky,showText:h_,format:vE},EC))))},J_=(0,y.Z)(D2,"color-picker",ov=>ov,ov=>Object.assign(Object.assign({},ov),{placement:"bottom",autoAdjustOverflow:!1}));D2._InternalPanelDoNotUseOrYouWillBeFired=J_;var ax=D2,rx=ax},57801:function(c,g,l){"use strict";l.d(g,{n:function(){return b}});var u=l(77617);const D=u.createContext(!1),b=x=>{let{children:y,disabled:w}=x;const a=u.useContext(D);return u.createElement(D.Provider,{value:w!=null?w:a},y)};g.Z=D},3942:function(c,g,l){"use strict";l.d(g,{q:function(){return b}});var u=l(77617);const D=u.createContext(void 0),b=x=>{let{children:y,size:w}=x;const a=u.useContext(D);return u.createElement(D.Provider,{value:w||a},y)};g.Z=D},58798:function(c,g,l){"use strict";l.d(g,{E_:function(){return x},oR:function(){return D}});var u=l(77617);const D="anticon",b=(w,a)=>a||(w?`ant-${w}`:"ant"),x=u.createContext({getPrefixCls:b,iconPrefixCls:D}),{Consumer:y}=x},70990:function(c,g,l){"use strict";var u=l(77617),D=l(58798),b=l(13682);const x=y=>{const{componentName:w}=y,{getPrefixCls:a}=(0,u.useContext)(D.E_),S=a("empty");switch(w){case"Table":case"List":return u.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return u.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE,className:`${S}-small`});default:return u.createElement(b.Z,null)}};g.Z=x},26504:function(c,g,l){"use strict";var u=l(57832);const D=b=>{const[,,,,x]=(0,u.ZP)();return x?`${b}-css-var`:""};g.Z=D},20804:function(c,g,l){"use strict";var u=l(77617),D=l(3942);const b=x=>{const y=u.useContext(D.Z);return u.useMemo(()=>x?typeof x=="string"?x!=null?x:y:x instanceof Function?x(y):y:y,[x,y])};g.Z=b},64495:function(c,g,l){"use strict";l.d(g,{ZP:function(){return c0},w6:function(){return zo}});var u=l(77617),D=l.t(u,2),b=l(78600),x=l(48081),y=l(64913),w=l(1635),a=l(80074),S=l(82464),I=l(92747),N=l(61706);const ie="internalMark";var Ie=L0=>{const{locale:$0={},children:cv,_ANT_MARK__:Gg}=L0;u.useEffect(()=>(0,I.f)($0&&$0.Modal),[$0]);const uu=u.useMemo(()=>Object.assign(Object.assign({},$0),{exist:!0}),[$0]);return u.createElement(N.Z.Provider,{value:uu},cv)},ct=l(209),At=l(92823),rt=l(5581),It=l(58798),Ot=l(10129),wn=l(64993),Hs=l(10254),jr=l(98052);const Jr=`-ant-${Date.now()}-${Math.random()}`;function Yn(L0,$0){const cv={},Gg=(Ia,lu)=>{let _h=Ia.clone();return _h=(lu==null?void 0:lu(_h))||_h,_h.toRgbString()},uu=(Ia,lu)=>{const _h=new wn.C(Ia),Kr=(0,Ot.R_)(_h.toRgbString());cv[`${lu}-color`]=Gg(_h),cv[`${lu}-color-disabled`]=Kr[1],cv[`${lu}-color-hover`]=Kr[4],cv[`${lu}-color-active`]=Kr[6],cv[`${lu}-color-outline`]=_h.clone().setAlpha(.2).toRgbString(),cv[`${lu}-color-deprecated-bg`]=Kr[0],cv[`${lu}-color-deprecated-border`]=Kr[2]};if($0.primaryColor){uu($0.primaryColor,"primary");const Ia=new wn.C($0.primaryColor),lu=(0,Ot.R_)(Ia.toRgbString());lu.forEach((Kr,fr)=>{cv[`primary-${fr+1}`]=Kr}),cv["primary-color-deprecated-l-35"]=Gg(Ia,Kr=>Kr.lighten(35)),cv["primary-color-deprecated-l-20"]=Gg(Ia,Kr=>Kr.lighten(20)),cv["primary-color-deprecated-t-20"]=Gg(Ia,Kr=>Kr.tint(20)),cv["primary-color-deprecated-t-50"]=Gg(Ia,Kr=>Kr.tint(50)),cv["primary-color-deprecated-f-12"]=Gg(Ia,Kr=>Kr.setAlpha(Kr.getAlpha()*.12));const _h=new wn.C(lu[0]);cv["primary-color-active-deprecated-f-30"]=Gg(_h,Kr=>Kr.setAlpha(Kr.getAlpha()*.3)),cv["primary-color-active-deprecated-d-02"]=Gg(_h,Kr=>Kr.darken(2))}return $0.successColor&&uu($0.successColor,"success"),$0.warningColor&&uu($0.warningColor,"warning"),$0.errorColor&&uu($0.errorColor,"error"),$0.infoColor&&uu($0.infoColor,"info"),` + `]:{color:ol,cursor:"not-allowed"}},[`&${ji}-icon-position-end`]:{[`& > ${ji}-item`]:{[`> ${ji}-header`]:{[`${ji}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Wl}}}}})}},ao=Hi=>{const{componentCls:ji}=Hi,Gn=`> ${ji}-item > ${ji}-header ${ji}-arrow svg`;return{[`${ji}-rtl`]:{[Gn]:{transform:"rotate(180deg)"}}}},Bs=Hi=>{const{componentCls:ji,headerBg:Gn,paddingXXS:Sr,colorBorder:Rr}=Hi;return{[`${ji}-borderless`]:{backgroundColor:Gn,border:0,[`> ${ji}-item`]:{borderBottom:`1px solid ${Rr}`},[` + > ${ji}-item:last-child, + > ${ji}-item:last-child ${ji}-header + `]:{borderRadius:0},[`> ${ji}-item:last-child`]:{borderBottom:0},[`> ${ji}-item > ${ji}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${ji}-item > ${ji}-content > ${ji}-content-box`]:{paddingTop:Sr}}}},fa=Hi=>{const{componentCls:ji,paddingSM:Gn}=Hi;return{[`${ji}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${ji}-item`]:{borderBottom:0,[`> ${ji}-content`]:{backgroundColor:"transparent",border:0,[`> ${ji}-content-box`]:{paddingBlock:Gn}}}}}},ba=Hi=>({headerPadding:`${Hi.paddingSM}px ${Hi.padding}px`,headerBg:Hi.colorFillAlter,contentPadding:`${Hi.padding}px 16px`,contentBg:Hi.colorBgContainer});var Rs=(0,Ri.I$)("Collapse",Hi=>{const ji=(0,To.TS)(Hi,{collapseHeaderPaddingSM:`${(0,Ts.bf)(Hi.paddingXS)} ${(0,Ts.bf)(Hi.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Ts.bf)(Hi.padding)} ${(0,Ts.bf)(Hi.paddingLG)}`,collapsePanelBorderRadius:Hi.borderRadiusLG});return[yo(ji),Bs(ji),fa(ji),ao(ji),(0,Ai.Z)(ji)]},ba),el=Object.assign(v.forwardRef((Hi,ji)=>{const{getPrefixCls:Gn,direction:Sr,collapse:Rr}=v.useContext(Y.E_),{prefixCls:co,className:ns,rootClassName:fs,style:vs,bordered:as=!0,ghost:da,size:Ss,expandIconPosition:pl="start",children:Vs,expandIcon:ol}=Hi,sl=(0,se.Z)(Mc=>{var Fc;return(Fc=Ss!=null?Ss:Mc)!==null&&Fc!==void 0?Fc:"middle"}),eu=Gn("collapse",co),kl=Gn(),[Wl,Dl,ml]=Rs(eu),uu=v.useMemo(()=>pl==="left"?"start":pl==="right"?"end":pl,[pl]),pn=function(){let Mc=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Fc=ol?ol(Mc):v.createElement(Cn.Z,{rotate:Mc.isActive?90:void 0});return(0,ko.Tm)(Fc,()=>({className:P()(Fc.props.className,`${eu}-arrow`)}))},pu=P()(`${eu}-icon-position-${uu}`,{[`${eu}-borderless`]:!as,[`${eu}-rtl`]:Sr==="rtl",[`${eu}-ghost`]:!!da,[`${eu}-${sl}`]:sl!=="middle"},Rr==null?void 0:Rr.className,ns,fs,Dl,ml),tc=Object.assign(Object.assign({},(0,so.Z)(kl)),{motionAppear:!1,leavedClassName:`${eu}-content-hidden`}),dc=v.useMemo(()=>Vs?(0,Er.Z)(Vs).map((Mc,Fc)=>{var cd,Vd;if(!((cd=Mc.props)===null||cd===void 0)&&cd.disabled){const yd=(Vd=Mc.key)!==null&&Vd!==void 0?Vd:String(Fc),{disabled:Sh,collapsible:xh}=Mc.props,Ud=Object.assign(Object.assign({},(0,Yi.Z)(Mc.props,["disabled"])),{key:yd,collapsible:xh!=null?xh:Sh?"disabled":void 0});return(0,ko.Tm)(Mc,Ud)}return Mc}):null,[Vs]);return Wl(v.createElement(zn,Object.assign({ref:ji,openMotion:tc},(0,Yi.Z)(Hi,["rootClassName"]),{expandIcon:pn,prefixCls:eu,className:pu,style:Object.assign(Object.assign({},Rr==null?void 0:Rr.style),vs)}),dc))}),{Panel:hs}),tl=el,sn=x(50700),dt=x(57832);const Mt=Hi=>Hi.map(ji=>(ji.colors=ji.colors.map(Xt),ji)),Zt=(Hi,ji)=>{const{r:Gn,g:Sr,b:Rr,a:co}=Hi.toRgb(),ns=new ft(Hi.toRgbString()).onBackground(ji).toHsv();return co<=.5?ns.v>.5:Gn*.299+Sr*.587+Rr*.114>192},Kt=Hi=>{let{label:ji}=Hi;return`panel-${ji}`};var Ur=Hi=>{let{prefixCls:ji,presets:Gn,value:Sr,onChange:Rr}=Hi;const[co]=(0,sn.Z)("ColorPicker"),[,ns]=(0,dt.ZP)(),[fs]=(0,A.Z)(Mt(Gn),{value:Mt(Gn),postState:Mt}),vs=`${ji}-presets`,as=(0,v.useMemo)(()=>fs.reduce((pl,Vs)=>{const{defaultOpen:ol=!0}=Vs;return ol&&pl.push(Kt(Vs)),pl},[]),[fs]),da=pl=>{Rr==null||Rr(pl)},Ss=fs.map(pl=>{var Vs;return{key:Kt(pl),label:v.createElement("div",{className:`${vs}-label`},pl==null?void 0:pl.label),children:v.createElement("div",{className:`${vs}-items`},Array.isArray(pl==null?void 0:pl.colors)&&((Vs=pl.colors)===null||Vs===void 0?void 0:Vs.length)>0?pl.colors.map((ol,sl)=>v.createElement(ze,{key:`preset-${sl}-${ol.toHexString()}`,color:Xt(ol).toRgbString(),prefixCls:ji,className:P()(`${vs}-color`,{[`${vs}-color-checked`]:ol.toHexString()===(Sr==null?void 0:Sr.toHexString()),[`${vs}-color-bright`]:Zt(ol,ns.colorBgElevated)}),onClick:()=>da(ol)})):v.createElement("span",{className:`${vs}-empty`},co.presetEmpty))}});return v.createElement("div",{className:vs},v.createElement(tl,{defaultActiveKey:as,ghost:!0,items:Ss}))},Ao=()=>{const{prefixCls:Hi,value:ji,presets:Gn,onChange:Sr}=(0,v.useContext)(oi);return Array.isArray(Gn)?v.createElement(Ur,{value:ji,presets:Gn,prefixCls:Hi,onChange:Sr}):null},rs=function(Hi,ji){var Gn={};for(var Sr in Hi)Object.prototype.hasOwnProperty.call(Hi,Sr)&&ji.indexOf(Sr)<0&&(Gn[Sr]=Hi[Sr]);if(Hi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rr=0,Sr=Object.getOwnPropertySymbols(Hi);Rr{const{prefixCls:ji,presets:Gn,panelRender:Sr,color:Rr,onChange:co,onClear:ns}=Hi,fs=rs(Hi,["prefixCls","presets","panelRender","color","onChange","onClear"]),vs=`${ji}-inner`,as=Object.assign({prefixCls:ji,value:Rr,onChange:co,onClear:ns},fs),da=v.useMemo(()=>({prefixCls:ji,value:Rr,presets:Gn,onChange:co}),[ji,Rr,Gn,co]),Ss=v.createElement("div",{className:`${vs}-content`},v.createElement(en,null),Array.isArray(Gn)&&v.createElement(Ce.Z,null),v.createElement(Ao,null));return v.createElement(Ti,{value:as},v.createElement(Bi,{value:da},v.createElement("div",{className:vs},typeof Sr=="function"?Sr(Ss,{components:{Picker:en,Presets:Ao}}):Ss)))},$a=function(Hi,ji){var Gn={};for(var Sr in Hi)Object.prototype.hasOwnProperty.call(Hi,Sr)&&ji.indexOf(Sr)<0&&(Gn[Sr]=Hi[Sr]);if(Hi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rr=0,Sr=Object.getOwnPropertySymbols(Hi);Rr{const{color:Gn,prefixCls:Sr,open:Rr,colorCleared:co,disabled:ns,format:fs,className:vs,showText:as}=Hi,da=$a(Hi,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),Ss=`${Sr}-trigger`,pl=(0,v.useMemo)(()=>co?v.createElement(tt,{prefixCls:Sr}):v.createElement(ze,{prefixCls:Sr,color:Gn.toRgbString()}),[Gn,co,Sr]),Vs=()=>{const sl=Gn.toHexString().toUpperCase(),eu=Pn(Gn);switch(fs){case"rgb":return Gn.toRgbString();case"hsb":return Gn.toHsbString();case"hex":default:return eu<100?`${sl.slice(0,7)},${eu}%`:sl}},ol=()=>{if(typeof as=="function")return as(Gn);if(as)return Vs()};return v.createElement("div",Object.assign({ref:ji,className:P()(Ss,vs,{[`${Ss}-active`]:Rr,[`${Ss}-disabled`]:ns})},da),pl,as&&v.createElement("div",{className:`${Ss}-text`},ol()))});function Xs(Hi){return Hi!==void 0}var xa=(Hi,ji)=>{const{defaultValue:Gn,value:Sr}=ji,[Rr,co]=(0,v.useState)(()=>{let ns;return Xs(Sr)?ns=Sr:Xs(Gn)?ns=Gn:ns=Hi,Xt(ns||"")});return(0,v.useEffect)(()=>{Sr&&co(Xt(Sr))},[Sr]),[Rr,co]};const Ea=(Hi,ji)=>({backgroundImage:`conic-gradient(${ji} 0 25%, transparent 0 50%, ${ji} 0 75%, transparent 0)`,backgroundSize:`${Hi} ${Hi}`});var Ba=(Hi,ji)=>{const{componentCls:Gn,borderRadiusSM:Sr,colorPickerInsetShadow:Rr,lineWidth:co,colorFillSecondary:ns}=Hi;return{[`${Gn}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Sr,width:ji,height:ji,boxShadow:Rr},Ea("50%",Hi.colorFillSecondary)),{[`${Gn}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,Ts.bf)(co)} solid ${ns}`,borderRadius:"inherit"}})}},ks=Hi=>{const{componentCls:ji,antCls:Gn,fontSizeSM:Sr,lineHeightSM:Rr,colorPickerAlphaInputWidth:co,marginXXS:ns,paddingXXS:fs,controlHeightSM:vs,marginXS:as,fontSizeIcon:da,paddingXS:Ss,colorTextPlaceholder:pl,colorPickerInputNumberHandleWidth:Vs,lineWidth:ol}=Hi;return{[`${ji}-input-container`]:{display:"flex",[`${ji}-steppers${Gn}-input-number`]:{fontSize:Sr,lineHeight:Rr,[`${Gn}-input-number-input`]:{paddingInlineStart:fs,paddingInlineEnd:0},[`${Gn}-input-number-handler-wrap`]:{width:Vs}},[`${ji}-steppers${ji}-alpha-input`]:{flex:`0 0 ${(0,Ts.bf)(co)}`,marginInlineStart:ns},[`${ji}-format-select${Gn}-select`]:{marginInlineEnd:as,width:"auto","&-single":{[`${Gn}-select-selector`]:{padding:0,border:0},[`${Gn}-select-arrow`]:{insetInlineEnd:0},[`${Gn}-select-selection-item`]:{paddingInlineEnd:Hi.calc(da).add(ns).equal(),fontSize:Sr,lineHeight:`${(0,Ts.bf)(vs)}`},[`${Gn}-select-item-option-content`]:{fontSize:Sr,lineHeight:Rr},[`${Gn}-select-dropdown`]:{[`${Gn}-select-item`]:{minHeight:"auto"}}}},[`${ji}-input`]:{gap:ns,alignItems:"center",flex:1,width:0,[`${ji}-hsb-input,${ji}-rgb-input`]:{display:"flex",gap:ns,alignItems:"center"},[`${ji}-steppers`]:{flex:1},[`${ji}-hex-input${Gn}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Ts.bf)(Ss)}`,[`${Gn}-input`]:{fontSize:Sr,textTransform:"uppercase",lineHeight:(0,Ts.bf)(Hi.calc(vs).sub(Hi.calc(ol).mul(2)).equal())},[`${Gn}-input-prefix`]:{color:pl}}}}}},lu=Hi=>{const{componentCls:ji,controlHeightLG:Gn,borderRadiusSM:Sr,colorPickerInsetShadow:Rr,marginSM:co,colorBgElevated:ns,colorFillSecondary:fs,lineWidthBold:vs,colorPickerHandlerSize:as,colorPickerHandlerSizeSM:da,colorPickerSliderHeight:Ss}=Hi;return{[`${ji}-select`]:{[`${ji}-palette`]:{minHeight:Hi.calc(Gn).mul(4).equal(),overflow:"hidden",borderRadius:Sr},[`${ji}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:Rr,inset:0},marginBottom:co},[`${ji}-handler`]:{width:as,height:as,border:`${(0,Ts.bf)(vs)} solid ${ns}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${Rr}, 0 0 0 1px ${fs}`,"&-sm":{width:da,height:da}},[`${ji}-slider`]:{borderRadius:Hi.calc(Ss).div(2).equal(),[`${ji}-palette`]:{height:Ss},[`${ji}-gradient`]:{borderRadius:Hi.calc(Ss).div(2).equal(),boxShadow:Rr},"&-alpha":Ea(`${(0,Ts.bf)(Ss)}`,Hi.colorFillSecondary),"&-hue":{marginBottom:co}},[`${ji}-slider-container`]:{display:"flex",gap:co,marginBottom:co,[`${ji}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${ji}-slider`]:{flex:1,marginBottom:0}}}}}},nu=Hi=>{const{componentCls:ji,antCls:Gn,colorTextQuaternary:Sr,paddingXXS:Rr,colorPickerPresetColorSize:co,fontSizeSM:ns,colorText:fs,lineHeightSM:vs,lineWidth:as,borderRadius:da,colorFill:Ss,colorWhite:pl,marginXXS:Vs,paddingXS:ol,fontHeightSM:sl}=Hi;return{[`${ji}-presets`]:{[`${Gn}-collapse-item > ${Gn}-collapse-header`]:{padding:0,[`${Gn}-collapse-expand-icon`]:{height:sl,color:Sr,paddingInlineEnd:Rr}},[`${Gn}-collapse`]:{display:"flex",flexDirection:"column",gap:Vs},[`${Gn}-collapse-item > ${Gn}-collapse-content > ${Gn}-collapse-content-box`]:{padding:`${(0,Ts.bf)(ol)} 0`},"&-label":{fontSize:ns,color:fs,lineHeight:vs},"&-items":{display:"flex",flexWrap:"wrap",gap:Hi.calc(Vs).mul(1.5).equal(),[`${ji}-presets-color`]:{position:"relative",cursor:"pointer",width:co,height:co,"&::before":{content:'""',pointerEvents:"none",width:Hi.calc(co).add(Hi.calc(as).mul(4)).equal(),height:Hi.calc(co).add(Hi.calc(as).mul(4)).equal(),position:"absolute",top:Hi.calc(as).mul(-2).equal(),insetInlineStart:Hi.calc(as).mul(-2).equal(),borderRadius:da,border:`${(0,Ts.bf)(as)} solid transparent`,transition:`border-color ${Hi.motionDurationMid} ${Hi.motionEaseInBack}`},"&:hover::before":{borderColor:Ss},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Hi.calc(co).div(13).mul(5).equal(),height:Hi.calc(co).div(13).mul(8).equal(),border:`${(0,Ts.bf)(Hi.lineWidthBold)} solid ${Hi.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Hi.motionDurationFast} ${Hi.motionEaseInBack}, opacity ${Hi.motionDurationFast}`},[`&${ji}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:pl,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${Hi.motionDurationMid} ${Hi.motionEaseOutBack} ${Hi.motionDurationFast}`},[`&${ji}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ns,color:Sr}}}};const Fl=(Hi,ji,Gn)=>({borderInlineEndWidth:Hi.lineWidth,borderColor:ji,boxShadow:`0 0 0 ${(0,Ts.bf)(Hi.controlOutlineWidth)} ${Gn}`,outline:0}),va=Hi=>{const{componentCls:ji}=Hi;return{"&-rtl":{[`${ji}-presets-color`]:{"&::after":{direction:"ltr"}},[`${ji}-clear`]:{"&::after":{direction:"ltr"}}}}},Ua=(Hi,ji,Gn)=>{const{componentCls:Sr,borderRadiusSM:Rr,lineWidth:co,colorSplit:ns,red6:fs}=Hi;return{[`${Sr}-clear`]:Object.assign(Object.assign({width:ji,height:ji,borderRadius:Rr,border:`${(0,Ts.bf)(co)} solid ${ns}`,position:"relative",overflow:"hidden"},Gn),{"&::after":{content:'""',position:"absolute",insetInlineEnd:co,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:fs}})}},Yl=Hi=>{const{componentCls:ji,colorError:Gn,colorWarning:Sr,colorErrorHover:Rr,colorWarningHover:co,colorErrorOutline:ns,colorWarningOutline:fs}=Hi;return{[`&${ji}-status-error`]:{borderColor:Gn,"&:hover":{borderColor:Rr},[`&${ji}-trigger-active`]:Object.assign({},Fl(Hi,Gn,ns))},[`&${ji}-status-warning`]:{borderColor:Sr,"&:hover":{borderColor:co},[`&${ji}-trigger-active`]:Object.assign({},Fl(Hi,Sr,fs))}}},Cc=Hi=>{const{componentCls:ji,controlHeightLG:Gn,controlHeightSM:Sr,controlHeight:Rr,controlHeightXS:co,borderRadius:ns,borderRadiusSM:fs,borderRadiusXS:vs,borderRadiusLG:as,fontSizeLG:da}=Hi;return{[`&${ji}-lg`]:{minWidth:Gn,height:Gn,borderRadius:as,[`${ji}-color-block, ${ji}-clear`]:{width:Rr,height:Rr,borderRadius:ns},[`${ji}-trigger-text`]:{fontSize:da}},[`&${ji}-sm`]:{minWidth:Sr,height:Sr,borderRadius:fs,[`${ji}-color-block, ${ji}-clear`]:{width:co,height:co,borderRadius:vs}}}},ch=Hi=>{const{antCls:ji,componentCls:Gn,colorPickerWidth:Sr,colorPrimary:Rr,motionDurationMid:co,colorBgElevated:ns,colorTextDisabled:fs,colorText:vs,colorBgContainerDisabled:as,borderRadius:da,marginXS:Ss,marginSM:pl,controlHeight:Vs,controlHeightSM:ol,colorBgTextActive:sl,colorPickerPresetColorSize:eu,colorPickerPreviewSize:kl,lineWidth:Wl,colorBorder:Dl,paddingXXS:ml,fontSize:uu,colorPrimaryHover:pn,controlOutline:pu}=Hi;return[{[Gn]:Object.assign({[`${Gn}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:Sr,[`& > ${ji}-divider`]:{margin:`${(0,Ts.bf)(pl)} 0 ${(0,Ts.bf)(Ss)}`}},[`${Gn}-panel`]:Object.assign({},lu(Hi))},Ba(Hi,kl)),ks(Hi)),nu(Hi)),Ua(Hi,eu,{marginInlineStart:"auto",marginBottom:Ss})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Vs,height:Vs,borderRadius:da,border:`${(0,Ts.bf)(Wl)} solid ${Dl}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${co}`,background:ns,padding:Hi.calc(ml).sub(Wl).equal(),[`${Gn}-trigger-text`]:{marginInlineStart:Ss,marginInlineEnd:Hi.calc(Ss).sub(Hi.calc(ml).sub(Wl)).equal(),fontSize:uu,color:vs},"&:hover":{borderColor:pn},[`&${Gn}-trigger-active`]:Object.assign({},Fl(Hi,Rr,pu)),"&-disabled":{color:fs,background:as,cursor:"not-allowed","&:hover":{borderColor:sl},[`${Gn}-trigger-text`]:{color:fs}}},Ua(Hi,ol)),Ba(Hi,ol)),Yl(Hi)),Cc(Hi))},va(Hi))}]};var mh=(0,Ri.I$)("ColorPicker",Hi=>{const{colorTextQuaternary:ji,marginSM:Gn}=Hi,Sr=8,Rr=(0,To.TS)(Hi,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${ji}`,colorPickerSliderHeight:Sr,colorPickerPreviewSize:Hi.calc(Sr).mul(2).add(Gn).equal()});return[ch(Rr)]}),_h=function(Hi,ji){var Gn={};for(var Sr in Hi)Object.prototype.hasOwnProperty.call(Hi,Sr)&&ji.indexOf(Sr)<0&&(Gn[Sr]=Hi[Sr]);if(Hi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rr=0,Sr=Object.getOwnPropertySymbols(Hi);Rr{const{value:ji,defaultValue:Gn,format:Sr,defaultFormat:Rr,allowClear:co=!1,presets:ns,children:fs,trigger:vs="click",open:as,disabled:da,placement:Ss="bottomLeft",arrow:pl=!0,panelRender:Vs,showText:ol,style:sl,className:eu,size:kl,rootClassName:Wl,prefixCls:Dl,styles:ml,disabledAlpha:uu=!1,onFormatChange:pn,onChange:pu,onClear:tc,onOpenChange:dc,onChangeComplete:Mc,getPopupContainer:Fc,autoAdjustOverflow:cd=!0,destroyTooltipOnHide:Vd}=Hi,yd=_h(Hi,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:Sh,direction:xh,colorPicker:Ud}=(0,v.useContext)(Y.E_),Hf=(0,v.useContext)(ie.Z),ef=da!=null?da:Hf,[Pd,Mf]=xa("",{value:ji,defaultValue:Gn}),[$f,Rd]=(0,A.Z)(!1,{value:as,postState:gh=>!ef&&gh,onChange:dc}),[fp,us]=(0,A.Z)(Sr,{value:Sr,defaultValue:Rr,onChange:pn}),[Ca,Ta]=(0,v.useState)(!ji&&!Gn),Ja=Sh("color-picker",Dl),ou=(0,v.useMemo)(()=>Pn(Pd)<100,[Pd]),{status:yu}=v.useContext(Ie.aM),Ec=(0,se.Z)(kl),Xu=(0,ae.Z)(Ja),[Jl,Rc,Ac]=mh(Ja,Xu),Fh={[`${Ja}-rtl`]:xh},pc=P()(Wl,Ac,Xu,Fh),hh=P()((0,X.Z)(Ja,yu),{[`${Ja}-sm`]:Ec==="small",[`${Ja}-lg`]:Ec==="large"},Ud==null?void 0:Ud.className,pc,eu,Rc),hd=P()(Ja,pc),Ih=(0,v.useRef)(!0),Oc=(gh,Th,ws)=>{let Eu=Xt(gh);(Ca||(ji===null||!ji&&Gn===null))&&(Ta(!1),Pn(Pd)===0&&Th!=="alpha"&&(Eu=hr(Eu))),uu&&ou&&(Eu=hr(Eu)),ws?Ih.current=!1:Mc==null||Mc(Eu),Mf(Eu),pu==null||pu(Eu,Eu.toHexString())},bh=()=>{Ta(!0),tc==null||tc()},jl=gh=>{Ih.current=!0;let Th=Xt(gh);uu&&ou&&(Th=hr(gh)),Mc==null||Mc(Th)},Vh={open:$f,trigger:vs,placement:Ss,arrow:pl,rootClassName:Wl,getPopupContainer:Fc,autoAdjustOverflow:cd,destroyTooltipOnHide:Vd},wa={prefixCls:Ja,color:Pd,allowClear:co,colorCleared:Ca,disabled:ef,disabledAlpha:uu,presets:ns,panelRender:Vs,format:fp,onFormatChange:us,onChangeComplete:jl},su=Object.assign(Object.assign({},Ud==null?void 0:Ud.style),sl);return Jl(v.createElement(Be.Z,Object.assign({style:ml==null?void 0:ml.popup,overlayInnerStyle:ml==null?void 0:ml.popupOverlayInner,onOpenChange:gh=>{Ih.current&&!ef&&Rd(gh)},content:v.createElement(Ie.Ux,{override:!0,status:!0},v.createElement(Po,Object.assign({},wa,{onChange:Oc,onChangeComplete:jl,onClear:bh}))),overlayClassName:hd},Vh),fs||v.createElement(ka,Object.assign({open:$f,className:hh,style:su,color:ji?Xt(ji):Pd,prefixCls:Ja,disabled:ef,colorCleared:Ca,showText:ol,format:fp},yd))))},vu=(0,W.Z)(wh,"color-picker",Hi=>Hi,Hi=>Object.assign(Object.assign({},Hi),{placement:"bottom",autoAdjustOverflow:!1}));wh._InternalPanelDoNotUseOrYouWillBeFired=vu;var ru=wh,Ql=ru},57801:function(St,me,x){"use strict";x.d(me,{n:function(){return P}});var v=x(77617);const z=v.createContext(!1),P=A=>{let{children:W,disabled:X}=A;const Y=v.useContext(z);return v.createElement(z.Provider,{value:X!=null?X:Y},W)};me.Z=z},3942:function(St,me,x){"use strict";x.d(me,{q:function(){return P}});var v=x(77617);const z=v.createContext(void 0),P=A=>{let{children:W,size:X}=A;const Y=v.useContext(z);return v.createElement(z.Provider,{value:X||Y},W)};me.Z=z},58798:function(St,me,x){"use strict";x.d(me,{E_:function(){return A},oR:function(){return z}});var v=x(77617);const z="anticon",P=(X,Y)=>Y||(X?`ant-${X}`:"ant"),A=v.createContext({getPrefixCls:P,iconPrefixCls:z}),{Consumer:W}=A},70990:function(St,me,x){"use strict";var v=x(77617),z=x(58798),P=x(13682);const A=W=>{const{componentName:X}=W,{getPrefixCls:Y}=(0,v.useContext)(z.E_),ie=Y("empty");switch(X){case"Table":case"List":return v.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});default:return v.createElement(P.Z,null)}};me.Z=A},26504:function(St,me,x){"use strict";var v=x(57832);const z=P=>{const[,,,,A]=(0,v.ZP)();return A?`${P}-css-var`:""};me.Z=z},20804:function(St,me,x){"use strict";var v=x(77617),z=x(3942);const P=A=>{const W=v.useContext(z.Z);return v.useMemo(()=>A?typeof A=="string"?A!=null?A:W:A instanceof Function?A(W):W:W,[A,W])};me.Z=P},64495:function(St,me,x){"use strict";x.d(me,{ZP:function(){return oi},w6:function(){return Rt}});var v=x(77617),z=x.t(v,2),P=x(78600),A=x(48081),W=x(64913),X=x(1635),Y=x(80074),ie=x(82464),ae=x(92747),se=x(61706);const Ie="internalMark";var Ce=Ti=>{const{locale:Bi={},children:no,_ANT_MARK__:Vr}=Ti;v.useEffect(()=>(0,ae.f)(Bi&&Bi.Modal),[Bi]);const Rn=v.useMemo(()=>Object.assign(Object.assign({},Bi),{exist:!0}),[Bi]);return v.createElement(se.Z.Provider,{value:Rn},no)},ct=x(209),nt=x(92823),Ge=x(5581),at=x(58798),Ye=x(10129),rt=x(64993),Gt=x(10254),yt=x(98052);const Et=`-ant-${Date.now()}-${Math.random()}`;function ht(Ti,Bi){const no={},Vr=(Sn,Pn)=>{let hr=Sn.clone();return hr=(Pn==null?void 0:Pn(hr))||hr,hr.toRgbString()},Rn=(Sn,Pn)=>{const hr=new rt.C(Sn),mt=(0,Ye.R_)(hr.toRgbString());no[`${Pn}-color`]=Vr(hr),no[`${Pn}-color-disabled`]=mt[1],no[`${Pn}-color-hover`]=mt[4],no[`${Pn}-color-active`]=mt[6],no[`${Pn}-color-outline`]=hr.clone().setAlpha(.2).toRgbString(),no[`${Pn}-color-deprecated-bg`]=mt[0],no[`${Pn}-color-deprecated-border`]=mt[2]};if(Bi.primaryColor){Rn(Bi.primaryColor,"primary");const Sn=new rt.C(Bi.primaryColor),Pn=(0,Ye.R_)(Sn.toRgbString());Pn.forEach((mt,tt)=>{no[`primary-${tt+1}`]=mt}),no["primary-color-deprecated-l-35"]=Vr(Sn,mt=>mt.lighten(35)),no["primary-color-deprecated-l-20"]=Vr(Sn,mt=>mt.lighten(20)),no["primary-color-deprecated-t-20"]=Vr(Sn,mt=>mt.tint(20)),no["primary-color-deprecated-t-50"]=Vr(Sn,mt=>mt.tint(50)),no["primary-color-deprecated-f-12"]=Vr(Sn,mt=>mt.setAlpha(mt.getAlpha()*.12));const hr=new rt.C(Pn[0]);no["primary-color-active-deprecated-f-30"]=Vr(hr,mt=>mt.setAlpha(mt.getAlpha()*.3)),no["primary-color-active-deprecated-d-02"]=Vr(hr,mt=>mt.darken(2))}return Bi.successColor&&Rn(Bi.successColor,"success"),Bi.warningColor&&Rn(Bi.warningColor,"warning"),Bi.errorColor&&Rn(Bi.errorColor,"error"),Bi.infoColor&&Rn(Bi.infoColor,"info"),` :root { - ${Object.keys(cv).map(Ia=>`--${L0}-${Ia}: ${cv[Ia]};`).join(` + ${Object.keys(no).map(Sn=>`--${Ti}-${Sn}: ${no[Sn]};`).join(` `)} } - `.trim()}function Lt(L0,$0){const cv=Yn(L0,$0);(0,Hs.Z)()&&(0,jr.hq)(cv,`${Jr}-dynamic-theme`)}var _n=l(57801),Mt=l(3942);function Bt(){const L0=(0,u.useContext)(_n.Z),$0=(0,u.useContext)(Mt.Z);return{componentDisabled:L0,componentSize:$0}}var Rt=Bt,on=l(48897);const Hr=Object.assign({},D),{useId:vn}=Hr;var gt=typeof vn=="undefined"?()=>"":vn;function Zr(L0,$0){var cv,Gg;const uu=(0,a.ln)("ConfigProvider"),Gs=L0||{},Ia=Gs.inherit===!1||!$0?Object.assign(Object.assign({},At.u_),{hashed:(cv=$0==null?void 0:$0.hashed)!==null&&cv!==void 0?cv:At.u_.hashed,cssVar:$0==null?void 0:$0.cssVar}):$0,lu=gt();return(0,y.Z)(()=>{var _h,Kr;if(!L0)return $0;const fr=Object.assign({},Ia.components);Object.keys(L0.components||{}).forEach(Sg=>{fr[Sg]=Object.assign(Object.assign({},fr[Sg]),L0.components[Sg])});const ri=`css-var-${lu.replace(/:/g,"")}`,Ra=((_h=Gs.cssVar)!==null&&_h!==void 0?_h:Ia.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof Ia.cssVar=="object"?Ia.cssVar:{}),typeof Gs.cssVar=="object"?Gs.cssVar:{}),{key:typeof Gs.cssVar=="object"&&((Kr=Gs.cssVar)===null||Kr===void 0?void 0:Kr.key)||ri});return Object.assign(Object.assign(Object.assign({},Ia),Gs),{token:Object.assign(Object.assign({},Ia.token),Gs.token),components:fr,cssVar:Ra})},[Gs,Ia],(_h,Kr)=>_h.some((fr,ri)=>{const Ra=Kr[ri];return!(0,on.Z)(fr,Ra,!0)}))}var Ht=l(44516),Zs=l(57832);function oi(L0){const{children:$0}=L0,[,cv]=(0,Zs.ZP)(),{motion:Gg}=cv,uu=u.useRef(!1);return uu.current=uu.current||Gg===!1,uu.current?u.createElement(Ht.zt,{motion:Gg},$0):$0}const Pa=null;var Aa=()=>null,Pg=l(35198),Ug=function(L0,$0){var cv={};for(var Gg in L0)Object.prototype.hasOwnProperty.call(L0,Gg)&&$0.indexOf(Gg)<0&&(cv[Gg]=L0[Gg]);if(L0!=null&&typeof Object.getOwnPropertySymbols=="function")for(var uu=0,Gg=Object.getOwnPropertySymbols(L0);uu$0.endsWith("Color"))}const Dg=L0=>{const{prefixCls:$0,iconPrefixCls:cv,theme:Gg,holderRender:uu}=L0;$0!==void 0&&(Lv=$0),cv!==void 0&&(Je=cv),"holderRender"in L0&&(G0=uu),Gg&&(B1(Gg)?Lt(iv(),Gg):k0=Gg)},zo=()=>({getPrefixCls:(L0,$0)=>$0||(L0?`${iv()}-${L0}`:iv()),getIconPrefixCls:u0,getRootPrefixCls:()=>Lv||iv(),getTheme:()=>k0,holderRender:G0}),mu=L0=>{const{children:$0,csp:cv,autoInsertSpaceInButton:Gg,alert:uu,anchor:Gs,form:Ia,locale:lu,componentSize:_h,direction:Kr,space:fr,virtual:ri,dropdownMatchSelectWidth:Ra,popupMatchSelectWidth:Sg,popupOverflow:Jg,legacyLocale:j0,parentContext:Wo,iconPrefixCls:Mo,theme:qr,componentDisabled:On,segmented:rn,statistic:ui,spin:ya,calendar:gd,carousel:Su,cascader:xu,collapse:xa,typography:Td,checkbox:jg,descriptions:Wa,divider:tv,drawer:Bs,skeleton:Sa,steps:$a,image:Bd,layout:Bg,list:Og,mentions:g0,modal:qg,progress:Xg,result:A0,slider:nv,breadcrumb:t0,menu:n0,pagination:u1,input:Eg,empty:a1,badge:Hg,radio:Gd,rate:h0,switch:lv,transfer:su,avatar:hu,message:ev,tag:sv,table:yv,card:$v,tabs:E0,timeline:E1,timePicker:$1,upload:l0,notification:z0,tree:W0,colorPicker:Rv,datePicker:R0,rangePicker:gv,flex:G1,wave:xy,dropdown:Dy,warning:H1,tour:xd}=L0,Yg=u.useCallback((ga,Ga)=>{const{prefixCls:Lu}=L0;if(Ga)return Ga;const dv=Lu||Wo.getPrefixCls("");return ga?`${dv}-${ga}`:dv},[Wo.getPrefixCls,L0.prefixCls]),r0=Mo||Wo.iconPrefixCls||It.oR,No=cv||Wo.csp;(0,Pg.Z)(r0,No);const qt=Zr(qr,Wo.theme),Sr={csp:No,autoInsertSpaceInButton:Gg,alert:uu,anchor:Gs,locale:lu||j0,direction:Kr,space:fr,virtual:ri,popupMatchSelectWidth:Sg!=null?Sg:Ra,popupOverflow:Jg,getPrefixCls:Yg,iconPrefixCls:r0,theme:qt,segmented:rn,statistic:ui,spin:ya,calendar:gd,carousel:Su,cascader:xu,collapse:xa,typography:Td,checkbox:jg,descriptions:Wa,divider:tv,drawer:Bs,skeleton:Sa,steps:$a,image:Bd,input:Eg,layout:Bg,list:Og,mentions:g0,modal:qg,progress:Xg,result:A0,slider:nv,breadcrumb:t0,menu:n0,pagination:u1,empty:a1,badge:Hg,radio:Gd,rate:h0,switch:lv,transfer:su,avatar:hu,message:ev,tag:sv,table:yv,card:$v,tabs:E0,timeline:E1,timePicker:$1,upload:l0,notification:z0,tree:W0,colorPicker:Rv,datePicker:R0,rangePicker:gv,flex:G1,wave:xy,dropdown:Dy,warning:H1,tour:xd},si=Object.assign({},Wo);Object.keys(Sr).forEach(ga=>{Sr[ga]!==void 0&&(si[ga]=Sr[ga])}),d0.forEach(ga=>{const Ga=L0[ga];Ga&&(si[ga]=Ga)});const Rs=(0,y.Z)(()=>si,si,(ga,Ga)=>{const Lu=Object.keys(ga),dv=Object.keys(Ga);return Lu.length!==dv.length||Lu.some(Cv=>ga[Cv]!==Ga[Cv])}),wa=u.useMemo(()=>({prefixCls:r0,csp:No}),[r0,No]);let bu=u.createElement(u.Fragment,null,u.createElement(Aa,{dropdownMatchSelectWidth:Ra}),$0);const s0=u.useMemo(()=>{var ga,Ga,Lu,dv;return(0,w.T)(((ga=ct.Z.Form)===null||ga===void 0?void 0:ga.defaultValidateMessages)||{},((Lu=(Ga=Rs.locale)===null||Ga===void 0?void 0:Ga.Form)===null||Lu===void 0?void 0:Lu.defaultValidateMessages)||{},((dv=Rs.form)===null||dv===void 0?void 0:dv.validateMessages)||{},(Ia==null?void 0:Ia.validateMessages)||{})},[Rs,Ia==null?void 0:Ia.validateMessages]);Object.keys(s0).length>0&&(bu=u.createElement(S.Z.Provider,{value:s0},bu)),lu&&(bu=u.createElement(Ie,{locale:lu,_ANT_MARK__:ie},bu)),(r0||No)&&(bu=u.createElement(x.Z.Provider,{value:wa},bu)),_h&&(bu=u.createElement(Mt.q,{size:_h},bu)),bu=u.createElement(oi,null,bu);const In=u.useMemo(()=>{const ga=qt||{},{algorithm:Ga,token:Lu,components:dv,cssVar:Cv}=ga,Wv=Ug(ga,["algorithm","token","components","cssVar"]),c1=Ga&&(!Array.isArray(Ga)||Ga.length>0)?(0,b.jG)(Ga):At.uH,P1={};Object.entries(dv||{}).forEach(sy=>{let[wy,zy]=sy;const hv=Object.assign({},zy);"algorithm"in hv&&(hv.algorithm===!0?hv.theme=c1:(Array.isArray(hv.algorithm)||typeof hv.algorithm=="function")&&(hv.theme=(0,b.jG)(hv.algorithm)),delete hv.algorithm),P1[wy]=hv});const Z1=Object.assign(Object.assign({},rt.Z),Lu);return Object.assign(Object.assign({},Wv),{theme:c1,token:Z1,components:P1,override:Object.assign({override:Z1},P1),cssVar:Cv})},[qt]);return qr&&(bu=u.createElement(At.Mj.Provider,{value:In},bu)),Rs.warning&&(bu=u.createElement(a.G8.Provider,{value:Rs.warning},bu)),On!==void 0&&(bu=u.createElement(_n.n,{disabled:On},bu)),u.createElement(It.E_.Provider,{value:Rs},bu)},Ag=L0=>{const $0=u.useContext(It.E_),cv=u.useContext(N.Z);return u.createElement(mu,Object.assign({parentContext:$0,legacyLocale:cv},L0))};Ag.ConfigContext=It.E_,Ag.SizeContext=Mt.Z,Ag.config=Dg,Ag.useConfig=Rt,Object.defineProperty(Ag,"SizeContext",{get:()=>Mt.Z});var c0=Ag},14436:function(c,g,l){"use strict";l.d(g,{Z:function(){return oi}});var u=l(77617),D=l(92310),b=l.n(D),x=l(5754),y=l(58798),w=l(20804),a=l(29299),I={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},ie=u.createContext({}),ze=l(6415),Ie=function(Pa,Aa){var Pg={};for(var Ug in Pa)Object.prototype.hasOwnProperty.call(Pa,Ug)&&Aa.indexOf(Ug)<0&&(Pg[Ug]=Pa[Ug]);if(Pa!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e0=0,Ug=Object.getOwnPropertySymbols(Pa);e0(0,ze.Z)(Pa).map(Aa=>Object.assign(Object.assign({},Aa==null?void 0:Aa.props),{key:Aa.key}));function At(Pa,Aa,Pg){const Ug=u.useMemo(()=>Aa||ct(Pg),[Aa,Pg]);return u.useMemo(()=>Ug.map(H0=>{var{span:X0}=H0,d0=Ie(H0,["span"]);return Object.assign(Object.assign({},d0),{span:typeof X0=="number"?X0:(0,x.m9)(Pa,X0)})}),[Ug,Pa])}function rt(Pa,Aa,Pg){let Ug=Pa,e0=!1;return(Pg===void 0||Pg>Aa)&&(Ug=Object.assign(Object.assign({},Pa),{span:Aa}),e0=Pg!==void 0),[Ug,e0]}function It(Pa,Aa){const Pg=[];let Ug=[],e0=Aa,H0=!1;return Pa.filter(X0=>X0).forEach((X0,d0)=>{const jv=X0==null?void 0:X0.span,Lv=jv||1;if(d0===Pa.length-1){const[Je,k0]=rt(X0,e0,jv);H0=H0||k0,Ug.push(Je),Pg.push(Ug);return}if(Lv{const[Pg,Ug]=(0,u.useMemo)(()=>It(Aa,Pa),[Aa,Pa]);return Pg},jr=Pa=>{let{children:Aa}=Pa;return Aa};function Jr(Pa){return Pa!=null}var Lt=Pa=>{const{itemPrefixCls:Aa,component:Pg,span:Ug,className:e0,style:H0,labelStyle:X0,contentStyle:d0,bordered:jv,label:Lv,content:Je,colon:k0,type:G0}=Pa,iv=Pg;return jv?u.createElement(iv,{className:b()({[`${Aa}-item-label`]:G0==="label",[`${Aa}-item-content`]:G0==="content"},e0),style:H0,colSpan:Ug},Jr(Lv)&&u.createElement("span",{style:X0},Lv),Jr(Je)&&u.createElement("span",{style:d0},Je)):u.createElement(iv,{className:b()(`${Aa}-item`,e0),style:H0,colSpan:Ug},u.createElement("div",{className:`${Aa}-item-container`},(Lv||Lv===0)&&u.createElement("span",{className:b()(`${Aa}-item-label`,{[`${Aa}-item-no-colon`]:!k0}),style:X0},Lv),(Je||Je===0)&&u.createElement("span",{className:b()(`${Aa}-item-content`),style:d0},Je)))};function _n(Pa,Aa,Pg){let{colon:Ug,prefixCls:e0,bordered:H0}=Aa,{component:X0,type:d0,showLabel:jv,showContent:Lv,labelStyle:Je,contentStyle:k0}=Pg;return Pa.map((G0,iv)=>{let{label:u0,children:B1,prefixCls:Dg=e0,className:zo,style:mu,labelStyle:Ag,contentStyle:c0,span:L0=1,key:$0}=G0;return typeof X0=="string"?u.createElement(Lt,{key:`${d0}-${$0||iv}`,className:zo,style:mu,labelStyle:Object.assign(Object.assign({},Je),Ag),contentStyle:Object.assign(Object.assign({},k0),c0),span:L0,colon:Ug,component:X0,itemPrefixCls:Dg,bordered:H0,label:jv?u0:null,content:Lv?B1:null,type:d0}):[u.createElement(Lt,{key:`label-${$0||iv}`,className:zo,style:Object.assign(Object.assign(Object.assign({},Je),mu),Ag),span:1,colon:Ug,component:X0[0],itemPrefixCls:Dg,bordered:H0,label:u0,type:"label"}),u.createElement(Lt,{key:`content-${$0||iv}`,className:zo,style:Object.assign(Object.assign(Object.assign({},k0),mu),c0),span:L0*2-1,component:X0[1],itemPrefixCls:Dg,bordered:H0,content:B1,type:"content"})]})}var Bt=Pa=>{const Aa=u.useContext(ie),{prefixCls:Pg,vertical:Ug,row:e0,index:H0,bordered:X0}=Pa;return Ug?u.createElement(u.Fragment,null,u.createElement("tr",{key:`label-${H0}`,className:`${Pg}-row`},_n(e0,Pa,Object.assign({component:"th",type:"label",showLabel:!0},Aa))),u.createElement("tr",{key:`content-${H0}`,className:`${Pg}-row`},_n(e0,Pa,Object.assign({component:"td",type:"content",showContent:!0},Aa)))):u.createElement("tr",{key:H0,className:`${Pg}-row`},_n(e0,Pa,Object.assign({component:X0?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},Aa)))},Rt=l(78600),on=l(91110),Hr=l(79263),vn=l(90882);const Ca=Pa=>{const{componentCls:Aa,labelBg:Pg}=Pa;return{[`&${Aa}-bordered`]:{[`> ${Aa}-view`]:{border:`${(0,Rt.bf)(Pa.lineWidth)} ${Pa.lineType} ${Pa.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${Aa}-row`]:{borderBottom:`${(0,Rt.bf)(Pa.lineWidth)} ${Pa.lineType} ${Pa.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${Aa}-item-label, > ${Aa}-item-content`]:{padding:`${(0,Rt.bf)(Pa.padding)} ${(0,Rt.bf)(Pa.paddingLG)}`,borderInlineEnd:`${(0,Rt.bf)(Pa.lineWidth)} ${Pa.lineType} ${Pa.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${Aa}-item-label`]:{color:Pa.colorTextSecondary,backgroundColor:Pg,"&::after":{display:"none"}}}},[`&${Aa}-middle`]:{[`${Aa}-row`]:{[`> ${Aa}-item-label, > ${Aa}-item-content`]:{padding:`${(0,Rt.bf)(Pa.paddingSM)} ${(0,Rt.bf)(Pa.paddingLG)}`}}},[`&${Aa}-small`]:{[`${Aa}-row`]:{[`> ${Aa}-item-label, > ${Aa}-item-content`]:{padding:`${(0,Rt.bf)(Pa.paddingXS)} ${(0,Rt.bf)(Pa.padding)}`}}}}}},ai=Pa=>{const{componentCls:Aa,extraColor:Pg,itemPaddingBottom:Ug,colonMarginRight:e0,colonMarginLeft:H0,titleMarginBottom:X0}=Pa;return{[Aa]:Object.assign(Object.assign(Object.assign({},(0,on.Wf)(Pa)),Ca(Pa)),{["&-rtl"]:{direction:"rtl"},[`${Aa}-header`]:{display:"flex",alignItems:"center",marginBottom:X0},[`${Aa}-title`]:Object.assign(Object.assign({},on.vS),{flex:"auto",color:Pa.titleColor,fontWeight:Pa.fontWeightStrong,fontSize:Pa.fontSizeLG,lineHeight:Pa.lineHeightLG}),[`${Aa}-extra`]:{marginInlineStart:"auto",color:Pg,fontSize:Pa.fontSize},[`${Aa}-view`]:{width:"100%",borderRadius:Pa.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${Aa}-row`]:{"> th, > td":{paddingBottom:Ug},"&:last-child":{borderBottom:"none"}},[`${Aa}-item-label`]:{color:Pa.colorTextTertiary,fontWeight:"normal",fontSize:Pa.fontSize,lineHeight:Pa.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,Rt.bf)(H0)} ${(0,Rt.bf)(e0)}`},[`&${Aa}-item-no-colon::after`]:{content:'""'}},[`${Aa}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${Aa}-item-content`]:{display:"table-cell",flex:1,color:Pa.contentColor,fontSize:Pa.fontSize,lineHeight:Pa.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${Aa}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${Aa}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${Aa}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${Aa}-row`]:{"> th, > td":{paddingBottom:Pa.paddingSM}}},"&-small":{[`${Aa}-row`]:{"> th, > td":{paddingBottom:Pa.paddingXS}}}})}},gt=Pa=>({labelBg:Pa.colorFillAlter,titleColor:Pa.colorText,titleMarginBottom:Pa.fontSizeSM*Pa.lineHeightSM,itemPaddingBottom:Pa.padding,colonMarginRight:Pa.marginXS,colonMarginLeft:Pa.marginXXS/2,contentColor:Pa.colorText,extraColor:Pa.colorText});var Zr=(0,Hr.I$)("Descriptions",Pa=>{const Aa=(0,vn.TS)(Pa,{});return ai(Aa)},gt),Ht=function(Pa,Aa){var Pg={};for(var Ug in Pa)Object.prototype.hasOwnProperty.call(Pa,Ug)&&Aa.indexOf(Ug)<0&&(Pg[Ug]=Pa[Ug]);if(Pa!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e0=0,Ug=Object.getOwnPropertySymbols(Pa);e0{const{prefixCls:Aa,title:Pg,extra:Ug,column:e0,colon:H0=!0,bordered:X0,layout:d0,children:jv,className:Lv,rootClassName:Je,style:k0,size:G0,labelStyle:iv,contentStyle:u0,items:B1}=Pa,Dg=Ht(Pa,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:zo,direction:mu,descriptions:Ag}=u.useContext(y.E_),c0=zo("descriptions",Aa),L0=(0,a.Z)(),$0=u.useMemo(()=>{var Kr;return typeof e0=="number"?e0:(Kr=(0,x.m9)(L0,Object.assign(Object.assign({},I),e0)))!==null&&Kr!==void 0?Kr:3},[L0,e0]),cv=At(L0,B1,jv),Gg=(0,w.Z)(G0),uu=wn($0,cv),[Gs,Ia,lu]=Zr(c0),_h=u.useMemo(()=>({labelStyle:iv,contentStyle:u0}),[iv,u0]);return Gs(u.createElement(ie.Provider,{value:_h},u.createElement("div",Object.assign({className:b()(c0,Ag==null?void 0:Ag.className,{[`${c0}-${Gg}`]:Gg&&Gg!=="default",[`${c0}-bordered`]:!!X0,[`${c0}-rtl`]:mu==="rtl"},Lv,Je,Ia,lu),style:Object.assign(Object.assign({},Ag==null?void 0:Ag.style),k0)},Dg),(Pg||Ug)&&u.createElement("div",{className:`${c0}-header`},Pg&&u.createElement("div",{className:`${c0}-title`},Pg),Ug&&u.createElement("div",{className:`${c0}-extra`},Ug)),u.createElement("div",{className:`${c0}-view`},u.createElement("table",null,u.createElement("tbody",null,uu.map((Kr,fr)=>u.createElement(Bt,{key:fr,index:fr,colon:H0,prefixCls:c0,vertical:d0==="vertical",bordered:X0,row:Kr}))))))))};Zs.Item=jr;var oi=Zs},37114:function(c,g,l){"use strict";l.d(g,{Z:function(){return ct}});var u=l(77617),D=l(92310),b=l.n(D),x=l(58798),y=l(78600),w=l(91110),a=l(79263),S=l(90882);const I=At=>{const{componentCls:rt,sizePaddingEdgeHorizontal:It,colorSplit:Ot,lineWidth:wn,textPaddingInline:Hs,orientationMargin:jr,verticalMarginInline:Jr}=At;return{[rt]:Object.assign(Object.assign({},(0,w.Wf)(At)),{borderBlockStart:`${(0,y.bf)(wn)} solid ${Ot}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Jr,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,y.bf)(wn)} solid ${Ot}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,y.bf)(At.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${rt}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,y.bf)(At.dividerHorizontalWithTextGutterMargin)} 0`,color:At.colorTextHeading,fontWeight:500,fontSize:At.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ot}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,y.bf)(wn)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${rt}-with-text-left`]:{"&::before":{width:`calc(${jr} * 100%)`},"&::after":{width:`calc(100% - ${jr} * 100%)`}},[`&-horizontal${rt}-with-text-right`]:{"&::before":{width:`calc(100% - ${jr} * 100%)`},"&::after":{width:`calc(${jr} * 100%)`}},[`${rt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Hs},"&-dashed":{background:"none",borderColor:Ot,borderStyle:"dashed",borderWidth:`${(0,y.bf)(wn)} 0 0`},[`&-horizontal${rt}-with-text${rt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${rt}-dashed`]:{borderInlineStartWidth:wn,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${rt}-with-text`]:{color:At.colorText,fontWeight:"normal",fontSize:At.fontSize},[`&-horizontal${rt}-with-text-left${rt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${rt}-inner-text`]:{paddingInlineStart:It}},[`&-horizontal${rt}-with-text-right${rt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${rt}-inner-text`]:{paddingInlineEnd:It}}})}},N=At=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:At.marginXS});var ie=(0,a.I$)("Divider",At=>{const rt=(0,S.TS)(At,{dividerHorizontalWithTextGutterMargin:At.margin,dividerHorizontalGutterMargin:At.marginLG,sizePaddingEdgeHorizontal:0});return[I(rt)]},N,{unitless:{orientationMargin:!0}}),ze=function(At,rt){var It={};for(var Ot in At)Object.prototype.hasOwnProperty.call(At,Ot)&&rt.indexOf(Ot)<0&&(It[Ot]=At[Ot]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Ot=Object.getOwnPropertySymbols(At);wn{const{getPrefixCls:rt,direction:It,divider:Ot}=u.useContext(x.E_),{prefixCls:wn,type:Hs="horizontal",orientation:jr="center",orientationMargin:Jr,className:Yn,rootClassName:Lt,children:_n,dashed:Mt,plain:Bt,style:Rt}=At,on=ze(At,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Hr=rt("divider",wn),[vn,Ca,ai]=ie(Hr),gt=jr.length>0?`-${jr}`:jr,Zr=!!_n,Ht=jr==="left"&&Jr!=null,Zs=jr==="right"&&Jr!=null,oi=b()(Hr,Ot==null?void 0:Ot.className,Ca,ai,`${Hr}-${Hs}`,{[`${Hr}-with-text`]:Zr,[`${Hr}-with-text${gt}`]:Zr,[`${Hr}-dashed`]:!!Mt,[`${Hr}-plain`]:!!Bt,[`${Hr}-rtl`]:It==="rtl",[`${Hr}-no-default-orientation-margin-left`]:Ht,[`${Hr}-no-default-orientation-margin-right`]:Zs},Yn,Lt),Pa=u.useMemo(()=>typeof Jr=="number"?Jr:/^\d+$/.test(Jr)?Number(Jr):Jr,[Jr]),Aa=Object.assign(Object.assign({},Ht&&{marginLeft:Pa}),Zs&&{marginRight:Pa});return vn(u.createElement("div",Object.assign({className:oi,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Rt)},on,{role:"separator"}),_n&&Hs!=="vertical"&&u.createElement("span",{className:`${Hr}-inner-text`,style:Aa},_n)))}},145:function(c,g,l){"use strict";l.d(g,{Z:function(){return Lv}});var u=l(77617),D=l(24545),b=l(92310),x=l.n(b),y=l(31561),w=l(46142),a=l(89308),S=l(41123),I=l(40870),N=l(81420),ie=l(62625),ze=l(20612),Ie=l(80074),ct=l(13150),At=l(58798),rt=l(50523),It=l(83385),Ot=l(57832),wn=l(91110),Hs=l(17089),jr=l(63172),Jr=l(19162),Yn=l(50489),Lt=l(79263),_n=l(90882),Bt=Je=>{const{componentCls:k0,menuCls:G0,colorError:iv,colorTextLightSolid:u0}=Je,B1=`${G0}-item`;return{[`${k0}, ${k0}-menu-submenu`]:{[`${G0} ${B1}`]:{[`&${B1}-danger:not(${B1}-disabled)`]:{color:iv,"&:hover":{color:u0,backgroundColor:iv}}}}}},Rt=l(70157),on=l(78600);const Hr=Je=>{const{componentCls:k0,menuCls:G0,zIndexPopup:iv,dropdownArrowDistance:u0,sizePopupArrow:B1,antCls:Dg,iconCls:zo,motionDurationMid:mu,paddingBlock:Ag,fontSize:c0,dropdownEdgeChildPadding:L0,colorTextDisabled:$0,fontSizeIcon:cv,controlPaddingHorizontal:Gg,colorBgElevated:uu}=Je;return[{[k0]:Object.assign(Object.assign({},(0,wn.Wf)(Je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:iv,display:"block","&::before":{position:"absolute",insetBlock:Je.calc(B1).div(2).sub(u0).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Dg}-btn`]:{[`& > ${zo}-down, & > ${Dg}-btn-icon > ${zo}-down`]:{fontSize:cv}},[`${k0}-wrap`]:{position:"relative",[`${Dg}-btn > ${zo}-down`]:{fontSize:cv},[`${zo}-down::before`]:{transition:`transform ${mu}`}},[`${k0}-wrap-open`]:{[`${zo}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function Pe(Ti,Bi){const no=ht(Ti,Bi);(0,Gt.Z)()&&(0,yt.hq)(no,`${Et}-dynamic-theme`)}var et=x(57801),Oe=x(3942);function Ue(){const Ti=(0,v.useContext)(et.Z),Bi=(0,v.useContext)(Oe.Z);return{componentDisabled:Ti,componentSize:Bi}}var je=Ue,ft=x(48897);const Ct=Object.assign({},z),{useId:Xe}=Ct;var Te=typeof Xe=="undefined"?()=>"":Xe;function vt(Ti,Bi){var no,Vr;const Rn=(0,Y.ln)("ConfigProvider"),Xt=Ti||{},Sn=Xt.inherit===!1||!Bi?Object.assign(Object.assign({},nt.u_),{hashed:(no=Bi==null?void 0:Bi.hashed)!==null&&no!==void 0?no:nt.u_.hashed,cssVar:Bi==null?void 0:Bi.cssVar}):Bi,Pn=Te();return(0,W.Z)(()=>{var hr,mt;if(!Ti)return Bi;const tt=Object.assign({},Sn.components);Object.keys(Ti.components||{}).forEach(vr=>{tt[vr]=Object.assign(Object.assign({},tt[vr]),Ti.components[vr])});const kt=`css-var-${Pn.replace(/:/g,"")}`,vn=((hr=Xt.cssVar)!==null&&hr!==void 0?hr:Sn.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof Sn.cssVar=="object"?Sn.cssVar:{}),typeof Xt.cssVar=="object"?Xt.cssVar:{}),{key:typeof Xt.cssVar=="object"&&((mt=Xt.cssVar)===null||mt===void 0?void 0:mt.key)||kt});return Object.assign(Object.assign(Object.assign({},Sn),Xt),{token:Object.assign(Object.assign({},Sn.token),Xt.token),components:tt,cssVar:vn})},[Xt,Sn],(hr,mt)=>hr.some((tt,kt)=>{const vn=mt[kt];return!(0,ft.Z)(tt,vn,!0)}))}var ze=x(44516),Vt=x(57832);function Tt(Ti){const{children:Bi}=Ti,[,no]=(0,Vt.ZP)(),{motion:Vr}=no,Rn=v.useRef(!1);return Rn.current=Rn.current||Vr===!1,Rn.current?v.createElement(ze.zt,{motion:Vr},Bi):Bi}const un=null;var on=()=>null,Lr=x(35198),Yr=function(Ti,Bi){var no={};for(var Vr in Ti)Object.prototype.hasOwnProperty.call(Ti,Vr)&&Bi.indexOf(Vr)<0&&(no[Vr]=Ti[Vr]);if(Ti!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rn=0,Vr=Object.getOwnPropertySymbols(Ti);RnBi.endsWith("Color"))}const Ar=Ti=>{const{prefixCls:Bi,iconPrefixCls:no,theme:Vr,holderRender:Rn}=Ti;Bi!==void 0&&(Mo=Bi),no!==void 0&&(pe=no),"holderRender"in Ti&&(Vi=Rn),Vr&&(Ms(Vr)?Pe(ro(),Vr):Ii=Vr)},Rt=()=>({getPrefixCls:(Ti,Bi)=>Bi||(Ti?`${ro()}-${Ti}`:ro()),getIconPrefixCls:ai,getRootPrefixCls:()=>Mo||ro(),getTheme:()=>Ii,holderRender:Vi}),jn=Ti=>{const{children:Bi,csp:no,autoInsertSpaceInButton:Vr,alert:Rn,anchor:Xt,form:Sn,locale:Pn,componentSize:hr,direction:mt,space:tt,virtual:kt,dropdownMatchSelectWidth:vn,popupMatchSelectWidth:vr,popupOverflow:qr,legacyLocale:Ni,parentContext:li,iconPrefixCls:Un,theme:dn,componentDisabled:xt,segmented:it,statistic:Bt,spin:rn,calendar:ir,carousel:tr,cascader:Jn,collapse:nn,typography:er,checkbox:Fr,descriptions:jr,divider:bo,drawer:zt,skeleton:en,steps:Cn,image:rr,layout:Pr,list:Er,mentions:ui,modal:Gr,progress:zr,result:Ei,slider:Zi,breadcrumb:Kr,menu:Xr,pagination:Qo,input:pr,empty:qo,badge:Br,radio:sr,rate:ii,switch:qi,transfer:Ln,avatar:zn,message:Wi,tag:Yi,table:so,card:ko,tabs:_i,timeline:hs,timePicker:Ts,upload:Qr,notification:Ai,tree:Ri,colorPicker:To,datePicker:yo,rangePicker:ao,flex:Bs,wave:fa,dropdown:ba,warning:Rs,tour:Ds}=Ti,el=v.useCallback((rs,ps)=>{const{prefixCls:Po}=Ti;if(ps)return ps;const $a=Po||li.getPrefixCls("");return rs?`${$a}-${rs}`:$a},[li.getPrefixCls,Ti.prefixCls]),tl=Un||li.iconPrefixCls||at.oR,sn=no||li.csp;(0,Lr.Z)(tl,sn);const dt=vt(dn,li.theme),Mt={csp:sn,autoInsertSpaceInButton:Vr,alert:Rn,anchor:Xt,locale:Pn||Ni,direction:mt,space:tt,virtual:kt,popupMatchSelectWidth:vr!=null?vr:vn,popupOverflow:qr,getPrefixCls:el,iconPrefixCls:tl,theme:dt,segmented:it,statistic:Bt,spin:rn,calendar:ir,carousel:tr,cascader:Jn,collapse:nn,typography:er,checkbox:Fr,descriptions:jr,divider:bo,drawer:zt,skeleton:en,steps:Cn,image:rr,input:pr,layout:Pr,list:Er,mentions:ui,modal:Gr,progress:zr,result:Ei,slider:Zi,breadcrumb:Kr,menu:Xr,pagination:Qo,empty:qo,badge:Br,radio:sr,rate:ii,switch:qi,transfer:Ln,avatar:zn,message:Wi,tag:Yi,table:so,card:ko,tabs:_i,timeline:hs,timePicker:Ts,upload:Qr,notification:Ai,tree:Ri,colorPicker:To,datePicker:yo,rangePicker:ao,flex:Bs,wave:fa,dropdown:ba,warning:Rs,tour:Ds},Zt=Object.assign({},li);Object.keys(Mt).forEach(rs=>{Mt[rs]!==void 0&&(Zt[rs]=Mt[rs])}),hi.forEach(rs=>{const ps=Ti[rs];ps&&(Zt[rs]=ps)});const Kt=(0,W.Z)(()=>Zt,Zt,(rs,ps)=>{const Po=Object.keys(rs),$a=Object.keys(ps);return Po.length!==$a.length||Po.some(nl=>rs[nl]!==ps[nl])}),Nn=v.useMemo(()=>({prefixCls:tl,csp:sn}),[tl,sn]);let Ur=v.createElement(v.Fragment,null,v.createElement(on,{dropdownMatchSelectWidth:vn}),Bi);const Ui=v.useMemo(()=>{var rs,ps,Po,$a;return(0,X.T)(((rs=ct.Z.Form)===null||rs===void 0?void 0:rs.defaultValidateMessages)||{},((Po=(ps=Kt.locale)===null||ps===void 0?void 0:ps.Form)===null||Po===void 0?void 0:Po.defaultValidateMessages)||{},(($a=Kt.form)===null||$a===void 0?void 0:$a.validateMessages)||{},(Sn==null?void 0:Sn.validateMessages)||{})},[Kt,Sn==null?void 0:Sn.validateMessages]);Object.keys(Ui).length>0&&(Ur=v.createElement(ie.Z.Provider,{value:Ui},Ur)),Pn&&(Ur=v.createElement(Ce,{locale:Pn,_ANT_MARK__:Ie},Ur)),(tl||sn)&&(Ur=v.createElement(A.Z.Provider,{value:Nn},Ur)),hr&&(Ur=v.createElement(Oe.q,{size:hr},Ur)),Ur=v.createElement(Tt,null,Ur);const Ao=v.useMemo(()=>{const rs=dt||{},{algorithm:ps,token:Po,components:$a,cssVar:nl}=rs,ka=Yr(rs,["algorithm","token","components","cssVar"]),Xs=ps&&(!Array.isArray(ps)||ps.length>0)?(0,P.jG)(ps):nt.uH,zs={};Object.entries($a||{}).forEach(Ea=>{let[_a,Ba]=Ea;const Al=Object.assign({},Ba);"algorithm"in Al&&(Al.algorithm===!0?Al.theme=Xs:(Array.isArray(Al.algorithm)||typeof Al.algorithm=="function")&&(Al.theme=(0,P.jG)(Al.algorithm)),delete Al.algorithm),zs[_a]=Al});const xa=Object.assign(Object.assign({},Ge.Z),Po);return Object.assign(Object.assign({},ka),{theme:Xs,token:xa,components:zs,override:Object.assign({override:xa},zs),cssVar:nl})},[dt]);return dn&&(Ur=v.createElement(nt.Mj.Provider,{value:Ao},Ur)),Kt.warning&&(Ur=v.createElement(Y.G8.Provider,{value:Kt.warning},Ur)),xt!==void 0&&(Ur=v.createElement(et.n,{disabled:xt},Ur)),v.createElement(at.E_.Provider,{value:Kt},Ur)},wr=Ti=>{const Bi=v.useContext(at.E_),no=v.useContext(se.Z);return v.createElement(jn,Object.assign({parentContext:Bi,legacyLocale:no},Ti))};wr.ConfigContext=at.E_,wr.SizeContext=Oe.Z,wr.config=Ar,wr.useConfig=je,Object.defineProperty(wr,"SizeContext",{get:()=>Oe.Z});var oi=wr},14436:function(St,me,x){"use strict";x.d(me,{Z:function(){return Tt}});var v=x(77617),z=x(92310),P=x.n(z),A=x(5754),W=x(58798),X=x(20804),Y=x(29299),ae={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Ie=v.createContext({}),Be=x(6415),Ce=function(un,on){var Lr={};for(var Yr in un)Object.prototype.hasOwnProperty.call(un,Yr)&&on.indexOf(Yr)<0&&(Lr[Yr]=un[Yr]);if(un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,Yr=Object.getOwnPropertySymbols(un);fi(0,Be.Z)(un).map(on=>Object.assign(Object.assign({},on==null?void 0:on.props),{key:on.key}));function nt(un,on,Lr){const Yr=v.useMemo(()=>on||ct(Lr),[on,Lr]);return v.useMemo(()=>Yr.map(Xi=>{var{span:Qi}=Xi,hi=Ce(Xi,["span"]);return Object.assign(Object.assign({},hi),{span:typeof Qi=="number"?Qi:(0,A.m9)(un,Qi)})}),[Yr,un])}function Ge(un,on,Lr){let Yr=un,fi=!1;return(Lr===void 0||Lr>on)&&(Yr=Object.assign(Object.assign({},un),{span:on}),fi=Lr!==void 0),[Yr,fi]}function at(un,on){const Lr=[];let Yr=[],fi=on,Xi=!1;return un.filter(Qi=>Qi).forEach((Qi,hi)=>{const Go=Qi==null?void 0:Qi.span,Mo=Go||1;if(hi===un.length-1){const[pe,Ii]=Ge(Qi,fi,Go);Xi=Xi||Ii,Yr.push(pe),Lr.push(Yr);return}if(Mo{const[Lr,Yr]=(0,v.useMemo)(()=>at(on,un),[on,un]);return Lr},yt=un=>{let{children:on}=un;return on};function Et(un){return un!=null}var Pe=un=>{const{itemPrefixCls:on,component:Lr,span:Yr,className:fi,style:Xi,labelStyle:Qi,contentStyle:hi,bordered:Go,label:Mo,content:pe,colon:Ii,type:Vi}=un,ro=Lr;return Go?v.createElement(ro,{className:P()({[`${on}-item-label`]:Vi==="label",[`${on}-item-content`]:Vi==="content"},fi),style:Xi,colSpan:Yr},Et(Mo)&&v.createElement("span",{style:Qi},Mo),Et(pe)&&v.createElement("span",{style:hi},pe)):v.createElement(ro,{className:P()(`${on}-item`,fi),style:Xi,colSpan:Yr},v.createElement("div",{className:`${on}-item-container`},(Mo||Mo===0)&&v.createElement("span",{className:P()(`${on}-item-label`,{[`${on}-item-no-colon`]:!Ii}),style:Qi},Mo),(pe||pe===0)&&v.createElement("span",{className:P()(`${on}-item-content`),style:hi},pe)))};function et(un,on,Lr){let{colon:Yr,prefixCls:fi,bordered:Xi}=on,{component:Qi,type:hi,showLabel:Go,showContent:Mo,labelStyle:pe,contentStyle:Ii}=Lr;return un.map((Vi,ro)=>{let{label:ai,children:Ms,prefixCls:Ar=fi,className:Rt,style:jn,labelStyle:wr,contentStyle:oi,span:Ti=1,key:Bi}=Vi;return typeof Qi=="string"?v.createElement(Pe,{key:`${hi}-${Bi||ro}`,className:Rt,style:jn,labelStyle:Object.assign(Object.assign({},pe),wr),contentStyle:Object.assign(Object.assign({},Ii),oi),span:Ti,colon:Yr,component:Qi,itemPrefixCls:Ar,bordered:Xi,label:Go?ai:null,content:Mo?Ms:null,type:hi}):[v.createElement(Pe,{key:`label-${Bi||ro}`,className:Rt,style:Object.assign(Object.assign(Object.assign({},pe),jn),wr),span:1,colon:Yr,component:Qi[0],itemPrefixCls:Ar,bordered:Xi,label:ai,type:"label"}),v.createElement(Pe,{key:`content-${Bi||ro}`,className:Rt,style:Object.assign(Object.assign(Object.assign({},Ii),jn),oi),span:Ti*2-1,component:Qi[1],itemPrefixCls:Ar,bordered:Xi,content:Ms,type:"content"})]})}var Ue=un=>{const on=v.useContext(Ie),{prefixCls:Lr,vertical:Yr,row:fi,index:Xi,bordered:Qi}=un;return Yr?v.createElement(v.Fragment,null,v.createElement("tr",{key:`label-${Xi}`,className:`${Lr}-row`},et(fi,un,Object.assign({component:"th",type:"label",showLabel:!0},on))),v.createElement("tr",{key:`content-${Xi}`,className:`${Lr}-row`},et(fi,un,Object.assign({component:"td",type:"content",showContent:!0},on)))):v.createElement("tr",{key:Xi,className:`${Lr}-row`},et(fi,un,Object.assign({component:Qi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},on)))},je=x(78600),ft=x(91110),Ct=x(79263),Xe=x(90882);const hn=un=>{const{componentCls:on,labelBg:Lr}=un;return{[`&${on}-bordered`]:{[`> ${on}-view`]:{border:`${(0,je.bf)(un.lineWidth)} ${un.lineType} ${un.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${on}-row`]:{borderBottom:`${(0,je.bf)(un.lineWidth)} ${un.lineType} ${un.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${on}-item-label, > ${on}-item-content`]:{padding:`${(0,je.bf)(un.padding)} ${(0,je.bf)(un.paddingLG)}`,borderInlineEnd:`${(0,je.bf)(un.lineWidth)} ${un.lineType} ${un.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${on}-item-label`]:{color:un.colorTextSecondary,backgroundColor:Lr,"&::after":{display:"none"}}}},[`&${on}-middle`]:{[`${on}-row`]:{[`> ${on}-item-label, > ${on}-item-content`]:{padding:`${(0,je.bf)(un.paddingSM)} ${(0,je.bf)(un.paddingLG)}`}}},[`&${on}-small`]:{[`${on}-row`]:{[`> ${on}-item-label, > ${on}-item-content`]:{padding:`${(0,je.bf)(un.paddingXS)} ${(0,je.bf)(un.padding)}`}}}}}},Nt=un=>{const{componentCls:on,extraColor:Lr,itemPaddingBottom:Yr,colonMarginRight:fi,colonMarginLeft:Xi,titleMarginBottom:Qi}=un;return{[on]:Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(un)),hn(un)),{["&-rtl"]:{direction:"rtl"},[`${on}-header`]:{display:"flex",alignItems:"center",marginBottom:Qi},[`${on}-title`]:Object.assign(Object.assign({},ft.vS),{flex:"auto",color:un.titleColor,fontWeight:un.fontWeightStrong,fontSize:un.fontSizeLG,lineHeight:un.lineHeightLG}),[`${on}-extra`]:{marginInlineStart:"auto",color:Lr,fontSize:un.fontSize},[`${on}-view`]:{width:"100%",borderRadius:un.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${on}-row`]:{"> th, > td":{paddingBottom:Yr},"&:last-child":{borderBottom:"none"}},[`${on}-item-label`]:{color:un.colorTextTertiary,fontWeight:"normal",fontSize:un.fontSize,lineHeight:un.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,je.bf)(Xi)} ${(0,je.bf)(fi)}`},[`&${on}-item-no-colon::after`]:{content:'""'}},[`${on}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${on}-item-content`]:{display:"table-cell",flex:1,color:un.contentColor,fontSize:un.fontSize,lineHeight:un.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${on}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${on}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${on}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${on}-row`]:{"> th, > td":{paddingBottom:un.paddingSM}}},"&-small":{[`${on}-row`]:{"> th, > td":{paddingBottom:un.paddingXS}}}})}},Te=un=>({labelBg:un.colorFillAlter,titleColor:un.colorText,titleMarginBottom:un.fontSizeSM*un.lineHeightSM,itemPaddingBottom:un.padding,colonMarginRight:un.marginXS,colonMarginLeft:un.marginXXS/2,contentColor:un.colorText,extraColor:un.colorText});var vt=(0,Ct.I$)("Descriptions",un=>{const on=(0,Xe.TS)(un,{});return Nt(on)},Te),ze=function(un,on){var Lr={};for(var Yr in un)Object.prototype.hasOwnProperty.call(un,Yr)&&on.indexOf(Yr)<0&&(Lr[Yr]=un[Yr]);if(un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,Yr=Object.getOwnPropertySymbols(un);fi{const{prefixCls:on,title:Lr,extra:Yr,column:fi,colon:Xi=!0,bordered:Qi,layout:hi,children:Go,className:Mo,rootClassName:pe,style:Ii,size:Vi,labelStyle:ro,contentStyle:ai,items:Ms}=un,Ar=ze(un,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Rt,direction:jn,descriptions:wr}=v.useContext(W.E_),oi=Rt("descriptions",on),Ti=(0,Y.Z)(),Bi=v.useMemo(()=>{var mt;return typeof fi=="number"?fi:(mt=(0,A.m9)(Ti,Object.assign(Object.assign({},ae),fi)))!==null&&mt!==void 0?mt:3},[Ti,fi]),no=nt(Ti,Ms,Go),Vr=(0,X.Z)(Vi),Rn=rt(Bi,no),[Xt,Sn,Pn]=vt(oi),hr=v.useMemo(()=>({labelStyle:ro,contentStyle:ai}),[ro,ai]);return Xt(v.createElement(Ie.Provider,{value:hr},v.createElement("div",Object.assign({className:P()(oi,wr==null?void 0:wr.className,{[`${oi}-${Vr}`]:Vr&&Vr!=="default",[`${oi}-bordered`]:!!Qi,[`${oi}-rtl`]:jn==="rtl"},Mo,pe,Sn,Pn),style:Object.assign(Object.assign({},wr==null?void 0:wr.style),Ii)},Ar),(Lr||Yr)&&v.createElement("div",{className:`${oi}-header`},Lr&&v.createElement("div",{className:`${oi}-title`},Lr),Yr&&v.createElement("div",{className:`${oi}-extra`},Yr)),v.createElement("div",{className:`${oi}-view`},v.createElement("table",null,v.createElement("tbody",null,Rn.map((mt,tt)=>v.createElement(Ue,{key:tt,index:tt,colon:Xi,prefixCls:oi,vertical:hi==="vertical",bordered:Qi,row:mt}))))))))};Vt.Item=yt;var Tt=Vt},37114:function(St,me,x){"use strict";x.d(me,{Z:function(){return ct}});var v=x(77617),z=x(92310),P=x.n(z),A=x(58798),W=x(78600),X=x(91110),Y=x(79263),ie=x(90882);const ae=nt=>{const{componentCls:Ge,sizePaddingEdgeHorizontal:at,colorSplit:Ye,lineWidth:rt,textPaddingInline:Gt,orientationMargin:yt,verticalMarginInline:Et}=nt;return{[Ge]:Object.assign(Object.assign({},(0,X.Wf)(nt)),{borderBlockStart:`${(0,W.bf)(rt)} solid ${Ye}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Et,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,W.bf)(rt)} solid ${Ye}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,W.bf)(nt.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ge}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,W.bf)(nt.dividerHorizontalWithTextGutterMargin)} 0`,color:nt.colorTextHeading,fontWeight:500,fontSize:nt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ye}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,W.bf)(rt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ge}-with-text-left`]:{"&::before":{width:`calc(${yt} * 100%)`},"&::after":{width:`calc(100% - ${yt} * 100%)`}},[`&-horizontal${Ge}-with-text-right`]:{"&::before":{width:`calc(100% - ${yt} * 100%)`},"&::after":{width:`calc(${yt} * 100%)`}},[`${Ge}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Gt},"&-dashed":{background:"none",borderColor:Ye,borderStyle:"dashed",borderWidth:`${(0,W.bf)(rt)} 0 0`},[`&-horizontal${Ge}-with-text${Ge}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ge}-dashed`]:{borderInlineStartWidth:rt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ge}-with-text`]:{color:nt.colorText,fontWeight:"normal",fontSize:nt.fontSize},[`&-horizontal${Ge}-with-text-left${Ge}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ge}-inner-text`]:{paddingInlineStart:at}},[`&-horizontal${Ge}-with-text-right${Ge}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ge}-inner-text`]:{paddingInlineEnd:at}}})}},se=nt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:nt.marginXS});var Ie=(0,Y.I$)("Divider",nt=>{const Ge=(0,ie.TS)(nt,{dividerHorizontalWithTextGutterMargin:nt.margin,dividerHorizontalGutterMargin:nt.marginLG,sizePaddingEdgeHorizontal:0});return[ae(Ge)]},se,{unitless:{orientationMargin:!0}}),Be=function(nt,Ge){var at={};for(var Ye in nt)Object.prototype.hasOwnProperty.call(nt,Ye)&&Ge.indexOf(Ye)<0&&(at[Ye]=nt[Ye]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ye=Object.getOwnPropertySymbols(nt);rt{const{getPrefixCls:Ge,direction:at,divider:Ye}=v.useContext(A.E_),{prefixCls:rt,type:Gt="horizontal",orientation:yt="center",orientationMargin:Et,className:ht,rootClassName:Pe,children:et,dashed:Oe,plain:Ue,style:je}=nt,ft=Be(nt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ct=Ge("divider",rt),[Xe,hn,Nt]=Ie(Ct),Te=yt.length>0?`-${yt}`:yt,vt=!!et,ze=yt==="left"&&Et!=null,Vt=yt==="right"&&Et!=null,Tt=P()(Ct,Ye==null?void 0:Ye.className,hn,Nt,`${Ct}-${Gt}`,{[`${Ct}-with-text`]:vt,[`${Ct}-with-text${Te}`]:vt,[`${Ct}-dashed`]:!!Oe,[`${Ct}-plain`]:!!Ue,[`${Ct}-rtl`]:at==="rtl",[`${Ct}-no-default-orientation-margin-left`]:ze,[`${Ct}-no-default-orientation-margin-right`]:Vt},ht,Pe),un=v.useMemo(()=>typeof Et=="number"?Et:/^\d+$/.test(Et)?Number(Et):Et,[Et]),on=Object.assign(Object.assign({},ze&&{marginLeft:un}),Vt&&{marginRight:un});return Xe(v.createElement("div",Object.assign({className:Tt,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),je)},ft,{role:"separator"}),et&&Gt!=="vertical"&&v.createElement("span",{className:`${Ct}-inner-text`,style:on},et)))}},145:function(St,me,x){"use strict";x.d(me,{Z:function(){return Mo}});var v=x(77617),z=x(24545),P=x(92310),A=x.n(P),W=x(31561),X=x(46142),Y=x(89308),ie=x(41123),ae=x(40870),se=x(81420),Ie=x(62625),Be=x(20612),Ce=x(80074),ct=x(13150),nt=x(58798),Ge=x(50523),at=x(83385),Ye=x(57832),rt=x(91110),Gt=x(17089),yt=x(63172),Et=x(19162),ht=x(50489),Pe=x(79263),et=x(90882),Ue=pe=>{const{componentCls:Ii,menuCls:Vi,colorError:ro,colorTextLightSolid:ai}=pe,Ms=`${Vi}-item`;return{[`${Ii}, ${Ii}-menu-submenu`]:{[`${Vi} ${Ms}`]:{[`&${Ms}-danger:not(${Ms}-disabled)`]:{color:ro,"&:hover":{color:ai,backgroundColor:ro}}}}}},je=x(70157),ft=x(78600);const Ct=pe=>{const{componentCls:Ii,menuCls:Vi,zIndexPopup:ro,dropdownArrowDistance:ai,sizePopupArrow:Ms,antCls:Ar,iconCls:Rt,motionDurationMid:jn,paddingBlock:wr,fontSize:oi,dropdownEdgeChildPadding:Ti,colorTextDisabled:Bi,fontSizeIcon:no,controlPaddingHorizontal:Vr,colorBgElevated:Rn}=pe;return[{[Ii]:Object.assign(Object.assign({},(0,rt.Wf)(pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ro,display:"block","&::before":{position:"absolute",insetBlock:pe.calc(Ms).div(2).sub(ai).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Ar}-btn`]:{[`& > ${Rt}-down, & > ${Ar}-btn-icon > ${Rt}-down`]:{fontSize:no}},[`${Ii}-wrap`]:{position:"relative",[`${Ar}-btn > ${Rt}-down`]:{fontSize:no},[`${Rt}-down::before`]:{transition:`transform ${jn}`}},[`${Ii}-wrap-open`]:{[`${Rt}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden - `]:{display:"none"},[`&${Dg}-slide-down-enter${Dg}-slide-down-enter-active${k0}-placement-bottomLeft, - &${Dg}-slide-down-appear${Dg}-slide-down-appear-active${k0}-placement-bottomLeft, - &${Dg}-slide-down-enter${Dg}-slide-down-enter-active${k0}-placement-bottom, - &${Dg}-slide-down-appear${Dg}-slide-down-appear-active${k0}-placement-bottom, - &${Dg}-slide-down-enter${Dg}-slide-down-enter-active${k0}-placement-bottomRight, - &${Dg}-slide-down-appear${Dg}-slide-down-appear-active${k0}-placement-bottomRight`]:{animationName:Hs.fJ},[`&${Dg}-slide-up-enter${Dg}-slide-up-enter-active${k0}-placement-topLeft, - &${Dg}-slide-up-appear${Dg}-slide-up-appear-active${k0}-placement-topLeft, - &${Dg}-slide-up-enter${Dg}-slide-up-enter-active${k0}-placement-top, - &${Dg}-slide-up-appear${Dg}-slide-up-appear-active${k0}-placement-top, - &${Dg}-slide-up-enter${Dg}-slide-up-enter-active${k0}-placement-topRight, - &${Dg}-slide-up-appear${Dg}-slide-up-appear-active${k0}-placement-topRight`]:{animationName:Hs.Qt},[`&${Dg}-slide-down-leave${Dg}-slide-down-leave-active${k0}-placement-bottomLeft, - &${Dg}-slide-down-leave${Dg}-slide-down-leave-active${k0}-placement-bottom, - &${Dg}-slide-down-leave${Dg}-slide-down-leave-active${k0}-placement-bottomRight`]:{animationName:Hs.Uw},[`&${Dg}-slide-up-leave${Dg}-slide-up-leave-active${k0}-placement-topLeft, - &${Dg}-slide-up-leave${Dg}-slide-up-leave-active${k0}-placement-top, - &${Dg}-slide-up-leave${Dg}-slide-up-leave-active${k0}-placement-topRight`]:{animationName:Hs.ly}})},(0,Yn.ZP)(Je,uu,{arrowPlacement:{top:!0,bottom:!0}}),{[`${k0} ${G0}`]:{position:"relative",margin:0},[`${G0}-submenu-popup`]:{position:"absolute",zIndex:iv,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${k0}, ${k0}-menu-submenu`]:{[G0]:Object.assign(Object.assign({padding:L0,listStyleType:"none",backgroundColor:uu,backgroundClip:"padding-box",borderRadius:Je.borderRadiusLG,outline:"none",boxShadow:Je.boxShadowSecondary},(0,wn.Qy)(Je)),{"&:empty":{padding:0,boxShadow:"none"},[`${G0}-item-group-title`]:{padding:`${(0,on.bf)(Ag)} ${(0,on.bf)(Gg)}`,color:Je.colorTextDescription,transition:`all ${mu}`},[`${G0}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${G0}-item-icon`]:{minWidth:c0,marginInlineEnd:Je.marginXS,fontSize:Je.fontSizeSM},[`${G0}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${mu}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${G0}-item, ${G0}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,on.bf)(Ag)} ${(0,on.bf)(Gg)}`,color:Je.colorText,fontWeight:"normal",fontSize:c0,lineHeight:Je.lineHeight,cursor:"pointer",transition:`all ${mu}`,borderRadius:Je.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:Je.controlItemBgHover}},(0,wn.Qy)(Je)),{"&-selected":{color:Je.colorPrimary,backgroundColor:Je.controlItemBgActive,"&:hover, &-active":{backgroundColor:Je.controlItemBgActiveHover}},"&-disabled":{color:$0,cursor:"not-allowed","&:hover":{color:$0,backgroundColor:uu,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,on.bf)(Je.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Je.colorSplit},[`${k0}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Je.paddingXS,[`${k0}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Je.colorTextDescription,fontSize:cv,fontStyle:"normal"}}}),[`${G0}-item-group-list`]:{margin:`0 ${(0,on.bf)(Je.marginXS)}`,padding:0,listStyle:"none"},[`${G0}-submenu-title`]:{paddingInlineEnd:Je.calc(Gg).add(Je.fontSizeSM).equal()},[`${G0}-submenu-vertical`]:{position:"relative"},[`${G0}-submenu${G0}-submenu-disabled ${k0}-menu-submenu-title`]:{[`&, ${k0}-menu-submenu-arrow-icon`]:{color:$0,backgroundColor:uu,cursor:"not-allowed"}},[`${G0}-submenu-selected ${k0}-menu-submenu-title`]:{color:Je.colorPrimary}})}},[(0,Hs.oN)(Je,"slide-up"),(0,Hs.oN)(Je,"slide-down"),(0,jr.Fm)(Je,"move-up"),(0,jr.Fm)(Je,"move-down"),(0,Jr._y)(Je,"zoom-big")]]},vn=Je=>Object.assign(Object.assign({zIndexPopup:Je.zIndexPopupBase+50,paddingBlock:(Je.controlHeight-Je.fontSize*Je.lineHeight)/2},(0,Yn.wZ)({contentRadius:Je.borderRadiusLG,limitVerticalRadius:!0})),(0,Rt.w)(Je));var Ca=(0,Lt.I$)("Dropdown",Je=>{const{marginXXS:k0,sizePopupArrow:G0,paddingXXS:iv,componentCls:u0}=Je,B1=(0,_n.TS)(Je,{menuCls:`${u0}-menu`,dropdownArrowDistance:Je.calc(G0).div(2).add(k0).equal(),dropdownEdgeChildPadding:iv});return[Hr(B1),Bt(B1)]},vn),ai=l(26504);const gt=null,Zr=Je=>{const{menu:k0,arrow:G0,prefixCls:iv,children:u0,trigger:B1,disabled:Dg,dropdownRender:zo,getPopupContainer:mu,overlayClassName:Ag,rootClassName:c0,overlayStyle:L0,open:$0,onOpenChange:cv,visible:Gg,onVisibleChange:uu,mouseEnterDelay:Gs=.15,mouseLeaveDelay:Ia=.1,autoAdjustOverflow:lu=!0,placement:_h="",overlay:Kr,transitionName:fr}=Je,{getPopupContainer:ri,getPrefixCls:Ra,direction:Sg,dropdown:Jg}=u.useContext(At.E_),j0=(0,Ie.ln)("Dropdown"),Wo=u.useMemo(()=>{const qg=Ra();return fr!==void 0?fr:_h.includes("top")?`${qg}-slide-down`:`${qg}-slide-up`},[Ra,_h,fr]),Mo=u.useMemo(()=>_h?_h.includes("Center")?_h.slice(0,_h.indexOf("Center")):_h:Sg==="rtl"?"bottomRight":"bottomLeft",[_h,Sg]),qr=Ra("dropdown",iv),On=(0,ai.Z)(qr),[rn,ui,ya]=Ca(qr,On),[,gd]=(0,Ot.ZP)(),Su=u.Children.only(u0),xu=(0,ze.Tm)(Su,{className:x()(`${qr}-trigger`,{[`${qr}-rtl`]:Sg==="rtl"},Su.props.className),disabled:Dg}),xa=Dg?[]:B1;let Td;xa&&xa.includes("contextMenu")&&(Td=!0);const[jg,Wa]=(0,a.Z)(!1,{value:$0!=null?$0:Gg}),tv=(0,w.zX)(qg=>{cv==null||cv(qg,{source:"trigger"}),uu==null||uu(qg),Wa(qg)}),Bs=x()(Ag,c0,ui,ya,On,Jg==null?void 0:Jg.className,{[`${qr}-rtl`]:Sg==="rtl"}),Sa=(0,N.Z)({arrowPointAtCenter:typeof G0=="object"&&G0.pointAtCenter,autoAdjustOverflow:lu,offset:gd.marginXXS,arrowWidth:G0?gd.sizePopupArrow:0,borderRadius:gd.borderRadius}),$a=u.useCallback(()=>{k0!=null&&k0.selectable&&(k0!=null&&k0.multiple)||(cv==null||cv(!1,{source:"menu"}),Wa(!1))},[k0==null?void 0:k0.selectable,k0==null?void 0:k0.multiple]),Bd=()=>{let qg;return k0!=null&&k0.items?qg=u.createElement(rt.Z,Object.assign({},k0)):typeof Kr=="function"?qg=Kr():qg=Kr,zo&&(qg=zo(qg)),qg=u.Children.only(typeof qg=="string"?u.createElement("span",null,qg):qg),u.createElement(It.J,{prefixCls:`${qr}-menu`,rootClassName:x()(ya,On),expandIcon:u.createElement("span",{className:`${qr}-menu-submenu-arrow`},u.createElement(D.Z,{className:`${qr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$a,validator:Xg=>{let{mode:A0}=Xg}},qg)},[Bg,Og]=(0,I.Cn)("Dropdown",L0==null?void 0:L0.zIndex);let g0=u.createElement(y.Z,Object.assign({alignPoint:Td},(0,S.Z)(Je,["rootClassName"]),{mouseEnterDelay:Gs,mouseLeaveDelay:Ia,visible:jg,builtinPlacements:Sa,arrow:!!G0,overlayClassName:Bs,prefixCls:qr,getPopupContainer:mu||ri,transitionName:Wo,trigger:xa,overlay:Bd,placement:Mo,onVisibleChange:tv,overlayStyle:Object.assign(Object.assign(Object.assign({},Jg==null?void 0:Jg.style),L0),{zIndex:Bg})}),xu);return Bg&&(g0=u.createElement(ct.Z.Provider,{value:Og},g0)),rn(g0)};function Ht(Je){return Object.assign(Object.assign({},Je),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Zs=(0,ie.Z)(Zr,"dropdown",Je=>Je,Ht),oi=Je=>u.createElement(Zs,Object.assign({},Je),u.createElement("span",null));Zr._InternalPanelDoNotUseOrYouWillBeFired=oi;var Pa=Zr,Aa=l(71323),Pg=l(99622),Ug=l(82607),e0=l(55449),H0=function(Je,k0){var G0={};for(var iv in Je)Object.prototype.hasOwnProperty.call(Je,iv)&&k0.indexOf(iv)<0&&(G0[iv]=Je[iv]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u0=0,iv=Object.getOwnPropertySymbols(Je);u0{const{getPopupContainer:k0,getPrefixCls:G0,direction:iv}=u.useContext(At.E_),{prefixCls:u0,type:B1="default",danger:Dg,disabled:zo,loading:mu,onClick:Ag,htmlType:c0,children:L0,className:$0,menu:cv,arrow:Gg,autoFocus:uu,overlay:Gs,trigger:Ia,align:lu,open:_h,onOpenChange:Kr,placement:fr,getPopupContainer:ri,href:Ra,icon:Sg=u.createElement(Aa.Z,null),title:Jg,buttonsRender:j0=$a=>$a,mouseEnterDelay:Wo,mouseLeaveDelay:Mo,overlayClassName:qr,overlayStyle:On,destroyPopupOnHide:rn,dropdownRender:ui}=Je,ya=H0(Je,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),gd=G0("dropdown",u0),Su=`${gd}-button`,xu={menu:cv,arrow:Gg,autoFocus:uu,align:lu,disabled:zo,trigger:zo?[]:Ia,onOpenChange:Kr,getPopupContainer:ri||k0,mouseEnterDelay:Wo,mouseLeaveDelay:Mo,overlayClassName:qr,overlayStyle:On,destroyPopupOnHide:rn,dropdownRender:ui},{compactSize:xa,compactItemClassnames:Td}=(0,e0.ri)(gd,iv),jg=x()(Su,Td,$0);"overlay"in Je&&(xu.overlay=Gs),"open"in Je&&(xu.open=_h),"placement"in Je?xu.placement=fr:xu.placement=iv==="rtl"?"bottomLeft":"bottomRight";const Wa=u.createElement(Pg.ZP,{type:B1,danger:Dg,disabled:zo,loading:mu,onClick:Ag,htmlType:c0,href:Ra,title:Jg},L0),tv=u.createElement(Pg.ZP,{type:B1,danger:Dg,icon:Sg}),[Bs,Sa]=j0([Wa,tv]);return u.createElement(Ug.Z.Compact,Object.assign({className:jg,size:xa,block:!0},ya),Bs,u.createElement(Pa,Object.assign({},xu),Sa))};X0.__ANT_BUTTON=!0;var d0=X0;const jv=Pa;jv.Button=d0;var Lv=jv},13682:function(c,g,l){"use strict";l.d(g,{Z:function(){return Hs}});var u=l(92310),D=l.n(u),b=l(77617),x=l(58798),y=l(50700),w=l(64993),a=l(57832),I=()=>{const[,jr]=(0,a.ZP)(),Yn=new w.C(jr.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:Yn,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ie=()=>{const[,jr]=(0,a.ZP)(),{colorFill:Jr,colorFillTertiary:Yn,colorFillQuaternary:Lt,colorBgContainer:_n}=jr,{borderColor:Mt,shadowColor:Bt,contentColor:Rt}=(0,b.useMemo)(()=>({borderColor:new w.C(Jr).onBackground(_n).toHexShortString(),shadowColor:new w.C(Yn).onBackground(_n).toHexShortString(),contentColor:new w.C(Lt).onBackground(_n).toHexShortString()}),[Jr,Yn,Lt,_n]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:Bt,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:Mt},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Rt}))))},ze=l(79263),Ie=l(90882);const ct=jr=>{const{componentCls:Jr,margin:Yn,marginXS:Lt,marginXL:_n,fontSize:Mt,lineHeight:Bt}=jr;return{[Jr]:{marginInline:Lt,fontSize:Mt,lineHeight:Bt,textAlign:"center",[`${Jr}-image`]:{height:jr.emptyImgHeight,marginBottom:Lt,opacity:jr.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Jr}-description`]:{color:jr.colorText},[`${Jr}-footer`]:{marginTop:Yn},"&-normal":{marginBlock:_n,color:jr.colorTextDisabled,[`${Jr}-description`]:{color:jr.colorTextDisabled},[`${Jr}-image`]:{height:jr.emptyImgHeightMD}},"&-small":{marginBlock:Lt,color:jr.colorTextDisabled,[`${Jr}-image`]:{height:jr.emptyImgHeightSM}}}}};var At=(0,ze.I$)("Empty",jr=>{const{componentCls:Jr,controlHeightLG:Yn,calc:Lt}=jr,_n=(0,Ie.TS)(jr,{emptyImgCls:`${Jr}-img`,emptyImgHeight:Lt(Yn).mul(2.5).equal(),emptyImgHeightMD:Yn,emptyImgHeightSM:Lt(Yn).mul(.875).equal()});return[ct(_n)]}),rt=function(jr,Jr){var Yn={};for(var Lt in jr)Object.prototype.hasOwnProperty.call(jr,Lt)&&Jr.indexOf(Lt)<0&&(Yn[Lt]=jr[Lt]);if(jr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Lt=Object.getOwnPropertySymbols(jr);_n{var{className:Jr,rootClassName:Yn,prefixCls:Lt,image:_n=It,description:Mt,children:Bt,imageStyle:Rt,style:on}=jr,Hr=rt(jr,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:vn,direction:Ca,empty:ai}=b.useContext(x.E_),gt=vn("empty",Lt),[Zr,Ht,Zs]=At(gt),[oi]=(0,y.Z)("Empty"),Pa=typeof Mt!="undefined"?Mt:oi==null?void 0:oi.description,Aa=typeof Pa=="string"?Pa:"empty";let Pg=null;return typeof _n=="string"?Pg=b.createElement("img",{alt:Aa,src:_n}):Pg=_n,Zr(b.createElement("div",Object.assign({className:D()(Ht,Zs,gt,ai==null?void 0:ai.className,{[`${gt}-normal`]:_n===Ot,[`${gt}-rtl`]:Ca==="rtl"},Jr,Yn),style:Object.assign(Object.assign({},ai==null?void 0:ai.style),on)},Hr),b.createElement("div",{className:`${gt}-image`,style:Rt},Pg),Pa&&b.createElement("div",{className:`${gt}-description`},Pa),Bt&&b.createElement("div",{className:`${gt}-footer`},Bt)))};wn.PRESENTED_IMAGE_DEFAULT=It,wn.PRESENTED_IMAGE_SIMPLE=Ot;var Hs=wn},51623:function(c,g,l){"use strict";l.d(g,{RV:function(){return w},Rk:function(){return a},Ux:function(){return I},aM:function(){return S},pg:function(){return N},q3:function(){return x},qI:function(){return y}});var u=l(77617),D=l(41091),b=l(41123);const x=u.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),y=u.createContext(null),w=ie=>{const ze=(0,b.Z)(ie,["prefixCls"]);return u.createElement(D.RV,Object.assign({},ze))},a=u.createContext({prefixCls:""}),S=u.createContext({}),I=ie=>{let{children:ze,status:Ie,override:ct}=ie;const At=(0,u.useContext)(S),rt=(0,u.useMemo)(()=>{const It=Object.assign({},At);return ct&&delete It.isFormItemInput,Ie&&(delete It.status,delete It.hasFeedback,delete It.feedbackIcon),It},[Ie,ct,At]);return u.createElement(S.Provider,{value:rt},ze)},N=(0,u.createContext)(void 0)},90426:function(c,g,l){"use strict";var u=l(77617),D=l(51623);const b=["outlined","borderless","filled"],x=function(y){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const a=(0,u.useContext)(D.pg);let S;typeof y!="undefined"?S=y:w===!1?S="borderless":S=a!=null?a:"outlined";const I=b.includes(S);return[S,I]};g.Z=x},3918:function(c,g,l){"use strict";l.d(g,{Z:function(){return No}});var u=l(49397),D=l(92310),b=l.n(D),x=l(44516),y=l(77617),w=l(12149),a=l(51623);function S(qt){const[Sr,si]=y.useState(qt);return y.useEffect(()=>{const Rs=setTimeout(()=>{si(qt)},qt.length?0:10);return()=>{clearTimeout(Rs)}},[qt]),Sr}var I=l(78600),N=l(91110),ie=l(19162),ze=l(36385),Ie=l(90882),ct=l(79263),rt=qt=>{const{componentCls:Sr}=qt,si=`${Sr}-show-help`,Rs=`${Sr}-show-help-item`;return{[si]:{transition:`opacity ${qt.motionDurationSlow} ${qt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Rs]:{overflow:"hidden",transition:`height ${qt.motionDurationSlow} ${qt.motionEaseInOut}, - opacity ${qt.motionDurationSlow} ${qt.motionEaseInOut}, - transform ${qt.motionDurationSlow} ${qt.motionEaseInOut} !important`,[`&${Rs}-appear, &${Rs}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Rs}-leave-active`]:{transform:"translateY(-5px)"}}}}};const It=qt=>({legend:{display:"block",width:"100%",marginBottom:qt.marginLG,padding:0,color:qt.colorTextDescription,fontSize:qt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,I.bf)(qt.lineWidth)} ${qt.lineType} ${qt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + `]:{display:"none"},[`&${Ar}-slide-down-enter${Ar}-slide-down-enter-active${Ii}-placement-bottomLeft, + &${Ar}-slide-down-appear${Ar}-slide-down-appear-active${Ii}-placement-bottomLeft, + &${Ar}-slide-down-enter${Ar}-slide-down-enter-active${Ii}-placement-bottom, + &${Ar}-slide-down-appear${Ar}-slide-down-appear-active${Ii}-placement-bottom, + &${Ar}-slide-down-enter${Ar}-slide-down-enter-active${Ii}-placement-bottomRight, + &${Ar}-slide-down-appear${Ar}-slide-down-appear-active${Ii}-placement-bottomRight`]:{animationName:Gt.fJ},[`&${Ar}-slide-up-enter${Ar}-slide-up-enter-active${Ii}-placement-topLeft, + &${Ar}-slide-up-appear${Ar}-slide-up-appear-active${Ii}-placement-topLeft, + &${Ar}-slide-up-enter${Ar}-slide-up-enter-active${Ii}-placement-top, + &${Ar}-slide-up-appear${Ar}-slide-up-appear-active${Ii}-placement-top, + &${Ar}-slide-up-enter${Ar}-slide-up-enter-active${Ii}-placement-topRight, + &${Ar}-slide-up-appear${Ar}-slide-up-appear-active${Ii}-placement-topRight`]:{animationName:Gt.Qt},[`&${Ar}-slide-down-leave${Ar}-slide-down-leave-active${Ii}-placement-bottomLeft, + &${Ar}-slide-down-leave${Ar}-slide-down-leave-active${Ii}-placement-bottom, + &${Ar}-slide-down-leave${Ar}-slide-down-leave-active${Ii}-placement-bottomRight`]:{animationName:Gt.Uw},[`&${Ar}-slide-up-leave${Ar}-slide-up-leave-active${Ii}-placement-topLeft, + &${Ar}-slide-up-leave${Ar}-slide-up-leave-active${Ii}-placement-top, + &${Ar}-slide-up-leave${Ar}-slide-up-leave-active${Ii}-placement-topRight`]:{animationName:Gt.ly}})},(0,ht.ZP)(pe,Rn,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ii} ${Vi}`]:{position:"relative",margin:0},[`${Vi}-submenu-popup`]:{position:"absolute",zIndex:ro,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ii}, ${Ii}-menu-submenu`]:{[Vi]:Object.assign(Object.assign({padding:Ti,listStyleType:"none",backgroundColor:Rn,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary},(0,rt.Qy)(pe)),{"&:empty":{padding:0,boxShadow:"none"},[`${Vi}-item-group-title`]:{padding:`${(0,ft.bf)(wr)} ${(0,ft.bf)(Vr)}`,color:pe.colorTextDescription,transition:`all ${jn}`},[`${Vi}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Vi}-item-icon`]:{minWidth:oi,marginInlineEnd:pe.marginXS,fontSize:pe.fontSizeSM},[`${Vi}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${jn}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Vi}-item, ${Vi}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,ft.bf)(wr)} ${(0,ft.bf)(Vr)}`,color:pe.colorText,fontWeight:"normal",fontSize:oi,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${jn}`,borderRadius:pe.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:pe.controlItemBgHover}},(0,rt.Qy)(pe)),{"&-selected":{color:pe.colorPrimary,backgroundColor:pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:pe.controlItemBgActiveHover}},"&-disabled":{color:Bi,cursor:"not-allowed","&:hover":{color:Bi,backgroundColor:Rn,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ft.bf)(pe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:pe.colorSplit},[`${Ii}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:pe.paddingXS,[`${Ii}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:pe.colorTextDescription,fontSize:no,fontStyle:"normal"}}}),[`${Vi}-item-group-list`]:{margin:`0 ${(0,ft.bf)(pe.marginXS)}`,padding:0,listStyle:"none"},[`${Vi}-submenu-title`]:{paddingInlineEnd:pe.calc(Vr).add(pe.fontSizeSM).equal()},[`${Vi}-submenu-vertical`]:{position:"relative"},[`${Vi}-submenu${Vi}-submenu-disabled ${Ii}-menu-submenu-title`]:{[`&, ${Ii}-menu-submenu-arrow-icon`]:{color:Bi,backgroundColor:Rn,cursor:"not-allowed"}},[`${Vi}-submenu-selected ${Ii}-menu-submenu-title`]:{color:pe.colorPrimary}})}},[(0,Gt.oN)(pe,"slide-up"),(0,Gt.oN)(pe,"slide-down"),(0,yt.Fm)(pe,"move-up"),(0,yt.Fm)(pe,"move-down"),(0,Et._y)(pe,"zoom-big")]]},Xe=pe=>Object.assign(Object.assign({zIndexPopup:pe.zIndexPopupBase+50,paddingBlock:(pe.controlHeight-pe.fontSize*pe.lineHeight)/2},(0,ht.wZ)({contentRadius:pe.borderRadiusLG,limitVerticalRadius:!0})),(0,je.w)(pe));var hn=(0,Pe.I$)("Dropdown",pe=>{const{marginXXS:Ii,sizePopupArrow:Vi,paddingXXS:ro,componentCls:ai}=pe,Ms=(0,et.TS)(pe,{menuCls:`${ai}-menu`,dropdownArrowDistance:pe.calc(Vi).div(2).add(Ii).equal(),dropdownEdgeChildPadding:ro});return[Ct(Ms),Ue(Ms)]},Xe),Nt=x(26504);const Te=null,vt=pe=>{const{menu:Ii,arrow:Vi,prefixCls:ro,children:ai,trigger:Ms,disabled:Ar,dropdownRender:Rt,getPopupContainer:jn,overlayClassName:wr,rootClassName:oi,overlayStyle:Ti,open:Bi,onOpenChange:no,visible:Vr,onVisibleChange:Rn,mouseEnterDelay:Xt=.15,mouseLeaveDelay:Sn=.1,autoAdjustOverflow:Pn=!0,placement:hr="",overlay:mt,transitionName:tt}=pe,{getPopupContainer:kt,getPrefixCls:vn,direction:vr,dropdown:qr}=v.useContext(nt.E_),Ni=(0,Ce.ln)("Dropdown"),li=v.useMemo(()=>{const Gr=vn();return tt!==void 0?tt:hr.includes("top")?`${Gr}-slide-down`:`${Gr}-slide-up`},[vn,hr,tt]),Un=v.useMemo(()=>hr?hr.includes("Center")?hr.slice(0,hr.indexOf("Center")):hr:vr==="rtl"?"bottomRight":"bottomLeft",[hr,vr]),dn=vn("dropdown",ro),xt=(0,Nt.Z)(dn),[it,Bt,rn]=hn(dn,xt),[,ir]=(0,Ye.ZP)(),tr=v.Children.only(ai),Jn=(0,Be.Tm)(tr,{className:A()(`${dn}-trigger`,{[`${dn}-rtl`]:vr==="rtl"},tr.props.className),disabled:Ar}),nn=Ar?[]:Ms;let er;nn&&nn.includes("contextMenu")&&(er=!0);const[Fr,jr]=(0,Y.Z)(!1,{value:Bi!=null?Bi:Vr}),bo=(0,X.zX)(Gr=>{no==null||no(Gr,{source:"trigger"}),Rn==null||Rn(Gr),jr(Gr)}),zt=A()(wr,oi,Bt,rn,xt,qr==null?void 0:qr.className,{[`${dn}-rtl`]:vr==="rtl"}),en=(0,se.Z)({arrowPointAtCenter:typeof Vi=="object"&&Vi.pointAtCenter,autoAdjustOverflow:Pn,offset:ir.marginXXS,arrowWidth:Vi?ir.sizePopupArrow:0,borderRadius:ir.borderRadius}),Cn=v.useCallback(()=>{Ii!=null&&Ii.selectable&&(Ii!=null&&Ii.multiple)||(no==null||no(!1,{source:"menu"}),jr(!1))},[Ii==null?void 0:Ii.selectable,Ii==null?void 0:Ii.multiple]),rr=()=>{let Gr;return Ii!=null&&Ii.items?Gr=v.createElement(Ge.Z,Object.assign({},Ii)):typeof mt=="function"?Gr=mt():Gr=mt,Rt&&(Gr=Rt(Gr)),Gr=v.Children.only(typeof Gr=="string"?v.createElement("span",null,Gr):Gr),v.createElement(at.J,{prefixCls:`${dn}-menu`,rootClassName:A()(rn,xt),expandIcon:v.createElement("span",{className:`${dn}-menu-submenu-arrow`},v.createElement(z.Z,{className:`${dn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Cn,validator:zr=>{let{mode:Ei}=zr}},Gr)},[Pr,Er]=(0,ae.Cn)("Dropdown",Ti==null?void 0:Ti.zIndex);let ui=v.createElement(W.Z,Object.assign({alignPoint:er},(0,ie.Z)(pe,["rootClassName"]),{mouseEnterDelay:Xt,mouseLeaveDelay:Sn,visible:Fr,builtinPlacements:en,arrow:!!Vi,overlayClassName:zt,prefixCls:dn,getPopupContainer:jn||kt,transitionName:li,trigger:nn,overlay:rr,placement:Un,onVisibleChange:bo,overlayStyle:Object.assign(Object.assign(Object.assign({},qr==null?void 0:qr.style),Ti),{zIndex:Pr})}),Jn);return Pr&&(ui=v.createElement(ct.Z.Provider,{value:Er},ui)),it(ui)};function ze(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Vt=(0,Ie.Z)(vt,"dropdown",pe=>pe,ze),Tt=pe=>v.createElement(Vt,Object.assign({},pe),v.createElement("span",null));vt._InternalPanelDoNotUseOrYouWillBeFired=Tt;var un=vt,on=x(71323),Lr=x(99622),Yr=x(82607),fi=x(55449),Xi=function(pe,Ii){var Vi={};for(var ro in pe)Object.prototype.hasOwnProperty.call(pe,ro)&&Ii.indexOf(ro)<0&&(Vi[ro]=pe[ro]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,ro=Object.getOwnPropertySymbols(pe);ai{const{getPopupContainer:Ii,getPrefixCls:Vi,direction:ro}=v.useContext(nt.E_),{prefixCls:ai,type:Ms="default",danger:Ar,disabled:Rt,loading:jn,onClick:wr,htmlType:oi,children:Ti,className:Bi,menu:no,arrow:Vr,autoFocus:Rn,overlay:Xt,trigger:Sn,align:Pn,open:hr,onOpenChange:mt,placement:tt,getPopupContainer:kt,href:vn,icon:vr=v.createElement(on.Z,null),title:qr,buttonsRender:Ni=Cn=>Cn,mouseEnterDelay:li,mouseLeaveDelay:Un,overlayClassName:dn,overlayStyle:xt,destroyPopupOnHide:it,dropdownRender:Bt}=pe,rn=Xi(pe,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ir=Vi("dropdown",ai),tr=`${ir}-button`,Jn={menu:no,arrow:Vr,autoFocus:Rn,align:Pn,disabled:Rt,trigger:Rt?[]:Sn,onOpenChange:mt,getPopupContainer:kt||Ii,mouseEnterDelay:li,mouseLeaveDelay:Un,overlayClassName:dn,overlayStyle:xt,destroyPopupOnHide:it,dropdownRender:Bt},{compactSize:nn,compactItemClassnames:er}=(0,fi.ri)(ir,ro),Fr=A()(tr,er,Bi);"overlay"in pe&&(Jn.overlay=Xt),"open"in pe&&(Jn.open=hr),"placement"in pe?Jn.placement=tt:Jn.placement=ro==="rtl"?"bottomLeft":"bottomRight";const jr=v.createElement(Lr.ZP,{type:Ms,danger:Ar,disabled:Rt,loading:jn,onClick:wr,htmlType:oi,href:vn,title:qr},Ti),bo=v.createElement(Lr.ZP,{type:Ms,danger:Ar,icon:vr}),[zt,en]=Ni([jr,bo]);return v.createElement(Yr.Z.Compact,Object.assign({className:Fr,size:nn,block:!0},rn),zt,v.createElement(un,Object.assign({},Jn),en))};Qi.__ANT_BUTTON=!0;var hi=Qi;const Go=un;Go.Button=hi;var Mo=Go},13682:function(St,me,x){"use strict";x.d(me,{Z:function(){return Gt}});var v=x(92310),z=x.n(v),P=x(77617),A=x(58798),W=x(50700),X=x(64993),Y=x(57832),ae=()=>{const[,yt]=(0,Y.ZP)(),ht=new X.C(yt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return P.createElement("svg",{style:ht,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{fill:"none",fillRule:"evenodd"},P.createElement("g",{transform:"translate(24 31.67)"},P.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),P.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),P.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),P.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),P.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),P.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),P.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},P.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),P.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ie=()=>{const[,yt]=(0,Y.ZP)(),{colorFill:Et,colorFillTertiary:ht,colorFillQuaternary:Pe,colorBgContainer:et}=yt,{borderColor:Oe,shadowColor:Ue,contentColor:je}=(0,P.useMemo)(()=>({borderColor:new X.C(Et).onBackground(et).toHexShortString(),shadowColor:new X.C(ht).onBackground(et).toHexShortString(),contentColor:new X.C(Pe).onBackground(et).toHexShortString()}),[Et,ht,Pe,et]);return P.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},P.createElement("ellipse",{fill:Ue,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:Oe},P.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),P.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:je}))))},Be=x(79263),Ce=x(90882);const ct=yt=>{const{componentCls:Et,margin:ht,marginXS:Pe,marginXL:et,fontSize:Oe,lineHeight:Ue}=yt;return{[Et]:{marginInline:Pe,fontSize:Oe,lineHeight:Ue,textAlign:"center",[`${Et}-image`]:{height:yt.emptyImgHeight,marginBottom:Pe,opacity:yt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Et}-description`]:{color:yt.colorText},[`${Et}-footer`]:{marginTop:ht},"&-normal":{marginBlock:et,color:yt.colorTextDisabled,[`${Et}-description`]:{color:yt.colorTextDisabled},[`${Et}-image`]:{height:yt.emptyImgHeightMD}},"&-small":{marginBlock:Pe,color:yt.colorTextDisabled,[`${Et}-image`]:{height:yt.emptyImgHeightSM}}}}};var nt=(0,Be.I$)("Empty",yt=>{const{componentCls:Et,controlHeightLG:ht,calc:Pe}=yt,et=(0,Ce.TS)(yt,{emptyImgCls:`${Et}-img`,emptyImgHeight:Pe(ht).mul(2.5).equal(),emptyImgHeightMD:ht,emptyImgHeightSM:Pe(ht).mul(.875).equal()});return[ct(et)]}),Ge=function(yt,Et){var ht={};for(var Pe in yt)Object.prototype.hasOwnProperty.call(yt,Pe)&&Et.indexOf(Pe)<0&&(ht[Pe]=yt[Pe]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Pe=Object.getOwnPropertySymbols(yt);et{var{className:Et,rootClassName:ht,prefixCls:Pe,image:et=at,description:Oe,children:Ue,imageStyle:je,style:ft}=yt,Ct=Ge(yt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Xe,direction:hn,empty:Nt}=P.useContext(A.E_),Te=Xe("empty",Pe),[vt,ze,Vt]=nt(Te),[Tt]=(0,W.Z)("Empty"),un=typeof Oe!="undefined"?Oe:Tt==null?void 0:Tt.description,on=typeof un=="string"?un:"empty";let Lr=null;return typeof et=="string"?Lr=P.createElement("img",{alt:on,src:et}):Lr=et,vt(P.createElement("div",Object.assign({className:z()(ze,Vt,Te,Nt==null?void 0:Nt.className,{[`${Te}-normal`]:et===Ye,[`${Te}-rtl`]:hn==="rtl"},Et,ht),style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ft)},Ct),P.createElement("div",{className:`${Te}-image`,style:je},Lr),un&&P.createElement("div",{className:`${Te}-description`},un),Ue&&P.createElement("div",{className:`${Te}-footer`},Ue)))};rt.PRESENTED_IMAGE_DEFAULT=at,rt.PRESENTED_IMAGE_SIMPLE=Ye;var Gt=rt},51623:function(St,me,x){"use strict";x.d(me,{RV:function(){return X},Rk:function(){return Y},Ux:function(){return ae},aM:function(){return ie},pg:function(){return se},q3:function(){return A},qI:function(){return W}});var v=x(77617),z=x(41091),P=x(41123);const A=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),W=v.createContext(null),X=Ie=>{const Be=(0,P.Z)(Ie,["prefixCls"]);return v.createElement(z.RV,Object.assign({},Be))},Y=v.createContext({prefixCls:""}),ie=v.createContext({}),ae=Ie=>{let{children:Be,status:Ce,override:ct}=Ie;const nt=(0,v.useContext)(ie),Ge=(0,v.useMemo)(()=>{const at=Object.assign({},nt);return ct&&delete at.isFormItemInput,Ce&&(delete at.status,delete at.hasFeedback,delete at.feedbackIcon),at},[Ce,ct,nt]);return v.createElement(ie.Provider,{value:Ge},Be)},se=(0,v.createContext)(void 0)},90426:function(St,me,x){"use strict";var v=x(77617),z=x(51623);const P=["outlined","borderless","filled"],A=function(W){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const Y=(0,v.useContext)(z.pg);let ie;typeof W!="undefined"?ie=W:X===!1?ie="borderless":ie=Y!=null?Y:"outlined";const ae=P.includes(ie);return[ie,ae]};me.Z=A},3918:function(St,me,x){"use strict";x.d(me,{Z:function(){return sn}});var v=x(49397),z=x(92310),P=x.n(z),A=x(44516),W=x(77617),X=x(12149),Y=x(51623);function ie(dt){const[Mt,Zt]=W.useState(dt);return W.useEffect(()=>{const Kt=setTimeout(()=>{Zt(dt)},dt.length?0:10);return()=>{clearTimeout(Kt)}},[dt]),Mt}var ae=x(78600),se=x(91110),Ie=x(19162),Be=x(36385),Ce=x(90882),ct=x(79263),Ge=dt=>{const{componentCls:Mt}=dt,Zt=`${Mt}-show-help`,Kt=`${Mt}-show-help-item`;return{[Zt]:{transition:`opacity ${dt.motionDurationSlow} ${dt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${dt.motionDurationSlow} ${dt.motionEaseInOut}, + opacity ${dt.motionDurationSlow} ${dt.motionEaseInOut}, + transform ${dt.motionDurationSlow} ${dt.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const at=dt=>({legend:{display:"block",width:"100%",marginBottom:dt.marginLG,padding:0,color:dt.colorTextDescription,fontSize:dt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ae.bf)(dt.lineWidth)} ${dt.lineType} ${dt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,I.bf)(qt.controlOutlineWidth)} ${qt.controlOutline}`},output:{display:"block",paddingTop:15,color:qt.colorText,fontSize:qt.fontSize,lineHeight:qt.lineHeight}}),Ot=(qt,Sr)=>{const{formItemCls:si}=qt;return{[si]:{[`${si}-label > label`]:{height:Sr},[`${si}-control-input`]:{minHeight:Sr}}}},wn=qt=>{const{componentCls:Sr}=qt;return{[qt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,N.Wf)(qt)),It(qt)),{[`${Sr}-text`]:{display:"inline-block",paddingInlineEnd:qt.paddingSM},"&-small":Object.assign({},Ot(qt,qt.controlHeightSM)),"&-large":Object.assign({},Ot(qt,qt.controlHeightLG))})}},Hs=qt=>{const{formItemCls:Sr,iconCls:si,componentCls:Rs,rootPrefixCls:wa,labelRequiredMarkColor:bu,labelColor:s0,labelFontSize:In,labelHeight:ga,labelColonMarginInlineStart:Ga,labelColonMarginInlineEnd:Lu,itemMarginBottom:dv}=qt;return{[Sr]:Object.assign(Object.assign({},(0,N.Wf)(qt)),{marginBottom:dv,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${wa}-row`]:{display:"none"},"&-has-warning":{[`${Sr}-split`]:{color:qt.colorError}},"&-has-error":{[`${Sr}-split`]:{color:qt.colorWarning}},[`${Sr}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:qt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ga,color:s0,fontSize:In,[`> ${si}`]:{fontSize:qt.fontSize,verticalAlign:"top"},[`&${Sr}-required:not(${Sr}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:qt.marginXXS,color:bu,fontSize:qt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Rs}-hide-required-mark &`]:{display:"none"}},[`${Sr}-optional`]:{display:"inline-block",marginInlineStart:qt.marginXXS,color:qt.colorTextDescription,[`${Rs}-hide-required-mark &`]:{display:"none"}},[`${Sr}-tooltip`]:{color:qt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:qt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ga,marginInlineEnd:Lu},[`&${Sr}-no-colon::after`]:{content:'"\\a0"'}}},[`${Sr}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${wa}-col-'"]):not([class*="' ${wa}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:qt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Sr]:{"&-explain, &-extra":{clear:"both",color:qt.colorTextDescription,fontSize:qt.fontSize,lineHeight:qt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:qt.controlHeightSM,transition:`color ${qt.motionDurationMid} ${qt.motionEaseOut}`},"&-explain":{"&-error":{color:qt.colorError},"&-warning":{color:qt.colorWarning}}},[`&-with-help ${Sr}-explain`]:{height:"auto",opacity:1},[`${Sr}-feedback-icon`]:{fontSize:qt.fontSize,textAlign:"center",visibility:"visible",animationName:ie.kr,animationDuration:qt.motionDurationMid,animationTimingFunction:qt.motionEaseOutBack,pointerEvents:"none","&-success":{color:qt.colorSuccess},"&-error":{color:qt.colorError},"&-warning":{color:qt.colorWarning},"&-validating":{color:qt.colorPrimary}}})}},jr=qt=>{const{componentCls:Sr,formItemCls:si}=qt;return{[`${Sr}-horizontal`]:{[`${si}-label`]:{flexGrow:0},[`${si}-control`]:{flex:"1 1 0",minWidth:0},[`${si}-label[class$='-24'], ${si}-label[class*='-24 ']`]:{[`& + ${si}-control`]:{minWidth:"unset"}}}}},Jr=qt=>{const{componentCls:Sr,formItemCls:si}=qt;return{[`${Sr}-inline`]:{display:"flex",flexWrap:"wrap",[si]:{flex:"none",marginInlineEnd:qt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${si}-label, - > ${si}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${si}-label`]:{flex:"none"},[`${Sr}-text`]:{display:"inline-block"},[`${si}-has-feedback`]:{display:"inline-block"}}}}},Yn=qt=>({padding:qt.verticalLabelPadding,margin:qt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Lt=qt=>{const{componentCls:Sr,formItemCls:si,rootPrefixCls:Rs}=qt;return{[`${si} ${si}-label`]:Yn(qt),[`${Sr}:not(${Sr}-inline)`]:{[si]:{flexWrap:"wrap",[`${si}-label, ${si}-control`]:{[`&:not([class*=" ${Rs}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},_n=qt=>{const{componentCls:Sr,formItemCls:si,rootPrefixCls:Rs}=qt;return{[`${Sr}-vertical`]:{[si]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Sr}-item-control`]:{width:"100%"}}},[`${Sr}-vertical ${si}-label, - .${Rs}-col-24${si}-label, - .${Rs}-col-xl-24${si}-label`]:Yn(qt),[`@media (max-width: ${(0,I.bf)(qt.screenXSMax)})`]:[Lt(qt),{[Sr]:{[`.${Rs}-col-xs-24${si}-label`]:Yn(qt)}}],[`@media (max-width: ${(0,I.bf)(qt.screenSMMax)})`]:{[Sr]:{[`.${Rs}-col-sm-24${si}-label`]:Yn(qt)}},[`@media (max-width: ${(0,I.bf)(qt.screenMDMax)})`]:{[Sr]:{[`.${Rs}-col-md-24${si}-label`]:Yn(qt)}},[`@media (max-width: ${(0,I.bf)(qt.screenLGMax)})`]:{[Sr]:{[`.${Rs}-col-lg-24${si}-label`]:Yn(qt)}}}},Mt=qt=>({labelRequiredMarkColor:qt.colorError,labelColor:qt.colorTextHeading,labelFontSize:qt.fontSize,labelHeight:qt.controlHeight,labelColonMarginInlineStart:qt.marginXXS/2,labelColonMarginInlineEnd:qt.marginXS,itemMarginBottom:qt.marginLG,verticalLabelPadding:`0 0 ${qt.paddingXS}px`,verticalLabelMargin:0}),Bt=(qt,Sr)=>(0,Ie.TS)(qt,{formItemCls:`${qt.componentCls}-item`,rootPrefixCls:Sr});var Rt=(0,ct.I$)("Form",(qt,Sr)=>{let{rootPrefixCls:si}=Sr;const Rs=Bt(qt,si);return[wn(Rs),Hs(Rs),rt(Rs),jr(Rs),Jr(Rs),_n(Rs),(0,ze.Z)(Rs),ie.kr]},Mt,{order:-1e3}),on=l(26504);const Hr=[];function vn(qt,Sr,si){let Rs=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof qt=="string"?qt:`${Sr}-${Rs}`,error:qt,errorStatus:si}}var ai=qt=>{let{help:Sr,helpStatus:si,errors:Rs=Hr,warnings:wa=Hr,className:bu,fieldId:s0,onVisibleChanged:In}=qt;const{prefixCls:ga}=y.useContext(a.Rk),Ga=`${ga}-item-explain`,Lu=(0,on.Z)(ga),[dv,Cv,Wv]=Rt(ga,Lu),c1=(0,y.useMemo)(()=>(0,w.Z)(ga),[ga]),P1=S(Rs),Z1=S(wa),sy=y.useMemo(()=>Sr!=null?[vn(Sr,"help",si)]:[].concat((0,u.Z)(P1.map((zy,hv)=>vn(zy,"error","error",hv))),(0,u.Z)(Z1.map((zy,hv)=>vn(zy,"warning","warning",hv)))),[Sr,si,P1,Z1]),wy={};return s0&&(wy.id=`${s0}_help`),dv(y.createElement(x.ZP,{motionDeadline:c1.motionDeadline,motionName:`${ga}-show-help`,visible:!!sy.length,onVisibleChanged:In},zy=>{const{className:hv,style:Qv}=zy;return y.createElement("div",Object.assign({},wy,{className:b()(Ga,hv,Wv,Lu,bu,Cv),style:Qv,role:"alert"}),y.createElement(x.V4,Object.assign({keys:sy},(0,w.Z)(ga),{motionName:`${ga}-show-help-item`,component:!1}),Y1=>{const{key:M_,error:h1,errorStatus:_v,className:Iv,style:Ov}=Y1;return y.createElement("div",{key:M_,className:b()(Iv,{[`${Ga}-${_v}`]:_v}),style:Ov},h1)}))}))},gt=l(41091),Zr=l(58798),Ht=l(57801),Zs=l(20804),oi=l(3942);const Pa=qt=>typeof qt=="object"&&qt!=null&&qt.nodeType===1,Aa=(qt,Sr)=>(!Sr||qt!=="hidden")&&qt!=="visible"&&qt!=="clip",Pg=(qt,Sr)=>{if(qt.clientHeight{const wa=(bu=>{if(!bu.ownerDocument||!bu.ownerDocument.defaultView)return null;try{return bu.ownerDocument.defaultView.frameElement}catch(s0){return null}})(Rs);return!!wa&&(wa.clientHeightbuSr||bu>qt&&s0=Sr&&In>=si?bu-qt-Rs:s0>Sr&&Insi?s0-Sr+wa:0,e0=qt=>{const Sr=qt.parentElement;return Sr==null?qt.getRootNode().host||null:Sr},H0=(qt,Sr)=>{var si,Rs,wa,bu;if(typeof document=="undefined")return[];const{scrollMode:s0,block:In,inline:ga,boundary:Ga,skipOverflowHiddenElements:Lu}=Sr,dv=typeof Ga=="function"?Ga:t2=>t2!==Ga;if(!Pa(qt))throw new TypeError("Invalid target");const Cv=document.scrollingElement||document.documentElement,Wv=[];let c1=qt;for(;Pa(c1)&&dv(c1);){if(c1=e0(c1),c1===Cv){Wv.push(c1);break}c1!=null&&c1===document.body&&Pg(c1)&&!Pg(document.documentElement)||c1!=null&&Pg(c1,Lu)&&Wv.push(c1)}const P1=(Rs=(si=window.visualViewport)==null?void 0:si.width)!=null?Rs:innerWidth,Z1=(bu=(wa=window.visualViewport)==null?void 0:wa.height)!=null?bu:innerHeight,{scrollX:sy,scrollY:wy}=window,{height:zy,width:hv,top:Qv,right:Y1,bottom:M_,left:h1}=qt.getBoundingClientRect(),{top:_v,right:Iv,bottom:Ov,left:v1}=(t2=>{const I2=window.getComputedStyle(t2);return{top:parseFloat(I2.scrollMarginTop)||0,right:parseFloat(I2.scrollMarginRight)||0,bottom:parseFloat(I2.scrollMarginBottom)||0,left:parseFloat(I2.scrollMarginLeft)||0}})(qt);let K1=In==="start"||In==="nearest"?Qv-_v:In==="end"?M_+Ov:Qv+zy/2-_v+Ov,sx=ga==="center"?h1+hv/2-v1+Iv:ga==="end"?Y1+Iv:h1-v1;const Kx=[];for(let t2=0;t2=0&&h1>=0&&M_<=Z1&&Y1<=P1&&Qv>=ax&&M_<=ov&&h1>=rv&&Y1<=rx)return Kx;const yd=getComputedStyle(I2),kg=parseInt(yd.borderLeftWidth,10),Vg=parseInt(yd.borderTopWidth,10),wv=parseInt(yd.borderRightWidth,10),b1=parseInt(yd.borderBottomWidth,10);let I1=0,k1=0;const S1="offsetWidth"in I2?I2.offsetWidth-I2.clientWidth-kg-wv:0,Ay="offsetHeight"in I2?I2.offsetHeight-I2.clientHeight-Vg-b1:0,U1="offsetWidth"in I2?I2.offsetWidth===0?0:J_/I2.offsetWidth:0,E_="offsetHeight"in I2?I2.offsetHeight===0?0:D2/I2.offsetHeight:0;if(Cv===I2)I1=In==="start"?K1:In==="end"?K1-Z1:In==="nearest"?Ug(wy,wy+Z1,Z1,Vg,b1,wy+K1,wy+K1+zy,zy):K1-Z1/2,k1=ga==="start"?sx:ga==="center"?sx-P1/2:ga==="end"?sx-P1:Ug(sy,sy+P1,P1,kg,wv,sy+sx,sy+sx+hv,hv),I1=Math.max(0,I1+wy),k1=Math.max(0,k1+sy);else{I1=In==="start"?K1-ax-Vg:In==="end"?K1-ov+b1+Ay:In==="nearest"?Ug(ax,ov,D2,Vg,b1+Ay,K1,K1+zy,zy):K1-(ax+D2/2)+Ay/2,k1=ga==="start"?sx-rv-kg:ga==="center"?sx-(rv+J_/2)+S1/2:ga==="end"?sx-rx+wv+S1:Ug(rv,rx,J_,kg,wv+S1,sx,sx+hv,hv);const{scrollLeft:ty,scrollTop:h_}=I2;I1=E_===0?0:Math.max(0,Math.min(h_+I1/E_,I2.scrollHeight-D2/E_+Ay)),k1=U1===0?0:Math.max(0,Math.min(ty+k1/U1,I2.scrollWidth-J_/U1+S1)),K1+=h_-I1,sx+=ty-k1}Kx.push({el:I2,top:I1,left:k1})}return Kx},X0=qt=>qt===!1?{block:"end",inline:"nearest"}:(Sr=>Sr===Object(Sr)&&Object.keys(Sr).length!==0)(qt)?qt:{block:"start",inline:"nearest"};function d0(qt,Sr){if(!qt.isConnected||!(wa=>{let bu=wa;for(;bu&&bu.parentNode;){if(bu.parentNode===document)return!0;bu=bu.parentNode instanceof ShadowRoot?bu.parentNode.host:bu.parentNode}return!1})(qt))return;const si=(wa=>{const bu=window.getComputedStyle(wa);return{top:parseFloat(bu.scrollMarginTop)||0,right:parseFloat(bu.scrollMarginRight)||0,bottom:parseFloat(bu.scrollMarginBottom)||0,left:parseFloat(bu.scrollMarginLeft)||0}})(qt);if((wa=>typeof wa=="object"&&typeof wa.behavior=="function")(Sr))return Sr.behavior(H0(qt,Sr));const Rs=typeof Sr=="boolean"||Sr==null?void 0:Sr.behavior;for(const{el:wa,top:bu,left:s0}of H0(qt,X0(Sr))){const In=bu-si.top+si.bottom,ga=s0-si.left+si.right;wa.scroll({top:In,left:ga,behavior:Rs})}}const jv=["parentNode"],Lv="form_item";function Je(qt){return qt===void 0||qt===!1?[]:Array.isArray(qt)?qt:[qt]}function k0(qt,Sr){if(!qt.length)return;const si=qt.join("_");return Sr?`${Sr}_${si}`:jv.includes(si)?`${Lv}_${si}`:si}function G0(qt,Sr,si,Rs,wa,bu){let s0=Rs;return bu!==void 0?s0=bu:si.validating?s0="validating":qt.length?s0="error":Sr.length?s0="warning":(si.touched||wa&&si.validated)&&(s0="success"),s0}function iv(qt){return Je(qt).join("_")}function u0(qt){const[Sr]=(0,gt.cI)(),si=y.useRef({}),Rs=y.useMemo(()=>qt!=null?qt:Object.assign(Object.assign({},Sr),{__INTERNAL__:{itemRef:wa=>bu=>{const s0=iv(wa);bu?si.current[s0]=bu:delete si.current[s0]}},scrollToField:function(wa){let bu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s0=Je(wa),In=k0(s0,Rs.__INTERNAL__.name),ga=In?document.getElementById(In):null;ga&&d0(ga,Object.assign({scrollMode:"if-needed",block:"nearest"},bu))},getFieldInstance:wa=>{const bu=iv(wa);return si.current[bu]}}),[qt,Sr]);return[Rs]}var B1=l(82464),Dg=function(qt,Sr){var si={};for(var Rs in qt)Object.prototype.hasOwnProperty.call(qt,Rs)&&Sr.indexOf(Rs)<0&&(si[Rs]=qt[Rs]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,Rs=Object.getOwnPropertySymbols(qt);wa{const si=y.useContext(Ht.Z),{getPrefixCls:Rs,direction:wa,form:bu}=y.useContext(Zr.E_),{prefixCls:s0,className:In,rootClassName:ga,size:Ga,disabled:Lu=si,form:dv,colon:Cv,labelAlign:Wv,labelWrap:c1,labelCol:P1,wrapperCol:Z1,hideRequiredMark:sy,layout:wy="horizontal",scrollToFirstError:zy,requiredMark:hv,onFinishFailed:Qv,name:Y1,style:M_,feedbackIcons:h1,variant:_v}=qt,Iv=Dg(qt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ov=(0,Zs.Z)(Ga),v1=y.useContext(B1.Z),K1=(0,y.useMemo)(()=>hv!==void 0?hv:sy?!1:bu&&bu.requiredMark!==void 0?bu.requiredMark:!0,[sy,hv,bu]),sx=Cv!=null?Cv:bu==null?void 0:bu.colon,Kx=Rs("form",s0),t2=(0,on.Z)(Kx),[I2,D2,J_]=Rt(Kx,t2),ax=b()(Kx,`${Kx}-${wy}`,{[`${Kx}-hide-required-mark`]:K1===!1,[`${Kx}-rtl`]:wa==="rtl",[`${Kx}-${Ov}`]:Ov},J_,t2,D2,bu==null?void 0:bu.className,In,ga),[rx]=u0(dv),{__INTERNAL__:ov}=rx;ov.name=Y1;const rv=(0,y.useMemo)(()=>({name:Y1,labelAlign:Wv,labelCol:P1,labelWrap:c1,wrapperCol:Z1,vertical:wy==="vertical",colon:sx,requiredMark:K1,itemRef:ov.itemRef,form:rx,feedbackIcons:h1}),[Y1,Wv,P1,Z1,wy,sx,K1,rx,h1]);y.useImperativeHandle(Sr,()=>rx);const yd=(Vg,wv)=>{if(Vg){let b1={block:"nearest"};typeof Vg=="object"&&(b1=Vg),rx.scrollToField(wv,b1)}},kg=Vg=>{if(Qv==null||Qv(Vg),Vg.errorFields.length){const wv=Vg.errorFields[0].name;if(zy!==void 0){yd(zy,wv);return}bu&&bu.scrollToFirstError!==void 0&&yd(bu.scrollToFirstError,wv)}};return I2(y.createElement(a.pg.Provider,{value:_v},y.createElement(Ht.n,{disabled:Lu},y.createElement(oi.Z.Provider,{value:Ov},y.createElement(a.RV,{validateMessages:v1},y.createElement(a.q3.Provider,{value:rv},y.createElement(gt.ZP,Object.assign({id:Y1},Iv,{name:Y1,onFinishFailed:kg,form:rx,style:Object.assign(Object.assign({},bu==null?void 0:bu.style),M_),className:ax}))))))))};var Ag=y.forwardRef(zo),c0=l(37423),L0=l(17763),$0=l(20612),cv=l(80074),Gg=l(6415);function uu(qt){if(typeof qt=="function")return qt;const Sr=(0,Gg.Z)(qt);return Sr.length<=1?Sr[0]:Sr}const Gs=()=>{const{status:qt,errors:Sr=[],warnings:si=[]}=(0,y.useContext)(a.aM);return{status:qt,errors:Sr,warnings:si}};Gs.Context=a.aM;var Ia=Gs,lu=l(74570);function _h(qt){const[Sr,si]=y.useState(qt),Rs=(0,y.useRef)(null),wa=(0,y.useRef)([]),bu=(0,y.useRef)(!1);y.useEffect(()=>(bu.current=!1,()=>{bu.current=!0,lu.Z.cancel(Rs.current),Rs.current=null}),[]);function s0(In){bu.current||(Rs.current===null&&(wa.current=[],Rs.current=(0,lu.Z)(()=>{Rs.current=null,si(ga=>{let Ga=ga;return wa.current.forEach(Lu=>{Ga=Lu(Ga)}),Ga})})),wa.current.push(In))}return[Sr,s0]}function Kr(){const{itemRef:qt}=y.useContext(a.q3),Sr=y.useRef({});function si(Rs,wa){const bu=wa&&typeof wa=="object"&&wa.ref,s0=Rs.join("_");return(Sr.current.name!==s0||Sr.current.originRef!==bu)&&(Sr.current.name=s0,Sr.current.originRef=bu,Sr.current.ref=(0,L0.sQ)(qt(Rs),bu)),Sr.current.ref}return si}var fr=l(66209),ri=l(64693),Ra=l(41123),Sg=l(5754),j0=(0,y.createContext)({});const Wo=qt=>{const{componentCls:Sr}=qt;return{[Sr]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Mo=qt=>{const{componentCls:Sr}=qt;return{[Sr]:{position:"relative",maxWidth:"100%",minHeight:1}}},qr=(qt,Sr)=>{const{prefixCls:si,componentCls:Rs,gridColumns:wa}=qt,bu={};for(let s0=wa;s0>=0;s0--)s0===0?(bu[`${Rs}${Sr}-${s0}`]={display:"none"},bu[`${Rs}-push-${s0}`]={insetInlineStart:"auto"},bu[`${Rs}-pull-${s0}`]={insetInlineEnd:"auto"},bu[`${Rs}${Sr}-push-${s0}`]={insetInlineStart:"auto"},bu[`${Rs}${Sr}-pull-${s0}`]={insetInlineEnd:"auto"},bu[`${Rs}${Sr}-offset-${s0}`]={marginInlineStart:0},bu[`${Rs}${Sr}-order-${s0}`]={order:0}):(bu[`${Rs}${Sr}-${s0}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s0/wa*100}%`,maxWidth:`${s0/wa*100}%`}],bu[`${Rs}${Sr}-push-${s0}`]={insetInlineStart:`${s0/wa*100}%`},bu[`${Rs}${Sr}-pull-${s0}`]={insetInlineEnd:`${s0/wa*100}%`},bu[`${Rs}${Sr}-offset-${s0}`]={marginInlineStart:`${s0/wa*100}%`},bu[`${Rs}${Sr}-order-${s0}`]={order:s0});return bu[`${Rs}${Sr}-flex`]={flex:`var(--${si}${Sr}-flex)`},bu},On=(qt,Sr)=>qr(qt,Sr),rn=(qt,Sr,si)=>({[`@media (min-width: ${(0,I.bf)(Sr)})`]:Object.assign({},On(qt,si))}),ui=()=>({}),ya=()=>({}),gd=(0,ct.I$)("Grid",Wo,ui),Su=(0,ct.I$)("Grid",qt=>{const Sr=(0,Ie.TS)(qt,{gridColumns:24}),si={"-sm":Sr.screenSMMin,"-md":Sr.screenMDMin,"-lg":Sr.screenLGMin,"-xl":Sr.screenXLMin,"-xxl":Sr.screenXXLMin};return[Mo(Sr),On(Sr,""),On(Sr,"-xs"),Object.keys(si).map(Rs=>rn(Sr,si[Rs],Rs)).reduce((Rs,wa)=>Object.assign(Object.assign({},Rs),wa),{})]},ya);var xu=function(qt,Sr){var si={};for(var Rs in qt)Object.prototype.hasOwnProperty.call(qt,Rs)&&Sr.indexOf(Rs)<0&&(si[Rs]=qt[Rs]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,Rs=Object.getOwnPropertySymbols(qt);wa{if(typeof qt=="string"&&Rs(qt),typeof qt=="object")for(let bu=0;bu{wa()},[JSON.stringify(qt),Sr]),si}var tv=y.forwardRef((qt,Sr)=>{const{prefixCls:si,justify:Rs,align:wa,className:bu,style:s0,children:In,gutter:ga=0,wrap:Ga}=qt,Lu=xu(qt,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:dv,direction:Cv}=y.useContext(Zr.E_),[Wv,c1]=y.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[P1,Z1]=y.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),sy=jg(wa,P1),wy=jg(Rs,P1),zy=y.useRef(ga),hv=(0,Sg.ZP)();y.useEffect(()=>{const I2=hv.subscribe(D2=>{Z1(D2);const J_=zy.current||0;(!Array.isArray(J_)&&typeof J_=="object"||Array.isArray(J_)&&(typeof J_[0]=="object"||typeof J_[1]=="object"))&&c1(D2)});return()=>hv.unsubscribe(I2)},[]);const Qv=()=>{const I2=[void 0,void 0];return(Array.isArray(ga)?ga:[ga,void 0]).forEach((J_,ax)=>{if(typeof J_=="object")for(let rx=0;rx0?Iv[0]/-2:void 0;K1&&(v1.marginLeft=K1,v1.marginRight=K1),[,v1.rowGap]=Iv;const[sx,Kx]=Iv,t2=y.useMemo(()=>({gutter:[sx,Kx],wrap:Ga}),[sx,Kx,Ga]);return M_(y.createElement(j0.Provider,{value:t2},y.createElement("div",Object.assign({},Lu,{className:Ov,style:Object.assign(Object.assign({},v1),s0),ref:Sr}),In)))}),Bs=function(qt,Sr){var si={};for(var Rs in qt)Object.prototype.hasOwnProperty.call(qt,Rs)&&Sr.indexOf(Rs)<0&&(si[Rs]=qt[Rs]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,Rs=Object.getOwnPropertySymbols(qt);wa{const{getPrefixCls:si,direction:Rs}=y.useContext(Zr.E_),{gutter:wa,wrap:bu}=y.useContext(j0),{prefixCls:s0,span:In,order:ga,offset:Ga,push:Lu,pull:dv,className:Cv,children:Wv,flex:c1,style:P1}=qt,Z1=Bs(qt,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),sy=si("col",s0),[wy,zy,hv]=Su(sy),Qv={};let Y1={};$a.forEach(_v=>{let Iv={};const Ov=qt[_v];typeof Ov=="number"?Iv.span=Ov:typeof Ov=="object"&&(Iv=Ov||{}),delete Z1[_v],Y1=Object.assign(Object.assign({},Y1),{[`${sy}-${_v}-${Iv.span}`]:Iv.span!==void 0,[`${sy}-${_v}-order-${Iv.order}`]:Iv.order||Iv.order===0,[`${sy}-${_v}-offset-${Iv.offset}`]:Iv.offset||Iv.offset===0,[`${sy}-${_v}-push-${Iv.push}`]:Iv.push||Iv.push===0,[`${sy}-${_v}-pull-${Iv.pull}`]:Iv.pull||Iv.pull===0,[`${sy}-rtl`]:Rs==="rtl"}),Iv.flex&&(Y1[`${sy}-${_v}-flex`]=!0,Qv[`--${sy}-${_v}-flex`]=Sa(Iv.flex))});const M_=b()(sy,{[`${sy}-${In}`]:In!==void 0,[`${sy}-order-${ga}`]:ga,[`${sy}-offset-${Ga}`]:Ga,[`${sy}-push-${Lu}`]:Lu,[`${sy}-pull-${dv}`]:dv},Cv,Y1,zy,hv),h1={};if(wa&&wa[0]>0){const _v=wa[0]/2;h1.paddingLeft=_v,h1.paddingRight=_v}return c1&&(h1.flex=Sa(c1),bu===!1&&!h1.minWidth&&(h1.minWidth=0)),wy(y.createElement("div",Object.assign({},Z1,{style:Object.assign(Object.assign(Object.assign({},h1),P1),Qv),className:M_,ref:Sr}),Wv))});const Og=qt=>{const{formItemCls:Sr}=qt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Sr}-control`]:{display:"flex"}}}};var g0=(0,ct.bk)(["Form","item-item"],(qt,Sr)=>{let{rootPrefixCls:si}=Sr;const Rs=Bt(qt,si);return[Og(Rs)]}),Xg=qt=>{const{prefixCls:Sr,status:si,wrapperCol:Rs,children:wa,errors:bu,warnings:s0,_internalItemRender:In,extra:ga,help:Ga,fieldId:Lu,marginBottom:dv,onErrorVisibleChanged:Cv}=qt,Wv=`${Sr}-item`,c1=y.useContext(a.q3),P1=Rs||c1.wrapperCol||{},Z1=b()(`${Wv}-control`,P1.className),sy=y.useMemo(()=>Object.assign({},c1),[c1]);delete sy.labelCol,delete sy.wrapperCol;const wy=y.createElement("div",{className:`${Wv}-control-input`},y.createElement("div",{className:`${Wv}-control-input-content`},wa)),zy=y.useMemo(()=>({prefixCls:Sr,status:si}),[Sr,si]),hv=dv!==null||bu.length||s0.length?y.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},y.createElement(a.Rk.Provider,{value:zy},y.createElement(ai,{fieldId:Lu,errors:bu,warnings:s0,help:Ga,helpStatus:si,className:`${Wv}-explain-connected`,onVisibleChanged:Cv})),!!dv&&y.createElement("div",{style:{width:0,height:dv}})):null,Qv={};Lu&&(Qv.id=`${Lu}_extra`);const Y1=ga?y.createElement("div",Object.assign({},Qv,{className:`${Wv}-extra`}),ga):null,M_=In&&In.mark==="pro_table_render"&&In.render?In.render(qt,{input:wy,errorList:hv,extra:Y1}):y.createElement(y.Fragment,null,wy,hv,Y1);return y.createElement(a.q3.Provider,{value:sy},y.createElement(Bg,Object.assign({},P1,{className:Z1}),M_),y.createElement(g0,{prefixCls:Sr}))},A0=l(79384),nv=l(27955),t0=l(44847),n0=function(Sr,si){return y.createElement(t0.Z,(0,A0.Z)({},Sr,{ref:si,icon:nv.Z}))},u1=y.forwardRef(n0),Eg=l(209),a1=l(50700),Hg=l(3773),Gd=function(qt,Sr){var si={};for(var Rs in qt)Object.prototype.hasOwnProperty.call(qt,Rs)&&Sr.indexOf(Rs)<0&&(si[Rs]=qt[Rs]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,Rs=Object.getOwnPropertySymbols(qt);wa{let{prefixCls:Sr,label:si,htmlFor:Rs,labelCol:wa,labelAlign:bu,colon:s0,required:In,requiredMark:ga,tooltip:Ga}=qt;var Lu;const[dv]=(0,a1.Z)("Form"),{vertical:Cv,labelAlign:Wv,labelCol:c1,labelWrap:P1,colon:Z1}=y.useContext(a.q3);if(!si)return null;const sy=wa||c1||{},wy=bu||Wv,zy=`${Sr}-item-label`,hv=b()(zy,wy==="left"&&`${zy}-left`,sy.className,{[`${zy}-wrap`]:!!P1});let Qv=si;const Y1=s0===!0||Z1!==!1&&s0!==!1;Y1&&!Cv&&typeof si=="string"&&si.trim()!==""&&(Qv=si.replace(/[:|:]\s*$/,""));const h1=h0(Ga);if(h1){const{icon:v1=y.createElement(u1,null)}=h1,K1=Gd(h1,["icon"]),sx=y.createElement(Hg.Z,Object.assign({},K1),y.cloneElement(v1,{className:`${Sr}-item-tooltip`,title:"",onClick:Kx=>{Kx.preventDefault()},tabIndex:null}));Qv=y.createElement(y.Fragment,null,Qv,sx)}const _v=ga==="optional",Iv=typeof ga=="function";Iv?Qv=ga(Qv,{required:!!In}):_v&&!In&&(Qv=y.createElement(y.Fragment,null,Qv,y.createElement("span",{className:`${Sr}-item-optional`,title:""},(dv==null?void 0:dv.optional)||((Lu=Eg.Z.Form)===null||Lu===void 0?void 0:Lu.optional))));const Ov=b()({[`${Sr}-item-required`]:In,[`${Sr}-item-required-mark-optional`]:_v||Iv,[`${Sr}-item-no-colon`]:!Y1});return y.createElement(Bg,Object.assign({},sy,{className:hv}),y.createElement("label",{htmlFor:Rs,className:Ov,title:typeof si=="string"?si:""},Qv))},hu=l(50555),ev=l(43418),sv=l(81664),yv=l(20555);const $v={success:hu.Z,warning:sv.Z,error:ev.Z,validating:yv.Z};function E0(qt){let{children:Sr,errors:si,warnings:Rs,hasFeedback:wa,validateStatus:bu,prefixCls:s0,meta:In,noStyle:ga}=qt;const Ga=`${s0}-item`,{feedbackIcons:Lu}=y.useContext(a.q3),dv=G0(si,Rs,In,null,!!wa,bu),{isFormItemInput:Cv,status:Wv,hasFeedback:c1,feedbackIcon:P1}=y.useContext(a.aM),Z1=y.useMemo(()=>{var sy;let wy;if(wa){const hv=wa!==!0&&wa.icons||Lu,Qv=dv&&((sy=hv==null?void 0:hv({status:dv,errors:si,warnings:Rs}))===null||sy===void 0?void 0:sy[dv]),Y1=dv&&$v[dv];wy=Qv!==!1&&Y1?y.createElement("span",{className:b()(`${Ga}-feedback-icon`,`${Ga}-feedback-icon-${dv}`)},Qv||y.createElement(Y1,null)):null}const zy={status:dv||"",errors:si,warnings:Rs,hasFeedback:!!wa,feedbackIcon:wy,isFormItemInput:!0};return ga&&(zy.status=(dv!=null?dv:Wv)||"",zy.isFormItemInput=Cv,zy.hasFeedback=!!(wa!=null?wa:c1),zy.feedbackIcon=wa!==void 0?zy.feedbackIcon:P1),zy},[dv,wa,ga,Cv,Wv]);return y.createElement(a.aM.Provider,{value:Z1},Sr)}var E1=function(qt,Sr){var si={};for(var Rs in qt)Object.prototype.hasOwnProperty.call(qt,Rs)&&Sr.indexOf(Rs)<0&&(si[Rs]=qt[Rs]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,Rs=Object.getOwnPropertySymbols(qt);wa{if(h1&&hv.current){const t2=getComputedStyle(hv.current);Ov(parseInt(t2.marginBottom,10))}},[h1,_v]);const v1=t2=>{t2||Ov(null)},sx=function(){let t2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const I2=t2?Qv:Ga.errors,D2=t2?Y1:Ga.warnings;return G0(I2,D2,Ga,"",!!Lu,ga)}(),Kx=b()(wy,si,Rs,{[`${wy}-with-help`]:M_||Qv.length||Y1.length,[`${wy}-has-feedback`]:sx&&Lu,[`${wy}-has-success`]:sx==="success",[`${wy}-has-warning`]:sx==="warning",[`${wy}-has-error`]:sx==="error",[`${wy}-is-validating`]:sx==="validating",[`${wy}-hidden`]:dv});return y.createElement("div",{className:Kx,style:wa,ref:hv},y.createElement(tv,Object.assign({className:`${wy}-row`},(0,Ra.Z)(sy,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),y.createElement(su,Object.assign({htmlFor:Wv},qt,{requiredMark:zy,required:c1!=null?c1:P1,prefixCls:Sr})),y.createElement(Xg,Object.assign({},qt,Ga,{errors:Qv,warnings:Y1,prefixCls:Sr,status:sx,help:bu,marginBottom:Iv,onErrorVisibleChanged:v1}),y.createElement(a.qI.Provider,{value:Z1},y.createElement(E0,{prefixCls:Sr,meta:Ga,errors:Ga.errors,warnings:Ga.warnings,hasFeedback:Lu,validateStatus:sx},Cv)))),!!Iv&&y.createElement("div",{className:`${wy}-margin-offset`,style:{marginBottom:-Iv}}))}const l0="__SPLIT__",z0=null;function W0(qt,Sr){const si=Object.keys(qt),Rs=Object.keys(Sr);return si.length===Rs.length&&si.every(wa=>{const bu=qt[wa],s0=Sr[wa];return bu===s0||typeof bu=="function"||typeof s0=="function"})}const Rv=y.memo(qt=>{let{children:Sr}=qt;return Sr},(qt,Sr)=>W0(qt.control,Sr.control)&&qt.update===Sr.update&&qt.childProps.length===Sr.childProps.length&&qt.childProps.every((si,Rs)=>si===Sr.childProps[Rs]));function R0(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gv(qt){const{name:Sr,noStyle:si,className:Rs,dependencies:wa,prefixCls:bu,shouldUpdate:s0,rules:In,children:ga,required:Ga,label:Lu,messageVariables:dv,trigger:Cv="onChange",validateTrigger:Wv,hidden:c1,help:P1}=qt,{getPrefixCls:Z1}=y.useContext(Zr.E_),{name:sy}=y.useContext(a.q3),wy=uu(ga),zy=typeof wy=="function",hv=y.useContext(a.qI),{validateTrigger:Qv}=y.useContext(gt.zb),Y1=Wv!==void 0?Wv:Qv,M_=Sr!=null,h1=Z1("form",bu),_v=(0,on.Z)(h1),[Iv,Ov,v1]=Rt(h1,_v),K1=(0,cv.ln)("Form.Item"),sx=y.useContext(gt.ZM),Kx=y.useRef(),[t2,I2]=_h({}),[D2,J_]=(0,c0.Z)(()=>R0()),ax=wv=>{const b1=sx==null?void 0:sx.getKey(wv.name);if(J_(wv.destroy?R0():wv,!0),si&&P1!==!1&&hv){let I1=wv.name;if(wv.destroy)I1=Kx.current||I1;else if(b1!==void 0){const[k1,S1]=b1;I1=[k1].concat((0,u.Z)(S1)),Kx.current=I1}hv(wv,I1)}},rx=(wv,b1)=>{I2(I1=>{const k1=Object.assign({},I1),Ay=[].concat((0,u.Z)(wv.name.slice(0,-1)),(0,u.Z)(b1)).join(l0);return wv.destroy?delete k1[Ay]:k1[Ay]=wv,k1})},[ov,rv]=y.useMemo(()=>{const wv=(0,u.Z)(D2.errors),b1=(0,u.Z)(D2.warnings);return Object.values(t2).forEach(I1=>{wv.push.apply(wv,(0,u.Z)(I1.errors||[])),b1.push.apply(b1,(0,u.Z)(I1.warnings||[]))}),[wv,b1]},[t2,D2.errors,D2.warnings]),yd=Kr();function kg(wv,b1,I1){return si&&!c1?y.createElement(E0,{prefixCls:h1,hasFeedback:qt.hasFeedback,validateStatus:qt.validateStatus,meta:D2,errors:ov,warnings:rv,noStyle:!0},wv):y.createElement($1,Object.assign({key:"row"},qt,{className:b()(Rs,v1,_v,Ov),prefixCls:h1,fieldId:b1,isRequired:I1,errors:ov,warnings:rv,meta:D2,onSubItemMetaChange:rx}),wv)}if(!M_&&!zy&&!wa)return Iv(kg(wy));let Vg={};return typeof Lu=="string"?Vg.label=Lu:Sr&&(Vg.label=String(Sr)),dv&&(Vg=Object.assign(Object.assign({},Vg),dv)),Iv(y.createElement(gt.gN,Object.assign({},qt,{messageVariables:Vg,trigger:Cv,validateTrigger:Y1,onMetaChange:ax}),(wv,b1,I1)=>{const k1=Je(Sr).length&&b1?b1.name:[],S1=k0(k1,sy),Ay=Ga!==void 0?Ga:!!(In&&In.some(ty=>{if(ty&&typeof ty=="object"&&ty.required&&!ty.warningOnly)return!0;if(typeof ty=="function"){const h_=ty(I1);return h_&&h_.required&&!h_.warningOnly}return!1})),U1=Object.assign({},wv);let E_=null;if(Array.isArray(wy)&&M_)E_=wy;else if(!(zy&&(!(s0||wa)||M_))){if(!(wa&&!zy&&!M_))if((0,$0.l$)(wy)){const ty=Object.assign(Object.assign({},wy.props),U1);if(ty.id||(ty.id=S1),P1||ov.length>0||rv.length>0||qt.extra){const ox=[];(P1||ov.length>0)&&ox.push(`${S1}_help`),qt.extra&&ox.push(`${S1}_extra`),ty["aria-describedby"]=ox.join(" ")}ov.length>0&&(ty["aria-invalid"]="true"),Ay&&(ty["aria-required"]="true"),(0,L0.Yr)(wy)&&(ty.ref=yd(k1,wy)),new Set([].concat((0,u.Z)(Je(Cv)),(0,u.Z)(Je(Y1)))).forEach(ox=>{ty[ox]=function(){for(var $_,K_,k_,A_,gx,Na=arguments.length,_x=new Array(Na),c2=0;c2{var{prefixCls:Sr,children:si}=qt,Rs=Dy(qt,["prefixCls","children"]);const{getPrefixCls:wa}=y.useContext(Zr.E_),bu=wa("form",Sr),s0=y.useMemo(()=>({prefixCls:bu,status:"error"}),[bu]);return y.createElement(gt.aV,Object.assign({},Rs),(In,ga,Ga)=>y.createElement(a.Rk.Provider,{value:s0},si(In.map(Lu=>Object.assign(Object.assign({},Lu),{fieldKey:Lu.key})),ga,{errors:Ga.errors,warnings:Ga.warnings})))};function Yg(){const{form:qt}=(0,y.useContext)(a.q3);return qt}const r0=Ag;r0.Item=xy,r0.List=xd,r0.ErrorList=ai,r0.useForm=u0,r0.useFormInstance=Yg,r0.useWatch=gt.qo,r0.Provider=a.RV,r0.create=()=>{};var No=r0},82464:function(c,g,l){"use strict";var u=l(77617);g.Z=(0,u.createContext)(void 0)},29299:function(c,g,l){"use strict";var u=l(77617),D=l(64693),b=l(51626),x=l(5754);function y(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const a=(0,u.useRef)({}),S=(0,b.Z)(),I=(0,x.ZP)();return(0,D.Z)(()=>{const N=I.subscribe(ie=>{a.current=ie,w&&S()});return()=>I.unsubscribe(N)},[]),a.current}g.Z=y},154:function(c,g,l){"use strict";l.d(g,{Z:function(){return Hg}});var u=l(77617),D=l(29338),b=l(92310),x=l.n(b),y=l(79384),w=l(54131),a=l(16514),S=l(35372),I=l(13255),N=l(56348),ie=l(45779),ze=l(89308),Ie=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ct=u.createContext(null),At=0;function rt(Gd,h0){var lv=u.useState(function(){return At+=1,String(At)}),su=(0,S.Z)(lv,1),hu=su[0],ev=u.useContext(ct),sv={data:h0,canPreview:Gd};return u.useEffect(function(){if(ev)return ev.register(hu,sv)},[]),u.useEffect(function(){ev&&ev.register(hu,sv)},[Gd,h0]),hu}function It(Gd){return new Promise(function(h0){var lv=document.createElement("img");lv.onerror=function(){return h0(!1)},lv.onload=function(){return h0(!0)},lv.src=Gd})}function Ot(Gd){var h0=Gd.src,lv=Gd.isCustomPlaceholder,su=Gd.fallback,hu=(0,u.useState)(lv?"loading":"normal"),ev=(0,S.Z)(hu,2),sv=ev[0],yv=ev[1],$v=(0,u.useRef)(!1),E0=sv==="error";(0,u.useEffect)(function(){var z0=!0;return It(h0).then(function(W0){!W0&&z0&&yv("error")}),function(){z0=!1}},[h0]),(0,u.useEffect)(function(){lv&&!$v.current?yv("loading"):E0&&yv("normal")},[h0]);var E1=function(){yv("normal")},$1=function(W0){$v.current=!1,sv==="loading"&&W0!==null&&W0!==void 0&&W0.complete&&(W0.naturalWidth||W0.naturalHeight)&&($v.current=!0,E1())},l0=E0&&su?{src:su}:{onLoad:E1,src:h0};return[$1,l0,sv]}var wn=l(6291),Hs=l(65245),jr=l(39193),Jr=l(48897),Yn=l(74570),Lt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function _n(Gd,h0,lv,su){var hu=(0,u.useRef)(null),ev=(0,u.useRef)([]),sv=(0,u.useState)(Lt),yv=(0,S.Z)(sv,2),$v=yv[0],E0=yv[1],E1=function(W0){E0(Lt),su&&!(0,Jr.Z)(Lt,$v)&&su({transform:Lt,action:W0})},$1=function(W0,Rv){hu.current===null&&(ev.current=[],hu.current=(0,Yn.Z)(function(){E0(function(R0){var gv=R0;return ev.current.forEach(function(G1){gv=(0,w.Z)((0,w.Z)({},gv),G1)}),hu.current=null,su==null||su({transform:gv,action:Rv}),gv})})),ev.current.push((0,w.Z)((0,w.Z)({},$v),W0))},l0=function(W0,Rv,R0,gv,G1){var xy=Gd.current,Dy=xy.width,H1=xy.height,xd=xy.offsetWidth,Yg=xy.offsetHeight,r0=xy.offsetLeft,No=xy.offsetTop,qt=W0,Sr=$v.scale*W0;Sr>lv?(Sr=lv,qt=lv/$v.scale):Srsu){if(h0>0)return(0,a.Z)({},Gd,ev);if(h0<0&&husu)return(0,a.Z)({},Gd,h0<0?ev:-ev);return{}}function Rt(Gd,h0,lv,su){var hu=(0,ie.g1)(),ev=hu.width,sv=hu.height,yv=null;return Gd<=ev&&h0<=sv?yv={x:0,y:0}:(Gd>ev||h0>sv)&&(yv=(0,w.Z)((0,w.Z)({},Bt("x",lv,Gd,ev)),Bt("y",su,h0,sv))),yv}var on=1,Hr=1;function vn(Gd,h0,lv,su,hu,ev,sv){var yv=hu.rotate,$v=hu.scale,E0=hu.x,E1=hu.y,$1=(0,u.useState)(!1),l0=(0,S.Z)($1,2),z0=l0[0],W0=l0[1],Rv=(0,u.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),R0=function(H1){!h0||H1.button!==0||(H1.preventDefault(),H1.stopPropagation(),Rv.current={diffX:H1.pageX-E0,diffY:H1.pageY-E1,transformX:E0,transformY:E1},W0(!0))},gv=function(H1){lv&&z0&&ev({x:H1.pageX-Rv.current.diffX,y:H1.pageY-Rv.current.diffY},"move")},G1=function(){if(lv&&z0){W0(!1);var H1=Rv.current,xd=H1.transformX,Yg=H1.transformY,r0=E0!==xd&&E1!==Yg;if(!r0)return;var No=Gd.current.offsetWidth*$v,qt=Gd.current.offsetHeight*$v,Sr=Gd.current.getBoundingClientRect(),si=Sr.left,Rs=Sr.top,wa=yv%180!==0,bu=Rt(wa?qt:No,wa?No:qt,si,Rs);bu&&ev((0,w.Z)({},bu),"dragRebound")}},xy=function(H1){if(!(!lv||H1.deltaY==0)){var xd=Math.abs(H1.deltaY/100),Yg=Math.min(xd,Hr),r0=on+Yg*su;H1.deltaY>0&&(r0=on/r0),sv(r0,"wheel",H1.clientX,H1.clientY)}};return(0,u.useEffect)(function(){var Dy,H1,xd,Yg;if(h0){xd=(0,Hs.Z)(window,"mouseup",G1,!1),Yg=(0,Hs.Z)(window,"mousemove",gv,!1);try{window.top!==window.self&&(Dy=(0,Hs.Z)(window.top,"mouseup",G1,!1),H1=(0,Hs.Z)(window.top,"mousemove",gv,!1))}catch(r0){(0,Mt.Kp)(!1,"[rc-image] ".concat(r0))}}return function(){var r0,No,qt,Sr;(r0=xd)===null||r0===void 0||r0.remove(),(No=Yg)===null||No===void 0||No.remove(),(qt=Dy)===null||qt===void 0||qt.remove(),(Sr=H1)===null||Sr===void 0||Sr.remove()}},[lv,z0,E0,E1,yv,h0]),{isMoving:z0,onMouseDown:R0,onMouseMove:gv,onMouseUp:G1,onWheel:xy}}function Ca(Gd,h0){var lv=Gd.x-h0.x,su=Gd.y-h0.y;return Math.hypot(lv,su)}function ai(Gd,h0,lv,su){var hu=Ca(Gd,lv),ev=Ca(h0,su);if(hu===0&&ev===0)return[Gd.x,Gd.y];var sv=hu/(hu+ev),yv=Gd.x+sv*(h0.x-Gd.x),$v=Gd.y+sv*(h0.y-Gd.y);return[yv,$v]}function gt(Gd,h0,lv,su,hu,ev,sv){var yv=hu.rotate,$v=hu.scale,E0=hu.x,E1=hu.y,$1=(0,u.useState)(!1),l0=(0,S.Z)($1,2),z0=l0[0],W0=l0[1],Rv=(0,u.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),R0=function(H1){Rv.current=(0,w.Z)((0,w.Z)({},Rv.current),H1)},gv=function(H1){if(h0){H1.stopPropagation(),W0(!0);var xd=H1.touches,Yg=xd===void 0?[]:xd;Yg.length>1?R0({point1:{x:Yg[0].clientX,y:Yg[0].clientY},point2:{x:Yg[1].clientX,y:Yg[1].clientY},eventType:"touchZoom"}):R0({point1:{x:Yg[0].clientX-E0,y:Yg[0].clientY-E1},eventType:"move"})}},G1=function(H1){var xd=H1.touches,Yg=xd===void 0?[]:xd,r0=Rv.current,No=r0.point1,qt=r0.point2,Sr=r0.eventType;if(Yg.length>1&&Sr==="touchZoom"){var si={x:Yg[0].clientX,y:Yg[0].clientY},Rs={x:Yg[1].clientX,y:Yg[1].clientY},wa=ai(No,qt,si,Rs),bu=(0,S.Z)(wa,2),s0=bu[0],In=bu[1],ga=Ca(si,Rs)/Ca(No,qt);sv(ga,"touchZoom",s0,In,!0),R0({point1:si,point2:Rs,eventType:"touchZoom"})}else Sr==="move"&&(ev({x:Yg[0].clientX-No.x,y:Yg[0].clientY-No.y},"move"),R0({eventType:"move"}))},xy=function(){if(lv){if(z0&&W0(!1),R0({eventType:"none"}),su>$v)return ev({x:0,y:0,scale:su},"touchZoom");var H1=Gd.current.offsetWidth*$v,xd=Gd.current.offsetHeight*$v,Yg=Gd.current.getBoundingClientRect(),r0=Yg.left,No=Yg.top,qt=yv%180!==0,Sr=Rt(qt?xd:H1,qt?H1:xd,r0,No);Sr&&ev((0,w.Z)({},Sr),"dragRebound")}};return(0,u.useEffect)(function(){var Dy;return lv&&h0&&(Dy=(0,Hs.Z)(window,"touchmove",function(H1){return H1.preventDefault()},{passive:!1})),function(){var H1;(H1=Dy)===null||H1===void 0||H1.remove()}},[lv,h0]),{isTouching:z0,onTouchStart:gv,onTouchMove:G1,onTouchEnd:xy}}var Zr=l(43403),Ht=l(44516),Zs=function(h0){var lv=h0.visible,su=h0.maskTransitionName,hu=h0.getContainer,ev=h0.prefixCls,sv=h0.rootClassName,yv=h0.icons,$v=h0.countRender,E0=h0.showSwitch,E1=h0.showProgress,$1=h0.current,l0=h0.transform,z0=h0.count,W0=h0.scale,Rv=h0.minScale,R0=h0.maxScale,gv=h0.closeIcon,G1=h0.onSwitchLeft,xy=h0.onSwitchRight,Dy=h0.onClose,H1=h0.onZoomIn,xd=h0.onZoomOut,Yg=h0.onRotateRight,r0=h0.onRotateLeft,No=h0.onFlipX,qt=h0.onFlipY,Sr=h0.toolbarRender,si=h0.zIndex,Rs=(0,u.useContext)(ct),wa=yv.rotateLeft,bu=yv.rotateRight,s0=yv.zoomIn,In=yv.zoomOut,ga=yv.close,Ga=yv.left,Lu=yv.right,dv=yv.flipX,Cv=yv.flipY,Wv="".concat(ev,"-operations-operation");u.useEffect(function(){var sy=function(zy){zy.keyCode===jr.Z.ESC&&Dy()};return lv&&window.addEventListener("keydown",sy),function(){window.removeEventListener("keydown",sy)}},[lv]);var c1=[{icon:Cv,onClick:qt,type:"flipY"},{icon:dv,onClick:No,type:"flipX"},{icon:wa,onClick:r0,type:"rotateLeft"},{icon:bu,onClick:Yg,type:"rotateRight"},{icon:In,onClick:xd,type:"zoomOut",disabled:W0<=Rv},{icon:s0,onClick:H1,type:"zoomIn",disabled:W0===R0}],P1=c1.map(function(sy){var wy,zy=sy.icon,hv=sy.onClick,Qv=sy.type,Y1=sy.disabled;return u.createElement("div",{className:x()(Wv,(wy={},(0,a.Z)(wy,"".concat(ev,"-operations-operation-").concat(Qv),!0),(0,a.Z)(wy,"".concat(ev,"-operations-operation-disabled"),!!Y1),wy)),onClick:hv,key:Qv},zy)}),Z1=u.createElement("div",{className:"".concat(ev,"-operations")},P1);return u.createElement(Ht.ZP,{visible:lv,motionName:su},function(sy){var wy=sy.className,zy=sy.style;return u.createElement(Zr.Z,{open:!0,getContainer:hu!=null?hu:document.body},u.createElement("div",{className:x()("".concat(ev,"-operations-wrapper"),wy,sv),style:(0,w.Z)((0,w.Z)({},zy),{},{zIndex:si})},gv===null?null:u.createElement("button",{className:"".concat(ev,"-close"),onClick:Dy},gv||ga),E0&&u.createElement(u.Fragment,null,u.createElement("div",{className:x()("".concat(ev,"-switch-left"),(0,a.Z)({},"".concat(ev,"-switch-left-disabled"),$1===0)),onClick:G1},Ga),u.createElement("div",{className:x()("".concat(ev,"-switch-right"),(0,a.Z)({},"".concat(ev,"-switch-right-disabled"),$1===z0-1)),onClick:xy},Lu)),u.createElement("div",{className:"".concat(ev,"-footer")},E1&&u.createElement("div",{className:"".concat(ev,"-progress")},$v?$v($1+1,z0):"".concat($1+1," / ").concat(z0)),Sr?Sr(Z1,(0,w.Z)({icons:{flipYIcon:P1[0],flipXIcon:P1[1],rotateLeftIcon:P1[2],rotateRightIcon:P1[3],zoomOutIcon:P1[4],zoomInIcon:P1[5]},actions:{onFlipY:qt,onFlipX:No,onRotateLeft:r0,onRotateRight:Yg,onZoomOut:xd,onZoomIn:H1},transform:l0},Rs?{current:$1,total:z0}:{})):Z1)))})},oi=Zs,Pa=["fallback","src","imgRef"],Aa=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Pg=function(h0){var lv=h0.fallback,su=h0.src,hu=h0.imgRef,ev=(0,N.Z)(h0,Pa),sv=Ot({src:su,fallback:lv}),yv=(0,S.Z)(sv,2),$v=yv[0],E0=yv[1];return u.createElement("img",(0,y.Z)({ref:function($1){hu.current=$1,$v($1)}},ev,E0))},Ug=function(h0){var lv=h0.prefixCls,su=h0.src,hu=h0.alt,ev=h0.fallback,sv=h0.movable,yv=sv===void 0?!0:sv,$v=h0.onClose,E0=h0.visible,E1=h0.icons,$1=E1===void 0?{}:E1,l0=h0.rootClassName,z0=h0.closeIcon,W0=h0.getContainer,Rv=h0.current,R0=Rv===void 0?0:Rv,gv=h0.count,G1=gv===void 0?1:gv,xy=h0.countRender,Dy=h0.scaleStep,H1=Dy===void 0?.5:Dy,xd=h0.minScale,Yg=xd===void 0?1:xd,r0=h0.maxScale,No=r0===void 0?50:r0,qt=h0.transitionName,Sr=qt===void 0?"zoom":qt,si=h0.maskTransitionName,Rs=si===void 0?"fade":si,wa=h0.imageRender,bu=h0.imgCommonProps,s0=h0.toolbarRender,In=h0.onTransform,ga=h0.onChange,Ga=(0,N.Z)(h0,Aa),Lu=(0,u.useRef)(),dv=(0,u.useContext)(ct),Cv=dv&&G1>1,Wv=dv&&G1>=1,c1=(0,u.useState)(!0),P1=(0,S.Z)(c1,2),Z1=P1[0],sy=P1[1],wy=_n(Lu,Yg,No,In),zy=wy.transform,hv=wy.resetTransform,Qv=wy.updateTransform,Y1=wy.dispatchZoomChange,M_=vn(Lu,yv,E0,H1,zy,Qv,Y1),h1=M_.isMoving,_v=M_.onMouseDown,Iv=M_.onWheel,Ov=gt(Lu,yv,E0,Yg,zy,Qv,Y1),v1=Ov.isTouching,K1=Ov.onTouchStart,sx=Ov.onTouchMove,Kx=Ov.onTouchEnd,t2=zy.rotate,I2=zy.scale,D2=x()((0,a.Z)({},"".concat(lv,"-moving"),h1));(0,u.useEffect)(function(){Z1||sy(!0)},[Z1]);var J_=function(){hv("close")},ax=function(){Y1(on+H1,"zoomIn")},rx=function(){Y1(on/(on+H1),"zoomOut")},ov=function(){Qv({rotate:t2+90},"rotateRight")},rv=function(){Qv({rotate:t2-90},"rotateLeft")},yd=function(){Qv({flipX:!zy.flipX},"flipX")},kg=function(){Qv({flipY:!zy.flipY},"flipY")},Vg=function(Ay){Ay==null||Ay.preventDefault(),Ay==null||Ay.stopPropagation(),R0>0&&(sy(!1),hv("prev"),ga==null||ga(R0-1,R0))},wv=function(Ay){Ay==null||Ay.preventDefault(),Ay==null||Ay.stopPropagation(),R0({position:Gd||"absolute",inset:0}),$a=Gd=>{const{iconCls:h0,motionDurationSlow:lv,paddingXXS:su,marginXXS:hu,prefixCls:ev,colorTextLightSolid:sv}=Gd;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:sv,background:new xu.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${lv}`,[`.${ev}-mask-info`]:Object.assign(Object.assign({},Td.vS),{padding:`0 ${(0,Su.bf)(su)}`,[h0]:{marginInlineEnd:hu,svg:{verticalAlign:"baseline"}}})}},Bd=Gd=>{const{previewCls:h0,modalMaskBg:lv,paddingSM:su,marginXL:hu,margin:ev,paddingLG:sv,previewOperationColorDisabled:yv,previewOperationHoverColor:$v,motionDurationSlow:E0,iconCls:E1,colorTextLightSolid:$1}=Gd,l0=new xu.C(lv).setAlpha(.1),z0=l0.clone().setAlpha(.2);return{[`${h0}-footer`]:{position:"fixed",bottom:hu,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Gd.previewOperationColor},[`${h0}-progress`]:{marginBottom:ev},[`${h0}-close`]:{position:"fixed",top:hu,right:{_skip_check_:!0,value:hu},display:"flex",color:$1,backgroundColor:l0.toRgbString(),borderRadius:"50%",padding:su,outline:0,border:0,cursor:"pointer",transition:`all ${E0}`,"&:hover":{backgroundColor:z0.toRgbString()},[`& > ${E1}`]:{fontSize:Gd.previewOperationSize}},[`${h0}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Su.bf)(sv)}`,backgroundColor:l0.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:su,padding:su,cursor:"pointer",transition:`all ${E0}`,userSelect:"none",[`&:not(${h0}-operations-operation-disabled):hover > ${E1}`]:{color:$v},"&-disabled":{color:yv,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${E1}`]:{fontSize:Gd.previewOperationSize}}}}},Bg=Gd=>{const{modalMaskBg:h0,iconCls:lv,previewOperationColorDisabled:su,previewCls:hu,zIndexPopup:ev,motionDurationSlow:sv}=Gd,yv=new xu.C(h0).setAlpha(.1),$v=yv.clone().setAlpha(.2);return{[`${hu}-switch-left, ${hu}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Gd.calc(ev).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:Gd.imagePreviewSwitchSize,height:Gd.imagePreviewSwitchSize,marginTop:Gd.calc(Gd.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Gd.previewOperationColor,background:yv.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${sv}`,userSelect:"none","&:hover":{background:$v.toRgbString()},["&-disabled"]:{"&, &:hover":{color:su,background:"transparent",cursor:"not-allowed",[`> ${lv}`]:{cursor:"not-allowed"}}},[`> ${lv}`]:{fontSize:Gd.previewOperationSize}},[`${hu}-switch-left`]:{insetInlineStart:Gd.marginSM},[`${hu}-switch-right`]:{insetInlineEnd:Gd.marginSM}}},Og=Gd=>{const{motionEaseOut:h0,previewCls:lv,motionDurationSlow:su,componentCls:hu}=Gd;return[{[`${hu}-preview-root`]:{[lv]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${lv}-body`]:Object.assign(Object.assign({},Sa()),{overflow:"hidden"}),[`${lv}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${su} ${h0} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Sa()),{transition:`transform ${su} ${h0} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${lv}-moving`]:{[`${lv}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${hu}-preview-root`]:{[`${lv}-wrap`]:{zIndex:Gd.zIndexPopup}}},{[`${hu}-preview-operations-wrapper`]:{position:"fixed",zIndex:Gd.calc(Gd.zIndexPopup).add(1).equal({unit:!1})},"&":[Bd(Gd),Bg(Gd)]}]},g0=Gd=>{const{componentCls:h0}=Gd;return{[h0]:{position:"relative",display:"inline-block",[`${h0}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${h0}-img-placeholder`]:{backgroundColor:Gd.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${h0}-mask`]:Object.assign({},$a(Gd)),[`${h0}-mask:hover`]:{opacity:1},[`${h0}-placeholder`]:Object.assign({},Sa())}}},qg=Gd=>{const{previewCls:h0}=Gd;return{[`${h0}-root`]:(0,jg._y)(Gd,"zoom"),["&"]:(0,Wa.J$)(Gd,!0)}},Xg=Gd=>({zIndexPopup:Gd.zIndexPopupBase+80,previewOperationColor:new xu.C(Gd.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new xu.C(Gd.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new xu.C(Gd.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Gd.fontSizeIcon*1.5});var A0=(0,tv.I$)("Image",Gd=>{const h0=`${Gd.componentCls}-preview`,lv=(0,Bs.TS)(Gd,{previewCls:h0,modalMaskBg:new xu.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Gd.controlHeightLG});return[g0(lv),Og(lv),(0,xa.QA)((0,Bs.TS)(lv,{componentCls:h0})),qg(lv)]},Xg),nv=function(Gd,h0){var lv={};for(var su in Gd)Object.prototype.hasOwnProperty.call(Gd,su)&&h0.indexOf(su)<0&&(lv[su]=Gd[su]);if(Gd!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hu=0,su=Object.getOwnPropertySymbols(Gd);hu{var{previewPrefixCls:h0,preview:lv}=Gd,su=nv(Gd,["previewPrefixCls","preview"]);const{getPrefixCls:hu}=u.useContext(mu.E_),ev=hu("image",h0),sv=`${ev}-preview`,yv=hu(),$v=(0,Ag.Z)(ev),[E0,E1,$1]=A0(ev,$v),[l0]=(0,Dg.Cn)("ImagePreview",typeof lv=="object"?lv.zIndex:void 0),z0=u.useMemo(()=>{var W0;if(lv===!1)return lv;const Rv=typeof lv=="object"?lv:{},R0=x()(E1,$1,$v,(W0=Rv.rootClassName)!==null&&W0!==void 0?W0:"");return Object.assign(Object.assign({},Rv),{transitionName:(0,zo.m)(yv,"zoom",Rv.transitionName),maskTransitionName:(0,zo.m)(yv,"fade",Rv.maskTransitionName),rootClassName:R0,zIndex:l0})},[lv]);return E0(u.createElement(B1.PreviewGroup,Object.assign({preview:z0,previewPrefixCls:sv,icons:t0},su)))},Eg=function(Gd,h0){var lv={};for(var su in Gd)Object.prototype.hasOwnProperty.call(Gd,su)&&h0.indexOf(su)<0&&(lv[su]=Gd[su]);if(Gd!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hu=0,su=Object.getOwnPropertySymbols(Gd);hu{var h0;const{prefixCls:lv,preview:su,className:hu,rootClassName:ev,style:sv}=Gd,yv=Eg(Gd,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:$v,locale:E0=c0.Z,getPopupContainer:E1,image:$1}=u.useContext(mu.E_),l0=$v("image",lv),z0=$v(),W0=E0.Image||c0.Z.Image,Rv=(0,Ag.Z)(l0),[R0,gv,G1]=A0(l0,Rv),xy=x()(ev,gv,G1,Rv),Dy=x()(hu,gv,$1==null?void 0:$1.className),[H1]=(0,Dg.Cn)("ImagePreview",typeof su=="object"?su.zIndex:void 0),xd=u.useMemo(()=>{var r0;if(su===!1)return su;const No=typeof su=="object"?su:{},{getContainer:qt,closeIcon:Sr}=No,si=Eg(No,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:u.createElement("div",{className:`${l0}-mask-info`},u.createElement(D.Z,null),W0==null?void 0:W0.preview),icons:t0},si),{getContainer:qt!=null?qt:E1,transitionName:(0,zo.m)(z0,"zoom",No.transitionName),maskTransitionName:(0,zo.m)(z0,"fade",No.maskTransitionName),zIndex:H1,closeIcon:Sr!=null?Sr:(r0=$1==null?void 0:$1.preview)===null||r0===void 0?void 0:r0.closeIcon})},[su,W0,(h0=$1==null?void 0:$1.preview)===null||h0===void 0?void 0:h0.closeIcon]),Yg=Object.assign(Object.assign({},$1==null?void 0:$1.style),sv);return R0(u.createElement(B1,Object.assign({prefixCls:l0,preview:xd,rootClassName:xy,className:Dy,style:Yg},yv)))};a1.PreviewGroup=u1;var Hg=a1},71750:function(c,g,l){"use strict";l.d(g,{Z:function(){return On}});var u=l(77617),D=l(21112),b=l(79384),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},y=x,w=l(44847),a=function(ui,ya){return u.createElement(w.Z,(0,b.Z)({},ui,{ref:ya,icon:y}))},S=u.forwardRef(a),I=l(92310),N=l.n(I),ie=l(16514),ze=l(13255),Ie=l(35372),ct=l(56348),At=l(61577),rt=l(22946);function It(){return typeof BigInt=="function"}function Ot(rn){return!rn&&rn!==0&&!Number.isNaN(rn)||!String(rn).trim()}function wn(rn){var ui=rn.trim(),ya=ui.startsWith("-");ya&&(ui=ui.slice(1)),ui=ui.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ui.startsWith(".")&&(ui="0".concat(ui));var gd=ui||"0",Su=gd.split("."),xu=Su[0]||"0",xa=Su[1]||"0";xu==="0"&&xa==="0"&&(ya=!1);var Td=ya?"-":"";return{negative:ya,negativeStr:Td,trimStr:gd,integerStr:xu,decimalStr:xa,fullStr:"".concat(Td).concat(gd)}}function Hs(rn){var ui=String(rn);return!Number.isNaN(Number(ui))&&ui.includes("e")}function jr(rn){var ui=String(rn);if(Hs(rn)){var ya=Number(ui.slice(ui.indexOf("e-")+2)),gd=ui.match(/\.(\d+)/);return gd!=null&&gd[1]&&(ya+=gd[1].length),ya}return ui.includes(".")&&Yn(ui)?ui.length-ui.indexOf(".")-1:0}function Jr(rn){var ui=String(rn);if(Hs(rn)){if(rn>Number.MAX_SAFE_INTEGER)return String(It()?BigInt(rn).toString():Number.MAX_SAFE_INTEGER);if(rn0&&arguments[0]!==void 0?arguments[0]:!0;return ya?this.isInvalidate()?"":wn("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),rn}(),_n=function(){function rn(ui){if((0,At.Z)(this,rn),(0,ie.Z)(this,"origin",""),(0,ie.Z)(this,"number",void 0),(0,ie.Z)(this,"empty",void 0),Ot(ui)){this.empty=!0;return}this.origin=String(ui),this.number=Number(ui)}return(0,rt.Z)(rn,[{key:"negate",value:function(){return new rn(-this.toNumber())}},{key:"add",value:function(ya){if(this.isInvalidate())return new rn(ya);var gd=Number(ya);if(Number.isNaN(gd))return this;var Su=this.number+gd;if(Su>Number.MAX_SAFE_INTEGER)return new rn(Number.MAX_SAFE_INTEGER);if(SuNumber.MAX_SAFE_INTEGER)return new rn(Number.MAX_SAFE_INTEGER);if(Su0&&arguments[0]!==void 0?arguments[0]:!0;return ya?this.isInvalidate()?"":Jr(this.number):this.origin}}]),rn}();function Mt(rn){return It()?new Lt(rn):new _n(rn)}function Bt(rn,ui,ya){var gd=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(rn==="")return"";var Su=wn(rn),xu=Su.negativeStr,xa=Su.integerStr,Td=Su.decimalStr,jg="".concat(ui).concat(Td),Wa="".concat(xu).concat(xa);if(ya>=0){var tv=Number(Td[ya]);if(tv>=5&&!gd){var Bs=Mt(rn).add("".concat(xu,"0.").concat("0".repeat(ya)).concat(10-tv));return Bt(Bs.toString(),ui,ya,gd)}return ya===0?Wa:"".concat(Wa).concat(ui).concat(Td.padEnd(ya,"0").slice(0,ya))}return jg===".0"?Wa:"".concat(Wa).concat(jg)}var Rt=Mt,on=l(19536),Hr=l(64693),vn=l(17763),Ca=l(32188);function ai(rn,ui){var ya=(0,u.useRef)(null);function gd(){try{var xu=rn.selectionStart,xa=rn.selectionEnd,Td=rn.value,jg=Td.substring(0,xu),Wa=Td.substring(xa);ya.current={start:xu,end:xa,value:Td,beforeTxt:jg,afterTxt:Wa}}catch(tv){}}function Su(){if(rn&&ya.current&&ui)try{var xu=rn.value,xa=ya.current,Td=xa.beforeTxt,jg=xa.afterTxt,Wa=xa.start,tv=xu.length;if(xu.endsWith(jg))tv=xu.length-ya.current.afterTxt.length;else if(xu.startsWith(Td))tv=Td.length;else{var Bs=Td[Wa-1],Sa=xu.indexOf(Bs,Wa-1);Sa!==-1&&(tv=Sa+1)}rn.setSelectionRange(tv,tv)}catch($a){(0,Ca.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat($a.message))}}return[gd,Su]}var gt=l(89305),Zr=function(){var ui=(0,u.useState)(!1),ya=(0,Ie.Z)(ui,2),gd=ya[0],Su=ya[1];return(0,Hr.Z)(function(){Su((0,gt.Z)())},[]),gd},Ht=Zr,Zs=l(74570),oi=200,Pa=600;function Aa(rn){var ui=rn.prefixCls,ya=rn.upNode,gd=rn.downNode,Su=rn.upDisabled,xu=rn.downDisabled,xa=rn.onStep,Td=u.useRef(),jg=u.useRef([]),Wa=u.useRef();Wa.current=xa;var tv=function(){clearTimeout(Td.current)},Bs=function(Xg,A0){Xg.preventDefault(),tv(),Wa.current(A0);function nv(){Wa.current(A0),Td.current=setTimeout(nv,oi)}Td.current=setTimeout(nv,Pa)};u.useEffect(function(){return function(){tv(),jg.current.forEach(function(qg){return Zs.Z.cancel(qg)})}},[]);var Sa=Ht();if(Sa)return null;var $a="".concat(ui,"-handler"),Bd=N()($a,"".concat($a,"-up"),(0,ie.Z)({},"".concat($a,"-up-disabled"),Su)),Bg=N()($a,"".concat($a,"-down"),(0,ie.Z)({},"".concat($a,"-down-disabled"),xu)),Og=function(){return jg.current.push((0,Zs.Z)(tv))},g0={unselectable:"on",role:"button",onMouseUp:Og,onMouseLeave:Og};return u.createElement("div",{className:"".concat($a,"-wrap")},u.createElement("span",(0,b.Z)({},g0,{onMouseDown:function(Xg){Bs(Xg,!0)},"aria-label":"Increase Value","aria-disabled":Su,className:Bd}),ya||u.createElement("span",{unselectable:"on",className:"".concat(ui,"-handler-up-inner")})),u.createElement("span",(0,b.Z)({},g0,{onMouseDown:function(Xg){Bs(Xg,!1)},"aria-label":"Decrease Value","aria-disabled":xu,className:Bg}),gd||u.createElement("span",{unselectable:"on",className:"".concat(ui,"-handler-down-inner")})))}function Pg(rn){var ui=typeof rn=="number"?Jr(rn):wn(rn).fullStr,ya=ui.includes(".");return ya?wn(ui.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:rn+"0"}var Ug=l(7807),e0=function(){var rn=(0,u.useRef)(0),ui=function(){Zs.Z.cancel(rn.current)};return(0,u.useEffect)(function(){return ui},[]),function(ya){ui(),rn.current=(0,Zs.Z)(function(){ya()})}},H0=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],X0=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],d0=function(ui,ya){return ui||ya.isEmpty()?ya.toString():ya.toNumber()},jv=function(ui){var ya=Rt(ui);return ya.isInvalidate()?null:ya},Lv=u.forwardRef(function(rn,ui){var ya,gd=rn.prefixCls,Su=gd===void 0?"rc-input-number":gd,xu=rn.className,xa=rn.style,Td=rn.min,jg=rn.max,Wa=rn.step,tv=Wa===void 0?1:Wa,Bs=rn.defaultValue,Sa=rn.value,$a=rn.disabled,Bd=rn.readOnly,Bg=rn.upHandler,Og=rn.downHandler,g0=rn.keyboard,qg=rn.changeOnWheel,Xg=qg===void 0?!1:qg,A0=rn.controls,nv=A0===void 0?!0:A0,t0=rn.classNames,n0=rn.stringMode,u1=rn.parser,Eg=rn.formatter,a1=rn.precision,Hg=rn.decimalSeparator,Gd=rn.onChange,h0=rn.onInput,lv=rn.onPressEnter,su=rn.onStep,hu=rn.changeOnBlur,ev=hu===void 0?!0:hu,sv=(0,ct.Z)(rn,H0),yv="".concat(Su,"-input"),$v=u.useRef(null),E0=u.useState(!1),E1=(0,Ie.Z)(E0,2),$1=E1[0],l0=E1[1],z0=u.useRef(!1),W0=u.useRef(!1),Rv=u.useRef(!1),R0=u.useState(function(){return Rt(Sa!=null?Sa:Bs)}),gv=(0,Ie.Z)(R0,2),G1=gv[0],xy=gv[1];function Dy(Iv){Sa===void 0&&xy(Iv)}var H1=u.useCallback(function(Iv,Ov){if(!Ov)return a1>=0?a1:Math.max(jr(Iv),jr(tv))},[a1,tv]),xd=u.useCallback(function(Iv){var Ov=String(Iv);if(u1)return u1(Ov);var v1=Ov;return Hg&&(v1=v1.replace(Hg,".")),v1.replace(/[^\w.-]+/g,"")},[u1,Hg]),Yg=u.useRef(""),r0=u.useCallback(function(Iv,Ov){if(Eg)return Eg(Iv,{userTyping:Ov,input:String(Yg.current)});var v1=typeof Iv=="number"?Jr(Iv):Iv;if(!Ov){var K1=H1(v1,Ov);if(Yn(v1)&&(Hg||K1>=0)){var sx=Hg||".";v1=Bt(v1,sx,K1)}}return v1},[Eg,H1,Hg]),No=u.useState(function(){var Iv=Bs!=null?Bs:Sa;return G1.isInvalidate()&&["string","number"].includes((0,ze.Z)(Iv))?Number.isNaN(Iv)?"":Iv:r0(G1.toString(),!1)}),qt=(0,Ie.Z)(No,2),Sr=qt[0],si=qt[1];Yg.current=Sr;function Rs(Iv,Ov){si(r0(Iv.isInvalidate()?Iv.toString(!1):Iv.toString(!Ov),Ov))}var wa=u.useMemo(function(){return jv(jg)},[jg,a1]),bu=u.useMemo(function(){return jv(Td)},[Td,a1]),s0=u.useMemo(function(){return!wa||!G1||G1.isInvalidate()?!1:wa.lessEquals(G1)},[wa,G1]),In=u.useMemo(function(){return!bu||!G1||G1.isInvalidate()?!1:G1.lessEquals(bu)},[bu,G1]),ga=ai($v.current,$1),Ga=(0,Ie.Z)(ga,2),Lu=Ga[0],dv=Ga[1],Cv=function(Ov){return wa&&!Ov.lessEquals(wa)?wa:bu&&!bu.lessEquals(Ov)?bu:null},Wv=function(Ov){return!Cv(Ov)},c1=function(Ov,v1){var K1=Ov,sx=Wv(K1)||K1.isEmpty();if(!K1.isEmpty()&&!v1&&(K1=Cv(K1)||K1,sx=!0),!Bd&&!$a&&sx){var Kx=K1.toString(),t2=H1(Kx,v1);return t2>=0&&(K1=Rt(Bt(Kx,".",t2)),Wv(K1)||(K1=Rt(Bt(Kx,".",t2,!0)))),K1.equals(G1)||(Dy(K1),Gd==null||Gd(K1.isEmpty()?null:d0(n0,K1)),Sa===void 0&&Rs(K1,v1)),K1}return G1},P1=e0(),Z1=function Iv(Ov){if(Lu(),Yg.current=Ov,si(Ov),!W0.current){var v1=xd(Ov),K1=Rt(v1);K1.isNaN()||c1(K1,!0)}h0==null||h0(Ov),P1(function(){var sx=Ov;u1||(sx=Ov.replace(/。/g,".")),sx!==Ov&&Iv(sx)})},sy=function(){W0.current=!0},wy=function(){W0.current=!1,Z1($v.current.value)},zy=function(Ov){Z1(Ov.target.value)},hv=function(Ov){var v1;if(!(Ov&&s0||!Ov&&In)){z0.current=!1;var K1=Rt(Rv.current?Pg(tv):tv);Ov||(K1=K1.negate());var sx=(G1||Rt(0)).add(K1.toString()),Kx=c1(sx,!1);su==null||su(d0(n0,Kx),{offset:Rv.current?Pg(tv):tv,type:Ov?"up":"down"}),(v1=$v.current)===null||v1===void 0||v1.focus()}},Qv=function(Ov){var v1=Rt(xd(Sr)),K1=v1;v1.isNaN()?K1=c1(G1,Ov):K1=c1(v1,Ov),Sa!==void 0?Rs(G1,!1):K1.isNaN()||Rs(K1,!1)},Y1=function(){z0.current=!0},M_=function(Ov){var v1=Ov.key,K1=Ov.shiftKey;z0.current=!0,Rv.current=K1,v1==="Enter"&&(W0.current||(z0.current=!1),Qv(!1),lv==null||lv(Ov)),g0!==!1&&!W0.current&&["Up","ArrowUp","Down","ArrowDown"].includes(v1)&&(hv(v1==="Up"||v1==="ArrowUp"),Ov.preventDefault())},h1=function(){z0.current=!1,Rv.current=!1};u.useEffect(function(){if(Xg&&$1){var Iv=function(K1){hv(K1.deltaY<0),K1.preventDefault()},Ov=$v.current;if(Ov)return Ov.addEventListener("wheel",Iv,{passive:!1}),function(){return Ov.removeEventListener("wheel",Iv)}}});var _v=function(){ev&&Qv(!1),l0(!1),z0.current=!1};return(0,Hr.o)(function(){G1.isInvalidate()||Rs(G1,!1)},[a1,Eg]),(0,Hr.o)(function(){var Iv=Rt(Sa);xy(Iv);var Ov=Rt(xd(Sr));(!Iv.equals(Ov)||!z0.current||Eg)&&Rs(Iv,z0.current)},[Sa]),(0,Hr.o)(function(){Eg&&dv()},[Sr]),u.createElement("div",{className:N()(Su,xu,(ya={},(0,ie.Z)(ya,"".concat(Su,"-focused"),$1),(0,ie.Z)(ya,"".concat(Su,"-disabled"),$a),(0,ie.Z)(ya,"".concat(Su,"-readonly"),Bd),(0,ie.Z)(ya,"".concat(Su,"-not-a-number"),G1.isNaN()),(0,ie.Z)(ya,"".concat(Su,"-out-of-range"),!G1.isInvalidate()&&!Wv(G1)),ya)),style:xa,onFocus:function(){l0(!0)},onBlur:_v,onKeyDown:M_,onKeyUp:h1,onCompositionStart:sy,onCompositionEnd:wy,onBeforeInput:Y1},nv&&u.createElement(Aa,{prefixCls:Su,upNode:Bg,downNode:Og,upDisabled:s0,downDisabled:In,onStep:hv}),u.createElement("div",{className:"".concat(yv,"-wrap")},u.createElement("input",(0,b.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Td,"aria-valuemax":jg,"aria-valuenow":G1.isInvalidate()?null:G1.toString(),step:tv},sv,{ref:(0,vn.sQ)($v,ui),className:yv,value:Sr,onChange:zy,disabled:$a,readOnly:Bd}))))}),Je=u.forwardRef(function(rn,ui){var ya=rn.disabled,gd=rn.style,Su=rn.prefixCls,xu=rn.value,xa=rn.prefix,Td=rn.suffix,jg=rn.addonBefore,Wa=rn.addonAfter,tv=rn.className,Bs=rn.classNames,Sa=(0,ct.Z)(rn,X0),$a=u.useRef(null),Bd=function(Og){$a.current&&(0,Ug.nH)($a.current,Og)};return u.createElement(on.Q,{className:tv,triggerFocus:Bd,prefixCls:Su,value:xu,disabled:ya,style:gd,prefix:xa,suffix:Td,addonAfter:Wa,addonBefore:jg,classNames:Bs,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},u.createElement(Lv,(0,b.Z)({prefixCls:Su,disabled:ya,ref:(0,vn.sQ)($a,ui),className:Bs==null?void 0:Bs.input},Sa)))});Je.displayName="InputNumber";var k0=Je,G0=k0,iv=l(24902),u0=l(58798),B1=l(64495),Dg=l(57801),zo=l(26504),mu=l(20804),Ag=l(51623),c0=l(90426),L0=l(55449),$0=l(78600),cv=l(4586),Gg=l(53644),uu=l(47703),Gs=l(91110),Ia=l(99109),lu=l(79263),_h=l(90882),Kr=l(64993);const fr=rn=>{var ui;const ya=(ui=rn.handleVisible)!==null&&ui!==void 0?ui:"auto";return Object.assign(Object.assign({},(0,Gg.T)(rn)),{controlWidth:90,handleWidth:rn.controlHeightSM-rn.lineWidth*2,handleFontSize:rn.fontSize/2,handleVisible:ya,handleActiveBg:rn.colorFillAlter,handleBg:rn.colorBgContainer,filledHandleBg:new Kr.C(rn.colorFillSecondary).onBackground(rn.colorBgContainer).toHexString(),handleHoverColor:rn.colorPrimary,handleBorderColor:rn.colorBorder,handleOpacity:ya===!0?1:0})},ri=(rn,ui)=>{let{componentCls:ya,borderRadiusSM:gd,borderRadiusLG:Su}=rn;const xu=ui==="lg"?Su:gd;return{[`&-${ui}`]:{[`${ya}-handler-wrap`]:{borderStartEndRadius:xu,borderEndEndRadius:xu},[`${ya}-handler-up`]:{borderStartEndRadius:xu},[`${ya}-handler-down`]:{borderEndEndRadius:xu}}}},Ra=rn=>{const{componentCls:ui,lineWidth:ya,lineType:gd,borderRadius:Su,fontSizeLG:xu,controlHeightLG:xa,controlHeightSM:Td,colorError:jg,paddingInlineSM:Wa,paddingBlockSM:tv,paddingBlockLG:Bs,paddingInlineLG:Sa,colorTextDescription:$a,motionDurationMid:Bd,handleHoverColor:Bg,paddingInline:Og,paddingBlock:g0,handleBg:qg,handleActiveBg:Xg,colorTextDisabled:A0,borderRadiusSM:nv,borderRadiusLG:t0,controlWidth:n0,handleOpacity:u1,handleBorderColor:Eg,filledHandleBg:a1,lineHeightLG:Hg,calc:Gd}=rn;return[{[ui]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gs.Wf)(rn)),(0,cv.ik)(rn)),{display:"inline-block",width:n0,margin:0,padding:0,borderRadius:Su}),(0,uu.qG)(rn,{[`${ui}-handler-wrap`]:{background:qg,[`${ui}-handler-down`]:{borderBlockStart:`${(0,$0.bf)(ya)} ${gd} ${Eg}`}}})),(0,uu.H8)(rn,{[`${ui}-handler-wrap`]:{background:a1,[`${ui}-handler-down`]:{borderBlockStart:`${(0,$0.bf)(ya)} ${gd} ${Eg}`}},"&:focus-within":{[`${ui}-handler-wrap`]:{background:qg}}})),(0,uu.Mu)(rn)),{"&-rtl":{direction:"rtl",[`${ui}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:xu,lineHeight:Hg,borderRadius:t0,[`input${ui}-input`]:{height:Gd(xa).sub(Gd(ya).mul(2)).equal(),padding:`${(0,$0.bf)(Bs)} ${(0,$0.bf)(Sa)}`}},"&-sm":{padding:0,borderRadius:nv,[`input${ui}-input`]:{height:Gd(Td).sub(Gd(ya).mul(2)).equal(),padding:`${(0,$0.bf)(tv)} ${(0,$0.bf)(Wa)}`}},"&-out-of-range":{[`${ui}-input-wrap`]:{input:{color:jg}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Gs.Wf)(rn)),(0,cv.s7)(rn)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ui}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ui}-group-addon`]:{borderRadius:t0,fontSize:rn.fontSizeLG}},"&-sm":{[`${ui}-group-addon`]:{borderRadius:nv}}},(0,uu.ir)(rn)),(0,uu.S5)(rn)),{[`&:not(${ui}-compact-first-item):not(${ui}-compact-last-item)${ui}-compact-item`]:{[`${ui}, ${ui}-group-addon`]:{borderRadius:0}},[`&:not(${ui}-compact-last-item)${ui}-compact-first-item`]:{[`${ui}, ${ui}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ui}-compact-first-item)${ui}-compact-last-item`]:{[`${ui}, ${ui}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ui}-input`]:{cursor:"not-allowed"},[ui]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gs.Wf)(rn)),{width:"100%",padding:`${(0,$0.bf)(g0)} ${(0,$0.bf)(Og)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Su,outline:0,transition:`all ${Bd} linear`,appearance:"textfield",fontSize:"inherit"}),(0,cv.nz)(rn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ui]:Object.assign(Object.assign(Object.assign({[`&:hover ${ui}-handler-wrap, &-focused ${ui}-handler-wrap`]:{opacity:1},[`${ui}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:rn.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Su,borderEndEndRadius:Su,borderEndStartRadius:0,opacity:u1,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Bd} linear ${Bd}`,[`${ui}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${ui}-handler-up-inner, - ${ui}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:rn.handleFontSize}}},[`${ui}-handler`]:{height:"50%",overflow:"hidden",color:$a,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$0.bf)(ya)} ${gd} ${Eg}`,transition:`all ${Bd} linear`,"&:active":{background:Xg},"&:hover":{height:"60%",[` - ${ui}-handler-up-inner, - ${ui}-handler-down-inner - `]:{color:Bg}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Gs.Ro)()),{color:$a,transition:`all ${Bd} linear`,userSelect:"none"})},[`${ui}-handler-up`]:{borderStartEndRadius:Su},[`${ui}-handler-down`]:{borderEndEndRadius:Su}},ri(rn,"lg")),ri(rn,"sm")),{"&-disabled, &-readonly":{[`${ui}-handler-wrap`]:{display:"none"},[`${ui}-input`]:{color:"inherit"}},[` - ${ui}-handler-up-disabled, - ${ui}-handler-down-disabled + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,ae.bf)(dt.controlOutlineWidth)} ${dt.controlOutline}`},output:{display:"block",paddingTop:15,color:dt.colorText,fontSize:dt.fontSize,lineHeight:dt.lineHeight}}),Ye=(dt,Mt)=>{const{formItemCls:Zt}=dt;return{[Zt]:{[`${Zt}-label > label`]:{height:Mt},[`${Zt}-control-input`]:{minHeight:Mt}}}},rt=dt=>{const{componentCls:Mt}=dt;return{[dt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,se.Wf)(dt)),at(dt)),{[`${Mt}-text`]:{display:"inline-block",paddingInlineEnd:dt.paddingSM},"&-small":Object.assign({},Ye(dt,dt.controlHeightSM)),"&-large":Object.assign({},Ye(dt,dt.controlHeightLG))})}},Gt=dt=>{const{formItemCls:Mt,iconCls:Zt,componentCls:Kt,rootPrefixCls:Nn,labelRequiredMarkColor:Ur,labelColor:Ui,labelFontSize:Ao,labelHeight:rs,labelColonMarginInlineStart:ps,labelColonMarginInlineEnd:Po,itemMarginBottom:$a}=dt;return{[Mt]:Object.assign(Object.assign({},(0,se.Wf)(dt)),{marginBottom:$a,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${Nn}-row`]:{display:"none"},"&-has-warning":{[`${Mt}-split`]:{color:dt.colorError}},"&-has-error":{[`${Mt}-split`]:{color:dt.colorWarning}},[`${Mt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:dt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:rs,color:Ui,fontSize:Ao,[`> ${Zt}`]:{fontSize:dt.fontSize,verticalAlign:"top"},[`&${Mt}-required:not(${Mt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:dt.marginXXS,color:Ur,fontSize:dt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Mt}-optional`]:{display:"inline-block",marginInlineStart:dt.marginXXS,color:dt.colorTextDescription,[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Mt}-tooltip`]:{color:dt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:dt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ps,marginInlineEnd:Po},[`&${Mt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Mt}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Nn}-col-'"]):not([class*="' ${Nn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:dt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Mt]:{"&-explain, &-extra":{clear:"both",color:dt.colorTextDescription,fontSize:dt.fontSize,lineHeight:dt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:dt.controlHeightSM,transition:`color ${dt.motionDurationMid} ${dt.motionEaseOut}`},"&-explain":{"&-error":{color:dt.colorError},"&-warning":{color:dt.colorWarning}}},[`&-with-help ${Mt}-explain`]:{height:"auto",opacity:1},[`${Mt}-feedback-icon`]:{fontSize:dt.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:dt.motionDurationMid,animationTimingFunction:dt.motionEaseOutBack,pointerEvents:"none","&-success":{color:dt.colorSuccess},"&-error":{color:dt.colorError},"&-warning":{color:dt.colorWarning},"&-validating":{color:dt.colorPrimary}}})}},yt=dt=>{const{componentCls:Mt,formItemCls:Zt}=dt;return{[`${Mt}-horizontal`]:{[`${Zt}-label`]:{flexGrow:0},[`${Zt}-control`]:{flex:"1 1 0",minWidth:0},[`${Zt}-label[class$='-24'], ${Zt}-label[class*='-24 ']`]:{[`& + ${Zt}-control`]:{minWidth:"unset"}}}}},Et=dt=>{const{componentCls:Mt,formItemCls:Zt}=dt;return{[`${Mt}-inline`]:{display:"flex",flexWrap:"wrap",[Zt]:{flex:"none",marginInlineEnd:dt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Zt}-label, + > ${Zt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Zt}-label`]:{flex:"none"},[`${Mt}-text`]:{display:"inline-block"},[`${Zt}-has-feedback`]:{display:"inline-block"}}}}},ht=dt=>({padding:dt.verticalLabelPadding,margin:dt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=dt=>{const{componentCls:Mt,formItemCls:Zt,rootPrefixCls:Kt}=dt;return{[`${Zt} ${Zt}-label`]:ht(dt),[`${Mt}:not(${Mt}-inline)`]:{[Zt]:{flexWrap:"wrap",[`${Zt}-label, ${Zt}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},et=dt=>{const{componentCls:Mt,formItemCls:Zt,rootPrefixCls:Kt}=dt;return{[`${Mt}-vertical`]:{[Zt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Mt}-item-control`]:{width:"100%"}}},[`${Mt}-vertical ${Zt}-label, + .${Kt}-col-24${Zt}-label, + .${Kt}-col-xl-24${Zt}-label`]:ht(dt),[`@media (max-width: ${(0,ae.bf)(dt.screenXSMax)})`]:[Pe(dt),{[Mt]:{[`.${Kt}-col-xs-24${Zt}-label`]:ht(dt)}}],[`@media (max-width: ${(0,ae.bf)(dt.screenSMMax)})`]:{[Mt]:{[`.${Kt}-col-sm-24${Zt}-label`]:ht(dt)}},[`@media (max-width: ${(0,ae.bf)(dt.screenMDMax)})`]:{[Mt]:{[`.${Kt}-col-md-24${Zt}-label`]:ht(dt)}},[`@media (max-width: ${(0,ae.bf)(dt.screenLGMax)})`]:{[Mt]:{[`.${Kt}-col-lg-24${Zt}-label`]:ht(dt)}}}},Oe=dt=>({labelRequiredMarkColor:dt.colorError,labelColor:dt.colorTextHeading,labelFontSize:dt.fontSize,labelHeight:dt.controlHeight,labelColonMarginInlineStart:dt.marginXXS/2,labelColonMarginInlineEnd:dt.marginXS,itemMarginBottom:dt.marginLG,verticalLabelPadding:`0 0 ${dt.paddingXS}px`,verticalLabelMargin:0}),Ue=(dt,Mt)=>(0,Ce.TS)(dt,{formItemCls:`${dt.componentCls}-item`,rootPrefixCls:Mt});var je=(0,ct.I$)("Form",(dt,Mt)=>{let{rootPrefixCls:Zt}=Mt;const Kt=Ue(dt,Zt);return[rt(Kt),Gt(Kt),Ge(Kt),yt(Kt),Et(Kt),et(Kt),(0,Be.Z)(Kt),Ie.kr]},Oe,{order:-1e3}),ft=x(26504);const Ct=[];function Xe(dt,Mt,Zt){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof dt=="string"?dt:`${Mt}-${Kt}`,error:dt,errorStatus:Zt}}var Nt=dt=>{let{help:Mt,helpStatus:Zt,errors:Kt=Ct,warnings:Nn=Ct,className:Ur,fieldId:Ui,onVisibleChanged:Ao}=dt;const{prefixCls:rs}=W.useContext(Y.Rk),ps=`${rs}-item-explain`,Po=(0,ft.Z)(rs),[$a,nl,ka]=je(rs,Po),Xs=(0,W.useMemo)(()=>(0,X.Z)(rs),[rs]),zs=ie(Kt),xa=ie(Nn),Ea=W.useMemo(()=>Mt!=null?[Xe(Mt,"help",Zt)]:[].concat((0,v.Z)(zs.map((Ba,Al)=>Xe(Ba,"error","error",Al))),(0,v.Z)(xa.map((Ba,Al)=>Xe(Ba,"warning","warning",Al)))),[Mt,Zt,zs,xa]),_a={};return Ui&&(_a.id=`${Ui}_help`),$a(W.createElement(A.ZP,{motionDeadline:Xs.motionDeadline,motionName:`${rs}-show-help`,visible:!!Ea.length,onVisibleChanged:Ao},Ba=>{const{className:Al,style:ks}=Ba;return W.createElement("div",Object.assign({},_a,{className:P()(ps,Al,ka,Po,Ur,nl),style:ks,role:"alert"}),W.createElement(A.V4,Object.assign({keys:Ea},(0,X.Z)(rs),{motionName:`${rs}-show-help-item`,component:!1}),Za=>{const{key:lu,error:mu,errorStatus:nu,className:Fl,style:va}=Za;return W.createElement("div",{key:lu,className:P()(Fl,{[`${ps}-${nu}`]:nu}),style:va},mu)}))}))},Te=x(41091),vt=x(58798),ze=x(57801),Vt=x(20804),Tt=x(3942);const un=dt=>typeof dt=="object"&&dt!=null&&dt.nodeType===1,on=(dt,Mt)=>(!Mt||dt!=="hidden")&&dt!=="visible"&&dt!=="clip",Lr=(dt,Mt)=>{if(dt.clientHeight{const Nn=(Ur=>{if(!Ur.ownerDocument||!Ur.ownerDocument.defaultView)return null;try{return Ur.ownerDocument.defaultView.frameElement}catch(Ui){return null}})(Kt);return!!Nn&&(Nn.clientHeightUrMt||Ur>dt&&Ui=Mt&&Ao>=Zt?Ur-dt-Kt:Ui>Mt&&AoZt?Ui-Mt+Nn:0,fi=dt=>{const Mt=dt.parentElement;return Mt==null?dt.getRootNode().host||null:Mt},Xi=(dt,Mt)=>{var Zt,Kt,Nn,Ur;if(typeof document=="undefined")return[];const{scrollMode:Ui,block:Ao,inline:rs,boundary:ps,skipOverflowHiddenElements:Po}=Mt,$a=typeof ps=="function"?ps:mh=>mh!==ps;if(!un(dt))throw new TypeError("Invalid target");const nl=document.scrollingElement||document.documentElement,ka=[];let Xs=dt;for(;un(Xs)&&$a(Xs);){if(Xs=fi(Xs),Xs===nl){ka.push(Xs);break}Xs!=null&&Xs===document.body&&Lr(Xs)&&!Lr(document.documentElement)||Xs!=null&&Lr(Xs,Po)&&ka.push(Xs)}const zs=(Kt=(Zt=window.visualViewport)==null?void 0:Zt.width)!=null?Kt:innerWidth,xa=(Ur=(Nn=window.visualViewport)==null?void 0:Nn.height)!=null?Ur:innerHeight,{scrollX:Ea,scrollY:_a}=window,{height:Ba,width:Al,top:ks,right:Za,bottom:lu,left:mu}=dt.getBoundingClientRect(),{top:nu,right:Fl,bottom:va,left:Ua}=(mh=>{const _h=window.getComputedStyle(mh);return{top:parseFloat(_h.scrollMarginTop)||0,right:parseFloat(_h.scrollMarginRight)||0,bottom:parseFloat(_h.scrollMarginBottom)||0,left:parseFloat(_h.scrollMarginLeft)||0}})(dt);let Yl=Ao==="start"||Ao==="nearest"?ks-nu:Ao==="end"?lu+va:ks+Ba/2-nu+va,Cc=rs==="center"?mu+Al/2-Ua+Fl:rs==="end"?Za+Fl:mu-Ua;const ch=[];for(let mh=0;mh=0&&mu>=0&&lu<=xa&&Za<=zs&&ks>=ru&&lu<=Hi&&mu>=ji&&Za<=Ql)return ch;const Gn=getComputedStyle(_h),Sr=parseInt(Gn.borderLeftWidth,10),Rr=parseInt(Gn.borderTopWidth,10),co=parseInt(Gn.borderRightWidth,10),ns=parseInt(Gn.borderBottomWidth,10);let fs=0,vs=0;const as="offsetWidth"in _h?_h.offsetWidth-_h.clientWidth-Sr-co:0,da="offsetHeight"in _h?_h.offsetHeight-_h.clientHeight-Rr-ns:0,Ss="offsetWidth"in _h?_h.offsetWidth===0?0:vu/_h.offsetWidth:0,pl="offsetHeight"in _h?_h.offsetHeight===0?0:wh/_h.offsetHeight:0;if(nl===_h)fs=Ao==="start"?Yl:Ao==="end"?Yl-xa:Ao==="nearest"?Yr(_a,_a+xa,xa,Rr,ns,_a+Yl,_a+Yl+Ba,Ba):Yl-xa/2,vs=rs==="start"?Cc:rs==="center"?Cc-zs/2:rs==="end"?Cc-zs:Yr(Ea,Ea+zs,zs,Sr,co,Ea+Cc,Ea+Cc+Al,Al),fs=Math.max(0,fs+_a),vs=Math.max(0,vs+Ea);else{fs=Ao==="start"?Yl-ru-Rr:Ao==="end"?Yl-Hi+ns+da:Ao==="nearest"?Yr(ru,Hi,wh,Rr,ns+da,Yl,Yl+Ba,Ba):Yl-(ru+wh/2)+da/2,vs=rs==="start"?Cc-ji-Sr:rs==="center"?Cc-(ji+vu/2)+as/2:rs==="end"?Cc-Ql+co+as:Yr(ji,Ql,vu,Sr,co+as,Cc,Cc+Al,Al);const{scrollLeft:Vs,scrollTop:ol}=_h;fs=pl===0?0:Math.max(0,Math.min(ol+fs/pl,_h.scrollHeight-wh/pl+da)),vs=Ss===0?0:Math.max(0,Math.min(Vs+vs/Ss,_h.scrollWidth-vu/Ss+as)),Yl+=ol-fs,Cc+=Vs-vs}ch.push({el:_h,top:fs,left:vs})}return ch},Qi=dt=>dt===!1?{block:"end",inline:"nearest"}:(Mt=>Mt===Object(Mt)&&Object.keys(Mt).length!==0)(dt)?dt:{block:"start",inline:"nearest"};function hi(dt,Mt){if(!dt.isConnected||!(Nn=>{let Ur=Nn;for(;Ur&&Ur.parentNode;){if(Ur.parentNode===document)return!0;Ur=Ur.parentNode instanceof ShadowRoot?Ur.parentNode.host:Ur.parentNode}return!1})(dt))return;const Zt=(Nn=>{const Ur=window.getComputedStyle(Nn);return{top:parseFloat(Ur.scrollMarginTop)||0,right:parseFloat(Ur.scrollMarginRight)||0,bottom:parseFloat(Ur.scrollMarginBottom)||0,left:parseFloat(Ur.scrollMarginLeft)||0}})(dt);if((Nn=>typeof Nn=="object"&&typeof Nn.behavior=="function")(Mt))return Mt.behavior(Xi(dt,Mt));const Kt=typeof Mt=="boolean"||Mt==null?void 0:Mt.behavior;for(const{el:Nn,top:Ur,left:Ui}of Xi(dt,Qi(Mt))){const Ao=Ur-Zt.top+Zt.bottom,rs=Ui-Zt.left+Zt.right;Nn.scroll({top:Ao,left:rs,behavior:Kt})}}const Go=["parentNode"],Mo="form_item";function pe(dt){return dt===void 0||dt===!1?[]:Array.isArray(dt)?dt:[dt]}function Ii(dt,Mt){if(!dt.length)return;const Zt=dt.join("_");return Mt?`${Mt}_${Zt}`:Go.includes(Zt)?`${Mo}_${Zt}`:Zt}function Vi(dt,Mt,Zt,Kt,Nn,Ur){let Ui=Kt;return Ur!==void 0?Ui=Ur:Zt.validating?Ui="validating":dt.length?Ui="error":Mt.length?Ui="warning":(Zt.touched||Nn&&Zt.validated)&&(Ui="success"),Ui}function ro(dt){return pe(dt).join("_")}function ai(dt){const[Mt]=(0,Te.cI)(),Zt=W.useRef({}),Kt=W.useMemo(()=>dt!=null?dt:Object.assign(Object.assign({},Mt),{__INTERNAL__:{itemRef:Nn=>Ur=>{const Ui=ro(Nn);Ur?Zt.current[Ui]=Ur:delete Zt.current[Ui]}},scrollToField:function(Nn){let Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ui=pe(Nn),Ao=Ii(Ui,Kt.__INTERNAL__.name),rs=Ao?document.getElementById(Ao):null;rs&&hi(rs,Object.assign({scrollMode:"if-needed",block:"nearest"},Ur))},getFieldInstance:Nn=>{const Ur=ro(Nn);return Zt.current[Ur]}}),[dt,Mt]);return[Kt]}var Ms=x(82464),Ar=function(dt,Mt){var Zt={};for(var Kt in dt)Object.prototype.hasOwnProperty.call(dt,Kt)&&Mt.indexOf(Kt)<0&&(Zt[Kt]=dt[Kt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Kt=Object.getOwnPropertySymbols(dt);Nn{const Zt=W.useContext(ze.Z),{getPrefixCls:Kt,direction:Nn,form:Ur}=W.useContext(vt.E_),{prefixCls:Ui,className:Ao,rootClassName:rs,size:ps,disabled:Po=Zt,form:$a,colon:nl,labelAlign:ka,labelWrap:Xs,labelCol:zs,wrapperCol:xa,hideRequiredMark:Ea,layout:_a="horizontal",scrollToFirstError:Ba,requiredMark:Al,onFinishFailed:ks,name:Za,style:lu,feedbackIcons:mu,variant:nu}=dt,Fl=Ar(dt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),va=(0,Vt.Z)(ps),Ua=W.useContext(Ms.Z),Yl=(0,W.useMemo)(()=>Al!==void 0?Al:Ea?!1:Ur&&Ur.requiredMark!==void 0?Ur.requiredMark:!0,[Ea,Al,Ur]),Cc=nl!=null?nl:Ur==null?void 0:Ur.colon,ch=Kt("form",Ui),mh=(0,ft.Z)(ch),[_h,wh,vu]=je(ch,mh),ru=P()(ch,`${ch}-${_a}`,{[`${ch}-hide-required-mark`]:Yl===!1,[`${ch}-rtl`]:Nn==="rtl",[`${ch}-${va}`]:va},vu,mh,wh,Ur==null?void 0:Ur.className,Ao,rs),[Ql]=ai($a),{__INTERNAL__:Hi}=Ql;Hi.name=Za;const ji=(0,W.useMemo)(()=>({name:Za,labelAlign:ka,labelCol:zs,labelWrap:Xs,wrapperCol:xa,vertical:_a==="vertical",colon:Cc,requiredMark:Yl,itemRef:Hi.itemRef,form:Ql,feedbackIcons:mu}),[Za,ka,zs,xa,_a,Cc,Yl,Ql,mu]);W.useImperativeHandle(Mt,()=>Ql);const Gn=(Rr,co)=>{if(Rr){let ns={block:"nearest"};typeof Rr=="object"&&(ns=Rr),Ql.scrollToField(co,ns)}},Sr=Rr=>{if(ks==null||ks(Rr),Rr.errorFields.length){const co=Rr.errorFields[0].name;if(Ba!==void 0){Gn(Ba,co);return}Ur&&Ur.scrollToFirstError!==void 0&&Gn(Ur.scrollToFirstError,co)}};return _h(W.createElement(Y.pg.Provider,{value:nu},W.createElement(ze.n,{disabled:Po},W.createElement(Tt.Z.Provider,{value:va},W.createElement(Y.RV,{validateMessages:Ua},W.createElement(Y.q3.Provider,{value:ji},W.createElement(Te.ZP,Object.assign({id:Za},Fl,{name:Za,onFinishFailed:Sr,form:Ql,style:Object.assign(Object.assign({},Ur==null?void 0:Ur.style),lu),className:ru}))))))))};var wr=W.forwardRef(Rt),oi=x(37423),Ti=x(17763),Bi=x(20612),no=x(80074),Vr=x(6415);function Rn(dt){if(typeof dt=="function")return dt;const Mt=(0,Vr.Z)(dt);return Mt.length<=1?Mt[0]:Mt}const Xt=()=>{const{status:dt,errors:Mt=[],warnings:Zt=[]}=(0,W.useContext)(Y.aM);return{status:dt,errors:Mt,warnings:Zt}};Xt.Context=Y.aM;var Sn=Xt,Pn=x(74570);function hr(dt){const[Mt,Zt]=W.useState(dt),Kt=(0,W.useRef)(null),Nn=(0,W.useRef)([]),Ur=(0,W.useRef)(!1);W.useEffect(()=>(Ur.current=!1,()=>{Ur.current=!0,Pn.Z.cancel(Kt.current),Kt.current=null}),[]);function Ui(Ao){Ur.current||(Kt.current===null&&(Nn.current=[],Kt.current=(0,Pn.Z)(()=>{Kt.current=null,Zt(rs=>{let ps=rs;return Nn.current.forEach(Po=>{ps=Po(ps)}),ps})})),Nn.current.push(Ao))}return[Mt,Ui]}function mt(){const{itemRef:dt}=W.useContext(Y.q3),Mt=W.useRef({});function Zt(Kt,Nn){const Ur=Nn&&typeof Nn=="object"&&Nn.ref,Ui=Kt.join("_");return(Mt.current.name!==Ui||Mt.current.originRef!==Ur)&&(Mt.current.name=Ui,Mt.current.originRef=Ur,Mt.current.ref=(0,Ti.sQ)(dt(Kt),Ur)),Mt.current.ref}return Zt}var tt=x(66209),kt=x(64693),vn=x(41123),vr=x(5754),Ni=(0,W.createContext)({});const li=dt=>{const{componentCls:Mt}=dt;return{[Mt]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Un=dt=>{const{componentCls:Mt}=dt;return{[Mt]:{position:"relative",maxWidth:"100%",minHeight:1}}},dn=(dt,Mt)=>{const{prefixCls:Zt,componentCls:Kt,gridColumns:Nn}=dt,Ur={};for(let Ui=Nn;Ui>=0;Ui--)Ui===0?(Ur[`${Kt}${Mt}-${Ui}`]={display:"none"},Ur[`${Kt}-push-${Ui}`]={insetInlineStart:"auto"},Ur[`${Kt}-pull-${Ui}`]={insetInlineEnd:"auto"},Ur[`${Kt}${Mt}-push-${Ui}`]={insetInlineStart:"auto"},Ur[`${Kt}${Mt}-pull-${Ui}`]={insetInlineEnd:"auto"},Ur[`${Kt}${Mt}-offset-${Ui}`]={marginInlineStart:0},Ur[`${Kt}${Mt}-order-${Ui}`]={order:0}):(Ur[`${Kt}${Mt}-${Ui}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${Ui/Nn*100}%`,maxWidth:`${Ui/Nn*100}%`}],Ur[`${Kt}${Mt}-push-${Ui}`]={insetInlineStart:`${Ui/Nn*100}%`},Ur[`${Kt}${Mt}-pull-${Ui}`]={insetInlineEnd:`${Ui/Nn*100}%`},Ur[`${Kt}${Mt}-offset-${Ui}`]={marginInlineStart:`${Ui/Nn*100}%`},Ur[`${Kt}${Mt}-order-${Ui}`]={order:Ui});return Ur[`${Kt}${Mt}-flex`]={flex:`var(--${Zt}${Mt}-flex)`},Ur},xt=(dt,Mt)=>dn(dt,Mt),it=(dt,Mt,Zt)=>({[`@media (min-width: ${(0,ae.bf)(Mt)})`]:Object.assign({},xt(dt,Zt))}),Bt=()=>({}),rn=()=>({}),ir=(0,ct.I$)("Grid",li,Bt),tr=(0,ct.I$)("Grid",dt=>{const Mt=(0,Ce.TS)(dt,{gridColumns:24}),Zt={"-sm":Mt.screenSMMin,"-md":Mt.screenMDMin,"-lg":Mt.screenLGMin,"-xl":Mt.screenXLMin,"-xxl":Mt.screenXXLMin};return[Un(Mt),xt(Mt,""),xt(Mt,"-xs"),Object.keys(Zt).map(Kt=>it(Mt,Zt[Kt],Kt)).reduce((Kt,Nn)=>Object.assign(Object.assign({},Kt),Nn),{})]},rn);var Jn=function(dt,Mt){var Zt={};for(var Kt in dt)Object.prototype.hasOwnProperty.call(dt,Kt)&&Mt.indexOf(Kt)<0&&(Zt[Kt]=dt[Kt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Kt=Object.getOwnPropertySymbols(dt);Nn{if(typeof dt=="string"&&Kt(dt),typeof dt=="object")for(let Ur=0;Ur{Nn()},[JSON.stringify(dt),Mt]),Zt}var bo=W.forwardRef((dt,Mt)=>{const{prefixCls:Zt,justify:Kt,align:Nn,className:Ur,style:Ui,children:Ao,gutter:rs=0,wrap:ps}=dt,Po=Jn(dt,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:$a,direction:nl}=W.useContext(vt.E_),[ka,Xs]=W.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[zs,xa]=W.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),Ea=Fr(Nn,zs),_a=Fr(Kt,zs),Ba=W.useRef(rs),Al=(0,vr.ZP)();W.useEffect(()=>{const _h=Al.subscribe(wh=>{xa(wh);const vu=Ba.current||0;(!Array.isArray(vu)&&typeof vu=="object"||Array.isArray(vu)&&(typeof vu[0]=="object"||typeof vu[1]=="object"))&&Xs(wh)});return()=>Al.unsubscribe(_h)},[]);const ks=()=>{const _h=[void 0,void 0];return(Array.isArray(rs)?rs:[rs,void 0]).forEach((vu,ru)=>{if(typeof vu=="object")for(let Ql=0;Ql0?Fl[0]/-2:void 0;Yl&&(Ua.marginLeft=Yl,Ua.marginRight=Yl),[,Ua.rowGap]=Fl;const[Cc,ch]=Fl,mh=W.useMemo(()=>({gutter:[Cc,ch],wrap:ps}),[Cc,ch,ps]);return lu(W.createElement(Ni.Provider,{value:mh},W.createElement("div",Object.assign({},Po,{className:va,style:Object.assign(Object.assign({},Ua),Ui),ref:Mt}),Ao)))}),zt=function(dt,Mt){var Zt={};for(var Kt in dt)Object.prototype.hasOwnProperty.call(dt,Kt)&&Mt.indexOf(Kt)<0&&(Zt[Kt]=dt[Kt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Kt=Object.getOwnPropertySymbols(dt);Nn{const{getPrefixCls:Zt,direction:Kt}=W.useContext(vt.E_),{gutter:Nn,wrap:Ur}=W.useContext(Ni),{prefixCls:Ui,span:Ao,order:rs,offset:ps,push:Po,pull:$a,className:nl,children:ka,flex:Xs,style:zs}=dt,xa=zt(dt,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Ea=Zt("col",Ui),[_a,Ba,Al]=tr(Ea),ks={};let Za={};Cn.forEach(nu=>{let Fl={};const va=dt[nu];typeof va=="number"?Fl.span=va:typeof va=="object"&&(Fl=va||{}),delete xa[nu],Za=Object.assign(Object.assign({},Za),{[`${Ea}-${nu}-${Fl.span}`]:Fl.span!==void 0,[`${Ea}-${nu}-order-${Fl.order}`]:Fl.order||Fl.order===0,[`${Ea}-${nu}-offset-${Fl.offset}`]:Fl.offset||Fl.offset===0,[`${Ea}-${nu}-push-${Fl.push}`]:Fl.push||Fl.push===0,[`${Ea}-${nu}-pull-${Fl.pull}`]:Fl.pull||Fl.pull===0,[`${Ea}-rtl`]:Kt==="rtl"}),Fl.flex&&(Za[`${Ea}-${nu}-flex`]=!0,ks[`--${Ea}-${nu}-flex`]=en(Fl.flex))});const lu=P()(Ea,{[`${Ea}-${Ao}`]:Ao!==void 0,[`${Ea}-order-${rs}`]:rs,[`${Ea}-offset-${ps}`]:ps,[`${Ea}-push-${Po}`]:Po,[`${Ea}-pull-${$a}`]:$a},nl,Za,Ba,Al),mu={};if(Nn&&Nn[0]>0){const nu=Nn[0]/2;mu.paddingLeft=nu,mu.paddingRight=nu}return Xs&&(mu.flex=en(Xs),Ur===!1&&!mu.minWidth&&(mu.minWidth=0)),_a(W.createElement("div",Object.assign({},xa,{style:Object.assign(Object.assign(Object.assign({},mu),zs),ks),className:lu,ref:Mt}),ka))});const Er=dt=>{const{formItemCls:Mt}=dt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Mt}-control`]:{display:"flex"}}}};var ui=(0,ct.bk)(["Form","item-item"],(dt,Mt)=>{let{rootPrefixCls:Zt}=Mt;const Kt=Ue(dt,Zt);return[Er(Kt)]}),zr=dt=>{const{prefixCls:Mt,status:Zt,wrapperCol:Kt,children:Nn,errors:Ur,warnings:Ui,_internalItemRender:Ao,extra:rs,help:ps,fieldId:Po,marginBottom:$a,onErrorVisibleChanged:nl}=dt,ka=`${Mt}-item`,Xs=W.useContext(Y.q3),zs=Kt||Xs.wrapperCol||{},xa=P()(`${ka}-control`,zs.className),Ea=W.useMemo(()=>Object.assign({},Xs),[Xs]);delete Ea.labelCol,delete Ea.wrapperCol;const _a=W.createElement("div",{className:`${ka}-control-input`},W.createElement("div",{className:`${ka}-control-input-content`},Nn)),Ba=W.useMemo(()=>({prefixCls:Mt,status:Zt}),[Mt,Zt]),Al=$a!==null||Ur.length||Ui.length?W.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},W.createElement(Y.Rk.Provider,{value:Ba},W.createElement(Nt,{fieldId:Po,errors:Ur,warnings:Ui,help:ps,helpStatus:Zt,className:`${ka}-explain-connected`,onVisibleChanged:nl})),!!$a&&W.createElement("div",{style:{width:0,height:$a}})):null,ks={};Po&&(ks.id=`${Po}_extra`);const Za=rs?W.createElement("div",Object.assign({},ks,{className:`${ka}-extra`}),rs):null,lu=Ao&&Ao.mark==="pro_table_render"&&Ao.render?Ao.render(dt,{input:_a,errorList:Al,extra:Za}):W.createElement(W.Fragment,null,_a,Al,Za);return W.createElement(Y.q3.Provider,{value:Ea},W.createElement(Pr,Object.assign({},zs,{className:xa}),lu),W.createElement(ui,{prefixCls:Mt}))},Ei=x(79384),Zi=x(27955),Kr=x(44847),Xr=function(Mt,Zt){return W.createElement(Kr.Z,(0,Ei.Z)({},Mt,{ref:Zt,icon:Zi.Z}))},Qo=W.forwardRef(Xr),pr=x(209),qo=x(50700),Br=x(3773),sr=function(dt,Mt){var Zt={};for(var Kt in dt)Object.prototype.hasOwnProperty.call(dt,Kt)&&Mt.indexOf(Kt)<0&&(Zt[Kt]=dt[Kt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Kt=Object.getOwnPropertySymbols(dt);Nn{let{prefixCls:Mt,label:Zt,htmlFor:Kt,labelCol:Nn,labelAlign:Ur,colon:Ui,required:Ao,requiredMark:rs,tooltip:ps}=dt;var Po;const[$a]=(0,qo.Z)("Form"),{vertical:nl,labelAlign:ka,labelCol:Xs,labelWrap:zs,colon:xa}=W.useContext(Y.q3);if(!Zt)return null;const Ea=Nn||Xs||{},_a=Ur||ka,Ba=`${Mt}-item-label`,Al=P()(Ba,_a==="left"&&`${Ba}-left`,Ea.className,{[`${Ba}-wrap`]:!!zs});let ks=Zt;const Za=Ui===!0||xa!==!1&&Ui!==!1;Za&&!nl&&typeof Zt=="string"&&Zt.trim()!==""&&(ks=Zt.replace(/[:|:]\s*$/,""));const mu=ii(ps);if(mu){const{icon:Ua=W.createElement(Qo,null)}=mu,Yl=sr(mu,["icon"]),Cc=W.createElement(Br.Z,Object.assign({},Yl),W.cloneElement(Ua,{className:`${Mt}-item-tooltip`,title:"",onClick:ch=>{ch.preventDefault()},tabIndex:null}));ks=W.createElement(W.Fragment,null,ks,Cc)}const nu=rs==="optional",Fl=typeof rs=="function";Fl?ks=rs(ks,{required:!!Ao}):nu&&!Ao&&(ks=W.createElement(W.Fragment,null,ks,W.createElement("span",{className:`${Mt}-item-optional`,title:""},($a==null?void 0:$a.optional)||((Po=pr.Z.Form)===null||Po===void 0?void 0:Po.optional))));const va=P()({[`${Mt}-item-required`]:Ao,[`${Mt}-item-required-mark-optional`]:nu||Fl,[`${Mt}-item-no-colon`]:!Za});return W.createElement(Pr,Object.assign({},Ea,{className:Al}),W.createElement("label",{htmlFor:Kt,className:va,title:typeof Zt=="string"?Zt:""},ks))},zn=x(50555),Wi=x(43418),Yi=x(81664),so=x(20555);const ko={success:zn.Z,warning:Yi.Z,error:Wi.Z,validating:so.Z};function _i(dt){let{children:Mt,errors:Zt,warnings:Kt,hasFeedback:Nn,validateStatus:Ur,prefixCls:Ui,meta:Ao,noStyle:rs}=dt;const ps=`${Ui}-item`,{feedbackIcons:Po}=W.useContext(Y.q3),$a=Vi(Zt,Kt,Ao,null,!!Nn,Ur),{isFormItemInput:nl,status:ka,hasFeedback:Xs,feedbackIcon:zs}=W.useContext(Y.aM),xa=W.useMemo(()=>{var Ea;let _a;if(Nn){const Al=Nn!==!0&&Nn.icons||Po,ks=$a&&((Ea=Al==null?void 0:Al({status:$a,errors:Zt,warnings:Kt}))===null||Ea===void 0?void 0:Ea[$a]),Za=$a&&ko[$a];_a=ks!==!1&&Za?W.createElement("span",{className:P()(`${ps}-feedback-icon`,`${ps}-feedback-icon-${$a}`)},ks||W.createElement(Za,null)):null}const Ba={status:$a||"",errors:Zt,warnings:Kt,hasFeedback:!!Nn,feedbackIcon:_a,isFormItemInput:!0};return rs&&(Ba.status=($a!=null?$a:ka)||"",Ba.isFormItemInput=nl,Ba.hasFeedback=!!(Nn!=null?Nn:Xs),Ba.feedbackIcon=Nn!==void 0?Ba.feedbackIcon:zs),Ba},[$a,Nn,rs,nl,ka]);return W.createElement(Y.aM.Provider,{value:xa},Mt)}var hs=function(dt,Mt){var Zt={};for(var Kt in dt)Object.prototype.hasOwnProperty.call(dt,Kt)&&Mt.indexOf(Kt)<0&&(Zt[Kt]=dt[Kt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Kt=Object.getOwnPropertySymbols(dt);Nn{if(mu&&Al.current){const mh=getComputedStyle(Al.current);va(parseInt(mh.marginBottom,10))}},[mu,nu]);const Ua=mh=>{mh||va(null)},Cc=function(){let mh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _h=mh?ks:ps.errors,wh=mh?Za:ps.warnings;return Vi(_h,wh,ps,"",!!Po,rs)}(),ch=P()(_a,Zt,Kt,{[`${_a}-with-help`]:lu||ks.length||Za.length,[`${_a}-has-feedback`]:Cc&&Po,[`${_a}-has-success`]:Cc==="success",[`${_a}-has-warning`]:Cc==="warning",[`${_a}-has-error`]:Cc==="error",[`${_a}-is-validating`]:Cc==="validating",[`${_a}-hidden`]:$a});return W.createElement("div",{className:ch,style:Nn,ref:Al},W.createElement(bo,Object.assign({className:`${_a}-row`},(0,vn.Z)(Ea,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),W.createElement(Ln,Object.assign({htmlFor:ka},dt,{requiredMark:Ba,required:Xs!=null?Xs:zs,prefixCls:Mt})),W.createElement(zr,Object.assign({},dt,ps,{errors:ks,warnings:Za,prefixCls:Mt,status:Cc,help:Ur,marginBottom:Fl,onErrorVisibleChanged:Ua}),W.createElement(Y.qI.Provider,{value:xa},W.createElement(_i,{prefixCls:Mt,meta:ps,errors:ps.errors,warnings:ps.warnings,hasFeedback:Po,validateStatus:Cc},nl)))),!!Fl&&W.createElement("div",{className:`${_a}-margin-offset`,style:{marginBottom:-Fl}}))}const Qr="__SPLIT__",Ai=null;function Ri(dt,Mt){const Zt=Object.keys(dt),Kt=Object.keys(Mt);return Zt.length===Kt.length&&Zt.every(Nn=>{const Ur=dt[Nn],Ui=Mt[Nn];return Ur===Ui||typeof Ur=="function"||typeof Ui=="function"})}const To=W.memo(dt=>{let{children:Mt}=dt;return Mt},(dt,Mt)=>Ri(dt.control,Mt.control)&&dt.update===Mt.update&&dt.childProps.length===Mt.childProps.length&&dt.childProps.every((Zt,Kt)=>Zt===Mt.childProps[Kt]));function yo(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ao(dt){const{name:Mt,noStyle:Zt,className:Kt,dependencies:Nn,prefixCls:Ur,shouldUpdate:Ui,rules:Ao,children:rs,required:ps,label:Po,messageVariables:$a,trigger:nl="onChange",validateTrigger:ka,hidden:Xs,help:zs}=dt,{getPrefixCls:xa}=W.useContext(vt.E_),{name:Ea}=W.useContext(Y.q3),_a=Rn(rs),Ba=typeof _a=="function",Al=W.useContext(Y.qI),{validateTrigger:ks}=W.useContext(Te.zb),Za=ka!==void 0?ka:ks,lu=Mt!=null,mu=xa("form",Ur),nu=(0,ft.Z)(mu),[Fl,va,Ua]=je(mu,nu),Yl=(0,no.ln)("Form.Item"),Cc=W.useContext(Te.ZM),ch=W.useRef(),[mh,_h]=hr({}),[wh,vu]=(0,oi.Z)(()=>yo()),ru=co=>{const ns=Cc==null?void 0:Cc.getKey(co.name);if(vu(co.destroy?yo():co,!0),Zt&&zs!==!1&&Al){let fs=co.name;if(co.destroy)fs=ch.current||fs;else if(ns!==void 0){const[vs,as]=ns;fs=[vs].concat((0,v.Z)(as)),ch.current=fs}Al(co,fs)}},Ql=(co,ns)=>{_h(fs=>{const vs=Object.assign({},fs),da=[].concat((0,v.Z)(co.name.slice(0,-1)),(0,v.Z)(ns)).join(Qr);return co.destroy?delete vs[da]:vs[da]=co,vs})},[Hi,ji]=W.useMemo(()=>{const co=(0,v.Z)(wh.errors),ns=(0,v.Z)(wh.warnings);return Object.values(mh).forEach(fs=>{co.push.apply(co,(0,v.Z)(fs.errors||[])),ns.push.apply(ns,(0,v.Z)(fs.warnings||[]))}),[co,ns]},[mh,wh.errors,wh.warnings]),Gn=mt();function Sr(co,ns,fs){return Zt&&!Xs?W.createElement(_i,{prefixCls:mu,hasFeedback:dt.hasFeedback,validateStatus:dt.validateStatus,meta:wh,errors:Hi,warnings:ji,noStyle:!0},co):W.createElement(Ts,Object.assign({key:"row"},dt,{className:P()(Kt,Ua,nu,va),prefixCls:mu,fieldId:ns,isRequired:fs,errors:Hi,warnings:ji,meta:wh,onSubItemMetaChange:Ql}),co)}if(!lu&&!Ba&&!Nn)return Fl(Sr(_a));let Rr={};return typeof Po=="string"?Rr.label=Po:Mt&&(Rr.label=String(Mt)),$a&&(Rr=Object.assign(Object.assign({},Rr),$a)),Fl(W.createElement(Te.gN,Object.assign({},dt,{messageVariables:Rr,trigger:nl,validateTrigger:Za,onMetaChange:ru}),(co,ns,fs)=>{const vs=pe(Mt).length&&ns?ns.name:[],as=Ii(vs,Ea),da=ps!==void 0?ps:!!(Ao&&Ao.some(Vs=>{if(Vs&&typeof Vs=="object"&&Vs.required&&!Vs.warningOnly)return!0;if(typeof Vs=="function"){const ol=Vs(fs);return ol&&ol.required&&!ol.warningOnly}return!1})),Ss=Object.assign({},co);let pl=null;if(Array.isArray(_a)&&lu)pl=_a;else if(!(Ba&&(!(Ui||Nn)||lu))){if(!(Nn&&!Ba&&!lu))if((0,Bi.l$)(_a)){const Vs=Object.assign(Object.assign({},_a.props),Ss);if(Vs.id||(Vs.id=as),zs||Hi.length>0||ji.length>0||dt.extra){const eu=[];(zs||Hi.length>0)&&eu.push(`${as}_help`),dt.extra&&eu.push(`${as}_extra`),Vs["aria-describedby"]=eu.join(" ")}Hi.length>0&&(Vs["aria-invalid"]="true"),da&&(Vs["aria-required"]="true"),(0,Ti.Yr)(_a)&&(Vs.ref=Gn(vs,_a)),new Set([].concat((0,v.Z)(pe(nl)),(0,v.Z)(pe(Za)))).forEach(eu=>{Vs[eu]=function(){for(var kl,Wl,Dl,ml,uu,pn=arguments.length,pu=new Array(pn),tc=0;tc{var{prefixCls:Mt,children:Zt}=dt,Kt=ba(dt,["prefixCls","children"]);const{getPrefixCls:Nn}=W.useContext(vt.E_),Ur=Nn("form",Mt),Ui=W.useMemo(()=>({prefixCls:Ur,status:"error"}),[Ur]);return W.createElement(Te.aV,Object.assign({},Kt),(Ao,rs,ps)=>W.createElement(Y.Rk.Provider,{value:Ui},Zt(Ao.map(Po=>Object.assign(Object.assign({},Po),{fieldKey:Po.key})),rs,{errors:ps.errors,warnings:ps.warnings})))};function el(){const{form:dt}=(0,W.useContext)(Y.q3);return dt}const tl=wr;tl.Item=fa,tl.List=Ds,tl.ErrorList=Nt,tl.useForm=ai,tl.useFormInstance=el,tl.useWatch=Te.qo,tl.Provider=Y.RV,tl.create=()=>{};var sn=tl},82464:function(St,me,x){"use strict";var v=x(77617);me.Z=(0,v.createContext)(void 0)},29299:function(St,me,x){"use strict";var v=x(77617),z=x(64693),P=x(51626),A=x(5754);function W(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Y=(0,v.useRef)({}),ie=(0,P.Z)(),ae=(0,A.ZP)();return(0,z.Z)(()=>{const se=ae.subscribe(Ie=>{Y.current=Ie,X&&ie()});return()=>ae.unsubscribe(se)},[]),Y.current}me.Z=W},154:function(St,me,x){"use strict";x.d(me,{Z:function(){return Br}});var v=x(77617),z=x(29338),P=x(92310),A=x.n(P),W=x(79384),X=x(54131),Y=x(16514),ie=x(35372),ae=x(13255),se=x(56348),Ie=x(45779),Be=x(89308),Ce=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ct=v.createContext(null),nt=0;function Ge(sr,ii){var qi=v.useState(function(){return nt+=1,String(nt)}),Ln=(0,ie.Z)(qi,1),zn=Ln[0],Wi=v.useContext(ct),Yi={data:ii,canPreview:sr};return v.useEffect(function(){if(Wi)return Wi.register(zn,Yi)},[]),v.useEffect(function(){Wi&&Wi.register(zn,Yi)},[sr,ii]),zn}function at(sr){return new Promise(function(ii){var qi=document.createElement("img");qi.onerror=function(){return ii(!1)},qi.onload=function(){return ii(!0)},qi.src=sr})}function Ye(sr){var ii=sr.src,qi=sr.isCustomPlaceholder,Ln=sr.fallback,zn=(0,v.useState)(qi?"loading":"normal"),Wi=(0,ie.Z)(zn,2),Yi=Wi[0],so=Wi[1],ko=(0,v.useRef)(!1),_i=Yi==="error";(0,v.useEffect)(function(){var Ai=!0;return at(ii).then(function(Ri){!Ri&&Ai&&so("error")}),function(){Ai=!1}},[ii]),(0,v.useEffect)(function(){qi&&!ko.current?so("loading"):_i&&so("normal")},[ii]);var hs=function(){so("normal")},Ts=function(Ri){ko.current=!1,Yi==="loading"&&Ri!==null&&Ri!==void 0&&Ri.complete&&(Ri.naturalWidth||Ri.naturalHeight)&&(ko.current=!0,hs())},Qr=_i&&Ln?{src:Ln}:{onLoad:hs,src:ii};return[Ts,Qr,Yi]}var rt=x(6291),Gt=x(65245),yt=x(39193),Et=x(48897),ht=x(74570),Pe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function et(sr,ii,qi,Ln){var zn=(0,v.useRef)(null),Wi=(0,v.useRef)([]),Yi=(0,v.useState)(Pe),so=(0,ie.Z)(Yi,2),ko=so[0],_i=so[1],hs=function(Ri){_i(Pe),Ln&&!(0,Et.Z)(Pe,ko)&&Ln({transform:Pe,action:Ri})},Ts=function(Ri,To){zn.current===null&&(Wi.current=[],zn.current=(0,ht.Z)(function(){_i(function(yo){var ao=yo;return Wi.current.forEach(function(Bs){ao=(0,X.Z)((0,X.Z)({},ao),Bs)}),zn.current=null,Ln==null||Ln({transform:ao,action:To}),ao})})),Wi.current.push((0,X.Z)((0,X.Z)({},ko),Ri))},Qr=function(Ri,To,yo,ao,Bs){var fa=sr.current,ba=fa.width,Rs=fa.height,Ds=fa.offsetWidth,el=fa.offsetHeight,tl=fa.offsetLeft,sn=fa.offsetTop,dt=Ri,Mt=ko.scale*Ri;Mt>qi?(Mt=qi,dt=qi/ko.scale):MtLn){if(ii>0)return(0,Y.Z)({},sr,Wi);if(ii<0&&znLn)return(0,Y.Z)({},sr,ii<0?Wi:-Wi);return{}}function je(sr,ii,qi,Ln){var zn=(0,Ie.g1)(),Wi=zn.width,Yi=zn.height,so=null;return sr<=Wi&&ii<=Yi?so={x:0,y:0}:(sr>Wi||ii>Yi)&&(so=(0,X.Z)((0,X.Z)({},Ue("x",qi,sr,Wi)),Ue("y",Ln,ii,Yi))),so}var ft=1,Ct=1;function Xe(sr,ii,qi,Ln,zn,Wi,Yi){var so=zn.rotate,ko=zn.scale,_i=zn.x,hs=zn.y,Ts=(0,v.useState)(!1),Qr=(0,ie.Z)(Ts,2),Ai=Qr[0],Ri=Qr[1],To=(0,v.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),yo=function(Rs){!ii||Rs.button!==0||(Rs.preventDefault(),Rs.stopPropagation(),To.current={diffX:Rs.pageX-_i,diffY:Rs.pageY-hs,transformX:_i,transformY:hs},Ri(!0))},ao=function(Rs){qi&&Ai&&Wi({x:Rs.pageX-To.current.diffX,y:Rs.pageY-To.current.diffY},"move")},Bs=function(){if(qi&&Ai){Ri(!1);var Rs=To.current,Ds=Rs.transformX,el=Rs.transformY,tl=_i!==Ds&&hs!==el;if(!tl)return;var sn=sr.current.offsetWidth*ko,dt=sr.current.offsetHeight*ko,Mt=sr.current.getBoundingClientRect(),Zt=Mt.left,Kt=Mt.top,Nn=so%180!==0,Ur=je(Nn?dt:sn,Nn?sn:dt,Zt,Kt);Ur&&Wi((0,X.Z)({},Ur),"dragRebound")}},fa=function(Rs){if(!(!qi||Rs.deltaY==0)){var Ds=Math.abs(Rs.deltaY/100),el=Math.min(Ds,Ct),tl=ft+el*Ln;Rs.deltaY>0&&(tl=ft/tl),Yi(tl,"wheel",Rs.clientX,Rs.clientY)}};return(0,v.useEffect)(function(){var ba,Rs,Ds,el;if(ii){Ds=(0,Gt.Z)(window,"mouseup",Bs,!1),el=(0,Gt.Z)(window,"mousemove",ao,!1);try{window.top!==window.self&&(ba=(0,Gt.Z)(window.top,"mouseup",Bs,!1),Rs=(0,Gt.Z)(window.top,"mousemove",ao,!1))}catch(tl){(0,Oe.Kp)(!1,"[rc-image] ".concat(tl))}}return function(){var tl,sn,dt,Mt;(tl=Ds)===null||tl===void 0||tl.remove(),(sn=el)===null||sn===void 0||sn.remove(),(dt=ba)===null||dt===void 0||dt.remove(),(Mt=Rs)===null||Mt===void 0||Mt.remove()}},[qi,Ai,_i,hs,so,ii]),{isMoving:Ai,onMouseDown:yo,onMouseMove:ao,onMouseUp:Bs,onWheel:fa}}function hn(sr,ii){var qi=sr.x-ii.x,Ln=sr.y-ii.y;return Math.hypot(qi,Ln)}function Nt(sr,ii,qi,Ln){var zn=hn(sr,qi),Wi=hn(ii,Ln);if(zn===0&&Wi===0)return[sr.x,sr.y];var Yi=zn/(zn+Wi),so=sr.x+Yi*(ii.x-sr.x),ko=sr.y+Yi*(ii.y-sr.y);return[so,ko]}function Te(sr,ii,qi,Ln,zn,Wi,Yi){var so=zn.rotate,ko=zn.scale,_i=zn.x,hs=zn.y,Ts=(0,v.useState)(!1),Qr=(0,ie.Z)(Ts,2),Ai=Qr[0],Ri=Qr[1],To=(0,v.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),yo=function(Rs){To.current=(0,X.Z)((0,X.Z)({},To.current),Rs)},ao=function(Rs){if(ii){Rs.stopPropagation(),Ri(!0);var Ds=Rs.touches,el=Ds===void 0?[]:Ds;el.length>1?yo({point1:{x:el[0].clientX,y:el[0].clientY},point2:{x:el[1].clientX,y:el[1].clientY},eventType:"touchZoom"}):yo({point1:{x:el[0].clientX-_i,y:el[0].clientY-hs},eventType:"move"})}},Bs=function(Rs){var Ds=Rs.touches,el=Ds===void 0?[]:Ds,tl=To.current,sn=tl.point1,dt=tl.point2,Mt=tl.eventType;if(el.length>1&&Mt==="touchZoom"){var Zt={x:el[0].clientX,y:el[0].clientY},Kt={x:el[1].clientX,y:el[1].clientY},Nn=Nt(sn,dt,Zt,Kt),Ur=(0,ie.Z)(Nn,2),Ui=Ur[0],Ao=Ur[1],rs=hn(Zt,Kt)/hn(sn,dt);Yi(rs,"touchZoom",Ui,Ao,!0),yo({point1:Zt,point2:Kt,eventType:"touchZoom"})}else Mt==="move"&&(Wi({x:el[0].clientX-sn.x,y:el[0].clientY-sn.y},"move"),yo({eventType:"move"}))},fa=function(){if(qi){if(Ai&&Ri(!1),yo({eventType:"none"}),Ln>ko)return Wi({x:0,y:0,scale:Ln},"touchZoom");var Rs=sr.current.offsetWidth*ko,Ds=sr.current.offsetHeight*ko,el=sr.current.getBoundingClientRect(),tl=el.left,sn=el.top,dt=so%180!==0,Mt=je(dt?Ds:Rs,dt?Rs:Ds,tl,sn);Mt&&Wi((0,X.Z)({},Mt),"dragRebound")}};return(0,v.useEffect)(function(){var ba;return qi&&ii&&(ba=(0,Gt.Z)(window,"touchmove",function(Rs){return Rs.preventDefault()},{passive:!1})),function(){var Rs;(Rs=ba)===null||Rs===void 0||Rs.remove()}},[qi,ii]),{isTouching:Ai,onTouchStart:ao,onTouchMove:Bs,onTouchEnd:fa}}var vt=x(43403),ze=x(44516),Vt=function(ii){var qi=ii.visible,Ln=ii.maskTransitionName,zn=ii.getContainer,Wi=ii.prefixCls,Yi=ii.rootClassName,so=ii.icons,ko=ii.countRender,_i=ii.showSwitch,hs=ii.showProgress,Ts=ii.current,Qr=ii.transform,Ai=ii.count,Ri=ii.scale,To=ii.minScale,yo=ii.maxScale,ao=ii.closeIcon,Bs=ii.onSwitchLeft,fa=ii.onSwitchRight,ba=ii.onClose,Rs=ii.onZoomIn,Ds=ii.onZoomOut,el=ii.onRotateRight,tl=ii.onRotateLeft,sn=ii.onFlipX,dt=ii.onFlipY,Mt=ii.toolbarRender,Zt=ii.zIndex,Kt=(0,v.useContext)(ct),Nn=so.rotateLeft,Ur=so.rotateRight,Ui=so.zoomIn,Ao=so.zoomOut,rs=so.close,ps=so.left,Po=so.right,$a=so.flipX,nl=so.flipY,ka="".concat(Wi,"-operations-operation");v.useEffect(function(){var Ea=function(Ba){Ba.keyCode===yt.Z.ESC&&ba()};return qi&&window.addEventListener("keydown",Ea),function(){window.removeEventListener("keydown",Ea)}},[qi]);var Xs=[{icon:nl,onClick:dt,type:"flipY"},{icon:$a,onClick:sn,type:"flipX"},{icon:Nn,onClick:tl,type:"rotateLeft"},{icon:Ur,onClick:el,type:"rotateRight"},{icon:Ao,onClick:Ds,type:"zoomOut",disabled:Ri<=To},{icon:Ui,onClick:Rs,type:"zoomIn",disabled:Ri===yo}],zs=Xs.map(function(Ea){var _a,Ba=Ea.icon,Al=Ea.onClick,ks=Ea.type,Za=Ea.disabled;return v.createElement("div",{className:A()(ka,(_a={},(0,Y.Z)(_a,"".concat(Wi,"-operations-operation-").concat(ks),!0),(0,Y.Z)(_a,"".concat(Wi,"-operations-operation-disabled"),!!Za),_a)),onClick:Al,key:ks},Ba)}),xa=v.createElement("div",{className:"".concat(Wi,"-operations")},zs);return v.createElement(ze.ZP,{visible:qi,motionName:Ln},function(Ea){var _a=Ea.className,Ba=Ea.style;return v.createElement(vt.Z,{open:!0,getContainer:zn!=null?zn:document.body},v.createElement("div",{className:A()("".concat(Wi,"-operations-wrapper"),_a,Yi),style:(0,X.Z)((0,X.Z)({},Ba),{},{zIndex:Zt})},ao===null?null:v.createElement("button",{className:"".concat(Wi,"-close"),onClick:ba},ao||rs),_i&&v.createElement(v.Fragment,null,v.createElement("div",{className:A()("".concat(Wi,"-switch-left"),(0,Y.Z)({},"".concat(Wi,"-switch-left-disabled"),Ts===0)),onClick:Bs},ps),v.createElement("div",{className:A()("".concat(Wi,"-switch-right"),(0,Y.Z)({},"".concat(Wi,"-switch-right-disabled"),Ts===Ai-1)),onClick:fa},Po)),v.createElement("div",{className:"".concat(Wi,"-footer")},hs&&v.createElement("div",{className:"".concat(Wi,"-progress")},ko?ko(Ts+1,Ai):"".concat(Ts+1," / ").concat(Ai)),Mt?Mt(xa,(0,X.Z)({icons:{flipYIcon:zs[0],flipXIcon:zs[1],rotateLeftIcon:zs[2],rotateRightIcon:zs[3],zoomOutIcon:zs[4],zoomInIcon:zs[5]},actions:{onFlipY:dt,onFlipX:sn,onRotateLeft:tl,onRotateRight:el,onZoomOut:Ds,onZoomIn:Rs},transform:Qr},Kt?{current:Ts,total:Ai}:{})):xa)))})},Tt=Vt,un=["fallback","src","imgRef"],on=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Lr=function(ii){var qi=ii.fallback,Ln=ii.src,zn=ii.imgRef,Wi=(0,se.Z)(ii,un),Yi=Ye({src:Ln,fallback:qi}),so=(0,ie.Z)(Yi,2),ko=so[0],_i=so[1];return v.createElement("img",(0,W.Z)({ref:function(Ts){zn.current=Ts,ko(Ts)}},Wi,_i))},Yr=function(ii){var qi=ii.prefixCls,Ln=ii.src,zn=ii.alt,Wi=ii.fallback,Yi=ii.movable,so=Yi===void 0?!0:Yi,ko=ii.onClose,_i=ii.visible,hs=ii.icons,Ts=hs===void 0?{}:hs,Qr=ii.rootClassName,Ai=ii.closeIcon,Ri=ii.getContainer,To=ii.current,yo=To===void 0?0:To,ao=ii.count,Bs=ao===void 0?1:ao,fa=ii.countRender,ba=ii.scaleStep,Rs=ba===void 0?.5:ba,Ds=ii.minScale,el=Ds===void 0?1:Ds,tl=ii.maxScale,sn=tl===void 0?50:tl,dt=ii.transitionName,Mt=dt===void 0?"zoom":dt,Zt=ii.maskTransitionName,Kt=Zt===void 0?"fade":Zt,Nn=ii.imageRender,Ur=ii.imgCommonProps,Ui=ii.toolbarRender,Ao=ii.onTransform,rs=ii.onChange,ps=(0,se.Z)(ii,on),Po=(0,v.useRef)(),$a=(0,v.useContext)(ct),nl=$a&&Bs>1,ka=$a&&Bs>=1,Xs=(0,v.useState)(!0),zs=(0,ie.Z)(Xs,2),xa=zs[0],Ea=zs[1],_a=et(Po,el,sn,Ao),Ba=_a.transform,Al=_a.resetTransform,ks=_a.updateTransform,Za=_a.dispatchZoomChange,lu=Xe(Po,so,_i,Rs,Ba,ks,Za),mu=lu.isMoving,nu=lu.onMouseDown,Fl=lu.onWheel,va=Te(Po,so,_i,el,Ba,ks,Za),Ua=va.isTouching,Yl=va.onTouchStart,Cc=va.onTouchMove,ch=va.onTouchEnd,mh=Ba.rotate,_h=Ba.scale,wh=A()((0,Y.Z)({},"".concat(qi,"-moving"),mu));(0,v.useEffect)(function(){xa||Ea(!0)},[xa]);var vu=function(){Al("close")},ru=function(){Za(ft+Rs,"zoomIn")},Ql=function(){Za(ft/(ft+Rs),"zoomOut")},Hi=function(){ks({rotate:mh+90},"rotateRight")},ji=function(){ks({rotate:mh-90},"rotateLeft")},Gn=function(){ks({flipX:!Ba.flipX},"flipX")},Sr=function(){ks({flipY:!Ba.flipY},"flipY")},Rr=function(da){da==null||da.preventDefault(),da==null||da.stopPropagation(),yo>0&&(Ea(!1),Al("prev"),rs==null||rs(yo-1,yo))},co=function(da){da==null||da.preventDefault(),da==null||da.stopPropagation(),yo({position:sr||"absolute",inset:0}),Cn=sr=>{const{iconCls:ii,motionDurationSlow:qi,paddingXXS:Ln,marginXXS:zn,prefixCls:Wi,colorTextLightSolid:Yi}=sr;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Yi,background:new Jn.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${qi}`,[`.${Wi}-mask-info`]:Object.assign(Object.assign({},er.vS),{padding:`0 ${(0,tr.bf)(Ln)}`,[ii]:{marginInlineEnd:zn,svg:{verticalAlign:"baseline"}}})}},rr=sr=>{const{previewCls:ii,modalMaskBg:qi,paddingSM:Ln,marginXL:zn,margin:Wi,paddingLG:Yi,previewOperationColorDisabled:so,previewOperationHoverColor:ko,motionDurationSlow:_i,iconCls:hs,colorTextLightSolid:Ts}=sr,Qr=new Jn.C(qi).setAlpha(.1),Ai=Qr.clone().setAlpha(.2);return{[`${ii}-footer`]:{position:"fixed",bottom:zn,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:sr.previewOperationColor},[`${ii}-progress`]:{marginBottom:Wi},[`${ii}-close`]:{position:"fixed",top:zn,right:{_skip_check_:!0,value:zn},display:"flex",color:Ts,backgroundColor:Qr.toRgbString(),borderRadius:"50%",padding:Ln,outline:0,border:0,cursor:"pointer",transition:`all ${_i}`,"&:hover":{backgroundColor:Ai.toRgbString()},[`& > ${hs}`]:{fontSize:sr.previewOperationSize}},[`${ii}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,tr.bf)(Yi)}`,backgroundColor:Qr.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ln,padding:Ln,cursor:"pointer",transition:`all ${_i}`,userSelect:"none",[`&:not(${ii}-operations-operation-disabled):hover > ${hs}`]:{color:ko},"&-disabled":{color:so,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${hs}`]:{fontSize:sr.previewOperationSize}}}}},Pr=sr=>{const{modalMaskBg:ii,iconCls:qi,previewOperationColorDisabled:Ln,previewCls:zn,zIndexPopup:Wi,motionDurationSlow:Yi}=sr,so=new Jn.C(ii).setAlpha(.1),ko=so.clone().setAlpha(.2);return{[`${zn}-switch-left, ${zn}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:sr.calc(Wi).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:sr.imagePreviewSwitchSize,height:sr.imagePreviewSwitchSize,marginTop:sr.calc(sr.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:sr.previewOperationColor,background:so.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Yi}`,userSelect:"none","&:hover":{background:ko.toRgbString()},["&-disabled"]:{"&, &:hover":{color:Ln,background:"transparent",cursor:"not-allowed",[`> ${qi}`]:{cursor:"not-allowed"}}},[`> ${qi}`]:{fontSize:sr.previewOperationSize}},[`${zn}-switch-left`]:{insetInlineStart:sr.marginSM},[`${zn}-switch-right`]:{insetInlineEnd:sr.marginSM}}},Er=sr=>{const{motionEaseOut:ii,previewCls:qi,motionDurationSlow:Ln,componentCls:zn}=sr;return[{[`${zn}-preview-root`]:{[qi]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${qi}-body`]:Object.assign(Object.assign({},en()),{overflow:"hidden"}),[`${qi}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ln} ${ii} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},en()),{transition:`transform ${Ln} ${ii} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${qi}-moving`]:{[`${qi}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${zn}-preview-root`]:{[`${qi}-wrap`]:{zIndex:sr.zIndexPopup}}},{[`${zn}-preview-operations-wrapper`]:{position:"fixed",zIndex:sr.calc(sr.zIndexPopup).add(1).equal({unit:!1})},"&":[rr(sr),Pr(sr)]}]},ui=sr=>{const{componentCls:ii}=sr;return{[ii]:{position:"relative",display:"inline-block",[`${ii}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ii}-img-placeholder`]:{backgroundColor:sr.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ii}-mask`]:Object.assign({},Cn(sr)),[`${ii}-mask:hover`]:{opacity:1},[`${ii}-placeholder`]:Object.assign({},en())}}},Gr=sr=>{const{previewCls:ii}=sr;return{[`${ii}-root`]:(0,Fr._y)(sr,"zoom"),["&"]:(0,jr.J$)(sr,!0)}},zr=sr=>({zIndexPopup:sr.zIndexPopupBase+80,previewOperationColor:new Jn.C(sr.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Jn.C(sr.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Jn.C(sr.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:sr.fontSizeIcon*1.5});var Ei=(0,bo.I$)("Image",sr=>{const ii=`${sr.componentCls}-preview`,qi=(0,zt.TS)(sr,{previewCls:ii,modalMaskBg:new Jn.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:sr.controlHeightLG});return[ui(qi),Er(qi),(0,nn.QA)((0,zt.TS)(qi,{componentCls:ii})),Gr(qi)]},zr),Zi=function(sr,ii){var qi={};for(var Ln in sr)Object.prototype.hasOwnProperty.call(sr,Ln)&&ii.indexOf(Ln)<0&&(qi[Ln]=sr[Ln]);if(sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,Ln=Object.getOwnPropertySymbols(sr);zn{var{previewPrefixCls:ii,preview:qi}=sr,Ln=Zi(sr,["previewPrefixCls","preview"]);const{getPrefixCls:zn}=v.useContext(jn.E_),Wi=zn("image",ii),Yi=`${Wi}-preview`,so=zn(),ko=(0,wr.Z)(Wi),[_i,hs,Ts]=Ei(Wi,ko),[Qr]=(0,Ar.Cn)("ImagePreview",typeof qi=="object"?qi.zIndex:void 0),Ai=v.useMemo(()=>{var Ri;if(qi===!1)return qi;const To=typeof qi=="object"?qi:{},yo=A()(hs,Ts,ko,(Ri=To.rootClassName)!==null&&Ri!==void 0?Ri:"");return Object.assign(Object.assign({},To),{transitionName:(0,Rt.m)(so,"zoom",To.transitionName),maskTransitionName:(0,Rt.m)(so,"fade",To.maskTransitionName),rootClassName:yo,zIndex:Qr})},[qi]);return _i(v.createElement(Ms.PreviewGroup,Object.assign({preview:Ai,previewPrefixCls:Yi,icons:Kr},Ln)))},pr=function(sr,ii){var qi={};for(var Ln in sr)Object.prototype.hasOwnProperty.call(sr,Ln)&&ii.indexOf(Ln)<0&&(qi[Ln]=sr[Ln]);if(sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,Ln=Object.getOwnPropertySymbols(sr);zn{var ii;const{prefixCls:qi,preview:Ln,className:zn,rootClassName:Wi,style:Yi}=sr,so=pr(sr,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ko,locale:_i=oi.Z,getPopupContainer:hs,image:Ts}=v.useContext(jn.E_),Qr=ko("image",qi),Ai=ko(),Ri=_i.Image||oi.Z.Image,To=(0,wr.Z)(Qr),[yo,ao,Bs]=Ei(Qr,To),fa=A()(Wi,ao,Bs,To),ba=A()(zn,ao,Ts==null?void 0:Ts.className),[Rs]=(0,Ar.Cn)("ImagePreview",typeof Ln=="object"?Ln.zIndex:void 0),Ds=v.useMemo(()=>{var tl;if(Ln===!1)return Ln;const sn=typeof Ln=="object"?Ln:{},{getContainer:dt,closeIcon:Mt}=sn,Zt=pr(sn,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:v.createElement("div",{className:`${Qr}-mask-info`},v.createElement(z.Z,null),Ri==null?void 0:Ri.preview),icons:Kr},Zt),{getContainer:dt!=null?dt:hs,transitionName:(0,Rt.m)(Ai,"zoom",sn.transitionName),maskTransitionName:(0,Rt.m)(Ai,"fade",sn.maskTransitionName),zIndex:Rs,closeIcon:Mt!=null?Mt:(tl=Ts==null?void 0:Ts.preview)===null||tl===void 0?void 0:tl.closeIcon})},[Ln,Ri,(ii=Ts==null?void 0:Ts.preview)===null||ii===void 0?void 0:ii.closeIcon]),el=Object.assign(Object.assign({},Ts==null?void 0:Ts.style),Yi);return yo(v.createElement(Ms,Object.assign({prefixCls:Qr,preview:Ds,rootClassName:fa,className:ba,style:el},so)))};qo.PreviewGroup=Qo;var Br=qo},71750:function(St,me,x){"use strict";x.d(me,{Z:function(){return xt}});var v=x(77617),z=x(21112),P=x(79384),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},W=A,X=x(44847),Y=function(Bt,rn){return v.createElement(X.Z,(0,P.Z)({},Bt,{ref:rn,icon:W}))},ie=v.forwardRef(Y),ae=x(92310),se=x.n(ae),Ie=x(16514),Be=x(13255),Ce=x(35372),ct=x(56348),nt=x(61577),Ge=x(22946);function at(){return typeof BigInt=="function"}function Ye(it){return!it&&it!==0&&!Number.isNaN(it)||!String(it).trim()}function rt(it){var Bt=it.trim(),rn=Bt.startsWith("-");rn&&(Bt=Bt.slice(1)),Bt=Bt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Bt.startsWith(".")&&(Bt="0".concat(Bt));var ir=Bt||"0",tr=ir.split("."),Jn=tr[0]||"0",nn=tr[1]||"0";Jn==="0"&&nn==="0"&&(rn=!1);var er=rn?"-":"";return{negative:rn,negativeStr:er,trimStr:ir,integerStr:Jn,decimalStr:nn,fullStr:"".concat(er).concat(ir)}}function Gt(it){var Bt=String(it);return!Number.isNaN(Number(Bt))&&Bt.includes("e")}function yt(it){var Bt=String(it);if(Gt(it)){var rn=Number(Bt.slice(Bt.indexOf("e-")+2)),ir=Bt.match(/\.(\d+)/);return ir!=null&&ir[1]&&(rn+=ir[1].length),rn}return Bt.includes(".")&&ht(Bt)?Bt.length-Bt.indexOf(".")-1:0}function Et(it){var Bt=String(it);if(Gt(it)){if(it>Number.MAX_SAFE_INTEGER)return String(at()?BigInt(it).toString():Number.MAX_SAFE_INTEGER);if(it0&&arguments[0]!==void 0?arguments[0]:!0;return rn?this.isInvalidate()?"":rt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),it}(),et=function(){function it(Bt){if((0,nt.Z)(this,it),(0,Ie.Z)(this,"origin",""),(0,Ie.Z)(this,"number",void 0),(0,Ie.Z)(this,"empty",void 0),Ye(Bt)){this.empty=!0;return}this.origin=String(Bt),this.number=Number(Bt)}return(0,Ge.Z)(it,[{key:"negate",value:function(){return new it(-this.toNumber())}},{key:"add",value:function(rn){if(this.isInvalidate())return new it(rn);var ir=Number(rn);if(Number.isNaN(ir))return this;var tr=this.number+ir;if(tr>Number.MAX_SAFE_INTEGER)return new it(Number.MAX_SAFE_INTEGER);if(trNumber.MAX_SAFE_INTEGER)return new it(Number.MAX_SAFE_INTEGER);if(tr0&&arguments[0]!==void 0?arguments[0]:!0;return rn?this.isInvalidate()?"":Et(this.number):this.origin}}]),it}();function Oe(it){return at()?new Pe(it):new et(it)}function Ue(it,Bt,rn){var ir=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(it==="")return"";var tr=rt(it),Jn=tr.negativeStr,nn=tr.integerStr,er=tr.decimalStr,Fr="".concat(Bt).concat(er),jr="".concat(Jn).concat(nn);if(rn>=0){var bo=Number(er[rn]);if(bo>=5&&!ir){var zt=Oe(it).add("".concat(Jn,"0.").concat("0".repeat(rn)).concat(10-bo));return Ue(zt.toString(),Bt,rn,ir)}return rn===0?jr:"".concat(jr).concat(Bt).concat(er.padEnd(rn,"0").slice(0,rn))}return Fr===".0"?jr:"".concat(jr).concat(Fr)}var je=Oe,ft=x(19536),Ct=x(64693),Xe=x(17763),hn=x(32188);function Nt(it,Bt){var rn=(0,v.useRef)(null);function ir(){try{var Jn=it.selectionStart,nn=it.selectionEnd,er=it.value,Fr=er.substring(0,Jn),jr=er.substring(nn);rn.current={start:Jn,end:nn,value:er,beforeTxt:Fr,afterTxt:jr}}catch(bo){}}function tr(){if(it&&rn.current&&Bt)try{var Jn=it.value,nn=rn.current,er=nn.beforeTxt,Fr=nn.afterTxt,jr=nn.start,bo=Jn.length;if(Jn.endsWith(Fr))bo=Jn.length-rn.current.afterTxt.length;else if(Jn.startsWith(er))bo=er.length;else{var zt=er[jr-1],en=Jn.indexOf(zt,jr-1);en!==-1&&(bo=en+1)}it.setSelectionRange(bo,bo)}catch(Cn){(0,hn.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Cn.message))}}return[ir,tr]}var Te=x(89305),vt=function(){var Bt=(0,v.useState)(!1),rn=(0,Ce.Z)(Bt,2),ir=rn[0],tr=rn[1];return(0,Ct.Z)(function(){tr((0,Te.Z)())},[]),ir},ze=vt,Vt=x(74570),Tt=200,un=600;function on(it){var Bt=it.prefixCls,rn=it.upNode,ir=it.downNode,tr=it.upDisabled,Jn=it.downDisabled,nn=it.onStep,er=v.useRef(),Fr=v.useRef([]),jr=v.useRef();jr.current=nn;var bo=function(){clearTimeout(er.current)},zt=function(zr,Ei){zr.preventDefault(),bo(),jr.current(Ei);function Zi(){jr.current(Ei),er.current=setTimeout(Zi,Tt)}er.current=setTimeout(Zi,un)};v.useEffect(function(){return function(){bo(),Fr.current.forEach(function(Gr){return Vt.Z.cancel(Gr)})}},[]);var en=ze();if(en)return null;var Cn="".concat(Bt,"-handler"),rr=se()(Cn,"".concat(Cn,"-up"),(0,Ie.Z)({},"".concat(Cn,"-up-disabled"),tr)),Pr=se()(Cn,"".concat(Cn,"-down"),(0,Ie.Z)({},"".concat(Cn,"-down-disabled"),Jn)),Er=function(){return Fr.current.push((0,Vt.Z)(bo))},ui={unselectable:"on",role:"button",onMouseUp:Er,onMouseLeave:Er};return v.createElement("div",{className:"".concat(Cn,"-wrap")},v.createElement("span",(0,P.Z)({},ui,{onMouseDown:function(zr){zt(zr,!0)},"aria-label":"Increase Value","aria-disabled":tr,className:rr}),rn||v.createElement("span",{unselectable:"on",className:"".concat(Bt,"-handler-up-inner")})),v.createElement("span",(0,P.Z)({},ui,{onMouseDown:function(zr){zt(zr,!1)},"aria-label":"Decrease Value","aria-disabled":Jn,className:Pr}),ir||v.createElement("span",{unselectable:"on",className:"".concat(Bt,"-handler-down-inner")})))}function Lr(it){var Bt=typeof it=="number"?Et(it):rt(it).fullStr,rn=Bt.includes(".");return rn?rt(Bt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:it+"0"}var Yr=x(7807),fi=function(){var it=(0,v.useRef)(0),Bt=function(){Vt.Z.cancel(it.current)};return(0,v.useEffect)(function(){return Bt},[]),function(rn){Bt(),it.current=(0,Vt.Z)(function(){rn()})}},Xi=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Qi=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],hi=function(Bt,rn){return Bt||rn.isEmpty()?rn.toString():rn.toNumber()},Go=function(Bt){var rn=je(Bt);return rn.isInvalidate()?null:rn},Mo=v.forwardRef(function(it,Bt){var rn,ir=it.prefixCls,tr=ir===void 0?"rc-input-number":ir,Jn=it.className,nn=it.style,er=it.min,Fr=it.max,jr=it.step,bo=jr===void 0?1:jr,zt=it.defaultValue,en=it.value,Cn=it.disabled,rr=it.readOnly,Pr=it.upHandler,Er=it.downHandler,ui=it.keyboard,Gr=it.changeOnWheel,zr=Gr===void 0?!1:Gr,Ei=it.controls,Zi=Ei===void 0?!0:Ei,Kr=it.classNames,Xr=it.stringMode,Qo=it.parser,pr=it.formatter,qo=it.precision,Br=it.decimalSeparator,sr=it.onChange,ii=it.onInput,qi=it.onPressEnter,Ln=it.onStep,zn=it.changeOnBlur,Wi=zn===void 0?!0:zn,Yi=(0,ct.Z)(it,Xi),so="".concat(tr,"-input"),ko=v.useRef(null),_i=v.useState(!1),hs=(0,Ce.Z)(_i,2),Ts=hs[0],Qr=hs[1],Ai=v.useRef(!1),Ri=v.useRef(!1),To=v.useRef(!1),yo=v.useState(function(){return je(en!=null?en:zt)}),ao=(0,Ce.Z)(yo,2),Bs=ao[0],fa=ao[1];function ba(Fl){en===void 0&&fa(Fl)}var Rs=v.useCallback(function(Fl,va){if(!va)return qo>=0?qo:Math.max(yt(Fl),yt(bo))},[qo,bo]),Ds=v.useCallback(function(Fl){var va=String(Fl);if(Qo)return Qo(va);var Ua=va;return Br&&(Ua=Ua.replace(Br,".")),Ua.replace(/[^\w.-]+/g,"")},[Qo,Br]),el=v.useRef(""),tl=v.useCallback(function(Fl,va){if(pr)return pr(Fl,{userTyping:va,input:String(el.current)});var Ua=typeof Fl=="number"?Et(Fl):Fl;if(!va){var Yl=Rs(Ua,va);if(ht(Ua)&&(Br||Yl>=0)){var Cc=Br||".";Ua=Ue(Ua,Cc,Yl)}}return Ua},[pr,Rs,Br]),sn=v.useState(function(){var Fl=zt!=null?zt:en;return Bs.isInvalidate()&&["string","number"].includes((0,Be.Z)(Fl))?Number.isNaN(Fl)?"":Fl:tl(Bs.toString(),!1)}),dt=(0,Ce.Z)(sn,2),Mt=dt[0],Zt=dt[1];el.current=Mt;function Kt(Fl,va){Zt(tl(Fl.isInvalidate()?Fl.toString(!1):Fl.toString(!va),va))}var Nn=v.useMemo(function(){return Go(Fr)},[Fr,qo]),Ur=v.useMemo(function(){return Go(er)},[er,qo]),Ui=v.useMemo(function(){return!Nn||!Bs||Bs.isInvalidate()?!1:Nn.lessEquals(Bs)},[Nn,Bs]),Ao=v.useMemo(function(){return!Ur||!Bs||Bs.isInvalidate()?!1:Bs.lessEquals(Ur)},[Ur,Bs]),rs=Nt(ko.current,Ts),ps=(0,Ce.Z)(rs,2),Po=ps[0],$a=ps[1],nl=function(va){return Nn&&!va.lessEquals(Nn)?Nn:Ur&&!Ur.lessEquals(va)?Ur:null},ka=function(va){return!nl(va)},Xs=function(va,Ua){var Yl=va,Cc=ka(Yl)||Yl.isEmpty();if(!Yl.isEmpty()&&!Ua&&(Yl=nl(Yl)||Yl,Cc=!0),!rr&&!Cn&&Cc){var ch=Yl.toString(),mh=Rs(ch,Ua);return mh>=0&&(Yl=je(Ue(ch,".",mh)),ka(Yl)||(Yl=je(Ue(ch,".",mh,!0)))),Yl.equals(Bs)||(ba(Yl),sr==null||sr(Yl.isEmpty()?null:hi(Xr,Yl)),en===void 0&&Kt(Yl,Ua)),Yl}return Bs},zs=fi(),xa=function Fl(va){if(Po(),el.current=va,Zt(va),!Ri.current){var Ua=Ds(va),Yl=je(Ua);Yl.isNaN()||Xs(Yl,!0)}ii==null||ii(va),zs(function(){var Cc=va;Qo||(Cc=va.replace(/。/g,".")),Cc!==va&&Fl(Cc)})},Ea=function(){Ri.current=!0},_a=function(){Ri.current=!1,xa(ko.current.value)},Ba=function(va){xa(va.target.value)},Al=function(va){var Ua;if(!(va&&Ui||!va&&Ao)){Ai.current=!1;var Yl=je(To.current?Lr(bo):bo);va||(Yl=Yl.negate());var Cc=(Bs||je(0)).add(Yl.toString()),ch=Xs(Cc,!1);Ln==null||Ln(hi(Xr,ch),{offset:To.current?Lr(bo):bo,type:va?"up":"down"}),(Ua=ko.current)===null||Ua===void 0||Ua.focus()}},ks=function(va){var Ua=je(Ds(Mt)),Yl=Ua;Ua.isNaN()?Yl=Xs(Bs,va):Yl=Xs(Ua,va),en!==void 0?Kt(Bs,!1):Yl.isNaN()||Kt(Yl,!1)},Za=function(){Ai.current=!0},lu=function(va){var Ua=va.key,Yl=va.shiftKey;Ai.current=!0,To.current=Yl,Ua==="Enter"&&(Ri.current||(Ai.current=!1),ks(!1),qi==null||qi(va)),ui!==!1&&!Ri.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ua)&&(Al(Ua==="Up"||Ua==="ArrowUp"),va.preventDefault())},mu=function(){Ai.current=!1,To.current=!1};v.useEffect(function(){if(zr&&Ts){var Fl=function(Yl){Al(Yl.deltaY<0),Yl.preventDefault()},va=ko.current;if(va)return va.addEventListener("wheel",Fl,{passive:!1}),function(){return va.removeEventListener("wheel",Fl)}}});var nu=function(){Wi&&ks(!1),Qr(!1),Ai.current=!1};return(0,Ct.o)(function(){Bs.isInvalidate()||Kt(Bs,!1)},[qo,pr]),(0,Ct.o)(function(){var Fl=je(en);fa(Fl);var va=je(Ds(Mt));(!Fl.equals(va)||!Ai.current||pr)&&Kt(Fl,Ai.current)},[en]),(0,Ct.o)(function(){pr&&$a()},[Mt]),v.createElement("div",{className:se()(tr,Jn,(rn={},(0,Ie.Z)(rn,"".concat(tr,"-focused"),Ts),(0,Ie.Z)(rn,"".concat(tr,"-disabled"),Cn),(0,Ie.Z)(rn,"".concat(tr,"-readonly"),rr),(0,Ie.Z)(rn,"".concat(tr,"-not-a-number"),Bs.isNaN()),(0,Ie.Z)(rn,"".concat(tr,"-out-of-range"),!Bs.isInvalidate()&&!ka(Bs)),rn)),style:nn,onFocus:function(){Qr(!0)},onBlur:nu,onKeyDown:lu,onKeyUp:mu,onCompositionStart:Ea,onCompositionEnd:_a,onBeforeInput:Za},Zi&&v.createElement(on,{prefixCls:tr,upNode:Pr,downNode:Er,upDisabled:Ui,downDisabled:Ao,onStep:Al}),v.createElement("div",{className:"".concat(so,"-wrap")},v.createElement("input",(0,P.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":er,"aria-valuemax":Fr,"aria-valuenow":Bs.isInvalidate()?null:Bs.toString(),step:bo},Yi,{ref:(0,Xe.sQ)(ko,Bt),className:so,value:Mt,onChange:Ba,disabled:Cn,readOnly:rr}))))}),pe=v.forwardRef(function(it,Bt){var rn=it.disabled,ir=it.style,tr=it.prefixCls,Jn=it.value,nn=it.prefix,er=it.suffix,Fr=it.addonBefore,jr=it.addonAfter,bo=it.className,zt=it.classNames,en=(0,ct.Z)(it,Qi),Cn=v.useRef(null),rr=function(Er){Cn.current&&(0,Yr.nH)(Cn.current,Er)};return v.createElement(ft.Q,{className:bo,triggerFocus:rr,prefixCls:tr,value:Jn,disabled:rn,style:ir,prefix:nn,suffix:er,addonAfter:jr,addonBefore:Fr,classNames:zt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},v.createElement(Mo,(0,P.Z)({prefixCls:tr,disabled:rn,ref:(0,Xe.sQ)(Cn,Bt),className:zt==null?void 0:zt.input},en)))});pe.displayName="InputNumber";var Ii=pe,Vi=Ii,ro=x(24902),ai=x(58798),Ms=x(64495),Ar=x(57801),Rt=x(26504),jn=x(20804),wr=x(51623),oi=x(90426),Ti=x(55449),Bi=x(78600),no=x(4586),Vr=x(53644),Rn=x(47703),Xt=x(91110),Sn=x(99109),Pn=x(79263),hr=x(90882),mt=x(64993);const tt=it=>{var Bt;const rn=(Bt=it.handleVisible)!==null&&Bt!==void 0?Bt:"auto";return Object.assign(Object.assign({},(0,Vr.T)(it)),{controlWidth:90,handleWidth:it.controlHeightSM-it.lineWidth*2,handleFontSize:it.fontSize/2,handleVisible:rn,handleActiveBg:it.colorFillAlter,handleBg:it.colorBgContainer,filledHandleBg:new mt.C(it.colorFillSecondary).onBackground(it.colorBgContainer).toHexString(),handleHoverColor:it.colorPrimary,handleBorderColor:it.colorBorder,handleOpacity:rn===!0?1:0})},kt=(it,Bt)=>{let{componentCls:rn,borderRadiusSM:ir,borderRadiusLG:tr}=it;const Jn=Bt==="lg"?tr:ir;return{[`&-${Bt}`]:{[`${rn}-handler-wrap`]:{borderStartEndRadius:Jn,borderEndEndRadius:Jn},[`${rn}-handler-up`]:{borderStartEndRadius:Jn},[`${rn}-handler-down`]:{borderEndEndRadius:Jn}}}},vn=it=>{const{componentCls:Bt,lineWidth:rn,lineType:ir,borderRadius:tr,fontSizeLG:Jn,controlHeightLG:nn,controlHeightSM:er,colorError:Fr,paddingInlineSM:jr,paddingBlockSM:bo,paddingBlockLG:zt,paddingInlineLG:en,colorTextDescription:Cn,motionDurationMid:rr,handleHoverColor:Pr,paddingInline:Er,paddingBlock:ui,handleBg:Gr,handleActiveBg:zr,colorTextDisabled:Ei,borderRadiusSM:Zi,borderRadiusLG:Kr,controlWidth:Xr,handleOpacity:Qo,handleBorderColor:pr,filledHandleBg:qo,lineHeightLG:Br,calc:sr}=it;return[{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(it)),(0,no.ik)(it)),{display:"inline-block",width:Xr,margin:0,padding:0,borderRadius:tr}),(0,Rn.qG)(it,{[`${Bt}-handler-wrap`]:{background:Gr,[`${Bt}-handler-down`]:{borderBlockStart:`${(0,Bi.bf)(rn)} ${ir} ${pr}`}}})),(0,Rn.H8)(it,{[`${Bt}-handler-wrap`]:{background:qo,[`${Bt}-handler-down`]:{borderBlockStart:`${(0,Bi.bf)(rn)} ${ir} ${pr}`}},"&:focus-within":{[`${Bt}-handler-wrap`]:{background:Gr}}})),(0,Rn.Mu)(it)),{"&-rtl":{direction:"rtl",[`${Bt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Jn,lineHeight:Br,borderRadius:Kr,[`input${Bt}-input`]:{height:sr(nn).sub(sr(rn).mul(2)).equal(),padding:`${(0,Bi.bf)(zt)} ${(0,Bi.bf)(en)}`}},"&-sm":{padding:0,borderRadius:Zi,[`input${Bt}-input`]:{height:sr(er).sub(sr(rn).mul(2)).equal(),padding:`${(0,Bi.bf)(bo)} ${(0,Bi.bf)(jr)}`}},"&-out-of-range":{[`${Bt}-input-wrap`]:{input:{color:Fr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(it)),(0,no.s7)(it)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Bt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Bt}-group-addon`]:{borderRadius:Kr,fontSize:it.fontSizeLG}},"&-sm":{[`${Bt}-group-addon`]:{borderRadius:Zi}}},(0,Rn.ir)(it)),(0,Rn.S5)(it)),{[`&:not(${Bt}-compact-first-item):not(${Bt}-compact-last-item)${Bt}-compact-item`]:{[`${Bt}, ${Bt}-group-addon`]:{borderRadius:0}},[`&:not(${Bt}-compact-last-item)${Bt}-compact-first-item`]:{[`${Bt}, ${Bt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Bt}-compact-first-item)${Bt}-compact-last-item`]:{[`${Bt}, ${Bt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Bt}-input`]:{cursor:"not-allowed"},[Bt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(it)),{width:"100%",padding:`${(0,Bi.bf)(ui)} ${(0,Bi.bf)(Er)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:tr,outline:0,transition:`all ${rr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,no.nz)(it.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Bt]:Object.assign(Object.assign(Object.assign({[`&:hover ${Bt}-handler-wrap, &-focused ${Bt}-handler-wrap`]:{opacity:1},[`${Bt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:it.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:tr,borderEndEndRadius:tr,borderEndStartRadius:0,opacity:Qo,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${rr} linear ${rr}`,[`${Bt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${Bt}-handler-up-inner, + ${Bt}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:it.handleFontSize}}},[`${Bt}-handler`]:{height:"50%",overflow:"hidden",color:Cn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Bi.bf)(rn)} ${ir} ${pr}`,transition:`all ${rr} linear`,"&:active":{background:zr},"&:hover":{height:"60%",[` + ${Bt}-handler-up-inner, + ${Bt}-handler-down-inner + `]:{color:Pr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Xt.Ro)()),{color:Cn,transition:`all ${rr} linear`,userSelect:"none"})},[`${Bt}-handler-up`]:{borderStartEndRadius:tr},[`${Bt}-handler-down`]:{borderEndEndRadius:tr}},kt(it,"lg")),kt(it,"sm")),{"&-disabled, &-readonly":{[`${Bt}-handler-wrap`]:{display:"none"},[`${Bt}-input`]:{color:"inherit"}},[` + ${Bt}-handler-up-disabled, + ${Bt}-handler-down-disabled `]:{cursor:"not-allowed"},[` - ${ui}-handler-up-disabled:hover &-handler-up-inner, - ${ui}-handler-down-disabled:hover &-handler-down-inner - `]:{color:A0}})}]},Sg=rn=>{const{componentCls:ui,paddingBlock:ya,paddingInline:gd,inputAffixPadding:Su,controlWidth:xu,borderRadiusLG:xa,borderRadiusSM:Td,paddingInlineLG:jg,paddingInlineSM:Wa,paddingBlockLG:tv,paddingBlockSM:Bs}=rn;return{[`${ui}-affix-wrapper`]:Object.assign(Object.assign({[`input${ui}-input`]:{padding:`${(0,$0.bf)(ya)} 0`}},(0,cv.ik)(rn)),{position:"relative",display:"inline-flex",width:xu,padding:0,paddingInlineStart:gd,"&-lg":{borderRadius:xa,paddingInlineStart:jg,[`input${ui}-input`]:{padding:`${(0,$0.bf)(tv)} 0`}},"&-sm":{borderRadius:Td,paddingInlineStart:Wa,[`input${ui}-input`]:{padding:`${(0,$0.bf)(Bs)} 0`}},[`&:not(${ui}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ui}-disabled`]:{background:"transparent"},[`> div${ui}`]:{width:"100%",border:"none",outline:"none",[`&${ui}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ui}-handler-wrap`]:{zIndex:2},[ui]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Su},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:gd,marginInlineStart:Su}}})}};var Jg=(0,lu.I$)("InputNumber",rn=>{const ui=(0,_h.TS)(rn,(0,Gg.e)(rn));return[Ra(ui),Sg(ui),(0,Ia.c)(ui)]},fr,{unitless:{handleOpacity:!0}}),j0=function(rn,ui){var ya={};for(var gd in rn)Object.prototype.hasOwnProperty.call(rn,gd)&&ui.indexOf(gd)<0&&(ya[gd]=rn[gd]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Su=0,gd=Object.getOwnPropertySymbols(rn);Su{const{getPrefixCls:ya,direction:gd}=u.useContext(u0.E_),Su=u.useRef(null);u.useImperativeHandle(ui,()=>Su.current);const{className:xu,rootClassName:xa,size:Td,disabled:jg,prefixCls:Wa,addonBefore:tv,addonAfter:Bs,prefix:Sa,bordered:$a,readOnly:Bd,status:Bg,controls:Og,variant:g0}=rn,qg=j0(rn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),Xg=ya("input-number",Wa),A0=(0,zo.Z)(Xg),[nv,t0,n0]=Jg(Xg,A0),{compactSize:u1,compactItemClassnames:Eg}=(0,L0.ri)(Xg,gd);let a1=u.createElement(S,{className:`${Xg}-handler-up-inner`}),Hg=u.createElement(D.Z,{className:`${Xg}-handler-down-inner`});const Gd=typeof Og=="boolean"?Og:void 0;typeof Og=="object"&&(a1=typeof Og.upIcon=="undefined"?a1:u.createElement("span",{className:`${Xg}-handler-up-inner`},Og.upIcon),Hg=typeof Og.downIcon=="undefined"?Hg:u.createElement("span",{className:`${Xg}-handler-down-inner`},Og.downIcon));const{hasFeedback:h0,status:lv,isFormItemInput:su,feedbackIcon:hu}=u.useContext(Ag.aM),ev=(0,iv.F)(lv,Bg),sv=(0,mu.Z)(Rv=>{var R0;return(R0=Td!=null?Td:u1)!==null&&R0!==void 0?R0:Rv}),yv=u.useContext(Dg.Z),$v=jg!=null?jg:yv,[E0,E1]=(0,c0.Z)(g0,$a),$1=h0&&u.createElement(u.Fragment,null,hu),l0=N()({[`${Xg}-lg`]:sv==="large",[`${Xg}-sm`]:sv==="small",[`${Xg}-rtl`]:gd==="rtl",[`${Xg}-in-form-item`]:su},t0),z0=`${Xg}-group`,W0=u.createElement(G0,Object.assign({ref:Su,disabled:$v,className:N()(n0,A0,xu,xa,Eg),upHandler:a1,downHandler:Hg,prefixCls:Xg,readOnly:Bd,controls:Gd,prefix:Sa,suffix:$1,addonAfter:Bs&&u.createElement(L0.BR,null,u.createElement(Ag.Ux,{override:!0,status:!0},Bs)),addonBefore:tv&&u.createElement(L0.BR,null,u.createElement(Ag.Ux,{override:!0,status:!0},tv)),classNames:{input:l0,variant:N()({[`${Xg}-${E0}`]:E1},(0,iv.Z)(Xg,ev,h0)),affixWrapper:N()({[`${Xg}-affix-wrapper-sm`]:sv==="small",[`${Xg}-affix-wrapper-lg`]:sv==="large",[`${Xg}-affix-wrapper-rtl`]:gd==="rtl"},t0),wrapper:N()({[`${z0}-rtl`]:gd==="rtl"},t0),groupWrapper:N()({[`${Xg}-group-wrapper-sm`]:sv==="small",[`${Xg}-group-wrapper-lg`]:sv==="large",[`${Xg}-group-wrapper-rtl`]:gd==="rtl",[`${Xg}-group-wrapper-${E0}`]:E1},(0,iv.Z)(`${Xg}-group-wrapper`,ev,h0),t0)}},qg));return nv(W0)}),Mo=Wo,qr=rn=>u.createElement(B1.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.createElement(Wo,Object.assign({},rn)));Mo._InternalPanelDoNotUseOrYouWillBeFired=qr;var On=Mo},56522:function(c,g,l){"use strict";l.d(g,{Z:function(){return Yn},n:function(){return jr}});var u=l(77617),D=l(92310),b=l.n(D),x=l(19536),y=l(17763),w=l(24902),a=l(58798),S=l(57801),I=l(20804),N=l(51623),ie=l(55449),ze=l(28028),Ie=l(4586);function ct(Lt){return!!(Lt.prefix||Lt.suffix||Lt.allowClear||Lt.showCount)}var At=l(26504),rt=l(90426),It=l(43418),wn=Lt=>{let _n;return typeof Lt=="object"&&(Lt!=null&&Lt.clearIcon)?_n=Lt:Lt&&(_n={clearIcon:u.createElement(It.Z,null)}),_n},Hs=function(Lt,_n){var Mt={};for(var Bt in Lt)Object.prototype.hasOwnProperty.call(Lt,Bt)&&_n.indexOf(Bt)<0&&(Mt[Bt]=Lt[Bt]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Bt=Object.getOwnPropertySymbols(Lt);Rt{var Mt;const{prefixCls:Bt,bordered:Rt=!0,status:on,size:Hr,disabled:vn,onBlur:Ca,onFocus:ai,suffix:gt,allowClear:Zr,addonAfter:Ht,addonBefore:Zs,className:oi,style:Pa,styles:Aa,rootClassName:Pg,onChange:Ug,classNames:e0,variant:H0}=Lt,X0=Hs(Lt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:d0,direction:jv,input:Lv}=u.useContext(a.E_),Je=d0("input",Bt),k0=(0,u.useRef)(null),G0=(0,At.Z)(Je),[iv,u0,B1]=(0,Ie.ZP)(Je,G0),{compactSize:Dg,compactItemClassnames:zo}=(0,ie.ri)(Je,jv),mu=(0,I.Z)(Jg=>{var j0;return(j0=Hr!=null?Hr:Dg)!==null&&j0!==void 0?j0:Jg}),Ag=u.useContext(S.Z),c0=vn!=null?vn:Ag,{status:L0,hasFeedback:$0,feedbackIcon:cv}=(0,u.useContext)(N.aM),Gg=(0,w.F)(L0,on),uu=ct(Lt)||!!$0,Gs=(0,u.useRef)(uu),Ia=(0,ze.Z)(k0,!0),lu=Jg=>{Ia(),Ca==null||Ca(Jg)},_h=Jg=>{Ia(),ai==null||ai(Jg)},Kr=Jg=>{Ia(),Ug==null||Ug(Jg)},fr=($0||gt)&&u.createElement(u.Fragment,null,gt,$0&&cv),ri=wn(Zr),[Ra,Sg]=(0,rt.Z)(H0,Rt);return iv(u.createElement(x.Z,Object.assign({ref:(0,y.sQ)(_n,k0),prefixCls:Je,autoComplete:Lv==null?void 0:Lv.autoComplete},X0,{disabled:c0,onBlur:lu,onFocus:_h,style:Object.assign(Object.assign({},Lv==null?void 0:Lv.style),Pa),styles:Object.assign(Object.assign({},Lv==null?void 0:Lv.styles),Aa),suffix:fr,allowClear:ri,className:b()(oi,Pg,B1,G0,zo,Lv==null?void 0:Lv.className),onChange:Kr,addonAfter:Ht&&u.createElement(ie.BR,null,u.createElement(N.Ux,{override:!0,status:!0},Ht)),addonBefore:Zs&&u.createElement(ie.BR,null,u.createElement(N.Ux,{override:!0,status:!0},Zs)),classNames:Object.assign(Object.assign(Object.assign({},e0),Lv==null?void 0:Lv.classNames),{input:b()({[`${Je}-sm`]:mu==="small",[`${Je}-lg`]:mu==="large",[`${Je}-rtl`]:jv==="rtl"},e0==null?void 0:e0.input,(Mt=Lv==null?void 0:Lv.classNames)===null||Mt===void 0?void 0:Mt.input,u0),variant:b()({[`${Je}-${Ra}`]:Sg},(0,w.Z)(Je,Gg)),affixWrapper:b()({[`${Je}-affix-wrapper-sm`]:mu==="small",[`${Je}-affix-wrapper-lg`]:mu==="large",[`${Je}-affix-wrapper-rtl`]:jv==="rtl"},u0),wrapper:b()({[`${Je}-group-rtl`]:jv==="rtl"},u0),groupWrapper:b()({[`${Je}-group-wrapper-sm`]:mu==="small",[`${Je}-group-wrapper-lg`]:mu==="large",[`${Je}-group-wrapper-rtl`]:jv==="rtl",[`${Je}-group-wrapper-${Ra}`]:Sg},(0,w.Z)(`${Je}-group-wrapper`,Gg,$0),u0)})})))})},97446:function(c,g,l){"use strict";l.d(g,{Z:function(){return d0}});var u=l(77617),D=l(43418),b=l(92310),x=l.n(b),y=l(79384),w=l(16514),a=l(54131),S=l(49397),I=l(35372),N=l(56348),ie=l(19536),ze=l(95730),Ie=l(7807),ct=l(89308),At=l(13255),rt=l(28647),It=l(64693),Ot=l(74570),wn=` + ${Bt}-handler-up-disabled:hover &-handler-up-inner, + ${Bt}-handler-down-disabled:hover &-handler-down-inner + `]:{color:Ei}})}]},vr=it=>{const{componentCls:Bt,paddingBlock:rn,paddingInline:ir,inputAffixPadding:tr,controlWidth:Jn,borderRadiusLG:nn,borderRadiusSM:er,paddingInlineLG:Fr,paddingInlineSM:jr,paddingBlockLG:bo,paddingBlockSM:zt}=it;return{[`${Bt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Bt}-input`]:{padding:`${(0,Bi.bf)(rn)} 0`}},(0,no.ik)(it)),{position:"relative",display:"inline-flex",width:Jn,padding:0,paddingInlineStart:ir,"&-lg":{borderRadius:nn,paddingInlineStart:Fr,[`input${Bt}-input`]:{padding:`${(0,Bi.bf)(bo)} 0`}},"&-sm":{borderRadius:er,paddingInlineStart:jr,[`input${Bt}-input`]:{padding:`${(0,Bi.bf)(zt)} 0`}},[`&:not(${Bt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Bt}-disabled`]:{background:"transparent"},[`> div${Bt}`]:{width:"100%",border:"none",outline:"none",[`&${Bt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Bt}-handler-wrap`]:{zIndex:2},[Bt]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:tr},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:ir,marginInlineStart:tr}}})}};var qr=(0,Pn.I$)("InputNumber",it=>{const Bt=(0,hr.TS)(it,(0,Vr.e)(it));return[vn(Bt),vr(Bt),(0,Sn.c)(Bt)]},tt,{unitless:{handleOpacity:!0}}),Ni=function(it,Bt){var rn={};for(var ir in it)Object.prototype.hasOwnProperty.call(it,ir)&&Bt.indexOf(ir)<0&&(rn[ir]=it[ir]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tr=0,ir=Object.getOwnPropertySymbols(it);tr{const{getPrefixCls:rn,direction:ir}=v.useContext(ai.E_),tr=v.useRef(null);v.useImperativeHandle(Bt,()=>tr.current);const{className:Jn,rootClassName:nn,size:er,disabled:Fr,prefixCls:jr,addonBefore:bo,addonAfter:zt,prefix:en,bordered:Cn,readOnly:rr,status:Pr,controls:Er,variant:ui}=it,Gr=Ni(it,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),zr=rn("input-number",jr),Ei=(0,Rt.Z)(zr),[Zi,Kr,Xr]=qr(zr,Ei),{compactSize:Qo,compactItemClassnames:pr}=(0,Ti.ri)(zr,ir);let qo=v.createElement(ie,{className:`${zr}-handler-up-inner`}),Br=v.createElement(z.Z,{className:`${zr}-handler-down-inner`});const sr=typeof Er=="boolean"?Er:void 0;typeof Er=="object"&&(qo=typeof Er.upIcon=="undefined"?qo:v.createElement("span",{className:`${zr}-handler-up-inner`},Er.upIcon),Br=typeof Er.downIcon=="undefined"?Br:v.createElement("span",{className:`${zr}-handler-down-inner`},Er.downIcon));const{hasFeedback:ii,status:qi,isFormItemInput:Ln,feedbackIcon:zn}=v.useContext(wr.aM),Wi=(0,ro.F)(qi,Pr),Yi=(0,jn.Z)(To=>{var yo;return(yo=er!=null?er:Qo)!==null&&yo!==void 0?yo:To}),so=v.useContext(Ar.Z),ko=Fr!=null?Fr:so,[_i,hs]=(0,oi.Z)(ui,Cn),Ts=ii&&v.createElement(v.Fragment,null,zn),Qr=se()({[`${zr}-lg`]:Yi==="large",[`${zr}-sm`]:Yi==="small",[`${zr}-rtl`]:ir==="rtl",[`${zr}-in-form-item`]:Ln},Kr),Ai=`${zr}-group`,Ri=v.createElement(Vi,Object.assign({ref:tr,disabled:ko,className:se()(Xr,Ei,Jn,nn,pr),upHandler:qo,downHandler:Br,prefixCls:zr,readOnly:rr,controls:sr,prefix:en,suffix:Ts,addonAfter:zt&&v.createElement(Ti.BR,null,v.createElement(wr.Ux,{override:!0,status:!0},zt)),addonBefore:bo&&v.createElement(Ti.BR,null,v.createElement(wr.Ux,{override:!0,status:!0},bo)),classNames:{input:Qr,variant:se()({[`${zr}-${_i}`]:hs},(0,ro.Z)(zr,Wi,ii)),affixWrapper:se()({[`${zr}-affix-wrapper-sm`]:Yi==="small",[`${zr}-affix-wrapper-lg`]:Yi==="large",[`${zr}-affix-wrapper-rtl`]:ir==="rtl"},Kr),wrapper:se()({[`${Ai}-rtl`]:ir==="rtl"},Kr),groupWrapper:se()({[`${zr}-group-wrapper-sm`]:Yi==="small",[`${zr}-group-wrapper-lg`]:Yi==="large",[`${zr}-group-wrapper-rtl`]:ir==="rtl",[`${zr}-group-wrapper-${_i}`]:hs},(0,ro.Z)(`${zr}-group-wrapper`,Wi,ii),Kr)}},Gr));return Zi(Ri)}),Un=li,dn=it=>v.createElement(Ms.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},v.createElement(li,Object.assign({},it)));Un._InternalPanelDoNotUseOrYouWillBeFired=dn;var xt=Un},56522:function(St,me,x){"use strict";x.d(me,{Z:function(){return ht},n:function(){return yt}});var v=x(77617),z=x(92310),P=x.n(z),A=x(19536),W=x(17763),X=x(24902),Y=x(58798),ie=x(57801),ae=x(20804),se=x(51623),Ie=x(55449),Be=x(28028),Ce=x(4586);function ct(Pe){return!!(Pe.prefix||Pe.suffix||Pe.allowClear||Pe.showCount)}var nt=x(26504),Ge=x(90426),at=x(43418),rt=Pe=>{let et;return typeof Pe=="object"&&(Pe!=null&&Pe.clearIcon)?et=Pe:Pe&&(et={clearIcon:v.createElement(at.Z,null)}),et},Gt=function(Pe,et){var Oe={};for(var Ue in Pe)Object.prototype.hasOwnProperty.call(Pe,Ue)&&et.indexOf(Ue)<0&&(Oe[Ue]=Pe[Ue]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ue=Object.getOwnPropertySymbols(Pe);je{var Oe;const{prefixCls:Ue,bordered:je=!0,status:ft,size:Ct,disabled:Xe,onBlur:hn,onFocus:Nt,suffix:Te,allowClear:vt,addonAfter:ze,addonBefore:Vt,className:Tt,style:un,styles:on,rootClassName:Lr,onChange:Yr,classNames:fi,variant:Xi}=Pe,Qi=Gt(Pe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:hi,direction:Go,input:Mo}=v.useContext(Y.E_),pe=hi("input",Ue),Ii=(0,v.useRef)(null),Vi=(0,nt.Z)(pe),[ro,ai,Ms]=(0,Ce.ZP)(pe,Vi),{compactSize:Ar,compactItemClassnames:Rt}=(0,Ie.ri)(pe,Go),jn=(0,ae.Z)(qr=>{var Ni;return(Ni=Ct!=null?Ct:Ar)!==null&&Ni!==void 0?Ni:qr}),wr=v.useContext(ie.Z),oi=Xe!=null?Xe:wr,{status:Ti,hasFeedback:Bi,feedbackIcon:no}=(0,v.useContext)(se.aM),Vr=(0,X.F)(Ti,ft),Rn=ct(Pe)||!!Bi,Xt=(0,v.useRef)(Rn),Sn=(0,Be.Z)(Ii,!0),Pn=qr=>{Sn(),hn==null||hn(qr)},hr=qr=>{Sn(),Nt==null||Nt(qr)},mt=qr=>{Sn(),Yr==null||Yr(qr)},tt=(Bi||Te)&&v.createElement(v.Fragment,null,Te,Bi&&no),kt=rt(vt),[vn,vr]=(0,Ge.Z)(Xi,je);return ro(v.createElement(A.Z,Object.assign({ref:(0,W.sQ)(et,Ii),prefixCls:pe,autoComplete:Mo==null?void 0:Mo.autoComplete},Qi,{disabled:oi,onBlur:Pn,onFocus:hr,style:Object.assign(Object.assign({},Mo==null?void 0:Mo.style),un),styles:Object.assign(Object.assign({},Mo==null?void 0:Mo.styles),on),suffix:tt,allowClear:kt,className:P()(Tt,Lr,Ms,Vi,Rt,Mo==null?void 0:Mo.className),onChange:mt,addonAfter:ze&&v.createElement(Ie.BR,null,v.createElement(se.Ux,{override:!0,status:!0},ze)),addonBefore:Vt&&v.createElement(Ie.BR,null,v.createElement(se.Ux,{override:!0,status:!0},Vt)),classNames:Object.assign(Object.assign(Object.assign({},fi),Mo==null?void 0:Mo.classNames),{input:P()({[`${pe}-sm`]:jn==="small",[`${pe}-lg`]:jn==="large",[`${pe}-rtl`]:Go==="rtl"},fi==null?void 0:fi.input,(Oe=Mo==null?void 0:Mo.classNames)===null||Oe===void 0?void 0:Oe.input,ai),variant:P()({[`${pe}-${vn}`]:vr},(0,X.Z)(pe,Vr)),affixWrapper:P()({[`${pe}-affix-wrapper-sm`]:jn==="small",[`${pe}-affix-wrapper-lg`]:jn==="large",[`${pe}-affix-wrapper-rtl`]:Go==="rtl"},ai),wrapper:P()({[`${pe}-group-rtl`]:Go==="rtl"},ai),groupWrapper:P()({[`${pe}-group-wrapper-sm`]:jn==="small",[`${pe}-group-wrapper-lg`]:jn==="large",[`${pe}-group-wrapper-rtl`]:Go==="rtl",[`${pe}-group-wrapper-${vn}`]:vr},(0,X.Z)(`${pe}-group-wrapper`,Vr,Bi),ai)})})))})},97446:function(St,me,x){"use strict";x.d(me,{Z:function(){return hi}});var v=x(77617),z=x(43418),P=x(92310),A=x.n(P),W=x(79384),X=x(16514),Y=x(54131),ie=x(49397),ae=x(35372),se=x(56348),Ie=x(19536),Be=x(95730),Ce=x(7807),ct=x(89308),nt=x(13255),Ge=x(28647),at=x(64693),Ye=x(74570),rt=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -7080,33 +7075,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter top:0 !important; right:0 !important; pointer-events: none !important; -`,Hs=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],jr={},Jr;function Yn(jv){var Lv=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=jv.getAttribute("id")||jv.getAttribute("data-reactid")||jv.getAttribute("name");if(Lv&&jr[Je])return jr[Je];var k0=window.getComputedStyle(jv),G0=k0.getPropertyValue("box-sizing")||k0.getPropertyValue("-moz-box-sizing")||k0.getPropertyValue("-webkit-box-sizing"),iv=parseFloat(k0.getPropertyValue("padding-bottom"))+parseFloat(k0.getPropertyValue("padding-top")),u0=parseFloat(k0.getPropertyValue("border-bottom-width"))+parseFloat(k0.getPropertyValue("border-top-width")),B1=Hs.map(function(zo){return"".concat(zo,":").concat(k0.getPropertyValue(zo))}).join(";"),Dg={sizingStyle:B1,paddingSize:iv,borderSize:u0,boxSizing:G0};return Lv&&Je&&(jr[Je]=Dg),Dg}function Lt(jv){var Lv=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k0=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Jr||(Jr=document.createElement("textarea"),Jr.setAttribute("tab-index","-1"),Jr.setAttribute("aria-hidden","true"),document.body.appendChild(Jr)),jv.getAttribute("wrap")?Jr.setAttribute("wrap",jv.getAttribute("wrap")):Jr.removeAttribute("wrap");var G0=Yn(jv,Lv),iv=G0.paddingSize,u0=G0.borderSize,B1=G0.boxSizing,Dg=G0.sizingStyle;Jr.setAttribute("style","".concat(Dg,";").concat(wn)),Jr.value=jv.value||jv.placeholder||"";var zo=void 0,mu=void 0,Ag,c0=Jr.scrollHeight;if(B1==="border-box"?c0+=u0:B1==="content-box"&&(c0-=iv),Je!==null||k0!==null){Jr.value=" ";var L0=Jr.scrollHeight-iv;Je!==null&&(zo=L0*Je,B1==="border-box"&&(zo=zo+iv+u0),c0=Math.max(zo,c0)),k0!==null&&(mu=L0*k0,B1==="border-box"&&(mu=mu+iv+u0),Ag=c0>mu?"":"hidden",c0=Math.min(mu,c0))}var $0={height:c0,overflowY:Ag,resize:"none"};return zo&&($0.minHeight=zo),mu&&($0.maxHeight=mu),$0}var _n=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Mt=0,Bt=1,Rt=2,on=u.forwardRef(function(jv,Lv){var Je=jv,k0=Je.prefixCls,G0=Je.onPressEnter,iv=Je.defaultValue,u0=Je.value,B1=Je.autoSize,Dg=Je.onResize,zo=Je.className,mu=Je.style,Ag=Je.disabled,c0=Je.onChange,L0=Je.onInternalAutoSize,$0=(0,N.Z)(Je,_n),cv=(0,ct.Z)(iv,{value:u0,postState:function(Wa){return Wa!=null?Wa:""}}),Gg=(0,I.Z)(cv,2),uu=Gg[0],Gs=Gg[1],Ia=function(Wa){Gs(Wa.target.value),c0==null||c0(Wa)},lu=u.useRef();u.useImperativeHandle(Lv,function(){return{textArea:lu.current}});var _h=u.useMemo(function(){return B1&&(0,At.Z)(B1)==="object"?[B1.minRows,B1.maxRows]:[]},[B1]),Kr=(0,I.Z)(_h,2),fr=Kr[0],ri=Kr[1],Ra=!!B1,Sg=function(){try{if(document.activeElement===lu.current){var Wa=lu.current,tv=Wa.selectionStart,Bs=Wa.selectionEnd,Sa=Wa.scrollTop;lu.current.setSelectionRange(tv,Bs),lu.current.scrollTop=Sa}}catch($a){}},Jg=u.useState(Rt),j0=(0,I.Z)(Jg,2),Wo=j0[0],Mo=j0[1],qr=u.useState(),On=(0,I.Z)(qr,2),rn=On[0],ui=On[1],ya=function(){Mo(Mt)};(0,It.Z)(function(){Ra&&ya()},[u0,fr,ri,Ra]),(0,It.Z)(function(){if(Wo===Mt)Mo(Bt);else if(Wo===Bt){var jg=Lt(lu.current,!1,fr,ri);Mo(Rt),ui(jg)}else Sg()},[Wo]);var gd=u.useRef(),Su=function(){Ot.Z.cancel(gd.current)},xu=function(Wa){Wo===Rt&&(Dg==null||Dg(Wa),B1&&(Su(),gd.current=(0,Ot.Z)(function(){ya()})))};u.useEffect(function(){return Su},[]);var xa=Ra?rn:null,Td=(0,a.Z)((0,a.Z)({},mu),xa);return(Wo===Mt||Wo===Bt)&&(Td.overflowY="hidden",Td.overflowX="hidden"),u.createElement(rt.Z,{onResize:xu,disabled:!(B1||Dg)},u.createElement("textarea",(0,y.Z)({},$0,{ref:lu,style:Td,className:x()(k0,zo,(0,w.Z)({},"".concat(k0,"-disabled"),Ag)),disabled:Ag,value:uu,onChange:Ia})))}),Hr=on,vn=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Ca=u.forwardRef(function(jv,Lv){var Je,k0,G0=jv.defaultValue,iv=jv.value,u0=jv.onFocus,B1=jv.onBlur,Dg=jv.onChange,zo=jv.allowClear,mu=jv.maxLength,Ag=jv.onCompositionStart,c0=jv.onCompositionEnd,L0=jv.suffix,$0=jv.prefixCls,cv=$0===void 0?"rc-textarea":$0,Gg=jv.showCount,uu=jv.count,Gs=jv.className,Ia=jv.style,lu=jv.disabled,_h=jv.hidden,Kr=jv.classNames,fr=jv.styles,ri=jv.onResize,Ra=(0,N.Z)(jv,vn),Sg=(0,ct.Z)(G0,{value:iv,defaultValue:G0}),Jg=(0,I.Z)(Sg,2),j0=Jg[0],Wo=Jg[1],Mo=j0==null?"":String(j0),qr=u.useState(!1),On=(0,I.Z)(qr,2),rn=On[0],ui=On[1],ya=u.useRef(!1),gd=u.useState(null),Su=(0,I.Z)(gd,2),xu=Su[0],xa=Su[1],Td=(0,u.useRef)(null),jg=function(){var hu;return(hu=Td.current)===null||hu===void 0?void 0:hu.textArea},Wa=function(){jg().focus()};(0,u.useImperativeHandle)(Lv,function(){return{resizableTextArea:Td.current,focus:Wa,blur:function(){jg().blur()}}}),(0,u.useEffect)(function(){ui(function(su){return!lu&&su})},[lu]);var tv=u.useState(null),Bs=(0,I.Z)(tv,2),Sa=Bs[0],$a=Bs[1];u.useEffect(function(){if(Sa){var su;(su=jg()).setSelectionRange.apply(su,(0,S.Z)(Sa))}},[Sa]);var Bd=(0,ze.Z)(uu,Gg),Bg=(Je=Bd.max)!==null&&Je!==void 0?Je:mu,Og=Number(Bg)>0,g0=Bd.strategy(Mo),qg=!!Bg&&g0>Bg,Xg=function(hu,ev){var sv=ev;!ya.current&&Bd.exceedFormatter&&Bd.max&&Bd.strategy(ev)>Bd.max&&(sv=Bd.exceedFormatter(ev,{max:Bd.max}),ev!==sv&&$a([jg().selectionStart||0,jg().selectionEnd||0])),Wo(sv),(0,Ie.rJ)(hu.currentTarget,hu,Dg,sv)},A0=function(hu){ya.current=!0,Ag==null||Ag(hu)},nv=function(hu){ya.current=!1,Xg(hu,hu.currentTarget.value),c0==null||c0(hu)},t0=function(hu){Xg(hu,hu.target.value)},n0=function(hu){var ev=Ra.onPressEnter,sv=Ra.onKeyDown;hu.key==="Enter"&&ev&&ev(hu),sv==null||sv(hu)},u1=function(hu){ui(!0),u0==null||u0(hu)},Eg=function(hu){ui(!1),B1==null||B1(hu)},a1=function(hu){Wo(""),Wa(),(0,Ie.rJ)(jg(),hu,Dg)},Hg=L0,Gd;Bd.show&&(Bd.showFormatter?Gd=Bd.showFormatter({value:Mo,count:g0,maxLength:Bg}):Gd="".concat(g0).concat(Og?" / ".concat(Bg):""),Hg=u.createElement(u.Fragment,null,Hg,u.createElement("span",{className:x()("".concat(cv,"-data-count"),Kr==null?void 0:Kr.count),style:fr==null?void 0:fr.count},Gd)));var h0=function(hu){var ev;ri==null||ri(hu),(ev=jg())!==null&&ev!==void 0&&ev.style.height&&xa(!0)},lv=!Ra.autoSize&&!Gg&&!zo;return u.createElement(ie.Q,{value:Mo,allowClear:zo,handleReset:a1,suffix:Hg,prefixCls:cv,classNames:(0,a.Z)((0,a.Z)({},Kr),{},{affixWrapper:x()(Kr==null?void 0:Kr.affixWrapper,(k0={},(0,w.Z)(k0,"".concat(cv,"-show-count"),Gg),(0,w.Z)(k0,"".concat(cv,"-textarea-allow-clear"),zo),k0))}),disabled:lu,focused:rn,className:x()(Gs,qg&&"".concat(cv,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},Ia),xu&&!lv?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gd=="string"?Gd:void 0}},hidden:_h},u.createElement(Hr,(0,y.Z)({},Ra,{maxLength:mu,onKeyDown:n0,onChange:t0,onFocus:u1,onBlur:Eg,onCompositionStart:A0,onCompositionEnd:nv,className:x()(Kr==null?void 0:Kr.textarea),style:(0,a.Z)((0,a.Z)({},fr==null?void 0:fr.textarea),{},{resize:Ia==null?void 0:Ia.resize}),disabled:lu,prefixCls:cv,onResize:h0,ref:Td})))}),ai=Ca,gt=ai,Zr=l(24902),Ht=l(58798),Zs=l(57801),oi=l(20804),Pa=l(51623),Aa=l(56522),Pg=l(4586),Ug=l(26504),e0=l(90426),H0=function(jv,Lv){var Je={};for(var k0 in jv)Object.prototype.hasOwnProperty.call(jv,k0)&&Lv.indexOf(k0)<0&&(Je[k0]=jv[k0]);if(jv!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G0=0,k0=Object.getOwnPropertySymbols(jv);G0{var Je;const{prefixCls:k0,bordered:G0=!0,size:iv,disabled:u0,status:B1,allowClear:Dg,classNames:zo,rootClassName:mu,className:Ag,variant:c0}=jv,L0=H0(jv,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:$0,direction:cv}=u.useContext(Ht.E_),Gg=(0,oi.Z)(iv),uu=u.useContext(Zs.Z),Gs=u0!=null?u0:uu,{status:Ia,hasFeedback:lu,feedbackIcon:_h}=u.useContext(Pa.aM),Kr=(0,Zr.F)(Ia,B1),fr=u.useRef(null);u.useImperativeHandle(Lv,()=>{var On;return{resizableTextArea:(On=fr.current)===null||On===void 0?void 0:On.resizableTextArea,focus:rn=>{var ui,ya;(0,Aa.n)((ya=(ui=fr.current)===null||ui===void 0?void 0:ui.resizableTextArea)===null||ya===void 0?void 0:ya.textArea,rn)},blur:()=>{var rn;return(rn=fr.current)===null||rn===void 0?void 0:rn.blur()}}});const ri=$0("input",k0);let Ra;typeof Dg=="object"&&(Dg!=null&&Dg.clearIcon)?Ra=Dg:Dg&&(Ra={clearIcon:u.createElement(D.Z,null)});const Sg=(0,Ug.Z)(ri),[Jg,j0,Wo]=(0,Pg.ZP)(ri,Sg),[Mo,qr]=(0,e0.Z)(c0,G0);return Jg(u.createElement(gt,Object.assign({},L0,{disabled:Gs,allowClear:Ra,className:x()(Wo,Sg,Ag,mu),classNames:Object.assign(Object.assign({},zo),{textarea:x()({[`${ri}-sm`]:Gg==="small",[`${ri}-lg`]:Gg==="large"},j0,zo==null?void 0:zo.textarea),variant:x()({[`${ri}-${Mo}`]:qr},(0,Zr.Z)(ri,Kr)),affixWrapper:x()(`${ri}-textarea-affix-wrapper`,{[`${ri}-affix-wrapper-rtl`]:cv==="rtl",[`${ri}-affix-wrapper-sm`]:Gg==="small",[`${ri}-affix-wrapper-lg`]:Gg==="large",[`${ri}-textarea-show-count`]:jv.showCount||((Je=jv.count)===null||Je===void 0?void 0:Je.show)},j0)}),prefixCls:ri,suffix:lu&&u.createElement("span",{className:`${ri}-textarea-suffix`},_h),ref:fr})))})},28028:function(c,g,l){"use strict";l.d(g,{Z:function(){return D}});var u=l(77617);function D(b,x){const y=(0,u.useRef)([]),w=()=>{y.current.push(setTimeout(()=>{var a,S,I,N;!((a=b.current)===null||a===void 0)&&a.input&&((S=b.current)===null||S===void 0?void 0:S.input.getAttribute("type"))==="password"&&(!((I=b.current)===null||I===void 0)&&I.input.hasAttribute("value"))&&((N=b.current)===null||N===void 0||N.input.removeAttribute("value"))}))};return(0,u.useEffect)(()=>(x&&w(),()=>y.current.forEach(a=>{a&&clearTimeout(a)})),[]),w}},46527:function(c,g,l){"use strict";l.d(g,{Z:function(){return Zr}});var u=l(77617),D=l(92310),b=l.n(D),x=l(58798),y=l(51623),w=l(4586),S=Ht=>{const{getPrefixCls:Zs,direction:oi}=(0,u.useContext)(x.E_),{prefixCls:Pa,className:Aa}=Ht,Pg=Zs("input-group",Pa),Ug=Zs("input"),[e0,H0]=(0,w.ZP)(Ug),X0=b()(Pg,{[`${Pg}-lg`]:Ht.size==="large",[`${Pg}-sm`]:Ht.size==="small",[`${Pg}-compact`]:Ht.compact,[`${Pg}-rtl`]:oi==="rtl"},H0,Aa),d0=(0,u.useContext)(y.aM),jv=(0,u.useMemo)(()=>Object.assign(Object.assign({},d0),{isFormItemInput:!1}),[d0]);return e0(u.createElement("span",{className:X0,style:Ht.style,onMouseEnter:Ht.onMouseEnter,onMouseLeave:Ht.onMouseLeave,onFocus:Ht.onFocus,onBlur:Ht.onBlur},u.createElement(y.aM.Provider,{value:jv},Ht.children)))},I=l(56522),N=l(79384),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ze=ie,Ie=l(44847),ct=function(Zs,oi){return u.createElement(Ie.Z,(0,N.Z)({},Zs,{ref:oi,icon:ze}))},At=u.forwardRef(ct),rt=l(29338),It=l(41123),Ot=l(17763),wn=l(28028),Hs=function(Ht,Zs){var oi={};for(var Pa in Ht)Object.prototype.hasOwnProperty.call(Ht,Pa)&&Zs.indexOf(Pa)<0&&(oi[Pa]=Ht[Pa]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Aa=0,Pa=Object.getOwnPropertySymbols(Ht);AaHt?u.createElement(rt.Z,null):u.createElement(At,null),Jr={click:"onClick",hover:"onMouseOver"};var Lt=u.forwardRef((Ht,Zs)=>{const{visibilityToggle:oi=!0}=Ht,Pa=typeof oi=="object"&&oi.visible!==void 0,[Aa,Pg]=(0,u.useState)(()=>Pa?oi.visible:!1),Ug=(0,u.useRef)(null);u.useEffect(()=>{Pa&&Pg(oi.visible)},[Pa,oi]);const e0=(0,wn.Z)(Ug),H0=()=>{const{disabled:mu}=Ht;mu||(Aa&&e0(),Pg(Ag=>{var c0;const L0=!Ag;return typeof oi=="object"&&((c0=oi.onVisibleChange)===null||c0===void 0||c0.call(oi,L0)),L0}))},X0=mu=>{const{action:Ag="click",iconRender:c0=jr}=Ht,L0=Jr[Ag]||"",$0=c0(Aa),cv={[L0]:H0,className:`${mu}-icon`,key:"passwordIcon",onMouseDown:Gg=>{Gg.preventDefault()},onMouseUp:Gg=>{Gg.preventDefault()}};return u.cloneElement(u.isValidElement($0)?$0:u.createElement("span",null,$0),cv)},{className:d0,prefixCls:jv,inputPrefixCls:Lv,size:Je}=Ht,k0=Hs(Ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:G0}=u.useContext(x.E_),iv=G0("input",Lv),u0=G0("input-password",jv),B1=oi&&X0(u0),Dg=b()(u0,d0,{[`${u0}-${Je}`]:!!Je}),zo=Object.assign(Object.assign({},(0,It.Z)(k0,["suffix","iconRender","visibilityToggle"])),{type:Aa?"text":"password",className:Dg,prefixCls:iv,suffix:B1});return Je&&(zo.size=Je),u.createElement(I.Z,Object.assign({ref:(0,Ot.sQ)(Zs,Ug)},zo))}),_n=l(38528),Mt=l(20612),Bt=l(99622),Rt=l(20804),on=l(55449),Hr=function(Ht,Zs){var oi={};for(var Pa in Ht)Object.prototype.hasOwnProperty.call(Ht,Pa)&&Zs.indexOf(Pa)<0&&(oi[Pa]=Ht[Pa]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Aa=0,Pa=Object.getOwnPropertySymbols(Ht);Aa{const{prefixCls:oi,inputPrefixCls:Pa,className:Aa,size:Pg,suffix:Ug,enterButton:e0=!1,addonAfter:H0,loading:X0,disabled:d0,onSearch:jv,onChange:Lv,onCompositionStart:Je,onCompositionEnd:k0}=Ht,G0=Hr(Ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:iv,direction:u0}=u.useContext(x.E_),B1=u.useRef(!1),Dg=iv("input-search",oi),zo=iv("input",Pa),{compactSize:mu}=(0,on.ri)(Dg,u0),Ag=(0,Rt.Z)(Ra=>{var Sg;return(Sg=Pg!=null?Pg:mu)!==null&&Sg!==void 0?Sg:Ra}),c0=u.useRef(null),L0=Ra=>{Ra&&Ra.target&&Ra.type==="click"&&jv&&jv(Ra.target.value,Ra,{source:"clear"}),Lv&&Lv(Ra)},$0=Ra=>{var Sg;document.activeElement===((Sg=c0.current)===null||Sg===void 0?void 0:Sg.input)&&Ra.preventDefault()},cv=Ra=>{var Sg,Jg;jv&&jv((Jg=(Sg=c0.current)===null||Sg===void 0?void 0:Sg.input)===null||Jg===void 0?void 0:Jg.value,Ra,{source:"input"})},Gg=Ra=>{B1.current||X0||cv(Ra)},uu=typeof e0=="boolean"?u.createElement(_n.Z,null):null,Gs=`${Dg}-button`;let Ia;const lu=e0||{},_h=lu.type&&lu.type.__ANT_BUTTON===!0;_h||lu.type==="button"?Ia=(0,Mt.Tm)(lu,Object.assign({onMouseDown:$0,onClick:Ra=>{var Sg,Jg;(Jg=(Sg=lu==null?void 0:lu.props)===null||Sg===void 0?void 0:Sg.onClick)===null||Jg===void 0||Jg.call(Sg,Ra),cv(Ra)},key:"enterButton"},_h?{className:Gs,size:Ag}:{})):Ia=u.createElement(Bt.ZP,{className:Gs,type:e0?"primary":void 0,size:Ag,disabled:d0,key:"enterButton",onMouseDown:$0,onClick:cv,loading:X0,icon:uu},e0),H0&&(Ia=[Ia,(0,Mt.Tm)(H0,{key:"addonAfter"})]);const Kr=b()(Dg,{[`${Dg}-rtl`]:u0==="rtl",[`${Dg}-${Ag}`]:!!Ag,[`${Dg}-with-button`]:!!e0},Aa),fr=Ra=>{B1.current=!0,Je==null||Je(Ra)},ri=Ra=>{B1.current=!1,k0==null||k0(Ra)};return u.createElement(I.Z,Object.assign({ref:(0,Ot.sQ)(c0,Zs),onPressEnter:Gg},G0,{size:Ag,onCompositionStart:fr,onCompositionEnd:ri,prefixCls:zo,addonAfter:Ia,suffix:Ug,onChange:L0,className:Kr,disabled:d0}))}),ai=l(97446);const gt=I.Z;gt.Group=S,gt.Search=Ca,gt.TextArea=ai.Z,gt.Password=Lt;var Zr=gt},4586:function(c,g,l){"use strict";l.d(g,{ik:function(){return ze},nz:function(){return S},s7:function(){return Ie},x0:function(){return ie}});var u=l(78600),D=l(91110),b=l(99109),x=l(79263),y=l(90882),w=l(53644),a=l(47703);const S=jr=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:jr,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),I=jr=>({borderColor:jr.activeBorderColor,boxShadow:jr.activeShadow,outline:0,backgroundColor:jr.activeBg}),N=jr=>{const{paddingBlockLG:Jr,lineHeightLG:Yn,borderRadiusLG:Lt,paddingInlineLG:_n}=jr;return{padding:`${(0,u.bf)(Jr)} ${(0,u.bf)(_n)}`,fontSize:jr.inputFontSizeLG,lineHeight:Yn,borderRadius:Lt}},ie=jr=>({padding:`${(0,u.bf)(jr.paddingBlockSM)} ${(0,u.bf)(jr.paddingInlineSM)}`,fontSize:jr.inputFontSizeSM,borderRadius:jr.borderRadiusSM}),ze=jr=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,u.bf)(jr.paddingBlock)} ${(0,u.bf)(jr.paddingInline)}`,color:jr.colorText,fontSize:jr.inputFontSize,lineHeight:jr.lineHeight,borderRadius:jr.borderRadius,transition:`all ${jr.motionDurationMid}`},S(jr.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:jr.controlHeight,lineHeight:jr.lineHeight,verticalAlign:"bottom",transition:`all ${jr.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},N(jr)),"&-sm":Object.assign({},ie(jr)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ie=jr=>{const{componentCls:Jr,antCls:Yn}=jr;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:jr.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Jr}, &-lg > ${Jr}-group-addon`]:Object.assign({},N(jr)),[`&-sm ${Jr}, &-sm > ${Jr}-group-addon`]:Object.assign({},ie(jr)),[`&-lg ${Yn}-select-single ${Yn}-select-selector`]:{height:jr.controlHeightLG},[`&-sm ${Yn}-select-single ${Yn}-select-selector`]:{height:jr.controlHeightSM},[`> ${Jr}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Jr}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,u.bf)(jr.paddingInline)}`,color:jr.colorText,fontWeight:"normal",fontSize:jr.inputFontSize,textAlign:"center",borderRadius:jr.borderRadius,transition:`all ${jr.motionDurationSlow}`,lineHeight:1,[`${Yn}-select`]:{margin:`${(0,u.bf)(jr.calc(jr.paddingBlock).add(1).mul(-1).equal())} ${(0,u.bf)(jr.calc(jr.paddingInline).mul(-1).equal())}`,[`&${Yn}-select-single:not(${Yn}-select-customize-input):not(${Yn}-pagination-size-changer)`]:{[`${Yn}-select-selector`]:{backgroundColor:"inherit",border:`${(0,u.bf)(jr.lineWidth)} ${jr.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Yn}-select-selector`]:{color:jr.colorPrimary}}},[`${Yn}-cascader-picker`]:{margin:`-9px ${(0,u.bf)(jr.calc(jr.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${Yn}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${Jr}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Jr}-search-with-button &`]:{zIndex:0}}},[`> ${Jr}:first-child, ${Jr}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Yn}-select ${Yn}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Jr}-affix-wrapper`]:{[`&:not(:first-child) ${Jr}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Jr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Jr}:last-child, ${Jr}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Yn}-select ${Yn}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Jr}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Jr}-search &`]:{borderStartStartRadius:jr.borderRadius,borderEndStartRadius:jr.borderRadius}},[`&:not(:first-child), ${Jr}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Jr}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,D.dF)()),{[`${Jr}-group-addon, ${Jr}-group-wrap, > ${Jr}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:jr.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${Jr}-affix-wrapper, - & > ${Jr}-number-affix-wrapper, - & > ${Yn}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:jr.calc(jr.lineWidth).mul(-1).equal(),borderInlineEndWidth:jr.lineWidth},[`${Jr}`]:{float:"none"},[`& > ${Yn}-select > ${Yn}-select-selector, - & > ${Yn}-select-auto-complete ${Jr}, - & > ${Yn}-cascader-picker ${Jr}, - & > ${Jr}-group-wrapper ${Jr}`]:{borderInlineEndWidth:jr.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Yn}-select-focused`]:{zIndex:1},[`& > ${Yn}-select > ${Yn}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${Yn}-select:first-child > ${Yn}-select-selector, - & > ${Yn}-select-auto-complete:first-child ${Jr}, - & > ${Yn}-cascader-picker:first-child ${Jr}`]:{borderStartStartRadius:jr.borderRadius,borderEndStartRadius:jr.borderRadius},[`& > *:last-child, - & > ${Yn}-select:last-child > ${Yn}-select-selector, - & > ${Yn}-cascader-picker:last-child ${Jr}, - & > ${Yn}-cascader-picker-focused:last-child ${Jr}`]:{borderInlineEndWidth:jr.lineWidth,borderStartEndRadius:jr.borderRadius,borderEndEndRadius:jr.borderRadius},[`& > ${Yn}-select-auto-complete ${Jr}`]:{verticalAlign:"top"},[`${Jr}-group-wrapper + ${Jr}-group-wrapper`]:{marginInlineStart:jr.calc(jr.lineWidth).mul(-1).equal(),[`${Jr}-affix-wrapper`]:{borderRadius:0}},[`${Jr}-group-wrapper:not(:last-child)`]:{[`&${Jr}-search > ${Jr}-group`]:{[`& > ${Jr}-group-addon > ${Jr}-search-button`]:{borderRadius:0},[`& > ${Jr}`]:{borderStartStartRadius:jr.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:jr.borderRadius}}}})}},ct=jr=>{const{componentCls:Jr,controlHeightSM:Yn,lineWidth:Lt,calc:_n}=jr,Mt=16,Bt=_n(Yn).sub(_n(Lt).mul(2)).sub(Mt).div(2).equal();return{[Jr]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(jr)),ze(jr)),(0,a.qG)(jr)),(0,a.H8)(jr)),(0,a.Mu)(jr)),{'&[type="color"]':{height:jr.controlHeight,[`&${Jr}-lg`]:{height:jr.controlHeightLG},[`&${Jr}-sm`]:{height:Yn,paddingTop:Bt,paddingBottom:Bt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},At=jr=>{const{componentCls:Jr}=jr;return{[`${Jr}-clear-icon`]:{margin:0,color:jr.colorTextQuaternary,fontSize:jr.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${jr.motionDurationSlow}`,"&:hover":{color:jr.colorTextTertiary},"&:active":{color:jr.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,u.bf)(jr.inputAffixPadding)}`}}}},rt=jr=>{const{componentCls:Jr,inputAffixPadding:Yn,colorTextDescription:Lt,motionDurationSlow:_n,colorIcon:Mt,colorIconHover:Bt,iconCls:Rt}=jr;return{[`${Jr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(jr)),{display:"inline-flex",[`&:not(${Jr}-disabled):hover`]:{zIndex:1,[`${Jr}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${Jr}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Jr}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:jr.paddingXS}},"&-show-count-suffix":{color:Lt},"&-show-count-has-suffix":{marginInlineEnd:jr.paddingXXS},"&-prefix":{marginInlineEnd:Yn},"&-suffix":{marginInlineStart:Yn}}}),At(jr)),{[`${Rt}${Jr}-password-icon`]:{color:Mt,cursor:"pointer",transition:`all ${_n}`,"&:hover":{color:Bt}}})}},It=jr=>{const{componentCls:Jr,borderRadiusLG:Yn,borderRadiusSM:Lt}=jr;return{[`${Jr}-group`]:Object.assign(Object.assign(Object.assign({},(0,D.Wf)(jr)),Ie(jr)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Jr}-group-addon`]:{borderRadius:Yn,fontSize:jr.inputFontSizeLG}},"&-sm":{[`${Jr}-group-addon`]:{borderRadius:Lt}}},(0,a.ir)(jr)),(0,a.S5)(jr)),{[`&:not(${Jr}-compact-first-item):not(${Jr}-compact-last-item)${Jr}-compact-item`]:{[`${Jr}, ${Jr}-group-addon`]:{borderRadius:0}},[`&:not(${Jr}-compact-last-item)${Jr}-compact-first-item`]:{[`${Jr}, ${Jr}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Jr}-compact-first-item)${Jr}-compact-last-item`]:{[`${Jr}, ${Jr}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${Jr}-compact-last-item)${Jr}-compact-item`]:{[`${Jr}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Ot=jr=>{const{componentCls:Jr,antCls:Yn}=jr,Lt=`${Jr}-search`;return{[Lt]:{[`${Jr}`]:{"&:hover, &:focus":{borderColor:jr.colorPrimaryHover,[`+ ${Jr}-group-addon ${Lt}-button:not(${Yn}-btn-primary)`]:{borderInlineStartColor:jr.colorPrimaryHover}}},[`${Jr}-affix-wrapper`]:{borderRadius:0},[`${Jr}-lg`]:{lineHeight:jr.calc(jr.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${Jr}-group`]:{[`> ${Jr}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Lt}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:jr.borderRadius,borderEndEndRadius:jr.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Lt}-button:not(${Yn}-btn-primary)`]:{color:jr.colorTextDescription,"&:hover":{color:jr.colorPrimaryHover},"&:active":{color:jr.colorPrimaryActive},[`&${Yn}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Lt}-button`]:{height:jr.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Lt}-button`]:{height:jr.controlHeightLG},[`&-small ${Lt}-button`]:{height:jr.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Jr}-compact-item`]:{[`&:not(${Jr}-compact-last-item)`]:{[`${Jr}-group-addon`]:{[`${Jr}-search-button`]:{marginInlineEnd:jr.calc(jr.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${Jr}-compact-first-item)`]:{[`${Jr},${Jr}-affix-wrapper`]:{borderRadius:0}},[`> ${Jr}-group-addon ${Jr}-search-button, - > ${Jr}, - ${Jr}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Jr}-affix-wrapper-focused`]:{zIndex:2}}}}},wn=jr=>{const{componentCls:Jr,paddingLG:Yn}=jr,Lt=`${Jr}-textarea`;return{[Lt]:{position:"relative","&-show-count":{[`> ${Jr}`]:{height:"100%"},[`${Jr}-data-count`]:{position:"absolute",bottom:jr.calc(jr.fontSize).mul(jr.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:jr.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Jr}`]:{paddingInlineEnd:Yn}},[`&-affix-wrapper${Lt}-has-feedback`]:{[`${Jr}`]:{paddingInlineEnd:Yn}},[`&-affix-wrapper${Jr}-affix-wrapper`]:{padding:0,[`> textarea${Jr}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${Jr}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Jr}-clear-icon`]:{position:"absolute",insetInlineEnd:jr.paddingXS,insetBlockStart:jr.paddingXS},[`${Lt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:jr.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Hs=jr=>{const{componentCls:Jr}=jr;return{[`${Jr}-out-of-range`]:{[`&, & input, & textarea, ${Jr}-show-count-suffix, ${Jr}-data-count`]:{color:jr.colorError}}}};g.ZP=(0,x.I$)("Input",jr=>{const Jr=(0,y.TS)(jr,(0,w.e)(jr));return[ct(Jr),wn(Jr),rt(Jr),It(Jr),Ot(Jr),Hs(Jr),(0,b.c)(Jr)]},w.T)},53644:function(c,g,l){"use strict";l.d(g,{T:function(){return b},e:function(){return D}});var u=l(90882);function D(x){return(0,u.TS)(x,{inputAffixPadding:x.paddingXXS})}const b=x=>{const{controlHeight:y,fontSize:w,lineHeight:a,lineWidth:S,controlHeightSM:I,controlHeightLG:N,fontSizeLG:ie,lineHeightLG:ze,paddingSM:Ie,controlPaddingHorizontalSM:ct,controlPaddingHorizontal:At,colorFillAlter:rt,colorPrimaryHover:It,colorPrimary:Ot,controlOutlineWidth:wn,controlOutline:Hs,colorErrorOutline:jr,colorWarningOutline:Jr,colorBgContainer:Yn}=x;return{paddingBlock:Math.max(Math.round((y-w*a)/2*10)/10-S,0),paddingBlockSM:Math.max(Math.round((I-w*a)/2*10)/10-S,0),paddingBlockLG:Math.ceil((N-ie*ze)/2*10)/10-S,paddingInline:Ie-S,paddingInlineSM:ct-S,paddingInlineLG:At-S,addonBg:rt,activeBorderColor:Ot,hoverBorderColor:It,activeShadow:`0 0 0 ${wn}px ${Hs}`,errorActiveShadow:`0 0 0 ${wn}px ${jr}`,warningActiveShadow:`0 0 0 ${wn}px ${Jr}`,hoverBg:Yn,activeBg:Yn,inputFontSize:w,inputFontSizeLG:ie,inputFontSizeSM:w}}},47703:function(c,g,l){"use strict";l.d(g,{$U:function(){return y},H8:function(){return Ie},Mu:function(){return N},S5:function(){return At},Xy:function(){return x},ir:function(){return I},qG:function(){return a}});var u=l(78600),D=l(90882);const b=rt=>({borderColor:rt.hoverBorderColor,backgroundColor:rt.hoverBg}),x=rt=>({color:rt.colorTextDisabled,backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},b((0,D.TS)(rt,{hoverBorderColor:rt.colorBorder,hoverBg:rt.colorBgContainerDisabled})))}),y=(rt,It)=>({background:rt.colorBgContainer,borderWidth:rt.lineWidth,borderStyle:rt.lineType,borderColor:It.borderColor,"&:hover":{borderColor:It.hoverBorderColor,backgroundColor:rt.hoverBg},"&:focus, &:focus-within":{borderColor:It.activeBorderColor,boxShadow:It.activeShadow,outline:0,backgroundColor:rt.activeBg}}),w=(rt,It)=>({[`&${rt.componentCls}-status-${It.status}:not(${rt.componentCls}-disabled)`]:Object.assign(Object.assign({},y(rt,It)),{[`${rt.componentCls}-prefix, ${rt.componentCls}-suffix`]:{color:It.affixColor}})}),a=(rt,It)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y(rt,{borderColor:rt.colorBorder,hoverBorderColor:rt.hoverBorderColor,activeBorderColor:rt.activeBorderColor,activeShadow:rt.activeShadow})),{[`&${rt.componentCls}-disabled, &[disabled]`]:Object.assign({},x(rt))}),w(rt,{status:"error",borderColor:rt.colorError,hoverBorderColor:rt.colorErrorBorderHover,activeBorderColor:rt.colorError,activeShadow:rt.errorActiveShadow,affixColor:rt.colorError})),w(rt,{status:"warning",borderColor:rt.colorWarning,hoverBorderColor:rt.colorWarningBorderHover,activeBorderColor:rt.colorWarning,activeShadow:rt.warningActiveShadow,affixColor:rt.colorWarning})),It)}),S=(rt,It)=>({[`&${rt.componentCls}-group-wrapper-status-${It.status}`]:{[`${rt.componentCls}-group-addon`]:{borderColor:It.addonBorderColor,color:It.addonColor}}}),I=rt=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${rt.componentCls}-group`]:{"&-addon":{background:rt.addonBg,border:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},S(rt,{status:"error",addonBorderColor:rt.colorError,addonColor:rt.colorErrorText})),S(rt,{status:"warning",addonBorderColor:rt.colorWarning,addonColor:rt.colorWarningText})),{[`&${rt.componentCls}-group-wrapper-disabled`]:{[`${rt.componentCls}-group-addon`]:Object.assign({},x(rt))}})}),N=(rt,It)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${rt.componentCls}-disabled, &[disabled]`]:{color:rt.colorTextDisabled}},It)}),ie=(rt,It)=>({background:It.bg,borderWidth:rt.lineWidth,borderStyle:rt.lineType,borderColor:"transparent",["input&, & input, textarea&, & textarea"]:{color:It==null?void 0:It.inputColor},"&:hover":{background:It.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:It.activeBorderColor,backgroundColor:rt.activeBg}}),ze=(rt,It)=>({[`&${rt.componentCls}-status-${It.status}:not(${rt.componentCls}-disabled)`]:Object.assign(Object.assign({},ie(rt,It)),{[`${rt.componentCls}-prefix, ${rt.componentCls}-suffix`]:{color:It.affixColor}})}),Ie=(rt,It)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie(rt,{bg:rt.colorFillTertiary,hoverBg:rt.colorFillSecondary,activeBorderColor:rt.colorPrimary})),{[`&${rt.componentCls}-disabled, &[disabled]`]:Object.assign({},x(rt))}),ze(rt,{status:"error",bg:rt.colorErrorBg,hoverBg:rt.colorErrorBgHover,activeBorderColor:rt.colorError,inputColor:rt.colorErrorText,affixColor:rt.colorError})),ze(rt,{status:"warning",bg:rt.colorWarningBg,hoverBg:rt.colorWarningBgHover,activeBorderColor:rt.colorWarning,inputColor:rt.colorWarningText,affixColor:rt.colorWarning})),It)}),ct=(rt,It)=>({[`&${rt.componentCls}-group-wrapper-status-${It.status}`]:{[`${rt.componentCls}-group-addon`]:{background:It.addonBg,color:It.addonColor}}}),At=rt=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${rt.componentCls}-group`]:{"&-addon":{background:rt.colorFillTertiary},[`${rt.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorSplit}`}}}},ct(rt,{status:"error",addonBg:rt.colorErrorBg,addonColor:rt.colorErrorText})),ct(rt,{status:"warning",addonBg:rt.colorWarningBg,addonColor:rt.colorWarningText})),{[`&${rt.componentCls}-group-wrapper-disabled`]:{[`${rt.componentCls}-group`]:{"&-addon":{background:rt.colorFillTertiary,color:rt.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`,borderTop:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`,borderBottom:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`,borderTop:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`,borderBottom:`${(0,u.bf)(rt.lineWidth)} ${rt.lineType} ${rt.colorBorder}`}}}})})},61706:function(c,g,l){"use strict";var u=l(77617);const D=(0,u.createContext)(void 0);g.Z=D},209:function(c,g,l){"use strict";l.d(g,{Z:function(){return ie}});var u=l(84354),D={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},b=D,y={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},a={lang:Object.assign({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"]},b),timePickerLocale:Object.assign({},y)},S=a;const I="${label} is not a valid ${type}";var ie={locale:"en",Pagination:u.Z,DatePicker:a,TimePicker:y,Calendar:S,global:{placeholder:"Please select"},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",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"},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:I,method:I,array:I,object:I,number:I,date:I,boolean:I,integer:I,float:I,regexp:I,email:I,url:I,hex:I},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},50700:function(c,g,l){"use strict";var u=l(77617),D=l(61706),b=l(209);const x=(y,w)=>{const a=u.useContext(D.Z),S=u.useMemo(()=>{var N;const ie=w||b.Z[y],ze=(N=a==null?void 0:a[y])!==null&&N!==void 0?N:{};return Object.assign(Object.assign({},typeof ie=="function"?ie():ie),ze||{})},[y,w,a]),I=u.useMemo(()=>{const N=a==null?void 0:a.locale;return a!=null&&a.exist&&!N?b.Z.locale:N},[a]);return[S,I]};g.Z=x},83385:function(c,g,l){"use strict";l.d(g,{J:function(){return w}});var u=l(77617),D=l(46142),b=l(55449),x=function(a,S){var I={};for(var N in a)Object.prototype.hasOwnProperty.call(a,N)&&S.indexOf(N)<0&&(I[N]=a[N]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,N=Object.getOwnPropertySymbols(a);ie{const{children:I}=a,N=x(a,["children"]),ie=u.useContext(y),ze=u.useMemo(()=>Object.assign(Object.assign({},ie),N),[ie,N.prefixCls,N.mode,N.selectable,N.rootClassName]),Ie=(0,D.t4)(I),ct=(0,D.x1)(S,Ie?I.ref:null);return u.createElement(y.Provider,{value:ze},u.createElement(b.BR,null,Ie?u.cloneElement(I,{ref:ct}):I))});g.Z=y},50523:function(c,g,l){"use strict";l.d(g,{Z:function(){return $0}});var u=l(77617),D=l(26135),b=l(92310),x=l.n(b),y=function(cv,Gg){var uu={};for(var Gs in cv)Object.prototype.hasOwnProperty.call(cv,Gs)&&Gg.indexOf(Gs)<0&&(uu[Gs]=cv[Gs]);if(cv!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ia=0,Gs=Object.getOwnPropertySymbols(cv);Ia{let cv=0;return function(){let Gg=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return cv+=1,`${Gg}${cv}`}})(),I=null;var N=null,ie=l(71323),ze=l(46142),Ie=l(41123),ct=l(12149),At=l(20612),rt=l(58798),It=function(cv,Gg){var uu={};for(var Gs in cv)Object.prototype.hasOwnProperty.call(cv,Gs)&&Gg.indexOf(Gs)<0&&(uu[Gs]=cv[Gs]);if(cv!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ia=0,Gs=Object.getOwnPropertySymbols(cv);Ia{const{prefixCls:Gg,className:uu,dashed:Gs}=cv,Ia=It(cv,["prefixCls","className","dashed"]),{getPrefixCls:lu}=u.useContext(rt.E_),_h=lu("menu",Gg),Kr=x()({[`${_h}-item-divider-dashed`]:!!Gs},uu);return u.createElement(D.iz,Object.assign({className:Kr},Ia))},Hs=l(6415),jr=l(3773),Yn=(0,u.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),_n=cv=>{var Gg;const{className:uu,children:Gs,icon:Ia,title:lu,danger:_h}=cv,{prefixCls:Kr,firstLevel:fr,direction:ri,disableMenuItemTitleTooltip:Ra,inlineCollapsed:Sg}=u.useContext(Yn),Jg=rn=>{const ui=u.createElement("span",{className:`${Kr}-title-content`},Gs);return(!Ia||(0,At.l$)(Gs)&&Gs.type==="span")&&Gs&&rn&&fr&&typeof Gs=="string"?u.createElement("div",{className:`${Kr}-inline-collapsed-noicon`},Gs.charAt(0)):ui},{siderCollapsed:j0}=u.useContext(a);let Wo=lu;typeof lu=="undefined"?Wo=fr?Gs:"":lu===!1&&(Wo="");const Mo={title:Wo};!j0&&!Sg&&(Mo.title=null,Mo.open=!1);const qr=(0,Hs.Z)(Gs).length;let On=u.createElement(D.ck,Object.assign({},(0,Ie.Z)(cv,["title","icon","danger"]),{className:x()({[`${Kr}-item-danger`]:_h,[`${Kr}-item-only-child`]:(Ia?qr+1:qr)===1},uu),title:typeof lu=="string"?lu:void 0}),(0,At.Tm)(Ia,{className:x()((0,At.l$)(Ia)?(Gg=Ia.props)===null||Gg===void 0?void 0:Gg.className:"",`${Kr}-item-icon`)}),Jg(Sg));return Ra||(On=u.createElement(jr.Z,Object.assign({},Mo,{placement:ri==="rtl"?"left":"right",overlayClassName:`${Kr}-inline-collapsed-tooltip`}),On)),On},Mt=l(40870),Rt=cv=>{var Gg;const{popupClassName:uu,icon:Gs,title:Ia,theme:lu}=cv,_h=u.useContext(Yn),{prefixCls:Kr,inlineCollapsed:fr,theme:ri}=_h,Ra=(0,D.Xl)();let Sg;if(!Gs)Sg=fr&&!Ra.length&&Ia&&typeof Ia=="string"?u.createElement("div",{className:`${Kr}-inline-collapsed-noicon`},Ia.charAt(0)):u.createElement("span",{className:`${Kr}-title-content`},Ia);else{const Wo=(0,At.l$)(Ia)&&Ia.type==="span";Sg=u.createElement(u.Fragment,null,(0,At.Tm)(Gs,{className:x()((0,At.l$)(Gs)?(Gg=Gs.props)===null||Gg===void 0?void 0:Gg.className:"",`${Kr}-item-icon`)}),Wo?Ia:u.createElement("span",{className:`${Kr}-title-content`},Ia))}const Jg=u.useMemo(()=>Object.assign(Object.assign({},_h),{firstLevel:!1}),[_h]),[j0]=(0,Mt.Cn)("Menu");return u.createElement(Yn.Provider,{value:Jg},u.createElement(D.Wd,Object.assign({},(0,Ie.Z)(cv,["icon"]),{title:Sg,popupClassName:x()(Kr,uu,`${Kr}-${lu||ri}`),popupStyle:{zIndex:j0}})))},on=function(cv,Gg){var uu={};for(var Gs in cv)Object.prototype.hasOwnProperty.call(cv,Gs)&&Gg.indexOf(Gs)<0&&(uu[Gs]=cv[Gs]);if(cv!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ia=0,Gs=Object.getOwnPropertySymbols(cv);Ia{if(Gg&&typeof Gg=="object"){const Gs=Gg,{label:Ia,children:lu,key:_h,type:Kr}=Gs,fr=on(Gs,["label","children","key","type"]),ri=_h!=null?_h:`tmp-${uu}`;return lu||Kr==="group"?Kr==="group"?u.createElement(D.BW,Object.assign({key:ri},fr,{title:Ia}),Hr(lu)):u.createElement(Rt,Object.assign({key:ri},fr,{title:Ia}),Hr(lu)):Kr==="divider"?u.createElement(wn,Object.assign({key:ri},fr)):u.createElement(_n,Object.assign({key:ri},fr),Ia)}return null}).filter(Gg=>Gg)}function vn(cv){return u.useMemo(()=>cv&&Hr(cv),[cv])}var Ca=l(83385),ai=l(78600),gt=l(64993),Zr=l(91110),Ht=l(36385),Zs=l(17089),oi=l(19162),Pa=l(79263),Aa=l(90882),Ug=cv=>{const{componentCls:Gg,motionDurationSlow:uu,horizontalLineHeight:Gs,colorSplit:Ia,lineWidth:lu,lineType:_h,itemPaddingInline:Kr}=cv;return{[`${Gg}-horizontal`]:{lineHeight:Gs,border:0,borderBottom:`${(0,ai.bf)(lu)} ${_h} ${Ia}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Gg}-item, ${Gg}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Kr},[`> ${Gg}-item:hover, - > ${Gg}-item-active, - > ${Gg}-submenu ${Gg}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Gg}-item, ${Gg}-submenu-title`]:{transition:[`border-color ${uu}`,`background ${uu}`].join(",")},[`${Gg}-submenu-arrow`]:{display:"none"}}}},H0=cv=>{let{componentCls:Gg,menuArrowOffset:uu,calc:Gs}=cv;return{[`${Gg}-rtl`]:{direction:"rtl"},[`${Gg}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Gg}-rtl${Gg}-vertical, - ${Gg}-submenu-rtl ${Gg}-vertical`]:{[`${Gg}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ai.bf)(Gs(uu).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ai.bf)(uu)})`}}}}};const X0=cv=>Object.assign({},(0,Zr.oN)(cv));var jv=(cv,Gg)=>{const{componentCls:uu,itemColor:Gs,itemSelectedColor:Ia,groupTitleColor:lu,itemBg:_h,subMenuItemBg:Kr,itemSelectedBg:fr,activeBarHeight:ri,activeBarWidth:Ra,activeBarBorderWidth:Sg,motionDurationSlow:Jg,motionEaseInOut:j0,motionEaseOut:Wo,itemPaddingInline:Mo,motionDurationMid:qr,itemHoverColor:On,lineType:rn,colorSplit:ui,itemDisabledColor:ya,dangerItemColor:gd,dangerItemHoverColor:Su,dangerItemSelectedColor:xu,dangerItemActiveBg:xa,dangerItemSelectedBg:Td,popupBg:jg,itemHoverBg:Wa,itemActiveBg:tv,menuSubMenuBg:Bs,horizontalItemSelectedColor:Sa,horizontalItemSelectedBg:$a,horizontalItemBorderRadius:Bd,horizontalItemHoverBg:Bg}=cv;return{[`${uu}-${Gg}, ${uu}-${Gg} > ${uu}`]:{color:Gs,background:_h,[`&${uu}-root:focus-visible`]:Object.assign({},X0(cv)),[`${uu}-item-group-title`]:{color:lu},[`${uu}-submenu-selected`]:{[`> ${uu}-submenu-title`]:{color:Ia}},[`${uu}-item, ${uu}-submenu-title`]:{color:Gs,[`&:not(${uu}-item-disabled):focus-visible`]:Object.assign({},X0(cv))},[`${uu}-item-disabled, ${uu}-submenu-disabled`]:{color:`${ya} !important`},[`${uu}-item:not(${uu}-item-selected):not(${uu}-submenu-selected)`]:{[`&:hover, > ${uu}-submenu-title:hover`]:{color:On}},[`&:not(${uu}-horizontal)`]:{[`${uu}-item:not(${uu}-item-selected)`]:{"&:hover":{backgroundColor:Wa},"&:active":{backgroundColor:tv}},[`${uu}-submenu-title`]:{"&:hover":{backgroundColor:Wa},"&:active":{backgroundColor:tv}}},[`${uu}-item-danger`]:{color:gd,[`&${uu}-item:hover`]:{[`&:not(${uu}-item-selected):not(${uu}-submenu-selected)`]:{color:Su}},[`&${uu}-item:active`]:{background:xa}},[`${uu}-item a`]:{"&, &:hover":{color:"inherit"}},[`${uu}-item-selected`]:{color:Ia,[`&${uu}-item-danger`]:{color:xu},["a, a:hover"]:{color:"inherit"}},[`& ${uu}-item-selected`]:{backgroundColor:fr,[`&${uu}-item-danger`]:{backgroundColor:Td}},[`&${uu}-submenu > ${uu}`]:{backgroundColor:Bs},[`&${uu}-popup > ${uu}`]:{backgroundColor:jg},[`&${uu}-submenu-popup > ${uu}`]:{backgroundColor:jg},[`&${uu}-horizontal`]:Object.assign(Object.assign({},Gg==="dark"?{borderBottom:0}:{}),{[`> ${uu}-item, > ${uu}-submenu`]:{top:Sg,marginTop:cv.calc(Sg).mul(-1).equal(),marginBottom:0,borderRadius:Bd,"&::after":{position:"absolute",insetInline:Mo,bottom:0,borderBottom:`${(0,ai.bf)(ri)} solid transparent`,transition:`border-color ${Jg} ${j0}`,content:'""'},["&:hover, &-active, &-open"]:{background:Bg,"&::after":{borderBottomWidth:ri,borderBottomColor:Sa}},["&-selected"]:{color:Sa,backgroundColor:$a,"&:hover":{backgroundColor:$a},"&::after":{borderBottomWidth:ri,borderBottomColor:Sa}}}}),[`&${uu}-root`]:{[`&${uu}-inline, &${uu}-vertical`]:{borderInlineEnd:`${(0,ai.bf)(Sg)} ${rn} ${ui}`}},[`&${uu}-inline`]:{[`${uu}-sub${uu}-inline`]:{background:Kr},[`${uu}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ai.bf)(Ra)} solid ${Ia}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qr} ${Wo}`,`opacity ${qr} ${Wo}`].join(","),content:'""'},[`&${uu}-item-danger`]:{"&::after":{borderInlineEndColor:xu}}},[`${uu}-selected, ${uu}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qr} ${j0}`,`opacity ${qr} ${j0}`].join(",")}}}}}};const Lv=cv=>{const{componentCls:Gg,itemHeight:uu,itemMarginInline:Gs,padding:Ia,menuArrowSize:lu,marginXS:_h,itemMarginBlock:Kr,itemWidth:fr}=cv,ri=cv.calc(lu).add(Ia).add(_h).equal();return{[`${Gg}-item`]:{position:"relative",overflow:"hidden"},[`${Gg}-item, ${Gg}-submenu-title`]:{height:uu,lineHeight:(0,ai.bf)(uu),paddingInline:Ia,overflow:"hidden",textOverflow:"ellipsis",marginInline:Gs,marginBlock:Kr,width:fr},[`> ${Gg}-item, - > ${Gg}-submenu > ${Gg}-submenu-title`]:{height:uu,lineHeight:(0,ai.bf)(uu)},[`${Gg}-item-group-list ${Gg}-submenu-title, - ${Gg}-submenu-title`]:{paddingInlineEnd:ri}}};var k0=cv=>{const{componentCls:Gg,iconCls:uu,itemHeight:Gs,colorTextLightSolid:Ia,dropdownWidth:lu,controlHeightLG:_h,motionDurationMid:Kr,motionEaseOut:fr,paddingXL:ri,itemMarginInline:Ra,fontSizeLG:Sg,motionDurationSlow:Jg,paddingXS:j0,boxShadowSecondary:Wo,collapsedWidth:Mo,collapsedIconSize:qr}=cv,On={height:Gs,lineHeight:(0,ai.bf)(Gs),listStylePosition:"inside",listStyleType:"disc"};return[{[Gg]:{["&-inline, &-vertical"]:Object.assign({[`&${Gg}-root`]:{boxShadow:"none"}},Lv(cv))},[`${Gg}-submenu-popup`]:{[`${Gg}-vertical`]:Object.assign(Object.assign({},Lv(cv)),{boxShadow:Wo})}},{[`${Gg}-submenu-popup ${Gg}-vertical${Gg}-sub`]:{minWidth:lu,maxHeight:`calc(100vh - ${(0,ai.bf)(cv.calc(_h).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Gg}-inline`]:{width:"100%",[`&${Gg}-root`]:{[`${Gg}-item, ${Gg}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Jg}`,`background ${Jg}`,`padding ${Kr} ${fr}`].join(","),[`> ${Gg}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Gg}-sub${Gg}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Gg}-submenu > ${Gg}-submenu-title`]:On,[`& ${Gg}-item-group-title`]:{paddingInlineStart:ri}},[`${Gg}-item`]:On}},{[`${Gg}-inline-collapsed`]:{width:Mo,[`&${Gg}-root`]:{[`${Gg}-item, ${Gg}-submenu ${Gg}-submenu-title`]:{[`> ${Gg}-inline-collapsed-noicon`]:{fontSize:Sg,textAlign:"center"}}},[`> ${Gg}-item, - > ${Gg}-item-group > ${Gg}-item-group-list > ${Gg}-item, - > ${Gg}-item-group > ${Gg}-item-group-list > ${Gg}-submenu > ${Gg}-submenu-title, - > ${Gg}-submenu > ${Gg}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ai.bf)(cv.calc(Sg).div(2).equal())} - ${(0,ai.bf)(Ra)})`,textOverflow:"clip",[` - ${Gg}-submenu-arrow, - ${Gg}-submenu-expand-icon - `]:{opacity:0},[`${Gg}-item-icon, ${uu}`]:{margin:0,fontSize:qr,lineHeight:(0,ai.bf)(Gs),"+ span":{display:"inline-block",opacity:0}}},[`${Gg}-item-icon, ${uu}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Gg}-item-icon, ${uu}`]:{display:"none"},"a, a:hover":{color:Ia}},[`${Gg}-item-group-title`]:Object.assign(Object.assign({},Zr.vS),{paddingInline:j0})}}]};const G0=cv=>{const{componentCls:Gg,motionDurationSlow:uu,motionDurationMid:Gs,motionEaseInOut:Ia,motionEaseOut:lu,iconCls:_h,iconSize:Kr,iconMarginInlineEnd:fr}=cv;return{[`${Gg}-item, ${Gg}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${uu}`,`background ${uu}`,`padding ${uu} ${Ia}`].join(","),[`${Gg}-item-icon, ${_h}`]:{minWidth:Kr,fontSize:Kr,transition:[`font-size ${Gs} ${lu}`,`margin ${uu} ${Ia}`,`color ${uu}`].join(","),"+ span":{marginInlineStart:fr,opacity:1,transition:[`opacity ${uu} ${Ia}`,`margin ${uu}`,`color ${uu}`].join(",")}},[`${Gg}-item-icon`]:Object.assign({},(0,Zr.Ro)()),[`&${Gg}-item-only-child`]:{[`> ${_h}, > ${Gg}-item-icon`]:{marginInlineEnd:0}}},[`${Gg}-item-disabled, ${Gg}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Gg}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},iv=cv=>{const{componentCls:Gg,motionDurationSlow:uu,motionEaseInOut:Gs,borderRadius:Ia,menuArrowSize:lu,menuArrowOffset:_h}=cv;return{[`${Gg}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:cv.margin,width:lu,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${uu} ${Gs}, opacity ${uu}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:cv.calc(lu).mul(.6).equal(),height:cv.calc(lu).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ia,transition:[`background ${uu} ${Gs}`,`transform ${uu} ${Gs}`,`top ${uu} ${Gs}`,`color ${uu} ${Gs}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ai.bf)(cv.calc(_h).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ai.bf)(_h)})`}}}}},u0=cv=>{const{antCls:Gg,componentCls:uu,fontSize:Gs,motionDurationSlow:Ia,motionDurationMid:lu,motionEaseInOut:_h,paddingXS:Kr,padding:fr,colorSplit:ri,lineWidth:Ra,zIndexPopup:Sg,borderRadiusLG:Jg,subMenuItemBorderRadius:j0,menuArrowSize:Wo,menuArrowOffset:Mo,lineType:qr,groupTitleLineHeight:On,groupTitleFontSize:rn}=cv;return[{"":{[`${uu}`]:Object.assign(Object.assign({},(0,Zr.dF)()),{["&-hidden"]:{display:"none"}})},[`${uu}-submenu-hidden`]:{display:"none"}},{[uu]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Zr.Wf)(cv)),(0,Zr.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Gs,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ia} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${uu}-item`]:{flex:"none"}},[`${uu}-item, ${uu}-submenu, ${uu}-submenu-title`]:{borderRadius:cv.itemBorderRadius},[`${uu}-item-group-title`]:{padding:`${(0,ai.bf)(Kr)} ${(0,ai.bf)(fr)}`,fontSize:rn,lineHeight:On,transition:`all ${Ia}`},[`&-horizontal ${uu}-submenu`]:{transition:[`border-color ${Ia} ${_h}`,`background ${Ia} ${_h}`].join(",")},[`${uu}-submenu, ${uu}-submenu-inline`]:{transition:[`border-color ${Ia} ${_h}`,`background ${Ia} ${_h}`,`padding ${lu} ${_h}`].join(",")},[`${uu}-submenu ${uu}-sub`]:{cursor:"initial",transition:[`background ${Ia} ${_h}`,`padding ${Ia} ${_h}`].join(",")},[`${uu}-title-content`]:{transition:`color ${Ia}`,[`> ${Gg}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${uu}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${uu}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ri,borderStyle:qr,borderWidth:0,borderTopWidth:Ra,marginBlock:Ra,padding:0,"&-dashed":{borderStyle:"dashed"}}}),G0(cv)),{[`${uu}-item-group`]:{[`${uu}-item-group-list`]:{margin:0,padding:0,[`${uu}-item, ${uu}-submenu-title`]:{paddingInline:`${(0,ai.bf)(cv.calc(Gs).mul(2).equal())} ${(0,ai.bf)(fr)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Sg,borderRadius:Jg,boxShadow:"none",transformOrigin:"0 0",[`&${uu}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${uu}`]:Object.assign(Object.assign(Object.assign({borderRadius:Jg},G0(cv)),iv(cv)),{[`${uu}-item, ${uu}-submenu > ${uu}-submenu-title`]:{borderRadius:j0},[`${uu}-submenu-title::after`]:{transition:`transform ${Ia} ${_h}`}})},[` +`,Gt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],yt={},Et;function ht(Go){var Mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=Go.getAttribute("id")||Go.getAttribute("data-reactid")||Go.getAttribute("name");if(Mo&&yt[pe])return yt[pe];var Ii=window.getComputedStyle(Go),Vi=Ii.getPropertyValue("box-sizing")||Ii.getPropertyValue("-moz-box-sizing")||Ii.getPropertyValue("-webkit-box-sizing"),ro=parseFloat(Ii.getPropertyValue("padding-bottom"))+parseFloat(Ii.getPropertyValue("padding-top")),ai=parseFloat(Ii.getPropertyValue("border-bottom-width"))+parseFloat(Ii.getPropertyValue("border-top-width")),Ms=Gt.map(function(Rt){return"".concat(Rt,":").concat(Ii.getPropertyValue(Rt))}).join(";"),Ar={sizingStyle:Ms,paddingSize:ro,borderSize:ai,boxSizing:Vi};return Mo&&pe&&(yt[pe]=Ar),Ar}function Pe(Go){var Mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ii=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Et||(Et=document.createElement("textarea"),Et.setAttribute("tab-index","-1"),Et.setAttribute("aria-hidden","true"),document.body.appendChild(Et)),Go.getAttribute("wrap")?Et.setAttribute("wrap",Go.getAttribute("wrap")):Et.removeAttribute("wrap");var Vi=ht(Go,Mo),ro=Vi.paddingSize,ai=Vi.borderSize,Ms=Vi.boxSizing,Ar=Vi.sizingStyle;Et.setAttribute("style","".concat(Ar,";").concat(rt)),Et.value=Go.value||Go.placeholder||"";var Rt=void 0,jn=void 0,wr,oi=Et.scrollHeight;if(Ms==="border-box"?oi+=ai:Ms==="content-box"&&(oi-=ro),pe!==null||Ii!==null){Et.value=" ";var Ti=Et.scrollHeight-ro;pe!==null&&(Rt=Ti*pe,Ms==="border-box"&&(Rt=Rt+ro+ai),oi=Math.max(Rt,oi)),Ii!==null&&(jn=Ti*Ii,Ms==="border-box"&&(jn=jn+ro+ai),wr=oi>jn?"":"hidden",oi=Math.min(jn,oi))}var Bi={height:oi,overflowY:wr,resize:"none"};return Rt&&(Bi.minHeight=Rt),jn&&(Bi.maxHeight=jn),Bi}var et=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Oe=0,Ue=1,je=2,ft=v.forwardRef(function(Go,Mo){var pe=Go,Ii=pe.prefixCls,Vi=pe.onPressEnter,ro=pe.defaultValue,ai=pe.value,Ms=pe.autoSize,Ar=pe.onResize,Rt=pe.className,jn=pe.style,wr=pe.disabled,oi=pe.onChange,Ti=pe.onInternalAutoSize,Bi=(0,se.Z)(pe,et),no=(0,ct.Z)(ro,{value:ai,postState:function(jr){return jr!=null?jr:""}}),Vr=(0,ae.Z)(no,2),Rn=Vr[0],Xt=Vr[1],Sn=function(jr){Xt(jr.target.value),oi==null||oi(jr)},Pn=v.useRef();v.useImperativeHandle(Mo,function(){return{textArea:Pn.current}});var hr=v.useMemo(function(){return Ms&&(0,nt.Z)(Ms)==="object"?[Ms.minRows,Ms.maxRows]:[]},[Ms]),mt=(0,ae.Z)(hr,2),tt=mt[0],kt=mt[1],vn=!!Ms,vr=function(){try{if(document.activeElement===Pn.current){var jr=Pn.current,bo=jr.selectionStart,zt=jr.selectionEnd,en=jr.scrollTop;Pn.current.setSelectionRange(bo,zt),Pn.current.scrollTop=en}}catch(Cn){}},qr=v.useState(je),Ni=(0,ae.Z)(qr,2),li=Ni[0],Un=Ni[1],dn=v.useState(),xt=(0,ae.Z)(dn,2),it=xt[0],Bt=xt[1],rn=function(){Un(Oe)};(0,at.Z)(function(){vn&&rn()},[ai,tt,kt,vn]),(0,at.Z)(function(){if(li===Oe)Un(Ue);else if(li===Ue){var Fr=Pe(Pn.current,!1,tt,kt);Un(je),Bt(Fr)}else vr()},[li]);var ir=v.useRef(),tr=function(){Ye.Z.cancel(ir.current)},Jn=function(jr){li===je&&(Ar==null||Ar(jr),Ms&&(tr(),ir.current=(0,Ye.Z)(function(){rn()})))};v.useEffect(function(){return tr},[]);var nn=vn?it:null,er=(0,Y.Z)((0,Y.Z)({},jn),nn);return(li===Oe||li===Ue)&&(er.overflowY="hidden",er.overflowX="hidden"),v.createElement(Ge.Z,{onResize:Jn,disabled:!(Ms||Ar)},v.createElement("textarea",(0,W.Z)({},Bi,{ref:Pn,style:er,className:A()(Ii,Rt,(0,X.Z)({},"".concat(Ii,"-disabled"),wr)),disabled:wr,value:Rn,onChange:Sn})))}),Ct=ft,Xe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],hn=v.forwardRef(function(Go,Mo){var pe,Ii,Vi=Go.defaultValue,ro=Go.value,ai=Go.onFocus,Ms=Go.onBlur,Ar=Go.onChange,Rt=Go.allowClear,jn=Go.maxLength,wr=Go.onCompositionStart,oi=Go.onCompositionEnd,Ti=Go.suffix,Bi=Go.prefixCls,no=Bi===void 0?"rc-textarea":Bi,Vr=Go.showCount,Rn=Go.count,Xt=Go.className,Sn=Go.style,Pn=Go.disabled,hr=Go.hidden,mt=Go.classNames,tt=Go.styles,kt=Go.onResize,vn=(0,se.Z)(Go,Xe),vr=(0,ct.Z)(Vi,{value:ro,defaultValue:Vi}),qr=(0,ae.Z)(vr,2),Ni=qr[0],li=qr[1],Un=Ni==null?"":String(Ni),dn=v.useState(!1),xt=(0,ae.Z)(dn,2),it=xt[0],Bt=xt[1],rn=v.useRef(!1),ir=v.useState(null),tr=(0,ae.Z)(ir,2),Jn=tr[0],nn=tr[1],er=(0,v.useRef)(null),Fr=function(){var zn;return(zn=er.current)===null||zn===void 0?void 0:zn.textArea},jr=function(){Fr().focus()};(0,v.useImperativeHandle)(Mo,function(){return{resizableTextArea:er.current,focus:jr,blur:function(){Fr().blur()}}}),(0,v.useEffect)(function(){Bt(function(Ln){return!Pn&&Ln})},[Pn]);var bo=v.useState(null),zt=(0,ae.Z)(bo,2),en=zt[0],Cn=zt[1];v.useEffect(function(){if(en){var Ln;(Ln=Fr()).setSelectionRange.apply(Ln,(0,ie.Z)(en))}},[en]);var rr=(0,Be.Z)(Rn,Vr),Pr=(pe=rr.max)!==null&&pe!==void 0?pe:jn,Er=Number(Pr)>0,ui=rr.strategy(Un),Gr=!!Pr&&ui>Pr,zr=function(zn,Wi){var Yi=Wi;!rn.current&&rr.exceedFormatter&&rr.max&&rr.strategy(Wi)>rr.max&&(Yi=rr.exceedFormatter(Wi,{max:rr.max}),Wi!==Yi&&Cn([Fr().selectionStart||0,Fr().selectionEnd||0])),li(Yi),(0,Ce.rJ)(zn.currentTarget,zn,Ar,Yi)},Ei=function(zn){rn.current=!0,wr==null||wr(zn)},Zi=function(zn){rn.current=!1,zr(zn,zn.currentTarget.value),oi==null||oi(zn)},Kr=function(zn){zr(zn,zn.target.value)},Xr=function(zn){var Wi=vn.onPressEnter,Yi=vn.onKeyDown;zn.key==="Enter"&&Wi&&Wi(zn),Yi==null||Yi(zn)},Qo=function(zn){Bt(!0),ai==null||ai(zn)},pr=function(zn){Bt(!1),Ms==null||Ms(zn)},qo=function(zn){li(""),jr(),(0,Ce.rJ)(Fr(),zn,Ar)},Br=Ti,sr;rr.show&&(rr.showFormatter?sr=rr.showFormatter({value:Un,count:ui,maxLength:Pr}):sr="".concat(ui).concat(Er?" / ".concat(Pr):""),Br=v.createElement(v.Fragment,null,Br,v.createElement("span",{className:A()("".concat(no,"-data-count"),mt==null?void 0:mt.count),style:tt==null?void 0:tt.count},sr)));var ii=function(zn){var Wi;kt==null||kt(zn),(Wi=Fr())!==null&&Wi!==void 0&&Wi.style.height&&nn(!0)},qi=!vn.autoSize&&!Vr&&!Rt;return v.createElement(Ie.Q,{value:Un,allowClear:Rt,handleReset:qo,suffix:Br,prefixCls:no,classNames:(0,Y.Z)((0,Y.Z)({},mt),{},{affixWrapper:A()(mt==null?void 0:mt.affixWrapper,(Ii={},(0,X.Z)(Ii,"".concat(no,"-show-count"),Vr),(0,X.Z)(Ii,"".concat(no,"-textarea-allow-clear"),Rt),Ii))}),disabled:Pn,focused:it,className:A()(Xt,Gr&&"".concat(no,"-out-of-range")),style:(0,Y.Z)((0,Y.Z)({},Sn),Jn&&!qi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof sr=="string"?sr:void 0}},hidden:hr},v.createElement(Ct,(0,W.Z)({},vn,{maxLength:jn,onKeyDown:Xr,onChange:Kr,onFocus:Qo,onBlur:pr,onCompositionStart:Ei,onCompositionEnd:Zi,className:A()(mt==null?void 0:mt.textarea),style:(0,Y.Z)((0,Y.Z)({},tt==null?void 0:tt.textarea),{},{resize:Sn==null?void 0:Sn.resize}),disabled:Pn,prefixCls:no,onResize:ii,ref:er})))}),Nt=hn,Te=Nt,vt=x(24902),ze=x(58798),Vt=x(57801),Tt=x(20804),un=x(51623),on=x(56522),Lr=x(4586),Yr=x(26504),fi=x(90426),Xi=function(Go,Mo){var pe={};for(var Ii in Go)Object.prototype.hasOwnProperty.call(Go,Ii)&&Mo.indexOf(Ii)<0&&(pe[Ii]=Go[Ii]);if(Go!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vi=0,Ii=Object.getOwnPropertySymbols(Go);Vi{var pe;const{prefixCls:Ii,bordered:Vi=!0,size:ro,disabled:ai,status:Ms,allowClear:Ar,classNames:Rt,rootClassName:jn,className:wr,variant:oi}=Go,Ti=Xi(Go,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:Bi,direction:no}=v.useContext(ze.E_),Vr=(0,Tt.Z)(ro),Rn=v.useContext(Vt.Z),Xt=ai!=null?ai:Rn,{status:Sn,hasFeedback:Pn,feedbackIcon:hr}=v.useContext(un.aM),mt=(0,vt.F)(Sn,Ms),tt=v.useRef(null);v.useImperativeHandle(Mo,()=>{var xt;return{resizableTextArea:(xt=tt.current)===null||xt===void 0?void 0:xt.resizableTextArea,focus:it=>{var Bt,rn;(0,on.n)((rn=(Bt=tt.current)===null||Bt===void 0?void 0:Bt.resizableTextArea)===null||rn===void 0?void 0:rn.textArea,it)},blur:()=>{var it;return(it=tt.current)===null||it===void 0?void 0:it.blur()}}});const kt=Bi("input",Ii);let vn;typeof Ar=="object"&&(Ar!=null&&Ar.clearIcon)?vn=Ar:Ar&&(vn={clearIcon:v.createElement(z.Z,null)});const vr=(0,Yr.Z)(kt),[qr,Ni,li]=(0,Lr.ZP)(kt,vr),[Un,dn]=(0,fi.Z)(oi,Vi);return qr(v.createElement(Te,Object.assign({},Ti,{disabled:Xt,allowClear:vn,className:A()(li,vr,wr,jn),classNames:Object.assign(Object.assign({},Rt),{textarea:A()({[`${kt}-sm`]:Vr==="small",[`${kt}-lg`]:Vr==="large"},Ni,Rt==null?void 0:Rt.textarea),variant:A()({[`${kt}-${Un}`]:dn},(0,vt.Z)(kt,mt)),affixWrapper:A()(`${kt}-textarea-affix-wrapper`,{[`${kt}-affix-wrapper-rtl`]:no==="rtl",[`${kt}-affix-wrapper-sm`]:Vr==="small",[`${kt}-affix-wrapper-lg`]:Vr==="large",[`${kt}-textarea-show-count`]:Go.showCount||((pe=Go.count)===null||pe===void 0?void 0:pe.show)},Ni)}),prefixCls:kt,suffix:Pn&&v.createElement("span",{className:`${kt}-textarea-suffix`},hr),ref:tt})))})},28028:function(St,me,x){"use strict";x.d(me,{Z:function(){return z}});var v=x(77617);function z(P,A){const W=(0,v.useRef)([]),X=()=>{W.current.push(setTimeout(()=>{var Y,ie,ae,se;!((Y=P.current)===null||Y===void 0)&&Y.input&&((ie=P.current)===null||ie===void 0?void 0:ie.input.getAttribute("type"))==="password"&&(!((ae=P.current)===null||ae===void 0)&&ae.input.hasAttribute("value"))&&((se=P.current)===null||se===void 0||se.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(A&&X(),()=>W.current.forEach(Y=>{Y&&clearTimeout(Y)})),[]),X}},46527:function(St,me,x){"use strict";x.d(me,{Z:function(){return vt}});var v=x(77617),z=x(92310),P=x.n(z),A=x(58798),W=x(51623),X=x(4586),ie=ze=>{const{getPrefixCls:Vt,direction:Tt}=(0,v.useContext)(A.E_),{prefixCls:un,className:on}=ze,Lr=Vt("input-group",un),Yr=Vt("input"),[fi,Xi]=(0,X.ZP)(Yr),Qi=P()(Lr,{[`${Lr}-lg`]:ze.size==="large",[`${Lr}-sm`]:ze.size==="small",[`${Lr}-compact`]:ze.compact,[`${Lr}-rtl`]:Tt==="rtl"},Xi,on),hi=(0,v.useContext)(W.aM),Go=(0,v.useMemo)(()=>Object.assign(Object.assign({},hi),{isFormItemInput:!1}),[hi]);return fi(v.createElement("span",{className:Qi,style:ze.style,onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onFocus:ze.onFocus,onBlur:ze.onBlur},v.createElement(W.aM.Provider,{value:Go},ze.children)))},ae=x(56522),se=x(79384),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Be=Ie,Ce=x(44847),ct=function(Vt,Tt){return v.createElement(Ce.Z,(0,se.Z)({},Vt,{ref:Tt,icon:Be}))},nt=v.forwardRef(ct),Ge=x(29338),at=x(41123),Ye=x(17763),rt=x(28028),Gt=function(ze,Vt){var Tt={};for(var un in ze)Object.prototype.hasOwnProperty.call(ze,un)&&Vt.indexOf(un)<0&&(Tt[un]=ze[un]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,un=Object.getOwnPropertySymbols(ze);onze?v.createElement(Ge.Z,null):v.createElement(nt,null),Et={click:"onClick",hover:"onMouseOver"};var Pe=v.forwardRef((ze,Vt)=>{const{visibilityToggle:Tt=!0}=ze,un=typeof Tt=="object"&&Tt.visible!==void 0,[on,Lr]=(0,v.useState)(()=>un?Tt.visible:!1),Yr=(0,v.useRef)(null);v.useEffect(()=>{un&&Lr(Tt.visible)},[un,Tt]);const fi=(0,rt.Z)(Yr),Xi=()=>{const{disabled:jn}=ze;jn||(on&&fi(),Lr(wr=>{var oi;const Ti=!wr;return typeof Tt=="object"&&((oi=Tt.onVisibleChange)===null||oi===void 0||oi.call(Tt,Ti)),Ti}))},Qi=jn=>{const{action:wr="click",iconRender:oi=yt}=ze,Ti=Et[wr]||"",Bi=oi(on),no={[Ti]:Xi,className:`${jn}-icon`,key:"passwordIcon",onMouseDown:Vr=>{Vr.preventDefault()},onMouseUp:Vr=>{Vr.preventDefault()}};return v.cloneElement(v.isValidElement(Bi)?Bi:v.createElement("span",null,Bi),no)},{className:hi,prefixCls:Go,inputPrefixCls:Mo,size:pe}=ze,Ii=Gt(ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Vi}=v.useContext(A.E_),ro=Vi("input",Mo),ai=Vi("input-password",Go),Ms=Tt&&Qi(ai),Ar=P()(ai,hi,{[`${ai}-${pe}`]:!!pe}),Rt=Object.assign(Object.assign({},(0,at.Z)(Ii,["suffix","iconRender","visibilityToggle"])),{type:on?"text":"password",className:Ar,prefixCls:ro,suffix:Ms});return pe&&(Rt.size=pe),v.createElement(ae.Z,Object.assign({ref:(0,Ye.sQ)(Vt,Yr)},Rt))}),et=x(38528),Oe=x(20612),Ue=x(99622),je=x(20804),ft=x(55449),Ct=function(ze,Vt){var Tt={};for(var un in ze)Object.prototype.hasOwnProperty.call(ze,un)&&Vt.indexOf(un)<0&&(Tt[un]=ze[un]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,un=Object.getOwnPropertySymbols(ze);on{const{prefixCls:Tt,inputPrefixCls:un,className:on,size:Lr,suffix:Yr,enterButton:fi=!1,addonAfter:Xi,loading:Qi,disabled:hi,onSearch:Go,onChange:Mo,onCompositionStart:pe,onCompositionEnd:Ii}=ze,Vi=Ct(ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ro,direction:ai}=v.useContext(A.E_),Ms=v.useRef(!1),Ar=ro("input-search",Tt),Rt=ro("input",un),{compactSize:jn}=(0,ft.ri)(Ar,ai),wr=(0,je.Z)(vn=>{var vr;return(vr=Lr!=null?Lr:jn)!==null&&vr!==void 0?vr:vn}),oi=v.useRef(null),Ti=vn=>{vn&&vn.target&&vn.type==="click"&&Go&&Go(vn.target.value,vn,{source:"clear"}),Mo&&Mo(vn)},Bi=vn=>{var vr;document.activeElement===((vr=oi.current)===null||vr===void 0?void 0:vr.input)&&vn.preventDefault()},no=vn=>{var vr,qr;Go&&Go((qr=(vr=oi.current)===null||vr===void 0?void 0:vr.input)===null||qr===void 0?void 0:qr.value,vn,{source:"input"})},Vr=vn=>{Ms.current||Qi||no(vn)},Rn=typeof fi=="boolean"?v.createElement(et.Z,null):null,Xt=`${Ar}-button`;let Sn;const Pn=fi||{},hr=Pn.type&&Pn.type.__ANT_BUTTON===!0;hr||Pn.type==="button"?Sn=(0,Oe.Tm)(Pn,Object.assign({onMouseDown:Bi,onClick:vn=>{var vr,qr;(qr=(vr=Pn==null?void 0:Pn.props)===null||vr===void 0?void 0:vr.onClick)===null||qr===void 0||qr.call(vr,vn),no(vn)},key:"enterButton"},hr?{className:Xt,size:wr}:{})):Sn=v.createElement(Ue.ZP,{className:Xt,type:fi?"primary":void 0,size:wr,disabled:hi,key:"enterButton",onMouseDown:Bi,onClick:no,loading:Qi,icon:Rn},fi),Xi&&(Sn=[Sn,(0,Oe.Tm)(Xi,{key:"addonAfter"})]);const mt=P()(Ar,{[`${Ar}-rtl`]:ai==="rtl",[`${Ar}-${wr}`]:!!wr,[`${Ar}-with-button`]:!!fi},on),tt=vn=>{Ms.current=!0,pe==null||pe(vn)},kt=vn=>{Ms.current=!1,Ii==null||Ii(vn)};return v.createElement(ae.Z,Object.assign({ref:(0,Ye.sQ)(oi,Vt),onPressEnter:Vr},Vi,{size:wr,onCompositionStart:tt,onCompositionEnd:kt,prefixCls:Rt,addonAfter:Sn,suffix:Yr,onChange:Ti,className:mt,disabled:hi}))}),Nt=x(97446);const Te=ae.Z;Te.Group=ie,Te.Search=hn,Te.TextArea=Nt.Z,Te.Password=Pe;var vt=Te},4586:function(St,me,x){"use strict";x.d(me,{ik:function(){return Be},nz:function(){return ie},s7:function(){return Ce},x0:function(){return Ie}});var v=x(78600),z=x(91110),P=x(99109),A=x(79263),W=x(90882),X=x(53644),Y=x(47703);const ie=yt=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:yt,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ae=yt=>({borderColor:yt.activeBorderColor,boxShadow:yt.activeShadow,outline:0,backgroundColor:yt.activeBg}),se=yt=>{const{paddingBlockLG:Et,lineHeightLG:ht,borderRadiusLG:Pe,paddingInlineLG:et}=yt;return{padding:`${(0,v.bf)(Et)} ${(0,v.bf)(et)}`,fontSize:yt.inputFontSizeLG,lineHeight:ht,borderRadius:Pe}},Ie=yt=>({padding:`${(0,v.bf)(yt.paddingBlockSM)} ${(0,v.bf)(yt.paddingInlineSM)}`,fontSize:yt.inputFontSizeSM,borderRadius:yt.borderRadiusSM}),Be=yt=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,v.bf)(yt.paddingBlock)} ${(0,v.bf)(yt.paddingInline)}`,color:yt.colorText,fontSize:yt.inputFontSize,lineHeight:yt.lineHeight,borderRadius:yt.borderRadius,transition:`all ${yt.motionDurationMid}`},ie(yt.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:yt.controlHeight,lineHeight:yt.lineHeight,verticalAlign:"bottom",transition:`all ${yt.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},se(yt)),"&-sm":Object.assign({},Ie(yt)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ce=yt=>{const{componentCls:Et,antCls:ht}=yt;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:yt.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Et}, &-lg > ${Et}-group-addon`]:Object.assign({},se(yt)),[`&-sm ${Et}, &-sm > ${Et}-group-addon`]:Object.assign({},Ie(yt)),[`&-lg ${ht}-select-single ${ht}-select-selector`]:{height:yt.controlHeightLG},[`&-sm ${ht}-select-single ${ht}-select-selector`]:{height:yt.controlHeightSM},[`> ${Et}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Et}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,v.bf)(yt.paddingInline)}`,color:yt.colorText,fontWeight:"normal",fontSize:yt.inputFontSize,textAlign:"center",borderRadius:yt.borderRadius,transition:`all ${yt.motionDurationSlow}`,lineHeight:1,[`${ht}-select`]:{margin:`${(0,v.bf)(yt.calc(yt.paddingBlock).add(1).mul(-1).equal())} ${(0,v.bf)(yt.calc(yt.paddingInline).mul(-1).equal())}`,[`&${ht}-select-single:not(${ht}-select-customize-input):not(${ht}-pagination-size-changer)`]:{[`${ht}-select-selector`]:{backgroundColor:"inherit",border:`${(0,v.bf)(yt.lineWidth)} ${yt.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ht}-select-selector`]:{color:yt.colorPrimary}}},[`${ht}-cascader-picker`]:{margin:`-9px ${(0,v.bf)(yt.calc(yt.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${ht}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${Et}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Et}-search-with-button &`]:{zIndex:0}}},[`> ${Et}:first-child, ${Et}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ht}-select ${ht}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Et}-affix-wrapper`]:{[`&:not(:first-child) ${Et}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Et}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Et}:last-child, ${Et}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ht}-select ${ht}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Et}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Et}-search &`]:{borderStartStartRadius:yt.borderRadius,borderEndStartRadius:yt.borderRadius}},[`&:not(:first-child), ${Et}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Et}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,z.dF)()),{[`${Et}-group-addon, ${Et}-group-wrap, > ${Et}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:yt.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${Et}-affix-wrapper, + & > ${Et}-number-affix-wrapper, + & > ${ht}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:yt.calc(yt.lineWidth).mul(-1).equal(),borderInlineEndWidth:yt.lineWidth},[`${Et}`]:{float:"none"},[`& > ${ht}-select > ${ht}-select-selector, + & > ${ht}-select-auto-complete ${Et}, + & > ${ht}-cascader-picker ${Et}, + & > ${Et}-group-wrapper ${Et}`]:{borderInlineEndWidth:yt.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ht}-select-focused`]:{zIndex:1},[`& > ${ht}-select > ${ht}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${ht}-select:first-child > ${ht}-select-selector, + & > ${ht}-select-auto-complete:first-child ${Et}, + & > ${ht}-cascader-picker:first-child ${Et}`]:{borderStartStartRadius:yt.borderRadius,borderEndStartRadius:yt.borderRadius},[`& > *:last-child, + & > ${ht}-select:last-child > ${ht}-select-selector, + & > ${ht}-cascader-picker:last-child ${Et}, + & > ${ht}-cascader-picker-focused:last-child ${Et}`]:{borderInlineEndWidth:yt.lineWidth,borderStartEndRadius:yt.borderRadius,borderEndEndRadius:yt.borderRadius},[`& > ${ht}-select-auto-complete ${Et}`]:{verticalAlign:"top"},[`${Et}-group-wrapper + ${Et}-group-wrapper`]:{marginInlineStart:yt.calc(yt.lineWidth).mul(-1).equal(),[`${Et}-affix-wrapper`]:{borderRadius:0}},[`${Et}-group-wrapper:not(:last-child)`]:{[`&${Et}-search > ${Et}-group`]:{[`& > ${Et}-group-addon > ${Et}-search-button`]:{borderRadius:0},[`& > ${Et}`]:{borderStartStartRadius:yt.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:yt.borderRadius}}}})}},ct=yt=>{const{componentCls:Et,controlHeightSM:ht,lineWidth:Pe,calc:et}=yt,Oe=16,Ue=et(ht).sub(et(Pe).mul(2)).sub(Oe).div(2).equal();return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(yt)),Be(yt)),(0,Y.qG)(yt)),(0,Y.H8)(yt)),(0,Y.Mu)(yt)),{'&[type="color"]':{height:yt.controlHeight,[`&${Et}-lg`]:{height:yt.controlHeightLG},[`&${Et}-sm`]:{height:ht,paddingTop:Ue,paddingBottom:Ue}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},nt=yt=>{const{componentCls:Et}=yt;return{[`${Et}-clear-icon`]:{margin:0,color:yt.colorTextQuaternary,fontSize:yt.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${yt.motionDurationSlow}`,"&:hover":{color:yt.colorTextTertiary},"&:active":{color:yt.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,v.bf)(yt.inputAffixPadding)}`}}}},Ge=yt=>{const{componentCls:Et,inputAffixPadding:ht,colorTextDescription:Pe,motionDurationSlow:et,colorIcon:Oe,colorIconHover:Ue,iconCls:je}=yt;return{[`${Et}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Be(yt)),{display:"inline-flex",[`&:not(${Et}-disabled):hover`]:{zIndex:1,[`${Et}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${Et}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Et}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:yt.paddingXS}},"&-show-count-suffix":{color:Pe},"&-show-count-has-suffix":{marginInlineEnd:yt.paddingXXS},"&-prefix":{marginInlineEnd:ht},"&-suffix":{marginInlineStart:ht}}}),nt(yt)),{[`${je}${Et}-password-icon`]:{color:Oe,cursor:"pointer",transition:`all ${et}`,"&:hover":{color:Ue}}})}},at=yt=>{const{componentCls:Et,borderRadiusLG:ht,borderRadiusSM:Pe}=yt;return{[`${Et}-group`]:Object.assign(Object.assign(Object.assign({},(0,z.Wf)(yt)),Ce(yt)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Et}-group-addon`]:{borderRadius:ht,fontSize:yt.inputFontSizeLG}},"&-sm":{[`${Et}-group-addon`]:{borderRadius:Pe}}},(0,Y.ir)(yt)),(0,Y.S5)(yt)),{[`&:not(${Et}-compact-first-item):not(${Et}-compact-last-item)${Et}-compact-item`]:{[`${Et}, ${Et}-group-addon`]:{borderRadius:0}},[`&:not(${Et}-compact-last-item)${Et}-compact-first-item`]:{[`${Et}, ${Et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Et}-compact-first-item)${Et}-compact-last-item`]:{[`${Et}, ${Et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${Et}-compact-last-item)${Et}-compact-item`]:{[`${Et}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Ye=yt=>{const{componentCls:Et,antCls:ht}=yt,Pe=`${Et}-search`;return{[Pe]:{[`${Et}`]:{"&:hover, &:focus":{borderColor:yt.colorPrimaryHover,[`+ ${Et}-group-addon ${Pe}-button:not(${ht}-btn-primary)`]:{borderInlineStartColor:yt.colorPrimaryHover}}},[`${Et}-affix-wrapper`]:{borderRadius:0},[`${Et}-lg`]:{lineHeight:yt.calc(yt.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${Et}-group`]:{[`> ${Et}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Pe}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:yt.borderRadius,borderEndEndRadius:yt.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Pe}-button:not(${ht}-btn-primary)`]:{color:yt.colorTextDescription,"&:hover":{color:yt.colorPrimaryHover},"&:active":{color:yt.colorPrimaryActive},[`&${ht}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Pe}-button`]:{height:yt.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Pe}-button`]:{height:yt.controlHeightLG},[`&-small ${Pe}-button`]:{height:yt.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Et}-compact-item`]:{[`&:not(${Et}-compact-last-item)`]:{[`${Et}-group-addon`]:{[`${Et}-search-button`]:{marginInlineEnd:yt.calc(yt.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${Et}-compact-first-item)`]:{[`${Et},${Et}-affix-wrapper`]:{borderRadius:0}},[`> ${Et}-group-addon ${Et}-search-button, + > ${Et}, + ${Et}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Et}-affix-wrapper-focused`]:{zIndex:2}}}}},rt=yt=>{const{componentCls:Et,paddingLG:ht}=yt,Pe=`${Et}-textarea`;return{[Pe]:{position:"relative","&-show-count":{[`> ${Et}`]:{height:"100%"},[`${Et}-data-count`]:{position:"absolute",bottom:yt.calc(yt.fontSize).mul(yt.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:yt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Et}`]:{paddingInlineEnd:ht}},[`&-affix-wrapper${Pe}-has-feedback`]:{[`${Et}`]:{paddingInlineEnd:ht}},[`&-affix-wrapper${Et}-affix-wrapper`]:{padding:0,[`> textarea${Et}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${Et}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Et}-clear-icon`]:{position:"absolute",insetInlineEnd:yt.paddingXS,insetBlockStart:yt.paddingXS},[`${Pe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:yt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Gt=yt=>{const{componentCls:Et}=yt;return{[`${Et}-out-of-range`]:{[`&, & input, & textarea, ${Et}-show-count-suffix, ${Et}-data-count`]:{color:yt.colorError}}}};me.ZP=(0,A.I$)("Input",yt=>{const Et=(0,W.TS)(yt,(0,X.e)(yt));return[ct(Et),rt(Et),Ge(Et),at(Et),Ye(Et),Gt(Et),(0,P.c)(Et)]},X.T)},53644:function(St,me,x){"use strict";x.d(me,{T:function(){return P},e:function(){return z}});var v=x(90882);function z(A){return(0,v.TS)(A,{inputAffixPadding:A.paddingXXS})}const P=A=>{const{controlHeight:W,fontSize:X,lineHeight:Y,lineWidth:ie,controlHeightSM:ae,controlHeightLG:se,fontSizeLG:Ie,lineHeightLG:Be,paddingSM:Ce,controlPaddingHorizontalSM:ct,controlPaddingHorizontal:nt,colorFillAlter:Ge,colorPrimaryHover:at,colorPrimary:Ye,controlOutlineWidth:rt,controlOutline:Gt,colorErrorOutline:yt,colorWarningOutline:Et,colorBgContainer:ht}=A;return{paddingBlock:Math.max(Math.round((W-X*Y)/2*10)/10-ie,0),paddingBlockSM:Math.max(Math.round((ae-X*Y)/2*10)/10-ie,0),paddingBlockLG:Math.ceil((se-Ie*Be)/2*10)/10-ie,paddingInline:Ce-ie,paddingInlineSM:ct-ie,paddingInlineLG:nt-ie,addonBg:Ge,activeBorderColor:Ye,hoverBorderColor:at,activeShadow:`0 0 0 ${rt}px ${Gt}`,errorActiveShadow:`0 0 0 ${rt}px ${yt}`,warningActiveShadow:`0 0 0 ${rt}px ${Et}`,hoverBg:ht,activeBg:ht,inputFontSize:X,inputFontSizeLG:Ie,inputFontSizeSM:X}}},47703:function(St,me,x){"use strict";x.d(me,{$U:function(){return W},H8:function(){return Ce},Mu:function(){return se},S5:function(){return nt},Xy:function(){return A},ir:function(){return ae},qG:function(){return Y}});var v=x(78600),z=x(90882);const P=Ge=>({borderColor:Ge.hoverBorderColor,backgroundColor:Ge.hoverBg}),A=Ge=>({color:Ge.colorTextDisabled,backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},P((0,z.TS)(Ge,{hoverBorderColor:Ge.colorBorder,hoverBg:Ge.colorBgContainerDisabled})))}),W=(Ge,at)=>({background:Ge.colorBgContainer,borderWidth:Ge.lineWidth,borderStyle:Ge.lineType,borderColor:at.borderColor,"&:hover":{borderColor:at.hoverBorderColor,backgroundColor:Ge.hoverBg},"&:focus, &:focus-within":{borderColor:at.activeBorderColor,boxShadow:at.activeShadow,outline:0,backgroundColor:Ge.activeBg}}),X=(Ge,at)=>({[`&${Ge.componentCls}-status-${at.status}:not(${Ge.componentCls}-disabled)`]:Object.assign(Object.assign({},W(Ge,at)),{[`${Ge.componentCls}-prefix, ${Ge.componentCls}-suffix`]:{color:at.affixColor}})}),Y=(Ge,at)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(Ge,{borderColor:Ge.colorBorder,hoverBorderColor:Ge.hoverBorderColor,activeBorderColor:Ge.activeBorderColor,activeShadow:Ge.activeShadow})),{[`&${Ge.componentCls}-disabled, &[disabled]`]:Object.assign({},A(Ge))}),X(Ge,{status:"error",borderColor:Ge.colorError,hoverBorderColor:Ge.colorErrorBorderHover,activeBorderColor:Ge.colorError,activeShadow:Ge.errorActiveShadow,affixColor:Ge.colorError})),X(Ge,{status:"warning",borderColor:Ge.colorWarning,hoverBorderColor:Ge.colorWarningBorderHover,activeBorderColor:Ge.colorWarning,activeShadow:Ge.warningActiveShadow,affixColor:Ge.colorWarning})),at)}),ie=(Ge,at)=>({[`&${Ge.componentCls}-group-wrapper-status-${at.status}`]:{[`${Ge.componentCls}-group-addon`]:{borderColor:at.addonBorderColor,color:at.addonColor}}}),ae=Ge=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${Ge.componentCls}-group`]:{"&-addon":{background:Ge.addonBg,border:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ie(Ge,{status:"error",addonBorderColor:Ge.colorError,addonColor:Ge.colorErrorText})),ie(Ge,{status:"warning",addonBorderColor:Ge.colorWarning,addonColor:Ge.colorWarningText})),{[`&${Ge.componentCls}-group-wrapper-disabled`]:{[`${Ge.componentCls}-group-addon`]:Object.assign({},A(Ge))}})}),se=(Ge,at)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${Ge.componentCls}-disabled, &[disabled]`]:{color:Ge.colorTextDisabled}},at)}),Ie=(Ge,at)=>({background:at.bg,borderWidth:Ge.lineWidth,borderStyle:Ge.lineType,borderColor:"transparent",["input&, & input, textarea&, & textarea"]:{color:at==null?void 0:at.inputColor},"&:hover":{background:at.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:at.activeBorderColor,backgroundColor:Ge.activeBg}}),Be=(Ge,at)=>({[`&${Ge.componentCls}-status-${at.status}:not(${Ge.componentCls}-disabled)`]:Object.assign(Object.assign({},Ie(Ge,at)),{[`${Ge.componentCls}-prefix, ${Ge.componentCls}-suffix`]:{color:at.affixColor}})}),Ce=(Ge,at)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ie(Ge,{bg:Ge.colorFillTertiary,hoverBg:Ge.colorFillSecondary,activeBorderColor:Ge.colorPrimary})),{[`&${Ge.componentCls}-disabled, &[disabled]`]:Object.assign({},A(Ge))}),Be(Ge,{status:"error",bg:Ge.colorErrorBg,hoverBg:Ge.colorErrorBgHover,activeBorderColor:Ge.colorError,inputColor:Ge.colorErrorText,affixColor:Ge.colorError})),Be(Ge,{status:"warning",bg:Ge.colorWarningBg,hoverBg:Ge.colorWarningBgHover,activeBorderColor:Ge.colorWarning,inputColor:Ge.colorWarningText,affixColor:Ge.colorWarning})),at)}),ct=(Ge,at)=>({[`&${Ge.componentCls}-group-wrapper-status-${at.status}`]:{[`${Ge.componentCls}-group-addon`]:{background:at.addonBg,color:at.addonColor}}}),nt=Ge=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${Ge.componentCls}-group`]:{"&-addon":{background:Ge.colorFillTertiary},[`${Ge.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorSplit}`}}}},ct(Ge,{status:"error",addonBg:Ge.colorErrorBg,addonColor:Ge.colorErrorText})),ct(Ge,{status:"warning",addonBg:Ge.colorWarningBg,addonColor:Ge.colorWarningText})),{[`&${Ge.componentCls}-group-wrapper-disabled`]:{[`${Ge.componentCls}-group`]:{"&-addon":{background:Ge.colorFillTertiary,color:Ge.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`,borderTop:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`,borderBottom:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`,borderTop:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`,borderBottom:`${(0,v.bf)(Ge.lineWidth)} ${Ge.lineType} ${Ge.colorBorder}`}}}})})},61706:function(St,me,x){"use strict";var v=x(77617);const z=(0,v.createContext)(void 0);me.Z=z},209:function(St,me,x){"use strict";x.d(me,{Z:function(){return Ie}});var v=x(84354),z={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},P=z,W={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y={lang:Object.assign({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"]},P),timePickerLocale:Object.assign({},W)},ie=Y;const ae="${label} is not a valid ${type}";var Ie={locale:"en",Pagination:v.Z,DatePicker:Y,TimePicker:W,Calendar:ie,global:{placeholder:"Please select"},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",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"},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:ae,method:ae,array:ae,object:ae,number:ae,date:ae,boolean:ae,integer:ae,float:ae,regexp:ae,email:ae,url:ae,hex:ae},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},50700:function(St,me,x){"use strict";var v=x(77617),z=x(61706),P=x(209);const A=(W,X)=>{const Y=v.useContext(z.Z),ie=v.useMemo(()=>{var se;const Ie=X||P.Z[W],Be=(se=Y==null?void 0:Y[W])!==null&&se!==void 0?se:{};return Object.assign(Object.assign({},typeof Ie=="function"?Ie():Ie),Be||{})},[W,X,Y]),ae=v.useMemo(()=>{const se=Y==null?void 0:Y.locale;return Y!=null&&Y.exist&&!se?P.Z.locale:se},[Y]);return[ie,ae]};me.Z=A},83385:function(St,me,x){"use strict";x.d(me,{J:function(){return X}});var v=x(77617),z=x(46142),P=x(55449),A=function(Y,ie){var ae={};for(var se in Y)Object.prototype.hasOwnProperty.call(Y,se)&&ie.indexOf(se)<0&&(ae[se]=Y[se]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,se=Object.getOwnPropertySymbols(Y);Ie{const{children:ae}=Y,se=A(Y,["children"]),Ie=v.useContext(W),Be=v.useMemo(()=>Object.assign(Object.assign({},Ie),se),[Ie,se.prefixCls,se.mode,se.selectable,se.rootClassName]),Ce=(0,z.t4)(ae),ct=(0,z.x1)(ie,Ce?ae.ref:null);return v.createElement(W.Provider,{value:Be},v.createElement(P.BR,null,Ce?v.cloneElement(ae,{ref:ct}):ae))});me.Z=W},50523:function(St,me,x){"use strict";x.d(me,{Z:function(){return Bi}});var v=x(77617),z=x(26135),P=x(92310),A=x.n(P),W=function(no,Vr){var Rn={};for(var Xt in no)Object.prototype.hasOwnProperty.call(no,Xt)&&Vr.indexOf(Xt)<0&&(Rn[Xt]=no[Xt]);if(no!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Xt=Object.getOwnPropertySymbols(no);Sn{let no=0;return function(){let Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return no+=1,`${Vr}${no}`}})(),ae=null;var se=null,Ie=x(71323),Be=x(46142),Ce=x(41123),ct=x(12149),nt=x(20612),Ge=x(58798),at=function(no,Vr){var Rn={};for(var Xt in no)Object.prototype.hasOwnProperty.call(no,Xt)&&Vr.indexOf(Xt)<0&&(Rn[Xt]=no[Xt]);if(no!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Xt=Object.getOwnPropertySymbols(no);Sn{const{prefixCls:Vr,className:Rn,dashed:Xt}=no,Sn=at(no,["prefixCls","className","dashed"]),{getPrefixCls:Pn}=v.useContext(Ge.E_),hr=Pn("menu",Vr),mt=A()({[`${hr}-item-divider-dashed`]:!!Xt},Rn);return v.createElement(z.iz,Object.assign({className:mt},Sn))},Gt=x(6415),yt=x(3773),ht=(0,v.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),et=no=>{var Vr;const{className:Rn,children:Xt,icon:Sn,title:Pn,danger:hr}=no,{prefixCls:mt,firstLevel:tt,direction:kt,disableMenuItemTitleTooltip:vn,inlineCollapsed:vr}=v.useContext(ht),qr=it=>{const Bt=v.createElement("span",{className:`${mt}-title-content`},Xt);return(!Sn||(0,nt.l$)(Xt)&&Xt.type==="span")&&Xt&&it&&tt&&typeof Xt=="string"?v.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Xt.charAt(0)):Bt},{siderCollapsed:Ni}=v.useContext(Y);let li=Pn;typeof Pn=="undefined"?li=tt?Xt:"":Pn===!1&&(li="");const Un={title:li};!Ni&&!vr&&(Un.title=null,Un.open=!1);const dn=(0,Gt.Z)(Xt).length;let xt=v.createElement(z.ck,Object.assign({},(0,Ce.Z)(no,["title","icon","danger"]),{className:A()({[`${mt}-item-danger`]:hr,[`${mt}-item-only-child`]:(Sn?dn+1:dn)===1},Rn),title:typeof Pn=="string"?Pn:void 0}),(0,nt.Tm)(Sn,{className:A()((0,nt.l$)(Sn)?(Vr=Sn.props)===null||Vr===void 0?void 0:Vr.className:"",`${mt}-item-icon`)}),qr(vr));return vn||(xt=v.createElement(yt.Z,Object.assign({},Un,{placement:kt==="rtl"?"left":"right",overlayClassName:`${mt}-inline-collapsed-tooltip`}),xt)),xt},Oe=x(40870),je=no=>{var Vr;const{popupClassName:Rn,icon:Xt,title:Sn,theme:Pn}=no,hr=v.useContext(ht),{prefixCls:mt,inlineCollapsed:tt,theme:kt}=hr,vn=(0,z.Xl)();let vr;if(!Xt)vr=tt&&!vn.length&&Sn&&typeof Sn=="string"?v.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Sn.charAt(0)):v.createElement("span",{className:`${mt}-title-content`},Sn);else{const li=(0,nt.l$)(Sn)&&Sn.type==="span";vr=v.createElement(v.Fragment,null,(0,nt.Tm)(Xt,{className:A()((0,nt.l$)(Xt)?(Vr=Xt.props)===null||Vr===void 0?void 0:Vr.className:"",`${mt}-item-icon`)}),li?Sn:v.createElement("span",{className:`${mt}-title-content`},Sn))}const qr=v.useMemo(()=>Object.assign(Object.assign({},hr),{firstLevel:!1}),[hr]),[Ni]=(0,Oe.Cn)("Menu");return v.createElement(ht.Provider,{value:qr},v.createElement(z.Wd,Object.assign({},(0,Ce.Z)(no,["icon"]),{title:vr,popupClassName:A()(mt,Rn,`${mt}-${Pn||kt}`),popupStyle:{zIndex:Ni}})))},ft=function(no,Vr){var Rn={};for(var Xt in no)Object.prototype.hasOwnProperty.call(no,Xt)&&Vr.indexOf(Xt)<0&&(Rn[Xt]=no[Xt]);if(no!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Xt=Object.getOwnPropertySymbols(no);Sn{if(Vr&&typeof Vr=="object"){const Xt=Vr,{label:Sn,children:Pn,key:hr,type:mt}=Xt,tt=ft(Xt,["label","children","key","type"]),kt=hr!=null?hr:`tmp-${Rn}`;return Pn||mt==="group"?mt==="group"?v.createElement(z.BW,Object.assign({key:kt},tt,{title:Sn}),Ct(Pn)):v.createElement(je,Object.assign({key:kt},tt,{title:Sn}),Ct(Pn)):mt==="divider"?v.createElement(rt,Object.assign({key:kt},tt)):v.createElement(et,Object.assign({key:kt},tt),Sn)}return null}).filter(Vr=>Vr)}function Xe(no){return v.useMemo(()=>no&&Ct(no),[no])}var hn=x(83385),Nt=x(78600),Te=x(64993),vt=x(91110),ze=x(36385),Vt=x(17089),Tt=x(19162),un=x(79263),on=x(90882),Yr=no=>{const{componentCls:Vr,motionDurationSlow:Rn,horizontalLineHeight:Xt,colorSplit:Sn,lineWidth:Pn,lineType:hr,itemPaddingInline:mt}=no;return{[`${Vr}-horizontal`]:{lineHeight:Xt,border:0,borderBottom:`${(0,Nt.bf)(Pn)} ${hr} ${Sn}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Vr}-item, ${Vr}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:mt},[`> ${Vr}-item:hover, + > ${Vr}-item-active, + > ${Vr}-submenu ${Vr}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Vr}-item, ${Vr}-submenu-title`]:{transition:[`border-color ${Rn}`,`background ${Rn}`].join(",")},[`${Vr}-submenu-arrow`]:{display:"none"}}}},Xi=no=>{let{componentCls:Vr,menuArrowOffset:Rn,calc:Xt}=no;return{[`${Vr}-rtl`]:{direction:"rtl"},[`${Vr}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Vr}-rtl${Vr}-vertical, + ${Vr}-submenu-rtl ${Vr}-vertical`]:{[`${Vr}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Nt.bf)(Xt(Rn).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Nt.bf)(Rn)})`}}}}};const Qi=no=>Object.assign({},(0,vt.oN)(no));var Go=(no,Vr)=>{const{componentCls:Rn,itemColor:Xt,itemSelectedColor:Sn,groupTitleColor:Pn,itemBg:hr,subMenuItemBg:mt,itemSelectedBg:tt,activeBarHeight:kt,activeBarWidth:vn,activeBarBorderWidth:vr,motionDurationSlow:qr,motionEaseInOut:Ni,motionEaseOut:li,itemPaddingInline:Un,motionDurationMid:dn,itemHoverColor:xt,lineType:it,colorSplit:Bt,itemDisabledColor:rn,dangerItemColor:ir,dangerItemHoverColor:tr,dangerItemSelectedColor:Jn,dangerItemActiveBg:nn,dangerItemSelectedBg:er,popupBg:Fr,itemHoverBg:jr,itemActiveBg:bo,menuSubMenuBg:zt,horizontalItemSelectedColor:en,horizontalItemSelectedBg:Cn,horizontalItemBorderRadius:rr,horizontalItemHoverBg:Pr}=no;return{[`${Rn}-${Vr}, ${Rn}-${Vr} > ${Rn}`]:{color:Xt,background:hr,[`&${Rn}-root:focus-visible`]:Object.assign({},Qi(no)),[`${Rn}-item-group-title`]:{color:Pn},[`${Rn}-submenu-selected`]:{[`> ${Rn}-submenu-title`]:{color:Sn}},[`${Rn}-item, ${Rn}-submenu-title`]:{color:Xt,[`&:not(${Rn}-item-disabled):focus-visible`]:Object.assign({},Qi(no))},[`${Rn}-item-disabled, ${Rn}-submenu-disabled`]:{color:`${rn} !important`},[`${Rn}-item:not(${Rn}-item-selected):not(${Rn}-submenu-selected)`]:{[`&:hover, > ${Rn}-submenu-title:hover`]:{color:xt}},[`&:not(${Rn}-horizontal)`]:{[`${Rn}-item:not(${Rn}-item-selected)`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:bo}},[`${Rn}-submenu-title`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:bo}}},[`${Rn}-item-danger`]:{color:ir,[`&${Rn}-item:hover`]:{[`&:not(${Rn}-item-selected):not(${Rn}-submenu-selected)`]:{color:tr}},[`&${Rn}-item:active`]:{background:nn}},[`${Rn}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Rn}-item-selected`]:{color:Sn,[`&${Rn}-item-danger`]:{color:Jn},["a, a:hover"]:{color:"inherit"}},[`& ${Rn}-item-selected`]:{backgroundColor:tt,[`&${Rn}-item-danger`]:{backgroundColor:er}},[`&${Rn}-submenu > ${Rn}`]:{backgroundColor:zt},[`&${Rn}-popup > ${Rn}`]:{backgroundColor:Fr},[`&${Rn}-submenu-popup > ${Rn}`]:{backgroundColor:Fr},[`&${Rn}-horizontal`]:Object.assign(Object.assign({},Vr==="dark"?{borderBottom:0}:{}),{[`> ${Rn}-item, > ${Rn}-submenu`]:{top:vr,marginTop:no.calc(vr).mul(-1).equal(),marginBottom:0,borderRadius:rr,"&::after":{position:"absolute",insetInline:Un,bottom:0,borderBottom:`${(0,Nt.bf)(kt)} solid transparent`,transition:`border-color ${qr} ${Ni}`,content:'""'},["&:hover, &-active, &-open"]:{background:Pr,"&::after":{borderBottomWidth:kt,borderBottomColor:en}},["&-selected"]:{color:en,backgroundColor:Cn,"&:hover":{backgroundColor:Cn},"&::after":{borderBottomWidth:kt,borderBottomColor:en}}}}),[`&${Rn}-root`]:{[`&${Rn}-inline, &${Rn}-vertical`]:{borderInlineEnd:`${(0,Nt.bf)(vr)} ${it} ${Bt}`}},[`&${Rn}-inline`]:{[`${Rn}-sub${Rn}-inline`]:{background:mt},[`${Rn}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Nt.bf)(vn)} solid ${Sn}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${dn} ${li}`,`opacity ${dn} ${li}`].join(","),content:'""'},[`&${Rn}-item-danger`]:{"&::after":{borderInlineEndColor:Jn}}},[`${Rn}-selected, ${Rn}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${dn} ${Ni}`,`opacity ${dn} ${Ni}`].join(",")}}}}}};const Mo=no=>{const{componentCls:Vr,itemHeight:Rn,itemMarginInline:Xt,padding:Sn,menuArrowSize:Pn,marginXS:hr,itemMarginBlock:mt,itemWidth:tt}=no,kt=no.calc(Pn).add(Sn).add(hr).equal();return{[`${Vr}-item`]:{position:"relative",overflow:"hidden"},[`${Vr}-item, ${Vr}-submenu-title`]:{height:Rn,lineHeight:(0,Nt.bf)(Rn),paddingInline:Sn,overflow:"hidden",textOverflow:"ellipsis",marginInline:Xt,marginBlock:mt,width:tt},[`> ${Vr}-item, + > ${Vr}-submenu > ${Vr}-submenu-title`]:{height:Rn,lineHeight:(0,Nt.bf)(Rn)},[`${Vr}-item-group-list ${Vr}-submenu-title, + ${Vr}-submenu-title`]:{paddingInlineEnd:kt}}};var Ii=no=>{const{componentCls:Vr,iconCls:Rn,itemHeight:Xt,colorTextLightSolid:Sn,dropdownWidth:Pn,controlHeightLG:hr,motionDurationMid:mt,motionEaseOut:tt,paddingXL:kt,itemMarginInline:vn,fontSizeLG:vr,motionDurationSlow:qr,paddingXS:Ni,boxShadowSecondary:li,collapsedWidth:Un,collapsedIconSize:dn}=no,xt={height:Xt,lineHeight:(0,Nt.bf)(Xt),listStylePosition:"inside",listStyleType:"disc"};return[{[Vr]:{["&-inline, &-vertical"]:Object.assign({[`&${Vr}-root`]:{boxShadow:"none"}},Mo(no))},[`${Vr}-submenu-popup`]:{[`${Vr}-vertical`]:Object.assign(Object.assign({},Mo(no)),{boxShadow:li})}},{[`${Vr}-submenu-popup ${Vr}-vertical${Vr}-sub`]:{minWidth:Pn,maxHeight:`calc(100vh - ${(0,Nt.bf)(no.calc(hr).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Vr}-inline`]:{width:"100%",[`&${Vr}-root`]:{[`${Vr}-item, ${Vr}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${qr}`,`background ${qr}`,`padding ${mt} ${tt}`].join(","),[`> ${Vr}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Vr}-sub${Vr}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Vr}-submenu > ${Vr}-submenu-title`]:xt,[`& ${Vr}-item-group-title`]:{paddingInlineStart:kt}},[`${Vr}-item`]:xt}},{[`${Vr}-inline-collapsed`]:{width:Un,[`&${Vr}-root`]:{[`${Vr}-item, ${Vr}-submenu ${Vr}-submenu-title`]:{[`> ${Vr}-inline-collapsed-noicon`]:{fontSize:vr,textAlign:"center"}}},[`> ${Vr}-item, + > ${Vr}-item-group > ${Vr}-item-group-list > ${Vr}-item, + > ${Vr}-item-group > ${Vr}-item-group-list > ${Vr}-submenu > ${Vr}-submenu-title, + > ${Vr}-submenu > ${Vr}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Nt.bf)(no.calc(vr).div(2).equal())} - ${(0,Nt.bf)(vn)})`,textOverflow:"clip",[` + ${Vr}-submenu-arrow, + ${Vr}-submenu-expand-icon + `]:{opacity:0},[`${Vr}-item-icon, ${Rn}`]:{margin:0,fontSize:dn,lineHeight:(0,Nt.bf)(Xt),"+ span":{display:"inline-block",opacity:0}}},[`${Vr}-item-icon, ${Rn}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Vr}-item-icon, ${Rn}`]:{display:"none"},"a, a:hover":{color:Sn}},[`${Vr}-item-group-title`]:Object.assign(Object.assign({},vt.vS),{paddingInline:Ni})}}]};const Vi=no=>{const{componentCls:Vr,motionDurationSlow:Rn,motionDurationMid:Xt,motionEaseInOut:Sn,motionEaseOut:Pn,iconCls:hr,iconSize:mt,iconMarginInlineEnd:tt}=no;return{[`${Vr}-item, ${Vr}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Rn}`,`background ${Rn}`,`padding ${Rn} ${Sn}`].join(","),[`${Vr}-item-icon, ${hr}`]:{minWidth:mt,fontSize:mt,transition:[`font-size ${Xt} ${Pn}`,`margin ${Rn} ${Sn}`,`color ${Rn}`].join(","),"+ span":{marginInlineStart:tt,opacity:1,transition:[`opacity ${Rn} ${Sn}`,`margin ${Rn}`,`color ${Rn}`].join(",")}},[`${Vr}-item-icon`]:Object.assign({},(0,vt.Ro)()),[`&${Vr}-item-only-child`]:{[`> ${hr}, > ${Vr}-item-icon`]:{marginInlineEnd:0}}},[`${Vr}-item-disabled, ${Vr}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Vr}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ro=no=>{const{componentCls:Vr,motionDurationSlow:Rn,motionEaseInOut:Xt,borderRadius:Sn,menuArrowSize:Pn,menuArrowOffset:hr}=no;return{[`${Vr}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:no.margin,width:Pn,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Rn} ${Xt}, opacity ${Rn}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:no.calc(Pn).mul(.6).equal(),height:no.calc(Pn).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Sn,transition:[`background ${Rn} ${Xt}`,`transform ${Rn} ${Xt}`,`top ${Rn} ${Xt}`,`color ${Rn} ${Xt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Nt.bf)(no.calc(hr).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Nt.bf)(hr)})`}}}}},ai=no=>{const{antCls:Vr,componentCls:Rn,fontSize:Xt,motionDurationSlow:Sn,motionDurationMid:Pn,motionEaseInOut:hr,paddingXS:mt,padding:tt,colorSplit:kt,lineWidth:vn,zIndexPopup:vr,borderRadiusLG:qr,subMenuItemBorderRadius:Ni,menuArrowSize:li,menuArrowOffset:Un,lineType:dn,groupTitleLineHeight:xt,groupTitleFontSize:it}=no;return[{"":{[`${Rn}`]:Object.assign(Object.assign({},(0,vt.dF)()),{["&-hidden"]:{display:"none"}})},[`${Rn}-submenu-hidden`]:{display:"none"}},{[Rn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,vt.Wf)(no)),(0,vt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Xt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Sn} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${Rn}-item`]:{flex:"none"}},[`${Rn}-item, ${Rn}-submenu, ${Rn}-submenu-title`]:{borderRadius:no.itemBorderRadius},[`${Rn}-item-group-title`]:{padding:`${(0,Nt.bf)(mt)} ${(0,Nt.bf)(tt)}`,fontSize:it,lineHeight:xt,transition:`all ${Sn}`},[`&-horizontal ${Rn}-submenu`]:{transition:[`border-color ${Sn} ${hr}`,`background ${Sn} ${hr}`].join(",")},[`${Rn}-submenu, ${Rn}-submenu-inline`]:{transition:[`border-color ${Sn} ${hr}`,`background ${Sn} ${hr}`,`padding ${Pn} ${hr}`].join(",")},[`${Rn}-submenu ${Rn}-sub`]:{cursor:"initial",transition:[`background ${Sn} ${hr}`,`padding ${Sn} ${hr}`].join(",")},[`${Rn}-title-content`]:{transition:`color ${Sn}`,[`> ${Vr}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${Rn}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Rn}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:dn,borderWidth:0,borderTopWidth:vn,marginBlock:vn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vi(no)),{[`${Rn}-item-group`]:{[`${Rn}-item-group-list`]:{margin:0,padding:0,[`${Rn}-item, ${Rn}-submenu-title`]:{paddingInline:`${(0,Nt.bf)(no.calc(Xt).mul(2).equal())} ${(0,Nt.bf)(tt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:vr,borderRadius:qr,boxShadow:"none",transformOrigin:"0 0",[`&${Rn}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Rn}`]:Object.assign(Object.assign(Object.assign({borderRadius:qr},Vi(no)),ro(no)),{[`${Rn}-item, ${Rn}-submenu > ${Rn}-submenu-title`]:{borderRadius:Ni},[`${Rn}-submenu-title::after`]:{transition:`transform ${Sn} ${hr}`}})},[` &-placement-leftTop, &-placement-bottomRight, `]:{transformOrigin:"100% 0"},[` @@ -7121,101 +7116,101 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{transformOrigin:"0 0"},[` &-placement-leftTop, &-placement-leftBottom - `]:{paddingInlineEnd:cv.paddingXS},[` + `]:{paddingInlineEnd:no.paddingXS},[` &-placement-rightTop, &-placement-rightBottom - `]:{paddingInlineStart:cv.paddingXS},[` + `]:{paddingInlineStart:no.paddingXS},[` &-placement-topRight, &-placement-topLeft - `]:{paddingBottom:cv.paddingXS},[` + `]:{paddingBottom:no.paddingXS},[` &-placement-bottomRight, &-placement-bottomLeft - `]:{paddingTop:cv.paddingXS}}}),iv(cv)),{[`&-inline-collapsed ${uu}-submenu-arrow, - &-inline ${uu}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ai.bf)(Mo)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ai.bf)(cv.calc(Mo).mul(-1).equal())})`}},[`${uu}-submenu-open${uu}-submenu-inline > ${uu}-submenu-title > ${uu}-submenu-arrow`]:{transform:`translateY(${(0,ai.bf)(cv.calc(Wo).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ai.bf)(cv.calc(Mo).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ai.bf)(Mo)})`}}})},{[`${Gg}-layout-header`]:{[uu]:{lineHeight:"inherit"}}}]},B1=cv=>{var Gg,uu,Gs;const{colorPrimary:Ia,colorError:lu,colorTextDisabled:_h,colorErrorBg:Kr,colorText:fr,colorTextDescription:ri,colorBgContainer:Ra,colorFillAlter:Sg,colorFillContent:Jg,lineWidth:j0,lineWidthBold:Wo,controlItemBgActive:Mo,colorBgTextHover:qr,controlHeightLG:On,lineHeight:rn,colorBgElevated:ui,marginXXS:ya,padding:gd,fontSize:Su,controlHeightSM:xu,fontSizeLG:xa,colorTextLightSolid:Td,colorErrorHover:jg}=cv,Wa=(Gg=cv.activeBarWidth)!==null&&Gg!==void 0?Gg:0,tv=(uu=cv.activeBarBorderWidth)!==null&&uu!==void 0?uu:j0,Bs=(Gs=cv.itemMarginInline)!==null&&Gs!==void 0?Gs:cv.marginXXS,Sa=new gt.C(Td).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:cv.zIndexPopupBase+50,radiusItem:cv.borderRadiusLG,itemBorderRadius:cv.borderRadiusLG,radiusSubMenuItem:cv.borderRadiusSM,subMenuItemBorderRadius:cv.borderRadiusSM,colorItemText:fr,itemColor:fr,colorItemTextHover:fr,itemHoverColor:fr,colorItemTextHoverHorizontal:Ia,horizontalItemHoverColor:Ia,colorGroupTitle:ri,groupTitleColor:ri,colorItemTextSelected:Ia,itemSelectedColor:Ia,colorItemTextSelectedHorizontal:Ia,horizontalItemSelectedColor:Ia,colorItemBg:Ra,itemBg:Ra,colorItemBgHover:qr,itemHoverBg:qr,colorItemBgActive:Jg,itemActiveBg:Mo,colorSubItemBg:Sg,subMenuItemBg:Sg,colorItemBgSelected:Mo,itemSelectedBg:Mo,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Wa,colorActiveBarHeight:Wo,activeBarHeight:Wo,colorActiveBarBorderSize:j0,activeBarBorderWidth:tv,colorItemTextDisabled:_h,itemDisabledColor:_h,colorDangerItemText:lu,dangerItemColor:lu,colorDangerItemTextHover:lu,dangerItemHoverColor:lu,colorDangerItemTextSelected:lu,dangerItemSelectedColor:lu,colorDangerItemBgActive:Kr,dangerItemActiveBg:Kr,colorDangerItemBgSelected:Kr,dangerItemSelectedBg:Kr,itemMarginInline:Bs,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:On,groupTitleLineHeight:rn,collapsedWidth:On*2,popupBg:ui,itemMarginBlock:ya,itemPaddingInline:gd,horizontalLineHeight:`${On*1.15}px`,iconSize:Su,iconMarginInlineEnd:xu-Su,collapsedIconSize:xa,groupTitleFontSize:Su,darkItemDisabledColor:new gt.C(Td).setAlpha(.25).toRgbString(),darkItemColor:Sa,darkDangerItemColor:lu,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Td,darkItemSelectedBg:Ia,darkDangerItemSelectedBg:lu,darkItemHoverBg:"transparent",darkGroupTitleColor:Sa,darkItemHoverColor:Td,darkDangerItemHoverColor:jg,darkDangerItemSelectedColor:Td,darkDangerItemActiveBg:lu,itemWidth:Wa?`calc(100% + ${tv}px)`:`calc(100% - ${Bs*2}px)`}};var Dg=function(cv){let Gg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cv,uu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Pa.I$)("Menu",Ia=>{const{colorBgElevated:lu,colorPrimary:_h,colorTextLightSolid:Kr,controlHeightLG:fr,fontSize:ri,darkItemColor:Ra,darkDangerItemColor:Sg,darkItemBg:Jg,darkSubMenuItemBg:j0,darkItemSelectedColor:Wo,darkItemSelectedBg:Mo,darkDangerItemSelectedBg:qr,darkItemHoverBg:On,darkGroupTitleColor:rn,darkItemHoverColor:ui,darkItemDisabledColor:ya,darkDangerItemHoverColor:gd,darkDangerItemSelectedColor:Su,darkDangerItemActiveBg:xu,popupBg:xa,darkPopupBg:Td}=Ia,jg=Ia.calc(ri).div(7).mul(5).equal(),Wa=(0,Aa.TS)(Ia,{menuArrowSize:jg,menuHorizontalHeight:Ia.calc(fr).mul(1.15).equal(),menuArrowOffset:Ia.calc(jg).mul(.25).equal(),menuSubMenuBg:lu,calc:Ia.calc,popupBg:xa}),tv=(0,Aa.TS)(Wa,{itemColor:Ra,itemHoverColor:ui,groupTitleColor:rn,itemSelectedColor:Wo,itemBg:Jg,popupBg:Td,subMenuItemBg:j0,itemActiveBg:"transparent",itemSelectedBg:Mo,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:On,itemDisabledColor:ya,dangerItemColor:Sg,dangerItemHoverColor:gd,dangerItemSelectedColor:Su,dangerItemActiveBg:xu,dangerItemSelectedBg:qr,menuSubMenuBg:j0,horizontalItemSelectedColor:Kr,horizontalItemSelectedBg:_h});return[u0(Wa),Ug(Wa),k0(Wa),jv(Wa,"light"),jv(tv,"dark"),H0(Wa),(0,Ht.Z)(Wa),(0,Zs.oN)(Wa,"slide-up"),(0,Zs.oN)(Wa,"slide-down"),(0,oi._y)(Wa,"zoom-big")]},B1,{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:uu,unitless:{groupTitleLineHeight:!0}})(cv,Gg)},zo=l(26504),mu=function(cv,Gg){var uu={};for(var Gs in cv)Object.prototype.hasOwnProperty.call(cv,Gs)&&Gg.indexOf(Gs)<0&&(uu[Gs]=cv[Gs]);if(cv!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ia=0,Gs=Object.getOwnPropertySymbols(cv);Ia{var uu,Gs;const Ia=u.useContext(Ca.Z),lu=Ia||{},{getPrefixCls:_h,getPopupContainer:Kr,direction:fr,menu:ri}=u.useContext(rt.E_),Ra=_h(),{prefixCls:Sg,className:Jg,style:j0,theme:Wo="light",expandIcon:Mo,_internalDisableMenuItemTitleTooltip:qr,inlineCollapsed:On,siderCollapsed:rn,items:ui,children:ya,rootClassName:gd,mode:Su,selectable:xu,onClick:xa,overflowedIndicatorPopupClassName:Td}=cv,jg=mu(cv,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wa=(0,Ie.Z)(jg,["collapsedWidth"]),tv=vn(ui)||ya;(uu=lu.validator)===null||uu===void 0||uu.call(lu,{mode:Su});const Bs=(0,ze.zX)(function(){var u1;xa==null||xa.apply(void 0,arguments),(u1=lu.onClick)===null||u1===void 0||u1.call(lu)}),Sa=lu.mode||Su,$a=xu!=null?xu:lu.selectable,Bd=u.useMemo(()=>rn!==void 0?rn:On,[On,rn]),Bg={horizontal:{motionName:`${Ra}-slide-up`},inline:(0,ct.Z)(Ra),other:{motionName:`${Ra}-zoom-big`}},Og=_h("menu",Sg||lu.prefixCls),g0=(0,zo.Z)(Og),[qg,Xg,A0]=Dg(Og,g0,!Ia),nv=x()(`${Og}-${Wo}`,ri==null?void 0:ri.className,Jg);let t0;if(typeof Mo=="function")t0=Mo;else if(Mo===null||Mo===!1)t0=null;else if(lu.expandIcon===null||lu.expandIcon===!1)t0=null;else{const u1=Mo!=null?Mo:lu.expandIcon;t0=(0,At.Tm)(u1,{className:x()(`${Og}-submenu-expand-icon`,(0,At.l$)(u1)?(Gs=u1.props)===null||Gs===void 0?void 0:Gs.className:"")})}const n0=u.useMemo(()=>({prefixCls:Og,inlineCollapsed:Bd||!1,direction:fr,firstLevel:!0,theme:Wo,mode:Sa,disableMenuItemTitleTooltip:qr}),[Og,Bd,fr,qr,Wo]);return qg(u.createElement(Ca.Z.Provider,{value:null},u.createElement(Yn.Provider,{value:n0},u.createElement(D.ZP,Object.assign({getPopupContainer:Kr,overflowedIndicator:u.createElement(ie.Z,null),overflowedIndicatorPopupClassName:x()(Og,`${Og}-${Wo}`,Td),mode:Sa,selectable:$a,onClick:Bs},Wa,{inlineCollapsed:Bd,style:Object.assign(Object.assign({},ri==null?void 0:ri.style),j0),className:nv,prefixCls:Og,direction:fr,defaultMotions:Bg,expandIcon:t0,ref:Gg,rootClassName:x()(gd,Xg,lu.rootClassName,A0,g0)}),tv))))});const L0=(0,u.forwardRef)((cv,Gg)=>{const uu=(0,u.useRef)(null),Gs=u.useContext(a);return(0,u.useImperativeHandle)(Gg,()=>({menu:uu.current,focus:Ia=>{var lu;(lu=uu.current)===null||lu===void 0||lu.focus(Ia)}})),u.createElement(c0,Object.assign({ref:uu},cv,Gs))});L0.Item=_n,L0.SubMenu=Rt,L0.Divider=wn,L0.ItemGroup=D.BW;var $0=L0},31222:function(c,g,l){"use strict";l.d(g,{ZP:function(){return tv}});var u=l(49397),D=l(77617),b=l(59905);const x=D.createContext({}),y=D.createContext({message:{},notification:{},modal:{}});var w=null,a=l(58798),S=l(64495),I=l(50555),N=l(43418),ie=l(81664),ze=l(20906),Ie=l(20555),ct=l(92310),At=l.n(ct),rt=l(35372),It=l(56348),Ot=l(54131),wn=l(79161),Hs=l(79384),jr=l(16514),Jr=l(44516),Yn=l(39193),Lt=D.forwardRef(function(Bs,Sa){var $a=Bs.prefixCls,Bd=Bs.style,Bg=Bs.className,Og=Bs.duration,g0=Og===void 0?4.5:Og,qg=Bs.eventKey,Xg=Bs.content,A0=Bs.closable,nv=Bs.closeIcon,t0=nv===void 0?"x":nv,n0=Bs.props,u1=Bs.onClick,Eg=Bs.onNoticeClose,a1=Bs.times,Hg=Bs.hovering,Gd=D.useState(!1),h0=(0,rt.Z)(Gd,2),lv=h0[0],su=h0[1],hu=Hg||lv,ev=function(){Eg(qg)},sv=function(E0){(E0.key==="Enter"||E0.code==="Enter"||E0.keyCode===Yn.Z.ENTER)&&ev()};D.useEffect(function(){if(!hu&&g0>0){var $v=setTimeout(function(){ev()},g0*1e3);return function(){clearTimeout($v)}}},[g0,hu,a1]);var yv="".concat($a,"-notice");return D.createElement("div",(0,Hs.Z)({},n0,{ref:Sa,className:At()(yv,Bg,(0,jr.Z)({},"".concat(yv,"-closable"),A0)),style:Bd,onMouseEnter:function(E0){var E1;su(!0),n0==null||(E1=n0.onMouseEnter)===null||E1===void 0||E1.call(n0,E0)},onMouseLeave:function(E0){var E1;su(!1),n0==null||(E1=n0.onMouseLeave)===null||E1===void 0||E1.call(n0,E0)},onClick:u1}),D.createElement("div",{className:"".concat(yv,"-content")},Xg),A0&&D.createElement("a",{tabIndex:0,className:"".concat(yv,"-close"),onKeyDown:sv,onClick:function(E0){E0.preventDefault(),E0.stopPropagation(),ev()}},t0))}),_n=Lt,Mt=D.createContext({}),Bt=function(Sa){var $a=Sa.children,Bd=Sa.classNames;return D.createElement(Mt.Provider,{value:{classNames:Bd}},$a)},Rt=Bt,on=l(13255),Hr=8,vn=3,Ca=16,ai=function(Sa){var $a={offset:Hr,threshold:vn,gap:Ca};if(Sa&&(0,on.Z)(Sa)==="object"){var Bd,Bg,Og;$a.offset=(Bd=Sa.offset)!==null&&Bd!==void 0?Bd:Hr,$a.threshold=(Bg=Sa.threshold)!==null&&Bg!==void 0?Bg:vn,$a.gap=(Og=Sa.gap)!==null&&Og!==void 0?Og:Ca}return[!!Sa,$a]},gt=ai,Zr=["className","style","classNames","styles"],Ht=function(Sa){var $a,Bd=Sa.configList,Bg=Sa.placement,Og=Sa.prefixCls,g0=Sa.className,qg=Sa.style,Xg=Sa.motion,A0=Sa.onAllNoticeRemoved,nv=Sa.onNoticeClose,t0=Sa.stack,n0=(0,D.useContext)(Mt),u1=n0.classNames,Eg=(0,D.useRef)({}),a1=(0,D.useState)(null),Hg=(0,rt.Z)(a1,2),Gd=Hg[0],h0=Hg[1],lv=(0,D.useState)([]),su=(0,rt.Z)(lv,2),hu=su[0],ev=su[1],sv=Bd.map(function(R0){return{config:R0,key:String(R0.key)}}),yv=gt(t0),$v=(0,rt.Z)(yv,2),E0=$v[0],E1=$v[1],$1=E1.offset,l0=E1.threshold,z0=E1.gap,W0=E0&&(hu.length>0||sv.length<=l0),Rv=typeof Xg=="function"?Xg(Bg):Xg;return(0,D.useEffect)(function(){E0&&hu.length>1&&ev(function(R0){return R0.filter(function(gv){return sv.some(function(G1){var xy=G1.key;return gv===xy})})})},[hu,sv,E0]),(0,D.useEffect)(function(){var R0;if(E0&&Eg.current[(R0=sv[sv.length-1])===null||R0===void 0?void 0:R0.key]){var gv;h0(Eg.current[(gv=sv[sv.length-1])===null||gv===void 0?void 0:gv.key])}},[sv,E0]),D.createElement(Jr.V4,(0,Hs.Z)({key:Bg,className:At()(Og,"".concat(Og,"-").concat(Bg),u1==null?void 0:u1.list,g0,($a={},(0,jr.Z)($a,"".concat(Og,"-stack"),!!E0),(0,jr.Z)($a,"".concat(Og,"-stack-expanded"),W0),$a)),style:qg,keys:sv,motionAppear:!0},Rv,{onAllRemoved:function(){A0(Bg)}}),function(R0,gv){var G1=R0.config,xy=R0.className,Dy=R0.style,H1=R0.index,xd=G1,Yg=xd.key,r0=xd.times,No=String(Yg),qt=G1,Sr=qt.className,si=qt.style,Rs=qt.classNames,wa=qt.styles,bu=(0,It.Z)(qt,Zr),s0=sv.findIndex(function(wy){return wy.key===No}),In={};if(E0){var ga=sv.length-1-(s0>-1?s0:H1-1),Ga=Bg==="top"||Bg==="bottom"?"-50%":"0";if(ga>0){var Lu,dv,Cv;In.height=W0?(Lu=Eg.current[No])===null||Lu===void 0?void 0:Lu.offsetHeight:Gd==null?void 0:Gd.offsetHeight;for(var Wv=0,c1=0;c1-1?Eg.current[No]=zy:delete Eg.current[No]},prefixCls:Og,classNames:Rs,styles:wa,className:At()(Sr,u1==null?void 0:u1.notice),style:si,times:r0,key:Yg,eventKey:Yg,onNoticeClose:nv,hovering:E0&&hu.length>0})))})},Zs=Ht,oi=D.forwardRef(function(Bs,Sa){var $a=Bs.prefixCls,Bd=$a===void 0?"rc-notification":$a,Bg=Bs.container,Og=Bs.motion,g0=Bs.maxCount,qg=Bs.className,Xg=Bs.style,A0=Bs.onAllRemoved,nv=Bs.stack,t0=Bs.renderNotifications,n0=D.useState([]),u1=(0,rt.Z)(n0,2),Eg=u1[0],a1=u1[1],Hg=function($v){var E0,E1=Eg.find(function($1){return $1.key===$v});E1==null||(E0=E1.onClose)===null||E0===void 0||E0.call(E1),a1(function($1){return $1.filter(function(l0){return l0.key!==$v})})};D.useImperativeHandle(Sa,function(){return{open:function($v){a1(function(E0){var E1=(0,u.Z)(E0),$1=E1.findIndex(function(W0){return W0.key===$v.key}),l0=(0,Ot.Z)({},$v);if($1>=0){var z0;l0.times=(((z0=E0[$1])===null||z0===void 0?void 0:z0.times)||0)+1,E1[$1]=l0}else l0.times=0,E1.push(l0);return g0>0&&E1.length>g0&&(E1=E1.slice(-g0)),E1})},close:function($v){Hg($v)},destroy:function(){a1([])}}});var Gd=D.useState({}),h0=(0,rt.Z)(Gd,2),lv=h0[0],su=h0[1];D.useEffect(function(){var yv={};Eg.forEach(function($v){var E0=$v.placement,E1=E0===void 0?"topRight":E0;E1&&(yv[E1]=yv[E1]||[],yv[E1].push($v))}),Object.keys(lv).forEach(function($v){yv[$v]=yv[$v]||[]}),su(yv)},[Eg]);var hu=function($v){su(function(E0){var E1=(0,Ot.Z)({},E0),$1=E1[$v]||[];return $1.length||delete E1[$v],E1})},ev=D.useRef(!1);if(D.useEffect(function(){Object.keys(lv).length>0?ev.current=!0:ev.current&&(A0==null||A0(),ev.current=!1)},[lv]),!Bg)return null;var sv=Object.keys(lv);return(0,wn.createPortal)(D.createElement(D.Fragment,null,sv.map(function(yv){var $v=lv[yv],E0=D.createElement(Zs,{key:yv,configList:$v,placement:yv,prefixCls:Bd,className:qg==null?void 0:qg(yv),style:Xg==null?void 0:Xg(yv),motion:Og,onNoticeClose:Hg,onAllNoticeRemoved:hu,stack:nv});return t0?t0(E0,{prefixCls:Bd,key:yv}):E0})),Bg)}),Pa=oi,Aa=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Pg=function(){return document.body},Ug=0;function e0(){for(var Bs={},Sa=arguments.length,$a=new Array(Sa),Bd=0;Bd0&&arguments[0]!==void 0?arguments[0]:{},Sa=Bs.getContainer,$a=Sa===void 0?Pg:Sa,Bd=Bs.motion,Bg=Bs.prefixCls,Og=Bs.maxCount,g0=Bs.className,qg=Bs.style,Xg=Bs.onAllRemoved,A0=Bs.stack,nv=Bs.renderNotifications,t0=(0,It.Z)(Bs,Aa),n0=D.useState(),u1=(0,rt.Z)(n0,2),Eg=u1[0],a1=u1[1],Hg=D.useRef(),Gd=D.createElement(Pa,{container:Eg,ref:Hg,prefixCls:Bg,motion:Bd,maxCount:Og,className:g0,style:qg,onAllRemoved:Xg,stack:A0,renderNotifications:nv}),h0=D.useState([]),lv=(0,rt.Z)(h0,2),su=lv[0],hu=lv[1],ev=D.useMemo(function(){return{open:function(yv){var $v=e0(t0,yv);($v.key===null||$v.key===void 0)&&($v.key="rc-notification-".concat(Ug),Ug+=1),hu(function(E0){return[].concat((0,u.Z)(E0),[{type:"open",config:$v}])})},close:function(yv){hu(function($v){return[].concat((0,u.Z)($v),[{type:"close",key:yv}])})},destroy:function(){hu(function(yv){return[].concat((0,u.Z)(yv),[{type:"destroy"}])})}}},[]);return D.useEffect(function(){a1($a())}),D.useEffect(function(){Hg.current&&su.length&&(su.forEach(function(sv){switch(sv.type){case"open":Hg.current.open(sv.config);break;case"close":Hg.current.close(sv.key);break;case"destroy":Hg.current.destroy();break}}),hu(function(sv){return sv.filter(function(yv){return!su.includes(yv)})}))},[su]),[ev,Gd]}var X0=l(78600),d0=l(40870),jv=l(91110),Lv=l(79263),Je=l(90882);const k0=Bs=>{const{componentCls:Sa,iconCls:$a,boxShadow:Bd,colorText:Bg,colorSuccess:Og,colorError:g0,colorWarning:qg,colorInfo:Xg,fontSizeLG:A0,motionEaseInOutCirc:nv,motionDurationSlow:t0,marginXS:n0,paddingXS:u1,borderRadiusLG:Eg,zIndexPopup:a1,contentPadding:Hg,contentBg:Gd}=Bs,h0=`${Sa}-notice`,lv=new X0.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:u1,transform:"translateY(0)",opacity:1}}),su=new X0.E4("MessageMoveOut",{"0%":{maxHeight:Bs.height,padding:u1,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),hu={padding:u1,textAlign:"center",[`${Sa}-custom-content > ${$a}`]:{verticalAlign:"text-bottom",marginInlineEnd:n0,fontSize:A0},[`${h0}-content`]:{display:"inline-block",padding:Hg,background:Gd,borderRadius:Eg,boxShadow:Bd,pointerEvents:"all"},[`${Sa}-success > ${$a}`]:{color:Og},[`${Sa}-error > ${$a}`]:{color:g0},[`${Sa}-warning > ${$a}`]:{color:qg},[`${Sa}-info > ${$a}, - ${Sa}-loading > ${$a}`]:{color:Xg}};return[{[Sa]:Object.assign(Object.assign({},(0,jv.Wf)(Bs)),{color:Bg,position:"fixed",top:n0,width:"100%",pointerEvents:"none",zIndex:a1,[`${Sa}-move-up`]:{animationFillMode:"forwards"},[` - ${Sa}-move-up-appear, - ${Sa}-move-up-enter - `]:{animationName:lv,animationDuration:t0,animationPlayState:"paused",animationTimingFunction:nv},[` - ${Sa}-move-up-appear${Sa}-move-up-appear-active, - ${Sa}-move-up-enter${Sa}-move-up-enter-active - `]:{animationPlayState:"running"},[`${Sa}-move-up-leave`]:{animationName:su,animationDuration:t0,animationPlayState:"paused",animationTimingFunction:nv},[`${Sa}-move-up-leave${Sa}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[Sa]:{[`${h0}-wrapper`]:Object.assign({},hu)}},{[`${Sa}-notice-pure-panel`]:Object.assign(Object.assign({},hu),{padding:0,textAlign:"start"})}]},G0=Bs=>({zIndexPopup:Bs.zIndexPopupBase+d0.u6+10,contentBg:Bs.colorBgElevated,contentPadding:`${(Bs.controlHeightLG-Bs.fontSize*Bs.lineHeight)/2}px ${Bs.paddingSM}px`});var iv=(0,Lv.I$)("Message",Bs=>{const Sa=(0,Je.TS)(Bs,{height:150});return[k0(Sa)]},G0),u0=l(26504),B1=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bg{let{prefixCls:Sa,type:$a,icon:Bd,children:Bg}=Bs;return D.createElement("div",{className:At()(`${Sa}-custom-content`,`${Sa}-${$a}`)},Bd||Dg[$a],D.createElement("span",null,Bg))};var Ag=Bs=>{const{prefixCls:Sa,className:$a,type:Bd,icon:Bg,content:Og}=Bs,g0=B1(Bs,["prefixCls","className","type","icon","content"]),{getPrefixCls:qg}=D.useContext(a.E_),Xg=Sa||qg("message"),A0=(0,u0.Z)(Xg),[nv,t0,n0]=iv(Xg,A0);return nv(D.createElement(_n,Object.assign({},g0,{prefixCls:Xg,className:At()($a,t0,`${Xg}-notice-pure-panel`,n0,A0),eventKey:"pure",duration:null,content:D.createElement(zo,{prefixCls:Xg,type:Bd,icon:Bg},Og)})))},c0=l(4531),L0=l(80074);function $0(Bs,Sa){return{motionName:Sa!=null?Sa:`${Bs}-move-up`}}function cv(Bs){let Sa;const $a=new Promise(Bg=>{Sa=Bs(()=>{Bg(!0)})}),Bd=()=>{Sa==null||Sa()};return Bd.then=(Bg,Og)=>$a.then(Bg,Og),Bd.promise=$a,Bd}var Gg=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bg{let{children:Sa,prefixCls:$a}=Bs;const Bd=(0,u0.Z)($a),[Bg,Og,g0]=iv($a,Bd);return Bg(D.createElement(Rt,{classNames:{list:At()(Og,g0,Bd)}},Sa))},lu=(Bs,Sa)=>{let{prefixCls:$a,key:Bd}=Sa;return D.createElement(Ia,{prefixCls:$a,key:Bd},Bs)},_h=D.forwardRef((Bs,Sa)=>{const{top:$a,prefixCls:Bd,getContainer:Bg,maxCount:Og,duration:g0=Gs,rtl:qg,transitionName:Xg,onAllRemoved:A0}=Bs,{getPrefixCls:nv,getPopupContainer:t0,message:n0,direction:u1}=D.useContext(a.E_),Eg=Bd||nv("message"),a1=()=>({left:"50%",transform:"translateX(-50%)",top:$a!=null?$a:uu}),Hg=()=>At()({[`${Eg}-rtl`]:qg!=null?qg:u1==="rtl"}),Gd=()=>$0(Eg,Xg),h0=D.createElement("span",{className:`${Eg}-close-x`},D.createElement(c0.Z,{className:`${Eg}-close-icon`})),[lv,su]=H0({prefixCls:Eg,style:a1,className:Hg,motion:Gd,closable:!1,closeIcon:h0,duration:g0,getContainer:()=>(Bg==null?void 0:Bg())||(t0==null?void 0:t0())||document.body,maxCount:Og,onAllRemoved:A0,renderNotifications:lu});return D.useImperativeHandle(Sa,()=>Object.assign(Object.assign({},lv),{prefixCls:Eg,message:n0})),su});let Kr=0;function fr(Bs){const Sa=D.useRef(null),$a=(0,L0.ln)("Message");return[D.useMemo(()=>{const Bg=A0=>{var nv;(nv=Sa.current)===null||nv===void 0||nv.close(A0)},Og=A0=>{if(!Sa.current){const sv=()=>{};return sv.then=()=>{},sv}const{open:nv,prefixCls:t0,message:n0}=Sa.current,u1=`${t0}-notice`,{content:Eg,icon:a1,type:Hg,key:Gd,className:h0,style:lv,onClose:su}=A0,hu=Gg(A0,["content","icon","type","key","className","style","onClose"]);let ev=Gd;return ev==null&&(Kr+=1,ev=`antd-message-${Kr}`),cv(sv=>(nv(Object.assign(Object.assign({},hu),{key:ev,content:D.createElement(zo,{prefixCls:t0,type:Hg,icon:a1},Eg),placement:"top",className:At()(Hg&&`${u1}-${Hg}`,h0,n0==null?void 0:n0.className),style:Object.assign(Object.assign({},n0==null?void 0:n0.style),lv),onClose:()=>{su==null||su(),sv()}})),()=>{Bg(ev)}))},qg={open:Og,destroy:A0=>{var nv;A0!==void 0?Bg(A0):(nv=Sa.current)===null||nv===void 0||nv.destroy()}};return["info","success","warning","error","loading"].forEach(A0=>{const nv=(t0,n0,u1)=>{let Eg;t0&&typeof t0=="object"&&"content"in t0?Eg=t0:Eg={content:t0};let a1,Hg;typeof n0=="function"?Hg=n0:(a1=n0,Hg=u1);const Gd=Object.assign(Object.assign({onClose:Hg,duration:a1},Eg),{type:A0});return Og(Gd)};qg[A0]=nv}),qg},[]),D.createElement(_h,Object.assign({key:"message-holder"},Bs,{ref:Sa}))]}function ri(Bs){return fr(Bs)}let Ra=null,Sg=Bs=>Bs(),Jg=[],j0={};function Wo(){const{getContainer:Bs,duration:Sa,rtl:$a,maxCount:Bd,top:Bg}=j0,Og=(Bs==null?void 0:Bs())||document.body;return{getContainer:()=>Og,duration:Sa,rtl:$a,maxCount:Bd,top:Bg}}const Mo=D.forwardRef((Bs,Sa)=>{const{messageConfig:$a,sync:Bd}=Bs,{getPrefixCls:Bg}=(0,D.useContext)(a.E_),Og=j0.prefixCls||Bg("message"),g0=(0,D.useContext)(x),[qg,Xg]=fr(Object.assign(Object.assign(Object.assign({},$a),{prefixCls:Og}),g0.message));return D.useImperativeHandle(Sa,()=>{const A0=Object.assign({},qg);return Object.keys(A0).forEach(nv=>{A0[nv]=function(){return Bd(),qg[nv].apply(qg,arguments)}}),{instance:A0,sync:Bd}}),Xg}),qr=D.forwardRef((Bs,Sa)=>{const[$a,Bd]=D.useState(Wo),Bg=()=>{Bd(Wo)};D.useEffect(Bg,[]);const Og=(0,S.w6)(),g0=Og.getRootPrefixCls(),qg=Og.getIconPrefixCls(),Xg=Og.getTheme(),A0=D.createElement(Mo,{ref:Sa,sync:Bg,messageConfig:$a});return D.createElement(S.ZP,{prefixCls:g0,iconPrefixCls:qg,theme:Xg},Og.holderRender?Og.holderRender(A0):A0)});function On(){if(!Ra){const Bs=document.createDocumentFragment(),Sa={fragment:Bs};Ra=Sa,Sg(()=>{(0,b.s)(D.createElement(qr,{ref:$a=>{const{instance:Bd,sync:Bg}=$a||{};Promise.resolve().then(()=>{!Sa.instance&&Bd&&(Sa.instance=Bd,Sa.sync=Bg,On())})}}),Bs)});return}Ra.instance&&(Jg.forEach(Bs=>{const{type:Sa,skipped:$a}=Bs;if(!$a)switch(Sa){case"open":{Sg(()=>{const Bd=Ra.instance.open(Object.assign(Object.assign({},j0),Bs.config));Bd==null||Bd.then(Bs.resolve),Bs.setCloseFn(Bd)});break}case"destroy":Sg(()=>{Ra==null||Ra.instance.destroy(Bs.key)});break;default:Sg(()=>{var Bd;const Bg=(Bd=Ra.instance)[Sa].apply(Bd,(0,u.Z)(Bs.args));Bg==null||Bg.then(Bs.resolve),Bs.setCloseFn(Bg)})}}),Jg=[])}function rn(Bs){j0=Object.assign(Object.assign({},j0),Bs),Sg(()=>{var Sa;(Sa=Ra==null?void 0:Ra.sync)===null||Sa===void 0||Sa.call(Ra)})}function ui(Bs){const Sa=cv($a=>{let Bd;const Bg={type:"open",config:Bs,resolve:$a,setCloseFn:Og=>{Bd=Og}};return Jg.push(Bg),()=>{Bd?Sg(()=>{Bd()}):Bg.skipped=!0}});return On(),Sa}function ya(Bs,Sa){const $a=(0,S.w6)(),Bd=cv(Bg=>{let Og;const g0={type:Bs,args:Sa,resolve:Bg,setCloseFn:qg=>{Og=qg}};return Jg.push(g0),()=>{Og?Sg(()=>{Og()}):g0.skipped=!0}});return On(),Bd}function gd(Bs){Jg.push({type:"destroy",key:Bs}),On()}const Su=["success","info","warning","error","loading"],xa={open:ui,destroy:gd,config:rn,useMessage:ri,_InternalPanelDoNotUseOrYouWillBeFired:Ag};Su.forEach(Bs=>{xa[Bs]=function(){for(var Sa=arguments.length,$a=new Array(Sa),Bd=0;Bd{};let jg=null,Wa=null;var tv=xa},72450:function(c,g,l){"use strict";l.d(g,{Z:function(){return tv}});var u=l(49397),D=l(77617),b=l(59905),x=l(58798),y=l(64495),w=l(50555),a=l(43418),S=l(81664),I=l(20906),N=l(92310),ie=l.n(N),ze=l(40870),Ie=l(12149),ct=l(50700),At=l(57832),rt=l(58061);const It=D.createContext({}),{Provider:Ot}=It;var Hs=()=>{const{autoFocusButton:Bs,cancelButtonProps:Sa,cancelTextLocale:$a,isSilent:Bd,mergedOkCancel:Bg,rootPrefixCls:Og,close:g0,onCancel:qg,onConfirm:Xg}=(0,D.useContext)(It);return Bg?D.createElement(rt.Z,{isSilent:Bd,actionFn:qg,close:function(){g0==null||g0.apply(void 0,arguments),Xg==null||Xg(!1)},autoFocus:Bs==="cancel",buttonProps:Sa,prefixCls:`${Og}-btn`},$a):null},Jr=()=>{const{autoFocusButton:Bs,close:Sa,isSilent:$a,okButtonProps:Bd,rootPrefixCls:Bg,okTextLocale:Og,okType:g0,onConfirm:qg,onOk:Xg}=(0,D.useContext)(It);return D.createElement(rt.Z,{isSilent:$a,type:g0||"primary",actionFn:Xg,close:function(){Sa==null||Sa.apply(void 0,arguments),qg==null||qg(!0)},autoFocus:Bs==="ok",buttonProps:Bd,prefixCls:`${Bg}-btn`},Og)},Yn=l(4531),Lt=l(6291),_n=l(67445),Mt=l(10254);const Bt=()=>(0,Mt.Z)()&&window.document.documentElement;var Rt=l(13150),on=l(26504),Hr=l(51623),vn=l(55449),Ca=l(46142);function ai(){}const gt=D.createContext({add:ai,remove:ai});function Zr(Bs){const Sa=D.useContext(gt),$a=D.useRef();return(0,Ca.zX)(Bg=>{if(Bg){const Og=Bs?Bg.querySelector(Bs):Bg;Sa.add(Og),$a.current=Og}else Sa.remove($a.current)})}var Ht=null,Zs=l(57801),oi=l(99622),Aa=()=>{const{cancelButtonProps:Bs,cancelTextLocale:Sa,onCancel:$a}=(0,D.useContext)(It);return D.createElement(oi.ZP,Object.assign({onClick:$a},Bs),Sa)},Pg=l(69221),e0=()=>{const{confirmLoading:Bs,okButtonProps:Sa,okType:$a,okTextLocale:Bd,onOk:Bg}=(0,D.useContext)(It);return D.createElement(oi.ZP,Object.assign({},(0,Pg.nx)($a),{loading:Bs,onClick:Bg},Sa),Bd)},H0=l(92747);function X0(Bs,Sa){return D.createElement("span",{className:`${Bs}-close-x`},Sa||D.createElement(Yn.Z,{className:`${Bs}-close-icon`}))}const d0=Bs=>{const{okText:Sa,okType:$a="primary",cancelText:Bd,confirmLoading:Bg,onOk:Og,onCancel:g0,okButtonProps:qg,cancelButtonProps:Xg,footer:A0}=Bs,[nv]=(0,ct.Z)("Modal",(0,H0.A)()),t0=Sa||(nv==null?void 0:nv.okText),n0=Bd||(nv==null?void 0:nv.cancelText),u1={confirmLoading:Bg,okButtonProps:qg,cancelButtonProps:Xg,okTextLocale:t0,cancelTextLocale:n0,okType:$a,onOk:Og,onCancel:g0},Eg=D.useMemo(()=>u1,(0,u.Z)(Object.values(u1)));let a1;return typeof A0=="function"||typeof A0=="undefined"?(a1=D.createElement(D.Fragment,null,D.createElement(Aa,null),D.createElement(e0,null)),typeof A0=="function"&&(a1=A0(a1,{OkBtn:e0,CancelBtn:Aa})),a1=D.createElement(Ot,{value:Eg},a1)):a1=A0,D.createElement(Zs.n,{disabled:!1},a1)};var jv=l(2091),Lv=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bg{Je={x:Bs.pageX,y:Bs.pageY},setTimeout(()=>{Je=null},100)};Bt()&&document.documentElement.addEventListener("click",k0,!0);var iv=Bs=>{var Sa;const{getPopupContainer:$a,getPrefixCls:Bd,direction:Bg,modal:Og}=D.useContext(x.E_),g0=H1=>{const{onCancel:xd}=Bs;xd==null||xd(H1)},qg=H1=>{const{onOk:xd}=Bs;xd==null||xd(H1)},{prefixCls:Xg,className:A0,rootClassName:nv,open:t0,wrapClassName:n0,centered:u1,getContainer:Eg,closeIcon:a1,closable:Hg,focusTriggerAfterClose:Gd=!0,style:h0,visible:lv,width:su=520,footer:hu,classNames:ev,styles:sv}=Bs,yv=Lv(Bs,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),$v=Bd("modal",Xg),E0=Bd(),E1=(0,on.Z)($v),[$1,l0,z0]=(0,jv.ZP)($v,E1),W0=ie()(n0,{[`${$v}-centered`]:!!u1,[`${$v}-wrap-rtl`]:Bg==="rtl"}),Rv=hu!==null&&D.createElement(d0,Object.assign({},Bs,{onOk:qg,onCancel:g0})),[R0,gv]=(0,_n.Z)(Hg,typeof a1!="undefined"?a1:Og==null?void 0:Og.closeIcon,H1=>X0($v,H1),D.createElement(Yn.Z,{className:`${$v}-close-icon`}),!0),G1=Zr(`.${$v}-content`),[xy,Dy]=(0,ze.Cn)("Modal",yv.zIndex);return $1(D.createElement(vn.BR,null,D.createElement(Hr.Ux,{status:!0,override:!0},D.createElement(Rt.Z.Provider,{value:Dy},D.createElement(Lt.Z,Object.assign({width:su},yv,{zIndex:xy,getContainer:Eg===void 0?$a:Eg,prefixCls:$v,rootClassName:ie()(l0,nv,z0,E1),footer:Rv,visible:t0!=null?t0:lv,mousePosition:(Sa=yv.mousePosition)!==null&&Sa!==void 0?Sa:Je,onClose:g0,closable:R0,closeIcon:gv,focusTriggerAfterClose:Gd,transitionName:(0,Ie.m)(E0,"zoom",Bs.transitionName),maskTransitionName:(0,Ie.m)(E0,"fade",Bs.maskTransitionName),className:ie()(l0,A0,Og==null?void 0:Og.className),style:Object.assign(Object.assign({},Og==null?void 0:Og.style),h0),classNames:Object.assign(Object.assign(Object.assign({},Og==null?void 0:Og.classNames),ev),{wrapper:ie()(W0,ev==null?void 0:ev.wrapper)}),styles:Object.assign(Object.assign({},Og==null?void 0:Og.styles),sv),panelRef:G1}))))))},u0=l(78600),B1=l(91110),Dg=l(79263);const zo=Bs=>{const{componentCls:Sa,titleFontSize:$a,titleLineHeight:Bd,modalConfirmIconSize:Bg,fontSize:Og,lineHeight:g0,modalTitleHeight:qg,fontHeight:Xg,confirmBodyPadding:A0}=Bs,nv=`${Sa}-confirm`;return{[nv]:{"&-rtl":{direction:"rtl"},[`${Bs.antCls}-modal-header`]:{display:"none"},[`${nv}-body-wrapper`]:Object.assign({},(0,B1.dF)()),[`&${Sa} ${Sa}-body`]:{padding:A0},[`${nv}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Bs.iconCls}`]:{flex:"none",fontSize:Bg,marginInlineEnd:Bs.confirmIconMarginInlineEnd,marginTop:Bs.calc(Bs.calc(Xg).sub(Bg).equal()).div(2).equal()},[`&-has-title > ${Bs.iconCls}`]:{marginTop:Bs.calc(Bs.calc(qg).sub(Bg).equal()).div(2).equal()}},[`${nv}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:Bs.marginXS,maxWidth:`calc(100% - ${(0,u0.bf)(Bs.calc(Bs.modalConfirmIconSize).add(Bs.marginSM).equal())})`},[`${nv}-title`]:{color:Bs.colorTextHeading,fontWeight:Bs.fontWeightStrong,fontSize:$a,lineHeight:Bd},[`${nv}-content`]:{color:Bs.colorText,fontSize:Og,lineHeight:g0},[`${nv}-btns`]:{textAlign:"end",marginTop:Bs.confirmBtnsMarginTop,[`${Bs.antCls}-btn + ${Bs.antCls}-btn`]:{marginBottom:0,marginInlineStart:Bs.marginXS}}},[`${nv}-error ${nv}-body > ${Bs.iconCls}`]:{color:Bs.colorError},[`${nv}-warning ${nv}-body > ${Bs.iconCls}, - ${nv}-confirm ${nv}-body > ${Bs.iconCls}`]:{color:Bs.colorWarning},[`${nv}-info ${nv}-body > ${Bs.iconCls}`]:{color:Bs.colorInfo},[`${nv}-success ${nv}-body > ${Bs.iconCls}`]:{color:Bs.colorSuccess}}};var mu=(0,Dg.bk)(["Modal","confirm"],Bs=>{const Sa=(0,jv.B4)(Bs);return[zo(Sa)]},jv.eh,{order:-1e3}),Ag=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bgh0,(0,u.Z)(Object.values(h0))),su=D.createElement(D.Fragment,null,D.createElement(Hs,null),D.createElement(Jr,null)),hu=Bs.title!==void 0&&Bs.title!==null,ev=`${Og}-body`;return D.createElement("div",{className:`${Og}-body-wrapper`},D.createElement("div",{className:ie()(ev,{[`${ev}-has-title`]:hu})},t0,D.createElement("div",{className:`${Og}-paragraph`},hu&&D.createElement("span",{className:`${Og}-title`},Bs.title),D.createElement("div",{className:`${Og}-content`},Bs.content))),Xg===void 0||typeof Xg=="function"?D.createElement(Ot,{value:lv},D.createElement("div",{className:`${Og}-btns`},typeof Xg=="function"?Xg(su,{OkBtn:Jr,CancelBtn:Hs}):su)):Xg,D.createElement(mu,{prefixCls:Sa}))}const L0=Bs=>{const{close:Sa,zIndex:$a,afterClose:Bd,open:Bg,keyboard:Og,centered:g0,getContainer:qg,maskStyle:Xg,direction:A0,prefixCls:nv,wrapClassName:t0,rootPrefixCls:n0,bodyStyle:u1,closable:Eg=!1,closeIcon:a1,modalRender:Hg,focusTriggerAfterClose:Gd,onConfirm:h0,styles:lv}=Bs,su=`${nv}-confirm`,hu=Bs.width||416,ev=Bs.style||{},sv=Bs.mask===void 0?!0:Bs.mask,yv=Bs.maskClosable===void 0?!1:Bs.maskClosable,$v=ie()(su,`${su}-${Bs.type}`,{[`${su}-rtl`]:A0==="rtl"},Bs.className),[,E0]=(0,At.ZP)(),E1=D.useMemo(()=>$a!==void 0?$a:E0.zIndexPopupBase+ze.u6,[$a,E0]);return D.createElement(iv,{prefixCls:nv,className:$v,wrapClassName:ie()({[`${su}-centered`]:!!Bs.centered},t0),onCancel:()=>{Sa==null||Sa({triggerCancel:!0}),h0==null||h0(!1)},open:Bg,title:"",footer:null,transitionName:(0,Ie.m)(n0||"","zoom",Bs.transitionName),maskTransitionName:(0,Ie.m)(n0||"","fade",Bs.maskTransitionName),mask:sv,maskClosable:yv,style:ev,styles:Object.assign({body:u1,mask:Xg},lv),width:hu,zIndex:E1,afterClose:Bd,keyboard:Og,centered:g0,getContainer:qg,closable:Eg,closeIcon:a1,modalRender:Hg,focusTriggerAfterClose:Gd},D.createElement(c0,Object.assign({},Bs,{confirmPrefixCls:su})))};var cv=Bs=>{const{rootPrefixCls:Sa,iconPrefixCls:$a,direction:Bd,theme:Bg}=Bs;return D.createElement(y.ZP,{prefixCls:Sa,iconPrefixCls:$a,direction:Bd,theme:Bg},D.createElement(L0,Object.assign({},Bs)))},uu=[];let Gs="";function Ia(){return Gs}const lu=Bs=>{var Sa,$a;const{prefixCls:Bd,getContainer:Bg,direction:Og}=Bs,g0=(0,H0.A)(),qg=(0,D.useContext)(x.E_),Xg=Ia()||qg.getPrefixCls(),A0=Bd||`${Xg}-modal`;let nv=Bg;return nv===!1&&(nv=void 0),D.createElement(cv,Object.assign({},Bs,{rootPrefixCls:Xg,prefixCls:A0,iconPrefixCls:qg.iconPrefixCls,theme:qg.theme,direction:Og!=null?Og:qg.direction,locale:($a=(Sa=qg.locale)===null||Sa===void 0?void 0:Sa.Modal)!==null&&$a!==void 0?$a:g0,getContainer:nv}))};function _h(Bs){const Sa=(0,y.w6)(),$a=document.createDocumentFragment();let Bd=Object.assign(Object.assign({},Bs),{close:qg,open:!0}),Bg;function Og(){for(var A0=arguments.length,nv=new Array(A0),t0=0;t0u1&&u1.triggerCancel);Bs.onCancel&&n0&&Bs.onCancel.apply(Bs,[()=>{}].concat((0,u.Z)(nv.slice(1))));for(let u1=0;u1{const nv=Sa.getPrefixCls(void 0,Ia()),t0=Sa.getIconPrefixCls(),n0=Sa.getTheme(),u1=D.createElement(lu,Object.assign({},A0));(0,b.s)(D.createElement(y.ZP,{prefixCls:nv,iconPrefixCls:t0,theme:n0},Sa.holderRender?Sa.holderRender(u1):u1),$a)})}function qg(){for(var A0=arguments.length,nv=new Array(A0),t0=0;t0{typeof Bs.afterClose=="function"&&Bs.afterClose(),Og.apply(this,nv)}}),Bd.visible&&delete Bd.visible,g0(Bd)}function Xg(A0){typeof A0=="function"?Bd=A0(Bd):Bd=Object.assign(Object.assign({},Bd),A0),g0(Bd)}return g0(Bd),uu.push(qg),{destroy:qg,update:Xg}}function Kr(Bs){return Object.assign(Object.assign({},Bs),{type:"warning"})}function fr(Bs){return Object.assign(Object.assign({},Bs),{type:"info"})}function ri(Bs){return Object.assign(Object.assign({},Bs),{type:"success"})}function Ra(Bs){return Object.assign(Object.assign({},Bs),{type:"error"})}function Sg(Bs){return Object.assign(Object.assign({},Bs),{type:"confirm"})}function Jg(Bs){let{rootPrefixCls:Sa}=Bs;Gs=Sa}var j0=l(62625),Wo=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bg{const{prefixCls:Sa,className:$a,closeIcon:Bd,closable:Bg,type:Og,title:g0,children:qg,footer:Xg}=Bs,A0=Wo(Bs,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:nv}=D.useContext(x.E_),t0=nv(),n0=Sa||nv("modal"),u1=(0,on.Z)(t0),[Eg,a1,Hg]=(0,jv.ZP)(n0,u1),Gd=`${n0}-confirm`;let h0={};return Og?h0={closable:Bg!=null?Bg:!1,title:"",footer:"",children:D.createElement(c0,Object.assign({},Bs,{prefixCls:n0,confirmPrefixCls:Gd,rootPrefixCls:t0,content:qg}))}:h0={closable:Bg!=null?Bg:!0,title:g0,footer:Xg!==null&&D.createElement(d0,Object.assign({},Bs)),children:qg},Eg(D.createElement(Lt.s,Object.assign({prefixCls:n0,className:ie()(a1,`${n0}-pure-panel`,Og&&Gd,Og&&`${Gd}-${Og}`,$a,Hg,u1)},A0,{closeIcon:X0(n0,Bd),closable:Bg},h0)))};var qr=(0,j0.i)(Mo);function On(){const[Bs,Sa]=D.useState([]),$a=D.useCallback(Bd=>(Sa(Bg=>[].concat((0,u.Z)(Bg),[Bd])),()=>{Sa(Bg=>Bg.filter(Og=>Og!==Bd))}),[]);return[Bs,$a]}var rn=l(209),ui=function(Bs,Sa){var $a={};for(var Bd in Bs)Object.prototype.hasOwnProperty.call(Bs,Bd)&&Sa.indexOf(Bd)<0&&($a[Bd]=Bs[Bd]);if(Bs!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bg=0,Bd=Object.getOwnPropertySymbols(Bs);Bg{var $a,{afterClose:Bd,config:Bg}=Bs,Og=ui(Bs,["afterClose","config"]);const[g0,qg]=D.useState(!0),[Xg,A0]=D.useState(Bg),{direction:nv,getPrefixCls:t0}=D.useContext(x.E_),n0=t0("modal"),u1=t0(),Eg=()=>{var h0;Bd(),(h0=Xg.afterClose)===null||h0===void 0||h0.call(Xg)},a1=function(){qg(!1);for(var h0=arguments.length,lv=new Array(h0),su=0;suev&&ev.triggerCancel);Xg.onCancel&&hu&&Xg.onCancel.apply(Xg,[()=>{}].concat((0,u.Z)(lv.slice(1))))};D.useImperativeHandle(Sa,()=>({destroy:a1,update:h0=>{A0(lv=>Object.assign(Object.assign({},lv),h0))}}));const Hg=($a=Xg.okCancel)!==null&&$a!==void 0?$a:Xg.type==="confirm",[Gd]=(0,ct.Z)("Modal",rn.Z.Modal);return D.createElement(cv,Object.assign({prefixCls:n0,rootPrefixCls:u1},Xg,{close:a1,open:g0,afterClose:Eg,okText:Xg.okText||(Hg?Gd==null?void 0:Gd.okText:Gd==null?void 0:Gd.justOkText),direction:Xg.direction||nv,cancelText:Xg.cancelText||(Gd==null?void 0:Gd.cancelText)},Og))};var gd=D.forwardRef(ya);let Su=0;const xu=D.memo(D.forwardRef((Bs,Sa)=>{const[$a,Bd]=On();return D.useImperativeHandle(Sa,()=>({patchElement:Bd}),[]),D.createElement(D.Fragment,null,$a)}));function xa(){const Bs=D.useRef(null),[Sa,$a]=D.useState([]);D.useEffect(()=>{Sa.length&&((0,u.Z)(Sa).forEach(g0=>{g0()}),$a([]))},[Sa]);const Bd=D.useCallback(Og=>function(qg){var Xg;Su+=1;const A0=D.createRef();let nv;const t0=new Promise(Hg=>{nv=Hg});let n0=!1,u1;const Eg=D.createElement(gd,{key:`modal-${Su}`,config:Og(qg),ref:A0,afterClose:()=>{u1==null||u1()},isSilent:()=>n0,onConfirm:Hg=>{nv(Hg)}});return u1=(Xg=Bs.current)===null||Xg===void 0?void 0:Xg.patchElement(Eg),u1&&uu.push(u1),{destroy:()=>{function Hg(){var Gd;(Gd=A0.current)===null||Gd===void 0||Gd.destroy()}A0.current?Hg():$a(Gd=>[].concat((0,u.Z)(Gd),[Hg]))},update:Hg=>{function Gd(){var h0;(h0=A0.current)===null||h0===void 0||h0.update(Hg)}A0.current?Gd():$a(h0=>[].concat((0,u.Z)(h0),[Gd]))},then:Hg=>(n0=!0,t0.then(Hg))}},[]);return[D.useMemo(()=>({info:Bd(fr),success:Bd(ri),error:Bd(Ra),warning:Bd(Kr),confirm:Bd(Sg)}),[]),D.createElement(xu,{key:"modal-holder",ref:Bs})]}var Td=xa;function jg(Bs){return _h(Kr(Bs))}const Wa=iv;Wa.useModal=Td,Wa.info=function(Sa){return _h(fr(Sa))},Wa.success=function(Sa){return _h(ri(Sa))},Wa.error=function(Sa){return _h(Ra(Sa))},Wa.warning=jg,Wa.warn=jg,Wa.confirm=function(Sa){return _h(Sg(Sa))},Wa.destroyAll=function(){for(;uu.length;){const Sa=uu.pop();Sa&&Sa()}},Wa.config=Jg,Wa._InternalPanelDoNotUseOrYouWillBeFired=qr;var tv=Wa},92747:function(c,g,l){"use strict";l.d(g,{A:function(){return w},f:function(){return y}});var u=l(209);let D=Object.assign({},u.Z.Modal),b=[];const x=()=>b.reduce((a,S)=>Object.assign(Object.assign({},a),S),u.Z.Modal);function y(a){if(a){const S=Object.assign({},a);return b.push(S),D=x(),()=>{b=b.filter(I=>I!==S),D=x()}}D=Object.assign({},u.Z.Modal)}function w(){return D}},2091:function(c,g,l){"use strict";l.d(g,{B4:function(){return ie},QA:function(){return S},eh:function(){return ze}});var u=l(91110),D=l(96504),b=l(19162),x=l(90882),y=l(79263),w=l(78600);function a(Ie){return{position:Ie,inset:0}}const S=Ie=>{const{componentCls:ct,antCls:At}=Ie;return[{[`${ct}-root`]:{[`${ct}${At}-zoom-enter, ${ct}${At}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Ie.motionDurationSlow,userSelect:"none"},[`${ct}${At}-zoom-leave ${ct}-content`]:{pointerEvents:"none"},[`${ct}-mask`]:Object.assign(Object.assign({},a("fixed")),{zIndex:Ie.zIndexPopupBase,height:"100%",backgroundColor:Ie.colorBgMask,pointerEvents:"none",[`${ct}-hidden`]:{display:"none"}}),[`${ct}-wrap`]:Object.assign(Object.assign({},a("fixed")),{zIndex:Ie.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${ct}${At}-zoom-enter), &:has(${ct}${At}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${ct}-root`]:(0,D.J$)(Ie)}]},I=Ie=>{const{componentCls:ct}=Ie;return[{[`${ct}-root`]:{[`${ct}-wrap-rtl`]:{direction:"rtl"},[`${ct}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[ct]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Ie.screenSMMax}px)`]:{[ct]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,w.bf)(Ie.marginXS)} auto`},[`${ct}-centered`]:{[ct]:{flex:1}}}}},{[ct]:Object.assign(Object.assign({},(0,u.Wf)(Ie)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,w.bf)(Ie.calc(Ie.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:Ie.paddingLG,[`${ct}-title`]:{margin:0,color:Ie.titleColor,fontWeight:Ie.fontWeightStrong,fontSize:Ie.titleFontSize,lineHeight:Ie.titleLineHeight,wordWrap:"break-word"},[`${ct}-content`]:{position:"relative",backgroundColor:Ie.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Ie.borderRadiusLG,boxShadow:Ie.boxShadow,pointerEvents:"auto",padding:Ie.contentPadding},[`${ct}-close`]:Object.assign({position:"absolute",top:Ie.calc(Ie.modalHeaderHeight).sub(Ie.modalCloseBtnSize).div(2).equal(),insetInlineEnd:Ie.calc(Ie.modalHeaderHeight).sub(Ie.modalCloseBtnSize).div(2).equal(),zIndex:Ie.calc(Ie.zIndexPopupBase).add(10).equal(),padding:0,color:Ie.modalCloseIconColor,fontWeight:Ie.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Ie.borderRadiusSM,width:Ie.modalCloseBtnSize,height:Ie.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Ie.motionDurationMid}, background-color ${Ie.motionDurationMid}`,"&-x":{display:"flex",fontSize:Ie.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,w.bf)(Ie.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Ie.modalIconHoverColor,backgroundColor:Ie.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:Ie.closeBtnActiveBg}},(0,u.Qy)(Ie)),[`${ct}-header`]:{color:Ie.colorText,background:Ie.headerBg,borderRadius:`${(0,w.bf)(Ie.borderRadiusLG)} ${(0,w.bf)(Ie.borderRadiusLG)} 0 0`,marginBottom:Ie.headerMarginBottom,padding:Ie.headerPadding,borderBottom:Ie.headerBorderBottom},[`${ct}-body`]:{fontSize:Ie.fontSize,lineHeight:Ie.lineHeight,wordWrap:"break-word",padding:Ie.bodyPadding},[`${ct}-footer`]:{textAlign:"end",background:Ie.footerBg,marginTop:Ie.footerMarginTop,padding:Ie.footerPadding,borderTop:Ie.footerBorderTop,borderRadius:Ie.footerBorderRadius,[`> ${Ie.antCls}-btn + ${Ie.antCls}-btn`]:{marginInlineStart:Ie.marginXS}},[`${ct}-open`]:{overflow:"hidden"}})},{[`${ct}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${ct}-content, + `]:{paddingTop:no.paddingXS}}}),ro(no)),{[`&-inline-collapsed ${Rn}-submenu-arrow, + &-inline ${Rn}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Nt.bf)(Un)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Nt.bf)(no.calc(Un).mul(-1).equal())})`}},[`${Rn}-submenu-open${Rn}-submenu-inline > ${Rn}-submenu-title > ${Rn}-submenu-arrow`]:{transform:`translateY(${(0,Nt.bf)(no.calc(li).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Nt.bf)(no.calc(Un).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Nt.bf)(Un)})`}}})},{[`${Vr}-layout-header`]:{[Rn]:{lineHeight:"inherit"}}}]},Ms=no=>{var Vr,Rn,Xt;const{colorPrimary:Sn,colorError:Pn,colorTextDisabled:hr,colorErrorBg:mt,colorText:tt,colorTextDescription:kt,colorBgContainer:vn,colorFillAlter:vr,colorFillContent:qr,lineWidth:Ni,lineWidthBold:li,controlItemBgActive:Un,colorBgTextHover:dn,controlHeightLG:xt,lineHeight:it,colorBgElevated:Bt,marginXXS:rn,padding:ir,fontSize:tr,controlHeightSM:Jn,fontSizeLG:nn,colorTextLightSolid:er,colorErrorHover:Fr}=no,jr=(Vr=no.activeBarWidth)!==null&&Vr!==void 0?Vr:0,bo=(Rn=no.activeBarBorderWidth)!==null&&Rn!==void 0?Rn:Ni,zt=(Xt=no.itemMarginInline)!==null&&Xt!==void 0?Xt:no.marginXXS,en=new Te.C(er).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:no.zIndexPopupBase+50,radiusItem:no.borderRadiusLG,itemBorderRadius:no.borderRadiusLG,radiusSubMenuItem:no.borderRadiusSM,subMenuItemBorderRadius:no.borderRadiusSM,colorItemText:tt,itemColor:tt,colorItemTextHover:tt,itemHoverColor:tt,colorItemTextHoverHorizontal:Sn,horizontalItemHoverColor:Sn,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:Sn,itemSelectedColor:Sn,colorItemTextSelectedHorizontal:Sn,horizontalItemSelectedColor:Sn,colorItemBg:vn,itemBg:vn,colorItemBgHover:dn,itemHoverBg:dn,colorItemBgActive:qr,itemActiveBg:Un,colorSubItemBg:vr,subMenuItemBg:vr,colorItemBgSelected:Un,itemSelectedBg:Un,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:jr,colorActiveBarHeight:li,activeBarHeight:li,colorActiveBarBorderSize:Ni,activeBarBorderWidth:bo,colorItemTextDisabled:hr,itemDisabledColor:hr,colorDangerItemText:Pn,dangerItemColor:Pn,colorDangerItemTextHover:Pn,dangerItemHoverColor:Pn,colorDangerItemTextSelected:Pn,dangerItemSelectedColor:Pn,colorDangerItemBgActive:mt,dangerItemActiveBg:mt,colorDangerItemBgSelected:mt,dangerItemSelectedBg:mt,itemMarginInline:zt,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xt,groupTitleLineHeight:it,collapsedWidth:xt*2,popupBg:Bt,itemMarginBlock:rn,itemPaddingInline:ir,horizontalLineHeight:`${xt*1.15}px`,iconSize:tr,iconMarginInlineEnd:Jn-tr,collapsedIconSize:nn,groupTitleFontSize:tr,darkItemDisabledColor:new Te.C(er).setAlpha(.25).toRgbString(),darkItemColor:en,darkDangerItemColor:Pn,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:er,darkItemSelectedBg:Sn,darkDangerItemSelectedBg:Pn,darkItemHoverBg:"transparent",darkGroupTitleColor:en,darkItemHoverColor:er,darkDangerItemHoverColor:Fr,darkDangerItemSelectedColor:er,darkDangerItemActiveBg:Pn,itemWidth:jr?`calc(100% + ${bo}px)`:`calc(100% - ${zt*2}px)`}};var Ar=function(no){let Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:no,Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,un.I$)("Menu",Sn=>{const{colorBgElevated:Pn,colorPrimary:hr,colorTextLightSolid:mt,controlHeightLG:tt,fontSize:kt,darkItemColor:vn,darkDangerItemColor:vr,darkItemBg:qr,darkSubMenuItemBg:Ni,darkItemSelectedColor:li,darkItemSelectedBg:Un,darkDangerItemSelectedBg:dn,darkItemHoverBg:xt,darkGroupTitleColor:it,darkItemHoverColor:Bt,darkItemDisabledColor:rn,darkDangerItemHoverColor:ir,darkDangerItemSelectedColor:tr,darkDangerItemActiveBg:Jn,popupBg:nn,darkPopupBg:er}=Sn,Fr=Sn.calc(kt).div(7).mul(5).equal(),jr=(0,on.TS)(Sn,{menuArrowSize:Fr,menuHorizontalHeight:Sn.calc(tt).mul(1.15).equal(),menuArrowOffset:Sn.calc(Fr).mul(.25).equal(),menuSubMenuBg:Pn,calc:Sn.calc,popupBg:nn}),bo=(0,on.TS)(jr,{itemColor:vn,itemHoverColor:Bt,groupTitleColor:it,itemSelectedColor:li,itemBg:qr,popupBg:er,subMenuItemBg:Ni,itemActiveBg:"transparent",itemSelectedBg:Un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:xt,itemDisabledColor:rn,dangerItemColor:vr,dangerItemHoverColor:ir,dangerItemSelectedColor:tr,dangerItemActiveBg:Jn,dangerItemSelectedBg:dn,menuSubMenuBg:Ni,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:hr});return[ai(jr),Yr(jr),Ii(jr),Go(jr,"light"),Go(bo,"dark"),Xi(jr),(0,ze.Z)(jr),(0,Vt.oN)(jr,"slide-up"),(0,Vt.oN)(jr,"slide-down"),(0,Tt._y)(jr,"zoom-big")]},Ms,{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:Rn,unitless:{groupTitleLineHeight:!0}})(no,Vr)},Rt=x(26504),jn=function(no,Vr){var Rn={};for(var Xt in no)Object.prototype.hasOwnProperty.call(no,Xt)&&Vr.indexOf(Xt)<0&&(Rn[Xt]=no[Xt]);if(no!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Xt=Object.getOwnPropertySymbols(no);Sn{var Rn,Xt;const Sn=v.useContext(hn.Z),Pn=Sn||{},{getPrefixCls:hr,getPopupContainer:mt,direction:tt,menu:kt}=v.useContext(Ge.E_),vn=hr(),{prefixCls:vr,className:qr,style:Ni,theme:li="light",expandIcon:Un,_internalDisableMenuItemTitleTooltip:dn,inlineCollapsed:xt,siderCollapsed:it,items:Bt,children:rn,rootClassName:ir,mode:tr,selectable:Jn,onClick:nn,overflowedIndicatorPopupClassName:er}=no,Fr=jn(no,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jr=(0,Ce.Z)(Fr,["collapsedWidth"]),bo=Xe(Bt)||rn;(Rn=Pn.validator)===null||Rn===void 0||Rn.call(Pn,{mode:tr});const zt=(0,Be.zX)(function(){var Qo;nn==null||nn.apply(void 0,arguments),(Qo=Pn.onClick)===null||Qo===void 0||Qo.call(Pn)}),en=Pn.mode||tr,Cn=Jn!=null?Jn:Pn.selectable,rr=v.useMemo(()=>it!==void 0?it:xt,[xt,it]),Pr={horizontal:{motionName:`${vn}-slide-up`},inline:(0,ct.Z)(vn),other:{motionName:`${vn}-zoom-big`}},Er=hr("menu",vr||Pn.prefixCls),ui=(0,Rt.Z)(Er),[Gr,zr,Ei]=Ar(Er,ui,!Sn),Zi=A()(`${Er}-${li}`,kt==null?void 0:kt.className,qr);let Kr;if(typeof Un=="function")Kr=Un;else if(Un===null||Un===!1)Kr=null;else if(Pn.expandIcon===null||Pn.expandIcon===!1)Kr=null;else{const Qo=Un!=null?Un:Pn.expandIcon;Kr=(0,nt.Tm)(Qo,{className:A()(`${Er}-submenu-expand-icon`,(0,nt.l$)(Qo)?(Xt=Qo.props)===null||Xt===void 0?void 0:Xt.className:"")})}const Xr=v.useMemo(()=>({prefixCls:Er,inlineCollapsed:rr||!1,direction:tt,firstLevel:!0,theme:li,mode:en,disableMenuItemTitleTooltip:dn}),[Er,rr,tt,dn,li]);return Gr(v.createElement(hn.Z.Provider,{value:null},v.createElement(ht.Provider,{value:Xr},v.createElement(z.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:v.createElement(Ie.Z,null),overflowedIndicatorPopupClassName:A()(Er,`${Er}-${li}`,er),mode:en,selectable:Cn,onClick:zt},jr,{inlineCollapsed:rr,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Ni),className:Zi,prefixCls:Er,direction:tt,defaultMotions:Pr,expandIcon:Kr,ref:Vr,rootClassName:A()(ir,zr,Pn.rootClassName,Ei,ui)}),bo))))});const Ti=(0,v.forwardRef)((no,Vr)=>{const Rn=(0,v.useRef)(null),Xt=v.useContext(Y);return(0,v.useImperativeHandle)(Vr,()=>({menu:Rn.current,focus:Sn=>{var Pn;(Pn=Rn.current)===null||Pn===void 0||Pn.focus(Sn)}})),v.createElement(oi,Object.assign({ref:Rn},no,Xt))});Ti.Item=et,Ti.SubMenu=je,Ti.Divider=rt,Ti.ItemGroup=z.BW;var Bi=Ti},31222:function(St,me,x){"use strict";x.d(me,{ZP:function(){return bo}});var v=x(49397),z=x(77617),P=x(59905);const A=z.createContext({}),W=z.createContext({message:{},notification:{},modal:{}});var X=null,Y=x(58798),ie=x(64495),ae=x(50555),se=x(43418),Ie=x(81664),Be=x(20906),Ce=x(20555),ct=x(92310),nt=x.n(ct),Ge=x(35372),at=x(56348),Ye=x(54131),rt=x(79161),Gt=x(79384),yt=x(16514),Et=x(44516),ht=x(39193),Pe=z.forwardRef(function(zt,en){var Cn=zt.prefixCls,rr=zt.style,Pr=zt.className,Er=zt.duration,ui=Er===void 0?4.5:Er,Gr=zt.eventKey,zr=zt.content,Ei=zt.closable,Zi=zt.closeIcon,Kr=Zi===void 0?"x":Zi,Xr=zt.props,Qo=zt.onClick,pr=zt.onNoticeClose,qo=zt.times,Br=zt.hovering,sr=z.useState(!1),ii=(0,Ge.Z)(sr,2),qi=ii[0],Ln=ii[1],zn=Br||qi,Wi=function(){pr(Gr)},Yi=function(_i){(_i.key==="Enter"||_i.code==="Enter"||_i.keyCode===ht.Z.ENTER)&&Wi()};z.useEffect(function(){if(!zn&&ui>0){var ko=setTimeout(function(){Wi()},ui*1e3);return function(){clearTimeout(ko)}}},[ui,zn,qo]);var so="".concat(Cn,"-notice");return z.createElement("div",(0,Gt.Z)({},Xr,{ref:en,className:nt()(so,Pr,(0,yt.Z)({},"".concat(so,"-closable"),Ei)),style:rr,onMouseEnter:function(_i){var hs;Ln(!0),Xr==null||(hs=Xr.onMouseEnter)===null||hs===void 0||hs.call(Xr,_i)},onMouseLeave:function(_i){var hs;Ln(!1),Xr==null||(hs=Xr.onMouseLeave)===null||hs===void 0||hs.call(Xr,_i)},onClick:Qo}),z.createElement("div",{className:"".concat(so,"-content")},zr),Ei&&z.createElement("a",{tabIndex:0,className:"".concat(so,"-close"),onKeyDown:Yi,onClick:function(_i){_i.preventDefault(),_i.stopPropagation(),Wi()}},Kr))}),et=Pe,Oe=z.createContext({}),Ue=function(en){var Cn=en.children,rr=en.classNames;return z.createElement(Oe.Provider,{value:{classNames:rr}},Cn)},je=Ue,ft=x(13255),Ct=8,Xe=3,hn=16,Nt=function(en){var Cn={offset:Ct,threshold:Xe,gap:hn};if(en&&(0,ft.Z)(en)==="object"){var rr,Pr,Er;Cn.offset=(rr=en.offset)!==null&&rr!==void 0?rr:Ct,Cn.threshold=(Pr=en.threshold)!==null&&Pr!==void 0?Pr:Xe,Cn.gap=(Er=en.gap)!==null&&Er!==void 0?Er:hn}return[!!en,Cn]},Te=Nt,vt=["className","style","classNames","styles"],ze=function(en){var Cn,rr=en.configList,Pr=en.placement,Er=en.prefixCls,ui=en.className,Gr=en.style,zr=en.motion,Ei=en.onAllNoticeRemoved,Zi=en.onNoticeClose,Kr=en.stack,Xr=(0,z.useContext)(Oe),Qo=Xr.classNames,pr=(0,z.useRef)({}),qo=(0,z.useState)(null),Br=(0,Ge.Z)(qo,2),sr=Br[0],ii=Br[1],qi=(0,z.useState)([]),Ln=(0,Ge.Z)(qi,2),zn=Ln[0],Wi=Ln[1],Yi=rr.map(function(yo){return{config:yo,key:String(yo.key)}}),so=Te(Kr),ko=(0,Ge.Z)(so,2),_i=ko[0],hs=ko[1],Ts=hs.offset,Qr=hs.threshold,Ai=hs.gap,Ri=_i&&(zn.length>0||Yi.length<=Qr),To=typeof zr=="function"?zr(Pr):zr;return(0,z.useEffect)(function(){_i&&zn.length>1&&Wi(function(yo){return yo.filter(function(ao){return Yi.some(function(Bs){var fa=Bs.key;return ao===fa})})})},[zn,Yi,_i]),(0,z.useEffect)(function(){var yo;if(_i&&pr.current[(yo=Yi[Yi.length-1])===null||yo===void 0?void 0:yo.key]){var ao;ii(pr.current[(ao=Yi[Yi.length-1])===null||ao===void 0?void 0:ao.key])}},[Yi,_i]),z.createElement(Et.V4,(0,Gt.Z)({key:Pr,className:nt()(Er,"".concat(Er,"-").concat(Pr),Qo==null?void 0:Qo.list,ui,(Cn={},(0,yt.Z)(Cn,"".concat(Er,"-stack"),!!_i),(0,yt.Z)(Cn,"".concat(Er,"-stack-expanded"),Ri),Cn)),style:Gr,keys:Yi,motionAppear:!0},To,{onAllRemoved:function(){Ei(Pr)}}),function(yo,ao){var Bs=yo.config,fa=yo.className,ba=yo.style,Rs=yo.index,Ds=Bs,el=Ds.key,tl=Ds.times,sn=String(el),dt=Bs,Mt=dt.className,Zt=dt.style,Kt=dt.classNames,Nn=dt.styles,Ur=(0,at.Z)(dt,vt),Ui=Yi.findIndex(function(_a){return _a.key===sn}),Ao={};if(_i){var rs=Yi.length-1-(Ui>-1?Ui:Rs-1),ps=Pr==="top"||Pr==="bottom"?"-50%":"0";if(rs>0){var Po,$a,nl;Ao.height=Ri?(Po=pr.current[sn])===null||Po===void 0?void 0:Po.offsetHeight:sr==null?void 0:sr.offsetHeight;for(var ka=0,Xs=0;Xs-1?pr.current[sn]=Ba:delete pr.current[sn]},prefixCls:Er,classNames:Kt,styles:Nn,className:nt()(Mt,Qo==null?void 0:Qo.notice),style:Zt,times:tl,key:el,eventKey:el,onNoticeClose:Zi,hovering:_i&&zn.length>0})))})},Vt=ze,Tt=z.forwardRef(function(zt,en){var Cn=zt.prefixCls,rr=Cn===void 0?"rc-notification":Cn,Pr=zt.container,Er=zt.motion,ui=zt.maxCount,Gr=zt.className,zr=zt.style,Ei=zt.onAllRemoved,Zi=zt.stack,Kr=zt.renderNotifications,Xr=z.useState([]),Qo=(0,Ge.Z)(Xr,2),pr=Qo[0],qo=Qo[1],Br=function(ko){var _i,hs=pr.find(function(Ts){return Ts.key===ko});hs==null||(_i=hs.onClose)===null||_i===void 0||_i.call(hs),qo(function(Ts){return Ts.filter(function(Qr){return Qr.key!==ko})})};z.useImperativeHandle(en,function(){return{open:function(ko){qo(function(_i){var hs=(0,v.Z)(_i),Ts=hs.findIndex(function(Ri){return Ri.key===ko.key}),Qr=(0,Ye.Z)({},ko);if(Ts>=0){var Ai;Qr.times=(((Ai=_i[Ts])===null||Ai===void 0?void 0:Ai.times)||0)+1,hs[Ts]=Qr}else Qr.times=0,hs.push(Qr);return ui>0&&hs.length>ui&&(hs=hs.slice(-ui)),hs})},close:function(ko){Br(ko)},destroy:function(){qo([])}}});var sr=z.useState({}),ii=(0,Ge.Z)(sr,2),qi=ii[0],Ln=ii[1];z.useEffect(function(){var so={};pr.forEach(function(ko){var _i=ko.placement,hs=_i===void 0?"topRight":_i;hs&&(so[hs]=so[hs]||[],so[hs].push(ko))}),Object.keys(qi).forEach(function(ko){so[ko]=so[ko]||[]}),Ln(so)},[pr]);var zn=function(ko){Ln(function(_i){var hs=(0,Ye.Z)({},_i),Ts=hs[ko]||[];return Ts.length||delete hs[ko],hs})},Wi=z.useRef(!1);if(z.useEffect(function(){Object.keys(qi).length>0?Wi.current=!0:Wi.current&&(Ei==null||Ei(),Wi.current=!1)},[qi]),!Pr)return null;var Yi=Object.keys(qi);return(0,rt.createPortal)(z.createElement(z.Fragment,null,Yi.map(function(so){var ko=qi[so],_i=z.createElement(Vt,{key:so,configList:ko,placement:so,prefixCls:rr,className:Gr==null?void 0:Gr(so),style:zr==null?void 0:zr(so),motion:Er,onNoticeClose:Br,onAllNoticeRemoved:zn,stack:Zi});return Kr?Kr(_i,{prefixCls:rr,key:so}):_i})),Pr)}),un=Tt,on=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Lr=function(){return document.body},Yr=0;function fi(){for(var zt={},en=arguments.length,Cn=new Array(en),rr=0;rr0&&arguments[0]!==void 0?arguments[0]:{},en=zt.getContainer,Cn=en===void 0?Lr:en,rr=zt.motion,Pr=zt.prefixCls,Er=zt.maxCount,ui=zt.className,Gr=zt.style,zr=zt.onAllRemoved,Ei=zt.stack,Zi=zt.renderNotifications,Kr=(0,at.Z)(zt,on),Xr=z.useState(),Qo=(0,Ge.Z)(Xr,2),pr=Qo[0],qo=Qo[1],Br=z.useRef(),sr=z.createElement(un,{container:pr,ref:Br,prefixCls:Pr,motion:rr,maxCount:Er,className:ui,style:Gr,onAllRemoved:zr,stack:Ei,renderNotifications:Zi}),ii=z.useState([]),qi=(0,Ge.Z)(ii,2),Ln=qi[0],zn=qi[1],Wi=z.useMemo(function(){return{open:function(so){var ko=fi(Kr,so);(ko.key===null||ko.key===void 0)&&(ko.key="rc-notification-".concat(Yr),Yr+=1),zn(function(_i){return[].concat((0,v.Z)(_i),[{type:"open",config:ko}])})},close:function(so){zn(function(ko){return[].concat((0,v.Z)(ko),[{type:"close",key:so}])})},destroy:function(){zn(function(so){return[].concat((0,v.Z)(so),[{type:"destroy"}])})}}},[]);return z.useEffect(function(){qo(Cn())}),z.useEffect(function(){Br.current&&Ln.length&&(Ln.forEach(function(Yi){switch(Yi.type){case"open":Br.current.open(Yi.config);break;case"close":Br.current.close(Yi.key);break;case"destroy":Br.current.destroy();break}}),zn(function(Yi){return Yi.filter(function(so){return!Ln.includes(so)})}))},[Ln]),[Wi,sr]}var Qi=x(78600),hi=x(40870),Go=x(91110),Mo=x(79263),pe=x(90882);const Ii=zt=>{const{componentCls:en,iconCls:Cn,boxShadow:rr,colorText:Pr,colorSuccess:Er,colorError:ui,colorWarning:Gr,colorInfo:zr,fontSizeLG:Ei,motionEaseInOutCirc:Zi,motionDurationSlow:Kr,marginXS:Xr,paddingXS:Qo,borderRadiusLG:pr,zIndexPopup:qo,contentPadding:Br,contentBg:sr}=zt,ii=`${en}-notice`,qi=new Qi.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Qo,transform:"translateY(0)",opacity:1}}),Ln=new Qi.E4("MessageMoveOut",{"0%":{maxHeight:zt.height,padding:Qo,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),zn={padding:Qo,textAlign:"center",[`${en}-custom-content > ${Cn}`]:{verticalAlign:"text-bottom",marginInlineEnd:Xr,fontSize:Ei},[`${ii}-content`]:{display:"inline-block",padding:Br,background:sr,borderRadius:pr,boxShadow:rr,pointerEvents:"all"},[`${en}-success > ${Cn}`]:{color:Er},[`${en}-error > ${Cn}`]:{color:ui},[`${en}-warning > ${Cn}`]:{color:Gr},[`${en}-info > ${Cn}, + ${en}-loading > ${Cn}`]:{color:zr}};return[{[en]:Object.assign(Object.assign({},(0,Go.Wf)(zt)),{color:Pr,position:"fixed",top:Xr,width:"100%",pointerEvents:"none",zIndex:qo,[`${en}-move-up`]:{animationFillMode:"forwards"},[` + ${en}-move-up-appear, + ${en}-move-up-enter + `]:{animationName:qi,animationDuration:Kr,animationPlayState:"paused",animationTimingFunction:Zi},[` + ${en}-move-up-appear${en}-move-up-appear-active, + ${en}-move-up-enter${en}-move-up-enter-active + `]:{animationPlayState:"running"},[`${en}-move-up-leave`]:{animationName:Ln,animationDuration:Kr,animationPlayState:"paused",animationTimingFunction:Zi},[`${en}-move-up-leave${en}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[en]:{[`${ii}-wrapper`]:Object.assign({},zn)}},{[`${en}-notice-pure-panel`]:Object.assign(Object.assign({},zn),{padding:0,textAlign:"start"})}]},Vi=zt=>({zIndexPopup:zt.zIndexPopupBase+hi.u6+10,contentBg:zt.colorBgElevated,contentPadding:`${(zt.controlHeightLG-zt.fontSize*zt.lineHeight)/2}px ${zt.paddingSM}px`});var ro=(0,Mo.I$)("Message",zt=>{const en=(0,pe.TS)(zt,{height:150});return[Ii(en)]},Vi),ai=x(26504),Ms=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Pr{let{prefixCls:en,type:Cn,icon:rr,children:Pr}=zt;return z.createElement("div",{className:nt()(`${en}-custom-content`,`${en}-${Cn}`)},rr||Ar[Cn],z.createElement("span",null,Pr))};var wr=zt=>{const{prefixCls:en,className:Cn,type:rr,icon:Pr,content:Er}=zt,ui=Ms(zt,["prefixCls","className","type","icon","content"]),{getPrefixCls:Gr}=z.useContext(Y.E_),zr=en||Gr("message"),Ei=(0,ai.Z)(zr),[Zi,Kr,Xr]=ro(zr,Ei);return Zi(z.createElement(et,Object.assign({},ui,{prefixCls:zr,className:nt()(Cn,Kr,`${zr}-notice-pure-panel`,Xr,Ei),eventKey:"pure",duration:null,content:z.createElement(Rt,{prefixCls:zr,type:rr,icon:Pr},Er)})))},oi=x(4531),Ti=x(80074);function Bi(zt,en){return{motionName:en!=null?en:`${zt}-move-up`}}function no(zt){let en;const Cn=new Promise(Pr=>{en=zt(()=>{Pr(!0)})}),rr=()=>{en==null||en()};return rr.then=(Pr,Er)=>Cn.then(Pr,Er),rr.promise=Cn,rr}var Vr=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Pr{let{children:en,prefixCls:Cn}=zt;const rr=(0,ai.Z)(Cn),[Pr,Er,ui]=ro(Cn,rr);return Pr(z.createElement(je,{classNames:{list:nt()(Er,ui,rr)}},en))},Pn=(zt,en)=>{let{prefixCls:Cn,key:rr}=en;return z.createElement(Sn,{prefixCls:Cn,key:rr},zt)},hr=z.forwardRef((zt,en)=>{const{top:Cn,prefixCls:rr,getContainer:Pr,maxCount:Er,duration:ui=Xt,rtl:Gr,transitionName:zr,onAllRemoved:Ei}=zt,{getPrefixCls:Zi,getPopupContainer:Kr,message:Xr,direction:Qo}=z.useContext(Y.E_),pr=rr||Zi("message"),qo=()=>({left:"50%",transform:"translateX(-50%)",top:Cn!=null?Cn:Rn}),Br=()=>nt()({[`${pr}-rtl`]:Gr!=null?Gr:Qo==="rtl"}),sr=()=>Bi(pr,zr),ii=z.createElement("span",{className:`${pr}-close-x`},z.createElement(oi.Z,{className:`${pr}-close-icon`})),[qi,Ln]=Xi({prefixCls:pr,style:qo,className:Br,motion:sr,closable:!1,closeIcon:ii,duration:ui,getContainer:()=>(Pr==null?void 0:Pr())||(Kr==null?void 0:Kr())||document.body,maxCount:Er,onAllRemoved:Ei,renderNotifications:Pn});return z.useImperativeHandle(en,()=>Object.assign(Object.assign({},qi),{prefixCls:pr,message:Xr})),Ln});let mt=0;function tt(zt){const en=z.useRef(null),Cn=(0,Ti.ln)("Message");return[z.useMemo(()=>{const Pr=Ei=>{var Zi;(Zi=en.current)===null||Zi===void 0||Zi.close(Ei)},Er=Ei=>{if(!en.current){const Yi=()=>{};return Yi.then=()=>{},Yi}const{open:Zi,prefixCls:Kr,message:Xr}=en.current,Qo=`${Kr}-notice`,{content:pr,icon:qo,type:Br,key:sr,className:ii,style:qi,onClose:Ln}=Ei,zn=Vr(Ei,["content","icon","type","key","className","style","onClose"]);let Wi=sr;return Wi==null&&(mt+=1,Wi=`antd-message-${mt}`),no(Yi=>(Zi(Object.assign(Object.assign({},zn),{key:Wi,content:z.createElement(Rt,{prefixCls:Kr,type:Br,icon:qo},pr),placement:"top",className:nt()(Br&&`${Qo}-${Br}`,ii,Xr==null?void 0:Xr.className),style:Object.assign(Object.assign({},Xr==null?void 0:Xr.style),qi),onClose:()=>{Ln==null||Ln(),Yi()}})),()=>{Pr(Wi)}))},Gr={open:Er,destroy:Ei=>{var Zi;Ei!==void 0?Pr(Ei):(Zi=en.current)===null||Zi===void 0||Zi.destroy()}};return["info","success","warning","error","loading"].forEach(Ei=>{const Zi=(Kr,Xr,Qo)=>{let pr;Kr&&typeof Kr=="object"&&"content"in Kr?pr=Kr:pr={content:Kr};let qo,Br;typeof Xr=="function"?Br=Xr:(qo=Xr,Br=Qo);const sr=Object.assign(Object.assign({onClose:Br,duration:qo},pr),{type:Ei});return Er(sr)};Gr[Ei]=Zi}),Gr},[]),z.createElement(hr,Object.assign({key:"message-holder"},zt,{ref:en}))]}function kt(zt){return tt(zt)}let vn=null,vr=zt=>zt(),qr=[],Ni={};function li(){const{getContainer:zt,duration:en,rtl:Cn,maxCount:rr,top:Pr}=Ni,Er=(zt==null?void 0:zt())||document.body;return{getContainer:()=>Er,duration:en,rtl:Cn,maxCount:rr,top:Pr}}const Un=z.forwardRef((zt,en)=>{const{messageConfig:Cn,sync:rr}=zt,{getPrefixCls:Pr}=(0,z.useContext)(Y.E_),Er=Ni.prefixCls||Pr("message"),ui=(0,z.useContext)(A),[Gr,zr]=tt(Object.assign(Object.assign(Object.assign({},Cn),{prefixCls:Er}),ui.message));return z.useImperativeHandle(en,()=>{const Ei=Object.assign({},Gr);return Object.keys(Ei).forEach(Zi=>{Ei[Zi]=function(){return rr(),Gr[Zi].apply(Gr,arguments)}}),{instance:Ei,sync:rr}}),zr}),dn=z.forwardRef((zt,en)=>{const[Cn,rr]=z.useState(li),Pr=()=>{rr(li)};z.useEffect(Pr,[]);const Er=(0,ie.w6)(),ui=Er.getRootPrefixCls(),Gr=Er.getIconPrefixCls(),zr=Er.getTheme(),Ei=z.createElement(Un,{ref:en,sync:Pr,messageConfig:Cn});return z.createElement(ie.ZP,{prefixCls:ui,iconPrefixCls:Gr,theme:zr},Er.holderRender?Er.holderRender(Ei):Ei)});function xt(){if(!vn){const zt=document.createDocumentFragment(),en={fragment:zt};vn=en,vr(()=>{(0,P.s)(z.createElement(dn,{ref:Cn=>{const{instance:rr,sync:Pr}=Cn||{};Promise.resolve().then(()=>{!en.instance&&rr&&(en.instance=rr,en.sync=Pr,xt())})}}),zt)});return}vn.instance&&(qr.forEach(zt=>{const{type:en,skipped:Cn}=zt;if(!Cn)switch(en){case"open":{vr(()=>{const rr=vn.instance.open(Object.assign(Object.assign({},Ni),zt.config));rr==null||rr.then(zt.resolve),zt.setCloseFn(rr)});break}case"destroy":vr(()=>{vn==null||vn.instance.destroy(zt.key)});break;default:vr(()=>{var rr;const Pr=(rr=vn.instance)[en].apply(rr,(0,v.Z)(zt.args));Pr==null||Pr.then(zt.resolve),zt.setCloseFn(Pr)})}}),qr=[])}function it(zt){Ni=Object.assign(Object.assign({},Ni),zt),vr(()=>{var en;(en=vn==null?void 0:vn.sync)===null||en===void 0||en.call(vn)})}function Bt(zt){const en=no(Cn=>{let rr;const Pr={type:"open",config:zt,resolve:Cn,setCloseFn:Er=>{rr=Er}};return qr.push(Pr),()=>{rr?vr(()=>{rr()}):Pr.skipped=!0}});return xt(),en}function rn(zt,en){const Cn=(0,ie.w6)(),rr=no(Pr=>{let Er;const ui={type:zt,args:en,resolve:Pr,setCloseFn:Gr=>{Er=Gr}};return qr.push(ui),()=>{Er?vr(()=>{Er()}):ui.skipped=!0}});return xt(),rr}function ir(zt){qr.push({type:"destroy",key:zt}),xt()}const tr=["success","info","warning","error","loading"],nn={open:Bt,destroy:ir,config:it,useMessage:kt,_InternalPanelDoNotUseOrYouWillBeFired:wr};tr.forEach(zt=>{nn[zt]=function(){for(var en=arguments.length,Cn=new Array(en),rr=0;rr{};let Fr=null,jr=null;var bo=nn},72450:function(St,me,x){"use strict";x.d(me,{Z:function(){return bo}});var v=x(49397),z=x(77617),P=x(59905),A=x(58798),W=x(64495),X=x(50555),Y=x(43418),ie=x(81664),ae=x(20906),se=x(92310),Ie=x.n(se),Be=x(40870),Ce=x(12149),ct=x(50700),nt=x(57832),Ge=x(58061);const at=z.createContext({}),{Provider:Ye}=at;var Gt=()=>{const{autoFocusButton:zt,cancelButtonProps:en,cancelTextLocale:Cn,isSilent:rr,mergedOkCancel:Pr,rootPrefixCls:Er,close:ui,onCancel:Gr,onConfirm:zr}=(0,z.useContext)(at);return Pr?z.createElement(Ge.Z,{isSilent:rr,actionFn:Gr,close:function(){ui==null||ui.apply(void 0,arguments),zr==null||zr(!1)},autoFocus:zt==="cancel",buttonProps:en,prefixCls:`${Er}-btn`},Cn):null},Et=()=>{const{autoFocusButton:zt,close:en,isSilent:Cn,okButtonProps:rr,rootPrefixCls:Pr,okTextLocale:Er,okType:ui,onConfirm:Gr,onOk:zr}=(0,z.useContext)(at);return z.createElement(Ge.Z,{isSilent:Cn,type:ui||"primary",actionFn:zr,close:function(){en==null||en.apply(void 0,arguments),Gr==null||Gr(!0)},autoFocus:zt==="ok",buttonProps:rr,prefixCls:`${Pr}-btn`},Er)},ht=x(4531),Pe=x(6291),et=x(67445),Oe=x(10254);const Ue=()=>(0,Oe.Z)()&&window.document.documentElement;var je=x(13150),ft=x(26504),Ct=x(51623),Xe=x(55449),hn=x(46142);function Nt(){}const Te=z.createContext({add:Nt,remove:Nt});function vt(zt){const en=z.useContext(Te),Cn=z.useRef();return(0,hn.zX)(Pr=>{if(Pr){const Er=zt?Pr.querySelector(zt):Pr;en.add(Er),Cn.current=Er}else en.remove(Cn.current)})}var ze=null,Vt=x(57801),Tt=x(99622),on=()=>{const{cancelButtonProps:zt,cancelTextLocale:en,onCancel:Cn}=(0,z.useContext)(at);return z.createElement(Tt.ZP,Object.assign({onClick:Cn},zt),en)},Lr=x(69221),fi=()=>{const{confirmLoading:zt,okButtonProps:en,okType:Cn,okTextLocale:rr,onOk:Pr}=(0,z.useContext)(at);return z.createElement(Tt.ZP,Object.assign({},(0,Lr.nx)(Cn),{loading:zt,onClick:Pr},en),rr)},Xi=x(92747);function Qi(zt,en){return z.createElement("span",{className:`${zt}-close-x`},en||z.createElement(ht.Z,{className:`${zt}-close-icon`}))}const hi=zt=>{const{okText:en,okType:Cn="primary",cancelText:rr,confirmLoading:Pr,onOk:Er,onCancel:ui,okButtonProps:Gr,cancelButtonProps:zr,footer:Ei}=zt,[Zi]=(0,ct.Z)("Modal",(0,Xi.A)()),Kr=en||(Zi==null?void 0:Zi.okText),Xr=rr||(Zi==null?void 0:Zi.cancelText),Qo={confirmLoading:Pr,okButtonProps:Gr,cancelButtonProps:zr,okTextLocale:Kr,cancelTextLocale:Xr,okType:Cn,onOk:Er,onCancel:ui},pr=z.useMemo(()=>Qo,(0,v.Z)(Object.values(Qo)));let qo;return typeof Ei=="function"||typeof Ei=="undefined"?(qo=z.createElement(z.Fragment,null,z.createElement(on,null),z.createElement(fi,null)),typeof Ei=="function"&&(qo=Ei(qo,{OkBtn:fi,CancelBtn:on})),qo=z.createElement(Ye,{value:pr},qo)):qo=Ei,z.createElement(Vt.n,{disabled:!1},qo)};var Go=x(2091),Mo=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Pr{pe={x:zt.pageX,y:zt.pageY},setTimeout(()=>{pe=null},100)};Ue()&&document.documentElement.addEventListener("click",Ii,!0);var ro=zt=>{var en;const{getPopupContainer:Cn,getPrefixCls:rr,direction:Pr,modal:Er}=z.useContext(A.E_),ui=Rs=>{const{onCancel:Ds}=zt;Ds==null||Ds(Rs)},Gr=Rs=>{const{onOk:Ds}=zt;Ds==null||Ds(Rs)},{prefixCls:zr,className:Ei,rootClassName:Zi,open:Kr,wrapClassName:Xr,centered:Qo,getContainer:pr,closeIcon:qo,closable:Br,focusTriggerAfterClose:sr=!0,style:ii,visible:qi,width:Ln=520,footer:zn,classNames:Wi,styles:Yi}=zt,so=Mo(zt,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),ko=rr("modal",zr),_i=rr(),hs=(0,ft.Z)(ko),[Ts,Qr,Ai]=(0,Go.ZP)(ko,hs),Ri=Ie()(Xr,{[`${ko}-centered`]:!!Qo,[`${ko}-wrap-rtl`]:Pr==="rtl"}),To=zn!==null&&z.createElement(hi,Object.assign({},zt,{onOk:Gr,onCancel:ui})),[yo,ao]=(0,et.Z)(Br,typeof qo!="undefined"?qo:Er==null?void 0:Er.closeIcon,Rs=>Qi(ko,Rs),z.createElement(ht.Z,{className:`${ko}-close-icon`}),!0),Bs=vt(`.${ko}-content`),[fa,ba]=(0,Be.Cn)("Modal",so.zIndex);return Ts(z.createElement(Xe.BR,null,z.createElement(Ct.Ux,{status:!0,override:!0},z.createElement(je.Z.Provider,{value:ba},z.createElement(Pe.Z,Object.assign({width:Ln},so,{zIndex:fa,getContainer:pr===void 0?Cn:pr,prefixCls:ko,rootClassName:Ie()(Qr,Zi,Ai,hs),footer:To,visible:Kr!=null?Kr:qi,mousePosition:(en=so.mousePosition)!==null&&en!==void 0?en:pe,onClose:ui,closable:yo,closeIcon:ao,focusTriggerAfterClose:sr,transitionName:(0,Ce.m)(_i,"zoom",zt.transitionName),maskTransitionName:(0,Ce.m)(_i,"fade",zt.maskTransitionName),className:Ie()(Qr,Ei,Er==null?void 0:Er.className),style:Object.assign(Object.assign({},Er==null?void 0:Er.style),ii),classNames:Object.assign(Object.assign(Object.assign({},Er==null?void 0:Er.classNames),Wi),{wrapper:Ie()(Ri,Wi==null?void 0:Wi.wrapper)}),styles:Object.assign(Object.assign({},Er==null?void 0:Er.styles),Yi),panelRef:Bs}))))))},ai=x(78600),Ms=x(91110),Ar=x(79263);const Rt=zt=>{const{componentCls:en,titleFontSize:Cn,titleLineHeight:rr,modalConfirmIconSize:Pr,fontSize:Er,lineHeight:ui,modalTitleHeight:Gr,fontHeight:zr,confirmBodyPadding:Ei}=zt,Zi=`${en}-confirm`;return{[Zi]:{"&-rtl":{direction:"rtl"},[`${zt.antCls}-modal-header`]:{display:"none"},[`${Zi}-body-wrapper`]:Object.assign({},(0,Ms.dF)()),[`&${en} ${en}-body`]:{padding:Ei},[`${Zi}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${zt.iconCls}`]:{flex:"none",fontSize:Pr,marginInlineEnd:zt.confirmIconMarginInlineEnd,marginTop:zt.calc(zt.calc(zr).sub(Pr).equal()).div(2).equal()},[`&-has-title > ${zt.iconCls}`]:{marginTop:zt.calc(zt.calc(Gr).sub(Pr).equal()).div(2).equal()}},[`${Zi}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:zt.marginXS,maxWidth:`calc(100% - ${(0,ai.bf)(zt.calc(zt.modalConfirmIconSize).add(zt.marginSM).equal())})`},[`${Zi}-title`]:{color:zt.colorTextHeading,fontWeight:zt.fontWeightStrong,fontSize:Cn,lineHeight:rr},[`${Zi}-content`]:{color:zt.colorText,fontSize:Er,lineHeight:ui},[`${Zi}-btns`]:{textAlign:"end",marginTop:zt.confirmBtnsMarginTop,[`${zt.antCls}-btn + ${zt.antCls}-btn`]:{marginBottom:0,marginInlineStart:zt.marginXS}}},[`${Zi}-error ${Zi}-body > ${zt.iconCls}`]:{color:zt.colorError},[`${Zi}-warning ${Zi}-body > ${zt.iconCls}, + ${Zi}-confirm ${Zi}-body > ${zt.iconCls}`]:{color:zt.colorWarning},[`${Zi}-info ${Zi}-body > ${zt.iconCls}`]:{color:zt.colorInfo},[`${Zi}-success ${Zi}-body > ${zt.iconCls}`]:{color:zt.colorSuccess}}};var jn=(0,Ar.bk)(["Modal","confirm"],zt=>{const en=(0,Go.B4)(zt);return[Rt(en)]},Go.eh,{order:-1e3}),wr=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Prii,(0,v.Z)(Object.values(ii))),Ln=z.createElement(z.Fragment,null,z.createElement(Gt,null),z.createElement(Et,null)),zn=zt.title!==void 0&&zt.title!==null,Wi=`${Er}-body`;return z.createElement("div",{className:`${Er}-body-wrapper`},z.createElement("div",{className:Ie()(Wi,{[`${Wi}-has-title`]:zn})},Kr,z.createElement("div",{className:`${Er}-paragraph`},zn&&z.createElement("span",{className:`${Er}-title`},zt.title),z.createElement("div",{className:`${Er}-content`},zt.content))),zr===void 0||typeof zr=="function"?z.createElement(Ye,{value:qi},z.createElement("div",{className:`${Er}-btns`},typeof zr=="function"?zr(Ln,{OkBtn:Et,CancelBtn:Gt}):Ln)):zr,z.createElement(jn,{prefixCls:en}))}const Ti=zt=>{const{close:en,zIndex:Cn,afterClose:rr,open:Pr,keyboard:Er,centered:ui,getContainer:Gr,maskStyle:zr,direction:Ei,prefixCls:Zi,wrapClassName:Kr,rootPrefixCls:Xr,bodyStyle:Qo,closable:pr=!1,closeIcon:qo,modalRender:Br,focusTriggerAfterClose:sr,onConfirm:ii,styles:qi}=zt,Ln=`${Zi}-confirm`,zn=zt.width||416,Wi=zt.style||{},Yi=zt.mask===void 0?!0:zt.mask,so=zt.maskClosable===void 0?!1:zt.maskClosable,ko=Ie()(Ln,`${Ln}-${zt.type}`,{[`${Ln}-rtl`]:Ei==="rtl"},zt.className),[,_i]=(0,nt.ZP)(),hs=z.useMemo(()=>Cn!==void 0?Cn:_i.zIndexPopupBase+Be.u6,[Cn,_i]);return z.createElement(ro,{prefixCls:Zi,className:ko,wrapClassName:Ie()({[`${Ln}-centered`]:!!zt.centered},Kr),onCancel:()=>{en==null||en({triggerCancel:!0}),ii==null||ii(!1)},open:Pr,title:"",footer:null,transitionName:(0,Ce.m)(Xr||"","zoom",zt.transitionName),maskTransitionName:(0,Ce.m)(Xr||"","fade",zt.maskTransitionName),mask:Yi,maskClosable:so,style:Wi,styles:Object.assign({body:Qo,mask:zr},qi),width:zn,zIndex:hs,afterClose:rr,keyboard:Er,centered:ui,getContainer:Gr,closable:pr,closeIcon:qo,modalRender:Br,focusTriggerAfterClose:sr},z.createElement(oi,Object.assign({},zt,{confirmPrefixCls:Ln})))};var no=zt=>{const{rootPrefixCls:en,iconPrefixCls:Cn,direction:rr,theme:Pr}=zt;return z.createElement(W.ZP,{prefixCls:en,iconPrefixCls:Cn,direction:rr,theme:Pr},z.createElement(Ti,Object.assign({},zt)))},Rn=[];let Xt="";function Sn(){return Xt}const Pn=zt=>{var en,Cn;const{prefixCls:rr,getContainer:Pr,direction:Er}=zt,ui=(0,Xi.A)(),Gr=(0,z.useContext)(A.E_),zr=Sn()||Gr.getPrefixCls(),Ei=rr||`${zr}-modal`;let Zi=Pr;return Zi===!1&&(Zi=void 0),z.createElement(no,Object.assign({},zt,{rootPrefixCls:zr,prefixCls:Ei,iconPrefixCls:Gr.iconPrefixCls,theme:Gr.theme,direction:Er!=null?Er:Gr.direction,locale:(Cn=(en=Gr.locale)===null||en===void 0?void 0:en.Modal)!==null&&Cn!==void 0?Cn:ui,getContainer:Zi}))};function hr(zt){const en=(0,W.w6)(),Cn=document.createDocumentFragment();let rr=Object.assign(Object.assign({},zt),{close:Gr,open:!0}),Pr;function Er(){for(var Ei=arguments.length,Zi=new Array(Ei),Kr=0;KrQo&&Qo.triggerCancel);zt.onCancel&&Xr&&zt.onCancel.apply(zt,[()=>{}].concat((0,v.Z)(Zi.slice(1))));for(let Qo=0;Qo{const Zi=en.getPrefixCls(void 0,Sn()),Kr=en.getIconPrefixCls(),Xr=en.getTheme(),Qo=z.createElement(Pn,Object.assign({},Ei));(0,P.s)(z.createElement(W.ZP,{prefixCls:Zi,iconPrefixCls:Kr,theme:Xr},en.holderRender?en.holderRender(Qo):Qo),Cn)})}function Gr(){for(var Ei=arguments.length,Zi=new Array(Ei),Kr=0;Kr{typeof zt.afterClose=="function"&&zt.afterClose(),Er.apply(this,Zi)}}),rr.visible&&delete rr.visible,ui(rr)}function zr(Ei){typeof Ei=="function"?rr=Ei(rr):rr=Object.assign(Object.assign({},rr),Ei),ui(rr)}return ui(rr),Rn.push(Gr),{destroy:Gr,update:zr}}function mt(zt){return Object.assign(Object.assign({},zt),{type:"warning"})}function tt(zt){return Object.assign(Object.assign({},zt),{type:"info"})}function kt(zt){return Object.assign(Object.assign({},zt),{type:"success"})}function vn(zt){return Object.assign(Object.assign({},zt),{type:"error"})}function vr(zt){return Object.assign(Object.assign({},zt),{type:"confirm"})}function qr(zt){let{rootPrefixCls:en}=zt;Xt=en}var Ni=x(62625),li=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Pr{const{prefixCls:en,className:Cn,closeIcon:rr,closable:Pr,type:Er,title:ui,children:Gr,footer:zr}=zt,Ei=li(zt,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:Zi}=z.useContext(A.E_),Kr=Zi(),Xr=en||Zi("modal"),Qo=(0,ft.Z)(Kr),[pr,qo,Br]=(0,Go.ZP)(Xr,Qo),sr=`${Xr}-confirm`;let ii={};return Er?ii={closable:Pr!=null?Pr:!1,title:"",footer:"",children:z.createElement(oi,Object.assign({},zt,{prefixCls:Xr,confirmPrefixCls:sr,rootPrefixCls:Kr,content:Gr}))}:ii={closable:Pr!=null?Pr:!0,title:ui,footer:zr!==null&&z.createElement(hi,Object.assign({},zt)),children:Gr},pr(z.createElement(Pe.s,Object.assign({prefixCls:Xr,className:Ie()(qo,`${Xr}-pure-panel`,Er&&sr,Er&&`${sr}-${Er}`,Cn,Br,Qo)},Ei,{closeIcon:Qi(Xr,rr),closable:Pr},ii)))};var dn=(0,Ni.i)(Un);function xt(){const[zt,en]=z.useState([]),Cn=z.useCallback(rr=>(en(Pr=>[].concat((0,v.Z)(Pr),[rr])),()=>{en(Pr=>Pr.filter(Er=>Er!==rr))}),[]);return[zt,Cn]}var it=x(209),Bt=function(zt,en){var Cn={};for(var rr in zt)Object.prototype.hasOwnProperty.call(zt,rr)&&en.indexOf(rr)<0&&(Cn[rr]=zt[rr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,rr=Object.getOwnPropertySymbols(zt);Pr{var Cn,{afterClose:rr,config:Pr}=zt,Er=Bt(zt,["afterClose","config"]);const[ui,Gr]=z.useState(!0),[zr,Ei]=z.useState(Pr),{direction:Zi,getPrefixCls:Kr}=z.useContext(A.E_),Xr=Kr("modal"),Qo=Kr(),pr=()=>{var ii;rr(),(ii=zr.afterClose)===null||ii===void 0||ii.call(zr)},qo=function(){Gr(!1);for(var ii=arguments.length,qi=new Array(ii),Ln=0;LnWi&&Wi.triggerCancel);zr.onCancel&&zn&&zr.onCancel.apply(zr,[()=>{}].concat((0,v.Z)(qi.slice(1))))};z.useImperativeHandle(en,()=>({destroy:qo,update:ii=>{Ei(qi=>Object.assign(Object.assign({},qi),ii))}}));const Br=(Cn=zr.okCancel)!==null&&Cn!==void 0?Cn:zr.type==="confirm",[sr]=(0,ct.Z)("Modal",it.Z.Modal);return z.createElement(no,Object.assign({prefixCls:Xr,rootPrefixCls:Qo},zr,{close:qo,open:ui,afterClose:pr,okText:zr.okText||(Br?sr==null?void 0:sr.okText:sr==null?void 0:sr.justOkText),direction:zr.direction||Zi,cancelText:zr.cancelText||(sr==null?void 0:sr.cancelText)},Er))};var ir=z.forwardRef(rn);let tr=0;const Jn=z.memo(z.forwardRef((zt,en)=>{const[Cn,rr]=xt();return z.useImperativeHandle(en,()=>({patchElement:rr}),[]),z.createElement(z.Fragment,null,Cn)}));function nn(){const zt=z.useRef(null),[en,Cn]=z.useState([]);z.useEffect(()=>{en.length&&((0,v.Z)(en).forEach(ui=>{ui()}),Cn([]))},[en]);const rr=z.useCallback(Er=>function(Gr){var zr;tr+=1;const Ei=z.createRef();let Zi;const Kr=new Promise(Br=>{Zi=Br});let Xr=!1,Qo;const pr=z.createElement(ir,{key:`modal-${tr}`,config:Er(Gr),ref:Ei,afterClose:()=>{Qo==null||Qo()},isSilent:()=>Xr,onConfirm:Br=>{Zi(Br)}});return Qo=(zr=zt.current)===null||zr===void 0?void 0:zr.patchElement(pr),Qo&&Rn.push(Qo),{destroy:()=>{function Br(){var sr;(sr=Ei.current)===null||sr===void 0||sr.destroy()}Ei.current?Br():Cn(sr=>[].concat((0,v.Z)(sr),[Br]))},update:Br=>{function sr(){var ii;(ii=Ei.current)===null||ii===void 0||ii.update(Br)}Ei.current?sr():Cn(ii=>[].concat((0,v.Z)(ii),[sr]))},then:Br=>(Xr=!0,Kr.then(Br))}},[]);return[z.useMemo(()=>({info:rr(tt),success:rr(kt),error:rr(vn),warning:rr(mt),confirm:rr(vr)}),[]),z.createElement(Jn,{key:"modal-holder",ref:zt})]}var er=nn;function Fr(zt){return hr(mt(zt))}const jr=ro;jr.useModal=er,jr.info=function(en){return hr(tt(en))},jr.success=function(en){return hr(kt(en))},jr.error=function(en){return hr(vn(en))},jr.warning=Fr,jr.warn=Fr,jr.confirm=function(en){return hr(vr(en))},jr.destroyAll=function(){for(;Rn.length;){const en=Rn.pop();en&&en()}},jr.config=qr,jr._InternalPanelDoNotUseOrYouWillBeFired=dn;var bo=jr},92747:function(St,me,x){"use strict";x.d(me,{A:function(){return X},f:function(){return W}});var v=x(209);let z=Object.assign({},v.Z.Modal),P=[];const A=()=>P.reduce((Y,ie)=>Object.assign(Object.assign({},Y),ie),v.Z.Modal);function W(Y){if(Y){const ie=Object.assign({},Y);return P.push(ie),z=A(),()=>{P=P.filter(ae=>ae!==ie),z=A()}}z=Object.assign({},v.Z.Modal)}function X(){return z}},2091:function(St,me,x){"use strict";x.d(me,{B4:function(){return Ie},QA:function(){return ie},eh:function(){return Be}});var v=x(91110),z=x(96504),P=x(19162),A=x(90882),W=x(79263),X=x(78600);function Y(Ce){return{position:Ce,inset:0}}const ie=Ce=>{const{componentCls:ct,antCls:nt}=Ce;return[{[`${ct}-root`]:{[`${ct}${nt}-zoom-enter, ${ct}${nt}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Ce.motionDurationSlow,userSelect:"none"},[`${ct}${nt}-zoom-leave ${ct}-content`]:{pointerEvents:"none"},[`${ct}-mask`]:Object.assign(Object.assign({},Y("fixed")),{zIndex:Ce.zIndexPopupBase,height:"100%",backgroundColor:Ce.colorBgMask,pointerEvents:"none",[`${ct}-hidden`]:{display:"none"}}),[`${ct}-wrap`]:Object.assign(Object.assign({},Y("fixed")),{zIndex:Ce.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${ct}${nt}-zoom-enter), &:has(${ct}${nt}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${ct}-root`]:(0,z.J$)(Ce)}]},ae=Ce=>{const{componentCls:ct}=Ce;return[{[`${ct}-root`]:{[`${ct}-wrap-rtl`]:{direction:"rtl"},[`${ct}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[ct]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Ce.screenSMMax}px)`]:{[ct]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,X.bf)(Ce.marginXS)} auto`},[`${ct}-centered`]:{[ct]:{flex:1}}}}},{[ct]:Object.assign(Object.assign({},(0,v.Wf)(Ce)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,X.bf)(Ce.calc(Ce.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:Ce.paddingLG,[`${ct}-title`]:{margin:0,color:Ce.titleColor,fontWeight:Ce.fontWeightStrong,fontSize:Ce.titleFontSize,lineHeight:Ce.titleLineHeight,wordWrap:"break-word"},[`${ct}-content`]:{position:"relative",backgroundColor:Ce.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Ce.borderRadiusLG,boxShadow:Ce.boxShadow,pointerEvents:"auto",padding:Ce.contentPadding},[`${ct}-close`]:Object.assign({position:"absolute",top:Ce.calc(Ce.modalHeaderHeight).sub(Ce.modalCloseBtnSize).div(2).equal(),insetInlineEnd:Ce.calc(Ce.modalHeaderHeight).sub(Ce.modalCloseBtnSize).div(2).equal(),zIndex:Ce.calc(Ce.zIndexPopupBase).add(10).equal(),padding:0,color:Ce.modalCloseIconColor,fontWeight:Ce.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Ce.borderRadiusSM,width:Ce.modalCloseBtnSize,height:Ce.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Ce.motionDurationMid}, background-color ${Ce.motionDurationMid}`,"&-x":{display:"flex",fontSize:Ce.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,X.bf)(Ce.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Ce.modalIconHoverColor,backgroundColor:Ce.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:Ce.closeBtnActiveBg}},(0,v.Qy)(Ce)),[`${ct}-header`]:{color:Ce.colorText,background:Ce.headerBg,borderRadius:`${(0,X.bf)(Ce.borderRadiusLG)} ${(0,X.bf)(Ce.borderRadiusLG)} 0 0`,marginBottom:Ce.headerMarginBottom,padding:Ce.headerPadding,borderBottom:Ce.headerBorderBottom},[`${ct}-body`]:{fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,wordWrap:"break-word",padding:Ce.bodyPadding},[`${ct}-footer`]:{textAlign:"end",background:Ce.footerBg,marginTop:Ce.footerMarginTop,padding:Ce.footerPadding,borderTop:Ce.footerBorderTop,borderRadius:Ce.footerBorderRadius,[`> ${Ce.antCls}-btn + ${Ce.antCls}-btn`]:{marginInlineStart:Ce.marginXS}},[`${ct}-open`]:{overflow:"hidden"}})},{[`${ct}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${ct}-content, ${ct}-body, - ${ct}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${ct}-confirm-body`]:{marginBottom:"auto"}}}]},N=Ie=>{const{componentCls:ct}=Ie;return{[`${ct}-root`]:{[`${ct}-wrap-rtl`]:{direction:"rtl",[`${ct}-confirm-body`]:{direction:"rtl"}}}}},ie=Ie=>{const ct=Ie.padding,At=Ie.fontSizeHeading5,rt=Ie.lineHeightHeading5;return(0,x.TS)(Ie,{modalHeaderHeight:Ie.calc(Ie.calc(rt).mul(At).equal()).add(Ie.calc(ct).mul(2).equal()).equal(),modalFooterBorderColorSplit:Ie.colorSplit,modalFooterBorderStyle:Ie.lineType,modalFooterBorderWidth:Ie.lineWidth,modalIconHoverColor:Ie.colorIconHover,modalCloseIconColor:Ie.colorIcon,modalCloseBtnSize:Ie.fontHeight,modalConfirmIconSize:Ie.fontHeight,modalTitleHeight:Ie.calc(Ie.titleFontSize).mul(Ie.titleLineHeight).equal()})},ze=Ie=>({footerBg:"transparent",headerBg:Ie.colorBgElevated,titleLineHeight:Ie.lineHeightHeading5,titleFontSize:Ie.fontSizeHeading5,contentBg:Ie.colorBgElevated,titleColor:Ie.colorTextHeading,closeBtnHoverBg:Ie.wireframe?"transparent":Ie.colorFillContent,closeBtnActiveBg:Ie.wireframe?"transparent":Ie.colorFillContentHover,contentPadding:Ie.wireframe?0:`${(0,w.bf)(Ie.paddingMD)} ${(0,w.bf)(Ie.paddingContentHorizontalLG)}`,headerPadding:Ie.wireframe?`${(0,w.bf)(Ie.padding)} ${(0,w.bf)(Ie.paddingLG)}`:0,headerBorderBottom:Ie.wireframe?`${(0,w.bf)(Ie.lineWidth)} ${Ie.lineType} ${Ie.colorSplit}`:"none",headerMarginBottom:Ie.wireframe?0:Ie.marginXS,bodyPadding:Ie.wireframe?Ie.paddingLG:0,footerPadding:Ie.wireframe?`${(0,w.bf)(Ie.paddingXS)} ${(0,w.bf)(Ie.padding)}`:0,footerBorderTop:Ie.wireframe?`${(0,w.bf)(Ie.lineWidth)} ${Ie.lineType} ${Ie.colorSplit}`:"none",footerBorderRadius:Ie.wireframe?`0 0 ${(0,w.bf)(Ie.borderRadiusLG)} ${(0,w.bf)(Ie.borderRadiusLG)}`:0,footerMarginTop:Ie.wireframe?0:Ie.marginSM,confirmBodyPadding:Ie.wireframe?`${(0,w.bf)(Ie.padding*2)} ${(0,w.bf)(Ie.padding*2)} ${(0,w.bf)(Ie.paddingLG)}`:0,confirmIconMarginInlineEnd:Ie.wireframe?Ie.margin:Ie.marginSM,confirmBtnsMarginTop:Ie.wireframe?Ie.marginLG:Ie.marginSM});g.ZP=(0,y.I$)("Modal",Ie=>{const ct=ie(Ie);return[I(ct),N(ct),S(ct),(0,b._y)(ct,"zoom")]},ze,{unitless:{titleLineHeight:!0}})},1461:function(c,g,l){"use strict";l.d(g,{Z:function(){return Rt}});var u=l(77617),D=l(81664),b=l(92310),x=l.n(b),y=l(89308),w=l(39193),a=l(41123),S=l(20612),I=l(58798),N=l(73323),ie=l(58061),ze=l(98389),Ie=l(99622),ct=l(69221),At=l(50700),rt=l(209),It=l(76429),Ot=l(79263);const wn=on=>{const{componentCls:Hr,iconCls:vn,antCls:Ca,zIndexPopup:ai,colorText:gt,colorWarning:Zr,marginXXS:Ht,marginXS:Zs,fontSize:oi,fontWeightStrong:Pa,colorTextHeading:Aa}=on;return{[Hr]:{zIndex:ai,[`&${Ca}-popover`]:{fontSize:oi},[`${Hr}-message`]:{marginBottom:Zs,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Hr}-message-icon ${vn}`]:{color:Zr,fontSize:oi,lineHeight:1,marginInlineEnd:Zs},[`${Hr}-title`]:{fontWeight:Pa,color:Aa,"&:only-child":{fontWeight:"normal"}},[`${Hr}-description`]:{marginTop:Ht,color:gt}},[`${Hr}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Zs}}}}},Hs=on=>{const{zIndexPopupBase:Hr}=on;return{zIndexPopup:Hr+60}};var jr=(0,Ot.I$)("Popconfirm",on=>wn(on),Hs,{resetStyle:!1}),Jr=function(on,Hr){var vn={};for(var Ca in on)Object.prototype.hasOwnProperty.call(on,Ca)&&Hr.indexOf(Ca)<0&&(vn[Ca]=on[Ca]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Ca=Object.getOwnPropertySymbols(on);ai{const{prefixCls:Hr,okButtonProps:vn,cancelButtonProps:Ca,title:ai,description:gt,cancelText:Zr,okText:Ht,okType:Zs="primary",icon:oi=u.createElement(D.Z,null),showCancel:Pa=!0,close:Aa,onConfirm:Pg,onCancel:Ug,onPopupClick:e0}=on,{getPrefixCls:H0}=u.useContext(I.E_),[X0]=(0,At.Z)("Popconfirm",rt.Z.Popconfirm),d0=(0,ze.Z)(ai),jv=(0,ze.Z)(gt);return u.createElement("div",{className:`${Hr}-inner-content`,onClick:e0},u.createElement("div",{className:`${Hr}-message`},oi&&u.createElement("span",{className:`${Hr}-message-icon`},oi),u.createElement("div",{className:`${Hr}-message-text`},d0&&u.createElement("div",{className:x()(`${Hr}-title`)},d0),jv&&u.createElement("div",{className:`${Hr}-description`},jv))),u.createElement("div",{className:`${Hr}-buttons`},Pa&&u.createElement(Ie.ZP,Object.assign({onClick:Ug,size:"small"},Ca),Zr||(X0==null?void 0:X0.cancelText)),u.createElement(ie.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ct.nx)(Zs)),vn),actionFn:Pg,close:Aa,prefixCls:H0("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Ht||(X0==null?void 0:X0.okText))))};var _n=on=>{const{prefixCls:Hr,placement:vn,className:Ca,style:ai}=on,gt=Jr(on,["prefixCls","placement","className","style"]),{getPrefixCls:Zr}=u.useContext(I.E_),Ht=Zr("popconfirm",Hr),[Zs]=jr(Ht);return Zs(u.createElement(It.ZP,{placement:vn,className:x()(Ht,Ca),style:ai,content:u.createElement(Yn,Object.assign({prefixCls:Ht},gt))}))},Mt=function(on,Hr){var vn={};for(var Ca in on)Object.prototype.hasOwnProperty.call(on,Ca)&&Hr.indexOf(Ca)<0&&(vn[Ca]=on[Ca]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ai=0,Ca=Object.getOwnPropertySymbols(on);ai{var vn,Ca;const{prefixCls:ai,placement:gt="top",trigger:Zr="click",okType:Ht="primary",icon:Zs=u.createElement(D.Z,null),children:oi,overlayClassName:Pa,onOpenChange:Aa,onVisibleChange:Pg}=on,Ug=Mt(on,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:e0}=u.useContext(I.E_),[H0,X0]=(0,y.Z)(!1,{value:(vn=on.open)!==null&&vn!==void 0?vn:on.visible,defaultValue:(Ca=on.defaultOpen)!==null&&Ca!==void 0?Ca:on.defaultVisible}),d0=(Dg,zo)=>{X0(Dg,!0),Pg==null||Pg(Dg),Aa==null||Aa(Dg,zo)},jv=Dg=>{d0(!1,Dg)},Lv=Dg=>{var zo;return(zo=on.onConfirm)===null||zo===void 0?void 0:zo.call(void 0,Dg)},Je=Dg=>{var zo;d0(!1,Dg),(zo=on.onCancel)===null||zo===void 0||zo.call(void 0,Dg)},k0=Dg=>{Dg.keyCode===w.Z.ESC&&H0&&d0(!1,Dg)},G0=Dg=>{const{disabled:zo=!1}=on;zo||d0(Dg)},iv=e0("popconfirm",ai),u0=x()(iv,Pa),[B1]=jr(iv);return B1(u.createElement(N.Z,Object.assign({},(0,a.Z)(Ug,["title"]),{trigger:Zr,placement:gt,onOpenChange:G0,open:H0,ref:Hr,overlayClassName:u0,content:u.createElement(Yn,Object.assign({okType:Ht,icon:Zs},on,{prefixCls:iv,close:jv,onConfirm:Lv,onCancel:Je})),"data-popover-inject":!0}),(0,S.Tm)(oi,{onKeyDown:Dg=>{var zo,mu;u.isValidElement(oi)&&((mu=oi==null?void 0:(zo=oi.props).onKeyDown)===null||mu===void 0||mu.call(zo,Dg)),k0(Dg)}})))});Bt._InternalPanelDoNotUseOrYouWillBeFired=_n;var Rt=Bt},76429:function(c,g,l){"use strict";l.d(g,{t5:function(){return N}});var u=l(77617),D=l(92310),b=l.n(D),x=l(23882),y=l(98389),w=l(58798),a=l(95825),S=function(ze,Ie){var ct={};for(var At in ze)Object.prototype.hasOwnProperty.call(ze,At)&&Ie.indexOf(At)<0&&(ct[At]=ze[At]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,At=Object.getOwnPropertySymbols(ze);rt!Ie&&!ct?null:u.createElement(u.Fragment,null,Ie&&u.createElement("div",{className:`${ze}-title`},(0,y.Z)(Ie)),u.createElement("div",{className:`${ze}-inner-content`},(0,y.Z)(ct))),N=ze=>{const{hashId:Ie,prefixCls:ct,className:At,style:rt,placement:It="top",title:Ot,content:wn,children:Hs}=ze;return u.createElement("div",{className:b()(Ie,ct,`${ct}-pure`,`${ct}-placement-${It}`,At),style:rt},u.createElement("div",{className:`${ct}-arrow`}),u.createElement(x.G,Object.assign({},ze,{className:Ie,prefixCls:ct}),Hs||I(ct,Ot,wn)))},ie=ze=>{const{prefixCls:Ie,className:ct}=ze,At=S(ze,["prefixCls","className"]),{getPrefixCls:rt}=u.useContext(w.E_),It=rt("popover",Ie),[Ot,wn,Hs]=(0,a.Z)(It);return Ot(u.createElement(N,Object.assign({},At,{prefixCls:It,hashId:wn,className:b()(ct,Hs)})))};g.ZP=ie},73323:function(c,g,l){"use strict";var u=l(77617),D=l(92310),b=l.n(D),x=l(98389),y=l(12149),w=l(58798),a=l(3773),S=l(76429),I=l(95825),N=function(Ie,ct){var At={};for(var rt in Ie)Object.prototype.hasOwnProperty.call(Ie,rt)&&ct.indexOf(rt)<0&&(At[rt]=Ie[rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,rt=Object.getOwnPropertySymbols(Ie);It{let{title:ct,content:At,prefixCls:rt}=Ie;return u.createElement(u.Fragment,null,ct&&u.createElement("div",{className:`${rt}-title`},(0,x.Z)(ct)),u.createElement("div",{className:`${rt}-inner-content`},(0,x.Z)(At)))},ze=u.forwardRef((Ie,ct)=>{const{prefixCls:At,title:rt,content:It,overlayClassName:Ot,placement:wn="top",trigger:Hs="hover",mouseEnterDelay:jr=.1,mouseLeaveDelay:Jr=.1,overlayStyle:Yn={}}=Ie,Lt=N(Ie,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:_n}=u.useContext(w.E_),Mt=_n("popover",At),[Bt,Rt,on]=(0,I.Z)(Mt),Hr=_n(),vn=b()(Ot,Rt,on);return Bt(u.createElement(a.Z,Object.assign({placement:wn,trigger:Hs,mouseEnterDelay:jr,mouseLeaveDelay:Jr,overlayStyle:Yn},Lt,{prefixCls:Mt,overlayClassName:vn,ref:ct,overlay:rt||It?u.createElement(ie,{prefixCls:Mt,title:rt,content:It}):null,transitionName:(0,y.m)(Hr,"zoom-big",Lt.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=S.ZP,g.Z=ze},95825:function(c,g,l){"use strict";var u=l(91110),D=l(19162),b=l(50489),x=l(42095),y=l(79263),w=l(90882),a=l(70157);const S=ie=>{const{componentCls:ze,popoverColor:Ie,titleMinWidth:ct,fontWeightStrong:At,innerPadding:rt,boxShadowSecondary:It,colorTextHeading:Ot,borderRadiusLG:wn,zIndexPopup:Hs,titleMarginBottom:jr,colorBgElevated:Jr,popoverBg:Yn,titleBorderBottom:Lt,innerContentPadding:_n,titlePadding:Mt}=ie;return[{[ze]:Object.assign(Object.assign({},(0,u.Wf)(ie)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Hs,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Jr,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ze}-content`]:{position:"relative"},[`${ze}-inner`]:{backgroundColor:Yn,backgroundClip:"padding-box",borderRadius:wn,boxShadow:It,padding:rt},[`${ze}-title`]:{minWidth:ct,marginBottom:jr,color:Ot,fontWeight:At,borderBottom:Lt,padding:Mt},[`${ze}-inner-content`]:{color:Ie,padding:_n}})},(0,b.ZP)(ie,"var(--antd-arrow-background-color)"),{[`${ze}-pure`]:{position:"relative",maxWidth:"none",margin:ie.sizePopupArrow,display:"inline-block",[`${ze}-content`]:{display:"inline-block"}}}]},I=ie=>{const{componentCls:ze}=ie;return{[ze]:x.i.map(Ie=>{const ct=ie[`${Ie}6`];return{[`&${ze}-${Ie}`]:{"--antd-arrow-background-color":ct,[`${ze}-inner`]:{backgroundColor:ct},[`${ze}-arrow`]:{background:"transparent"}}}})}},N=ie=>{const{lineWidth:ze,controlHeight:Ie,fontHeight:ct,padding:At,wireframe:rt,zIndexPopupBase:It,borderRadiusLG:Ot,marginXS:wn,lineType:Hs,colorSplit:jr,paddingSM:Jr}=ie,Yn=Ie-ct,Lt=Yn/2,_n=Yn/2-ze,Mt=At;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:It+30},(0,a.w)(ie)),(0,b.wZ)({contentRadius:Ot,limitVerticalRadius:!0})),{innerPadding:rt?0:12,titleMarginBottom:rt?0:wn,titlePadding:rt?`${Lt}px ${Mt}px ${_n}px`:0,titleBorderBottom:rt?`${ze}px ${Hs} ${jr}`:"none",innerContentPadding:rt?`${Jr}px ${Mt}px`:0})};g.Z=(0,y.I$)("Popover",ie=>{const{colorBgElevated:ze,colorText:Ie}=ie,ct=(0,w.TS)(ie,{popoverBg:ze,popoverColor:Ie});return[S(ct),I(ct),(0,D._y)(ct,"zoom-big")]},N,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},11864:function(c,g,l){"use strict";l.d(g,{ZP:function(){return Pa}});var u=l(77617),D=l(92310),b=l.n(D),x=l(89308),y=l(64834),w=l(58798),a=l(20804);const S=u.createContext(null),I=S.Provider;var N=S;const ie=u.createContext(null),ze=ie.Provider;var Ie=l(5630),ct=l(17763),At=l(20261),rt=l(10386),It=l(57801),Ot=l(51623),wn=l(78600),Hs=l(91110),jr=l(79263),Jr=l(90882);const Yn=Aa=>{const{componentCls:Pg,antCls:Ug}=Aa,e0=`${Pg}-group`;return{[e0]:Object.assign(Object.assign({},(0,Hs.Wf)(Aa)),{display:"inline-block",fontSize:0,[`&${e0}-rtl`]:{direction:"rtl"},[`${Ug}-badge ${Ug}-badge-count`]:{zIndex:1},[`> ${Ug}-badge:not(:first-child) > ${Ug}-button-wrapper`]:{borderInlineStart:"none"}})}},Lt=Aa=>{const{componentCls:Pg,wrapperMarginInlineEnd:Ug,colorPrimary:e0,radioSize:H0,motionDurationSlow:X0,motionDurationMid:d0,motionEaseInOutCirc:jv,colorBgContainer:Lv,colorBorder:Je,lineWidth:k0,colorBgContainerDisabled:G0,colorTextDisabled:iv,paddingXS:u0,dotColorDisabled:B1,lineType:Dg,radioColor:zo,radioBgColor:mu,calc:Ag}=Aa,c0=`${Pg}-inner`,L0=4,$0=Ag(H0).sub(Ag(L0).mul(2)),cv=Ag(1).mul(H0).equal();return{[`${Pg}-wrapper`]:Object.assign(Object.assign({},(0,Hs.Wf)(Aa)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ug,cursor:"pointer",[`&${Pg}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Aa.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Pg}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,wn.bf)(k0)} ${Dg} ${e0}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Pg]:Object.assign(Object.assign({},(0,Hs.Wf)(Aa)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Pg}-wrapper:hover &, - &:hover ${c0}`]:{borderColor:e0},[`${Pg}-input:focus-visible + ${c0}`]:Object.assign({},(0,Hs.oN)(Aa)),[`${Pg}:hover::after, ${Pg}-wrapper:hover &::after`]:{visibility:"visible"},[`${Pg}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:cv,height:cv,marginBlockStart:Ag(1).mul(H0).div(-2).equal(),marginInlineStart:Ag(1).mul(H0).div(-2).equal(),backgroundColor:zo,borderBlockStart:0,borderInlineStart:0,borderRadius:cv,transform:"scale(0)",opacity:0,transition:`all ${X0} ${jv}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:cv,height:cv,backgroundColor:Lv,borderColor:Je,borderStyle:"solid",borderWidth:k0,borderRadius:"50%",transition:`all ${d0}`},[`${Pg}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Pg}-checked`]:{[c0]:{borderColor:e0,backgroundColor:mu,"&::after":{transform:`scale(${Aa.calc(Aa.dotSize).div(H0).equal()})`,opacity:1,transition:`all ${X0} ${jv}`}}},[`${Pg}-disabled`]:{cursor:"not-allowed",[c0]:{backgroundColor:G0,borderColor:Je,cursor:"not-allowed","&::after":{backgroundColor:B1}},[`${Pg}-input`]:{cursor:"not-allowed"},[`${Pg}-disabled + span`]:{color:iv,cursor:"not-allowed"},[`&${Pg}-checked`]:{[c0]:{"&::after":{transform:`scale(${Ag($0).div(H0).equal({unit:!1})})`}}}},[`span${Pg} + *`]:{paddingInlineStart:u0,paddingInlineEnd:u0}})}},_n=Aa=>{const{buttonColor:Pg,controlHeight:Ug,componentCls:e0,lineWidth:H0,lineType:X0,colorBorder:d0,motionDurationSlow:jv,motionDurationMid:Lv,buttonPaddingInline:Je,fontSize:k0,buttonBg:G0,fontSizeLG:iv,controlHeightLG:u0,controlHeightSM:B1,paddingXS:Dg,borderRadius:zo,borderRadiusSM:mu,borderRadiusLG:Ag,buttonCheckedBg:c0,buttonSolidCheckedColor:L0,colorTextDisabled:$0,colorBgContainerDisabled:cv,buttonCheckedBgDisabled:Gg,buttonCheckedColorDisabled:uu,colorPrimary:Gs,colorPrimaryHover:Ia,colorPrimaryActive:lu,buttonSolidCheckedBg:_h,buttonSolidCheckedHoverBg:Kr,buttonSolidCheckedActiveBg:fr,calc:ri}=Aa;return{[`${e0}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ug,margin:0,paddingInline:Je,paddingBlock:0,color:Pg,fontSize:k0,lineHeight:(0,wn.bf)(ri(Ug).sub(ri(H0).mul(2)).equal()),background:G0,border:`${(0,wn.bf)(H0)} ${X0} ${d0}`,borderBlockStartWidth:ri(H0).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:H0,cursor:"pointer",transition:[`color ${Lv}`,`background ${Lv}`,`box-shadow ${Lv}`].join(","),a:{color:Pg},[`> ${e0}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:ri(H0).mul(-1).equal(),insetInlineStart:ri(H0).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:H0,paddingInline:0,backgroundColor:d0,transition:`background-color ${jv}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,wn.bf)(H0)} ${X0} ${d0}`,borderStartStartRadius:zo,borderEndStartRadius:zo},"&:last-child":{borderStartEndRadius:zo,borderEndEndRadius:zo},"&:first-child:last-child":{borderRadius:zo},[`${e0}-group-large &`]:{height:u0,fontSize:iv,lineHeight:(0,wn.bf)(ri(u0).sub(ri(H0).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ag,borderEndStartRadius:Ag},"&:last-child":{borderStartEndRadius:Ag,borderEndEndRadius:Ag}},[`${e0}-group-small &`]:{height:B1,paddingInline:ri(Dg).sub(H0).equal(),paddingBlock:0,lineHeight:(0,wn.bf)(ri(B1).sub(ri(H0).mul(2)).equal()),"&:first-child":{borderStartStartRadius:mu,borderEndStartRadius:mu},"&:last-child":{borderStartEndRadius:mu,borderEndEndRadius:mu}},"&:hover":{position:"relative",color:Gs},"&:has(:focus-visible)":Object.assign({},(0,Hs.oN)(Aa)),[`${e0}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${e0}-button-wrapper-disabled)`]:{zIndex:1,color:Gs,background:c0,borderColor:Gs,"&::before":{backgroundColor:Gs},"&:first-child":{borderColor:Gs},"&:hover":{color:Ia,borderColor:Ia,"&::before":{backgroundColor:Ia}},"&:active":{color:lu,borderColor:lu,"&::before":{backgroundColor:lu}}},[`${e0}-group-solid &-checked:not(${e0}-button-wrapper-disabled)`]:{color:L0,background:_h,borderColor:_h,"&:hover":{color:L0,background:Kr,borderColor:Kr},"&:active":{color:L0,background:fr,borderColor:fr}},"&-disabled":{color:$0,backgroundColor:cv,borderColor:d0,cursor:"not-allowed","&:first-child, &:hover":{color:$0,backgroundColor:cv,borderColor:d0}},[`&-disabled${e0}-button-wrapper-checked`]:{color:uu,backgroundColor:Gg,borderColor:d0,boxShadow:"none"}}}},Mt=Aa=>{const{wireframe:Pg,padding:Ug,marginXS:e0,lineWidth:H0,fontSizeLG:X0,colorText:d0,colorBgContainer:jv,colorTextDisabled:Lv,controlItemBgActiveDisabled:Je,colorTextLightSolid:k0,colorPrimary:G0,colorPrimaryHover:iv,colorPrimaryActive:u0,colorWhite:B1}=Aa,Dg=4,zo=X0,mu=Pg?zo-Dg*2:zo-(Dg+H0)*2;return{radioSize:zo,dotSize:mu,dotColorDisabled:Lv,buttonSolidCheckedColor:k0,buttonSolidCheckedBg:G0,buttonSolidCheckedHoverBg:iv,buttonSolidCheckedActiveBg:u0,buttonBg:jv,buttonCheckedBg:jv,buttonColor:d0,buttonCheckedBgDisabled:Je,buttonCheckedColorDisabled:Lv,buttonPaddingInline:Ug-H0,wrapperMarginInlineEnd:e0,radioColor:Pg?G0:B1,radioBgColor:Pg?jv:G0}};var Bt=(0,jr.I$)("Radio",Aa=>{const{controlOutline:Pg,controlOutlineWidth:Ug}=Aa,e0=`0 0 0 ${(0,wn.bf)(Ug)} ${Pg}`,H0=e0,X0=(0,Jr.TS)(Aa,{radioFocusShadow:e0,radioButtonFocusShadow:H0});return[Yn(X0),Lt(X0),_n(X0)]},Mt,{unitless:{radioSize:!0,dotSize:!0}}),Rt=l(26504),on=function(Aa,Pg){var Ug={};for(var e0 in Aa)Object.prototype.hasOwnProperty.call(Aa,e0)&&Pg.indexOf(e0)<0&&(Ug[e0]=Aa[e0]);if(Aa!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H0=0,e0=Object.getOwnPropertySymbols(Aa);H0{var Ug,e0;const H0=u.useContext(N),X0=u.useContext(ie),{getPrefixCls:d0,direction:jv,radio:Lv}=u.useContext(w.E_),Je=u.useRef(null),k0=(0,ct.sQ)(Pg,Je),{isFormItemInput:G0}=u.useContext(Ot.aM),iv=fr=>{var ri,Ra;(ri=Aa.onChange)===null||ri===void 0||ri.call(Aa,fr),(Ra=H0==null?void 0:H0.onChange)===null||Ra===void 0||Ra.call(H0,fr)},{prefixCls:u0,className:B1,rootClassName:Dg,children:zo,style:mu,title:Ag}=Aa,c0=on(Aa,["prefixCls","className","rootClassName","children","style","title"]),L0=d0("radio",u0),$0=((H0==null?void 0:H0.optionType)||X0)==="button",cv=$0?`${L0}-button`:L0,Gg=(0,Rt.Z)(L0),[uu,Gs,Ia]=Bt(L0,Gg),lu=Object.assign({},c0),_h=u.useContext(It.Z);H0&&(lu.name=H0.name,lu.onChange=iv,lu.checked=Aa.value===H0.value,lu.disabled=(Ug=lu.disabled)!==null&&Ug!==void 0?Ug:H0.disabled),lu.disabled=(e0=lu.disabled)!==null&&e0!==void 0?e0:_h;const Kr=b()(`${cv}-wrapper`,{[`${cv}-wrapper-checked`]:lu.checked,[`${cv}-wrapper-disabled`]:lu.disabled,[`${cv}-wrapper-rtl`]:jv==="rtl",[`${cv}-wrapper-in-form-item`]:G0},Lv==null?void 0:Lv.className,B1,Dg,Gs,Ia,Gg);return uu(u.createElement(At.Z,{component:"Radio",disabled:lu.disabled},u.createElement("label",{className:Kr,style:Object.assign(Object.assign({},Lv==null?void 0:Lv.style),mu),onMouseEnter:Aa.onMouseEnter,onMouseLeave:Aa.onMouseLeave,title:Ag},u.createElement(Ie.Z,Object.assign({},lu,{className:b()(lu.className,!$0&&rt.A),type:"radio",prefixCls:cv,ref:k0})),zo!==void 0?u.createElement("span",null,zo):null)))};var Ca=u.forwardRef(Hr);const ai=u.forwardRef((Aa,Pg)=>{const{getPrefixCls:Ug,direction:e0}=u.useContext(w.E_),[H0,X0]=(0,x.Z)(Aa.defaultValue,{value:Aa.value}),d0=fr=>{const ri=H0,Ra=fr.target.value;"value"in Aa||X0(Ra);const{onChange:Sg}=Aa;Sg&&Ra!==ri&&Sg(fr)},{prefixCls:jv,className:Lv,rootClassName:Je,options:k0,buttonStyle:G0="outline",disabled:iv,children:u0,size:B1,style:Dg,id:zo,onMouseEnter:mu,onMouseLeave:Ag,onFocus:c0,onBlur:L0}=Aa,$0=Ug("radio",jv),cv=`${$0}-group`,Gg=(0,Rt.Z)($0),[uu,Gs,Ia]=Bt($0,Gg);let lu=u0;k0&&k0.length>0&&(lu=k0.map(fr=>typeof fr=="string"||typeof fr=="number"?u.createElement(Ca,{key:fr.toString(),prefixCls:$0,disabled:iv,value:fr,checked:H0===fr},fr):u.createElement(Ca,{key:`radio-group-value-options-${fr.value}`,prefixCls:$0,disabled:fr.disabled||iv,value:fr.value,checked:H0===fr.value,title:fr.title,style:fr.style,id:fr.id,required:fr.required},fr.label)));const _h=(0,a.Z)(B1),Kr=b()(cv,`${cv}-${G0}`,{[`${cv}-${_h}`]:_h,[`${cv}-rtl`]:e0==="rtl"},Lv,Je,Gs,Ia,Gg);return uu(u.createElement("div",Object.assign({},(0,y.Z)(Aa,{aria:!0,data:!0}),{className:Kr,style:Dg,onMouseEnter:mu,onMouseLeave:Ag,onFocus:c0,onBlur:L0,id:zo,ref:Pg}),u.createElement(I,{value:{onChange:d0,value:H0,disabled:Aa.disabled,name:Aa.name,optionType:Aa.optionType}},lu)))});var gt=u.memo(ai),Zr=function(Aa,Pg){var Ug={};for(var e0 in Aa)Object.prototype.hasOwnProperty.call(Aa,e0)&&Pg.indexOf(e0)<0&&(Ug[e0]=Aa[e0]);if(Aa!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H0=0,e0=Object.getOwnPropertySymbols(Aa);H0{const{getPrefixCls:Ug}=u.useContext(w.E_),{prefixCls:e0}=Aa,H0=Zr(Aa,["prefixCls"]),X0=Ug("radio",e0);return u.createElement(ze,{value:"button"},u.createElement(Ca,Object.assign({prefixCls:X0},H0,{type:"radio",ref:Pg})))};var Zs=u.forwardRef(Ht);const oi=Ca;oi.Button=Zs,oi.Group=gt,oi.__ANT_RADIO=!0;var Pa=oi},87430:function(c,g,l){"use strict";l.d(g,{ZP:function(){return Zr}});var u=l(77617),D=l(50555),b=l(43418),x=l(81664),y=l(79384),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},a=w,S=l(44847),I=function(Zs,oi){return u.createElement(S.Z,(0,y.Z)({},Zs,{ref:oi,icon:a}))},N=u.forwardRef(I),ie=l(92310),ze=l.n(ie),Ie=l(58798),At=()=>u.createElement("svg",{width:"252",height:"294"},u.createElement("defs",null,u.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .012)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),u.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),u.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),u.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),u.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),u.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),u.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),u.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),u.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),u.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),u.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),u.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),u.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),u.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),u.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),u.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),u.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),u.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),u.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),u.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),u.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),u.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),u.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),u.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),u.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),u.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),u.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),u.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),u.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),u.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),u.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),u.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),u.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),u.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),u.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),It=()=>u.createElement("svg",{width:"254",height:"294"},u.createElement("defs",null,u.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),u.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(0 .067)"},u.createElement("mask",{fill:"#fff"}),u.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),u.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),u.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),u.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),u.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),u.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),u.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),u.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),u.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),u.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),u.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),u.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),u.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),u.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),u.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),u.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),u.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),u.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),u.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),u.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),u.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),u.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),u.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),u.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),u.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),u.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),u.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),u.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),u.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),u.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),u.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),u.createElement("mask",{fill:"#fff"}),u.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),u.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),u.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),u.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),u.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),u.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),u.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Ot=l(78600),wn=l(79263),Hs=l(90882);const jr=Ht=>{const{componentCls:Zs,lineHeightHeading3:oi,iconCls:Pa,padding:Aa,paddingXL:Pg,paddingXS:Ug,paddingLG:e0,marginXS:H0,lineHeight:X0}=Ht;return{[Zs]:{padding:`${(0,Ot.bf)(Ht.calc(e0).mul(2).equal())} ${(0,Ot.bf)(Pg)}`,"&-rtl":{direction:"rtl"}},[`${Zs} ${Zs}-image`]:{width:Ht.imageWidth,height:Ht.imageHeight,margin:"auto"},[`${Zs} ${Zs}-icon`]:{marginBottom:e0,textAlign:"center",[`& > ${Pa}`]:{fontSize:Ht.iconFontSize}},[`${Zs} ${Zs}-title`]:{color:Ht.colorTextHeading,fontSize:Ht.titleFontSize,lineHeight:oi,marginBlock:H0,textAlign:"center"},[`${Zs} ${Zs}-subtitle`]:{color:Ht.colorTextDescription,fontSize:Ht.subtitleFontSize,lineHeight:X0,textAlign:"center"},[`${Zs} ${Zs}-content`]:{marginTop:e0,padding:`${(0,Ot.bf)(e0)} ${(0,Ot.bf)(Ht.calc(Aa).mul(2.5).equal())}`,backgroundColor:Ht.colorFillAlter},[`${Zs} ${Zs}-extra`]:{margin:Ht.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Ug,"&:last-child":{marginInlineEnd:0}}}}},Jr=Ht=>{const{componentCls:Zs,iconCls:oi}=Ht;return{[`${Zs}-success ${Zs}-icon > ${oi}`]:{color:Ht.resultSuccessIconColor},[`${Zs}-error ${Zs}-icon > ${oi}`]:{color:Ht.resultErrorIconColor},[`${Zs}-info ${Zs}-icon > ${oi}`]:{color:Ht.resultInfoIconColor},[`${Zs}-warning ${Zs}-icon > ${oi}`]:{color:Ht.resultWarningIconColor}}},Yn=Ht=>[jr(Ht),Jr(Ht)],Lt=Ht=>Yn(Ht),_n=Ht=>({titleFontSize:Ht.fontSizeHeading3,subtitleFontSize:Ht.fontSize,iconFontSize:Ht.fontSizeHeading3*3,extraMargin:`${Ht.paddingLG}px 0 0 0`});var Mt=(0,wn.I$)("Result",Ht=>{const Zs=Ht.colorInfo,oi=Ht.colorError,Pa=Ht.colorSuccess,Aa=Ht.colorWarning,Pg=(0,Hs.TS)(Ht,{resultInfoIconColor:Zs,resultErrorIconColor:oi,resultSuccessIconColor:Pa,resultWarningIconColor:Aa,imageWidth:250,imageHeight:295});return[Lt(Pg)]},_n),Rt=()=>u.createElement("svg",{width:"251",height:"294"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),u.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),u.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),u.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),u.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),u.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),u.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),u.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),u.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),u.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),u.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),u.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),u.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),u.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),u.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),u.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),u.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),u.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),u.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),u.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),u.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),u.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),u.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),u.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),u.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),u.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),u.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),u.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),u.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),u.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),u.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),u.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),u.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),u.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),u.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),u.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),u.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const on={success:D.Z,error:b.Z,info:x.Z,warning:N},Hr={404:At,500:It,403:Rt},vn=Object.keys(Hr),Ca=Ht=>{let{prefixCls:Zs,icon:oi,status:Pa}=Ht;const Aa=ze()(`${Zs}-icon`);if(vn.includes(`${Pa}`)){const Ug=Hr[Pa];return u.createElement("div",{className:`${Aa} ${Zs}-image`},u.createElement(Ug,null))}const Pg=u.createElement(on[Pa]);return oi===null||oi===!1?null:u.createElement("div",{className:Aa},oi||Pg)},ai=Ht=>{let{prefixCls:Zs,extra:oi}=Ht;return oi?u.createElement("div",{className:`${Zs}-extra`},oi):null},gt=Ht=>{let{prefixCls:Zs,className:oi,rootClassName:Pa,subTitle:Aa,title:Pg,style:Ug,children:e0,status:H0="info",icon:X0,extra:d0}=Ht;const{getPrefixCls:jv,direction:Lv,result:Je}=u.useContext(Ie.E_),k0=jv("result",Zs),[G0,iv,u0]=Mt(k0),B1=ze()(k0,`${k0}-${H0}`,oi,Je==null?void 0:Je.className,Pa,{[`${k0}-rtl`]:Lv==="rtl"},iv,u0),Dg=Object.assign(Object.assign({},Je==null?void 0:Je.style),Ug);return G0(u.createElement("div",{className:B1,style:Dg},u.createElement(Ca,{prefixCls:k0,status:H0,icon:X0}),u.createElement("div",{className:`${k0}-title`},Pg),Aa&&u.createElement("div",{className:`${k0}-subtitle`},Aa),u.createElement(ai,{prefixCls:k0,extra:d0}),e0&&u.createElement("div",{className:`${k0}-content`},e0)))};gt.PRESENTED_IMAGE_403=Hr[403],gt.PRESENTED_IMAGE_404=Hr[404],gt.PRESENTED_IMAGE_500=Hr[500];var Zr=gt},16042:function(c,g,l){"use strict";var u=l(77617),D=l(92310),b=l.n(D),x=l(51409),y=l(41123),w=l(40870),a=l(12149),S=l(62625),I=l(24902),N=l(58798),ie=l(70990),ze=l(57801),Ie=l(26504),ct=l(20804),At=l(51623),rt=l(90426),It=l(55449),Ot=l(57832),wn=l(21028),Hs=l(22785),jr=l(14275),Jr=l(60621),Yn=function(Rt,on){var Hr={};for(var vn in Rt)Object.prototype.hasOwnProperty.call(Rt,vn)&&on.indexOf(vn)<0&&(Hr[vn]=Rt[vn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ca=0,vn=Object.getOwnPropertySymbols(Rt);Ca{var Hr;const{prefixCls:vn,bordered:Ca,className:ai,rootClassName:gt,getPopupContainer:Zr,popupClassName:Ht,dropdownClassName:Zs,listHeight:oi=256,placement:Pa,listItemHeight:Aa,size:Pg,disabled:Ug,notFoundContent:e0,status:H0,builtinPlacements:X0,dropdownMatchSelectWidth:d0,popupMatchSelectWidth:jv,direction:Lv,style:Je,allowClear:k0,variant:G0,dropdownStyle:iv,transitionName:u0,tagRender:B1,maxCount:Dg}=Rt,zo=Yn(Rt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:mu,getPrefixCls:Ag,renderEmpty:c0,direction:L0,virtual:$0,popupMatchSelectWidth:cv,popupOverflow:Gg,select:uu}=u.useContext(N.E_),[,Gs]=(0,Ot.ZP)(),Ia=Aa!=null?Aa:Gs==null?void 0:Gs.controlHeight,lu=Ag("select",vn),_h=Ag(),Kr=Lv!=null?Lv:L0,{compactSize:fr,compactItemClassnames:ri}=(0,It.ri)(lu,Kr),[Ra,Sg]=(0,rt.Z)(G0,Ca),Jg=(0,Ie.Z)(lu),[j0,Wo,Mo]=(0,Hs.Z)(lu,Jg),qr=u.useMemo(()=>{const{mode:nv}=Rt;if(nv!=="combobox")return nv===Lt?"combobox":nv},[Rt.mode]),On=qr==="multiple"||qr==="tags",rn=(0,Jr.Z)(Rt.suffixIcon,Rt.showArrow),ui=(Hr=jv!=null?jv:d0)!==null&&Hr!==void 0?Hr:cv,{status:ya,hasFeedback:gd,isFormItemInput:Su,feedbackIcon:xu}=u.useContext(At.aM),xa=(0,I.F)(ya,H0);let Td;e0!==void 0?Td=e0:qr==="combobox"?Td=null:Td=(c0==null?void 0:c0("Select"))||u.createElement(ie.Z,{componentName:"Select"});const{suffixIcon:jg,itemIcon:Wa,removeIcon:tv,clearIcon:Bs}=(0,jr.Z)(Object.assign(Object.assign({},zo),{multiple:On,hasFeedback:gd,feedbackIcon:xu,showSuffixIcon:rn,prefixCls:lu,componentName:"Select"})),Sa=k0===!0?{clearIcon:Bs}:k0,$a=(0,y.Z)(zo,["suffixIcon","itemIcon"]),Bd=b()(Ht||Zs,{[`${lu}-dropdown-${Kr}`]:Kr==="rtl"},gt,Mo,Jg,Wo),Bg=(0,ct.Z)(nv=>{var t0;return(t0=Pg!=null?Pg:fr)!==null&&t0!==void 0?t0:nv}),Og=u.useContext(ze.Z),g0=Ug!=null?Ug:Og,qg=b()({[`${lu}-lg`]:Bg==="large",[`${lu}-sm`]:Bg==="small",[`${lu}-rtl`]:Kr==="rtl",[`${lu}-${Ra}`]:Sg,[`${lu}-in-form-item`]:Su},(0,I.Z)(lu,xa,gd),ri,uu==null?void 0:uu.className,ai,gt,Mo,Jg,Wo),Xg=u.useMemo(()=>Pa!==void 0?Pa:Kr==="rtl"?"bottomRight":"bottomLeft",[Pa,Kr]),[A0]=(0,w.Cn)("SelectLike",iv==null?void 0:iv.zIndex);return j0(u.createElement(x.ZP,Object.assign({ref:on,virtual:$0,showSearch:uu==null?void 0:uu.showSearch},$a,{style:Object.assign(Object.assign({},uu==null?void 0:uu.style),Je),dropdownMatchSelectWidth:ui,transitionName:(0,a.m)(_h,"slide-up",u0),builtinPlacements:(0,wn.Z)(X0,Gg),listHeight:oi,listItemHeight:Ia,mode:qr,prefixCls:lu,placement:Xg,direction:Kr,suffixIcon:jg,menuItemSelectedIcon:Wa,removeIcon:tv,allowClear:Sa,notFoundContent:Td,className:qg,getPopupContainer:Zr||mu,dropdownClassName:Bd,disabled:g0,dropdownStyle:Object.assign(Object.assign({},iv),{zIndex:A0}),maxCount:On?Dg:void 0,tagRender:On?B1:void 0})))},Mt=u.forwardRef(_n),Bt=(0,S.Z)(Mt);Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Lt,Mt.Option=x.Wx,Mt.OptGroup=x.Xo,Mt._InternalPanelDoNotUseOrYouWillBeFired=Bt,g.Z=Mt},21028:function(c,g){"use strict";const l=D=>{const x={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:D==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},x),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},x),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},x),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},x),{points:["br","tr"],offset:[0,-4]})}};function u(D,b){return D||l(b)}g.Z=u},22785:function(c,g,l){"use strict";l.d(g,{Z:function(){return ai}});var u=l(91110),D=l(99109),b=l(79263),x=l(90882),y=l(17089),w=l(63172);const a=gt=>{const{optionHeight:Zr,optionFontSize:Ht,optionLineHeight:Zs,optionPadding:oi}=gt;return{position:"relative",display:"block",minHeight:Zr,padding:oi,color:gt.colorText,fontWeight:"normal",fontSize:Ht,lineHeight:Zs,boxSizing:"border-box"}};var I=gt=>{const{antCls:Zr,componentCls:Ht}=gt,Zs=`${Ht}-item`,oi=`&${Zr}-slide-up-enter${Zr}-slide-up-enter-active`,Pa=`&${Zr}-slide-up-appear${Zr}-slide-up-appear-active`,Aa=`&${Zr}-slide-up-leave${Zr}-slide-up-leave-active`,Pg=`${Ht}-dropdown-placement-`;return[{[`${Ht}-dropdown`]:Object.assign(Object.assign({},(0,u.Wf)(gt)),{position:"absolute",top:-9999,zIndex:gt.zIndexPopup,boxSizing:"border-box",padding:gt.paddingXXS,overflow:"hidden",fontSize:gt.fontSize,fontVariant:"initial",backgroundColor:gt.colorBgElevated,borderRadius:gt.borderRadiusLG,outline:"none",boxShadow:gt.boxShadowSecondary,[` - ${oi}${Pg}bottomLeft, - ${Pa}${Pg}bottomLeft - `]:{animationName:y.fJ},[` - ${oi}${Pg}topLeft, - ${Pa}${Pg}topLeft, - ${oi}${Pg}topRight, - ${Pa}${Pg}topRight - `]:{animationName:y.Qt},[`${Aa}${Pg}bottomLeft`]:{animationName:y.Uw},[` - ${Aa}${Pg}topLeft, - ${Aa}${Pg}topRight - `]:{animationName:y.ly},"&-hidden":{display:"none"},[`${Zs}`]:Object.assign(Object.assign({},a(gt)),{cursor:"pointer",transition:`background ${gt.motionDurationSlow} ease`,borderRadius:gt.borderRadiusSM,"&-group":{color:gt.colorTextDescription,fontSize:gt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},u.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Zs}-option-disabled)`]:{backgroundColor:gt.optionActiveBg},[`&-selected:not(${Zs}-option-disabled)`]:{color:gt.optionSelectedColor,fontWeight:gt.optionSelectedFontWeight,backgroundColor:gt.optionSelectedBg,[`${Zs}-option-state`]:{color:gt.colorPrimary},[`&:has(+ ${Zs}-option-selected:not(${Zs}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zs}-option-selected:not(${Zs}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${Zs}-option-selected`]:{backgroundColor:gt.colorBgContainerDisabled},color:gt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:gt.calc(gt.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},a(gt)),{color:gt.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,y.oN)(gt,"slide-up"),(0,y.oN)(gt,"slide-down"),(0,w.Fm)(gt,"move-up"),(0,w.Fm)(gt,"move-down")]},N=l(78600);const ie=2,ze=gt=>{const{multipleSelectItemHeight:Zr,selectHeight:Ht,lineWidth:Zs}=gt;return gt.calc(Ht).sub(Zr).div(2).sub(Zs).equal()},Ie=(gt,Zr)=>{const{componentCls:Ht,iconCls:Zs}=gt,oi=`${Ht}-selection-overflow`,Pa=gt.multipleSelectItemHeight,Aa=ze(gt),Pg=Zr?`${Ht}-${Zr}`:"";return{[`${Ht}-multiple${Pg}`]:{[oi]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ht}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:gt.calc(ie).mul(2).equal(),paddingBlock:gt.calc(Aa).sub(ie).equal(),borderRadius:gt.borderRadius,[`${Ht}-disabled&`]:{background:gt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,N.bf)(ie)} 0`,lineHeight:(0,N.bf)(Pa),visibility:"hidden",content:'"\\a0"'}},[`${Ht}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pa,marginTop:ie,marginBottom:ie,lineHeight:(0,N.bf)(gt.calc(Pa).sub(gt.calc(gt.lineWidth).mul(2)).equal()),borderRadius:gt.borderRadiusSM,cursor:"default",transition:`font-size ${gt.motionDurationSlow}, line-height ${gt.motionDurationSlow}, height ${gt.motionDurationSlow}`,marginInlineEnd:gt.calc(ie).mul(2).equal(),paddingInlineStart:gt.paddingXS,paddingInlineEnd:gt.calc(gt.paddingXS).div(2).equal(),[`${Ht}-disabled&`]:{color:gt.multipleItemColorDisabled,borderColor:gt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:gt.calc(gt.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,u.Ro)()),{display:"inline-flex",alignItems:"center",color:gt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Zs}`]:{verticalAlign:"-0.2em"},"&:hover":{color:gt.colorIconHover}})},[`${oi}-item + ${oi}-item`]:{[`${Ht}-selection-search`]:{marginInlineStart:0}},[`${oi}-item-suffix`]:{height:"100%"},[`${Ht}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:gt.calc(gt.inputPaddingHorizontalBase).sub(Aa).equal(),[` + ${ct}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${ct}-confirm-body`]:{marginBottom:"auto"}}}]},se=Ce=>{const{componentCls:ct}=Ce;return{[`${ct}-root`]:{[`${ct}-wrap-rtl`]:{direction:"rtl",[`${ct}-confirm-body`]:{direction:"rtl"}}}}},Ie=Ce=>{const ct=Ce.padding,nt=Ce.fontSizeHeading5,Ge=Ce.lineHeightHeading5;return(0,A.TS)(Ce,{modalHeaderHeight:Ce.calc(Ce.calc(Ge).mul(nt).equal()).add(Ce.calc(ct).mul(2).equal()).equal(),modalFooterBorderColorSplit:Ce.colorSplit,modalFooterBorderStyle:Ce.lineType,modalFooterBorderWidth:Ce.lineWidth,modalIconHoverColor:Ce.colorIconHover,modalCloseIconColor:Ce.colorIcon,modalCloseBtnSize:Ce.fontHeight,modalConfirmIconSize:Ce.fontHeight,modalTitleHeight:Ce.calc(Ce.titleFontSize).mul(Ce.titleLineHeight).equal()})},Be=Ce=>({footerBg:"transparent",headerBg:Ce.colorBgElevated,titleLineHeight:Ce.lineHeightHeading5,titleFontSize:Ce.fontSizeHeading5,contentBg:Ce.colorBgElevated,titleColor:Ce.colorTextHeading,closeBtnHoverBg:Ce.wireframe?"transparent":Ce.colorFillContent,closeBtnActiveBg:Ce.wireframe?"transparent":Ce.colorFillContentHover,contentPadding:Ce.wireframe?0:`${(0,X.bf)(Ce.paddingMD)} ${(0,X.bf)(Ce.paddingContentHorizontalLG)}`,headerPadding:Ce.wireframe?`${(0,X.bf)(Ce.padding)} ${(0,X.bf)(Ce.paddingLG)}`:0,headerBorderBottom:Ce.wireframe?`${(0,X.bf)(Ce.lineWidth)} ${Ce.lineType} ${Ce.colorSplit}`:"none",headerMarginBottom:Ce.wireframe?0:Ce.marginXS,bodyPadding:Ce.wireframe?Ce.paddingLG:0,footerPadding:Ce.wireframe?`${(0,X.bf)(Ce.paddingXS)} ${(0,X.bf)(Ce.padding)}`:0,footerBorderTop:Ce.wireframe?`${(0,X.bf)(Ce.lineWidth)} ${Ce.lineType} ${Ce.colorSplit}`:"none",footerBorderRadius:Ce.wireframe?`0 0 ${(0,X.bf)(Ce.borderRadiusLG)} ${(0,X.bf)(Ce.borderRadiusLG)}`:0,footerMarginTop:Ce.wireframe?0:Ce.marginSM,confirmBodyPadding:Ce.wireframe?`${(0,X.bf)(Ce.padding*2)} ${(0,X.bf)(Ce.padding*2)} ${(0,X.bf)(Ce.paddingLG)}`:0,confirmIconMarginInlineEnd:Ce.wireframe?Ce.margin:Ce.marginSM,confirmBtnsMarginTop:Ce.wireframe?Ce.marginLG:Ce.marginSM});me.ZP=(0,W.I$)("Modal",Ce=>{const ct=Ie(Ce);return[ae(ct),se(ct),ie(ct),(0,P._y)(ct,"zoom")]},Be,{unitless:{titleLineHeight:!0}})},1461:function(St,me,x){"use strict";x.d(me,{Z:function(){return je}});var v=x(77617),z=x(81664),P=x(92310),A=x.n(P),W=x(89308),X=x(39193),Y=x(41123),ie=x(20612),ae=x(58798),se=x(73323),Ie=x(58061),Be=x(98389),Ce=x(99622),ct=x(69221),nt=x(50700),Ge=x(209),at=x(76429),Ye=x(79263);const rt=ft=>{const{componentCls:Ct,iconCls:Xe,antCls:hn,zIndexPopup:Nt,colorText:Te,colorWarning:vt,marginXXS:ze,marginXS:Vt,fontSize:Tt,fontWeightStrong:un,colorTextHeading:on}=ft;return{[Ct]:{zIndex:Nt,[`&${hn}-popover`]:{fontSize:Tt},[`${Ct}-message`]:{marginBottom:Vt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ct}-message-icon ${Xe}`]:{color:vt,fontSize:Tt,lineHeight:1,marginInlineEnd:Vt},[`${Ct}-title`]:{fontWeight:un,color:on,"&:only-child":{fontWeight:"normal"}},[`${Ct}-description`]:{marginTop:ze,color:Te}},[`${Ct}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Vt}}}}},Gt=ft=>{const{zIndexPopupBase:Ct}=ft;return{zIndexPopup:Ct+60}};var yt=(0,Ye.I$)("Popconfirm",ft=>rt(ft),Gt,{resetStyle:!1}),Et=function(ft,Ct){var Xe={};for(var hn in ft)Object.prototype.hasOwnProperty.call(ft,hn)&&Ct.indexOf(hn)<0&&(Xe[hn]=ft[hn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,hn=Object.getOwnPropertySymbols(ft);Nt{const{prefixCls:Ct,okButtonProps:Xe,cancelButtonProps:hn,title:Nt,description:Te,cancelText:vt,okText:ze,okType:Vt="primary",icon:Tt=v.createElement(z.Z,null),showCancel:un=!0,close:on,onConfirm:Lr,onCancel:Yr,onPopupClick:fi}=ft,{getPrefixCls:Xi}=v.useContext(ae.E_),[Qi]=(0,nt.Z)("Popconfirm",Ge.Z.Popconfirm),hi=(0,Be.Z)(Nt),Go=(0,Be.Z)(Te);return v.createElement("div",{className:`${Ct}-inner-content`,onClick:fi},v.createElement("div",{className:`${Ct}-message`},Tt&&v.createElement("span",{className:`${Ct}-message-icon`},Tt),v.createElement("div",{className:`${Ct}-message-text`},hi&&v.createElement("div",{className:A()(`${Ct}-title`)},hi),Go&&v.createElement("div",{className:`${Ct}-description`},Go))),v.createElement("div",{className:`${Ct}-buttons`},un&&v.createElement(Ce.ZP,Object.assign({onClick:Yr,size:"small"},hn),vt||(Qi==null?void 0:Qi.cancelText)),v.createElement(Ie.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ct.nx)(Vt)),Xe),actionFn:Lr,close:on,prefixCls:Xi("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ze||(Qi==null?void 0:Qi.okText))))};var et=ft=>{const{prefixCls:Ct,placement:Xe,className:hn,style:Nt}=ft,Te=Et(ft,["prefixCls","placement","className","style"]),{getPrefixCls:vt}=v.useContext(ae.E_),ze=vt("popconfirm",Ct),[Vt]=yt(ze);return Vt(v.createElement(at.ZP,{placement:Xe,className:A()(ze,hn),style:Nt,content:v.createElement(ht,Object.assign({prefixCls:ze},Te))}))},Oe=function(ft,Ct){var Xe={};for(var hn in ft)Object.prototype.hasOwnProperty.call(ft,hn)&&Ct.indexOf(hn)<0&&(Xe[hn]=ft[hn]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,hn=Object.getOwnPropertySymbols(ft);Nt{var Xe,hn;const{prefixCls:Nt,placement:Te="top",trigger:vt="click",okType:ze="primary",icon:Vt=v.createElement(z.Z,null),children:Tt,overlayClassName:un,onOpenChange:on,onVisibleChange:Lr}=ft,Yr=Oe(ft,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:fi}=v.useContext(ae.E_),[Xi,Qi]=(0,W.Z)(!1,{value:(Xe=ft.open)!==null&&Xe!==void 0?Xe:ft.visible,defaultValue:(hn=ft.defaultOpen)!==null&&hn!==void 0?hn:ft.defaultVisible}),hi=(Ar,Rt)=>{Qi(Ar,!0),Lr==null||Lr(Ar),on==null||on(Ar,Rt)},Go=Ar=>{hi(!1,Ar)},Mo=Ar=>{var Rt;return(Rt=ft.onConfirm)===null||Rt===void 0?void 0:Rt.call(void 0,Ar)},pe=Ar=>{var Rt;hi(!1,Ar),(Rt=ft.onCancel)===null||Rt===void 0||Rt.call(void 0,Ar)},Ii=Ar=>{Ar.keyCode===X.Z.ESC&&Xi&&hi(!1,Ar)},Vi=Ar=>{const{disabled:Rt=!1}=ft;Rt||hi(Ar)},ro=fi("popconfirm",Nt),ai=A()(ro,un),[Ms]=yt(ro);return Ms(v.createElement(se.Z,Object.assign({},(0,Y.Z)(Yr,["title"]),{trigger:vt,placement:Te,onOpenChange:Vi,open:Xi,ref:Ct,overlayClassName:ai,content:v.createElement(ht,Object.assign({okType:ze,icon:Vt},ft,{prefixCls:ro,close:Go,onConfirm:Mo,onCancel:pe})),"data-popover-inject":!0}),(0,ie.Tm)(Tt,{onKeyDown:Ar=>{var Rt,jn;v.isValidElement(Tt)&&((jn=Tt==null?void 0:(Rt=Tt.props).onKeyDown)===null||jn===void 0||jn.call(Rt,Ar)),Ii(Ar)}})))});Ue._InternalPanelDoNotUseOrYouWillBeFired=et;var je=Ue},76429:function(St,me,x){"use strict";x.d(me,{t5:function(){return se}});var v=x(77617),z=x(92310),P=x.n(z),A=x(23882),W=x(98389),X=x(58798),Y=x(95825),ie=function(Be,Ce){var ct={};for(var nt in Be)Object.prototype.hasOwnProperty.call(Be,nt)&&Ce.indexOf(nt)<0&&(ct[nt]=Be[nt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,nt=Object.getOwnPropertySymbols(Be);Ge!Ce&&!ct?null:v.createElement(v.Fragment,null,Ce&&v.createElement("div",{className:`${Be}-title`},(0,W.Z)(Ce)),v.createElement("div",{className:`${Be}-inner-content`},(0,W.Z)(ct))),se=Be=>{const{hashId:Ce,prefixCls:ct,className:nt,style:Ge,placement:at="top",title:Ye,content:rt,children:Gt}=Be;return v.createElement("div",{className:P()(Ce,ct,`${ct}-pure`,`${ct}-placement-${at}`,nt),style:Ge},v.createElement("div",{className:`${ct}-arrow`}),v.createElement(A.G,Object.assign({},Be,{className:Ce,prefixCls:ct}),Gt||ae(ct,Ye,rt)))},Ie=Be=>{const{prefixCls:Ce,className:ct}=Be,nt=ie(Be,["prefixCls","className"]),{getPrefixCls:Ge}=v.useContext(X.E_),at=Ge("popover",Ce),[Ye,rt,Gt]=(0,Y.Z)(at);return Ye(v.createElement(se,Object.assign({},nt,{prefixCls:at,hashId:rt,className:P()(ct,Gt)})))};me.ZP=Ie},73323:function(St,me,x){"use strict";var v=x(77617),z=x(92310),P=x.n(z),A=x(98389),W=x(12149),X=x(58798),Y=x(3773),ie=x(76429),ae=x(95825),se=function(Ce,ct){var nt={};for(var Ge in Ce)Object.prototype.hasOwnProperty.call(Ce,Ge)&&ct.indexOf(Ge)<0&&(nt[Ge]=Ce[Ge]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ge=Object.getOwnPropertySymbols(Ce);at{let{title:ct,content:nt,prefixCls:Ge}=Ce;return v.createElement(v.Fragment,null,ct&&v.createElement("div",{className:`${Ge}-title`},(0,A.Z)(ct)),v.createElement("div",{className:`${Ge}-inner-content`},(0,A.Z)(nt)))},Be=v.forwardRef((Ce,ct)=>{const{prefixCls:nt,title:Ge,content:at,overlayClassName:Ye,placement:rt="top",trigger:Gt="hover",mouseEnterDelay:yt=.1,mouseLeaveDelay:Et=.1,overlayStyle:ht={}}=Ce,Pe=se(Ce,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:et}=v.useContext(X.E_),Oe=et("popover",nt),[Ue,je,ft]=(0,ae.Z)(Oe),Ct=et(),Xe=P()(Ye,je,ft);return Ue(v.createElement(Y.Z,Object.assign({placement:rt,trigger:Gt,mouseEnterDelay:yt,mouseLeaveDelay:Et,overlayStyle:ht},Pe,{prefixCls:Oe,overlayClassName:Xe,ref:ct,overlay:Ge||at?v.createElement(Ie,{prefixCls:Oe,title:Ge,content:at}):null,transitionName:(0,W.m)(Ct,"zoom-big",Pe.transitionName),"data-popover-inject":!0})))});Be._InternalPanelDoNotUseOrYouWillBeFired=ie.ZP,me.Z=Be},95825:function(St,me,x){"use strict";var v=x(91110),z=x(19162),P=x(50489),A=x(42095),W=x(79263),X=x(90882),Y=x(70157);const ie=Ie=>{const{componentCls:Be,popoverColor:Ce,titleMinWidth:ct,fontWeightStrong:nt,innerPadding:Ge,boxShadowSecondary:at,colorTextHeading:Ye,borderRadiusLG:rt,zIndexPopup:Gt,titleMarginBottom:yt,colorBgElevated:Et,popoverBg:ht,titleBorderBottom:Pe,innerContentPadding:et,titlePadding:Oe}=Ie;return[{[Be]:Object.assign(Object.assign({},(0,v.Wf)(Ie)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Gt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Et,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Be}-content`]:{position:"relative"},[`${Be}-inner`]:{backgroundColor:ht,backgroundClip:"padding-box",borderRadius:rt,boxShadow:at,padding:Ge},[`${Be}-title`]:{minWidth:ct,marginBottom:yt,color:Ye,fontWeight:nt,borderBottom:Pe,padding:Oe},[`${Be}-inner-content`]:{color:Ce,padding:et}})},(0,P.ZP)(Ie,"var(--antd-arrow-background-color)"),{[`${Be}-pure`]:{position:"relative",maxWidth:"none",margin:Ie.sizePopupArrow,display:"inline-block",[`${Be}-content`]:{display:"inline-block"}}}]},ae=Ie=>{const{componentCls:Be}=Ie;return{[Be]:A.i.map(Ce=>{const ct=Ie[`${Ce}6`];return{[`&${Be}-${Ce}`]:{"--antd-arrow-background-color":ct,[`${Be}-inner`]:{backgroundColor:ct},[`${Be}-arrow`]:{background:"transparent"}}}})}},se=Ie=>{const{lineWidth:Be,controlHeight:Ce,fontHeight:ct,padding:nt,wireframe:Ge,zIndexPopupBase:at,borderRadiusLG:Ye,marginXS:rt,lineType:Gt,colorSplit:yt,paddingSM:Et}=Ie,ht=Ce-ct,Pe=ht/2,et=ht/2-Be,Oe=nt;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:at+30},(0,Y.w)(Ie)),(0,P.wZ)({contentRadius:Ye,limitVerticalRadius:!0})),{innerPadding:Ge?0:12,titleMarginBottom:Ge?0:rt,titlePadding:Ge?`${Pe}px ${Oe}px ${et}px`:0,titleBorderBottom:Ge?`${Be}px ${Gt} ${yt}`:"none",innerContentPadding:Ge?`${Et}px ${Oe}px`:0})};me.Z=(0,W.I$)("Popover",Ie=>{const{colorBgElevated:Be,colorText:Ce}=Ie,ct=(0,X.TS)(Ie,{popoverBg:Be,popoverColor:Ce});return[ie(ct),ae(ct),(0,z._y)(ct,"zoom-big")]},se,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},11864:function(St,me,x){"use strict";x.d(me,{ZP:function(){return un}});var v=x(77617),z=x(92310),P=x.n(z),A=x(89308),W=x(64834),X=x(58798),Y=x(20804);const ie=v.createContext(null),ae=ie.Provider;var se=ie;const Ie=v.createContext(null),Be=Ie.Provider;var Ce=x(5630),ct=x(17763),nt=x(20261),Ge=x(10386),at=x(57801),Ye=x(51623),rt=x(78600),Gt=x(91110),yt=x(79263),Et=x(90882);const ht=on=>{const{componentCls:Lr,antCls:Yr}=on,fi=`${Lr}-group`;return{[fi]:Object.assign(Object.assign({},(0,Gt.Wf)(on)),{display:"inline-block",fontSize:0,[`&${fi}-rtl`]:{direction:"rtl"},[`${Yr}-badge ${Yr}-badge-count`]:{zIndex:1},[`> ${Yr}-badge:not(:first-child) > ${Yr}-button-wrapper`]:{borderInlineStart:"none"}})}},Pe=on=>{const{componentCls:Lr,wrapperMarginInlineEnd:Yr,colorPrimary:fi,radioSize:Xi,motionDurationSlow:Qi,motionDurationMid:hi,motionEaseInOutCirc:Go,colorBgContainer:Mo,colorBorder:pe,lineWidth:Ii,colorBgContainerDisabled:Vi,colorTextDisabled:ro,paddingXS:ai,dotColorDisabled:Ms,lineType:Ar,radioColor:Rt,radioBgColor:jn,calc:wr}=on,oi=`${Lr}-inner`,Ti=4,Bi=wr(Xi).sub(wr(Ti).mul(2)),no=wr(1).mul(Xi).equal();return{[`${Lr}-wrapper`]:Object.assign(Object.assign({},(0,Gt.Wf)(on)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Yr,cursor:"pointer",[`&${Lr}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:on.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Lr}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,rt.bf)(Ii)} ${Ar} ${fi}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Lr]:Object.assign(Object.assign({},(0,Gt.Wf)(on)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Lr}-wrapper:hover &, + &:hover ${oi}`]:{borderColor:fi},[`${Lr}-input:focus-visible + ${oi}`]:Object.assign({},(0,Gt.oN)(on)),[`${Lr}:hover::after, ${Lr}-wrapper:hover &::after`]:{visibility:"visible"},[`${Lr}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:no,height:no,marginBlockStart:wr(1).mul(Xi).div(-2).equal(),marginInlineStart:wr(1).mul(Xi).div(-2).equal(),backgroundColor:Rt,borderBlockStart:0,borderInlineStart:0,borderRadius:no,transform:"scale(0)",opacity:0,transition:`all ${Qi} ${Go}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:no,height:no,backgroundColor:Mo,borderColor:pe,borderStyle:"solid",borderWidth:Ii,borderRadius:"50%",transition:`all ${hi}`},[`${Lr}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Lr}-checked`]:{[oi]:{borderColor:fi,backgroundColor:jn,"&::after":{transform:`scale(${on.calc(on.dotSize).div(Xi).equal()})`,opacity:1,transition:`all ${Qi} ${Go}`}}},[`${Lr}-disabled`]:{cursor:"not-allowed",[oi]:{backgroundColor:Vi,borderColor:pe,cursor:"not-allowed","&::after":{backgroundColor:Ms}},[`${Lr}-input`]:{cursor:"not-allowed"},[`${Lr}-disabled + span`]:{color:ro,cursor:"not-allowed"},[`&${Lr}-checked`]:{[oi]:{"&::after":{transform:`scale(${wr(Bi).div(Xi).equal({unit:!1})})`}}}},[`span${Lr} + *`]:{paddingInlineStart:ai,paddingInlineEnd:ai}})}},et=on=>{const{buttonColor:Lr,controlHeight:Yr,componentCls:fi,lineWidth:Xi,lineType:Qi,colorBorder:hi,motionDurationSlow:Go,motionDurationMid:Mo,buttonPaddingInline:pe,fontSize:Ii,buttonBg:Vi,fontSizeLG:ro,controlHeightLG:ai,controlHeightSM:Ms,paddingXS:Ar,borderRadius:Rt,borderRadiusSM:jn,borderRadiusLG:wr,buttonCheckedBg:oi,buttonSolidCheckedColor:Ti,colorTextDisabled:Bi,colorBgContainerDisabled:no,buttonCheckedBgDisabled:Vr,buttonCheckedColorDisabled:Rn,colorPrimary:Xt,colorPrimaryHover:Sn,colorPrimaryActive:Pn,buttonSolidCheckedBg:hr,buttonSolidCheckedHoverBg:mt,buttonSolidCheckedActiveBg:tt,calc:kt}=on;return{[`${fi}-button-wrapper`]:{position:"relative",display:"inline-block",height:Yr,margin:0,paddingInline:pe,paddingBlock:0,color:Lr,fontSize:Ii,lineHeight:(0,rt.bf)(kt(Yr).sub(kt(Xi).mul(2)).equal()),background:Vi,border:`${(0,rt.bf)(Xi)} ${Qi} ${hi}`,borderBlockStartWidth:kt(Xi).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Xi,cursor:"pointer",transition:[`color ${Mo}`,`background ${Mo}`,`box-shadow ${Mo}`].join(","),a:{color:Lr},[`> ${fi}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:kt(Xi).mul(-1).equal(),insetInlineStart:kt(Xi).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Xi,paddingInline:0,backgroundColor:hi,transition:`background-color ${Go}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,rt.bf)(Xi)} ${Qi} ${hi}`,borderStartStartRadius:Rt,borderEndStartRadius:Rt},"&:last-child":{borderStartEndRadius:Rt,borderEndEndRadius:Rt},"&:first-child:last-child":{borderRadius:Rt},[`${fi}-group-large &`]:{height:ai,fontSize:ro,lineHeight:(0,rt.bf)(kt(ai).sub(kt(Xi).mul(2)).equal()),"&:first-child":{borderStartStartRadius:wr,borderEndStartRadius:wr},"&:last-child":{borderStartEndRadius:wr,borderEndEndRadius:wr}},[`${fi}-group-small &`]:{height:Ms,paddingInline:kt(Ar).sub(Xi).equal(),paddingBlock:0,lineHeight:(0,rt.bf)(kt(Ms).sub(kt(Xi).mul(2)).equal()),"&:first-child":{borderStartStartRadius:jn,borderEndStartRadius:jn},"&:last-child":{borderStartEndRadius:jn,borderEndEndRadius:jn}},"&:hover":{position:"relative",color:Xt},"&:has(:focus-visible)":Object.assign({},(0,Gt.oN)(on)),[`${fi}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${fi}-button-wrapper-disabled)`]:{zIndex:1,color:Xt,background:oi,borderColor:Xt,"&::before":{backgroundColor:Xt},"&:first-child":{borderColor:Xt},"&:hover":{color:Sn,borderColor:Sn,"&::before":{backgroundColor:Sn}},"&:active":{color:Pn,borderColor:Pn,"&::before":{backgroundColor:Pn}}},[`${fi}-group-solid &-checked:not(${fi}-button-wrapper-disabled)`]:{color:Ti,background:hr,borderColor:hr,"&:hover":{color:Ti,background:mt,borderColor:mt},"&:active":{color:Ti,background:tt,borderColor:tt}},"&-disabled":{color:Bi,backgroundColor:no,borderColor:hi,cursor:"not-allowed","&:first-child, &:hover":{color:Bi,backgroundColor:no,borderColor:hi}},[`&-disabled${fi}-button-wrapper-checked`]:{color:Rn,backgroundColor:Vr,borderColor:hi,boxShadow:"none"}}}},Oe=on=>{const{wireframe:Lr,padding:Yr,marginXS:fi,lineWidth:Xi,fontSizeLG:Qi,colorText:hi,colorBgContainer:Go,colorTextDisabled:Mo,controlItemBgActiveDisabled:pe,colorTextLightSolid:Ii,colorPrimary:Vi,colorPrimaryHover:ro,colorPrimaryActive:ai,colorWhite:Ms}=on,Ar=4,Rt=Qi,jn=Lr?Rt-Ar*2:Rt-(Ar+Xi)*2;return{radioSize:Rt,dotSize:jn,dotColorDisabled:Mo,buttonSolidCheckedColor:Ii,buttonSolidCheckedBg:Vi,buttonSolidCheckedHoverBg:ro,buttonSolidCheckedActiveBg:ai,buttonBg:Go,buttonCheckedBg:Go,buttonColor:hi,buttonCheckedBgDisabled:pe,buttonCheckedColorDisabled:Mo,buttonPaddingInline:Yr-Xi,wrapperMarginInlineEnd:fi,radioColor:Lr?Vi:Ms,radioBgColor:Lr?Go:Vi}};var Ue=(0,yt.I$)("Radio",on=>{const{controlOutline:Lr,controlOutlineWidth:Yr}=on,fi=`0 0 0 ${(0,rt.bf)(Yr)} ${Lr}`,Xi=fi,Qi=(0,Et.TS)(on,{radioFocusShadow:fi,radioButtonFocusShadow:Xi});return[ht(Qi),Pe(Qi),et(Qi)]},Oe,{unitless:{radioSize:!0,dotSize:!0}}),je=x(26504),ft=function(on,Lr){var Yr={};for(var fi in on)Object.prototype.hasOwnProperty.call(on,fi)&&Lr.indexOf(fi)<0&&(Yr[fi]=on[fi]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xi=0,fi=Object.getOwnPropertySymbols(on);Xi{var Yr,fi;const Xi=v.useContext(se),Qi=v.useContext(Ie),{getPrefixCls:hi,direction:Go,radio:Mo}=v.useContext(X.E_),pe=v.useRef(null),Ii=(0,ct.sQ)(Lr,pe),{isFormItemInput:Vi}=v.useContext(Ye.aM),ro=tt=>{var kt,vn;(kt=on.onChange)===null||kt===void 0||kt.call(on,tt),(vn=Xi==null?void 0:Xi.onChange)===null||vn===void 0||vn.call(Xi,tt)},{prefixCls:ai,className:Ms,rootClassName:Ar,children:Rt,style:jn,title:wr}=on,oi=ft(on,["prefixCls","className","rootClassName","children","style","title"]),Ti=hi("radio",ai),Bi=((Xi==null?void 0:Xi.optionType)||Qi)==="button",no=Bi?`${Ti}-button`:Ti,Vr=(0,je.Z)(Ti),[Rn,Xt,Sn]=Ue(Ti,Vr),Pn=Object.assign({},oi),hr=v.useContext(at.Z);Xi&&(Pn.name=Xi.name,Pn.onChange=ro,Pn.checked=on.value===Xi.value,Pn.disabled=(Yr=Pn.disabled)!==null&&Yr!==void 0?Yr:Xi.disabled),Pn.disabled=(fi=Pn.disabled)!==null&&fi!==void 0?fi:hr;const mt=P()(`${no}-wrapper`,{[`${no}-wrapper-checked`]:Pn.checked,[`${no}-wrapper-disabled`]:Pn.disabled,[`${no}-wrapper-rtl`]:Go==="rtl",[`${no}-wrapper-in-form-item`]:Vi},Mo==null?void 0:Mo.className,Ms,Ar,Xt,Sn,Vr);return Rn(v.createElement(nt.Z,{component:"Radio",disabled:Pn.disabled},v.createElement("label",{className:mt,style:Object.assign(Object.assign({},Mo==null?void 0:Mo.style),jn),onMouseEnter:on.onMouseEnter,onMouseLeave:on.onMouseLeave,title:wr},v.createElement(Ce.Z,Object.assign({},Pn,{className:P()(Pn.className,!Bi&&Ge.A),type:"radio",prefixCls:no,ref:Ii})),Rt!==void 0?v.createElement("span",null,Rt):null)))};var hn=v.forwardRef(Ct);const Nt=v.forwardRef((on,Lr)=>{const{getPrefixCls:Yr,direction:fi}=v.useContext(X.E_),[Xi,Qi]=(0,A.Z)(on.defaultValue,{value:on.value}),hi=tt=>{const kt=Xi,vn=tt.target.value;"value"in on||Qi(vn);const{onChange:vr}=on;vr&&vn!==kt&&vr(tt)},{prefixCls:Go,className:Mo,rootClassName:pe,options:Ii,buttonStyle:Vi="outline",disabled:ro,children:ai,size:Ms,style:Ar,id:Rt,onMouseEnter:jn,onMouseLeave:wr,onFocus:oi,onBlur:Ti}=on,Bi=Yr("radio",Go),no=`${Bi}-group`,Vr=(0,je.Z)(Bi),[Rn,Xt,Sn]=Ue(Bi,Vr);let Pn=ai;Ii&&Ii.length>0&&(Pn=Ii.map(tt=>typeof tt=="string"||typeof tt=="number"?v.createElement(hn,{key:tt.toString(),prefixCls:Bi,disabled:ro,value:tt,checked:Xi===tt},tt):v.createElement(hn,{key:`radio-group-value-options-${tt.value}`,prefixCls:Bi,disabled:tt.disabled||ro,value:tt.value,checked:Xi===tt.value,title:tt.title,style:tt.style,id:tt.id,required:tt.required},tt.label)));const hr=(0,Y.Z)(Ms),mt=P()(no,`${no}-${Vi}`,{[`${no}-${hr}`]:hr,[`${no}-rtl`]:fi==="rtl"},Mo,pe,Xt,Sn,Vr);return Rn(v.createElement("div",Object.assign({},(0,W.Z)(on,{aria:!0,data:!0}),{className:mt,style:Ar,onMouseEnter:jn,onMouseLeave:wr,onFocus:oi,onBlur:Ti,id:Rt,ref:Lr}),v.createElement(ae,{value:{onChange:hi,value:Xi,disabled:on.disabled,name:on.name,optionType:on.optionType}},Pn)))});var Te=v.memo(Nt),vt=function(on,Lr){var Yr={};for(var fi in on)Object.prototype.hasOwnProperty.call(on,fi)&&Lr.indexOf(fi)<0&&(Yr[fi]=on[fi]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xi=0,fi=Object.getOwnPropertySymbols(on);Xi{const{getPrefixCls:Yr}=v.useContext(X.E_),{prefixCls:fi}=on,Xi=vt(on,["prefixCls"]),Qi=Yr("radio",fi);return v.createElement(Be,{value:"button"},v.createElement(hn,Object.assign({prefixCls:Qi},Xi,{type:"radio",ref:Lr})))};var Vt=v.forwardRef(ze);const Tt=hn;Tt.Button=Vt,Tt.Group=Te,Tt.__ANT_RADIO=!0;var un=Tt},87430:function(St,me,x){"use strict";x.d(me,{ZP:function(){return vt}});var v=x(77617),z=x(50555),P=x(43418),A=x(81664),W=x(79384),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},Y=X,ie=x(44847),ae=function(Vt,Tt){return v.createElement(ie.Z,(0,W.Z)({},Vt,{ref:Tt,icon:Y}))},se=v.forwardRef(ae),Ie=x(92310),Be=x.n(Ie),Ce=x(58798),nt=()=>v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),v.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),v.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),v.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),v.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),v.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),v.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),v.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),v.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),v.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),v.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),v.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),v.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),v.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),v.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),v.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),v.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),v.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),v.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),v.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),v.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),v.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),v.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),v.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),v.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),v.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),v.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),at=()=>v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),v.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),v.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),v.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),v.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),v.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),v.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),v.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),v.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),v.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),v.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),v.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),v.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),v.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),v.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),v.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),v.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),v.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),v.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),v.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),v.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),v.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),v.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),v.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),v.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),v.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),v.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),v.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),v.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),v.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Ye=x(78600),rt=x(79263),Gt=x(90882);const yt=ze=>{const{componentCls:Vt,lineHeightHeading3:Tt,iconCls:un,padding:on,paddingXL:Lr,paddingXS:Yr,paddingLG:fi,marginXS:Xi,lineHeight:Qi}=ze;return{[Vt]:{padding:`${(0,Ye.bf)(ze.calc(fi).mul(2).equal())} ${(0,Ye.bf)(Lr)}`,"&-rtl":{direction:"rtl"}},[`${Vt} ${Vt}-image`]:{width:ze.imageWidth,height:ze.imageHeight,margin:"auto"},[`${Vt} ${Vt}-icon`]:{marginBottom:fi,textAlign:"center",[`& > ${un}`]:{fontSize:ze.iconFontSize}},[`${Vt} ${Vt}-title`]:{color:ze.colorTextHeading,fontSize:ze.titleFontSize,lineHeight:Tt,marginBlock:Xi,textAlign:"center"},[`${Vt} ${Vt}-subtitle`]:{color:ze.colorTextDescription,fontSize:ze.subtitleFontSize,lineHeight:Qi,textAlign:"center"},[`${Vt} ${Vt}-content`]:{marginTop:fi,padding:`${(0,Ye.bf)(fi)} ${(0,Ye.bf)(ze.calc(on).mul(2.5).equal())}`,backgroundColor:ze.colorFillAlter},[`${Vt} ${Vt}-extra`]:{margin:ze.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Yr,"&:last-child":{marginInlineEnd:0}}}}},Et=ze=>{const{componentCls:Vt,iconCls:Tt}=ze;return{[`${Vt}-success ${Vt}-icon > ${Tt}`]:{color:ze.resultSuccessIconColor},[`${Vt}-error ${Vt}-icon > ${Tt}`]:{color:ze.resultErrorIconColor},[`${Vt}-info ${Vt}-icon > ${Tt}`]:{color:ze.resultInfoIconColor},[`${Vt}-warning ${Vt}-icon > ${Tt}`]:{color:ze.resultWarningIconColor}}},ht=ze=>[yt(ze),Et(ze)],Pe=ze=>ht(ze),et=ze=>({titleFontSize:ze.fontSizeHeading3,subtitleFontSize:ze.fontSize,iconFontSize:ze.fontSizeHeading3*3,extraMargin:`${ze.paddingLG}px 0 0 0`});var Oe=(0,rt.I$)("Result",ze=>{const Vt=ze.colorInfo,Tt=ze.colorError,un=ze.colorSuccess,on=ze.colorWarning,Lr=(0,Gt.TS)(ze,{resultInfoIconColor:Vt,resultErrorIconColor:Tt,resultSuccessIconColor:un,resultWarningIconColor:on,imageWidth:250,imageHeight:295});return[Pe(Lr)]},et),je=()=>v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),v.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),v.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),v.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),v.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),v.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),v.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),v.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),v.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),v.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),v.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),v.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),v.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),v.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),v.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),v.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),v.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),v.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),v.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),v.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),v.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),v.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),v.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),v.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),v.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),v.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),v.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),v.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const ft={success:z.Z,error:P.Z,info:A.Z,warning:se},Ct={404:nt,500:at,403:je},Xe=Object.keys(Ct),hn=ze=>{let{prefixCls:Vt,icon:Tt,status:un}=ze;const on=Be()(`${Vt}-icon`);if(Xe.includes(`${un}`)){const Yr=Ct[un];return v.createElement("div",{className:`${on} ${Vt}-image`},v.createElement(Yr,null))}const Lr=v.createElement(ft[un]);return Tt===null||Tt===!1?null:v.createElement("div",{className:on},Tt||Lr)},Nt=ze=>{let{prefixCls:Vt,extra:Tt}=ze;return Tt?v.createElement("div",{className:`${Vt}-extra`},Tt):null},Te=ze=>{let{prefixCls:Vt,className:Tt,rootClassName:un,subTitle:on,title:Lr,style:Yr,children:fi,status:Xi="info",icon:Qi,extra:hi}=ze;const{getPrefixCls:Go,direction:Mo,result:pe}=v.useContext(Ce.E_),Ii=Go("result",Vt),[Vi,ro,ai]=Oe(Ii),Ms=Be()(Ii,`${Ii}-${Xi}`,Tt,pe==null?void 0:pe.className,un,{[`${Ii}-rtl`]:Mo==="rtl"},ro,ai),Ar=Object.assign(Object.assign({},pe==null?void 0:pe.style),Yr);return Vi(v.createElement("div",{className:Ms,style:Ar},v.createElement(hn,{prefixCls:Ii,status:Xi,icon:Qi}),v.createElement("div",{className:`${Ii}-title`},Lr),on&&v.createElement("div",{className:`${Ii}-subtitle`},on),v.createElement(Nt,{prefixCls:Ii,extra:hi}),fi&&v.createElement("div",{className:`${Ii}-content`},fi)))};Te.PRESENTED_IMAGE_403=Ct[403],Te.PRESENTED_IMAGE_404=Ct[404],Te.PRESENTED_IMAGE_500=Ct[500];var vt=Te},16042:function(St,me,x){"use strict";var v=x(77617),z=x(92310),P=x.n(z),A=x(51409),W=x(41123),X=x(40870),Y=x(12149),ie=x(62625),ae=x(24902),se=x(58798),Ie=x(70990),Be=x(57801),Ce=x(26504),ct=x(20804),nt=x(51623),Ge=x(90426),at=x(55449),Ye=x(57832),rt=x(21028),Gt=x(22785),yt=x(14275),Et=x(60621),ht=function(je,ft){var Ct={};for(var Xe in je)Object.prototype.hasOwnProperty.call(je,Xe)&&ft.indexOf(Xe)<0&&(Ct[Xe]=je[Xe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Xe=Object.getOwnPropertySymbols(je);hn{var Ct;const{prefixCls:Xe,bordered:hn,className:Nt,rootClassName:Te,getPopupContainer:vt,popupClassName:ze,dropdownClassName:Vt,listHeight:Tt=256,placement:un,listItemHeight:on,size:Lr,disabled:Yr,notFoundContent:fi,status:Xi,builtinPlacements:Qi,dropdownMatchSelectWidth:hi,popupMatchSelectWidth:Go,direction:Mo,style:pe,allowClear:Ii,variant:Vi,dropdownStyle:ro,transitionName:ai,tagRender:Ms,maxCount:Ar}=je,Rt=ht(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:jn,getPrefixCls:wr,renderEmpty:oi,direction:Ti,virtual:Bi,popupMatchSelectWidth:no,popupOverflow:Vr,select:Rn}=v.useContext(se.E_),[,Xt]=(0,Ye.ZP)(),Sn=on!=null?on:Xt==null?void 0:Xt.controlHeight,Pn=wr("select",Xe),hr=wr(),mt=Mo!=null?Mo:Ti,{compactSize:tt,compactItemClassnames:kt}=(0,at.ri)(Pn,mt),[vn,vr]=(0,Ge.Z)(Vi,hn),qr=(0,Ce.Z)(Pn),[Ni,li,Un]=(0,Gt.Z)(Pn,qr),dn=v.useMemo(()=>{const{mode:Zi}=je;if(Zi!=="combobox")return Zi===Pe?"combobox":Zi},[je.mode]),xt=dn==="multiple"||dn==="tags",it=(0,Et.Z)(je.suffixIcon,je.showArrow),Bt=(Ct=Go!=null?Go:hi)!==null&&Ct!==void 0?Ct:no,{status:rn,hasFeedback:ir,isFormItemInput:tr,feedbackIcon:Jn}=v.useContext(nt.aM),nn=(0,ae.F)(rn,Xi);let er;fi!==void 0?er=fi:dn==="combobox"?er=null:er=(oi==null?void 0:oi("Select"))||v.createElement(Ie.Z,{componentName:"Select"});const{suffixIcon:Fr,itemIcon:jr,removeIcon:bo,clearIcon:zt}=(0,yt.Z)(Object.assign(Object.assign({},Rt),{multiple:xt,hasFeedback:ir,feedbackIcon:Jn,showSuffixIcon:it,prefixCls:Pn,componentName:"Select"})),en=Ii===!0?{clearIcon:zt}:Ii,Cn=(0,W.Z)(Rt,["suffixIcon","itemIcon"]),rr=P()(ze||Vt,{[`${Pn}-dropdown-${mt}`]:mt==="rtl"},Te,Un,qr,li),Pr=(0,ct.Z)(Zi=>{var Kr;return(Kr=Lr!=null?Lr:tt)!==null&&Kr!==void 0?Kr:Zi}),Er=v.useContext(Be.Z),ui=Yr!=null?Yr:Er,Gr=P()({[`${Pn}-lg`]:Pr==="large",[`${Pn}-sm`]:Pr==="small",[`${Pn}-rtl`]:mt==="rtl",[`${Pn}-${vn}`]:vr,[`${Pn}-in-form-item`]:tr},(0,ae.Z)(Pn,nn,ir),kt,Rn==null?void 0:Rn.className,Nt,Te,Un,qr,li),zr=v.useMemo(()=>un!==void 0?un:mt==="rtl"?"bottomRight":"bottomLeft",[un,mt]),[Ei]=(0,X.Cn)("SelectLike",ro==null?void 0:ro.zIndex);return Ni(v.createElement(A.ZP,Object.assign({ref:ft,virtual:Bi,showSearch:Rn==null?void 0:Rn.showSearch},Cn,{style:Object.assign(Object.assign({},Rn==null?void 0:Rn.style),pe),dropdownMatchSelectWidth:Bt,transitionName:(0,Y.m)(hr,"slide-up",ai),builtinPlacements:(0,rt.Z)(Qi,Vr),listHeight:Tt,listItemHeight:Sn,mode:dn,prefixCls:Pn,placement:zr,direction:mt,suffixIcon:Fr,menuItemSelectedIcon:jr,removeIcon:bo,allowClear:en,notFoundContent:er,className:Gr,getPopupContainer:vt||jn,dropdownClassName:rr,disabled:ui,dropdownStyle:Object.assign(Object.assign({},ro),{zIndex:Ei}),maxCount:xt?Ar:void 0,tagRender:xt?Ms:void 0})))},Oe=v.forwardRef(et),Ue=(0,ie.Z)(Oe);Oe.SECRET_COMBOBOX_MODE_DO_NOT_USE=Pe,Oe.Option=A.Wx,Oe.OptGroup=A.Xo,Oe._InternalPanelDoNotUseOrYouWillBeFired=Ue,me.Z=Oe},21028:function(St,me){"use strict";const x=z=>{const A={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:z==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},A),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},A),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},A),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},A),{points:["br","tr"],offset:[0,-4]})}};function v(z,P){return z||x(P)}me.Z=v},22785:function(St,me,x){"use strict";x.d(me,{Z:function(){return Nt}});var v=x(91110),z=x(99109),P=x(79263),A=x(90882),W=x(17089),X=x(63172);const Y=Te=>{const{optionHeight:vt,optionFontSize:ze,optionLineHeight:Vt,optionPadding:Tt}=Te;return{position:"relative",display:"block",minHeight:vt,padding:Tt,color:Te.colorText,fontWeight:"normal",fontSize:ze,lineHeight:Vt,boxSizing:"border-box"}};var ae=Te=>{const{antCls:vt,componentCls:ze}=Te,Vt=`${ze}-item`,Tt=`&${vt}-slide-up-enter${vt}-slide-up-enter-active`,un=`&${vt}-slide-up-appear${vt}-slide-up-appear-active`,on=`&${vt}-slide-up-leave${vt}-slide-up-leave-active`,Lr=`${ze}-dropdown-placement-`;return[{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(Te)),{position:"absolute",top:-9999,zIndex:Te.zIndexPopup,boxSizing:"border-box",padding:Te.paddingXXS,overflow:"hidden",fontSize:Te.fontSize,fontVariant:"initial",backgroundColor:Te.colorBgElevated,borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,[` + ${Tt}${Lr}bottomLeft, + ${un}${Lr}bottomLeft + `]:{animationName:W.fJ},[` + ${Tt}${Lr}topLeft, + ${un}${Lr}topLeft, + ${Tt}${Lr}topRight, + ${un}${Lr}topRight + `]:{animationName:W.Qt},[`${on}${Lr}bottomLeft`]:{animationName:W.Uw},[` + ${on}${Lr}topLeft, + ${on}${Lr}topRight + `]:{animationName:W.ly},"&-hidden":{display:"none"},[`${Vt}`]:Object.assign(Object.assign({},Y(Te)),{cursor:"pointer",transition:`background ${Te.motionDurationSlow} ease`,borderRadius:Te.borderRadiusSM,"&-group":{color:Te.colorTextDescription,fontSize:Te.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Vt}-option-disabled)`]:{backgroundColor:Te.optionActiveBg},[`&-selected:not(${Vt}-option-disabled)`]:{color:Te.optionSelectedColor,fontWeight:Te.optionSelectedFontWeight,backgroundColor:Te.optionSelectedBg,[`${Vt}-option-state`]:{color:Te.colorPrimary},[`&:has(+ ${Vt}-option-selected:not(${Vt}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Vt}-option-selected:not(${Vt}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${Vt}-option-selected`]:{backgroundColor:Te.colorBgContainerDisabled},color:Te.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Te.calc(Te.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Y(Te)),{color:Te.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,W.oN)(Te,"slide-up"),(0,W.oN)(Te,"slide-down"),(0,X.Fm)(Te,"move-up"),(0,X.Fm)(Te,"move-down")]},se=x(78600);const Ie=2,Be=Te=>{const{multipleSelectItemHeight:vt,selectHeight:ze,lineWidth:Vt}=Te;return Te.calc(ze).sub(vt).div(2).sub(Vt).equal()},Ce=(Te,vt)=>{const{componentCls:ze,iconCls:Vt}=Te,Tt=`${ze}-selection-overflow`,un=Te.multipleSelectItemHeight,on=Be(Te),Lr=vt?`${ze}-${vt}`:"";return{[`${ze}-multiple${Lr}`]:{[Tt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ze}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:Te.calc(Ie).mul(2).equal(),paddingBlock:Te.calc(on).sub(Ie).equal(),borderRadius:Te.borderRadius,[`${ze}-disabled&`]:{background:Te.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,se.bf)(Ie)} 0`,lineHeight:(0,se.bf)(un),visibility:"hidden",content:'"\\a0"'}},[`${ze}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:un,marginTop:Ie,marginBottom:Ie,lineHeight:(0,se.bf)(Te.calc(un).sub(Te.calc(Te.lineWidth).mul(2)).equal()),borderRadius:Te.borderRadiusSM,cursor:"default",transition:`font-size ${Te.motionDurationSlow}, line-height ${Te.motionDurationSlow}, height ${Te.motionDurationSlow}`,marginInlineEnd:Te.calc(Ie).mul(2).equal(),paddingInlineStart:Te.paddingXS,paddingInlineEnd:Te.calc(Te.paddingXS).div(2).equal(),[`${ze}-disabled&`]:{color:Te.multipleItemColorDisabled,borderColor:Te.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Te.calc(Te.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,v.Ro)()),{display:"inline-flex",alignItems:"center",color:Te.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Vt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Te.colorIconHover}})},[`${Tt}-item + ${Tt}-item`]:{[`${ze}-selection-search`]:{marginInlineStart:0}},[`${Tt}-item-suffix`]:{height:"100%"},[`${ze}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Te.calc(Te.inputPaddingHorizontalBase).sub(on).equal(),[` &-input, &-mirror - `]:{height:Pa,fontFamily:gt.fontFamily,lineHeight:(0,N.bf)(Pa),transition:`all ${gt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ht}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:gt.inputPaddingHorizontalBase,insetInlineEnd:gt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${gt.motionDurationSlow}`}}}};function ct(gt,Zr){const{componentCls:Ht}=gt,Zs=Zr?`${Ht}-${Zr}`:"",oi={[`${Ht}-multiple${Zs}`]:{fontSize:gt.fontSize,[`${Ht}-selector`]:{[`${Ht}-show-search&`]:{cursor:"text"}},[` - &${Ht}-show-arrow ${Ht}-selector, - &${Ht}-allow-clear ${Ht}-selector - `]:{paddingInlineEnd:gt.calc(gt.fontSizeIcon).add(gt.controlPaddingHorizontal).equal()}}};return[Ie(gt,Zr),oi]}var rt=gt=>{const{componentCls:Zr}=gt,Ht=(0,x.TS)(gt,{selectHeight:gt.controlHeightSM,multipleSelectItemHeight:gt.controlHeightXS,borderRadius:gt.borderRadiusSM,borderRadiusSM:gt.borderRadiusXS}),Zs=(0,x.TS)(gt,{fontSize:gt.fontSizeLG,selectHeight:gt.controlHeightLG,multipleSelectItemHeight:gt.multipleItemHeightLG,borderRadius:gt.borderRadiusLG,borderRadiusSM:gt.borderRadius});return[ct(gt),ct(Ht,"sm"),{[`${Zr}-multiple${Zr}-sm`]:{[`${Zr}-selection-placeholder`]:{insetInline:gt.calc(gt.controlPaddingHorizontalSM).sub(gt.lineWidth).equal()},[`${Zr}-selection-search`]:{marginInlineStart:2}}},ct(Zs,"lg")]};function It(gt,Zr){const{componentCls:Ht,inputPaddingHorizontalBase:Zs,borderRadius:oi}=gt,Pa=gt.calc(gt.controlHeight).sub(gt.calc(gt.lineWidth).mul(2)).equal(),Aa=Zr?`${Ht}-${Zr}`:"";return{[`${Ht}-single${Aa}`]:{fontSize:gt.fontSize,height:gt.controlHeight,[`${Ht}-selector`]:Object.assign(Object.assign({},(0,u.Wf)(gt,!0)),{display:"flex",borderRadius:oi,[`${Ht}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Zs,insetInlineEnd:Zs,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${Ht}-selection-item, - ${Ht}-selection-placeholder - `]:{padding:0,lineHeight:(0,N.bf)(Pa),transition:`all ${gt.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ht}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ht}-selection-item:empty:after`,`${Ht}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${Ht}-show-arrow ${Ht}-selection-item, - &${Ht}-show-arrow ${Ht}-selection-placeholder - `]:{paddingInlineEnd:gt.showArrowPaddingInlineEnd},[`&${Ht}-open ${Ht}-selection-item`]:{color:gt.colorTextPlaceholder},[`&:not(${Ht}-customize-input)`]:{[`${Ht}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,N.bf)(Zs)}`,[`${Ht}-selection-search-input`]:{height:Pa},"&:after":{lineHeight:(0,N.bf)(Pa)}}},[`&${Ht}-customize-input`]:{[`${Ht}-selector`]:{"&:after":{display:"none"},[`${Ht}-selection-search`]:{position:"static",width:"100%"},[`${Ht}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,N.bf)(Zs)}`,"&:after":{display:"none"}}}}}}}function Ot(gt){const{componentCls:Zr}=gt,Ht=gt.calc(gt.controlPaddingHorizontalSM).sub(gt.lineWidth).equal();return[It(gt),It((0,x.TS)(gt,{controlHeight:gt.controlHeightSM,borderRadius:gt.borderRadiusSM}),"sm"),{[`${Zr}-single${Zr}-sm`]:{[`&:not(${Zr}-customize-input)`]:{[`${Zr}-selection-search`]:{insetInlineStart:Ht,insetInlineEnd:Ht},[`${Zr}-selector`]:{padding:`0 ${(0,N.bf)(Ht)}`},[`&${Zr}-show-arrow ${Zr}-selection-search`]:{insetInlineEnd:gt.calc(Ht).add(gt.calc(gt.fontSize).mul(1.5)).equal()},[` - &${Zr}-show-arrow ${Zr}-selection-item, - &${Zr}-show-arrow ${Zr}-selection-placeholder - `]:{paddingInlineEnd:gt.calc(gt.fontSize).mul(1.5).equal()}}}},It((0,x.TS)(gt,{controlHeight:gt.singleItemHeightLG,fontSize:gt.fontSizeLG,borderRadius:gt.borderRadiusLG}),"lg")]}const wn=gt=>{const{fontSize:Zr,lineHeight:Ht,controlHeight:Zs,controlPaddingHorizontal:oi,zIndexPopupBase:Pa,colorText:Aa,fontWeightStrong:Pg,controlItemBgActive:Ug,controlItemBgHover:e0,colorBgContainer:H0,colorFillSecondary:X0,controlHeightLG:d0,controlHeightSM:jv,colorBgContainerDisabled:Lv,colorTextDisabled:Je}=gt;return{zIndexPopup:Pa+50,optionSelectedColor:Aa,optionSelectedFontWeight:Pg,optionSelectedBg:Ug,optionActiveBg:e0,optionPadding:`${(Zs-Zr*Ht)/2}px ${oi}px`,optionFontSize:Zr,optionLineHeight:Ht,optionHeight:Zs,selectorBg:H0,clearBg:H0,singleItemHeightLG:d0,multipleItemBg:X0,multipleItemBorderColor:"transparent",multipleItemHeight:jv,multipleItemHeightLG:Zs,multipleSelectorBgDisabled:Lv,multipleItemColorDisabled:Je,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(gt.fontSize*1.25)}},Hs=(gt,Zr)=>{const{componentCls:Ht,antCls:Zs,controlOutlineWidth:oi}=gt;return{[`&:not(${Ht}-customize-input) ${Ht}-selector`]:{border:`${(0,N.bf)(gt.lineWidth)} ${gt.lineType} ${Zr.borderColor}`,background:gt.selectorBg},[`&:not(${Ht}-disabled):not(${Ht}-customize-input):not(${Zs}-pagination-size-changer)`]:{[`&:hover ${Ht}-selector`]:{borderColor:Zr.hoverBorderHover},[`${Ht}-focused& ${Ht}-selector`]:{borderColor:Zr.activeBorderColor,boxShadow:`0 0 0 ${(0,N.bf)(oi)} ${Zr.activeShadowColor}`,outline:0}}}},jr=(gt,Zr)=>({[`&${gt.componentCls}-status-${Zr.status}`]:Object.assign({},Hs(gt,Zr))}),Jr=gt=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Hs(gt,{borderColor:gt.colorBorder,hoverBorderHover:gt.colorPrimaryHover,activeBorderColor:gt.colorPrimary,activeShadowColor:gt.controlOutline})),jr(gt,{status:"error",borderColor:gt.colorError,hoverBorderHover:gt.colorErrorHover,activeBorderColor:gt.colorError,activeShadowColor:gt.colorErrorOutline})),jr(gt,{status:"warning",borderColor:gt.colorWarning,hoverBorderHover:gt.colorWarningHover,activeBorderColor:gt.colorWarning,activeShadowColor:gt.colorWarningOutline})),{[`&${gt.componentCls}-disabled`]:{[`&:not(${gt.componentCls}-customize-input) ${gt.componentCls}-selector`]:{background:gt.colorBgContainerDisabled,color:gt.colorTextDisabled}},[`&${gt.componentCls}-multiple ${gt.componentCls}-selection-item`]:{background:gt.multipleItemBg,border:`${(0,N.bf)(gt.lineWidth)} ${gt.lineType} ${gt.multipleItemBorderColor}`}})}),Yn=(gt,Zr)=>{const{componentCls:Ht,antCls:Zs}=gt;return{[`&:not(${Ht}-customize-input) ${Ht}-selector`]:{background:Zr.bg,border:`${(0,N.bf)(gt.lineWidth)} ${gt.lineType} transparent`,color:Zr.color},[`&:not(${Ht}-disabled):not(${Ht}-customize-input):not(${Zs}-pagination-size-changer)`]:{[`&:hover ${Ht}-selector`]:{background:Zr.hoverBg},[`${Ht}-focused& ${Ht}-selector`]:{background:gt.selectorBg,borderColor:Zr.activeBorderColor,outline:0}}}},Lt=(gt,Zr)=>({[`&${gt.componentCls}-status-${Zr.status}`]:Object.assign({},Yn(gt,Zr))}),_n=gt=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Yn(gt,{bg:gt.colorFillTertiary,hoverBg:gt.colorFillSecondary,activeBorderColor:gt.colorPrimary,color:gt.colorText})),Lt(gt,{status:"error",bg:gt.colorErrorBg,hoverBg:gt.colorErrorBgHover,activeBorderColor:gt.colorError,color:gt.colorError})),Lt(gt,{status:"warning",bg:gt.colorWarningBg,hoverBg:gt.colorWarningBgHover,activeBorderColor:gt.colorWarning,color:gt.colorWarning})),{[`&${gt.componentCls}-disabled`]:{[`&:not(${gt.componentCls}-customize-input) ${gt.componentCls}-selector`]:{borderColor:gt.colorBorder,background:gt.colorBgContainerDisabled,color:gt.colorTextDisabled}},[`&${gt.componentCls}-multiple ${gt.componentCls}-selection-item`]:{background:gt.colorBgContainer,border:`${(0,N.bf)(gt.lineWidth)} ${gt.lineType} ${gt.colorSplit}`}})}),Mt=gt=>({"&-borderless":{[`${gt.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${gt.componentCls}-disabled`]:{[`&:not(${gt.componentCls}-customize-input) ${gt.componentCls}-selector`]:{color:gt.colorTextDisabled}},[`&${gt.componentCls}-multiple ${gt.componentCls}-selection-item`]:{background:gt.multipleItemBg,border:`${(0,N.bf)(gt.lineWidth)} ${gt.lineType} ${gt.multipleItemBorderColor}`}}});var Rt=gt=>({[gt.componentCls]:Object.assign(Object.assign(Object.assign({},Jr(gt)),_n(gt)),Mt(gt))});const on=gt=>{const{componentCls:Zr}=gt;return{position:"relative",transition:`all ${gt.motionDurationMid} ${gt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Zr}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Zr}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Hr=gt=>{const{componentCls:Zr}=gt;return{[`${Zr}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},vn=gt=>{const{antCls:Zr,componentCls:Ht,inputPaddingHorizontalBase:Zs,iconCls:oi}=gt;return{[Ht]:Object.assign(Object.assign({},(0,u.Wf)(gt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ht}-customize-input) ${Ht}-selector`]:Object.assign(Object.assign({},on(gt)),Hr(gt)),[`${Ht}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},u.vS),{[`> ${Zr}-typography`]:{display:"inline"}}),[`${Ht}-selection-placeholder`]:Object.assign(Object.assign({},u.vS),{flex:1,color:gt.colorTextPlaceholder,pointerEvents:"none"}),[`${Ht}-arrow`]:Object.assign(Object.assign({},(0,u.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Zs,height:gt.fontSizeIcon,marginTop:gt.calc(gt.fontSizeIcon).mul(-1).div(2).equal(),color:gt.colorTextQuaternary,fontSize:gt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${gt.motionDurationSlow} ease`,[oi]:{verticalAlign:"top",transition:`transform ${gt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ht}-suffix)`]:{pointerEvents:"auto"}},[`${Ht}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ht}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Zs,zIndex:1,display:"inline-block",width:gt.fontSizeIcon,height:gt.fontSizeIcon,marginTop:gt.calc(gt.fontSizeIcon).mul(-1).div(2).equal(),color:gt.colorTextQuaternary,fontSize:gt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${gt.motionDurationMid} ease, opacity ${gt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:gt.colorTextTertiary}},"&:hover":{[`${Ht}-clear`]:{opacity:1},[`${Ht}-arrow:not(:last-child)`]:{opacity:0}}}),[`${Ht}-has-feedback`]:{[`${Ht}-clear`]:{insetInlineEnd:gt.calc(Zs).add(gt.fontSize).add(gt.paddingXS).equal()}}}},Ca=gt=>{const{componentCls:Zr}=gt;return[{[Zr]:{[`&${Zr}-in-form-item`]:{width:"100%"}}},vn(gt),Ot(gt),rt(gt),I(gt),{[`${Zr}-rtl`]:{direction:"rtl"}},(0,D.c)(gt,{borderElCls:`${Zr}-selector`,focusElCls:`${Zr}-focused`})]};var ai=(0,b.I$)("Select",(gt,Zr)=>{let{rootPrefixCls:Ht}=Zr;const Zs=(0,x.TS)(gt,{rootPrefixCls:Ht,inputPaddingHorizontalBase:gt.calc(gt.paddingSM).sub(1).equal(),multipleSelectItemHeight:gt.multipleItemHeight,selectHeight:gt.controlHeight});return[Ca(Zs),Rt(Zs)]},wn,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},14275:function(c,g,l){"use strict";l.d(g,{Z:function(){return S}});var u=l(77617),D=l(49247),b=l(43418),x=l(4531),y=l(21112),w=l(20555),a=l(38528);function S(I){let{suffixIcon:N,clearIcon:ie,menuItemSelectedIcon:ze,removeIcon:Ie,loading:ct,multiple:At,hasFeedback:rt,prefixCls:It,showSuffixIcon:Ot,feedbackIcon:wn,showArrow:Hs,componentName:jr}=I;const Jr=ie!=null?ie:u.createElement(b.Z,null),Yn=Bt=>N===null&&!rt&&!Hs?null:u.createElement(u.Fragment,null,Ot!==!1&&Bt,rt&&wn);let Lt=null;if(N!==void 0)Lt=Yn(N);else if(ct)Lt=Yn(u.createElement(w.Z,{spin:!0}));else{const Bt=`${It}-suffix`;Lt=Rt=>{let{open:on,showSearch:Hr}=Rt;return Yn(on&&Hr?u.createElement(a.Z,{className:Bt}):u.createElement(y.Z,{className:Bt}))}}let _n=null;ze!==void 0?_n=ze:At?_n=u.createElement(D.Z,null):_n=null;let Mt=null;return Ie!==void 0?Mt=Ie:Mt=u.createElement(x.Z,null),{clearIcon:Jr,suffixIcon:Lt,itemIcon:_n,removeIcon:Mt}}},60621:function(c,g,l){"use strict";l.d(g,{Z:function(){return u}});function u(D,b){return b!==void 0?b:D!==null}},55449:function(c,g,l){"use strict";l.d(g,{BR:function(){return ie},ri:function(){return N}});var u=l(92310),D=l.n(u),b=l(6415),x=l(77617),y=l(58798),w=l(20804),a=l(28086),S=function(ct,At){var rt={};for(var It in ct)Object.prototype.hasOwnProperty.call(ct,It)&&At.indexOf(It)<0&&(rt[It]=ct[It]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,It=Object.getOwnPropertySymbols(ct);Ot{const rt=x.useContext(I),It=x.useMemo(()=>{if(!rt)return"";const{compactDirection:Ot,isFirstItem:wn,isLastItem:Hs}=rt,jr=Ot==="vertical"?"-vertical-":"-";return D()(`${ct}-compact${jr}item`,{[`${ct}-compact${jr}first-item`]:wn,[`${ct}-compact${jr}last-item`]:Hs,[`${ct}-compact${jr}item-rtl`]:At==="rtl"})},[ct,At,rt]);return{compactSize:rt==null?void 0:rt.compactSize,compactDirection:rt==null?void 0:rt.compactDirection,compactItemClassnames:It}},ie=ct=>{let{children:At}=ct;return x.createElement(I.Provider,{value:null},At)},ze=ct=>{var{children:At}=ct,rt=S(ct,["children"]);return x.createElement(I.Provider,{value:rt},At)},Ie=ct=>{const{getPrefixCls:At,direction:rt}=x.useContext(y.E_),{size:It,direction:Ot,block:wn,prefixCls:Hs,className:jr,rootClassName:Jr,children:Yn}=ct,Lt=S(ct,["size","direction","block","prefixCls","className","rootClassName","children"]),_n=(0,w.Z)(ai=>It!=null?It:ai),Mt=At("space-compact",Hs),[Bt,Rt]=(0,a.Z)(Mt),on=D()(Mt,Rt,{[`${Mt}-rtl`]:rt==="rtl",[`${Mt}-block`]:wn,[`${Mt}-vertical`]:Ot==="vertical"},jr,Jr),Hr=x.useContext(I),vn=(0,b.Z)(Yn),Ca=x.useMemo(()=>vn.map((ai,gt)=>{const Zr=ai&&ai.key||`${Mt}-item-${gt}`;return x.createElement(ze,{key:Zr,compactSize:_n,compactDirection:Ot,isFirstItem:gt===0&&(!Hr||(Hr==null?void 0:Hr.isFirstItem)),isLastItem:gt===vn.length-1&&(!Hr||(Hr==null?void 0:Hr.isLastItem))},ai)}),[It,vn,Hr]);return vn.length===0?null:Bt(x.createElement("div",Object.assign({className:on},Lt),Ca))};g.ZP=Ie},82607:function(c,g,l){"use strict";l.d(g,{Z:function(){return It}});var u=l(77617),D=l(92310),b=l.n(D),x=l(6415);function y(Ot){return["small","middle","large"].includes(Ot)}function w(Ot){return Ot?typeof Ot=="number"&&!Number.isNaN(Ot):!1}var a=l(58798),S=l(55449);const I=u.createContext({latestIndex:0}),N=I.Provider;var ze=Ot=>{let{className:wn,index:Hs,children:jr,split:Jr,style:Yn}=Ot;const{latestIndex:Lt}=u.useContext(I);return jr==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:wn,style:Yn},jr),Hs{var Hs,jr;const{getPrefixCls:Jr,space:Yn,direction:Lt}=u.useContext(a.E_),{size:_n=(Yn==null?void 0:Yn.size)||"small",align:Mt,className:Bt,rootClassName:Rt,children:on,direction:Hr="horizontal",prefixCls:vn,split:Ca,style:ai,wrap:gt=!1,classNames:Zr,styles:Ht}=Ot,Zs=ct(Ot,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[oi,Pa]=Array.isArray(_n)?_n:[_n,_n],Aa=y(Pa),Pg=y(oi),Ug=w(Pa),e0=w(oi),H0=(0,x.Z)(on,{keepEmpty:!0}),X0=Mt===void 0&&Hr==="horizontal"?"center":Mt,d0=Jr("space",vn),[jv,Lv,Je]=(0,Ie.Z)(d0),k0=b()(d0,Yn==null?void 0:Yn.className,Lv,`${d0}-${Hr}`,{[`${d0}-rtl`]:Lt==="rtl",[`${d0}-align-${X0}`]:X0,[`${d0}-gap-row-${Pa}`]:Aa,[`${d0}-gap-col-${oi}`]:Pg},Bt,Rt,Je),G0=b()(`${d0}-item`,(Hs=Zr==null?void 0:Zr.item)!==null&&Hs!==void 0?Hs:(jr=Yn==null?void 0:Yn.classNames)===null||jr===void 0?void 0:jr.item);let iv=0;const u0=H0.map((zo,mu)=>{var Ag,c0;zo!=null&&(iv=mu);const L0=zo&&zo.key||`${G0}-${mu}`;return u.createElement(ze,{className:G0,key:L0,index:mu,split:Ca,style:(Ag=Ht==null?void 0:Ht.item)!==null&&Ag!==void 0?Ag:(c0=Yn==null?void 0:Yn.styles)===null||c0===void 0?void 0:c0.item},zo)}),B1=u.useMemo(()=>({latestIndex:iv}),[iv]);if(H0.length===0)return null;const Dg={};return gt&&(Dg.flexWrap="wrap"),!Pg&&e0&&(Dg.columnGap=oi),!Aa&&Ug&&(Dg.rowGap=Pa),jv(u.createElement("div",Object.assign({ref:wn,className:k0,style:Object.assign(Object.assign(Object.assign({},Dg),Yn==null?void 0:Yn.style),ai)},Zs),u.createElement(N,{value:B1},u0)))});rt.Compact=S.ZP;var It=rt},28086:function(c,g,l){"use strict";l.d(g,{Z:function(){return S}});var u=l(79263),D=l(90882),x=I=>{const{componentCls:N}=I;return{[N]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const y=I=>{const{componentCls:N}=I;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"}}}},w=I=>{const{componentCls:N}=I;return{[N]:{"&-gap-row-small":{rowGap:I.spaceGapSmallSize},"&-gap-row-middle":{rowGap:I.spaceGapMiddleSize},"&-gap-row-large":{rowGap:I.spaceGapLargeSize},"&-gap-col-small":{columnGap:I.spaceGapSmallSize},"&-gap-col-middle":{columnGap:I.spaceGapMiddleSize},"&-gap-col-large":{columnGap:I.spaceGapLargeSize}}}},a=()=>({});var S=(0,u.I$)("Space",I=>{const N=(0,D.TS)(I,{spaceGapSmallSize:I.paddingXS,spaceGapMiddleSize:I.padding,spaceGapLargeSize:I.paddingLG});return[y(N),w(N),x(N)]},()=>({}),{resetStyle:!1})},51218:function(c,g,l){"use strict";l.d(g,{Z:function(){return Lt}});var u=l(77617),D=l(92310),b=l.n(D),x=l(41123);function y(_n,Mt,Bt){var Rt=Bt||{},on=Rt.noTrailing,Hr=on===void 0?!1:on,vn=Rt.noLeading,Ca=vn===void 0?!1:vn,ai=Rt.debounceMode,gt=ai===void 0?void 0:ai,Zr,Ht=!1,Zs=0;function oi(){Zr&&clearTimeout(Zr)}function Pa(Pg){var Ug=Pg||{},e0=Ug.upcomingOnly,H0=e0===void 0?!1:e0;oi(),Ht=!H0}function Aa(){for(var Pg=arguments.length,Ug=new Array(Pg),e0=0;e0_n?Ca?(Zs=Date.now(),Hr||(Zr=setTimeout(gt?jv:d0,_n))):d0():Hr!==!0&&(Zr=setTimeout(gt?jv:d0,gt===void 0?_n-X0:_n))}return Aa.cancel=Pa,Aa}function w(_n,Mt,Bt){var Rt=Bt||{},on=Rt.atBegin,Hr=on===void 0?!1:on;return y(_n,Mt,{debounceMode:Hr!==!1})}var a=l(20612),S=l(58798),I=l(78600),N=l(91110),ie=l(79263),ze=l(90882);const Ie=new I.E4("antSpinMove",{to:{opacity:1}}),ct=new I.E4("antRotate",{to:{transform:"rotate(405deg)"}}),At=_n=>{const{componentCls:Mt,calc:Bt}=_n;return{[`${Mt}`]:Object.assign(Object.assign({},(0,N.Wf)(_n)),{position:"absolute",display:"none",color:_n.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${_n.motionDurationSlow} ${_n.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${Mt}-text`]:{fontSize:_n.fontSize,paddingTop:Bt(Bt(_n.dotSize).sub(_n.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:_n.colorBgMask,zIndex:_n.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${_n.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${Mt}-dot ${Mt}-dot-item`]:{backgroundColor:_n.colorWhite},[`${Mt}-text`]:{color:_n.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${Mt}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:_n.contentHeight,[`${Mt}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:Bt(_n.dotSize).mul(-1).div(2).equal()},[`${Mt}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${_n.colorBgContainer}`},[`&${Mt}-show-text ${Mt}-dot`]:{marginTop:Bt(_n.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${Mt}-dot`]:{margin:Bt(_n.dotSizeSM).mul(-1).div(2).equal()},[`${Mt}-text`]:{paddingTop:Bt(Bt(_n.dotSizeSM).sub(_n.fontSize)).div(2).add(2).equal()},[`&${Mt}-show-text ${Mt}-dot`]:{marginTop:Bt(_n.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${Mt}-dot`]:{margin:Bt(_n.dotSizeLG).mul(-1).div(2).equal()},[`${Mt}-text`]:{paddingTop:Bt(Bt(_n.dotSizeLG).sub(_n.fontSize)).div(2).add(2).equal()},[`&${Mt}-show-text ${Mt}-dot`]:{marginTop:Bt(_n.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${Mt}-container`]:{position:"relative",transition:`opacity ${_n.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:_n.colorBgContainer,opacity:0,transition:`all ${_n.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Mt}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:_n.spinDotDefault},[`${Mt}-dot`]:{position:"relative",display:"inline-block",fontSize:_n.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:Bt(_n.dotSize).sub(Bt(_n.marginXXS).div(2)).div(2).equal(),height:Bt(_n.dotSize).sub(Bt(_n.marginXXS).div(2)).div(2).equal(),backgroundColor:_n.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ie,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ct,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${Mt}-dot`]:{fontSize:_n.dotSizeSM,i:{width:Bt(Bt(_n.dotSizeSM).sub(Bt(_n.marginXXS).div(2))).div(2).equal(),height:Bt(Bt(_n.dotSizeSM).sub(Bt(_n.marginXXS).div(2))).div(2).equal()}},[`&-lg ${Mt}-dot`]:{fontSize:_n.dotSizeLG,i:{width:Bt(Bt(_n.dotSizeLG).sub(_n.marginXXS)).div(2).equal(),height:Bt(Bt(_n.dotSizeLG).sub(_n.marginXXS)).div(2).equal()}},[`&${Mt}-show-text ${Mt}-text`]:{display:"block"}})}},rt=_n=>{const{controlHeightLG:Mt,controlHeight:Bt}=_n;return{contentHeight:400,dotSize:Mt/2,dotSizeSM:Mt*.35,dotSizeLG:Bt}};var It=(0,ie.I$)("Spin",_n=>{const Mt=(0,ze.TS)(_n,{spinDotDefault:_n.colorTextDescription});return[At(Mt)]},rt),Ot=function(_n,Mt){var Bt={};for(var Rt in _n)Object.prototype.hasOwnProperty.call(_n,Rt)&&Mt.indexOf(Rt)<0&&(Bt[Rt]=_n[Rt]);if(_n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Rt=Object.getOwnPropertySymbols(_n);on{const{prefixCls:Mt,spinning:Bt=!0,delay:Rt=0,className:on,rootClassName:Hr,size:vn="default",tip:Ca,wrapperClassName:ai,style:gt,children:Zr,fullscreen:Ht=!1}=_n,Zs=Ot(_n,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:oi}=u.useContext(S.E_),Pa=oi("spin",Mt),[Aa,Pg,Ug]=It(Pa),[e0,H0]=u.useState(()=>Bt&&!Jr(Bt,Rt));u.useEffect(()=>{if(Bt){const u0=w(Rt,()=>{H0(!0)});return u0(),()=>{var B1;(B1=u0==null?void 0:u0.cancel)===null||B1===void 0||B1.call(u0)}}H0(!1)},[Rt,Bt]);const X0=u.useMemo(()=>typeof Zr!="undefined"&&!Ht,[Zr,Ht]),{direction:d0,spin:jv}=u.useContext(S.E_),Lv=b()(Pa,jv==null?void 0:jv.className,{[`${Pa}-sm`]:vn==="small",[`${Pa}-lg`]:vn==="large",[`${Pa}-spinning`]:e0,[`${Pa}-show-text`]:!!Ca,[`${Pa}-fullscreen`]:Ht,[`${Pa}-fullscreen-show`]:Ht&&e0,[`${Pa}-rtl`]:d0==="rtl"},on,Hr,Pg,Ug),Je=b()(`${Pa}-container`,{[`${Pa}-blur`]:e0}),k0=(0,x.Z)(Zs,["indicator"]),G0=Object.assign(Object.assign({},jv==null?void 0:jv.style),gt),iv=u.createElement("div",Object.assign({},k0,{style:G0,className:Lv,"aria-live":"polite","aria-busy":e0}),jr(Pa,_n),Ca&&(X0||Ht)?u.createElement("div",{className:`${Pa}-text`},Ca):null);return Aa(X0?u.createElement("div",Object.assign({},k0,{className:b()(`${Pa}-nested-loading`,ai,Pg,Ug)}),e0&&u.createElement("div",{key:"loading"},iv),u.createElement("div",{className:Je,key:"container"},Zr)):iv)};Yn.setDefaultIndicator=_n=>{Hs=_n};var Lt=Yn},99109:function(c,g,l){"use strict";l.d(g,{c:function(){return b}});function u(x,y,w){const{focusElCls:a,focus:S,borderElCls:I}=w,N=I?"> *":"",ie=["hover",S?"focus":null,"active"].filter(Boolean).map(ze=>`&:${ze} ${N}`).join(",");return{[`&-item:not(${y}-last-item)`]:{marginInlineEnd:x.calc(x.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[ie]:{zIndex:2}},a?{[`&${a}`]:{zIndex:2}}:{}),{[`&[disabled] ${N}`]:{zIndex:0}})}}function D(x,y,w){const{borderElCls:a}=w,S=a?`> ${a}`:"";return{[`&-item:not(${y}-first-item):not(${y}-last-item) ${S}`]:{borderRadius:0},[`&-item:not(${y}-last-item)${y}-first-item`]:{[`& ${S}, &${x}-sm ${S}, &${x}-lg ${S}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${y}-first-item)${y}-last-item`]:{[`& ${S}, &${x}-sm ${S}, &${x}-lg ${S}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function b(x){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:w}=x,a=`${w}-compact`;return{[a]:Object.assign(Object.assign({},u(x,a,y)),D(w,a,y))}}},91110:function(c,g,l){"use strict";l.d(g,{Lx:function(){return w},Qy:function(){return I},Ro:function(){return x},Wf:function(){return b},dF:function(){return y},du:function(){return a},oN:function(){return S},vS:function(){return D}});var u=l(78600);const D={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},b=function(N){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:N.colorText,fontSize:N.fontSize,lineHeight:N.lineHeight,listStyle:"none",fontFamily:ie?"inherit":N.fontFamily}},x=()=>({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"}}),y=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),w=N=>({a:{color:N.colorLink,textDecoration:N.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${N.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:N.colorLinkHover},"&:active":{color:N.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:N.linkHoverDecoration,outline:0},"&:focus":{textDecoration:N.linkFocusDecoration,outline:0},"&[disabled]":{color:N.colorTextDisabled,cursor:"not-allowed"}}}),a=(N,ie,ze)=>{const{fontFamily:Ie,fontSize:ct}=N,At=`[class^="${ie}"], [class*=" ${ie}"]`;return{[ze?`.${ze}`:At]:{fontFamily:Ie,fontSize:ct,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[At]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},S=N=>({outline:`${(0,u.bf)(N.lineWidthFocus)} solid ${N.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),I=N=>({"&:focus-visible":Object.assign({},S(N))})},36385:function(c,g){"use strict";const l=u=>({[u.componentCls]:{[`${u.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${u.motionDurationMid} ${u.motionEaseInOut}, - opacity ${u.motionDurationMid} ${u.motionEaseInOut} !important`}},[`${u.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${u.motionDurationMid} ${u.motionEaseInOut}, - opacity ${u.motionDurationMid} ${u.motionEaseInOut} !important`}}});g.Z=l},96504:function(c,g,l){"use strict";l.d(g,{J$:function(){return y}});var u=l(78600),D=l(15422);const b=new u.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),x=new u.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),y=function(w){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:S}=w,I=`${S}-fade`,N=a?"&":"";return[(0,D.R)(I,b,x,w.motionDurationMid,a),{[` - ${N}${I}-enter, - ${N}${I}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${N}${I}-leave`]:{animationTimingFunction:"linear"}}]}},15422:function(c,g,l){"use strict";l.d(g,{R:function(){return b}});const u=x=>({animationDuration:x,animationFillMode:"both"}),D=x=>({animationDuration:x,animationFillMode:"both"}),b=function(x,y,w,a){const I=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${I}${x}-enter, - ${I}${x}-appear - `]:Object.assign(Object.assign({},u(a)),{animationPlayState:"paused"}),[`${I}${x}-leave`]:Object.assign(Object.assign({},D(a)),{animationPlayState:"paused"}),[` - ${I}${x}-enter${x}-enter-active, - ${I}${x}-appear${x}-appear-active - `]:{animationName:y,animationPlayState:"running"},[`${I}${x}-leave${x}-leave-active`]:{animationName:w,animationPlayState:"running",pointerEvents:"none"}}}},63172:function(c,g,l){"use strict";l.d(g,{Fm:function(){return ze}});var u=l(78600),D=l(15422);const b=new u.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),x=new u.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),y=new u.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),w=new u.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a=new u.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),S=new u.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new u.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N=new u.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ie={"move-up":{inKeyframes:I,outKeyframes:N},"move-down":{inKeyframes:b,outKeyframes:x},"move-left":{inKeyframes:y,outKeyframes:w},"move-right":{inKeyframes:a,outKeyframes:S}},ze=(Ie,ct)=>{const{antCls:At}=Ie,rt=`${At}-${ct}`,{inKeyframes:It,outKeyframes:Ot}=ie[ct];return[(0,D.R)(rt,It,Ot,Ie.motionDurationMid),{[` - ${rt}-enter, - ${rt}-appear - `]:{opacity:0,animationTimingFunction:Ie.motionEaseOutCirc},[`${rt}-leave`]:{animationTimingFunction:Ie.motionEaseInOutCirc}}]}},17089:function(c,g,l){"use strict";l.d(g,{Qt:function(){return y},Uw:function(){return x},fJ:function(){return b},ly:function(){return w},oN:function(){return ze}});var u=l(78600),D=l(15422);const b=new u.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),x=new u.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),y=new u.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),w=new u.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),a=new u.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),S=new u.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),I=new u.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),N=new u.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ie={"slide-up":{inKeyframes:b,outKeyframes:x},"slide-down":{inKeyframes:y,outKeyframes:w},"slide-left":{inKeyframes:a,outKeyframes:S},"slide-right":{inKeyframes:I,outKeyframes:N}},ze=(Ie,ct)=>{const{antCls:At}=Ie,rt=`${At}-${ct}`,{inKeyframes:It,outKeyframes:Ot}=ie[ct];return[(0,D.R)(rt,It,Ot,Ie.motionDurationMid),{[` - ${rt}-enter, - ${rt}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ie.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${rt}-leave`]:{animationTimingFunction:Ie.motionEaseInQuint}}]}},19162:function(c,g,l){"use strict";l.d(g,{_y:function(){return rt},kr:function(){return b}});var u=l(78600),D=l(15422);const b=new u.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),x=new u.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),y=new u.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),w=new u.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),a=new u.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),S=new u.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),I=new u.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),N=new u.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ie=new u.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ze=new u.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ie=new u.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ct=new u.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),At={zoom:{inKeyframes:b,outKeyframes:x},"zoom-big":{inKeyframes:y,outKeyframes:w},"zoom-big-fast":{inKeyframes:y,outKeyframes:w},"zoom-left":{inKeyframes:I,outKeyframes:N},"zoom-right":{inKeyframes:ie,outKeyframes:ze},"zoom-up":{inKeyframes:a,outKeyframes:S},"zoom-down":{inKeyframes:Ie,outKeyframes:ct}},rt=(It,Ot)=>{const{antCls:wn}=It,Hs=`${wn}-${Ot}`,{inKeyframes:jr,outKeyframes:Jr}=At[Ot];return[(0,D.R)(Hs,jr,Jr,Ot==="zoom-big-fast"?It.motionDurationFast:It.motionDurationMid),{[` - ${Hs}-enter, - ${Hs}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:It.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Hs}-leave`]:{animationTimingFunction:It.motionEaseInOutCirc}}]}},7778:function(c,g,l){"use strict";l.d(g,{N:function(){return u}});const u=D=>({color:D.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${D.motionDurationSlow}`,"&:focus, &:hover":{color:D.colorLinkHover},"&:active":{color:D.colorLinkActive}})},50489:function(c,g,l){"use strict";l.d(g,{ZP:function(){return y},qN:function(){return D},wZ:function(){return b}});var u=l(70157);const D=8;function b(w){const{contentRadius:a,limitVerticalRadius:S}=w,I=a>12?a+2:12;return{arrowOffsetHorizontal:I,arrowOffsetVertical:S?D:I}}function x(w,a){return w?a:{}}function y(w,a,S){const{componentCls:I,boxShadowPopoverArrow:N,arrowOffsetVertical:ie,arrowOffsetHorizontal:ze}=w,{arrowDistance:Ie=0,arrowPlacement:ct={left:!0,right:!0,top:!0,bottom:!0}}=S||{};return{[I]:Object.assign(Object.assign(Object.assign(Object.assign({[`${I}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,u.W)(w,a,N)),{"&:before":{background:a}})]},x(!!ct.top,{[[`&-placement-top > ${I}-arrow`,`&-placement-topLeft > ${I}-arrow`,`&-placement-topRight > ${I}-arrow`].join(",")]:{bottom:Ie,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${I}-arrow`]:{left:{_skip_check_:!0,value:ze}},[`&-placement-topRight > ${I}-arrow`]:{right:{_skip_check_:!0,value:ze}}})),x(!!ct.bottom,{[[`&-placement-bottom > ${I}-arrow`,`&-placement-bottomLeft > ${I}-arrow`,`&-placement-bottomRight > ${I}-arrow`].join(",")]:{top:Ie,transform:"translateY(-100%)"},[`&-placement-bottom > ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${I}-arrow`]:{left:{_skip_check_:!0,value:ze}},[`&-placement-bottomRight > ${I}-arrow`]:{right:{_skip_check_:!0,value:ze}}})),x(!!ct.left,{[[`&-placement-left > ${I}-arrow`,`&-placement-leftTop > ${I}-arrow`,`&-placement-leftBottom > ${I}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Ie},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${I}-arrow`]:{top:ie},[`&-placement-leftBottom > ${I}-arrow`]:{bottom:ie}})),x(!!ct.right,{[[`&-placement-right > ${I}-arrow`,`&-placement-rightTop > ${I}-arrow`,`&-placement-rightBottom > ${I}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Ie},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${I}-arrow`]:{top:ie},[`&-placement-rightBottom > ${I}-arrow`]:{bottom:ie}}))}}},70157:function(c,g,l){"use strict";l.d(g,{W:function(){return b},w:function(){return D}});var u=l(78600);function D(x){const{sizePopupArrow:y,borderRadiusXS:w,borderRadiusOuter:a}=x,S=y/2,I=0,N=S,ie=a*1/Math.sqrt(2),ze=S-a*(1-1/Math.sqrt(2)),Ie=S-w*(1/Math.sqrt(2)),ct=a*(Math.sqrt(2)-1)+w*(1/Math.sqrt(2)),At=2*S-Ie,rt=ct,It=2*S-ie,Ot=ze,wn=2*S-I,Hs=N,jr=S*Math.sqrt(2)+a*(Math.sqrt(2)-2),Jr=a*(Math.sqrt(2)-1),Yn=`polygon(${Jr}px 100%, 50% ${Jr}px, ${2*S-Jr}px 100%, ${Jr}px 100%)`,Lt=`path('M ${I} ${N} A ${a} ${a} 0 0 0 ${ie} ${ze} L ${Ie} ${ct} A ${w} ${w} 0 0 1 ${At} ${rt} L ${It} ${Ot} A ${a} ${a} 0 0 0 ${wn} ${Hs} Z')`;return{arrowShadowWidth:jr,arrowPath:Lt,arrowPolygon:Yn}}const b=(x,y,w)=>{const{sizePopupArrow:a,arrowPolygon:S,arrowPath:I,arrowShadowWidth:N,borderRadiusXS:ie,calc:ze}=x;return{pointerEvents:"none",width:a,height:a,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:a,height:ze(a).div(2).equal(),background:y,clipPath:{_multi_value_:!0,value:[S,I]},content:'""'},"&::after":{content:'""',position:"absolute",width:N,height:N,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,u.bf)(ie)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:w,zIndex:0,background:"transparent"}}}},90576:function(c,g,l){"use strict";l.d(g,{Z:function(){return Ca}});var u=l(77617),D=l(20555),b=l(92310),x=l.n(b),y=l(79384),w=l(16514),a=l(35372),S=l(56348),I=l(89308),N=l(39193),ie=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ze=u.forwardRef(function(ai,gt){var Zr,Ht=ai.prefixCls,Zs=Ht===void 0?"rc-switch":Ht,oi=ai.className,Pa=ai.checked,Aa=ai.defaultChecked,Pg=ai.disabled,Ug=ai.loadingIcon,e0=ai.checkedChildren,H0=ai.unCheckedChildren,X0=ai.onClick,d0=ai.onChange,jv=ai.onKeyDown,Lv=(0,S.Z)(ai,ie),Je=(0,I.Z)(!1,{value:Pa,defaultValue:Aa}),k0=(0,a.Z)(Je,2),G0=k0[0],iv=k0[1];function u0(mu,Ag){var c0=G0;return Pg||(c0=mu,iv(c0),d0==null||d0(c0,Ag)),c0}function B1(mu){mu.which===N.Z.LEFT?u0(!1,mu):mu.which===N.Z.RIGHT&&u0(!0,mu),jv==null||jv(mu)}function Dg(mu){var Ag=u0(!G0,mu);X0==null||X0(Ag,mu)}var zo=x()(Zs,oi,(Zr={},(0,w.Z)(Zr,"".concat(Zs,"-checked"),G0),(0,w.Z)(Zr,"".concat(Zs,"-disabled"),Pg),Zr));return u.createElement("button",(0,y.Z)({},Lv,{type:"button",role:"switch","aria-checked":G0,disabled:Pg,className:zo,ref:gt,onKeyDown:B1,onClick:Dg}),Ug,u.createElement("span",{className:"".concat(Zs,"-inner")},u.createElement("span",{className:"".concat(Zs,"-inner-checked")},e0),u.createElement("span",{className:"".concat(Zs,"-inner-unchecked")},H0)))});ze.displayName="Switch";var Ie=ze,ct=l(20261),At=l(58798),rt=l(57801),It=l(20804),Ot=l(78600),wn=l(64993),Hs=l(91110),jr=l(79263),Jr=l(90882);const Yn=ai=>{const{componentCls:gt,trackHeightSM:Zr,trackPadding:Ht,trackMinWidthSM:Zs,innerMinMarginSM:oi,innerMaxMarginSM:Pa,handleSizeSM:Aa,calc:Pg}=ai,Ug=`${gt}-inner`,e0=(0,Ot.bf)(Pg(Aa).add(Pg(Ht).mul(2)).equal()),H0=(0,Ot.bf)(Pg(Pa).mul(2).equal());return{[gt]:{[`&${gt}-small`]:{minWidth:Zs,height:Zr,lineHeight:(0,Ot.bf)(Zr),[`${gt}-inner`]:{paddingInlineStart:Pa,paddingInlineEnd:oi,[`${Ug}-checked`]:{marginInlineStart:`calc(-100% + ${e0} - ${H0})`,marginInlineEnd:`calc(100% - ${e0} + ${H0})`},[`${Ug}-unchecked`]:{marginTop:Pg(Zr).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${gt}-handle`]:{width:Aa,height:Aa},[`${gt}-loading-icon`]:{top:Pg(Pg(Aa).sub(ai.switchLoadingIconSize)).div(2).equal(),fontSize:ai.switchLoadingIconSize},[`&${gt}-checked`]:{[`${gt}-inner`]:{paddingInlineStart:oi,paddingInlineEnd:Pa,[`${Ug}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ug}-unchecked`]:{marginInlineStart:`calc(100% - ${e0} + ${H0})`,marginInlineEnd:`calc(-100% + ${e0} - ${H0})`}},[`${gt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ot.bf)(Pg(Aa).add(Ht).equal())})`}},[`&:not(${gt}-disabled):active`]:{[`&:not(${gt}-checked) ${Ug}`]:{[`${Ug}-unchecked`]:{marginInlineStart:Pg(ai.marginXXS).div(2).equal(),marginInlineEnd:Pg(ai.marginXXS).mul(-1).div(2).equal()}},[`&${gt}-checked ${Ug}`]:{[`${Ug}-checked`]:{marginInlineStart:Pg(ai.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Pg(ai.marginXXS).div(2).equal()}}}}}}},Lt=ai=>{const{componentCls:gt,handleSize:Zr,calc:Ht}=ai;return{[gt]:{[`${gt}-loading-icon${ai.iconCls}`]:{position:"relative",top:Ht(Ht(Zr).sub(ai.fontSize)).div(2).equal(),color:ai.switchLoadingIconColor,verticalAlign:"top"},[`&${gt}-checked ${gt}-loading-icon`]:{color:ai.switchColor}}}},_n=ai=>{const{componentCls:gt,trackPadding:Zr,handleBg:Ht,handleShadow:Zs,handleSize:oi,calc:Pa}=ai,Aa=`${gt}-handle`;return{[gt]:{[Aa]:{position:"absolute",top:Zr,insetInlineStart:Zr,width:oi,height:oi,transition:`all ${ai.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ht,borderRadius:Pa(oi).div(2).equal(),boxShadow:Zs,transition:`all ${ai.switchDuration} ease-in-out`,content:'""'}},[`&${gt}-checked ${Aa}`]:{insetInlineStart:`calc(100% - ${(0,Ot.bf)(Pa(oi).add(Zr).equal())})`},[`&:not(${gt}-disabled):active`]:{[`${Aa}::before`]:{insetInlineEnd:ai.switchHandleActiveInset,insetInlineStart:0},[`&${gt}-checked ${Aa}::before`]:{insetInlineEnd:0,insetInlineStart:ai.switchHandleActiveInset}}}}},Mt=ai=>{const{componentCls:gt,trackHeight:Zr,trackPadding:Ht,innerMinMargin:Zs,innerMaxMargin:oi,handleSize:Pa,calc:Aa}=ai,Pg=`${gt}-inner`,Ug=(0,Ot.bf)(Aa(Pa).add(Aa(Ht).mul(2)).equal()),e0=(0,Ot.bf)(Aa(oi).mul(2).equal());return{[gt]:{[Pg]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:oi,paddingInlineEnd:Zs,transition:`padding-inline-start ${ai.switchDuration} ease-in-out, padding-inline-end ${ai.switchDuration} ease-in-out`,[`${Pg}-checked, ${Pg}-unchecked`]:{display:"block",color:ai.colorTextLightSolid,fontSize:ai.fontSizeSM,transition:`margin-inline-start ${ai.switchDuration} ease-in-out, margin-inline-end ${ai.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Pg}-checked`]:{marginInlineStart:`calc(-100% + ${Ug} - ${e0})`,marginInlineEnd:`calc(100% - ${Ug} + ${e0})`},[`${Pg}-unchecked`]:{marginTop:Aa(Zr).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${gt}-checked ${Pg}`]:{paddingInlineStart:Zs,paddingInlineEnd:oi,[`${Pg}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Pg}-unchecked`]:{marginInlineStart:`calc(100% - ${Ug} + ${e0})`,marginInlineEnd:`calc(-100% + ${Ug} - ${e0})`}},[`&:not(${gt}-disabled):active`]:{[`&:not(${gt}-checked) ${Pg}`]:{[`${Pg}-unchecked`]:{marginInlineStart:Aa(Ht).mul(2).equal(),marginInlineEnd:Aa(Ht).mul(-1).mul(2).equal()}},[`&${gt}-checked ${Pg}`]:{[`${Pg}-checked`]:{marginInlineStart:Aa(Ht).mul(-1).mul(2).equal(),marginInlineEnd:Aa(Ht).mul(2).equal()}}}}}},Bt=ai=>{const{componentCls:gt,trackHeight:Zr,trackMinWidth:Ht}=ai;return{[gt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Hs.Wf)(ai)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ht,height:Zr,lineHeight:`${(0,Ot.bf)(Zr)}`,verticalAlign:"middle",background:ai.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ai.motionDurationMid}`,userSelect:"none",[`&:hover:not(${gt}-disabled)`]:{background:ai.colorTextTertiary}}),(0,Hs.Qy)(ai)),{[`&${gt}-checked`]:{background:ai.switchColor,[`&:hover:not(${gt}-disabled)`]:{background:ai.colorPrimaryHover}},[`&${gt}-loading, &${gt}-disabled`]:{cursor:"not-allowed",opacity:ai.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${gt}-rtl`]:{direction:"rtl"}})}},Rt=ai=>{const{fontSize:gt,lineHeight:Zr,controlHeight:Ht,colorWhite:Zs}=ai,oi=gt*Zr,Pa=Ht/2,Aa=2,Pg=oi-Aa*2,Ug=Pa-Aa*2;return{trackHeight:oi,trackHeightSM:Pa,trackMinWidth:Pg*2+Aa*4,trackMinWidthSM:Ug*2+Aa*2,trackPadding:Aa,handleBg:Zs,handleSize:Pg,handleSizeSM:Ug,handleShadow:`0 2px 4px 0 ${new wn.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Pg/2,innerMaxMargin:Pg+Aa+Aa*2,innerMinMarginSM:Ug/2,innerMaxMarginSM:Ug+Aa+Aa*2}};var on=(0,jr.I$)("Switch",ai=>{const gt=(0,Jr.TS)(ai,{switchDuration:ai.motionDurationMid,switchColor:ai.colorPrimary,switchDisabledOpacity:ai.opacityLoading,switchLoadingIconSize:ai.calc(ai.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ai.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Bt(gt),Mt(gt),_n(gt),Lt(gt),Yn(gt)]},Rt),Hr=function(ai,gt){var Zr={};for(var Ht in ai)Object.prototype.hasOwnProperty.call(ai,Ht)&>.indexOf(Ht)<0&&(Zr[Ht]=ai[Ht]);if(ai!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zs=0,Ht=Object.getOwnPropertySymbols(ai);Zs{const{prefixCls:Zr,size:Ht,disabled:Zs,loading:oi,className:Pa,rootClassName:Aa,style:Pg,checked:Ug,value:e0,defaultChecked:H0,defaultValue:X0,onChange:d0}=ai,jv=Hr(ai,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Lv,Je]=(0,I.Z)(!1,{value:Ug!=null?Ug:e0,defaultValue:H0!=null?H0:X0}),{getPrefixCls:k0,direction:G0,switch:iv}=u.useContext(At.E_),u0=u.useContext(rt.Z),B1=(Zs!=null?Zs:u0)||oi,Dg=k0("switch",Zr),zo=u.createElement("div",{className:`${Dg}-handle`},oi&&u.createElement(D.Z,{className:`${Dg}-loading-icon`})),[mu,Ag,c0]=on(Dg),L0=(0,It.Z)(Ht),$0=x()(iv==null?void 0:iv.className,{[`${Dg}-small`]:L0==="small",[`${Dg}-loading`]:oi,[`${Dg}-rtl`]:G0==="rtl"},Pa,Aa,Ag,c0),cv=Object.assign(Object.assign({},iv==null?void 0:iv.style),Pg),Gg=function(){Je(arguments.length<=0?void 0:arguments[0]),d0==null||d0.apply(void 0,arguments)};return mu(u.createElement(ct.Z,{component:"Switch"},u.createElement(Ie,Object.assign({},jv,{checked:Lv,onChange:Gg,prefixCls:Dg,className:$0,style:cv,disabled:B1,ref:gt,loadingIcon:zo}))))});vn.__ANT_SWITCH=!0;var Ca=vn},44073:function(c,g,l){"use strict";l.d(g,{Z:function(){return Eu}});var u=l(77617),D={},b="rc-table-internal-hook",x=l(35372),y=l(33890),w=l(64693),a=l(48897),S=l(79161);function I(Ne){var Me=u.createContext(void 0),Gt=function(Ir){var Yr=Ir.value,Ws=Ir.children,qs=u.useRef(Yr);qs.current=Yr;var _a=u.useState(function(){return{getValue:function(){return qs.current},listeners:new Set}}),ru=(0,x.Z)(_a,1),Rd=ru[0];return(0,w.Z)(function(){(0,S.unstable_batchedUpdates)(function(){Rd.listeners.forEach(function(zd){zd(Yr)})})},[Yr]),u.createElement(Me.Provider,{value:Rd},Ws)};return{Context:Me,Provider:Gt,defaultValue:Ne}}function N(Ne,Me){var Gt=(0,y.Z)(typeof Me=="function"?Me:function(zd){if(Me===void 0)return zd;if(!Array.isArray(Me))return zd[Me];var _g={};return Me.forEach(function(au){_g[au]=zd[au]}),_g}),wr=u.useContext(Ne==null?void 0:Ne.Context),Ir=wr||{},Yr=Ir.listeners,Ws=Ir.getValue,qs=u.useRef();qs.current=Gt(wr?Ws():Ne==null?void 0:Ne.defaultValue);var _a=u.useState({}),ru=(0,x.Z)(_a,2),Rd=ru[1];return(0,w.Z)(function(){if(!wr)return;function zd(_g){var au=Gt(_g);(0,a.Z)(qs.current,au,!0)||Rd({})}return Yr.add(zd),function(){Yr.delete(zd)}},[wr]),qs.current}var ie=l(79384),ze=l(17763);function Ie(){var Ne=u.createContext(null);function Me(){return u.useContext(Ne)}function Gt(Ir,Yr){var Ws=(0,ze.Yr)(Ir),qs=function(ru,Rd){var zd=Ws?{ref:Rd}:{},_g=u.useRef(0),au=u.useRef(ru),Fd=Me();return Fd!==null?u.createElement(Ir,(0,ie.Z)({},ru,zd)):((!Yr||Yr(au.current,ru))&&(_g.current+=1),au.current=ru,u.createElement(Ne.Provider,{value:_g.current},u.createElement(Ir,(0,ie.Z)({},ru,zd))))};return Ws?u.forwardRef(qs):qs}function wr(Ir,Yr){var Ws=(0,ze.Yr)(Ir),qs=function(ru,Rd){var zd=Ws?{ref:Rd}:{};return Me(),u.createElement(Ir,(0,ie.Z)({},ru,zd))};return Ws?u.memo(u.forwardRef(qs),Yr):u.memo(qs,Yr)}return{makeImmutable:Gt,responseImmutable:wr,useImmutableMark:Me}}var ct=Ie(),At=ct.makeImmutable,rt=ct.responseImmutable,It=ct.useImmutableMark,Ot=Ie(),wn=Ot.makeImmutable,Hs=Ot.responseImmutable,jr=Ot.useImmutableMark,Jr=I(),Yn=Jr;function Lt(Ne,Me){var Gt=React.useRef(0);Gt.current+=1;var wr=React.useRef(Ne),Ir=[];Object.keys(Ne||{}).map(function(Ws){var qs;(Ne==null?void 0:Ne[Ws])!==((qs=wr.current)===null||qs===void 0?void 0:qs[Ws])&&Ir.push(Ws)}),wr.current=Ne;var Yr=React.useRef([]);return Ir.length&&(Yr.current=Ir),React.useDebugValue(Gt.current),React.useDebugValue(Yr.current.join(", ")),Me&&console.log("".concat(Me,":"),Gt.current,Yr.current),Gt.current}var _n=null,Mt=null,Bt=l(13255),Rt=l(54131),on=l(16514),Hr=l(92310),vn=l.n(Hr),Ca=l(64913),ai=l(64549),gt=l(32188),Zr=u.createContext({renderWithProps:!1}),Ht=Zr,Zs="RC_TABLE_KEY";function oi(Ne){return Ne==null?[]:Array.isArray(Ne)?Ne:[Ne]}function Pa(Ne){var Me=[],Gt={};return Ne.forEach(function(wr){for(var Ir=wr||{},Yr=Ir.key,Ws=Ir.dataIndex,qs=Yr||oi(Ws).join("-")||Zs;Gt[qs];)qs="".concat(qs,"_next");Gt[qs]=!0,Me.push(qs)}),Me}function Aa(Ne){return Ne!=null}function Pg(Ne){return Ne&&(0,Bt.Z)(Ne)==="object"&&!Array.isArray(Ne)&&!u.isValidElement(Ne)}function Ug(Ne,Me,Gt,wr,Ir,Yr){var Ws=u.useContext(Ht),qs=jr(),_a=(0,Ca.Z)(function(){if(Aa(wr))return[wr];var ru=Me==null||Me===""?[]:Array.isArray(Me)?Me:[Me],Rd=(0,ai.Z)(Ne,ru),zd=Rd,_g=void 0;if(Ir){var au=Ir(Rd,Ne,Gt);Pg(au)?(zd=au.children,_g=au.props,Ws.renderWithProps=!0):zd=au}return[zd,_g]},[qs,Ne,wr,Me,Ir,Gt],function(ru,Rd){if(Yr){var zd=(0,x.Z)(ru,2),_g=zd[1],au=(0,x.Z)(Rd,2),Fd=au[1];return Yr(Fd,_g)}return Ws.renderWithProps?!0:!(0,a.Z)(ru,Rd,!0)});return _a}function e0(Ne,Me,Gt,wr){var Ir=Ne+Me-1;return Ne<=wr&&Ir>=Gt}function H0(Ne,Me){return N(Yn,function(Gt){var wr=e0(Ne,Me||1,Gt.hoverStartRow,Gt.hoverEndRow);return[wr,Gt.onHover]})}var X0=l(46142),d0=function(Me){var Gt=Me.ellipsis,wr=Me.rowType,Ir=Me.children,Yr,Ws=Gt===!0?{showTitle:!0}:Gt;return Ws&&(Ws.showTitle||wr==="header")&&(typeof Ir=="string"||typeof Ir=="number"?Yr=Ir.toString():u.isValidElement(Ir)&&typeof Ir.props.children=="string"&&(Yr=Ir.props.children)),Yr};function jv(Ne){var Me,Gt,wr,Ir,Yr,Ws,qs,_a,ru=Ne.component,Rd=Ne.children,zd=Ne.ellipsis,_g=Ne.scope,au=Ne.prefixCls,Fd=Ne.className,zg=Ne.align,v0=Ne.record,x0=Ne.render,a0=Ne.dataIndex,M0=Ne.renderIndex,O0=Ne.shouldCellUpdate,Y0=Ne.index,V0=Ne.rowType,t1=Ne.colSpan,Zg=Ne.rowSpan,y0=Ne.fixLeft,Fg=Ne.fixRight,_0=Ne.firstFixLeft,Ou=Ne.lastFixLeft,Kg=Ne.firstFixRight,o0=Ne.lastFixRight,f0=Ne.appendNode,T0=Ne.additionalProps,D0=T0===void 0?{}:T0,pv=Ne.isSticky,f1="".concat(au,"-cell"),Jv=N(Yn,["supportSticky","allColumnsFixedLeft"]),m1=Jv.supportSticky,Iy=Jv.allColumnsFixedLeft,n1=Ug(v0,a0,M0,Rd,x0,O0),t_=(0,x.Z)(n1,2),O1=t_[0],Mv=t_[1],Qy={},r_=typeof y0=="number"&&m1,My=typeof Fg=="number"&&m1;r_&&(Qy.position="sticky",Qy.left=y0),My&&(Qy.position="sticky",Qy.right=Fg);var Da=(Me=(Gt=(wr=Mv==null?void 0:Mv.colSpan)!==null&&wr!==void 0?wr:D0.colSpan)!==null&&Gt!==void 0?Gt:t1)!==null&&Me!==void 0?Me:1,mg=(Ir=(Yr=(Ws=Mv==null?void 0:Mv.rowSpan)!==null&&Ws!==void 0?Ws:D0.rowSpan)!==null&&Yr!==void 0?Yr:Zg)!==null&&Ir!==void 0?Ir:1,w0=H0(Y0,mg),Kv=(0,x.Z)(w0,2),l1=Kv[0],V1=Kv[1],q0=(0,X0.zX)(function(U_){var hx;v0&&V1(Y0,Y0+mg-1),D0==null||(hx=D0.onMouseEnter)===null||hx===void 0||hx.call(D0,U_)}),Ev=(0,X0.zX)(function(U_){var hx;v0&&V1(-1,-1),D0==null||(hx=D0.onMouseLeave)===null||hx===void 0||hx.call(D0,U_)});if(Da===0||mg===0)return null;var Fv=(qs=D0.title)!==null&&qs!==void 0?qs:d0({rowType:V0,ellipsis:zd,children:O1}),Q1=vn()(f1,Fd,(_a={},(0,on.Z)(_a,"".concat(f1,"-fix-left"),r_&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-left-first"),_0&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-left-last"),Ou&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-left-all"),Ou&&Iy&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-right"),My&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-right-first"),Kg&&m1),(0,on.Z)(_a,"".concat(f1,"-fix-right-last"),o0&&m1),(0,on.Z)(_a,"".concat(f1,"-ellipsis"),zd),(0,on.Z)(_a,"".concat(f1,"-with-append"),f0),(0,on.Z)(_a,"".concat(f1,"-fix-sticky"),(r_||My)&&pv&&m1),(0,on.Z)(_a,"".concat(f1,"-row-hover"),!Mv&&l1),_a),D0.className,Mv==null?void 0:Mv.className),vy={};zg&&(vy.textAlign=zg);var nn=(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},Qy),D0.style),vy),Mv==null?void 0:Mv.style),u_=O1;return(0,Bt.Z)(u_)==="object"&&!Array.isArray(u_)&&!u.isValidElement(u_)&&(u_=null),zd&&(Ou||Kg)&&(u_=u.createElement("span",{className:"".concat(f1,"-content")},u_)),u.createElement(ru,(0,ie.Z)({},Mv,D0,{className:Q1,style:nn,title:Fv,scope:_g,onMouseEnter:q0,onMouseLeave:Ev,colSpan:Da!==1?Da:null,rowSpan:mg!==1?mg:null}),f0,u_)}var Lv=u.memo(jv);function Je(Ne,Me,Gt,wr,Ir,Yr){var Ws=Gt[Ne]||{},qs=Gt[Me]||{},_a,ru;Ws.fixed==="left"?_a=wr.left[Ir==="rtl"?Me:Ne]:qs.fixed==="right"&&(ru=wr.right[Ir==="rtl"?Ne:Me]);var Rd=!1,zd=!1,_g=!1,au=!1,Fd=Gt[Me+1],zg=Gt[Ne-1],v0=!(Yr!=null&&Yr.children);if(Ir==="rtl"){if(_a!==void 0){var x0=zg&&zg.fixed==="left";au=!x0&&v0}else if(ru!==void 0){var a0=Fd&&Fd.fixed==="right";_g=!a0&&v0}}else if(_a!==void 0){var M0=Fd&&Fd.fixed==="left";Rd=!M0&&v0}else if(ru!==void 0){var O0=zg&&zg.fixed==="right";zd=!O0&&v0}return{fixLeft:_a,fixRight:ru,lastFixLeft:Rd,firstFixRight:zd,lastFixRight:_g,firstFixLeft:au,isSticky:wr.isSticky}}var k0=u.createContext({}),G0=k0;function iv(Ne){var Me=Ne.className,Gt=Ne.index,wr=Ne.children,Ir=Ne.colSpan,Yr=Ir===void 0?1:Ir,Ws=Ne.rowSpan,qs=Ne.align,_a=N(Yn,["prefixCls","direction"]),ru=_a.prefixCls,Rd=_a.direction,zd=u.useContext(G0),_g=zd.scrollColumnIndex,au=zd.stickyOffsets,Fd=zd.flattenColumns,zg=zd.columns,v0=Gt+Yr-1,x0=v0+1===_g?Yr+1:Yr,a0=Je(Gt,Gt+x0-1,Fd,au,Rd,zg==null?void 0:zg[Gt]);return u.createElement(Lv,(0,ie.Z)({className:Me,index:Gt,component:"td",prefixCls:ru,record:null,dataIndex:null,align:qs,colSpan:x0,rowSpan:Ws,render:function(){return wr}},a0))}var u0=l(56348),B1=["children"];function Dg(Ne){var Me=Ne.children,Gt=(0,u0.Z)(Ne,B1);return u.createElement("tr",Gt,Me)}function zo(Ne){var Me=Ne.children;return Me}zo.Row=Dg,zo.Cell=iv;var mu=zo;function Ag(Ne){var Me=Ne.children,Gt=Ne.stickyOffsets,wr=Ne.flattenColumns,Ir=Ne.columns,Yr=N(Yn,"prefixCls"),Ws=wr.length-1,qs=wr[Ws],_a=u.useMemo(function(){return{stickyOffsets:Gt,flattenColumns:wr,scrollColumnIndex:qs!=null&&qs.scrollbar?Ws:null,columns:Ir}},[qs,wr,Ws,Gt,Ir]);return u.createElement(G0.Provider,{value:_a},u.createElement("tfoot",{className:"".concat(Yr,"-summary")},Me))}var c0=Hs(Ag),L0=mu,$0=l(28647),cv=l(66209),Gg=l(45897),uu=l(34112),Gs=l(64834);function Ia(Ne,Me,Gt,wr,Ir,Yr,Ws){Ne.push({record:Me,indent:Gt,index:Ws});var qs=Yr(Me),_a=Ir==null?void 0:Ir.has(qs);if(Me&&Array.isArray(Me[wr])&&_a)for(var ru=0;ru1?_0-1:0),Kg=1;Kg<_0;Kg++)Ou[Kg-1]=arguments[Kg];Y0==null||Y0.apply(void 0,[Fg].concat(Ou))},t1;typeof au=="string"?t1=au:typeof au=="function"&&(t1=au(Ne,Gt,wr));var Zg=Pa(Yr);return(0,Rt.Z)((0,Rt.Z)({},Ir),{},{columnsKey:Zg,nestExpandable:Fd,expanded:x0,hasNestChildren:a0,record:Ne,onTriggerExpand:M0,rowSupportExpand:zg,expandable:v0,rowProps:(0,Rt.Z)((0,Rt.Z)({},O0),{},{className:vn()(t1,O0==null?void 0:O0.className),onClick:V0})})}function Kr(Ne){var Me=Ne.prefixCls,Gt=Ne.children,wr=Ne.component,Ir=Ne.cellComponent,Yr=Ne.className,Ws=Ne.expanded,qs=Ne.colSpan,_a=Ne.isEmpty,ru=N(Yn,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rd=ru.scrollbarSize,zd=ru.fixHeader,_g=ru.fixColumn,au=ru.componentWidth,Fd=ru.horizonScroll,zg=Gt;return(_a?Fd&&au:_g)&&(zg=u.createElement("div",{style:{width:au-(zd?Rd:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Me,"-expanded-row-fixed")},zg)),u.createElement(wr,{className:Yr,style:{display:Ws?null:"none"}},u.createElement(Lv,{component:Ir,prefixCls:Me,colSpan:qs},zg))}var fr=Kr;function ri(Ne,Me,Gt,wr,Ir){var Yr=Ne.record,Ws=Ne.prefixCls,qs=Ne.columnsKey,_a=Ne.fixedInfoList,ru=Ne.expandIconColumnIndex,Rd=Ne.nestExpandable,zd=Ne.indentSize,_g=Ne.expandIcon,au=Ne.expanded,Fd=Ne.hasNestChildren,zg=Ne.onTriggerExpand,v0=qs[Gt],x0=_a[Gt],a0;Gt===(ru||0)&&Rd&&(a0=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(zd*wr,"px")},className:"".concat(Ws,"-row-indent indent-level-").concat(wr)}),_g({prefixCls:Ws,expanded:au,expandable:Fd,record:Yr,onExpand:zg})));var M0;return Me.onCell&&(M0=Me.onCell(Yr,Ir)),{key:v0,fixedInfo:x0,appendCellNode:a0,additionalCellProps:M0||{}}}function Ra(Ne){var Me=Ne.className,Gt=Ne.style,wr=Ne.record,Ir=Ne.index,Yr=Ne.renderIndex,Ws=Ne.rowKey,qs=Ne.indent,_a=qs===void 0?0:qs,ru=Ne.rowComponent,Rd=Ne.cellComponent,zd=Ne.scopeCellComponent,_g=_h(wr,Ws,Ir,_a),au=_g.prefixCls,Fd=_g.flattenColumns,zg=_g.expandedRowClassName,v0=_g.expandedRowRender,x0=_g.rowProps,a0=_g.expanded,M0=_g.rowSupportExpand,O0=u.useRef(!1);O0.current||(O0.current=a0);var Y0=zg&&zg(wr,Ir,_a),V0=u.createElement(ru,(0,ie.Z)({},x0,{"data-row-key":Ws,className:vn()(Me,"".concat(au,"-row"),"".concat(au,"-row-level-").concat(_a),x0==null?void 0:x0.className,_a>=1?Y0:""),style:(0,Rt.Z)((0,Rt.Z)({},Gt),x0==null?void 0:x0.style)}),Fd.map(function(y0,Fg){var _0=y0.render,Ou=y0.dataIndex,Kg=y0.className,o0=ri(_g,y0,Fg,_a,Ir),f0=o0.key,T0=o0.fixedInfo,D0=o0.appendCellNode,pv=o0.additionalCellProps;return u.createElement(Lv,(0,ie.Z)({className:Kg,ellipsis:y0.ellipsis,align:y0.align,scope:y0.rowScope,component:y0.rowScope?zd:Rd,prefixCls:au,key:f0,record:wr,index:Ir,renderIndex:Yr,dataIndex:Ou,render:_0,shouldCellUpdate:y0.shouldCellUpdate},T0,{appendNode:D0,additionalProps:pv}))})),t1;if(M0&&(O0.current||a0)){var Zg=v0(wr,Ir,_a+1,a0);t1=u.createElement(fr,{expanded:a0,className:vn()("".concat(au,"-expanded-row"),"".concat(au,"-expanded-row-level-").concat(_a+1),Y0),prefixCls:au,component:ru,cellComponent:Rd,colSpan:Fd.length,isEmpty:!1},Zg)}return u.createElement(u.Fragment,null,V0,t1)}var Sg=Hs(Ra);function Jg(Ne){var Me=Ne.columnKey,Gt=Ne.onColumnResize,wr=u.useRef();return u.useEffect(function(){wr.current&&Gt(Me,wr.current.offsetWidth)},[]),u.createElement($0.Z,{data:Me},u.createElement("td",{ref:wr,style:{padding:0,border:0,height:0}},u.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function j0(Ne){var Me=Ne.prefixCls,Gt=Ne.columnsKey,wr=Ne.onColumnResize;return u.createElement("tr",{"aria-hidden":"true",className:"".concat(Me,"-measure-row"),style:{height:0,fontSize:0}},u.createElement($0.Z.Collection,{onBatchResize:function(Yr){Yr.forEach(function(Ws){var qs=Ws.data,_a=Ws.size;wr(qs,_a.offsetWidth)})}},Gt.map(function(Ir){return u.createElement(Jg,{key:Ir,columnKey:Ir,onColumnResize:wr})})))}function Wo(Ne){var Me=Ne.data,Gt=Ne.measureColumnWidth,wr=N(Yn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ir=wr.prefixCls,Yr=wr.getComponent,Ws=wr.onColumnResize,qs=wr.flattenColumns,_a=wr.getRowKey,ru=wr.expandedKeys,Rd=wr.childrenColumnName,zd=wr.emptyNode,_g=lu(Me,Rd,ru,_a),au=u.useRef({renderWithProps:!1}),Fd=Yr(["body","wrapper"],"tbody"),zg=Yr(["body","row"],"tr"),v0=Yr(["body","cell"],"td"),x0=Yr(["body","cell"],"th"),a0;Me.length?a0=_g.map(function(O0,Y0){var V0=O0.record,t1=O0.indent,Zg=O0.index,y0=_a(V0,Y0);return u.createElement(Sg,{key:y0,rowKey:y0,record:V0,index:Y0,renderIndex:Zg,rowComponent:zg,cellComponent:v0,scopeCellComponent:x0,getRowKey:_a,indent:t1})}):a0=u.createElement(fr,{expanded:!0,className:"".concat(Ir,"-placeholder"),prefixCls:Ir,component:zg,cellComponent:v0,colSpan:qs.length,isEmpty:!0},zd);var M0=Pa(qs);return u.createElement(Ht.Provider,{value:au.current},u.createElement(Fd,{className:"".concat(Ir,"-tbody")},Gt&&u.createElement(j0,{prefixCls:Ir,columnsKey:M0,onColumnResize:Ws}),a0))}var Mo=Hs(Wo),qr=["expandable"],On="RC_TABLE_INTERNAL_COL_DEFINE";function rn(Ne){var Me=Ne.expandable,Gt=(0,u0.Z)(Ne,qr),wr;return"expandable"in Ne?wr=(0,Rt.Z)((0,Rt.Z)({},Gt),Me):wr=Gt,wr.showExpandColumn===!1&&(wr.expandIconColumnIndex=-1),wr}var ui=["columnType"];function ya(Ne){for(var Me=Ne.colWidths,Gt=Ne.columns,wr=Ne.columCount,Ir=[],Yr=wr||Gt.length,Ws=!1,qs=Yr-1;qs>=0;qs-=1){var _a=Me[qs],ru=Gt&&Gt[qs],Rd=ru&&ru[On];if(_a||Rd||Ws){var zd=Rd||{},_g=zd.columnType,au=(0,u0.Z)(zd,ui);Ir.unshift(u.createElement("col",(0,ie.Z)({key:qs,style:{width:_a}},au))),Ws=!0}}return u.createElement("colgroup",null,Ir)}var gd=ya,Su=l(49397),xu=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function xa(Ne,Me){return(0,u.useMemo)(function(){for(var Gt=[],wr=0;wr1?"colgroup":"col":null,ellipsis:v0.ellipsis,align:v0.align,component:v0.title?Yr:Ws,prefixCls:Rd,key:au[zg]},x0,{additionalProps:a0,rowType:"header"}))}))}var tv=Wa;function Bs(Ne){var Me=[];function Gt(Ws,qs){var _a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[_a]=Me[_a]||[];var ru=qs,Rd=Ws.filter(Boolean).map(function(zd){var _g={key:zd.key,className:zd.className||"",children:zd.title,column:zd,colStart:ru},au=1,Fd=zd.children;return Fd&&Fd.length>0&&(au=Gt(Fd,ru,_a+1).reduce(function(zg,v0){return zg+v0},0),_g.hasSubColumns=!0),"colSpan"in zd&&(au=zd.colSpan),"rowSpan"in zd&&(_g.rowSpan=zd.rowSpan),_g.colSpan=au,_g.colEnd=_g.colStart+au-1,Me[_a].push(_g),ru+=au,au});return Rd}Gt(Ne,0);for(var wr=Me.length,Ir=function(qs){Me[qs].forEach(function(_a){!("rowSpan"in _a)&&!_a.hasSubColumns&&(_a.rowSpan=wr-qs)})},Yr=0;Yr1&&arguments[1]!==void 0?arguments[1]:"";return typeof Me=="number"?Me:Me.endsWith("%")?Ne*parseFloat(Me)/100:null}function Og(Ne,Me,Gt){return u.useMemo(function(){if(Me&&Me>0){var wr=0,Ir=0;Ne.forEach(function(_g){var au=Bg(Me,_g.width);au?wr+=au:Ir+=1});var Yr=Math.max(Me,Gt),Ws=Math.max(Yr-wr,Ir),qs=Ir,_a=Ws/Ir,ru=0,Rd=Ne.map(function(_g){var au=(0,Rt.Z)({},_g),Fd=Bg(Me,au.width);if(Fd)au.width=Fd;else{var zg=Math.floor(_a);au.width=qs===1?Ws:zg,Ws-=zg,qs-=1}return ru+=au.width,au});if(ru0?(0,Rt.Z)((0,Rt.Z)({},Me),{},{children:A0(Gt)}):Me})}function nv(Ne){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ne.filter(function(Gt){return Gt&&(0,Bt.Z)(Gt)==="object"}).reduce(function(Gt,wr,Ir){var Yr=wr.fixed,Ws=Yr===!0?"left":Yr,qs="".concat(Me,"-").concat(Ir),_a=wr.children;return _a&&_a.length>0?[].concat((0,Su.Z)(Gt),(0,Su.Z)(nv(_a,qs).map(function(ru){return(0,Rt.Z)({fixed:Ws},ru)}))):[].concat((0,Su.Z)(Gt),[(0,Rt.Z)((0,Rt.Z)({key:qs},wr),{},{fixed:Ws})])},[])}function t0(Ne){return Ne.map(function(Me){var Gt=Me.fixed,wr=(0,u0.Z)(Me,qg),Ir=Gt;return Gt==="left"?Ir="right":Gt==="right"&&(Ir="left"),(0,Rt.Z)({fixed:Ir},wr)})}function n0(Ne,Me){var Gt=Ne.prefixCls,wr=Ne.columns,Ir=Ne.children,Yr=Ne.expandable,Ws=Ne.expandedKeys,qs=Ne.columnTitle,_a=Ne.getRowKey,ru=Ne.onTriggerExpand,Rd=Ne.expandIcon,zd=Ne.rowExpandable,_g=Ne.expandIconColumnIndex,au=Ne.direction,Fd=Ne.expandRowByClick,zg=Ne.columnWidth,v0=Ne.fixed,x0=Ne.scrollWidth,a0=Ne.clientWidth,M0=u.useMemo(function(){var Ou=wr||Xg(Ir)||[];return A0(Ou.slice())},[wr,Ir]),O0=u.useMemo(function(){if(Yr){var Ou,Kg=M0.slice();if(!Kg.includes(D)){var o0=_g||0;o0>=0&&Kg.splice(o0,0,D)}var f0=Kg.indexOf(D);Kg=Kg.filter(function(f1,Jv){return f1!==D||Jv===f0});var T0=M0[f0],D0;(v0==="left"||v0)&&!_g?D0="left":(v0==="right"||v0)&&_g===M0.length?D0="right":D0=T0?T0.fixed:null;var pv=(Ou={},(0,on.Z)(Ou,On,{className:"".concat(Gt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,on.Z)(Ou,"title",qs),(0,on.Z)(Ou,"fixed",D0),(0,on.Z)(Ou,"className","".concat(Gt,"-row-expand-icon-cell")),(0,on.Z)(Ou,"width",zg),(0,on.Z)(Ou,"render",function(Jv,m1,Iy){var n1=_a(m1,Iy),t_=Ws.has(n1),O1=zd?zd(m1):!0,Mv=Rd({prefixCls:Gt,expanded:t_,expandable:O1,record:m1,onExpand:ru});return Fd?u.createElement("span",{onClick:function(r_){return r_.stopPropagation()}},Mv):Mv}),Ou);return Kg.map(function(f1){return f1===D?pv:f1})}return M0.filter(function(f1){return f1!==D})},[Yr,M0,_a,Ws,Rd,au]),Y0=u.useMemo(function(){var Ou=O0;return Me&&(Ou=Me(Ou)),Ou.length||(Ou=[{render:function(){return null}}]),Ou},[Me,O0,au]),V0=u.useMemo(function(){return au==="rtl"?t0(nv(Y0)):nv(Y0)},[Y0,au,x0]),t1=u.useMemo(function(){for(var Ou=-1,Kg=V0.length-1;Kg>=0;Kg-=1){var o0=V0[Kg].fixed;if(o0==="left"||o0===!0){Ou=Kg;break}}if(Ou>=0)for(var f0=0;f0<=Ou;f0+=1){var T0=V0[f0].fixed;if(T0!=="left"&&T0!==!0)return!0}var D0=V0.findIndex(function(Jv){var m1=Jv.fixed;return m1==="right"});if(D0>=0)for(var pv=D0;pv=zd&&(D0=zd-_g),Ws({scrollLeft:D0/zd*(Rd+2)}),a0.current.x=Kg.pageX},Fg=function(){if(Yr.current){var Kg=(0,l0.os)(Yr.current).top,o0=Kg+Yr.current.offsetHeight,f0=_a===window?document.documentElement.scrollTop+window.innerHeight:(0,l0.os)(_a).top+_a.clientHeight;o0-(0,uu.Z)()<=f0||Kg>=f0-qs?x0(function(T0){return(0,Rt.Z)((0,Rt.Z)({},T0),{},{isHiddenScrollBar:!0})}):x0(function(T0){return(0,Rt.Z)((0,Rt.Z)({},T0),{},{isHiddenScrollBar:!1})})}},_0=function(Kg){x0(function(o0){return(0,Rt.Z)((0,Rt.Z)({},o0),{},{scrollLeft:Kg/Rd*zd||0})})};return u.useImperativeHandle(Gt,function(){return{setScrollLeft:_0}}),u.useEffect(function(){var Ou=(0,$1.Z)(document.body,"mouseup",t1,!1),Kg=(0,$1.Z)(document.body,"mousemove",y0,!1);return Fg(),function(){Ou.remove(),Kg.remove()}},[_g,Y0]),u.useEffect(function(){var Ou=(0,$1.Z)(_a,"scroll",Fg,!1),Kg=(0,$1.Z)(window,"resize",Fg,!1);return function(){Ou.remove(),Kg.remove()}},[_a]),u.useEffect(function(){v0.isHiddenScrollBar||x0(function(Ou){var Kg=Yr.current;return Kg?(0,Rt.Z)((0,Rt.Z)({},Ou),{},{scrollLeft:Kg.scrollLeft/Kg.scrollWidth*Kg.clientWidth}):Ou})},[v0.isHiddenScrollBar]),Rd<=zd||!_g||v0.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,uu.Z)(),width:zd,bottom:qs},className:"".concat(ru,"-sticky-scroll")},u.createElement("div",{onMouseDown:Zg,ref:au,className:vn()("".concat(ru,"-sticky-scroll-bar"),(0,on.Z)({},"".concat(ru,"-sticky-scroll-bar-active"),Y0)),style:{width:"".concat(_g,"px"),transform:"translate3d(".concat(v0.scrollLeft,"px, 0, 0)")}}))},W0=u.forwardRef(z0);function Rv(Ne){return null}var R0=Rv;function gv(Ne){return null}var G1=gv,xy="rc-table",Dy=[],H1={};function xd(){return"No Data"}function Yg(Ne,Me){var Gt,wr=(0,Rt.Z)({rowKey:"key",prefixCls:xy,emptyText:xd},Ne),Ir=wr.prefixCls,Yr=wr.className,Ws=wr.rowClassName,qs=wr.style,_a=wr.data,ru=wr.rowKey,Rd=wr.scroll,zd=wr.tableLayout,_g=wr.direction,au=wr.title,Fd=wr.footer,zg=wr.summary,v0=wr.caption,x0=wr.id,a0=wr.showHeader,M0=wr.components,O0=wr.emptyText,Y0=wr.onRow,V0=wr.onHeaderRow,t1=wr.internalHooks,Zg=wr.transformColumns,y0=wr.internalRefs,Fg=wr.tailor,_0=wr.getContainerWidth,Ou=wr.sticky,Kg=_a||Dy,o0=!!Kg.length,f0=t1===b,T0=u.useCallback(function(Cw,pC){return(0,ai.Z)(M0,Cw)||pC},[M0]),D0=u.useMemo(function(){return typeof ru=="function"?ru:function(Cw){var pC=Cw&&Cw[ru];return pC}},[ru]),pv=T0(["body"]),f1=su(),Jv=(0,x.Z)(f1,3),m1=Jv[0],Iy=Jv[1],n1=Jv[2],t_=Hg(wr,Kg,D0),O1=(0,x.Z)(t_,6),Mv=O1[0],Qy=O1[1],r_=O1[2],My=O1[3],Da=O1[4],mg=O1[5],w0=Rd==null?void 0:Rd.x,Kv=u.useState(0),l1=(0,x.Z)(Kv,2),V1=l1[0],q0=l1[1],Ev=u1((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},wr),Mv),{},{expandable:!!Mv.expandedRowRender,columnTitle:Mv.columnTitle,expandedKeys:r_,getRowKey:D0,onTriggerExpand:mg,expandIcon:My,expandIconColumnIndex:Mv.expandIconColumnIndex,direction:_g,scrollWidth:f0&&Fg&&typeof w0=="number"?w0:null,clientWidth:V1}),f0?Zg:null),Fv=(0,x.Z)(Ev,4),Q1=Fv[0],vy=Fv[1],nn=Fv[2],u_=Fv[3],U_=nn!=null?nn:w0,hx=u.useMemo(function(){return{columns:Q1,flattenColumns:vy}},[Q1,vy]),Oy=u.useRef(),p_=u.useRef(),G_=u.useRef(),Ry=u.useRef();u.useImperativeHandle(Me,function(){return{nativeElement:Oy.current,scrollTo:function(pC){var m_;if(G_.current instanceof HTMLElement){var ay=pC.index,Yy=pC.top,Wx=pC.key;if(Yy){var e2;(e2=G_.current)===null||e2===void 0||e2.scrollTo({top:Yy})}else{var Nx,fC=Wx!=null?Wx:D0(Kg[ay]);(Nx=G_.current.querySelector('[data-row-key="'.concat(fC,'"]')))===null||Nx===void 0||Nx.scrollIntoView()}}else(m_=G_.current)!==null&&m_!==void 0&&m_.scrollTo&&G_.current.scrollTo(pC)}}});var Uv=u.useRef(),hy=u.useState(!1),x1=(0,x.Z)(hy,2),by=x1[0],Ly=x1[1],y_=u.useState(!1),jy=(0,x.Z)(y_,2),P0=jy[0],A1=jy[1],ry=h0(new Map),Wy=(0,x.Z)(ry,2),ix=Wy[0],jx=Wy[1],n_=Pa(vy),Q2=n_.map(function(Cw){return ix.get(Cw)}),Y_=u.useMemo(function(){return Q2},[Q2.join("_")]),xw=$v(Y_,vy,_g),Mx=Rd&&Aa(Rd.y),Ew=Rd&&Aa(U_)||!!Mv.fixed,fx=Ew&&vy.some(function(Cw){var pC=Cw.fixed;return pC}),DC=u.useRef(),F2=sv(Ou,Ir),uw=F2.isSticky,$2=F2.offsetHeader,__=F2.offsetSummary,Ww=F2.offsetScroll,XS=F2.stickyClassName,Rw=F2.container,_C=u.useMemo(function(){return zg==null?void 0:zg(Kg)},[zg,Kg]),Yw=(Mx||uw)&&u.isValidElement(_C)&&_C.type===mu&&_C.props.fixed,kw,Bv,e_;Mx&&(Bv={overflowY:"scroll",maxHeight:Rd.y}),Ew&&(kw={overflowX:"auto"},Mx||(Bv={overflowY:"hidden"}),e_={width:U_===!0?"auto":U_,minWidth:"100%"});var u2=u.useCallback(function(Cw,pC){(0,cv.Z)(Oy.current)&&jx(function(m_){if(m_.get(Cw)!==pC){var ay=new Map(m_);return ay.set(Cw,pC),ay}return m_})},[]),Zw=lv(null),IC=(0,x.Z)(Zw,2),_T=IC[0],py=IC[1];function xt(Cw,pC){pC&&(typeof pC=="function"?pC(Cw):pC.scrollLeft!==Cw&&(pC.scrollLeft=Cw,pC.scrollLeft!==Cw&&setTimeout(function(){pC.scrollLeft=Cw},0)))}var Et=(0,y.Z)(function(Cw){var pC=Cw.currentTarget,m_=Cw.scrollLeft,ay=_g==="rtl",Yy=typeof m_=="number"?m_:pC.scrollLeft,Wx=pC||H1;if(!py()||py()===Wx){var e2;_T(Wx),xt(Yy,p_.current),xt(Yy,G_.current),xt(Yy,Uv.current),xt(Yy,(e2=DC.current)===null||e2===void 0?void 0:e2.setScrollLeft)}var Nx=pC||p_.current;if(Nx){var fC=Nx.scrollWidth,uS=Nx.clientWidth;if(fC===uS){Ly(!1),A1(!1);return}ay?(Ly(-Yy0)):(Ly(Yy>0),A1(Yy1?v0-o0:0,T0=(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},Zg),ru),{},{flex:"0 0 ".concat(o0,"px"),width:"".concat(o0,"px"),marginRight:f0,pointerEvents:"auto"}),D0=u.useMemo(function(){return zd?Ou<=1:Fg===0||Ou===0||Ou>1},[Ou,Fg,zd]);D0?T0.visibility="hidden":zd&&(T0.height=_g==null?void 0:_g(Ou));var pv=D0?function(){return null}:au,f1={};return(Ou===0||Fg===0)&&(f1.rowSpan=1,f1.colSpan=1),u.createElement(Lv,(0,ie.Z)({className:vn()(zg,Rd),ellipsis:Gt.ellipsis,align:Gt.align,scope:Gt.rowScope,component:Ws,prefixCls:Me.prefixCls,key:O0,record:_a,index:Yr,renderIndex:qs,dataIndex:Fd,render:pv,shouldCellUpdate:Gt.shouldCellUpdate},Y0,{appendNode:V0,additionalProps:(0,Rt.Z)((0,Rt.Z)({},t1),{},{style:T0},f1)}))}var In=s0,ga=["data","index","className","rowKey","style","extra","getHeight"],Ga=u.forwardRef(function(Ne,Me){var Gt=Ne.data,wr=Ne.index,Ir=Ne.className,Yr=Ne.rowKey,Ws=Ne.style,qs=Ne.extra,_a=Ne.getHeight,ru=(0,u0.Z)(Ne,ga),Rd=Gt.record,zd=Gt.indent,_g=Gt.index,au=N(Yn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Fd=au.scrollX,zg=au.flattenColumns,v0=au.prefixCls,x0=au.fixColumn,a0=au.componentWidth,M0=N(Rs,["getComponent"]),O0=M0.getComponent,Y0=_h(Rd,Yr,wr,zd),V0=O0(["body","row"],"div"),t1=O0(["body","cell"],"div"),Zg=Y0.rowSupportExpand,y0=Y0.expanded,Fg=Y0.rowProps,_0=Y0.expandedRowRender,Ou=Y0.expandedRowClassName,Kg;if(Zg&&y0){var o0=_0(Rd,wr,zd+1,y0),f0=Ou==null?void 0:Ou(Rd,wr,zd),T0={};x0&&(T0={style:(0,on.Z)({},"--virtual-width","".concat(a0,"px"))});var D0="".concat(v0,"-expanded-row-cell");Kg=u.createElement(V0,{className:vn()("".concat(v0,"-expanded-row"),"".concat(v0,"-expanded-row-level-").concat(zd+1),f0)},u.createElement(Lv,{component:t1,prefixCls:v0,className:vn()(D0,(0,on.Z)({},"".concat(D0,"-fixed"),x0)),additionalProps:T0},o0))}var pv=(0,Rt.Z)((0,Rt.Z)({},Ws),{},{width:Fd});qs&&(pv.position="absolute",pv.pointerEvents="none");var f1=u.createElement(V0,(0,ie.Z)({},Fg,ru,{ref:Zg?null:Me,className:vn()(Ir,"".concat(v0,"-row"),Fg==null?void 0:Fg.className,(0,on.Z)({},"".concat(v0,"-row-extra"),qs)),style:(0,Rt.Z)((0,Rt.Z)({},pv),Fg==null?void 0:Fg.style)}),zg.map(function(Jv,m1){return u.createElement(In,{key:m1,component:t1,rowInfo:Y0,column:Jv,colIndex:m1,indent:zd,index:wr,renderIndex:_g,record:Rd,inverse:qs,getHeight:_a})}));return Zg?u.createElement("div",{ref:Me},f1,Kg):f1}),Lu=Hs(Ga),dv=Lu,Cv=u.forwardRef(function(Ne,Me){var Gt=Ne.data,wr=Ne.onScroll,Ir=N(Yn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Yr=Ir.flattenColumns,Ws=Ir.onColumnResize,qs=Ir.getRowKey,_a=Ir.expandedKeys,ru=Ir.prefixCls,Rd=Ir.childrenColumnName,zd=Ir.emptyNode,_g=Ir.scrollX,au=N(Rs),Fd=au.sticky,zg=au.scrollY,v0=au.listItemHeight,x0=au.getComponent,a0=u.useRef(),M0=lu(Gt,Rd,_a,qs),O0=u.useMemo(function(){var f0=0;return Yr.map(function(T0){var D0=T0.width,pv=T0.key;return f0+=D0,[pv,D0,f0]})},[Yr]),Y0=u.useMemo(function(){return O0.map(function(f0){return f0[2]})},[O0]);u.useEffect(function(){O0.forEach(function(f0){var T0=(0,x.Z)(f0,2),D0=T0[0],pv=T0[1];Ws(D0,pv)})},[O0]),u.useImperativeHandle(Me,function(){var f0={scrollTo:function(D0){var pv;(pv=a0.current)===null||pv===void 0||pv.scrollTo(D0)}};return Object.defineProperty(f0,"scrollLeft",{get:function(){var D0;return((D0=a0.current)===null||D0===void 0?void 0:D0.getScrollInfo().x)||0},set:function(D0){var pv;(pv=a0.current)===null||pv===void 0||pv.scrollTo({left:D0})}}),f0});var V0=function(T0,D0){var pv,f1=(pv=M0[D0])===null||pv===void 0?void 0:pv.record,Jv=T0.onCell;if(Jv){var m1,Iy=Jv(f1,D0);return(m1=Iy==null?void 0:Iy.rowSpan)!==null&&m1!==void 0?m1:1}return 1},t1=function(T0){var D0=T0.start,pv=T0.end,f1=T0.getSize,Jv=T0.offsetY;if(pv<0)return null;for(var m1=Yr.filter(function(Kv){return V0(Kv,D0)===0}),Iy=D0,n1=function(l1){if(m1=m1.filter(function(V1){return V0(V1,l1)===0}),!m1.length)return Iy=l1,1},t_=D0;t_>=0&&!n1(t_);t_-=1);for(var O1=Yr.filter(function(Kv){return V0(Kv,pv)!==1}),Mv=pv,Qy=function(l1){if(O1=O1.filter(function(V1){return V0(V1,l1)!==1}),!O1.length)return Mv=Math.max(l1-1,pv),1},r_=pv;r_1})&&My.push(l1)},mg=Iy;mg<=Mv;mg+=1)Da(mg);var w0=My.map(function(Kv){var l1=M0[Kv],V1=qs(l1.record,Kv),q0=function(Q1){var vy=Kv+Q1-1,nn=qs(M0[vy].record,vy),u_=f1(V1,nn);return u_.bottom-u_.top},Ev=f1(V1);return u.createElement(dv,{key:Kv,data:l1,rowKey:V1,index:Kv,style:{top:-Jv+Ev.top},extra:!0,getHeight:q0})});return w0},Zg=u.useMemo(function(){return{columnsOffset:Y0}},[Y0]),y0="".concat(ru,"-tbody"),Fg=x0(["body","wrapper"]),_0=x0(["body","row"],"div"),Ou=x0(["body","cell"],"div"),Kg;if(M0.length){var o0={};Fd&&(o0.position="sticky",o0.bottom=0,(0,Bt.Z)(Fd)==="object"&&Fd.offsetScroll&&(o0.bottom=Fd.offsetScroll)),Kg=u.createElement(si.Z,{fullHeight:!1,ref:a0,styles:{horizontalScrollBar:o0},className:vn()(y0,"".concat(y0,"-virtual")),height:zg,itemHeight:v0||24,data:M0,itemKey:function(T0){return qs(T0.record)},component:Fg,scrollWidth:_g,onVirtualScroll:function(T0){var D0=T0.x;wr({scrollLeft:D0})},extraRender:t1},function(f0,T0,D0){var pv=qs(f0.record,T0);return u.createElement(dv,(0,ie.Z)({data:f0,rowKey:pv,index:T0},D0))})}else Kg=u.createElement(_0,{className:vn()("".concat(ru,"-placeholder"))},u.createElement(Lv,{component:Ou,prefixCls:ru},zd));return u.createElement(wa.Provider,{value:Zg},Kg)}),Wv=Hs(Cv),c1=Wv,P1=function(Me,Gt){var wr=Gt.ref,Ir=Gt.onScroll;return u.createElement(c1,{ref:wr,data:Me,onScroll:Ir})};function Z1(Ne,Me){var Gt=Ne.columns,wr=Ne.scroll,Ir=Ne.sticky,Yr=Ne.prefixCls,Ws=Yr===void 0?xy:Yr,qs=Ne.className,_a=Ne.listItemHeight,ru=Ne.components,Rd=wr||{},zd=Rd.x,_g=Rd.y;typeof zd!="number"&&(zd=1),typeof _g!="number"&&(_g=500);var au=(0,X0.zX)(function(zg,v0){return(0,ai.Z)(ru,zg)||v0}),Fd=u.useMemo(function(){return{sticky:Ir,scrollY:_g,listItemHeight:_a,getComponent:au}},[Ir,_g,_a,au]);return u.createElement(Rs.Provider,{value:Fd},u.createElement(Sr,(0,ie.Z)({},Ne,{className:vn()(qs,"".concat(Ws,"-virtual")),scroll:(0,Rt.Z)((0,Rt.Z)({},wr),{},{x:zd}),components:(0,Rt.Z)((0,Rt.Z)({},ru),{},{body:P1}),columns:Gt,internalHooks:b,tailor:!0,ref:Me})))}var sy=u.forwardRef(Z1);function wy(Ne){return wn(sy,Ne)}var zy=wy(),hv=null;function Qv(Ne){return null}var Y1=Qv;function M_(Ne){return null}var h1=M_,_v=l(21112),Iv=l(62521),Ov=l(76457),v1=l(52118),K1=l(89308);function sx(Ne){const[Me,Gt]=(0,u.useState)(null);return[(0,u.useCallback)((Yr,Ws,qs)=>{const _a=Me!=null?Me:Yr,ru=Math.min(_a||0,Yr),Rd=Math.max(_a||0,Yr),zd=Ws.slice(ru,Rd+1).map(Fd=>Ne(Fd)),_g=zd.some(Fd=>!qs.has(Fd)),au=[];return zd.forEach(Fd=>{_g?(qs.has(Fd)||au.push(Fd),qs.add(Fd)):(qs.delete(Fd),au.push(Fd))}),Gt(_g?Rd:null),au},[Me]),Yr=>{Gt(Yr)}]}var Kx=l(80074),t2=l(5630),I2=l(20261),D2=l(10386),J_=l(58798),ax=l(57801),rx=l(26504),ov=l(51623),yd=u.createContext(null),kg=l(75906),Vg=function(Ne,Me){var Gt={};for(var wr in Ne)Object.prototype.hasOwnProperty.call(Ne,wr)&&Me.indexOf(wr)<0&&(Gt[wr]=Ne[wr]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,wr=Object.getOwnPropertySymbols(Ne);Ir{var Gt;const{prefixCls:wr,className:Ir,rootClassName:Yr,children:Ws,indeterminate:qs=!1,style:_a,onMouseEnter:ru,onMouseLeave:Rd,skipGroup:zd=!1,disabled:_g}=Ne,au=Vg(Ne,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Fd,direction:zg,checkbox:v0}=u.useContext(J_.E_),x0=u.useContext(yd),{isFormItemInput:a0}=u.useContext(ov.aM),M0=u.useContext(ax.Z),O0=(Gt=(x0==null?void 0:x0.disabled)||_g)!==null&&Gt!==void 0?Gt:M0,Y0=u.useRef(au.value);u.useEffect(()=>{x0==null||x0.registerValue(au.value)},[]),u.useEffect(()=>{if(!zd)return au.value!==Y0.current&&(x0==null||x0.cancelValue(Y0.current),x0==null||x0.registerValue(au.value),Y0.current=au.value),()=>x0==null?void 0:x0.cancelValue(au.value)},[au.value]);const V0=Fd("checkbox",wr),t1=(0,rx.Z)(V0),[Zg,y0,Fg]=(0,kg.ZP)(V0,t1),_0=Object.assign({},au);x0&&!zd&&(_0.onChange=function(){au.onChange&&au.onChange.apply(au,arguments),x0.toggleOption&&x0.toggleOption({label:Ws,value:au.value})},_0.name=x0.name,_0.checked=x0.value.includes(au.value));const Ou=vn()(`${V0}-wrapper`,{[`${V0}-rtl`]:zg==="rtl",[`${V0}-wrapper-checked`]:_0.checked,[`${V0}-wrapper-disabled`]:O0,[`${V0}-wrapper-in-form-item`]:a0},v0==null?void 0:v0.className,Ir,Yr,Fg,t1,y0),Kg=vn()({[`${V0}-indeterminate`]:qs},D2.A,y0),o0=qs?"mixed":void 0;return Zg(u.createElement(I2.Z,{component:"Checkbox",disabled:O0},u.createElement("label",{className:Ou,style:Object.assign(Object.assign({},v0==null?void 0:v0.style),_a),onMouseEnter:ru,onMouseLeave:Rd},u.createElement(t2.Z,Object.assign({"aria-checked":o0},_0,{prefixCls:V0,className:Kg,disabled:O0,ref:Me})),Ws!==void 0&&u.createElement("span",null,Ws))))};var I1=u.forwardRef(wv),k1=l(41123),S1=function(Ne,Me){var Gt={};for(var wr in Ne)Object.prototype.hasOwnProperty.call(Ne,wr)&&Me.indexOf(wr)<0&&(Gt[wr]=Ne[wr]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,wr=Object.getOwnPropertySymbols(Ne);Ir{const{defaultValue:Gt,children:wr,options:Ir=[],prefixCls:Yr,className:Ws,rootClassName:qs,style:_a,onChange:ru}=Ne,Rd=S1(Ne,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:zd,direction:_g}=u.useContext(J_.E_),[au,Fd]=u.useState(Rd.value||Gt||[]),[zg,v0]=u.useState([]);u.useEffect(()=>{"value"in Rd&&Fd(Rd.value||[])},[Rd.value]);const x0=u.useMemo(()=>Ir.map(f0=>typeof f0=="string"||typeof f0=="number"?{label:f0,value:f0}:f0),[Ir]),a0=f0=>{v0(T0=>T0.filter(D0=>D0!==f0))},M0=f0=>{v0(T0=>[].concat((0,Su.Z)(T0),[f0]))},O0=f0=>{const T0=au.indexOf(f0.value),D0=(0,Su.Z)(au);T0===-1?D0.push(f0.value):D0.splice(T0,1),"value"in Rd||Fd(D0),ru==null||ru(D0.filter(pv=>zg.includes(pv)).sort((pv,f1)=>{const Jv=x0.findIndex(Iy=>Iy.value===pv),m1=x0.findIndex(Iy=>Iy.value===f1);return Jv-m1}))},Y0=zd("checkbox",Yr),V0=`${Y0}-group`,t1=(0,rx.Z)(Y0),[Zg,y0,Fg]=(0,kg.ZP)(Y0,t1),_0=(0,k1.Z)(Rd,["value","disabled"]),Ou=Ir.length?x0.map(f0=>u.createElement(I1,{prefixCls:Y0,key:f0.value.toString(),disabled:"disabled"in f0?f0.disabled:Rd.disabled,value:f0.value,checked:au.includes(f0.value),onChange:f0.onChange,className:`${V0}-item`,style:f0.style,title:f0.title,id:f0.id,required:f0.required},f0.label)):wr,Kg={toggleOption:O0,value:au,disabled:Rd.disabled,name:Rd.name,registerValue:M0,cancelValue:a0},o0=vn()(V0,{[`${V0}-rtl`]:_g==="rtl"},Ws,qs,Fg,t1,y0);return Zg(u.createElement("div",Object.assign({className:o0,style:_a},_0,{ref:Me}),u.createElement(yd.Provider,{value:Kg},Ou)))});const E_=I1;E_.Group=U1,E_.__ANT_CHECKBOX=!0;var ty=E_,h_=l(145),g_=l(11864);const ox={},$_="SELECT_ALL",K_="SELECT_INVERT",k_="SELECT_NONE",A_=[],gx=(Ne,Me)=>{let Gt=[];return(Me||[]).forEach(wr=>{Gt.push(wr),wr&&typeof wr=="object"&&Ne in wr&&(Gt=[].concat((0,Su.Z)(Gt),(0,Su.Z)(gx(Ne,wr[Ne]))))}),Gt};var _x=(Ne,Me)=>{const{preserveSelectedRowKeys:Gt,selectedRowKeys:wr,defaultSelectedRowKeys:Ir,getCheckboxProps:Yr,onChange:Ws,onSelect:qs,onSelectAll:_a,onSelectInvert:ru,onSelectNone:Rd,onSelectMultiple:zd,columnWidth:_g,type:au,selections:Fd,fixed:zg,renderCell:v0,hideSelectAll:x0,checkStrictly:a0=!0}=Me||{},{prefixCls:M0,data:O0,pageData:Y0,getRecordByKey:V0,getRowKey:t1,expandType:Zg,childrenColumnName:y0,locale:Fg,getPopupContainer:_0}=Ne,Ou=(0,Kx.ln)("Table"),[Kg,o0]=sx(mg=>mg),[f0,T0]=(0,K1.Z)(wr||Ir||A_,{value:wr}),D0=u.useRef(new Map),pv=(0,u.useCallback)(mg=>{if(Gt){const w0=new Map;mg.forEach(Kv=>{let l1=V0(Kv);!l1&&D0.current.has(Kv)&&(l1=D0.current.get(Kv)),w0.set(Kv,l1)}),D0.current=w0}},[V0,Gt]);u.useEffect(()=>{pv(f0)},[f0]);const{keyEntities:f1}=(0,u.useMemo)(()=>{if(a0)return{keyEntities:null};let mg=O0;if(Gt){const w0=new Set(O0.map((l1,V1)=>t1(l1,V1))),Kv=Array.from(D0.current).reduce((l1,V1)=>{let[q0,Ev]=V1;return w0.has(q0)?l1:l1.concat(Ev)},[]);mg=[].concat((0,Su.Z)(mg),(0,Su.Z)(Kv))}return(0,v1.I8)(mg,{externalGetKey:t1,childrenPropName:y0})},[O0,t1,a0,y0,Gt]),Jv=(0,u.useMemo)(()=>gx(y0,Y0),[y0,Y0]),m1=(0,u.useMemo)(()=>{const mg=new Map;return Jv.forEach((w0,Kv)=>{const l1=t1(w0,Kv),V1=(Yr?Yr(w0):null)||{};mg.set(l1,V1)}),mg},[Jv,t1,Yr]),Iy=(0,u.useCallback)(mg=>{var w0;return!!(!((w0=m1.get(t1(mg)))===null||w0===void 0)&&w0.disabled)},[m1,t1]),[n1,t_]=(0,u.useMemo)(()=>{if(a0)return[f0||[],[]];const{checkedKeys:mg,halfCheckedKeys:w0}=(0,Ov.S)(f0,!0,f1,Iy);return[mg||[],w0]},[f0,a0,f1,Iy]),O1=(0,u.useMemo)(()=>{const mg=au==="radio"?n1.slice(0,1):n1;return new Set(mg)},[n1,au]),Mv=(0,u.useMemo)(()=>au==="radio"?new Set:new Set(t_),[t_,au]);u.useEffect(()=>{Me||T0(A_)},[!!Me]);const Qy=(0,u.useCallback)((mg,w0)=>{let Kv,l1;pv(mg),Gt?(Kv=mg,l1=mg.map(V1=>D0.current.get(V1))):(Kv=[],l1=[],mg.forEach(V1=>{const q0=V0(V1);q0!==void 0&&(Kv.push(V1),l1.push(q0))})),T0(Kv),Ws==null||Ws(Kv,l1,{type:w0})},[T0,V0,Ws,Gt]),r_=(0,u.useCallback)((mg,w0,Kv,l1)=>{if(qs){const V1=Kv.map(q0=>V0(q0));qs(V0(mg),w0,V1,l1)}Qy(Kv,"single")},[qs,V0,Qy]),My=(0,u.useMemo)(()=>!Fd||x0?null:(Fd===!0?[$_,K_,k_]:Fd).map(w0=>w0===$_?{key:"all",text:Fg.selectionAll,onSelect(){Qy(O0.map((Kv,l1)=>t1(Kv,l1)).filter(Kv=>{const l1=m1.get(Kv);return!(l1!=null&&l1.disabled)||O1.has(Kv)}),"all")}}:w0===K_?{key:"invert",text:Fg.selectInvert,onSelect(){const Kv=new Set(O1);Y0.forEach((V1,q0)=>{const Ev=t1(V1,q0),Fv=m1.get(Ev);Fv!=null&&Fv.disabled||(Kv.has(Ev)?Kv.delete(Ev):Kv.add(Ev))});const l1=Array.from(Kv);ru&&(Ou.deprecated(!1,"onSelectInvert","onChange"),ru(l1)),Qy(l1,"invert")}}:w0===k_?{key:"none",text:Fg.selectNone,onSelect(){Rd==null||Rd(),Qy(Array.from(O1).filter(Kv=>{const l1=m1.get(Kv);return l1==null?void 0:l1.disabled}),"none")}}:w0).map(w0=>Object.assign(Object.assign({},w0),{onSelect:function(){for(var Kv,l1,V1=arguments.length,q0=new Array(V1),Ev=0;Ev{var w0;if(!Me)return mg.filter(hy=>hy!==ox);let Kv=(0,Su.Z)(mg);const l1=new Set(O1),V1=Jv.map(t1).filter(hy=>!m1.get(hy).disabled),q0=V1.every(hy=>l1.has(hy)),Ev=V1.some(hy=>l1.has(hy)),Fv=()=>{const hy=[];q0?V1.forEach(by=>{l1.delete(by),hy.push(by)}):V1.forEach(by=>{l1.has(by)||(l1.add(by),hy.push(by))});const x1=Array.from(l1);_a==null||_a(!q0,x1.map(by=>V0(by)),hy.map(by=>V0(by))),Qy(x1,"all"),o0(null)};let Q1,vy;if(au!=="radio"){let hy;if(My){const jy={getPopupContainer:_0,items:My.map((P0,A1)=>{const{key:ry,text:Wy,onSelect:ix}=P0;return{key:ry!=null?ry:A1,onClick:()=>{ix==null||ix(V1)},label:Wy}})};hy=u.createElement("div",{className:`${M0}-selection-extra`},u.createElement(h_.Z,{menu:jy,getPopupContainer:_0},u.createElement("span",null,u.createElement(_v.Z,null))))}const x1=Jv.map((jy,P0)=>{const A1=t1(jy,P0),ry=m1.get(A1)||{};return Object.assign({checked:l1.has(A1)},ry)}).filter(jy=>{let{disabled:P0}=jy;return P0}),by=!!x1.length&&x1.length===Jv.length,Ly=by&&x1.every(jy=>{let{checked:P0}=jy;return P0}),y_=by&&x1.some(jy=>{let{checked:P0}=jy;return P0});vy=u.createElement(ty,{checked:by?Ly:!!Jv.length&&q0,indeterminate:by?!Ly&&y_:!q0&&Ev,onChange:Fv,disabled:Jv.length===0||by,"aria-label":hy?"Custom selection":"Select all",skipGroup:!0}),Q1=!x0&&u.createElement("div",{className:`${M0}-selection`},vy,hy)}let nn;au==="radio"?nn=(hy,x1,by)=>{const Ly=t1(x1,by),y_=l1.has(Ly);return{node:u.createElement(g_.ZP,Object.assign({},m1.get(Ly),{checked:y_,onClick:jy=>jy.stopPropagation(),onChange:jy=>{l1.has(Ly)||r_(Ly,!0,[Ly],jy.nativeEvent)}})),checked:y_}}:nn=(hy,x1,by)=>{var Ly;const y_=t1(x1,by),jy=l1.has(y_),P0=Mv.has(y_),A1=m1.get(y_);let ry;return Zg==="nest"?ry=P0:ry=(Ly=A1==null?void 0:A1.indeterminate)!==null&&Ly!==void 0?Ly:P0,{node:u.createElement(ty,Object.assign({},A1,{indeterminate:ry,checked:jy,skipGroup:!0,onClick:Wy=>Wy.stopPropagation(),onChange:Wy=>{let{nativeEvent:ix}=Wy;const{shiftKey:jx}=ix,n_=V1.findIndex(Y_=>Y_===y_),Q2=n1.some(Y_=>V1.includes(Y_));if(jx&&a0&&Q2){const Y_=Kg(n_,V1,l1),xw=Array.from(l1);zd==null||zd(!jy,xw.map(Mx=>V0(Mx)),Y_.map(Mx=>V0(Mx))),Qy(xw,"multiple")}else{const Y_=n1;if(a0){const xw=jy?(0,Iv._5)(Y_,y_):(0,Iv.L0)(Y_,y_);r_(y_,!jy,xw,ix)}else{const xw=(0,Ov.S)([].concat((0,Su.Z)(Y_),[y_]),!0,f1,Iy),{checkedKeys:Mx,halfCheckedKeys:Ew}=xw;let fx=Mx;if(jy){const DC=new Set(Mx);DC.delete(y_),fx=(0,Ov.S)(Array.from(DC),{checked:!1,halfCheckedKeys:Ew},f1,Iy).checkedKeys}r_(y_,!jy,fx,ix)}}o0(jy?null:n_)}})),checked:jy}};const u_=(hy,x1,by)=>{const{node:Ly,checked:y_}=nn(hy,x1,by);return v0?v0(y_,x1,by,Ly):Ly};if(!Kv.includes(ox))if(Kv.findIndex(hy=>{var x1;return((x1=hy[On])===null||x1===void 0?void 0:x1.columnType)==="EXPAND_COLUMN"})===0){const[hy,...x1]=Kv;Kv=[hy,ox].concat((0,Su.Z)(x1))}else Kv=[ox].concat((0,Su.Z)(Kv));const U_=Kv.indexOf(ox);Kv=Kv.filter((hy,x1)=>hy!==ox||x1===U_);const hx=Kv[U_-1],Oy=Kv[U_+1];let p_=zg;p_===void 0&&((Oy==null?void 0:Oy.fixed)!==void 0?p_=Oy.fixed:(hx==null?void 0:hx.fixed)!==void 0&&(p_=hx.fixed)),p_&&hx&&((w0=hx[On])===null||w0===void 0?void 0:w0.columnType)==="EXPAND_COLUMN"&&hx.fixed===void 0&&(hx.fixed=p_);const G_=vn()(`${M0}-selection-col`,{[`${M0}-selection-col-with-dropdown`]:Fd&&au==="checkbox"}),Ry=()=>Me!=null&&Me.columnTitle?typeof Me.columnTitle=="function"?Me.columnTitle(vy):Me.columnTitle:Q1,Uv={fixed:p_,width:_g,className:`${M0}-selection-column`,title:Ry(),render:u_,onCell:Me.onCell,[On]:{className:G_}};return Kv.map(hy=>hy===ox?Uv:hy)},[t1,Jv,Me,n1,O1,Mv,_g,My,Zg,m1,zd,r_,Iy]),O1]};function c2(Ne,Me){return Ne._antProxy=Ne._antProxy||{},Object.keys(Me).forEach(Gt=>{if(!(Gt in Ne._antProxy)){const wr=Ne[Gt];Ne._antProxy[Gt]=wr,Ne[Gt]=Me[Gt]}}),Ne}function b2(Ne,Me){return(0,u.useImperativeHandle)(Ne,()=>{const Gt=Me(),{nativeElement:wr}=Gt;return typeof Proxy!="undefined"?new Proxy(wr,{get(Ir,Yr){return Gt[Yr]?Gt[Yr]:Reflect.get(Ir,Yr)}}):c2(wr,Gt)})}var N2=l(74570);function j2(Ne,Me,Gt,wr){const Ir=Gt-Me;return Ne/=wr/2,Ne<1?Ir/2*Ne*Ne*Ne+Me:Ir/2*((Ne-=2)*Ne*Ne+2)+Me}function mC(Ne){return Ne!=null&&Ne===Ne.window}function XC(Ne,Me){var Gt,wr;if(typeof window=="undefined")return 0;const Ir=Me?"scrollTop":"scrollLeft";let Yr=0;return mC(Ne)?Yr=Ne[Me?"pageYOffset":"pageXOffset"]:Ne instanceof Document?Yr=Ne.documentElement[Ir]:(Ne instanceof HTMLElement||Ne)&&(Yr=Ne[Ir]),Ne&&!mC(Ne)&&typeof Yr!="number"&&(Yr=(wr=((Gt=Ne.ownerDocument)!==null&&Gt!==void 0?Gt:Ne).documentElement)===null||wr===void 0?void 0:wr[Ir]),Yr}function EC(Ne){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Gt=()=>window,callback:wr,duration:Ir=450}=Me,Yr=Gt(),Ws=XC(Yr,!0),qs=Date.now(),_a=()=>{const Rd=Date.now()-qs,zd=j2(Rd>Ir?Ir:Rd,Ws,Ne,Ir);mC(Yr)?Yr.scrollTo(window.pageXOffset,zd):Yr instanceof Document||Yr.constructor.name==="HTMLDocument"?Yr.documentElement.scrollTop=zd:Yr.scrollTop=zd,Rd=0||f0.relatedTarget.className.indexOf("".concat(ru,"-item"))>=0))&&(_a==null||_a(a0())))},t1=function(f0){v0!==""&&(f0.keyCode===Cx.Z.ENTER||f0.type==="click")&&(x0(""),_a==null||_a(a0()))},Zg=function(){return wr.some(function(f0){return f0.toString()===Ws.toString()})?wr:wr.concat([Ws.toString()]).sort(function(f0,T0){var D0=Number.isNaN(Number(f0))?0:Number(f0),pv=Number.isNaN(Number(T0))?0:Number(T0);return D0-pv})},y0="".concat(ru,"-options");if(!Yr&&!_a)return null;var Fg=null,_0=null,Ou=null;if(Yr&&Rd){var Kg=Zg().map(function(o0,f0){return u.createElement(Rd.Option,{key:f0,value:o0.toString()},M0(o0))});Fg=u.createElement(Rd,{disabled:_g,prefixCls:zd,showSearch:!1,className:"".concat(y0,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ws||wr[0]).toString(),onChange:O0,getPopupContainer:function(f0){return f0.parentNode},"aria-label":Ir.page_size,defaultOpen:!1},Kg)}return _a&&(qs&&(Ou=typeof qs=="boolean"?u.createElement("button",{type:"button",onClick:t1,onKeyUp:t1,disabled:_g,className:"".concat(y0,"-quick-jumper-button")},Ir.jump_to_confirm):u.createElement("span",{onClick:t1,onKeyUp:t1},qs)),_0=u.createElement("div",{className:"".concat(y0,"-quick-jumper")},Ir.jump_to,u.createElement("input",{disabled:_g,type:"text",value:v0,onChange:Y0,onKeyUp:t1,onBlur:V0,"aria-label":Ir.page}),Ir.page,Ou)),u.createElement("li",{className:y0},Fg,_0)},L2=z2,jw=function(Me){var Gt,wr=Me.rootPrefixCls,Ir=Me.page,Yr=Me.active,Ws=Me.className,qs=Me.showTitle,_a=Me.onClick,ru=Me.onKeyPress,Rd=Me.itemRender,zd="".concat(wr,"-item"),_g=vn()(zd,"".concat(zd,"-").concat(Ir),(Gt={},(0,on.Z)(Gt,"".concat(zd,"-active"),Yr),(0,on.Z)(Gt,"".concat(zd,"-disabled"),!Ir),Gt),Ws),au=function(){_a(Ir)},Fd=function(x0){ru(x0,_a,Ir)},zg=Rd(Ir,"page",u.createElement("a",{rel:"nofollow"},Ir));return zg?u.createElement("li",{title:qs?String(Ir):null,className:_g,onClick:au,onKeyDown:Fd,tabIndex:0},zg):null},w2=jw,gw=function(Me,Gt,wr){return wr};function vC(){}function Fw(Ne){var Me=Number(Ne);return typeof Me=="number"&&!Number.isNaN(Me)&&isFinite(Me)&&Math.floor(Me)===Me}function U2(Ne,Me,Gt){var wr=typeof Ne=="undefined"?Me:Ne;return Math.floor((Gt-1)/wr)+1}var Tw=function(Me){var Gt,wr=Me.prefixCls,Ir=wr===void 0?"rc-pagination":wr,Yr=Me.selectPrefixCls,Ws=Yr===void 0?"rc-select":Yr,qs=Me.className,_a=Me.selectComponentClass,ru=Me.current,Rd=Me.defaultCurrent,zd=Rd===void 0?1:Rd,_g=Me.total,au=_g===void 0?0:_g,Fd=Me.pageSize,zg=Me.defaultPageSize,v0=zg===void 0?10:zg,x0=Me.onChange,a0=x0===void 0?vC:x0,M0=Me.hideOnSinglePage,O0=Me.showPrevNextJumpers,Y0=O0===void 0?!0:O0,V0=Me.showQuickJumper,t1=Me.showLessItems,Zg=Me.showTitle,y0=Zg===void 0?!0:Zg,Fg=Me.onShowSizeChange,_0=Fg===void 0?vC:Fg,Ou=Me.locale,Kg=Ou===void 0?i2:Ou,o0=Me.style,f0=Me.totalBoundaryShowSizeChanger,T0=f0===void 0?50:f0,D0=Me.disabled,pv=Me.simple,f1=Me.showTotal,Jv=Me.showSizeChanger,m1=Me.pageSizeOptions,Iy=Me.itemRender,n1=Iy===void 0?gw:Iy,t_=Me.jumpPrevIcon,O1=Me.jumpNextIcon,Mv=Me.prevIcon,Qy=Me.nextIcon,r_=u.useRef(null),My=(0,K1.Z)(10,{value:Fd,defaultValue:v0}),Da=(0,x.Z)(My,2),mg=Da[0],w0=Da[1],Kv=(0,K1.Z)(1,{value:ru,defaultValue:zd,postState:function(L1){return Math.max(1,Math.min(L1,U2(void 0,mg,au)))}}),l1=(0,x.Z)(Kv,2),V1=l1[0],q0=l1[1],Ev=u.useState(V1),Fv=(0,x.Z)(Ev,2),Q1=Fv[0],vy=Fv[1];(0,u.useEffect)(function(){vy(V1)},[V1]);var nn=a0!==vC,u_="current"in Me,U_=Math.max(1,V1-(t1?3:5)),hx=Math.min(U2(void 0,mg,au),V1+(t1?3:5));function Oy(kv,L1){var uy=kv||u.createElement("button",{type:"button","aria-label":L1,className:"".concat(Ir,"-item-link")});return typeof kv=="function"&&(uy=u.createElement(kv,(0,Rt.Z)({},Me))),uy}function p_(kv){var L1=kv.target.value,uy=U2(void 0,mg,au),D1;return L1===""?D1=L1:Number.isNaN(Number(L1))?D1=Q1:L1>=uy?D1=uy:D1=Number(L1),D1}function G_(kv){return Fw(kv)&&kv!==V1&&Fw(au)&&au>0}var Ry=au>mg?V0:!1;function Uv(kv){(kv.keyCode===Cx.Z.UP||kv.keyCode===Cx.Z.DOWN)&&kv.preventDefault()}function hy(kv){var L1=p_(kv);switch(L1!==Q1&&vy(L1),kv.keyCode){case Cx.Z.ENTER:Ly(L1);break;case Cx.Z.UP:Ly(L1-1);break;case Cx.Z.DOWN:Ly(L1+1);break;default:break}}function x1(kv){Ly(p_(kv))}function by(kv){var L1=U2(kv,mg,au),uy=V1>L1&&L1!==0?L1:V1;w0(kv),vy(uy),_0==null||_0(V1,kv),q0(uy),a0==null||a0(uy,kv)}function Ly(kv){if(G_(kv)&&!D0){var L1=U2(void 0,mg,au),uy=kv;return kv>L1?uy=L1:kv<1&&(uy=1),uy!==Q1&&vy(uy),q0(uy),a0==null||a0(uy,mg),uy}return V1}var y_=V1>1,jy=V1T0;function A1(){y_&&Ly(V1-1)}function ry(){jy&&Ly(V1+1)}function Wy(){Ly(U_)}function ix(){Ly(hx)}function jx(kv,L1){if(kv.key==="Enter"||kv.charCode===Cx.Z.ENTER||kv.keyCode===Cx.Z.ENTER){for(var uy=arguments.length,D1=new Array(uy>2?uy-2:0),Ey=2;Eyau?au:V1*mg])),$2=null,__=U2(void 0,mg,au);if(M0&&au<=mg)return null;var Ww=[],XS={rootPrefixCls:Ir,onClick:Ly,onKeyPress:jx,showTitle:y0,itemRender:n1,page:-1},Rw=V1-1>0?V1-1:0,_C=V1+1<__?V1+1:__,Yw=V0&&V0.goButton,kw=Yw,Bv=null;pv&&(Yw&&(typeof Yw=="boolean"?kw=u.createElement("button",{type:"button",onClick:fx,onKeyUp:fx},Kg.jump_to_confirm):kw=u.createElement("span",{onClick:fx,onKeyUp:fx},Yw),kw=u.createElement("li",{title:y0?"".concat(Kg.jump_to).concat(V1,"/").concat(__):null,className:"".concat(Ir,"-simple-pager")},kw)),Bv=u.createElement("li",{title:y0?"".concat(V1,"/").concat(__):null,className:"".concat(Ir,"-simple-pager")},u.createElement("input",{type:"text",value:Q1,disabled:D0,onKeyDown:Uv,onKeyUp:hy,onChange:hy,onBlur:x1,size:3}),u.createElement("span",{className:"".concat(Ir,"-slash")},"/"),__));var e_=t1?1:2;if(__<=3+e_*2){__||Ww.push(u.createElement(w2,(0,ie.Z)({},XS,{key:"noPager",page:1,className:"".concat(Ir,"-item-disabled")})));for(var u2=1;u2<=__;u2+=1)Ww.push(u.createElement(w2,(0,ie.Z)({},XS,{key:u2,page:u2,active:V1===u2})))}else{var Zw=t1?Kg.prev_3:Kg.prev_5,IC=t1?Kg.next_3:Kg.next_5,_T=n1(U_,"jump-prev",Oy(t_,"prev page")),py=n1(hx,"jump-next",Oy(O1,"next page"));Y0&&(DC=_T?u.createElement("li",{title:y0?Zw:null,key:"prev",onClick:Wy,tabIndex:0,onKeyDown:Y_,className:vn()("".concat(Ir,"-jump-prev"),(0,on.Z)({},"".concat(Ir,"-jump-prev-custom-icon"),!!t_))},_T):null,$2=py?u.createElement("li",{title:y0?IC:null,key:"next",onClick:ix,tabIndex:0,onKeyDown:xw,className:vn()("".concat(Ir,"-jump-next"),(0,on.Z)({},"".concat(Ir,"-jump-next-custom-icon"),!!O1))},py):null);var xt=Math.max(1,V1-e_),Et=Math.min(V1+e_,__);V1-1<=e_&&(Et=1+e_*2),__-V1<=e_&&(xt=__-e_*2);for(var jn=xt;jn<=Et;jn+=1)Ww.push(u.createElement(w2,(0,ie.Z)({},XS,{key:jn,page:jn,active:V1===jn})));if(V1-1>=e_*2&&V1!==1+2&&(Ww[0]=u.cloneElement(Ww[0],{className:vn()("".concat(Ir,"-item-after-jump-prev"),Ww[0].props.className)}),Ww.unshift(DC)),__-V1>=e_*2&&V1!==__-2){var Oa=Ww[Ww.length-1];Ww[Ww.length-1]=u.cloneElement(Oa,{className:vn()("".concat(Ir,"-item-before-jump-next"),Oa.props.className)}),Ww.push($2)}xt!==1&&Ww.unshift(u.createElement(w2,(0,ie.Z)({},XS,{key:1,page:1}))),Et!==__&&Ww.push(u.createElement(w2,(0,ie.Z)({},XS,{key:__,page:__})))}var Rg=Mx(Rw);if(Rg){var oh=!y_||!__;Rg=u.createElement("li",{title:y0?Kg.prev_page:null,onClick:A1,tabIndex:oh?null:0,onKeyDown:n_,className:vn()("".concat(Ir,"-prev"),(0,on.Z)({},"".concat(Ir,"-disabled"),oh)),"aria-disabled":oh},Rg)}var cu=Ew(_C);if(cu){var m0,Hv;pv?(m0=!jy,Hv=y_?0:null):(m0=!jy||!__,Hv=m0?null:0),cu=u.createElement("li",{title:y0?Kg.next_page:null,onClick:ry,tabIndex:Hv,onKeyDown:Q2,className:vn()("".concat(Ir,"-next"),(0,on.Z)({},"".concat(Ir,"-disabled"),m0)),"aria-disabled":m0},cu)}var _1=vn()(Ir,qs,(Gt={},(0,on.Z)(Gt,"".concat(Ir,"-simple"),pv),(0,on.Z)(Gt,"".concat(Ir,"-disabled"),D0),Gt));return u.createElement("ul",(0,ie.Z)({className:_1,style:o0,ref:r_},F2),uw,Rg,pv?Bv:Ww,cu,u.createElement(L2,{locale:Kg,rootPrefixCls:Ir,disabled:D0,selectComponentClass:_a,selectPrefixCls:Ws,changeSize:P0?by:null,pageSize:mg,pageSizeOptions:m1,quickGo:Ry?Ly:null,goButton:kw}))},q_=Tw,Kw=l(84354),Ny=l(50700),dx=l(16042);const bw=Ne=>u.createElement(dx.Z,Object.assign({},Ne,{showSearch:!0,size:"small"})),Ow=Ne=>u.createElement(dx.Z,Object.assign({},Ne,{showSearch:!0,size:"middle"}));bw.Option=dx.Z.Option,Ow.Option=dx.Z.Option;var j1=l(78600),Px=l(4586),Z_=l(53644),Vx=l(91110),kx=l(90882),C2=l(79263),q2=l(47703);const lw=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Me}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Me}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed"}}},[`&${Me}-disabled`]:{cursor:"not-allowed",[`${Me}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ne.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ne.colorBorder,backgroundColor:Ne.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ne.itemActiveBgDisabled},a:{color:Ne.itemActiveColorDisabled}}},[`${Me}-item-link`]:{color:Ne.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Me}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Me}-simple-pager`]:{color:Ne.colorTextDisabled},[`${Me}-jump-prev, ${Me}-jump-next`]:{[`${Me}-item-link-icon`]:{opacity:0},[`${Me}-item-ellipsis`]:{opacity:1}}},[`&${Me}-simple`]:{[`${Me}-prev, ${Me}-next`]:{[`&${Me}-disabled ${Me}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},eC=Ne=>{const{componentCls:Me}=Ne;return{[`&${Me}-mini ${Me}-total-text, &${Me}-mini ${Me}-simple-pager`]:{height:Ne.itemSizeSM,lineHeight:(0,j1.bf)(Ne.itemSizeSM)},[`&${Me}-mini ${Me}-item`]:{minWidth:Ne.itemSizeSM,height:Ne.itemSizeSM,margin:0,lineHeight:(0,j1.bf)(Ne.calc(Ne.itemSizeSM).sub(2).equal())},[`&${Me}-mini:not(${Me}-disabled) ${Me}-item:not(${Me}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ne.colorBgTextHover},"&:active":{backgroundColor:Ne.colorBgTextActive}},[`&${Me}-mini ${Me}-prev, &${Me}-mini ${Me}-next`]:{minWidth:Ne.itemSizeSM,height:Ne.itemSizeSM,margin:0,lineHeight:(0,j1.bf)(Ne.itemSizeSM)},[`&${Me}-mini:not(${Me}-disabled)`]:{[`${Me}-prev, ${Me}-next`]:{[`&:hover ${Me}-item-link`]:{backgroundColor:Ne.colorBgTextHover},[`&:active ${Me}-item-link`]:{backgroundColor:Ne.colorBgTextActive},[`&${Me}-disabled:hover ${Me}-item-link`]:{backgroundColor:"transparent"}}},[` - &${Me}-mini ${Me}-prev ${Me}-item-link, - &${Me}-mini ${Me}-next ${Me}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ne.itemSizeSM,lineHeight:(0,j1.bf)(Ne.itemSizeSM)}},[`&${Me}-mini ${Me}-jump-prev, &${Me}-mini ${Me}-jump-next`]:{height:Ne.itemSizeSM,marginInlineEnd:0,lineHeight:(0,j1.bf)(Ne.itemSizeSM)},[`&${Me}-mini ${Me}-options`]:{marginInlineStart:Ne.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ne.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ne.itemSizeSM,lineHeight:(0,j1.bf)(Ne.itemSizeSM),input:Object.assign(Object.assign({},(0,Px.x0)(Ne)),{width:Ne.paginationMiniQuickJumperInputWidth,height:Ne.controlHeightSM})}}}},zC=Ne=>{const{componentCls:Me}=Ne;return{[` - &${Me}-simple ${Me}-prev, - &${Me}-simple ${Me}-next - `]:{height:Ne.itemSizeSM,lineHeight:(0,j1.bf)(Ne.itemSizeSM),verticalAlign:"top",[`${Me}-item-link`]:{height:Ne.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ne.colorBgTextHover},"&:active":{backgroundColor:Ne.colorBgTextActive},"&::after":{height:Ne.itemSizeSM,lineHeight:(0,j1.bf)(Ne.itemSizeSM)}}},[`&${Me}-simple ${Me}-simple-pager`]:{display:"inline-block",height:Ne.itemSizeSM,marginInlineEnd:Ne.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ne.marginXS,padding:`0 ${(0,j1.bf)(Ne.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ne.itemInputBg,border:`${(0,j1.bf)(Ne.lineWidth)} ${Ne.lineType} ${Ne.colorBorder}`,borderRadius:Ne.borderRadius,outline:"none",transition:`border-color ${Ne.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ne.colorPrimary},"&:focus":{borderColor:Ne.colorPrimaryHover,boxShadow:`${(0,j1.bf)(Ne.inputOutlineOffset)} 0 ${(0,j1.bf)(Ne.controlOutlineWidth)} ${Ne.controlOutline}`},"&[disabled]":{color:Ne.colorTextDisabled,backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,cursor:"not-allowed"}}}}},dC=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-jump-prev, ${Me}-jump-next`]:{outline:0,[`${Me}-item-container`]:{position:"relative",[`${Me}-item-link-icon`]:{color:Ne.colorPrimary,fontSize:Ne.fontSizeSM,opacity:0,transition:`all ${Ne.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Me}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ne.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ne.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ne.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ne.motionDurationMid}`}},"&:hover":{[`${Me}-item-link-icon`]:{opacity:1},[`${Me}-item-ellipsis`]:{opacity:0}}},[` - ${Me}-prev, - ${Me}-jump-prev, - ${Me}-jump-next - `]:{marginInlineEnd:Ne.marginXS},[` - ${Me}-prev, - ${Me}-next, - ${Me}-jump-prev, - ${Me}-jump-next - `]:{display:"inline-block",minWidth:Ne.itemSize,height:Ne.itemSize,color:Ne.colorText,fontFamily:Ne.fontFamily,lineHeight:`${(0,j1.bf)(Ne.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ne.borderRadius,cursor:"pointer",transition:`all ${Ne.motionDurationMid}`},[`${Me}-prev, ${Me}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ne.colorText,cursor:"pointer",userSelect:"none"},[`${Me}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ne.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,j1.bf)(Ne.lineWidth)} ${Ne.lineType} transparent`,borderRadius:Ne.borderRadius,outline:"none",transition:`all ${Ne.motionDurationMid}`},[`&:hover ${Me}-item-link`]:{backgroundColor:Ne.colorBgTextHover},[`&:active ${Me}-item-link`]:{backgroundColor:Ne.colorBgTextActive},[`&${Me}-disabled:hover`]:{[`${Me}-item-link`]:{backgroundColor:"transparent"}}},[`${Me}-slash`]:{marginInlineEnd:Ne.paginationSlashMarginInlineEnd,marginInlineStart:Ne.paginationSlashMarginInlineStart},[`${Me}-options`]:{display:"inline-block",marginInlineStart:Ne.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ne.controlHeight,marginInlineStart:Ne.marginXS,lineHeight:(0,j1.bf)(Ne.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Px.ik)(Ne)),(0,q2.$U)(Ne,{borderColor:Ne.colorBorder,hoverBorderColor:Ne.colorPrimaryHover,activeBorderColor:Ne.colorPrimary,activeShadow:Ne.activeShadow})),{"&[disabled]":Object.assign({},(0,q2.Xy)(Ne)),width:Ne.calc(Ne.controlHeightLG).mul(1.25).equal(),height:Ne.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ne.marginXS,marginInlineEnd:Ne.marginXS})}}}},YC=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-item`]:{display:"inline-block",minWidth:Ne.itemSize,height:Ne.itemSize,marginInlineEnd:Ne.marginXS,fontFamily:Ne.fontFamily,lineHeight:(0,j1.bf)(Ne.calc(Ne.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,j1.bf)(Ne.lineWidth)} ${Ne.lineType} transparent`,borderRadius:Ne.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,j1.bf)(Ne.paginationItemPaddingInline)}`,color:Ne.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Me}-item-active)`]:{"&:hover":{transition:`all ${Ne.motionDurationMid}`,backgroundColor:Ne.colorBgTextHover},"&:active":{backgroundColor:Ne.colorBgTextActive}},"&-active":{fontWeight:Ne.fontWeightStrong,backgroundColor:Ne.itemActiveBg,borderColor:Ne.colorPrimary,a:{color:Ne.colorPrimary},"&:hover":{borderColor:Ne.colorPrimaryHover},"&:hover a":{color:Ne.colorPrimaryHover}}}}},qC=Ne=>{const{componentCls:Me}=Ne;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Vx.Wf)(Ne)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Me}-total-text`]:{display:"inline-block",height:Ne.itemSize,marginInlineEnd:Ne.marginXS,lineHeight:(0,j1.bf)(Ne.calc(Ne.itemSize).sub(2).equal()),verticalAlign:"middle"}}),YC(Ne)),dC(Ne)),zC(Ne)),eC(Ne)),lw(Ne)),{[`@media only screen and (max-width: ${Ne.screenLG}px)`]:{[`${Me}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ne.screenSM}px)`]:{[`${Me}-options`]:{display:"none"}}}),[`&${Ne.componentCls}-rtl`]:{direction:"rtl"}}},bS=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}:not(${Me}-disabled)`]:{[`${Me}-item`]:Object.assign({},(0,Vx.Qy)(Ne)),[`${Me}-jump-prev, ${Me}-jump-next`]:{"&:focus-visible":Object.assign({[`${Me}-item-link-icon`]:{opacity:1},[`${Me}-item-ellipsis`]:{opacity:0}},(0,Vx.oN)(Ne))},[`${Me}-prev, ${Me}-next`]:{[`&:focus-visible ${Me}-item-link`]:Object.assign({},(0,Vx.oN)(Ne))}}}},tC=Ne=>Object.assign({itemBg:Ne.colorBgContainer,itemSize:Ne.controlHeight,itemSizeSM:Ne.controlHeightSM,itemActiveBg:Ne.colorBgContainer,itemLinkBg:Ne.colorBgContainer,itemActiveColorDisabled:Ne.colorTextDisabled,itemActiveBgDisabled:Ne.controlItemBgActiveDisabled,itemInputBg:Ne.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Z_.T)(Ne)),zw=Ne=>(0,kx.TS)(Ne,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ne.calc(Ne.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ne.calc(Ne.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ne.calc(Ne.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ne.calc(Ne.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ne.marginXXS,paginationSlashMarginInlineEnd:Ne.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Z_.e)(Ne));var VS=(0,C2.I$)("Pagination",Ne=>{const Me=zw(Ne);return[qC(Me),bS(Me)]},tC),YS=l(57832);const G2=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}${Me}-bordered${Me}-disabled:not(${Me}-mini)`]:{"&, &:hover":{[`${Me}-item-link`]:{borderColor:Ne.colorBorder}},"&:focus-visible":{[`${Me}-item-link`]:{borderColor:Ne.colorBorder}},[`${Me}-item, ${Me}-item-link`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,[`&:hover:not(${Me}-item-active)`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,a:{color:Ne.colorTextDisabled}},[`&${Me}-item-active`]:{backgroundColor:Ne.itemActiveBgDisabled}},[`${Me}-prev, ${Me}-next`]:{"&:hover button":{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,color:Ne.colorTextDisabled},[`${Me}-item-link`]:{backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder}}},[`${Me}${Me}-bordered:not(${Me}-mini)`]:{[`${Me}-prev, ${Me}-next`]:{"&:hover button":{borderColor:Ne.colorPrimaryHover,backgroundColor:Ne.itemBg},[`${Me}-item-link`]:{backgroundColor:Ne.itemLinkBg,borderColor:Ne.colorBorder},[`&:hover ${Me}-item-link`]:{borderColor:Ne.colorPrimary,backgroundColor:Ne.itemBg,color:Ne.colorPrimary},[`&${Me}-disabled`]:{[`${Me}-item-link`]:{borderColor:Ne.colorBorder,color:Ne.colorTextDisabled}}},[`${Me}-item`]:{backgroundColor:Ne.itemBg,border:`${(0,j1.bf)(Ne.lineWidth)} ${Ne.lineType} ${Ne.colorBorder}`,[`&:hover:not(${Me}-item-active)`]:{borderColor:Ne.colorPrimary,backgroundColor:Ne.itemBg,a:{color:Ne.colorPrimary}},"&-active":{borderColor:Ne.colorPrimary}}}}};var pw=(0,C2.bk)(["Pagination","bordered"],Ne=>{const Me=zw(Ne);return[G2(Me)]},tC),MC=function(Ne,Me){var Gt={};for(var wr in Ne)Object.prototype.hasOwnProperty.call(Ne,wr)&&Me.indexOf(wr)<0&&(Gt[wr]=Ne[wr]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,wr=Object.getOwnPropertySymbols(Ne);Ir{const{prefixCls:Me,selectPrefixCls:Gt,className:wr,rootClassName:Ir,style:Yr,size:Ws,locale:qs,selectComponentClass:_a,responsive:ru,showSizeChanger:Rd}=Ne,zd=MC(Ne,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:_g}=(0,KC.Z)(ru),[,au]=(0,YS.ZP)(),{getPrefixCls:Fd,direction:zg,pagination:v0={}}=u.useContext(J_.E_),x0=Fd("pagination",Me),[a0,M0,O0]=VS(x0),Y0=Rd!=null?Rd:v0.showSizeChanger,V0=u.useMemo(()=>{const o0=u.createElement("span",{className:`${x0}-item-ellipsis`},"\u2022\u2022\u2022"),f0=u.createElement("button",{className:`${x0}-item-link`,type:"button",tabIndex:-1},zg==="rtl"?u.createElement(cx.Z,null):u.createElement(l_.Z,null)),T0=u.createElement("button",{className:`${x0}-item-link`,type:"button",tabIndex:-1},zg==="rtl"?u.createElement(l_.Z,null):u.createElement(cx.Z,null)),D0=u.createElement("a",{className:`${x0}-item-link`},u.createElement("div",{className:`${x0}-item-container`},zg==="rtl"?u.createElement($y,{className:`${x0}-item-link-icon`}):u.createElement(VC,{className:`${x0}-item-link-icon`}),o0)),pv=u.createElement("a",{className:`${x0}-item-link`},u.createElement("div",{className:`${x0}-item-container`},zg==="rtl"?u.createElement(VC,{className:`${x0}-item-link-icon`}):u.createElement($y,{className:`${x0}-item-link-icon`}),o0));return{prevIcon:f0,nextIcon:T0,jumpPrevIcon:D0,jumpNextIcon:pv}},[zg,x0]),[t1]=(0,Ny.Z)("Pagination",Kw.Z),Zg=Object.assign(Object.assign({},t1),qs),y0=(0,Aw.Z)(Ws),Fg=y0==="small"||!!(_g&&!y0&&ru),_0=Fd("select",Gt),Ou=vn()({[`${x0}-mini`]:Fg,[`${x0}-rtl`]:zg==="rtl",[`${x0}-bordered`]:au.wireframe},v0==null?void 0:v0.className,wr,Ir,M0,O0),Kg=Object.assign(Object.assign({},v0==null?void 0:v0.style),Yr);return a0(u.createElement(u.Fragment,null,au.wireframe&&u.createElement(pw,{prefixCls:x0}),u.createElement(q_,Object.assign({},V0,zd,{style:Kg,prefixCls:x0,selectPrefixCls:_0,className:Ou,selectComponentClass:_a||(Fg?bw:Ow),locale:Zg,showSizeChanger:Y0}))))},mv=v_,Lw=l(51218);function Pv(Ne){return function(Gt){let{prefixCls:wr,onExpand:Ir,record:Yr,expanded:Ws,expandable:qs}=Gt;const _a=`${wr}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:ru=>{Ir(Yr,ru),ru.stopPropagation()},className:vn()(_a,{[`${_a}-spaced`]:!qs,[`${_a}-expanded`]:qs&&Ws,[`${_a}-collapsed`]:qs&&!Ws}),"aria-label":Ws?Ne.collapse:Ne.expand,"aria-expanded":Ws})}}var k2=Pv;function O2(Ne){return(Gt,wr)=>{const Ir=Gt.querySelector(`.${Ne}-container`);let Yr=wr;if(Ir){const Ws=getComputedStyle(Ir),qs=parseInt(Ws.borderLeftWidth,10),_a=parseInt(Ws.borderRightWidth,10);Yr=wr-qs-_a}return Yr}}function TE(Ne,Me){return"key"in Ne&&Ne.key!==void 0&&Ne.key!==null?Ne.key:Ne.dataIndex?Array.isArray(Ne.dataIndex)?Ne.dataIndex.join("."):Ne.dataIndex:Me}function cT(Ne,Me){return Me?`${Me}-${Ne}`:`${Ne}`}function dT(Ne,Me){return typeof Ne=="function"?Ne(Me):Ne}function US(Ne,Me){const Gt=dT(Ne,Me);return Object.prototype.toString.call(Gt)==="[object Object]"?"":Gt}var jE=l(48041),eT=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:jE.Z}))},IE=u.forwardRef(eT),$T=l(51626);function bE(Ne){const Me=u.useRef(Ne),Gt=(0,$T.Z)();return[()=>Me.current,wr=>{Me.current=wr,Gt()}]}var xE=l(99622),aC=l(13682),zE=l(50523),UT=l(83385),YE=l(85338),OC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},yT=OC,hC=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:yT}))},rE=u.forwardRef(hC),PE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Lx=PE,WE=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:Lx}))},ZE=u.forwardRef(WE),jS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Xw=jS,iC=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:Xw}))},lC=u.forwardRef(iC),nC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},AE=nC,iE=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:AE}))},HE=u.forwardRef(iE),yw=l(12149),OS=l(36385);const JC=new j1.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),aS=(Ne,Me)=>({[`.${Ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Me.motionDurationSlow}`}}}),QS=(Ne,Me)=>({[`.${Ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Me.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,j1.bf)(Me.lineWidthBold)} solid ${Me.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Mw=(Ne,Me)=>{const{treeCls:Gt,treeNodeCls:wr,treeNodePadding:Ir,titleHeight:Yr,nodeSelectedBg:Ws,nodeHoverBg:qs}=Me,_a=Me.paddingXS;return{[Gt]:Object.assign(Object.assign({},(0,Vx.Wf)(Me)),{background:Me.colorBgContainer,borderRadius:Me.borderRadius,transition:`background-color ${Me.motionDurationSlow}`,[`&${Gt}-rtl`]:{[`${Gt}-switcher`]:{"&_close":{[`${Gt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Gt}-active-focused)`]:Object.assign({},(0,Vx.oN)(Me)),[`${Gt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Gt}-block-node`]:{[`${Gt}-list-holder-inner`]:{alignItems:"stretch",[`${Gt}-node-content-wrapper`]:{flex:"auto"},[`${wr}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ir,insetInlineStart:0,border:`1px solid ${Me.colorPrimary}`,opacity:0,animationName:JC,animationDuration:Me.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${wr}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,j1.bf)(Ir)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Gt}-node-content-wrapper`]:{color:Me.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Gt}-node-content-wrapper`]:{background:Me.controlItemBgHover},[`&:not(${wr}-disabled).filter-node ${Gt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${Gt}-draggable-icon`]:{flexShrink:0,width:Yr,lineHeight:`${(0,j1.bf)(Yr)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Me.motionDurationSlow}`,[`${wr}:hover &`]:{opacity:.45}},[`&${wr}-disabled`]:{[`${Gt}-draggable-icon`]:{visibility:"hidden"}}}},[`${Gt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Yr}},[`${Gt}-draggable-icon`]:{visibility:"hidden"},[`${Gt}-switcher`]:Object.assign(Object.assign({},aS(Ne,Me)),{position:"relative",flex:"none",alignSelf:"stretch",width:Yr,margin:0,lineHeight:`${(0,j1.bf)(Yr)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Me.motionDurationSlow}`,borderRadius:Me.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${Gt}-switcher-noop):hover`]:{backgroundColor:Me.colorBgTextHover},"&_close":{[`${Gt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Me.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Me.calc(Yr).div(2).equal(),bottom:Me.calc(Ir).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Me.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Me.calc(Me.calc(Yr).div(2).equal()).mul(.8).equal(),height:Me.calc(Yr).div(2).equal(),borderBottom:`1px solid ${Me.colorBorder}`,content:'""'}}}),[`${Gt}-checkbox`]:{top:"initial",marginInlineEnd:_a,alignSelf:"flex-start",marginTop:Me.marginXXS},[`${Gt}-node-content-wrapper, ${Gt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Yr,margin:0,padding:`0 ${(0,j1.bf)(Me.calc(Me.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,j1.bf)(Yr)}`,background:"transparent",borderRadius:Me.borderRadius,cursor:"pointer",transition:`all ${Me.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:qs},[`&${Gt}-node-selected`]:{backgroundColor:Ws},[`${Gt}-iconEle`]:{display:"inline-block",width:Yr,height:Yr,lineHeight:`${(0,j1.bf)(Yr)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Gt}-unselectable ${Gt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Gt}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,j1.bf)(Yr)}`,userSelect:"none"},QS(Ne,Me)),[`${wr}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Me.colorPrimary}`}},"&-show-line":{[`${Gt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Me.calc(Yr).div(2).equal(),bottom:Me.calc(Ir).mul(-1).equal(),borderInlineEnd:`1px solid ${Me.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Gt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${wr}-leaf-last`]:{[`${Gt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,j1.bf)(Me.calc(Yr).div(2).equal())} !important`}}}}})}},K2=Ne=>{const{treeCls:Me,treeNodeCls:Gt,treeNodePadding:wr,directoryNodeSelectedBg:Ir,directoryNodeSelectedColor:Yr}=Ne;return{[`${Me}${Me}-directory`]:{[Gt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:wr,insetInlineStart:0,transition:`background-color ${Ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ne.controlItemBgHover}},"> *":{zIndex:1},[`${Me}-switcher`]:{transition:`color ${Ne.motionDurationMid}`},[`${Me}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Me}-node-selected`]:{color:Yr,background:"transparent"}},"&-selected":{[` + `]:{height:un,fontFamily:Te.fontFamily,lineHeight:(0,se.bf)(un),transition:`all ${Te.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ze}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:Te.inputPaddingHorizontalBase,insetInlineEnd:Te.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Te.motionDurationSlow}`}}}};function ct(Te,vt){const{componentCls:ze}=Te,Vt=vt?`${ze}-${vt}`:"",Tt={[`${ze}-multiple${Vt}`]:{fontSize:Te.fontSize,[`${ze}-selector`]:{[`${ze}-show-search&`]:{cursor:"text"}},[` + &${ze}-show-arrow ${ze}-selector, + &${ze}-allow-clear ${ze}-selector + `]:{paddingInlineEnd:Te.calc(Te.fontSizeIcon).add(Te.controlPaddingHorizontal).equal()}}};return[Ce(Te,vt),Tt]}var Ge=Te=>{const{componentCls:vt}=Te,ze=(0,A.TS)(Te,{selectHeight:Te.controlHeightSM,multipleSelectItemHeight:Te.controlHeightXS,borderRadius:Te.borderRadiusSM,borderRadiusSM:Te.borderRadiusXS}),Vt=(0,A.TS)(Te,{fontSize:Te.fontSizeLG,selectHeight:Te.controlHeightLG,multipleSelectItemHeight:Te.multipleItemHeightLG,borderRadius:Te.borderRadiusLG,borderRadiusSM:Te.borderRadius});return[ct(Te),ct(ze,"sm"),{[`${vt}-multiple${vt}-sm`]:{[`${vt}-selection-placeholder`]:{insetInline:Te.calc(Te.controlPaddingHorizontalSM).sub(Te.lineWidth).equal()},[`${vt}-selection-search`]:{marginInlineStart:2}}},ct(Vt,"lg")]};function at(Te,vt){const{componentCls:ze,inputPaddingHorizontalBase:Vt,borderRadius:Tt}=Te,un=Te.calc(Te.controlHeight).sub(Te.calc(Te.lineWidth).mul(2)).equal(),on=vt?`${ze}-${vt}`:"";return{[`${ze}-single${on}`]:{fontSize:Te.fontSize,height:Te.controlHeight,[`${ze}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(Te,!0)),{display:"flex",borderRadius:Tt,[`${ze}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Vt,insetInlineEnd:Vt,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${ze}-selection-item, + ${ze}-selection-placeholder + `]:{padding:0,lineHeight:(0,se.bf)(un),transition:`all ${Te.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ze}-selection-item:empty:after`,`${ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${ze}-show-arrow ${ze}-selection-item, + &${ze}-show-arrow ${ze}-selection-placeholder + `]:{paddingInlineEnd:Te.showArrowPaddingInlineEnd},[`&${ze}-open ${ze}-selection-item`]:{color:Te.colorTextPlaceholder},[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,se.bf)(Vt)}`,[`${ze}-selection-search-input`]:{height:un},"&:after":{lineHeight:(0,se.bf)(un)}}},[`&${ze}-customize-input`]:{[`${ze}-selector`]:{"&:after":{display:"none"},[`${ze}-selection-search`]:{position:"static",width:"100%"},[`${ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,se.bf)(Vt)}`,"&:after":{display:"none"}}}}}}}function Ye(Te){const{componentCls:vt}=Te,ze=Te.calc(Te.controlPaddingHorizontalSM).sub(Te.lineWidth).equal();return[at(Te),at((0,A.TS)(Te,{controlHeight:Te.controlHeightSM,borderRadius:Te.borderRadiusSM}),"sm"),{[`${vt}-single${vt}-sm`]:{[`&:not(${vt}-customize-input)`]:{[`${vt}-selection-search`]:{insetInlineStart:ze,insetInlineEnd:ze},[`${vt}-selector`]:{padding:`0 ${(0,se.bf)(ze)}`},[`&${vt}-show-arrow ${vt}-selection-search`]:{insetInlineEnd:Te.calc(ze).add(Te.calc(Te.fontSize).mul(1.5)).equal()},[` + &${vt}-show-arrow ${vt}-selection-item, + &${vt}-show-arrow ${vt}-selection-placeholder + `]:{paddingInlineEnd:Te.calc(Te.fontSize).mul(1.5).equal()}}}},at((0,A.TS)(Te,{controlHeight:Te.singleItemHeightLG,fontSize:Te.fontSizeLG,borderRadius:Te.borderRadiusLG}),"lg")]}const rt=Te=>{const{fontSize:vt,lineHeight:ze,controlHeight:Vt,controlPaddingHorizontal:Tt,zIndexPopupBase:un,colorText:on,fontWeightStrong:Lr,controlItemBgActive:Yr,controlItemBgHover:fi,colorBgContainer:Xi,colorFillSecondary:Qi,controlHeightLG:hi,controlHeightSM:Go,colorBgContainerDisabled:Mo,colorTextDisabled:pe}=Te;return{zIndexPopup:un+50,optionSelectedColor:on,optionSelectedFontWeight:Lr,optionSelectedBg:Yr,optionActiveBg:fi,optionPadding:`${(Vt-vt*ze)/2}px ${Tt}px`,optionFontSize:vt,optionLineHeight:ze,optionHeight:Vt,selectorBg:Xi,clearBg:Xi,singleItemHeightLG:hi,multipleItemBg:Qi,multipleItemBorderColor:"transparent",multipleItemHeight:Go,multipleItemHeightLG:Vt,multipleSelectorBgDisabled:Mo,multipleItemColorDisabled:pe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Te.fontSize*1.25)}},Gt=(Te,vt)=>{const{componentCls:ze,antCls:Vt,controlOutlineWidth:Tt}=Te;return{[`&:not(${ze}-customize-input) ${ze}-selector`]:{border:`${(0,se.bf)(Te.lineWidth)} ${Te.lineType} ${vt.borderColor}`,background:Te.selectorBg},[`&:not(${ze}-disabled):not(${ze}-customize-input):not(${Vt}-pagination-size-changer)`]:{[`&:hover ${ze}-selector`]:{borderColor:vt.hoverBorderHover},[`${ze}-focused& ${ze}-selector`]:{borderColor:vt.activeBorderColor,boxShadow:`0 0 0 ${(0,se.bf)(Tt)} ${vt.activeShadowColor}`,outline:0}}}},yt=(Te,vt)=>({[`&${Te.componentCls}-status-${vt.status}`]:Object.assign({},Gt(Te,vt))}),Et=Te=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Gt(Te,{borderColor:Te.colorBorder,hoverBorderHover:Te.colorPrimaryHover,activeBorderColor:Te.colorPrimary,activeShadowColor:Te.controlOutline})),yt(Te,{status:"error",borderColor:Te.colorError,hoverBorderHover:Te.colorErrorHover,activeBorderColor:Te.colorError,activeShadowColor:Te.colorErrorOutline})),yt(Te,{status:"warning",borderColor:Te.colorWarning,hoverBorderHover:Te.colorWarningHover,activeBorderColor:Te.colorWarning,activeShadowColor:Te.colorWarningOutline})),{[`&${Te.componentCls}-disabled`]:{[`&:not(${Te.componentCls}-customize-input) ${Te.componentCls}-selector`]:{background:Te.colorBgContainerDisabled,color:Te.colorTextDisabled}},[`&${Te.componentCls}-multiple ${Te.componentCls}-selection-item`]:{background:Te.multipleItemBg,border:`${(0,se.bf)(Te.lineWidth)} ${Te.lineType} ${Te.multipleItemBorderColor}`}})}),ht=(Te,vt)=>{const{componentCls:ze,antCls:Vt}=Te;return{[`&:not(${ze}-customize-input) ${ze}-selector`]:{background:vt.bg,border:`${(0,se.bf)(Te.lineWidth)} ${Te.lineType} transparent`,color:vt.color},[`&:not(${ze}-disabled):not(${ze}-customize-input):not(${Vt}-pagination-size-changer)`]:{[`&:hover ${ze}-selector`]:{background:vt.hoverBg},[`${ze}-focused& ${ze}-selector`]:{background:Te.selectorBg,borderColor:vt.activeBorderColor,outline:0}}}},Pe=(Te,vt)=>({[`&${Te.componentCls}-status-${vt.status}`]:Object.assign({},ht(Te,vt))}),et=Te=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ht(Te,{bg:Te.colorFillTertiary,hoverBg:Te.colorFillSecondary,activeBorderColor:Te.colorPrimary,color:Te.colorText})),Pe(Te,{status:"error",bg:Te.colorErrorBg,hoverBg:Te.colorErrorBgHover,activeBorderColor:Te.colorError,color:Te.colorError})),Pe(Te,{status:"warning",bg:Te.colorWarningBg,hoverBg:Te.colorWarningBgHover,activeBorderColor:Te.colorWarning,color:Te.colorWarning})),{[`&${Te.componentCls}-disabled`]:{[`&:not(${Te.componentCls}-customize-input) ${Te.componentCls}-selector`]:{borderColor:Te.colorBorder,background:Te.colorBgContainerDisabled,color:Te.colorTextDisabled}},[`&${Te.componentCls}-multiple ${Te.componentCls}-selection-item`]:{background:Te.colorBgContainer,border:`${(0,se.bf)(Te.lineWidth)} ${Te.lineType} ${Te.colorSplit}`}})}),Oe=Te=>({"&-borderless":{[`${Te.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${Te.componentCls}-disabled`]:{[`&:not(${Te.componentCls}-customize-input) ${Te.componentCls}-selector`]:{color:Te.colorTextDisabled}},[`&${Te.componentCls}-multiple ${Te.componentCls}-selection-item`]:{background:Te.multipleItemBg,border:`${(0,se.bf)(Te.lineWidth)} ${Te.lineType} ${Te.multipleItemBorderColor}`}}});var je=Te=>({[Te.componentCls]:Object.assign(Object.assign(Object.assign({},Et(Te)),et(Te)),Oe(Te))});const ft=Te=>{const{componentCls:vt}=Te;return{position:"relative",transition:`all ${Te.motionDurationMid} ${Te.motionEaseInOut}`,input:{cursor:"pointer"},[`${vt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${vt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ct=Te=>{const{componentCls:vt}=Te;return{[`${vt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Xe=Te=>{const{antCls:vt,componentCls:ze,inputPaddingHorizontalBase:Vt,iconCls:Tt}=Te;return{[ze]:Object.assign(Object.assign({},(0,v.Wf)(Te)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},ft(Te)),Ct(Te)),[`${ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},v.vS),{[`> ${vt}-typography`]:{display:"inline"}}),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:Te.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Vt,height:Te.fontSizeIcon,marginTop:Te.calc(Te.fontSizeIcon).mul(-1).div(2).equal(),color:Te.colorTextQuaternary,fontSize:Te.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Te.motionDurationSlow} ease`,[Tt]:{verticalAlign:"top",transition:`transform ${Te.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Vt,zIndex:1,display:"inline-block",width:Te.fontSizeIcon,height:Te.fontSizeIcon,marginTop:Te.calc(Te.fontSizeIcon).mul(-1).div(2).equal(),color:Te.colorTextQuaternary,fontSize:Te.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Te.motionDurationMid} ease, opacity ${Te.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Te.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1},[`${ze}-arrow:not(:last-child)`]:{opacity:0}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:Te.calc(Vt).add(Te.fontSize).add(Te.paddingXS).equal()}}}},hn=Te=>{const{componentCls:vt}=Te;return[{[vt]:{[`&${vt}-in-form-item`]:{width:"100%"}}},Xe(Te),Ye(Te),Ge(Te),ae(Te),{[`${vt}-rtl`]:{direction:"rtl"}},(0,z.c)(Te,{borderElCls:`${vt}-selector`,focusElCls:`${vt}-focused`})]};var Nt=(0,P.I$)("Select",(Te,vt)=>{let{rootPrefixCls:ze}=vt;const Vt=(0,A.TS)(Te,{rootPrefixCls:ze,inputPaddingHorizontalBase:Te.calc(Te.paddingSM).sub(1).equal(),multipleSelectItemHeight:Te.multipleItemHeight,selectHeight:Te.controlHeight});return[hn(Vt),je(Vt)]},rt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},14275:function(St,me,x){"use strict";x.d(me,{Z:function(){return ie}});var v=x(77617),z=x(49247),P=x(43418),A=x(4531),W=x(21112),X=x(20555),Y=x(38528);function ie(ae){let{suffixIcon:se,clearIcon:Ie,menuItemSelectedIcon:Be,removeIcon:Ce,loading:ct,multiple:nt,hasFeedback:Ge,prefixCls:at,showSuffixIcon:Ye,feedbackIcon:rt,showArrow:Gt,componentName:yt}=ae;const Et=Ie!=null?Ie:v.createElement(P.Z,null),ht=Ue=>se===null&&!Ge&&!Gt?null:v.createElement(v.Fragment,null,Ye!==!1&&Ue,Ge&&rt);let Pe=null;if(se!==void 0)Pe=ht(se);else if(ct)Pe=ht(v.createElement(X.Z,{spin:!0}));else{const Ue=`${at}-suffix`;Pe=je=>{let{open:ft,showSearch:Ct}=je;return ht(ft&&Ct?v.createElement(Y.Z,{className:Ue}):v.createElement(W.Z,{className:Ue}))}}let et=null;Be!==void 0?et=Be:nt?et=v.createElement(z.Z,null):et=null;let Oe=null;return Ce!==void 0?Oe=Ce:Oe=v.createElement(A.Z,null),{clearIcon:Et,suffixIcon:Pe,itemIcon:et,removeIcon:Oe}}},60621:function(St,me,x){"use strict";x.d(me,{Z:function(){return v}});function v(z,P){return P!==void 0?P:z!==null}},55449:function(St,me,x){"use strict";x.d(me,{BR:function(){return Ie},ri:function(){return se}});var v=x(92310),z=x.n(v),P=x(6415),A=x(77617),W=x(58798),X=x(20804),Y=x(28086),ie=function(ct,nt){var Ge={};for(var at in ct)Object.prototype.hasOwnProperty.call(ct,at)&&nt.indexOf(at)<0&&(Ge[at]=ct[at]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,at=Object.getOwnPropertySymbols(ct);Ye{const Ge=A.useContext(ae),at=A.useMemo(()=>{if(!Ge)return"";const{compactDirection:Ye,isFirstItem:rt,isLastItem:Gt}=Ge,yt=Ye==="vertical"?"-vertical-":"-";return z()(`${ct}-compact${yt}item`,{[`${ct}-compact${yt}first-item`]:rt,[`${ct}-compact${yt}last-item`]:Gt,[`${ct}-compact${yt}item-rtl`]:nt==="rtl"})},[ct,nt,Ge]);return{compactSize:Ge==null?void 0:Ge.compactSize,compactDirection:Ge==null?void 0:Ge.compactDirection,compactItemClassnames:at}},Ie=ct=>{let{children:nt}=ct;return A.createElement(ae.Provider,{value:null},nt)},Be=ct=>{var{children:nt}=ct,Ge=ie(ct,["children"]);return A.createElement(ae.Provider,{value:Ge},nt)},Ce=ct=>{const{getPrefixCls:nt,direction:Ge}=A.useContext(W.E_),{size:at,direction:Ye,block:rt,prefixCls:Gt,className:yt,rootClassName:Et,children:ht}=ct,Pe=ie(ct,["size","direction","block","prefixCls","className","rootClassName","children"]),et=(0,X.Z)(Nt=>at!=null?at:Nt),Oe=nt("space-compact",Gt),[Ue,je]=(0,Y.Z)(Oe),ft=z()(Oe,je,{[`${Oe}-rtl`]:Ge==="rtl",[`${Oe}-block`]:rt,[`${Oe}-vertical`]:Ye==="vertical"},yt,Et),Ct=A.useContext(ae),Xe=(0,P.Z)(ht),hn=A.useMemo(()=>Xe.map((Nt,Te)=>{const vt=Nt&&Nt.key||`${Oe}-item-${Te}`;return A.createElement(Be,{key:vt,compactSize:et,compactDirection:Ye,isFirstItem:Te===0&&(!Ct||(Ct==null?void 0:Ct.isFirstItem)),isLastItem:Te===Xe.length-1&&(!Ct||(Ct==null?void 0:Ct.isLastItem))},Nt)}),[at,Xe,Ct]);return Xe.length===0?null:Ue(A.createElement("div",Object.assign({className:ft},Pe),hn))};me.ZP=Ce},82607:function(St,me,x){"use strict";x.d(me,{Z:function(){return at}});var v=x(77617),z=x(92310),P=x.n(z),A=x(6415);function W(Ye){return["small","middle","large"].includes(Ye)}function X(Ye){return Ye?typeof Ye=="number"&&!Number.isNaN(Ye):!1}var Y=x(58798),ie=x(55449);const ae=v.createContext({latestIndex:0}),se=ae.Provider;var Be=Ye=>{let{className:rt,index:Gt,children:yt,split:Et,style:ht}=Ye;const{latestIndex:Pe}=v.useContext(ae);return yt==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:rt,style:ht},yt),Gt{var Gt,yt;const{getPrefixCls:Et,space:ht,direction:Pe}=v.useContext(Y.E_),{size:et=(ht==null?void 0:ht.size)||"small",align:Oe,className:Ue,rootClassName:je,children:ft,direction:Ct="horizontal",prefixCls:Xe,split:hn,style:Nt,wrap:Te=!1,classNames:vt,styles:ze}=Ye,Vt=ct(Ye,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Tt,un]=Array.isArray(et)?et:[et,et],on=W(un),Lr=W(Tt),Yr=X(un),fi=X(Tt),Xi=(0,A.Z)(ft,{keepEmpty:!0}),Qi=Oe===void 0&&Ct==="horizontal"?"center":Oe,hi=Et("space",Xe),[Go,Mo,pe]=(0,Ce.Z)(hi),Ii=P()(hi,ht==null?void 0:ht.className,Mo,`${hi}-${Ct}`,{[`${hi}-rtl`]:Pe==="rtl",[`${hi}-align-${Qi}`]:Qi,[`${hi}-gap-row-${un}`]:on,[`${hi}-gap-col-${Tt}`]:Lr},Ue,je,pe),Vi=P()(`${hi}-item`,(Gt=vt==null?void 0:vt.item)!==null&&Gt!==void 0?Gt:(yt=ht==null?void 0:ht.classNames)===null||yt===void 0?void 0:yt.item);let ro=0;const ai=Xi.map((Rt,jn)=>{var wr,oi;Rt!=null&&(ro=jn);const Ti=Rt&&Rt.key||`${Vi}-${jn}`;return v.createElement(Be,{className:Vi,key:Ti,index:jn,split:hn,style:(wr=ze==null?void 0:ze.item)!==null&&wr!==void 0?wr:(oi=ht==null?void 0:ht.styles)===null||oi===void 0?void 0:oi.item},Rt)}),Ms=v.useMemo(()=>({latestIndex:ro}),[ro]);if(Xi.length===0)return null;const Ar={};return Te&&(Ar.flexWrap="wrap"),!Lr&&fi&&(Ar.columnGap=Tt),!on&&Yr&&(Ar.rowGap=un),Go(v.createElement("div",Object.assign({ref:rt,className:Ii,style:Object.assign(Object.assign(Object.assign({},Ar),ht==null?void 0:ht.style),Nt)},Vt),v.createElement(se,{value:Ms},ai)))});Ge.Compact=ie.ZP;var at=Ge},28086:function(St,me,x){"use strict";x.d(me,{Z:function(){return ie}});var v=x(79263),z=x(90882),A=ae=>{const{componentCls:se}=ae;return{[se]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const W=ae=>{const{componentCls:se}=ae;return{[se]:{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"}},[`${se}-item:empty`]:{display:"none"}}}},X=ae=>{const{componentCls:se}=ae;return{[se]:{"&-gap-row-small":{rowGap:ae.spaceGapSmallSize},"&-gap-row-middle":{rowGap:ae.spaceGapMiddleSize},"&-gap-row-large":{rowGap:ae.spaceGapLargeSize},"&-gap-col-small":{columnGap:ae.spaceGapSmallSize},"&-gap-col-middle":{columnGap:ae.spaceGapMiddleSize},"&-gap-col-large":{columnGap:ae.spaceGapLargeSize}}}},Y=()=>({});var ie=(0,v.I$)("Space",ae=>{const se=(0,z.TS)(ae,{spaceGapSmallSize:ae.paddingXS,spaceGapMiddleSize:ae.padding,spaceGapLargeSize:ae.paddingLG});return[W(se),X(se),A(se)]},()=>({}),{resetStyle:!1})},99109:function(St,me,x){"use strict";x.d(me,{c:function(){return P}});function v(A,W,X){const{focusElCls:Y,focus:ie,borderElCls:ae}=X,se=ae?"> *":"",Ie=["hover",ie?"focus":null,"active"].filter(Boolean).map(Be=>`&:${Be} ${se}`).join(",");return{[`&-item:not(${W}-last-item)`]:{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[Ie]:{zIndex:2}},Y?{[`&${Y}`]:{zIndex:2}}:{}),{[`&[disabled] ${se}`]:{zIndex:0}})}}function z(A,W,X){const{borderElCls:Y}=X,ie=Y?`> ${Y}`:"";return{[`&-item:not(${W}-first-item):not(${W}-last-item) ${ie}`]:{borderRadius:0},[`&-item:not(${W}-last-item)${W}-first-item`]:{[`& ${ie}, &${A}-sm ${ie}, &${A}-lg ${ie}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${W}-first-item)${W}-last-item`]:{[`& ${ie}, &${A}-sm ${ie}, &${A}-lg ${ie}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function P(A){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:X}=A,Y=`${X}-compact`;return{[Y]:Object.assign(Object.assign({},v(A,Y,W)),z(X,Y,W))}}},91110:function(St,me,x){"use strict";x.d(me,{Lx:function(){return X},Qy:function(){return ae},Ro:function(){return A},Wf:function(){return P},dF:function(){return W},du:function(){return Y},oN:function(){return ie},vS:function(){return z}});var v=x(78600);const z={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},P=function(se){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:se.colorText,fontSize:se.fontSize,lineHeight:se.lineHeight,listStyle:"none",fontFamily:Ie?"inherit":se.fontFamily}},A=()=>({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"}}),W=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),X=se=>({a:{color:se.colorLink,textDecoration:se.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${se.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:se.colorLinkHover},"&:active":{color:se.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:se.linkHoverDecoration,outline:0},"&:focus":{textDecoration:se.linkFocusDecoration,outline:0},"&[disabled]":{color:se.colorTextDisabled,cursor:"not-allowed"}}}),Y=(se,Ie,Be)=>{const{fontFamily:Ce,fontSize:ct}=se,nt=`[class^="${Ie}"], [class*=" ${Ie}"]`;return{[Be?`.${Be}`:nt]:{fontFamily:Ce,fontSize:ct,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[nt]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ie=se=>({outline:`${(0,v.bf)(se.lineWidthFocus)} solid ${se.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ae=se=>({"&:focus-visible":Object.assign({},ie(se))})},36385:function(St,me){"use strict";const x=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut}, + opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});me.Z=x},96504:function(St,me,x){"use strict";x.d(me,{J$:function(){return W}});var v=x(78600),z=x(15422);const P=new v.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),A=new v.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),W=function(X){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:ie}=X,ae=`${ie}-fade`,se=Y?"&":"";return[(0,z.R)(ae,P,A,X.motionDurationMid,Y),{[` + ${se}${ae}-enter, + ${se}${ae}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${se}${ae}-leave`]:{animationTimingFunction:"linear"}}]}},15422:function(St,me,x){"use strict";x.d(me,{R:function(){return P}});const v=A=>({animationDuration:A,animationFillMode:"both"}),z=A=>({animationDuration:A,animationFillMode:"both"}),P=function(A,W,X,Y){const ae=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${ae}${A}-enter, + ${ae}${A}-appear + `]:Object.assign(Object.assign({},v(Y)),{animationPlayState:"paused"}),[`${ae}${A}-leave`]:Object.assign(Object.assign({},z(Y)),{animationPlayState:"paused"}),[` + ${ae}${A}-enter${A}-enter-active, + ${ae}${A}-appear${A}-appear-active + `]:{animationName:W,animationPlayState:"running"},[`${ae}${A}-leave${A}-leave-active`]:{animationName:X,animationPlayState:"running",pointerEvents:"none"}}}},63172:function(St,me,x){"use strict";x.d(me,{Fm:function(){return Be}});var v=x(78600),z=x(15422);const P=new v.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A=new v.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),W=new v.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new v.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Y=new v.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ie=new v.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ae=new v.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new v.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Ie={"move-up":{inKeyframes:ae,outKeyframes:se},"move-down":{inKeyframes:P,outKeyframes:A},"move-left":{inKeyframes:W,outKeyframes:X},"move-right":{inKeyframes:Y,outKeyframes:ie}},Be=(Ce,ct)=>{const{antCls:nt}=Ce,Ge=`${nt}-${ct}`,{inKeyframes:at,outKeyframes:Ye}=Ie[ct];return[(0,z.R)(Ge,at,Ye,Ce.motionDurationMid),{[` + ${Ge}-enter, + ${Ge}-appear + `]:{opacity:0,animationTimingFunction:Ce.motionEaseOutCirc},[`${Ge}-leave`]:{animationTimingFunction:Ce.motionEaseInOutCirc}}]}},17089:function(St,me,x){"use strict";x.d(me,{Qt:function(){return W},Uw:function(){return A},fJ:function(){return P},ly:function(){return X},oN:function(){return Be}});var v=x(78600),z=x(15422);const P=new v.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),A=new v.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),W=new v.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),X=new v.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Y=new v.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ie=new v.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ae=new v.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),se=new v.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ie={"slide-up":{inKeyframes:P,outKeyframes:A},"slide-down":{inKeyframes:W,outKeyframes:X},"slide-left":{inKeyframes:Y,outKeyframes:ie},"slide-right":{inKeyframes:ae,outKeyframes:se}},Be=(Ce,ct)=>{const{antCls:nt}=Ce,Ge=`${nt}-${ct}`,{inKeyframes:at,outKeyframes:Ye}=Ie[ct];return[(0,z.R)(Ge,at,Ye,Ce.motionDurationMid),{[` + ${Ge}-enter, + ${Ge}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ce.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${Ge}-leave`]:{animationTimingFunction:Ce.motionEaseInQuint}}]}},19162:function(St,me,x){"use strict";x.d(me,{_y:function(){return Ge},kr:function(){return P}});var v=x(78600),z=x(15422);const P=new v.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),A=new v.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),W=new v.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),X=new v.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Y=new v.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ie=new v.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ae=new v.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),se=new v.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ie=new v.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Be=new v.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ce=new v.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ct=new v.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nt={zoom:{inKeyframes:P,outKeyframes:A},"zoom-big":{inKeyframes:W,outKeyframes:X},"zoom-big-fast":{inKeyframes:W,outKeyframes:X},"zoom-left":{inKeyframes:ae,outKeyframes:se},"zoom-right":{inKeyframes:Ie,outKeyframes:Be},"zoom-up":{inKeyframes:Y,outKeyframes:ie},"zoom-down":{inKeyframes:Ce,outKeyframes:ct}},Ge=(at,Ye)=>{const{antCls:rt}=at,Gt=`${rt}-${Ye}`,{inKeyframes:yt,outKeyframes:Et}=nt[Ye];return[(0,z.R)(Gt,yt,Et,Ye==="zoom-big-fast"?at.motionDurationFast:at.motionDurationMid),{[` + ${Gt}-enter, + ${Gt}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:at.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Gt}-leave`]:{animationTimingFunction:at.motionEaseInOutCirc}}]}},7778:function(St,me,x){"use strict";x.d(me,{N:function(){return v}});const v=z=>({color:z.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${z.motionDurationSlow}`,"&:focus, &:hover":{color:z.colorLinkHover},"&:active":{color:z.colorLinkActive}})},50489:function(St,me,x){"use strict";x.d(me,{ZP:function(){return W},qN:function(){return z},wZ:function(){return P}});var v=x(70157);const z=8;function P(X){const{contentRadius:Y,limitVerticalRadius:ie}=X,ae=Y>12?Y+2:12;return{arrowOffsetHorizontal:ae,arrowOffsetVertical:ie?z:ae}}function A(X,Y){return X?Y:{}}function W(X,Y,ie){const{componentCls:ae,boxShadowPopoverArrow:se,arrowOffsetVertical:Ie,arrowOffsetHorizontal:Be}=X,{arrowDistance:Ce=0,arrowPlacement:ct={left:!0,right:!0,top:!0,bottom:!0}}=ie||{};return{[ae]:Object.assign(Object.assign(Object.assign(Object.assign({[`${ae}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,v.W)(X,Y,se)),{"&:before":{background:Y}})]},A(!!ct.top,{[[`&-placement-top > ${ae}-arrow`,`&-placement-topLeft > ${ae}-arrow`,`&-placement-topRight > ${ae}-arrow`].join(",")]:{bottom:Ce,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${ae}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${ae}-arrow`]:{left:{_skip_check_:!0,value:Be}},[`&-placement-topRight > ${ae}-arrow`]:{right:{_skip_check_:!0,value:Be}}})),A(!!ct.bottom,{[[`&-placement-bottom > ${ae}-arrow`,`&-placement-bottomLeft > ${ae}-arrow`,`&-placement-bottomRight > ${ae}-arrow`].join(",")]:{top:Ce,transform:"translateY(-100%)"},[`&-placement-bottom > ${ae}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${ae}-arrow`]:{left:{_skip_check_:!0,value:Be}},[`&-placement-bottomRight > ${ae}-arrow`]:{right:{_skip_check_:!0,value:Be}}})),A(!!ct.left,{[[`&-placement-left > ${ae}-arrow`,`&-placement-leftTop > ${ae}-arrow`,`&-placement-leftBottom > ${ae}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Ce},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${ae}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${ae}-arrow`]:{top:Ie},[`&-placement-leftBottom > ${ae}-arrow`]:{bottom:Ie}})),A(!!ct.right,{[[`&-placement-right > ${ae}-arrow`,`&-placement-rightTop > ${ae}-arrow`,`&-placement-rightBottom > ${ae}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Ce},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${ae}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${ae}-arrow`]:{top:Ie},[`&-placement-rightBottom > ${ae}-arrow`]:{bottom:Ie}}))}}},70157:function(St,me,x){"use strict";x.d(me,{W:function(){return P},w:function(){return z}});var v=x(78600);function z(A){const{sizePopupArrow:W,borderRadiusXS:X,borderRadiusOuter:Y}=A,ie=W/2,ae=0,se=ie,Ie=Y*1/Math.sqrt(2),Be=ie-Y*(1-1/Math.sqrt(2)),Ce=ie-X*(1/Math.sqrt(2)),ct=Y*(Math.sqrt(2)-1)+X*(1/Math.sqrt(2)),nt=2*ie-Ce,Ge=ct,at=2*ie-Ie,Ye=Be,rt=2*ie-ae,Gt=se,yt=ie*Math.sqrt(2)+Y*(Math.sqrt(2)-2),Et=Y*(Math.sqrt(2)-1),ht=`polygon(${Et}px 100%, 50% ${Et}px, ${2*ie-Et}px 100%, ${Et}px 100%)`,Pe=`path('M ${ae} ${se} A ${Y} ${Y} 0 0 0 ${Ie} ${Be} L ${Ce} ${ct} A ${X} ${X} 0 0 1 ${nt} ${Ge} L ${at} ${Ye} A ${Y} ${Y} 0 0 0 ${rt} ${Gt} Z')`;return{arrowShadowWidth:yt,arrowPath:Pe,arrowPolygon:ht}}const P=(A,W,X)=>{const{sizePopupArrow:Y,arrowPolygon:ie,arrowPath:ae,arrowShadowWidth:se,borderRadiusXS:Ie,calc:Be}=A;return{pointerEvents:"none",width:Y,height:Y,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Y,height:Be(Y).div(2).equal(),background:W,clipPath:{_multi_value_:!0,value:[ie,ae]},content:'""'},"&::after":{content:'""',position:"absolute",width:se,height:se,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,v.bf)(Ie)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:X,zIndex:0,background:"transparent"}}}},90576:function(St,me,x){"use strict";x.d(me,{Z:function(){return hn}});var v=x(77617),z=x(20555),P=x(92310),A=x.n(P),W=x(79384),X=x(16514),Y=x(35372),ie=x(56348),ae=x(89308),se=x(39193),Ie=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Be=v.forwardRef(function(Nt,Te){var vt,ze=Nt.prefixCls,Vt=ze===void 0?"rc-switch":ze,Tt=Nt.className,un=Nt.checked,on=Nt.defaultChecked,Lr=Nt.disabled,Yr=Nt.loadingIcon,fi=Nt.checkedChildren,Xi=Nt.unCheckedChildren,Qi=Nt.onClick,hi=Nt.onChange,Go=Nt.onKeyDown,Mo=(0,ie.Z)(Nt,Ie),pe=(0,ae.Z)(!1,{value:un,defaultValue:on}),Ii=(0,Y.Z)(pe,2),Vi=Ii[0],ro=Ii[1];function ai(jn,wr){var oi=Vi;return Lr||(oi=jn,ro(oi),hi==null||hi(oi,wr)),oi}function Ms(jn){jn.which===se.Z.LEFT?ai(!1,jn):jn.which===se.Z.RIGHT&&ai(!0,jn),Go==null||Go(jn)}function Ar(jn){var wr=ai(!Vi,jn);Qi==null||Qi(wr,jn)}var Rt=A()(Vt,Tt,(vt={},(0,X.Z)(vt,"".concat(Vt,"-checked"),Vi),(0,X.Z)(vt,"".concat(Vt,"-disabled"),Lr),vt));return v.createElement("button",(0,W.Z)({},Mo,{type:"button",role:"switch","aria-checked":Vi,disabled:Lr,className:Rt,ref:Te,onKeyDown:Ms,onClick:Ar}),Yr,v.createElement("span",{className:"".concat(Vt,"-inner")},v.createElement("span",{className:"".concat(Vt,"-inner-checked")},fi),v.createElement("span",{className:"".concat(Vt,"-inner-unchecked")},Xi)))});Be.displayName="Switch";var Ce=Be,ct=x(20261),nt=x(58798),Ge=x(57801),at=x(20804),Ye=x(78600),rt=x(64993),Gt=x(91110),yt=x(79263),Et=x(90882);const ht=Nt=>{const{componentCls:Te,trackHeightSM:vt,trackPadding:ze,trackMinWidthSM:Vt,innerMinMarginSM:Tt,innerMaxMarginSM:un,handleSizeSM:on,calc:Lr}=Nt,Yr=`${Te}-inner`,fi=(0,Ye.bf)(Lr(on).add(Lr(ze).mul(2)).equal()),Xi=(0,Ye.bf)(Lr(un).mul(2).equal());return{[Te]:{[`&${Te}-small`]:{minWidth:Vt,height:vt,lineHeight:(0,Ye.bf)(vt),[`${Te}-inner`]:{paddingInlineStart:un,paddingInlineEnd:Tt,[`${Yr}-checked`]:{marginInlineStart:`calc(-100% + ${fi} - ${Xi})`,marginInlineEnd:`calc(100% - ${fi} + ${Xi})`},[`${Yr}-unchecked`]:{marginTop:Lr(vt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Te}-handle`]:{width:on,height:on},[`${Te}-loading-icon`]:{top:Lr(Lr(on).sub(Nt.switchLoadingIconSize)).div(2).equal(),fontSize:Nt.switchLoadingIconSize},[`&${Te}-checked`]:{[`${Te}-inner`]:{paddingInlineStart:Tt,paddingInlineEnd:un,[`${Yr}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Yr}-unchecked`]:{marginInlineStart:`calc(100% - ${fi} + ${Xi})`,marginInlineEnd:`calc(-100% + ${fi} - ${Xi})`}},[`${Te}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ye.bf)(Lr(on).add(ze).equal())})`}},[`&:not(${Te}-disabled):active`]:{[`&:not(${Te}-checked) ${Yr}`]:{[`${Yr}-unchecked`]:{marginInlineStart:Lr(Nt.marginXXS).div(2).equal(),marginInlineEnd:Lr(Nt.marginXXS).mul(-1).div(2).equal()}},[`&${Te}-checked ${Yr}`]:{[`${Yr}-checked`]:{marginInlineStart:Lr(Nt.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Lr(Nt.marginXXS).div(2).equal()}}}}}}},Pe=Nt=>{const{componentCls:Te,handleSize:vt,calc:ze}=Nt;return{[Te]:{[`${Te}-loading-icon${Nt.iconCls}`]:{position:"relative",top:ze(ze(vt).sub(Nt.fontSize)).div(2).equal(),color:Nt.switchLoadingIconColor,verticalAlign:"top"},[`&${Te}-checked ${Te}-loading-icon`]:{color:Nt.switchColor}}}},et=Nt=>{const{componentCls:Te,trackPadding:vt,handleBg:ze,handleShadow:Vt,handleSize:Tt,calc:un}=Nt,on=`${Te}-handle`;return{[Te]:{[on]:{position:"absolute",top:vt,insetInlineStart:vt,width:Tt,height:Tt,transition:`all ${Nt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ze,borderRadius:un(Tt).div(2).equal(),boxShadow:Vt,transition:`all ${Nt.switchDuration} ease-in-out`,content:'""'}},[`&${Te}-checked ${on}`]:{insetInlineStart:`calc(100% - ${(0,Ye.bf)(un(Tt).add(vt).equal())})`},[`&:not(${Te}-disabled):active`]:{[`${on}::before`]:{insetInlineEnd:Nt.switchHandleActiveInset,insetInlineStart:0},[`&${Te}-checked ${on}::before`]:{insetInlineEnd:0,insetInlineStart:Nt.switchHandleActiveInset}}}}},Oe=Nt=>{const{componentCls:Te,trackHeight:vt,trackPadding:ze,innerMinMargin:Vt,innerMaxMargin:Tt,handleSize:un,calc:on}=Nt,Lr=`${Te}-inner`,Yr=(0,Ye.bf)(on(un).add(on(ze).mul(2)).equal()),fi=(0,Ye.bf)(on(Tt).mul(2).equal());return{[Te]:{[Lr]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Tt,paddingInlineEnd:Vt,transition:`padding-inline-start ${Nt.switchDuration} ease-in-out, padding-inline-end ${Nt.switchDuration} ease-in-out`,[`${Lr}-checked, ${Lr}-unchecked`]:{display:"block",color:Nt.colorTextLightSolid,fontSize:Nt.fontSizeSM,transition:`margin-inline-start ${Nt.switchDuration} ease-in-out, margin-inline-end ${Nt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Lr}-checked`]:{marginInlineStart:`calc(-100% + ${Yr} - ${fi})`,marginInlineEnd:`calc(100% - ${Yr} + ${fi})`},[`${Lr}-unchecked`]:{marginTop:on(vt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Te}-checked ${Lr}`]:{paddingInlineStart:Vt,paddingInlineEnd:Tt,[`${Lr}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Lr}-unchecked`]:{marginInlineStart:`calc(100% - ${Yr} + ${fi})`,marginInlineEnd:`calc(-100% + ${Yr} - ${fi})`}},[`&:not(${Te}-disabled):active`]:{[`&:not(${Te}-checked) ${Lr}`]:{[`${Lr}-unchecked`]:{marginInlineStart:on(ze).mul(2).equal(),marginInlineEnd:on(ze).mul(-1).mul(2).equal()}},[`&${Te}-checked ${Lr}`]:{[`${Lr}-checked`]:{marginInlineStart:on(ze).mul(-1).mul(2).equal(),marginInlineEnd:on(ze).mul(2).equal()}}}}}},Ue=Nt=>{const{componentCls:Te,trackHeight:vt,trackMinWidth:ze}=Nt;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.Wf)(Nt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ze,height:vt,lineHeight:`${(0,Ye.bf)(vt)}`,verticalAlign:"middle",background:Nt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Nt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Te}-disabled)`]:{background:Nt.colorTextTertiary}}),(0,Gt.Qy)(Nt)),{[`&${Te}-checked`]:{background:Nt.switchColor,[`&:hover:not(${Te}-disabled)`]:{background:Nt.colorPrimaryHover}},[`&${Te}-loading, &${Te}-disabled`]:{cursor:"not-allowed",opacity:Nt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Te}-rtl`]:{direction:"rtl"}})}},je=Nt=>{const{fontSize:Te,lineHeight:vt,controlHeight:ze,colorWhite:Vt}=Nt,Tt=Te*vt,un=ze/2,on=2,Lr=Tt-on*2,Yr=un-on*2;return{trackHeight:Tt,trackHeightSM:un,trackMinWidth:Lr*2+on*4,trackMinWidthSM:Yr*2+on*2,trackPadding:on,handleBg:Vt,handleSize:Lr,handleSizeSM:Yr,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Lr/2,innerMaxMargin:Lr+on+on*2,innerMinMarginSM:Yr/2,innerMaxMarginSM:Yr+on+on*2}};var ft=(0,yt.I$)("Switch",Nt=>{const Te=(0,Et.TS)(Nt,{switchDuration:Nt.motionDurationMid,switchColor:Nt.colorPrimary,switchDisabledOpacity:Nt.opacityLoading,switchLoadingIconSize:Nt.calc(Nt.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Nt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ue(Te),Oe(Te),et(Te),Pe(Te),ht(Te)]},je),Ct=function(Nt,Te){var vt={};for(var ze in Nt)Object.prototype.hasOwnProperty.call(Nt,ze)&&Te.indexOf(ze)<0&&(vt[ze]=Nt[ze]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,ze=Object.getOwnPropertySymbols(Nt);Vt{const{prefixCls:vt,size:ze,disabled:Vt,loading:Tt,className:un,rootClassName:on,style:Lr,checked:Yr,value:fi,defaultChecked:Xi,defaultValue:Qi,onChange:hi}=Nt,Go=Ct(Nt,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Mo,pe]=(0,ae.Z)(!1,{value:Yr!=null?Yr:fi,defaultValue:Xi!=null?Xi:Qi}),{getPrefixCls:Ii,direction:Vi,switch:ro}=v.useContext(nt.E_),ai=v.useContext(Ge.Z),Ms=(Vt!=null?Vt:ai)||Tt,Ar=Ii("switch",vt),Rt=v.createElement("div",{className:`${Ar}-handle`},Tt&&v.createElement(z.Z,{className:`${Ar}-loading-icon`})),[jn,wr,oi]=ft(Ar),Ti=(0,at.Z)(ze),Bi=A()(ro==null?void 0:ro.className,{[`${Ar}-small`]:Ti==="small",[`${Ar}-loading`]:Tt,[`${Ar}-rtl`]:Vi==="rtl"},un,on,wr,oi),no=Object.assign(Object.assign({},ro==null?void 0:ro.style),Lr),Vr=function(){pe(arguments.length<=0?void 0:arguments[0]),hi==null||hi.apply(void 0,arguments)};return jn(v.createElement(ct.Z,{component:"Switch"},v.createElement(Ce,Object.assign({},Go,{checked:Mo,onChange:Vr,prefixCls:Ar,className:Bi,style:no,disabled:Ms,ref:Te,loadingIcon:Rt}))))});Xe.__ANT_SWITCH=!0;var hn=Xe},90008:function(St,me,x){"use strict";x.d(me,{Z:function(){return vi}});var v=x(77617),z={},P="rc-table-internal-hook",A=x(35372),W=x(33890),X=x(64693),Y=x(48897),ie=x(79161);function ae(Me){var Fe=v.createContext(void 0),Ut=function(An){var wn=An.value,gr=An.children,cr=v.useRef(wn);cr.current=wn;var Tr=v.useState(function(){return{getValue:function(){return cr.current},listeners:new Set}}),Nr=(0,A.Z)(Tr,1),Pi=Nr[0];return(0,X.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){Pi.listeners.forEach(function(Bn){Bn(wn)})})},[wn]),v.createElement(Fe.Provider,{value:Pi},gr)};return{Context:Fe,Provider:Ut,defaultValue:Me}}function se(Me,Fe){var Ut=(0,W.Z)(typeof Fe=="function"?Fe:function(Bn){if(Fe===void 0)return Bn;if(!Array.isArray(Fe))return Bn[Fe];var Or={};return Fe.forEach(function(Vn){Or[Vn]=Bn[Vn]}),Or}),fn=v.useContext(Me==null?void 0:Me.Context),An=fn||{},wn=An.listeners,gr=An.getValue,cr=v.useRef();cr.current=Ut(fn?gr():Me==null?void 0:Me.defaultValue);var Tr=v.useState({}),Nr=(0,A.Z)(Tr,2),Pi=Nr[1];return(0,X.Z)(function(){if(!fn)return;function Bn(Or){var Vn=Ut(Or);(0,Y.Z)(cr.current,Vn,!0)||Pi({})}return wn.add(Bn),function(){wn.delete(Bn)}},[fn]),cr.current}var Ie=x(79384),Be=x(17763);function Ce(){var Me=v.createContext(null);function Fe(){return v.useContext(Me)}function Ut(An,wn){var gr=(0,Be.Yr)(An),cr=function(Nr,Pi){var Bn=gr?{ref:Pi}:{},Or=v.useRef(0),Vn=v.useRef(Nr),Cr=Fe();return Cr!==null?v.createElement(An,(0,Ie.Z)({},Nr,Bn)):((!wn||wn(Vn.current,Nr))&&(Or.current+=1),Vn.current=Nr,v.createElement(Me.Provider,{value:Or.current},v.createElement(An,(0,Ie.Z)({},Nr,Bn))))};return gr?v.forwardRef(cr):cr}function fn(An,wn){var gr=(0,Be.Yr)(An),cr=function(Nr,Pi){var Bn=gr?{ref:Pi}:{};return Fe(),v.createElement(An,(0,Ie.Z)({},Nr,Bn))};return gr?v.memo(v.forwardRef(cr),wn):v.memo(cr,wn)}return{makeImmutable:Ut,responseImmutable:fn,useImmutableMark:Fe}}var ct=Ce(),nt=ct.makeImmutable,Ge=ct.responseImmutable,at=ct.useImmutableMark,Ye=Ce(),rt=Ye.makeImmutable,Gt=Ye.responseImmutable,yt=Ye.useImmutableMark,Et=ae(),ht=Et;function Pe(Me,Fe){var Ut=React.useRef(0);Ut.current+=1;var fn=React.useRef(Me),An=[];Object.keys(Me||{}).map(function(gr){var cr;(Me==null?void 0:Me[gr])!==((cr=fn.current)===null||cr===void 0?void 0:cr[gr])&&An.push(gr)}),fn.current=Me;var wn=React.useRef([]);return An.length&&(wn.current=An),React.useDebugValue(Ut.current),React.useDebugValue(wn.current.join(", ")),Fe&&console.log("".concat(Fe,":"),Ut.current,wn.current),Ut.current}var et=null,Oe=null,Ue=x(13255),je=x(54131),ft=x(16514),Ct=x(92310),Xe=x.n(Ct),hn=x(64913),Nt=x(64549),Te=x(32188),vt=v.createContext({renderWithProps:!1}),ze=vt,Vt="RC_TABLE_KEY";function Tt(Me){return Me==null?[]:Array.isArray(Me)?Me:[Me]}function un(Me){var Fe=[],Ut={};return Me.forEach(function(fn){for(var An=fn||{},wn=An.key,gr=An.dataIndex,cr=wn||Tt(gr).join("-")||Vt;Ut[cr];)cr="".concat(cr,"_next");Ut[cr]=!0,Fe.push(cr)}),Fe}function on(Me){return Me!=null}function Lr(Me){return Me&&(0,Ue.Z)(Me)==="object"&&!Array.isArray(Me)&&!v.isValidElement(Me)}function Yr(Me,Fe,Ut,fn,An,wn){var gr=v.useContext(ze),cr=yt(),Tr=(0,hn.Z)(function(){if(on(fn))return[fn];var Nr=Fe==null||Fe===""?[]:Array.isArray(Fe)?Fe:[Fe],Pi=(0,Nt.Z)(Me,Nr),Bn=Pi,Or=void 0;if(An){var Vn=An(Pi,Me,Ut);Lr(Vn)?(Bn=Vn.children,Or=Vn.props,gr.renderWithProps=!0):Bn=Vn}return[Bn,Or]},[cr,Me,fn,Fe,An,Ut],function(Nr,Pi){if(wn){var Bn=(0,A.Z)(Nr,2),Or=Bn[1],Vn=(0,A.Z)(Pi,2),Cr=Vn[1];return wn(Cr,Or)}return gr.renderWithProps?!0:!(0,Y.Z)(Nr,Pi,!0)});return Tr}function fi(Me,Fe,Ut,fn){var An=Me+Fe-1;return Me<=fn&&An>=Ut}function Xi(Me,Fe){return se(ht,function(Ut){var fn=fi(Me,Fe||1,Ut.hoverStartRow,Ut.hoverEndRow);return[fn,Ut.onHover]})}var Qi=x(46142),hi=function(Fe){var Ut=Fe.ellipsis,fn=Fe.rowType,An=Fe.children,wn,gr=Ut===!0?{showTitle:!0}:Ut;return gr&&(gr.showTitle||fn==="header")&&(typeof An=="string"||typeof An=="number"?wn=An.toString():v.isValidElement(An)&&typeof An.props.children=="string"&&(wn=An.props.children)),wn};function Go(Me){var Fe,Ut,fn,An,wn,gr,cr,Tr,Nr=Me.component,Pi=Me.children,Bn=Me.ellipsis,Or=Me.scope,Vn=Me.prefixCls,Cr=Me.className,kn=Me.align,yr=Me.record,Ir=Me.render,ei=Me.dataIndex,ri=Me.renderIndex,Ci=Me.shouldCellUpdate,Oi=Me.index,vo=Me.rowType,wo=Me.colSpan,jo=Me.rowSpan,cs=Me.fixLeft,oo=Me.fixRight,ha=Me.firstFixLeft,xo=Me.lastFixLeft,ki=Me.firstFixRight,Os=Me.lastFixRight,Es=Me.appendNode,Cs=Me.additionalProps,$t=Cs===void 0?{}:Cs,ar=Me.isSticky,si="".concat(Vn,"-cell"),Io=se(ht,["supportSticky","allColumnsFixedLeft"]),ls=Io.supportSticky,ua=Io.allColumnsFixedLeft,lo=Yr(yr,ei,ri,Pi,Ir,Ci),So=(0,A.Z)(lo,2),No=So[0],Ls=So[1],ma={},Ne=typeof cs=="number"&&ls,ja=typeof oo=="number"&&ls;Ne&&(ma.position="sticky",ma.left=cs),ja&&(ma.position="sticky",ma.right=oo);var Ol=(Fe=(Ut=(fn=Ls==null?void 0:Ls.colSpan)!==null&&fn!==void 0?fn:$t.colSpan)!==null&&Ut!==void 0?Ut:wo)!==null&&Fe!==void 0?Fe:1,ll=(An=(wn=(gr=Ls==null?void 0:Ls.rowSpan)!==null&&gr!==void 0?gr:$t.rowSpan)!==null&&wn!==void 0?wn:jo)!==null&&An!==void 0?An:1,ta=Xi(Oi,ll),ga=(0,A.Z)(ta,2),qa=ga[0],bs=ga[1],$i=(0,Qi.zX)(function(yi){var ss;yr&&bs(Oi,Oi+ll-1),$t==null||(ss=$t.onMouseEnter)===null||ss===void 0||ss.call($t,yi)}),$s=(0,Qi.zX)(function(yi){var ss;yr&&bs(-1,-1),$t==null||(ss=$t.onMouseLeave)===null||ss===void 0||ss.call($t,yi)});if(Ol===0||ll===0)return null;var Ko=(cr=$t.title)!==null&&cr!==void 0?cr:hi({rowType:vo,ellipsis:Bn,children:No}),qs=Xe()(si,Cr,(Tr={},(0,ft.Z)(Tr,"".concat(si,"-fix-left"),Ne&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-left-first"),ha&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-left-last"),xo&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-left-all"),xo&&ua&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-right"),ja&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-right-first"),ki&&ls),(0,ft.Z)(Tr,"".concat(si,"-fix-right-last"),Os&&ls),(0,ft.Z)(Tr,"".concat(si,"-ellipsis"),Bn),(0,ft.Z)(Tr,"".concat(si,"-with-append"),Es),(0,ft.Z)(Tr,"".concat(si,"-fix-sticky"),(Ne||ja)&&ar&&ls),(0,ft.Z)(Tr,"".concat(si,"-row-hover"),!Ls&&qa),Tr),$t.className,Ls==null?void 0:Ls.className),pa={};kn&&(pa.textAlign=kn);var vl=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},ma),$t.style),pa),Ls==null?void 0:Ls.style),Wa=No;return(0,Ue.Z)(Wa)==="object"&&!Array.isArray(Wa)&&!v.isValidElement(Wa)&&(Wa=null),Bn&&(xo||ki)&&(Wa=v.createElement("span",{className:"".concat(si,"-content")},Wa)),v.createElement(Nr,(0,Ie.Z)({},Ls,$t,{className:qs,style:vl,title:Ko,scope:Or,onMouseEnter:$i,onMouseLeave:$s,colSpan:Ol!==1?Ol:null,rowSpan:ll!==1?ll:null}),Es,Wa)}var Mo=v.memo(Go);function pe(Me,Fe,Ut,fn,An,wn){var gr=Ut[Me]||{},cr=Ut[Fe]||{},Tr,Nr;gr.fixed==="left"?Tr=fn.left[An==="rtl"?Fe:Me]:cr.fixed==="right"&&(Nr=fn.right[An==="rtl"?Me:Fe]);var Pi=!1,Bn=!1,Or=!1,Vn=!1,Cr=Ut[Fe+1],kn=Ut[Me-1],yr=!(wn!=null&&wn.children);if(An==="rtl"){if(Tr!==void 0){var Ir=kn&&kn.fixed==="left";Vn=!Ir&&yr}else if(Nr!==void 0){var ei=Cr&&Cr.fixed==="right";Or=!ei&&yr}}else if(Tr!==void 0){var ri=Cr&&Cr.fixed==="left";Pi=!ri&&yr}else if(Nr!==void 0){var Ci=kn&&kn.fixed==="right";Bn=!Ci&&yr}return{fixLeft:Tr,fixRight:Nr,lastFixLeft:Pi,firstFixRight:Bn,lastFixRight:Or,firstFixLeft:Vn,isSticky:fn.isSticky}}var Ii=v.createContext({}),Vi=Ii;function ro(Me){var Fe=Me.className,Ut=Me.index,fn=Me.children,An=Me.colSpan,wn=An===void 0?1:An,gr=Me.rowSpan,cr=Me.align,Tr=se(ht,["prefixCls","direction"]),Nr=Tr.prefixCls,Pi=Tr.direction,Bn=v.useContext(Vi),Or=Bn.scrollColumnIndex,Vn=Bn.stickyOffsets,Cr=Bn.flattenColumns,kn=Bn.columns,yr=Ut+wn-1,Ir=yr+1===Or?wn+1:wn,ei=pe(Ut,Ut+Ir-1,Cr,Vn,Pi,kn==null?void 0:kn[Ut]);return v.createElement(Mo,(0,Ie.Z)({className:Fe,index:Ut,component:"td",prefixCls:Nr,record:null,dataIndex:null,align:cr,colSpan:Ir,rowSpan:gr,render:function(){return fn}},ei))}var ai=x(56348),Ms=["children"];function Ar(Me){var Fe=Me.children,Ut=(0,ai.Z)(Me,Ms);return v.createElement("tr",Ut,Fe)}function Rt(Me){var Fe=Me.children;return Fe}Rt.Row=Ar,Rt.Cell=ro;var jn=Rt;function wr(Me){var Fe=Me.children,Ut=Me.stickyOffsets,fn=Me.flattenColumns,An=Me.columns,wn=se(ht,"prefixCls"),gr=fn.length-1,cr=fn[gr],Tr=v.useMemo(function(){return{stickyOffsets:Ut,flattenColumns:fn,scrollColumnIndex:cr!=null&&cr.scrollbar?gr:null,columns:An}},[cr,fn,gr,Ut,An]);return v.createElement(Vi.Provider,{value:Tr},v.createElement("tfoot",{className:"".concat(wn,"-summary")},Fe))}var oi=Gt(wr),Ti=jn,Bi=x(28647),no=x(66209),Vr=x(45897),Rn=x(34112),Xt=x(64834);function Sn(Me,Fe,Ut,fn,An,wn,gr){Me.push({record:Fe,indent:Ut,index:gr});var cr=wn(Fe),Tr=An==null?void 0:An.has(cr);if(Fe&&Array.isArray(Fe[fn])&&Tr)for(var Nr=0;Nr1?ha-1:0),ki=1;ki=1?Oi:""),style:(0,je.Z)((0,je.Z)({},Ut),Ir==null?void 0:Ir.style)}),Cr.map(function(cs,oo){var ha=cs.render,xo=cs.dataIndex,ki=cs.className,Os=kt(Or,cs,oo,Tr,An),Es=Os.key,Cs=Os.fixedInfo,$t=Os.appendCellNode,ar=Os.additionalCellProps;return v.createElement(Mo,(0,Ie.Z)({className:ki,ellipsis:cs.ellipsis,align:cs.align,scope:cs.rowScope,component:cs.rowScope?Bn:Pi,prefixCls:Vn,key:Es,record:fn,index:An,renderIndex:wn,dataIndex:xo,render:ha,shouldCellUpdate:cs.shouldCellUpdate},Cs,{appendNode:$t,additionalProps:ar}))})),wo;if(ri&&(Ci.current||ei)){var jo=yr(fn,An,Tr+1,ei);wo=v.createElement(tt,{expanded:ei,className:Xe()("".concat(Vn,"-expanded-row"),"".concat(Vn,"-expanded-row-level-").concat(Tr+1),Oi),prefixCls:Vn,component:Nr,cellComponent:Pi,colSpan:Cr.length,isEmpty:!1},jo)}return v.createElement(v.Fragment,null,vo,wo)}var vr=Gt(vn);function qr(Me){var Fe=Me.columnKey,Ut=Me.onColumnResize,fn=v.useRef();return v.useEffect(function(){fn.current&&Ut(Fe,fn.current.offsetWidth)},[]),v.createElement(Bi.Z,{data:Fe},v.createElement("td",{ref:fn,style:{padding:0,border:0,height:0}},v.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ni(Me){var Fe=Me.prefixCls,Ut=Me.columnsKey,fn=Me.onColumnResize;return v.createElement("tr",{"aria-hidden":"true",className:"".concat(Fe,"-measure-row"),style:{height:0,fontSize:0}},v.createElement(Bi.Z.Collection,{onBatchResize:function(wn){wn.forEach(function(gr){var cr=gr.data,Tr=gr.size;fn(cr,Tr.offsetWidth)})}},Ut.map(function(An){return v.createElement(qr,{key:An,columnKey:An,onColumnResize:fn})})))}function li(Me){var Fe=Me.data,Ut=Me.measureColumnWidth,fn=se(ht,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),An=fn.prefixCls,wn=fn.getComponent,gr=fn.onColumnResize,cr=fn.flattenColumns,Tr=fn.getRowKey,Nr=fn.expandedKeys,Pi=fn.childrenColumnName,Bn=fn.emptyNode,Or=Pn(Fe,Pi,Nr,Tr),Vn=v.useRef({renderWithProps:!1}),Cr=wn(["body","wrapper"],"tbody"),kn=wn(["body","row"],"tr"),yr=wn(["body","cell"],"td"),Ir=wn(["body","cell"],"th"),ei;Fe.length?ei=Or.map(function(Ci,Oi){var vo=Ci.record,wo=Ci.indent,jo=Ci.index,cs=Tr(vo,Oi);return v.createElement(vr,{key:cs,rowKey:cs,record:vo,index:Oi,renderIndex:jo,rowComponent:kn,cellComponent:yr,scopeCellComponent:Ir,getRowKey:Tr,indent:wo})}):ei=v.createElement(tt,{expanded:!0,className:"".concat(An,"-placeholder"),prefixCls:An,component:kn,cellComponent:yr,colSpan:cr.length,isEmpty:!0},Bn);var ri=un(cr);return v.createElement(ze.Provider,{value:Vn.current},v.createElement(Cr,{className:"".concat(An,"-tbody")},Ut&&v.createElement(Ni,{prefixCls:An,columnsKey:ri,onColumnResize:gr}),ei))}var Un=Gt(li),dn=["expandable"],xt="RC_TABLE_INTERNAL_COL_DEFINE";function it(Me){var Fe=Me.expandable,Ut=(0,ai.Z)(Me,dn),fn;return"expandable"in Me?fn=(0,je.Z)((0,je.Z)({},Ut),Fe):fn=Ut,fn.showExpandColumn===!1&&(fn.expandIconColumnIndex=-1),fn}var Bt=["columnType"];function rn(Me){for(var Fe=Me.colWidths,Ut=Me.columns,fn=Me.columCount,An=[],wn=fn||Ut.length,gr=!1,cr=wn-1;cr>=0;cr-=1){var Tr=Fe[cr],Nr=Ut&&Ut[cr],Pi=Nr&&Nr[xt];if(Tr||Pi||gr){var Bn=Pi||{},Or=Bn.columnType,Vn=(0,ai.Z)(Bn,Bt);An.unshift(v.createElement("col",(0,Ie.Z)({key:cr,style:{width:Tr}},Vn))),gr=!0}}return v.createElement("colgroup",null,An)}var ir=rn,tr=x(49397),Jn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function nn(Me,Fe){return(0,v.useMemo)(function(){for(var Ut=[],fn=0;fn1?"colgroup":"col":null,ellipsis:yr.ellipsis,align:yr.align,component:yr.title?wn:gr,prefixCls:Pi,key:Vn[kn]},Ir,{additionalProps:ei,rowType:"header"}))}))}var bo=jr;function zt(Me){var Fe=[];function Ut(gr,cr){var Tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Fe[Tr]=Fe[Tr]||[];var Nr=cr,Pi=gr.filter(Boolean).map(function(Bn){var Or={key:Bn.key,className:Bn.className||"",children:Bn.title,column:Bn,colStart:Nr},Vn=1,Cr=Bn.children;return Cr&&Cr.length>0&&(Vn=Ut(Cr,Nr,Tr+1).reduce(function(kn,yr){return kn+yr},0),Or.hasSubColumns=!0),"colSpan"in Bn&&(Vn=Bn.colSpan),"rowSpan"in Bn&&(Or.rowSpan=Bn.rowSpan),Or.colSpan=Vn,Or.colEnd=Or.colStart+Vn-1,Fe[Tr].push(Or),Nr+=Vn,Vn});return Pi}Ut(Me,0);for(var fn=Fe.length,An=function(cr){Fe[cr].forEach(function(Tr){!("rowSpan"in Tr)&&!Tr.hasSubColumns&&(Tr.rowSpan=fn-cr)})},wn=0;wn1&&arguments[1]!==void 0?arguments[1]:"";return typeof Fe=="number"?Fe:Fe.endsWith("%")?Me*parseFloat(Fe)/100:null}function Er(Me,Fe,Ut){return v.useMemo(function(){if(Fe&&Fe>0){var fn=0,An=0;Me.forEach(function(Or){var Vn=Pr(Fe,Or.width);Vn?fn+=Vn:An+=1});var wn=Math.max(Fe,Ut),gr=Math.max(wn-fn,An),cr=An,Tr=gr/An,Nr=0,Pi=Me.map(function(Or){var Vn=(0,je.Z)({},Or),Cr=Pr(Fe,Vn.width);if(Cr)Vn.width=Cr;else{var kn=Math.floor(Tr);Vn.width=cr===1?gr:kn,gr-=kn,cr-=1}return Nr+=Vn.width,Vn});if(Nr0?(0,je.Z)((0,je.Z)({},Fe),{},{children:Ei(Ut)}):Fe})}function Zi(Me){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Me.filter(function(Ut){return Ut&&(0,Ue.Z)(Ut)==="object"}).reduce(function(Ut,fn,An){var wn=fn.fixed,gr=wn===!0?"left":wn,cr="".concat(Fe,"-").concat(An),Tr=fn.children;return Tr&&Tr.length>0?[].concat((0,tr.Z)(Ut),(0,tr.Z)(Zi(Tr,cr).map(function(Nr){return(0,je.Z)({fixed:gr},Nr)}))):[].concat((0,tr.Z)(Ut),[(0,je.Z)((0,je.Z)({key:cr},fn),{},{fixed:gr})])},[])}function Kr(Me){return Me.map(function(Fe){var Ut=Fe.fixed,fn=(0,ai.Z)(Fe,Gr),An=Ut;return Ut==="left"?An="right":Ut==="right"&&(An="left"),(0,je.Z)({fixed:An},fn)})}function Xr(Me,Fe){var Ut=Me.prefixCls,fn=Me.columns,An=Me.children,wn=Me.expandable,gr=Me.expandedKeys,cr=Me.columnTitle,Tr=Me.getRowKey,Nr=Me.onTriggerExpand,Pi=Me.expandIcon,Bn=Me.rowExpandable,Or=Me.expandIconColumnIndex,Vn=Me.direction,Cr=Me.expandRowByClick,kn=Me.columnWidth,yr=Me.fixed,Ir=Me.scrollWidth,ei=Me.clientWidth,ri=v.useMemo(function(){var xo=fn||zr(An)||[];return Ei(xo.slice())},[fn,An]),Ci=v.useMemo(function(){if(wn){var xo,ki=ri.slice();if(!ki.includes(z)){var Os=Or||0;Os>=0&&ki.splice(Os,0,z)}var Es=ki.indexOf(z);ki=ki.filter(function(si,Io){return si!==z||Io===Es});var Cs=ri[Es],$t;(yr==="left"||yr)&&!Or?$t="left":(yr==="right"||yr)&&Or===ri.length?$t="right":$t=Cs?Cs.fixed:null;var ar=(xo={},(0,ft.Z)(xo,xt,{className:"".concat(Ut,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ft.Z)(xo,"title",cr),(0,ft.Z)(xo,"fixed",$t),(0,ft.Z)(xo,"className","".concat(Ut,"-row-expand-icon-cell")),(0,ft.Z)(xo,"width",kn),(0,ft.Z)(xo,"render",function(Io,ls,ua){var lo=Tr(ls,ua),So=gr.has(lo),No=Bn?Bn(ls):!0,Ls=Pi({prefixCls:Ut,expanded:So,expandable:No,record:ls,onExpand:Nr});return Cr?v.createElement("span",{onClick:function(Ne){return Ne.stopPropagation()}},Ls):Ls}),xo);return ki.map(function(si){return si===z?ar:si})}return ri.filter(function(si){return si!==z})},[wn,ri,Tr,gr,Pi,Vn]),Oi=v.useMemo(function(){var xo=Ci;return Fe&&(xo=Fe(xo)),xo.length||(xo=[{render:function(){return null}}]),xo},[Fe,Ci,Vn]),vo=v.useMemo(function(){return Vn==="rtl"?Kr(Zi(Oi)):Zi(Oi)},[Oi,Vn,Ir]),wo=v.useMemo(function(){for(var xo=-1,ki=vo.length-1;ki>=0;ki-=1){var Os=vo[ki].fixed;if(Os==="left"||Os===!0){xo=ki;break}}if(xo>=0)for(var Es=0;Es<=xo;Es+=1){var Cs=vo[Es].fixed;if(Cs!=="left"&&Cs!==!0)return!0}var $t=vo.findIndex(function(Io){var ls=Io.fixed;return ls==="right"});if($t>=0)for(var ar=$t;ar=Bn&&($t=Bn-Or),gr({scrollLeft:$t/Bn*(Pi+2)}),ei.current.x=ki.pageX},oo=function(){if(wn.current){var ki=(0,Qr.os)(wn.current).top,Os=ki+wn.current.offsetHeight,Es=Tr===window?document.documentElement.scrollTop+window.innerHeight:(0,Qr.os)(Tr).top+Tr.clientHeight;Os-(0,Rn.Z)()<=Es||ki>=Es-cr?Ir(function(Cs){return(0,je.Z)((0,je.Z)({},Cs),{},{isHiddenScrollBar:!0})}):Ir(function(Cs){return(0,je.Z)((0,je.Z)({},Cs),{},{isHiddenScrollBar:!1})})}},ha=function(ki){Ir(function(Os){return(0,je.Z)((0,je.Z)({},Os),{},{scrollLeft:ki/Pi*Bn||0})})};return v.useImperativeHandle(Ut,function(){return{setScrollLeft:ha}}),v.useEffect(function(){var xo=(0,Ts.Z)(document.body,"mouseup",wo,!1),ki=(0,Ts.Z)(document.body,"mousemove",cs,!1);return oo(),function(){xo.remove(),ki.remove()}},[Or,Oi]),v.useEffect(function(){var xo=(0,Ts.Z)(Tr,"scroll",oo,!1),ki=(0,Ts.Z)(window,"resize",oo,!1);return function(){xo.remove(),ki.remove()}},[Tr]),v.useEffect(function(){yr.isHiddenScrollBar||Ir(function(xo){var ki=wn.current;return ki?(0,je.Z)((0,je.Z)({},xo),{},{scrollLeft:ki.scrollLeft/ki.scrollWidth*ki.clientWidth}):xo})},[yr.isHiddenScrollBar]),Pi<=Bn||!Or||yr.isHiddenScrollBar?null:v.createElement("div",{style:{height:(0,Rn.Z)(),width:Bn,bottom:cr},className:"".concat(Nr,"-sticky-scroll")},v.createElement("div",{onMouseDown:jo,ref:Vn,className:Xe()("".concat(Nr,"-sticky-scroll-bar"),(0,ft.Z)({},"".concat(Nr,"-sticky-scroll-bar-active"),Oi)),style:{width:"".concat(Or,"px"),transform:"translate3d(".concat(yr.scrollLeft,"px, 0, 0)")}}))},Ri=v.forwardRef(Ai);function To(Me){return null}var yo=To;function ao(Me){return null}var Bs=ao,fa="rc-table",ba=[],Rs={};function Ds(){return"No Data"}function el(Me,Fe){var Ut,fn=(0,je.Z)({rowKey:"key",prefixCls:fa,emptyText:Ds},Me),An=fn.prefixCls,wn=fn.className,gr=fn.rowClassName,cr=fn.style,Tr=fn.data,Nr=fn.rowKey,Pi=fn.scroll,Bn=fn.tableLayout,Or=fn.direction,Vn=fn.title,Cr=fn.footer,kn=fn.summary,yr=fn.caption,Ir=fn.id,ei=fn.showHeader,ri=fn.components,Ci=fn.emptyText,Oi=fn.onRow,vo=fn.onHeaderRow,wo=fn.internalHooks,jo=fn.transformColumns,cs=fn.internalRefs,oo=fn.tailor,ha=fn.getContainerWidth,xo=fn.sticky,ki=Tr||ba,Os=!!ki.length,Es=wo===P,Cs=v.useCallback(function(Mh,df){return(0,Nt.Z)(ri,Mh)||df},[ri]),$t=v.useMemo(function(){return typeof Nr=="function"?Nr:function(Mh){var df=Mh&&Mh[Nr];return df}},[Nr]),ar=Cs(["body"]),si=Ln(),Io=(0,A.Z)(si,3),ls=Io[0],ua=Io[1],lo=Io[2],So=Br(fn,ki,$t),No=(0,A.Z)(So,6),Ls=No[0],ma=No[1],Ne=No[2],ja=No[3],Ol=No[4],ll=No[5],ta=Pi==null?void 0:Pi.x,ga=v.useState(0),qa=(0,A.Z)(ga,2),bs=qa[0],$i=qa[1],$s=Qo((0,je.Z)((0,je.Z)((0,je.Z)({},fn),Ls),{},{expandable:!!Ls.expandedRowRender,columnTitle:Ls.columnTitle,expandedKeys:Ne,getRowKey:$t,onTriggerExpand:ll,expandIcon:ja,expandIconColumnIndex:Ls.expandIconColumnIndex,direction:Or,scrollWidth:Es&&oo&&typeof ta=="number"?ta:null,clientWidth:bs}),Es?jo:null),Ko=(0,A.Z)($s,4),qs=Ko[0],pa=Ko[1],vl=Ko[2],Wa=Ko[3],yi=vl!=null?vl:ta,ss=v.useMemo(function(){return{columns:qs,flattenColumns:pa}},[qs,pa]),Ws=v.useRef(),Ra=v.useRef(),Nl=v.useRef(),zu=v.useRef();v.useImperativeHandle(Fe,function(){return{nativeElement:Ws.current,scrollTo:function(df){var um;if(Nl.current instanceof HTMLElement){var qg=df.index,qp=df.top,Nu=df.key;if(qp){var Kg;(Kg=Nl.current)===null||Kg===void 0||Kg.scrollTo({top:qp})}else{var Nm,rc=Nu!=null?Nu:$t(ki[qg]);(Nm=Nl.current.querySelector('[data-row-key="'.concat(rc,'"]')))===null||Nm===void 0||Nm.scrollIntoView()}}else(um=Nl.current)!==null&&um!==void 0&&um.scrollTo&&Nl.current.scrollTo(df)}}});var Va=v.useRef(),Sc=v.useState(!1),Il=(0,A.Z)(Sc,2),Bc=Il[0],xu=Il[1],Yc=v.useState(!1),Hl=(0,A.Z)(Yc,2),Yh=Hl[0],gc=Hl[1],Kc=ii(new Map),uc=(0,A.Z)(Kc,2),yl=uc[0],rd=uc[1],Zf=un(pa),$c=Zf.map(function(Mh){return yl.get(Mh)}),fd=v.useMemo(function(){return $c},[$c.join("_")]),kh=ko(fd,pa,Or),Fd=Pi&&on(Pi.y),Uo=Pi&&on(yi)||!!Ls.fixed,rl=Uo&&pa.some(function(Mh){var df=Mh.fixed;return df}),_c=v.useRef(),jh=Yi(xo,An),Ed=jh.isSticky,Rg=jh.offsetHeader,Hs=jh.offsetSummary,we=jh.offsetScroll,Ee=jh.stickyClassName,He=jh.container,Jt=v.useMemo(function(){return kn==null?void 0:kn(ki)},[kn,ki]),xr=(Fd||Ed)&&v.isValidElement(Jt)&&Jt.type===jn&&Jt.props.fixed,Hn,In,Jr;Fd&&(In={overflowY:"scroll",maxHeight:Pi.y}),Uo&&(Hn={overflowX:"auto"},Fd||(In={overflowY:"hidden"}),Jr={width:yi===!0?"auto":yi,minWidth:"100%"});var _o=v.useCallback(function(Mh,df){(0,no.Z)(Ws.current)&&rd(function(um){if(um.get(Mh)!==df){var qg=new Map(um);return qg.set(Mh,df),qg}return um})},[]),Xo=qi(null),Ho=(0,A.Z)(Xo,2),Is=Ho[0],sa=Ho[1];function ds(Mh,df){df&&(typeof df=="function"?df(Mh):df.scrollLeft!==Mh&&(df.scrollLeft=Mh,df.scrollLeft!==Mh&&setTimeout(function(){df.scrollLeft=Mh},0)))}var ia=(0,W.Z)(function(Mh){var df=Mh.currentTarget,um=Mh.scrollLeft,qg=Or==="rtl",qp=typeof um=="number"?um:df.scrollLeft,Nu=df||Rs;if(!sa()||sa()===Nu){var Kg;Is(Nu),ds(qp,Ra.current),ds(qp,Nl.current),ds(qp,Va.current),ds(qp,(Kg=_c.current)===null||Kg===void 0?void 0:Kg.setScrollLeft)}var Nm=df||Ra.current;if(Nm){var rc=Nm.scrollWidth,Du=Nm.clientWidth;if(rc===Du){xu(!1),gc(!1);return}qg?(xu(-qp0)):(xu(qp>0),gc(qp1?yr-Os:0,Cs=(0,je.Z)((0,je.Z)((0,je.Z)({},jo),Nr),{},{flex:"0 0 ".concat(Os,"px"),width:"".concat(Os,"px"),marginRight:Es,pointerEvents:"auto"}),$t=v.useMemo(function(){return Bn?xo<=1:oo===0||xo===0||xo>1},[xo,oo,Bn]);$t?Cs.visibility="hidden":Bn&&(Cs.height=Or==null?void 0:Or(xo));var ar=$t?function(){return null}:Vn,si={};return(xo===0||oo===0)&&(si.rowSpan=1,si.colSpan=1),v.createElement(Mo,(0,Ie.Z)({className:Xe()(kn,Pi),ellipsis:Ut.ellipsis,align:Ut.align,scope:Ut.rowScope,component:gr,prefixCls:Fe.prefixCls,key:Ci,record:Tr,index:wn,renderIndex:cr,dataIndex:Cr,render:ar,shouldCellUpdate:Ut.shouldCellUpdate},Oi,{appendNode:vo,additionalProps:(0,je.Z)((0,je.Z)({},wo),{},{style:Cs},si)}))}var Ao=Ui,rs=["data","index","className","rowKey","style","extra","getHeight"],ps=v.forwardRef(function(Me,Fe){var Ut=Me.data,fn=Me.index,An=Me.className,wn=Me.rowKey,gr=Me.style,cr=Me.extra,Tr=Me.getHeight,Nr=(0,ai.Z)(Me,rs),Pi=Ut.record,Bn=Ut.indent,Or=Ut.index,Vn=se(ht,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Cr=Vn.scrollX,kn=Vn.flattenColumns,yr=Vn.prefixCls,Ir=Vn.fixColumn,ei=Vn.componentWidth,ri=se(Kt,["getComponent"]),Ci=ri.getComponent,Oi=hr(Pi,wn,fn,Bn),vo=Ci(["body","row"],"div"),wo=Ci(["body","cell"],"div"),jo=Oi.rowSupportExpand,cs=Oi.expanded,oo=Oi.rowProps,ha=Oi.expandedRowRender,xo=Oi.expandedRowClassName,ki;if(jo&&cs){var Os=ha(Pi,fn,Bn+1,cs),Es=xo==null?void 0:xo(Pi,fn,Bn),Cs={};Ir&&(Cs={style:(0,ft.Z)({},"--virtual-width","".concat(ei,"px"))});var $t="".concat(yr,"-expanded-row-cell");ki=v.createElement(vo,{className:Xe()("".concat(yr,"-expanded-row"),"".concat(yr,"-expanded-row-level-").concat(Bn+1),Es)},v.createElement(Mo,{component:wo,prefixCls:yr,className:Xe()($t,(0,ft.Z)({},"".concat($t,"-fixed"),Ir)),additionalProps:Cs},Os))}var ar=(0,je.Z)((0,je.Z)({},gr),{},{width:Cr});cr&&(ar.position="absolute",ar.pointerEvents="none");var si=v.createElement(vo,(0,Ie.Z)({},oo,Nr,{ref:jo?null:Fe,className:Xe()(An,"".concat(yr,"-row"),oo==null?void 0:oo.className,(0,ft.Z)({},"".concat(yr,"-row-extra"),cr)),style:(0,je.Z)((0,je.Z)({},ar),oo==null?void 0:oo.style)}),kn.map(function(Io,ls){return v.createElement(Ao,{key:ls,component:wo,rowInfo:Oi,column:Io,colIndex:ls,indent:Bn,index:fn,renderIndex:Or,record:Pi,inverse:cr,getHeight:Tr})}));return jo?v.createElement("div",{ref:Fe},si,ki):si}),Po=Gt(ps),$a=Po,nl=v.forwardRef(function(Me,Fe){var Ut=Me.data,fn=Me.onScroll,An=se(ht,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),wn=An.flattenColumns,gr=An.onColumnResize,cr=An.getRowKey,Tr=An.expandedKeys,Nr=An.prefixCls,Pi=An.childrenColumnName,Bn=An.emptyNode,Or=An.scrollX,Vn=se(Kt),Cr=Vn.sticky,kn=Vn.scrollY,yr=Vn.listItemHeight,Ir=Vn.getComponent,ei=v.useRef(),ri=Pn(Ut,Pi,Tr,cr),Ci=v.useMemo(function(){var Es=0;return wn.map(function(Cs){var $t=Cs.width,ar=Cs.key;return Es+=$t,[ar,$t,Es]})},[wn]),Oi=v.useMemo(function(){return Ci.map(function(Es){return Es[2]})},[Ci]);v.useEffect(function(){Ci.forEach(function(Es){var Cs=(0,A.Z)(Es,2),$t=Cs[0],ar=Cs[1];gr($t,ar)})},[Ci]),v.useImperativeHandle(Fe,function(){var Es={scrollTo:function($t){var ar;(ar=ei.current)===null||ar===void 0||ar.scrollTo($t)}};return Object.defineProperty(Es,"scrollLeft",{get:function(){var $t;return(($t=ei.current)===null||$t===void 0?void 0:$t.getScrollInfo().x)||0},set:function($t){var ar;(ar=ei.current)===null||ar===void 0||ar.scrollTo({left:$t})}}),Es});var vo=function(Cs,$t){var ar,si=(ar=ri[$t])===null||ar===void 0?void 0:ar.record,Io=Cs.onCell;if(Io){var ls,ua=Io(si,$t);return(ls=ua==null?void 0:ua.rowSpan)!==null&&ls!==void 0?ls:1}return 1},wo=function(Cs){var $t=Cs.start,ar=Cs.end,si=Cs.getSize,Io=Cs.offsetY;if(ar<0)return null;for(var ls=wn.filter(function(ga){return vo(ga,$t)===0}),ua=$t,lo=function(qa){if(ls=ls.filter(function(bs){return vo(bs,qa)===0}),!ls.length)return ua=qa,1},So=$t;So>=0&&!lo(So);So-=1);for(var No=wn.filter(function(ga){return vo(ga,ar)!==1}),Ls=ar,ma=function(qa){if(No=No.filter(function(bs){return vo(bs,qa)!==1}),!No.length)return Ls=Math.max(qa-1,ar),1},Ne=ar;Ne1})&&ja.push(qa)},ll=ua;ll<=Ls;ll+=1)Ol(ll);var ta=ja.map(function(ga){var qa=ri[ga],bs=cr(qa.record,ga),$i=function(qs){var pa=ga+qs-1,vl=cr(ri[pa].record,pa),Wa=si(bs,vl);return Wa.bottom-Wa.top},$s=si(bs);return v.createElement($a,{key:ga,data:qa,rowKey:bs,index:ga,style:{top:-Io+$s.top},extra:!0,getHeight:$i})});return ta},jo=v.useMemo(function(){return{columnsOffset:Oi}},[Oi]),cs="".concat(Nr,"-tbody"),oo=Ir(["body","wrapper"]),ha=Ir(["body","row"],"div"),xo=Ir(["body","cell"],"div"),ki;if(ri.length){var Os={};Cr&&(Os.position="sticky",Os.bottom=0,(0,Ue.Z)(Cr)==="object"&&Cr.offsetScroll&&(Os.bottom=Cr.offsetScroll)),ki=v.createElement(Zt.Z,{fullHeight:!1,ref:ei,styles:{horizontalScrollBar:Os},className:Xe()(cs,"".concat(cs,"-virtual")),height:kn,itemHeight:yr||24,data:ri,itemKey:function(Cs){return cr(Cs.record)},component:oo,scrollWidth:Or,onVirtualScroll:function(Cs){var $t=Cs.x;fn({scrollLeft:$t})},extraRender:wo},function(Es,Cs,$t){var ar=cr(Es.record,Cs);return v.createElement($a,(0,Ie.Z)({data:Es,rowKey:ar,index:Cs},$t))})}else ki=v.createElement(ha,{className:Xe()("".concat(Nr,"-placeholder"))},v.createElement(Mo,{component:xo,prefixCls:Nr},Bn));return v.createElement(Nn.Provider,{value:jo},ki)}),ka=Gt(nl),Xs=ka,zs=function(Fe,Ut){var fn=Ut.ref,An=Ut.onScroll;return v.createElement(Xs,{ref:fn,data:Fe,onScroll:An})};function xa(Me,Fe){var Ut=Me.columns,fn=Me.scroll,An=Me.sticky,wn=Me.prefixCls,gr=wn===void 0?fa:wn,cr=Me.className,Tr=Me.listItemHeight,Nr=Me.components,Pi=fn||{},Bn=Pi.x,Or=Pi.y;typeof Bn!="number"&&(Bn=1),typeof Or!="number"&&(Or=500);var Vn=(0,Qi.zX)(function(kn,yr){return(0,Nt.Z)(Nr,kn)||yr}),Cr=v.useMemo(function(){return{sticky:An,scrollY:Or,listItemHeight:Tr,getComponent:Vn}},[An,Or,Tr,Vn]);return v.createElement(Kt.Provider,{value:Cr},v.createElement(Mt,(0,Ie.Z)({},Me,{className:Xe()(cr,"".concat(gr,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},fn),{},{x:Bn}),components:(0,je.Z)((0,je.Z)({},Nr),{},{body:zs}),columns:Ut,internalHooks:P,tailor:!0,ref:Fe})))}var Ea=v.forwardRef(xa);function _a(Me){return rt(Ea,Me)}var Ba=_a(),Al=null;function ks(Me){return null}var Za=ks;function lu(Me){return null}var mu=lu,nu=x(21112),Fl=x(62521),va=x(76457),Ua=x(52118),Yl=x(89308);function Cc(Me){const[Fe,Ut]=(0,v.useState)(null);return[(0,v.useCallback)((wn,gr,cr)=>{const Tr=Fe!=null?Fe:wn,Nr=Math.min(Tr||0,wn),Pi=Math.max(Tr||0,wn),Bn=gr.slice(Nr,Pi+1).map(Cr=>Me(Cr)),Or=Bn.some(Cr=>!cr.has(Cr)),Vn=[];return Bn.forEach(Cr=>{Or?(cr.has(Cr)||Vn.push(Cr),cr.add(Cr)):(cr.delete(Cr),Vn.push(Cr))}),Ut(Or?Pi:null),Vn},[Fe]),wn=>{Ut(wn)}]}var ch=x(80074),mh=x(5630),_h=x(20261),wh=x(10386),vu=x(58798),ru=x(57801),Ql=x(26504),Hi=x(51623),Gn=v.createContext(null),Sr=x(75906),Rr=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{var Ut;const{prefixCls:fn,className:An,rootClassName:wn,children:gr,indeterminate:cr=!1,style:Tr,onMouseEnter:Nr,onMouseLeave:Pi,skipGroup:Bn=!1,disabled:Or}=Me,Vn=Rr(Me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Cr,direction:kn,checkbox:yr}=v.useContext(vu.E_),Ir=v.useContext(Gn),{isFormItemInput:ei}=v.useContext(Hi.aM),ri=v.useContext(ru.Z),Ci=(Ut=(Ir==null?void 0:Ir.disabled)||Or)!==null&&Ut!==void 0?Ut:ri,Oi=v.useRef(Vn.value);v.useEffect(()=>{Ir==null||Ir.registerValue(Vn.value)},[]),v.useEffect(()=>{if(!Bn)return Vn.value!==Oi.current&&(Ir==null||Ir.cancelValue(Oi.current),Ir==null||Ir.registerValue(Vn.value),Oi.current=Vn.value),()=>Ir==null?void 0:Ir.cancelValue(Vn.value)},[Vn.value]);const vo=Cr("checkbox",fn),wo=(0,Ql.Z)(vo),[jo,cs,oo]=(0,Sr.ZP)(vo,wo),ha=Object.assign({},Vn);Ir&&!Bn&&(ha.onChange=function(){Vn.onChange&&Vn.onChange.apply(Vn,arguments),Ir.toggleOption&&Ir.toggleOption({label:gr,value:Vn.value})},ha.name=Ir.name,ha.checked=Ir.value.includes(Vn.value));const xo=Xe()(`${vo}-wrapper`,{[`${vo}-rtl`]:kn==="rtl",[`${vo}-wrapper-checked`]:ha.checked,[`${vo}-wrapper-disabled`]:Ci,[`${vo}-wrapper-in-form-item`]:ei},yr==null?void 0:yr.className,An,wn,oo,wo,cs),ki=Xe()({[`${vo}-indeterminate`]:cr},wh.A,cs),Os=cr?"mixed":void 0;return jo(v.createElement(_h.Z,{component:"Checkbox",disabled:Ci},v.createElement("label",{className:xo,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),Tr),onMouseEnter:Nr,onMouseLeave:Pi},v.createElement(mh.Z,Object.assign({"aria-checked":Os},ha,{prefixCls:vo,className:ki,disabled:Ci,ref:Fe})),gr!==void 0&&v.createElement("span",null,gr))))};var fs=v.forwardRef(co),vs=x(41123),as=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{const{defaultValue:Ut,children:fn,options:An=[],prefixCls:wn,className:gr,rootClassName:cr,style:Tr,onChange:Nr}=Me,Pi=as(Me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Bn,direction:Or}=v.useContext(vu.E_),[Vn,Cr]=v.useState(Pi.value||Ut||[]),[kn,yr]=v.useState([]);v.useEffect(()=>{"value"in Pi&&Cr(Pi.value||[])},[Pi.value]);const Ir=v.useMemo(()=>An.map(Es=>typeof Es=="string"||typeof Es=="number"?{label:Es,value:Es}:Es),[An]),ei=Es=>{yr(Cs=>Cs.filter($t=>$t!==Es))},ri=Es=>{yr(Cs=>[].concat((0,tr.Z)(Cs),[Es]))},Ci=Es=>{const Cs=Vn.indexOf(Es.value),$t=(0,tr.Z)(Vn);Cs===-1?$t.push(Es.value):$t.splice(Cs,1),"value"in Pi||Cr($t),Nr==null||Nr($t.filter(ar=>kn.includes(ar)).sort((ar,si)=>{const Io=Ir.findIndex(ua=>ua.value===ar),ls=Ir.findIndex(ua=>ua.value===si);return Io-ls}))},Oi=Bn("checkbox",wn),vo=`${Oi}-group`,wo=(0,Ql.Z)(Oi),[jo,cs,oo]=(0,Sr.ZP)(Oi,wo),ha=(0,vs.Z)(Pi,["value","disabled"]),xo=An.length?Ir.map(Es=>v.createElement(fs,{prefixCls:Oi,key:Es.value.toString(),disabled:"disabled"in Es?Es.disabled:Pi.disabled,value:Es.value,checked:Vn.includes(Es.value),onChange:Es.onChange,className:`${vo}-item`,style:Es.style,title:Es.title,id:Es.id,required:Es.required},Es.label)):fn,ki={toggleOption:Ci,value:Vn,disabled:Pi.disabled,name:Pi.name,registerValue:ri,cancelValue:ei},Os=Xe()(vo,{[`${vo}-rtl`]:Or==="rtl"},gr,cr,oo,wo,cs);return jo(v.createElement("div",Object.assign({className:Os,style:Tr},ha,{ref:Fe}),v.createElement(Gn.Provider,{value:ki},xo)))});const pl=fs;pl.Group=Ss,pl.__ANT_CHECKBOX=!0;var Vs=pl,ol=x(145),sl=x(11864);const eu={},kl="SELECT_ALL",Wl="SELECT_INVERT",Dl="SELECT_NONE",ml=[],uu=(Me,Fe)=>{let Ut=[];return(Fe||[]).forEach(fn=>{Ut.push(fn),fn&&typeof fn=="object"&&Me in fn&&(Ut=[].concat((0,tr.Z)(Ut),(0,tr.Z)(uu(Me,fn[Me]))))}),Ut};var pu=(Me,Fe)=>{const{preserveSelectedRowKeys:Ut,selectedRowKeys:fn,defaultSelectedRowKeys:An,getCheckboxProps:wn,onChange:gr,onSelect:cr,onSelectAll:Tr,onSelectInvert:Nr,onSelectNone:Pi,onSelectMultiple:Bn,columnWidth:Or,type:Vn,selections:Cr,fixed:kn,renderCell:yr,hideSelectAll:Ir,checkStrictly:ei=!0}=Fe||{},{prefixCls:ri,data:Ci,pageData:Oi,getRecordByKey:vo,getRowKey:wo,expandType:jo,childrenColumnName:cs,locale:oo,getPopupContainer:ha}=Me,xo=(0,ch.ln)("Table"),[ki,Os]=Cc(ll=>ll),[Es,Cs]=(0,Yl.Z)(fn||An||ml,{value:fn}),$t=v.useRef(new Map),ar=(0,v.useCallback)(ll=>{if(Ut){const ta=new Map;ll.forEach(ga=>{let qa=vo(ga);!qa&&$t.current.has(ga)&&(qa=$t.current.get(ga)),ta.set(ga,qa)}),$t.current=ta}},[vo,Ut]);v.useEffect(()=>{ar(Es)},[Es]);const{keyEntities:si}=(0,v.useMemo)(()=>{if(ei)return{keyEntities:null};let ll=Ci;if(Ut){const ta=new Set(Ci.map((qa,bs)=>wo(qa,bs))),ga=Array.from($t.current).reduce((qa,bs)=>{let[$i,$s]=bs;return ta.has($i)?qa:qa.concat($s)},[]);ll=[].concat((0,tr.Z)(ll),(0,tr.Z)(ga))}return(0,Ua.I8)(ll,{externalGetKey:wo,childrenPropName:cs})},[Ci,wo,ei,cs,Ut]),Io=(0,v.useMemo)(()=>uu(cs,Oi),[cs,Oi]),ls=(0,v.useMemo)(()=>{const ll=new Map;return Io.forEach((ta,ga)=>{const qa=wo(ta,ga),bs=(wn?wn(ta):null)||{};ll.set(qa,bs)}),ll},[Io,wo,wn]),ua=(0,v.useCallback)(ll=>{var ta;return!!(!((ta=ls.get(wo(ll)))===null||ta===void 0)&&ta.disabled)},[ls,wo]),[lo,So]=(0,v.useMemo)(()=>{if(ei)return[Es||[],[]];const{checkedKeys:ll,halfCheckedKeys:ta}=(0,va.S)(Es,!0,si,ua);return[ll||[],ta]},[Es,ei,si,ua]),No=(0,v.useMemo)(()=>{const ll=Vn==="radio"?lo.slice(0,1):lo;return new Set(ll)},[lo,Vn]),Ls=(0,v.useMemo)(()=>Vn==="radio"?new Set:new Set(So),[So,Vn]);v.useEffect(()=>{Fe||Cs(ml)},[!!Fe]);const ma=(0,v.useCallback)((ll,ta)=>{let ga,qa;ar(ll),Ut?(ga=ll,qa=ll.map(bs=>$t.current.get(bs))):(ga=[],qa=[],ll.forEach(bs=>{const $i=vo(bs);$i!==void 0&&(ga.push(bs),qa.push($i))})),Cs(ga),gr==null||gr(ga,qa,{type:ta})},[Cs,vo,gr,Ut]),Ne=(0,v.useCallback)((ll,ta,ga,qa)=>{if(cr){const bs=ga.map($i=>vo($i));cr(vo(ll),ta,bs,qa)}ma(ga,"single")},[cr,vo,ma]),ja=(0,v.useMemo)(()=>!Cr||Ir?null:(Cr===!0?[kl,Wl,Dl]:Cr).map(ta=>ta===kl?{key:"all",text:oo.selectionAll,onSelect(){ma(Ci.map((ga,qa)=>wo(ga,qa)).filter(ga=>{const qa=ls.get(ga);return!(qa!=null&&qa.disabled)||No.has(ga)}),"all")}}:ta===Wl?{key:"invert",text:oo.selectInvert,onSelect(){const ga=new Set(No);Oi.forEach((bs,$i)=>{const $s=wo(bs,$i),Ko=ls.get($s);Ko!=null&&Ko.disabled||(ga.has($s)?ga.delete($s):ga.add($s))});const qa=Array.from(ga);Nr&&(xo.deprecated(!1,"onSelectInvert","onChange"),Nr(qa)),ma(qa,"invert")}}:ta===Dl?{key:"none",text:oo.selectNone,onSelect(){Pi==null||Pi(),ma(Array.from(No).filter(ga=>{const qa=ls.get(ga);return qa==null?void 0:qa.disabled}),"none")}}:ta).map(ta=>Object.assign(Object.assign({},ta),{onSelect:function(){for(var ga,qa,bs=arguments.length,$i=new Array(bs),$s=0;$s{var ta;if(!Fe)return ll.filter(Sc=>Sc!==eu);let ga=(0,tr.Z)(ll);const qa=new Set(No),bs=Io.map(wo).filter(Sc=>!ls.get(Sc).disabled),$i=bs.every(Sc=>qa.has(Sc)),$s=bs.some(Sc=>qa.has(Sc)),Ko=()=>{const Sc=[];$i?bs.forEach(Bc=>{qa.delete(Bc),Sc.push(Bc)}):bs.forEach(Bc=>{qa.has(Bc)||(qa.add(Bc),Sc.push(Bc))});const Il=Array.from(qa);Tr==null||Tr(!$i,Il.map(Bc=>vo(Bc)),Sc.map(Bc=>vo(Bc))),ma(Il,"all"),Os(null)};let qs,pa;if(Vn!=="radio"){let Sc;if(ja){const Hl={getPopupContainer:ha,items:ja.map((Yh,gc)=>{const{key:Kc,text:uc,onSelect:yl}=Yh;return{key:Kc!=null?Kc:gc,onClick:()=>{yl==null||yl(bs)},label:uc}})};Sc=v.createElement("div",{className:`${ri}-selection-extra`},v.createElement(ol.Z,{menu:Hl,getPopupContainer:ha},v.createElement("span",null,v.createElement(nu.Z,null))))}const Il=Io.map((Hl,Yh)=>{const gc=wo(Hl,Yh),Kc=ls.get(gc)||{};return Object.assign({checked:qa.has(gc)},Kc)}).filter(Hl=>{let{disabled:Yh}=Hl;return Yh}),Bc=!!Il.length&&Il.length===Io.length,xu=Bc&&Il.every(Hl=>{let{checked:Yh}=Hl;return Yh}),Yc=Bc&&Il.some(Hl=>{let{checked:Yh}=Hl;return Yh});pa=v.createElement(Vs,{checked:Bc?xu:!!Io.length&&$i,indeterminate:Bc?!xu&&Yc:!$i&&$s,onChange:Ko,disabled:Io.length===0||Bc,"aria-label":Sc?"Custom selection":"Select all",skipGroup:!0}),qs=!Ir&&v.createElement("div",{className:`${ri}-selection`},pa,Sc)}let vl;Vn==="radio"?vl=(Sc,Il,Bc)=>{const xu=wo(Il,Bc),Yc=qa.has(xu);return{node:v.createElement(sl.ZP,Object.assign({},ls.get(xu),{checked:Yc,onClick:Hl=>Hl.stopPropagation(),onChange:Hl=>{qa.has(xu)||Ne(xu,!0,[xu],Hl.nativeEvent)}})),checked:Yc}}:vl=(Sc,Il,Bc)=>{var xu;const Yc=wo(Il,Bc),Hl=qa.has(Yc),Yh=Ls.has(Yc),gc=ls.get(Yc);let Kc;return jo==="nest"?Kc=Yh:Kc=(xu=gc==null?void 0:gc.indeterminate)!==null&&xu!==void 0?xu:Yh,{node:v.createElement(Vs,Object.assign({},gc,{indeterminate:Kc,checked:Hl,skipGroup:!0,onClick:uc=>uc.stopPropagation(),onChange:uc=>{let{nativeEvent:yl}=uc;const{shiftKey:rd}=yl,Zf=bs.findIndex(fd=>fd===Yc),$c=lo.some(fd=>bs.includes(fd));if(rd&&ei&&$c){const fd=ki(Zf,bs,qa),kh=Array.from(qa);Bn==null||Bn(!Hl,kh.map(Fd=>vo(Fd)),fd.map(Fd=>vo(Fd))),ma(kh,"multiple")}else{const fd=lo;if(ei){const kh=Hl?(0,Fl._5)(fd,Yc):(0,Fl.L0)(fd,Yc);Ne(Yc,!Hl,kh,yl)}else{const kh=(0,va.S)([].concat((0,tr.Z)(fd),[Yc]),!0,si,ua),{checkedKeys:Fd,halfCheckedKeys:Uo}=kh;let rl=Fd;if(Hl){const _c=new Set(Fd);_c.delete(Yc),rl=(0,va.S)(Array.from(_c),{checked:!1,halfCheckedKeys:Uo},si,ua).checkedKeys}Ne(Yc,!Hl,rl,yl)}}Os(Hl?null:Zf)}})),checked:Hl}};const Wa=(Sc,Il,Bc)=>{const{node:xu,checked:Yc}=vl(Sc,Il,Bc);return yr?yr(Yc,Il,Bc,xu):xu};if(!ga.includes(eu))if(ga.findIndex(Sc=>{var Il;return((Il=Sc[xt])===null||Il===void 0?void 0:Il.columnType)==="EXPAND_COLUMN"})===0){const[Sc,...Il]=ga;ga=[Sc,eu].concat((0,tr.Z)(Il))}else ga=[eu].concat((0,tr.Z)(ga));const yi=ga.indexOf(eu);ga=ga.filter((Sc,Il)=>Sc!==eu||Il===yi);const ss=ga[yi-1],Ws=ga[yi+1];let Ra=kn;Ra===void 0&&((Ws==null?void 0:Ws.fixed)!==void 0?Ra=Ws.fixed:(ss==null?void 0:ss.fixed)!==void 0&&(Ra=ss.fixed)),Ra&&ss&&((ta=ss[xt])===null||ta===void 0?void 0:ta.columnType)==="EXPAND_COLUMN"&&ss.fixed===void 0&&(ss.fixed=Ra);const Nl=Xe()(`${ri}-selection-col`,{[`${ri}-selection-col-with-dropdown`]:Cr&&Vn==="checkbox"}),zu=()=>Fe!=null&&Fe.columnTitle?typeof Fe.columnTitle=="function"?Fe.columnTitle(pa):Fe.columnTitle:qs,Va={fixed:Ra,width:Or,className:`${ri}-selection-column`,title:zu(),render:Wa,onCell:Fe.onCell,[xt]:{className:Nl}};return ga.map(Sc=>Sc===eu?Va:Sc)},[wo,Io,Fe,lo,No,Ls,Or,ja,jo,ls,Bn,Ne,ua]),No]};function tc(Me,Fe){return Me._antProxy=Me._antProxy||{},Object.keys(Fe).forEach(Ut=>{if(!(Ut in Me._antProxy)){const fn=Me[Ut];Me._antProxy[Ut]=fn,Me[Ut]=Fe[Ut]}}),Me}function dc(Me,Fe){return(0,v.useImperativeHandle)(Me,()=>{const Ut=Fe(),{nativeElement:fn}=Ut;return typeof Proxy!="undefined"?new Proxy(fn,{get(An,wn){return Ut[wn]?Ut[wn]:Reflect.get(An,wn)}}):tc(fn,Ut)})}var Mc=x(74570);function Fc(Me,Fe,Ut,fn){const An=Ut-Fe;return Me/=fn/2,Me<1?An/2*Me*Me*Me+Fe:An/2*((Me-=2)*Me*Me+2)+Fe}function cd(Me){return Me!=null&&Me===Me.window}function Vd(Me,Fe){var Ut,fn;if(typeof window=="undefined")return 0;const An=Fe?"scrollTop":"scrollLeft";let wn=0;return cd(Me)?wn=Me[Fe?"pageYOffset":"pageXOffset"]:Me instanceof Document?wn=Me.documentElement[An]:(Me instanceof HTMLElement||Me)&&(wn=Me[An]),Me&&!cd(Me)&&typeof wn!="number"&&(wn=(fn=((Ut=Me.ownerDocument)!==null&&Ut!==void 0?Ut:Me).documentElement)===null||fn===void 0?void 0:fn[An]),wn}function yd(Me){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ut=()=>window,callback:fn,duration:An=450}=Fe,wn=Ut(),gr=Vd(wn,!0),cr=Date.now(),Tr=()=>{const Pi=Date.now()-cr,Bn=Fc(Pi>An?An:Pi,gr,Me,An);cd(wn)?wn.scrollTo(window.pageXOffset,Bn):wn instanceof Document||wn.constructor.name==="HTMLDocument"?wn.documentElement.scrollTop=Bn:wn.scrollTop=Bn,Pi=0||Es.relatedTarget.className.indexOf("".concat(Nr,"-item"))>=0))&&(Tr==null||Tr(ei())))},wo=function(Es){yr!==""&&(Es.keyCode===yu.Z.ENTER||Es.type==="click")&&(Ir(""),Tr==null||Tr(ei()))},jo=function(){return fn.some(function(Es){return Es.toString()===gr.toString()})?fn:fn.concat([gr.toString()]).sort(function(Es,Cs){var $t=Number.isNaN(Number(Es))?0:Number(Es),ar=Number.isNaN(Number(Cs))?0:Number(Cs);return $t-ar})},cs="".concat(Nr,"-options");if(!wn&&!Tr)return null;var oo=null,ha=null,xo=null;if(wn&&Pi){var ki=jo().map(function(Os,Es){return v.createElement(Pi.Option,{key:Es,value:Os.toString()},ri(Os))});oo=v.createElement(Pi,{disabled:Or,prefixCls:Bn,showSearch:!1,className:"".concat(cs,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(gr||fn[0]).toString(),onChange:Ci,getPopupContainer:function(Es){return Es.parentNode},"aria-label":An.page_size,defaultOpen:!1},ki)}return Tr&&(cr&&(xo=typeof cr=="boolean"?v.createElement("button",{type:"button",onClick:wo,onKeyUp:wo,disabled:Or,className:"".concat(cs,"-quick-jumper-button")},An.jump_to_confirm):v.createElement("span",{onClick:wo,onKeyUp:wo},cr)),ha=v.createElement("div",{className:"".concat(cs,"-quick-jumper")},An.jump_to,v.createElement("input",{disabled:Or,type:"text",value:yr,onChange:Oi,onKeyUp:wo,onBlur:vo,"aria-label":An.page}),An.page,xo)),v.createElement("li",{className:cs},oo,ha)},Ac=Rc,Fh=function(Fe){var Ut,fn=Fe.rootPrefixCls,An=Fe.page,wn=Fe.active,gr=Fe.className,cr=Fe.showTitle,Tr=Fe.onClick,Nr=Fe.onKeyPress,Pi=Fe.itemRender,Bn="".concat(fn,"-item"),Or=Xe()(Bn,"".concat(Bn,"-").concat(An),(Ut={},(0,ft.Z)(Ut,"".concat(Bn,"-active"),wn),(0,ft.Z)(Ut,"".concat(Bn,"-disabled"),!An),Ut),gr),Vn=function(){Tr(An)},Cr=function(Ir){Nr(Ir,Tr,An)},kn=Pi(An,"page",v.createElement("a",{rel:"nofollow"},An));return kn?v.createElement("li",{title:cr?String(An):null,className:Or,onClick:Vn,onKeyDown:Cr,tabIndex:0},kn):null},pc=Fh,hh=function(Fe,Ut,fn){return fn};function hd(){}function Ih(Me){var Fe=Number(Me);return typeof Fe=="number"&&!Number.isNaN(Fe)&&isFinite(Fe)&&Math.floor(Fe)===Fe}function Oc(Me,Fe,Ut){var fn=typeof Me=="undefined"?Fe:Me;return Math.floor((Ut-1)/fn)+1}var bh=function(Fe){var Ut,fn=Fe.prefixCls,An=fn===void 0?"rc-pagination":fn,wn=Fe.selectPrefixCls,gr=wn===void 0?"rc-select":wn,cr=Fe.className,Tr=Fe.selectComponentClass,Nr=Fe.current,Pi=Fe.defaultCurrent,Bn=Pi===void 0?1:Pi,Or=Fe.total,Vn=Or===void 0?0:Or,Cr=Fe.pageSize,kn=Fe.defaultPageSize,yr=kn===void 0?10:kn,Ir=Fe.onChange,ei=Ir===void 0?hd:Ir,ri=Fe.hideOnSinglePage,Ci=Fe.showPrevNextJumpers,Oi=Ci===void 0?!0:Ci,vo=Fe.showQuickJumper,wo=Fe.showLessItems,jo=Fe.showTitle,cs=jo===void 0?!0:jo,oo=Fe.onShowSizeChange,ha=oo===void 0?hd:oo,xo=Fe.locale,ki=xo===void 0?Xu:xo,Os=Fe.style,Es=Fe.totalBoundaryShowSizeChanger,Cs=Es===void 0?50:Es,$t=Fe.disabled,ar=Fe.simple,si=Fe.showTotal,Io=Fe.showSizeChanger,ls=Fe.pageSizeOptions,ua=Fe.itemRender,lo=ua===void 0?hh:ua,So=Fe.jumpPrevIcon,No=Fe.jumpNextIcon,Ls=Fe.prevIcon,ma=Fe.nextIcon,Ne=v.useRef(null),ja=(0,Yl.Z)(10,{value:Cr,defaultValue:yr}),Ol=(0,A.Z)(ja,2),ll=Ol[0],ta=Ol[1],ga=(0,Yl.Z)(1,{value:Nr,defaultValue:Bn,postState:function(Yu){return Math.max(1,Math.min(Yu,Oc(void 0,ll,Vn)))}}),qa=(0,A.Z)(ga,2),bs=qa[0],$i=qa[1],$s=v.useState(bs),Ko=(0,A.Z)($s,2),qs=Ko[0],pa=Ko[1];(0,v.useEffect)(function(){pa(bs)},[bs]);var vl=ei!==hd,Wa="current"in Fe,yi=Math.max(1,bs-(wo?3:5)),ss=Math.min(Oc(void 0,ll,Vn),bs+(wo?3:5));function Ws(Sl,Yu){var kc=Sl||v.createElement("button",{type:"button","aria-label":Yu,className:"".concat(An,"-item-link")});return typeof Sl=="function"&&(kc=v.createElement(Sl,(0,je.Z)({},Fe))),kc}function Ra(Sl){var Yu=Sl.target.value,kc=Oc(void 0,ll,Vn),Lc;return Yu===""?Lc=Yu:Number.isNaN(Number(Yu))?Lc=qs:Yu>=kc?Lc=kc:Lc=Number(Yu),Lc}function Nl(Sl){return Ih(Sl)&&Sl!==bs&&Ih(Vn)&&Vn>0}var zu=Vn>ll?vo:!1;function Va(Sl){(Sl.keyCode===yu.Z.UP||Sl.keyCode===yu.Z.DOWN)&&Sl.preventDefault()}function Sc(Sl){var Yu=Ra(Sl);switch(Yu!==qs&&pa(Yu),Sl.keyCode){case yu.Z.ENTER:xu(Yu);break;case yu.Z.UP:xu(Yu-1);break;case yu.Z.DOWN:xu(Yu+1);break;default:break}}function Il(Sl){xu(Ra(Sl))}function Bc(Sl){var Yu=Oc(Sl,ll,Vn),kc=bs>Yu&&Yu!==0?Yu:bs;ta(Sl),pa(kc),ha==null||ha(bs,Sl),$i(kc),ei==null||ei(kc,Sl)}function xu(Sl){if(Nl(Sl)&&!$t){var Yu=Oc(void 0,ll,Vn),kc=Sl;return Sl>Yu?kc=Yu:Sl<1&&(kc=1),kc!==qs&&pa(kc),$i(kc),ei==null||ei(kc,ll),kc}return bs}var Yc=bs>1,Hl=bsCs;function gc(){Yc&&xu(bs-1)}function Kc(){Hl&&xu(bs+1)}function uc(){xu(yi)}function yl(){xu(ss)}function rd(Sl,Yu){if(Sl.key==="Enter"||Sl.charCode===yu.Z.ENTER||Sl.keyCode===yu.Z.ENTER){for(var kc=arguments.length,Lc=new Array(kc>2?kc-2:0),Nh=2;NhVn?Vn:bs*ll])),Rg=null,Hs=Oc(void 0,ll,Vn);if(ri&&Vn<=ll)return null;var we=[],Ee={rootPrefixCls:An,onClick:xu,onKeyPress:rd,showTitle:cs,itemRender:lo,page:-1},He=bs-1>0?bs-1:0,Jt=bs+1=Jr*2&&bs!==1+2&&(we[0]=v.cloneElement(we[0],{className:Xe()("".concat(An,"-item-after-jump-prev"),we[0].props.className)}),we.unshift(_c)),Hs-bs>=Jr*2&&bs!==Hs-2){var Js=we[we.length-1];we[we.length-1]=v.cloneElement(Js,{className:Xe()("".concat(An,"-item-before-jump-next"),Js.props.className)}),we.push(Rg)}ds!==1&&we.unshift(v.createElement(pc,(0,Ie.Z)({},Ee,{key:1,page:1}))),ia!==Hs&&we.push(v.createElement(pc,(0,Ie.Z)({},Ee,{key:Hs,page:Hs})))}var Qa=Fd(He);if(Qa){var La=!Yc||!Hs;Qa=v.createElement("li",{title:cs?ki.prev_page:null,onClick:gc,tabIndex:La?null:0,onKeyDown:Zf,className:Xe()("".concat(An,"-prev"),(0,ft.Z)({},"".concat(An,"-disabled"),La)),"aria-disabled":La},Qa)}var Gl=Uo(Jt);if(Gl){var tu,Tu;ar?(tu=!Hl,Tu=Yc?0:null):(tu=!Hl||!Hs,Tu=tu?null:0),Gl=v.createElement("li",{title:cs?ki.next_page:null,onClick:Kc,tabIndex:Tu,onKeyDown:$c,className:Xe()("".concat(An,"-next"),(0,ft.Z)({},"".concat(An,"-disabled"),tu)),"aria-disabled":tu},Gl)}var Tc=Xe()(An,cr,(Ut={},(0,ft.Z)(Ut,"".concat(An,"-simple"),ar),(0,ft.Z)(Ut,"".concat(An,"-disabled"),$t),Ut));return v.createElement("ul",(0,Ie.Z)({className:Tc,style:Os,ref:Ne},jh),Ed,Qa,ar?In:we,Gl,v.createElement(Ac,{locale:ki,rootPrefixCls:An,disabled:$t,selectComponentClass:Tr,selectPrefixCls:gr,changeSize:Yh?Bc:null,pageSize:ll,pageSizeOptions:ls,quickGo:zu?xu:null,goButton:Hn}))},jl=bh,Vh=x(84354),wa=x(50700),su=x(16042);const gh=Me=>v.createElement(su.Z,Object.assign({},Me,{showSearch:!0,size:"small"})),Th=Me=>v.createElement(su.Z,Object.assign({},Me,{showSearch:!0,size:"middle"}));gh.Option=su.Z.Option,Th.Option=su.Z.Option;var ws=x(78600),Eu=x(4586),$l=x(53644),Ou=x(91110),Lu=x(90882),mc=x(79263),Gc=x(47703);const rh=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Fe}-item-link`]:{color:Me.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Fe}-item-link`]:{color:Me.colorTextDisabled,cursor:"not-allowed"}}},[`&${Fe}-disabled`]:{cursor:"not-allowed",[`${Fe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Me.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Me.colorBorder,backgroundColor:Me.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Me.itemActiveBgDisabled},a:{color:Me.itemActiveColorDisabled}}},[`${Fe}-item-link`]:{color:Me.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Fe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Fe}-simple-pager`]:{color:Me.colorTextDisabled},[`${Fe}-jump-prev, ${Fe}-jump-next`]:{[`${Fe}-item-link-icon`]:{opacity:0},[`${Fe}-item-ellipsis`]:{opacity:1}}},[`&${Fe}-simple`]:{[`${Fe}-prev, ${Fe}-next`]:{[`&${Fe}-disabled ${Fe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Wh=Me=>{const{componentCls:Fe}=Me;return{[`&${Fe}-mini ${Fe}-total-text, &${Fe}-mini ${Fe}-simple-pager`]:{height:Me.itemSizeSM,lineHeight:(0,ws.bf)(Me.itemSizeSM)},[`&${Fe}-mini ${Fe}-item`]:{minWidth:Me.itemSizeSM,height:Me.itemSizeSM,margin:0,lineHeight:(0,ws.bf)(Me.calc(Me.itemSizeSM).sub(2).equal())},[`&${Fe}-mini:not(${Fe}-disabled) ${Fe}-item:not(${Fe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Me.colorBgTextHover},"&:active":{backgroundColor:Me.colorBgTextActive}},[`&${Fe}-mini ${Fe}-prev, &${Fe}-mini ${Fe}-next`]:{minWidth:Me.itemSizeSM,height:Me.itemSizeSM,margin:0,lineHeight:(0,ws.bf)(Me.itemSizeSM)},[`&${Fe}-mini:not(${Fe}-disabled)`]:{[`${Fe}-prev, ${Fe}-next`]:{[`&:hover ${Fe}-item-link`]:{backgroundColor:Me.colorBgTextHover},[`&:active ${Fe}-item-link`]:{backgroundColor:Me.colorBgTextActive},[`&${Fe}-disabled:hover ${Fe}-item-link`]:{backgroundColor:"transparent"}}},[` + &${Fe}-mini ${Fe}-prev ${Fe}-item-link, + &${Fe}-mini ${Fe}-next ${Fe}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Me.itemSizeSM,lineHeight:(0,ws.bf)(Me.itemSizeSM)}},[`&${Fe}-mini ${Fe}-jump-prev, &${Fe}-mini ${Fe}-jump-next`]:{height:Me.itemSizeSM,marginInlineEnd:0,lineHeight:(0,ws.bf)(Me.itemSizeSM)},[`&${Fe}-mini ${Fe}-options`]:{marginInlineStart:Me.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Me.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Me.itemSizeSM,lineHeight:(0,ws.bf)(Me.itemSizeSM),input:Object.assign(Object.assign({},(0,Eu.x0)(Me)),{width:Me.paginationMiniQuickJumperInputWidth,height:Me.controlHeightSM})}}}},Id=Me=>{const{componentCls:Fe}=Me;return{[` + &${Fe}-simple ${Fe}-prev, + &${Fe}-simple ${Fe}-next + `]:{height:Me.itemSizeSM,lineHeight:(0,ws.bf)(Me.itemSizeSM),verticalAlign:"top",[`${Fe}-item-link`]:{height:Me.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Me.colorBgTextHover},"&:active":{backgroundColor:Me.colorBgTextActive},"&::after":{height:Me.itemSizeSM,lineHeight:(0,ws.bf)(Me.itemSizeSM)}}},[`&${Fe}-simple ${Fe}-simple-pager`]:{display:"inline-block",height:Me.itemSizeSM,marginInlineEnd:Me.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Me.marginXS,padding:`0 ${(0,ws.bf)(Me.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Me.itemInputBg,border:`${(0,ws.bf)(Me.lineWidth)} ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadius,outline:"none",transition:`border-color ${Me.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Me.colorPrimary},"&:focus":{borderColor:Me.colorPrimaryHover,boxShadow:`${(0,ws.bf)(Me.inputOutlineOffset)} 0 ${(0,ws.bf)(Me.controlOutlineWidth)} ${Me.controlOutline}`},"&[disabled]":{color:Me.colorTextDisabled,backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,cursor:"not-allowed"}}}}},id=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-jump-prev, ${Fe}-jump-next`]:{outline:0,[`${Fe}-item-container`]:{position:"relative",[`${Fe}-item-link-icon`]:{color:Me.colorPrimary,fontSize:Me.fontSizeSM,opacity:0,transition:`all ${Me.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Fe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Me.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Me.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Me.paginationEllipsisTextIndent,opacity:1,transition:`all ${Me.motionDurationMid}`}},"&:hover":{[`${Fe}-item-link-icon`]:{opacity:1},[`${Fe}-item-ellipsis`]:{opacity:0}}},[` + ${Fe}-prev, + ${Fe}-jump-prev, + ${Fe}-jump-next + `]:{marginInlineEnd:Me.marginXS},[` + ${Fe}-prev, + ${Fe}-next, + ${Fe}-jump-prev, + ${Fe}-jump-next + `]:{display:"inline-block",minWidth:Me.itemSize,height:Me.itemSize,color:Me.colorText,fontFamily:Me.fontFamily,lineHeight:`${(0,ws.bf)(Me.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Me.borderRadius,cursor:"pointer",transition:`all ${Me.motionDurationMid}`},[`${Fe}-prev, ${Fe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Me.colorText,cursor:"pointer",userSelect:"none"},[`${Fe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Me.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,ws.bf)(Me.lineWidth)} ${Me.lineType} transparent`,borderRadius:Me.borderRadius,outline:"none",transition:`all ${Me.motionDurationMid}`},[`&:hover ${Fe}-item-link`]:{backgroundColor:Me.colorBgTextHover},[`&:active ${Fe}-item-link`]:{backgroundColor:Me.colorBgTextActive},[`&${Fe}-disabled:hover`]:{[`${Fe}-item-link`]:{backgroundColor:"transparent"}}},[`${Fe}-slash`]:{marginInlineEnd:Me.paginationSlashMarginInlineEnd,marginInlineStart:Me.paginationSlashMarginInlineStart},[`${Fe}-options`]:{display:"inline-block",marginInlineStart:Me.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Me.controlHeight,marginInlineStart:Me.marginXS,lineHeight:(0,ws.bf)(Me.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Eu.ik)(Me)),(0,Gc.$U)(Me,{borderColor:Me.colorBorder,hoverBorderColor:Me.colorPrimaryHover,activeBorderColor:Me.colorPrimary,activeShadow:Me.activeShadow})),{"&[disabled]":Object.assign({},(0,Gc.Xy)(Me)),width:Me.calc(Me.controlHeightLG).mul(1.25).equal(),height:Me.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Me.marginXS,marginInlineEnd:Me.marginXS})}}}},Wd=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-item`]:{display:"inline-block",minWidth:Me.itemSize,height:Me.itemSize,marginInlineEnd:Me.marginXS,fontFamily:Me.fontFamily,lineHeight:(0,ws.bf)(Me.calc(Me.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,ws.bf)(Me.lineWidth)} ${Me.lineType} transparent`,borderRadius:Me.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,ws.bf)(Me.paginationItemPaddingInline)}`,color:Me.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Fe}-item-active)`]:{"&:hover":{transition:`all ${Me.motionDurationMid}`,backgroundColor:Me.colorBgTextHover},"&:active":{backgroundColor:Me.colorBgTextActive}},"&-active":{fontWeight:Me.fontWeightStrong,backgroundColor:Me.itemActiveBg,borderColor:Me.colorPrimary,a:{color:Me.colorPrimary},"&:hover":{borderColor:Me.colorPrimaryHover},"&:hover a":{color:Me.colorPrimaryHover}}}}},Zd=Me=>{const{componentCls:Fe}=Me;return{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ou.Wf)(Me)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Fe}-total-text`]:{display:"inline-block",height:Me.itemSize,marginInlineEnd:Me.marginXS,lineHeight:(0,ws.bf)(Me.calc(Me.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Wd(Me)),id(Me)),Id(Me)),Wh(Me)),rh(Me)),{[`@media only screen and (max-width: ${Me.screenLG}px)`]:{[`${Fe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Me.screenSM}px)`]:{[`${Fe}-options`]:{display:"none"}}}),[`&${Me.componentCls}-rtl`]:{direction:"rtl"}}},pf=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}:not(${Fe}-disabled)`]:{[`${Fe}-item`]:Object.assign({},(0,Ou.Qy)(Me)),[`${Fe}-jump-prev, ${Fe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Fe}-item-link-icon`]:{opacity:1},[`${Fe}-item-ellipsis`]:{opacity:0}},(0,Ou.oN)(Me))},[`${Fe}-prev, ${Fe}-next`]:{[`&:focus-visible ${Fe}-item-link`]:Object.assign({},(0,Ou.oN)(Me))}}}},Zh=Me=>Object.assign({itemBg:Me.colorBgContainer,itemSize:Me.controlHeight,itemSizeSM:Me.controlHeightSM,itemActiveBg:Me.colorBgContainer,itemLinkBg:Me.colorBgContainer,itemActiveColorDisabled:Me.colorTextDisabled,itemActiveBgDisabled:Me.controlItemBgActiveDisabled,itemInputBg:Me.colorBgContainer,miniOptionsSizeChangerTop:0},(0,$l.T)(Me)),Lh=Me=>(0,Lu.TS)(Me,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Me.calc(Me.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Me.calc(Me.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Me.calc(Me.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Me.calc(Me.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Me.marginXXS,paginationSlashMarginInlineEnd:Me.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$l.e)(Me));var Of=(0,mc.I$)("Pagination",Me=>{const Fe=Lh(Me);return[Zd(Fe),pf(Fe)]},Zh),Wf=x(57832);const Wc=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}${Fe}-bordered${Fe}-disabled:not(${Fe}-mini)`]:{"&, &:hover":{[`${Fe}-item-link`]:{borderColor:Me.colorBorder}},"&:focus-visible":{[`${Fe}-item-link`]:{borderColor:Me.colorBorder}},[`${Fe}-item, ${Fe}-item-link`]:{backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,[`&:hover:not(${Fe}-item-active)`]:{backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,a:{color:Me.colorTextDisabled}},[`&${Fe}-item-active`]:{backgroundColor:Me.itemActiveBgDisabled}},[`${Fe}-prev, ${Fe}-next`]:{"&:hover button":{backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,color:Me.colorTextDisabled},[`${Fe}-item-link`]:{backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder}}},[`${Fe}${Fe}-bordered:not(${Fe}-mini)`]:{[`${Fe}-prev, ${Fe}-next`]:{"&:hover button":{borderColor:Me.colorPrimaryHover,backgroundColor:Me.itemBg},[`${Fe}-item-link`]:{backgroundColor:Me.itemLinkBg,borderColor:Me.colorBorder},[`&:hover ${Fe}-item-link`]:{borderColor:Me.colorPrimary,backgroundColor:Me.itemBg,color:Me.colorPrimary},[`&${Fe}-disabled`]:{[`${Fe}-item-link`]:{borderColor:Me.colorBorder,color:Me.colorTextDisabled}}},[`${Fe}-item`]:{backgroundColor:Me.itemBg,border:`${(0,ws.bf)(Me.lineWidth)} ${Me.lineType} ${Me.colorBorder}`,[`&:hover:not(${Fe}-item-active)`]:{borderColor:Me.colorPrimary,backgroundColor:Me.itemBg,a:{color:Me.colorPrimary}},"&-active":{borderColor:Me.colorPrimary}}}}};var lh=(0,mc.bk)(["Pagination","bordered"],Me=>{const Fe=Lh(Me);return[Wc(Fe)]},Zh),wd=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{const{prefixCls:Fe,selectPrefixCls:Ut,className:fn,rootClassName:An,style:wn,size:gr,locale:cr,selectComponentClass:Tr,responsive:Nr,showSizeChanger:Pi}=Me,Bn=wd(Me,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Or}=(0,Ud.Z)(Nr),[,Vn]=(0,Wf.ZP)(),{getPrefixCls:Cr,direction:kn,pagination:yr={}}=v.useContext(vu.E_),Ir=Cr("pagination",Fe),[ei,ri,Ci]=Of(Ir),Oi=Pi!=null?Pi:yr.showSizeChanger,vo=v.useMemo(()=>{const Os=v.createElement("span",{className:`${Ir}-item-ellipsis`},"\u2022\u2022\u2022"),Es=v.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},kn==="rtl"?v.createElement(ou.Z,null):v.createElement(Ja.Z,null)),Cs=v.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},kn==="rtl"?v.createElement(Ja.Z,null):v.createElement(ou.Z,null)),$t=v.createElement("a",{className:`${Ir}-item-link`},v.createElement("div",{className:`${Ir}-item-container`},kn==="rtl"?v.createElement(Ta,{className:`${Ir}-item-link-icon`}):v.createElement(Rd,{className:`${Ir}-item-link-icon`}),Os)),ar=v.createElement("a",{className:`${Ir}-item-link`},v.createElement("div",{className:`${Ir}-item-container`},kn==="rtl"?v.createElement(Rd,{className:`${Ir}-item-link-icon`}):v.createElement(Ta,{className:`${Ir}-item-link-icon`}),Os));return{prevIcon:Es,nextIcon:Cs,jumpPrevIcon:$t,jumpNextIcon:ar}},[kn,Ir]),[wo]=(0,wa.Z)("Pagination",Vh.Z),jo=Object.assign(Object.assign({},wo),cr),cs=(0,xh.Z)(gr),oo=cs==="small"||!!(Or&&!cs&&Nr),ha=Cr("select",Ut),xo=Xe()({[`${Ir}-mini`]:oo,[`${Ir}-rtl`]:kn==="rtl",[`${Ir}-bordered`]:Vn.wireframe},yr==null?void 0:yr.className,fn,An,ri,Ci),ki=Object.assign(Object.assign({},yr==null?void 0:yr.style),wn);return ei(v.createElement(v.Fragment,null,Vn.wireframe&&v.createElement(lh,{prefixCls:Ir}),v.createElement(jl,Object.assign({},vo,Bn,{style:ki,prefixCls:Ir,selectPrefixCls:ha,className:xo,selectComponentClass:Tr||(oo?gh:Th),locale:jo,showSizeChanger:Oi}))))},eo=al;function Eh(Me,Fe,Ut){var fn=Ut||{},An=fn.noTrailing,wn=An===void 0?!1:An,gr=fn.noLeading,cr=gr===void 0?!1:gr,Tr=fn.debounceMode,Nr=Tr===void 0?void 0:Tr,Pi,Bn=!1,Or=0;function Vn(){Pi&&clearTimeout(Pi)}function Cr(yr){var Ir=yr||{},ei=Ir.upcomingOnly,ri=ei===void 0?!1:ei;Vn(),Bn=!ri}function kn(){for(var yr=arguments.length,Ir=new Array(yr),ei=0;eiMe?cr?(Or=Date.now(),wn||(Pi=setTimeout(Nr?vo:Oi,Me))):Oi():wn!==!0&&(Pi=setTimeout(Nr?vo:Oi,Nr===void 0?Me-Ci:Me))}return kn.cancel=Cr,kn}function mo(Me,Fe,Ut){var fn=Ut||{},An=fn.atBegin,wn=An===void 0?!1:An;return Eh(Me,Fe,{debounceMode:wn!==!1})}var vc=x(20612);const Ic=new ws.E4("antSpinMove",{to:{opacity:1}}),Hp=new ws.E4("antRotate",{to:{transform:"rotate(405deg)"}}),yg=Me=>{const{componentCls:Fe,calc:Ut}=Me;return{[`${Fe}`]:Object.assign(Object.assign({},(0,Ou.Wf)(Me)),{position:"absolute",display:"none",color:Me.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Me.motionDurationSlow} ${Me.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${Fe}-text`]:{fontSize:Me.fontSize,paddingTop:Ut(Ut(Me.dotSize).sub(Me.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Me.colorBgMask,zIndex:Me.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${Me.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${Fe}-dot ${Fe}-dot-item`]:{backgroundColor:Me.colorWhite},[`${Fe}-text`]:{color:Me.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${Fe}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Me.contentHeight,[`${Fe}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:Ut(Me.dotSize).mul(-1).div(2).equal()},[`${Fe}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Me.colorBgContainer}`},[`&${Fe}-show-text ${Fe}-dot`]:{marginTop:Ut(Me.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${Fe}-dot`]:{margin:Ut(Me.dotSizeSM).mul(-1).div(2).equal()},[`${Fe}-text`]:{paddingTop:Ut(Ut(Me.dotSizeSM).sub(Me.fontSize)).div(2).add(2).equal()},[`&${Fe}-show-text ${Fe}-dot`]:{marginTop:Ut(Me.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${Fe}-dot`]:{margin:Ut(Me.dotSizeLG).mul(-1).div(2).equal()},[`${Fe}-text`]:{paddingTop:Ut(Ut(Me.dotSizeLG).sub(Me.fontSize)).div(2).add(2).equal()},[`&${Fe}-show-text ${Fe}-dot`]:{marginTop:Ut(Me.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${Fe}-container`]:{position:"relative",transition:`opacity ${Me.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Me.colorBgContainer,opacity:0,transition:`all ${Me.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${Fe}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:Me.spinDotDefault},[`${Fe}-dot`]:{position:"relative",display:"inline-block",fontSize:Me.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:Ut(Me.dotSize).sub(Ut(Me.marginXXS).div(2)).div(2).equal(),height:Ut(Me.dotSize).sub(Ut(Me.marginXXS).div(2)).div(2).equal(),backgroundColor:Me.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ic,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Hp,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${Fe}-dot`]:{fontSize:Me.dotSizeSM,i:{width:Ut(Ut(Me.dotSizeSM).sub(Ut(Me.marginXXS).div(2))).div(2).equal(),height:Ut(Ut(Me.dotSizeSM).sub(Ut(Me.marginXXS).div(2))).div(2).equal()}},[`&-lg ${Fe}-dot`]:{fontSize:Me.dotSizeLG,i:{width:Ut(Ut(Me.dotSizeLG).sub(Me.marginXXS)).div(2).equal(),height:Ut(Ut(Me.dotSizeLG).sub(Me.marginXXS)).div(2).equal()}},[`&${Fe}-show-text ${Fe}-text`]:{display:"block"}})}},pg=Me=>{const{controlHeightLG:Fe,controlHeight:Ut}=Me;return{contentHeight:400,dotSize:Fe/2,dotSizeSM:Fe*.35,dotSizeLG:Ut}};var kf=(0,mc.I$)("Spin",Me=>{const Fe=(0,Lu.TS)(Me,{spinDotDefault:Me.colorTextDescription});return[yg(Fe)]},pg),Fp=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{const{prefixCls:Fe,spinning:Ut=!0,delay:fn=0,className:An,rootClassName:wn,size:gr="default",tip:cr,wrapperClassName:Tr,style:Nr,children:Pi,fullscreen:Bn=!1}=Me,Or=Fp(Me,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:Vn}=v.useContext(vu.E_),Cr=Vn("spin",Fe),[kn,yr,Ir]=kf(Cr),[ei,ri]=v.useState(()=>Ut&&!vp(Ut,fn));v.useEffect(()=>{if(Ut){const xo=mo(fn,()=>{ri(!0)});return xo(),()=>{var ki;(ki=xo==null?void 0:xo.cancel)===null||ki===void 0||ki.call(xo)}}ri(!1)},[fn,Ut]);const Ci=v.useMemo(()=>typeof Pi!="undefined"&&!Bn,[Pi,Bn]),{direction:Oi,spin:vo}=v.useContext(vu.E_),wo=Xe()(Cr,vo==null?void 0:vo.className,{[`${Cr}-sm`]:gr==="small",[`${Cr}-lg`]:gr==="large",[`${Cr}-spinning`]:ei,[`${Cr}-show-text`]:!!cr,[`${Cr}-fullscreen`]:Bn,[`${Cr}-fullscreen-show`]:Bn&&ei,[`${Cr}-rtl`]:Oi==="rtl"},An,wn,yr,Ir),jo=Xe()(`${Cr}-container`,{[`${Cr}-blur`]:ei}),cs=(0,vs.Z)(Or,["indicator"]),oo=Object.assign(Object.assign({},vo==null?void 0:vo.style),Nr),ha=v.createElement("div",Object.assign({},cs,{style:oo,className:wo,"aria-live":"polite","aria-busy":ei}),kg(Cr,Me),cr&&(Ci||Bn)?v.createElement("div",{className:`${Cr}-text`},cr):null);return kn(Ci?v.createElement("div",Object.assign({},cs,{className:Xe()(`${Cr}-nested-loading`,Tr,yr,Ir)}),ei&&v.createElement("div",{key:"loading"},ha),v.createElement("div",{className:jo,key:"container"},Pi)):ha)};yp.setDefaultIndicator=Me=>{pp=Me};var od=yp;function Pp(Me){return function(Ut){let{prefixCls:fn,onExpand:An,record:wn,expanded:gr,expandable:cr}=Ut;const Tr=`${fn}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:Nr=>{An(wn,Nr),Nr.stopPropagation()},className:Xe()(Tr,{[`${Tr}-spaced`]:!cr,[`${Tr}-expanded`]:cr&&gr,[`${Tr}-collapsed`]:cr&&!gr}),"aria-label":gr?Me.collapse:Me.expand,"aria-expanded":gr})}}var Og=Pp;function Xp(Me){return(Ut,fn)=>{const An=Ut.querySelector(`.${Me}-container`);let wn=fn;if(An){const gr=getComputedStyle(An),cr=parseInt(gr.borderLeftWidth,10),Tr=parseInt(gr.borderRightWidth,10);wn=fn-cr-Tr}return wn}}function sd(Me,Fe){return"key"in Me&&Me.key!==void 0&&Me.key!==null?Me.key:Me.dataIndex?Array.isArray(Me.dataIndex)?Me.dataIndex.join("."):Me.dataIndex:Fe}function Yp(Me,Fe){return Fe?`${Fe}-${Me}`:`${Me}`}function Kh(Me,Fe){return typeof Me=="function"?Me(Fe):Me}function Qf(Me,Fe){const Ut=Kh(Me,Fe);return Object.prototype.toString.call(Ut)==="[object Object]"?"":Ut}var Ep=x(48041),Au=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Ep.Z}))},Bp=v.forwardRef(Au),zp=x(51626);function Nf(Me){const Fe=v.useRef(Me),Ut=(0,zp.Z)();return[()=>Fe.current,fn=>{Fe.current=fn,Ut()}]}var zh=x(99622),Xh=x(13682),ed=x(50523),Hh=x(83385),_p=x(85338),Jf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Up=Jf,fh=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Up}))},_f=v.forwardRef(fh),jd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},tf=jd,Gf=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:tf}))},Ah=v.forwardRef(Gf),Zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Sd=Zc,Hd=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Sd}))},Vo=v.forwardRef(Hd),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},k=D,te=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:k}))},ue=v.forwardRef(te),Ke=x(12149),_n=x(36385);const lr=new ws.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ye=(Me,Fe)=>({[`.${Me}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Fe.motionDurationSlow}`}}}),S=(Me,Fe)=>({[`.${Me}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Fe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,ws.bf)(Fe.lineWidthBold)} solid ${Fe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),J=(Me,Fe)=>{const{treeCls:Ut,treeNodeCls:fn,treeNodePadding:An,titleHeight:wn,nodeSelectedBg:gr,nodeHoverBg:cr}=Fe,Tr=Fe.paddingXS;return{[Ut]:Object.assign(Object.assign({},(0,Ou.Wf)(Fe)),{background:Fe.colorBgContainer,borderRadius:Fe.borderRadius,transition:`background-color ${Fe.motionDurationSlow}`,[`&${Ut}-rtl`]:{[`${Ut}-switcher`]:{"&_close":{[`${Ut}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ut}-active-focused)`]:Object.assign({},(0,Ou.oN)(Fe)),[`${Ut}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ut}-block-node`]:{[`${Ut}-list-holder-inner`]:{alignItems:"stretch",[`${Ut}-node-content-wrapper`]:{flex:"auto"},[`${fn}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:An,insetInlineStart:0,border:`1px solid ${Fe.colorPrimary}`,opacity:0,animationName:lr,animationDuration:Fe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${fn}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,ws.bf)(An)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ut}-node-content-wrapper`]:{color:Fe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ut}-node-content-wrapper`]:{background:Fe.controlItemBgHover},[`&:not(${fn}-disabled).filter-node ${Ut}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${Ut}-draggable-icon`]:{flexShrink:0,width:wn,lineHeight:`${(0,ws.bf)(wn)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Fe.motionDurationSlow}`,[`${fn}:hover &`]:{opacity:.45}},[`&${fn}-disabled`]:{[`${Ut}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ut}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:wn}},[`${Ut}-draggable-icon`]:{visibility:"hidden"},[`${Ut}-switcher`]:Object.assign(Object.assign({},ye(Me,Fe)),{position:"relative",flex:"none",alignSelf:"stretch",width:wn,margin:0,lineHeight:`${(0,ws.bf)(wn)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Fe.motionDurationSlow}`,borderRadius:Fe.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${Ut}-switcher-noop):hover`]:{backgroundColor:Fe.colorBgTextHover},"&_close":{[`${Ut}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Fe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Fe.calc(wn).div(2).equal(),bottom:Fe.calc(An).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Fe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Fe.calc(Fe.calc(wn).div(2).equal()).mul(.8).equal(),height:Fe.calc(wn).div(2).equal(),borderBottom:`1px solid ${Fe.colorBorder}`,content:'""'}}}),[`${Ut}-checkbox`]:{top:"initial",marginInlineEnd:Tr,alignSelf:"flex-start",marginTop:Fe.marginXXS},[`${Ut}-node-content-wrapper, ${Ut}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:wn,margin:0,padding:`0 ${(0,ws.bf)(Fe.calc(Fe.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,ws.bf)(wn)}`,background:"transparent",borderRadius:Fe.borderRadius,cursor:"pointer",transition:`all ${Fe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:cr},[`&${Ut}-node-selected`]:{backgroundColor:gr},[`${Ut}-iconEle`]:{display:"inline-block",width:wn,height:wn,lineHeight:`${(0,ws.bf)(wn)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ut}-unselectable ${Ut}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ut}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,ws.bf)(wn)}`,userSelect:"none"},S(Me,Fe)),[`${fn}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Fe.colorPrimary}`}},"&-show-line":{[`${Ut}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Fe.calc(wn).div(2).equal(),bottom:Fe.calc(An).mul(-1).equal(),borderInlineEnd:`1px solid ${Fe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ut}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${fn}-leaf-last`]:{[`${Ut}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,ws.bf)(Fe.calc(wn).div(2).equal())} !important`}}}}})}},ve=Me=>{const{treeCls:Fe,treeNodeCls:Ut,treeNodePadding:fn,directoryNodeSelectedBg:An,directoryNodeSelectedColor:wn}=Me;return{[`${Fe}${Fe}-directory`]:{[Ut]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:fn,insetInlineStart:0,transition:`background-color ${Me.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Me.controlItemBgHover}},"> *":{zIndex:1},[`${Fe}-switcher`]:{transition:`color ${Me.motionDurationMid}`},[`${Fe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Fe}-node-selected`]:{color:wn,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:Ir},[`${Me}-switcher`]:{color:Yr},[`${Me}-node-content-wrapper`]:{color:Yr,background:"transparent"}}}}}},RC=(Ne,Me)=>{const Gt=`.${Ne}`,wr=`${Gt}-treenode`,Ir=Me.calc(Me.paddingXS).div(2).equal(),Yr=(0,kx.TS)(Me,{treeCls:Gt,treeNodeCls:wr,treeNodePadding:Ir});return[Mw(Ne,Yr),K2(Yr)]},QC=Ne=>{const{controlHeightSM:Me}=Ne;return{titleHeight:Me,nodeHoverBg:Ne.controlItemBgHover,nodeSelectedBg:Ne.controlItemBgActive}},r1=Ne=>{const{colorTextLightSolid:Me,colorPrimary:Gt}=Ne;return Object.assign(Object.assign({},QC(Ne)),{directoryNodeSelectedColor:Me,directoryNodeSelectedBg:Gt})};var j=(0,C2.I$)("Tree",(Ne,Me)=>{let{prefixCls:Gt}=Me;return[{[Ne.componentCls]:(0,kg.C2)(`${Gt}-checkbox`,Ne)},RC(Gt,Ne),(0,OS.Z)(Ne)]},r1);const Y=4;function Te(Ne){const{dropPosition:Me,dropLevelOffset:Gt,prefixCls:wr,indent:Ir,direction:Yr="ltr"}=Ne,Ws=Yr==="ltr"?"left":"right",qs=Yr==="ltr"?"right":"left",_a={[Ws]:-Gt*Ir+Y,[qs]:0};switch(Me){case-1:_a.top=-3;break;case 1:_a.bottom=-3;break;default:_a.bottom=-3,_a[Ws]=Ir+Y;break}return u.createElement("div",{style:_a,className:`${wr}-drop-indicator`})}var Ue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Hn=Ue,za=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:Hn}))},og=u.forwardRef(za),it=l(20555),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},we=z,et=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:we}))},Tt=u.forwardRef(et),_r=l(48245),va=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:_r.Z}))},La=u.forwardRef(va),yu=l(20612),re=Ne=>{const{prefixCls:Me,switcherIcon:Gt,treeNodeProps:wr,showLine:Ir}=Ne,{isLeaf:Yr,expanded:Ws,loading:qs}=wr;if(qs)return u.createElement(it.Z,{className:`${Me}-switcher-loading-icon`});let _a;if(Ir&&typeof Ir=="object"&&(_a=Ir.showLeafIcon),Yr){if(!Ir)return null;if(typeof _a!="boolean"&&_a){const zd=typeof _a=="function"?_a(wr):_a,_g=`${Me}-switcher-line-custom-icon`;return(0,yu.l$)(zd)?(0,yu.Tm)(zd,{className:vn()(zd.props.className||"",_g)}):zd}return _a?u.createElement(rE,{className:`${Me}-switcher-line-icon`}):u.createElement("span",{className:`${Me}-switcher-leaf-line`})}const ru=`${Me}-switcher-icon`,Rd=typeof Gt=="function"?Gt(wr):Gt;return(0,yu.l$)(Rd)?(0,yu.Tm)(Rd,{className:vn()(Rd.props.className||"",ru)}):Rd!==void 0?Rd:Ir?Ws?u.createElement(Tt,{className:`${Me}-switcher-line-icon`}):u.createElement(La,{className:`${Me}-switcher-line-icon`}):u.createElement(og,{className:ru})},ge=u.forwardRef((Ne,Me)=>{var Gt;const{getPrefixCls:wr,direction:Ir,virtual:Yr,tree:Ws}=u.useContext(J_.E_),{prefixCls:qs,className:_a,showIcon:ru=!1,showLine:Rd,switcherIcon:zd,blockNode:_g=!1,children:au,checkable:Fd=!1,selectable:zg=!0,draggable:v0,motion:x0,style:a0}=Ne,M0=wr("tree",qs),O0=wr(),Y0=x0!=null?x0:Object.assign(Object.assign({},(0,yw.Z)(O0)),{motionAppear:!1}),V0=Object.assign(Object.assign({},Ne),{checkable:Fd,selectable:zg,showIcon:ru,motion:Y0,blockNode:_g,showLine:!!Rd,dropIndicatorRender:Te}),[t1,Zg,y0]=j(M0),[,Fg]=(0,YS.ZP)(),_0=Fg.paddingXS/2+(((Gt=Fg.Tree)===null||Gt===void 0?void 0:Gt.titleHeight)||Fg.controlHeightSM),Ou=u.useMemo(()=>{if(!v0)return!1;let o0={};switch(typeof v0){case"function":o0.nodeDraggable=v0;break;case"object":o0=Object.assign({},v0);break;default:break}return o0.icon!==!1&&(o0.icon=o0.icon||u.createElement(HE,null)),o0},[v0]),Kg=o0=>u.createElement(re,{prefixCls:M0,switcherIcon:zd,treeNodeProps:o0,showLine:Rd});return t1(u.createElement(YE.Z,Object.assign({itemHeight:_0,ref:Me,virtual:Yr},V0,{style:Object.assign(Object.assign({},Ws==null?void 0:Ws.style),a0),prefixCls:M0,className:vn()({[`${M0}-icon-hide`]:!ru,[`${M0}-block-node`]:_g,[`${M0}-unselectable`]:!zg,[`${M0}-rtl`]:Ir==="rtl"},Ws==null?void 0:Ws.className,_a,Zg,y0),direction:Ir,checkable:Fd&&u.createElement("span",{className:`${M0}-checkbox-inner`}),selectable:zg,switcherIcon:Kg,draggable:Ou}),au))}),Le;(function(Ne){Ne[Ne.None=0]="None",Ne[Ne.Start=1]="Start",Ne[Ne.End=2]="End"})(Le||(Le={}));function Wt(Ne,Me,Gt){const{key:wr,children:Ir}=Gt;function Yr(Ws){const qs=Ws[wr],_a=Ws[Ir];Me(qs,Ws)!==!1&&Wt(_a||[],Me,Gt)}Ne.forEach(Yr)}function ni(Ne){let{treeData:Me,expandedKeys:Gt,startKey:wr,endKey:Ir,fieldNames:Yr}=Ne;const Ws=[];let qs=Le.None;if(wr&&wr===Ir)return[wr];if(!wr||!Ir)return[];function _a(ru){return ru===wr||ru===Ir}return Wt(Me,ru=>{if(qs===Le.End)return!1;if(_a(ru)){if(Ws.push(ru),qs===Le.None)qs=Le.Start;else if(qs===Le.Start)return qs=Le.End,!1}else qs===Le.Start&&Ws.push(ru);return Gt.includes(ru)},(0,v1.w$)(Yr)),Ws}function Vo(Ne,Me,Gt){const wr=(0,Su.Z)(Me),Ir=[];return Wt(Ne,(Yr,Ws)=>{const qs=wr.indexOf(Yr);return qs!==-1&&(Ir.push(Ws),wr.splice(qs,1)),!!wr.length},(0,v1.w$)(Gt)),Ir}var Ua=function(Ne,Me){var Gt={};for(var wr in Ne)Object.prototype.hasOwnProperty.call(Ne,wr)&&Me.indexOf(wr)<0&&(Gt[wr]=Ne[wr]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,wr=Object.getOwnPropertySymbols(Ne);Ir{var{defaultExpandAll:Gt,defaultExpandParent:wr,defaultExpandedKeys:Ir}=Ne,Yr=Ua(Ne,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ws=u.useRef(),qs=u.useRef(),_a=()=>{const{keyEntities:Zg}=(0,v1.I8)(ou(Yr));let y0;return Gt?y0=Object.keys(Zg):wr?y0=(0,Iv.r7)(Yr.expandedKeys||Ir||[],Zg):y0=Yr.expandedKeys||Ir,y0},[ru,Rd]=u.useState(Yr.selectedKeys||Yr.defaultSelectedKeys||[]),[zd,_g]=u.useState(()=>_a());u.useEffect(()=>{"selectedKeys"in Yr&&Rd(Yr.selectedKeys)},[Yr.selectedKeys]),u.useEffect(()=>{"expandedKeys"in Yr&&_g(Yr.expandedKeys)},[Yr.expandedKeys]);const au=(Zg,y0)=>{var Fg;return"expandedKeys"in Yr||_g(Zg),(Fg=Yr.onExpand)===null||Fg===void 0?void 0:Fg.call(Yr,Zg,y0)},Fd=(Zg,y0)=>{var Fg;const{multiple:_0,fieldNames:Ou}=Yr,{node:Kg,nativeEvent:o0}=y0,{key:f0=""}=Kg,T0=ou(Yr),D0=Object.assign(Object.assign({},y0),{selected:!0}),pv=(o0==null?void 0:o0.ctrlKey)||(o0==null?void 0:o0.metaKey),f1=o0==null?void 0:o0.shiftKey;let Jv;_0&&pv?(Jv=Zg,Ws.current=f0,qs.current=Jv,D0.selectedNodes=Vo(T0,Jv,Ou)):_0&&f1?(Jv=Array.from(new Set([].concat((0,Su.Z)(qs.current||[]),(0,Su.Z)(ni({treeData:T0,expandedKeys:zd,startKey:f0,endKey:Ws.current,fieldNames:Ou}))))),D0.selectedNodes=Vo(T0,Jv,Ou)):(Jv=[f0],Ws.current=f0,qs.current=Jv,D0.selectedNodes=Vo(T0,Jv,Ou)),(Fg=Yr.onSelect)===null||Fg===void 0||Fg.call(Yr,Jv,D0),"selectedKeys"in Yr||Rd(Jv)},{getPrefixCls:zg,direction:v0}=u.useContext(J_.E_),{prefixCls:x0,className:a0,showIcon:M0=!0,expandAction:O0="click"}=Yr,Y0=Ua(Yr,["prefixCls","className","showIcon","expandAction"]),V0=zg("tree",x0),t1=vn()(`${V0}-directory`,{[`${V0}-directory-rtl`]:v0==="rtl"},a0);return u.createElement(ge,Object.assign({icon:Lg,ref:Me,blockNode:!0},Y0,{showIcon:M0,expandAction:O0,prefixCls:V0,className:t1,expandedKeys:zd,selectedKeys:ru,onSelect:Fd,onExpand:au}))};var fv=u.forwardRef(I0);const Yv=ge;Yv.DirectoryTree=fv,Yv.TreeNode=YE.O;var d1=Yv,uv=l(38528),e1=l(46527);function iy(Ne){let{value:Me,onChange:Gt,filterSearch:wr,tablePrefixCls:Ir,locale:Yr}=Ne;return wr?u.createElement("div",{className:`${Ir}-filter-dropdown-search`},u.createElement(e1.Z,{prefix:u.createElement(uv.Z,null),placeholder:Yr.filterSearchPlaceholder,onChange:Gt,value:Me,htmlSize:1,className:`${Ir}-filter-dropdown-search-input`})):null}var Jy=iy;const qy=Ne=>{const{keyCode:Me}=Ne;Me===Cx.Z.ENTER&&Ne.stopPropagation()};var x_=u.forwardRef((Ne,Me)=>u.createElement("div",{className:Ne.className,onClick:Gt=>Gt.stopPropagation(),onKeyDown:qy,ref:Me},Ne.children));function lx(Ne){let Me=[];return(Ne||[]).forEach(Gt=>{let{value:wr,children:Ir}=Gt;Me.push(wr),Ir&&(Me=[].concat((0,Su.Z)(Me),(0,Su.Z)(lx(Ir))))}),Me}function zx(Ne){return Ne.some(Me=>{let{children:Gt}=Me;return Gt})}function s2(Ne,Me){return typeof Me=="string"||typeof Me=="number"?Me==null?void 0:Me.toString().toLowerCase().includes(Ne.trim().toLowerCase()):!1}function Yx(Ne){let{filters:Me,prefixCls:Gt,filteredKeys:wr,filterMultiple:Ir,searchValue:Yr,filterSearch:Ws}=Ne;return Me.map((qs,_a)=>{const ru=String(qs.value);if(qs.children)return{key:ru||_a,label:qs.text,popupClassName:`${Gt}-dropdown-submenu`,children:Yx({filters:qs.children,prefixCls:Gt,filteredKeys:wr,filterMultiple:Ir,searchValue:Yr,filterSearch:Ws})};const Rd=Ir?ty:g_.ZP,zd={key:qs.value!==void 0?ru:_a,label:u.createElement(u.Fragment,null,u.createElement(Rd,{checked:wr.includes(ru)}),u.createElement("span",null,qs.text))};return Yr.trim()?typeof Ws=="function"?Ws(Yr,qs)?zd:null:s2(Yr,qs.text)?zd:null:zd})}function tw(Ne){return Ne||[]}function ww(Ne){var Me,Gt;const{tablePrefixCls:wr,prefixCls:Ir,column:Yr,dropdownPrefixCls:Ws,columnKey:qs,filterMultiple:_a,filterMode:ru="menu",filterSearch:Rd=!1,filterState:zd,triggerFilter:_g,locale:au,children:Fd,getPopupContainer:zg,rootClassName:v0}=Ne,{filterDropdownOpen:x0,onFilterDropdownOpenChange:a0,filterResetToDefaultFilteredValue:M0,defaultFilteredValue:O0,filterDropdownVisible:Y0,onFilterDropdownVisibleChange:V0}=Yr,[t1,Zg]=u.useState(!1),y0=!!(zd&&(!((Me=zd.filteredKeys)===null||Me===void 0)&&Me.length||zd.forceFiltered)),Fg=q0=>{Zg(q0),a0==null||a0(q0),V0==null||V0(q0)},_0=(Gt=x0!=null?x0:Y0)!==null&&Gt!==void 0?Gt:t1,Ou=zd==null?void 0:zd.filteredKeys,[Kg,o0]=bE(tw(Ou)),f0=q0=>{let{selectedKeys:Ev}=q0;o0(Ev)},T0=(q0,Ev)=>{let{node:Fv,checked:Q1}=Ev;f0(_a?{selectedKeys:q0}:{selectedKeys:Q1&&Fv.key?[Fv.key]:[]})};u.useEffect(()=>{t1&&f0({selectedKeys:tw(Ou)})},[Ou]);const[D0,pv]=u.useState([]),f1=q0=>{pv(q0)},[Jv,m1]=u.useState(""),Iy=q0=>{const{value:Ev}=q0.target;m1(Ev)};u.useEffect(()=>{t1||m1("")},[t1]);const n1=q0=>{const Ev=q0&&q0.length?q0:null;if(Ev===null&&(!zd||!zd.filteredKeys)||(0,a.Z)(Ev,zd==null?void 0:zd.filteredKeys,!0))return null;_g({column:Yr,key:qs,filteredKeys:Ev})},t_=()=>{Fg(!1),n1(Kg())},O1=function(){let{confirm:q0,closeDropdown:Ev}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};q0&&n1([]),Ev&&Fg(!1),m1(""),o0(M0?(O0||[]).map(Fv=>String(Fv)):[])},Mv=function(){let{closeDropdown:q0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};q0&&Fg(!1),n1(Kg())},Qy=(q0,Ev)=>{Ev.source==="trigger"&&(q0&&Ou!==void 0&&o0(tw(Ou)),Fg(q0),!q0&&!Yr.filterDropdown&&t_())},r_=vn()({[`${Ws}-menu-without-submenu`]:!zx(Yr.filters||[])}),My=q0=>{if(q0.target.checked){const Ev=lx(Yr==null?void 0:Yr.filters).map(Fv=>String(Fv));o0(Ev)}else o0([])},Da=q0=>{let{filters:Ev}=q0;return(Ev||[]).map((Fv,Q1)=>{const vy=String(Fv.value),nn={title:Fv.text,key:Fv.value!==void 0?vy:String(Q1)};return Fv.children&&(nn.children=Da({filters:Fv.children})),nn})},mg=q0=>{var Ev;return Object.assign(Object.assign({},q0),{text:q0.title,value:q0.key,children:((Ev=q0.children)===null||Ev===void 0?void 0:Ev.map(Fv=>mg(Fv)))||[]})};let w0;if(typeof Yr.filterDropdown=="function")w0=Yr.filterDropdown({prefixCls:`${Ws}-custom`,setSelectedKeys:q0=>f0({selectedKeys:q0}),selectedKeys:Kg(),confirm:Mv,clearFilters:O1,filters:Yr.filters,visible:_0,close:()=>{Fg(!1)}});else if(Yr.filterDropdown)w0=Yr.filterDropdown;else{const q0=Kg()||[],Ev=()=>(Yr.filters||[]).length===0?u.createElement(aC.Z,{image:aC.Z.PRESENTED_IMAGE_SIMPLE,description:au.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ru==="tree"?u.createElement(u.Fragment,null,u.createElement(Jy,{filterSearch:Rd,value:Jv,onChange:Iy,tablePrefixCls:wr,locale:au}),u.createElement("div",{className:`${wr}-filter-dropdown-tree`},_a?u.createElement(ty,{checked:q0.length===lx(Yr.filters).length,indeterminate:q0.length>0&&q0.lengthtypeof Rd=="function"?Rd(Jv,mg(Q1)):s2(Jv,Q1.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(Jy,{filterSearch:Rd,value:Jv,onChange:Iy,tablePrefixCls:wr,locale:au}),u.createElement(zE.Z,{selectable:!0,multiple:_a,prefixCls:`${Ws}-menu`,className:r_,onSelect:f0,onDeselect:f0,selectedKeys:q0,getPopupContainer:zg,openKeys:D0,onOpenChange:f1,items:Yx({filters:Yr.filters||[],filterSearch:Rd,prefixCls:Ir,filteredKeys:Kg(),filterMultiple:_a,searchValue:Jv})})),Fv=()=>M0?(0,a.Z)((O0||[]).map(Q1=>String(Q1)),q0,!0):q0.length===0;w0=u.createElement(u.Fragment,null,Ev(),u.createElement("div",{className:`${Ir}-dropdown-btns`},u.createElement(xE.ZP,{type:"link",size:"small",disabled:Fv(),onClick:()=>O1()},au.filterReset),u.createElement(xE.ZP,{type:"primary",size:"small",onClick:t_},au.filterConfirm)))}Yr.filterDropdown&&(w0=u.createElement(UT.J,{selectable:void 0},w0));const Kv=()=>u.createElement(x_,{className:`${Ir}-dropdown`},w0);let l1;typeof Yr.filterIcon=="function"?l1=Yr.filterIcon(y0):Yr.filterIcon?l1=Yr.filterIcon:l1=u.createElement(IE,null);const{direction:V1}=u.useContext(J_.E_);return u.createElement("div",{className:`${Ir}-column`},u.createElement("span",{className:`${wr}-column-title`},Fd),u.createElement(h_.Z,{dropdownRender:Kv,trigger:["click"],open:_0,onOpenChange:Qy,getPopupContainer:zg,placement:V1==="rtl"?"bottomLeft":"bottomRight",rootClassName:v0},u.createElement("span",{role:"button",tabIndex:-1,className:vn()(`${Ir}-trigger`,{active:y0}),onClick:q0=>{q0.stopPropagation()}},l1)))}var uC=ww;function Qw(Ne,Me,Gt){let wr=[];return(Ne||[]).forEach((Ir,Yr)=>{var Ws;const qs=cT(Yr,Gt);if(Ir.filters||"filterDropdown"in Ir||"onFilter"in Ir)if("filteredValue"in Ir){let _a=Ir.filteredValue;"filterDropdown"in Ir||(_a=(Ws=_a==null?void 0:_a.map(String))!==null&&Ws!==void 0?Ws:_a),wr.push({column:Ir,key:TE(Ir,qs),filteredKeys:_a,forceFiltered:Ir.filtered})}else wr.push({column:Ir,key:TE(Ir,qs),filteredKeys:Me&&Ir.defaultFilteredValue?Ir.defaultFilteredValue:void 0,forceFiltered:Ir.filtered});"children"in Ir&&(wr=[].concat((0,Su.Z)(wr),(0,Su.Z)(Qw(Ir.children,Me,qs))))}),wr}function tS(Ne,Me,Gt,wr,Ir,Yr,Ws,qs,_a){return Gt.map((ru,Rd)=>{const zd=cT(Rd,qs),{filterMultiple:_g=!0,filterMode:au,filterSearch:Fd}=ru;let zg=ru;if(zg.filters||zg.filterDropdown){const v0=TE(zg,zd),x0=wr.find(a0=>{let{key:M0}=a0;return v0===M0});zg=Object.assign(Object.assign({},zg),{title:a0=>u.createElement(uC,{tablePrefixCls:Ne,prefixCls:`${Ne}-filter`,dropdownPrefixCls:Me,column:zg,columnKey:v0,filterState:x0,filterMultiple:_g,filterMode:au,filterSearch:Fd,triggerFilter:Yr,locale:Ir,getPopupContainer:Ws,rootClassName:_a},dT(ru.title,a0))})}return"children"in zg&&(zg=Object.assign(Object.assign({},zg),{children:tS(Ne,Me,zg.children,wr,Ir,Yr,Ws,zd,_a)})),zg})}function ow(Ne){const Me={};return Ne.forEach(Gt=>{let{key:wr,filteredKeys:Ir,column:Yr}=Gt;const Ws=wr,{filters:qs,filterDropdown:_a}=Yr;if(_a)Me[Ws]=Ir||null;else if(Array.isArray(Ir)){const ru=lx(qs);Me[Ws]=ru.filter(Rd=>Ir.includes(String(Rd)))}else Me[Ws]=null}),Me}function S2(Ne,Me,Gt){return Me.reduce((wr,Ir)=>{const{column:{onFilter:Yr,filters:Ws},filteredKeys:qs}=Ir;return Yr&&qs&&qs.length?wr.map(_a=>Object.assign({},_a)).filter(_a=>qs.some(ru=>{const Rd=lx(Ws),zd=Rd.findIndex(au=>String(au)===String(ru)),_g=zd!==-1?Rd[zd]:ru;return _a[Gt]&&(_a[Gt]=S2(_a[Gt],Me,Gt)),Yr(_g,_a)})):wr},Ne)}const yS=Ne=>Ne.flatMap(Me=>"children"in Me?[Me].concat((0,Su.Z)(yS(Me.children||[]))):[Me]);function iS(Ne){let{prefixCls:Me,dropdownPrefixCls:Gt,mergedColumns:wr,onFilterChange:Ir,getPopupContainer:Yr,locale:Ws,rootClassName:qs}=Ne;const _a=(0,Kx.ln)("Table"),ru=u.useMemo(()=>yS(wr||[]),[wr]),[Rd,zd]=u.useState(()=>Qw(ru,!0)),_g=u.useMemo(()=>{const v0=Qw(ru,!1);if(v0.length===0)return v0;let x0=!0,a0=!0;if(v0.forEach(M0=>{let{filteredKeys:O0}=M0;O0!==void 0?x0=!1:a0=!1}),x0){const M0=(ru||[]).map((O0,Y0)=>TE(O0,cT(Y0)));return Rd.filter(O0=>{let{key:Y0}=O0;return M0.includes(Y0)}).map(O0=>{const Y0=ru[M0.findIndex(V0=>V0===O0.key)];return Object.assign(Object.assign({},O0),{column:Object.assign(Object.assign({},O0.column),Y0),forceFiltered:Y0.filtered})})}return v0},[ru,Rd]),au=u.useMemo(()=>ow(_g),[_g]),Fd=v0=>{const x0=_g.filter(a0=>{let{key:M0}=a0;return M0!==v0.key});x0.push(v0),zd(x0),Ir(ow(x0),x0)};return[v0=>tS(Me,Gt,v0,_g,Ws,Fd,Yr,void 0,qs),_g,au]}var wC=iS;function xS(Ne,Me,Gt){const wr=u.useRef({});function Ir(Yr){if(!wr.current||wr.current.data!==Ne||wr.current.childrenColumnName!==Me||wr.current.getRowKey!==Gt){let qs=function(_a){_a.forEach((ru,Rd)=>{const zd=Gt(ru,Rd);Ws.set(zd,ru),ru&&typeof ru=="object"&&Me in ru&&qs(ru[Me]||[])})};const Ws=new Map;qs(Ne),wr.current={data:Ne,childrenColumnName:Me,kvMap:Ws,getRowKey:Gt}}return wr.current.kvMap.get(Yr)}return[Ir]}var AC=function(){const Ne=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Me=1;Me{const Ir=Gt[wr];Ir!==void 0&&(Ne[wr]=Ir)})}return Ne},tT=function(Ne,Me){var Gt={};for(var wr in Ne)Object.prototype.hasOwnProperty.call(Ne,wr)&&Me.indexOf(wr)<0&&(Gt[wr]=Ne[wr]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,wr=Object.getOwnPropertySymbols(Ne);Ir{const Yr=Ne[Ir];typeof Yr!="function"&&(Gt[Ir]=Yr)}),Gt}function J2(Ne,Me,Gt){const wr=Gt&&typeof Gt=="object"?Gt:{},{total:Ir=0}=wr,Yr=tT(wr,["total"]),[Ws,qs]=(0,u.useState)(()=>({current:"defaultCurrent"in Yr?Yr.defaultCurrent:1,pageSize:"defaultPageSize"in Yr?Yr.defaultPageSize:wE})),_a=AC(Ws,Yr,{total:Ir>0?Ir:Ne}),ru=Math.ceil((Ir||Ne)/_a.pageSize);_a.current>ru&&(_a.current=ru||1);const Rd=(_g,au)=>{qs({current:_g!=null?_g:1,pageSize:au||_a.pageSize})},zd=(_g,au)=>{var Fd;Gt&&((Fd=Gt.onChange)===null||Fd===void 0||Fd.call(Gt,_g,au)),Rd(_g,au),Me(_g,au||(_a==null?void 0:_a.pageSize))};return Gt===!1?[{},()=>{}]:[Object.assign(Object.assign({},_a),{onChange:zd}),Rd]}var E2=J2,Sw={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},vw=Sw,yC=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:vw}))},T2=u.forwardRef(yC),jC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},oS=jC,nw=function(Me,Gt){return u.createElement(FS.Z,(0,ie.Z)({},Me,{ref:Gt,icon:oS}))},Xv=u.forwardRef(nw),GE=l(3773);const LE="ascend",oA="descend";function FT(Ne){return typeof Ne.sorter=="object"&&typeof Ne.sorter.multiple=="number"?Ne.sorter.multiple:!1}function uE(Ne){return typeof Ne=="function"?Ne:Ne&&typeof Ne=="object"&&Ne.compare?Ne.compare:!1}function ET(Ne,Me){return Me?Ne[Ne.indexOf(Me)+1]:Ne[0]}function cC(Ne,Me,Gt){let wr=[];function Ir(Yr,Ws){wr.push({column:Yr,key:TE(Yr,Ws),multiplePriority:FT(Yr),sortOrder:Yr.sortOrder})}return(Ne||[]).forEach((Yr,Ws)=>{const qs=cT(Ws,Gt);Yr.children?("sortOrder"in Yr&&Ir(Yr,qs),wr=[].concat((0,Su.Z)(wr),(0,Su.Z)(cC(Yr.children,Me,qs)))):Yr.sorter&&("sortOrder"in Yr?Ir(Yr,qs):Me&&Yr.defaultSortOrder&&wr.push({column:Yr,key:TE(Yr,qs),multiplePriority:FT(Yr),sortOrder:Yr.defaultSortOrder}))}),wr}function xT(Ne,Me,Gt,wr,Ir,Yr,Ws,qs){return(Me||[]).map((_a,ru)=>{const Rd=cT(ru,qs);let zd=_a;if(zd.sorter){const _g=zd.sortDirections||Ir,au=zd.showSorterTooltip===void 0?Ws:zd.showSorterTooltip,Fd=TE(zd,Rd),zg=Gt.find(Zg=>{let{key:y0}=Zg;return y0===Fd}),v0=zg?zg.sortOrder:null,x0=ET(_g,v0);let a0;if(_a.sortIcon)a0=_a.sortIcon({sortOrder:v0});else{const Zg=_g.includes(LE)&&u.createElement(Xv,{className:vn()(`${Ne}-column-sorter-up`,{active:v0===LE})}),y0=_g.includes(oA)&&u.createElement(T2,{className:vn()(`${Ne}-column-sorter-down`,{active:v0===oA})});a0=u.createElement("span",{className:vn()(`${Ne}-column-sorter`,{[`${Ne}-column-sorter-full`]:!!(Zg&&y0)})},u.createElement("span",{className:`${Ne}-column-sorter-inner`,"aria-hidden":"true"},Zg,y0))}const{cancelSort:M0,triggerAsc:O0,triggerDesc:Y0}=Yr||{};let V0=M0;x0===oA?V0=Y0:x0===LE&&(V0=O0);const t1=typeof au=="object"?Object.assign({title:V0},au):{title:V0};zd=Object.assign(Object.assign({},zd),{className:vn()(zd.className,{[`${Ne}-column-sort`]:v0}),title:Zg=>{const y0=u.createElement("div",{className:`${Ne}-column-sorters`},u.createElement("span",{className:`${Ne}-column-title`},dT(_a.title,Zg)),a0);return au?u.createElement(GE.Z,Object.assign({},t1),y0):y0},onHeaderCell:Zg=>{const y0=_a.onHeaderCell&&_a.onHeaderCell(Zg)||{},Fg=y0.onClick,_0=y0.onKeyDown;y0.onClick=o0=>{wr({column:_a,key:Fd,sortOrder:x0,multiplePriority:FT(_a)}),Fg==null||Fg(o0)},y0.onKeyDown=o0=>{o0.keyCode===Cx.Z.ENTER&&(wr({column:_a,key:Fd,sortOrder:x0,multiplePriority:FT(_a)}),_0==null||_0(o0))};const Ou=US(_a.title,{}),Kg=Ou==null?void 0:Ou.toString();return v0?y0["aria-sort"]=v0==="ascend"?"ascending":"descending":y0["aria-label"]=Kg||"",y0.className=vn()(y0.className,`${Ne}-column-has-sorters`),y0.tabIndex=0,_a.ellipsis&&(y0.title=(Ou!=null?Ou:"").toString()),y0}})}return"children"in zd&&(zd=Object.assign(Object.assign({},zd),{children:xT(Ne,zd.children,Gt,wr,Ir,Yr,Ws,Rd)})),zd})}function wT(Ne){const{column:Me,sortOrder:Gt}=Ne;return{column:Me,order:Gt,field:Me.dataIndex,columnKey:Me.key}}function oE(Ne){const Me=Ne.filter(Gt=>{let{sortOrder:wr}=Gt;return wr}).map(wT);return Me.length===0&&Ne.length?Object.assign(Object.assign({},wT(Ne[Ne.length-1])),{column:void 0}):Me.length<=1?Me[0]||{}:Me}function DT(Ne,Me,Gt){const wr=Me.slice().sort((Ws,qs)=>qs.multiplePriority-Ws.multiplePriority),Ir=Ne.slice(),Yr=wr.filter(Ws=>{let{column:{sorter:qs},sortOrder:_a}=Ws;return uE(qs)&&_a});return Yr.length?Ir.sort((Ws,qs)=>{for(let _a=0;_a{const qs=Ws[Gt];return qs?Object.assign(Object.assign({},Ws),{[Gt]:DT(qs,Me,Gt)}):Ws}):Ir}function WC(Ne){let{prefixCls:Me,mergedColumns:Gt,onSorterChange:wr,sortDirections:Ir,tableLocale:Yr,showSorterTooltip:Ws}=Ne;const[qs,_a]=u.useState(cC(Gt,!0)),ru=u.useMemo(()=>{let Fd=!0;const zg=cC(Gt,!1);if(!zg.length)return qs;const v0=[];function x0(M0){Fd?v0.push(M0):v0.push(Object.assign(Object.assign({},M0),{sortOrder:null}))}let a0=null;return zg.forEach(M0=>{a0===null?(x0(M0),M0.sortOrder&&(M0.multiplePriority===!1?Fd=!1:a0=!0)):(a0&&M0.multiplePriority!==!1||(Fd=!1),x0(M0))}),v0},[Gt,qs]),Rd=u.useMemo(()=>{const Fd=ru.map(zg=>{let{column:v0,sortOrder:x0}=zg;return{column:v0,order:x0}});return{sortColumns:Fd,sortColumn:Fd[0]&&Fd[0].column,sortOrder:Fd[0]&&Fd[0].order}},[ru]);function zd(Fd){let zg;Fd.multiplePriority===!1||!ru.length||ru[0].multiplePriority===!1?zg=[Fd]:zg=[].concat((0,Su.Z)(ru.filter(v0=>{let{key:x0}=v0;return x0!==Fd.key})),[Fd]),_a(zg),wr(oE(zg),zg)}return[Fd=>xT(Me,Fd,ru,zd,Ir,Yr,Ws),ru,Rd,()=>oE(ru)]}function wS(Ne,Me){return Ne.map(Gt=>{const wr=Object.assign({},Gt);return wr.title=dT(Gt.title,Me),"children"in wr&&(wr.children=wS(wr.children,Me)),wr})}function GT(Ne){return[u.useCallback(Gt=>wS(Gt,Ne),[Ne])]}var wA=No((Ne,Me)=>{const{_renderTimes:Gt}=Ne,{_renderTimes:wr}=Me;return Gt!==wr}),cE=wy((Ne,Me)=>{const{_renderTimes:Gt}=Ne,{_renderTimes:wr}=Me;return Gt!==wr}),kC=l(64993),$A=Ne=>{const{componentCls:Me,lineWidth:Gt,lineType:wr,tableBorderColor:Ir,tableHeaderBg:Yr,tablePaddingVertical:Ws,tablePaddingHorizontal:qs,calc:_a}=Ne,ru=`${(0,j1.bf)(Gt)} ${wr} ${Ir}`,Rd=(zd,_g,au)=>({[`&${Me}-${zd}`]:{[`> ${Me}-container`]:{[`> ${Me}-content, > ${Me}-body`]:{[` + `]:{background:An},[`${Fe}-switcher`]:{color:wn},[`${Fe}-node-content-wrapper`]:{color:wn,background:"transparent"}}}}}},Ae=(Me,Fe)=>{const Ut=`.${Me}`,fn=`${Ut}-treenode`,An=Fe.calc(Fe.paddingXS).div(2).equal(),wn=(0,Lu.TS)(Fe,{treeCls:Ut,treeNodeCls:fn,treeNodePadding:An});return[J(Me,wn),ve(wn)]},Qe=Me=>{const{controlHeightSM:Fe}=Me;return{titleHeight:Fe,nodeHoverBg:Me.controlItemBgHover,nodeSelectedBg:Me.controlItemBgActive}},Ht=Me=>{const{colorTextLightSolid:Fe,colorPrimary:Ut}=Me;return Object.assign(Object.assign({},Qe(Me)),{directoryNodeSelectedColor:Fe,directoryNodeSelectedBg:Ut})};var Qt=(0,mc.I$)("Tree",(Me,Fe)=>{let{prefixCls:Ut}=Fe;return[{[Me.componentCls]:(0,Sr.C2)(`${Ut}-checkbox`,Me)},Ae(Ut,Me),(0,_n.Z)(Me)]},Ht);const $n=4;function kr(Me){const{dropPosition:Fe,dropLevelOffset:Ut,prefixCls:fn,indent:An,direction:wn="ltr"}=Me,gr=wn==="ltr"?"left":"right",cr=wn==="ltr"?"right":"left",Tr={[gr]:-Ut*An+$n,[cr]:0};switch(Fe){case-1:Tr.top=-3;break;case 1:Tr.bottom=-3;break;default:Tr.bottom=-3,Tr[gr]=An+$n;break}return v.createElement("div",{style:Tr,className:`${fn}-drop-indicator`})}var B={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},H=B,G=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:H}))},re=v.forwardRef(G),ke=x(20555),_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Lt=_t,bn=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Lt}))},_r=v.forwardRef(bn),Dn=x(48245),mi=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Dn.Z}))},Mi=v.forwardRef(mi),zo=Me=>{const{prefixCls:Fe,switcherIcon:Ut,treeNodeProps:fn,showLine:An}=Me,{isLeaf:wn,expanded:gr,loading:cr}=fn;if(cr)return v.createElement(ke.Z,{className:`${Fe}-switcher-loading-icon`});let Tr;if(An&&typeof An=="object"&&(Tr=An.showLeafIcon),wn){if(!An)return null;if(typeof Tr!="boolean"&&Tr){const Bn=typeof Tr=="function"?Tr(fn):Tr,Or=`${Fe}-switcher-line-custom-icon`;return(0,vc.l$)(Bn)?(0,vc.Tm)(Bn,{className:Xe()(Bn.props.className||"",Or)}):Bn}return Tr?v.createElement(_f,{className:`${Fe}-switcher-line-icon`}):v.createElement("span",{className:`${Fe}-switcher-leaf-line`})}const Nr=`${Fe}-switcher-icon`,Pi=typeof Ut=="function"?Ut(fn):Ut;return(0,vc.l$)(Pi)?(0,vc.Tm)(Pi,{className:Xe()(Pi.props.className||"",Nr)}):Pi!==void 0?Pi:An?gr?v.createElement(_r,{className:`${Fe}-switcher-line-icon`}):v.createElement(Mi,{className:`${Fe}-switcher-line-icon`}):v.createElement(re,{className:Nr})},Gi=v.forwardRef((Me,Fe)=>{var Ut;const{getPrefixCls:fn,direction:An,virtual:wn,tree:gr}=v.useContext(vu.E_),{prefixCls:cr,className:Tr,showIcon:Nr=!1,showLine:Pi,switcherIcon:Bn,blockNode:Or=!1,children:Vn,checkable:Cr=!1,selectable:kn=!0,draggable:yr,motion:Ir,style:ei}=Me,ri=fn("tree",cr),Ci=fn(),Oi=Ir!=null?Ir:Object.assign(Object.assign({},(0,Ke.Z)(Ci)),{motionAppear:!1}),vo=Object.assign(Object.assign({},Me),{checkable:Cr,selectable:kn,showIcon:Nr,motion:Oi,blockNode:Or,showLine:!!Pi,dropIndicatorRender:kr}),[wo,jo,cs]=Qt(ri),[,oo]=(0,Wf.ZP)(),ha=oo.paddingXS/2+(((Ut=oo.Tree)===null||Ut===void 0?void 0:Ut.titleHeight)||oo.controlHeightSM),xo=v.useMemo(()=>{if(!yr)return!1;let Os={};switch(typeof yr){case"function":Os.nodeDraggable=yr;break;case"object":Os=Object.assign({},yr);break;default:break}return Os.icon!==!1&&(Os.icon=Os.icon||v.createElement(ue,null)),Os},[yr]),ki=Os=>v.createElement(zo,{prefixCls:ri,switcherIcon:Bn,treeNodeProps:Os,showLine:Pi});return wo(v.createElement(_p.Z,Object.assign({itemHeight:ha,ref:Fe,virtual:wn},vo,{style:Object.assign(Object.assign({},gr==null?void 0:gr.style),ei),prefixCls:ri,className:Xe()({[`${ri}-icon-hide`]:!Nr,[`${ri}-block-node`]:Or,[`${ri}-unselectable`]:!kn,[`${ri}-rtl`]:An==="rtl"},gr==null?void 0:gr.className,Tr,jo,cs),direction:An,checkable:Cr&&v.createElement("span",{className:`${ri}-checkbox-inner`}),selectable:kn,switcherIcon:ki,draggable:xo}),Vn))}),Fo;(function(Me){Me[Me.None=0]="None",Me[Me.Start=1]="Start",Me[Me.End=2]="End"})(Fo||(Fo={}));function js(Me,Fe,Ut){const{key:fn,children:An}=Ut;function wn(gr){const cr=gr[fn],Tr=gr[An];Fe(cr,gr)!==!1&&js(Tr||[],Fe,Ut)}Me.forEach(wn)}function za(Me){let{treeData:Fe,expandedKeys:Ut,startKey:fn,endKey:An,fieldNames:wn}=Me;const gr=[];let cr=Fo.None;if(fn&&fn===An)return[fn];if(!fn||!An)return[];function Tr(Nr){return Nr===fn||Nr===An}return js(Fe,Nr=>{if(cr===Fo.End)return!1;if(Tr(Nr)){if(gr.push(Nr),cr===Fo.None)cr=Fo.Start;else if(cr===Fo.Start)return cr=Fo.End,!1}else cr===Fo.Start&&gr.push(Nr);return Ut.includes(Nr)},(0,Ua.w$)(wn)),gr}function Oa(Me,Fe,Ut){const fn=(0,tr.Z)(Fe),An=[];return js(Me,(wn,gr)=>{const cr=fn.indexOf(wn);return cr!==-1&&(An.push(gr),fn.splice(cr,1)),!!fn.length},(0,Ua.w$)(Ut)),An}var Ul=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{var{defaultExpandAll:Ut,defaultExpandParent:fn,defaultExpandedKeys:An}=Me,wn=Ul(Me,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const gr=v.useRef(),cr=v.useRef(),Tr=()=>{const{keyEntities:jo}=(0,Ua.I8)(du(wn));let cs;return Ut?cs=Object.keys(jo):fn?cs=(0,Fl.r7)(wn.expandedKeys||An||[],jo):cs=wn.expandedKeys||An,cs},[Nr,Pi]=v.useState(wn.selectedKeys||wn.defaultSelectedKeys||[]),[Bn,Or]=v.useState(()=>Tr());v.useEffect(()=>{"selectedKeys"in wn&&Pi(wn.selectedKeys)},[wn.selectedKeys]),v.useEffect(()=>{"expandedKeys"in wn&&Or(wn.expandedKeys)},[wn.expandedKeys]);const Vn=(jo,cs)=>{var oo;return"expandedKeys"in wn||Or(jo),(oo=wn.onExpand)===null||oo===void 0?void 0:oo.call(wn,jo,cs)},Cr=(jo,cs)=>{var oo;const{multiple:ha,fieldNames:xo}=wn,{node:ki,nativeEvent:Os}=cs,{key:Es=""}=ki,Cs=du(wn),$t=Object.assign(Object.assign({},cs),{selected:!0}),ar=(Os==null?void 0:Os.ctrlKey)||(Os==null?void 0:Os.metaKey),si=Os==null?void 0:Os.shiftKey;let Io;ha&&ar?(Io=jo,gr.current=Es,cr.current=Io,$t.selectedNodes=Oa(Cs,Io,xo)):ha&&si?(Io=Array.from(new Set([].concat((0,tr.Z)(cr.current||[]),(0,tr.Z)(za({treeData:Cs,expandedKeys:Bn,startKey:Es,endKey:gr.current,fieldNames:xo}))))),$t.selectedNodes=Oa(Cs,Io,xo)):(Io=[Es],gr.current=Es,cr.current=Io,$t.selectedNodes=Oa(Cs,Io,xo)),(oo=wn.onSelect)===null||oo===void 0||oo.call(wn,Io,$t),"selectedKeys"in wn||Pi(Io)},{getPrefixCls:kn,direction:yr}=v.useContext(vu.E_),{prefixCls:Ir,className:ei,showIcon:ri=!0,expandAction:Ci="click"}=wn,Oi=Ul(wn,["prefixCls","className","showIcon","expandAction"]),vo=kn("tree",Ir),wo=Xe()(`${vo}-directory`,{[`${vo}-directory-rtl`]:yr==="rtl"},ei);return v.createElement(Gi,Object.assign({icon:cl,ref:Fe,blockNode:!0},Oi,{showIcon:ri,expandAction:Ci,prefixCls:vo,className:wo,expandedKeys:Bn,selectedKeys:Nr,onSelect:Cr,onExpand:Vn}))};var ju=v.forwardRef(Pu);const qc=Gi;qc.DirectoryTree=ju,qc.TreeNode=_p.O;var vh=qc,td=x(38528),Gh=x(46527);function Yd(Me){let{value:Fe,onChange:Ut,filterSearch:fn,tablePrefixCls:An,locale:wn}=Me;return fn?v.createElement("div",{className:`${An}-filter-dropdown-search`},v.createElement(Gh.Z,{prefix:v.createElement(td.Z,null),placeholder:wn.filterSearchPlaceholder,onChange:Ut,value:Fe,htmlSize:1,className:`${An}-filter-dropdown-search-input`})):null}var Qc=Yd;const wc=Me=>{const{keyCode:Fe}=Me;Fe===yu.Z.ENTER&&Me.stopPropagation()};var Jd=v.forwardRef((Me,Fe)=>v.createElement("div",{className:Me.className,onClick:Ut=>Ut.stopPropagation(),onKeyDown:wc,ref:Fe},Me.children));function nd(Me){let Fe=[];return(Me||[]).forEach(Ut=>{let{value:fn,children:An}=Ut;Fe.push(fn),An&&(Fe=[].concat((0,tr.Z)(Fe),(0,tr.Z)(nd(An))))}),Fe}function gf(Me){return Me.some(Fe=>{let{children:Ut}=Fe;return Ut})}function qd(Me,Fe){return typeof Fe=="string"||typeof Fe=="number"?Fe==null?void 0:Fe.toString().toLowerCase().includes(Me.trim().toLowerCase()):!1}function _d(Me){let{filters:Fe,prefixCls:Ut,filteredKeys:fn,filterMultiple:An,searchValue:wn,filterSearch:gr}=Me;return Fe.map((cr,Tr)=>{const Nr=String(cr.value);if(cr.children)return{key:Nr||Tr,label:cr.text,popupClassName:`${Ut}-dropdown-submenu`,children:_d({filters:cr.children,prefixCls:Ut,filteredKeys:fn,filterMultiple:An,searchValue:wn,filterSearch:gr})};const Pi=An?Vs:sl.ZP,Bn={key:cr.value!==void 0?Nr:Tr,label:v.createElement(v.Fragment,null,v.createElement(Pi,{checked:fn.includes(Nr)}),v.createElement("span",null,cr.text))};return wn.trim()?typeof gr=="function"?gr(wn,cr)?Bn:null:qd(wn,cr.text)?Bn:null:Bn})}function jp(Me){return Me||[]}function wp(Me){var Fe,Ut;const{tablePrefixCls:fn,prefixCls:An,column:wn,dropdownPrefixCls:gr,columnKey:cr,filterMultiple:Tr,filterMode:Nr="menu",filterSearch:Pi=!1,filterState:Bn,triggerFilter:Or,locale:Vn,children:Cr,getPopupContainer:kn,rootClassName:yr}=Me,{filterDropdownOpen:Ir,onFilterDropdownOpenChange:ei,filterResetToDefaultFilteredValue:ri,defaultFilteredValue:Ci,filterDropdownVisible:Oi,onFilterDropdownVisibleChange:vo}=wn,[wo,jo]=v.useState(!1),cs=!!(Bn&&(!((Fe=Bn.filteredKeys)===null||Fe===void 0)&&Fe.length||Bn.forceFiltered)),oo=$i=>{jo($i),ei==null||ei($i),vo==null||vo($i)},ha=(Ut=Ir!=null?Ir:Oi)!==null&&Ut!==void 0?Ut:wo,xo=Bn==null?void 0:Bn.filteredKeys,[ki,Os]=Nf(jp(xo)),Es=$i=>{let{selectedKeys:$s}=$i;Os($s)},Cs=($i,$s)=>{let{node:Ko,checked:qs}=$s;Es(Tr?{selectedKeys:$i}:{selectedKeys:qs&&Ko.key?[Ko.key]:[]})};v.useEffect(()=>{wo&&Es({selectedKeys:jp(xo)})},[xo]);const[$t,ar]=v.useState([]),si=$i=>{ar($i)},[Io,ls]=v.useState(""),ua=$i=>{const{value:$s}=$i.target;ls($s)};v.useEffect(()=>{wo||ls("")},[wo]);const lo=$i=>{const $s=$i&&$i.length?$i:null;if($s===null&&(!Bn||!Bn.filteredKeys)||(0,Y.Z)($s,Bn==null?void 0:Bn.filteredKeys,!0))return null;Or({column:wn,key:cr,filteredKeys:$s})},So=()=>{oo(!1),lo(ki())},No=function(){let{confirm:$i,closeDropdown:$s}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};$i&&lo([]),$s&&oo(!1),ls(""),Os(ri?(Ci||[]).map(Ko=>String(Ko)):[])},Ls=function(){let{closeDropdown:$i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};$i&&oo(!1),lo(ki())},ma=($i,$s)=>{$s.source==="trigger"&&($i&&xo!==void 0&&Os(jp(xo)),oo($i),!$i&&!wn.filterDropdown&&So())},Ne=Xe()({[`${gr}-menu-without-submenu`]:!gf(wn.filters||[])}),ja=$i=>{if($i.target.checked){const $s=nd(wn==null?void 0:wn.filters).map(Ko=>String(Ko));Os($s)}else Os([])},Ol=$i=>{let{filters:$s}=$i;return($s||[]).map((Ko,qs)=>{const pa=String(Ko.value),vl={title:Ko.text,key:Ko.value!==void 0?pa:String(qs)};return Ko.children&&(vl.children=Ol({filters:Ko.children})),vl})},ll=$i=>{var $s;return Object.assign(Object.assign({},$i),{text:$i.title,value:$i.key,children:(($s=$i.children)===null||$s===void 0?void 0:$s.map(Ko=>ll(Ko)))||[]})};let ta;if(typeof wn.filterDropdown=="function")ta=wn.filterDropdown({prefixCls:`${gr}-custom`,setSelectedKeys:$i=>Es({selectedKeys:$i}),selectedKeys:ki(),confirm:Ls,clearFilters:No,filters:wn.filters,visible:ha,close:()=>{oo(!1)}});else if(wn.filterDropdown)ta=wn.filterDropdown;else{const $i=ki()||[],$s=()=>(wn.filters||[]).length===0?v.createElement(Xh.Z,{image:Xh.Z.PRESENTED_IMAGE_SIMPLE,description:Vn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Nr==="tree"?v.createElement(v.Fragment,null,v.createElement(Qc,{filterSearch:Pi,value:Io,onChange:ua,tablePrefixCls:fn,locale:Vn}),v.createElement("div",{className:`${fn}-filter-dropdown-tree`},Tr?v.createElement(Vs,{checked:$i.length===nd(wn.filters).length,indeterminate:$i.length>0&&$i.lengthtypeof Pi=="function"?Pi(Io,ll(qs)):qd(Io,qs.title):void 0}))):v.createElement(v.Fragment,null,v.createElement(Qc,{filterSearch:Pi,value:Io,onChange:ua,tablePrefixCls:fn,locale:Vn}),v.createElement(ed.Z,{selectable:!0,multiple:Tr,prefixCls:`${gr}-menu`,className:Ne,onSelect:Es,onDeselect:Es,selectedKeys:$i,getPopupContainer:kn,openKeys:$t,onOpenChange:si,items:_d({filters:wn.filters||[],filterSearch:Pi,prefixCls:An,filteredKeys:ki(),filterMultiple:Tr,searchValue:Io})})),Ko=()=>ri?(0,Y.Z)((Ci||[]).map(qs=>String(qs)),$i,!0):$i.length===0;ta=v.createElement(v.Fragment,null,$s(),v.createElement("div",{className:`${An}-dropdown-btns`},v.createElement(zh.ZP,{type:"link",size:"small",disabled:Ko(),onClick:()=>No()},Vn.filterReset),v.createElement(zh.ZP,{type:"primary",size:"small",onClick:So},Vn.filterConfirm)))}wn.filterDropdown&&(ta=v.createElement(Hh.J,{selectable:void 0},ta));const ga=()=>v.createElement(Jd,{className:`${An}-dropdown`},ta);let qa;typeof wn.filterIcon=="function"?qa=wn.filterIcon(cs):wn.filterIcon?qa=wn.filterIcon:qa=v.createElement(Bp,null);const{direction:bs}=v.useContext(vu.E_);return v.createElement("div",{className:`${An}-column`},v.createElement("span",{className:`${fn}-column-title`},Cr),v.createElement(ol.Z,{dropdownRender:ga,trigger:["click"],open:ha,onOpenChange:ma,getPopupContainer:kn,placement:bs==="rtl"?"bottomLeft":"bottomRight",rootClassName:yr},v.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${An}-trigger`,{active:cs}),onClick:$i=>{$i.stopPropagation()}},qa)))}var Lp=wp;function jc(Me,Fe,Ut){let fn=[];return(Me||[]).forEach((An,wn)=>{var gr;const cr=Yp(wn,Ut);if(An.filters||"filterDropdown"in An||"onFilter"in An)if("filteredValue"in An){let Tr=An.filteredValue;"filterDropdown"in An||(Tr=(gr=Tr==null?void 0:Tr.map(String))!==null&&gr!==void 0?gr:Tr),fn.push({column:An,key:sd(An,cr),filteredKeys:Tr,forceFiltered:An.filtered})}else fn.push({column:An,key:sd(An,cr),filteredKeys:Fe&&An.defaultFilteredValue?An.defaultFilteredValue:void 0,forceFiltered:An.filtered});"children"in An&&(fn=[].concat((0,tr.Z)(fn),(0,tr.Z)(jc(An.children,Fe,cr))))}),fn}function yc(Me,Fe,Ut,fn,An,wn,gr,cr,Tr){return Ut.map((Nr,Pi)=>{const Bn=Yp(Pi,cr),{filterMultiple:Or=!0,filterMode:Vn,filterSearch:Cr}=Nr;let kn=Nr;if(kn.filters||kn.filterDropdown){const yr=sd(kn,Bn),Ir=fn.find(ei=>{let{key:ri}=ei;return yr===ri});kn=Object.assign(Object.assign({},kn),{title:ei=>v.createElement(Lp,{tablePrefixCls:Me,prefixCls:`${Me}-filter`,dropdownPrefixCls:Fe,column:kn,columnKey:yr,filterState:Ir,filterMultiple:Or,filterMode:Vn,filterSearch:Cr,triggerFilter:wn,locale:An,getPopupContainer:gr,rootClassName:Tr},Kh(Nr.title,ei))})}return"children"in kn&&(kn=Object.assign(Object.assign({},kn),{children:yc(Me,Fe,kn.children,fn,An,wn,gr,Bn,Tr)})),kn})}function yh(Me){const Fe={};return Me.forEach(Ut=>{let{key:fn,filteredKeys:An,column:wn}=Ut;const gr=fn,{filters:cr,filterDropdown:Tr}=wn;if(Tr)Fe[gr]=An||null;else if(Array.isArray(An)){const Nr=nd(cr);Fe[gr]=Nr.filter(Pi=>An.includes(String(Pi)))}else Fe[gr]=null}),Fe}function uh(Me,Fe,Ut){return Fe.reduce((fn,An)=>{const{column:{onFilter:wn,filters:gr},filteredKeys:cr}=An;return wn&&cr&&cr.length?fn.map(Tr=>Object.assign({},Tr)).filter(Tr=>cr.some(Nr=>{const Pi=nd(gr),Bn=Pi.findIndex(Vn=>String(Vn)===String(Nr)),Or=Bn!==-1?Pi[Bn]:Nr;return Tr[Ut]&&(Tr[Ut]=uh(Tr[Ut],Fe,Ut)),wn(Or,Tr)})):fn},Me)}const ad=Me=>Me.flatMap(Fe=>"children"in Fe?[Fe].concat((0,tr.Z)(ad(Fe.children||[]))):[Fe]);function bc(Me){let{prefixCls:Fe,dropdownPrefixCls:Ut,mergedColumns:fn,onFilterChange:An,getPopupContainer:wn,locale:gr,rootClassName:cr}=Me;const Tr=(0,ch.ln)("Table"),Nr=v.useMemo(()=>ad(fn||[]),[fn]),[Pi,Bn]=v.useState(()=>jc(Nr,!0)),Or=v.useMemo(()=>{const yr=jc(Nr,!1);if(yr.length===0)return yr;let Ir=!0,ei=!0;if(yr.forEach(ri=>{let{filteredKeys:Ci}=ri;Ci!==void 0?Ir=!1:ei=!1}),Ir){const ri=(Nr||[]).map((Ci,Oi)=>sd(Ci,Yp(Oi)));return Pi.filter(Ci=>{let{key:Oi}=Ci;return ri.includes(Oi)}).map(Ci=>{const Oi=Nr[ri.findIndex(vo=>vo===Ci.key)];return Object.assign(Object.assign({},Ci),{column:Object.assign(Object.assign({},Ci.column),Oi),forceFiltered:Oi.filtered})})}return yr},[Nr,Pi]),Vn=v.useMemo(()=>yh(Or),[Or]),Cr=yr=>{const Ir=Or.filter(ei=>{let{key:ri}=ei;return ri!==yr.key});Ir.push(yr),Bn(Ir),An(yh(Ir),Ir)};return[yr=>yc(Fe,Ut,yr,Or,gr,Cr,wn,void 0,cr),Or,Vn]}var kd=bc;function Qd(Me,Fe,Ut){const fn=v.useRef({});function An(wn){if(!fn.current||fn.current.data!==Me||fn.current.childrenColumnName!==Fe||fn.current.getRowKey!==Ut){let cr=function(Tr){Tr.forEach((Nr,Pi)=>{const Bn=Ut(Nr,Pi);gr.set(Bn,Nr),Nr&&typeof Nr=="object"&&Fe in Nr&&cr(Nr[Fe]||[])})};const gr=new Map;cr(Me),fn.current={data:Me,childrenColumnName:Fe,kvMap:gr,getRowKey:Ut}}return fn.current.kvMap.get(wn)}return[An]}var Oo=function(){const Me=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe{const An=Ut[fn];An!==void 0&&(Me[fn]=An)})}return Me},Vp=function(Me,Fe){var Ut={};for(var fn in Me)Object.prototype.hasOwnProperty.call(Me,fn)&&Fe.indexOf(fn)<0&&(Ut[fn]=Me[fn]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,fn=Object.getOwnPropertySymbols(Me);An{const wn=Me[An];typeof wn!="function"&&(Ut[An]=wn)}),Ut}function Ng(Me,Fe,Ut){const fn=Ut&&typeof Ut=="object"?Ut:{},{total:An=0}=fn,wn=Vp(fn,["total"]),[gr,cr]=(0,v.useState)(()=>({current:"defaultCurrent"in wn?wn.defaultCurrent:1,pageSize:"defaultPageSize"in wn?wn.defaultPageSize:Rp})),Tr=Oo(gr,wn,{total:An>0?An:Me}),Nr=Math.ceil((An||Me)/Tr.pageSize);Tr.current>Nr&&(Tr.current=Nr||1);const Pi=(Or,Vn)=>{cr({current:Or!=null?Or:1,pageSize:Vn||Tr.pageSize})},Bn=(Or,Vn)=>{var Cr;Ut&&((Cr=Ut.onChange)===null||Cr===void 0||Cr.call(Ut,Or,Vn)),Pi(Or,Vn),Fe(Or,Vn||(Tr==null?void 0:Tr.pageSize))};return Ut===!1?[{},()=>{}]:[Object.assign(Object.assign({},Tr),{onChange:Bn}),Pi]}var sp=Ng,_g={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ld=_g,bg=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:ld}))},xg=v.forwardRef(bg),ip={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Tg=ip,Od=function(Fe,Ut){return v.createElement(Mf.Z,(0,Ie.Z)({},Fe,{ref:Ut,icon:Tg}))},xf=v.forwardRef(Od),Vg=x(3773);const im="ascend",ep="descend";function Ld(Me){return typeof Me.sorter=="object"&&typeof Me.sorter.multiple=="number"?Me.sorter.multiple:!1}function g0(Me){return typeof Me=="function"?Me:Me&&typeof Me=="object"&&Me.compare?Me.compare:!1}function zm(Me,Fe){return Fe?Me[Me.indexOf(Fe)+1]:Me[0]}function Ym(Me,Fe,Ut){let fn=[];function An(wn,gr){fn.push({column:wn,key:sd(wn,gr),multiplePriority:Ld(wn),sortOrder:wn.sortOrder})}return(Me||[]).forEach((wn,gr)=>{const cr=Yp(gr,Ut);wn.children?("sortOrder"in wn&&An(wn,cr),fn=[].concat((0,tr.Z)(fn),(0,tr.Z)(Ym(wn.children,Fe,cr)))):wn.sorter&&("sortOrder"in wn?An(wn,cr):Fe&&wn.defaultSortOrder&&fn.push({column:wn,key:sd(wn,cr),multiplePriority:Ld(wn),sortOrder:wn.defaultSortOrder}))}),fn}function lm(Me,Fe,Ut,fn,An,wn,gr,cr){return(Fe||[]).map((Tr,Nr)=>{const Pi=Yp(Nr,cr);let Bn=Tr;if(Bn.sorter){const Or=Bn.sortDirections||An,Vn=Bn.showSorterTooltip===void 0?gr:Bn.showSorterTooltip,Cr=sd(Bn,Pi),kn=Ut.find(jo=>{let{key:cs}=jo;return cs===Cr}),yr=kn?kn.sortOrder:null,Ir=zm(Or,yr);let ei;if(Tr.sortIcon)ei=Tr.sortIcon({sortOrder:yr});else{const jo=Or.includes(im)&&v.createElement(xf,{className:Xe()(`${Me}-column-sorter-up`,{active:yr===im})}),cs=Or.includes(ep)&&v.createElement(xg,{className:Xe()(`${Me}-column-sorter-down`,{active:yr===ep})});ei=v.createElement("span",{className:Xe()(`${Me}-column-sorter`,{[`${Me}-column-sorter-full`]:!!(jo&&cs)})},v.createElement("span",{className:`${Me}-column-sorter-inner`,"aria-hidden":"true"},jo,cs))}const{cancelSort:ri,triggerAsc:Ci,triggerDesc:Oi}=wn||{};let vo=ri;Ir===ep?vo=Oi:Ir===im&&(vo=Ci);const wo=typeof Vn=="object"?Object.assign({title:vo},Vn):{title:vo};Bn=Object.assign(Object.assign({},Bn),{className:Xe()(Bn.className,{[`${Me}-column-sort`]:yr}),title:jo=>{const cs=v.createElement("div",{className:`${Me}-column-sorters`},v.createElement("span",{className:`${Me}-column-title`},Kh(Tr.title,jo)),ei);return Vn?v.createElement(Vg.Z,Object.assign({},wo),cs):cs},onHeaderCell:jo=>{const cs=Tr.onHeaderCell&&Tr.onHeaderCell(jo)||{},oo=cs.onClick,ha=cs.onKeyDown;cs.onClick=Os=>{fn({column:Tr,key:Cr,sortOrder:Ir,multiplePriority:Ld(Tr)}),oo==null||oo(Os)},cs.onKeyDown=Os=>{Os.keyCode===yu.Z.ENTER&&(fn({column:Tr,key:Cr,sortOrder:Ir,multiplePriority:Ld(Tr)}),ha==null||ha(Os))};const xo=Qf(Tr.title,{}),ki=xo==null?void 0:xo.toString();return yr?cs["aria-sort"]=yr==="ascend"?"ascending":"descending":cs["aria-label"]=ki||"",cs.className=Xe()(cs.className,`${Me}-column-has-sorters`),cs.tabIndex=0,Tr.ellipsis&&(cs.title=(xo!=null?xo:"").toString()),cs}})}return"children"in Bn&&(Bn=Object.assign(Object.assign({},Bn),{children:lm(Me,Bn.children,Ut,fn,An,wn,gr,Pi)})),Bn})}function b0(Me){const{column:Fe,sortOrder:Ut}=Me;return{column:Fe,order:Ut,field:Fe.dataIndex,columnKey:Fe.key}}function x0(Me){const Fe=Me.filter(Ut=>{let{sortOrder:fn}=Ut;return fn}).map(b0);return Fe.length===0&&Me.length?Object.assign(Object.assign({},b0(Me[Me.length-1])),{column:void 0}):Fe.length<=1?Fe[0]||{}:Fe}function Im(Me,Fe,Ut){const fn=Fe.slice().sort((gr,cr)=>cr.multiplePriority-gr.multiplePriority),An=Me.slice(),wn=fn.filter(gr=>{let{column:{sorter:cr},sortOrder:Tr}=gr;return g0(cr)&&Tr});return wn.length?An.sort((gr,cr)=>{for(let Tr=0;Tr{const cr=gr[Ut];return cr?Object.assign(Object.assign({},gr),{[Ut]:Im(cr,Fe,Ut)}):gr}):An}function xm(Me){let{prefixCls:Fe,mergedColumns:Ut,onSorterChange:fn,sortDirections:An,tableLocale:wn,showSorterTooltip:gr}=Me;const[cr,Tr]=v.useState(Ym(Ut,!0)),Nr=v.useMemo(()=>{let Cr=!0;const kn=Ym(Ut,!1);if(!kn.length)return cr;const yr=[];function Ir(ri){Cr?yr.push(ri):yr.push(Object.assign(Object.assign({},ri),{sortOrder:null}))}let ei=null;return kn.forEach(ri=>{ei===null?(Ir(ri),ri.sortOrder&&(ri.multiplePriority===!1?Cr=!1:ei=!0)):(ei&&ri.multiplePriority!==!1||(Cr=!1),Ir(ri))}),yr},[Ut,cr]),Pi=v.useMemo(()=>{const Cr=Nr.map(kn=>{let{column:yr,sortOrder:Ir}=kn;return{column:yr,order:Ir}});return{sortColumns:Cr,sortColumn:Cr[0]&&Cr[0].column,sortOrder:Cr[0]&&Cr[0].order}},[Nr]);function Bn(Cr){let kn;Cr.multiplePriority===!1||!Nr.length||Nr[0].multiplePriority===!1?kn=[Cr]:kn=[].concat((0,tr.Z)(Nr.filter(yr=>{let{key:Ir}=yr;return Ir!==Cr.key})),[Cr]),Tr(kn),fn(x0(kn),kn)}return[Cr=>lm(Fe,Cr,Nr,Bn,An,wn,gr),Nr,Pi,()=>x0(Nr)]}function Sm(Me,Fe){return Me.map(Ut=>{const fn=Object.assign({},Ut);return fn.title=Kh(Ut.title,Fe),"children"in fn&&(fn.children=Sm(fn.children,Fe)),fn})}function M0(Me){return[v.useCallback(Ut=>Sm(Ut,Me),[Me])]}var C0=sn((Me,Fe)=>{const{_renderTimes:Ut}=Me,{_renderTimes:fn}=Fe;return Ut!==fn}),pm=_a((Me,Fe)=>{const{_renderTimes:Ut}=Me,{_renderTimes:fn}=Fe;return Ut!==fn}),gg=x(64993),Fg=Me=>{const{componentCls:Fe,lineWidth:Ut,lineType:fn,tableBorderColor:An,tableHeaderBg:wn,tablePaddingVertical:gr,tablePaddingHorizontal:cr,calc:Tr}=Me,Nr=`${(0,ws.bf)(Ut)} ${fn} ${An}`,Pi=(Bn,Or,Vn)=>({[`&${Fe}-${Bn}`]:{[`> ${Fe}-container`]:{[`> ${Fe}-content, > ${Fe}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td - `]:{[`> ${Me}-expanded-row-fixed`]:{margin:`${(0,j1.bf)(_a(_g).mul(-1).equal())} - ${(0,j1.bf)(_a(_a(au).add(Gt)).mul(-1).equal())}`}}}}}});return{[`${Me}-wrapper`]:{[`${Me}${Me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Me}-title`]:{border:ru,borderBottom:0},[`> ${Me}-container`]:{borderInlineStart:ru,borderTop:ru,[` - > ${Me}-content, - > ${Me}-header, - > ${Me}-body, - > ${Me}-summary + `]:{[`> ${Fe}-expanded-row-fixed`]:{margin:`${(0,ws.bf)(Tr(Or).mul(-1).equal())} + ${(0,ws.bf)(Tr(Tr(Vn).add(Ut)).mul(-1).equal())}`}}}}}});return{[`${Fe}-wrapper`]:{[`${Fe}${Fe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Fe}-title`]:{border:Nr,borderBottom:0},[`> ${Fe}-container`]:{borderInlineStart:Nr,borderTop:Nr,[` + > ${Fe}-content, + > ${Fe}-header, + > ${Fe}-body, + > ${Fe}-summary `]:{"> table":{[` > thead > tr > th, > thead > tr > td, @@ -7223,77 +7218,77 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td - `]:{borderInlineEnd:ru},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ru},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + `]:{borderInlineEnd:Nr},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Nr},"> tr > th::before":{backgroundColor:"transparent !important"}},[` > thead > tr, > tbody > tr, > tfoot > tr - `]:{[`> ${Me}-cell-fix-right-first::after`]:{borderInlineEnd:ru}},[` + `]:{[`> ${Fe}-cell-fix-right-first::after`]:{borderInlineEnd:Nr}},[` > tbody > tr > th, > tbody > tr > td - `]:{[`> ${Me}-expanded-row-fixed`]:{margin:`${(0,j1.bf)(_a(Ws).mul(-1).equal())} ${(0,j1.bf)(_a(_a(qs).add(Gt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Gt,bottom:0,borderInlineEnd:ru,content:'""'}}}}}},[`&${Me}-scroll-horizontal`]:{[`> ${Me}-container > ${Me}-body`]:{"> table > tbody":{[` - > tr${Me}-expanded-row, - > tr${Me}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Rd("middle",Ne.tablePaddingVerticalMiddle,Ne.tablePaddingHorizontalMiddle)),Rd("small",Ne.tablePaddingVerticalSmall,Ne.tablePaddingHorizontalSmall)),{[`> ${Me}-footer`]:{border:ru,borderTop:0}}),[`${Me}-cell`]:{[`${Me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,j1.bf)(Gt)} 0 ${(0,j1.bf)(Gt)} ${Yr}`}},[`${Me}-bordered ${Me}-cell-scrollbar`]:{borderInlineEnd:ru}}}},gA=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-wrapper`]:{[`${Me}-cell-ellipsis`]:Object.assign(Object.assign({},Vx.vS),{wordBreak:"keep-all",[` - &${Me}-cell-fix-left-last, - &${Me}-cell-fix-right-first - `]:{overflow:"visible",[`${Me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},A3=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-wrapper`]:{[`${Me}-tbody > tr${Me}-placeholder`]:{textAlign:"center",color:Ne.colorTextDisabled,[` + `]:{[`> ${Fe}-expanded-row-fixed`]:{margin:`${(0,ws.bf)(Tr(gr).mul(-1).equal())} ${(0,ws.bf)(Tr(Tr(cr).add(Ut)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ut,bottom:0,borderInlineEnd:Nr,content:'""'}}}}}},[`&${Fe}-scroll-horizontal`]:{[`> ${Fe}-container > ${Fe}-body`]:{"> table > tbody":{[` + > tr${Fe}-expanded-row, + > tr${Fe}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Pi("middle",Me.tablePaddingVerticalMiddle,Me.tablePaddingHorizontalMiddle)),Pi("small",Me.tablePaddingVerticalSmall,Me.tablePaddingHorizontalSmall)),{[`> ${Fe}-footer`]:{border:Nr,borderTop:0}}),[`${Fe}-cell`]:{[`${Fe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ws.bf)(Ut)} 0 ${(0,ws.bf)(Ut)} ${wn}`}},[`${Fe}-bordered ${Fe}-cell-scrollbar`]:{borderInlineEnd:Nr}}}},hp=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-wrapper`]:{[`${Fe}-cell-ellipsis`]:Object.assign(Object.assign({},Ou.vS),{wordBreak:"keep-all",[` + &${Fe}-cell-fix-left-last, + &${Fe}-cell-fix-right-first + `]:{overflow:"visible",[`${Fe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Fe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Cf=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-wrapper`]:{[`${Fe}-tbody > tr${Fe}-placeholder`]:{textAlign:"center",color:Me.colorTextDisabled,[` &:hover > th, &:hover > td, - `]:{background:Ne.colorBgContainer}}}}},UA=l(7778),IA=Ne=>{const{componentCls:Me,antCls:Gt,motionDurationSlow:wr,lineWidth:Ir,paddingXS:Yr,lineType:Ws,tableBorderColor:qs,tableExpandIconBg:_a,tableExpandColumnWidth:ru,borderRadius:Rd,tablePaddingVertical:zd,tablePaddingHorizontal:_g,tableExpandedRowBg:au,paddingXXS:Fd,expandIconMarginTop:zg,expandIconSize:v0,expandIconHalfInner:x0,expandIconScale:a0,calc:M0}=Ne,O0=`${(0,j1.bf)(Ir)} ${Ws} ${qs}`,Y0=M0(Fd).sub(Ir).equal();return{[`${Me}-wrapper`]:{[`${Me}-expand-icon-col`]:{width:ru},[`${Me}-row-expand-icon-cell`]:{textAlign:"center",[`${Me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Me}-row-indent`]:{height:1,float:"left"},[`${Me}-row-expand-icon`]:Object.assign(Object.assign({},(0,UA.N)(Ne)),{position:"relative",float:"left",boxSizing:"border-box",width:v0,height:v0,padding:0,color:"inherit",lineHeight:(0,j1.bf)(v0),background:_a,border:O0,borderRadius:Rd,transform:`scale(${a0})`,transition:`all ${wr}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${wr} ease-out`,content:'""'},"&::before":{top:x0,insetInlineEnd:Y0,insetInlineStart:Y0,height:Ir},"&::after":{top:Y0,bottom:Y0,insetInlineStart:x0,width:Ir,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Me}-row-indent + ${Me}-row-expand-icon`]:{marginTop:zg,marginInlineEnd:Yr},[`tr${Me}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:au}},[`${Gt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Me}-expanded-row-fixed`]:{position:"relative",margin:`${(0,j1.bf)(M0(zd).mul(-1).equal())} ${(0,j1.bf)(M0(_g).mul(-1).equal())}`,padding:`${(0,j1.bf)(zd)} ${(0,j1.bf)(_g)}`}}}},w3=Ne=>{const{componentCls:Me,antCls:Gt,iconCls:wr,tableFilterDropdownWidth:Ir,tableFilterDropdownSearchWidth:Yr,paddingXXS:Ws,paddingXS:qs,colorText:_a,lineWidth:ru,lineType:Rd,tableBorderColor:zd,headerIconColor:_g,fontSizeSM:au,tablePaddingHorizontal:Fd,borderRadius:zg,motionDurationSlow:v0,colorTextDescription:x0,colorPrimary:a0,tableHeaderFilterActiveBg:M0,colorTextDisabled:O0,tableFilterDropdownBg:Y0,tableFilterDropdownHeight:V0,controlItemBgHover:t1,controlItemBgActive:Zg,boxShadowSecondary:y0,filterDropdownMenuBg:Fg,calc:_0}=Ne,Ou=`${Gt}-dropdown`,Kg=`${Me}-filter-dropdown`,o0=`${Gt}-tree`,f0=`${(0,j1.bf)(ru)} ${Rd} ${zd}`;return[{[`${Me}-wrapper`]:{[`${Me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_0(Ws).mul(-1).equal(),marginInline:`${(0,j1.bf)(Ws)} ${(0,j1.bf)(_0(Fd).div(2).mul(-1).equal())}`,padding:`0 ${(0,j1.bf)(Ws)}`,color:_g,fontSize:au,borderRadius:zg,cursor:"pointer",transition:`all ${v0}`,"&:hover":{color:x0,background:M0},"&.active":{color:a0}}}},{[`${Gt}-dropdown`]:{[Kg]:Object.assign(Object.assign({},(0,Vx.Wf)(Ne)),{minWidth:Ir,backgroundColor:Y0,borderRadius:zg,boxShadow:y0,overflow:"hidden",[`${Ou}-menu`]:{maxHeight:V0,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Fg,"&:empty::after":{display:"block",padding:`${(0,j1.bf)(qs)} 0`,color:O0,fontSize:au,textAlign:"center",content:'"Not Found"'}},[`${Kg}-tree`]:{paddingBlock:`${(0,j1.bf)(qs)} 0`,paddingInline:qs,[o0]:{padding:0},[`${o0}-treenode ${o0}-node-content-wrapper:hover`]:{backgroundColor:t1},[`${o0}-treenode-checkbox-checked ${o0}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Zg}}},[`${Kg}-search`]:{padding:qs,borderBottom:f0,"&-input":{input:{minWidth:Yr},[wr]:{color:O0}}},[`${Kg}-checkall`]:{width:"100%",marginBottom:Ws,marginInlineStart:Ws},[`${Kg}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,j1.bf)(_0(qs).sub(ru).equal())} ${(0,j1.bf)(qs)}`,overflow:"hidden",borderTop:f0}})}},{[`${Gt}-dropdown ${Kg}, ${Kg}-submenu`]:{[`${Gt}-checkbox-wrapper + span`]:{paddingInlineStart:qs,color:_a},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},OT=Ne=>{const{componentCls:Me,lineWidth:Gt,colorSplit:wr,motionDurationSlow:Ir,zIndexTableFixed:Yr,tableBg:Ws,zIndexTableSticky:qs,calc:_a}=Ne,ru=wr;return{[`${Me}-wrapper`]:{[` - ${Me}-cell-fix-left, - ${Me}-cell-fix-right - `]:{position:"sticky !important",zIndex:Yr,background:Ws},[` - ${Me}-cell-fix-left-first::after, - ${Me}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:_a(Gt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Ir}`,content:'""',pointerEvents:"none"},[`${Me}-cell-fix-left-all::after`]:{display:"none"},[` - ${Me}-cell-fix-right-first::after, - ${Me}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:_a(Gt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ir}`,content:'""',pointerEvents:"none"},[`${Me}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:_a(qs).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Ir}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Me}-ping-left`]:{[`&:not(${Me}-has-fix-left) ${Me}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${ru}`},[` - ${Me}-cell-fix-left-first::after, - ${Me}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${ru}`},[`${Me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Me}-ping-right`]:{[`&:not(${Me}-has-fix-right) ${Me}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${ru}`},[` - ${Me}-cell-fix-right-first::after, - ${Me}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${ru}`}},[`${Me}-fixed-column-gapped`]:{[` - ${Me}-cell-fix-left-first::after, - ${Me}-cell-fix-left-last::after, - ${Me}-cell-fix-right-first::after, - ${Me}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},WT=Ne=>{const{componentCls:Me,antCls:Gt,margin:wr}=Ne;return{[`${Me}-wrapper`]:{[`${Me}-pagination${Gt}-pagination`]:{margin:`${(0,j1.bf)(wr)} 0`},[`${Me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ne.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},gE=Ne=>{const{componentCls:Me,tableRadius:Gt}=Ne;return{[`${Me}-wrapper`]:{[Me]:{[`${Me}-title, ${Me}-header`]:{borderRadius:`${(0,j1.bf)(Gt)} ${(0,j1.bf)(Gt)} 0 0`},[`${Me}-title + ${Me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Gt,borderStartEndRadius:Gt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Gt},"> *:last-child":{borderStartEndRadius:Gt}}},"&-footer":{borderRadius:`0 0 ${(0,j1.bf)(Gt)} ${(0,j1.bf)(Gt)}`}}}}},TS=Ne=>{const{componentCls:Me}=Ne;return{[`${Me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Me}-pagination-left`]:{justifyContent:"flex-end"},[`${Me}-pagination-right`]:{justifyContent:"flex-start"},[`${Me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Me}-row-indent`]:{float:"right"}}}}},H3=Ne=>{const{componentCls:Me,antCls:Gt,iconCls:wr,fontSizeIcon:Ir,padding:Yr,paddingXS:Ws,headerIconColor:qs,headerIconHoverColor:_a,tableSelectionColumnWidth:ru,tableSelectedRowBg:Rd,tableSelectedRowHoverBg:zd,tableRowHoverBg:_g,tablePaddingHorizontal:au,calc:Fd}=Ne;return{[`${Me}-wrapper`]:{[`${Me}-selection-col`]:{width:ru,[`&${Me}-selection-col-with-dropdown`]:{width:Fd(ru).add(Ir).add(Fd(Yr).div(4)).equal()}},[`${Me}-bordered ${Me}-selection-col`]:{width:Fd(ru).add(Fd(Ws).mul(2)).equal(),[`&${Me}-selection-col-with-dropdown`]:{width:Fd(ru).add(Ir).add(Fd(Yr).div(4)).add(Fd(Ws).mul(2)).equal()}},[` - table tr th${Me}-selection-column, - table tr td${Me}-selection-column, - ${Me}-selection-column - `]:{paddingInlineEnd:Ne.paddingXS,paddingInlineStart:Ne.paddingXS,textAlign:"center",[`${Gt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Me}-selection-column${Me}-cell-fix-left`]:{zIndex:Ne.zIndexTableFixed+1},[`table tr th${Me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ne.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,j1.bf)(Fd(au).div(4).equal()),[wr]:{color:qs,fontSize:Ir,verticalAlign:"baseline","&:hover":{color:_a}}},[`${Me}-tbody`]:{[`${Me}-row`]:{[`&${Me}-row-selected`]:{[`> ${Me}-cell`]:{background:Rd,"&-row-hover":{background:zd}}},[`> ${Me}-cell-row-hover`]:{background:_g}}}}}},D3=Ne=>{const{componentCls:Me,tableExpandColumnWidth:Gt,calc:wr}=Ne,Ir=(Yr,Ws,qs,_a)=>({[`${Me}${Me}-${Yr}`]:{fontSize:_a,[` - ${Me}-title, - ${Me}-footer, - ${Me}-cell, - ${Me}-thead > tr > th, - ${Me}-tbody > tr > th, - ${Me}-tbody > tr > td, + `]:{background:Me.colorBgContainer}}}}},P0=x(7778),Om=Me=>{const{componentCls:Fe,antCls:Ut,motionDurationSlow:fn,lineWidth:An,paddingXS:wn,lineType:gr,tableBorderColor:cr,tableExpandIconBg:Tr,tableExpandColumnWidth:Nr,borderRadius:Pi,tablePaddingVertical:Bn,tablePaddingHorizontal:Or,tableExpandedRowBg:Vn,paddingXXS:Cr,expandIconMarginTop:kn,expandIconSize:yr,expandIconHalfInner:Ir,expandIconScale:ei,calc:ri}=Me,Ci=`${(0,ws.bf)(An)} ${gr} ${cr}`,Oi=ri(Cr).sub(An).equal();return{[`${Fe}-wrapper`]:{[`${Fe}-expand-icon-col`]:{width:Nr},[`${Fe}-row-expand-icon-cell`]:{textAlign:"center",[`${Fe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Fe}-row-indent`]:{height:1,float:"left"},[`${Fe}-row-expand-icon`]:Object.assign(Object.assign({},(0,P0.N)(Me)),{position:"relative",float:"left",boxSizing:"border-box",width:yr,height:yr,padding:0,color:"inherit",lineHeight:(0,ws.bf)(yr),background:Tr,border:Ci,borderRadius:Pi,transform:`scale(${ei})`,transition:`all ${fn}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${fn} ease-out`,content:'""'},"&::before":{top:Ir,insetInlineEnd:Oi,insetInlineStart:Oi,height:An},"&::after":{top:Oi,bottom:Oi,insetInlineStart:Ir,width:An,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Fe}-row-indent + ${Fe}-row-expand-icon`]:{marginTop:kn,marginInlineEnd:wn},[`tr${Fe}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:Vn}},[`${Ut}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Fe}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ws.bf)(ri(Bn).mul(-1).equal())} ${(0,ws.bf)(ri(Or).mul(-1).equal())}`,padding:`${(0,ws.bf)(Bn)} ${(0,ws.bf)(Or)}`}}}},hv=Me=>{const{componentCls:Fe,antCls:Ut,iconCls:fn,tableFilterDropdownWidth:An,tableFilterDropdownSearchWidth:wn,paddingXXS:gr,paddingXS:cr,colorText:Tr,lineWidth:Nr,lineType:Pi,tableBorderColor:Bn,headerIconColor:Or,fontSizeSM:Vn,tablePaddingHorizontal:Cr,borderRadius:kn,motionDurationSlow:yr,colorTextDescription:Ir,colorPrimary:ei,tableHeaderFilterActiveBg:ri,colorTextDisabled:Ci,tableFilterDropdownBg:Oi,tableFilterDropdownHeight:vo,controlItemBgHover:wo,controlItemBgActive:jo,boxShadowSecondary:cs,filterDropdownMenuBg:oo,calc:ha}=Me,xo=`${Ut}-dropdown`,ki=`${Fe}-filter-dropdown`,Os=`${Ut}-tree`,Es=`${(0,ws.bf)(Nr)} ${Pi} ${Bn}`;return[{[`${Fe}-wrapper`]:{[`${Fe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Fe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ha(gr).mul(-1).equal(),marginInline:`${(0,ws.bf)(gr)} ${(0,ws.bf)(ha(Cr).div(2).mul(-1).equal())}`,padding:`0 ${(0,ws.bf)(gr)}`,color:Or,fontSize:Vn,borderRadius:kn,cursor:"pointer",transition:`all ${yr}`,"&:hover":{color:Ir,background:ri},"&.active":{color:ei}}}},{[`${Ut}-dropdown`]:{[ki]:Object.assign(Object.assign({},(0,Ou.Wf)(Me)),{minWidth:An,backgroundColor:Oi,borderRadius:kn,boxShadow:cs,overflow:"hidden",[`${xo}-menu`]:{maxHeight:vo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:oo,"&:empty::after":{display:"block",padding:`${(0,ws.bf)(cr)} 0`,color:Ci,fontSize:Vn,textAlign:"center",content:'"Not Found"'}},[`${ki}-tree`]:{paddingBlock:`${(0,ws.bf)(cr)} 0`,paddingInline:cr,[Os]:{padding:0},[`${Os}-treenode ${Os}-node-content-wrapper:hover`]:{backgroundColor:wo},[`${Os}-treenode-checkbox-checked ${Os}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:jo}}},[`${ki}-search`]:{padding:cr,borderBottom:Es,"&-input":{input:{minWidth:wn},[fn]:{color:Ci}}},[`${ki}-checkall`]:{width:"100%",marginBottom:gr,marginInlineStart:gr},[`${ki}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ws.bf)(ha(cr).sub(Nr).equal())} ${(0,ws.bf)(cr)}`,overflow:"hidden",borderTop:Es}})}},{[`${Ut}-dropdown ${ki}, ${ki}-submenu`]:{[`${Ut}-checkbox-wrapper + span`]:{paddingInlineStart:cr,color:Tr},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Kd=Me=>{const{componentCls:Fe,lineWidth:Ut,colorSplit:fn,motionDurationSlow:An,zIndexTableFixed:wn,tableBg:gr,zIndexTableSticky:cr,calc:Tr}=Me,Nr=fn;return{[`${Fe}-wrapper`]:{[` + ${Fe}-cell-fix-left, + ${Fe}-cell-fix-right + `]:{position:"sticky !important",zIndex:wn,background:gr},[` + ${Fe}-cell-fix-left-first::after, + ${Fe}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Tr(Ut).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},[`${Fe}-cell-fix-left-all::after`]:{display:"none"},[` + ${Fe}-cell-fix-right-first::after, + ${Fe}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:Tr(Ut).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},[`${Fe}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Tr(cr).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Fe}-ping-left`]:{[`&:not(${Fe}-has-fix-left) ${Fe}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Nr}`},[` + ${Fe}-cell-fix-left-first::after, + ${Fe}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${Nr}`},[`${Fe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Fe}-ping-right`]:{[`&:not(${Fe}-has-fix-right) ${Fe}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Nr}`},[` + ${Fe}-cell-fix-right-first::after, + ${Fe}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${Nr}`}},[`${Fe}-fixed-column-gapped`]:{[` + ${Fe}-cell-fix-left-first::after, + ${Fe}-cell-fix-left-last::after, + ${Fe}-cell-fix-right-first::after, + ${Fe}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},Gg=Me=>{const{componentCls:Fe,antCls:Ut,margin:fn}=Me;return{[`${Fe}-wrapper`]:{[`${Fe}-pagination${Ut}-pagination`]:{margin:`${(0,ws.bf)(fn)} 0`},[`${Fe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Me.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Hm=Me=>{const{componentCls:Fe,tableRadius:Ut}=Me;return{[`${Fe}-wrapper`]:{[Fe]:{[`${Fe}-title, ${Fe}-header`]:{borderRadius:`${(0,ws.bf)(Ut)} ${(0,ws.bf)(Ut)} 0 0`},[`${Fe}-title + ${Fe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Fe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ut,borderStartEndRadius:Ut,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ut},"> *:last-child":{borderStartEndRadius:Ut}}},"&-footer":{borderRadius:`0 0 ${(0,ws.bf)(Ut)} ${(0,ws.bf)(Ut)}`}}}}},ig=Me=>{const{componentCls:Fe}=Me;return{[`${Fe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Fe}-pagination-left`]:{justifyContent:"flex-end"},[`${Fe}-pagination-right`]:{justifyContent:"flex-start"},[`${Fe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Fe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Fe}-row-indent`]:{float:"right"}}}}},m0=Me=>{const{componentCls:Fe,antCls:Ut,iconCls:fn,fontSizeIcon:An,padding:wn,paddingXS:gr,headerIconColor:cr,headerIconHoverColor:Tr,tableSelectionColumnWidth:Nr,tableSelectedRowBg:Pi,tableSelectedRowHoverBg:Bn,tableRowHoverBg:Or,tablePaddingHorizontal:Vn,calc:Cr}=Me;return{[`${Fe}-wrapper`]:{[`${Fe}-selection-col`]:{width:Nr,[`&${Fe}-selection-col-with-dropdown`]:{width:Cr(Nr).add(An).add(Cr(wn).div(4)).equal()}},[`${Fe}-bordered ${Fe}-selection-col`]:{width:Cr(Nr).add(Cr(gr).mul(2)).equal(),[`&${Fe}-selection-col-with-dropdown`]:{width:Cr(Nr).add(An).add(Cr(wn).div(4)).add(Cr(gr).mul(2)).equal()}},[` + table tr th${Fe}-selection-column, + table tr td${Fe}-selection-column, + ${Fe}-selection-column + `]:{paddingInlineEnd:Me.paddingXS,paddingInlineStart:Me.paddingXS,textAlign:"center",[`${Ut}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Fe}-selection-column${Fe}-cell-fix-left`]:{zIndex:Me.zIndexTableFixed+1},[`table tr th${Fe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Fe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Fe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Me.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ws.bf)(Cr(Vn).div(4).equal()),[fn]:{color:cr,fontSize:An,verticalAlign:"baseline","&:hover":{color:Tr}}},[`${Fe}-tbody`]:{[`${Fe}-row`]:{[`&${Fe}-row-selected`]:{[`> ${Fe}-cell`]:{background:Pi,"&-row-hover":{background:Bn}}},[`> ${Fe}-cell-row-hover`]:{background:Or}}}}}},Mm=Me=>{const{componentCls:Fe,tableExpandColumnWidth:Ut,calc:fn}=Me,An=(wn,gr,cr,Tr)=>({[`${Fe}${Fe}-${wn}`]:{fontSize:Tr,[` + ${Fe}-title, + ${Fe}-footer, + ${Fe}-cell, + ${Fe}-thead > tr > th, + ${Fe}-tbody > tr > th, + ${Fe}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${(0,j1.bf)(Ws)} ${(0,j1.bf)(qs)}`},[`${Me}-filter-trigger`]:{marginInlineEnd:(0,j1.bf)(wr(qs).div(2).mul(-1).equal())},[`${Me}-expanded-row-fixed`]:{margin:`${(0,j1.bf)(wr(Ws).mul(-1).equal())} ${(0,j1.bf)(wr(qs).mul(-1).equal())}`},[`${Me}-tbody`]:{[`${Me}-wrapper:only-child ${Me}`]:{marginBlock:(0,j1.bf)(wr(Ws).mul(-1).equal()),marginInline:`${(0,j1.bf)(wr(Gt).sub(qs).equal())} ${(0,j1.bf)(wr(qs).mul(-1).equal())}`}},[`${Me}-selection-extra`]:{paddingInlineStart:(0,j1.bf)(wr(qs).div(4).equal())}}});return{[`${Me}-wrapper`]:Object.assign(Object.assign({},Ir("middle",Ne.tablePaddingVerticalMiddle,Ne.tablePaddingHorizontalMiddle,Ne.tableFontSizeMiddle)),Ir("small",Ne.tablePaddingVerticalSmall,Ne.tablePaddingHorizontalSmall,Ne.tableFontSizeSmall))}},dD=Ne=>{const{componentCls:Me,marginXXS:Gt,fontSizeIcon:wr,headerIconColor:Ir,headerIconHoverColor:Yr}=Ne;return{[`${Me}-wrapper`]:{[`${Me}-thead th${Me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ne.motionDurationSlow}`,"&:hover":{background:Ne.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ne.colorPrimary},[` - &${Me}-cell-fix-left:hover, - &${Me}-cell-fix-right:hover - `]:{background:Ne.tableFixedHeaderSortActiveBg}},[`${Me}-thead th${Me}-column-sort`]:{background:Ne.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Me}-column-sort`]:{background:Ne.tableBodySortBg},[`${Me}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Me}-column-sorter`]:{marginInlineStart:Gt,color:Ir,fontSize:0,transition:`color ${Ne.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:wr,"&.active":{color:Ne.colorPrimary}},[`${Me}-column-sorter-up + ${Me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Me}-column-sorters:hover ${Me}-column-sorter`]:{color:Yr}}}},G3=Ne=>{const{componentCls:Me,opacityLoading:Gt,tableScrollThumbBg:wr,tableScrollThumbBgHover:Ir,tableScrollThumbSize:Yr,tableScrollBg:Ws,zIndexTableSticky:qs,stickyScrollBarBorderRadius:_a,lineWidth:ru,lineType:Rd,tableBorderColor:zd}=Ne,_g=`${(0,j1.bf)(ru)} ${Rd} ${zd}`;return{[`${Me}-wrapper`]:{[`${Me}-sticky`]:{"&-holder":{position:"sticky",zIndex:qs,background:Ne.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,j1.bf)(Yr)} !important`,zIndex:qs,display:"flex",alignItems:"center",background:Ws,borderTop:_g,opacity:Gt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Yr,backgroundColor:wr,borderRadius:_a,transition:`all ${Ne.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ir}}}}}}},JA=Ne=>{const{componentCls:Me,lineWidth:Gt,tableBorderColor:wr,calc:Ir}=Ne,Yr=`${(0,j1.bf)(Gt)} ${Ne.lineType} ${wr}`;return{[`${Me}-wrapper`]:{[`${Me}-summary`]:{position:"relative",zIndex:Ne.zIndexTableFixed,background:Ne.tableBg,"> tr":{"> th, > td":{borderBottom:Yr}}},[`div${Me}-summary`]:{boxShadow:`0 ${(0,j1.bf)(Ir(Gt).mul(-1).equal())} 0 ${wr}`}}}},e3=Ne=>{const{componentCls:Me,motionDurationMid:Gt,lineWidth:wr,lineType:Ir,tableBorderColor:Yr,calc:Ws}=Ne,qs=`${(0,j1.bf)(wr)} ${Ir} ${Yr}`,_a=`${Me}-expanded-row-cell`;return{[`${Me}-wrapper`]:{[`${Me}-tbody-virtual`]:{[`${Me}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Me}-cell`]:{borderBottom:qs,transition:`background ${Gt}`},[`${Me}-expanded-row`]:{[`${_a}${_a}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,j1.bf)(wr)})`,borderInlineEnd:"none"}}},[`${Me}-bordered`]:{[`${Me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:qs,position:"absolute"},[`${Me}-cell`]:{borderInlineEnd:qs,[`&${Me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Ws(wr).mul(-1).equal(),borderInlineStart:qs}}},[`&${Me}-virtual`]:{[`${Me}-placeholder ${Me}-cell`]:{borderInlineEnd:qs,borderBottom:qs}}}}}};const aT=Ne=>{const{componentCls:Me,fontWeightStrong:Gt,tablePaddingVertical:wr,tablePaddingHorizontal:Ir,tableExpandColumnWidth:Yr,lineWidth:Ws,lineType:qs,tableBorderColor:_a,tableFontSize:ru,tableBg:Rd,tableRadius:zd,tableHeaderTextColor:_g,motionDurationMid:au,tableHeaderBg:Fd,tableHeaderCellSplitColor:zg,tableFooterTextColor:v0,tableFooterBg:x0,calc:a0}=Ne,M0=`${(0,j1.bf)(Ws)} ${qs} ${_a}`;return{[`${Me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Vx.dF)()),{[Me]:Object.assign(Object.assign({},(0,Vx.Wf)(Ne)),{fontSize:ru,background:Rd,borderRadius:`${(0,j1.bf)(zd)} ${(0,j1.bf)(zd)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,j1.bf)(zd)} ${(0,j1.bf)(zd)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${Me}-cell, - ${Me}-thead > tr > th, - ${Me}-tbody > tr > th, - ${Me}-tbody > tr > td, + `]:{padding:`${(0,ws.bf)(gr)} ${(0,ws.bf)(cr)}`},[`${Fe}-filter-trigger`]:{marginInlineEnd:(0,ws.bf)(fn(cr).div(2).mul(-1).equal())},[`${Fe}-expanded-row-fixed`]:{margin:`${(0,ws.bf)(fn(gr).mul(-1).equal())} ${(0,ws.bf)(fn(cr).mul(-1).equal())}`},[`${Fe}-tbody`]:{[`${Fe}-wrapper:only-child ${Fe}`]:{marginBlock:(0,ws.bf)(fn(gr).mul(-1).equal()),marginInline:`${(0,ws.bf)(fn(Ut).sub(cr).equal())} ${(0,ws.bf)(fn(cr).mul(-1).equal())}`}},[`${Fe}-selection-extra`]:{paddingInlineStart:(0,ws.bf)(fn(cr).div(4).equal())}}});return{[`${Fe}-wrapper`]:Object.assign(Object.assign({},An("middle",Me.tablePaddingVerticalMiddle,Me.tablePaddingHorizontalMiddle,Me.tableFontSizeMiddle)),An("small",Me.tablePaddingVerticalSmall,Me.tablePaddingHorizontalSmall,Me.tableFontSizeSmall))}},j=Me=>{const{componentCls:Fe,marginXXS:Ut,fontSizeIcon:fn,headerIconColor:An,headerIconHoverColor:wn}=Me;return{[`${Fe}-wrapper`]:{[`${Fe}-thead th${Fe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Me.motionDurationSlow}`,"&:hover":{background:Me.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Me.colorPrimary},[` + &${Fe}-cell-fix-left:hover, + &${Fe}-cell-fix-right:hover + `]:{background:Me.tableFixedHeaderSortActiveBg}},[`${Fe}-thead th${Fe}-column-sort`]:{background:Me.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Fe}-column-sort`]:{background:Me.tableBodySortBg},[`${Fe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Fe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Fe}-column-sorter`]:{marginInlineStart:Ut,color:An,fontSize:0,transition:`color ${Me.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:fn,"&.active":{color:Me.colorPrimary}},[`${Fe}-column-sorter-up + ${Fe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Fe}-column-sorters:hover ${Fe}-column-sorter`]:{color:wn}}}},wt=Me=>{const{componentCls:Fe,opacityLoading:Ut,tableScrollThumbBg:fn,tableScrollThumbBgHover:An,tableScrollThumbSize:wn,tableScrollBg:gr,zIndexTableSticky:cr,stickyScrollBarBorderRadius:Tr,lineWidth:Nr,lineType:Pi,tableBorderColor:Bn}=Me,Or=`${(0,ws.bf)(Nr)} ${Pi} ${Bn}`;return{[`${Fe}-wrapper`]:{[`${Fe}-sticky`]:{"&-holder":{position:"sticky",zIndex:cr,background:Me.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ws.bf)(wn)} !important`,zIndex:cr,display:"flex",alignItems:"center",background:gr,borderTop:Or,opacity:Ut,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:wn,backgroundColor:fn,borderRadius:Tr,transition:`all ${Me.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:An}}}}}}},pt=Me=>{const{componentCls:Fe,lineWidth:Ut,tableBorderColor:fn,calc:An}=Me,wn=`${(0,ws.bf)(Ut)} ${Me.lineType} ${fn}`;return{[`${Fe}-wrapper`]:{[`${Fe}-summary`]:{position:"relative",zIndex:Me.zIndexTableFixed,background:Me.tableBg,"> tr":{"> th, > td":{borderBottom:wn}}},[`div${Fe}-summary`]:{boxShadow:`0 ${(0,ws.bf)(An(Ut).mul(-1).equal())} 0 ${fn}`}}}},Wt=Me=>{const{componentCls:Fe,motionDurationMid:Ut,lineWidth:fn,lineType:An,tableBorderColor:wn,calc:gr}=Me,cr=`${(0,ws.bf)(fn)} ${An} ${wn}`,Tr=`${Fe}-expanded-row-cell`;return{[`${Fe}-wrapper`]:{[`${Fe}-tbody-virtual`]:{[`${Fe}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Fe}-cell`]:{borderBottom:cr,transition:`background ${Ut}`},[`${Fe}-expanded-row`]:{[`${Tr}${Tr}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ws.bf)(fn)})`,borderInlineEnd:"none"}}},[`${Fe}-bordered`]:{[`${Fe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:cr,position:"absolute"},[`${Fe}-cell`]:{borderInlineEnd:cr,[`&${Fe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:gr(fn).mul(-1).equal(),borderInlineStart:cr}}},[`&${Fe}-virtual`]:{[`${Fe}-placeholder ${Fe}-cell`]:{borderInlineEnd:cr,borderBottom:cr}}}}}};const cn=Me=>{const{componentCls:Fe,fontWeightStrong:Ut,tablePaddingVertical:fn,tablePaddingHorizontal:An,tableExpandColumnWidth:wn,lineWidth:gr,lineType:cr,tableBorderColor:Tr,tableFontSize:Nr,tableBg:Pi,tableRadius:Bn,tableHeaderTextColor:Or,motionDurationMid:Vn,tableHeaderBg:Cr,tableHeaderCellSplitColor:kn,tableFooterTextColor:yr,tableFooterBg:Ir,calc:ei}=Me,ri=`${(0,ws.bf)(gr)} ${cr} ${Tr}`;return{[`${Fe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ou.dF)()),{[Fe]:Object.assign(Object.assign({},(0,Ou.Wf)(Me)),{fontSize:Nr,background:Pi,borderRadius:`${(0,ws.bf)(Bn)} ${(0,ws.bf)(Bn)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ws.bf)(Bn)} ${(0,ws.bf)(Bn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${Fe}-cell, + ${Fe}-thead > tr > th, + ${Fe}-tbody > tr > th, + ${Fe}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${(0,j1.bf)(wr)} ${(0,j1.bf)(Ir)}`,overflowWrap:"break-word"},[`${Me}-title`]:{padding:`${(0,j1.bf)(wr)} ${(0,j1.bf)(Ir)}`},[`${Me}-thead`]:{[` + `]:{position:"relative",padding:`${(0,ws.bf)(fn)} ${(0,ws.bf)(An)}`,overflowWrap:"break-word"},[`${Fe}-title`]:{padding:`${(0,ws.bf)(fn)} ${(0,ws.bf)(An)}`},[`${Fe}-thead`]:{[` > tr > th, > tr > td - `]:{position:"relative",color:_g,fontWeight:Gt,textAlign:"start",background:Fd,borderBottom:M0,transition:`background ${au} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Me}-selection-column):not(${Me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:zg,transform:"translateY(-50%)",transition:`background-color ${au}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Me}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${au}, border-color ${au}`,borderBottom:M0,[` - > ${Me}-wrapper:only-child, - > ${Me}-expanded-row-fixed > ${Me}-wrapper:only-child - `]:{[Me]:{marginBlock:(0,j1.bf)(a0(wr).mul(-1).equal()),marginInline:`${(0,j1.bf)(a0(Yr).sub(Ir).equal())} - ${(0,j1.bf)(a0(Ir).mul(-1).equal())}`,[`${Me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:_g,fontWeight:Gt,textAlign:"start",background:Fd,borderBottom:M0,transition:`background ${au} ease`}}},[`${Me}-footer`]:{padding:`${(0,j1.bf)(wr)} ${(0,j1.bf)(Ir)}`,color:v0,background:x0}})}},VT=Ne=>{const{colorFillAlter:Me,colorBgContainer:Gt,colorTextHeading:wr,colorFillSecondary:Ir,colorFillContent:Yr,controlItemBgActive:Ws,controlItemBgActiveHover:qs,padding:_a,paddingSM:ru,paddingXS:Rd,colorBorderSecondary:zd,borderRadiusLG:_g,controlHeight:au,colorTextPlaceholder:Fd,fontSize:zg,fontSizeSM:v0,lineHeight:x0,lineWidth:a0,colorIcon:M0,colorIconHover:O0,opacityLoading:Y0,controlInteractiveSize:V0}=Ne,t1=new kC.C(Ir).onBackground(Gt).toHexShortString(),Zg=new kC.C(Yr).onBackground(Gt).toHexShortString(),y0=new kC.C(Me).onBackground(Gt).toHexShortString(),Fg=new kC.C(M0),_0=new kC.C(O0),Ou=V0/2-a0,Kg=Ou*2+a0*3;return{headerBg:y0,headerColor:wr,headerSortActiveBg:t1,headerSortHoverBg:Zg,bodySortBg:y0,rowHoverBg:y0,rowSelectedBg:Ws,rowSelectedHoverBg:qs,rowExpandedBg:Me,cellPaddingBlock:_a,cellPaddingInline:_a,cellPaddingBlockMD:ru,cellPaddingInlineMD:Rd,cellPaddingBlockSM:Rd,cellPaddingInlineSM:Rd,borderColor:zd,headerBorderRadius:_g,footerBg:y0,footerColor:wr,cellFontSize:zg,cellFontSizeMD:zg,cellFontSizeSM:zg,headerSplitColor:zd,fixedHeaderSortActiveBg:t1,headerFilterHoverBg:Yr,filterDropdownMenuBg:Gt,filterDropdownBg:Gt,expandIconBg:Gt,selectionColumnWidth:au,stickyScrollBarBg:Fd,stickyScrollBarBorderRadius:100,expandIconMarginTop:(zg*x0-a0*3)/2-Math.ceil((v0*1.4-a0*3)/2),headerIconColor:Fg.clone().setAlpha(Fg.getAlpha()*Y0).toRgbString(),headerIconHoverColor:_0.clone().setAlpha(_0.getAlpha()*Y0).toRgbString(),expandIconHalfInner:Ou,expandIconSize:Kg,expandIconScale:V0/Kg}};var y3=(0,C2.I$)("Table",Ne=>{const{colorTextHeading:Me,colorSplit:Gt,colorBgContainer:wr,controlInteractiveSize:Ir,headerBg:Yr,headerColor:Ws,headerSortActiveBg:qs,headerSortHoverBg:_a,bodySortBg:ru,rowHoverBg:Rd,rowSelectedBg:zd,rowSelectedHoverBg:_g,rowExpandedBg:au,cellPaddingBlock:Fd,cellPaddingInline:zg,cellPaddingBlockMD:v0,cellPaddingInlineMD:x0,cellPaddingBlockSM:a0,cellPaddingInlineSM:M0,borderColor:O0,footerBg:Y0,footerColor:V0,headerBorderRadius:t1,cellFontSize:Zg,cellFontSizeMD:y0,cellFontSizeSM:Fg,headerSplitColor:_0,fixedHeaderSortActiveBg:Ou,headerFilterHoverBg:Kg,filterDropdownBg:o0,expandIconBg:f0,selectionColumnWidth:T0,stickyScrollBarBg:D0,calc:pv}=Ne,f1=2,Jv=(0,kx.TS)(Ne,{tableFontSize:Zg,tableBg:wr,tableRadius:t1,tablePaddingVertical:Fd,tablePaddingHorizontal:zg,tablePaddingVerticalMiddle:v0,tablePaddingHorizontalMiddle:x0,tablePaddingVerticalSmall:a0,tablePaddingHorizontalSmall:M0,tableBorderColor:O0,tableHeaderTextColor:Ws,tableHeaderBg:Yr,tableFooterTextColor:V0,tableFooterBg:Y0,tableHeaderCellSplitColor:_0,tableHeaderSortBg:qs,tableHeaderSortHoverBg:_a,tableBodySortBg:ru,tableFixedHeaderSortActiveBg:Ou,tableHeaderFilterActiveBg:Kg,tableFilterDropdownBg:o0,tableRowHoverBg:Rd,tableSelectedRowBg:zd,tableSelectedRowHoverBg:_g,zIndexTableFixed:f1,zIndexTableSticky:f1+1,tableFontSizeMiddle:y0,tableFontSizeSmall:Fg,tableSelectionColumnWidth:T0,tableExpandIconBg:f0,tableExpandColumnWidth:pv(Ir).add(pv(Ne.padding).mul(2)).equal(),tableExpandedRowBg:au,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D0,tableScrollThumbBgHover:Me,tableScrollBg:Gt});return[aT(Jv),WT(Jv),JA(Jv),dD(Jv),w3(Jv),$A(Jv),gE(Jv),IA(Jv),JA(Jv),A3(Jv),H3(Jv),OT(Jv),G3(Jv),gA(Jv),D3(Jv),TS(Jv),e3(Jv)]},VT,{unitless:{expandIconScale:!0}});const PA=[],RA=(Ne,Me)=>{var Gt,wr;const{prefixCls:Ir,className:Yr,rootClassName:Ws,style:qs,size:_a,bordered:ru,dropdownPrefixCls:Rd,dataSource:zd,pagination:_g,rowSelection:au,rowKey:Fd="key",rowClassName:zg,columns:v0,children:x0,childrenColumnName:a0,onChange:M0,getPopupContainer:O0,loading:Y0,expandIcon:V0,expandable:t1,expandedRowRender:Zg,expandIconColumnIndex:y0,indentSize:Fg,scroll:_0,sortDirections:Ou,locale:Kg,showSorterTooltip:o0=!0,virtual:f0}=Ne,T0=(0,Kx.ln)("Table"),D0=u.useMemo(()=>v0||Xg(x0),[v0,x0]),pv=u.useMemo(()=>D0.some(kw=>kw.responsive),[D0]),f1=(0,KC.Z)(pv),Jv=u.useMemo(()=>{const kw=new Set(Object.keys(f1).filter(Bv=>f1[Bv]));return D0.filter(Bv=>!Bv.responsive||Bv.responsive.some(e_=>kw.has(e_)))},[D0,f1]),m1=(0,k1.Z)(Ne,["className","style","columns"]),{locale:Iy=JS.Z,direction:n1,table:t_,renderEmpty:O1,getPrefixCls:Mv,getPopupContainer:Qy}=u.useContext(J_.E_),r_=(0,Aw.Z)(_a),My=Object.assign(Object.assign({},Iy.Table),Kg),Da=zd||PA,mg=Mv("table",Ir),w0=Mv("dropdown",Rd),[,Kv]=(0,YS.ZP)(),l1=(0,rx.Z)(mg),[V1,q0,Ev]=y3(mg,l1),Fv=Object.assign(Object.assign({childrenColumnName:a0,expandIconColumnIndex:y0},t1),{expandIcon:(Gt=t1==null?void 0:t1.expandIcon)!==null&&Gt!==void 0?Gt:(wr=t_==null?void 0:t_.expandable)===null||wr===void 0?void 0:wr.expandIcon}),{childrenColumnName:Q1="children"}=Fv,vy=u.useMemo(()=>Da.some(kw=>kw==null?void 0:kw[Q1])?"nest":Zg||t1&&t1.expandedRowRender?"row":null,[Da]),nn={body:u.useRef()},u_=O2(mg),U_=u.useRef(null),hx=u.useRef(null);b2(Me,()=>Object.assign(Object.assign({},hx.current),{nativeElement:U_.current}));const Oy=u.useMemo(()=>typeof Fd=="function"?Fd:kw=>kw==null?void 0:kw[Fd],[Fd]),[p_]=xS(Da,Q1,Oy),G_={},Ry=function(kw,Bv){let e_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var u2,Zw,IC;const _T=Object.assign(Object.assign({},G_),kw);e_&&((u2=G_.resetPagination)===null||u2===void 0||u2.call(G_),!((Zw=_T.pagination)===null||Zw===void 0)&&Zw.current&&(_T.pagination.current=1),_g&&_g.onChange&&_g.onChange(1,(IC=_T.pagination)===null||IC===void 0?void 0:IC.pageSize)),_0&&_0.scrollToFirstRowOnChange!==!1&&nn.body.current&&EC(0,{getContainer:()=>nn.body.current}),M0==null||M0(_T.pagination,_T.filters,_T.sorter,{currentDataSource:S2(DT(Da,_T.sorterStates,Q1),_T.filterStates,Q1),action:Bv})},Uv=(kw,Bv)=>{Ry({sorter:kw,sorterStates:Bv},"sort",!1)},[hy,x1,by,Ly]=WC({prefixCls:mg,mergedColumns:Jv,onSorterChange:Uv,sortDirections:Ou||["ascend","descend"],tableLocale:My,showSorterTooltip:o0}),y_=u.useMemo(()=>DT(Da,x1,Q1),[Da,x1]);G_.sorter=Ly(),G_.sorterStates=x1;const jy=(kw,Bv)=>{Ry({filters:kw,filterStates:Bv},"filter",!0)},[P0,A1,ry]=wC({prefixCls:mg,locale:My,dropdownPrefixCls:w0,mergedColumns:Jv,onFilterChange:jy,getPopupContainer:O0||Qy,rootClassName:vn()(Ws,l1)}),Wy=S2(y_,A1,Q1);G_.filters=ry,G_.filterStates=A1;const ix=u.useMemo(()=>{const kw={};return Object.keys(ry).forEach(Bv=>{ry[Bv]!==null&&(kw[Bv]=ry[Bv])}),Object.assign(Object.assign({},by),{filters:kw})},[by,ry]),[jx]=GT(ix),n_=(kw,Bv)=>{Ry({pagination:Object.assign(Object.assign({},G_.pagination),{current:kw,pageSize:Bv})},"paginate")},[Q2,Y_]=E2(Wy.length,n_,_g);G_.pagination=_g===!1?{}:NE(Q2,_g),G_.resetPagination=Y_;const xw=u.useMemo(()=>{if(_g===!1||!Q2.pageSize)return Wy;const{current:kw=1,total:Bv,pageSize:e_=wE}=Q2;return Wy.lengthe_?Wy.slice((kw-1)*e_,kw*e_):Wy:Wy.slice((kw-1)*e_,kw*e_)},[!!_g,Wy,Q2&&Q2.current,Q2&&Q2.pageSize,Q2&&Q2.total]),[Mx,Ew]=_x({prefixCls:mg,data:Wy,pageData:xw,getRowKey:Oy,getRecordByKey:p_,expandType:vy,childrenColumnName:Q1,locale:My,getPopupContainer:O0||Qy},au),fx=(kw,Bv,e_)=>{let u2;return typeof zg=="function"?u2=vn()(zg(kw,Bv,e_)):u2=vn()(zg),vn()({[`${mg}-row-selected`]:Ew.has(Oy(kw,Bv))},u2)};Fv.__PARENT_RENDER_ICON__=Fv.expandIcon,Fv.expandIcon=Fv.expandIcon||V0||k2(My),vy==="nest"&&Fv.expandIconColumnIndex===void 0?Fv.expandIconColumnIndex=au?1:0:Fv.expandIconColumnIndex>0&&au&&(Fv.expandIconColumnIndex-=1),typeof Fv.indentSize!="number"&&(Fv.indentSize=typeof Fg=="number"?Fg:15);const DC=u.useCallback(kw=>jx(Mx(P0(hy(kw)))),[hy,P0,Mx]);let F2,uw;if(_g!==!1&&(Q2!=null&&Q2.total)){let kw;Q2.size?kw=Q2.size:kw=r_==="small"||r_==="middle"?"small":void 0;const Bv=Zw=>u.createElement(mv,Object.assign({},Q2,{className:vn()(`${mg}-pagination ${mg}-pagination-${Zw}`,Q2.className),size:kw})),e_=n1==="rtl"?"left":"right",{position:u2}=Q2;if(u2!==null&&Array.isArray(u2)){const Zw=u2.find(py=>py.includes("top")),IC=u2.find(py=>py.includes("bottom")),_T=u2.every(py=>`${py}`=="none");!Zw&&!IC&&!_T&&(uw=Bv(e_)),Zw&&(F2=Bv(Zw.toLowerCase().replace("top",""))),IC&&(uw=Bv(IC.toLowerCase().replace("bottom","")))}else uw=Bv(e_)}let $2;typeof Y0=="boolean"?$2={spinning:Y0}:typeof Y0=="object"&&($2=Object.assign({spinning:!0},Y0));const __=vn()(Ev,l1,`${mg}-wrapper`,t_==null?void 0:t_.className,{[`${mg}-wrapper-rtl`]:n1==="rtl"},Yr,Ws,q0),Ww=Object.assign(Object.assign({},t_==null?void 0:t_.style),qs),XS=Kg&&Kg.emptyText||(O1==null?void 0:O1("Table"))||u.createElement(Pw.Z,{componentName:"Table"}),Rw=f0?cE:wA,_C={},Yw=u.useMemo(()=>{const{fontSize:kw,lineHeight:Bv,padding:e_,paddingXS:u2,paddingSM:Zw}=Kv,IC=Math.floor(kw*Bv);switch(r_){case"large":return e_*2+IC;case"small":return u2*2+IC;default:return Zw*2+IC}},[Kv,r_]);return f0&&(_C.listItemHeight=Yw),V1(u.createElement("div",{ref:U_,className:__,style:Ww},u.createElement(Lw.Z,Object.assign({spinning:!1},$2),F2,u.createElement(Rw,Object.assign({},_C,m1,{ref:hx,columns:Jv,direction:n1,expandable:Fv,prefixCls:mg,className:vn()({[`${mg}-middle`]:r_==="middle",[`${mg}-small`]:r_==="small",[`${mg}-bordered`]:ru,[`${mg}-empty`]:Da.length===0},Ev,l1,q0),data:xw,rowKey:Oy,rowClassName:fx,emptyText:XS,internalHooks:b,internalRefs:nn,transformColumns:DC,getContainerWidth:u_})),uw)))};var Qe=u.forwardRef(RA);const he=(Ne,Me)=>{const Gt=u.useRef(0);return Gt.current+=1,u.createElement(Qe,Object.assign({},Ne,{ref:Me,_renderTimes:Gt.current}))},yt=u.forwardRef(he);yt.SELECTION_COLUMN=ox,yt.EXPAND_COLUMN=D,yt.SELECTION_ALL=$_,yt.SELECTION_INVERT=K_,yt.SELECTION_NONE=k_,yt.Column=Y1,yt.ColumnGroup=h1,yt.Summary=L0;var ci=yt,Eu=ci},4936:function(c,g,l){"use strict";l.d(g,{Z:function(){return a1}});var u=l(77617),D=l(4531),b=l(71323),x=l(79384),y=l(12022),w=l(44847),a=function(Gd,h0){return u.createElement(w.Z,(0,x.Z)({},Gd,{ref:h0,icon:y.Z}))},S=u.forwardRef(a),I=l(92310),N=l.n(I),ie=l(16514),ze=l(54131),Ie=l(35372),ct=l(13255),At=l(56348),rt=l(89308),It=l(89305),Ot=(0,u.createContext)(null),wn=l(49397),Hs=l(28647),jr=l(33890),Jr=l(17763),Yn=l(74570),Lt=function(Gd){var h0=Gd.activeTabOffset,lv=Gd.horizontal,su=Gd.rtl,hu=Gd.indicator,ev=hu===void 0?{}:hu,sv=ev.size,yv=ev.align,$v=yv===void 0?"center":yv,E0=(0,u.useState)(),E1=(0,Ie.Z)(E0,2),$1=E1[0],l0=E1[1],z0=(0,u.useRef)(),W0=u.useCallback(function(R0){return typeof sv=="function"?sv(R0):typeof sv=="number"?sv:R0},[sv]);function Rv(){Yn.Z.cancel(z0.current)}return(0,u.useEffect)(function(){var R0={};if(h0)if(lv){R0.width=W0(h0.width);var gv=su?"right":"left";$v==="start"&&(R0[gv]=h0[gv]),$v==="center"&&(R0[gv]=h0[gv]+h0.width/2,R0.transform=su?"translateX(50%)":"translateX(-50%)"),$v==="end"&&(R0[gv]=h0[gv]+h0.width,R0.transform="translateX(-100%)")}else R0.height=W0(h0.height),$v==="start"&&(R0.top=h0.top),$v==="center"&&(R0.top=h0.top+h0.height/2,R0.transform="translateY(-50%)"),$v==="end"&&(R0.top=h0.top+h0.height,R0.transform="translateY(-100%)");return Rv(),z0.current=(0,Yn.Z)(function(){l0(R0)}),Rv},[h0,lv,su,$v,W0]),{style:$1}},_n=Lt,Mt={width:0,height:0,left:0,top:0};function Bt(Hg,Gd,h0){return(0,u.useMemo)(function(){for(var lv,su=new Map,hu=Gd.get((lv=Hg[0])===null||lv===void 0?void 0:lv.key)||Mt,ev=hu.left+hu.width,sv=0;svRs?(Sr=No,H1.current="x"):(Sr=qt,H1.current="y"),Gd(-Sr,-Sr)&&r0.preventDefault()}var Yg=(0,u.useRef)(null);Yg.current={onTouchStart:G1,onTouchMove:xy,onTouchEnd:Dy,onWheel:xd},u.useEffect(function(){function r0(si){Yg.current.onTouchStart(si)}function No(si){Yg.current.onTouchMove(si)}function qt(si){Yg.current.onTouchEnd(si)}function Sr(si){Yg.current.onWheel(si)}return document.addEventListener("touchmove",No,{passive:!1}),document.addEventListener("touchend",qt,{passive:!1}),Hg.current.addEventListener("touchstart",r0,{passive:!1}),Hg.current.addEventListener("wheel",Sr),function(){document.removeEventListener("touchmove",No),document.removeEventListener("touchend",qt)}},[])}var gt=l(64693);function Zr(Hg){var Gd=(0,u.useState)(0),h0=(0,Ie.Z)(Gd,2),lv=h0[0],su=h0[1],hu=(0,u.useRef)(0),ev=(0,u.useRef)();return ev.current=Hg,(0,gt.o)(function(){var sv;(sv=ev.current)===null||sv===void 0||sv.call(ev)},[lv]),function(){hu.current===lv&&(hu.current+=1,su(hu.current))}}function Ht(Hg){var Gd=(0,u.useRef)([]),h0=(0,u.useState)({}),lv=(0,Ie.Z)(h0,2),su=lv[1],hu=(0,u.useRef)(typeof Hg=="function"?Hg():Hg),ev=Zr(function(){var yv=hu.current;Gd.current.forEach(function($v){yv=$v(yv)}),Gd.current=[],hu.current=yv,su({})});function sv(yv){Gd.current.push(yv),ev()}return[hu.current,sv]}var Zs={width:0,height:0,left:0,top:0,right:0};function oi(Hg,Gd,h0,lv,su,hu,ev){var sv=ev.tabs,yv=ev.tabPosition,$v=ev.rtl,E0,E1,$1;return["top","bottom"].includes(yv)?(E0="width",E1=$v?"right":"left",$1=Math.abs(h0)):(E0="height",E1="top",$1=-h0),(0,u.useMemo)(function(){if(!sv.length)return[0,0];for(var l0=sv.length,z0=l0,W0=0;W0$1+Gd){z0=W0-1;break}}for(var R0=0,gv=l0-1;gv>=0;gv-=1){var G1=Hg.get(sv[gv].key)||Zs;if(G1[E1]<$1){R0=gv+1;break}}return R0>=z0?[0,0]:[R0,z0]},[Hg,Gd,lv,su,hu,$1,yv,sv.map(function(l0){return l0.key}).join("_"),$v])}function Pa(Hg){var Gd;return Hg instanceof Map?(Gd={},Hg.forEach(function(h0,lv){Gd[lv]=h0})):Gd=Hg,JSON.stringify(Gd)}var Aa="TABS_DQ";function Pg(Hg){return String(Hg).replace(/"/g,Aa)}function Ug(Hg,Gd,h0,lv){return!(!h0||lv||Hg===!1||Hg===void 0&&(Gd===!1||Gd===null))}var e0=u.forwardRef(function(Hg,Gd){var h0=Hg.prefixCls,lv=Hg.editable,su=Hg.locale,hu=Hg.style;return!lv||lv.showAdd===!1?null:u.createElement("button",{ref:Gd,type:"button",className:"".concat(h0,"-nav-add"),style:hu,"aria-label":(su==null?void 0:su.addAriaLabel)||"Add tab",onClick:function(sv){lv.onEdit("add",{event:sv})}},lv.addIcon||"+")}),H0=e0,X0=u.forwardRef(function(Hg,Gd){var h0=Hg.position,lv=Hg.prefixCls,su=Hg.extra;if(!su)return null;var hu,ev={};return(0,ct.Z)(su)==="object"&&!u.isValidElement(su)?ev=su:ev.right=su,h0==="right"&&(hu=ev.right),h0==="left"&&(hu=ev.left),hu?u.createElement("div",{className:"".concat(lv,"-extra-content"),ref:Gd},hu):null}),d0=X0,jv=l(31561),Lv=l(26135),Je=l(39193),k0=u.forwardRef(function(Hg,Gd){var h0=Hg.prefixCls,lv=Hg.id,su=Hg.tabs,hu=Hg.locale,ev=Hg.mobile,sv=Hg.moreIcon,yv=sv===void 0?"More":sv,$v=Hg.moreTransitionName,E0=Hg.style,E1=Hg.className,$1=Hg.editable,l0=Hg.tabBarGutter,z0=Hg.rtl,W0=Hg.removeAriaLabel,Rv=Hg.onTabClick,R0=Hg.getPopupContainer,gv=Hg.popupClassName,G1=(0,u.useState)(!1),xy=(0,Ie.Z)(G1,2),Dy=xy[0],H1=xy[1],xd=(0,u.useState)(null),Yg=(0,Ie.Z)(xd,2),r0=Yg[0],No=Yg[1],qt="".concat(lv,"-more-popup"),Sr="".concat(h0,"-dropdown"),si=r0!==null?"".concat(qt,"-").concat(r0):null,Rs=hu==null?void 0:hu.dropdownAriaLabel;function wa(dv,Cv){dv.preventDefault(),dv.stopPropagation(),$1.onEdit("remove",{key:Cv,event:dv})}var bu=u.createElement(Lv.ZP,{onClick:function(Cv){var Wv=Cv.key,c1=Cv.domEvent;Rv(Wv,c1),H1(!1)},prefixCls:"".concat(Sr,"-menu"),id:qt,tabIndex:-1,role:"listbox","aria-activedescendant":si,selectedKeys:[r0],"aria-label":Rs!==void 0?Rs:"expanded dropdown"},su.map(function(dv){var Cv=dv.closable,Wv=dv.disabled,c1=dv.closeIcon,P1=dv.key,Z1=dv.label,sy=Ug(Cv,c1,$1,Wv);return u.createElement(Lv.sN,{key:P1,id:"".concat(qt,"-").concat(P1),role:"option","aria-controls":lv&&"".concat(lv,"-panel-").concat(P1),disabled:Wv},u.createElement("span",null,Z1),sy&&u.createElement("button",{type:"button","aria-label":W0||"remove",tabIndex:0,className:"".concat(Sr,"-menu-item-remove"),onClick:function(zy){zy.stopPropagation(),wa(zy,P1)}},c1||$1.removeIcon||"\xD7"))}));function s0(dv){for(var Cv=su.filter(function(sy){return!sy.disabled}),Wv=Cv.findIndex(function(sy){return sy.key===r0})||0,c1=Cv.length,P1=0;P1Pw?"left":"right"})}),si=(0,Ie.Z)(Sr,2),Rs=si[0],wa=si[1],bu=Rt(0,function(EC,Pw){!qt&&W0&&W0({direction:EC>Pw?"top":"bottom"})}),s0=(0,Ie.Z)(bu,2),In=s0[0],ga=s0[1],Ga=(0,u.useState)([0,0]),Lu=(0,Ie.Z)(Ga,2),dv=Lu[0],Cv=Lu[1],Wv=(0,u.useState)([0,0]),c1=(0,Ie.Z)(Wv,2),P1=c1[0],Z1=c1[1],sy=(0,u.useState)([0,0]),wy=(0,Ie.Z)(sy,2),zy=wy[0],hv=wy[1],Qv=(0,u.useState)([0,0]),Y1=(0,Ie.Z)(Qv,2),M_=Y1[0],h1=Y1[1],_v=Ht(new Map),Iv=(0,Ie.Z)(_v,2),Ov=Iv[0],v1=Iv[1],K1=Bt(G1,Ov,P1[0]),sx=zo(dv,qt),Kx=zo(P1,qt),t2=zo(zy,qt),I2=zo(M_,qt),D2=sxov?ov:EC}var yd=(0,u.useRef)(null),kg=(0,u.useState)(),Vg=(0,Ie.Z)(kg,2),wv=Vg[0],b1=Vg[1];function I1(){b1(Date.now())}function k1(){yd.current&&clearTimeout(yd.current)}ai(xd,function(EC,Pw){function Aw(KC,JS){KC(function(sS){var UC=rv(sS+JS);return UC})}return D2?(qt?Aw(wa,EC):Aw(ga,Pw),k1(),I1(),!0):!1}),(0,u.useEffect)(function(){return k1(),wv&&(yd.current=setTimeout(function(){b1(0)},100)),k1},[wv]);var S1=oi(K1,J_,qt?Rs:In,Kx,t2,I2,(0,ze.Z)((0,ze.Z)({},Hg),{},{tabs:G1})),Ay=(0,Ie.Z)(S1,2),U1=Ay[0],E_=Ay[1],ty=(0,jr.Z)(function(){var EC=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ev,Pw=K1.get(EC)||{width:0,height:0,left:0,right:0,top:0};if(qt){var Aw=Rs;sv?Pw.rightRs+J_&&(Aw=Pw.right+Pw.width-J_):Pw.left<-Rs?Aw=-Pw.left:Pw.left+Pw.width>-Rs+J_&&(Aw=-(Pw.left+Pw.width-J_)),ga(0),wa(rv(Aw))}else{var KC=In;Pw.top<-In?KC=-Pw.top:Pw.top+Pw.height>-In+J_&&(KC=-(Pw.top+Pw.height-J_)),wa(0),ga(rv(KC))}}),h_={};E1==="top"||E1==="bottom"?h_[sv?"marginRight":"marginLeft"]=$1:h_.marginTop=$1;var g_=G1.map(function(EC,Pw){var Aw=EC.key;return u.createElement(u0,{id:su,prefixCls:gv,key:Aw,tab:EC,style:Pw===0?void 0:h_,closable:EC.closable,editable:$v,active:Aw===ev,renderWrapper:l0,removeAriaLabel:E0==null?void 0:E0.removeAriaLabel,onClick:function(JS){z0(Aw,JS)},onFocus:function(){ty(Aw),I1(),xd.current&&(sv||(xd.current.scrollLeft=0),xd.current.scrollTop=0)}})}),ox=function(){return v1(function(){var Pw,Aw=new Map,KC=(Pw=Yg.current)===null||Pw===void 0?void 0:Pw.getBoundingClientRect();return G1.forEach(function(JS){var sS,UC=JS.key,FS=(sS=Yg.current)===null||sS===void 0?void 0:sS.querySelector('[data-node-key="'.concat(Pg(UC),'"]'));if(FS){var KS=B1(FS,KC),VC=(0,Ie.Z)(KS,4),vE=VC[0],T1=VC[1],ky=VC[2],$y=VC[3];Aw.set(UC,{width:vE,height:T1,left:ky,top:$y})}}),Aw})};(0,u.useEffect)(function(){ox()},[G1.map(function(EC){return EC.key}).join("_")]);var $_=Zr(function(){var EC=Dg(xy),Pw=Dg(Dy),Aw=Dg(H1);Cv([EC[0]-Pw[0]-Aw[0],EC[1]-Pw[1]-Aw[1]]);var KC=Dg(No);hv(KC);var JS=Dg(r0);h1(JS);var sS=Dg(Yg);Z1([sS[0]-KC[0],sS[1]-KC[1]]),ox()}),K_=G1.slice(0,U1),k_=G1.slice(E_+1),A_=[].concat((0,wn.Z)(K_),(0,wn.Z)(k_)),gx=K1.get(ev),Na=_n({activeTabOffset:gx,horizontal:qt,indicator:Rv,rtl:sv}),_x=Na.style;(0,u.useEffect)(function(){ty()},[ev,rx,ov,Pa(gx),Pa(K1),qt]),(0,u.useEffect)(function(){$_()},[sv]);var c2=!!A_.length,b2="".concat(gv,"-nav-wrap"),N2,j2,mC,XC;return qt?sv?(j2=Rs>0,N2=Rs!==ov):(N2=Rs<0,j2=Rs!==rx):(mC=In<0,XC=In!==rx),u.createElement(Hs.Z,{onResize:$_},u.createElement("div",{ref:(0,Jr.x1)(Gd,xy),role:"tablist",className:N()("".concat(gv,"-nav"),h0),style:lv,onKeyDown:function(){I1()}},u.createElement(d0,{ref:Dy,position:"left",extra:yv,prefixCls:gv}),u.createElement(Hs.Z,{onResize:$_},u.createElement("div",{className:N()(b2,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(b2,"-ping-left"),N2),"".concat(b2,"-ping-right"),j2),"".concat(b2,"-ping-top"),mC),"".concat(b2,"-ping-bottom"),XC)),ref:xd},u.createElement(Hs.Z,{onResize:$_},u.createElement("div",{ref:Yg,className:"".concat(gv,"-nav-list"),style:{transform:"translate(".concat(Rs,"px, ").concat(In,"px)"),transition:wv?"none":void 0}},g_,u.createElement(H0,{ref:No,prefixCls:gv,locale:E0,editable:$v,style:(0,ze.Z)((0,ze.Z)({},g_.length===0?void 0:h_),{},{visibility:c2?"hidden":null})}),u.createElement("div",{className:N()("".concat(gv,"-ink-bar"),(0,ie.Z)({},"".concat(gv,"-ink-bar-animated"),hu.inkBar)),style:_x}))))),u.createElement(G0,(0,x.Z)({},Hg,{removeAriaLabel:E0==null?void 0:E0.removeAriaLabel,ref:r0,prefixCls:gv,tabs:A_,className:!c2&&ax,tabMoving:!!wv})),u.createElement(d0,{ref:H1,position:"right",extra:yv,prefixCls:gv})))}),Ag=mu,c0=u.forwardRef(function(Hg,Gd){var h0=Hg.prefixCls,lv=Hg.className,su=Hg.style,hu=Hg.id,ev=Hg.active,sv=Hg.tabKey,yv=Hg.children;return u.createElement("div",{id:hu&&"".concat(hu,"-panel-").concat(sv),role:"tabpanel",tabIndex:ev?0:-1,"aria-labelledby":hu&&"".concat(hu,"-tab-").concat(sv),"aria-hidden":!ev,style:su,className:N()(h0,ev&&"".concat(h0,"-active"),lv),ref:Gd},yv)}),L0=c0,$0=["renderTabBar"],cv=["label","key"],Gg=function(Gd){var h0=Gd.renderTabBar,lv=(0,At.Z)(Gd,$0),su=u.useContext(Ot),hu=su.tabs;if(h0){var ev=(0,ze.Z)((0,ze.Z)({},lv),{},{panes:hu.map(function(sv){var yv=sv.label,$v=sv.key,E0=(0,At.Z)(sv,cv);return u.createElement(L0,(0,x.Z)({tab:yv,key:$v,tabKey:$v},E0))})});return h0(ev,Ag)}return u.createElement(Ag,lv)},uu=Gg,Gs=l(44516),Ia=["key","forceRender","style","className","destroyInactiveTabPane"],lu=function(Gd){var h0=Gd.id,lv=Gd.activeKey,su=Gd.animated,hu=Gd.tabPosition,ev=Gd.destroyInactiveTabPane,sv=u.useContext(Ot),yv=sv.prefixCls,$v=sv.tabs,E0=su.tabPane,E1="".concat(yv,"-tabpane");return u.createElement("div",{className:N()("".concat(yv,"-content-holder"))},u.createElement("div",{className:N()("".concat(yv,"-content"),"".concat(yv,"-content-").concat(hu),(0,ie.Z)({},"".concat(yv,"-content-animated"),E0))},$v.map(function($1){var l0=$1.key,z0=$1.forceRender,W0=$1.style,Rv=$1.className,R0=$1.destroyInactiveTabPane,gv=(0,At.Z)($1,Ia),G1=l0===lv;return u.createElement(Gs.ZP,(0,x.Z)({key:l0,visible:G1,forceRender:z0,removeOnLeave:!!(ev||R0),leavedClassName:"".concat(E1,"-hidden")},su.tabPaneMotion),function(xy,Dy){var H1=xy.style,xd=xy.className;return u.createElement(L0,(0,x.Z)({},gv,{prefixCls:E1,id:h0,tabKey:l0,animated:E0,active:G1,style:(0,ze.Z)((0,ze.Z)({},W0),H1),className:N()(Rv,xd),ref:Dy}))})})))},_h=lu,Kr=l(32188);function fr(){var Hg=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Gd;return Hg===!1?Gd={inkBar:!1,tabPane:!1}:Hg===!0?Gd={inkBar:!0,tabPane:!1}:Gd=(0,ze.Z)({inkBar:!0},(0,ct.Z)(Hg)==="object"?Hg:{}),Gd.tabPaneMotion&&Gd.tabPane===void 0&&(Gd.tabPane=!0),!Gd.tabPaneMotion&&Gd.tabPane&&(Gd.tabPane=!1),Gd}var ri=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ra=0,Sg=u.forwardRef(function(Hg,Gd){var h0=Hg.id,lv=Hg.prefixCls,su=lv===void 0?"rc-tabs":lv,hu=Hg.className,ev=Hg.items,sv=Hg.direction,yv=Hg.activeKey,$v=Hg.defaultActiveKey,E0=Hg.editable,E1=Hg.animated,$1=Hg.tabPosition,l0=$1===void 0?"top":$1,z0=Hg.tabBarGutter,W0=Hg.tabBarStyle,Rv=Hg.tabBarExtraContent,R0=Hg.locale,gv=Hg.moreIcon,G1=Hg.moreTransitionName,xy=Hg.destroyInactiveTabPane,Dy=Hg.renderTabBar,H1=Hg.onChange,xd=Hg.onTabClick,Yg=Hg.onTabScroll,r0=Hg.getPopupContainer,No=Hg.popupClassName,qt=Hg.indicator,Sr=(0,At.Z)(Hg,ri),si=u.useMemo(function(){return(ev||[]).filter(function(h1){return h1&&(0,ct.Z)(h1)==="object"&&"key"in h1})},[ev]),Rs=sv==="rtl",wa=fr(E1),bu=(0,u.useState)(!1),s0=(0,Ie.Z)(bu,2),In=s0[0],ga=s0[1];(0,u.useEffect)(function(){ga((0,It.Z)())},[]);var Ga=(0,rt.Z)(function(){var h1;return(h1=si[0])===null||h1===void 0?void 0:h1.key},{value:yv,defaultValue:$v}),Lu=(0,Ie.Z)(Ga,2),dv=Lu[0],Cv=Lu[1],Wv=(0,u.useState)(function(){return si.findIndex(function(h1){return h1.key===dv})}),c1=(0,Ie.Z)(Wv,2),P1=c1[0],Z1=c1[1];(0,u.useEffect)(function(){var h1=si.findIndex(function(Iv){return Iv.key===dv});if(h1===-1){var _v;h1=Math.max(0,Math.min(P1,si.length-1)),Cv((_v=si[h1])===null||_v===void 0?void 0:_v.key)}Z1(h1)},[si.map(function(h1){return h1.key}).join("_"),dv,P1]);var sy=(0,rt.Z)(null,{value:h0}),wy=(0,Ie.Z)(sy,2),zy=wy[0],hv=wy[1];(0,u.useEffect)(function(){h0||(hv("rc-tabs-".concat(Ra)),Ra+=1)},[]);function Qv(h1,_v){xd==null||xd(h1,_v);var Iv=h1!==dv;Cv(h1),Iv&&(H1==null||H1(h1))}var Y1={id:zy,activeKey:dv,animated:wa,tabPosition:l0,rtl:Rs,mobile:In},M_=(0,ze.Z)((0,ze.Z)({},Y1),{},{editable:E0,locale:R0,moreIcon:gv,moreTransitionName:G1,tabBarGutter:z0,onTabClick:Qv,onTabScroll:Yg,extra:Rv,style:W0,panes:null,getPopupContainer:r0,popupClassName:No,indicator:qt});return u.createElement(Ot.Provider,{value:{tabs:si,prefixCls:su}},u.createElement("div",(0,x.Z)({ref:Gd,id:h0,className:N()(su,"".concat(su,"-").concat(l0),(0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(su,"-mobile"),In),"".concat(su,"-editable"),E0),"".concat(su,"-rtl"),Rs),hu)},Sr),u.createElement(uu,(0,x.Z)({},M_,{renderTabBar:Dy})),u.createElement(_h,(0,x.Z)({destroyInactiveTabPane:xy},Y1,{animated:wa}))))}),Jg=Sg,j0=Jg,Wo=l(58798),Mo=l(26504),qr=l(20804),On=l(12149);const rn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ui(Hg){let Gd=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},h0;return Gd===!1?h0={inkBar:!1,tabPane:!1}:Gd===!0?h0={inkBar:!0,tabPane:!0}:h0=Object.assign({inkBar:!0},typeof Gd=="object"?Gd:{}),h0.tabPane&&(h0.tabPaneMotion=Object.assign(Object.assign({},rn),{motionName:(0,On.m)(Hg,"switch")})),h0}var ya=l(6415),gd=function(Hg,Gd){var h0={};for(var lv in Hg)Object.prototype.hasOwnProperty.call(Hg,lv)&&Gd.indexOf(lv)<0&&(h0[lv]=Hg[lv]);if(Hg!=null&&typeof Object.getOwnPropertySymbols=="function")for(var su=0,lv=Object.getOwnPropertySymbols(Hg);suGd)}function xu(Hg,Gd){if(Hg)return Hg;const h0=(0,ya.Z)(Gd).map(lv=>{if(u.isValidElement(lv)){const{key:su,props:hu}=lv,ev=hu||{},{tab:sv}=ev,yv=gd(ev,["tab"]);return Object.assign(Object.assign({key:String(su)},yv),{label:sv})}return null});return Su(h0)}var xa=l(78600),Td=l(91110),jg=l(79263),Wa=l(90882),tv=l(17089),Sa=Hg=>{const{componentCls:Gd,motionDurationSlow:h0}=Hg;return[{[Gd]:{[`${Gd}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${h0}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${h0}`}}}}},[(0,tv.oN)(Hg,"slide-up"),(0,tv.oN)(Hg,"slide-down")]]};const $a=Hg=>{const{componentCls:Gd,tabsCardPadding:h0,cardBg:lv,cardGutter:su,colorBorderSecondary:hu,itemSelectedColor:ev}=Hg;return{[`${Gd}-card`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab`]:{margin:0,padding:h0,background:lv,border:`${(0,xa.bf)(Hg.lineWidth)} ${Hg.lineType} ${hu}`,transition:`all ${Hg.motionDurationSlow} ${Hg.motionEaseInOut}`},[`${Gd}-tab-active`]:{color:ev,background:Hg.colorBgContainer},[`${Gd}-ink-bar`]:{visibility:"hidden"}},[`&${Gd}-top, &${Gd}-bottom`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab + ${Gd}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,xa.bf)(su)}}}},[`&${Gd}-top`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab`]:{borderRadius:`${(0,xa.bf)(Hg.borderRadiusLG)} ${(0,xa.bf)(Hg.borderRadiusLG)} 0 0`},[`${Gd}-tab-active`]:{borderBottomColor:Hg.colorBgContainer}}},[`&${Gd}-bottom`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab`]:{borderRadius:`0 0 ${(0,xa.bf)(Hg.borderRadiusLG)} ${(0,xa.bf)(Hg.borderRadiusLG)}`},[`${Gd}-tab-active`]:{borderTopColor:Hg.colorBgContainer}}},[`&${Gd}-left, &${Gd}-right`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab + ${Gd}-tab`]:{marginTop:(0,xa.bf)(su)}}},[`&${Gd}-left`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,xa.bf)(Hg.borderRadiusLG)} 0 0 ${(0,xa.bf)(Hg.borderRadiusLG)}`}},[`${Gd}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Hg.colorBgContainer}}}},[`&${Gd}-right`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,xa.bf)(Hg.borderRadiusLG)} ${(0,xa.bf)(Hg.borderRadiusLG)} 0`}},[`${Gd}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Hg.colorBgContainer}}}}}}},Bd=Hg=>{const{componentCls:Gd,itemHoverColor:h0,dropdownEdgeChildVerticalPadding:lv}=Hg;return{[`${Gd}-dropdown`]:Object.assign(Object.assign({},(0,Td.Wf)(Hg)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Hg.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Gd}-dropdown-menu`]:{maxHeight:Hg.tabsDropdownHeight,margin:0,padding:`${(0,xa.bf)(lv)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Hg.colorBgContainer,backgroundClip:"padding-box",borderRadius:Hg.borderRadiusLG,outline:"none",boxShadow:Hg.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Td.vS),{display:"flex",alignItems:"center",minWidth:Hg.tabsDropdownWidth,margin:0,padding:`${(0,xa.bf)(Hg.paddingXXS)} ${(0,xa.bf)(Hg.paddingSM)}`,color:Hg.colorText,fontWeight:"normal",fontSize:Hg.fontSize,lineHeight:Hg.lineHeight,cursor:"pointer",transition:`all ${Hg.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Hg.marginSM},color:Hg.colorTextDescription,fontSize:Hg.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:h0}},"&:hover":{background:Hg.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Hg.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bg=Hg=>{const{componentCls:Gd,margin:h0,colorBorderSecondary:lv,horizontalMargin:su,verticalItemPadding:hu,verticalItemMargin:ev,calc:sv}=Hg;return{[`${Gd}-top, ${Gd}-bottom`]:{flexDirection:"column",[`> ${Gd}-nav, > div > ${Gd}-nav`]:{margin:su,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,xa.bf)(Hg.lineWidth)} ${Hg.lineType} ${lv}`,content:"''"},[`${Gd}-ink-bar`]:{height:Hg.lineWidthBold,"&-animated":{transition:`width ${Hg.motionDurationSlow}, left ${Hg.motionDurationSlow}, - right ${Hg.motionDurationSlow}`}},[`${Gd}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Hg.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Hg.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Hg.boxShadowTabsOverflowRight},[`&${Gd}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Gd}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Gd}-top`]:{[`> ${Gd}-nav, - > div > ${Gd}-nav`]:{"&::before":{bottom:0},[`${Gd}-ink-bar`]:{bottom:0}}},[`${Gd}-bottom`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{order:1,marginTop:h0,marginBottom:0,"&::before":{top:0},[`${Gd}-ink-bar`]:{top:0}},[`> ${Gd}-content-holder, > div > ${Gd}-content-holder`]:{order:0}},[`${Gd}-left, ${Gd}-right`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{flexDirection:"column",minWidth:sv(Hg.controlHeight).mul(1.25).equal(),[`${Gd}-tab`]:{padding:hu,textAlign:"center"},[`${Gd}-tab + ${Gd}-tab`]:{margin:ev},[`${Gd}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Hg.controlHeight},"&::before":{top:0,boxShadow:Hg.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Hg.boxShadowTabsOverflowBottom},[`&${Gd}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Gd}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Gd}-ink-bar`]:{width:Hg.lineWidthBold,"&-animated":{transition:`height ${Hg.motionDurationSlow}, top ${Hg.motionDurationSlow}`}},[`${Gd}-nav-list, ${Gd}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Gd}-left`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Gd}-content-holder, > div > ${Gd}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,xa.bf)(sv(Hg.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,xa.bf)(Hg.lineWidth)} ${Hg.lineType} ${Hg.colorBorder}`},[`> ${Gd}-content > ${Gd}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Hg.paddingLG}}}},[`${Gd}-right`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{order:1,[`${Gd}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Gd}-content-holder, > div > ${Gd}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:sv(Hg.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,xa.bf)(Hg.lineWidth)} ${Hg.lineType} ${Hg.colorBorder}`},[`> ${Gd}-content > ${Gd}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Hg.paddingLG}}}}}},Og=Hg=>{const{componentCls:Gd,cardPaddingSM:h0,cardPaddingLG:lv,horizontalItemPaddingSM:su,horizontalItemPaddingLG:hu}=Hg;return{[Gd]:{"&-small":{[`> ${Gd}-nav`]:{[`${Gd}-tab`]:{padding:su,fontSize:Hg.titleFontSizeSM}}},"&-large":{[`> ${Gd}-nav`]:{[`${Gd}-tab`]:{padding:hu,fontSize:Hg.titleFontSizeLG}}}},[`${Gd}-card`]:{[`&${Gd}-small`]:{[`> ${Gd}-nav`]:{[`${Gd}-tab`]:{padding:h0}},[`&${Gd}-bottom`]:{[`> ${Gd}-nav ${Gd}-tab`]:{borderRadius:`0 0 ${(0,xa.bf)(Hg.borderRadius)} ${(0,xa.bf)(Hg.borderRadius)}`}},[`&${Gd}-top`]:{[`> ${Gd}-nav ${Gd}-tab`]:{borderRadius:`${(0,xa.bf)(Hg.borderRadius)} ${(0,xa.bf)(Hg.borderRadius)} 0 0`}},[`&${Gd}-right`]:{[`> ${Gd}-nav ${Gd}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,xa.bf)(Hg.borderRadius)} ${(0,xa.bf)(Hg.borderRadius)} 0`}}},[`&${Gd}-left`]:{[`> ${Gd}-nav ${Gd}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,xa.bf)(Hg.borderRadius)} 0 0 ${(0,xa.bf)(Hg.borderRadius)}`}}}},[`&${Gd}-large`]:{[`> ${Gd}-nav`]:{[`${Gd}-tab`]:{padding:lv}}}}}},g0=Hg=>{const{componentCls:Gd,itemActiveColor:h0,itemHoverColor:lv,iconCls:su,tabsHorizontalItemMargin:hu,horizontalItemPadding:ev,itemSelectedColor:sv,itemColor:yv}=Hg,$v=`${Gd}-tab`;return{[$v]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:ev,fontSize:Hg.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:yv,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:h0}},(0,Td.Qy)(Hg)),"&-btn":{outline:"none",transition:"all 0.3s",[`${$v}-icon:not(:last-child)`]:{marginInlineEnd:Hg.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:Hg.calc(Hg.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:Hg.marginXS},color:Hg.colorTextDescription,fontSize:Hg.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Hg.motionDurationSlow}`,"&:hover":{color:Hg.colorTextHeading}},"&:hover":{color:lv},[`&${$v}-active ${$v}-btn`]:{color:sv,textShadow:Hg.tabsActiveTextShadow},[`&${$v}-disabled`]:{color:Hg.colorTextDisabled,cursor:"not-allowed"},[`&${$v}-disabled ${$v}-btn, &${$v}-disabled ${Gd}-remove`]:{"&:focus, &:active":{color:Hg.colorTextDisabled}},[`& ${$v}-remove ${su}`]:{margin:0},[`${su}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:Hg.marginSM}}},[`${$v} + ${$v}`]:{margin:{_skip_check_:!0,value:hu}}}},qg=Hg=>{const{componentCls:Gd,tabsHorizontalItemMarginRTL:h0,iconCls:lv,cardGutter:su,calc:hu}=Hg;return{[`${Gd}-rtl`]:{direction:"rtl",[`${Gd}-nav`]:{[`${Gd}-tab`]:{margin:{_skip_check_:!0,value:h0},[`${Gd}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[lv]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,xa.bf)(Hg.marginSM)}},[`${Gd}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,xa.bf)(Hg.marginXS)},marginLeft:{_skip_check_:!0,value:(0,xa.bf)(hu(Hg.marginXXS).mul(-1).equal())},[lv]:{margin:0}}}},[`&${Gd}-left`]:{[`> ${Gd}-nav`]:{order:1},[`> ${Gd}-content-holder`]:{order:0}},[`&${Gd}-right`]:{[`> ${Gd}-nav`]:{order:0},[`> ${Gd}-content-holder`]:{order:1}},[`&${Gd}-card${Gd}-top, &${Gd}-card${Gd}-bottom`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-tab + ${Gd}-tab`]:{marginRight:{_skip_check_:!0,value:su},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Gd}-dropdown-rtl`]:{direction:"rtl"},[`${Gd}-menu-item`]:{[`${Gd}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Xg=Hg=>{const{componentCls:Gd,tabsCardPadding:h0,cardHeight:lv,cardGutter:su,itemHoverColor:hu,itemActiveColor:ev,colorBorderSecondary:sv}=Hg;return{[Gd]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Td.Wf)(Hg)),{display:"flex",[`> ${Gd}-nav, > div > ${Gd}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Gd}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Hg.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Gd}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Hg.motionDurationSlow}`},[`${Gd}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Gd}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Gd}-nav-more`]:{position:"relative",padding:h0,background:"transparent",border:0,color:Hg.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Hg.calc(Hg.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${Gd}-nav-add`]:Object.assign({minWidth:lv,minHeight:lv,marginLeft:{_skip_check_:!0,value:su},padding:`0 ${(0,xa.bf)(Hg.paddingXS)}`,background:"transparent",border:`${(0,xa.bf)(Hg.lineWidth)} ${Hg.lineType} ${sv}`,borderRadius:`${(0,xa.bf)(Hg.borderRadiusLG)} ${(0,xa.bf)(Hg.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:Hg.colorText,transition:`all ${Hg.motionDurationSlow} ${Hg.motionEaseInOut}`,"&:hover":{color:hu},"&:active, &:focus:not(:focus-visible)":{color:ev}},(0,Td.Qy)(Hg))},[`${Gd}-extra-content`]:{flex:"none"},[`${Gd}-ink-bar`]:{position:"absolute",background:Hg.inkBarColor,pointerEvents:"none"}}),g0(Hg)),{[`${Gd}-content`]:{position:"relative",width:"100%"},[`${Gd}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Gd}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Gd}-centered`]:{[`> ${Gd}-nav, > div > ${Gd}-nav`]:{[`${Gd}-nav-wrap`]:{[`&:not([class*='${Gd}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},A0=Hg=>{const Gd=Hg.controlHeightLG;return{zIndexPopup:Hg.zIndexPopupBase+50,cardBg:Hg.colorFillAlter,cardHeight:Gd,cardPadding:`${(Gd-Math.round(Hg.fontSize*Hg.lineHeight))/2-Hg.lineWidth}px ${Hg.padding}px`,cardPaddingSM:`${Hg.paddingXXS*1.5}px ${Hg.padding}px`,cardPaddingLG:`${Hg.paddingXS}px ${Hg.padding}px ${Hg.paddingXXS*1.5}px`,titleFontSize:Hg.fontSize,titleFontSizeLG:Hg.fontSizeLG,titleFontSizeSM:Hg.fontSize,inkBarColor:Hg.colorPrimary,horizontalMargin:`0 0 ${Hg.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Hg.paddingSM}px 0`,horizontalItemPaddingSM:`${Hg.paddingXS}px 0`,horizontalItemPaddingLG:`${Hg.padding}px 0`,verticalItemPadding:`${Hg.paddingXS}px ${Hg.paddingLG}px`,verticalItemMargin:`${Hg.margin}px 0 0 0`,itemColor:Hg.colorText,itemSelectedColor:Hg.colorPrimary,itemHoverColor:Hg.colorPrimaryHover,itemActiveColor:Hg.colorPrimaryActive,cardGutter:Hg.marginXXS/2}};var nv=(0,jg.I$)("Tabs",Hg=>{const Gd=(0,Wa.TS)(Hg,{tabsCardPadding:Hg.cardPadding,dropdownEdgeChildVerticalPadding:Hg.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,xa.bf)(Hg.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,xa.bf)(Hg.horizontalItemGutter)}`});return[Og(Gd),qg(Gd),Bg(Gd),Bd(Gd),$a(Gd),Xg(Gd),Sa(Gd)]},A0),n0=()=>null,u1=function(Hg,Gd){var h0={};for(var lv in Hg)Object.prototype.hasOwnProperty.call(Hg,lv)&&Gd.indexOf(lv)<0&&(h0[lv]=Hg[lv]);if(Hg!=null&&typeof Object.getOwnPropertySymbols=="function")for(var su=0,lv=Object.getOwnPropertySymbols(Hg);su{var Gd,h0,lv,su,hu,ev,sv;const{type:yv,className:$v,rootClassName:E0,size:E1,onEdit:$1,hideAdd:l0,centered:z0,addIcon:W0,moreIcon:Rv,popupClassName:R0,children:gv,items:G1,animated:xy,style:Dy,indicatorSize:H1,indicator:xd}=Hg,Yg=u1(Hg,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:r0}=Yg,{direction:No,tabs:qt,getPrefixCls:Sr,getPopupContainer:si}=u.useContext(Wo.E_),Rs=Sr("tabs",r0),wa=(0,Mo.Z)(Rs),[bu,s0,In]=nv(Rs,wa);let ga;yv==="editable-card"&&(ga={onEdit:(P1,Z1)=>{let{key:sy,event:wy}=Z1;$1==null||$1(P1==="add"?wy:sy,P1)},removeIcon:u.createElement(D.Z,null),addIcon:(W0!=null?W0:qt==null?void 0:qt.addIcon)||u.createElement(S,null),showAdd:l0!==!0});const Ga=Sr(),Lu=(0,qr.Z)(E1),dv=xu(G1,gv),Cv=ui(Rs,xy),Wv=Object.assign(Object.assign({},qt==null?void 0:qt.style),Dy),c1={align:(Gd=xd==null?void 0:xd.align)!==null&&Gd!==void 0?Gd:(h0=qt==null?void 0:qt.indicator)===null||h0===void 0?void 0:h0.align,size:(ev=(su=(lv=xd==null?void 0:xd.size)!==null&&lv!==void 0?lv:H1)!==null&&su!==void 0?su:(hu=qt==null?void 0:qt.indicator)===null||hu===void 0?void 0:hu.size)!==null&&ev!==void 0?ev:qt==null?void 0:qt.indicatorSize};return bu(u.createElement(j0,Object.assign({direction:No,getPopupContainer:si,moreTransitionName:`${Ga}-slide-up`},Yg,{items:dv,className:N()({[`${Rs}-${Lu}`]:Lu,[`${Rs}-card`]:["card","editable-card"].includes(yv),[`${Rs}-editable-card`]:yv==="editable-card",[`${Rs}-centered`]:z0},qt==null?void 0:qt.className,$v,E0,s0,In,wa),popupClassName:N()(R0,s0,In,wa),style:Wv,editable:ga,moreIcon:(sv=Rv!=null?Rv:qt==null?void 0:qt.moreIcon)!==null&&sv!==void 0?sv:u.createElement(b.Z,null),prefixCls:Rs,animated:Cv,indicator:c1})))};Eg.TabPane=n0;var a1=Eg},92823:function(c,g,l){"use strict";l.d(g,{Mj:function(){return a},uH:function(){return y},u_:function(){return w}});var u=l(77617),D=l(78600),b=l(37309),x=l(5581);const y=(0,D.jG)(b.Z),w={token:x.Z,override:{override:x.Z},hashed:!0},a=u.createContext(w)},80769:function(c,g,l){"use strict";l.d(g,{Z:function(){return Lt}});var u=l(78600),D=l(37309),b=l(5581),x=l(18774),w=_n=>{const Mt=_n!=null&&_n.algorithm?(0,u.jG)(_n.algorithm):(0,u.jG)(D.Z),Bt=Object.assign(Object.assign({},b.Z),_n==null?void 0:_n.token);return(0,u.t2)(Bt,{override:_n==null?void 0:_n.token},Mt,x.Z)},a=l(57832),S=l(92823),I=l(43479);function N(_n){const{sizeUnit:Mt,sizeStep:Bt}=_n,Rt=Bt-2;return{sizeXXL:Mt*(Rt+10),sizeXL:Mt*(Rt+6),sizeLG:Mt*(Rt+2),sizeMD:Mt*(Rt+2),sizeMS:Mt*(Rt+1),size:Mt*Rt,sizeSM:Mt*Rt,sizeXS:Mt*(Rt-1),sizeXXS:Mt*(Rt-1)}}var ie=l(83507),Ie=(_n,Mt)=>{const Bt=Mt!=null?Mt:(0,D.Z)(_n),Rt=Bt.fontSizeSM,on=Bt.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt),N(Mt!=null?Mt:_n)),(0,ie.Z)(Rt)),{controlHeight:on}),(0,I.Z)(Object.assign(Object.assign({},Bt),{controlHeight:on})))},ct=l(10129),At=l(21370),rt=l(64993);const It=(_n,Mt)=>new rt.C(_n).setAlpha(Mt).toRgbString(),Ot=(_n,Mt)=>new rt.C(_n).lighten(Mt).toHexString(),wn=_n=>{const Mt=(0,ct.R_)(_n,{theme:"dark"});return{1:Mt[0],2:Mt[1],3:Mt[2],4:Mt[3],5:Mt[6],6:Mt[5],7:Mt[4],8:Mt[6],9:Mt[5],10:Mt[4]}},Hs=(_n,Mt)=>{const Bt=_n||"#000",Rt=Mt||"#fff";return{colorBgBase:Bt,colorTextBase:Rt,colorText:It(Rt,.85),colorTextSecondary:It(Rt,.65),colorTextTertiary:It(Rt,.45),colorTextQuaternary:It(Rt,.25),colorFill:It(Rt,.18),colorFillSecondary:It(Rt,.12),colorFillTertiary:It(Rt,.08),colorFillQuaternary:It(Rt,.04),colorBgElevated:Ot(Bt,12),colorBgContainer:Ot(Bt,8),colorBgLayout:Ot(Bt,0),colorBgSpotlight:Ot(Bt,26),colorBgBlur:It(Rt,.04),colorBorder:Ot(Bt,26),colorBorderSecondary:Ot(Bt,19)}};var Jr=(_n,Mt)=>{const Bt=Object.keys(b.M).map(on=>{const Hr=(0,ct.R_)(_n[on],{theme:"dark"});return new Array(10).fill(1).reduce((vn,Ca,ai)=>(vn[`${on}-${ai+1}`]=Hr[ai],vn[`${on}${ai+1}`]=Hr[ai],vn),{})}).reduce((on,Hr)=>(on=Object.assign(Object.assign({},on),Hr),on),{}),Rt=Mt!=null?Mt:(0,D.Z)(_n);return Object.assign(Object.assign(Object.assign({},Rt),Bt),(0,At.Z)(_n,{generateColorPalettes:wn,generateNeutralColorPalettes:Hs}))};function Yn(){const[_n,Mt,Bt]=(0,a.ZP)();return{theme:_n,token:Mt,hashId:Bt}}var Lt={defaultConfig:S.u_,defaultSeed:S.u_.token,useToken:Yn,defaultAlgorithm:D.Z,darkAlgorithm:Jr,compactAlgorithm:Ie,getDesignToken:w}},42095:function(c,g,l){"use strict";l.d(g,{i:function(){return u}});const u=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},37309:function(c,g,l){"use strict";l.d(g,{Z:function(){return At}});var u=l(10129),D=l(43479);function b(rt){const{sizeUnit:It,sizeStep:Ot}=rt;return{sizeXXL:It*(Ot+8),sizeXL:It*(Ot+4),sizeLG:It*(Ot+2),sizeMD:It*(Ot+1),sizeMS:It*Ot,size:It*Ot,sizeSM:It*(Ot-1),sizeXS:It*(Ot-2),sizeXXS:It*(Ot-3)}}var x=l(5581),y=l(21370),a=rt=>{let It=rt,Ot=rt,wn=rt,Hs=rt;return rt<6&&rt>=5?It=rt+1:rt<16&&rt>=6?It=rt+2:rt>=16&&(It=16),rt<7&&rt>=5?Ot=4:rt<8&&rt>=7?Ot=5:rt<14&&rt>=8?Ot=6:rt<16&&rt>=14?Ot=7:rt>=16&&(Ot=8),rt<6&&rt>=2?wn=1:rt>=6&&(wn=2),rt>4&&rt<8?Hs=4:rt>=8&&(Hs=6),{borderRadius:rt,borderRadiusXS:wn,borderRadiusSM:Ot,borderRadiusLG:It,borderRadiusOuter:Hs}};function S(rt){const{motionUnit:It,motionBase:Ot,borderRadius:wn,lineWidth:Hs}=rt;return Object.assign({motionDurationFast:`${(Ot+It).toFixed(1)}s`,motionDurationMid:`${(Ot+It*2).toFixed(1)}s`,motionDurationSlow:`${(Ot+It*3).toFixed(1)}s`,lineWidthBold:Hs+1},a(wn))}var I=l(64993);const N=(rt,It)=>new I.C(rt).setAlpha(It).toRgbString(),ie=(rt,It)=>new I.C(rt).darken(It).toHexString(),ze=rt=>{const It=(0,u.R_)(rt);return{1:It[0],2:It[1],3:It[2],4:It[3],5:It[4],6:It[5],7:It[6],8:It[4],9:It[5],10:It[6]}},Ie=(rt,It)=>{const Ot=rt||"#fff",wn=It||"#000";return{colorBgBase:Ot,colorTextBase:wn,colorText:N(wn,.88),colorTextSecondary:N(wn,.65),colorTextTertiary:N(wn,.45),colorTextQuaternary:N(wn,.25),colorFill:N(wn,.15),colorFillSecondary:N(wn,.06),colorFillTertiary:N(wn,.04),colorFillQuaternary:N(wn,.02),colorBgLayout:ie(Ot,4),colorBgContainer:ie(Ot,0),colorBgElevated:ie(Ot,0),colorBgSpotlight:N(wn,.85),colorBgBlur:"transparent",colorBorder:ie(Ot,15),colorBorderSecondary:ie(Ot,6)}};var ct=l(83507);function At(rt){const It=Object.keys(x.M).map(Ot=>{const wn=(0,u.R_)(rt[Ot]);return new Array(10).fill(1).reduce((Hs,jr,Jr)=>(Hs[`${Ot}-${Jr+1}`]=wn[Jr],Hs[`${Ot}${Jr+1}`]=wn[Jr],Hs),{})}).reduce((Ot,wn)=>(Ot=Object.assign(Object.assign({},Ot),wn),Ot),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rt),It),(0,y.Z)(rt,{generateColorPalettes:ze,generateNeutralColorPalettes:Ie})),(0,ct.Z)(rt.fontSize)),b(rt)),(0,D.Z)(rt)),S(rt))}},5581:function(c,g,l){"use strict";l.d(g,{M:function(){return u}});const u={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"},D=Object.assign(Object.assign({},u),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + `]:{position:"relative",color:Or,fontWeight:Ut,textAlign:"start",background:Cr,borderBottom:ri,transition:`background ${Vn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Fe}-selection-column):not(${Fe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:kn,transform:"translateY(-50%)",transition:`background-color ${Vn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Fe}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${Vn}, border-color ${Vn}`,borderBottom:ri,[` + > ${Fe}-wrapper:only-child, + > ${Fe}-expanded-row-fixed > ${Fe}-wrapper:only-child + `]:{[Fe]:{marginBlock:(0,ws.bf)(ei(fn).mul(-1).equal()),marginInline:`${(0,ws.bf)(ei(wn).sub(An).equal())} + ${(0,ws.bf)(ei(An).mul(-1).equal())}`,[`${Fe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Or,fontWeight:Ut,textAlign:"start",background:Cr,borderBottom:ri,transition:`background ${Vn} ease`}}},[`${Fe}-footer`]:{padding:`${(0,ws.bf)(fn)} ${(0,ws.bf)(An)}`,color:yr,background:Ir}})}},ln=Me=>{const{colorFillAlter:Fe,colorBgContainer:Ut,colorTextHeading:fn,colorFillSecondary:An,colorFillContent:wn,controlItemBgActive:gr,controlItemBgActiveHover:cr,padding:Tr,paddingSM:Nr,paddingXS:Pi,colorBorderSecondary:Bn,borderRadiusLG:Or,controlHeight:Vn,colorTextPlaceholder:Cr,fontSize:kn,fontSizeSM:yr,lineHeight:Ir,lineWidth:ei,colorIcon:ri,colorIconHover:Ci,opacityLoading:Oi,controlInteractiveSize:vo}=Me,wo=new gg.C(An).onBackground(Ut).toHexShortString(),jo=new gg.C(wn).onBackground(Ut).toHexShortString(),cs=new gg.C(Fe).onBackground(Ut).toHexShortString(),oo=new gg.C(ri),ha=new gg.C(Ci),xo=vo/2-ei,ki=xo*2+ei*3;return{headerBg:cs,headerColor:fn,headerSortActiveBg:wo,headerSortHoverBg:jo,bodySortBg:cs,rowHoverBg:cs,rowSelectedBg:gr,rowSelectedHoverBg:cr,rowExpandedBg:Fe,cellPaddingBlock:Tr,cellPaddingInline:Tr,cellPaddingBlockMD:Nr,cellPaddingInlineMD:Pi,cellPaddingBlockSM:Pi,cellPaddingInlineSM:Pi,borderColor:Bn,headerBorderRadius:Or,footerBg:cs,footerColor:fn,cellFontSize:kn,cellFontSizeMD:kn,cellFontSizeSM:kn,headerSplitColor:Bn,fixedHeaderSortActiveBg:wo,headerFilterHoverBg:wn,filterDropdownMenuBg:Ut,filterDropdownBg:Ut,expandIconBg:Ut,selectionColumnWidth:Vn,stickyScrollBarBg:Cr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(kn*Ir-ei*3)/2-Math.ceil((yr*1.4-ei*3)/2),headerIconColor:oo.clone().setAlpha(oo.getAlpha()*Oi).toRgbString(),headerIconHoverColor:ha.clone().setAlpha(ha.getAlpha()*Oi).toRgbString(),expandIconHalfInner:xo,expandIconSize:ki,expandIconScale:vo/ki}};var mn=(0,mc.I$)("Table",Me=>{const{colorTextHeading:Fe,colorSplit:Ut,colorBgContainer:fn,controlInteractiveSize:An,headerBg:wn,headerColor:gr,headerSortActiveBg:cr,headerSortHoverBg:Tr,bodySortBg:Nr,rowHoverBg:Pi,rowSelectedBg:Bn,rowSelectedHoverBg:Or,rowExpandedBg:Vn,cellPaddingBlock:Cr,cellPaddingInline:kn,cellPaddingBlockMD:yr,cellPaddingInlineMD:Ir,cellPaddingBlockSM:ei,cellPaddingInlineSM:ri,borderColor:Ci,footerBg:Oi,footerColor:vo,headerBorderRadius:wo,cellFontSize:jo,cellFontSizeMD:cs,cellFontSizeSM:oo,headerSplitColor:ha,fixedHeaderSortActiveBg:xo,headerFilterHoverBg:ki,filterDropdownBg:Os,expandIconBg:Es,selectionColumnWidth:Cs,stickyScrollBarBg:$t,calc:ar}=Me,si=2,Io=(0,Lu.TS)(Me,{tableFontSize:jo,tableBg:fn,tableRadius:wo,tablePaddingVertical:Cr,tablePaddingHorizontal:kn,tablePaddingVerticalMiddle:yr,tablePaddingHorizontalMiddle:Ir,tablePaddingVerticalSmall:ei,tablePaddingHorizontalSmall:ri,tableBorderColor:Ci,tableHeaderTextColor:gr,tableHeaderBg:wn,tableFooterTextColor:vo,tableFooterBg:Oi,tableHeaderCellSplitColor:ha,tableHeaderSortBg:cr,tableHeaderSortHoverBg:Tr,tableBodySortBg:Nr,tableFixedHeaderSortActiveBg:xo,tableHeaderFilterActiveBg:ki,tableFilterDropdownBg:Os,tableRowHoverBg:Pi,tableSelectedRowBg:Bn,tableSelectedRowHoverBg:Or,zIndexTableFixed:si,zIndexTableSticky:si+1,tableFontSizeMiddle:cs,tableFontSizeSmall:oo,tableSelectionColumnWidth:Cs,tableExpandIconBg:Es,tableExpandColumnWidth:ar(An).add(ar(Me.padding).mul(2)).equal(),tableExpandedRowBg:Vn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$t,tableScrollThumbBgHover:Fe,tableScrollBg:Ut});return[cn(Io),Gg(Io),pt(Io),j(Io),hv(Io),Fg(Io),Hm(Io),Om(Io),pt(Io),Cf(Io),m0(Io),Kd(Io),wt(Io),hp(Io),Mm(Io),ig(Io),Wt(Io)]},ln,{unitless:{expandIconScale:!0}});const Mn=[],Yn=(Me,Fe)=>{var Ut,fn;const{prefixCls:An,className:wn,rootClassName:gr,style:cr,size:Tr,bordered:Nr,dropdownPrefixCls:Pi,dataSource:Bn,pagination:Or,rowSelection:Vn,rowKey:Cr="key",rowClassName:kn,columns:yr,children:Ir,childrenColumnName:ei,onChange:ri,getPopupContainer:Ci,loading:Oi,expandIcon:vo,expandable:wo,expandedRowRender:jo,expandIconColumnIndex:cs,indentSize:oo,scroll:ha,sortDirections:xo,locale:ki,showSorterTooltip:Os=!0,virtual:Es}=Me,Cs=(0,ch.ln)("Table"),$t=v.useMemo(()=>yr||zr(Ir),[yr,Ir]),ar=v.useMemo(()=>$t.some(Hn=>Hn.responsive),[$t]),si=(0,Ud.Z)(ar),Io=v.useMemo(()=>{const Hn=new Set(Object.keys(si).filter(In=>si[In]));return $t.filter(In=>!In.responsive||In.responsive.some(Jr=>Hn.has(Jr)))},[$t,si]),ls=(0,vs.Z)(Me,["className","style","columns"]),{locale:ua=Hf.Z,direction:lo,table:So,renderEmpty:No,getPrefixCls:Ls,getPopupContainer:ma}=v.useContext(vu.E_),Ne=(0,xh.Z)(Tr),ja=Object.assign(Object.assign({},ua.Table),ki),Ol=Bn||Mn,ll=Ls("table",An),ta=Ls("dropdown",Pi),[,ga]=(0,Wf.ZP)(),qa=(0,Ql.Z)(ll),[bs,$i,$s]=mn(ll,qa),Ko=Object.assign(Object.assign({childrenColumnName:ei,expandIconColumnIndex:cs},wo),{expandIcon:(Ut=wo==null?void 0:wo.expandIcon)!==null&&Ut!==void 0?Ut:(fn=So==null?void 0:So.expandable)===null||fn===void 0?void 0:fn.expandIcon}),{childrenColumnName:qs="children"}=Ko,pa=v.useMemo(()=>Ol.some(Hn=>Hn==null?void 0:Hn[qs])?"nest":jo||wo&&wo.expandedRowRender?"row":null,[Ol]),vl={body:v.useRef()},Wa=Xp(ll),yi=v.useRef(null),ss=v.useRef(null);dc(Fe,()=>Object.assign(Object.assign({},ss.current),{nativeElement:yi.current}));const Ws=v.useMemo(()=>typeof Cr=="function"?Cr:Hn=>Hn==null?void 0:Hn[Cr],[Cr]),[Ra]=Qd(Ol,qs,Ws),Nl={},zu=function(Hn,In){let Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var _o,Xo,Ho;const Is=Object.assign(Object.assign({},Nl),Hn);Jr&&((_o=Nl.resetPagination)===null||_o===void 0||_o.call(Nl),!((Xo=Is.pagination)===null||Xo===void 0)&&Xo.current&&(Is.pagination.current=1),Or&&Or.onChange&&Or.onChange(1,(Ho=Is.pagination)===null||Ho===void 0?void 0:Ho.pageSize)),ha&&ha.scrollToFirstRowOnChange!==!1&&vl.body.current&&yd(0,{getContainer:()=>vl.body.current}),ri==null||ri(Is.pagination,Is.filters,Is.sorter,{currentDataSource:uh(Im(Ol,Is.sorterStates,qs),Is.filterStates,qs),action:In})},Va=(Hn,In)=>{zu({sorter:Hn,sorterStates:In},"sort",!1)},[Sc,Il,Bc,xu]=xm({prefixCls:ll,mergedColumns:Io,onSorterChange:Va,sortDirections:xo||["ascend","descend"],tableLocale:ja,showSorterTooltip:Os}),Yc=v.useMemo(()=>Im(Ol,Il,qs),[Ol,Il]);Nl.sorter=xu(),Nl.sorterStates=Il;const Hl=(Hn,In)=>{zu({filters:Hn,filterStates:In},"filter",!0)},[Yh,gc,Kc]=kd({prefixCls:ll,locale:ja,dropdownPrefixCls:ta,mergedColumns:Io,onFilterChange:Hl,getPopupContainer:Ci||ma,rootClassName:Xe()(gr,qa)}),uc=uh(Yc,gc,qs);Nl.filters=Kc,Nl.filterStates=gc;const yl=v.useMemo(()=>{const Hn={};return Object.keys(Kc).forEach(In=>{Kc[In]!==null&&(Hn[In]=Kc[In])}),Object.assign(Object.assign({},Bc),{filters:Hn})},[Bc,Kc]),[rd]=M0(yl),Zf=(Hn,In)=>{zu({pagination:Object.assign(Object.assign({},Nl.pagination),{current:Hn,pageSize:In})},"paginate")},[$c,fd]=sp(uc.length,Zf,Or);Nl.pagination=Or===!1?{}:am($c,Or),Nl.resetPagination=fd;const kh=v.useMemo(()=>{if(Or===!1||!$c.pageSize)return uc;const{current:Hn=1,total:In,pageSize:Jr=Rp}=$c;return uc.lengthJr?uc.slice((Hn-1)*Jr,Hn*Jr):uc:uc.slice((Hn-1)*Jr,Hn*Jr)},[!!Or,uc,$c&&$c.current,$c&&$c.pageSize,$c&&$c.total]),[Fd,Uo]=pu({prefixCls:ll,data:uc,pageData:kh,getRowKey:Ws,getRecordByKey:Ra,expandType:pa,childrenColumnName:qs,locale:ja,getPopupContainer:Ci||ma},Vn),rl=(Hn,In,Jr)=>{let _o;return typeof kn=="function"?_o=Xe()(kn(Hn,In,Jr)):_o=Xe()(kn),Xe()({[`${ll}-row-selected`]:Uo.has(Ws(Hn,In))},_o)};Ko.__PARENT_RENDER_ICON__=Ko.expandIcon,Ko.expandIcon=Ko.expandIcon||vo||Og(ja),pa==="nest"&&Ko.expandIconColumnIndex===void 0?Ko.expandIconColumnIndex=Vn?1:0:Ko.expandIconColumnIndex>0&&Vn&&(Ko.expandIconColumnIndex-=1),typeof Ko.indentSize!="number"&&(Ko.indentSize=typeof oo=="number"?oo:15);const _c=v.useCallback(Hn=>rd(Fd(Yh(Sc(Hn)))),[Sc,Yh,Fd]);let jh,Ed;if(Or!==!1&&($c!=null&&$c.total)){let Hn;$c.size?Hn=$c.size:Hn=Ne==="small"||Ne==="middle"?"small":void 0;const In=Xo=>v.createElement(eo,Object.assign({},$c,{className:Xe()(`${ll}-pagination ${ll}-pagination-${Xo}`,$c.className),size:Hn})),Jr=lo==="rtl"?"left":"right",{position:_o}=$c;if(_o!==null&&Array.isArray(_o)){const Xo=_o.find(sa=>sa.includes("top")),Ho=_o.find(sa=>sa.includes("bottom")),Is=_o.every(sa=>`${sa}`=="none");!Xo&&!Ho&&!Is&&(Ed=In(Jr)),Xo&&(jh=In(Xo.toLowerCase().replace("top",""))),Ho&&(Ed=In(Ho.toLowerCase().replace("bottom","")))}else Ed=In(Jr)}let Rg;typeof Oi=="boolean"?Rg={spinning:Oi}:typeof Oi=="object"&&(Rg=Object.assign({spinning:!0},Oi));const Hs=Xe()($s,qa,`${ll}-wrapper`,So==null?void 0:So.className,{[`${ll}-wrapper-rtl`]:lo==="rtl"},wn,gr,$i),we=Object.assign(Object.assign({},So==null?void 0:So.style),cr),Ee=ki&&ki.emptyText||(No==null?void 0:No("Table"))||v.createElement(Sh.Z,{componentName:"Table"}),He=Es?pm:C0,Jt={},xr=v.useMemo(()=>{const{fontSize:Hn,lineHeight:In,padding:Jr,paddingXS:_o,paddingSM:Xo}=ga,Ho=Math.floor(Hn*In);switch(Ne){case"large":return Jr*2+Ho;case"small":return _o*2+Ho;default:return Xo*2+Ho}},[ga,Ne]);return Es&&(Jt.listItemHeight=xr),bs(v.createElement("div",{ref:yi,className:Hs,style:we},v.createElement(od,Object.assign({spinning:!1},Rg),jh,v.createElement(He,Object.assign({},Jt,ls,{ref:ss,columns:Io,direction:lo,expandable:Ko,prefixCls:ll,className:Xe()({[`${ll}-middle`]:Ne==="middle",[`${ll}-small`]:Ne==="small",[`${ll}-bordered`]:Nr,[`${ll}-empty`]:Ol.length===0},$s,qa,$i),data:kh,rowKey:Ws,rowClassName:rl,emptyText:Ee,internalHooks:P,internalRefs:vl,transformColumns:_c,getContainerWidth:Wa})),Ed)))};var fr=v.forwardRef(Yn);const $r=(Me,Fe)=>{const Ut=v.useRef(0);return Ut.current+=1,v.createElement(fr,Object.assign({},Me,{ref:Fe,_renderTimes:Ut.current}))},ti=v.forwardRef($r);ti.SELECTION_COLUMN=eu,ti.EXPAND_COLUMN=z,ti.SELECTION_ALL=kl,ti.SELECTION_INVERT=Wl,ti.SELECTION_NONE=Dl,ti.Column=Za,ti.ColumnGroup=mu,ti.Summary=Ti;var xi=ti,vi=xi},4936:function(St,me,x){"use strict";x.d(me,{Z:function(){return qo}});var v=x(77617),z=x(4531),P=x(71323),A=x(79384),W=x(12022),X=x(44847),Y=function(sr,ii){return v.createElement(X.Z,(0,A.Z)({},sr,{ref:ii,icon:W.Z}))},ie=v.forwardRef(Y),ae=x(92310),se=x.n(ae),Ie=x(16514),Be=x(54131),Ce=x(35372),ct=x(13255),nt=x(56348),Ge=x(89308),at=x(89305),Ye=(0,v.createContext)(null),rt=x(49397),Gt=x(28647),yt=x(33890),Et=x(17763),ht=x(74570),Pe=function(sr){var ii=sr.activeTabOffset,qi=sr.horizontal,Ln=sr.rtl,zn=sr.indicator,Wi=zn===void 0?{}:zn,Yi=Wi.size,so=Wi.align,ko=so===void 0?"center":so,_i=(0,v.useState)(),hs=(0,Ce.Z)(_i,2),Ts=hs[0],Qr=hs[1],Ai=(0,v.useRef)(),Ri=v.useCallback(function(yo){return typeof Yi=="function"?Yi(yo):typeof Yi=="number"?Yi:yo},[Yi]);function To(){ht.Z.cancel(Ai.current)}return(0,v.useEffect)(function(){var yo={};if(ii)if(qi){yo.width=Ri(ii.width);var ao=Ln?"right":"left";ko==="start"&&(yo[ao]=ii[ao]),ko==="center"&&(yo[ao]=ii[ao]+ii.width/2,yo.transform=Ln?"translateX(50%)":"translateX(-50%)"),ko==="end"&&(yo[ao]=ii[ao]+ii.width,yo.transform="translateX(-100%)")}else yo.height=Ri(ii.height),ko==="start"&&(yo.top=ii.top),ko==="center"&&(yo.top=ii.top+ii.height/2,yo.transform="translateY(-50%)"),ko==="end"&&(yo.top=ii.top+ii.height,yo.transform="translateY(-100%)");return To(),Ai.current=(0,ht.Z)(function(){Qr(yo)}),To},[ii,qi,Ln,ko,Ri]),{style:Ts}},et=Pe,Oe={width:0,height:0,left:0,top:0};function Ue(Br,sr,ii){return(0,v.useMemo)(function(){for(var qi,Ln=new Map,zn=sr.get((qi=Br[0])===null||qi===void 0?void 0:qi.key)||Oe,Wi=zn.left+zn.width,Yi=0;YiKt?(Mt=sn,Rs.current="x"):(Mt=dt,Rs.current="y"),sr(-Mt,-Mt)&&tl.preventDefault()}var el=(0,v.useRef)(null);el.current={onTouchStart:Bs,onTouchMove:fa,onTouchEnd:ba,onWheel:Ds},v.useEffect(function(){function tl(Zt){el.current.onTouchStart(Zt)}function sn(Zt){el.current.onTouchMove(Zt)}function dt(Zt){el.current.onTouchEnd(Zt)}function Mt(Zt){el.current.onWheel(Zt)}return document.addEventListener("touchmove",sn,{passive:!1}),document.addEventListener("touchend",dt,{passive:!1}),Br.current.addEventListener("touchstart",tl,{passive:!1}),Br.current.addEventListener("wheel",Mt),function(){document.removeEventListener("touchmove",sn),document.removeEventListener("touchend",dt)}},[])}var Te=x(64693);function vt(Br){var sr=(0,v.useState)(0),ii=(0,Ce.Z)(sr,2),qi=ii[0],Ln=ii[1],zn=(0,v.useRef)(0),Wi=(0,v.useRef)();return Wi.current=Br,(0,Te.o)(function(){var Yi;(Yi=Wi.current)===null||Yi===void 0||Yi.call(Wi)},[qi]),function(){zn.current===qi&&(zn.current+=1,Ln(zn.current))}}function ze(Br){var sr=(0,v.useRef)([]),ii=(0,v.useState)({}),qi=(0,Ce.Z)(ii,2),Ln=qi[1],zn=(0,v.useRef)(typeof Br=="function"?Br():Br),Wi=vt(function(){var so=zn.current;sr.current.forEach(function(ko){so=ko(so)}),sr.current=[],zn.current=so,Ln({})});function Yi(so){sr.current.push(so),Wi()}return[zn.current,Yi]}var Vt={width:0,height:0,left:0,top:0,right:0};function Tt(Br,sr,ii,qi,Ln,zn,Wi){var Yi=Wi.tabs,so=Wi.tabPosition,ko=Wi.rtl,_i,hs,Ts;return["top","bottom"].includes(so)?(_i="width",hs=ko?"right":"left",Ts=Math.abs(ii)):(_i="height",hs="top",Ts=-ii),(0,v.useMemo)(function(){if(!Yi.length)return[0,0];for(var Qr=Yi.length,Ai=Qr,Ri=0;RiTs+sr){Ai=Ri-1;break}}for(var yo=0,ao=Qr-1;ao>=0;ao-=1){var Bs=Br.get(Yi[ao].key)||Vt;if(Bs[hs]=Ai?[0,0]:[yo,Ai]},[Br,sr,qi,Ln,zn,Ts,so,Yi.map(function(Qr){return Qr.key}).join("_"),ko])}function un(Br){var sr;return Br instanceof Map?(sr={},Br.forEach(function(ii,qi){sr[qi]=ii})):sr=Br,JSON.stringify(sr)}var on="TABS_DQ";function Lr(Br){return String(Br).replace(/"/g,on)}function Yr(Br,sr,ii,qi){return!(!ii||qi||Br===!1||Br===void 0&&(sr===!1||sr===null))}var fi=v.forwardRef(function(Br,sr){var ii=Br.prefixCls,qi=Br.editable,Ln=Br.locale,zn=Br.style;return!qi||qi.showAdd===!1?null:v.createElement("button",{ref:sr,type:"button",className:"".concat(ii,"-nav-add"),style:zn,"aria-label":(Ln==null?void 0:Ln.addAriaLabel)||"Add tab",onClick:function(Yi){qi.onEdit("add",{event:Yi})}},qi.addIcon||"+")}),Xi=fi,Qi=v.forwardRef(function(Br,sr){var ii=Br.position,qi=Br.prefixCls,Ln=Br.extra;if(!Ln)return null;var zn,Wi={};return(0,ct.Z)(Ln)==="object"&&!v.isValidElement(Ln)?Wi=Ln:Wi.right=Ln,ii==="right"&&(zn=Wi.right),ii==="left"&&(zn=Wi.left),zn?v.createElement("div",{className:"".concat(qi,"-extra-content"),ref:sr},zn):null}),hi=Qi,Go=x(31561),Mo=x(26135),pe=x(39193),Ii=v.forwardRef(function(Br,sr){var ii=Br.prefixCls,qi=Br.id,Ln=Br.tabs,zn=Br.locale,Wi=Br.mobile,Yi=Br.moreIcon,so=Yi===void 0?"More":Yi,ko=Br.moreTransitionName,_i=Br.style,hs=Br.className,Ts=Br.editable,Qr=Br.tabBarGutter,Ai=Br.rtl,Ri=Br.removeAriaLabel,To=Br.onTabClick,yo=Br.getPopupContainer,ao=Br.popupClassName,Bs=(0,v.useState)(!1),fa=(0,Ce.Z)(Bs,2),ba=fa[0],Rs=fa[1],Ds=(0,v.useState)(null),el=(0,Ce.Z)(Ds,2),tl=el[0],sn=el[1],dt="".concat(qi,"-more-popup"),Mt="".concat(ii,"-dropdown"),Zt=tl!==null?"".concat(dt,"-").concat(tl):null,Kt=zn==null?void 0:zn.dropdownAriaLabel;function Nn($a,nl){$a.preventDefault(),$a.stopPropagation(),Ts.onEdit("remove",{key:nl,event:$a})}var Ur=v.createElement(Mo.ZP,{onClick:function(nl){var ka=nl.key,Xs=nl.domEvent;To(ka,Xs),Rs(!1)},prefixCls:"".concat(Mt,"-menu"),id:dt,tabIndex:-1,role:"listbox","aria-activedescendant":Zt,selectedKeys:[tl],"aria-label":Kt!==void 0?Kt:"expanded dropdown"},Ln.map(function($a){var nl=$a.closable,ka=$a.disabled,Xs=$a.closeIcon,zs=$a.key,xa=$a.label,Ea=Yr(nl,Xs,Ts,ka);return v.createElement(Mo.sN,{key:zs,id:"".concat(dt,"-").concat(zs),role:"option","aria-controls":qi&&"".concat(qi,"-panel-").concat(zs),disabled:ka},v.createElement("span",null,xa),Ea&&v.createElement("button",{type:"button","aria-label":Ri||"remove",tabIndex:0,className:"".concat(Mt,"-menu-item-remove"),onClick:function(Ba){Ba.stopPropagation(),Nn(Ba,zs)}},Xs||Ts.removeIcon||"\xD7"))}));function Ui($a){for(var nl=Ln.filter(function(Ea){return!Ea.disabled}),ka=nl.findIndex(function(Ea){return Ea.key===tl})||0,Xs=nl.length,zs=0;zsSh?"left":"right"})}),Zt=(0,Ce.Z)(Mt,2),Kt=Zt[0],Nn=Zt[1],Ur=je(0,function(yd,Sh){!dt&&Ri&&Ri({direction:yd>Sh?"top":"bottom"})}),Ui=(0,Ce.Z)(Ur,2),Ao=Ui[0],rs=Ui[1],ps=(0,v.useState)([0,0]),Po=(0,Ce.Z)(ps,2),$a=Po[0],nl=Po[1],ka=(0,v.useState)([0,0]),Xs=(0,Ce.Z)(ka,2),zs=Xs[0],xa=Xs[1],Ea=(0,v.useState)([0,0]),_a=(0,Ce.Z)(Ea,2),Ba=_a[0],Al=_a[1],ks=(0,v.useState)([0,0]),Za=(0,Ce.Z)(ks,2),lu=Za[0],mu=Za[1],nu=ze(new Map),Fl=(0,Ce.Z)(nu,2),va=Fl[0],Ua=Fl[1],Yl=Ue(Bs,va,zs[0]),Cc=Rt($a,dt),ch=Rt(zs,dt),mh=Rt(Ba,dt),_h=Rt(lu,dt),wh=CcHi?Hi:yd}var Gn=(0,v.useRef)(null),Sr=(0,v.useState)(),Rr=(0,Ce.Z)(Sr,2),co=Rr[0],ns=Rr[1];function fs(){ns(Date.now())}function vs(){Gn.current&&clearTimeout(Gn.current)}Nt(Ds,function(yd,Sh){function xh(Ud,Hf){Ud(function(ef){var Pd=ji(ef+Hf);return Pd})}return wh?(dt?xh(Nn,yd):xh(rs,Sh),vs(),fs(),!0):!1}),(0,v.useEffect)(function(){return vs(),co&&(Gn.current=setTimeout(function(){ns(0)},100)),vs},[co]);var as=Tt(Yl,vu,dt?Kt:Ao,ch,mh,_h,(0,Be.Z)((0,Be.Z)({},Br),{},{tabs:Bs})),da=(0,Ce.Z)(as,2),Ss=da[0],pl=da[1],Vs=(0,yt.Z)(function(){var yd=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wi,Sh=Yl.get(yd)||{width:0,height:0,left:0,right:0,top:0};if(dt){var xh=Kt;Yi?Sh.rightKt+vu&&(xh=Sh.right+Sh.width-vu):Sh.left<-Kt?xh=-Sh.left:Sh.left+Sh.width>-Kt+vu&&(xh=-(Sh.left+Sh.width-vu)),rs(0),Nn(ji(xh))}else{var Ud=Ao;Sh.top<-Ao?Ud=-Sh.top:Sh.top+Sh.height>-Ao+vu&&(Ud=-(Sh.top+Sh.height-vu)),Nn(0),rs(ji(Ud))}}),ol={};hs==="top"||hs==="bottom"?ol[Yi?"marginRight":"marginLeft"]=Ts:ol.marginTop=Ts;var sl=Bs.map(function(yd,Sh){var xh=yd.key;return v.createElement(ai,{id:Ln,prefixCls:ao,key:xh,tab:yd,style:Sh===0?void 0:ol,closable:yd.closable,editable:ko,active:xh===Wi,renderWrapper:Qr,removeAriaLabel:_i==null?void 0:_i.removeAriaLabel,onClick:function(Hf){Ai(xh,Hf)},onFocus:function(){Vs(xh),fs(),Ds.current&&(Yi||(Ds.current.scrollLeft=0),Ds.current.scrollTop=0)}})}),eu=function(){return Ua(function(){var Sh,xh=new Map,Ud=(Sh=el.current)===null||Sh===void 0?void 0:Sh.getBoundingClientRect();return Bs.forEach(function(Hf){var ef,Pd=Hf.key,Mf=(ef=el.current)===null||ef===void 0?void 0:ef.querySelector('[data-node-key="'.concat(Lr(Pd),'"]'));if(Mf){var $f=Ms(Mf,Ud),Rd=(0,Ce.Z)($f,4),fp=Rd[0],us=Rd[1],Ca=Rd[2],Ta=Rd[3];xh.set(Pd,{width:fp,height:us,left:Ca,top:Ta})}}),xh})};(0,v.useEffect)(function(){eu()},[Bs.map(function(yd){return yd.key}).join("_")]);var kl=vt(function(){var yd=Ar(fa),Sh=Ar(ba),xh=Ar(Rs);nl([yd[0]-Sh[0]-xh[0],yd[1]-Sh[1]-xh[1]]);var Ud=Ar(sn);Al(Ud);var Hf=Ar(tl);mu(Hf);var ef=Ar(el);xa([ef[0]-Ud[0],ef[1]-Ud[1]]),eu()}),Wl=Bs.slice(0,Ss),Dl=Bs.slice(pl+1),ml=[].concat((0,rt.Z)(Wl),(0,rt.Z)(Dl)),uu=Yl.get(Wi),pn=et({activeTabOffset:uu,horizontal:dt,indicator:To,rtl:Yi}),pu=pn.style;(0,v.useEffect)(function(){Vs()},[Wi,Ql,Hi,un(uu),un(Yl),dt]),(0,v.useEffect)(function(){kl()},[Yi]);var tc=!!ml.length,dc="".concat(ao,"-nav-wrap"),Mc,Fc,cd,Vd;return dt?Yi?(Fc=Kt>0,Mc=Kt!==Hi):(Mc=Kt<0,Fc=Kt!==Ql):(cd=Ao<0,Vd=Ao!==Ql),v.createElement(Gt.Z,{onResize:kl},v.createElement("div",{ref:(0,Et.x1)(sr,fa),role:"tablist",className:se()("".concat(ao,"-nav"),ii),style:qi,onKeyDown:function(){fs()}},v.createElement(hi,{ref:ba,position:"left",extra:so,prefixCls:ao}),v.createElement(Gt.Z,{onResize:kl},v.createElement("div",{className:se()(dc,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(dc,"-ping-left"),Mc),"".concat(dc,"-ping-right"),Fc),"".concat(dc,"-ping-top"),cd),"".concat(dc,"-ping-bottom"),Vd)),ref:Ds},v.createElement(Gt.Z,{onResize:kl},v.createElement("div",{ref:el,className:"".concat(ao,"-nav-list"),style:{transform:"translate(".concat(Kt,"px, ").concat(Ao,"px)"),transition:co?"none":void 0}},sl,v.createElement(Xi,{ref:sn,prefixCls:ao,locale:_i,editable:ko,style:(0,Be.Z)((0,Be.Z)({},sl.length===0?void 0:ol),{},{visibility:tc?"hidden":null})}),v.createElement("div",{className:se()("".concat(ao,"-ink-bar"),(0,Ie.Z)({},"".concat(ao,"-ink-bar-animated"),zn.inkBar)),style:pu}))))),v.createElement(Vi,(0,A.Z)({},Br,{removeAriaLabel:_i==null?void 0:_i.removeAriaLabel,ref:tl,prefixCls:ao,tabs:ml,className:!tc&&ru,tabMoving:!!co})),v.createElement(hi,{ref:Rs,position:"right",extra:so,prefixCls:ao})))}),wr=jn,oi=v.forwardRef(function(Br,sr){var ii=Br.prefixCls,qi=Br.className,Ln=Br.style,zn=Br.id,Wi=Br.active,Yi=Br.tabKey,so=Br.children;return v.createElement("div",{id:zn&&"".concat(zn,"-panel-").concat(Yi),role:"tabpanel",tabIndex:Wi?0:-1,"aria-labelledby":zn&&"".concat(zn,"-tab-").concat(Yi),"aria-hidden":!Wi,style:Ln,className:se()(ii,Wi&&"".concat(ii,"-active"),qi),ref:sr},so)}),Ti=oi,Bi=["renderTabBar"],no=["label","key"],Vr=function(sr){var ii=sr.renderTabBar,qi=(0,nt.Z)(sr,Bi),Ln=v.useContext(Ye),zn=Ln.tabs;if(ii){var Wi=(0,Be.Z)((0,Be.Z)({},qi),{},{panes:zn.map(function(Yi){var so=Yi.label,ko=Yi.key,_i=(0,nt.Z)(Yi,no);return v.createElement(Ti,(0,A.Z)({tab:so,key:ko,tabKey:ko},_i))})});return ii(Wi,wr)}return v.createElement(wr,qi)},Rn=Vr,Xt=x(44516),Sn=["key","forceRender","style","className","destroyInactiveTabPane"],Pn=function(sr){var ii=sr.id,qi=sr.activeKey,Ln=sr.animated,zn=sr.tabPosition,Wi=sr.destroyInactiveTabPane,Yi=v.useContext(Ye),so=Yi.prefixCls,ko=Yi.tabs,_i=Ln.tabPane,hs="".concat(so,"-tabpane");return v.createElement("div",{className:se()("".concat(so,"-content-holder"))},v.createElement("div",{className:se()("".concat(so,"-content"),"".concat(so,"-content-").concat(zn),(0,Ie.Z)({},"".concat(so,"-content-animated"),_i))},ko.map(function(Ts){var Qr=Ts.key,Ai=Ts.forceRender,Ri=Ts.style,To=Ts.className,yo=Ts.destroyInactiveTabPane,ao=(0,nt.Z)(Ts,Sn),Bs=Qr===qi;return v.createElement(Xt.ZP,(0,A.Z)({key:Qr,visible:Bs,forceRender:Ai,removeOnLeave:!!(Wi||yo),leavedClassName:"".concat(hs,"-hidden")},Ln.tabPaneMotion),function(fa,ba){var Rs=fa.style,Ds=fa.className;return v.createElement(Ti,(0,A.Z)({},ao,{prefixCls:hs,id:ii,tabKey:Qr,animated:_i,active:Bs,style:(0,Be.Z)((0,Be.Z)({},Ri),Rs),className:se()(To,Ds),ref:ba}))})})))},hr=Pn,mt=x(32188);function tt(){var Br=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},sr;return Br===!1?sr={inkBar:!1,tabPane:!1}:Br===!0?sr={inkBar:!0,tabPane:!1}:sr=(0,Be.Z)({inkBar:!0},(0,ct.Z)(Br)==="object"?Br:{}),sr.tabPaneMotion&&sr.tabPane===void 0&&(sr.tabPane=!0),!sr.tabPaneMotion&&sr.tabPane&&(sr.tabPane=!1),sr}var kt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vn=0,vr=v.forwardRef(function(Br,sr){var ii=Br.id,qi=Br.prefixCls,Ln=qi===void 0?"rc-tabs":qi,zn=Br.className,Wi=Br.items,Yi=Br.direction,so=Br.activeKey,ko=Br.defaultActiveKey,_i=Br.editable,hs=Br.animated,Ts=Br.tabPosition,Qr=Ts===void 0?"top":Ts,Ai=Br.tabBarGutter,Ri=Br.tabBarStyle,To=Br.tabBarExtraContent,yo=Br.locale,ao=Br.moreIcon,Bs=Br.moreTransitionName,fa=Br.destroyInactiveTabPane,ba=Br.renderTabBar,Rs=Br.onChange,Ds=Br.onTabClick,el=Br.onTabScroll,tl=Br.getPopupContainer,sn=Br.popupClassName,dt=Br.indicator,Mt=(0,nt.Z)(Br,kt),Zt=v.useMemo(function(){return(Wi||[]).filter(function(mu){return mu&&(0,ct.Z)(mu)==="object"&&"key"in mu})},[Wi]),Kt=Yi==="rtl",Nn=tt(hs),Ur=(0,v.useState)(!1),Ui=(0,Ce.Z)(Ur,2),Ao=Ui[0],rs=Ui[1];(0,v.useEffect)(function(){rs((0,at.Z)())},[]);var ps=(0,Ge.Z)(function(){var mu;return(mu=Zt[0])===null||mu===void 0?void 0:mu.key},{value:so,defaultValue:ko}),Po=(0,Ce.Z)(ps,2),$a=Po[0],nl=Po[1],ka=(0,v.useState)(function(){return Zt.findIndex(function(mu){return mu.key===$a})}),Xs=(0,Ce.Z)(ka,2),zs=Xs[0],xa=Xs[1];(0,v.useEffect)(function(){var mu=Zt.findIndex(function(Fl){return Fl.key===$a});if(mu===-1){var nu;mu=Math.max(0,Math.min(zs,Zt.length-1)),nl((nu=Zt[mu])===null||nu===void 0?void 0:nu.key)}xa(mu)},[Zt.map(function(mu){return mu.key}).join("_"),$a,zs]);var Ea=(0,Ge.Z)(null,{value:ii}),_a=(0,Ce.Z)(Ea,2),Ba=_a[0],Al=_a[1];(0,v.useEffect)(function(){ii||(Al("rc-tabs-".concat(vn)),vn+=1)},[]);function ks(mu,nu){Ds==null||Ds(mu,nu);var Fl=mu!==$a;nl(mu),Fl&&(Rs==null||Rs(mu))}var Za={id:Ba,activeKey:$a,animated:Nn,tabPosition:Qr,rtl:Kt,mobile:Ao},lu=(0,Be.Z)((0,Be.Z)({},Za),{},{editable:_i,locale:yo,moreIcon:ao,moreTransitionName:Bs,tabBarGutter:Ai,onTabClick:ks,onTabScroll:el,extra:To,style:Ri,panes:null,getPopupContainer:tl,popupClassName:sn,indicator:dt});return v.createElement(Ye.Provider,{value:{tabs:Zt,prefixCls:Ln}},v.createElement("div",(0,A.Z)({ref:sr,id:ii,className:se()(Ln,"".concat(Ln,"-").concat(Qr),(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Ln,"-mobile"),Ao),"".concat(Ln,"-editable"),_i),"".concat(Ln,"-rtl"),Kt),zn)},Mt),v.createElement(Rn,(0,A.Z)({},lu,{renderTabBar:ba})),v.createElement(hr,(0,A.Z)({destroyInactiveTabPane:fa},Za,{animated:Nn}))))}),qr=vr,Ni=qr,li=x(58798),Un=x(26504),dn=x(20804),xt=x(12149);const it={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Bt(Br){let sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ii;return sr===!1?ii={inkBar:!1,tabPane:!1}:sr===!0?ii={inkBar:!0,tabPane:!0}:ii=Object.assign({inkBar:!0},typeof sr=="object"?sr:{}),ii.tabPane&&(ii.tabPaneMotion=Object.assign(Object.assign({},it),{motionName:(0,xt.m)(Br,"switch")})),ii}var rn=x(6415),ir=function(Br,sr){var ii={};for(var qi in Br)Object.prototype.hasOwnProperty.call(Br,qi)&&sr.indexOf(qi)<0&&(ii[qi]=Br[qi]);if(Br!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,qi=Object.getOwnPropertySymbols(Br);Lnsr)}function Jn(Br,sr){if(Br)return Br;const ii=(0,rn.Z)(sr).map(qi=>{if(v.isValidElement(qi)){const{key:Ln,props:zn}=qi,Wi=zn||{},{tab:Yi}=Wi,so=ir(Wi,["tab"]);return Object.assign(Object.assign({key:String(Ln)},so),{label:Yi})}return null});return tr(ii)}var nn=x(78600),er=x(91110),Fr=x(79263),jr=x(90882),bo=x(17089),en=Br=>{const{componentCls:sr,motionDurationSlow:ii}=Br;return[{[sr]:{[`${sr}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ii}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ii}`}}}}},[(0,bo.oN)(Br,"slide-up"),(0,bo.oN)(Br,"slide-down")]]};const Cn=Br=>{const{componentCls:sr,tabsCardPadding:ii,cardBg:qi,cardGutter:Ln,colorBorderSecondary:zn,itemSelectedColor:Wi}=Br;return{[`${sr}-card`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab`]:{margin:0,padding:ii,background:qi,border:`${(0,nn.bf)(Br.lineWidth)} ${Br.lineType} ${zn}`,transition:`all ${Br.motionDurationSlow} ${Br.motionEaseInOut}`},[`${sr}-tab-active`]:{color:Wi,background:Br.colorBgContainer},[`${sr}-ink-bar`]:{visibility:"hidden"}},[`&${sr}-top, &${sr}-bottom`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab + ${sr}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,nn.bf)(Ln)}}}},[`&${sr}-top`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab`]:{borderRadius:`${(0,nn.bf)(Br.borderRadiusLG)} ${(0,nn.bf)(Br.borderRadiusLG)} 0 0`},[`${sr}-tab-active`]:{borderBottomColor:Br.colorBgContainer}}},[`&${sr}-bottom`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab`]:{borderRadius:`0 0 ${(0,nn.bf)(Br.borderRadiusLG)} ${(0,nn.bf)(Br.borderRadiusLG)}`},[`${sr}-tab-active`]:{borderTopColor:Br.colorBgContainer}}},[`&${sr}-left, &${sr}-right`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab + ${sr}-tab`]:{marginTop:(0,nn.bf)(Ln)}}},[`&${sr}-left`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,nn.bf)(Br.borderRadiusLG)} 0 0 ${(0,nn.bf)(Br.borderRadiusLG)}`}},[`${sr}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Br.colorBgContainer}}}},[`&${sr}-right`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,nn.bf)(Br.borderRadiusLG)} ${(0,nn.bf)(Br.borderRadiusLG)} 0`}},[`${sr}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Br.colorBgContainer}}}}}}},rr=Br=>{const{componentCls:sr,itemHoverColor:ii,dropdownEdgeChildVerticalPadding:qi}=Br;return{[`${sr}-dropdown`]:Object.assign(Object.assign({},(0,er.Wf)(Br)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Br.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${sr}-dropdown-menu`]:{maxHeight:Br.tabsDropdownHeight,margin:0,padding:`${(0,nn.bf)(qi)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Br.colorBgContainer,backgroundClip:"padding-box",borderRadius:Br.borderRadiusLG,outline:"none",boxShadow:Br.boxShadowSecondary,"&-item":Object.assign(Object.assign({},er.vS),{display:"flex",alignItems:"center",minWidth:Br.tabsDropdownWidth,margin:0,padding:`${(0,nn.bf)(Br.paddingXXS)} ${(0,nn.bf)(Br.paddingSM)}`,color:Br.colorText,fontWeight:"normal",fontSize:Br.fontSize,lineHeight:Br.lineHeight,cursor:"pointer",transition:`all ${Br.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Br.marginSM},color:Br.colorTextDescription,fontSize:Br.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ii}},"&:hover":{background:Br.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Br.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Pr=Br=>{const{componentCls:sr,margin:ii,colorBorderSecondary:qi,horizontalMargin:Ln,verticalItemPadding:zn,verticalItemMargin:Wi,calc:Yi}=Br;return{[`${sr}-top, ${sr}-bottom`]:{flexDirection:"column",[`> ${sr}-nav, > div > ${sr}-nav`]:{margin:Ln,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,nn.bf)(Br.lineWidth)} ${Br.lineType} ${qi}`,content:"''"},[`${sr}-ink-bar`]:{height:Br.lineWidthBold,"&-animated":{transition:`width ${Br.motionDurationSlow}, left ${Br.motionDurationSlow}, + right ${Br.motionDurationSlow}`}},[`${sr}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Br.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Br.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Br.boxShadowTabsOverflowRight},[`&${sr}-nav-wrap-ping-left::before`]:{opacity:1},[`&${sr}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${sr}-top`]:{[`> ${sr}-nav, + > div > ${sr}-nav`]:{"&::before":{bottom:0},[`${sr}-ink-bar`]:{bottom:0}}},[`${sr}-bottom`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{order:1,marginTop:ii,marginBottom:0,"&::before":{top:0},[`${sr}-ink-bar`]:{top:0}},[`> ${sr}-content-holder, > div > ${sr}-content-holder`]:{order:0}},[`${sr}-left, ${sr}-right`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{flexDirection:"column",minWidth:Yi(Br.controlHeight).mul(1.25).equal(),[`${sr}-tab`]:{padding:zn,textAlign:"center"},[`${sr}-tab + ${sr}-tab`]:{margin:Wi},[`${sr}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Br.controlHeight},"&::before":{top:0,boxShadow:Br.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Br.boxShadowTabsOverflowBottom},[`&${sr}-nav-wrap-ping-top::before`]:{opacity:1},[`&${sr}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${sr}-ink-bar`]:{width:Br.lineWidthBold,"&-animated":{transition:`height ${Br.motionDurationSlow}, top ${Br.motionDurationSlow}`}},[`${sr}-nav-list, ${sr}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${sr}-left`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${sr}-content-holder, > div > ${sr}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,nn.bf)(Yi(Br.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,nn.bf)(Br.lineWidth)} ${Br.lineType} ${Br.colorBorder}`},[`> ${sr}-content > ${sr}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Br.paddingLG}}}},[`${sr}-right`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{order:1,[`${sr}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${sr}-content-holder, > div > ${sr}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Yi(Br.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,nn.bf)(Br.lineWidth)} ${Br.lineType} ${Br.colorBorder}`},[`> ${sr}-content > ${sr}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Br.paddingLG}}}}}},Er=Br=>{const{componentCls:sr,cardPaddingSM:ii,cardPaddingLG:qi,horizontalItemPaddingSM:Ln,horizontalItemPaddingLG:zn}=Br;return{[sr]:{"&-small":{[`> ${sr}-nav`]:{[`${sr}-tab`]:{padding:Ln,fontSize:Br.titleFontSizeSM}}},"&-large":{[`> ${sr}-nav`]:{[`${sr}-tab`]:{padding:zn,fontSize:Br.titleFontSizeLG}}}},[`${sr}-card`]:{[`&${sr}-small`]:{[`> ${sr}-nav`]:{[`${sr}-tab`]:{padding:ii}},[`&${sr}-bottom`]:{[`> ${sr}-nav ${sr}-tab`]:{borderRadius:`0 0 ${(0,nn.bf)(Br.borderRadius)} ${(0,nn.bf)(Br.borderRadius)}`}},[`&${sr}-top`]:{[`> ${sr}-nav ${sr}-tab`]:{borderRadius:`${(0,nn.bf)(Br.borderRadius)} ${(0,nn.bf)(Br.borderRadius)} 0 0`}},[`&${sr}-right`]:{[`> ${sr}-nav ${sr}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,nn.bf)(Br.borderRadius)} ${(0,nn.bf)(Br.borderRadius)} 0`}}},[`&${sr}-left`]:{[`> ${sr}-nav ${sr}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,nn.bf)(Br.borderRadius)} 0 0 ${(0,nn.bf)(Br.borderRadius)}`}}}},[`&${sr}-large`]:{[`> ${sr}-nav`]:{[`${sr}-tab`]:{padding:qi}}}}}},ui=Br=>{const{componentCls:sr,itemActiveColor:ii,itemHoverColor:qi,iconCls:Ln,tabsHorizontalItemMargin:zn,horizontalItemPadding:Wi,itemSelectedColor:Yi,itemColor:so}=Br,ko=`${sr}-tab`;return{[ko]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Wi,fontSize:Br.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:so,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ii}},(0,er.Qy)(Br)),"&-btn":{outline:"none",transition:"all 0.3s",[`${ko}-icon:not(:last-child)`]:{marginInlineEnd:Br.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:Br.calc(Br.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:Br.marginXS},color:Br.colorTextDescription,fontSize:Br.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Br.motionDurationSlow}`,"&:hover":{color:Br.colorTextHeading}},"&:hover":{color:qi},[`&${ko}-active ${ko}-btn`]:{color:Yi,textShadow:Br.tabsActiveTextShadow},[`&${ko}-disabled`]:{color:Br.colorTextDisabled,cursor:"not-allowed"},[`&${ko}-disabled ${ko}-btn, &${ko}-disabled ${sr}-remove`]:{"&:focus, &:active":{color:Br.colorTextDisabled}},[`& ${ko}-remove ${Ln}`]:{margin:0},[`${Ln}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:Br.marginSM}}},[`${ko} + ${ko}`]:{margin:{_skip_check_:!0,value:zn}}}},Gr=Br=>{const{componentCls:sr,tabsHorizontalItemMarginRTL:ii,iconCls:qi,cardGutter:Ln,calc:zn}=Br;return{[`${sr}-rtl`]:{direction:"rtl",[`${sr}-nav`]:{[`${sr}-tab`]:{margin:{_skip_check_:!0,value:ii},[`${sr}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[qi]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,nn.bf)(Br.marginSM)}},[`${sr}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,nn.bf)(Br.marginXS)},marginLeft:{_skip_check_:!0,value:(0,nn.bf)(zn(Br.marginXXS).mul(-1).equal())},[qi]:{margin:0}}}},[`&${sr}-left`]:{[`> ${sr}-nav`]:{order:1},[`> ${sr}-content-holder`]:{order:0}},[`&${sr}-right`]:{[`> ${sr}-nav`]:{order:0},[`> ${sr}-content-holder`]:{order:1}},[`&${sr}-card${sr}-top, &${sr}-card${sr}-bottom`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-tab + ${sr}-tab`]:{marginRight:{_skip_check_:!0,value:Ln},marginLeft:{_skip_check_:!0,value:0}}}}},[`${sr}-dropdown-rtl`]:{direction:"rtl"},[`${sr}-menu-item`]:{[`${sr}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zr=Br=>{const{componentCls:sr,tabsCardPadding:ii,cardHeight:qi,cardGutter:Ln,itemHoverColor:zn,itemActiveColor:Wi,colorBorderSecondary:Yi}=Br;return{[sr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(Br)),{display:"flex",[`> ${sr}-nav, > div > ${sr}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${sr}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Br.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${sr}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Br.motionDurationSlow}`},[`${sr}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${sr}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${sr}-nav-more`]:{position:"relative",padding:ii,background:"transparent",border:0,color:Br.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Br.calc(Br.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${sr}-nav-add`]:Object.assign({minWidth:qi,minHeight:qi,marginLeft:{_skip_check_:!0,value:Ln},padding:`0 ${(0,nn.bf)(Br.paddingXS)}`,background:"transparent",border:`${(0,nn.bf)(Br.lineWidth)} ${Br.lineType} ${Yi}`,borderRadius:`${(0,nn.bf)(Br.borderRadiusLG)} ${(0,nn.bf)(Br.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:Br.colorText,transition:`all ${Br.motionDurationSlow} ${Br.motionEaseInOut}`,"&:hover":{color:zn},"&:active, &:focus:not(:focus-visible)":{color:Wi}},(0,er.Qy)(Br))},[`${sr}-extra-content`]:{flex:"none"},[`${sr}-ink-bar`]:{position:"absolute",background:Br.inkBarColor,pointerEvents:"none"}}),ui(Br)),{[`${sr}-content`]:{position:"relative",width:"100%"},[`${sr}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${sr}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${sr}-centered`]:{[`> ${sr}-nav, > div > ${sr}-nav`]:{[`${sr}-nav-wrap`]:{[`&:not([class*='${sr}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Ei=Br=>{const sr=Br.controlHeightLG;return{zIndexPopup:Br.zIndexPopupBase+50,cardBg:Br.colorFillAlter,cardHeight:sr,cardPadding:`${(sr-Math.round(Br.fontSize*Br.lineHeight))/2-Br.lineWidth}px ${Br.padding}px`,cardPaddingSM:`${Br.paddingXXS*1.5}px ${Br.padding}px`,cardPaddingLG:`${Br.paddingXS}px ${Br.padding}px ${Br.paddingXXS*1.5}px`,titleFontSize:Br.fontSize,titleFontSizeLG:Br.fontSizeLG,titleFontSizeSM:Br.fontSize,inkBarColor:Br.colorPrimary,horizontalMargin:`0 0 ${Br.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Br.paddingSM}px 0`,horizontalItemPaddingSM:`${Br.paddingXS}px 0`,horizontalItemPaddingLG:`${Br.padding}px 0`,verticalItemPadding:`${Br.paddingXS}px ${Br.paddingLG}px`,verticalItemMargin:`${Br.margin}px 0 0 0`,itemColor:Br.colorText,itemSelectedColor:Br.colorPrimary,itemHoverColor:Br.colorPrimaryHover,itemActiveColor:Br.colorPrimaryActive,cardGutter:Br.marginXXS/2}};var Zi=(0,Fr.I$)("Tabs",Br=>{const sr=(0,jr.TS)(Br,{tabsCardPadding:Br.cardPadding,dropdownEdgeChildVerticalPadding:Br.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,nn.bf)(Br.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,nn.bf)(Br.horizontalItemGutter)}`});return[Er(sr),Gr(sr),Pr(sr),rr(sr),Cn(sr),zr(sr),en(sr)]},Ei),Xr=()=>null,Qo=function(Br,sr){var ii={};for(var qi in Br)Object.prototype.hasOwnProperty.call(Br,qi)&&sr.indexOf(qi)<0&&(ii[qi]=Br[qi]);if(Br!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,qi=Object.getOwnPropertySymbols(Br);Ln{var sr,ii,qi,Ln,zn,Wi,Yi;const{type:so,className:ko,rootClassName:_i,size:hs,onEdit:Ts,hideAdd:Qr,centered:Ai,addIcon:Ri,moreIcon:To,popupClassName:yo,children:ao,items:Bs,animated:fa,style:ba,indicatorSize:Rs,indicator:Ds}=Br,el=Qo(Br,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:tl}=el,{direction:sn,tabs:dt,getPrefixCls:Mt,getPopupContainer:Zt}=v.useContext(li.E_),Kt=Mt("tabs",tl),Nn=(0,Un.Z)(Kt),[Ur,Ui,Ao]=Zi(Kt,Nn);let rs;so==="editable-card"&&(rs={onEdit:(zs,xa)=>{let{key:Ea,event:_a}=xa;Ts==null||Ts(zs==="add"?_a:Ea,zs)},removeIcon:v.createElement(z.Z,null),addIcon:(Ri!=null?Ri:dt==null?void 0:dt.addIcon)||v.createElement(ie,null),showAdd:Qr!==!0});const ps=Mt(),Po=(0,dn.Z)(hs),$a=Jn(Bs,ao),nl=Bt(Kt,fa),ka=Object.assign(Object.assign({},dt==null?void 0:dt.style),ba),Xs={align:(sr=Ds==null?void 0:Ds.align)!==null&&sr!==void 0?sr:(ii=dt==null?void 0:dt.indicator)===null||ii===void 0?void 0:ii.align,size:(Wi=(Ln=(qi=Ds==null?void 0:Ds.size)!==null&&qi!==void 0?qi:Rs)!==null&&Ln!==void 0?Ln:(zn=dt==null?void 0:dt.indicator)===null||zn===void 0?void 0:zn.size)!==null&&Wi!==void 0?Wi:dt==null?void 0:dt.indicatorSize};return Ur(v.createElement(Ni,Object.assign({direction:sn,getPopupContainer:Zt,moreTransitionName:`${ps}-slide-up`},el,{items:$a,className:se()({[`${Kt}-${Po}`]:Po,[`${Kt}-card`]:["card","editable-card"].includes(so),[`${Kt}-editable-card`]:so==="editable-card",[`${Kt}-centered`]:Ai},dt==null?void 0:dt.className,ko,_i,Ui,Ao,Nn),popupClassName:se()(yo,Ui,Ao,Nn),style:ka,editable:rs,moreIcon:(Yi=To!=null?To:dt==null?void 0:dt.moreIcon)!==null&&Yi!==void 0?Yi:v.createElement(P.Z,null),prefixCls:Kt,animated:nl,indicator:Xs})))};pr.TabPane=Xr;var qo=pr},92823:function(St,me,x){"use strict";x.d(me,{Mj:function(){return Y},uH:function(){return W},u_:function(){return X}});var v=x(77617),z=x(78600),P=x(37309),A=x(5581);const W=(0,z.jG)(P.Z),X={token:A.Z,override:{override:A.Z},hashed:!0},Y=v.createContext(X)},80769:function(St,me,x){"use strict";x.d(me,{Z:function(){return Pe}});var v=x(78600),z=x(37309),P=x(5581),A=x(18774),X=et=>{const Oe=et!=null&&et.algorithm?(0,v.jG)(et.algorithm):(0,v.jG)(z.Z),Ue=Object.assign(Object.assign({},P.Z),et==null?void 0:et.token);return(0,v.t2)(Ue,{override:et==null?void 0:et.token},Oe,A.Z)},Y=x(57832),ie=x(92823),ae=x(43479);function se(et){const{sizeUnit:Oe,sizeStep:Ue}=et,je=Ue-2;return{sizeXXL:Oe*(je+10),sizeXL:Oe*(je+6),sizeLG:Oe*(je+2),sizeMD:Oe*(je+2),sizeMS:Oe*(je+1),size:Oe*je,sizeSM:Oe*je,sizeXS:Oe*(je-1),sizeXXS:Oe*(je-1)}}var Ie=x(83507),Ce=(et,Oe)=>{const Ue=Oe!=null?Oe:(0,z.Z)(et),je=Ue.fontSizeSM,ft=Ue.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ue),se(Oe!=null?Oe:et)),(0,Ie.Z)(je)),{controlHeight:ft}),(0,ae.Z)(Object.assign(Object.assign({},Ue),{controlHeight:ft})))},ct=x(10129),nt=x(21370),Ge=x(64993);const at=(et,Oe)=>new Ge.C(et).setAlpha(Oe).toRgbString(),Ye=(et,Oe)=>new Ge.C(et).lighten(Oe).toHexString(),rt=et=>{const Oe=(0,ct.R_)(et,{theme:"dark"});return{1:Oe[0],2:Oe[1],3:Oe[2],4:Oe[3],5:Oe[6],6:Oe[5],7:Oe[4],8:Oe[6],9:Oe[5],10:Oe[4]}},Gt=(et,Oe)=>{const Ue=et||"#000",je=Oe||"#fff";return{colorBgBase:Ue,colorTextBase:je,colorText:at(je,.85),colorTextSecondary:at(je,.65),colorTextTertiary:at(je,.45),colorTextQuaternary:at(je,.25),colorFill:at(je,.18),colorFillSecondary:at(je,.12),colorFillTertiary:at(je,.08),colorFillQuaternary:at(je,.04),colorBgElevated:Ye(Ue,12),colorBgContainer:Ye(Ue,8),colorBgLayout:Ye(Ue,0),colorBgSpotlight:Ye(Ue,26),colorBgBlur:at(je,.04),colorBorder:Ye(Ue,26),colorBorderSecondary:Ye(Ue,19)}};var Et=(et,Oe)=>{const Ue=Object.keys(P.M).map(ft=>{const Ct=(0,ct.R_)(et[ft],{theme:"dark"});return new Array(10).fill(1).reduce((Xe,hn,Nt)=>(Xe[`${ft}-${Nt+1}`]=Ct[Nt],Xe[`${ft}${Nt+1}`]=Ct[Nt],Xe),{})}).reduce((ft,Ct)=>(ft=Object.assign(Object.assign({},ft),Ct),ft),{}),je=Oe!=null?Oe:(0,z.Z)(et);return Object.assign(Object.assign(Object.assign({},je),Ue),(0,nt.Z)(et,{generateColorPalettes:rt,generateNeutralColorPalettes:Gt}))};function ht(){const[et,Oe,Ue]=(0,Y.ZP)();return{theme:et,token:Oe,hashId:Ue}}var Pe={defaultConfig:ie.u_,defaultSeed:ie.u_.token,useToken:ht,defaultAlgorithm:z.Z,darkAlgorithm:Et,compactAlgorithm:Ce,getDesignToken:X}},42095:function(St,me,x){"use strict";x.d(me,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},37309:function(St,me,x){"use strict";x.d(me,{Z:function(){return nt}});var v=x(10129),z=x(43479);function P(Ge){const{sizeUnit:at,sizeStep:Ye}=Ge;return{sizeXXL:at*(Ye+8),sizeXL:at*(Ye+4),sizeLG:at*(Ye+2),sizeMD:at*(Ye+1),sizeMS:at*Ye,size:at*Ye,sizeSM:at*(Ye-1),sizeXS:at*(Ye-2),sizeXXS:at*(Ye-3)}}var A=x(5581),W=x(21370),Y=Ge=>{let at=Ge,Ye=Ge,rt=Ge,Gt=Ge;return Ge<6&&Ge>=5?at=Ge+1:Ge<16&&Ge>=6?at=Ge+2:Ge>=16&&(at=16),Ge<7&&Ge>=5?Ye=4:Ge<8&&Ge>=7?Ye=5:Ge<14&&Ge>=8?Ye=6:Ge<16&&Ge>=14?Ye=7:Ge>=16&&(Ye=8),Ge<6&&Ge>=2?rt=1:Ge>=6&&(rt=2),Ge>4&&Ge<8?Gt=4:Ge>=8&&(Gt=6),{borderRadius:Ge,borderRadiusXS:rt,borderRadiusSM:Ye,borderRadiusLG:at,borderRadiusOuter:Gt}};function ie(Ge){const{motionUnit:at,motionBase:Ye,borderRadius:rt,lineWidth:Gt}=Ge;return Object.assign({motionDurationFast:`${(Ye+at).toFixed(1)}s`,motionDurationMid:`${(Ye+at*2).toFixed(1)}s`,motionDurationSlow:`${(Ye+at*3).toFixed(1)}s`,lineWidthBold:Gt+1},Y(rt))}var ae=x(64993);const se=(Ge,at)=>new ae.C(Ge).setAlpha(at).toRgbString(),Ie=(Ge,at)=>new ae.C(Ge).darken(at).toHexString(),Be=Ge=>{const at=(0,v.R_)(Ge);return{1:at[0],2:at[1],3:at[2],4:at[3],5:at[4],6:at[5],7:at[6],8:at[4],9:at[5],10:at[6]}},Ce=(Ge,at)=>{const Ye=Ge||"#fff",rt=at||"#000";return{colorBgBase:Ye,colorTextBase:rt,colorText:se(rt,.88),colorTextSecondary:se(rt,.65),colorTextTertiary:se(rt,.45),colorTextQuaternary:se(rt,.25),colorFill:se(rt,.15),colorFillSecondary:se(rt,.06),colorFillTertiary:se(rt,.04),colorFillQuaternary:se(rt,.02),colorBgLayout:Ie(Ye,4),colorBgContainer:Ie(Ye,0),colorBgElevated:Ie(Ye,0),colorBgSpotlight:se(rt,.85),colorBgBlur:"transparent",colorBorder:Ie(Ye,15),colorBorderSecondary:Ie(Ye,6)}};var ct=x(83507);function nt(Ge){const at=Object.keys(A.M).map(Ye=>{const rt=(0,v.R_)(Ge[Ye]);return new Array(10).fill(1).reduce((Gt,yt,Et)=>(Gt[`${Ye}-${Et+1}`]=rt[Et],Gt[`${Ye}${Et+1}`]=rt[Et],Gt),{})}).reduce((Ye,rt)=>(Ye=Object.assign(Object.assign({},Ye),rt),Ye),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ge),at),(0,W.Z)(Ge,{generateColorPalettes:Be,generateNeutralColorPalettes:Ce})),(0,ct.Z)(Ge.fontSize)),P(Ge)),(0,z.Z)(Ge)),ie(Ge))}},5581:function(St,me,x){"use strict";x.d(me,{M:function(){return v}});const v={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"},z=Object.assign(Object.assign({},v),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,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});g.Z=D},21370:function(c,g,l){"use strict";l.d(g,{Z:function(){return D}});var u=l(64993);function D(b,x){let{generateColorPalettes:y,generateNeutralColorPalettes:w}=x;const{colorSuccess:a,colorWarning:S,colorError:I,colorInfo:N,colorPrimary:ie,colorBgBase:ze,colorTextBase:Ie}=b,ct=y(ie),At=y(a),rt=y(S),It=y(I),Ot=y(N),wn=w(ze,Ie),Hs=b.colorLink||b.colorInfo,jr=y(Hs);return Object.assign(Object.assign({},wn),{colorPrimaryBg:ct[1],colorPrimaryBgHover:ct[2],colorPrimaryBorder:ct[3],colorPrimaryBorderHover:ct[4],colorPrimaryHover:ct[5],colorPrimary:ct[6],colorPrimaryActive:ct[7],colorPrimaryTextHover:ct[8],colorPrimaryText:ct[9],colorPrimaryTextActive:ct[10],colorSuccessBg:At[1],colorSuccessBgHover:At[2],colorSuccessBorder:At[3],colorSuccessBorderHover:At[4],colorSuccessHover:At[4],colorSuccess:At[6],colorSuccessActive:At[7],colorSuccessTextHover:At[8],colorSuccessText:At[9],colorSuccessTextActive:At[10],colorErrorBg:It[1],colorErrorBgHover:It[2],colorErrorBorder:It[3],colorErrorBorderHover:It[4],colorErrorHover:It[5],colorError:It[6],colorErrorActive:It[7],colorErrorTextHover:It[8],colorErrorText:It[9],colorErrorTextActive:It[10],colorWarningBg:rt[1],colorWarningBgHover:rt[2],colorWarningBorder:rt[3],colorWarningBorderHover:rt[4],colorWarningHover:rt[4],colorWarning:rt[6],colorWarningActive:rt[7],colorWarningTextHover:rt[8],colorWarningText:rt[9],colorWarningTextActive:rt[10],colorInfoBg:Ot[1],colorInfoBgHover:Ot[2],colorInfoBorder:Ot[3],colorInfoBorderHover:Ot[4],colorInfoHover:Ot[4],colorInfo:Ot[6],colorInfoActive:Ot[7],colorInfoTextHover:Ot[8],colorInfoText:Ot[9],colorInfoTextActive:Ot[10],colorLinkHover:jr[4],colorLink:jr[6],colorLinkActive:jr[7],colorBgMask:new u.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},43479:function(c,g){"use strict";const l=u=>{const{controlHeight:D}=u;return{controlHeightSM:D*.75,controlHeightXS:D*.5,controlHeightLG:D*1.25}};g.Z=l},83507:function(c,g,l){"use strict";var u=l(14506);const D=b=>{const x=(0,u.Z)(b),y=x.map(Ie=>Ie.size),w=x.map(Ie=>Ie.lineHeight),a=y[1],S=y[0],I=y[2],N=w[1],ie=w[0],ze=w[2];return{fontSizeSM:S,fontSize:a,fontSizeLG:I,fontSizeXL:y[3],fontSizeHeading1:y[6],fontSizeHeading2:y[5],fontSizeHeading3:y[4],fontSizeHeading4:y[3],fontSizeHeading5:y[2],lineHeight:N,lineHeightLG:ze,lineHeightSM:ie,fontHeight:Math.round(N*a),fontHeightLG:Math.round(ze*I),fontHeightSM:Math.round(ie*S),lineHeightHeading1:w[6],lineHeightHeading2:w[5],lineHeightHeading3:w[4],lineHeightHeading4:w[3],lineHeightHeading5:w[2]}};g.Z=D},14506:function(c,g,l){"use strict";l.d(g,{D:function(){return u},Z:function(){return D}});function u(b){return(b+8)/b}function D(b){const x=new Array(10).fill(null).map((y,w)=>{const a=w-1,S=b*Math.pow(2.71828,a/5),I=w>1?Math.floor(S):Math.ceil(S);return Math.floor(I/2)*2});return x[1]=b,x.map(y=>({size:y,lineHeight:u(y)}))}},57832:function(c,g,l){"use strict";l.d(g,{ZP:function(){return Ie},ID:function(){return N},NJ:function(){return I}});var u=l(77617),D=l(78600),b="5.14.1",x=b,y=l(92823),w=l(5581),a=l(18774),S=function(ct,At){var rt={};for(var It in ct)Object.prototype.hasOwnProperty.call(ct,It)&&At.indexOf(It)<0&&(rt[It]=ct[It]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,It=Object.getOwnPropertySymbols(ct);Ot{const It=rt.getDerivativeToken(ct),{override:Ot}=At,wn=S(At,["override"]);let Hs=Object.assign(Object.assign({},It),{override:Ot});return Hs=(0,a.Z)(Hs),wn&&Object.entries(wn).forEach(jr=>{let[Jr,Yn]=jr;const{theme:Lt}=Yn,_n=S(Yn,["theme"]);let Mt=_n;Lt&&(Mt=ze(Object.assign(Object.assign({},Hs),_n),{override:_n},Lt)),Hs[Jr]=Mt}),Hs};function Ie(){const{token:ct,hashed:At,theme:rt,override:It,cssVar:Ot}=u.useContext(y.Mj),wn=`${x}-${At||""}`,Hs=rt||y.uH,[jr,Jr,Yn]=(0,D.fp)(Hs,[w.Z,ct],{salt:wn,override:It,getComputedToken:ze,formatToken:a.Z,cssVar:Ot&&{prefix:Ot.prefix,key:Ot.key,unitless:I,ignore:N,preserve:ie}});return[Hs,Yn,At?Jr:"",jr,Ot]}},18774:function(c,g,l){"use strict";l.d(g,{Z:function(){return a}});var u=l(64993),D=l(5581);function b(S){return S>=0&&S<=255}function x(S,I){const{r:N,g:ie,b:ze,a:Ie}=new u.C(S).toRgb();if(Ie<1)return S;const{r:ct,g:At,b:rt}=new u.C(I).toRgb();for(let It=.01;It<=1;It+=.01){const Ot=Math.round((N-ct*(1-It))/It),wn=Math.round((ie-At*(1-It))/It),Hs=Math.round((ze-rt*(1-It))/It);if(b(Ot)&&b(wn)&&b(Hs))return new u.C({r:Ot,g:wn,b:Hs,a:Math.round(It*100)/100}).toRgbString()}return new u.C({r:N,g:ie,b:ze,a:1}).toRgbString()}var y=x,w=function(S,I){var N={};for(var ie in S)Object.prototype.hasOwnProperty.call(S,ie)&&I.indexOf(ie)<0&&(N[ie]=S[ie]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ie=Object.getOwnPropertySymbols(S);ze{delete ie[Hs]});const ze=Object.assign(Object.assign({},N),ie),Ie=480,ct=576,At=768,rt=992,It=1200,Ot=1600;if(ze.motion===!1){const Hs="0s";ze.motionDurationFast=Hs,ze.motionDurationMid=Hs,ze.motionDurationSlow=Hs}return Object.assign(Object.assign(Object.assign({},ze),{colorFillContent:ze.colorFillSecondary,colorFillContentHover:ze.colorFill,colorFillAlter:ze.colorFillQuaternary,colorBgContainerDisabled:ze.colorFillTertiary,colorBorderBg:ze.colorBgContainer,colorSplit:y(ze.colorBorderSecondary,ze.colorBgContainer),colorTextPlaceholder:ze.colorTextQuaternary,colorTextDisabled:ze.colorTextQuaternary,colorTextHeading:ze.colorText,colorTextLabel:ze.colorTextSecondary,colorTextDescription:ze.colorTextTertiary,colorTextLightSolid:ze.colorWhite,colorHighlight:ze.colorError,colorBgTextHover:ze.colorFillSecondary,colorBgTextActive:ze.colorFill,colorIcon:ze.colorTextTertiary,colorIconHover:ze.colorText,colorErrorOutline:y(ze.colorErrorBg,ze.colorBgContainer),colorWarningOutline:y(ze.colorWarningBg,ze.colorBgContainer),fontSizeIcon:ze.fontSizeSM,lineWidthFocus:ze.lineWidth*4,lineWidth:ze.lineWidth,controlOutlineWidth:ze.lineWidth*2,controlInteractiveSize:ze.controlHeight/2,controlItemBgHover:ze.colorFillTertiary,controlItemBgActive:ze.colorPrimaryBg,controlItemBgActiveHover:ze.colorPrimaryBgHover,controlItemBgActiveDisabled:ze.colorFill,controlTmpOutline:ze.colorFillQuaternary,controlOutline:y(ze.colorPrimaryBg,ze.colorBgContainer),lineType:ze.lineType,borderRadius:ze.borderRadius,borderRadiusXS:ze.borderRadiusXS,borderRadiusSM:ze.borderRadiusSM,borderRadiusLG:ze.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:ze.sizeXXS,paddingXS:ze.sizeXS,paddingSM:ze.sizeSM,padding:ze.size,paddingMD:ze.sizeMD,paddingLG:ze.sizeLG,paddingXL:ze.sizeXL,paddingContentHorizontalLG:ze.sizeLG,paddingContentVerticalLG:ze.sizeMS,paddingContentHorizontal:ze.sizeMS,paddingContentVertical:ze.sizeSM,paddingContentHorizontalSM:ze.size,paddingContentVerticalSM:ze.sizeXS,marginXXS:ze.sizeXXS,marginXS:ze.sizeXS,marginSM:ze.sizeSM,margin:ze.size,marginMD:ze.sizeMD,marginLG:ze.sizeLG,marginXL:ze.sizeXL,marginXXL:ze.sizeXXL,boxShadow:` +'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});me.Z=z},21370:function(St,me,x){"use strict";x.d(me,{Z:function(){return z}});var v=x(64993);function z(P,A){let{generateColorPalettes:W,generateNeutralColorPalettes:X}=A;const{colorSuccess:Y,colorWarning:ie,colorError:ae,colorInfo:se,colorPrimary:Ie,colorBgBase:Be,colorTextBase:Ce}=P,ct=W(Ie),nt=W(Y),Ge=W(ie),at=W(ae),Ye=W(se),rt=X(Be,Ce),Gt=P.colorLink||P.colorInfo,yt=W(Gt);return Object.assign(Object.assign({},rt),{colorPrimaryBg:ct[1],colorPrimaryBgHover:ct[2],colorPrimaryBorder:ct[3],colorPrimaryBorderHover:ct[4],colorPrimaryHover:ct[5],colorPrimary:ct[6],colorPrimaryActive:ct[7],colorPrimaryTextHover:ct[8],colorPrimaryText:ct[9],colorPrimaryTextActive:ct[10],colorSuccessBg:nt[1],colorSuccessBgHover:nt[2],colorSuccessBorder:nt[3],colorSuccessBorderHover:nt[4],colorSuccessHover:nt[4],colorSuccess:nt[6],colorSuccessActive:nt[7],colorSuccessTextHover:nt[8],colorSuccessText:nt[9],colorSuccessTextActive:nt[10],colorErrorBg:at[1],colorErrorBgHover:at[2],colorErrorBorder:at[3],colorErrorBorderHover:at[4],colorErrorHover:at[5],colorError:at[6],colorErrorActive:at[7],colorErrorTextHover:at[8],colorErrorText:at[9],colorErrorTextActive:at[10],colorWarningBg:Ge[1],colorWarningBgHover:Ge[2],colorWarningBorder:Ge[3],colorWarningBorderHover:Ge[4],colorWarningHover:Ge[4],colorWarning:Ge[6],colorWarningActive:Ge[7],colorWarningTextHover:Ge[8],colorWarningText:Ge[9],colorWarningTextActive:Ge[10],colorInfoBg:Ye[1],colorInfoBgHover:Ye[2],colorInfoBorder:Ye[3],colorInfoBorderHover:Ye[4],colorInfoHover:Ye[4],colorInfo:Ye[6],colorInfoActive:Ye[7],colorInfoTextHover:Ye[8],colorInfoText:Ye[9],colorInfoTextActive:Ye[10],colorLinkHover:yt[4],colorLink:yt[6],colorLinkActive:yt[7],colorBgMask:new v.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},43479:function(St,me){"use strict";const x=v=>{const{controlHeight:z}=v;return{controlHeightSM:z*.75,controlHeightXS:z*.5,controlHeightLG:z*1.25}};me.Z=x},83507:function(St,me,x){"use strict";var v=x(14506);const z=P=>{const A=(0,v.Z)(P),W=A.map(Ce=>Ce.size),X=A.map(Ce=>Ce.lineHeight),Y=W[1],ie=W[0],ae=W[2],se=X[1],Ie=X[0],Be=X[2];return{fontSizeSM:ie,fontSize:Y,fontSizeLG:ae,fontSizeXL:W[3],fontSizeHeading1:W[6],fontSizeHeading2:W[5],fontSizeHeading3:W[4],fontSizeHeading4:W[3],fontSizeHeading5:W[2],lineHeight:se,lineHeightLG:Be,lineHeightSM:Ie,fontHeight:Math.round(se*Y),fontHeightLG:Math.round(Be*ae),fontHeightSM:Math.round(Ie*ie),lineHeightHeading1:X[6],lineHeightHeading2:X[5],lineHeightHeading3:X[4],lineHeightHeading4:X[3],lineHeightHeading5:X[2]}};me.Z=z},14506:function(St,me,x){"use strict";x.d(me,{D:function(){return v},Z:function(){return z}});function v(P){return(P+8)/P}function z(P){const A=new Array(10).fill(null).map((W,X)=>{const Y=X-1,ie=P*Math.pow(2.71828,Y/5),ae=X>1?Math.floor(ie):Math.ceil(ie);return Math.floor(ae/2)*2});return A[1]=P,A.map(W=>({size:W,lineHeight:v(W)}))}},57832:function(St,me,x){"use strict";x.d(me,{ZP:function(){return Ce},ID:function(){return se},NJ:function(){return ae}});var v=x(77617),z=x(78600),P="5.14.1",A=P,W=x(92823),X=x(5581),Y=x(18774),ie=function(ct,nt){var Ge={};for(var at in ct)Object.prototype.hasOwnProperty.call(ct,at)&&nt.indexOf(at)<0&&(Ge[at]=ct[at]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,at=Object.getOwnPropertySymbols(ct);Ye{const at=Ge.getDerivativeToken(ct),{override:Ye}=nt,rt=ie(nt,["override"]);let Gt=Object.assign(Object.assign({},at),{override:Ye});return Gt=(0,Y.Z)(Gt),rt&&Object.entries(rt).forEach(yt=>{let[Et,ht]=yt;const{theme:Pe}=ht,et=ie(ht,["theme"]);let Oe=et;Pe&&(Oe=Be(Object.assign(Object.assign({},Gt),et),{override:et},Pe)),Gt[Et]=Oe}),Gt};function Ce(){const{token:ct,hashed:nt,theme:Ge,override:at,cssVar:Ye}=v.useContext(W.Mj),rt=`${A}-${nt||""}`,Gt=Ge||W.uH,[yt,Et,ht]=(0,z.fp)(Gt,[X.Z,ct],{salt:rt,override:at,getComputedToken:Be,formatToken:Y.Z,cssVar:Ye&&{prefix:Ye.prefix,key:Ye.key,unitless:ae,ignore:se,preserve:Ie}});return[Gt,ht,nt?Et:"",yt,Ye]}},18774:function(St,me,x){"use strict";x.d(me,{Z:function(){return Y}});var v=x(64993),z=x(5581);function P(ie){return ie>=0&&ie<=255}function A(ie,ae){const{r:se,g:Ie,b:Be,a:Ce}=new v.C(ie).toRgb();if(Ce<1)return ie;const{r:ct,g:nt,b:Ge}=new v.C(ae).toRgb();for(let at=.01;at<=1;at+=.01){const Ye=Math.round((se-ct*(1-at))/at),rt=Math.round((Ie-nt*(1-at))/at),Gt=Math.round((Be-Ge*(1-at))/at);if(P(Ye)&&P(rt)&&P(Gt))return new v.C({r:Ye,g:rt,b:Gt,a:Math.round(at*100)/100}).toRgbString()}return new v.C({r:se,g:Ie,b:Be,a:1}).toRgbString()}var W=A,X=function(ie,ae){var se={};for(var Ie in ie)Object.prototype.hasOwnProperty.call(ie,Ie)&&ae.indexOf(Ie)<0&&(se[Ie]=ie[Ie]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ie=Object.getOwnPropertySymbols(ie);Be{delete Ie[Gt]});const Be=Object.assign(Object.assign({},se),Ie),Ce=480,ct=576,nt=768,Ge=992,at=1200,Ye=1600;if(Be.motion===!1){const Gt="0s";Be.motionDurationFast=Gt,Be.motionDurationMid=Gt,Be.motionDurationSlow=Gt}return Object.assign(Object.assign(Object.assign({},Be),{colorFillContent:Be.colorFillSecondary,colorFillContentHover:Be.colorFill,colorFillAlter:Be.colorFillQuaternary,colorBgContainerDisabled:Be.colorFillTertiary,colorBorderBg:Be.colorBgContainer,colorSplit:W(Be.colorBorderSecondary,Be.colorBgContainer),colorTextPlaceholder:Be.colorTextQuaternary,colorTextDisabled:Be.colorTextQuaternary,colorTextHeading:Be.colorText,colorTextLabel:Be.colorTextSecondary,colorTextDescription:Be.colorTextTertiary,colorTextLightSolid:Be.colorWhite,colorHighlight:Be.colorError,colorBgTextHover:Be.colorFillSecondary,colorBgTextActive:Be.colorFill,colorIcon:Be.colorTextTertiary,colorIconHover:Be.colorText,colorErrorOutline:W(Be.colorErrorBg,Be.colorBgContainer),colorWarningOutline:W(Be.colorWarningBg,Be.colorBgContainer),fontSizeIcon:Be.fontSizeSM,lineWidthFocus:Be.lineWidth*4,lineWidth:Be.lineWidth,controlOutlineWidth:Be.lineWidth*2,controlInteractiveSize:Be.controlHeight/2,controlItemBgHover:Be.colorFillTertiary,controlItemBgActive:Be.colorPrimaryBg,controlItemBgActiveHover:Be.colorPrimaryBgHover,controlItemBgActiveDisabled:Be.colorFill,controlTmpOutline:Be.colorFillQuaternary,controlOutline:W(Be.colorPrimaryBg,Be.colorBgContainer),lineType:Be.lineType,borderRadius:Be.borderRadius,borderRadiusXS:Be.borderRadiusXS,borderRadiusSM:Be.borderRadiusSM,borderRadiusLG:Be.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:Be.sizeXXS,paddingXS:Be.sizeXS,paddingSM:Be.sizeSM,padding:Be.size,paddingMD:Be.sizeMD,paddingLG:Be.sizeLG,paddingXL:Be.sizeXL,paddingContentHorizontalLG:Be.sizeLG,paddingContentVerticalLG:Be.sizeMS,paddingContentHorizontal:Be.sizeMS,paddingContentVertical:Be.sizeSM,paddingContentHorizontalSM:Be.size,paddingContentVerticalSM:Be.sizeXS,marginXXS:Be.sizeXXS,marginXS:Be.sizeXS,marginSM:Be.sizeSM,margin:Be.size,marginMD:Be.sizeMD,marginLG:Be.sizeLG,marginXL:Be.sizeXL,marginXXL:Be.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -7305,10 +7300,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:Ie,screenXSMin:Ie,screenXSMax:ct-1,screenSM:ct,screenSMMin:ct,screenSMMax:At-1,screenMD:At,screenMDMin:At,screenMDMax:rt-1,screenLG:rt,screenLGMin:rt,screenLGMax:It-1,screenXL:It,screenXLMin:It,screenXLMax:Ot-1,screenXXL:Ot,screenXXLMin:Ot,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new u.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new u.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new u.C("rgba(0, 0, 0, 0.09)").toRgbString()} + `,screenXS:Ce,screenXSMin:Ce,screenXSMax:ct-1,screenSM:ct,screenSMMin:ct,screenSMMax:nt-1,screenMD:nt,screenMDMin:nt,screenMDMax:Ge-1,screenLG:Ge,screenLGMin:Ge,screenLGMax:at-1,screenXL:at,screenXLMin:at,screenXLMax:Ye-1,screenXXL:Ye,screenXXLMin:Ye,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new v.C("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new v.C("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new v.C("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -7325,27 +7320,27 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,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)"}),ie)}},79263:function(c,g,l){"use strict";l.d(g,{ZP:function(){return on},I$:function(){return Ca},bk:function(){return Hr}});var u=l(77617),D=l(78600),b=l(46142),x=l(58798),y=l(91110),w=l(57832),a=l(61577),S=l(22946),I=l(16169),N=l(72597),ie=l(26581),ze=l(3711),ct=(0,S.Z)(function ai(){(0,a.Z)(this,ai)});function At(ai,gt,Zr){return gt=(0,ie.Z)(gt),(0,I.Z)(ai,(0,N.Z)()?Reflect.construct(gt,Zr||[],(0,ie.Z)(ai).constructor):gt.apply(ai,Zr))}let rt=function(ai){(0,ze.Z)(gt,ai);function gt(Zr){var Ht;return(0,a.Z)(this,gt),Ht=At(this,gt),Ht.result=0,Zr instanceof gt?Ht.result=Zr.result:typeof Zr=="number"&&(Ht.result=Zr),Ht}return(0,S.Z)(gt,[{key:"add",value:function(Ht){return Ht instanceof gt?this.result+=Ht.result:typeof Ht=="number"&&(this.result+=Ht),this}},{key:"sub",value:function(Ht){return Ht instanceof gt?this.result-=Ht.result:typeof Ht=="number"&&(this.result-=Ht),this}},{key:"mul",value:function(Ht){return Ht instanceof gt?this.result*=Ht.result:typeof Ht=="number"&&(this.result*=Ht),this}},{key:"div",value:function(Ht){return Ht instanceof gt?this.result/=Ht.result:typeof Ht=="number"&&(this.result/=Ht),this}},{key:"equal",value:function(){return this.result}}]),gt}(ct);function It(ai,gt,Zr){return gt=(0,ie.Z)(gt),(0,I.Z)(ai,(0,N.Z)()?Reflect.construct(gt,Zr||[],(0,ie.Z)(ai).constructor):gt.apply(ai,Zr))}const Ot="CALC_UNIT";function wn(ai){return typeof ai=="number"?`${ai}${Ot}`:ai}let Hs=function(ai){(0,ze.Z)(gt,ai);function gt(Zr){var Ht;return(0,a.Z)(this,gt),Ht=It(this,gt),Ht.result="",Zr instanceof gt?Ht.result=`(${Zr.result})`:typeof Zr=="number"?Ht.result=wn(Zr):typeof Zr=="string"&&(Ht.result=Zr),Ht}return(0,S.Z)(gt,[{key:"add",value:function(Ht){return Ht instanceof gt?this.result=`${this.result} + ${Ht.getResult()}`:(typeof Ht=="number"||typeof Ht=="string")&&(this.result=`${this.result} + ${wn(Ht)}`),this.lowPriority=!0,this}},{key:"sub",value:function(Ht){return Ht instanceof gt?this.result=`${this.result} - ${Ht.getResult()}`:(typeof Ht=="number"||typeof Ht=="string")&&(this.result=`${this.result} - ${wn(Ht)}`),this.lowPriority=!0,this}},{key:"mul",value:function(Ht){return this.lowPriority&&(this.result=`(${this.result})`),Ht instanceof gt?this.result=`${this.result} * ${Ht.getResult(!0)}`:(typeof Ht=="number"||typeof Ht=="string")&&(this.result=`${this.result} * ${Ht}`),this.lowPriority=!1,this}},{key:"div",value:function(Ht){return this.lowPriority&&(this.result=`(${this.result})`),Ht instanceof gt?this.result=`${this.result} / ${Ht.getResult(!0)}`:(typeof Ht=="number"||typeof Ht=="string")&&(this.result=`${this.result} / ${Ht}`),this.lowPriority=!1,this}},{key:"getResult",value:function(Ht){return this.lowPriority||Ht?`(${this.result})`:this.result}},{key:"equal",value:function(Ht){const{unit:Zs=!0}=Ht||{},oi=new RegExp(`${Ot}`,"g");return this.result=this.result.replace(oi,Zs?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}]),gt}(ct);var Jr=ai=>{const gt=ai==="css"?Hs:rt;return Zr=>new gt(Zr)};function Yn(ai){return ai==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var gt=arguments.length,Zr=new Array(gt),Ht=0;Ht(0,D.bf)(Zs)).join(",")})`},min:function(){for(var gt=arguments.length,Zr=new Array(gt),Ht=0;Ht(0,D.bf)(Zs)).join(",")})`}}}var Lt=l(90882),_n=l(35198);const Mt=(ai,gt,Zr)=>{var Ht;return typeof Zr=="function"?Zr((0,Lt.TS)(gt,(Ht=gt[ai])!==null&&Ht!==void 0?Ht:{})):Zr!=null?Zr:{}},Bt=(ai,gt,Zr,Ht)=>{const Zs=Object.assign({},gt[ai]);if(Ht!=null&&Ht.deprecatedTokens){const{deprecatedTokens:Pa}=Ht;Pa.forEach(Aa=>{let[Pg,Ug]=Aa;var e0;(Zs!=null&&Zs[Pg]||Zs!=null&&Zs[Ug])&&((e0=Zs[Ug])!==null&&e0!==void 0||(Zs[Ug]=Zs==null?void 0:Zs[Pg]))})}const oi=Object.assign(Object.assign({},Zr),Zs);return Object.keys(oi).forEach(Pa=>{oi[Pa]===gt[Pa]&&delete oi[Pa]}),oi},Rt=(ai,gt)=>`${[gt,ai.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function on(ai,gt,Zr){let Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const Zs=Array.isArray(ai)?ai:[ai,ai],[oi]=Zs,Pa=Zs.join("-");return function(Aa){let Pg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Aa;const[Ug,e0,H0,X0,d0]=(0,w.ZP)(),{getPrefixCls:jv,iconPrefixCls:Lv,csp:Je}=(0,u.useContext)(x.E_),k0=jv(),G0=d0?"css":"js",iv=Jr(G0),{max:u0,min:B1}=Yn(G0),Dg={theme:Ug,token:X0,hashId:H0,nonce:()=>Je==null?void 0:Je.nonce,clientOnly:Ht.clientOnly,order:Ht.order||-999};return(0,D.xy)(Object.assign(Object.assign({},Dg),{clientOnly:!1,path:["Shared",k0]}),()=>[{"&":(0,y.Lx)(X0)}]),(0,_n.Z)(Lv,Je),[(0,D.xy)(Object.assign(Object.assign({},Dg),{path:[Pa,Aa,Lv]}),()=>{if(Ht.injectStyle===!1)return[];const{token:mu,flush:Ag}=(0,Lt.ZP)(X0),c0=Mt(oi,e0,Zr),L0=`.${Aa}`,$0=Bt(oi,e0,c0,{deprecatedTokens:Ht.deprecatedTokens});d0&&Object.keys(c0).forEach(uu=>{c0[uu]=`var(${(0,D.ks)(uu,Rt(oi,d0.prefix))})`});const cv=(0,Lt.TS)(mu,{componentCls:L0,prefixCls:Aa,iconCls:`.${Lv}`,antCls:`.${k0}`,calc:iv,max:u0,min:B1},d0?c0:$0),Gg=gt(cv,{hashId:H0,prefixCls:Aa,rootPrefixCls:k0,iconPrefixCls:Lv});return Ag(oi,$0),[Ht.resetStyle===!1?null:(0,y.du)(cv,Aa,Pg),Gg]}),H0]}}const Hr=(ai,gt,Zr,Ht)=>{const Zs=on(ai,gt,Zr,Object.assign({resetStyle:!1,order:-998},Ht));return Pa=>{let{prefixCls:Aa,rootCls:Pg=Aa}=Pa;return Zs(Aa,Pg),null}},vn=(ai,gt,Zr)=>{function Ht(Ug){return`${ai}${Ug.slice(0,1).toUpperCase()}${Ug.slice(1)}`}const{unitless:Zs={},injectStyle:oi=!0}=Zr!=null?Zr:{},Pa={[Ht("zIndexPopup")]:!0};Object.keys(Zs).forEach(Ug=>{Pa[Ht(Ug)]=Zs[Ug]});const Aa=Ug=>{let{rootCls:e0,cssVar:H0}=Ug;const[,X0]=(0,w.ZP)();return(0,D.CI)({path:[ai],prefix:H0.prefix,key:H0==null?void 0:H0.key,unitless:Object.assign(Object.assign({},w.NJ),Pa),ignore:w.ID,token:X0,scope:e0},()=>{const d0=Mt(ai,X0,gt),jv=Bt(ai,X0,d0,{deprecatedTokens:Zr==null?void 0:Zr.deprecatedTokens});return Object.keys(d0).forEach(Lv=>{jv[Ht(Lv)]=jv[Lv],delete jv[Lv]}),jv}),null};return Ug=>{const[,,,,e0]=(0,w.ZP)();return[H0=>oi&&e0?u.createElement(u.Fragment,null,u.createElement(Aa,{rootCls:Ug,cssVar:e0,component:ai}),H0):H0,e0==null?void 0:e0.key]}},Ca=(ai,gt,Zr,Ht)=>{const Zs=on(ai,gt,Zr,Ht),oi=vn(Array.isArray(ai)?ai[0]:ai,Zr,Ht);return function(Pa){let Aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pa;const[,Pg]=Zs(Pa,Aa),[Ug,e0]=oi(Aa);return[Ug,Pg,e0]}}},90882:function(c,g,l){"use strict";l.d(g,{TS:function(){return b}});const u=typeof CSSINJS_STATISTIC!="undefined";let D=!0;function b(){for(var S=arguments.length,I=new Array(S),N=0;N{Object.keys(ze).forEach(ct=>{Object.defineProperty(ie,ct,{configurable:!0,enumerable:!0,get:()=>ze[ct]})})}),D=!0,ie}const x={},y={};function w(){}const a=S=>{let I,N=S,ie=w;return u&&typeof Proxy!="undefined"&&(I=new Set,N=new Proxy(S,{get(ze,Ie){return D&&I.add(Ie),ze[Ie]}}),ie=(ze,Ie)=>{var ct;x[ze]={global:Array.from(I),component:Object.assign(Object.assign({},(ct=x[ze])===null||ct===void 0?void 0:ct.component),Ie)}}),{token:N,keys:I,flush:ie}};g.ZP=a},35198:function(c,g,l){"use strict";var u=l(78600),D=l(91110),b=l(57832);const x=(y,w)=>{const[a,S]=(0,b.ZP)();return(0,u.xy)({theme:a,token:S,hashId:"",path:["ant-design-icons",y],nonce:()=>w==null?void 0:w.nonce},()=>[{[`.${y}`]:Object.assign(Object.assign({},(0,D.Ro)()),{[`.${y} .${y}-icon`]:{display:"block"}})}])};g.Z=x},3773:function(c,g,l){"use strict";l.d(g,{Z:function(){return Zs}});var u=l(77617),D=l(92310),b=l.n(D),x=l(23882),y=l(89308),w=l(40870),a=l(12149),S=l(81420),I=l(20612),N=l(80074),ie=l(13150),ze=l(58798),Ie=l(55449),ct=l(57832),At=l(91110),rt=l(19162),It=l(50489),Ot=l(42095);function wn(oi,Pa){return Ot.i.reduce((Aa,Pg)=>{const Ug=oi[`${Pg}1`],e0=oi[`${Pg}3`],H0=oi[`${Pg}6`],X0=oi[`${Pg}7`];return Object.assign(Object.assign({},Aa),Pa(Pg,{lightColor:Ug,lightBorderColor:e0,darkColor:H0,textColor:X0}))},{})}var Hs=l(90882),jr=l(79263),Jr=l(78600),Yn=l(70157);const Lt=oi=>{const{componentCls:Pa,tooltipMaxWidth:Aa,tooltipColor:Pg,tooltipBg:Ug,tooltipBorderRadius:e0,zIndexPopup:H0,controlHeight:X0,boxShadowSecondary:d0,paddingSM:jv,paddingXS:Lv}=oi;return[{[Pa]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(oi)),{position:"absolute",zIndex:H0,display:"block",width:"max-content",maxWidth:Aa,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Ug,[`${Pa}-inner`]:{minWidth:X0,minHeight:X0,padding:`${(0,Jr.bf)(oi.calc(jv).div(2).equal())} ${(0,Jr.bf)(Lv)}`,color:Pg,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Ug,borderRadius:e0,boxShadow:d0,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Pa}-inner`]:{borderRadius:oi.min(e0,It.qN)}},[`${Pa}-content`]:{position:"relative"}}),wn(oi,(Je,k0)=>{let{darkColor:G0}=k0;return{[`&${Pa}-${Je}`]:{[`${Pa}-inner`]:{backgroundColor:G0},[`${Pa}-arrow`]:{"--antd-arrow-background-color":G0}}}})),{"&-rtl":{direction:"rtl"}})},(0,It.ZP)(oi,"var(--antd-arrow-background-color)"),{[`${Pa}-pure`]:{position:"relative",maxWidth:"none",margin:oi.sizePopupArrow}}]},_n=oi=>Object.assign(Object.assign({zIndexPopup:oi.zIndexPopupBase+70},(0,It.wZ)({contentRadius:oi.borderRadius,limitVerticalRadius:!0})),(0,Yn.w)((0,Hs.TS)(oi,{borderRadiusOuter:Math.min(oi.borderRadiusOuter,4)})));var Mt=function(oi){let Pa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,jr.I$)("Tooltip",Pg=>{const{borderRadius:Ug,colorTextLightSolid:e0,colorBgSpotlight:H0}=Pg,X0=(0,Hs.TS)(Pg,{tooltipMaxWidth:250,tooltipColor:e0,tooltipBorderRadius:Ug,tooltipBg:H0});return[Lt(X0),(0,rt._y)(Pg,"zoom-big-fast")]},_n,{resetStyle:!1,injectStyle:Pa})(oi)},Bt=l(49397);const Rt=Ot.i.map(oi=>`${oi}-inverse`),on=null;function Hr(oi){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Bt.Z)(Rt),(0,Bt.Z)(Ot.i)).includes(oi):Ot.i.includes(oi)}function vn(oi){return on.includes(oi)}function Ca(oi,Pa){const Aa=Hr(Pa),Pg=b()({[`${oi}-${Pa}`]:Pa&&Aa}),Ug={},e0={};return Pa&&!Aa&&(Ug.background=Pa,e0["--antd-arrow-background-color"]=Pa),{className:Pg,overlayStyle:Ug,arrowStyle:e0}}var gt=oi=>{const{prefixCls:Pa,className:Aa,placement:Pg="top",title:Ug,color:e0,overlayInnerStyle:H0}=oi,{getPrefixCls:X0}=u.useContext(ze.E_),d0=X0("tooltip",Pa),[jv,Lv,Je]=Mt(d0),k0=Ca(d0,e0),G0=k0.arrowStyle,iv=Object.assign(Object.assign({},H0),k0.overlayStyle),u0=b()(Lv,Je,d0,`${d0}-pure`,`${d0}-placement-${Pg}`,Aa,k0.className);return jv(u.createElement("div",{className:u0,style:G0},u.createElement("div",{className:`${d0}-arrow`}),u.createElement(x.G,Object.assign({},oi,{className:Lv,prefixCls:d0,overlayInnerStyle:iv}),Ug)))},Zr=function(oi,Pa){var Aa={};for(var Pg in oi)Object.prototype.hasOwnProperty.call(oi,Pg)&&Pa.indexOf(Pg)<0&&(Aa[Pg]=oi[Pg]);if(oi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ug=0,Pg=Object.getOwnPropertySymbols(oi);Ug{var Aa,Pg;const{prefixCls:Ug,openClassName:e0,getTooltipContainer:H0,overlayClassName:X0,color:d0,overlayInnerStyle:jv,children:Lv,afterOpenChange:Je,afterVisibleChange:k0,destroyTooltipOnHide:G0,arrow:iv=!0,title:u0,overlay:B1,builtinPlacements:Dg,arrowPointAtCenter:zo=!1,autoAdjustOverflow:mu=!0}=oi,Ag=!!iv,[,c0]=(0,ct.ZP)(),{getPopupContainer:L0,getPrefixCls:$0,direction:cv}=u.useContext(ze.E_),Gg=(0,N.ln)("Tooltip"),uu=u.useRef(null),Gs=()=>{var g0;(g0=uu.current)===null||g0===void 0||g0.forceAlign()};u.useImperativeHandle(Pa,()=>({forceAlign:Gs,forcePopupAlign:()=>{Gg.deprecated(!1,"forcePopupAlign","forceAlign"),Gs()}}));const[Ia,lu]=(0,y.Z)(!1,{value:(Aa=oi.open)!==null&&Aa!==void 0?Aa:oi.visible,defaultValue:(Pg=oi.defaultOpen)!==null&&Pg!==void 0?Pg:oi.defaultVisible}),_h=!u0&&!B1&&u0!==0,Kr=g0=>{var qg,Xg;lu(_h?!1:g0),_h||((qg=oi.onOpenChange)===null||qg===void 0||qg.call(oi,g0),(Xg=oi.onVisibleChange)===null||Xg===void 0||Xg.call(oi,g0))},fr=u.useMemo(()=>{var g0,qg;let Xg=zo;return typeof iv=="object"&&(Xg=(qg=(g0=iv.pointAtCenter)!==null&&g0!==void 0?g0:iv.arrowPointAtCenter)!==null&&qg!==void 0?qg:zo),Dg||(0,S.Z)({arrowPointAtCenter:Xg,autoAdjustOverflow:mu,arrowWidth:Ag?c0.sizePopupArrow:0,borderRadius:c0.borderRadius,offset:c0.marginXXS,visibleFirst:!0})},[zo,iv,Dg,c0]),ri=u.useMemo(()=>u0===0?u0:B1||u0||"",[B1,u0]),Ra=u.createElement(Ie.BR,null,typeof ri=="function"?ri():ri),{getPopupContainer:Sg,placement:Jg="top",mouseEnterDelay:j0=.1,mouseLeaveDelay:Wo=.1,overlayStyle:Mo,rootClassName:qr}=oi,On=Zr(oi,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),rn=$0("tooltip",Ug),ui=$0(),ya=oi["data-popover-inject"];let gd=Ia;!("open"in oi)&&!("visible"in oi)&&_h&&(gd=!1);const Su=(0,I.l$)(Lv)&&!(0,I.M2)(Lv)?Lv:u.createElement("span",null,Lv),xu=Su.props,xa=!xu.className||typeof xu.className=="string"?b()(xu.className,e0||`${rn}-open`):xu.className,[Td,jg,Wa]=Mt(rn,!ya),tv=Ca(rn,d0),Bs=tv.arrowStyle,Sa=Object.assign(Object.assign({},jv),tv.overlayStyle),$a=b()(X0,{[`${rn}-rtl`]:cv==="rtl"},tv.className,qr,jg,Wa),[Bd,Bg]=(0,w.Cn)("Tooltip",On.zIndex),Og=u.createElement(x.Z,Object.assign({},On,{zIndex:Bd,showArrow:Ag,placement:Jg,mouseEnterDelay:j0,mouseLeaveDelay:Wo,prefixCls:rn,overlayClassName:$a,overlayStyle:Object.assign(Object.assign({},Bs),Mo),getTooltipContainer:Sg||H0||L0,ref:uu,builtinPlacements:fr,overlay:Ra,visible:gd,onVisibleChange:Kr,afterVisibleChange:Je!=null?Je:k0,overlayInnerStyle:Sa,arrowContent:u.createElement("span",{className:`${rn}-arrow-content`}),motion:{motionName:(0,a.m)(ui,"zoom-big-fast",oi.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!G0}),gd?(0,I.Tm)(Su,{className:xa}):Su);return Td(u.createElement(ie.Z.Provider,{value:Bg},Og))});Ht._InternalPanelDoNotUseOrYouWillBeFired=gt;var Zs=Ht},64316:function(c,g,l){"use strict";l.d(g,{Z:function(){return Ia}});var u=l(77617),D=l(54131),b=l(79384),x=l(13255),y=l(35372),w=l(56348),a=l(43403),S=l(35593),I=l(92310),N=l.n(I),ie=l(64693),ze=l(89308),Ie=l(33890);function ct(lu){var _h=window.innerWidth||document.documentElement.clientWidth,Kr=window.innerHeight||document.documentElement.clientHeight,fr=lu.getBoundingClientRect(),ri=fr.top,Ra=fr.right,Sg=fr.bottom,Jg=fr.left;return ri>=0&&Jg>=0&&Ra<=_h&&Sg<=Kr}function At(lu,_h,Kr){var fr;return(fr=Kr!=null?Kr:_h)!==null&&fr!==void 0?fr:lu===null?"center":"bottom"}function rt(lu,_h,Kr,fr){var ri=(0,u.useState)(void 0),Ra=(0,y.Z)(ri,2),Sg=Ra[0],Jg=Ra[1];(0,ie.Z)(function(){var ya=typeof lu=="function"?lu():lu;Jg(ya||null)});var j0=(0,u.useState)(null),Wo=(0,y.Z)(j0,2),Mo=Wo[0],qr=Wo[1],On=(0,Ie.Z)(function(){if(Sg){!ct(Sg)&&_h&&Sg.scrollIntoView(fr);var ya=Sg.getBoundingClientRect(),gd=ya.left,Su=ya.top,xu=ya.width,xa=ya.height,Td={left:gd,top:Su,width:xu,height:xa,radius:0};qr(function(jg){return JSON.stringify(jg)!==JSON.stringify(Td)?Td:jg})}else qr(null)}),rn=function(gd){var Su;return(Su=Array.isArray(Kr==null?void 0:Kr.offset)?Kr==null?void 0:Kr.offset[gd]:Kr==null?void 0:Kr.offset)!==null&&Su!==void 0?Su:6};(0,ie.Z)(function(){return On(),window.addEventListener("resize",On),function(){window.removeEventListener("resize",On)}},[Sg,_h,On]);var ui=(0,u.useMemo)(function(){if(!Mo)return Mo;var ya=rn(0),gd=rn(1),Su=(Kr==null?void 0:Kr.radius)||2;return{left:Mo.left-ya,top:Mo.top-gd,width:Mo.width+ya*2,height:Mo.height+gd*2,radius:Su}},[Mo,Kr]);return[ui,Sg]}var It=l(30411),Ot={fill:"transparent",pointerEvents:"auto"},wn=function(_h){var Kr=_h.prefixCls,fr=_h.rootClassName,ri=_h.pos,Ra=_h.showMask,Sg=_h.style,Jg=Sg===void 0?{}:Sg,j0=_h.fill,Wo=j0===void 0?"rgba(0,0,0,0.5)":j0,Mo=_h.open,qr=_h.animated,On=_h.zIndex,rn=_h.disabledInteraction,ui=(0,It.Z)(),ya="".concat(Kr,"-mask-").concat(ui),gd=(0,x.Z)(qr)==="object"?qr==null?void 0:qr.placeholder:qr,Su=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xu=Su?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return u.createElement(a.Z,{open:Mo,autoLock:!0},u.createElement("div",{className:N()("".concat(Kr,"-mask"),fr),style:(0,D.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:On,pointerEvents:ri&&!rn?"none":"auto"},Jg)},Ra?u.createElement("svg",{style:{width:"100%",height:"100%"}},u.createElement("defs",null,u.createElement("mask",{id:ya},u.createElement("rect",(0,b.Z)({x:"0",y:"0"},xu,{fill:"white"})),ri&&u.createElement("rect",{x:ri.left,y:ri.top,rx:ri.radius,width:ri.width,height:ri.height,fill:"black",className:gd?"".concat(Kr,"-placeholder-animated"):""}))),u.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Wo,mask:"url(#".concat(ya,")")}),ri&&u.createElement(u.Fragment,null,u.createElement("rect",(0,b.Z)({},Ot,{x:"0",y:"0",width:"100%",height:ri.top})),u.createElement("rect",(0,b.Z)({},Ot,{x:"0",y:"0",width:ri.left,height:"100%"})),u.createElement("rect",(0,b.Z)({},Ot,{x:"0",y:ri.top+ri.height,width:"100%",height:"calc(100vh - ".concat(ri.top+ri.height,"px)")})),u.createElement("rect",(0,b.Z)({},Ot,{x:ri.left+ri.width,y:"0",width:"calc(100vw - ".concat(ri.left+ri.width,"px)"),height:"100%"})))):null))},Hs=wn,jr={adjustX:1,adjustY:1},Jr=[0,0],Yn={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Lt(){var lu=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_h={};return Object.keys(Yn).forEach(function(Kr){_h[Kr]=(0,D.Z)((0,D.Z)({},Yn[Kr]),{},{autoArrow:lu,targetOffset:Jr})}),_h}var _n=Lt(),Mt=l(49397);function Bt(lu){var _h=lu.prefixCls,Kr=lu.current,fr=lu.total,ri=lu.title,Ra=lu.description,Sg=lu.onClose,Jg=lu.onPrev,j0=lu.onNext,Wo=lu.onFinish,Mo=lu.className,qr=lu.closeIcon,On=qr!==!1&&qr!==null,rn=qr!==void 0&&qr!==!0?qr:u.createElement("span",{className:"".concat(_h,"-close-x")},"\xD7");return u.createElement("div",{className:N()("".concat(_h,"-content"),Mo)},u.createElement("div",{className:"".concat(_h,"-inner")},On&&u.createElement("button",{type:"button",onClick:Sg,"aria-label":"Close",className:"".concat(_h,"-close")},rn),u.createElement("div",{className:"".concat(_h,"-header")},u.createElement("div",{className:"".concat(_h,"-title")},ri)),u.createElement("div",{className:"".concat(_h,"-description")},Ra),u.createElement("div",{className:"".concat(_h,"-footer")},u.createElement("div",{className:"".concat(_h,"-sliders")},fr>1?(0,Mt.Z)(Array.from({length:fr}).keys()).map(function(ui,ya){return u.createElement("span",{key:ui,className:ya===Kr?"active":""})}):null),u.createElement("div",{className:"".concat(_h,"-buttons")},Kr!==0?u.createElement("button",{className:"".concat(_h,"-prev-btn"),onClick:Jg},"Prev"):null,Kr===fr-1?u.createElement("button",{className:"".concat(_h,"-finish-btn"),onClick:Wo},"Finish"):u.createElement("button",{className:"".concat(_h,"-next-btn"),onClick:j0},"Next")))))}var Rt=function(_h){var Kr=_h.current,fr=_h.renderPanel;return u.createElement(u.Fragment,null,typeof fr=="function"?fr(_h,Kr):u.createElement(Bt,_h))},on=Rt,Hr=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","builtinPlacements","disabledInteraction"],vn={left:"50%",top:"50%",width:1,height:1},Ca={block:"center",inline:"center"},ai=function(_h){var Kr=_h.prefixCls,fr=Kr===void 0?"rc-tour":Kr,ri=_h.steps,Ra=ri===void 0?[]:ri,Sg=_h.defaultCurrent,Jg=_h.current,j0=_h.onChange,Wo=_h.onClose,Mo=_h.onFinish,qr=_h.open,On=_h.mask,rn=On===void 0?!0:On,ui=_h.arrow,ya=ui===void 0?!0:ui,gd=_h.rootClassName,Su=_h.placement,xu=_h.renderPanel,xa=_h.gap,Td=_h.animated,jg=_h.scrollIntoViewOptions,Wa=jg===void 0?Ca:jg,tv=_h.zIndex,Bs=tv===void 0?1001:tv,Sa=_h.closeIcon,$a=_h.builtinPlacements,Bd=_h.disabledInteraction,Bg=(0,w.Z)(_h,Hr),Og=u.useRef(),g0=(0,ze.Z)(0,{value:Jg,defaultValue:Sg}),qg=(0,y.Z)(g0,2),Xg=qg[0],A0=qg[1],nv=(0,ze.Z)(void 0,{value:qr,postState:function(qt){return Xg<0||Xg>=Ra.length?!1:qt!=null?qt:!0}}),t0=(0,y.Z)(nv,2),n0=t0[0],u1=t0[1],Eg=u.useRef(n0);(0,ie.Z)(function(){n0&&!Eg.current&&A0(0),Eg.current=n0},[n0]);var a1=Ra[Xg]||{},Hg=a1.target,Gd=a1.placement,h0=a1.style,lv=a1.arrow,su=a1.className,hu=a1.mask,ev=a1.scrollIntoViewOptions,sv=ev===void 0?Ca:ev,yv=a1.closeIcon,$v=n0&&(hu!=null?hu:rn),E0=yv!=null?yv:Sa,E1=sv!=null?sv:Wa,$1=rt(Hg,qr,xa,E1),l0=(0,y.Z)($1,2),z0=l0[0],W0=l0[1],Rv=At(W0,Su,Gd),R0=W0?typeof lv=="undefined"?ya:lv:!1,gv=(0,x.Z)(R0)==="object"?R0.pointAtCenter:!1;(0,ie.Z)(function(){var No;(No=Og.current)===null||No===void 0||No.forceAlign()},[gv,Xg]);var G1=function(qt){A0(qt),j0==null||j0(qt)},xy=(0,u.useMemo)(function(){return $a?typeof $a=="function"?$a({arrowPointAtCenter:gv}):$a:Lt(gv)},[$a,gv]);if(W0===void 0)return null;var Dy=function(){u1(!1),Wo==null||Wo(Xg)},H1=function(){return u.createElement(on,(0,b.Z)({arrow:R0,key:"content",prefixCls:fr,total:Ra.length,renderPanel:xu,onPrev:function(){G1(Xg-1)},onNext:function(){G1(Xg+1)},onClose:Dy,current:Xg,onFinish:function(){Dy(),Mo==null||Mo()},closeIcon:E0},Ra[Xg]))},xd=typeof $v=="boolean"?$v:!!$v,Yg=typeof $v=="boolean"?void 0:$v,r0=function(qt){return qt||W0||document.body};return u.createElement(u.Fragment,null,u.createElement(Hs,{zIndex:Bs,prefixCls:fr,pos:z0,showMask:xd,style:Yg==null?void 0:Yg.style,fill:Yg==null?void 0:Yg.color,open:n0,animated:Td,rootClassName:gd,disabledInteraction:Bd}),u.createElement(S.Z,(0,b.Z)({},Bg,{builtinPlacements:xy,ref:Og,popupStyle:h0,popupPlacement:Rv,popupVisible:n0,popupClassName:N()(gd,su),prefixCls:fr,popup:H1,forceRender:!1,destroyPopupOnHide:!0,zIndex:Bs,getTriggerDOMNode:r0,arrow:!!R0}),u.createElement(a.Z,{open:n0,autoLock:!0},u.createElement("div",{className:N()(gd,"".concat(fr,"-target-placeholder")),style:(0,D.Z)((0,D.Z)({},z0||vn),{},{position:"fixed",pointerEvents:"none"})}))))},gt=ai,Zr=gt,Ht=l(40870),Zs=l(81420),oi=l(13150),Pa=l(58798),Aa=l(57832),Pg=l(4531),Ug=l(67445),e0=l(99622),H0=l(50700),X0=l(209);function d0(lu){return lu!=null}var Lv=lu=>{var _h,Kr;const{stepProps:fr,current:ri,type:Ra,closeIcon:Sg,indicatorsRender:Jg}=lu,{prefixCls:j0,total:Wo=1,title:Mo,onClose:qr,onPrev:On,onNext:rn,onFinish:ui,cover:ya,description:gd,nextButtonProps:Su,prevButtonProps:xu,type:xa,closeIcon:Td}=fr,jg=xa!=null?xa:Ra,Wa=Td!=null?Td:Sg,tv=Wa!==!1&&Wa!==null,[Bs,Sa]=(0,Ug.Z)(tv,Wa,n0=>u.createElement("span",{onClick:qr,"aria-label":"Close",className:`${j0}-close`},n0),u.createElement(Pg.Z,{className:`${j0}-close-icon`}),!0),$a=ri===Wo-1,Bd=()=>{var n0;On==null||On(),(n0=xu==null?void 0:xu.onClick)===null||n0===void 0||n0.call(xu)},Bg=()=>{var n0;$a?ui==null||ui():rn==null||rn(),(n0=Su==null?void 0:Su.onClick)===null||n0===void 0||n0.call(Su)},Og=d0(Mo)?u.createElement("div",{className:`${j0}-header`},u.createElement("div",{className:`${j0}-title`},Mo)):null,g0=d0(gd)?u.createElement("div",{className:`${j0}-description`},gd):null,qg=d0(ya)?u.createElement("div",{className:`${j0}-cover`},ya):null;let Xg;Jg?Xg=Jg(ri,Wo):Xg=(0,Mt.Z)(Array.from({length:Wo}).keys()).map((n0,u1)=>u.createElement("span",{key:n0,className:N()(u1===ri&&`${j0}-indicator-active`,`${j0}-indicator`)}));const A0=jg==="primary"?"default":"primary",nv={type:"default",ghost:jg==="primary"},[t0]=(0,H0.Z)("Tour",X0.Z.Tour);return u.createElement("div",{className:`${j0}-content`},u.createElement("div",{className:`${j0}-inner`},Bs&&Sa,qg,Og,g0,u.createElement("div",{className:`${j0}-footer`},Wo>1&&u.createElement("div",{className:`${j0}-indicators`},Xg),u.createElement("div",{className:`${j0}-buttons`},ri!==0?u.createElement(e0.ZP,Object.assign({},nv,xu,{onClick:Bd,size:"small",className:N()(`${j0}-prev-btn`,xu==null?void 0:xu.className)}),(_h=xu==null?void 0:xu.children)!==null&&_h!==void 0?_h:t0==null?void 0:t0.Previous):null,u.createElement(e0.ZP,Object.assign({type:A0},Su,{onClick:Bg,size:"small",className:N()(`${j0}-next-btn`,Su==null?void 0:Su.className)}),(Kr=Su==null?void 0:Su.children)!==null&&Kr!==void 0?Kr:$a?t0==null?void 0:t0.Finish:t0==null?void 0:t0.Next)))))},Je=l(76429),k0=l(64993),G0=l(91110),iv=l(50489),u0=l(79263),B1=l(90882),Dg=l(70157),zo=l(78600);const mu=lu=>{const{componentCls:_h,lineHeight:Kr,padding:fr,paddingXS:ri,borderRadius:Ra,borderRadiusXS:Sg,colorPrimary:Jg,colorText:j0,colorFill:Wo,indicatorHeight:Mo,indicatorWidth:qr,boxShadowTertiary:On,tourZIndexPopup:rn,fontSize:ui,colorBgElevated:ya,fontWeightStrong:gd,marginXS:Su,colorTextLightSolid:xu,tourBorderRadius:xa,colorWhite:Td,primaryNextBtnHoverBg:jg,closeBtnSize:Wa,motionDurationSlow:tv,antCls:Bs,primaryPrevBtnBg:Sa}=lu;return[{[_h]:Object.assign(Object.assign({},(0,G0.Wf)(lu)),{color:j0,position:"absolute",zIndex:rn,display:"block",visibility:"visible",fontSize:ui,lineHeight:Kr,width:520,"--antd-arrow-background-color":ya,"&-pure":{maxWidth:"100%",position:"relative"},[`&${_h}-hidden`]:{display:"none"},[`${_h}-content`]:{position:"relative"},[`${_h}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:xa,boxShadow:On,position:"relative",backgroundColor:ya,border:"none",backgroundClip:"padding-box",[`${_h}-close`]:{position:"absolute",top:fr,insetInlineEnd:fr,color:lu.colorIcon,outline:"none",width:Wa,height:Wa,borderRadius:lu.borderRadiusSM,transition:`background-color ${lu.motionDurationMid}, color ${lu.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:lu.colorIconHover,backgroundColor:lu.closeBtnHoverBg}},[`${_h}-cover`]:{textAlign:"center",padding:`${(0,zo.bf)(lu.calc(fr).add(Wa).add(ri).equal())} ${(0,zo.bf)(fr)} 0`,img:{width:"100%"}},[`${_h}-header`]:{padding:`${(0,zo.bf)(fr)} ${(0,zo.bf)(fr)} ${(0,zo.bf)(ri)}`,[`${_h}-title`]:{lineHeight:Kr,fontSize:ui,fontWeight:gd}},[`${_h}-description`]:{padding:`0 ${(0,zo.bf)(fr)}`,lineHeight:Kr,wordWrap:"break-word"},[`${_h}-footer`]:{padding:`${(0,zo.bf)(ri)} ${(0,zo.bf)(fr)} ${(0,zo.bf)(fr)}`,textAlign:"end",borderRadius:`0 0 ${(0,zo.bf)(Sg)} ${(0,zo.bf)(Sg)}`,display:"flex",[`${_h}-indicators`]:{display:"inline-block",[`${_h}-indicator`]:{width:qr,height:Mo,display:"inline-block",borderRadius:"50%",background:Wo,"&:not(:last-child)":{marginInlineEnd:Mo},"&-active":{background:Jg}}},[`${_h}-buttons`]:{marginInlineStart:"auto",[`${Bs}-btn`]:{marginInlineStart:Su}}}},[`${_h}-primary, &${_h}-primary`]:{"--antd-arrow-background-color":Jg,[`${_h}-inner`]:{color:xu,textAlign:"start",textDecoration:"none",backgroundColor:Jg,borderRadius:Ra,boxShadow:On,[`${_h}-close`]:{color:xu},[`${_h}-indicators`]:{[`${_h}-indicator`]:{background:Sa,"&-active":{background:xu}}},[`${_h}-prev-btn`]:{color:xu,borderColor:Sa,backgroundColor:Jg,"&:hover":{backgroundColor:Sa,borderColor:"transparent"}},[`${_h}-next-btn`]:{color:Jg,borderColor:"transparent",background:Td,"&:hover":{background:jg}}}}}),[`${_h}-mask`]:{[`${_h}-placeholder-animated`]:{transition:`all ${tv}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${_h}-inner`]:{borderRadius:lu.min(xa,iv.qN)}}},(0,iv.ZP)(lu,"var(--antd-arrow-background-color)")]},Ag=lu=>Object.assign(Object.assign({zIndexPopup:lu.zIndexPopupBase+70,closeBtnSize:lu.fontSize*lu.lineHeight,primaryPrevBtnBg:new k0.C(lu.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:lu.wireframe?"transparent":lu.colorFillContent,primaryNextBtnHoverBg:new k0.C(lu.colorBgTextHover).onBackground(lu.colorWhite).toRgbString()},(0,iv.wZ)({contentRadius:lu.borderRadiusLG,limitVerticalRadius:!0})),(0,Dg.w)(lu));var c0=(0,u0.I$)("Tour",lu=>{const{borderRadiusLG:_h}=lu,Kr=(0,B1.TS)(lu,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:_h});return[mu(Kr)]},Ag),L0=l(62625),$0=function(lu,_h){var Kr={};for(var fr in lu)Object.prototype.hasOwnProperty.call(lu,fr)&&_h.indexOf(fr)<0&&(Kr[fr]=lu[fr]);if(lu!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ri=0,fr=Object.getOwnPropertySymbols(lu);ri{const{prefixCls:_h,current:Kr=0,total:fr=6,className:ri,style:Ra,type:Sg}=lu,Jg=$0(lu,["prefixCls","current","total","className","style","type"]),{getPrefixCls:j0}=u.useContext(Pa.E_),Wo=j0("tour",_h),[Mo,qr,On]=c0(Wo);return Mo(u.createElement(Je.t5,{prefixCls:Wo,hashId:qr,className:N()(ri,`${Wo}-pure`,Sg&&`${Wo}-${Sg}`,On),style:Ra},u.createElement(Lv,{stepProps:Object.assign(Object.assign({},Jg),{prefixCls:Wo,total:fr}),current:Kr,type:Sg})))};var Gg=(0,L0.i)(cv),uu=function(lu,_h){var Kr={};for(var fr in lu)Object.prototype.hasOwnProperty.call(lu,fr)&&_h.indexOf(fr)<0&&(Kr[fr]=lu[fr]);if(lu!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ri=0,fr=Object.getOwnPropertySymbols(lu);ri{const{prefixCls:_h,type:Kr,rootClassName:fr,indicatorsRender:ri,steps:Ra}=lu,Sg=uu(lu,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Jg,direction:j0,tour:Wo}=(0,u.useContext)(Pa.E_),Mo=Jg("tour",_h),[qr,On,rn]=c0(Mo),[,ui]=(0,Aa.ZP)(),ya=u.useMemo(()=>Ra==null?void 0:Ra.map(jg=>{var Wa;return Object.assign(Object.assign({},jg),{className:N()(jg.className,{[`${Mo}-primary`]:((Wa=jg.type)!==null&&Wa!==void 0?Wa:Kr)==="primary"})})}),[Ra,Kr]),gd=jg=>{var Wa;return(0,Zs.Z)({arrowPointAtCenter:(Wa=jg==null?void 0:jg.arrowPointAtCenter)!==null&&Wa!==void 0?Wa:!0,autoAdjustOverflow:!0,offset:ui.marginXXS,arrowWidth:ui.sizePopupArrow,borderRadius:ui.borderRadius})},Su=N()({[`${Mo}-rtl`]:j0==="rtl"},On,rn,fr),xu=(jg,Wa)=>u.createElement(Lv,{type:Kr,stepProps:jg,current:Wa,closeIcon:Wo==null?void 0:Wo.closeIcon,indicatorsRender:ri}),[xa,Td]=(0,Ht.Cn)("Tour",Sg.zIndex);return qr(u.createElement(oi.Z.Provider,{value:Td},u.createElement(Zr,Object.assign({},Sg,{zIndex:xa,rootClassName:Su,prefixCls:Mo,animated:!0,renderPanel:xu,builtinPlacements:gd,steps:ya}))))};Gs._InternalPanelDoNotUseOrYouWillBeFired=Gg;var Ia=Gs},37111:function(c,g,l){"use strict";l.d(g,{Z:function(){return Sa}});var u=l(77617),D=l(49247),b=l(79384),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},y=x,w=l(44847),a=function(Bd,Bg){return u.createElement(w.Z,(0,b.Z)({},Bd,{ref:Bg,icon:y}))},S=u.forwardRef(a),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},N=I,ie=function(Bd,Bg){return u.createElement(w.Z,(0,b.Z)({},Bd,{ref:Bg,icon:N}))},ze=u.forwardRef(ie),Ie=l(92310),ct=l.n(Ie),At=l(25769),rt=l.n(At),It=l(28647),Ot=l(6415),wn=l(64693),Hs=l(89308),jr=l(41123),Jr=l(17763),Yn=l(45897),Lt=l(39193),_n=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{const Bg=t0=>{const{keyCode:n0}=t0;n0===Lt.Z.ENTER&&t0.preventDefault()},Og=t0=>{const{keyCode:n0}=t0,{onClick:u1}=$a;n0===Lt.Z.ENTER&&u1&&u1()},{style:g0,noStyle:qg,disabled:Xg}=$a,A0=_n($a,["style","noStyle","disabled"]);let nv={};return qg||(nv=Object.assign({},Mt)),Xg&&(nv.pointerEvents="none"),nv=Object.assign(Object.assign({},nv),g0),u.createElement("div",Object.assign({role:"button",tabIndex:0,ref:Bd},A0,{onKeyDown:Bg,onKeyUp:Og,style:nv}))}),on=l(58798),Hr=l(50700),vn=l(3773),Ca={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ai=Ca,gt=function(Bd,Bg){return u.createElement(w.Z,(0,b.Z)({},Bd,{ref:Bg,icon:ai}))},Zr=u.forwardRef(gt),Ht=l(20612),Zs=l(97446),oi=l(7778),Pa=l(79263),Aa=l(10129),Pg=l(78600);const Ug=($a,Bd,Bg,Og)=>{const{titleMarginBottom:g0,fontWeightStrong:qg}=Og;return{marginBottom:g0,color:Bg,fontWeight:qg,fontSize:$a,lineHeight:Bd}},e0=$a=>{const Bd=[1,2,3,4,5],Bg={};return Bd.forEach(Og=>{Bg[` - h${Og}&, - div&-h${Og}, - div&-h${Og} > textarea, - h${Og} - `]=Ug($a[`fontSizeHeading${Og}`],$a[`lineHeightHeading${Og}`],$a.colorTextHeading,$a)}),Bg},H0=$a=>{const{componentCls:Bd}=$a;return{"a&, a":Object.assign(Object.assign({},(0,oi.N)($a)),{textDecoration:$a.linkDecoration,"&:active, &:hover":{textDecoration:$a.linkHoverDecoration},[`&[disabled], &${Bd}-disabled`]:{color:$a.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:$a.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},X0=$a=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:$a.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:$a.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Aa.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:$a.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),d0=$a=>{const{componentCls:Bd,paddingSM:Bg}=$a,Og=Bg;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:$a.calc($a.paddingSM).mul(-1).equal(),marginTop:$a.calc(Og).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Pg.bf)(Og)})`},[`${Bd}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:$a.calc($a.marginXS).add(2).equal(),insetBlockEnd:$a.marginXS,color:$a.colorTextDescription,fontWeight:"normal",fontSize:$a.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},jv=$a=>({[`${$a.componentCls}-copy-success`]:{[` + `,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)"}),Ie)}},79263:function(St,me,x){"use strict";x.d(me,{ZP:function(){return ft},I$:function(){return hn},bk:function(){return Ct}});var v=x(77617),z=x(78600),P=x(46142),A=x(58798),W=x(91110),X=x(57832),Y=x(61577),ie=x(22946),ae=x(16169),se=x(72597),Ie=x(26581),Be=x(3711),ct=(0,ie.Z)(function Nt(){(0,Y.Z)(this,Nt)});function nt(Nt,Te,vt){return Te=(0,Ie.Z)(Te),(0,ae.Z)(Nt,(0,se.Z)()?Reflect.construct(Te,vt||[],(0,Ie.Z)(Nt).constructor):Te.apply(Nt,vt))}let Ge=function(Nt){(0,Be.Z)(Te,Nt);function Te(vt){var ze;return(0,Y.Z)(this,Te),ze=nt(this,Te),ze.result=0,vt instanceof Te?ze.result=vt.result:typeof vt=="number"&&(ze.result=vt),ze}return(0,ie.Z)(Te,[{key:"add",value:function(ze){return ze instanceof Te?this.result+=ze.result:typeof ze=="number"&&(this.result+=ze),this}},{key:"sub",value:function(ze){return ze instanceof Te?this.result-=ze.result:typeof ze=="number"&&(this.result-=ze),this}},{key:"mul",value:function(ze){return ze instanceof Te?this.result*=ze.result:typeof ze=="number"&&(this.result*=ze),this}},{key:"div",value:function(ze){return ze instanceof Te?this.result/=ze.result:typeof ze=="number"&&(this.result/=ze),this}},{key:"equal",value:function(){return this.result}}]),Te}(ct);function at(Nt,Te,vt){return Te=(0,Ie.Z)(Te),(0,ae.Z)(Nt,(0,se.Z)()?Reflect.construct(Te,vt||[],(0,Ie.Z)(Nt).constructor):Te.apply(Nt,vt))}const Ye="CALC_UNIT";function rt(Nt){return typeof Nt=="number"?`${Nt}${Ye}`:Nt}let Gt=function(Nt){(0,Be.Z)(Te,Nt);function Te(vt){var ze;return(0,Y.Z)(this,Te),ze=at(this,Te),ze.result="",vt instanceof Te?ze.result=`(${vt.result})`:typeof vt=="number"?ze.result=rt(vt):typeof vt=="string"&&(ze.result=vt),ze}return(0,ie.Z)(Te,[{key:"add",value:function(ze){return ze instanceof Te?this.result=`${this.result} + ${ze.getResult()}`:(typeof ze=="number"||typeof ze=="string")&&(this.result=`${this.result} + ${rt(ze)}`),this.lowPriority=!0,this}},{key:"sub",value:function(ze){return ze instanceof Te?this.result=`${this.result} - ${ze.getResult()}`:(typeof ze=="number"||typeof ze=="string")&&(this.result=`${this.result} - ${rt(ze)}`),this.lowPriority=!0,this}},{key:"mul",value:function(ze){return this.lowPriority&&(this.result=`(${this.result})`),ze instanceof Te?this.result=`${this.result} * ${ze.getResult(!0)}`:(typeof ze=="number"||typeof ze=="string")&&(this.result=`${this.result} * ${ze}`),this.lowPriority=!1,this}},{key:"div",value:function(ze){return this.lowPriority&&(this.result=`(${this.result})`),ze instanceof Te?this.result=`${this.result} / ${ze.getResult(!0)}`:(typeof ze=="number"||typeof ze=="string")&&(this.result=`${this.result} / ${ze}`),this.lowPriority=!1,this}},{key:"getResult",value:function(ze){return this.lowPriority||ze?`(${this.result})`:this.result}},{key:"equal",value:function(ze){const{unit:Vt=!0}=ze||{},Tt=new RegExp(`${Ye}`,"g");return this.result=this.result.replace(Tt,Vt?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}]),Te}(ct);var Et=Nt=>{const Te=Nt==="css"?Gt:Ge;return vt=>new Te(vt)};function ht(Nt){return Nt==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var Te=arguments.length,vt=new Array(Te),ze=0;ze(0,z.bf)(Vt)).join(",")})`},min:function(){for(var Te=arguments.length,vt=new Array(Te),ze=0;ze(0,z.bf)(Vt)).join(",")})`}}}var Pe=x(90882),et=x(35198);const Oe=(Nt,Te,vt)=>{var ze;return typeof vt=="function"?vt((0,Pe.TS)(Te,(ze=Te[Nt])!==null&&ze!==void 0?ze:{})):vt!=null?vt:{}},Ue=(Nt,Te,vt,ze)=>{const Vt=Object.assign({},Te[Nt]);if(ze!=null&&ze.deprecatedTokens){const{deprecatedTokens:un}=ze;un.forEach(on=>{let[Lr,Yr]=on;var fi;(Vt!=null&&Vt[Lr]||Vt!=null&&Vt[Yr])&&((fi=Vt[Yr])!==null&&fi!==void 0||(Vt[Yr]=Vt==null?void 0:Vt[Lr]))})}const Tt=Object.assign(Object.assign({},vt),Vt);return Object.keys(Tt).forEach(un=>{Tt[un]===Te[un]&&delete Tt[un]}),Tt},je=(Nt,Te)=>`${[Te,Nt.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function ft(Nt,Te,vt){let ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const Vt=Array.isArray(Nt)?Nt:[Nt,Nt],[Tt]=Vt,un=Vt.join("-");return function(on){let Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:on;const[Yr,fi,Xi,Qi,hi]=(0,X.ZP)(),{getPrefixCls:Go,iconPrefixCls:Mo,csp:pe}=(0,v.useContext)(A.E_),Ii=Go(),Vi=hi?"css":"js",ro=Et(Vi),{max:ai,min:Ms}=ht(Vi),Ar={theme:Yr,token:Qi,hashId:Xi,nonce:()=>pe==null?void 0:pe.nonce,clientOnly:ze.clientOnly,order:ze.order||-999};return(0,z.xy)(Object.assign(Object.assign({},Ar),{clientOnly:!1,path:["Shared",Ii]}),()=>[{"&":(0,W.Lx)(Qi)}]),(0,et.Z)(Mo,pe),[(0,z.xy)(Object.assign(Object.assign({},Ar),{path:[un,on,Mo]}),()=>{if(ze.injectStyle===!1)return[];const{token:jn,flush:wr}=(0,Pe.ZP)(Qi),oi=Oe(Tt,fi,vt),Ti=`.${on}`,Bi=Ue(Tt,fi,oi,{deprecatedTokens:ze.deprecatedTokens});hi&&Object.keys(oi).forEach(Rn=>{oi[Rn]=`var(${(0,z.ks)(Rn,je(Tt,hi.prefix))})`});const no=(0,Pe.TS)(jn,{componentCls:Ti,prefixCls:on,iconCls:`.${Mo}`,antCls:`.${Ii}`,calc:ro,max:ai,min:Ms},hi?oi:Bi),Vr=Te(no,{hashId:Xi,prefixCls:on,rootPrefixCls:Ii,iconPrefixCls:Mo});return wr(Tt,Bi),[ze.resetStyle===!1?null:(0,W.du)(no,on,Lr),Vr]}),Xi]}}const Ct=(Nt,Te,vt,ze)=>{const Vt=ft(Nt,Te,vt,Object.assign({resetStyle:!1,order:-998},ze));return un=>{let{prefixCls:on,rootCls:Lr=on}=un;return Vt(on,Lr),null}},Xe=(Nt,Te,vt)=>{function ze(Yr){return`${Nt}${Yr.slice(0,1).toUpperCase()}${Yr.slice(1)}`}const{unitless:Vt={},injectStyle:Tt=!0}=vt!=null?vt:{},un={[ze("zIndexPopup")]:!0};Object.keys(Vt).forEach(Yr=>{un[ze(Yr)]=Vt[Yr]});const on=Yr=>{let{rootCls:fi,cssVar:Xi}=Yr;const[,Qi]=(0,X.ZP)();return(0,z.CI)({path:[Nt],prefix:Xi.prefix,key:Xi==null?void 0:Xi.key,unitless:Object.assign(Object.assign({},X.NJ),un),ignore:X.ID,token:Qi,scope:fi},()=>{const hi=Oe(Nt,Qi,Te),Go=Ue(Nt,Qi,hi,{deprecatedTokens:vt==null?void 0:vt.deprecatedTokens});return Object.keys(hi).forEach(Mo=>{Go[ze(Mo)]=Go[Mo],delete Go[Mo]}),Go}),null};return Yr=>{const[,,,,fi]=(0,X.ZP)();return[Xi=>Tt&&fi?v.createElement(v.Fragment,null,v.createElement(on,{rootCls:Yr,cssVar:fi,component:Nt}),Xi):Xi,fi==null?void 0:fi.key]}},hn=(Nt,Te,vt,ze)=>{const Vt=ft(Nt,Te,vt,ze),Tt=Xe(Array.isArray(Nt)?Nt[0]:Nt,vt,ze);return function(un){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un;const[,Lr]=Vt(un,on),[Yr,fi]=Tt(on);return[Yr,Lr,fi]}}},90882:function(St,me,x){"use strict";x.d(me,{TS:function(){return P}});const v=typeof CSSINJS_STATISTIC!="undefined";let z=!0;function P(){for(var ie=arguments.length,ae=new Array(ie),se=0;se{Object.keys(Be).forEach(ct=>{Object.defineProperty(Ie,ct,{configurable:!0,enumerable:!0,get:()=>Be[ct]})})}),z=!0,Ie}const A={},W={};function X(){}const Y=ie=>{let ae,se=ie,Ie=X;return v&&typeof Proxy!="undefined"&&(ae=new Set,se=new Proxy(ie,{get(Be,Ce){return z&&ae.add(Ce),Be[Ce]}}),Ie=(Be,Ce)=>{var ct;A[Be]={global:Array.from(ae),component:Object.assign(Object.assign({},(ct=A[Be])===null||ct===void 0?void 0:ct.component),Ce)}}),{token:se,keys:ae,flush:Ie}};me.ZP=Y},35198:function(St,me,x){"use strict";var v=x(78600),z=x(91110),P=x(57832);const A=(W,X)=>{const[Y,ie]=(0,P.ZP)();return(0,v.xy)({theme:Y,token:ie,hashId:"",path:["ant-design-icons",W],nonce:()=>X==null?void 0:X.nonce},()=>[{[`.${W}`]:Object.assign(Object.assign({},(0,z.Ro)()),{[`.${W} .${W}-icon`]:{display:"block"}})}])};me.Z=A},3773:function(St,me,x){"use strict";x.d(me,{Z:function(){return Vt}});var v=x(77617),z=x(92310),P=x.n(z),A=x(23882),W=x(89308),X=x(40870),Y=x(12149),ie=x(81420),ae=x(20612),se=x(80074),Ie=x(13150),Be=x(58798),Ce=x(55449),ct=x(57832),nt=x(91110),Ge=x(19162),at=x(50489),Ye=x(42095);function rt(Tt,un){return Ye.i.reduce((on,Lr)=>{const Yr=Tt[`${Lr}1`],fi=Tt[`${Lr}3`],Xi=Tt[`${Lr}6`],Qi=Tt[`${Lr}7`];return Object.assign(Object.assign({},on),un(Lr,{lightColor:Yr,lightBorderColor:fi,darkColor:Xi,textColor:Qi}))},{})}var Gt=x(90882),yt=x(79263),Et=x(78600),ht=x(70157);const Pe=Tt=>{const{componentCls:un,tooltipMaxWidth:on,tooltipColor:Lr,tooltipBg:Yr,tooltipBorderRadius:fi,zIndexPopup:Xi,controlHeight:Qi,boxShadowSecondary:hi,paddingSM:Go,paddingXS:Mo}=Tt;return[{[un]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Tt)),{position:"absolute",zIndex:Xi,display:"block",width:"max-content",maxWidth:on,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Yr,[`${un}-inner`]:{minWidth:Qi,minHeight:Qi,padding:`${(0,Et.bf)(Tt.calc(Go).div(2).equal())} ${(0,Et.bf)(Mo)}`,color:Lr,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Yr,borderRadius:fi,boxShadow:hi,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${un}-inner`]:{borderRadius:Tt.min(fi,at.qN)}},[`${un}-content`]:{position:"relative"}}),rt(Tt,(pe,Ii)=>{let{darkColor:Vi}=Ii;return{[`&${un}-${pe}`]:{[`${un}-inner`]:{backgroundColor:Vi},[`${un}-arrow`]:{"--antd-arrow-background-color":Vi}}}})),{"&-rtl":{direction:"rtl"}})},(0,at.ZP)(Tt,"var(--antd-arrow-background-color)"),{[`${un}-pure`]:{position:"relative",maxWidth:"none",margin:Tt.sizePopupArrow}}]},et=Tt=>Object.assign(Object.assign({zIndexPopup:Tt.zIndexPopupBase+70},(0,at.wZ)({contentRadius:Tt.borderRadius,limitVerticalRadius:!0})),(0,ht.w)((0,Gt.TS)(Tt,{borderRadiusOuter:Math.min(Tt.borderRadiusOuter,4)})));var Oe=function(Tt){let un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,yt.I$)("Tooltip",Lr=>{const{borderRadius:Yr,colorTextLightSolid:fi,colorBgSpotlight:Xi}=Lr,Qi=(0,Gt.TS)(Lr,{tooltipMaxWidth:250,tooltipColor:fi,tooltipBorderRadius:Yr,tooltipBg:Xi});return[Pe(Qi),(0,Ge._y)(Lr,"zoom-big-fast")]},et,{resetStyle:!1,injectStyle:un})(Tt)},Ue=x(49397);const je=Ye.i.map(Tt=>`${Tt}-inverse`),ft=null;function Ct(Tt){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Ue.Z)(je),(0,Ue.Z)(Ye.i)).includes(Tt):Ye.i.includes(Tt)}function Xe(Tt){return ft.includes(Tt)}function hn(Tt,un){const on=Ct(un),Lr=P()({[`${Tt}-${un}`]:un&&on}),Yr={},fi={};return un&&!on&&(Yr.background=un,fi["--antd-arrow-background-color"]=un),{className:Lr,overlayStyle:Yr,arrowStyle:fi}}var Te=Tt=>{const{prefixCls:un,className:on,placement:Lr="top",title:Yr,color:fi,overlayInnerStyle:Xi}=Tt,{getPrefixCls:Qi}=v.useContext(Be.E_),hi=Qi("tooltip",un),[Go,Mo,pe]=Oe(hi),Ii=hn(hi,fi),Vi=Ii.arrowStyle,ro=Object.assign(Object.assign({},Xi),Ii.overlayStyle),ai=P()(Mo,pe,hi,`${hi}-pure`,`${hi}-placement-${Lr}`,on,Ii.className);return Go(v.createElement("div",{className:ai,style:Vi},v.createElement("div",{className:`${hi}-arrow`}),v.createElement(A.G,Object.assign({},Tt,{className:Mo,prefixCls:hi,overlayInnerStyle:ro}),Yr)))},vt=function(Tt,un){var on={};for(var Lr in Tt)Object.prototype.hasOwnProperty.call(Tt,Lr)&&un.indexOf(Lr)<0&&(on[Lr]=Tt[Lr]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,Lr=Object.getOwnPropertySymbols(Tt);Yr{var on,Lr;const{prefixCls:Yr,openClassName:fi,getTooltipContainer:Xi,overlayClassName:Qi,color:hi,overlayInnerStyle:Go,children:Mo,afterOpenChange:pe,afterVisibleChange:Ii,destroyTooltipOnHide:Vi,arrow:ro=!0,title:ai,overlay:Ms,builtinPlacements:Ar,arrowPointAtCenter:Rt=!1,autoAdjustOverflow:jn=!0}=Tt,wr=!!ro,[,oi]=(0,ct.ZP)(),{getPopupContainer:Ti,getPrefixCls:Bi,direction:no}=v.useContext(Be.E_),Vr=(0,se.ln)("Tooltip"),Rn=v.useRef(null),Xt=()=>{var ui;(ui=Rn.current)===null||ui===void 0||ui.forceAlign()};v.useImperativeHandle(un,()=>({forceAlign:Xt,forcePopupAlign:()=>{Vr.deprecated(!1,"forcePopupAlign","forceAlign"),Xt()}}));const[Sn,Pn]=(0,W.Z)(!1,{value:(on=Tt.open)!==null&&on!==void 0?on:Tt.visible,defaultValue:(Lr=Tt.defaultOpen)!==null&&Lr!==void 0?Lr:Tt.defaultVisible}),hr=!ai&&!Ms&&ai!==0,mt=ui=>{var Gr,zr;Pn(hr?!1:ui),hr||((Gr=Tt.onOpenChange)===null||Gr===void 0||Gr.call(Tt,ui),(zr=Tt.onVisibleChange)===null||zr===void 0||zr.call(Tt,ui))},tt=v.useMemo(()=>{var ui,Gr;let zr=Rt;return typeof ro=="object"&&(zr=(Gr=(ui=ro.pointAtCenter)!==null&&ui!==void 0?ui:ro.arrowPointAtCenter)!==null&&Gr!==void 0?Gr:Rt),Ar||(0,ie.Z)({arrowPointAtCenter:zr,autoAdjustOverflow:jn,arrowWidth:wr?oi.sizePopupArrow:0,borderRadius:oi.borderRadius,offset:oi.marginXXS,visibleFirst:!0})},[Rt,ro,Ar,oi]),kt=v.useMemo(()=>ai===0?ai:Ms||ai||"",[Ms,ai]),vn=v.createElement(Ce.BR,null,typeof kt=="function"?kt():kt),{getPopupContainer:vr,placement:qr="top",mouseEnterDelay:Ni=.1,mouseLeaveDelay:li=.1,overlayStyle:Un,rootClassName:dn}=Tt,xt=vt(Tt,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),it=Bi("tooltip",Yr),Bt=Bi(),rn=Tt["data-popover-inject"];let ir=Sn;!("open"in Tt)&&!("visible"in Tt)&&hr&&(ir=!1);const tr=(0,ae.l$)(Mo)&&!(0,ae.M2)(Mo)?Mo:v.createElement("span",null,Mo),Jn=tr.props,nn=!Jn.className||typeof Jn.className=="string"?P()(Jn.className,fi||`${it}-open`):Jn.className,[er,Fr,jr]=Oe(it,!rn),bo=hn(it,hi),zt=bo.arrowStyle,en=Object.assign(Object.assign({},Go),bo.overlayStyle),Cn=P()(Qi,{[`${it}-rtl`]:no==="rtl"},bo.className,dn,Fr,jr),[rr,Pr]=(0,X.Cn)("Tooltip",xt.zIndex),Er=v.createElement(A.Z,Object.assign({},xt,{zIndex:rr,showArrow:wr,placement:qr,mouseEnterDelay:Ni,mouseLeaveDelay:li,prefixCls:it,overlayClassName:Cn,overlayStyle:Object.assign(Object.assign({},zt),Un),getTooltipContainer:vr||Xi||Ti,ref:Rn,builtinPlacements:tt,overlay:vn,visible:ir,onVisibleChange:mt,afterVisibleChange:pe!=null?pe:Ii,overlayInnerStyle:en,arrowContent:v.createElement("span",{className:`${it}-arrow-content`}),motion:{motionName:(0,Y.m)(Bt,"zoom-big-fast",Tt.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Vi}),ir?(0,ae.Tm)(tr,{className:nn}):tr);return er(v.createElement(Ie.Z.Provider,{value:Pr},Er))});ze._InternalPanelDoNotUseOrYouWillBeFired=Te;var Vt=ze},64316:function(St,me,x){"use strict";x.d(me,{Z:function(){return Sn}});var v=x(77617),z=x(54131),P=x(79384),A=x(13255),W=x(35372),X=x(56348),Y=x(43403),ie=x(35593),ae=x(92310),se=x.n(ae),Ie=x(64693),Be=x(89308),Ce=x(33890);function ct(Pn){var hr=window.innerWidth||document.documentElement.clientWidth,mt=window.innerHeight||document.documentElement.clientHeight,tt=Pn.getBoundingClientRect(),kt=tt.top,vn=tt.right,vr=tt.bottom,qr=tt.left;return kt>=0&&qr>=0&&vn<=hr&&vr<=mt}function nt(Pn,hr,mt){var tt;return(tt=mt!=null?mt:hr)!==null&&tt!==void 0?tt:Pn===null?"center":"bottom"}function Ge(Pn,hr,mt,tt){var kt=(0,v.useState)(void 0),vn=(0,W.Z)(kt,2),vr=vn[0],qr=vn[1];(0,Ie.Z)(function(){var rn=typeof Pn=="function"?Pn():Pn;qr(rn||null)});var Ni=(0,v.useState)(null),li=(0,W.Z)(Ni,2),Un=li[0],dn=li[1],xt=(0,Ce.Z)(function(){if(vr){!ct(vr)&&hr&&vr.scrollIntoView(tt);var rn=vr.getBoundingClientRect(),ir=rn.left,tr=rn.top,Jn=rn.width,nn=rn.height,er={left:ir,top:tr,width:Jn,height:nn,radius:0};dn(function(Fr){return JSON.stringify(Fr)!==JSON.stringify(er)?er:Fr})}else dn(null)}),it=function(ir){var tr;return(tr=Array.isArray(mt==null?void 0:mt.offset)?mt==null?void 0:mt.offset[ir]:mt==null?void 0:mt.offset)!==null&&tr!==void 0?tr:6};(0,Ie.Z)(function(){return xt(),window.addEventListener("resize",xt),function(){window.removeEventListener("resize",xt)}},[vr,hr,xt]);var Bt=(0,v.useMemo)(function(){if(!Un)return Un;var rn=it(0),ir=it(1),tr=(mt==null?void 0:mt.radius)||2;return{left:Un.left-rn,top:Un.top-ir,width:Un.width+rn*2,height:Un.height+ir*2,radius:tr}},[Un,mt]);return[Bt,vr]}var at=x(30411),Ye={fill:"transparent",pointerEvents:"auto"},rt=function(hr){var mt=hr.prefixCls,tt=hr.rootClassName,kt=hr.pos,vn=hr.showMask,vr=hr.style,qr=vr===void 0?{}:vr,Ni=hr.fill,li=Ni===void 0?"rgba(0,0,0,0.5)":Ni,Un=hr.open,dn=hr.animated,xt=hr.zIndex,it=hr.disabledInteraction,Bt=(0,at.Z)(),rn="".concat(mt,"-mask-").concat(Bt),ir=(0,A.Z)(dn)==="object"?dn==null?void 0:dn.placeholder:dn,tr=typeof navigator!="undefined"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Jn=tr?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return v.createElement(Y.Z,{open:Un,autoLock:!0},v.createElement("div",{className:se()("".concat(mt,"-mask"),tt),style:(0,z.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:xt,pointerEvents:kt&&!it?"none":"auto"},qr)},vn?v.createElement("svg",{style:{width:"100%",height:"100%"}},v.createElement("defs",null,v.createElement("mask",{id:rn},v.createElement("rect",(0,P.Z)({x:"0",y:"0"},Jn,{fill:"white"})),kt&&v.createElement("rect",{x:kt.left,y:kt.top,rx:kt.radius,width:kt.width,height:kt.height,fill:"black",className:ir?"".concat(mt,"-placeholder-animated"):""}))),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:li,mask:"url(#".concat(rn,")")}),kt&&v.createElement(v.Fragment,null,v.createElement("rect",(0,P.Z)({},Ye,{x:"0",y:"0",width:"100%",height:kt.top})),v.createElement("rect",(0,P.Z)({},Ye,{x:"0",y:"0",width:kt.left,height:"100%"})),v.createElement("rect",(0,P.Z)({},Ye,{x:"0",y:kt.top+kt.height,width:"100%",height:"calc(100vh - ".concat(kt.top+kt.height,"px)")})),v.createElement("rect",(0,P.Z)({},Ye,{x:kt.left+kt.width,y:"0",width:"calc(100vw - ".concat(kt.left+kt.width,"px)"),height:"100%"})))):null))},Gt=rt,yt={adjustX:1,adjustY:1},Et=[0,0],ht={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Pe(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,hr={};return Object.keys(ht).forEach(function(mt){hr[mt]=(0,z.Z)((0,z.Z)({},ht[mt]),{},{autoArrow:Pn,targetOffset:Et})}),hr}var et=Pe(),Oe=x(49397);function Ue(Pn){var hr=Pn.prefixCls,mt=Pn.current,tt=Pn.total,kt=Pn.title,vn=Pn.description,vr=Pn.onClose,qr=Pn.onPrev,Ni=Pn.onNext,li=Pn.onFinish,Un=Pn.className,dn=Pn.closeIcon,xt=dn!==!1&&dn!==null,it=dn!==void 0&&dn!==!0?dn:v.createElement("span",{className:"".concat(hr,"-close-x")},"\xD7");return v.createElement("div",{className:se()("".concat(hr,"-content"),Un)},v.createElement("div",{className:"".concat(hr,"-inner")},xt&&v.createElement("button",{type:"button",onClick:vr,"aria-label":"Close",className:"".concat(hr,"-close")},it),v.createElement("div",{className:"".concat(hr,"-header")},v.createElement("div",{className:"".concat(hr,"-title")},kt)),v.createElement("div",{className:"".concat(hr,"-description")},vn),v.createElement("div",{className:"".concat(hr,"-footer")},v.createElement("div",{className:"".concat(hr,"-sliders")},tt>1?(0,Oe.Z)(Array.from({length:tt}).keys()).map(function(Bt,rn){return v.createElement("span",{key:Bt,className:rn===mt?"active":""})}):null),v.createElement("div",{className:"".concat(hr,"-buttons")},mt!==0?v.createElement("button",{className:"".concat(hr,"-prev-btn"),onClick:qr},"Prev"):null,mt===tt-1?v.createElement("button",{className:"".concat(hr,"-finish-btn"),onClick:li},"Finish"):v.createElement("button",{className:"".concat(hr,"-next-btn"),onClick:Ni},"Next")))))}var je=function(hr){var mt=hr.current,tt=hr.renderPanel;return v.createElement(v.Fragment,null,typeof tt=="function"?tt(hr,mt):v.createElement(Ue,hr))},ft=je,Ct=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","builtinPlacements","disabledInteraction"],Xe={left:"50%",top:"50%",width:1,height:1},hn={block:"center",inline:"center"},Nt=function(hr){var mt=hr.prefixCls,tt=mt===void 0?"rc-tour":mt,kt=hr.steps,vn=kt===void 0?[]:kt,vr=hr.defaultCurrent,qr=hr.current,Ni=hr.onChange,li=hr.onClose,Un=hr.onFinish,dn=hr.open,xt=hr.mask,it=xt===void 0?!0:xt,Bt=hr.arrow,rn=Bt===void 0?!0:Bt,ir=hr.rootClassName,tr=hr.placement,Jn=hr.renderPanel,nn=hr.gap,er=hr.animated,Fr=hr.scrollIntoViewOptions,jr=Fr===void 0?hn:Fr,bo=hr.zIndex,zt=bo===void 0?1001:bo,en=hr.closeIcon,Cn=hr.builtinPlacements,rr=hr.disabledInteraction,Pr=(0,X.Z)(hr,Ct),Er=v.useRef(),ui=(0,Be.Z)(0,{value:qr,defaultValue:vr}),Gr=(0,W.Z)(ui,2),zr=Gr[0],Ei=Gr[1],Zi=(0,Be.Z)(void 0,{value:dn,postState:function(dt){return zr<0||zr>=vn.length?!1:dt!=null?dt:!0}}),Kr=(0,W.Z)(Zi,2),Xr=Kr[0],Qo=Kr[1],pr=v.useRef(Xr);(0,Ie.Z)(function(){Xr&&!pr.current&&Ei(0),pr.current=Xr},[Xr]);var qo=vn[zr]||{},Br=qo.target,sr=qo.placement,ii=qo.style,qi=qo.arrow,Ln=qo.className,zn=qo.mask,Wi=qo.scrollIntoViewOptions,Yi=Wi===void 0?hn:Wi,so=qo.closeIcon,ko=Xr&&(zn!=null?zn:it),_i=so!=null?so:en,hs=Yi!=null?Yi:jr,Ts=Ge(Br,dn,nn,hs),Qr=(0,W.Z)(Ts,2),Ai=Qr[0],Ri=Qr[1],To=nt(Ri,tr,sr),yo=Ri?typeof qi=="undefined"?rn:qi:!1,ao=(0,A.Z)(yo)==="object"?yo.pointAtCenter:!1;(0,Ie.Z)(function(){var sn;(sn=Er.current)===null||sn===void 0||sn.forceAlign()},[ao,zr]);var Bs=function(dt){Ei(dt),Ni==null||Ni(dt)},fa=(0,v.useMemo)(function(){return Cn?typeof Cn=="function"?Cn({arrowPointAtCenter:ao}):Cn:Pe(ao)},[Cn,ao]);if(Ri===void 0)return null;var ba=function(){Qo(!1),li==null||li(zr)},Rs=function(){return v.createElement(ft,(0,P.Z)({arrow:yo,key:"content",prefixCls:tt,total:vn.length,renderPanel:Jn,onPrev:function(){Bs(zr-1)},onNext:function(){Bs(zr+1)},onClose:ba,current:zr,onFinish:function(){ba(),Un==null||Un()},closeIcon:_i},vn[zr]))},Ds=typeof ko=="boolean"?ko:!!ko,el=typeof ko=="boolean"?void 0:ko,tl=function(dt){return dt||Ri||document.body};return v.createElement(v.Fragment,null,v.createElement(Gt,{zIndex:zt,prefixCls:tt,pos:Ai,showMask:Ds,style:el==null?void 0:el.style,fill:el==null?void 0:el.color,open:Xr,animated:er,rootClassName:ir,disabledInteraction:rr}),v.createElement(ie.Z,(0,P.Z)({},Pr,{builtinPlacements:fa,ref:Er,popupStyle:ii,popupPlacement:To,popupVisible:Xr,popupClassName:se()(ir,Ln),prefixCls:tt,popup:Rs,forceRender:!1,destroyPopupOnHide:!0,zIndex:zt,getTriggerDOMNode:tl,arrow:!!yo}),v.createElement(Y.Z,{open:Xr,autoLock:!0},v.createElement("div",{className:se()(ir,"".concat(tt,"-target-placeholder")),style:(0,z.Z)((0,z.Z)({},Ai||Xe),{},{position:"fixed",pointerEvents:"none"})}))))},Te=Nt,vt=Te,ze=x(40870),Vt=x(81420),Tt=x(13150),un=x(58798),on=x(57832),Lr=x(4531),Yr=x(67445),fi=x(99622),Xi=x(50700),Qi=x(209);function hi(Pn){return Pn!=null}var Mo=Pn=>{var hr,mt;const{stepProps:tt,current:kt,type:vn,closeIcon:vr,indicatorsRender:qr}=Pn,{prefixCls:Ni,total:li=1,title:Un,onClose:dn,onPrev:xt,onNext:it,onFinish:Bt,cover:rn,description:ir,nextButtonProps:tr,prevButtonProps:Jn,type:nn,closeIcon:er}=tt,Fr=nn!=null?nn:vn,jr=er!=null?er:vr,bo=jr!==!1&&jr!==null,[zt,en]=(0,Yr.Z)(bo,jr,Xr=>v.createElement("span",{onClick:dn,"aria-label":"Close",className:`${Ni}-close`},Xr),v.createElement(Lr.Z,{className:`${Ni}-close-icon`}),!0),Cn=kt===li-1,rr=()=>{var Xr;xt==null||xt(),(Xr=Jn==null?void 0:Jn.onClick)===null||Xr===void 0||Xr.call(Jn)},Pr=()=>{var Xr;Cn?Bt==null||Bt():it==null||it(),(Xr=tr==null?void 0:tr.onClick)===null||Xr===void 0||Xr.call(tr)},Er=hi(Un)?v.createElement("div",{className:`${Ni}-header`},v.createElement("div",{className:`${Ni}-title`},Un)):null,ui=hi(ir)?v.createElement("div",{className:`${Ni}-description`},ir):null,Gr=hi(rn)?v.createElement("div",{className:`${Ni}-cover`},rn):null;let zr;qr?zr=qr(kt,li):zr=(0,Oe.Z)(Array.from({length:li}).keys()).map((Xr,Qo)=>v.createElement("span",{key:Xr,className:se()(Qo===kt&&`${Ni}-indicator-active`,`${Ni}-indicator`)}));const Ei=Fr==="primary"?"default":"primary",Zi={type:"default",ghost:Fr==="primary"},[Kr]=(0,Xi.Z)("Tour",Qi.Z.Tour);return v.createElement("div",{className:`${Ni}-content`},v.createElement("div",{className:`${Ni}-inner`},zt&&en,Gr,Er,ui,v.createElement("div",{className:`${Ni}-footer`},li>1&&v.createElement("div",{className:`${Ni}-indicators`},zr),v.createElement("div",{className:`${Ni}-buttons`},kt!==0?v.createElement(fi.ZP,Object.assign({},Zi,Jn,{onClick:rr,size:"small",className:se()(`${Ni}-prev-btn`,Jn==null?void 0:Jn.className)}),(hr=Jn==null?void 0:Jn.children)!==null&&hr!==void 0?hr:Kr==null?void 0:Kr.Previous):null,v.createElement(fi.ZP,Object.assign({type:Ei},tr,{onClick:Pr,size:"small",className:se()(`${Ni}-next-btn`,tr==null?void 0:tr.className)}),(mt=tr==null?void 0:tr.children)!==null&&mt!==void 0?mt:Cn?Kr==null?void 0:Kr.Finish:Kr==null?void 0:Kr.Next)))))},pe=x(76429),Ii=x(64993),Vi=x(91110),ro=x(50489),ai=x(79263),Ms=x(90882),Ar=x(70157),Rt=x(78600);const jn=Pn=>{const{componentCls:hr,lineHeight:mt,padding:tt,paddingXS:kt,borderRadius:vn,borderRadiusXS:vr,colorPrimary:qr,colorText:Ni,colorFill:li,indicatorHeight:Un,indicatorWidth:dn,boxShadowTertiary:xt,tourZIndexPopup:it,fontSize:Bt,colorBgElevated:rn,fontWeightStrong:ir,marginXS:tr,colorTextLightSolid:Jn,tourBorderRadius:nn,colorWhite:er,primaryNextBtnHoverBg:Fr,closeBtnSize:jr,motionDurationSlow:bo,antCls:zt,primaryPrevBtnBg:en}=Pn;return[{[hr]:Object.assign(Object.assign({},(0,Vi.Wf)(Pn)),{color:Ni,position:"absolute",zIndex:it,display:"block",visibility:"visible",fontSize:Bt,lineHeight:mt,width:520,"--antd-arrow-background-color":rn,"&-pure":{maxWidth:"100%",position:"relative"},[`&${hr}-hidden`]:{display:"none"},[`${hr}-content`]:{position:"relative"},[`${hr}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:nn,boxShadow:xt,position:"relative",backgroundColor:rn,border:"none",backgroundClip:"padding-box",[`${hr}-close`]:{position:"absolute",top:tt,insetInlineEnd:tt,color:Pn.colorIcon,outline:"none",width:jr,height:jr,borderRadius:Pn.borderRadiusSM,transition:`background-color ${Pn.motionDurationMid}, color ${Pn.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:Pn.colorIconHover,backgroundColor:Pn.closeBtnHoverBg}},[`${hr}-cover`]:{textAlign:"center",padding:`${(0,Rt.bf)(Pn.calc(tt).add(jr).add(kt).equal())} ${(0,Rt.bf)(tt)} 0`,img:{width:"100%"}},[`${hr}-header`]:{padding:`${(0,Rt.bf)(tt)} ${(0,Rt.bf)(tt)} ${(0,Rt.bf)(kt)}`,[`${hr}-title`]:{lineHeight:mt,fontSize:Bt,fontWeight:ir}},[`${hr}-description`]:{padding:`0 ${(0,Rt.bf)(tt)}`,lineHeight:mt,wordWrap:"break-word"},[`${hr}-footer`]:{padding:`${(0,Rt.bf)(kt)} ${(0,Rt.bf)(tt)} ${(0,Rt.bf)(tt)}`,textAlign:"end",borderRadius:`0 0 ${(0,Rt.bf)(vr)} ${(0,Rt.bf)(vr)}`,display:"flex",[`${hr}-indicators`]:{display:"inline-block",[`${hr}-indicator`]:{width:dn,height:Un,display:"inline-block",borderRadius:"50%",background:li,"&:not(:last-child)":{marginInlineEnd:Un},"&-active":{background:qr}}},[`${hr}-buttons`]:{marginInlineStart:"auto",[`${zt}-btn`]:{marginInlineStart:tr}}}},[`${hr}-primary, &${hr}-primary`]:{"--antd-arrow-background-color":qr,[`${hr}-inner`]:{color:Jn,textAlign:"start",textDecoration:"none",backgroundColor:qr,borderRadius:vn,boxShadow:xt,[`${hr}-close`]:{color:Jn},[`${hr}-indicators`]:{[`${hr}-indicator`]:{background:en,"&-active":{background:Jn}}},[`${hr}-prev-btn`]:{color:Jn,borderColor:en,backgroundColor:qr,"&:hover":{backgroundColor:en,borderColor:"transparent"}},[`${hr}-next-btn`]:{color:qr,borderColor:"transparent",background:er,"&:hover":{background:Fr}}}}}),[`${hr}-mask`]:{[`${hr}-placeholder-animated`]:{transition:`all ${bo}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${hr}-inner`]:{borderRadius:Pn.min(nn,ro.qN)}}},(0,ro.ZP)(Pn,"var(--antd-arrow-background-color)")]},wr=Pn=>Object.assign(Object.assign({zIndexPopup:Pn.zIndexPopupBase+70,closeBtnSize:Pn.fontSize*Pn.lineHeight,primaryPrevBtnBg:new Ii.C(Pn.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:Pn.wireframe?"transparent":Pn.colorFillContent,primaryNextBtnHoverBg:new Ii.C(Pn.colorBgTextHover).onBackground(Pn.colorWhite).toRgbString()},(0,ro.wZ)({contentRadius:Pn.borderRadiusLG,limitVerticalRadius:!0})),(0,Ar.w)(Pn));var oi=(0,ai.I$)("Tour",Pn=>{const{borderRadiusLG:hr}=Pn,mt=(0,Ms.TS)(Pn,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:hr});return[jn(mt)]},wr),Ti=x(62625),Bi=function(Pn,hr){var mt={};for(var tt in Pn)Object.prototype.hasOwnProperty.call(Pn,tt)&&hr.indexOf(tt)<0&&(mt[tt]=Pn[tt]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tt=Object.getOwnPropertySymbols(Pn);kt{const{prefixCls:hr,current:mt=0,total:tt=6,className:kt,style:vn,type:vr}=Pn,qr=Bi(Pn,["prefixCls","current","total","className","style","type"]),{getPrefixCls:Ni}=v.useContext(un.E_),li=Ni("tour",hr),[Un,dn,xt]=oi(li);return Un(v.createElement(pe.t5,{prefixCls:li,hashId:dn,className:se()(kt,`${li}-pure`,vr&&`${li}-${vr}`,xt),style:vn},v.createElement(Mo,{stepProps:Object.assign(Object.assign({},qr),{prefixCls:li,total:tt}),current:mt,type:vr})))};var Vr=(0,Ti.i)(no),Rn=function(Pn,hr){var mt={};for(var tt in Pn)Object.prototype.hasOwnProperty.call(Pn,tt)&&hr.indexOf(tt)<0&&(mt[tt]=Pn[tt]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,tt=Object.getOwnPropertySymbols(Pn);kt{const{prefixCls:hr,type:mt,rootClassName:tt,indicatorsRender:kt,steps:vn}=Pn,vr=Rn(Pn,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:qr,direction:Ni,tour:li}=(0,v.useContext)(un.E_),Un=qr("tour",hr),[dn,xt,it]=oi(Un),[,Bt]=(0,on.ZP)(),rn=v.useMemo(()=>vn==null?void 0:vn.map(Fr=>{var jr;return Object.assign(Object.assign({},Fr),{className:se()(Fr.className,{[`${Un}-primary`]:((jr=Fr.type)!==null&&jr!==void 0?jr:mt)==="primary"})})}),[vn,mt]),ir=Fr=>{var jr;return(0,Vt.Z)({arrowPointAtCenter:(jr=Fr==null?void 0:Fr.arrowPointAtCenter)!==null&&jr!==void 0?jr:!0,autoAdjustOverflow:!0,offset:Bt.marginXXS,arrowWidth:Bt.sizePopupArrow,borderRadius:Bt.borderRadius})},tr=se()({[`${Un}-rtl`]:Ni==="rtl"},xt,it,tt),Jn=(Fr,jr)=>v.createElement(Mo,{type:mt,stepProps:Fr,current:jr,closeIcon:li==null?void 0:li.closeIcon,indicatorsRender:kt}),[nn,er]=(0,ze.Cn)("Tour",vr.zIndex);return dn(v.createElement(Tt.Z.Provider,{value:er},v.createElement(vt,Object.assign({},vr,{zIndex:nn,rootClassName:tr,prefixCls:Un,animated:!0,renderPanel:Jn,builtinPlacements:ir,steps:rn}))))};Xt._InternalPanelDoNotUseOrYouWillBeFired=Vr;var Sn=Xt},37111:function(St,me,x){"use strict";x.d(me,{Z:function(){return en}});var v=x(77617),z=x(49247),P=x(79384),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},W=A,X=x(44847),Y=function(rr,Pr){return v.createElement(X.Z,(0,P.Z)({},rr,{ref:Pr,icon:W}))},ie=v.forwardRef(Y),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},se=ae,Ie=function(rr,Pr){return v.createElement(X.Z,(0,P.Z)({},rr,{ref:Pr,icon:se}))},Be=v.forwardRef(Ie),Ce=x(92310),ct=x.n(Ce),nt=x(25769),Ge=x.n(nt),at=x(28647),Ye=x(6415),rt=x(64693),Gt=x(89308),yt=x(41123),Et=x(17763),ht=x(45897),Pe=x(39193),et=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{const Pr=Kr=>{const{keyCode:Xr}=Kr;Xr===Pe.Z.ENTER&&Kr.preventDefault()},Er=Kr=>{const{keyCode:Xr}=Kr,{onClick:Qo}=Cn;Xr===Pe.Z.ENTER&&Qo&&Qo()},{style:ui,noStyle:Gr,disabled:zr}=Cn,Ei=et(Cn,["style","noStyle","disabled"]);let Zi={};return Gr||(Zi=Object.assign({},Oe)),zr&&(Zi.pointerEvents="none"),Zi=Object.assign(Object.assign({},Zi),ui),v.createElement("div",Object.assign({role:"button",tabIndex:0,ref:rr},Ei,{onKeyDown:Pr,onKeyUp:Er,style:Zi}))}),ft=x(58798),Ct=x(50700),Xe=x(3773),hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Nt=hn,Te=function(rr,Pr){return v.createElement(X.Z,(0,P.Z)({},rr,{ref:Pr,icon:Nt}))},vt=v.forwardRef(Te),ze=x(20612),Vt=x(97446),Tt=x(7778),un=x(79263),on=x(10129),Lr=x(78600);const Yr=(Cn,rr,Pr,Er)=>{const{titleMarginBottom:ui,fontWeightStrong:Gr}=Er;return{marginBottom:ui,color:Pr,fontWeight:Gr,fontSize:Cn,lineHeight:rr}},fi=Cn=>{const rr=[1,2,3,4,5],Pr={};return rr.forEach(Er=>{Pr[` + h${Er}&, + div&-h${Er}, + div&-h${Er} > textarea, + h${Er} + `]=Yr(Cn[`fontSizeHeading${Er}`],Cn[`lineHeightHeading${Er}`],Cn.colorTextHeading,Cn)}),Pr},Xi=Cn=>{const{componentCls:rr}=Cn;return{"a&, a":Object.assign(Object.assign({},(0,Tt.N)(Cn)),{textDecoration:Cn.linkDecoration,"&:active, &:hover":{textDecoration:Cn.linkHoverDecoration},[`&[disabled], &${rr}-disabled`]:{color:Cn.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:Cn.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Qi=Cn=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:Cn.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:Cn.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:on.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:Cn.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),hi=Cn=>{const{componentCls:rr,paddingSM:Pr}=Cn,Er=Pr;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:Cn.calc(Cn.paddingSM).mul(-1).equal(),marginTop:Cn.calc(Er).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Lr.bf)(Er)})`},[`${rr}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:Cn.calc(Cn.marginXS).add(2).equal(),insetBlockEnd:Cn.marginXS,color:Cn.colorTextDescription,fontWeight:"normal",fontSize:Cn.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Go=Cn=>({[`${Cn.componentCls}-copy-success`]:{[` &, &:hover, - &:focus`]:{color:$a.colorSuccess}},[`${$a.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Lv=()=>({[` + &:focus`]:{color:Cn.colorSuccess}},[`${Cn.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Mo=()=>({[` a&-ellipsis, span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Je=$a=>{const{componentCls:Bd,titleMarginTop:Bg}=$a;return{[Bd]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:$a.colorText,wordBreak:"break-word",lineHeight:$a.lineHeight,[`&${Bd}-secondary`]:{color:$a.colorTextDescription},[`&${Bd}-success`]:{color:$a.colorSuccess},[`&${Bd}-warning`]:{color:$a.colorWarning},[`&${Bd}-danger`]:{color:$a.colorError,"a&:active, a&:focus":{color:$a.colorErrorActive},"a&:hover":{color:$a.colorErrorHover}},[`&${Bd}-disabled`]:{color:$a.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),pe=Cn=>{const{componentCls:rr,titleMarginTop:Pr}=Cn;return{[rr]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:Cn.colorText,wordBreak:"break-word",lineHeight:Cn.lineHeight,[`&${rr}-secondary`]:{color:Cn.colorTextDescription},[`&${rr}-success`]:{color:Cn.colorSuccess},[`&${rr}-warning`]:{color:Cn.colorWarning},[`&${rr}-danger`]:{color:Cn.colorError,"a&:active, a&:focus":{color:Cn.colorErrorActive},"a&:hover":{color:Cn.colorErrorHover}},[`&${rr}-disabled`]:{color:Cn.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` div&, p - `]:{marginBottom:"1em"}},e0($a)),{[` - & + h1${Bd}, - & + h2${Bd}, - & + h3${Bd}, - & + h4${Bd}, - & + h5${Bd} - `]:{marginTop:Bg},[` + `]:{marginBottom:"1em"}},fi(Cn)),{[` + & + h1${rr}, + & + h2${rr}, + & + h3${rr}, + & + h4${rr}, + & + h5${rr} + `]:{marginTop:Pr},[` div, ul, li, @@ -7360,69 +7355,69 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter + h3, + h4, + h5 - `]:{marginTop:Bg}}}),X0($a)),H0($a)),{[` - ${Bd}-expand, - ${Bd}-edit, - ${Bd}-copy - `]:Object.assign(Object.assign({},(0,oi.N)($a)),{marginInlineStart:$a.marginXXS})}),d0($a)),jv($a)),Lv()),{"&-rtl":{direction:"rtl"}})}},k0=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var G0=(0,Pa.I$)("Typography",$a=>[Je($a)],k0),u0=$a=>{const{prefixCls:Bd,"aria-label":Bg,className:Og,style:g0,direction:qg,maxLength:Xg,autoSize:A0=!0,value:nv,onSave:t0,onCancel:n0,onEnd:u1,component:Eg,enterIcon:a1=u.createElement(Zr,null)}=$a,Hg=u.useRef(null),Gd=u.useRef(!1),h0=u.useRef(),[lv,su]=u.useState(nv);u.useEffect(()=>{su(nv)},[nv]),u.useEffect(()=>{if(Hg.current&&Hg.current.resizableTextArea){const{textArea:R0}=Hg.current.resizableTextArea;R0.focus();const{length:gv}=R0.value;R0.setSelectionRange(gv,gv)}},[]);const hu=R0=>{let{target:gv}=R0;su(gv.value.replace(/[\n\r]/g,""))},ev=()=>{Gd.current=!0},sv=()=>{Gd.current=!1},yv=R0=>{let{keyCode:gv}=R0;Gd.current||(h0.current=gv)},$v=()=>{t0(lv.trim())},E0=R0=>{let{keyCode:gv,ctrlKey:G1,altKey:xy,metaKey:Dy,shiftKey:H1}=R0;h0.current===gv&&!Gd.current&&!G1&&!xy&&!Dy&&!H1&&(gv===Lt.Z.ENTER?($v(),u1==null||u1()):gv===Lt.Z.ESC&&n0())},E1=()=>{$v()},$1=Eg?`${Bd}-${Eg}`:"",[l0,z0,W0]=G0(Bd),Rv=ct()(Bd,`${Bd}-edit-content`,{[`${Bd}-rtl`]:qg==="rtl"},Og,$1,z0,W0);return l0(u.createElement("div",{className:Rv,style:g0},u.createElement(Zs.Z,{ref:Hg,maxLength:Xg,value:lv,onChange:hu,onKeyDown:yv,onKeyUp:E0,onCompositionStart:ev,onCompositionEnd:sv,onBlur:E1,"aria-label":Bg,rows:1,autoSize:A0}),a1!==null?(0,Ht.Tm)(a1,{className:`${Bd}-edit-content-confirm`}):null))};function B1($a,Bd){return u.useMemo(()=>{const Bg=!!$a;return[Bg,Object.assign(Object.assign({},Bd),Bg&&typeof $a=="object"?$a:null)]},[$a])}var zo=($a,Bd)=>{const Bg=u.useRef(!1);u.useEffect(()=>{Bg.current?$a():Bg.current=!0},Bd)},mu=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{const{prefixCls:Bg,component:Og="article",className:g0,rootClassName:qg,setContentRef:Xg,children:A0,direction:nv,style:t0}=$a,n0=mu($a,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:u1,direction:Eg,typography:a1}=u.useContext(on.E_),Hg=nv!=null?nv:Eg;let Gd=Bd;Xg&&(Gd=(0,Jr.sQ)(Bd,Xg));const h0=u1("typography",Bg),[lv,su,hu]=G0(h0),ev=ct()(h0,a1==null?void 0:a1.className,{[`${h0}-rtl`]:Hg==="rtl"},g0,qg,su,hu),sv=Object.assign(Object.assign({},a1==null?void 0:a1.style),t0);return lv(u.createElement(Og,Object.assign({className:ev,style:sv,ref:Gd},n0),A0))});function L0($a){const Bd=typeof $a;return Bd==="string"||Bd==="number"}function $0($a){let Bd=0;return $a.forEach(Bg=>{L0(Bg)?Bd+=String(Bg).length:Bd+=1}),Bd}function cv($a,Bd){let Bg=0;const Og=[];for(let g0=0;g0<$a.length;g0+=1){if(Bg===Bd)return Og;const qg=$a[g0],A0=L0(qg)?String(qg).length:1,nv=Bg+A0;if(nv>Bd){const t0=Bd-Bg;return Og.push(String(qg).slice(0,t0)),Og}Og.push(qg),Bg=nv}return $a}const Gg=0,uu=1,Gs=2,Ia=3,lu=4;var Kr=$a=>{let{enabledMeasure:Bd,children:Bg,text:Og,width:g0,fontSize:qg,rows:Xg,onEllipsis:A0}=$a;const[[nv,t0,n0],u1]=u.useState([0,0,0]),[Eg,a1]=u.useState(0),[Hg,Gd]=u.useState(Gg),[h0,lv]=u.useState(0),su=u.useRef(null),hu=u.useRef(null),ev=u.useMemo(()=>(0,Ot.Z)(Og),[Og]),sv=u.useMemo(()=>$0(ev),[ev]),yv=u.useMemo(()=>!Bd||Hg!==Ia?Eg&&Hg!==lu&&Bd?Bg(cv(ev,Eg),Eg{Bd&&g0&&qg&&sv&&(Gd(uu),u1([0,Math.ceil(sv/2),sv]))},[Bd,g0,qg,Og,sv,Xg]),(0,wn.Z)(()=>{var $1;Hg===uu&&lv((($1=su.current)===null||$1===void 0?void 0:$1.offsetHeight)||0)},[Hg]),(0,wn.Z)(()=>{var $1,l0;if(h0){if(Hg===uu){const z0=(($1=hu.current)===null||$1===void 0?void 0:$1.offsetHeight)||0,W0=Xg*h0;z0<=W0?(Gd(lu),A0(!1)):Gd(Gs)}else if(Hg===Gs)if(nv!==n0){const z0=((l0=hu.current)===null||l0===void 0?void 0:l0.offsetHeight)||0,W0=Xg*h0;let Rv=nv,R0=n0;nv===n0-1?R0=nv:z0<=W0?Rv=t0:R0=t0;const gv=Math.ceil((Rv+R0)/2);u1([Rv,gv,R0])}else Gd(Ia),a1(t0),A0(!0)}},[Hg,nv,n0,Xg,h0]);const $v={width:g0,whiteSpace:"normal",margin:0,padding:0},E0=($1,l0,z0)=>u.createElement("span",{"aria-hidden":!0,ref:l0,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(qg/2)*2},z0)},$1),E1=($1,l0)=>{const z0=cv(ev,$1);return E0(Bg(z0,!0),l0,$v)};return u.createElement(u.Fragment,null,yv,Bd&&Hg!==Ia&&Hg!==lu&&u.createElement(u.Fragment,null,E0("lg",su,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Hg===uu?E0(Bg(ev,!1),hu,$v):E1(t0,hu)))},ri=$a=>{let{enabledEllipsis:Bd,isEllipsis:Bg,children:Og,tooltipProps:g0}=$a;return!(g0!=null&&g0.title)||!Bd?Og:u.createElement(vn.Z,Object.assign({open:Bg?void 0:!1},g0),Og)},Ra=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{var Bg,Og,g0;const{prefixCls:qg,className:Xg,style:A0,type:nv,disabled:t0,children:n0,ellipsis:u1,editable:Eg,copyable:a1,component:Hg,title:Gd}=$a,h0=Ra($a,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:lv,direction:su}=u.useContext(on.E_),[hu]=(0,Hr.Z)("Text"),ev=u.useRef(null),sv=u.useRef(null),yv=lv("typography",qg),$v=(0,jr.Z)(h0,["mark","code","delete","underline","strong","keyboard","italic"]),[E0,E1]=B1(Eg),[$1,l0]=(0,Hs.Z)(!1,{value:E1.editing}),{triggerType:z0=["icon"]}=E1,W0=J_=>{var ax;J_&&((ax=E1.onStart)===null||ax===void 0||ax.call(E1)),l0(J_)};zo(()=>{var J_;$1||(J_=sv.current)===null||J_===void 0||J_.focus()},[$1]);const Rv=J_=>{J_==null||J_.preventDefault(),W0(!0)},R0=J_=>{var ax;(ax=E1.onChange)===null||ax===void 0||ax.call(E1,J_),W0(!1)},gv=()=>{var J_;(J_=E1.onCancel)===null||J_===void 0||J_.call(E1),W0(!1)},[G1,xy]=B1(a1),[Dy,H1]=u.useState(!1),xd=u.useRef(null),Yg={};xy.format&&(Yg.format=xy.format);const r0=()=>{xd.current&&clearTimeout(xd.current)},No=J_=>{var ax;J_==null||J_.preventDefault(),J_==null||J_.stopPropagation(),rt()(xy.text||String(n0)||"",Yg),H1(!0),r0(),xd.current=setTimeout(()=>{H1(!1)},3e3),(ax=xy.onCopy)===null||ax===void 0||ax.call(xy,J_)};u.useEffect(()=>r0,[]);const[qt,Sr]=u.useState(!1),[si,Rs]=u.useState(!1),[wa,bu]=u.useState(!1),[s0,In]=u.useState(!1),[ga,Ga]=u.useState(!1),[Lu,dv]=u.useState(!0),[Cv,Wv]=B1(u1,{expandable:!1}),c1=Cv&&!wa,{rows:P1=1}=Wv,Z1=u.useMemo(()=>!c1||Wv.suffix!==void 0||Wv.onEllipsis||Wv.expandable||E0||G1,[c1,Wv,E0,G1]);(0,wn.Z)(()=>{Cv&&!Z1&&(Sr((0,Yn.G)("webkitLineClamp")),Rs((0,Yn.G)("textOverflow")))},[Z1,Cv]);const sy=u.useMemo(()=>Z1?!1:P1===1?si:qt,[Z1,si,qt]),wy=c1&&(sy?ga:s0),zy=c1&&P1===1&&sy,hv=c1&&P1>1&&sy,Qv=J_=>{var ax;bu(!0),(ax=Wv.onExpand)===null||ax===void 0||ax.call(Wv,J_)},[Y1,M_]=u.useState(0),[h1,_v]=u.useState(0),Iv=(J_,ax)=>{let{offsetWidth:rx}=J_;var ov;M_(rx),_v(parseInt((ov=window.getComputedStyle)===null||ov===void 0?void 0:ov.call(window,ax).fontSize,10)||0)},Ov=J_=>{var ax;In(J_),s0!==J_&&((ax=Wv.onEllipsis)===null||ax===void 0||ax.call(Wv,J_))};u.useEffect(()=>{const J_=ev.current;if(Cv&&sy&&J_){const ax=hv?J_.offsetHeight{const J_=ev.current;if(typeof IntersectionObserver=="undefined"||!J_||!sy||!c1)return;const ax=new IntersectionObserver(()=>{dv(!!J_.offsetParent)});return ax.observe(J_),()=>{ax.disconnect()}},[sy,c1]);let v1={};Wv.tooltip===!0?v1={title:(Bg=E1.text)!==null&&Bg!==void 0?Bg:n0}:u.isValidElement(Wv.tooltip)?v1={title:Wv.tooltip}:typeof Wv.tooltip=="object"?v1=Object.assign({title:(Og=E1.text)!==null&&Og!==void 0?Og:n0},Wv.tooltip):v1={title:Wv.tooltip};const K1=u.useMemo(()=>{const J_=ax=>["string","number"].includes(typeof ax);if(!(!Cv||sy)){if(J_(E1.text))return E1.text;if(J_(n0))return n0;if(J_(Gd))return Gd;if(J_(v1.title))return v1.title}},[Cv,sy,Gd,v1.title,wy]);if($1)return u.createElement(u0,{value:(g0=E1.text)!==null&&g0!==void 0?g0:typeof n0=="string"?n0:"",onSave:R0,onCancel:gv,onEnd:E1.onEnd,prefixCls:yv,className:Xg,style:A0,direction:su,component:Hg,maxLength:E1.maxLength,autoSize:E1.autoSize,enterIcon:E1.enterIcon});const sx=()=>{const{expandable:J_,symbol:ax}=Wv;if(!J_)return null;let rx;return ax?rx=ax:rx=hu==null?void 0:hu.expand,u.createElement("a",{key:"expand",className:`${yv}-expand`,onClick:Qv,"aria-label":hu==null?void 0:hu.expand},rx)},Kx=()=>{if(!E0)return;const{icon:J_,tooltip:ax}=E1,rx=(0,Ot.Z)(ax)[0]||(hu==null?void 0:hu.edit),ov=typeof rx=="string"?rx:"";return z0.includes("icon")?u.createElement(vn.Z,{key:"edit",title:ax===!1?"":rx},u.createElement(Rt,{ref:sv,className:`${yv}-edit`,onClick:Rv,"aria-label":ov},J_||u.createElement(ze,{role:"button"}))):null},t2=()=>{if(!G1)return null;const{tooltips:J_,icon:ax}=xy,rx=j0(J_),ov=j0(ax),rv=Dy?Jg(rx[1],hu==null?void 0:hu.copied):Jg(rx[0],hu==null?void 0:hu.copy),yd=Dy?hu==null?void 0:hu.copied:hu==null?void 0:hu.copy,kg=typeof rv=="string"?rv:yd;return u.createElement(vn.Z,{key:"copy",title:rv},u.createElement(Rt,{className:ct()(`${yv}-copy`,{[`${yv}-copy-success`]:Dy,[`${yv}-copy-icon-only`]:n0==null}),onClick:No,"aria-label":kg},Dy?Jg(ov[1],u.createElement(D.Z,null),!0):Jg(ov[0],u.createElement(S,null),!0)))},I2=J_=>[J_&&sx(),Kx(),t2()],D2=J_=>[J_&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Wo),Wv.suffix,I2(J_)];return u.createElement(It.Z,{onResize:Iv,disabled:!c1},J_=>u.createElement(ri,{tooltipProps:v1,enabledEllipsis:c1,isEllipsis:wy},u.createElement(c0,Object.assign({className:ct()({[`${yv}-${nv}`]:nv,[`${yv}-disabled`]:t0,[`${yv}-ellipsis`]:Cv,[`${yv}-single-line`]:c1&&P1===1,[`${yv}-ellipsis-single-line`]:zy,[`${yv}-ellipsis-multiple-line`]:hv},Xg),prefixCls:qg,style:Object.assign(Object.assign({},A0),{WebkitLineClamp:hv?P1:void 0}),component:Hg,ref:(0,Jr.sQ)(J_,ev,Bd),direction:su,onClick:z0.includes("text")?Rv:void 0,"aria-label":K1==null?void 0:K1.toString(),title:Gd},$v),u.createElement(Kr,{enabledMeasure:c1&&!sy,text:n0,rows:P1,width:Y1,fontSize:h1,onEllipsis:Ov},(ax,rx)=>{let ov=ax;return ax.length&&rx&&K1&&(ov=u.createElement("span",{key:"show-content","aria-hidden":!0},ov)),Sg($a,u.createElement(u.Fragment,null,ov,D2(rx)))}))))}),On=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{var{ellipsis:Bg,rel:Og}=$a,g0=On($a,["ellipsis","rel"]);const qg=Object.assign(Object.assign({},g0),{rel:Og===void 0&&g0.target==="_blank"?"noopener noreferrer":Og});return delete qg.navigate,u.createElement(qr,Object.assign({},qg,{ref:Bd,ellipsis:!!Bg,component:"a"}))}),gd=u.forwardRef(($a,Bd)=>u.createElement(qr,Object.assign({ref:Bd},$a,{component:"div"}))),Su=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{var{ellipsis:Bg}=$a,Og=Su($a,["ellipsis"]);const g0=u.useMemo(()=>Bg&&typeof Bg=="object"?(0,jr.Z)(Bg,["expandable","rows"]):Bg,[Bg]);return u.createElement(qr,Object.assign({ref:Bd},Og,{ellipsis:g0,component:"span"}))};var xa=u.forwardRef(xu),Td=function($a,Bd){var Bg={};for(var Og in $a)Object.prototype.hasOwnProperty.call($a,Og)&&Bd.indexOf(Og)<0&&(Bg[Og]=$a[Og]);if($a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g0=0,Og=Object.getOwnPropertySymbols($a);g0{const{level:Bg=1}=$a,Og=Td($a,["level"]);let g0;return jg.includes(Bg)?g0=`h${Bg}`:g0="h1",u.createElement(qr,Object.assign({ref:Bd},Og,{component:g0}))});const Bs=c0;Bs.Text=xa,Bs.Link=ui,Bs.Title=tv,Bs.Paragraph=gd;var Sa=Bs},43536:function(c,g,l){"use strict";l.d(g,{Z:function(){return rv}});var u=l(77617),D=l(49397),b=l(79161),x=l(92310),y=l.n(x),w=l(79384),a=l(61577),S=l(22946),I=l(7963),N=l(3711),ie=l(71038),ze=l(16514),Ie=l(54131),ct=l(56348),At=l(33202),rt=l(13255),It=l(90304),Ot=l(64834),wn=l(32188),Hs=function(yd,kg){if(yd&&kg){var Vg=Array.isArray(kg)?kg:kg.split(","),wv=yd.name||"",b1=yd.type||"",I1=b1.replace(/\/.*$/,"");return Vg.some(function(k1){var S1=k1.trim();if(/^\*(\/\*)?$/.test(k1))return!0;if(S1.charAt(0)==="."){var Ay=wv.toLowerCase(),U1=S1.toLowerCase(),E_=[U1];return(U1===".jpg"||U1===".jpeg")&&(E_=[".jpg",".jpeg"]),E_.some(function(ty){return Ay.endsWith(ty)})}return/\/\*$/.test(S1)?I1===S1.replace(/\/.*$/,""):b1===S1?!0:/^\w+$/.test(S1)?((0,wn.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(S1,"'.Skip for check.")),!0):!1})}return!0};function jr(yd,kg){var Vg="cannot ".concat(yd.method," ").concat(yd.action," ").concat(kg.status,"'"),wv=new Error(Vg);return wv.status=kg.status,wv.method=yd.method,wv.url=yd.action,wv}function Jr(yd){var kg=yd.responseText||yd.response;if(!kg)return kg;try{return JSON.parse(kg)}catch(Vg){return kg}}function Yn(yd){var kg=new XMLHttpRequest;yd.onProgress&&kg.upload&&(kg.upload.onprogress=function(I1){I1.total>0&&(I1.percent=I1.loaded/I1.total*100),yd.onProgress(I1)});var Vg=new FormData;yd.data&&Object.keys(yd.data).forEach(function(b1){var I1=yd.data[b1];if(Array.isArray(I1)){I1.forEach(function(k1){Vg.append("".concat(b1,"[]"),k1)});return}Vg.append(b1,I1)}),yd.file instanceof Blob?Vg.append(yd.filename,yd.file,yd.file.name):Vg.append(yd.filename,yd.file),kg.onerror=function(I1){yd.onError(I1)},kg.onload=function(){return kg.status<200||kg.status>=300?yd.onError(jr(yd,kg),Jr(kg)):yd.onSuccess(Jr(kg),kg)},kg.open(yd.method,yd.action,!0),yd.withCredentials&&"withCredentials"in kg&&(kg.withCredentials=!0);var wv=yd.headers||{};return wv["X-Requested-With"]!==null&&kg.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(wv).forEach(function(b1){wv[b1]!==null&&kg.setRequestHeader(b1,wv[b1])}),kg.send(Vg),{abort:function(){kg.abort()}}}function Lt(yd,kg){var Vg=yd.createReader(),wv=[];function b1(){Vg.readEntries(function(I1){var k1=Array.prototype.slice.apply(I1);wv=wv.concat(k1);var S1=!k1.length;S1?kg(wv):b1()})}b1()}var _n=function(kg,Vg,wv){var b1=function I1(k1,S1){k1&&(k1.path=S1||"",k1.isFile?k1.file(function(Ay){wv(Ay)&&(k1.fullPath&&!Ay.webkitRelativePath&&(Object.defineProperties(Ay,{webkitRelativePath:{writable:!0}}),Ay.webkitRelativePath=k1.fullPath.replace(/^\//,""),Object.defineProperties(Ay,{webkitRelativePath:{writable:!1}})),Vg([Ay]))}):k1.isDirectory&&Lt(k1,function(Ay){Ay.forEach(function(U1){I1(U1,"".concat(S1).concat(k1.name,"/"))})}))};kg.forEach(function(I1){b1(I1.webkitGetAsEntry())})},Mt=_n,Bt=+new Date,Rt=0;function on(){return"rc-upload-".concat(Bt,"-").concat(++Rt)}var Hr=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],vn=function(yd){(0,N.Z)(Vg,yd);var kg=(0,ie.Z)(Vg);function Vg(){var wv;(0,a.Z)(this,Vg);for(var b1=arguments.length,I1=new Array(b1),k1=0;k1{const{componentCls:kg,iconCls:Vg}=yd;return{[`${kg}-wrapper`]:{[`${kg}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yd.colorFillAlter,border:`${(0,d0.bf)(yd.lineWidth)} dashed ${yd.colorBorder}`,borderRadius:yd.borderRadiusLG,cursor:"pointer",transition:`border-color ${yd.motionDurationSlow}`,[kg]:{padding:yd.padding},[`${kg}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:yd.borderRadiusLG,"&:focus-visible":{outline:`${(0,d0.bf)(yd.lineWidthFocus)} solid ${yd.colorPrimaryBorder}`}},[`${kg}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${kg}-disabled):hover, - &-hover:not(${kg}-disabled) - `]:{borderColor:yd.colorPrimaryHover},[`p${kg}-drag-icon`]:{marginBottom:yd.margin,[Vg]:{color:yd.colorPrimary,fontSize:yd.uploadThumbnailSize}},[`p${kg}-text`]:{margin:`0 0 ${(0,d0.bf)(yd.marginXXS)}`,color:yd.colorTextHeading,fontSize:yd.fontSizeLG},[`p${kg}-hint`]:{color:yd.colorTextDescription,fontSize:yd.fontSize},[`&${kg}-disabled`]:{[`p${kg}-drag-icon ${Vg}, - p${kg}-text, - p${kg}-hint - `]:{color:yd.colorTextDisabled}}}}}},k0=yd=>{const{componentCls:kg,antCls:Vg,iconCls:wv,fontSize:b1,lineHeight:I1,calc:k1}=yd,S1=`${kg}-list-item`,Ay=`${S1}-actions`,U1=`${S1}-action`,E_=yd.fontHeightSM;return{[`${kg}-wrapper`]:{[`${kg}-list`]:Object.assign(Object.assign({},(0,Ug.dF)()),{lineHeight:yd.lineHeight,[S1]:{position:"relative",height:k1(yd.lineHeight).mul(b1).equal(),marginTop:yd.marginXS,fontSize:b1,display:"flex",alignItems:"center",transition:`background-color ${yd.motionDurationSlow}`,"&:hover":{backgroundColor:yd.controlItemBgHover},[`${S1}-name`]:Object.assign(Object.assign({},Ug.vS),{padding:`0 ${(0,d0.bf)(yd.paddingXS)}`,lineHeight:I1,flex:"auto",transition:`all ${yd.motionDurationSlow}`}),[Ay]:{[U1]:{opacity:0},[wv]:{color:yd.actionsColor,transition:`all ${yd.motionDurationSlow}`},[` - ${U1}:focus-visible, - &.picture ${U1} - `]:{opacity:1},[`${U1}${Vg}-btn`]:{height:E_,border:0,lineHeight:1}},[`${kg}-icon ${wv}`]:{color:yd.colorTextDescription,fontSize:b1},[`${S1}-progress`]:{position:"absolute",bottom:yd.calc(yd.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:k1(b1).add(yd.paddingXS).equal(),fontSize:b1,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${S1}:hover ${U1}`]:{opacity:1},[`${S1}-error`]:{color:yd.colorError,[`${S1}-name, ${kg}-icon ${wv}`]:{color:yd.colorError},[Ay]:{[`${wv}, ${wv}:hover`]:{color:yd.colorError},[U1]:{opacity:1}}},[`${kg}-list-item-container`]:{transition:`opacity ${yd.motionDurationSlow}, height ${yd.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},G0=l(96504);const iv=new d0.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),u0=new d0.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Dg=yd=>{const{componentCls:kg}=yd,Vg=`${kg}-animate-inline`;return[{[`${kg}-wrapper`]:{[`${Vg}-appear, ${Vg}-enter, ${Vg}-leave`]:{animationDuration:yd.motionDurationSlow,animationTimingFunction:yd.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Vg}-appear, ${Vg}-enter`]:{animationName:iv},[`${Vg}-leave`]:{animationName:u0}}},{[`${kg}-wrapper`]:(0,G0.J$)(yd)},iv,u0]},zo=l(10129);const mu=yd=>{const{componentCls:kg,iconCls:Vg,uploadThumbnailSize:wv,uploadProgressOffset:b1,calc:I1}=yd,k1=`${kg}-list`,S1=`${k1}-item`;return{[`${kg}-wrapper`]:{[` - ${k1}${k1}-picture, - ${k1}${k1}-picture-card, - ${k1}${k1}-picture-circle - `]:{[S1]:{position:"relative",height:I1(wv).add(I1(yd.lineWidth).mul(2)).add(I1(yd.paddingXS).mul(2)).equal(),padding:yd.paddingXS,border:`${(0,d0.bf)(yd.lineWidth)} ${yd.lineType} ${yd.colorBorder}`,borderRadius:yd.borderRadiusLG,"&:hover":{background:"transparent"},[`${S1}-thumbnail`]:Object.assign(Object.assign({},Ug.vS),{width:wv,height:wv,lineHeight:(0,d0.bf)(I1(wv).add(yd.paddingSM).equal()),textAlign:"center",flex:"none",[Vg]:{fontSize:yd.fontSizeHeading2,color:yd.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${S1}-progress`]:{bottom:b1,width:`calc(100% - ${(0,d0.bf)(I1(yd.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:I1(wv).add(yd.paddingXS).equal()}},[`${S1}-error`]:{borderColor:yd.colorError,[`${S1}-thumbnail ${Vg}`]:{[`svg path[fill='${zo.iN[0]}']`]:{fill:yd.colorErrorBg},[`svg path[fill='${zo.iN.primary}']`]:{fill:yd.colorError}}},[`${S1}-uploading`]:{borderStyle:"dashed",[`${S1}-name`]:{marginBottom:b1}}},[`${k1}${k1}-picture-circle ${S1}`]:{[`&, &::before, ${S1}-thumbnail`]:{borderRadius:"50%"}}}}},Ag=yd=>{const{componentCls:kg,iconCls:Vg,fontSizeLG:wv,colorTextLightSolid:b1,calc:I1}=yd,k1=`${kg}-list`,S1=`${k1}-item`,Ay=yd.uploadPicCardSize;return{[` - ${kg}-wrapper${kg}-picture-card-wrapper, - ${kg}-wrapper${kg}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Ug.dF)()),{display:"inline-block",width:"100%",[`${kg}${kg}-select`]:{width:Ay,height:Ay,marginInlineEnd:yd.marginXS,marginBottom:yd.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:yd.colorFillAlter,border:`${(0,d0.bf)(yd.lineWidth)} dashed ${yd.colorBorder}`,borderRadius:yd.borderRadiusLG,cursor:"pointer",transition:`border-color ${yd.motionDurationSlow}`,[`> ${kg}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${kg}-disabled):hover`]:{borderColor:yd.colorPrimary}},[`${k1}${k1}-picture-card, ${k1}${k1}-picture-circle`]:{[`${k1}-item-container`]:{display:"inline-block",width:Ay,height:Ay,marginBlock:`0 ${(0,d0.bf)(yd.marginXS)}`,marginInline:`0 ${(0,d0.bf)(yd.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[S1]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,d0.bf)(I1(yd.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,d0.bf)(I1(yd.paddingXS).mul(2).equal())})`,backgroundColor:yd.colorBgMask,opacity:0,transition:`all ${yd.motionDurationSlow}`,content:'" "'}},[`${S1}:hover`]:{[`&::before, ${S1}-actions`]:{opacity:1}},[`${S1}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yd.motionDurationSlow}`,[` - ${Vg}-eye, - ${Vg}-download, - ${Vg}-delete - `]:{zIndex:10,width:wv,margin:`0 ${(0,d0.bf)(yd.marginXXS)}`,fontSize:wv,cursor:"pointer",transition:`all ${yd.motionDurationSlow}`,color:b1,"&:hover":{color:b1},svg:{verticalAlign:"baseline"}}},[`${S1}-thumbnail, ${S1}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${S1}-name`]:{display:"none",textAlign:"center"},[`${S1}-file + ${S1}-name`]:{position:"absolute",bottom:yd.margin,display:"block",width:`calc(100% - ${(0,d0.bf)(I1(yd.paddingXS).mul(2).equal())})`},[`${S1}-uploading`]:{[`&${S1}`]:{backgroundColor:yd.colorFillAlter},[`&::before, ${Vg}-eye, ${Vg}-download, ${Vg}-delete`]:{display:"none"}},[`${S1}-progress`]:{bottom:yd.marginXL,width:`calc(100% - ${(0,d0.bf)(I1(yd.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${kg}-wrapper${kg}-picture-circle-wrapper`]:{[`${kg}${kg}-select`]:{borderRadius:"50%"}}}};var L0=yd=>{const{componentCls:kg}=yd;return{[`${kg}-rtl`]:{direction:"rtl"}}};const $0=yd=>{const{componentCls:kg,colorTextDisabled:Vg}=yd;return{[`${kg}-wrapper`]:Object.assign(Object.assign({},(0,Ug.Wf)(yd)),{[kg]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${kg}-select`]:{display:"inline-block"},[`${kg}-disabled`]:{color:Vg,cursor:"not-allowed"}})}},cv=yd=>({actionsColor:yd.colorTextDescription});var Gg=(0,H0.I$)("Upload",yd=>{const{fontSizeHeading3:kg,fontHeight:Vg,lineWidth:wv,controlHeightLG:b1,calc:I1}=yd,k1=(0,X0.TS)(yd,{uploadThumbnailSize:I1(kg).mul(2).equal(),uploadProgressOffset:I1(I1(Vg).div(2)).add(wv).equal(),uploadPicCardSize:I1(b1).mul(2.55).equal()});return[$0(k1),Lv(k1),mu(k1),Ag(k1),k0(k1),Dg(k1),L0(k1),(0,e0.Z)(k1)]},cv),uu={icon:function(kg,Vg){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Vg}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:kg}}]}},name:"file",theme:"twotone"},Gs=uu,Ia=l(44847),lu=function(kg,Vg){return u.createElement(Ia.Z,(0,w.Z)({},kg,{ref:Vg,icon:Gs}))},_h=u.forwardRef(lu),Kr=l(20555),fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ri=fr,Ra=function(kg,Vg){return u.createElement(Ia.Z,(0,w.Z)({},kg,{ref:Vg,icon:ri}))},Sg=u.forwardRef(Ra),Jg={icon:function(kg,Vg){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:kg}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Vg}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Vg}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Vg}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:kg}}]}},name:"picture",theme:"twotone"},j0=Jg,Wo=function(kg,Vg){return u.createElement(Ia.Z,(0,w.Z)({},kg,{ref:Vg,icon:j0}))},Mo=u.forwardRef(Wo),qr=l(44516),On=l(51626),rn=l(12149),ui=l(20612),ya=l(99622);function gd(yd){return Object.assign(Object.assign({},yd),{lastModified:yd.lastModified,lastModifiedDate:yd.lastModifiedDate,name:yd.name,size:yd.size,type:yd.type,uid:yd.uid,percent:0,originFileObj:yd})}function Su(yd,kg){const Vg=(0,D.Z)(kg),wv=Vg.findIndex(b1=>{let{uid:I1}=b1;return I1===yd.uid});return wv===-1?Vg.push(yd):Vg[wv]=yd,Vg}function xu(yd,kg){const Vg=yd.uid!==void 0?"uid":"name";return kg.filter(wv=>wv[Vg]===yd[Vg])[0]}function xa(yd,kg){const Vg=yd.uid!==void 0?"uid":"name",wv=kg.filter(b1=>b1[Vg]!==yd[Vg]);return wv.length===kg.length?null:wv}const Td=function(){const kg=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),wv=kg[kg.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(wv)||[""])[0]},jg=yd=>yd.indexOf("image/")===0,Wa=yd=>{if(yd.type&&!yd.thumbUrl)return jg(yd.type);const kg=yd.thumbUrl||yd.url||"",Vg=Td(kg);return/^data:image\//.test(kg)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Vg)?!0:!(/^data:/.test(kg)||Vg)},tv=200;function Bs(yd){return new Promise(kg=>{if(!yd.type||!jg(yd.type)){kg("");return}const Vg=document.createElement("canvas");Vg.width=tv,Vg.height=tv,Vg.style.cssText=`position: fixed; left: 0; top: 0; width: ${tv}px; height: ${tv}px; z-index: 9999; display: none;`,document.body.appendChild(Vg);const wv=Vg.getContext("2d"),b1=new Image;if(b1.onload=()=>{const{width:I1,height:k1}=b1;let S1=tv,Ay=tv,U1=0,E_=0;I1>k1?(Ay=k1*(tv/I1),E_=-(Ay-S1)/2):(S1=I1*(tv/k1),U1=-(S1-Ay)/2),wv.drawImage(b1,U1,E_,S1,Ay);const ty=Vg.toDataURL();document.body.removeChild(Vg),window.URL.revokeObjectURL(b1.src),kg(ty)},b1.crossOrigin="anonymous",yd.type.startsWith("image/svg+xml")){const I1=new FileReader;I1.onload=()=>{I1.result&&typeof I1.result=="string"&&(b1.src=I1.result)},I1.readAsDataURL(yd)}else if(yd.type.startsWith("image/gif")){const I1=new FileReader;I1.onload=()=>{I1.result&&kg(I1.result)},I1.readAsDataURL(yd)}else b1.src=window.URL.createObjectURL(yd)})}var Sa=l(43755),$a=function(kg,Vg){return u.createElement(Ia.Z,(0,w.Z)({},kg,{ref:Vg,icon:Sa.Z}))},Bd=u.forwardRef($a),Bg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Og=Bg,g0=function(kg,Vg){return u.createElement(Ia.Z,(0,w.Z)({},kg,{ref:Vg,icon:Og}))},qg=u.forwardRef(g0),Xg=l(29338),A0=l(50555),nv=l(49247),t0=l(43418),n0=l(4531),u1=l(41123),Eg={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},a1=function(){var kg=(0,u.useRef)([]),Vg=(0,u.useRef)(null);return(0,u.useEffect)(function(){var wv=Date.now(),b1=!1;kg.current.forEach(function(I1){if(I1){b1=!0;var k1=I1.style;k1.transitionDuration=".3s, .3s, .3s, .06s",Vg.current&&wv-Vg.current<100&&(k1.transitionDuration="0s, 0s")}}),b1&&(Vg.current=Date.now())}),kg.current},Hg=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Gd=function(kg){var Vg=(0,Ie.Z)((0,Ie.Z)({},Eg),kg),wv=Vg.className,b1=Vg.percent,I1=Vg.prefixCls,k1=Vg.strokeColor,S1=Vg.strokeLinecap,Ay=Vg.strokeWidth,U1=Vg.style,E_=Vg.trailColor,ty=Vg.trailWidth,h_=Vg.transition,g_=(0,ct.Z)(Vg,Hg);delete g_.gapPosition;var ox=Array.isArray(b1)?b1:[b1],$_=Array.isArray(k1)?k1:[k1],K_=a1(),k_=Ay/2,A_=100-Ay/2,gx="M ".concat(S1==="round"?k_:0,",").concat(k_,` - L `).concat(S1==="round"?A_:100,",").concat(k_),Na="0 0 100 ".concat(Ay),_x=0;return u.createElement("svg",(0,w.Z)({className:y()("".concat(I1,"-line"),wv),viewBox:Na,preserveAspectRatio:"none",style:U1},g_),u.createElement("path",{className:"".concat(I1,"-line-trail"),d:gx,strokeLinecap:S1,stroke:E_,strokeWidth:ty||Ay,fillOpacity:"0"}),ox.map(function(c2,b2){var N2=1;switch(S1){case"round":N2=1-Ay/100;break;case"square":N2=1-Ay/2/100;break;default:N2=1;break}var j2={strokeDasharray:"".concat(c2*N2,"px, 100px"),strokeDashoffset:"-".concat(_x,"px"),transition:h_||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},mC=$_[b2]||$_[$_.length-1];return _x+=c2,u.createElement("path",{key:b2,className:"".concat(I1,"-line-path"),d:gx,strokeLinecap:S1,stroke:mC,strokeWidth:Ay,fillOpacity:"0",ref:function(EC){K_[b2]=EC},style:j2})}))},h0=Gd,lv=l(35372),su=l(10254),hu=0,ev=(0,su.Z)();function sv(){var yd;return ev?(yd=hu,hu+=1):yd="TEST_OR_SSR",yd}var yv=function(yd){var kg=u.useState(),Vg=(0,lv.Z)(kg,2),wv=Vg[0],b1=Vg[1];return u.useEffect(function(){b1("rc_progress_".concat(sv()))},[]),yd||wv},$v=function(kg){var Vg=kg.bg,wv=kg.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:Vg}},wv)};function E0(yd,kg){return Object.keys(yd).map(function(Vg){var wv=parseFloat(Vg),b1="".concat(Math.floor(wv*kg),"%");return"".concat(yd[Vg]," ").concat(b1)})}var E1=u.forwardRef(function(yd,kg){var Vg=yd.prefixCls,wv=yd.color,b1=yd.gradientId,I1=yd.radius,k1=yd.style,S1=yd.ptg,Ay=yd.strokeLinecap,U1=yd.strokeWidth,E_=yd.size,ty=yd.gapDegree,h_=wv&&(0,rt.Z)(wv)==="object",g_=h_?"#FFF":void 0,ox=E_/2,$_=u.createElement("circle",{className:"".concat(Vg,"-circle-path"),r:I1,cx:ox,cy:ox,stroke:g_,strokeLinecap:Ay,strokeWidth:U1,opacity:S1===0?0:1,style:k1,ref:kg});if(!h_)return $_;var K_="".concat(b1,"-conic"),k_=ty?"".concat(180+ty/2,"deg"):"0deg",A_=E0(wv,(360-ty)/360),gx=E0(wv,1),Na="conic-gradient(from ".concat(k_,", ").concat(A_.join(", "),")"),_x="linear-gradient(to ".concat(ty?"bottom":"top",", ").concat(gx.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:K_},$_),u.createElement("foreignObject",{x:0,y:0,width:E_,height:E_,mask:"url(#".concat(K_,")")},u.createElement($v,{bg:_x},u.createElement($v,{bg:Na}))))}),$1=E1,l0=100,z0=function(kg,Vg,wv,b1,I1,k1,S1,Ay,U1,E_){var ty=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h_=wv/100*360*((360-k1)/360),g_=k1===0?0:{bottom:0,top:180,left:90,right:-90}[S1],ox=(100-b1)/100*Vg;U1==="round"&&b1!==100&&(ox+=E_/2,ox>=Vg&&(ox=Vg-.01));var $_=l0/2;return{stroke:typeof Ay=="string"?Ay:void 0,strokeDasharray:"".concat(Vg,"px ").concat(kg),strokeDashoffset:ox+ty,transform:"rotate(".concat(I1+h_+g_,"deg)"),transformOrigin:"".concat($_,"px ").concat($_,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},W0=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Rv(yd){var kg=yd!=null?yd:[];return Array.isArray(kg)?kg:[kg]}var R0=function(kg){var Vg=(0,Ie.Z)((0,Ie.Z)({},Eg),kg),wv=Vg.id,b1=Vg.prefixCls,I1=Vg.steps,k1=Vg.strokeWidth,S1=Vg.trailWidth,Ay=Vg.gapDegree,U1=Ay===void 0?0:Ay,E_=Vg.gapPosition,ty=Vg.trailColor,h_=Vg.strokeLinecap,g_=Vg.style,ox=Vg.className,$_=Vg.strokeColor,K_=Vg.percent,k_=(0,ct.Z)(Vg,W0),A_=l0/2,gx=yv(wv),Na="".concat(gx,"-gradient"),_x=A_-k1/2,c2=Math.PI*2*_x,b2=U1>0?90+U1/2:-90,N2=c2*((360-U1)/360),j2=(0,rt.Z)(I1)==="object"?I1:{count:I1,space:2},mC=j2.count,XC=j2.space,EC=Rv(K_),Pw=Rv($_),Aw=Pw.find(function(VC){return VC&&(0,rt.Z)(VC)==="object"}),KC=Aw&&(0,rt.Z)(Aw)==="object",JS=KC?"butt":h_,sS=z0(c2,N2,0,100,b2,U1,E_,ty,JS,k1),UC=a1(),FS=function(){var vE=0;return EC.map(function(T1,ky){var $y=Pw[ky]||Pw[Pw.length-1],l_=z0(c2,N2,vE,T1,b2,U1,E_,$y,JS,k1);return vE+=T1,u.createElement($1,{key:ky,color:$y,ptg:T1,radius:_x,prefixCls:b1,gradientId:Na,style:l_,strokeLinecap:JS,strokeWidth:k1,gapDegree:U1,ref:function(Cx){UC[ky]=Cx},size:l0})}).reverse()},KS=function(){var vE=Math.round(mC*(EC[0]/100)),T1=100/mC,ky=0;return new Array(mC).fill(null).map(function($y,l_){var cx=l_<=vE-1?Pw[0]:ty,Cx=cx&&(0,rt.Z)(cx)==="object"?"url(#".concat(Na,")"):void 0,P2=z0(c2,N2,ky,T1,b2,U1,E_,cx,"butt",k1,XC);return ky+=(N2-P2.strokeDashoffset+XC)*100/N2,u.createElement("circle",{key:l_,className:"".concat(b1,"-circle-path"),r:_x,cx:A_,cy:A_,stroke:Cx,strokeWidth:k1,opacity:1,style:P2,ref:function(tx){UC[l_]=tx}})})};return u.createElement("svg",(0,w.Z)({className:y()("".concat(b1,"-circle"),ox),viewBox:"0 0 ".concat(l0," ").concat(l0),style:g_,id:wv,role:"presentation"},k_),!mC&&u.createElement("circle",{className:"".concat(b1,"-circle-trail"),r:_x,cx:A_,cy:A_,stroke:ty,strokeLinecap:JS,strokeWidth:S1||k1,style:sS}),mC?KS():FS())},gv=R0,G1={Line:h0,Circle:gv},xy=l(3773);function Dy(yd){return!yd||yd<0?0:yd>100?100:yd}function H1(yd){let{success:kg,successPercent:Vg}=yd,wv=Vg;return kg&&"progress"in kg&&(wv=kg.progress),kg&&"percent"in kg&&(wv=kg.percent),wv}const xd=yd=>{let{percent:kg,success:Vg,successPercent:wv}=yd;const b1=Dy(H1({success:Vg,successPercent:wv}));return[b1,Dy(Dy(kg)-b1)]},Yg=yd=>{let{success:kg={},strokeColor:Vg}=yd;const{strokeColor:wv}=kg;return[wv||zo.ez.green,Vg||null]},r0=(yd,kg,Vg)=>{var wv,b1,I1,k1;let S1=-1,Ay=-1;if(kg==="step"){const U1=Vg.steps,E_=Vg.strokeWidth;typeof yd=="string"||typeof yd=="undefined"?(S1=yd==="small"?2:14,Ay=E_!=null?E_:8):typeof yd=="number"?[S1,Ay]=[yd,yd]:[S1=14,Ay=8]=yd,S1*=U1}else if(kg==="line"){const U1=Vg==null?void 0:Vg.strokeWidth;typeof yd=="string"||typeof yd=="undefined"?Ay=U1||(yd==="small"?6:8):typeof yd=="number"?[S1,Ay]=[yd,yd]:[S1=-1,Ay=8]=yd}else(kg==="circle"||kg==="dashboard")&&(typeof yd=="string"||typeof yd=="undefined"?[S1,Ay]=yd==="small"?[60,60]:[120,120]:typeof yd=="number"?[S1,Ay]=[yd,yd]:(S1=(b1=(wv=yd[0])!==null&&wv!==void 0?wv:yd[1])!==null&&b1!==void 0?b1:120,Ay=(k1=(I1=yd[0])!==null&&I1!==void 0?I1:yd[1])!==null&&k1!==void 0?k1:120));return[S1,Ay]},No=3,qt=yd=>No/yd*100;var si=yd=>{const{prefixCls:kg,trailColor:Vg=null,strokeLinecap:wv="round",gapPosition:b1,gapDegree:I1,width:k1=120,type:S1,children:Ay,success:U1,size:E_=k1}=yd,[ty,h_]=r0(E_,"circle");let{strokeWidth:g_}=yd;g_===void 0&&(g_=Math.max(qt(ty),6));const ox={width:ty,height:h_,fontSize:ty*.15+6},$_=u.useMemo(()=>{if(I1||I1===0)return I1;if(S1==="dashboard")return 75},[I1,S1]),K_=b1||S1==="dashboard"&&"bottom"||void 0,k_=Object.prototype.toString.call(yd.strokeColor)==="[object Object]",A_=Yg({success:U1,strokeColor:yd.strokeColor}),gx=y()(`${kg}-inner`,{[`${kg}-circle-gradient`]:k_}),Na=u.createElement(gv,{percent:xd(yd),strokeWidth:g_,trailWidth:g_,strokeColor:A_,strokeLinecap:wv,trailColor:Vg,prefixCls:kg,gapDegree:$_,gapPosition:K_});return u.createElement("div",{className:gx,style:ox},ty<=20?u.createElement(xy.Z,{title:Ay},u.createElement("span",null,Na)):u.createElement(u.Fragment,null,Na,Ay))};const Rs="--progress-line-stroke-color",wa="--progress-percent",bu=yd=>{const kg=yd?"100%":"-100%";return new d0.E4(`antProgress${yd?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${kg}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${kg}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},s0=yd=>{const{componentCls:kg,iconCls:Vg}=yd;return{[kg]:Object.assign(Object.assign({},(0,Ug.Wf)(yd)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:yd.fontSize,marginInlineEnd:yd.marginXS,marginBottom:yd.marginXS},[`${kg}-outer`]:{display:"inline-block",width:"100%"},[`&${kg}-show-info`]:{[`${kg}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,d0.bf)(yd.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,d0.bf)(yd.paddingXS)})`}},[`${kg}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:yd.remainingColor,borderRadius:yd.lineBorderRadius},[`${kg}-inner:not(${kg}-circle-gradient)`]:{[`${kg}-circle-path`]:{stroke:yd.defaultColor}},[`${kg}-success-bg, ${kg}-bg`]:{position:"relative",background:yd.defaultColor,borderRadius:yd.lineBorderRadius,transition:`all ${yd.motionDurationSlow} ${yd.motionEaseInOutCirc}`},[`${kg}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Rs})`]},height:"100%",width:`calc(1 / var(${wa}) * 100%)`,display:"block"}},[`${kg}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:yd.colorSuccess},[`${kg}-text`]:{display:"inline-block",width:"2em",marginInlineStart:yd.marginXS,color:yd.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Vg]:{fontSize:yd.fontSize}},[`&${kg}-status-active`]:{[`${kg}-bg::before`]:{position:"absolute",inset:0,backgroundColor:yd.colorBgContainer,borderRadius:yd.lineBorderRadius,opacity:0,animationName:bu(),animationDuration:yd.progressActiveMotionDuration,animationTimingFunction:yd.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${kg}-rtl${kg}-status-active`]:{[`${kg}-bg::before`]:{animationName:bu(!0)}},[`&${kg}-status-exception`]:{[`${kg}-bg`]:{backgroundColor:yd.colorError},[`${kg}-text`]:{color:yd.colorError}},[`&${kg}-status-exception ${kg}-inner:not(${kg}-circle-gradient)`]:{[`${kg}-circle-path`]:{stroke:yd.colorError}},[`&${kg}-status-success`]:{[`${kg}-bg`]:{backgroundColor:yd.colorSuccess},[`${kg}-text`]:{color:yd.colorSuccess}},[`&${kg}-status-success ${kg}-inner:not(${kg}-circle-gradient)`]:{[`${kg}-circle-path`]:{stroke:yd.colorSuccess}}})}},In=yd=>{const{componentCls:kg,iconCls:Vg}=yd;return{[kg]:{[`${kg}-circle-trail`]:{stroke:yd.remainingColor},[`&${kg}-circle ${kg}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${kg}-circle ${kg}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:yd.circleTextColor,fontSize:yd.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Vg]:{fontSize:yd.circleIconFontSize}},[`${kg}-circle&-status-exception`]:{[`${kg}-text`]:{color:yd.colorError}},[`${kg}-circle&-status-success`]:{[`${kg}-text`]:{color:yd.colorSuccess}}},[`${kg}-inline-circle`]:{lineHeight:1,[`${kg}-inner`]:{verticalAlign:"bottom"}}}},ga=yd=>{const{componentCls:kg}=yd;return{[kg]:{[`${kg}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:yd.progressStepMinWidth,marginInlineEnd:yd.progressStepMarginInlineEnd,backgroundColor:yd.remainingColor,transition:`all ${yd.motionDurationSlow}`,"&-active":{backgroundColor:yd.defaultColor}}}}}},Ga=yd=>{const{componentCls:kg,iconCls:Vg}=yd;return{[kg]:{[`${kg}-small&-line, ${kg}-small&-line ${kg}-text ${Vg}`]:{fontSize:yd.fontSizeSM}}}},Lu=yd=>({circleTextColor:yd.colorText,defaultColor:yd.colorInfo,remainingColor:yd.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${yd.fontSize/yd.fontSizeSM}em`});var dv=(0,H0.I$)("Progress",yd=>{const kg=yd.calc(yd.marginXXS).div(2).equal(),Vg=(0,X0.TS)(yd,{progressStepMarginInlineEnd:kg,progressStepMinWidth:kg,progressActiveMotionDuration:"2.4s"});return[s0(Vg),In(Vg),ga(Vg),Ga(Vg)]},Lu),Cv=function(yd,kg){var Vg={};for(var wv in yd)Object.prototype.hasOwnProperty.call(yd,wv)&&kg.indexOf(wv)<0&&(Vg[wv]=yd[wv]);if(yd!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b1=0,wv=Object.getOwnPropertySymbols(yd);b1{let kg=[];return Object.keys(yd).forEach(Vg=>{const wv=parseFloat(Vg.replace(/%/g,""));isNaN(wv)||kg.push({key:wv,value:yd[Vg]})}),kg=kg.sort((Vg,wv)=>Vg.key-wv.key),kg.map(Vg=>{let{key:wv,value:b1}=Vg;return`${b1} ${wv}%`}).join(", ")},c1=(yd,kg)=>{const{from:Vg=zo.ez.blue,to:wv=zo.ez.blue,direction:b1=kg==="rtl"?"to left":"to right"}=yd,I1=Cv(yd,["from","to","direction"]);if(Object.keys(I1).length!==0){const S1=Wv(I1),Ay=`linear-gradient(${b1}, ${S1})`;return{background:Ay,[Rs]:Ay}}const k1=`linear-gradient(${b1}, ${Vg}, ${wv})`;return{background:k1,[Rs]:k1}};var Z1=yd=>{const{prefixCls:kg,direction:Vg,percent:wv,size:b1,strokeWidth:I1,strokeColor:k1,strokeLinecap:S1="round",children:Ay,trailColor:U1=null,success:E_}=yd,ty=k1&&typeof k1!="string"?c1(k1,Vg):{[Rs]:k1,background:k1},h_=S1==="square"||S1==="butt"?0:void 0,g_=b1!=null?b1:[-1,I1||(b1==="small"?6:8)],[ox,$_]=r0(g_,"line",{strokeWidth:I1}),K_={backgroundColor:U1||void 0,borderRadius:h_},k_=Object.assign(Object.assign({width:`${Dy(wv)}%`,height:$_,borderRadius:h_},ty),{[wa]:Dy(wv)/100}),A_=H1(yd),gx={width:`${Dy(A_)}%`,height:$_,borderRadius:h_,backgroundColor:E_==null?void 0:E_.strokeColor},Na={width:ox<0?"100%":ox,height:$_};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${kg}-outer`,style:Na},u.createElement("div",{className:`${kg}-inner`,style:K_},u.createElement("div",{className:`${kg}-bg`,style:k_}),A_!==void 0?u.createElement("div",{className:`${kg}-success-bg`,style:gx}):null)),Ay)},wy=yd=>{const{size:kg,steps:Vg,percent:wv=0,strokeWidth:b1=8,strokeColor:I1,trailColor:k1=null,prefixCls:S1,children:Ay}=yd,U1=Math.round(Vg*(wv/100)),E_=kg==="small"?2:14,ty=kg!=null?kg:[E_,b1],[h_,g_]=r0(ty,"step",{steps:Vg,strokeWidth:b1}),ox=h_/Vg,$_=new Array(Vg);for(let K_=0;K_{const{prefixCls:Vg,className:wv,rootClassName:b1,steps:I1,strokeColor:k1,percent:S1=0,size:Ay="default",showInfo:U1=!0,type:E_="line",status:ty,format:h_,style:g_}=yd,ox=zy(yd,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),$_=u.useMemo(()=>{var Pw,Aw;const KC=H1(yd);return parseInt(KC!==void 0?(Pw=KC!=null?KC:0)===null||Pw===void 0?void 0:Pw.toString():(Aw=S1!=null?S1:0)===null||Aw===void 0?void 0:Aw.toString(),10)},[S1,yd.success,yd.successPercent]),K_=u.useMemo(()=>!Qv.includes(ty)&&$_>=100?"success":ty||"normal",[ty,$_]),{getPrefixCls:k_,direction:A_,progress:gx}=u.useContext(oi.E_),Na=k_("progress",Vg),[_x,c2,b2]=dv(Na),N2=u.useMemo(()=>{if(!U1)return null;const Pw=H1(yd);let Aw;const KC=h_||(sS=>`${sS}%`),JS=E_==="line";return h_||K_!=="exception"&&K_!=="success"?Aw=KC(Dy(S1),Dy(Pw)):K_==="exception"?Aw=JS?u.createElement(t0.Z,null):u.createElement(n0.Z,null):K_==="success"&&(Aw=JS?u.createElement(A0.Z,null):u.createElement(nv.Z,null)),u.createElement("span",{className:`${Na}-text`,title:typeof Aw=="string"?Aw:void 0},Aw)},[U1,S1,$_,K_,E_,Na,h_]),j2=Array.isArray(k1)?k1[0]:k1,mC=typeof k1=="string"||Array.isArray(k1)?k1:void 0;let XC;E_==="line"?XC=I1?u.createElement(wy,Object.assign({},yd,{strokeColor:mC,prefixCls:Na,steps:I1}),N2):u.createElement(Z1,Object.assign({},yd,{strokeColor:j2,prefixCls:Na,direction:A_}),N2):(E_==="circle"||E_==="dashboard")&&(XC=u.createElement(si,Object.assign({},yd,{strokeColor:j2,prefixCls:Na,progressStatus:K_}),N2));const EC=y()(Na,`${Na}-status-${K_}`,`${Na}-${E_==="dashboard"&&"circle"||I1&&"steps"||E_}`,{[`${Na}-inline-circle`]:E_==="circle"&&r0(Ay,"circle")[0]<=20,[`${Na}-show-info`]:U1,[`${Na}-${Ay}`]:typeof Ay=="string",[`${Na}-rtl`]:A_==="rtl"},gx==null?void 0:gx.className,wv,b1,c2,b2);return _x(u.createElement("div",Object.assign({ref:kg,style:Object.assign(Object.assign({},gx==null?void 0:gx.style),g_),className:EC,role:"progressbar","aria-valuenow":$_},(0,u1.Z)(ox,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),XC))}),h1=M_,Iv=u.forwardRef((yd,kg)=>{let{prefixCls:Vg,className:wv,style:b1,locale:I1,listType:k1,file:S1,items:Ay,progress:U1,iconRender:E_,actionIconRender:ty,itemRender:h_,isImgUrl:g_,showPreviewIcon:ox,showRemoveIcon:$_,showDownloadIcon:K_,previewIcon:k_,removeIcon:A_,downloadIcon:gx,onPreview:Na,onDownload:_x,onClose:c2}=yd;var b2,N2;const{status:j2}=S1,[mC,XC]=u.useState(j2);u.useEffect(()=>{j2!=="removed"&&XC(j2)},[j2]);const[EC,Pw]=u.useState(!1);u.useEffect(()=>{const i2=setTimeout(()=>{Pw(!0)},300);return()=>{clearTimeout(i2)}},[]);const Aw=E_(S1);let KC=u.createElement("div",{className:`${Vg}-icon`},Aw);if(k1==="picture"||k1==="picture-card"||k1==="picture-circle")if(mC==="uploading"||!S1.thumbUrl&&!S1.url){const i2=y()(`${Vg}-list-item-thumbnail`,{[`${Vg}-list-item-file`]:mC!=="uploading"});KC=u.createElement("div",{className:i2},Aw)}else{const i2=g_!=null&&g_(S1)?u.createElement("img",{src:S1.thumbUrl||S1.url,alt:S1.name,className:`${Vg}-list-item-image`,crossOrigin:S1.crossOrigin}):Aw,tx=y()(`${Vg}-list-item-thumbnail`,{[`${Vg}-list-item-file`]:g_&&!g_(S1)});KC=u.createElement("a",{className:tx,onClick:z2=>Na(S1,z2),href:S1.url||S1.thumbUrl,target:"_blank",rel:"noopener noreferrer"},i2)}const JS=y()(`${Vg}-list-item`,`${Vg}-list-item-${mC}`),sS=typeof S1.linkProps=="string"?JSON.parse(S1.linkProps):S1.linkProps,UC=$_?ty((typeof A_=="function"?A_(S1):A_)||u.createElement(Bd,null),()=>c2(S1),Vg,I1.removeFile,!0):null,FS=K_&&mC==="done"?ty((typeof gx=="function"?gx(S1):gx)||u.createElement(qg,null),()=>_x(S1),Vg,I1.downloadFile):null,KS=k1!=="picture-card"&&k1!=="picture-circle"&&u.createElement("span",{key:"download-delete",className:y()(`${Vg}-list-item-actions`,{picture:k1==="picture"})},FS,UC),VC=y()(`${Vg}-list-item-name`),vE=S1.url?[u.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:VC,title:S1.name},sS,{href:S1.url,onClick:i2=>Na(S1,i2)}),S1.name),KS]:[u.createElement("span",{key:"view",className:VC,onClick:i2=>Na(S1,i2),title:S1.name},S1.name),KS],T1=ox&&(S1.url||S1.thumbUrl)?u.createElement("a",{href:S1.url||S1.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:i2=>Na(S1,i2),title:I1.previewFile},typeof k_=="function"?k_(S1):k_||u.createElement(Xg.Z,null)):null,ky=(k1==="picture-card"||k1==="picture-circle")&&mC!=="uploading"&&u.createElement("span",{className:`${Vg}-list-item-actions`},T1,mC==="done"&&FS,UC),{getPrefixCls:$y}=u.useContext(oi.E_),l_=$y(),cx=u.createElement("div",{className:JS},KC,vE,ky,EC&&u.createElement(qr.ZP,{motionName:`${l_}-fade`,visible:mC==="uploading",motionDeadline:2e3},i2=>{let{className:tx}=i2;const z2="percent"in S1?u.createElement(h1,Object.assign({},U1,{type:"line",percent:S1.percent,"aria-label":S1["aria-label"],"aria-labelledby":S1["aria-labelledby"]})):null;return u.createElement("div",{className:y()(`${Vg}-list-item-progress`,tx)},z2)})),Cx=S1.response&&typeof S1.response=="string"?S1.response:((b2=S1.error)===null||b2===void 0?void 0:b2.statusText)||((N2=S1.error)===null||N2===void 0?void 0:N2.message)||I1.uploadError,P2=mC==="error"?u.createElement(xy.Z,{title:Cx,getPopupContainer:i2=>i2.parentNode},cx):cx;return u.createElement("div",{className:y()(`${Vg}-list-item-container`,wv),style:b1,ref:kg},h_?h_(P2,S1,Ay,{download:_x.bind(null,S1),preview:Na.bind(null,S1),remove:c2.bind(null,S1)}):P2)});const Ov=(yd,kg)=>{const{listType:Vg="text",previewFile:wv=Bs,onPreview:b1,onDownload:I1,onRemove:k1,locale:S1,iconRender:Ay,isImageUrl:U1=Wa,prefixCls:E_,items:ty=[],showPreviewIcon:h_=!0,showRemoveIcon:g_=!0,showDownloadIcon:ox=!1,removeIcon:$_,previewIcon:K_,downloadIcon:k_,progress:A_={size:[-1,2],showInfo:!1},appendAction:gx,appendActionVisible:Na=!0,itemRender:_x,disabled:c2}=yd,b2=(0,On.Z)(),[N2,j2]=u.useState(!1);u.useEffect(()=>{Vg!=="picture"&&Vg!=="picture-card"&&Vg!=="picture-circle"||(ty||[]).forEach(T1=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(T1.originFileObj instanceof File||T1.originFileObj instanceof Blob)||T1.thumbUrl!==void 0||(T1.thumbUrl="",wv&&wv(T1.originFileObj).then(ky=>{T1.thumbUrl=ky||"",b2()}))})},[Vg,ty,wv]),u.useEffect(()=>{j2(!0)},[]);const mC=(T1,ky)=>{if(b1)return ky==null||ky.preventDefault(),b1(T1)},XC=T1=>{typeof I1=="function"?I1(T1):T1.url&&window.open(T1.url)},EC=T1=>{k1==null||k1(T1)},Pw=T1=>{if(Ay)return Ay(T1,Vg);const ky=T1.status==="uploading",$y=U1&&U1(T1)?u.createElement(Mo,null):u.createElement(_h,null);let l_=ky?u.createElement(Kr.Z,null):u.createElement(Sg,null);return Vg==="picture"?l_=ky?u.createElement(Kr.Z,null):$y:(Vg==="picture-card"||Vg==="picture-circle")&&(l_=ky?S1.uploading:$y),l_},Aw=(T1,ky,$y,l_,cx)=>{const Cx={type:"text",size:"small",title:l_,onClick:P2=>{ky(),(0,ui.l$)(T1)&&T1.props.onClick&&T1.props.onClick(P2)},className:`${$y}-list-item-action`};if(cx&&(Cx.disabled=c2),(0,ui.l$)(T1)){const P2=(0,ui.Tm)(T1,Object.assign(Object.assign({},T1.props),{onClick:()=>{}}));return u.createElement(ya.ZP,Object.assign({},Cx,{icon:P2}))}return u.createElement(ya.ZP,Object.assign({},Cx),u.createElement("span",null,T1))};u.useImperativeHandle(kg,()=>({handlePreview:mC,handleDownload:XC}));const{getPrefixCls:KC}=u.useContext(oi.E_),JS=KC("upload",E_),sS=KC(),UC=y()(`${JS}-list`,`${JS}-list-${Vg}`),FS=(0,D.Z)(ty.map(T1=>({key:T1.uid,file:T1})));let VC={motionDeadline:2e3,motionName:`${JS}-${Vg==="picture-card"||Vg==="picture-circle"?"animate-inline":"animate"}`,keys:FS,motionAppear:N2};const vE=u.useMemo(()=>{const T1=Object.assign({},(0,rn.Z)(sS));return delete T1.onAppearEnd,delete T1.onEnterEnd,delete T1.onLeaveEnd,T1},[sS]);return Vg!=="picture-card"&&Vg!=="picture-circle"&&(VC=Object.assign(Object.assign({},vE),VC)),u.createElement("div",{className:UC},u.createElement(qr.V4,Object.assign({},VC,{component:!1}),T1=>{let{key:ky,file:$y,className:l_,style:cx}=T1;return u.createElement(Iv,{key:ky,locale:S1,prefixCls:JS,className:l_,style:cx,file:$y,items:ty,progress:A_,listType:Vg,isImgUrl:U1,showPreviewIcon:h_,showRemoveIcon:g_,showDownloadIcon:ox,removeIcon:$_,previewIcon:K_,downloadIcon:k_,iconRender:Pw,actionIconRender:Aw,itemRender:_x,onPreview:mC,onDownload:XC,onClose:EC})}),gx&&u.createElement(qr.ZP,Object.assign({},VC,{visible:Na,forceRender:!0}),T1=>{let{className:ky,style:$y}=T1;return(0,ui.Tm)(gx,l_=>({className:y()(l_.className,ky),style:Object.assign(Object.assign(Object.assign({},$y),{pointerEvents:ky?"none":void 0}),l_.style)}))}))};var K1=u.forwardRef(Ov),sx=function(yd,kg,Vg,wv){function b1(I1){return I1 instanceof Vg?I1:new Vg(function(k1){k1(I1)})}return new(Vg||(Vg=Promise))(function(I1,k1){function S1(E_){try{U1(wv.next(E_))}catch(ty){k1(ty)}}function Ay(E_){try{U1(wv.throw(E_))}catch(ty){k1(ty)}}function U1(E_){E_.done?I1(E_.value):b1(E_.value).then(S1,Ay)}U1((wv=wv.apply(yd,kg||[])).next())})};const Kx=`__LIST_IGNORE_${Date.now()}__`,t2=(yd,kg)=>{const{fileList:Vg,defaultFileList:wv,onRemove:b1,showUploadList:I1=!0,listType:k1="text",onPreview:S1,onDownload:Ay,onChange:U1,onDrop:E_,previewFile:ty,disabled:h_,locale:g_,iconRender:ox,isImageUrl:$_,progress:K_,prefixCls:k_,className:A_,type:gx="select",children:Na,style:_x,itemRender:c2,maxCount:b2,data:N2={},multiple:j2=!1,hasControlInside:mC=!0,action:XC="",accept:EC="",supportServerRender:Pw=!0,rootClassName:Aw}=yd,KC=u.useContext(Pa.Z),JS=h_!=null?h_:KC,[sS,UC]=(0,Zs.Z)(wv||[],{value:Vg,postState:C2=>C2!=null?C2:[]}),[FS,KS]=u.useState("drop"),VC=u.useRef(null);u.useMemo(()=>{const C2=Date.now();(Vg||[]).forEach((q2,lw)=>{!q2.uid&&!Object.isFrozen(q2)&&(q2.uid=`__AUTO__${C2}_${lw}__`)})},[Vg]);const vE=(C2,q2,lw)=>{let eC=(0,D.Z)(q2),zC=!1;b2===1?eC=eC.slice(-1):b2&&(zC=eC.length>b2,eC=eC.slice(0,b2)),(0,b.flushSync)(()=>{UC(eC)});const dC={file:C2,fileList:eC};lw&&(dC.event=lw),(!zC||eC.some(YC=>YC.uid===C2.uid))&&(0,b.flushSync)(()=>{U1==null||U1(dC)})},T1=(C2,q2)=>sx(void 0,void 0,void 0,function*(){const{beforeUpload:lw,transformFile:eC}=yd;let zC=C2;if(lw){const dC=yield lw(C2,q2);if(dC===!1)return!1;if(delete C2[Kx],dC===Kx)return Object.defineProperty(C2,Kx,{value:!0,configurable:!0}),!1;typeof dC=="object"&&dC&&(zC=dC)}return eC&&(zC=yield eC(zC)),zC}),ky=C2=>{const q2=C2.filter(zC=>!zC.file[Kx]);if(!q2.length)return;const lw=q2.map(zC=>gd(zC.file));let eC=(0,D.Z)(sS);lw.forEach(zC=>{eC=Su(zC,eC)}),lw.forEach((zC,dC)=>{let YC=zC;if(q2[dC].parsedFile)zC.status="uploading";else{const{originFileObj:qC}=zC;let bS;try{bS=new File([qC],qC.name,{type:qC.type})}catch(tC){bS=new Blob([qC],{type:qC.type}),bS.name=qC.name,bS.lastModifiedDate=new Date,bS.lastModified=new Date().getTime()}bS.uid=zC.uid,YC=bS}vE(YC,eC)})},$y=(C2,q2,lw)=>{try{typeof C2=="string"&&(C2=JSON.parse(C2))}catch(dC){}if(!xu(q2,sS))return;const eC=gd(q2);eC.status="done",eC.percent=100,eC.response=C2,eC.xhr=lw;const zC=Su(eC,sS);vE(eC,zC)},l_=(C2,q2)=>{if(!xu(q2,sS))return;const lw=gd(q2);lw.status="uploading",lw.percent=C2.percent;const eC=Su(lw,sS);vE(lw,eC,C2)},cx=(C2,q2,lw)=>{if(!xu(lw,sS))return;const eC=gd(lw);eC.error=C2,eC.response=q2,eC.status="error";const zC=Su(eC,sS);vE(eC,zC)},Cx=C2=>{let q2;Promise.resolve(typeof b1=="function"?b1(C2):b1).then(lw=>{var eC;if(lw===!1)return;const zC=xa(C2,sS);zC&&(q2=Object.assign(Object.assign({},C2),{status:"removed"}),sS==null||sS.forEach(dC=>{const YC=q2.uid!==void 0?"uid":"name";dC[YC]===q2[YC]&&!Object.isFrozen(dC)&&(dC.status="removed")}),(eC=VC.current)===null||eC===void 0||eC.abort(q2),vE(q2,zC))})},P2=C2=>{KS(C2.type),C2.type==="drop"&&(E_==null||E_(C2))};u.useImperativeHandle(kg,()=>({onBatchStart:ky,onSuccess:$y,onProgress:l_,onError:cx,fileList:sS,upload:VC.current}));const{getPrefixCls:i2,direction:tx,upload:z2}=u.useContext(oi.E_),L2=i2("upload",k_),jw=Object.assign(Object.assign({onBatchStart:ky,onError:cx,onProgress:l_,onSuccess:$y},yd),{data:N2,multiple:j2,action:XC,accept:EC,supportServerRender:Pw,prefixCls:L2,disabled:JS,beforeUpload:T1,onChange:void 0,hasControlInside:mC});delete jw.className,delete jw.style,(!Na||JS)&&delete jw.id;const w2=`${L2}-wrapper`,[gw,vC,Fw]=Gg(L2,w2),[U2]=(0,Aa.Z)("Upload",Pg.Z.Upload),{showRemoveIcon:Tw,showPreviewIcon:q_,showDownloadIcon:Kw,removeIcon:Ny,previewIcon:dx,downloadIcon:bw}=typeof I1=="boolean"?{}:I1,Ow=typeof Tw=="undefined"?!JS:!!Tw,j1=(C2,q2)=>I1?u.createElement(K1,{prefixCls:L2,listType:k1,items:sS,previewFile:ty,onPreview:S1,onDownload:Ay,onRemove:Cx,showRemoveIcon:Ow,showPreviewIcon:q_,showDownloadIcon:Kw,removeIcon:Ny,previewIcon:dx,downloadIcon:bw,iconRender:ox,locale:Object.assign(Object.assign({},U2),g_),isImageUrl:$_,progress:K_,appendAction:C2,appendActionVisible:q2,itemRender:c2,disabled:JS}):C2,Px=y()(w2,A_,Aw,vC,Fw,z2==null?void 0:z2.className,{[`${L2}-rtl`]:tx==="rtl",[`${L2}-picture-card-wrapper`]:k1==="picture-card",[`${L2}-picture-circle-wrapper`]:k1==="picture-circle"}),Z_=Object.assign(Object.assign({},z2==null?void 0:z2.style),_x);if(gx==="drag"){const C2=y()(vC,L2,`${L2}-drag`,{[`${L2}-drag-uploading`]:sS.some(q2=>q2.status==="uploading"),[`${L2}-drag-hover`]:FS==="dragover",[`${L2}-disabled`]:JS,[`${L2}-rtl`]:tx==="rtl"});return gw(u.createElement("span",{className:Px},u.createElement("div",{className:C2,style:Z_,onDrop:P2,onDragOver:P2,onDragLeave:P2},u.createElement(Ht,Object.assign({},jw,{ref:VC,className:`${L2}-btn`}),u.createElement("div",{className:`${L2}-drag-container`},Na))),j1()))}const Vx=y()(L2,`${L2}-select`,{[`${L2}-disabled`]:JS}),kx=u.createElement("div",{className:Vx,style:Na?void 0:{display:"none"}},u.createElement(Ht,Object.assign({},jw,{ref:VC})));return gw(k1==="picture-card"||k1==="picture-circle"?u.createElement("span",{className:Px},j1(kx,!!Na)):u.createElement("span",{className:Px},kx,j1()))};var D2=u.forwardRef(t2),J_=function(yd,kg){var Vg={};for(var wv in yd)Object.prototype.hasOwnProperty.call(yd,wv)&&kg.indexOf(wv)<0&&(Vg[wv]=yd[wv]);if(yd!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b1=0,wv=Object.getOwnPropertySymbols(yd);b1{var{style:Vg,height:wv,hasControlInside:b1=!1}=yd,I1=J_(yd,["style","height","hasControlInside"]);return u.createElement(D2,Object.assign({ref:kg,hasControlInside:b1},I1,{type:"drag",style:Object.assign(Object.assign({},Vg),{height:wv})}))});const ov=D2;ov.Dragger=rx,ov.LIST_IGNORE=Kx;var rv=ov},5787:function(c,g,l){"use strict";var u=l(62561);Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var D=u(l(21173)),b=g.default=D.default},71003:function(c,g,l){"use strict";var u=l(62561);Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var D=u(l(10243)),b=g.default=D.default},21173:function(c,g,l){"use strict";var u=l(62561);Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var D=u(l(77821)),b=u(l(42839));const x={lang:Object.assign({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"]},D.default),timePickerLocale:Object.assign({},b.default)};var y=g.default=x},10243:function(c,g,l){"use strict";var u=l(62561);Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var D=u(l(15737)),b=u(l(67644));const x={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},D.default),timePickerLocale:Object.assign({},b.default)};x.lang.ok="\u786E\u5B9A";var y=g.default=x},40098:function(c,g,l){"use strict";var u,D=l(62561);u={value:!0},g.Z=void 0;var b=D(l(65870)),x=D(l(5787)),y=D(l(21173)),w=D(l(42839));const a="${label} is not a valid ${type}",S={locale:"en",Pagination:b.default,DatePicker:y.default,TimePicker:w.default,Calendar:x.default,global:{placeholder:"Please select"},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",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"},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:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};var I=g.Z=S},91825:function(c,g,l){"use strict";var u,D=l(62561);u={value:!0},g.Z=void 0;var b=D(l(25157)),x=D(l(71003)),y=D(l(10243)),w=D(l(67644));const a="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",S={locale:"zh-cn",Pagination:b.default,DatePicker:y.default,TimePicker:w.default,Calendar:x.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var I=g.Z=S},42839:function(c,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;const l={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var u=g.default=l},67644:function(c,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;const l={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var u=g.default=l},86251:function(c,g){"use strict";g.byteLength=a,g.toByteArray=I,g.fromByteArray=ze;for(var l=[],u=[],D=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,y=b.length;x0)throw new Error("Invalid string. Length must be a multiple of 4");var At=Ie.indexOf("=");At===-1&&(At=ct);var rt=At===ct?0:4-At%4;return[At,rt]}function a(Ie){var ct=w(Ie),At=ct[0],rt=ct[1];return(At+rt)*3/4-rt}function S(Ie,ct,At){return(ct+At)*3/4-At}function I(Ie){var ct,At=w(Ie),rt=At[0],It=At[1],Ot=new D(S(Ie,rt,It)),wn=0,Hs=It>0?rt-4:rt,jr;for(jr=0;jr>16&255,Ot[wn++]=ct>>8&255,Ot[wn++]=ct&255;return It===2&&(ct=u[Ie.charCodeAt(jr)]<<2|u[Ie.charCodeAt(jr+1)]>>4,Ot[wn++]=ct&255),It===1&&(ct=u[Ie.charCodeAt(jr)]<<10|u[Ie.charCodeAt(jr+1)]<<4|u[Ie.charCodeAt(jr+2)]>>2,Ot[wn++]=ct>>8&255,Ot[wn++]=ct&255),Ot}function N(Ie){return l[Ie>>18&63]+l[Ie>>12&63]+l[Ie>>6&63]+l[Ie&63]}function ie(Ie,ct,At){for(var rt,It=[],Ot=ct;OtHs?Hs:wn+Ot));return rt===1?(ct=Ie[At-1],It.push(l[ct>>2]+l[ct<<4&63]+"==")):rt===2&&(ct=(Ie[At-2]<<8)+Ie[At-1],It.push(l[ct>>10]+l[ct>>4&63]+l[ct<<2&63]+"=")),It.join("")}},71041:function(c,g,l){"use strict";var u=l(28263);c.exports=function(x){x=x||{};var y=x.reporter,w=u.getOption(x,"async",!0),a=u.getOption(x,"auto",!0);a&&!w&&(y&&y.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),w=!0);var S=D(),I,N=!1;function ie(Ot,wn){!N&&a&&w&&S.size()===0&&ct(),S.add(Ot,wn)}function ze(){for(N=!0;S.size();){var Ot=S;S=D(),Ot.process()}N=!1}function Ie(Ot){N||(Ot===void 0&&(Ot=w),I&&(rt(I),I=null),Ot?ct():ze())}function ct(){I=It(ze)}function At(){S={},batchSize=0,topLevel=0,bottomLevel=0}function rt(Ot){var wn=clearTimeout;return wn(Ot)}function It(Ot){var wn=function(Hs){return setTimeout(Hs,0)};return wn(Ot)}return{add:ie,force:Ie}};function D(){var b={},x=0,y=0,w=0;function a(N,ie){ie||(ie=N,N=0),N>y?y=N:N=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return Dg|0}function Ot(Dg){return+Dg!=Dg&&(Dg=0),S.alloc(+Dg)}S.isBuffer=function(zo){return!!(zo!=null&&zo._isBuffer)},S.compare=function(zo,mu){if(!S.isBuffer(zo)||!S.isBuffer(mu))throw new TypeError("Arguments must be Buffers");if(zo===mu)return 0;for(var Ag=zo.length,c0=mu.length,L0=0,$0=Math.min(Ag,c0);L0<$0;++L0)if(zo[L0]!==mu[L0]){Ag=zo[L0],c0=mu[L0];break}return Ag>>1;case"base64":return iv(Dg).length;default:if(Ag)return Je(Dg).length;zo=(""+zo).toLowerCase(),Ag=!0}}S.byteLength=wn;function Hs(Dg,zo,mu){var Ag=!1;if((zo===void 0||zo<0)&&(zo=0),zo>this.length||((mu===void 0||mu>this.length)&&(mu=this.length),mu<=0)||(mu>>>=0,zo>>>=0,mu<=zo))return"";for(Dg||(Dg="utf8");;)switch(Dg){case"hex":return Ht(this,zo,mu);case"utf8":case"utf-8":return vn(this,zo,mu);case"ascii":return gt(this,zo,mu);case"latin1":case"binary":return Zr(this,zo,mu);case"base64":return Hr(this,zo,mu);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zs(this,zo,mu);default:if(Ag)throw new TypeError("Unknown encoding: "+Dg);Dg=(Dg+"").toLowerCase(),Ag=!0}}S.prototype._isBuffer=!0;function jr(Dg,zo,mu){var Ag=Dg[zo];Dg[zo]=Dg[mu],Dg[mu]=Ag}S.prototype.swap16=function(){var zo=this.length;if(zo%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var mu=0;mu0&&(zo=this.toString("hex",0,mu).match(/.{2}/g).join(" "),this.length>mu&&(zo+=" ... ")),""},S.prototype.compare=function(zo,mu,Ag,c0,L0){if(!S.isBuffer(zo))throw new TypeError("Argument must be a Buffer");if(mu===void 0&&(mu=0),Ag===void 0&&(Ag=zo?zo.length:0),c0===void 0&&(c0=0),L0===void 0&&(L0=this.length),mu<0||Ag>zo.length||c0<0||L0>this.length)throw new RangeError("out of range index");if(c0>=L0&&mu>=Ag)return 0;if(c0>=L0)return-1;if(mu>=Ag)return 1;if(mu>>>=0,Ag>>>=0,c0>>>=0,L0>>>=0,this===zo)return 0;for(var $0=L0-c0,cv=Ag-mu,Gg=Math.min($0,cv),uu=this.slice(c0,L0),Gs=zo.slice(mu,Ag),Ia=0;Ia2147483647?mu=2147483647:mu<-2147483648&&(mu=-2147483648),mu=+mu,isNaN(mu)&&(mu=c0?0:Dg.length-1),mu<0&&(mu=Dg.length+mu),mu>=Dg.length){if(c0)return-1;mu=Dg.length-1}else if(mu<0)if(c0)mu=0;else return-1;if(typeof zo=="string"&&(zo=S.from(zo,Ag)),S.isBuffer(zo))return zo.length===0?-1:Yn(Dg,zo,mu,Ag,c0);if(typeof zo=="number")return zo=zo&255,S.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?c0?Uint8Array.prototype.indexOf.call(Dg,zo,mu):Uint8Array.prototype.lastIndexOf.call(Dg,zo,mu):Yn(Dg,[zo],mu,Ag,c0);throw new TypeError("val must be string, number or Buffer")}function Yn(Dg,zo,mu,Ag,c0){var L0=1,$0=Dg.length,cv=zo.length;if(Ag!==void 0&&(Ag=String(Ag).toLowerCase(),Ag==="ucs2"||Ag==="ucs-2"||Ag==="utf16le"||Ag==="utf-16le")){if(Dg.length<2||zo.length<2)return-1;L0=2,$0/=2,cv/=2,mu/=2}function Gg(_h,Kr){return L0===1?_h[Kr]:_h.readUInt16BE(Kr*L0)}var uu;if(c0){var Gs=-1;for(uu=mu;uu<$0;uu++)if(Gg(Dg,uu)===Gg(zo,Gs===-1?0:uu-Gs)){if(Gs===-1&&(Gs=uu),uu-Gs+1===cv)return Gs*L0}else Gs!==-1&&(uu-=uu-Gs),Gs=-1}else for(mu+cv>$0&&(mu=$0-cv),uu=mu;uu>=0;uu--){for(var Ia=!0,lu=0;luc0&&(Ag=c0)):Ag=c0;var L0=zo.length;if(L0%2!==0)throw new TypeError("Invalid hex string");Ag>L0/2&&(Ag=L0/2);for(var $0=0;$0L0)&&(Ag=L0),zo.length>0&&(Ag<0||mu<0)||mu>this.length)throw new RangeError("Attempt to write outside buffer bounds");c0||(c0="utf8");for(var $0=!1;;)switch(c0){case"hex":return Lt(this,zo,mu,Ag);case"utf8":case"utf-8":return _n(this,zo,mu,Ag);case"ascii":return Mt(this,zo,mu,Ag);case"latin1":case"binary":return Bt(this,zo,mu,Ag);case"base64":return Rt(this,zo,mu,Ag);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return on(this,zo,mu,Ag);default:if($0)throw new TypeError("Unknown encoding: "+c0);c0=(""+c0).toLowerCase(),$0=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Hr(Dg,zo,mu){return zo===0&&mu===Dg.length?D.fromByteArray(Dg):D.fromByteArray(Dg.slice(zo,mu))}function vn(Dg,zo,mu){mu=Math.min(Dg.length,mu);for(var Ag=[],c0=zo;c0239?4:L0>223?3:L0>191?2:1;if(c0+cv<=mu){var Gg,uu,Gs,Ia;switch(cv){case 1:L0<128&&($0=L0);break;case 2:Gg=Dg[c0+1],(Gg&192)===128&&(Ia=(L0&31)<<6|Gg&63,Ia>127&&($0=Ia));break;case 3:Gg=Dg[c0+1],uu=Dg[c0+2],(Gg&192)===128&&(uu&192)===128&&(Ia=(L0&15)<<12|(Gg&63)<<6|uu&63,Ia>2047&&(Ia<55296||Ia>57343)&&($0=Ia));break;case 4:Gg=Dg[c0+1],uu=Dg[c0+2],Gs=Dg[c0+3],(Gg&192)===128&&(uu&192)===128&&(Gs&192)===128&&(Ia=(L0&15)<<18|(Gg&63)<<12|(uu&63)<<6|Gs&63,Ia>65535&&Ia<1114112&&($0=Ia))}}$0===null?($0=65533,cv=1):$0>65535&&($0-=65536,Ag.push($0>>>10&1023|55296),$0=56320|$0&1023),Ag.push($0),c0+=cv}return ai(Ag)}var Ca=4096;function ai(Dg){var zo=Dg.length;if(zo<=Ca)return String.fromCharCode.apply(String,Dg);for(var mu="",Ag=0;AgAg)&&(mu=Ag);for(var c0="",L0=zo;L0Ag&&(zo=Ag),mu<0?(mu+=Ag,mu<0&&(mu=0)):mu>Ag&&(mu=Ag),mumu)throw new RangeError("Trying to access beyond buffer length")}S.prototype.readUIntLE=function(zo,mu,Ag){zo=zo|0,mu=mu|0,Ag||oi(zo,mu,this.length);for(var c0=this[zo],L0=1,$0=0;++$00&&(L0*=256);)c0+=this[zo+--mu]*L0;return c0},S.prototype.readUInt8=function(zo,mu){return mu||oi(zo,1,this.length),this[zo]},S.prototype.readUInt16LE=function(zo,mu){return mu||oi(zo,2,this.length),this[zo]|this[zo+1]<<8},S.prototype.readUInt16BE=function(zo,mu){return mu||oi(zo,2,this.length),this[zo]<<8|this[zo+1]},S.prototype.readUInt32LE=function(zo,mu){return mu||oi(zo,4,this.length),(this[zo]|this[zo+1]<<8|this[zo+2]<<16)+this[zo+3]*16777216},S.prototype.readUInt32BE=function(zo,mu){return mu||oi(zo,4,this.length),this[zo]*16777216+(this[zo+1]<<16|this[zo+2]<<8|this[zo+3])},S.prototype.readIntLE=function(zo,mu,Ag){zo=zo|0,mu=mu|0,Ag||oi(zo,mu,this.length);for(var c0=this[zo],L0=1,$0=0;++$0=L0&&(c0-=Math.pow(2,8*mu)),c0},S.prototype.readIntBE=function(zo,mu,Ag){zo=zo|0,mu=mu|0,Ag||oi(zo,mu,this.length);for(var c0=mu,L0=1,$0=this[zo+--c0];c0>0&&(L0*=256);)$0+=this[zo+--c0]*L0;return L0*=128,$0>=L0&&($0-=Math.pow(2,8*mu)),$0},S.prototype.readInt8=function(zo,mu){return mu||oi(zo,1,this.length),this[zo]&128?(255-this[zo]+1)*-1:this[zo]},S.prototype.readInt16LE=function(zo,mu){mu||oi(zo,2,this.length);var Ag=this[zo]|this[zo+1]<<8;return Ag&32768?Ag|4294901760:Ag},S.prototype.readInt16BE=function(zo,mu){mu||oi(zo,2,this.length);var Ag=this[zo+1]|this[zo]<<8;return Ag&32768?Ag|4294901760:Ag},S.prototype.readInt32LE=function(zo,mu){return mu||oi(zo,4,this.length),this[zo]|this[zo+1]<<8|this[zo+2]<<16|this[zo+3]<<24},S.prototype.readInt32BE=function(zo,mu){return mu||oi(zo,4,this.length),this[zo]<<24|this[zo+1]<<16|this[zo+2]<<8|this[zo+3]},S.prototype.readFloatLE=function(zo,mu){return mu||oi(zo,4,this.length),b.read(this,zo,!0,23,4)},S.prototype.readFloatBE=function(zo,mu){return mu||oi(zo,4,this.length),b.read(this,zo,!1,23,4)},S.prototype.readDoubleLE=function(zo,mu){return mu||oi(zo,8,this.length),b.read(this,zo,!0,52,8)},S.prototype.readDoubleBE=function(zo,mu){return mu||oi(zo,8,this.length),b.read(this,zo,!1,52,8)};function Pa(Dg,zo,mu,Ag,c0,L0){if(!S.isBuffer(Dg))throw new TypeError('"buffer" argument must be a Buffer instance');if(zo>c0||zoDg.length)throw new RangeError("Index out of range")}S.prototype.writeUIntLE=function(zo,mu,Ag,c0){if(zo=+zo,mu=mu|0,Ag=Ag|0,!c0){var L0=Math.pow(2,8*Ag)-1;Pa(this,zo,mu,Ag,L0,0)}var $0=1,cv=0;for(this[mu]=zo&255;++cv=0&&(cv*=256);)this[mu+$0]=zo/cv&255;return mu+Ag},S.prototype.writeUInt8=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,1,255,0),S.TYPED_ARRAY_SUPPORT||(zo=Math.floor(zo)),this[mu]=zo&255,mu+1};function Aa(Dg,zo,mu,Ag){zo<0&&(zo=65535+zo+1);for(var c0=0,L0=Math.min(Dg.length-mu,2);c0>>(Ag?c0:1-c0)*8}S.prototype.writeUInt16LE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo&255,this[mu+1]=zo>>>8):Aa(this,zo,mu,!0),mu+2},S.prototype.writeUInt16BE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo>>>8,this[mu+1]=zo&255):Aa(this,zo,mu,!1),mu+2};function Pg(Dg,zo,mu,Ag){zo<0&&(zo=4294967295+zo+1);for(var c0=0,L0=Math.min(Dg.length-mu,4);c0>>(Ag?c0:3-c0)*8&255}S.prototype.writeUInt32LE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[mu+3]=zo>>>24,this[mu+2]=zo>>>16,this[mu+1]=zo>>>8,this[mu]=zo&255):Pg(this,zo,mu,!0),mu+4},S.prototype.writeUInt32BE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo>>>24,this[mu+1]=zo>>>16,this[mu+2]=zo>>>8,this[mu+3]=zo&255):Pg(this,zo,mu,!1),mu+4},S.prototype.writeIntLE=function(zo,mu,Ag,c0){if(zo=+zo,mu=mu|0,!c0){var L0=Math.pow(2,8*Ag-1);Pa(this,zo,mu,Ag,L0-1,-L0)}var $0=0,cv=1,Gg=0;for(this[mu]=zo&255;++$0>0)-Gg&255;return mu+Ag},S.prototype.writeIntBE=function(zo,mu,Ag,c0){if(zo=+zo,mu=mu|0,!c0){var L0=Math.pow(2,8*Ag-1);Pa(this,zo,mu,Ag,L0-1,-L0)}var $0=Ag-1,cv=1,Gg=0;for(this[mu+$0]=zo&255;--$0>=0&&(cv*=256);)zo<0&&Gg===0&&this[mu+$0+1]!==0&&(Gg=1),this[mu+$0]=(zo/cv>>0)-Gg&255;return mu+Ag},S.prototype.writeInt8=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,1,127,-128),S.TYPED_ARRAY_SUPPORT||(zo=Math.floor(zo)),zo<0&&(zo=255+zo+1),this[mu]=zo&255,mu+1},S.prototype.writeInt16LE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo&255,this[mu+1]=zo>>>8):Aa(this,zo,mu,!0),mu+2},S.prototype.writeInt16BE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo>>>8,this[mu+1]=zo&255):Aa(this,zo,mu,!1),mu+2},S.prototype.writeInt32LE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,4,2147483647,-2147483648),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo&255,this[mu+1]=zo>>>8,this[mu+2]=zo>>>16,this[mu+3]=zo>>>24):Pg(this,zo,mu,!0),mu+4},S.prototype.writeInt32BE=function(zo,mu,Ag){return zo=+zo,mu=mu|0,Ag||Pa(this,zo,mu,4,2147483647,-2147483648),zo<0&&(zo=4294967295+zo+1),S.TYPED_ARRAY_SUPPORT?(this[mu]=zo>>>24,this[mu+1]=zo>>>16,this[mu+2]=zo>>>8,this[mu+3]=zo&255):Pg(this,zo,mu,!1),mu+4};function Ug(Dg,zo,mu,Ag,c0,L0){if(mu+Ag>Dg.length)throw new RangeError("Index out of range");if(mu<0)throw new RangeError("Index out of range")}function e0(Dg,zo,mu,Ag,c0){return c0||Ug(Dg,zo,mu,4,34028234663852886e22,-34028234663852886e22),b.write(Dg,zo,mu,Ag,23,4),mu+4}S.prototype.writeFloatLE=function(zo,mu,Ag){return e0(this,zo,mu,!0,Ag)},S.prototype.writeFloatBE=function(zo,mu,Ag){return e0(this,zo,mu,!1,Ag)};function H0(Dg,zo,mu,Ag,c0){return c0||Ug(Dg,zo,mu,8,17976931348623157e292,-17976931348623157e292),b.write(Dg,zo,mu,Ag,52,8),mu+8}S.prototype.writeDoubleLE=function(zo,mu,Ag){return H0(this,zo,mu,!0,Ag)},S.prototype.writeDoubleBE=function(zo,mu,Ag){return H0(this,zo,mu,!1,Ag)},S.prototype.copy=function(zo,mu,Ag,c0){if(Ag||(Ag=0),!c0&&c0!==0&&(c0=this.length),mu>=zo.length&&(mu=zo.length),mu||(mu=0),c0>0&&c0=this.length)throw new RangeError("sourceStart out of bounds");if(c0<0)throw new RangeError("sourceEnd out of bounds");c0>this.length&&(c0=this.length),zo.length-mu=0;--$0)zo[$0+mu]=this[$0+Ag];else if(L0<1e3||!S.TYPED_ARRAY_SUPPORT)for($0=0;$0>>0,Ag=Ag===void 0?this.length:Ag>>>0,zo||(zo=0);var $0;if(typeof zo=="number")for($0=mu;$055295&&mu<57344){if(!c0){if(mu>56319){(zo-=3)>-1&&L0.push(239,191,189);continue}else if($0+1===Ag){(zo-=3)>-1&&L0.push(239,191,189);continue}c0=mu;continue}if(mu<56320){(zo-=3)>-1&&L0.push(239,191,189),c0=mu;continue}mu=(c0-55296<<10|mu-56320)+65536}else c0&&(zo-=3)>-1&&L0.push(239,191,189);if(c0=null,mu<128){if((zo-=1)<0)break;L0.push(mu)}else if(mu<2048){if((zo-=2)<0)break;L0.push(mu>>6|192,mu&63|128)}else if(mu<65536){if((zo-=3)<0)break;L0.push(mu>>12|224,mu>>6&63|128,mu&63|128)}else if(mu<1114112){if((zo-=4)<0)break;L0.push(mu>>18|240,mu>>12&63|128,mu>>6&63|128,mu&63|128)}else throw new Error("Invalid code point")}return L0}function k0(Dg){for(var zo=[],mu=0;mu>8,c0=mu%256,L0.push(c0),L0.push(Ag);return L0}function iv(Dg){return D.toByteArray(d0(Dg))}function u0(Dg,zo,mu,Ag){for(var c0=0;c0=zo.length||c0>=Dg.length);++c0)zo[c0+mu]=Dg[c0];return c0}function B1(Dg){return Dg!==Dg}},23148:function(c,g,l){"use strict";var u=l(3091),D=l(16617),b=D(u("String.prototype.indexOf"));c.exports=function(y,w){var a=u(y,!!w);return typeof a=="function"&&b(y,".prototype.")>-1?D(a):a}},16617:function(c,g,l){"use strict";var u=l(36723),D=l(3091),b=l(79350),x=l(61054),y=D("%Function.prototype.apply%"),w=D("%Function.prototype.call%"),a=D("%Reflect.apply%",!0)||u.call(w,y),S=l(31989),I=D("%Math.max%");c.exports=function(ze){if(typeof ze!="function")throw new x("a function is required");var Ie=a(u,w,arguments);return b(Ie,1+I(0,ze.length-(arguments.length-1)),!0)};var N=function(){return a(u,y,arguments)};S?S(c.exports,"apply",{value:N}):c.exports.apply=N},67751:function(c){var g={utf8:{stringToBytes:function(l){return g.bin.stringToBytes(unescape(encodeURIComponent(l)))},bytesToString:function(l){return decodeURIComponent(escape(g.bin.bytesToString(l)))}},bin:{stringToBytes:function(l){for(var u=[],D=0;D1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oi="";return typeof Ht=="string"?oi=At(Ht,Zs):Ht instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Ht==null?void 0:Ht.type)?oi=At(Ht.value,Zs):(oi=N()(Ht),ie("copy")),oi},It=rt;function Ot(Zr){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ot=function(Zs){return typeof Zs}:Ot=function(Zs){return Zs&&typeof Symbol=="function"&&Zs.constructor===Symbol&&Zs!==Symbol.prototype?"symbol":typeof Zs},Ot(Zr)}var wn=function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Zs=Ht.action,oi=Zs===void 0?"copy":Zs,Pa=Ht.container,Aa=Ht.target,Pg=Ht.text;if(oi!=="copy"&&oi!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Aa!==void 0)if(Aa&&Ot(Aa)==="object"&&Aa.nodeType===1){if(oi==="copy"&&Aa.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oi==="cut"&&(Aa.hasAttribute("readonly")||Aa.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Pg)return It(Pg,{container:Pa});if(Aa)return oi==="cut"?Ie(Aa):It(Aa,{container:Pa})},Hs=wn;function jr(Zr){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jr=function(Zs){return typeof Zs}:jr=function(Zs){return Zs&&typeof Symbol=="function"&&Zs.constructor===Symbol&&Zs!==Symbol.prototype?"symbol":typeof Zs},jr(Zr)}function Jr(Zr,Ht){if(!(Zr instanceof Ht))throw new TypeError("Cannot call a class as a function")}function Yn(Zr,Ht){for(var Zs=0;Zs0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Pa.action=="function"?Pa.action:this.defaultAction,this.target=typeof Pa.target=="function"?Pa.target:this.defaultTarget,this.text=typeof Pa.text=="function"?Pa.text:this.defaultText,this.container=jr(Pa.container)==="object"?Pa.container:document.body}},{key:"listenClick",value:function(Pa){var Aa=this;this.listener=S()(Pa,"click",function(Pg){return Aa.onClick(Pg)})}},{key:"onClick",value:function(Pa){var Aa=Pa.delegateTarget||Pa.currentTarget,Pg=this.action(Aa)||"copy",Ug=Hs({action:Pg,container:this.container,target:this.target(Aa),text:this.text(Aa)});this.emit(Ug?"success":"error",{action:Pg,text:Ug,trigger:Aa,clearSelection:function(){Aa&&Aa.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Pa){return Ca("action",Pa)}},{key:"defaultTarget",value:function(Pa){var Aa=Ca("target",Pa);if(Aa)return document.querySelector(Aa)}},{key:"defaultText",value:function(Pa){return Ca("text",Pa)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Pa){var Aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return It(Pa,Aa)}},{key:"cut",value:function(Pa){return Ie(Pa)}},{key:"isSupported",value:function(){var Pa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Aa=typeof Pa=="string"?[Pa]:Pa,Pg=!!document.queryCommandSupported;return Aa.forEach(function(Ug){Pg=Pg&&!!document.queryCommandSupported(Ug)}),Pg}}]),Zs}(w()),gt=ai},828:function(D){var b=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var x=Element.prototype;x.matches=x.matchesSelector||x.mozMatchesSelector||x.msMatchesSelector||x.oMatchesSelector||x.webkitMatchesSelector}function y(w,a){for(;w&&w.nodeType!==b;){if(typeof w.matches=="function"&&w.matches(a))return w;w=w.parentNode}}D.exports=y},438:function(D,b,x){var y=x(828);function w(I,N,ie,ze,Ie){var ct=S.apply(this,arguments);return I.addEventListener(ie,ct,Ie),{destroy:function(){I.removeEventListener(ie,ct,Ie)}}}function a(I,N,ie,ze,Ie){return typeof I.addEventListener=="function"?w.apply(null,arguments):typeof ie=="function"?w.bind(null,document).apply(null,arguments):(typeof I=="string"&&(I=document.querySelectorAll(I)),Array.prototype.map.call(I,function(ct){return w(ct,N,ie,ze,Ie)}))}function S(I,N,ie,ze){return function(Ie){Ie.delegateTarget=y(Ie.target,N),Ie.delegateTarget&&ze.call(I,Ie)}}D.exports=a},879:function(D,b){b.node=function(x){return x!==void 0&&x instanceof HTMLElement&&x.nodeType===1},b.nodeList=function(x){var y=Object.prototype.toString.call(x);return x!==void 0&&(y==="[object NodeList]"||y==="[object HTMLCollection]")&&"length"in x&&(x.length===0||b.node(x[0]))},b.string=function(x){return typeof x=="string"||x instanceof String},b.fn=function(x){var y=Object.prototype.toString.call(x);return y==="[object Function]"}},370:function(D,b,x){var y=x(879),w=x(438);function a(ie,ze,Ie){if(!ie&&!ze&&!Ie)throw new Error("Missing required arguments");if(!y.string(ze))throw new TypeError("Second argument must be a String");if(!y.fn(Ie))throw new TypeError("Third argument must be a Function");if(y.node(ie))return S(ie,ze,Ie);if(y.nodeList(ie))return I(ie,ze,Ie);if(y.string(ie))return N(ie,ze,Ie);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function S(ie,ze,Ie){return ie.addEventListener(ze,Ie),{destroy:function(){ie.removeEventListener(ze,Ie)}}}function I(ie,ze,Ie){return Array.prototype.forEach.call(ie,function(ct){ct.addEventListener(ze,Ie)}),{destroy:function(){Array.prototype.forEach.call(ie,function(ct){ct.removeEventListener(ze,Ie)})}}}function N(ie,ze,Ie){return w(document.body,ie,ze,Ie)}D.exports=a},817:function(D){function b(x){var y;if(x.nodeName==="SELECT")x.focus(),y=x.value;else if(x.nodeName==="INPUT"||x.nodeName==="TEXTAREA"){var w=x.hasAttribute("readonly");w||x.setAttribute("readonly",""),x.select(),x.setSelectionRange(0,x.value.length),w||x.removeAttribute("readonly"),y=x.value}else{x.hasAttribute("contenteditable")&&x.focus();var a=window.getSelection(),S=document.createRange();S.selectNodeContents(x),a.removeAllRanges(),a.addRange(S),y=a.toString()}return y}D.exports=b},279:function(D){function b(){}b.prototype={on:function(x,y,w){var a=this.e||(this.e={});return(a[x]||(a[x]=[])).push({fn:y,ctx:w}),this},once:function(x,y,w){var a=this;function S(){a.off(x,S),y.apply(w,arguments)}return S._=y,this.on(x,S,w)},emit:function(x){var y=[].slice.call(arguments,1),w=((this.e||(this.e={}))[x]||[]).slice(),a=0,S=w.length;for(a;a1&&(I-=1)),[I*360,N*100,ct*100]},b.rgb.hwb=function(y){const w=y[0],a=y[1];let S=y[2];const I=b.rgb.hsl(y)[0],N=1/255*Math.min(w,Math.min(a,S));return S=1-1/255*Math.max(w,Math.max(a,S)),[I,N*100,S*100]},b.rgb.cmyk=function(y){const w=y[0]/255,a=y[1]/255,S=y[2]/255,I=Math.min(1-w,1-a,1-S),N=(1-w-I)/(1-I)||0,ie=(1-a-I)/(1-I)||0,ze=(1-S-I)/(1-I)||0;return[N*100,ie*100,ze*100,I*100]};function x(y,w){return o4(y[0]-w[0],2)+o4(y[1]-w[1],2)+o4(y[2]-w[2],2)}b.rgb.keyword=function(y){const w=D[y];if(w)return w;let a=1/0,S;for(const I of Object.keys(u)){const N=u[I],ie=x(y,N);ie.04045?o4((w+.055)/1.055,2.4):w/12.92,a=a>.04045?o4((a+.055)/1.055,2.4):a/12.92,S=S>.04045?o4((S+.055)/1.055,2.4):S/12.92;const I=w*.4124+a*.3576+S*.1805,N=w*.2126+a*.7152+S*.0722,ie=w*.0193+a*.1192+S*.9505;return[I*100,N*100,ie*100]},b.rgb.lab=function(y){const w=b.rgb.xyz(y);let a=w[0],S=w[1],I=w[2];a/=95.047,S/=100,I/=108.883,a=a>.008856?o4(a,1/3):7.787*a+16/116,S=S>.008856?o4(S,1/3):7.787*S+16/116,I=I>.008856?o4(I,1/3):7.787*I+16/116;const N=116*S-16,ie=500*(a-S),ze=200*(S-I);return[N,ie,ze]},b.hsl.rgb=function(y){const w=y[0]/360,a=y[1]/100,S=y[2]/100;let I,N,ie;if(a===0)return ie=S*255,[ie,ie,ie];S<.5?I=S*(1+a):I=S+a-S*a;const ze=2*S-I,Ie=[0,0,0];for(let ct=0;ct<3;ct++)N=w+1/3*-(ct-1),N<0&&N++,N>1&&N--,6*N<1?ie=ze+(I-ze)*6*N:2*N<1?ie=I:3*N<2?ie=ze+(I-ze)*(2/3-N)*6:ie=ze,Ie[ct]=ie*255;return Ie},b.hsl.hsv=function(y){const w=y[0];let a=y[1]/100,S=y[2]/100,I=a;const N=Math.max(S,.01);S*=2,a*=S<=1?S:2-S,I*=N<=1?N:2-N;const ie=(S+a)/2,ze=S===0?2*I/(N+I):2*a/(S+a);return[w,ze*100,ie*100]},b.hsv.rgb=function(y){const w=y[0]/60,a=y[1]/100;let S=y[2]/100;const I=Math.floor(w)%6,N=w-Math.floor(w),ie=255*S*(1-a),ze=255*S*(1-a*N),Ie=255*S*(1-a*(1-N));switch(S*=255,I){case 0:return[S,Ie,ie];case 1:return[ze,S,ie];case 2:return[ie,S,Ie];case 3:return[ie,ze,S];case 4:return[Ie,ie,S];case 5:return[S,ie,ze]}},b.hsv.hsl=function(y){const w=y[0],a=y[1]/100,S=y[2]/100,I=Math.max(S,.01);let N,ie;ie=(2-a)*S;const ze=(2-a)*I;return N=a*I,N/=ze<=1?ze:2-ze,N=N||0,ie/=2,[w,N*100,ie*100]},b.hwb.rgb=function(y){const w=y[0]/360;let a=y[1]/100,S=y[2]/100;const I=a+S;let N;I>1&&(a/=I,S/=I);const ie=Math.floor(6*w),ze=1-S;N=6*w-ie,ie&1&&(N=1-N);const Ie=a+N*(ze-a);let ct,At,rt;switch(ie){default:case 6:case 0:ct=ze,At=Ie,rt=a;break;case 1:ct=Ie,At=ze,rt=a;break;case 2:ct=a,At=ze,rt=Ie;break;case 3:ct=a,At=Ie,rt=ze;break;case 4:ct=Ie,At=a,rt=ze;break;case 5:ct=ze,At=a,rt=Ie;break}return[ct*255,At*255,rt*255]},b.cmyk.rgb=function(y){const w=y[0]/100,a=y[1]/100,S=y[2]/100,I=y[3]/100,N=1-Math.min(1,w*(1-I)+I),ie=1-Math.min(1,a*(1-I)+I),ze=1-Math.min(1,S*(1-I)+I);return[N*255,ie*255,ze*255]},b.xyz.rgb=function(y){const w=y[0]/100,a=y[1]/100,S=y[2]/100;let I,N,ie;return I=w*3.2406+a*-1.5372+S*-.4986,N=w*-.9689+a*1.8758+S*.0415,ie=w*.0557+a*-.204+S*1.057,I=I>.0031308?1.055*o4(I,1/2.4)-.055:I*12.92,N=N>.0031308?1.055*o4(N,1/2.4)-.055:N*12.92,ie=ie>.0031308?1.055*o4(ie,1/2.4)-.055:ie*12.92,I=Math.min(Math.max(0,I),1),N=Math.min(Math.max(0,N),1),ie=Math.min(Math.max(0,ie),1),[I*255,N*255,ie*255]},b.xyz.lab=function(y){let w=y[0],a=y[1],S=y[2];w/=95.047,a/=100,S/=108.883,w=w>.008856?o4(w,1/3):7.787*w+16/116,a=a>.008856?o4(a,1/3):7.787*a+16/116,S=S>.008856?o4(S,1/3):7.787*S+16/116;const I=116*a-16,N=500*(w-a),ie=200*(a-S);return[I,N,ie]},b.lab.xyz=function(y){const w=y[0],a=y[1],S=y[2];let I,N,ie;N=(w+16)/116,I=a/500+N,ie=N-S/200;const ze=o4(N,3),Ie=o4(I,3),ct=o4(ie,3);return N=ze>.008856?ze:(N-16/116)/7.787,I=Ie>.008856?Ie:(I-16/116)/7.787,ie=ct>.008856?ct:(ie-16/116)/7.787,I*=95.047,N*=100,ie*=108.883,[I,N,ie]},b.lab.lch=function(y){const w=y[0],a=y[1],S=y[2];let I;I=Math.atan2(S,a)*360/2/Math.PI,I<0&&(I+=360);const ie=Math.sqrt(a*a+S*S);return[w,ie,I]},b.lch.lab=function(y){const w=y[0],a=y[1],I=y[2]/360*2*Math.PI,N=a*Math.cos(I),ie=a*Math.sin(I);return[w,N,ie]},b.rgb.ansi16=function(y,w=null){const[a,S,I]=y;let N=w===null?b.rgb.hsv(y)[2]:w;if(N=Math.round(N/50),N===0)return 30;let ie=30+(Math.round(I/255)<<2|Math.round(S/255)<<1|Math.round(a/255));return N===2&&(ie+=60),ie},b.hsv.ansi16=function(y){return b.rgb.ansi16(b.hsv.rgb(y),y[2])},b.rgb.ansi256=function(y){const w=y[0],a=y[1],S=y[2];return w===a&&a===S?w<8?16:w>248?231:Math.round((w-8)/247*24)+232:16+36*Math.round(w/255*5)+6*Math.round(a/255*5)+Math.round(S/255*5)},b.ansi16.rgb=function(y){let w=y%10;if(w===0||w===7)return y>50&&(w+=3.5),w=w/10.5*255,[w,w,w];const a=(~~(y>50)+1)*.5,S=(w&1)*a*255,I=(w>>1&1)*a*255,N=(w>>2&1)*a*255;return[S,I,N]},b.ansi256.rgb=function(y){if(y>=232){const N=(y-232)*10+8;return[N,N,N]}y-=16;let w;const a=Math.floor(y/36)/5*255,S=Math.floor((w=y%36)/6)/5*255,I=w%6/5*255;return[a,S,I]},b.rgb.hex=function(y){const a=(((Math.round(y[0])&255)<<16)+((Math.round(y[1])&255)<<8)+(Math.round(y[2])&255)).toString(16).toUpperCase();return"000000".substring(a.length)+a},b.hex.rgb=function(y){const w=y.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!w)return[0,0,0];let a=w[0];w[0].length===3&&(a=a.split("").map(ze=>ze+ze).join(""));const S=parseInt(a,16),I=S>>16&255,N=S>>8&255,ie=S&255;return[I,N,ie]},b.rgb.hcg=function(y){const w=y[0]/255,a=y[1]/255,S=y[2]/255,I=Math.max(Math.max(w,a),S),N=Math.min(Math.min(w,a),S),ie=I-N;let ze,Ie;return ie<1?ze=N/(1-ie):ze=0,ie<=0?Ie=0:I===w?Ie=(a-S)/ie%6:I===a?Ie=2+(S-w)/ie:Ie=4+(w-a)/ie,Ie/=6,Ie%=1,[Ie*360,ie*100,ze*100]},b.hsl.hcg=function(y){const w=y[1]/100,a=y[2]/100,S=a<.5?2*w*a:2*w*(1-a);let I=0;return S<1&&(I=(a-.5*S)/(1-S)),[y[0],S*100,I*100]},b.hsv.hcg=function(y){const w=y[1]/100,a=y[2]/100,S=w*a;let I=0;return S<1&&(I=(a-S)/(1-S)),[y[0],S*100,I*100]},b.hcg.rgb=function(y){const w=y[0]/360,a=y[1]/100,S=y[2]/100;if(a===0)return[S*255,S*255,S*255];const I=[0,0,0],N=w%1*6,ie=N%1,ze=1-ie;let Ie=0;switch(Math.floor(N)){case 0:I[0]=1,I[1]=ie,I[2]=0;break;case 1:I[0]=ze,I[1]=1,I[2]=0;break;case 2:I[0]=0,I[1]=1,I[2]=ie;break;case 3:I[0]=0,I[1]=ze,I[2]=1;break;case 4:I[0]=ie,I[1]=0,I[2]=1;break;default:I[0]=1,I[1]=0,I[2]=ze}return Ie=(1-a)*S,[(a*I[0]+Ie)*255,(a*I[1]+Ie)*255,(a*I[2]+Ie)*255]},b.hcg.hsv=function(y){const w=y[1]/100,a=y[2]/100,S=w+a*(1-w);let I=0;return S>0&&(I=w/S),[y[0],I*100,S*100]},b.hcg.hsl=function(y){const w=y[1]/100,S=y[2]/100*(1-w)+.5*w;let I=0;return S>0&&S<.5?I=w/(2*S):S>=.5&&S<1&&(I=w/(2*(1-S))),[y[0],I*100,S*100]},b.hcg.hwb=function(y){const w=y[1]/100,a=y[2]/100,S=w+a*(1-w);return[y[0],(S-w)*100,(1-S)*100]},b.hwb.hcg=function(y){const w=y[1]/100,S=1-y[2]/100,I=S-w;let N=0;return I<1&&(N=(S-I)/(1-I)),[y[0],I*100,N*100]},b.apple.rgb=function(y){return[y[0]/65535*255,y[1]/65535*255,y[2]/65535*255]},b.rgb.apple=function(y){return[y[0]/255*65535,y[1]/255*65535,y[2]/255*65535]},b.gray.rgb=function(y){return[y[0]/100*255,y[0]/100*255,y[0]/100*255]},b.gray.hsl=function(y){return[0,0,y[0]]},b.gray.hsv=b.gray.hsl,b.gray.hwb=function(y){return[0,100,y[0]]},b.gray.cmyk=function(y){return[0,0,0,y[0]]},b.gray.lab=function(y){return[y[0],0,0]},b.gray.hex=function(y){const w=Math.round(y[0]/100*255)&255,S=((w<<16)+(w<<8)+w).toString(16).toUpperCase();return"000000".substring(S.length)+S},b.rgb.gray=function(y){return[(y[0]+y[1]+y[2])/3/255*100]}},41492:function(c,g,l){const u=l(18135),D=l(40756),b={},x=Object.keys(u);function y(a){const S=function(...I){const N=I[0];return N==null?N:(N.length>1&&(I=N),a(I))};return"conversion"in a&&(S.conversion=a.conversion),S}function w(a){const S=function(...I){const N=I[0];if(N==null)return N;N.length>1&&(I=N);const ie=a(I);if(typeof ie=="object")for(let ze=ie.length,Ie=0;Ie{b[a]={},Object.defineProperty(b[a],"channels",{value:u[a].channels}),Object.defineProperty(b[a],"labels",{value:u[a].labels});const S=D(a);Object.keys(S).forEach(N=>{const ie=S[N];b[a][N]=w(ie),b[a][N].raw=y(ie)})}),c.exports=b},40756:function(c,g,l){const u=l(18135);function D(){const w={},a=Object.keys(u);for(let S=a.length,I=0;I=4&&I[3]!==1&&(N=", "+I[3]),"hwb("+I[0]+", "+I[1]+"%, "+I[2]+"%"+N+")"},w.to.keyword=function(I){return x[I.slice(0,3)]};function a(I,N,ie){return Math.min(Math.max(N,I),ie)}function S(I){var N=Math.round(I).toString(16).toUpperCase();return N.length<2?"0"+N:N}},28170:function(c,g,l){const u=l(75196),D=l(41492),b=["keyword","gray","hex"],x={};for(const Ie of Object.keys(D))x[[...D[Ie].labels].sort().join("")]=Ie;const y={};function w(Ie,ct){if(!(this instanceof w))return new w(Ie,ct);if(ct&&ct in b&&(ct=null),ct&&!(ct in D))throw new Error("Unknown model: "+ct);let At,rt;if(Ie==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(Ie instanceof w)this.model=Ie.model,this.color=[...Ie.color],this.valpha=Ie.valpha;else if(typeof Ie=="string"){const It=u.get(Ie);if(It===null)throw new Error("Unable to parse color from string: "+Ie);this.model=It.model,rt=D[this.model].channels,this.color=It.value.slice(0,rt),this.valpha=typeof It.value[rt]=="number"?It.value[rt]:1}else if(Ie.length>0){this.model=ct||"rgb",rt=D[this.model].channels;const It=Array.prototype.slice.call(Ie,0,rt);this.color=ze(It,rt),this.valpha=typeof Ie[rt]=="number"?Ie[rt]:1}else if(typeof Ie=="number")this.model="rgb",this.color=[Ie>>16&255,Ie>>8&255,Ie&255],this.valpha=1;else{this.valpha=1;const It=Object.keys(Ie);"alpha"in Ie&&(It.splice(It.indexOf("alpha"),1),this.valpha=typeof Ie.alpha=="number"?Ie.alpha:0);const Ot=It.sort().join("");if(!(Ot in x))throw new Error("Unable to parse color from object: "+JSON.stringify(Ie));this.model=x[Ot];const{labels:wn}=D[this.model],Hs=[];for(At=0;At(Ie%360+360)%360),saturationl:I("hsl",1,N(100)),lightness:I("hsl",2,N(100)),saturationv:I("hsv",1,N(100)),value:I("hsv",2,N(100)),chroma:I("hcg",1,N(100)),gray:I("hcg",2,N(100)),white:I("hwb",1,N(100)),wblack:I("hwb",2,N(100)),cyan:I("cmyk",0,N(100)),magenta:I("cmyk",1,N(100)),yellow:I("cmyk",2,N(100)),black:I("cmyk",3,N(100)),x:I("xyz",0,N(95.047)),y:I("xyz",1,N(100)),z:I("xyz",2,N(108.833)),l:I("lab",0,N(100)),a:I("lab",1),b:I("lab",2),keyword(Ie){return Ie!==void 0?new w(Ie):D[this.model].keyword(this.color)},hex(Ie){return Ie!==void 0?new w(Ie):u.to.hex(this.rgb().round().color)},hexa(Ie){if(Ie!==void 0)return new w(Ie);const ct=this.rgb().round().color;let At=Math.round(this.valpha*255).toString(16).toUpperCase();return At.length===1&&(At="0"+At),u.to.hex(ct)+At},rgbNumber(){const Ie=this.rgb().color;return(Ie[0]&255)<<16|(Ie[1]&255)<<8|Ie[2]&255},luminosity(){const Ie=this.rgb().color,ct=[];for(const[At,rt]of Ie.entries()){const It=rt/255;ct[At]=It<=.04045?It/12.92:o4((It+.055)/1.055,2.4)}return .2126*ct[0]+.7152*ct[1]+.0722*ct[2]},contrast(Ie){const ct=this.luminosity(),At=Ie.luminosity();return ct>At?(ct+.05)/(At+.05):(At+.05)/(ct+.05)},level(Ie){const ct=this.contrast(Ie);return ct>=7?"AAA":ct>=4.5?"AA":""},isDark(){const Ie=this.rgb().color;return(Ie[0]*2126+Ie[1]*7152+Ie[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const Ie=this.rgb();for(let ct=0;ct<3;ct++)Ie.color[ct]=255-Ie.color[ct];return Ie},lighten(Ie){const ct=this.hsl();return ct.color[2]+=ct.color[2]*Ie,ct},darken(Ie){const ct=this.hsl();return ct.color[2]-=ct.color[2]*Ie,ct},saturate(Ie){const ct=this.hsl();return ct.color[1]+=ct.color[1]*Ie,ct},desaturate(Ie){const ct=this.hsl();return ct.color[1]-=ct.color[1]*Ie,ct},whiten(Ie){const ct=this.hwb();return ct.color[1]+=ct.color[1]*Ie,ct},blacken(Ie){const ct=this.hwb();return ct.color[2]+=ct.color[2]*Ie,ct},grayscale(){const Ie=this.rgb().color,ct=Ie[0]*.3+Ie[1]*.59+Ie[2]*.11;return w.rgb(ct,ct,ct)},fade(Ie){return this.alpha(this.valpha-this.valpha*Ie)},opaquer(Ie){return this.alpha(this.valpha+this.valpha*Ie)},rotate(Ie){const ct=this.hsl();let At=ct.color[0];return At=(At+Ie)%360,At=At<0?360+At:At,ct.color[0]=At,ct},mix(Ie,ct){if(!Ie||!Ie.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof Ie);const At=Ie.rgb(),rt=this.rgb(),It=ct===void 0?.5:ct,Ot=2*It-1,wn=At.alpha()-rt.alpha(),Hs=((Ot*wn===-1?Ot:(Ot+wn)/(1+Ot*wn))+1)/2,jr=1-Hs;return w.rgb(Hs*At.red()+jr*rt.red(),Hs*At.green()+jr*rt.green(),Hs*At.blue()+jr*rt.blue(),At.alpha()*It+rt.alpha()*(1-It))}};for(const Ie of Object.keys(D)){if(b.includes(Ie))continue;const{channels:ct}=D[Ie];w.prototype[Ie]=function(...At){return this.model===Ie?new w(this):At.length>0?new w(At,Ie):new w([...ie(D[this.model][Ie].raw(this.color)),this.valpha],Ie)},w[Ie]=function(...At){let rt=At[0];return typeof rt=="number"&&(rt=ze(At,ct)),new w(rt,Ie)}}function a(Ie,ct){return Number(Ie.toFixed(ct))}function S(Ie){return function(ct){return a(ct,Ie)}}function I(Ie,ct,At){Ie=Array.isArray(Ie)?Ie:[Ie];for(const rt of Ie)(y[rt]||(y[rt]=[]))[ct]=At;return Ie=Ie[0],function(rt){let It;return rt!==void 0?(At&&(rt=At(rt)),It=this[Ie](),It.color[ct]=rt,It):(It=this[Ie]().color[ct],At&&(It=At(It)),It)}}function N(Ie){return function(ct){return Math.max(0,Math.min(Ie,ct))}}function ie(Ie){return Array.isArray(Ie)?Ie:[Ie]}function ze(Ie,ct){for(let At=0;AtMt||Rt.push({node:vn,dist:Ca})}for(;Rt.length&&!Rt.peek().node.children;){var ai=Rt.pop(),gt=ai.node,Zr=It(gt,Jr,Yn),Ht=It(gt,Lt,_n);if(ai.dist=Jr.minX&&jr[0]<=Jr.maxX&&jr[1]>=Jr.minY&&jr[1]<=Jr.maxY}function N(jr,Jr,Yn){for(var Lt=Math.min(jr[0],Jr[0]),_n=Math.min(jr[1],Jr[1]),Mt=Math.max(jr[0],Jr[0]),Bt=Math.max(jr[1],Jr[1]),Rt=Yn.search({minX:Lt,minY:_n,maxX:Mt,maxY:Bt}),on=0;on0!=ie(jr,Jr,Lt)>0&&ie(Yn,Lt,jr)>0!=ie(Yn,Lt,Jr)>0}function Ie(jr){var Jr=jr.p,Yn=jr.next.p;return jr.minX=Math.min(Jr[0],Yn[0]),jr.minY=Math.min(Jr[1],Yn[1]),jr.maxX=Math.max(Jr[0],Yn[0]),jr.maxY=Math.max(Jr[1],Yn[1]),jr}function ct(jr){for(var Jr=jr[0],Yn=jr[0],Lt=jr[0],_n=jr[0],Mt=0;MtLt[0]&&(Lt=Bt),Bt[1]_n[1]&&(_n=Bt)}var Rt=[Jr,Yn,Lt,_n],on=Rt.slice();for(Mt=0;Mt1?(Lt=Yn[0],_n=Yn[1]):Rt>0&&(Lt+=Mt*Rt,_n+=Bt*Rt)}return Mt=jr[0]-Lt,Bt=jr[1]-_n,Mt*Mt+Bt*Bt}function Ot(jr,Jr,Yn,Lt,_n,Mt,Bt,Rt){var on=Yn-jr,Hr=Lt-Jr,vn=Bt-_n,Ca=Rt-Mt,ai=jr-_n,gt=Jr-Mt,Zr=on*on+Hr*Hr,Ht=on*vn+Hr*Ca,Zs=vn*vn+Ca*Ca,oi=on*ai+Hr*gt,Pa=vn*ai+Ca*gt,Aa=Zr*Zs-Ht*Ht,Pg,Ug,e0,H0,X0=Aa,d0=Aa;Aa===0?(Ug=0,X0=1,H0=Pa,d0=Zs):(Ug=Ht*Pa-Zs*oi,H0=Zr*Pa-Ht*oi,Ug<0?(Ug=0,H0=Pa,d0=Zs):Ug>X0&&(Ug=X0,H0=Pa+Ht,d0=Zs)),H0<0?(H0=0,-oi<0?Ug=0:-oi>Zr?Ug=X0:(Ug=-oi,X0=Zr)):H0>d0&&(H0=d0,-oi+Ht<0?Ug=0:-oi+Ht>Zr?Ug=X0:(Ug=-oi+Ht,X0=Zr)),Pg=Ug===0?0:Ug/X0,e0=H0===0?0:H0/d0;var jv=(1-Pg)*jr+Pg*Yn,Lv=(1-Pg)*Jr+Pg*Lt,Je=(1-e0)*_n+e0*Bt,k0=(1-e0)*Mt+e0*Rt,G0=Je-jv,iv=k0-Lv;return G0*G0+iv*iv}function wn(jr,Jr){return jr[0]===Jr[0]?jr[1]-Jr[1]:jr[0]-Jr[0]}function Hs(jr){jr.sort(wn);for(var Jr=[],Yn=0;Yn=2&&ie(Jr[Jr.length-2],Jr[Jr.length-1],jr[Yn])<=0;)Jr.pop();Jr.push(jr[Yn])}for(var Lt=[],_n=jr.length-1;_n>=0;_n--){for(;Lt.length>=2&&ie(Lt[Lt.length-2],Lt[Lt.length-1],jr[_n])<=0;)Lt.pop();Lt.push(jr[_n])}return Lt.pop(),Jr.pop(),Jr.concat(Lt)}},81622:function(c,g){var l=typeof self!="undefined"?self:this,u=function(){function b(){this.fetch=!1,this.DOMException=l.DOMException}return b.prototype=l,new b}();(function(b){var x=function(y){var w={searchParams:"URLSearchParams"in b,iterable:"Symbol"in b&&"iterator"in Symbol,blob:"FileReader"in b&&"Blob"in b&&function(){try{return new Blob,!0}catch(on){return!1}}(),formData:"FormData"in b,arrayBuffer:"ArrayBuffer"in b};function a(on){return on&&DataView.prototype.isPrototypeOf(on)}if(w.arrayBuffer)var S=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],I=ArrayBuffer.isView||function(on){return on&&S.indexOf(Object.prototype.toString.call(on))>-1};function N(on){if(typeof on!="string"&&(on=String(on)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(on))throw new TypeError("Invalid character in header field name");return on.toLowerCase()}function ie(on){return typeof on!="string"&&(on=String(on)),on}function ze(on){var Hr={next:function(){var vn=on.shift();return{done:vn===void 0,value:vn}}};return w.iterable&&(Hr[Symbol.iterator]=function(){return Hr}),Hr}function Ie(on){this.map={},on instanceof Ie?on.forEach(function(Hr,vn){this.append(vn,Hr)},this):Array.isArray(on)?on.forEach(function(Hr){this.append(Hr[0],Hr[1])},this):on&&Object.getOwnPropertyNames(on).forEach(function(Hr){this.append(Hr,on[Hr])},this)}Ie.prototype.append=function(on,Hr){on=N(on),Hr=ie(Hr);var vn=this.map[on];this.map[on]=vn?vn+", "+Hr:Hr},Ie.prototype.delete=function(on){delete this.map[N(on)]},Ie.prototype.get=function(on){return on=N(on),this.has(on)?this.map[on]:null},Ie.prototype.has=function(on){return this.map.hasOwnProperty(N(on))},Ie.prototype.set=function(on,Hr){this.map[N(on)]=ie(Hr)},Ie.prototype.forEach=function(on,Hr){for(var vn in this.map)this.map.hasOwnProperty(vn)&&on.call(Hr,this.map[vn],vn,this)},Ie.prototype.keys=function(){var on=[];return this.forEach(function(Hr,vn){on.push(vn)}),ze(on)},Ie.prototype.values=function(){var on=[];return this.forEach(function(Hr){on.push(Hr)}),ze(on)},Ie.prototype.entries=function(){var on=[];return this.forEach(function(Hr,vn){on.push([vn,Hr])}),ze(on)},w.iterable&&(Ie.prototype[Symbol.iterator]=Ie.prototype.entries);function ct(on){if(on.bodyUsed)return Promise.reject(new TypeError("Already read"));on.bodyUsed=!0}function At(on){return new Promise(function(Hr,vn){on.onload=function(){Hr(on.result)},on.onerror=function(){vn(on.error)}})}function rt(on){var Hr=new FileReader,vn=At(Hr);return Hr.readAsArrayBuffer(on),vn}function It(on){var Hr=new FileReader,vn=At(Hr);return Hr.readAsText(on),vn}function Ot(on){for(var Hr=new Uint8Array(on),vn=new Array(Hr.length),Ca=0;Ca-1?Hr:on}function Yn(on,Hr){Hr=Hr||{};var vn=Hr.body;if(on instanceof Yn){if(on.bodyUsed)throw new TypeError("Already read");this.url=on.url,this.credentials=on.credentials,Hr.headers||(this.headers=new Ie(on.headers)),this.method=on.method,this.mode=on.mode,this.signal=on.signal,!vn&&on._bodyInit!=null&&(vn=on._bodyInit,on.bodyUsed=!0)}else this.url=String(on);if(this.credentials=Hr.credentials||this.credentials||"same-origin",(Hr.headers||!this.headers)&&(this.headers=new Ie(Hr.headers)),this.method=Jr(Hr.method||this.method||"GET"),this.mode=Hr.mode||this.mode||null,this.signal=Hr.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&vn)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(vn)}Yn.prototype.clone=function(){return new Yn(this,{body:this._bodyInit})};function Lt(on){var Hr=new FormData;return on.trim().split("&").forEach(function(vn){if(vn){var Ca=vn.split("="),ai=Ca.shift().replace(/\+/g," "),gt=Ca.join("=").replace(/\+/g," ");Hr.append(decodeURIComponent(ai),decodeURIComponent(gt))}}),Hr}function _n(on){var Hr=new Ie,vn=on.replace(/\r?\n[\t ]+/g," ");return vn.split(/\r?\n/).forEach(function(Ca){var ai=Ca.split(":"),gt=ai.shift().trim();if(gt){var Zr=ai.join(":").trim();Hr.append(gt,Zr)}}),Hr}Hs.call(Yn.prototype);function Mt(on,Hr){Hr||(Hr={}),this.type="default",this.status=Hr.status===void 0?200:Hr.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Hr?Hr.statusText:"OK",this.headers=new Ie(Hr.headers),this.url=Hr.url||"",this._initBody(on)}Hs.call(Mt.prototype),Mt.prototype.clone=function(){return new Mt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ie(this.headers),url:this.url})},Mt.error=function(){var on=new Mt(null,{status:0,statusText:""});return on.type="error",on};var Bt=[301,302,303,307,308];Mt.redirect=function(on,Hr){if(Bt.indexOf(Hr)===-1)throw new RangeError("Invalid status code");return new Mt(null,{status:Hr,headers:{location:on}})},y.DOMException=b.DOMException;try{new y.DOMException}catch(on){y.DOMException=function(Hr,vn){this.message=Hr,this.name=vn;var Ca=Error(Hr);this.stack=Ca.stack},y.DOMException.prototype=Object.create(Error.prototype),y.DOMException.prototype.constructor=y.DOMException}function Rt(on,Hr){return new Promise(function(vn,Ca){var ai=new Yn(on,Hr);if(ai.signal&&ai.signal.aborted)return Ca(new y.DOMException("Aborted","AbortError"));var gt=new XMLHttpRequest;function Zr(){gt.abort()}gt.onload=function(){var Ht={status:gt.status,statusText:gt.statusText,headers:_n(gt.getAllResponseHeaders()||"")};Ht.url="responseURL"in gt?gt.responseURL:Ht.headers.get("X-Request-URL");var Zs="response"in gt?gt.response:gt.responseText;vn(new Mt(Zs,Ht))},gt.onerror=function(){Ca(new TypeError("Network request failed"))},gt.ontimeout=function(){Ca(new TypeError("Network request failed"))},gt.onabort=function(){Ca(new y.DOMException("Aborted","AbortError"))},gt.open(ai.method,ai.url,!0),ai.credentials==="include"?gt.withCredentials=!0:ai.credentials==="omit"&&(gt.withCredentials=!1),"responseType"in gt&&w.blob&&(gt.responseType="blob"),ai.headers.forEach(function(Ht,Zs){gt.setRequestHeader(Zs,Ht)}),ai.signal&&(ai.signal.addEventListener("abort",Zr),gt.onreadystatechange=function(){gt.readyState===4&&ai.signal.removeEventListener("abort",Zr)}),gt.send(typeof ai._bodyInit=="undefined"?null:ai._bodyInit)})}return Rt.polyfill=!0,b.fetch||(b.fetch=Rt,b.Headers=Ie,b.Request=Yn,b.Response=Mt),y.Headers=Ie,y.Request=Yn,y.Response=Mt,y.fetch=Rt,Object.defineProperty(y,"__esModule",{value:!0}),y}({})})(u),u.fetch.ponyfill=!0,delete u.fetch.polyfill;var D=u;g=D.fetch,g.default=D.fetch,g.fetch=D.fetch,g.Headers=D.Headers,g.Request=D.Request,g.Response=D.Response,c.exports=g},75041:function(c){(function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l={rotl:function(u,D){return u<>>32-D},rotr:function(u,D){return u<<32-D|u>>>D},endian:function(u){if(u.constructor==Number)return l.rotl(u,8)&16711935|l.rotl(u,24)&4278255360;for(var D=0;D0;u--)D.push(Math.floor(Math.random()*256));return D},bytesToWords:function(u){for(var D=[],b=0,x=0;b>>5]|=u[b]<<24-x%32;return D},wordsToBytes:function(u){for(var D=[],b=0;b>>5]>>>24-b%32&255);return D},bytesToHex:function(u){for(var D=[],b=0;b>>4).toString(16)),D.push((u[b]&15).toString(16));return D.join("")},hexToBytes:function(u){for(var D=[],b=0;b>>6*(3-y)&63)):D.push("=");return D.join("")},base64ToBytes:function(u){u=u.replace(/[^A-Z0-9+\/]/ig,"");for(var D=[],b=0,x=0;b>>6-x*2);return D}};c.exports=l})()},57965:function(c,g,l){"use strict";l.d(g,{j2:function(){return u},b4:function(){return a},YF:function(){return D},We:function(){return S},TS:function(){return Hs},VR:function(){return Jr},G9:function(){return rt},ly:function(){return It},sd:function(){return At}});function u(Yn,Lt){return YnLt?1:Yn>=Lt?0:NaN}function D(Yn){return Yn.length===1&&(Yn=b(Yn)),{left:function(Lt,_n,Mt,Bt){for(Mt==null&&(Mt=0),Bt==null&&(Bt=Lt.length);Mt>>1;Yn(Lt[Rt],_n)<0?Mt=Rt+1:Bt=Rt}return Mt},right:function(Lt,_n,Mt,Bt){for(Mt==null&&(Mt=0),Bt==null&&(Bt=Lt.length);Mt>>1;Yn(Lt[Rt],_n)>0?Bt=Rt:Mt=Rt+1}return Mt}}}function b(Yn){return function(Lt,_n){return u(Yn(Lt),_n)}}var x=D(u),y=x.right,w=x.left,a=y;function S(Yn,Lt){var _n=Yn.length,Mt=-1,Bt,Rt,on;if(Lt==null){for(;++Mt<_n;)if((Bt=Yn[Mt])!=null&&Bt>=Bt)for(Rt=on=Bt;++Mt<_n;)(Bt=Yn[Mt])!=null&&(Rt>Bt&&(Rt=Bt),on=Bt)for(Rt=on=Bt;++Mt<_n;)(Bt=Lt(Yn[Mt],Mt,Yn))!=null&&(Rt>Bt&&(Rt=Bt),on0)return[Yn];if((Mt=Lt0)for(Yn=Math.ceil(Yn/Hr),Lt=Math.floor(Lt/Hr),on=new Array(Rt=Math.ceil(Lt-Yn+1));++Bt=0?(Rt>=ze?10:Rt>=Ie?5:Rt>=ct?2:1)*Math.pow(10,Bt):-Math.pow(10,-Bt)/(Rt>=ze?10:Rt>=Ie?5:Rt>=ct?2:1)}function It(Yn,Lt,_n){var Mt=Math.abs(Lt-Yn)/Math.max(0,_n),Bt=Math.pow(10,Math.floor(Math.log(Mt)/Math.LN10)),Rt=Mt/Bt;return Rt>=ze?Bt*=10:Rt>=Ie?Bt*=5:Rt>=ct&&(Bt*=2),Ltgt;)Zr.pop(),--Ht;var Zs=new Array(Ht+1),oi;for(Rt=0;Rt<=Ht;++Rt)oi=Zs[Rt]=[],oi.x0=Rt>0?Zr[Rt-1]:ai,oi.x1=Rt=0;)for(on=Yn[Lt],_n=on.length;--_n>=0;)Rt[--Bt]=on[_n];return Rt}function jr(Yn){return Yn===null?NaN:+Yn}function Jr(Yn,Lt,_n){if(_n==null&&(_n=jr),!!(Mt=Yn.length)){if((Lt=+Lt)<=0||Mt<2)return+_n(Yn[0],0,Yn);if(Lt>=1)return+_n(Yn[Mt-1],Mt-1,Yn);var Mt,Bt=(Mt-1)*Lt,Rt=Math.floor(Bt),on=+_n(Yn[Rt],Rt,Yn),Hr=+_n(Yn[Rt+1],Rt+1,Yn);return on+(Hr-on)*(Bt-Rt)}}},9498:function(c){(function(g,l){c.exports=l()})(this,function(){"use strict";var g=1e3,l=6e4,u=36e5,D="millisecond",b="second",x="minute",y="hour",w="day",a="week",S="month",I="quarter",N="year",ie="date",ze="Invalid Date",Ie=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ct=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,At={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Bt){var Rt=["th","st","nd","rd"],on=Bt%100;return"["+Bt+(Rt[(on-20)%10]||Rt[on]||Rt[0])+"]"}},rt=function(Bt,Rt,on){var Hr=String(Bt);return!Hr||Hr.length>=Rt?Bt:""+Array(Rt+1-Hr.length).join(on)+Bt},It={s:rt,z:function(Bt){var Rt=-Bt.utcOffset(),on=Math.abs(Rt),Hr=Math.floor(on/60),vn=on%60;return(Rt<=0?"+":"-")+rt(Hr,2,"0")+":"+rt(vn,2,"0")},m:function Bt(Rt,on){if(Rt.date()1)return Bt(ai[0])}else{var gt=Rt.name;wn[gt]=Rt,vn=gt}return!Hr&&vn&&(Ot=vn),vn||!Hr&&Ot},Yn=function(Bt,Rt){if(jr(Bt))return Bt.clone();var on=typeof Rt=="object"?Rt:{};return on.date=Bt,on.args=arguments,new _n(on)},Lt=It;Lt.l=Jr,Lt.i=jr,Lt.w=function(Bt,Rt){return Yn(Bt,{locale:Rt.$L,utc:Rt.$u,x:Rt.$x,$offset:Rt.$offset})};var _n=function(){function Bt(on){this.$L=Jr(on.locale,null,!0),this.parse(on),this.$x=this.$x||on.x||{},this[Hs]=!0}var Rt=Bt.prototype;return Rt.parse=function(on){this.$d=function(Hr){var vn=Hr.date,Ca=Hr.utc;if(vn===null)return new Date(NaN);if(Lt.u(vn))return new Date;if(vn instanceof Date)return new Date(vn);if(typeof vn=="string"&&!/Z$/i.test(vn)){var ai=vn.match(Ie);if(ai){var gt=ai[2]-1||0,Zr=(ai[7]||"0").substring(0,3);return Ca?new Date(Date.UTC(ai[1],gt,ai[3]||1,ai[4]||0,ai[5]||0,ai[6]||0,Zr)):new Date(ai[1],gt,ai[3]||1,ai[4]||0,ai[5]||0,ai[6]||0,Zr)}}return new Date(vn)}(on),this.init()},Rt.init=function(){var on=this.$d;this.$y=on.getFullYear(),this.$M=on.getMonth(),this.$D=on.getDate(),this.$W=on.getDay(),this.$H=on.getHours(),this.$m=on.getMinutes(),this.$s=on.getSeconds(),this.$ms=on.getMilliseconds()},Rt.$utils=function(){return Lt},Rt.isValid=function(){return this.$d.toString()!==ze},Rt.isSame=function(on,Hr){var vn=Yn(on);return this.startOf(Hr)<=vn&&vn<=this.endOf(Hr)},Rt.isAfter=function(on,Hr){return Yn(on)0&&typeof ze[0]!="number")}function ie(ze,Ie,ct){var At,rt;if(typeof ze!=typeof Ie||I(ze)||I(Ie)||ze.prototype!==Ie.prototype||D(ze)!==D(Ie))return!1;var It=x(ze),Ot=x(Ie);if(It!==Ot)return!1;if(It||Ot)return ze.source===Ie.source&&y(ze)===y(Ie);if(w(ze)&&w(Ie))return a.call(ze)===a.call(Ie);var wn=N(ze),Hs=N(Ie);if(wn!==Hs)return!1;if(wn||Hs){if(ze.length!==Ie.length)return!1;for(At=0;At=0;At--)if(jr[At]!=Jr[At])return!1;for(At=jr.length-1;At>=0;At--)if(rt=jr[At],!S(ze[rt],Ie[rt],ct))return!1;return!0}c.exports=S},67494:function(c,g,l){"use strict";var u=l(31989),D=l(35041),b=l(61054),x=l(67747);c.exports=function(w,a,S){if(!w||typeof w!="object"&&typeof w!="function")throw new b("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new b("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new b("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new b("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new b("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new b("`loose`, if provided, must be a boolean");var I=arguments.length>3?arguments[3]:null,N=arguments.length>4?arguments[4]:null,ie=arguments.length>5?arguments[5]:null,ze=arguments.length>6?arguments[6]:!1,Ie=!!x&&x(w,a);if(u)u(w,a,{configurable:ie===null&&Ie?Ie.configurable:!ie,enumerable:I===null&&Ie?Ie.enumerable:!I,value:S,writable:N===null&&Ie?Ie.writable:!N});else if(ze||!I&&!N&&!ie)w[a]=S;else throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},8263:function(c,g,l){"use strict";var u=l(64253),D=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b=Object.prototype.toString,x=Array.prototype.concat,y=l(67494),w=function(N){return typeof N=="function"&&b.call(N)==="[object Function]"},a=l(3192)(),S=function(N,ie,ze,Ie){if(ie in N){if(Ie===!0){if(N[ie]===ze)return}else if(!w(Ie)||!Ie())return}a?y(N,ie,ze,!0):y(N,ie,ze)},I=function(N,ie){var ze=arguments.length>2?arguments[2]:{},Ie=u(ie);D&&(Ie=x.call(Ie,Object.getOwnPropertySymbols(ie)));for(var ct=0;ct=this.minPts&&(u=this._mergeArrays(u,x))}this._assigned[b]!==1&&this._addToCluster(b,l)}},g.prototype._addToCluster=function(l,u){this.clusters[u].push(l),this._assigned[l]=1},g.prototype._regionQuery=function(l){for(var u=[],D=0;D0){for(var S=0;S=0);return u},g.prototype.assign=function(){for(var l=!1,u=this.dataset.length,D,b=0;b=this.minPts)return y}},D.prototype._regionQuery=function(b,x){x=x||this.epsilon;for(var y=[],w=0,a=this.dataset.length;wx&&(D=b):u80*ai){oi=Aa=vn[0],Pa=Pg=vn[1];for(var X0=ai;X0Aa&&(Aa=Ug),e0>Pg&&(Pg=e0);H0=Math.max(Aa-oi,Pg-Pa),H0=H0!==0?32767/H0:0}return D(Ht,Zs,ai,oi,Pa,H0,0),Zs}function l(vn,Ca,ai,gt,Zr){var Ht,Zs;if(Zr===Hr(vn,Ca,ai,gt)>0)for(Ht=Ca;Ht=Ca;Ht-=gt)Zs=Bt(Ht,vn[Ht],vn[Ht+1],Zs);return Zs&&wn(Zs,Zs.next)&&(Rt(Zs),Zs=Zs.next),Zs}function u(vn,Ca){if(!vn)return vn;Ca||(Ca=vn);var ai=vn,gt;do if(gt=!1,!ai.steiner&&(wn(ai,ai.next)||Ot(ai.prev,ai,ai.next)===0)){if(Rt(ai),ai=Ca=ai.prev,ai===ai.next)break;gt=!0}else ai=ai.next;while(gt||ai!==Ca);return Ca}function D(vn,Ca,ai,gt,Zr,Ht,Zs){if(vn){!Zs&&Ht&&ze(vn,gt,Zr,Ht);for(var oi=vn,Pa,Aa;vn.prev!==vn.next;){if(Pa=vn.prev,Aa=vn.next,Ht?x(vn,gt,Zr,Ht):b(vn)){Ca.push(Pa.i/ai|0),Ca.push(vn.i/ai|0),Ca.push(Aa.i/ai|0),Rt(vn),vn=Aa.next,oi=Aa.next;continue}if(vn=Aa,vn===oi){Zs?Zs===1?(vn=y(u(vn),Ca,ai),D(vn,Ca,ai,gt,Zr,Ht,2)):Zs===2&&w(vn,Ca,ai,gt,Zr,Ht):D(u(vn),Ca,ai,gt,Zr,Ht,1);break}}}}function b(vn){var Ca=vn.prev,ai=vn,gt=vn.next;if(Ot(Ca,ai,gt)>=0)return!1;for(var Zr=Ca.x,Ht=ai.x,Zs=gt.x,oi=Ca.y,Pa=ai.y,Aa=gt.y,Pg=ZrHt?Zr>Zs?Zr:Zs:Ht>Zs?Ht:Zs,H0=oi>Pa?oi>Aa?oi:Aa:Pa>Aa?Pa:Aa,X0=gt.next;X0!==Ca;){if(X0.x>=Pg&&X0.x<=e0&&X0.y>=Ug&&X0.y<=H0&&rt(Zr,oi,Ht,Pa,Zs,Aa,X0.x,X0.y)&&Ot(X0.prev,X0,X0.next)>=0)return!1;X0=X0.next}return!0}function x(vn,Ca,ai,gt){var Zr=vn.prev,Ht=vn,Zs=vn.next;if(Ot(Zr,Ht,Zs)>=0)return!1;for(var oi=Zr.x,Pa=Ht.x,Aa=Zs.x,Pg=Zr.y,Ug=Ht.y,e0=Zs.y,H0=oiPa?oi>Aa?oi:Aa:Pa>Aa?Pa:Aa,jv=Pg>Ug?Pg>e0?Pg:e0:Ug>e0?Ug:e0,Lv=ct(H0,X0,Ca,ai,gt),Je=ct(d0,jv,Ca,ai,gt),k0=vn.prevZ,G0=vn.nextZ;k0&&k0.z>=Lv&&G0&&G0.z<=Je;){if(k0.x>=H0&&k0.x<=d0&&k0.y>=X0&&k0.y<=jv&&k0!==Zr&&k0!==Zs&&rt(oi,Pg,Pa,Ug,Aa,e0,k0.x,k0.y)&&Ot(k0.prev,k0,k0.next)>=0||(k0=k0.prevZ,G0.x>=H0&&G0.x<=d0&&G0.y>=X0&&G0.y<=jv&&G0!==Zr&&G0!==Zs&&rt(oi,Pg,Pa,Ug,Aa,e0,G0.x,G0.y)&&Ot(G0.prev,G0,G0.next)>=0))return!1;G0=G0.nextZ}for(;k0&&k0.z>=Lv;){if(k0.x>=H0&&k0.x<=d0&&k0.y>=X0&&k0.y<=jv&&k0!==Zr&&k0!==Zs&&rt(oi,Pg,Pa,Ug,Aa,e0,k0.x,k0.y)&&Ot(k0.prev,k0,k0.next)>=0)return!1;k0=k0.prevZ}for(;G0&&G0.z<=Je;){if(G0.x>=H0&&G0.x<=d0&&G0.y>=X0&&G0.y<=jv&&G0!==Zr&&G0!==Zs&&rt(oi,Pg,Pa,Ug,Aa,e0,G0.x,G0.y)&&Ot(G0.prev,G0,G0.next)>=0)return!1;G0=G0.nextZ}return!0}function y(vn,Ca,ai){var gt=vn;do{var Zr=gt.prev,Ht=gt.next.next;!wn(Zr,Ht)&&Hs(Zr,gt,gt.next,Ht)&&Lt(Zr,Ht)&&Lt(Ht,Zr)&&(Ca.push(Zr.i/ai|0),Ca.push(gt.i/ai|0),Ca.push(Ht.i/ai|0),Rt(gt),Rt(gt.next),gt=vn=Ht),gt=gt.next}while(gt!==vn);return u(gt)}function w(vn,Ca,ai,gt,Zr,Ht){var Zs=vn;do{for(var oi=Zs.next.next;oi!==Zs.prev;){if(Zs.i!==oi.i&&It(Zs,oi)){var Pa=Mt(Zs,oi);Zs=u(Zs,Zs.next),Pa=u(Pa,Pa.next),D(Zs,Ca,ai,gt,Zr,Ht,0),D(Pa,Ca,ai,gt,Zr,Ht,0);return}oi=oi.next}Zs=Zs.next}while(Zs!==vn)}function a(vn,Ca,ai,gt){var Zr=[],Ht,Zs,oi,Pa,Aa;for(Ht=0,Zs=Ca.length;Ht=ai.next.y&&ai.next.y!==ai.y){var oi=ai.x+(Zr-ai.y)*(ai.next.x-ai.x)/(ai.next.y-ai.y);if(oi<=gt&&oi>Ht&&(Ht=oi,Zs=ai.x=ai.x&&ai.x>=Aa&>!==ai.x&&rt(ZrZs.x||ai.x===Zs.x&&ie(Zs,ai)))&&(Zs=ai,Ug=e0)),ai=ai.next;while(ai!==Pa);return Zs}function ie(vn,Ca){return Ot(vn.prev,vn,Ca.prev)<0&&Ot(Ca.next,vn,vn.next)<0}function ze(vn,Ca,ai,gt){var Zr=vn;do Zr.z===0&&(Zr.z=ct(Zr.x,Zr.y,Ca,ai,gt)),Zr.prevZ=Zr.prev,Zr.nextZ=Zr.next,Zr=Zr.next;while(Zr!==vn);Zr.prevZ.nextZ=null,Zr.prevZ=null,Ie(Zr)}function Ie(vn){var Ca,ai,gt,Zr,Ht,Zs,oi,Pa,Aa=1;do{for(ai=vn,vn=null,Ht=null,Zs=0;ai;){for(Zs++,gt=ai,oi=0,Ca=0;Ca0||Pa>0&>)oi!==0&&(Pa===0||!gt||ai.z<=gt.z)?(Zr=ai,ai=ai.nextZ,oi--):(Zr=gt,gt=gt.nextZ,Pa--),Ht?Ht.nextZ=Zr:vn=Zr,Zr.prevZ=Ht,Ht=Zr;ai=gt}Ht.nextZ=null,Aa*=2}while(Zs>1);return vn}function ct(vn,Ca,ai,gt,Zr){return vn=(vn-ai)*Zr|0,Ca=(Ca-gt)*Zr|0,vn=(vn|vn<<8)&16711935,vn=(vn|vn<<4)&252645135,vn=(vn|vn<<2)&858993459,vn=(vn|vn<<1)&1431655765,Ca=(Ca|Ca<<8)&16711935,Ca=(Ca|Ca<<4)&252645135,Ca=(Ca|Ca<<2)&858993459,Ca=(Ca|Ca<<1)&1431655765,vn|Ca<<1}function At(vn){var Ca=vn,ai=vn;do(Ca.x=(vn-Zs)*(Ht-oi)&&(vn-Zs)*(gt-oi)>=(ai-Zs)*(Ca-oi)&&(ai-Zs)*(Ht-oi)>=(Zr-Zs)*(gt-oi)}function It(vn,Ca){return vn.next.i!==Ca.i&&vn.prev.i!==Ca.i&&!Yn(vn,Ca)&&(Lt(vn,Ca)&&Lt(Ca,vn)&&_n(vn,Ca)&&(Ot(vn.prev,vn,Ca.prev)||Ot(vn,Ca.prev,Ca))||wn(vn,Ca)&&Ot(vn.prev,vn,vn.next)>0&&Ot(Ca.prev,Ca,Ca.next)>0)}function Ot(vn,Ca,ai){return(Ca.y-vn.y)*(ai.x-Ca.x)-(Ca.x-vn.x)*(ai.y-Ca.y)}function wn(vn,Ca){return vn.x===Ca.x&&vn.y===Ca.y}function Hs(vn,Ca,ai,gt){var Zr=Jr(Ot(vn,Ca,ai)),Ht=Jr(Ot(vn,Ca,gt)),Zs=Jr(Ot(ai,gt,vn)),oi=Jr(Ot(ai,gt,Ca));return!!(Zr!==Ht&&Zs!==oi||Zr===0&&jr(vn,ai,Ca)||Ht===0&&jr(vn,gt,Ca)||Zs===0&&jr(ai,vn,gt)||oi===0&&jr(ai,Ca,gt))}function jr(vn,Ca,ai){return Ca.x<=Math.max(vn.x,ai.x)&&Ca.x>=Math.min(vn.x,ai.x)&&Ca.y<=Math.max(vn.y,ai.y)&&Ca.y>=Math.min(vn.y,ai.y)}function Jr(vn){return vn>0?1:vn<0?-1:0}function Yn(vn,Ca){var ai=vn;do{if(ai.i!==vn.i&&ai.next.i!==vn.i&&ai.i!==Ca.i&&ai.next.i!==Ca.i&&Hs(ai,ai.next,vn,Ca))return!0;ai=ai.next}while(ai!==vn);return!1}function Lt(vn,Ca){return Ot(vn.prev,vn,vn.next)<0?Ot(vn,Ca,vn.next)>=0&&Ot(vn,vn.prev,Ca)>=0:Ot(vn,Ca,vn.prev)<0||Ot(vn,vn.next,Ca)<0}function _n(vn,Ca){var ai=vn,gt=!1,Zr=(vn.x+Ca.x)/2,Ht=(vn.y+Ca.y)/2;do ai.y>Ht!=ai.next.y>Ht&&ai.next.y!==ai.y&&Zr<(ai.next.x-ai.x)*(Ht-ai.y)/(ai.next.y-ai.y)+ai.x&&(gt=!gt),ai=ai.next;while(ai!==vn);return gt}function Mt(vn,Ca){var ai=new on(vn.i,vn.x,vn.y),gt=new on(Ca.i,Ca.x,Ca.y),Zr=vn.next,Ht=Ca.prev;return vn.next=Ca,Ca.prev=vn,ai.next=Zr,Zr.prev=ai,gt.next=ai,ai.prev=gt,Ht.next=gt,gt.prev=Ht,gt}function Bt(vn,Ca,ai,gt){var Zr=new on(vn,Ca,ai);return gt?(Zr.next=gt.next,Zr.prev=gt,gt.next.prev=Zr,gt.next=Zr):(Zr.prev=Zr,Zr.next=Zr),Zr}function Rt(vn){vn.next.prev=vn.prev,vn.prev.next=vn.next,vn.prevZ&&(vn.prevZ.nextZ=vn.nextZ),vn.nextZ&&(vn.nextZ.prevZ=vn.prevZ)}function on(vn,Ca,ai){this.i=vn,this.x=Ca,this.y=ai,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}g.deviation=function(vn,Ca,ai,gt){var Zr=Ca&&Ca.length,Ht=Zr?Ca[0]*ai:vn.length,Zs=Math.abs(Hr(vn,0,Ht,ai));if(Zr)for(var oi=0,Pa=Ca.length;oi0&&(gt+=vn[Zr-1].length,ai.holes.push(gt))}return ai}},42676:function(c){"use strict";var g=c.exports={};g.isIE=function(l){function u(){var b=navigator.userAgent.toLowerCase();return b.indexOf("msie")!==-1||b.indexOf("trident")!==-1||b.indexOf(" edge/")!==-1}if(!u())return!1;if(!l)return!0;var D=function(){var b,x=3,y=document.createElement("div"),w=y.getElementsByTagName("i");do y.innerHTML="";while(w[0]);return x>4?x:b}();return l===D},g.isLegacyOpera=function(){return!!window.opera}},55776:function(c){"use strict";var g=c.exports={};g.forEach=function(l,u){for(var D=0;D div::-webkit-scrollbar { "+ze(["display: none"])+` } - -`,on+="."+Rt+" { "+ze(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Bt,"animation-name: "+Bt])+` } -`,on+="@-webkit-keyframes "+Bt+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } -`,on+="@keyframes "+Bt+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Mt(on)}}function At(Yn){Yn.className+=" "+N+"_animation_active"}function rt(Yn,Lt,_n){if(Yn.addEventListener)Yn.addEventListener(Lt,_n);else if(Yn.attachEvent)Yn.attachEvent("on"+Lt,_n);else return b.error("[scroll] Don't know how to add event listeners.")}function It(Yn,Lt,_n){if(Yn.removeEventListener)Yn.removeEventListener(Lt,_n);else if(Yn.detachEvent)Yn.detachEvent("on"+Lt,_n);else return b.error("[scroll] Don't know how to remove event listeners.")}function Ot(Yn){return y(Yn).container.childNodes[0].childNodes[0].childNodes[0]}function wn(Yn){return y(Yn).container.childNodes[0].childNodes[0].childNodes[1]}function Hs(Yn,Lt){var _n=y(Yn).listeners;if(!_n.push)throw new Error("Cannot add listener to an element that is not detectable.");y(Yn).listeners.push(Lt)}function jr(Yn,Lt,_n){_n||(_n=Lt,Lt=Yn,Yn=null),Yn=Yn||{};function Mt(){if(Yn.debug){var Lv=Array.prototype.slice.call(arguments);if(Lv.unshift(a.get(Lt),"Scroll: "),b.log.apply)b.log.apply(null,Lv);else for(var Je=0;Je=72.004&&G0<=137.8347&&iv>=.8293&&iv<=55.8271}function I(G0,iv){let u0=-100+2*G0+3*iv+.2*iv*iv+.1*G0*iv+.2*b(x(G0));return u0+=(20*u(6*G0*y)+20*u(2*G0*y))*2/3,u0+=(20*u(iv*y)+40*u(iv/3*y))*2/3,u0+=(160*u(iv/12*y)+320*u(iv*y/30))*2/3,u0}function N(G0,iv){let u0=300+G0+2*iv+.1*G0*G0+.1*G0*iv+.1*b(x(G0));return u0+=(20*u(6*G0*y)+20*u(2*G0*y))*2/3,u0+=(20*u(G0*y)+40*u(G0/3*y))*2/3,u0+=(150*u(G0/12*y)+300*u(G0/30*y))*2/3,u0}function ie(G0,iv){let u0=N(G0-105,iv-35),B1=I(G0-105,iv-35);const Dg=iv/180*y;let zo=u(Dg);zo=1-a*zo*zo;const mu=b(zo);return u0=u0*180/(w/mu*D(Dg)*y),B1=B1*180/(w*(1-a)/(zo*mu)*y),[u0,B1]}function ze(G0){const[iv,u0]=G0;if(!S(iv,u0))return[iv,u0];const B1=ie(iv,u0);return[iv+B1[0],u0+B1[1]]}function Ie(G0){const[iv,u0]=G0;if(!S(iv,u0))return[iv,u0];let[B1,Dg]=[iv,u0],zo=ze([B1,Dg]),mu=zo[0]-iv,Ag=zo[1]-u0;for(;x(mu)>1e-6||x(Ag)>1e-6;)B1-=mu,Dg-=Ag,zo=ze([B1,Dg]),mu=zo[0]-iv,Ag=zo[1]-u0;return[B1,Dg]}const{sin:ct,cos:At,atan2:rt,sqrt:It,PI:Ot}=Math,wn=Ot*3e3/180;function Hs(G0){const[iv,u0]=G0,B1=iv-.0065,Dg=u0-.006,zo=It(B1*B1+Dg*Dg)-2e-5*ct(Dg*wn),mu=rt(Dg,B1)-3e-6*At(B1*wn),Ag=zo*At(mu),c0=zo*ct(mu);return[Ag,c0]}function jr(G0){const[iv,u0]=G0,B1=iv,Dg=u0,zo=It(B1*B1+Dg*Dg)+2e-5*ct(Dg*wn),mu=rt(Dg,B1)+3e-6*At(B1*wn),Ag=zo*At(mu)+.0065,c0=zo*ct(mu)+.006;return[Ag,c0]}const Jr=180/Math.PI,Yn=Math.PI/180,Lt=6378137,_n=20037508342789244e-9;function Mt(G0){return[G0[0]*Jr/Lt,(Math.PI*.5-2*Math.atan(Math.exp(-G0[1]/Lt)))*Jr]}function Bt(G0){const iv=Math.abs(G0[0])<=180?G0[0]:G0[0]-(G0[0]<0?-1:1)*360,u0=[Lt*iv*Yn,Lt*Math.log(Math.tan(Math.PI*.25+.5*G0[1]*Yn))];return u0[0]>_n&&(u0[0]=_n),u0[0]<-_n&&(u0[0]=-_n),u0[1]>_n&&(u0[1]=_n),u0[1]<-_n&&(u0[1]=-_n),u0}const{abs:Rt}=Math,on=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],Hr=[75,60,45,30,15,0],vn=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Ca=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function ai(G0,iv,u0){const B1=Rt(iv)/u0[9];let Dg=u0[0]+u0[1]*Rt(G0),zo=u0[2]+u0[3]*B1+u0[4]*Math.pow(B1,2)+u0[5]*Math.pow(B1,3)+u0[6]*Math.pow(B1,4)+u0[7]*Math.pow(B1,5)+u0[8]*Math.pow(B1,6);return Dg*=G0<0?-1:1,zo*=iv<0?-1:1,[Dg,zo]}function gt(G0){const[iv,u0]=G0;let B1=[];for(let Dg=0;DgHr[Dg]){B1=Ca[Dg];break}return ai(iv,u0,B1)}function Zr(G0){const[iv,u0]=G0;let B1=[];for(let Dg=0;Dg=on[Dg]){B1=vn[Dg];break}return ai(iv,u0,B1)}function Ht(G0,iv){if(!G0)throw new Error(iv)}function Zs(G0){return!!G0&&Object.prototype.toString.call(G0)==="[object Array]"}function oi(G0){return!isNaN(Number(G0))&&G0!==null&&!Zs(G0)}function Pa(...G0){const iv=G0.length-1;return function(...u0){let B1=iv,Dg=G0[iv].apply(null,u0);for(;B1--;)Dg=G0[B1].call(null,Dg);return Dg}}function Aa(G0,iv,u0=!1){if(G0===null)return;let B1,Dg,zo,mu,Ag,c0,L0=0,$0=0,cv,Gg;const{type:uu}=G0,Gs=uu==="FeatureCollection",Ia=uu==="Feature",lu=Gs?G0.features.length:1;for(let _h=0;_h=2,`Invalid input coordinate: ${G0}`),Ht(oi(G0[0])&&oi(G0[1]),`Invalid input coordinate: ${G0}`),G0=G0.map(Number),mu=!0);const Ag=Dg;return mu?Ag(G0):(Aa(G0,c0=>{[c0[0],c0[1]]=Ag(c0)}),G0)}const k0=Object.assign(Object.assign({},Pg),{CRSTypes:Pg,transform:Je})},15468:function(c,g,l){var u=l(19545),D=function(w){this.precision=w&&w.precision?w.precision:17,this.direction=w&&w.direction?w.direction:!1,this.pseudoNode=w&&w.pseudoNode?w.pseudoNode:!1,this.objectComparator=w&&w.objectComparator?w.objectComparator:y};D.prototype.compare=function(w,a){if(w.type!==a.type||!x(w,a))return!1;switch(w.type){case"Point":return this.compareCoord(w.coordinates,a.coordinates);case"LineString":return this.compareLine(w.coordinates,a.coordinates,0,!1);case"Polygon":return this.comparePolygon(w,a);case"Feature":return this.compareFeature(w,a);default:if(w.type.indexOf("Multi")===0){var S=this,I=b(w),N=b(a);return I.every(function(ie){return this.some(function(ze){return S.compare(ie,ze)})},N)}}return!1};function b(w){return w.coordinates.map(function(a){return{type:w.type.replace("Multi",""),coordinates:a}})}function x(w,a){return w.hasOwnProperty("coordinates")?w.coordinates.length===a.coordinates.length:w.length===a.length}D.prototype.compareCoord=function(w,a){if(w.length!==a.length)return!1;for(var S=0;S=0&&(S=[].concat(w.slice(I,w.length),w.slice(1,I+1))),S},D.prototype.comparePath=function(w,a){var S=this;return w.every(function(I,N){return S.compareCoord(I,this[N])},a)},D.prototype.comparePolygon=function(w,a){if(this.compareLine(w.coordinates[0],a.coordinates[0],1,!0)){var S=w.coordinates.slice(1,w.coordinates.length),I=a.coordinates.slice(1,a.coordinates.length),N=this;return S.every(function(ie){return this.some(function(ze){return N.compareLine(ie,ze,1,!0)})},I)}else return!1},D.prototype.compareFeature=function(w,a){return w.id!==a.id||!this.objectComparator(w.properties,a.properties)||!this.compareBBox(w,a)?!1:this.compare(w.geometry,a.geometry)},D.prototype.compareBBox=function(w,a){return!!(!w.bbox&&!a.bbox||w.bbox&&a.bbox&&this.compareCoord(w.bbox,a.bbox))},D.prototype.removePseudo=function(w){return w};function y(w,a){return u(w,a,{strict:!0})}c.exports=D},56898:function(c,g,l){var u=l(79535),D=l(78161),b=l(9750),x=l(76314).Z,y=b.featureEach,w=b.coordEach,a=D.polygon,S=D.featureCollection;function I(N){var ie=new u(N);return ie.insert=function(ze){if(ze.type!=="Feature")throw new Error("invalid feature");return ze.bbox=ze.bbox?ze.bbox:x(ze),u.prototype.insert.call(this,ze)},ie.load=function(ze){var Ie=[];return Array.isArray(ze)?ze.forEach(function(ct){if(ct.type!=="Feature")throw new Error("invalid features");ct.bbox=ct.bbox?ct.bbox:x(ct),Ie.push(ct)}):y(ze,function(ct){if(ct.type!=="Feature")throw new Error("invalid features");ct.bbox=ct.bbox?ct.bbox:x(ct),Ie.push(ct)}),u.prototype.load.call(this,Ie)},ie.remove=function(ze,Ie){if(ze.type!=="Feature")throw new Error("invalid feature");return ze.bbox=ze.bbox?ze.bbox:x(ze),u.prototype.remove.call(this,ze,Ie)},ie.clear=function(){return u.prototype.clear.call(this)},ie.search=function(ze){var Ie=u.prototype.search.call(this,this.toBBox(ze));return S(Ie)},ie.collides=function(ze){return u.prototype.collides.call(this,this.toBBox(ze))},ie.all=function(){var ze=u.prototype.all.call(this);return S(ze)},ie.toJSON=function(){return u.prototype.toJSON.call(this)},ie.fromJSON=function(ze){return u.prototype.fromJSON.call(this,ze)},ie.toBBox=function(ze){var Ie;if(ze.bbox)Ie=ze.bbox;else if(Array.isArray(ze)&&ze.length===4)Ie=ze;else if(Array.isArray(ze)&&ze.length===6)Ie=[ze[0],ze[1],ze[3],ze[4]];else if(ze.type==="Feature")Ie=x(ze);else if(ze.type==="FeatureCollection")Ie=x(ze);else throw new Error("invalid geojson");return{minX:Ie[0],minY:Ie[1],maxX:Ie[2],maxY:Ie[3]}},ie}c.exports=I,c.exports.default=I},3091:function(c,g,l){"use strict";var u,D=l(63550),b=l(4892),x=l(79761),y=l(45463),w=l(35041),a=l(61054),S=l(43839),I=Function,N=function(gt){try{return I('"use strict"; return ('+gt+").constructor;")()}catch(Zr){}},ie=Object.getOwnPropertyDescriptor;if(ie)try{ie({},"")}catch(gt){ie=null}var ze=function(){throw new a},Ie=ie?function(){try{return arguments.callee,ze}catch(gt){try{return ie(arguments,"callee").get}catch(Zr){return ze}}}():ze,ct=l(9997)(),At=l(63825)(),rt=Object.getPrototypeOf||(At?function(gt){return gt.__proto__}:null),It={},Ot=typeof Uint8Array=="undefined"||!rt?u:rt(Uint8Array),wn={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?u:ArrayBuffer,"%ArrayIteratorPrototype%":ct&&rt?rt([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":It,"%AsyncGenerator%":It,"%AsyncGeneratorFunction%":It,"%AsyncIteratorPrototype%":It,"%Atomics%":typeof Atomics=="undefined"?u:Atomics,"%BigInt%":typeof BigInt=="undefined"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":D,"%eval%":eval,"%EvalError%":b,"%Float32Array%":typeof Float32Array=="undefined"?u:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?u:FinalizationRegistry,"%Function%":I,"%GeneratorFunction%":It,"%Int8Array%":typeof Int8Array=="undefined"?u:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?u:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ct&&rt?rt(rt([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map=="undefined"?u:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ct||!rt?u:rt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?u:Promise,"%Proxy%":typeof Proxy=="undefined"?u:Proxy,"%RangeError%":x,"%ReferenceError%":y,"%Reflect%":typeof Reflect=="undefined"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?u:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ct||!rt?u:rt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ct&&rt?rt(""[Symbol.iterator]()):u,"%Symbol%":ct?Symbol:u,"%SyntaxError%":w,"%ThrowTypeError%":Ie,"%TypedArray%":Ot,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array=="undefined"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?u:Uint32Array,"%URIError%":S,"%WeakMap%":typeof WeakMap=="undefined"?u:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?u:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?u:WeakSet};if(rt)try{null.error}catch(gt){var Hs=rt(rt(gt));wn["%Error.prototype%"]=Hs}var jr=function gt(Zr){var Ht;if(Zr==="%AsyncFunction%")Ht=N("async function () {}");else if(Zr==="%GeneratorFunction%")Ht=N("function* () {}");else if(Zr==="%AsyncGeneratorFunction%")Ht=N("async function* () {}");else if(Zr==="%AsyncGenerator%"){var Zs=gt("%AsyncGeneratorFunction%");Zs&&(Ht=Zs.prototype)}else if(Zr==="%AsyncIteratorPrototype%"){var oi=gt("%AsyncGenerator%");oi&&rt&&(Ht=rt(oi.prototype))}return wn[Zr]=Ht,Ht},Jr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yn=l(36723),Lt=l(16663),_n=Yn.call(Function.call,Array.prototype.concat),Mt=Yn.call(Function.apply,Array.prototype.splice),Bt=Yn.call(Function.call,String.prototype.replace),Rt=Yn.call(Function.call,String.prototype.slice),on=Yn.call(Function.call,RegExp.prototype.exec),Hr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vn=/\\(\\)?/g,Ca=function(Zr){var Ht=Rt(Zr,0,1),Zs=Rt(Zr,-1);if(Ht==="%"&&Zs!=="%")throw new w("invalid intrinsic syntax, expected closing `%`");if(Zs==="%"&&Ht!=="%")throw new w("invalid intrinsic syntax, expected opening `%`");var oi=[];return Bt(Zr,Hr,function(Pa,Aa,Pg,Ug){oi[oi.length]=Pg?Bt(Ug,vn,"$1"):Aa||Pa}),oi},ai=function(Zr,Ht){var Zs=Zr,oi;if(Lt(Jr,Zs)&&(oi=Jr[Zs],Zs="%"+oi[0]+"%"),Lt(wn,Zs)){var Pa=wn[Zs];if(Pa===It&&(Pa=jr(Zs)),typeof Pa=="undefined"&&!Ht)throw new a("intrinsic "+Zr+" exists, but is not available. Please file an issue!");return{alias:oi,name:Zs,value:Pa}}throw new w("intrinsic "+Zr+" does not exist!")};c.exports=function(Zr,Ht){if(typeof Zr!="string"||Zr.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ht!="boolean")throw new a('"allowMissing" argument must be a boolean');if(on(/^%?[^%]*%?$/,Zr)===null)throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Zs=Ca(Zr),oi=Zs.length>0?Zs[0]:"",Pa=ai("%"+oi+"%",Ht),Aa=Pa.name,Pg=Pa.value,Ug=!1,e0=Pa.alias;e0&&(oi=e0[0],Mt(Zs,_n([0,1],e0)));for(var H0=1,X0=!0;H0=Zs.length){var Je=ie(Pg,d0);X0=!!Je,X0&&"get"in Je&&!("originalValue"in Je.get)?Pg=Je.get:Pg=Pg[d0]}else X0=Lt(Pg,d0),Pg=Pg[d0];X0&&!Ug&&(wn[Aa]=Pg)}}return Pg}},67747:function(c,g,l){"use strict";var u=l(3091),D=u("%Object.getOwnPropertyDescriptor%",!0);if(D)try{D([],"length")}catch(b){D=null}c.exports=D},83959:function(c,g,l){var u;(function(D,b,x,y){"use strict";var w=["","webkit","Moz","MS","ms","o"],a=b.createElement("div"),S="function",I=Math.round,N=Math.abs,ie=Date.now;function ze(No,qt,Sr){return setTimeout(Hs(No,Sr),qt)}function Ie(No,qt,Sr){return Array.isArray(No)?(ct(No,Sr[qt],Sr),!0):!1}function ct(No,qt,Sr){var si;if(No)if(No.forEach)No.forEach(qt,Sr);else if(No.length!==y)for(si=0;si\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",bu=D.console&&(D.console.warn||D.console.log);return bu&&bu.call(D.console,si,wa),No.apply(this,arguments)}}var rt;typeof Object.assign!="function"?rt=function(qt){if(qt===y||qt===null)throw new TypeError("Cannot convert undefined or null to object");for(var Sr=Object(qt),si=1;si-1}function Bt(No){return No.trim().split(/\s+/g)}function Rt(No,qt,Sr){if(No.indexOf&&!Sr)return No.indexOf(qt);for(var si=0;siga[qt]}):si=si.sort()),si}function vn(No,qt){for(var Sr,si,Rs=qt[0].toUpperCase()+qt.slice(1),wa=0;wa1&&!Sr.firstMultiple?Sr.firstMultiple=uu(qt):Rs===1&&(Sr.firstMultiple=!1);var wa=Sr.firstInput,bu=Sr.firstMultiple,s0=bu?bu.center:wa.center,In=qt.center=Gs(si);qt.timeStamp=ie(),qt.deltaTime=qt.timeStamp-wa.timeStamp,qt.angle=Kr(s0,In),qt.distance=_h(s0,In),cv(Sr,qt),qt.offsetDirection=lu(qt.deltaX,qt.deltaY);var ga=Ia(qt.deltaTime,qt.deltaX,qt.deltaY);qt.overallVelocityX=ga.x,qt.overallVelocityY=ga.y,qt.overallVelocity=N(ga.x)>N(ga.y)?ga.x:ga.y,qt.scale=bu?ri(bu.pointers,si):1,qt.rotation=bu?fr(bu.pointers,si):0,qt.maxPointers=Sr.prevInput?qt.pointers.length>Sr.prevInput.maxPointers?qt.pointers.length:Sr.prevInput.maxPointers:qt.pointers.length,Gg(Sr,qt);var Ga=No.element;_n(qt.srcEvent.target,Ga)&&(Ga=qt.srcEvent.target),qt.target=Ga}function cv(No,qt){var Sr=qt.center,si=No.offsetDelta||{},Rs=No.prevDelta||{},wa=No.prevInput||{};(qt.eventType===H0||wa.eventType===d0)&&(Rs=No.prevDelta={x:wa.deltaX||0,y:wa.deltaY||0},si=No.offsetDelta={x:Sr.x,y:Sr.y}),qt.deltaX=Rs.x+(Sr.x-si.x),qt.deltaY=Rs.y+(Sr.y-si.y)}function Gg(No,qt){var Sr=No.lastInterval||qt,si=qt.timeStamp-Sr.timeStamp,Rs,wa,bu,s0;if(qt.eventType!=jv&&(si>e0||Sr.velocity===y)){var In=qt.deltaX-Sr.deltaX,ga=qt.deltaY-Sr.deltaY,Ga=Ia(si,In,ga);wa=Ga.x,bu=Ga.y,Rs=N(Ga.x)>N(Ga.y)?Ga.x:Ga.y,s0=lu(In,ga),No.lastInterval=qt}else Rs=Sr.velocity,wa=Sr.velocityX,bu=Sr.velocityY,s0=Sr.direction;qt.velocity=Rs,qt.velocityX=wa,qt.velocityY=bu,qt.direction=s0}function uu(No){for(var qt=[],Sr=0;Sr=N(qt)?No<0?Je:k0:qt<0?G0:iv}function _h(No,qt,Sr){Sr||(Sr=zo);var si=qt[Sr[0]]-No[Sr[0]],Rs=qt[Sr[1]]-No[Sr[1]];return Math.sqrt(si*si+Rs*Rs)}function Kr(No,qt,Sr){Sr||(Sr=zo);var si=qt[Sr[0]]-No[Sr[0]],Rs=qt[Sr[1]]-No[Sr[1]];return Math.atan2(Rs,si)*180/Math.PI}function fr(No,qt){return Kr(qt[1],qt[0],mu)+Kr(No[1],No[0],mu)}function ri(No,qt){return _h(qt[0],qt[1],mu)/_h(No[0],No[1],mu)}var Ra={mousedown:H0,mousemove:X0,mouseup:d0},Sg="mousedown",Jg="mousemove mouseup";function j0(){this.evEl=Sg,this.evWin=Jg,this.pressed=!1,Ag.apply(this,arguments)}wn(j0,Ag,{handler:function(qt){var Sr=Ra[qt.type];Sr&H0&&qt.button===0&&(this.pressed=!0),Sr&X0&&qt.which!==1&&(Sr=d0),this.pressed&&(Sr&d0&&(this.pressed=!1),this.callback(this.manager,Sr,{pointers:[qt],changedPointers:[qt],pointerType:Pg,srcEvent:qt}))}});var Wo={pointerdown:H0,pointermove:X0,pointerup:d0,pointercancel:jv,pointerout:jv},Mo={2:Pa,3:Aa,4:Pg,5:Ug},qr="pointerdown",On="pointermove pointerup pointercancel";D.MSPointerEvent&&!D.PointerEvent&&(qr="MSPointerDown",On="MSPointerMove MSPointerUp MSPointerCancel");function rn(){this.evEl=qr,this.evWin=On,Ag.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}wn(rn,Ag,{handler:function(qt){var Sr=this.store,si=!1,Rs=qt.type.toLowerCase().replace("ms",""),wa=Wo[Rs],bu=Mo[qt.pointerType]||qt.pointerType,s0=bu==Pa,In=Rt(Sr,qt.pointerId,"pointerId");wa&H0&&(qt.button===0||s0)?In<0&&(Sr.push(qt),In=Sr.length-1):wa&(d0|jv)&&(si=!0),!(In<0)&&(Sr[In]=qt,this.callback(this.manager,wa,{pointers:Sr,changedPointers:[qt],pointerType:bu,srcEvent:qt}),si&&Sr.splice(In,1))}});var ui={touchstart:H0,touchmove:X0,touchend:d0,touchcancel:jv},ya="touchstart",gd="touchstart touchmove touchend touchcancel";function Su(){this.evTarget=ya,this.evWin=gd,this.started=!1,Ag.apply(this,arguments)}wn(Su,Ag,{handler:function(qt){var Sr=ui[qt.type];if(Sr===H0&&(this.started=!0),!!this.started){var si=xu.call(this,qt,Sr);Sr&(d0|jv)&&si[0].length-si[1].length===0&&(this.started=!1),this.callback(this.manager,Sr,{pointers:si[0],changedPointers:si[1],pointerType:Pa,srcEvent:qt})}}});function xu(No,qt){var Sr=on(No.touches),si=on(No.changedTouches);return qt&(d0|jv)&&(Sr=Hr(Sr.concat(si),"identifier",!0)),[Sr,si]}var xa={touchstart:H0,touchmove:X0,touchend:d0,touchcancel:jv},Td="touchstart touchmove touchend touchcancel";function jg(){this.evTarget=Td,this.targetIds={},Ag.apply(this,arguments)}wn(jg,Ag,{handler:function(qt){var Sr=xa[qt.type],si=Wa.call(this,qt,Sr);si&&this.callback(this.manager,Sr,{pointers:si[0],changedPointers:si[1],pointerType:Pa,srcEvent:qt})}});function Wa(No,qt){var Sr=on(No.touches),si=this.targetIds;if(qt&(H0|X0)&&Sr.length===1)return si[Sr[0].identifier]=!0,[Sr,Sr];var Rs,wa,bu=on(No.changedTouches),s0=[],In=this.target;if(wa=Sr.filter(function(ga){return _n(ga.target,In)}),qt===H0)for(Rs=0;Rs-1&&si.splice(wa,1)};setTimeout(Rs,tv)}}function Bg(No){for(var qt=No.srcEvent.clientX,Sr=No.srcEvent.clientY,si=0;si-1&&this.requireFail.splice(qt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(No){return!!this.simultaneous[No.id]},emit:function(No){var qt=this,Sr=this.state;function si(Rs){qt.manager.emit(Rs,No)}Sr=su&&si(qt.options.event+$v(Sr))},tryEmit:function(No){if(this.canEmit())return this.emit(No);this.state=sv},canEmit:function(){for(var No=0;Noqt.threshold&&Rs&qt.direction},attrTest:function(No){return $1.prototype.attrTest.call(this,No)&&(this.state&h0||!(this.state&h0)&&this.directionTest(No))},emit:function(No){this.pX=No.deltaX,this.pY=No.deltaY;var qt=E0(No.direction);qt&&(No.additionalEvent=this.options.event+qt),this._super.emit.call(this,No)}});function z0(){$1.apply(this,arguments)}wn(z0,$1,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[nv]},attrTest:function(No){return this._super.attrTest.call(this,No)&&(Math.abs(No.scale-1)>this.options.threshold||this.state&h0)},emit:function(No){if(No.scale!==1){var qt=No.scale<1?"in":"out";No.additionalEvent=this.options.event+qt}this._super.emit.call(this,No)}});function W0(){yv.apply(this,arguments),this._timer=null,this._input=null}wn(W0,yv,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Xg]},process:function(No){var qt=this.options,Sr=No.pointers.length===qt.pointers,si=No.distanceqt.time;if(this._input=No,!si||!Sr||No.eventType&(d0|jv)&&!Rs)this.reset();else if(No.eventType&H0)this.reset(),this._timer=ze(function(){this.state=hu,this.tryEmit()},qt.time,this);else if(No.eventType&d0)return hu;return sv},reset:function(){clearTimeout(this._timer)},emit:function(No){this.state===hu&&(No&&No.eventType&d0?this.manager.emit(this.options.event+"up",No):(this._input.timeStamp=ie(),this.manager.emit(this.options.event,this._input)))}});function Rv(){$1.apply(this,arguments)}wn(Rv,$1,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[nv]},attrTest:function(No){return this._super.attrTest.call(this,No)&&(Math.abs(No.rotation)>this.options.threshold||this.state&h0)}});function R0(){$1.apply(this,arguments)}wn(R0,$1,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:u0|B1,pointers:1},getTouchAction:function(){return l0.prototype.getTouchAction.call(this)},attrTest:function(No){var qt=this.options.direction,Sr;return qt&(u0|B1)?Sr=No.overallVelocity:qt&u0?Sr=No.overallVelocityX:qt&B1&&(Sr=No.overallVelocityY),this._super.attrTest.call(this,No)&&qt&No.offsetDirection&&No.distance>this.options.threshold&&No.maxPointers==this.options.pointers&&N(Sr)>this.options.velocity&&No.eventType&d0},emit:function(No){var qt=E0(No.offsetDirection);qt&&this.manager.emit(this.options.event+qt,No),this.manager.emit(this.options.event,No)}});function gv(){yv.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}wn(gv,yv,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[A0]},process:function(No){var qt=this.options,Sr=No.pointers.length===qt.pointers,si=No.distance>1,N=-7,ie=D?x-1:0,ze=D?-1:1,Ie=l[u+ie];for(ie+=ze,y=Ie&(1<<-N)-1,Ie>>=-N,N+=a;N>0;y=y*256+l[u+ie],ie+=ze,N-=8);for(w=y&(1<<-N)-1,y>>=-N,N+=b;N>0;w=w*256+l[u+ie],ie+=ze,N-=8);if(y===0)y=1-I;else{if(y===S)return w?NaN:(Ie?-1:1)*(1/0);w=w+Math.pow(2,b),y=y-I}return(Ie?-1:1)*w*Math.pow(2,y-b)},g.write=function(l,u,D,b,x,y){var w,a,S,I=y*8-x-1,N=(1<>1,ze=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ie=b?0:y-1,ct=b?1:-1,At=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(a=isNaN(u)?1:0,w=N):(w=Math.floor(Math.log(u)/Math.LN2),u*(S=Math.pow(2,-w))<1&&(w--,S*=2),w+ie>=1?u+=ze/S:u+=ze*Math.pow(2,1-ie),u*S>=2&&(w++,S/=2),w+ie>=N?(a=0,w=N):w+ie>=1?(a=(u*S-1)*Math.pow(2,x),w=w+ie):(a=u*Math.pow(2,ie-1)*Math.pow(2,x),w=0));x>=8;l[D+Ie]=a&255,Ie+=ct,a/=256,x-=8);for(w=w<0;l[D+Ie]=w&255,Ie+=ct,w/=256,I-=8);l[D+Ie-ct]|=At*128}},3039:function(c,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var l=Symbol.for("INJECTION");function u(w,a,S,I){function N(){return I&&!Reflect.hasMetadata(l,this,a)&&Reflect.defineMetadata(l,S(),this,a),Reflect.hasMetadata(l,this,a)?Reflect.getMetadata(l,this,a):S()}function ie(ze){Reflect.defineMetadata(l,ze,this,a)}Object.defineProperty(w,a,{configurable:!0,enumerable:!0,get:N,set:ie})}function D(w,a){return function(S){return function(I,N){var ie=function(){return w.get(S)};u(I,N,ie,a)}}}g.makePropertyInjectDecorator=D;function b(w,a){return function(S,I){return function(N,ie){var ze=function(){return w.getNamed(S,I)};u(N,ie,ze,a)}}}g.makePropertyInjectNamedDecorator=b;function x(w,a){return function(S,I,N){return function(ie,ze){var Ie=function(){return w.getTagged(S,I,N)};u(ie,ze,Ie,a)}}}g.makePropertyInjectTaggedDecorator=x;function y(w,a){return function(S){return function(I,N){var ie=function(){return w.getAll(S)};u(I,N,ie,a)}}}g.makePropertyMultiInjectDecorator=y},11922:function(c,g,l){"use strict";var u;u={value:!0};var D=l(3039);function b(x,y){y===void 0&&(y=!0);var w=D.makePropertyInjectDecorator(x,y),a=D.makePropertyInjectNamedDecorator(x,y),S=D.makePropertyInjectTaggedDecorator(x,y),I=D.makePropertyMultiInjectDecorator(x,y);return{lazyInject:w,lazyInjectNamed:a,lazyInjectTagged:S,lazyMultiInject:I}}g.Z=b},80626:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.tagProperty=g.tagParameter=g.decorate=void 0;var u=l(36078),D=l(50295);function b(I,N,ie,ze){var Ie=D.TAGGED;y(Ie,I,N,ze,ie)}g.tagParameter=b;function x(I,N,ie){var ze=D.TAGGED_PROP;y(ze,I.constructor,N,ie)}g.tagProperty=x;function y(I,N,ie,ze,Ie){var ct={},At=typeof Ie=="number",rt=Ie!==void 0&&At?Ie.toString():ie;if(At&&ie!==void 0)throw new Error(u.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(I,N)&&(ct=Reflect.getMetadata(I,N));var It=ct[rt];if(!Array.isArray(It))It=[];else for(var Ot=0,wn=It;Ot= than the number of constructor arguments of its base class.")};g.ARGUMENTS_LENGTH_MISMATCH=u,g.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",g.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",g.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",g.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",g.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var D=function(){for(var x=[],y=0;y0&&Jr[Jr.length-1])&&(Mt[0]===6||Mt[0]===2)){wn=0;continue}if(Mt[0]===3&&(!Jr||Mt[1]>Jr[0]&&Mt[1]0?y._map.set(a,S):y._map.delete(a)})},b.prototype.hasKey=function(x){if(x==null)throw new Error(u.NULL_ARGUMENT);return this._map.has(x)},b.prototype.clone=function(){var x=new b;return this._map.forEach(function(y,w){y.forEach(function(a){return x.add(w,a.clone())})}),x},b.prototype.traverse=function(x){this._map.forEach(function(y,w){x(w,y)})},b}();g.Lookup=D},99311:function(c,g,l){"use strict";var u;u={value:!0},u=u=u=u=u=u=g.GW=u=u=g.zY=u=u=u=u=u=g.f3=u=u=g.b2=u=u=u=u=u=g.W2=u=void 0;var D=l(50295);u=D;var b=l(70596);Object.defineProperty(g,"W2",{enumerable:!0,get:function(){return b.Container}});var x=l(77690);u={enumerable:!0,get:function(){return x.BindingScopeEnum}},u={enumerable:!0,get:function(){return x.BindingTypeEnum}},u={enumerable:!0,get:function(){return x.TargetTypeEnum}};var y=l(42913);u={enumerable:!0,get:function(){return y.AsyncContainerModule}},u={enumerable:!0,get:function(){return y.ContainerModule}};var w=l(91773);Object.defineProperty(g,"b2",{enumerable:!0,get:function(){return w.injectable}});var a=l(79189);u={enumerable:!0,get:function(){return a.tagged}};var S=l(79817);u={enumerable:!0,get:function(){return S.named}};var I=l(76213);Object.defineProperty(g,"f3",{enumerable:!0,get:function(){return I.inject}}),u={enumerable:!0,get:function(){return I.LazyServiceIdentifer}};var N=l(71316);u={enumerable:!0,get:function(){return N.optional}};var ie=l(19235);u={enumerable:!0,get:function(){return ie.unmanaged}};var ze=l(41528);u={enumerable:!0,get:function(){return ze.multiInject}};var Ie=l(8245);u={enumerable:!0,get:function(){return Ie.targetName}};var ct=l(71971);Object.defineProperty(g,"zY",{enumerable:!0,get:function(){return ct.postConstruct}});var At=l(43870);u={enumerable:!0,get:function(){return At.MetadataReader}};var rt=l(70023);u={enumerable:!0,get:function(){return rt.id}};var It=l(80626);Object.defineProperty(g,"GW",{enumerable:!0,get:function(){return It.decorate}});var Ot=l(83140);u={enumerable:!0,get:function(){return Ot.traverseAncerstors}},u={enumerable:!0,get:function(){return Ot.taggedConstraint}},u={enumerable:!0,get:function(){return Ot.namedConstraint}},u={enumerable:!0,get:function(){return Ot.typeConstraint}};var wn=l(29552);u={enumerable:!0,get:function(){return wn.getServiceIdentifierAsString}};var Hs=l(34384);u={enumerable:!0,get:function(){return Hs.multiBindToService}}},91519:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Context=void 0;var u=l(70023),D=function(){function b(x){this.id=u.id(),this.container=x}return b.prototype.addPlan=function(x){this.plan=x},b.prototype.setCurrentRequest=function(x){this.currentRequest=x},b}();g.Context=D},25092:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Metadata=void 0;var u=l(50295),D=function(){function b(x,y){this.key=x,this.value=y}return b.prototype.toString=function(){return this.key===u.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},b}();g.Metadata=D},43870:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.MetadataReader=void 0;var u=l(50295),D=function(){function b(){}return b.prototype.getConstructorMetadata=function(x){var y=Reflect.getMetadata(u.PARAM_TYPES,x),w=Reflect.getMetadata(u.TAGGED,x);return{compilerGeneratedMetadata:y,userGeneratedMetadata:w||{}}},b.prototype.getPropertiesMetadata=function(x){var y=Reflect.getMetadata(u.TAGGED_PROP,x)||[];return y},b}();g.MetadataReader=D},6335:function(c,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Plan=void 0;var l=function(){function u(D,b){this.parentContext=D,this.rootRequest=b}return u}();g.Plan=l},54142:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getBindingDictionary=g.createMockRequest=g.plan=void 0;var u=l(13497),D=l(36078),b=l(77690),x=l(50295),y=l(92542),w=l(29552),a=l(91519),S=l(25092),I=l(6335),N=l(16664),ie=l(14810),ze=l(69660);function Ie(jr){return jr._bindingDictionary}g.getBindingDictionary=Ie;function ct(jr,Jr,Yn,Lt,_n,Mt){var Bt=jr?x.MULTI_INJECT_TAG:x.INJECT_TAG,Rt=new S.Metadata(Bt,Yn),on=new ze.Target(Jr,Lt,Yn,Rt);if(_n!==void 0){var Hr=new S.Metadata(_n,Mt);on.metadata.push(Hr)}return on}function At(jr,Jr,Yn,Lt,_n){var Mt=Ot(Yn.container,_n.serviceIdentifier),Bt=[];return Mt.length===u.BindingCount.NoBindingsAvailable&&Yn.container.options.autoBindInjectable&&typeof _n.serviceIdentifier=="function"&&jr.getConstructorMetadata(_n.serviceIdentifier).compilerGeneratedMetadata&&(Yn.container.bind(_n.serviceIdentifier).toSelf(),Mt=Ot(Yn.container,_n.serviceIdentifier)),Jr?Bt=Mt:Bt=Mt.filter(function(Rt){var on=new ie.Request(Rt.serviceIdentifier,Yn,Lt,Rt,_n);return Rt.constraint(on)}),rt(_n.serviceIdentifier,Bt,_n,Yn.container),Bt}function rt(jr,Jr,Yn,Lt){switch(Jr.length){case u.BindingCount.NoBindingsAvailable:if(Yn.isOptional())return Jr;var _n=w.getServiceIdentifierAsString(jr),Mt=D.NOT_REGISTERED;throw Mt+=w.listMetadataForTarget(_n,Yn),Mt+=w.listRegisteredBindingsForServiceIdentifier(Lt,_n,Ot),new Error(Mt);case u.BindingCount.OnlyOneBindingAvailable:if(!Yn.isArray())return Jr;case u.BindingCount.MultipleBindingsAvailable:default:if(Yn.isArray())return Jr;var _n=w.getServiceIdentifierAsString(jr),Mt=D.AMBIGUOUS_MATCH+" "+_n;throw Mt+=w.listRegisteredBindingsForServiceIdentifier(Lt,_n,Ot),new Error(Mt)}}function It(jr,Jr,Yn,Lt,_n,Mt){var Bt,Rt;if(_n===null){Bt=At(jr,Jr,Lt,null,Mt),Rt=new ie.Request(Yn,Lt,null,Bt,Mt);var on=new I.Plan(Lt,Rt);Lt.addPlan(on)}else Bt=At(jr,Jr,Lt,_n,Mt),Rt=_n.addChildRequest(Mt.serviceIdentifier,Bt,Mt);Bt.forEach(function(Hr){var vn=null;if(Mt.isArray())vn=Rt.addChildRequest(Hr.serviceIdentifier,Hr,Mt);else{if(Hr.cache)return;vn=Rt}if(Hr.type===b.BindingTypeEnum.Instance&&Hr.implementationType!==null){var Ca=N.getDependencies(jr,Hr.implementationType);if(!Lt.container.options.skipBaseClassChecks){var ai=N.getBaseClassDependencyCount(jr,Hr.implementationType);if(Ca.length0,_n=Yn.length>It.length,Mt=Lt||_n?Yn.length:It.length,Bt=ie(Ot,rt,Hs,Jr,Mt),Rt=ze(At,It),on=u(u([],Bt),Rt);return on}function N(At,rt,It,Ot,wn){var Hs=wn[At.toString()]||[],jr=ct(Hs),Jr=jr.unmanaged!==!0,Yn=Ot[At],Lt=jr.inject||jr.multiInject;if(Yn=Lt||Yn,Yn instanceof D.LazyServiceIdentifer&&(Yn=Yn.unwrap()),Jr){var _n=Yn===Object,Mt=Yn===Function,Bt=Yn===void 0,Rt=_n||Mt||Bt;if(!rt&&Rt){var on=b.MISSING_INJECT_ANNOTATION+" argument "+At+" in class "+It+".";throw new Error(on)}var Hr=new a.Target(x.TargetTypeEnum.ConstructorArgument,jr.targetName,Yn);return Hr.metadata=Hs,Hr}return null}function ie(At,rt,It,Ot,wn){for(var Hs=[],jr=0;jr0?Jr:Ie(At,It)}else return 0}g.getBaseClassDependencyCount=Ie;function ct(At){var rt={};return At.forEach(function(It){rt[It.key.toString()]=It.value}),{inject:rt[y.INJECT_TAG],multiInject:rt[y.MULTI_INJECT_TAG],targetName:rt[y.NAME_TAG],unmanaged:rt[y.UNMANAGED_TAG]}}},14810:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Request=void 0;var u=l(70023),D=function(){function b(x,y,w,a,S){this.id=u.id(),this.serviceIdentifier=x,this.parentContext=y,this.parentRequest=w,this.target=S,this.childRequests=[],this.bindings=Array.isArray(a)?a:[a],this.requestScope=w===null?new Map:null}return b.prototype.addChildRequest=function(x,y,w){var a=new b(x,this.parentContext,this,y,w);return this.childRequests.push(a),a},b}();g.Request=D},69660:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Target=void 0;var u=l(50295),D=l(70023),b=l(25092),x=l(68634),y=function(){function w(a,S,I,N){this.id=D.id(),this.type=a,this.serviceIdentifier=I,this.name=new x.QueryableString(S||""),this.metadata=new Array;var ie=null;typeof N=="string"?ie=new b.Metadata(u.NAMED_TAG,N):N instanceof b.Metadata&&(ie=N),ie!==null&&this.metadata.push(ie)}return w.prototype.hasTag=function(a){for(var S=0,I=this.metadata;S0){var Ie=N.filter(function(At){return At.target!==null&&At.target.type===b.TargetTypeEnum.ConstructorArgument}),ct=Ie.map(ie);ze=w(I,ct),ze=y(ze,N,ie)}else ze=new I;return a(I,ze),ze}g.resolveInstance=S},9386:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.resolve=void 0;var u=l(36078),D=l(77690),b=l(92542),x=l(29552),y=l(74962),w=function(I,N,ie){try{return ie()}catch(ze){throw b.isStackOverflowExeption(ze)?new Error(u.CIRCULAR_DEPENDENCY_IN_FACTORY(I,N.toString())):ze}},a=function(I){return function(N){N.parentContext.setCurrentRequest(N);var ie=N.bindings,ze=N.childRequests,Ie=N.target&&N.target.isArray(),ct=!N.parentRequest||!N.parentRequest.target||!N.target||!N.parentRequest.target.matchesArray(N.target.serviceIdentifier);if(Ie&&ct)return ze.map(function(Hs){var jr=a(I);return jr(Hs)});var At=null;if(N.target.isOptional()&&ie.length===0)return;var rt=ie[0],It=rt.scope===D.BindingScopeEnum.Singleton,Ot=rt.scope===D.BindingScopeEnum.Request;if(It&&rt.activated)return rt.cache;if(Ot&&I!==null&&I.has(rt.id))return I.get(rt.id);if(rt.type===D.BindingTypeEnum.ConstantValue)At=rt.cache,rt.activated=!0;else if(rt.type===D.BindingTypeEnum.Function)At=rt.cache,rt.activated=!0;else if(rt.type===D.BindingTypeEnum.Constructor)At=rt.implementationType;else if(rt.type===D.BindingTypeEnum.DynamicValue&&rt.dynamicValue!==null)At=w("toDynamicValue",rt.serviceIdentifier,function(){return rt.dynamicValue(N.parentContext)});else if(rt.type===D.BindingTypeEnum.Factory&&rt.factory!==null)At=w("toFactory",rt.serviceIdentifier,function(){return rt.factory(N.parentContext)});else if(rt.type===D.BindingTypeEnum.Provider&&rt.provider!==null)At=w("toProvider",rt.serviceIdentifier,function(){return rt.provider(N.parentContext)});else if(rt.type===D.BindingTypeEnum.Instance&&rt.implementationType!==null)At=y.resolveInstance(rt.implementationType,ze,a(I));else{var wn=x.getServiceIdentifierAsString(N.serviceIdentifier);throw new Error(u.INVALID_BINDING_TYPE+" "+wn)}return typeof rt.onActivation=="function"&&(At=rt.onActivation(N.parentContext,At)),It&&(rt.cache=At,rt.activated=!0),Ot&&I!==null&&!I.has(rt.id)&&I.set(rt.id,At),At}};function S(I){var N=a(I.plan.rootRequest.requestScope);return N(I.plan.rootRequest)}g.resolve=S},91640:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingInSyntax=void 0;var u=l(77690),D=l(46890),b=function(){function x(y){this._binding=y}return x.prototype.inRequestScope=function(){return this._binding.scope=u.BindingScopeEnum.Request,new D.BindingWhenOnSyntax(this._binding)},x.prototype.inSingletonScope=function(){return this._binding.scope=u.BindingScopeEnum.Singleton,new D.BindingWhenOnSyntax(this._binding)},x.prototype.inTransientScope=function(){return this._binding.scope=u.BindingScopeEnum.Transient,new D.BindingWhenOnSyntax(this._binding)},x}();g.BindingInSyntax=b},82386:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingInWhenOnSyntax=void 0;var u=l(91640),D=l(8926),b=l(36890),x=function(){function y(w){this._binding=w,this._bindingWhenSyntax=new b.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new D.BindingOnSyntax(this._binding),this._bindingInSyntax=new u.BindingInSyntax(w)}return y.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},y.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},y.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},y.prototype.when=function(w){return this._bindingWhenSyntax.when(w)},y.prototype.whenTargetNamed=function(w){return this._bindingWhenSyntax.whenTargetNamed(w)},y.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},y.prototype.whenTargetTagged=function(w,a){return this._bindingWhenSyntax.whenTargetTagged(w,a)},y.prototype.whenInjectedInto=function(w){return this._bindingWhenSyntax.whenInjectedInto(w)},y.prototype.whenParentNamed=function(w){return this._bindingWhenSyntax.whenParentNamed(w)},y.prototype.whenParentTagged=function(w,a){return this._bindingWhenSyntax.whenParentTagged(w,a)},y.prototype.whenAnyAncestorIs=function(w){return this._bindingWhenSyntax.whenAnyAncestorIs(w)},y.prototype.whenNoAncestorIs=function(w){return this._bindingWhenSyntax.whenNoAncestorIs(w)},y.prototype.whenAnyAncestorNamed=function(w){return this._bindingWhenSyntax.whenAnyAncestorNamed(w)},y.prototype.whenAnyAncestorTagged=function(w,a){return this._bindingWhenSyntax.whenAnyAncestorTagged(w,a)},y.prototype.whenNoAncestorNamed=function(w){return this._bindingWhenSyntax.whenNoAncestorNamed(w)},y.prototype.whenNoAncestorTagged=function(w,a){return this._bindingWhenSyntax.whenNoAncestorTagged(w,a)},y.prototype.whenAnyAncestorMatches=function(w){return this._bindingWhenSyntax.whenAnyAncestorMatches(w)},y.prototype.whenNoAncestorMatches=function(w){return this._bindingWhenSyntax.whenNoAncestorMatches(w)},y.prototype.onActivation=function(w){return this._bindingOnSyntax.onActivation(w)},y}();g.BindingInWhenOnSyntax=x},8926:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingOnSyntax=void 0;var u=l(36890),D=function(){function b(x){this._binding=x}return b.prototype.onActivation=function(x){return this._binding.onActivation=x,new u.BindingWhenSyntax(this._binding)},b}();g.BindingOnSyntax=D},43313:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingToSyntax=void 0;var u=l(36078),D=l(77690),b=l(82386),x=l(46890),y=function(){function w(a){this._binding=a}return w.prototype.to=function(a){return this._binding.type=D.BindingTypeEnum.Instance,this._binding.implementationType=a,new b.BindingInWhenOnSyntax(this._binding)},w.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+u.INVALID_TO_SELF_VALUE);var a=this._binding.serviceIdentifier;return this.to(a)},w.prototype.toConstantValue=function(a){return this._binding.type=D.BindingTypeEnum.ConstantValue,this._binding.cache=a,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=D.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},w.prototype.toDynamicValue=function(a){return this._binding.type=D.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=a,this._binding.implementationType=null,new b.BindingInWhenOnSyntax(this._binding)},w.prototype.toConstructor=function(a){return this._binding.type=D.BindingTypeEnum.Constructor,this._binding.implementationType=a,this._binding.scope=D.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},w.prototype.toFactory=function(a){return this._binding.type=D.BindingTypeEnum.Factory,this._binding.factory=a,this._binding.scope=D.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},w.prototype.toFunction=function(a){if(typeof a!="function")throw new Error(u.INVALID_FUNCTION_BINDING);var S=this.toConstantValue(a);return this._binding.type=D.BindingTypeEnum.Function,this._binding.scope=D.BindingScopeEnum.Singleton,S},w.prototype.toAutoFactory=function(a){return this._binding.type=D.BindingTypeEnum.Factory,this._binding.factory=function(S){var I=function(){return S.container.get(a)};return I},this._binding.scope=D.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},w.prototype.toProvider=function(a){return this._binding.type=D.BindingTypeEnum.Provider,this._binding.provider=a,this._binding.scope=D.BindingScopeEnum.Singleton,new x.BindingWhenOnSyntax(this._binding)},w.prototype.toService=function(a){this.toDynamicValue(function(S){return S.container.get(a)})},w}();g.BindingToSyntax=y},46890:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingWhenOnSyntax=void 0;var u=l(8926),D=l(36890),b=function(){function x(y){this._binding=y,this._bindingWhenSyntax=new D.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new u.BindingOnSyntax(this._binding)}return x.prototype.when=function(y){return this._bindingWhenSyntax.when(y)},x.prototype.whenTargetNamed=function(y){return this._bindingWhenSyntax.whenTargetNamed(y)},x.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},x.prototype.whenTargetTagged=function(y,w){return this._bindingWhenSyntax.whenTargetTagged(y,w)},x.prototype.whenInjectedInto=function(y){return this._bindingWhenSyntax.whenInjectedInto(y)},x.prototype.whenParentNamed=function(y){return this._bindingWhenSyntax.whenParentNamed(y)},x.prototype.whenParentTagged=function(y,w){return this._bindingWhenSyntax.whenParentTagged(y,w)},x.prototype.whenAnyAncestorIs=function(y){return this._bindingWhenSyntax.whenAnyAncestorIs(y)},x.prototype.whenNoAncestorIs=function(y){return this._bindingWhenSyntax.whenNoAncestorIs(y)},x.prototype.whenAnyAncestorNamed=function(y){return this._bindingWhenSyntax.whenAnyAncestorNamed(y)},x.prototype.whenAnyAncestorTagged=function(y,w){return this._bindingWhenSyntax.whenAnyAncestorTagged(y,w)},x.prototype.whenNoAncestorNamed=function(y){return this._bindingWhenSyntax.whenNoAncestorNamed(y)},x.prototype.whenNoAncestorTagged=function(y,w){return this._bindingWhenSyntax.whenNoAncestorTagged(y,w)},x.prototype.whenAnyAncestorMatches=function(y){return this._bindingWhenSyntax.whenAnyAncestorMatches(y)},x.prototype.whenNoAncestorMatches=function(y){return this._bindingWhenSyntax.whenNoAncestorMatches(y)},x.prototype.onActivation=function(y){return this._bindingOnSyntax.onActivation(y)},x}();g.BindingWhenOnSyntax=b},36890:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.BindingWhenSyntax=void 0;var u=l(8926),D=l(83140),b=function(){function x(y){this._binding=y}return x.prototype.when=function(y){return this._binding.constraint=y,new u.BindingOnSyntax(this._binding)},x.prototype.whenTargetNamed=function(y){return this._binding.constraint=D.namedConstraint(y),new u.BindingOnSyntax(this._binding)},x.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(y){var w=y.target!==null&&!y.target.isNamed()&&!y.target.isTagged();return w},new u.BindingOnSyntax(this._binding)},x.prototype.whenTargetTagged=function(y,w){return this._binding.constraint=D.taggedConstraint(y)(w),new u.BindingOnSyntax(this._binding)},x.prototype.whenInjectedInto=function(y){return this._binding.constraint=function(w){return D.typeConstraint(y)(w.parentRequest)},new u.BindingOnSyntax(this._binding)},x.prototype.whenParentNamed=function(y){return this._binding.constraint=function(w){return D.namedConstraint(y)(w.parentRequest)},new u.BindingOnSyntax(this._binding)},x.prototype.whenParentTagged=function(y,w){return this._binding.constraint=function(a){return D.taggedConstraint(y)(w)(a.parentRequest)},new u.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorIs=function(y){return this._binding.constraint=function(w){return D.traverseAncerstors(w,D.typeConstraint(y))},new u.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorIs=function(y){return this._binding.constraint=function(w){return!D.traverseAncerstors(w,D.typeConstraint(y))},new u.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorNamed=function(y){return this._binding.constraint=function(w){return D.traverseAncerstors(w,D.namedConstraint(y))},new u.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorNamed=function(y){return this._binding.constraint=function(w){return!D.traverseAncerstors(w,D.namedConstraint(y))},new u.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorTagged=function(y,w){return this._binding.constraint=function(a){return D.traverseAncerstors(a,D.taggedConstraint(y)(w))},new u.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorTagged=function(y,w){return this._binding.constraint=function(a){return!D.traverseAncerstors(a,D.taggedConstraint(y)(w))},new u.BindingOnSyntax(this._binding)},x.prototype.whenAnyAncestorMatches=function(y){return this._binding.constraint=function(w){return D.traverseAncerstors(w,y)},new u.BindingOnSyntax(this._binding)},x.prototype.whenNoAncestorMatches=function(y){return this._binding.constraint=function(w){return!D.traverseAncerstors(w,y)},new u.BindingOnSyntax(this._binding)},x}();g.BindingWhenSyntax=b},83140:function(c,g,l){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.typeConstraint=g.namedConstraint=g.taggedConstraint=g.traverseAncerstors=void 0;var u=l(50295),D=l(25092),b=function(a,S){var I=a.parentRequest;return I!==null?S(I)?!0:b(I,S):!1};g.traverseAncerstors=b;var x=function(a){return function(S){var I=function(N){return N!==null&&N.target!==null&&N.target.matchesTag(a)(S)};return I.metaData=new D.Metadata(a,S),I}};g.taggedConstraint=x;var y=x(u.NAMED_TAG);g.namedConstraint=y;var w=function(a){return function(S){var I=null;if(S!==null)if(I=S.bindings[0],typeof a=="string"){var N=I.serviceIdentifier;return N===a}else{var ie=S.bindings[0].implementationType;return a===ie}return!1}};g.typeConstraint=w},34384:function(c,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.multiBindToService=void 0;var l=function(u){return function(D){return function(){for(var b=[],x=0;x ")}function w(I){I.childRequests.forEach(function(N){if(x(N,N.serviceIdentifier)){var ie=y(N);throw new Error(u.CIRCULAR_DEPENDENCY+" "+ie)}else w(N)})}g.circularDependencyToException=w;function a(I,N){if(N.isTagged()||N.isNamed()){var ie="",ze=N.getNamedTag(),Ie=N.getCustomTags();return ze!==null&&(ie+=ze.toString()+` -`),Ie!==null&&Ie.forEach(function(ct){ie+=ct.toString()+` -`})," "+I+` - `+I+" - "+ie}else return" "+I}g.listMetadataForTarget=a;function S(I){if(I.name)return I.name;var N=I.toString(),ie=N.match(/^function\s*([^\s(]+)/);return ie?ie[1]:"Anonymous function: "+N}g.getFunctionName=S},76051:function(c,g,l){"use strict";var u=l(80758)(),D=l(23148),b=D("Object.prototype.toString"),x=function(S){return u&&S&&typeof S=="object"&&Symbol.toStringTag in S?!1:b(S)==="[object Arguments]"},y=function(S){return x(S)?!0:S!==null&&typeof S=="object"&&typeof S.length=="number"&&S.length>=0&&b(S)!=="[object Array]"&&b(S.callee)==="[object Function]"},w=function(){return x(arguments)}();x.isLegacyArguments=y,c.exports=w?x:y},22948:function(c){c.exports=function(l){return!l||typeof l=="string"?!1:l instanceof Array||Array.isArray(l)||l.length>=0&&(l.splice instanceof Function||Object.getOwnPropertyDescriptor(l,l.length-1)&&l.constructor.name!=="String")}},78034:function(c){c.exports=function(u){return u!=null&&(g(u)||l(u)||!!u._isBuffer)};function g(u){return!!u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u)}function l(u){return typeof u.readFloatLE=="function"&&typeof u.slice=="function"&&g(u.slice(0,0))}},5012:function(c,g,l){"use strict";var u=Date.prototype.getDay,D=function(a){try{return u.call(a),!0}catch(S){return!1}},b=Object.prototype.toString,x="[object Date]",y=l(80758)();c.exports=function(a){return typeof a!="object"||a===null?!1:y?D(a):b.call(a)===x}},11644:function(c,g,l){"use strict";var u=l(23148),D=l(80758)(),b,x,y,w;if(D){b=u("Object.prototype.hasOwnProperty"),x=u("RegExp.prototype.exec"),y={};var a=function(){throw y};w={toString:a,valueOf:a},typeof Symbol.toPrimitive=="symbol"&&(w[Symbol.toPrimitive]=a)}var S=u("Object.prototype.toString"),I=Object.getOwnPropertyDescriptor,N="[object RegExp]";c.exports=D?function(ze){if(!ze||typeof ze!="object")return!1;var Ie=I(ze,"lastIndex"),ct=Ie&&b(Ie,"value");if(!ct)return!1;try{x(ze,w)}catch(At){return At===y}}:function(ze){return!ze||typeof ze!="object"&&typeof ze!="function"?!1:S(ze)===N}},99100:function(c){var g={}.toString;c.exports=Array.isArray||function(l){return g.call(l)=="[object Array]"}},90417:function(c,g,l){c=l.nmd(c);var u=l(97671),D=function(){var b=function(It,Ot,wn,Hs){for(wn=wn||{},Hs=It.length;Hs--;wn[It[Hs]]=Ot);return wn},x=[1,12],y=[1,13],w=[1,9],a=[1,10],S=[1,11],I=[1,14],N=[1,15],ie=[14,18,22,24],ze=[18,22],Ie=[22,24],ct={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(Ot,wn,Hs,jr,Jr,Yn,Lt){var _n=Yn.length-1;switch(Jr){case 1:this.$=Ot.replace(/\\(\\|")/g,"$1").replace(/\\n/g,` -`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(Ot);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=Yn[_n-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=Yn[_n-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[Yn[_n-2],Yn[_n]];break;case 16:this.$={},this.$[Yn[_n][0]]=Yn[_n][1];break;case 17:this.$=Yn[_n-2],Yn[_n-2][Yn[_n][0]]!==void 0&&(this.$.__duplicateProperties__||Object.defineProperty(this.$,"__duplicateProperties__",{value:[],enumerable:!1}),this.$.__duplicateProperties__.push(Yn[_n][0])),Yn[_n-2][Yn[_n][0]]=Yn[_n][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[Yn[_n]];break;case 21:this.$=Yn[_n-2],Yn[_n-2].push(Yn[_n]);break}},table:[{3:5,4:x,5:6,6:y,7:3,8:w,9:4,10:a,11:S,12:1,13:2,15:7,16:8,17:I,23:N},{1:[3]},{14:[1,16]},b(ie,[2,7]),b(ie,[2,8]),b(ie,[2,9]),b(ie,[2,10]),b(ie,[2,11]),b(ie,[2,12]),b(ie,[2,3]),b(ie,[2,4]),b(ie,[2,5]),b([14,18,21,22,24],[2,1]),b(ie,[2,2]),{3:20,4:x,18:[1,17],19:18,20:19},{3:5,4:x,5:6,6:y,7:3,8:w,9:4,10:a,11:S,13:23,15:7,16:8,17:I,23:N,24:[1,21],25:22},{1:[2,6]},b(ie,[2,13]),{18:[1,24],22:[1,25]},b(ze,[2,16]),{21:[1,26]},b(ie,[2,18]),{22:[1,28],24:[1,27]},b(Ie,[2,20]),b(ie,[2,14]),{3:20,4:x,20:29},{3:5,4:x,5:6,6:y,7:3,8:w,9:4,10:a,11:S,13:30,15:7,16:8,17:I,23:N},b(ie,[2,19]),{3:5,4:x,5:6,6:y,7:3,8:w,9:4,10:a,11:S,13:31,15:7,16:8,17:I,23:N},b(ze,[2,17]),b(ze,[2,15]),b(Ie,[2,21])],defaultActions:{16:[2,6]},parseError:function(Ot,wn){if(wn.recoverable)this.trace(Ot);else{let jr=function(Jr,Yn){this.message=Jr,this.hash=Yn};var Hs=jr;throw jr.prototype=Error,new jr(Ot,wn)}},parse:function(Ot){var wn=this,Hs=[0],jr=[],Jr=[null],Yn=[],Lt=this.table,_n="",Mt=0,Bt=0,Rt=0,on=2,Hr=1,vn=Yn.slice.call(arguments,1),Ca=Object.create(this.lexer),ai={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(ai.yy[gt]=this.yy[gt]);Ca.setInput(Ot,ai.yy),ai.yy.lexer=Ca,ai.yy.parser=this,typeof Ca.yylloc=="undefined"&&(Ca.yylloc={});var Zr=Ca.yylloc;Yn.push(Zr);var Ht=Ca.options&&Ca.options.ranges;typeof ai.yy.parseError=="function"?this.parseError=ai.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zs(G0){Hs.length=Hs.length-2*G0,Jr.length=Jr.length-G0,Yn.length=Yn.length-G0}e:var oi=function(){var G0;return G0=Ca.lex()||Hr,typeof G0!="number"&&(G0=wn.symbols_[G0]||G0),G0};for(var Pa,Aa,Pg,Ug,e0,H0,X0={},d0,jv,Lv,Je;;){if(Pg=Hs[Hs.length-1],this.defaultActions[Pg]?Ug=this.defaultActions[Pg]:((Pa===null||typeof Pa=="undefined")&&(Pa=oi()),Ug=Lt[Pg]&&Lt[Pg][Pa]),typeof Ug=="undefined"||!Ug.length||!Ug[0]){var k0="";Je=[];for(d0 in Lt[Pg])this.terminals_[d0]&&d0>on&&Je.push("'"+this.terminals_[d0]+"'");Ca.showPosition?k0="Parse error on line "+(Mt+1)+`: -`+Ca.showPosition()+` -Expecting `+Je.join(", ")+", got '"+(this.terminals_[Pa]||Pa)+"'":k0="Parse error on line "+(Mt+1)+": Unexpected "+(Pa==Hr?"end of input":"'"+(this.terminals_[Pa]||Pa)+"'"),this.parseError(k0,{text:Ca.match,token:this.terminals_[Pa]||Pa,line:Ca.yylineno,loc:Zr,expected:Je})}if(Ug[0]instanceof Array&&Ug.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Pg+", token: "+Pa);switch(Ug[0]){case 1:Hs.push(Pa),Jr.push(Ca.yytext),Yn.push(Ca.yylloc),Hs.push(Ug[1]),Pa=null,Aa?(Pa=Aa,Aa=null):(Bt=Ca.yyleng,_n=Ca.yytext,Mt=Ca.yylineno,Zr=Ca.yylloc,Rt>0&&Rt--);break;case 2:if(jv=this.productions_[Ug[1]][1],X0.$=Jr[Jr.length-jv],X0._$={first_line:Yn[Yn.length-(jv||1)].first_line,last_line:Yn[Yn.length-1].last_line,first_column:Yn[Yn.length-(jv||1)].first_column,last_column:Yn[Yn.length-1].last_column},Ht&&(X0._$.range=[Yn[Yn.length-(jv||1)].range[0],Yn[Yn.length-1].range[1]]),H0=this.performAction.apply(X0,[_n,Bt,Mt,ai.yy,Ug[1],Jr,Yn].concat(vn)),typeof H0!="undefined")return H0;jv&&(Hs=Hs.slice(0,-1*jv*2),Jr=Jr.slice(0,-1*jv),Yn=Yn.slice(0,-1*jv)),Hs.push(this.productions_[Ug[1]][0]),Jr.push(X0.$),Yn.push(X0._$),Lv=Lt[Hs[Hs.length-2]][Hs[Hs.length-1]],Hs.push(Lv);break;case 3:return!0}}return!0}},At=function(){var It={EOF:1,parseError:function(wn,Hs){if(this.yy.parser)this.yy.parser.parseError(wn,Hs);else throw new Error(wn)},setInput:function(Ot,wn){return this.yy=wn||this.yy||{},this._input=Ot,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ot=this._input[0];this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot;var wn=Ot.match(/(?:\r\n?|\n).*/g);return wn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ot},unput:function(Ot){var wn=Ot.length,Hs=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wn),this.offset-=wn;var jr=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Hs.length-1&&(this.yylineno-=Hs.length-1);var Jr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Hs?(Hs.length===jr.length?this.yylloc.first_column:0)+jr[jr.length-Hs.length].length-Hs[0].length:this.yylloc.first_column-wn},this.options.ranges&&(this.yylloc.range=[Jr[0],Jr[0]+this.yyleng-wn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),wn=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+` -`+wn+"^"},test_match:function(Ot,wn){var Hs,jr,Jr;if(this.options.backtrack_lexer&&(Jr={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Jr.yylloc.range=this.yylloc.range.slice(0))),jr=Ot[0].match(/(?:\r\n?|\n).*/g),jr&&(this.yylineno+=jr.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:jr?jr[jr.length-1].length-jr[jr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ot[0].length),this.matched+=Ot[0],Hs=this.performAction.call(this,this.yy,this,wn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Hs)return Hs;if(this._backtrack){for(var Yn in Jr)this[Yn]=Jr[Yn];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ot,wn,Hs,jr;this._more||(this.yytext="",this.match="");for(var Jr=this._currentRules(),Yn=0;Ynwn[0].length)){if(wn=Hs,jr=Yn,this.options.backtrack_lexer){if(Ot=this.test_match(Hs,Jr[Yn]),Ot!==!1)return Ot;if(this._backtrack){wn=!1;continue}else return!1}else if(!this.options.flex)break}return wn?(Ot=this.test_match(wn,Jr[jr]),Ot!==!1?Ot:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var wn=this.next();return wn||this.lex()},begin:function(wn){this.conditionStack.push(wn)},popState:function(){var wn=this.conditionStack.length-1;return wn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wn){return wn=this.conditionStack.length-1-Math.abs(wn||0),wn>=0?this.conditionStack[wn]:"INITIAL"},pushState:function(wn){this.begin(wn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(wn,Hs,jr,Jr){var Yn=Jr;switch(jr){case 0:break;case 1:return 6;case 2:return Hs.yytext=Hs.yytext.substr(1,Hs.yyleng-2),4;break;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return It}();ct.lexer=At;function rt(){this.yy={}}return rt.prototype=ct,ct.Parser=rt,new rt}();g.parser=D,g.Parser=D.Parser,g.parse=function(){return D.parse.apply(D,arguments)},g.main=function(x){x[1]||(console.log("Usage: "+x[0]+" FILE"),u.exit(1));var y=l(2467).readFileSync(l(66072).normalize(x[1]),"utf8");return g.parser.parse(y)},l.c[l.s]===c&&g.main(u.argv.slice(1))},72402:function(c,g,l){(function(u){if(!0)c.exports=u();else var D})(function(){var u,D,b;return function x(y,w,a){function S(ie,ze){if(!w[ie]){if(!y[ie]){var Ie=void 0;if(!ze&&Ie)return require(ie,!0);if(I)return I(ie,!0);var ct=new Error("Cannot find module '"+ie+"'");throw ct.code="MODULE_NOT_FOUND",ct}var At=w[ie]={exports:{}};y[ie][0].call(At.exports,function(rt){var It=y[ie][1][rt];return S(It||rt)},At,At.exports,x,y,w,a)}return w[ie].exports}for(var I=void 0,N=0;N=43)}}).catch(function(){return!1})}function Mt(l0){return typeof wn=="boolean"?Ie.resolve(wn):_n(l0).then(function(z0){return wn=z0,wn})}function Bt(l0){var z0=Hs[l0.name],W0={};W0.promise=new Ie(function(Rv,R0){W0.resolve=Rv,W0.reject=R0}),z0.deferredOperations.push(W0),z0.dbReady?z0.dbReady=z0.dbReady.then(function(){return W0.promise}):z0.dbReady=W0.promise}function Rt(l0){var z0=Hs[l0.name],W0=z0.deferredOperations.pop();if(W0)return W0.resolve(),W0.promise}function on(l0,z0){var W0=Hs[l0.name],Rv=W0.deferredOperations.pop();if(Rv)return Rv.reject(z0),Rv.promise}function Hr(l0,z0){return new Ie(function(W0,Rv){if(Hs[l0.name]=Hs[l0.name]||Aa(),l0.db)if(z0)Bt(l0),l0.db.close();else return W0(l0.db);var R0=[l0.name];z0&&R0.push(l0.version);var gv=N.open.apply(N,R0);z0&&(gv.onupgradeneeded=function(G1){var xy=gv.result;try{xy.createObjectStore(l0.storeName),G1.oldVersion<=1&&xy.createObjectStore(Ot)}catch(Dy){if(Dy.name==="ConstraintError")console.warn('The database "'+l0.name+'" has been upgraded from version '+G1.oldVersion+" to version "+G1.newVersion+', but the storage "'+l0.storeName+'" already exists.');else throw Dy}}),gv.onerror=function(G1){G1.preventDefault(),Rv(gv.error)},gv.onsuccess=function(){var G1=gv.result;G1.onversionchange=function(xy){xy.target.close()},W0(G1),Rt(l0)}})}function vn(l0){return Hr(l0,!1)}function Ca(l0){return Hr(l0,!0)}function ai(l0,z0){if(!l0.db)return!0;var W0=!l0.db.objectStoreNames.contains(l0.storeName),Rv=l0.versionl0.db.version;if(Rv&&(l0.version!==z0&&console.warn('The database "'+l0.name+`" can't be downgraded from version `+l0.db.version+" to version "+l0.version+"."),l0.version=l0.db.version),R0||W0){if(W0){var gv=l0.db.version+1;gv>l0.version&&(l0.version=gv)}return!0}return!1}function gt(l0){return new Ie(function(z0,W0){var Rv=new FileReader;Rv.onerror=W0,Rv.onloadend=function(R0){var gv=btoa(R0.target.result||"");z0({__local_forage_encoded_blob:!0,data:gv,type:l0.type})},Rv.readAsBinaryString(l0)})}function Zr(l0){var z0=Lt(atob(l0.data));return ze([z0],{type:l0.type})}function Ht(l0){return l0&&l0.__local_forage_encoded_blob}function Zs(l0){var z0=this,W0=z0._initReady().then(function(){var Rv=Hs[z0._dbInfo.name];if(Rv&&Rv.dbReady)return Rv.dbReady});return At(W0,l0,l0),W0}function oi(l0){Bt(l0);for(var z0=Hs[l0.name],W0=z0.forages,Rv=0;Rv0&&(!l0.db||gv.name==="InvalidStateError"||gv.name==="NotFoundError"))return Ie.resolve().then(function(){if(!l0.db||gv.name==="NotFoundError"&&!l0.db.objectStoreNames.contains(l0.storeName)&&l0.version<=l0.db.version)return l0.db&&(l0.version=l0.db.version+1),Ca(l0)}).then(function(){return oi(l0).then(function(){Pa(l0,z0,W0,Rv-1)})}).catch(W0);W0(gv)}}function Aa(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Pg(l0){var z0=this,W0={db:null};if(l0)for(var Rv in l0)W0[Rv]=l0[Rv];var R0=Hs[W0.name];R0||(R0=Aa(),Hs[W0.name]=R0),R0.forages.push(z0),z0._initReady||(z0._initReady=z0.ready,z0.ready=Zs);var gv=[];function G1(){return Ie.resolve()}for(var xy=0;xy>4,xd[R0++]=(G1&15)<<4|xy>>2,xd[R0++]=(xy&3)<<6|Dy&63;return H1}function Ra(l0){var z0=new Uint8Array(l0),W0="",Rv;for(Rv=0;Rv>2],W0+=u0[(z0[Rv]&3)<<4|z0[Rv+1]>>4],W0+=u0[(z0[Rv+1]&15)<<2|z0[Rv+2]>>6],W0+=u0[z0[Rv+2]&63];return z0.length%3===2?W0=W0.substring(0,W0.length-1)+"=":z0.length%3===1&&(W0=W0.substring(0,W0.length-2)+"=="),W0}function Sg(l0,z0){var W0="";if(l0&&(W0=fr.call(l0)),l0&&(W0==="[object ArrayBuffer]"||l0.buffer&&fr.call(l0.buffer)==="[object ArrayBuffer]")){var Rv,R0=zo;l0 instanceof ArrayBuffer?(Rv=l0,R0+=Ag):(Rv=l0.buffer,W0==="[object Int8Array]"?R0+=L0:W0==="[object Uint8Array]"?R0+=$0:W0==="[object Uint8ClampedArray]"?R0+=cv:W0==="[object Int16Array]"?R0+=Gg:W0==="[object Uint16Array]"?R0+=Gs:W0==="[object Int32Array]"?R0+=uu:W0==="[object Uint32Array]"?R0+=Ia:W0==="[object Float32Array]"?R0+=lu:W0==="[object Float64Array]"?R0+=_h:z0(new Error("Failed to get type for BinaryArray"))),z0(R0+Ra(Rv))}else if(W0==="[object Blob]"){var gv=new FileReader;gv.onload=function(){var G1=B1+l0.type+"~"+Ra(this.result);z0(zo+c0+G1)},gv.readAsArrayBuffer(l0)}else try{z0(JSON.stringify(l0))}catch(G1){console.error("Couldn't convert value into a JSON string: ",l0),z0(null,G1)}}function Jg(l0){if(l0.substring(0,mu)!==zo)return JSON.parse(l0);var z0=l0.substring(Kr),W0=l0.substring(mu,Kr),Rv;if(W0===c0&&Dg.test(z0)){var R0=z0.match(Dg);Rv=R0[1],z0=z0.substring(R0[0].length)}var gv=ri(z0);switch(W0){case Ag:return gv;case c0:return ze([gv],{type:Rv});case L0:return new Int8Array(gv);case $0:return new Uint8Array(gv);case cv:return new Uint8ClampedArray(gv);case Gg:return new Int16Array(gv);case Gs:return new Uint16Array(gv);case uu:return new Int32Array(gv);case Ia:return new Uint32Array(gv);case lu:return new Float32Array(gv);case _h:return new Float64Array(gv);default:throw new Error("Unkown type: "+W0)}}var j0={serialize:Sg,deserialize:Jg,stringToBuffer:ri,bufferToString:Ra};function Wo(l0,z0,W0,Rv){l0.executeSql("CREATE TABLE IF NOT EXISTS "+z0.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],W0,Rv)}function Mo(l0){var z0=this,W0={db:null};if(l0)for(var Rv in l0)W0[Rv]=typeof l0[Rv]!="string"?l0[Rv].toString():l0[Rv];var R0=new Ie(function(gv,G1){try{W0.db=openDatabase(W0.name,String(W0.version),W0.description,W0.size)}catch(xy){return G1(xy)}W0.db.transaction(function(xy){Wo(xy,W0,function(){z0._dbInfo=W0,gv()},function(Dy,H1){G1(H1)})},G1)});return W0.serializer=j0,R0}function qr(l0,z0,W0,Rv,R0,gv){l0.executeSql(W0,Rv,R0,function(G1,xy){xy.code===xy.SYNTAX_ERR?G1.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[z0.storeName],function(Dy,H1){H1.rows.length?gv(Dy,xy):Wo(Dy,z0,function(){Dy.executeSql(W0,Rv,R0,gv)},gv)},gv):gv(G1,xy)},gv)}function On(l0,z0){var W0=this;l0=rt(l0);var Rv=new Ie(function(R0,gv){W0.ready().then(function(){var G1=W0._dbInfo;G1.db.transaction(function(xy){qr(xy,G1,"SELECT * FROM "+G1.storeName+" WHERE key = ? LIMIT 1",[l0],function(Dy,H1){var xd=H1.rows.length?H1.rows.item(0).value:null;xd&&(xd=G1.serializer.deserialize(xd)),R0(xd)},function(Dy,H1){gv(H1)})})}).catch(gv)});return ct(Rv,z0),Rv}function rn(l0,z0){var W0=this,Rv=new Ie(function(R0,gv){W0.ready().then(function(){var G1=W0._dbInfo;G1.db.transaction(function(xy){qr(xy,G1,"SELECT * FROM "+G1.storeName,[],function(Dy,H1){for(var xd=H1.rows,Yg=xd.length,r0=0;r00){G1(ui.apply(R0,[l0,Dy,W0,Rv-1]));return}xy(r0)}})})}).catch(xy)});return ct(gv,W0),gv}function ya(l0,z0,W0){return ui.apply(this,[l0,z0,W0,1])}function gd(l0,z0){var W0=this;l0=rt(l0);var Rv=new Ie(function(R0,gv){W0.ready().then(function(){var G1=W0._dbInfo;G1.db.transaction(function(xy){qr(xy,G1,"DELETE FROM "+G1.storeName+" WHERE key = ?",[l0],function(){R0()},function(Dy,H1){gv(H1)})})}).catch(gv)});return ct(Rv,z0),Rv}function Su(l0){var z0=this,W0=new Ie(function(Rv,R0){z0.ready().then(function(){var gv=z0._dbInfo;gv.db.transaction(function(G1){qr(G1,gv,"DELETE FROM "+gv.storeName,[],function(){Rv()},function(xy,Dy){R0(Dy)})})}).catch(R0)});return ct(W0,l0),W0}function xu(l0){var z0=this,W0=new Ie(function(Rv,R0){z0.ready().then(function(){var gv=z0._dbInfo;gv.db.transaction(function(G1){qr(G1,gv,"SELECT COUNT(key) as c FROM "+gv.storeName,[],function(xy,Dy){var H1=Dy.rows.item(0).c;Rv(H1)},function(xy,Dy){R0(Dy)})})}).catch(R0)});return ct(W0,l0),W0}function xa(l0,z0){var W0=this,Rv=new Ie(function(R0,gv){W0.ready().then(function(){var G1=W0._dbInfo;G1.db.transaction(function(xy){qr(xy,G1,"SELECT key FROM "+G1.storeName+" WHERE id = ? LIMIT 1",[l0+1],function(Dy,H1){var xd=H1.rows.length?H1.rows.item(0).key:null;R0(xd)},function(Dy,H1){gv(H1)})})}).catch(gv)});return ct(Rv,z0),Rv}function Td(l0){var z0=this,W0=new Ie(function(Rv,R0){z0.ready().then(function(){var gv=z0._dbInfo;gv.db.transaction(function(G1){qr(G1,gv,"SELECT key FROM "+gv.storeName,[],function(xy,Dy){for(var H1=[],xd=0;xd '__WebKitDatabaseInfoTable__'",[],function(R0,gv){for(var G1=[],xy=0;xy0}function Bg(l0){var z0=this,W0={};if(l0)for(var Rv in l0)W0[Rv]=l0[Rv];return W0.keyPrefix=Sa(l0,z0._defaultConfig),Bd()?(z0._dbInfo=W0,W0.serializer=j0,Ie.resolve()):Ie.reject()}function Og(l0){var z0=this,W0=z0.ready().then(function(){for(var Rv=z0._dbInfo.keyPrefix,R0=localStorage.length-1;R0>=0;R0--){var gv=localStorage.key(R0);gv.indexOf(Rv)===0&&localStorage.removeItem(gv)}});return ct(W0,l0),W0}function g0(l0,z0){var W0=this;l0=rt(l0);var Rv=W0.ready().then(function(){var R0=W0._dbInfo,gv=localStorage.getItem(R0.keyPrefix+l0);return gv&&(gv=R0.serializer.deserialize(gv)),gv});return ct(Rv,z0),Rv}function qg(l0,z0){var W0=this,Rv=W0.ready().then(function(){for(var R0=W0._dbInfo,gv=R0.keyPrefix,G1=gv.length,xy=localStorage.length,Dy=1,H1=0;H1=0;G1--){var xy=localStorage.key(G1);xy.indexOf(gv)===0&&localStorage.removeItem(xy)}}):R0=Ie.reject("Invalid arguments"),ct(R0,z0),R0}var Eg={_driver:"localStorageWrapper",_initStorage:Bg,_support:Bs(),iterate:qg,getItem:g0,setItem:n0,removeItem:t0,clear:Og,length:nv,key:Xg,keys:A0,dropInstance:u1},a1=function(z0,W0){return z0===W0||typeof z0=="number"&&typeof W0=="number"&&isNaN(z0)&&isNaN(W0)},Hg=function(z0,W0){for(var Rv=z0.length,R0=0;R0-1}c.exports=D},94874:function(c){function g(l,u,D){for(var b=-1,x=l==null?0:l.length;++b=u?l:u)),l}c.exports=g},99045:function(c,g,l){var u=l(91866),D=l(74809),b=l(60348),x=l(91937),y=l(26680),w=l(32315),a=l(47760),S=l(15168),I=l(71678),N=l(12076),ie=l(22675),ze=l(66139),Ie=l(79264),ct=l(97541),At=l(4084),rt=l(80744),It=l(57835),Ot=l(41626),wn=l(20816),Hs=l(65226),jr=l(55451),Jr=l(56730),Yn=1,Lt=2,_n=4,Mt="[object Arguments]",Bt="[object Array]",Rt="[object Boolean]",on="[object Date]",Hr="[object Error]",vn="[object Function]",Ca="[object GeneratorFunction]",ai="[object Map]",gt="[object Number]",Zr="[object Object]",Ht="[object RegExp]",Zs="[object Set]",oi="[object String]",Pa="[object Symbol]",Aa="[object WeakMap]",Pg="[object ArrayBuffer]",Ug="[object DataView]",e0="[object Float32Array]",H0="[object Float64Array]",X0="[object Int8Array]",d0="[object Int16Array]",jv="[object Int32Array]",Lv="[object Uint8Array]",Je="[object Uint8ClampedArray]",k0="[object Uint16Array]",G0="[object Uint32Array]",iv={};iv[Mt]=iv[Bt]=iv[Pg]=iv[Ug]=iv[Rt]=iv[on]=iv[e0]=iv[H0]=iv[X0]=iv[d0]=iv[jv]=iv[ai]=iv[gt]=iv[Zr]=iv[Ht]=iv[Zs]=iv[oi]=iv[Pa]=iv[Lv]=iv[Je]=iv[k0]=iv[G0]=!0,iv[Hr]=iv[vn]=iv[Aa]=!1;function u0(B1,Dg,zo,mu,Ag,c0){var L0,$0=Dg&Yn,cv=Dg&Lt,Gg=Dg&_n;if(zo&&(L0=Ag?zo(B1,mu,Ag,c0):zo(B1)),L0!==void 0)return L0;if(!wn(B1))return B1;var uu=rt(B1);if(uu){if(L0=Ie(B1),!$0)return a(B1,L0)}else{var Gs=ze(B1),Ia=Gs==vn||Gs==Ca;if(It(B1))return w(B1,$0);if(Gs==Zr||Gs==Mt||Ia&&!Ag){if(L0=cv||Ia?{}:At(B1),!$0)return cv?I(B1,y(L0,B1)):S(B1,x(L0,B1))}else{if(!iv[Gs])return Ag?B1:{};L0=ct(B1,Gs,$0)}}c0||(c0=new u);var lu=c0.get(B1);if(lu)return lu;c0.set(B1,L0),Hs(B1)?B1.forEach(function(fr){L0.add(u0(fr,Dg,zo,fr,B1,c0))}):Ot(B1)&&B1.forEach(function(fr,ri){L0.set(ri,u0(fr,Dg,zo,ri,B1,c0))});var _h=Gg?cv?ie:N:cv?Jr:jr,Kr=uu?void 0:_h(B1);return D(Kr||B1,function(fr,ri){Kr&&(ri=fr,fr=B1[ri]),b(L0,ri,u0(fr,Dg,zo,ri,B1,c0))}),L0}c.exports=u0},35024:function(c,g,l){var u=l(20816),D=Object.create,b=function(){function x(){}return function(y){if(!u(y))return{};if(D)return D(y);x.prototype=y;var w=new x;return x.prototype=void 0,w}}();c.exports=b},51533:function(c){function g(l,u,D,b){for(var x=l.length,y=D+(b?1:-1);b?y--:++y-1;)rt!==I&&a.call(rt,It,1),a.call(I,It,1);return I}c.exports=S},92918:function(c,g,l){var u=l(46962),D=l(19652),b=l(71152);function x(y,w){return b(D(y,w,u),y+"")}c.exports=x},63989:function(c,g,l){var u=l(13503),D=l(35234),b=l(46962),x=D?function(y,w){return D(y,"toString",{configurable:!0,enumerable:!1,value:u(w),writable:!0})}:b;c.exports=x},75760:function(c){function g(l,u,D){var b=-1,x=l.length;u<0&&(u=-u>x?0:x+u),D=D>x?x:D,D<0&&(D+=x),x=u>D?0:D-u>>>0,u>>>=0;for(var y=Array(x);++b=a){var Ot=N?null:y(I);if(Ot)return w(Ot);At=!1,Ie=x,It=new u}else It=N?[]:rt;e:for(;++ze=w?b:u(b,x,y)}c.exports=D},20188:function(c,g,l){var u=l(77945);function D(b){var x=new b.constructor(b.byteLength);return new u(x).set(new u(b)),x}c.exports=D},32315:function(c,g,l){c=l.nmd(c);var u=l(33152),D=g&&!g.nodeType&&g,b=D&&!0&&c&&!c.nodeType&&c,x=b&&b.exports===D,y=x?u.Buffer:void 0,w=y?y.allocUnsafe:void 0;function a(S,I){if(I)return S.slice();var N=S.length,ie=w?w(N):new S.constructor(N);return S.copy(ie),ie}c.exports=a},27984:function(c,g,l){var u=l(20188);function D(b,x){var y=x?u(b.buffer):b.buffer;return new b.constructor(y,b.byteOffset,b.byteLength)}c.exports=D},78583:function(c){var g=/\w*$/;function l(u){var D=new u.constructor(u.source,g.exec(u));return D.lastIndex=u.lastIndex,D}c.exports=l},28757:function(c,g,l){var u=l(91869),D=u?u.prototype:void 0,b=D?D.valueOf:void 0;function x(y){return b?Object(b.call(y)):{}}c.exports=x},78358:function(c,g,l){var u=l(20188);function D(b,x){var y=x?u(b.buffer):b.buffer;return new b.constructor(y,b.byteOffset,b.length)}c.exports=D},47760:function(c){function g(l,u){var D=-1,b=l.length;for(u||(u=Array(b));++D1?w[S-1]:void 0,N=S>2?w[2]:void 0;for(I=x.length>3&&typeof I=="function"?(S--,I):void 0,N&&D(w[0],w[1],N)&&(I=S<3?void 0:I,S=1),y=Object(y);++act))return!1;var rt=ze.get(a),It=ze.get(S);if(rt&&It)return rt==S&&It==a;var Ot=-1,wn=!0,Hs=I&y?new u:void 0;for(ze.set(a,S),ze.set(S,a);++Ot-1&&D%1==0&&D-1}c.exports=D},54238:function(c,g,l){var u=l(67971);function D(b,x){var y=this.__data__,w=u(y,b);return w<0?(++this.size,y.push([b,x])):y[w][1]=x,this}c.exports=D},35365:function(c,g,l){var u=l(76414),D=l(99746),b=l(40164);function x(){this.size=0,this.__data__={hash:new u,map:new(b||D),string:new u}}c.exports=x},63765:function(c,g,l){var u=l(89819);function D(b){var x=u(this,b).delete(b);return this.size-=x?1:0,x}c.exports=D},12608:function(c,g,l){var u=l(89819);function D(b){return u(this,b).get(b)}c.exports=D},10203:function(c,g,l){var u=l(89819);function D(b){return u(this,b).has(b)}c.exports=D},11298:function(c,g,l){var u=l(89819);function D(b,x){var y=u(this,b),w=y.size;return y.set(b,x),this.size+=y.size==w?0:1,this}c.exports=D},83383:function(c){function g(l){var u=-1,D=Array(l.size);return l.forEach(function(b,x){D[++u]=[x,b]}),D}c.exports=g},26332:function(c,g,l){var u=l(52858),D=500;function b(x){var y=u(x,function(a){return w.size===D&&w.clear(),a}),w=y.cache;return y}c.exports=b},65294:function(c,g,l){var u=l(73893),D=u(Object,"create");c.exports=D},23730:function(c,g,l){var u=l(31030),D=u(Object.keys,Object);c.exports=D},97817:function(c){function g(l){var u=[];if(l!=null)for(var D in Object(l))u.push(D);return u}c.exports=g},52495:function(c,g,l){c=l.nmd(c);var u=l(37675),D=g&&!g.nodeType&&g,b=D&&!0&&c&&!c.nodeType&&c,x=b&&b.exports===D,y=x&&u.process,w=function(){try{var a=b&&b.require&&b.require("util").types;return a||y&&y.binding&&y.binding("util")}catch(S){}}();c.exports=w},74702:function(c){var g=Object.prototype,l=g.toString;function u(D){return l.call(D)}c.exports=u},31030:function(c){function g(l,u){return function(D){return l(u(D))}}c.exports=g},19652:function(c,g,l){var u=l(79628),D=Math.max;function b(x,y,w){return y=D(y===void 0?x.length-1:y,0),function(){for(var a=arguments,S=-1,I=D(a.length-y,0),N=Array(I);++S0){if(++x>=g)return arguments[0]}else x=0;return b.apply(void 0,arguments)}}c.exports=D},31119:function(c,g,l){var u=l(99746);function D(){this.__data__=new u,this.size=0}c.exports=D},64399:function(c){function g(l){var u=this.__data__,D=u.delete(l);return this.size=u.size,D}c.exports=g},81897:function(c){function g(l){return this.__data__.get(l)}c.exports=g},90558:function(c){function g(l){return this.__data__.has(l)}c.exports=g},64841:function(c,g,l){var u=l(99746),D=l(40164),b=l(52166),x=200;function y(w,a){var S=this.__data__;if(S instanceof u){var I=S.__data__;if(!D||I.length=I||vn<0||wn&&Ca>=Ie}function _n(){var Hr=D();if(Lt(Hr))return Mt(Hr);At=setTimeout(_n,Yn(Hr))}function Mt(Hr){return At=void 0,Hs&&ie?jr(Hr):(ie=ze=void 0,ct)}function Bt(){At!==void 0&&clearTimeout(At),It=0,ie=rt=ze=At=void 0}function Rt(){return At===void 0?ct:Mt(D())}function on(){var Hr=D(),vn=Lt(Hr);if(ie=arguments,ze=this,rt=Hr,vn){if(At===void 0)return Jr(rt);if(wn)return clearTimeout(At),At=setTimeout(_n,I),jr(rt)}return At===void 0&&(At=setTimeout(_n,I)),ct}return on.cancel=Bt,on.flush=Rt,on}c.exports=a},31876:function(c,g,l){var u=l(70668),D=l(44140),b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x="\\u0300-\\u036f",y="\\ufe20-\\ufe2f",w="\\u20d0-\\u20ff",a=x+y+w,S="["+a+"]",I=RegExp(S,"g");function N(ie){return ie=D(ie),ie&&ie.replace(b,u).replace(I,"")}c.exports=N},43607:function(c){function g(l,u){return l===u||l!==l&&u!==u}c.exports=g},44231:function(c,g,l){var u=l(89147);function D(b,x,y){var w=b==null?void 0:u(b,x);return w===void 0?y:w}c.exports=D},46962:function(c){function g(l){return l}c.exports=g},13053:function(c,g,l){var u=l(4977),D=l(93913),b=Object.prototype,x=b.hasOwnProperty,y=b.propertyIsEnumerable,w=u(function(){return arguments}())?u:function(a){return D(a)&&x.call(a,"callee")&&!y.call(a,"callee")};c.exports=w},80744:function(c){var g=Array.isArray;c.exports=g},24665:function(c,g,l){var u=l(9363),D=l(11156);function b(x){return x!=null&&D(x.length)&&!u(x)}c.exports=b},41590:function(c,g,l){var u=l(24665),D=l(93913);function b(x){return D(x)&&u(x)}c.exports=b},26561:function(c,g,l){var u=l(86756),D=l(93913),b="[object Boolean]";function x(y){return y===!0||y===!1||D(y)&&u(y)==b}c.exports=x},57835:function(c,g,l){c=l.nmd(c);var u=l(33152),D=l(55950),b=g&&!g.nodeType&&g,x=b&&!0&&c&&!c.nodeType&&c,y=x&&x.exports===b,w=y?u.Buffer:void 0,a=w?w.isBuffer:void 0,S=a||D;c.exports=S},98621:function(c,g,l){var u=l(77295);function D(b,x){return u(b,x)}c.exports=D},9363:function(c,g,l){var u=l(86756),D=l(20816),b="[object AsyncFunction]",x="[object Function]",y="[object GeneratorFunction]",w="[object Proxy]";function a(S){if(!D(S))return!1;var I=u(S);return I==x||I==y||I==b||I==w}c.exports=a},11156:function(c){var g=9007199254740991;function l(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=g}c.exports=l},41626:function(c,g,l){var u=l(55005),D=l(38342),b=l(52495),x=b&&b.isMap,y=x?D(x):u;c.exports=y},93544:function(c){function g(l){return l==null}c.exports=g},68868:function(c,g,l){var u=l(86756),D=l(93913),b="[object Number]";function x(y){return typeof y=="number"||D(y)&&u(y)==b}c.exports=x},20816:function(c){function g(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}c.exports=g},93913:function(c){function g(l){return l!=null&&typeof l=="object"}c.exports=g},19308:function(c,g,l){var u=l(86756),D=l(49217),b=l(93913),x="[object Object]",y=Function.prototype,w=Object.prototype,a=y.toString,S=w.hasOwnProperty,I=a.call(Object);function N(ie){if(!b(ie)||u(ie)!=x)return!1;var ze=D(ie);if(ze===null)return!0;var Ie=S.call(ze,"constructor")&&ze.constructor;return typeof Ie=="function"&&Ie instanceof Ie&&a.call(Ie)==I}c.exports=N},65226:function(c,g,l){var u=l(38652),D=l(38342),b=l(52495),x=b&&b.isSet,y=x?D(x):u;c.exports=y},7941:function(c,g,l){var u=l(86756),D=l(80744),b=l(93913),x="[object String]";function y(w){return typeof w=="string"||!D(w)&&b(w)&&u(w)==x}c.exports=y},45029:function(c,g,l){var u=l(86756),D=l(93913),b="[object Symbol]";function x(y){return typeof y=="symbol"||D(y)&&u(y)==b}c.exports=x},18397:function(c,g,l){var u=l(10766),D=l(38342),b=l(52495),x=b&&b.isTypedArray,y=x?D(x):u;c.exports=y},16513:function(c){function g(l){return l===void 0}c.exports=g},55451:function(c,g,l){var u=l(63333),D=l(6019),b=l(24665);function x(y){return b(y)?u(y):D(y)}c.exports=x},56730:function(c,g,l){var u=l(63333),D=l(33988),b=l(24665);function x(y){return b(y)?u(y,!0):D(y)}c.exports=x},89392:function(c,g,l){c=l.nmd(c);var u;(function(){var D,b="4.17.21",x=200,y="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",a="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",I=500,N="__lodash_placeholder__",ie=1,ze=2,Ie=4,ct=1,At=2,rt=1,It=2,Ot=4,wn=8,Hs=16,jr=32,Jr=64,Yn=128,Lt=256,_n=512,Mt=30,Bt="...",Rt=800,on=16,Hr=1,vn=2,Ca=3,ai=1/0,gt=9007199254740991,Zr=17976931348623157e292,Ht=0/0,Zs=4294967295,oi=Zs-1,Pa=Zs>>>1,Aa=[["ary",Yn],["bind",rt],["bindKey",It],["curry",wn],["curryRight",Hs],["flip",_n],["partial",jr],["partialRight",Jr],["rearg",Lt]],Pg="[object Arguments]",Ug="[object Array]",e0="[object AsyncFunction]",H0="[object Boolean]",X0="[object Date]",d0="[object DOMException]",jv="[object Error]",Lv="[object Function]",Je="[object GeneratorFunction]",k0="[object Map]",G0="[object Number]",iv="[object Null]",u0="[object Object]",B1="[object Promise]",Dg="[object Proxy]",zo="[object RegExp]",mu="[object Set]",Ag="[object String]",c0="[object Symbol]",L0="[object Undefined]",$0="[object WeakMap]",cv="[object WeakSet]",Gg="[object ArrayBuffer]",uu="[object DataView]",Gs="[object Float32Array]",Ia="[object Float64Array]",lu="[object Int8Array]",_h="[object Int16Array]",Kr="[object Int32Array]",fr="[object Uint8Array]",ri="[object Uint8ClampedArray]",Ra="[object Uint16Array]",Sg="[object Uint32Array]",Jg=/\b__p \+= '';/g,j0=/\b(__p \+=) '' \+/g,Wo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mo=/&(?:amp|lt|gt|quot|#39);/g,qr=/[&<>"']/g,On=RegExp(Mo.source),rn=RegExp(qr.source),ui=/<%-([\s\S]+?)%>/g,ya=/<%([\s\S]+?)%>/g,gd=/<%=([\s\S]+?)%>/g,Su=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xu=/^\w*$/,xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Td=/[\\^$.*+?()[\]{}|]/g,jg=RegExp(Td.source),Wa=/^\s+/,tv=/\s/,Bs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sa=/\{\n\/\* \[wrapped with (.+)\] \*/,$a=/,? & /,Bd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bg=/[()=,{}\[\]\/\s]/,Og=/\\(\\)?/g,g0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qg=/\w*$/,Xg=/^[-+]0x[0-9a-f]+$/i,A0=/^0b[01]+$/i,nv=/^\[object .+?Constructor\]$/,t0=/^0o[0-7]+$/i,n0=/^(?:0|[1-9]\d*)$/,u1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Eg=/($^)/,a1=/['\n\r\u2028\u2029\\]/g,Hg="\\ud800-\\udfff",Gd="\\u0300-\\u036f",h0="\\ufe20-\\ufe2f",lv="\\u20d0-\\u20ff",su=Gd+h0+lv,hu="\\u2700-\\u27bf",ev="a-z\\xdf-\\xf6\\xf8-\\xff",sv="\\xac\\xb1\\xd7\\xf7",yv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$v="\\u2000-\\u206f",E0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",E1="A-Z\\xc0-\\xd6\\xd8-\\xde",$1="\\ufe0e\\ufe0f",l0=sv+yv+$v+E0,z0="['\u2019]",W0="["+Hg+"]",Rv="["+l0+"]",R0="["+su+"]",gv="\\d+",G1="["+hu+"]",xy="["+ev+"]",Dy="[^"+Hg+l0+gv+hu+ev+E1+"]",H1="\\ud83c[\\udffb-\\udfff]",xd="(?:"+R0+"|"+H1+")",Yg="[^"+Hg+"]",r0="(?:\\ud83c[\\udde6-\\uddff]){2}",No="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="["+E1+"]",Sr="\\u200d",si="(?:"+xy+"|"+Dy+")",Rs="(?:"+qt+"|"+Dy+")",wa="(?:"+z0+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+z0+"(?:D|LL|M|RE|S|T|VE))?",s0=xd+"?",In="["+$1+"]?",ga="(?:"+Sr+"(?:"+[Yg,r0,No].join("|")+")"+In+s0+")*",Ga="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dv=In+s0+ga,Cv="(?:"+[G1,r0,No].join("|")+")"+dv,Wv="(?:"+[Yg+R0+"?",R0,r0,No,W0].join("|")+")",c1=RegExp(z0,"g"),P1=RegExp(R0,"g"),Z1=RegExp(H1+"(?="+H1+")|"+Wv+dv,"g"),sy=RegExp([qt+"?"+xy+"+"+wa+"(?="+[Rv,qt,"$"].join("|")+")",Rs+"+"+bu+"(?="+[Rv,qt+si,"$"].join("|")+")",qt+"?"+si+"+"+wa,qt+"+"+bu,Lu,Ga,gv,Cv].join("|"),"g"),wy=RegExp("["+Sr+Hg+su+$1+"]"),zy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qv=-1,Y1={};Y1[Gs]=Y1[Ia]=Y1[lu]=Y1[_h]=Y1[Kr]=Y1[fr]=Y1[ri]=Y1[Ra]=Y1[Sg]=!0,Y1[Pg]=Y1[Ug]=Y1[Gg]=Y1[H0]=Y1[uu]=Y1[X0]=Y1[jv]=Y1[Lv]=Y1[k0]=Y1[G0]=Y1[u0]=Y1[zo]=Y1[mu]=Y1[Ag]=Y1[$0]=!1;var M_={};M_[Pg]=M_[Ug]=M_[Gg]=M_[uu]=M_[H0]=M_[X0]=M_[Gs]=M_[Ia]=M_[lu]=M_[_h]=M_[Kr]=M_[k0]=M_[G0]=M_[u0]=M_[zo]=M_[mu]=M_[Ag]=M_[c0]=M_[fr]=M_[ri]=M_[Ra]=M_[Sg]=!0,M_[jv]=M_[Lv]=M_[$0]=!1;var h1={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},_v={"&":"&","<":"<",">":">",'"':""","'":"'"},Iv={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ov={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},v1=parseFloat,K1=parseInt,sx=typeof l.g=="object"&&l.g&&l.g.Object===Object&&l.g,Kx=typeof self=="object"&&self&&self.Object===Object&&self,t2=sx||Kx||Function("return this")(),I2=g&&!g.nodeType&&g,D2=I2&&!0&&c&&!c.nodeType&&c,J_=D2&&D2.exports===I2,ax=J_&&sx.process,rx=function(){try{var j1=D2&&D2.require&&D2.require("util").types;return j1||ax&&ax.binding&&ax.binding("util")}catch(Px){}}(),ov=rx&&rx.isArrayBuffer,rv=rx&&rx.isDate,yd=rx&&rx.isMap,kg=rx&&rx.isRegExp,Vg=rx&&rx.isSet,wv=rx&&rx.isTypedArray;function b1(j1,Px,Z_){switch(Z_.length){case 0:return j1.call(Px);case 1:return j1.call(Px,Z_[0]);case 2:return j1.call(Px,Z_[0],Z_[1]);case 3:return j1.call(Px,Z_[0],Z_[1],Z_[2])}return j1.apply(Px,Z_)}function I1(j1,Px,Z_,Vx){for(var kx=-1,C2=j1==null?0:j1.length;++kx-1}function ty(j1,Px,Z_){for(var Vx=-1,kx=j1==null?0:j1.length;++Vx-1;);return Z_}function vE(j1,Px){for(var Z_=j1.length;Z_--&&c2(Px,j1[Z_],0)>-1;);return Z_}function T1(j1,Px){for(var Z_=j1.length,Vx=0;Z_--;)j1[Z_]===Px&&++Vx;return Vx}var ky=XC(h1),$y=XC(_v);function l_(j1){return"\\"+Ov[j1]}function cx(j1,Px){return j1==null?D:j1[Px]}function Cx(j1){return wy.test(j1)}function P2(j1){return zy.test(j1)}function i2(j1){for(var Px,Z_=[];!(Px=j1.next()).done;)Z_.push(Px.value);return Z_}function tx(j1){var Px=-1,Z_=Array(j1.size);return j1.forEach(function(Vx,kx){Z_[++Px]=[kx,Vx]}),Z_}function z2(j1,Px){return function(Z_){return j1(Px(Z_))}}function L2(j1,Px){for(var Z_=-1,Vx=j1.length,kx=0,C2=[];++Z_-1}function pe(qe,An){var Fa=this.__data__,b0=zx(Fa,qe);return b0<0?(++this.size,Fa.push([qe,An])):Fa[b0][1]=An,this}va.prototype.clear=La,va.prototype.delete=yu,va.prototype.get=Wg,va.prototype.has=re,va.prototype.set=pe;function ge(qe){var An=-1,Fa=qe==null?0:qe.length;for(this.clear();++An=An?qe:An)),qe}function tS(qe,An,Fa,b0,w1,Py){var j_,mx=An&ie,n2=An&ze,rC=An&Ie;if(Fa&&(j_=w1?Fa(qe,b0,w1,Py):Fa(qe)),j_!==D)return j_;if(!b_(qe))return qe;var sC=He(qe);if(sC){if(j_=Uv(qe),!mx)return Fd(qe,j_)}else{var FC=Oy(qe),tE=FC==Lv||FC==Je;if(iu(qe))return Ir(qe,mx);if(FC==u0||FC==Pg||tE&&!w1){if(j_=n2||tE?{}:hy(qe),!mx)return n2?x0(qe,tw(j_,qe)):v0(qe,Yx(j_,qe))}else{if(!M_[FC])return w1?qe:{};j_=x1(qe,FC,mx)}}Py||(Py=new K0);var UE=Py.get(qe);if(UE)return UE;Py.set(qe,j_),$S(qe)?qe.forEach(function(zT){j_.add(tS(zT,An,Fa,zT,qe,Py))}):Hx(qe)&&qe.forEach(function(zT,SA){j_.set(SA,tS(zT,An,Fa,SA,qe,Py))});var bT=rC?n2?l1:Kv:n2?yD:ZA,vA=sC?D:bT(qe);return k1(vA||qe,function(zT,SA){vA&&(SA=zT,zT=qe[SA]),lx(j_,SA,tS(zT,An,Fa,SA,qe,Py))}),j_}function ow(qe){var An=ZA(qe);return function(Fa){return S2(Fa,qe,An)}}function S2(qe,An,Fa){var b0=Fa.length;if(qe==null)return!b0;for(qe=lw(qe);b0--;){var w1=Fa[b0],Py=An[w1],j_=qe[w1];if(j_===D&&!(w1 in qe)||!Py(j_))return!1}return!0}function yS(qe,An,Fa){if(typeof qe!="function")throw new dC(w);return __(function(){qe.apply(D,Fa)},An)}function iS(qe,An,Fa,b0){var w1=-1,Py=E_,j_=!0,mx=qe.length,n2=[],rC=An.length;if(!mx)return n2;Fa&&(An=h_(An,UC(Fa))),b0?(Py=ty,j_=!1):An.length>=x&&(Py=KS,j_=!1,An=new Lg(An));e:for(;++w1w1?0:w1+Fa),b0=b0===D||b0>w1?w1:f2(b0),b0<0&&(b0+=w1),b0=Fa>b0?0:xC(b0);Fa0&&Fa(mx)?An>1?NE(mx,An-1,Fa,b0,w1):g_(w1,mx):b0||(w1[w1.length]=mx)}return w1}var J2=Y0(),E2=Y0(!0);function Sw(qe,An){return qe&&J2(qe,An,ZA)}function vw(qe,An){return qe&&E2(qe,An,ZA)}function yC(qe,An){return U1(An,function(Fa){return By(qe[Fa])})}function T2(qe,An){An=Ne(An,qe);for(var Fa=0,b0=An.length;qe!=null&&FaAn}function Xv(qe,An){return qe!=null&&VS.call(qe,An)}function GE(qe,An){return qe!=null&&An in lw(qe)}function LE(qe,An,Fa){return qe>=PE(An,Fa)&&qe=120&&sC.length>=120)?new Lg(j_&&sC):D}sC=qe[0];var FC=-1,tE=mx[0];e:for(;++FC-1;)mx!==qe&&dT.call(mx,n2,1),dT.call(qe,n2,1);return qe}function WT(qe,An){for(var Fa=qe?An.length:0,b0=Fa-1;Fa--;){var w1=An[Fa];if(Fa==b0||w1!==Py){var Py=w1;y_(w1)?dT.call(qe,w1,1):y3(qe,w1)}}return qe}function aD(qe,An){return qe+zE(ZE()*(An-qe+1))}function gE(qe,An,Fa,b0){for(var w1=-1,Py=rE(aC((An-qe)/(Fa||1)),0),j_=Z_(Py);Py--;)j_[b0?Py:++w1]=qe,qe+=Fa;return j_}function qE(qe,An){var Fa="";if(!qe||An<1||An>gt)return Fa;do An%2&&(Fa+=qe),An=zE(An/2),An&&(qe+=qe);while(An);return Fa}function TS(qe,An){return Ww(fx(qe,An,GD),qe+"")}function Z3(qe){return Jy(Y3(qe))}function H3(qe,An){var Fa=Y3(qe);return _C(Fa,Qw(An,0,Fa.length))}function VA(qe,An,Fa,b0){if(!b_(qe))return qe;An=Ne(An,qe);for(var w1=-1,Py=An.length,j_=Py-1,mx=qe;mx!=null&&++w1w1?0:w1+An),Fa=Fa>w1?w1:Fa,Fa<0&&(Fa+=w1),w1=An>Fa?0:Fa-An>>>0,An>>>=0;for(var Py=Z_(w1);++b0>>1,j_=qe[Py];j_!==null&&!BT(j_)&&(Fa?j_<=An:j_=x){var rC=An?null:n1(qe);if(rC)return jw(rC);j_=!1,w1=KS,n2=new Lg}else n2=An?[]:mx;e:for(;++b0=b0?qe:rS(qe,An,Fa)}var wr=$T||function(qe){return t2.clearTimeout(qe)};function Ir(qe,An){if(An)return qe.slice();var Fa=qe.length,b0=k2?k2(Fa):new qe.constructor(Fa);return qe.copy(b0),b0}function Yr(qe){var An=new qe.constructor(qe.byteLength);return new Pv(An).set(new Pv(qe)),An}function Ws(qe,An){var Fa=An?Yr(qe.buffer):qe.buffer;return new qe.constructor(Fa,qe.byteOffset,qe.byteLength)}function qs(qe){var An=new qe.constructor(qe.source,qg.exec(qe));return An.lastIndex=qe.lastIndex,An}function _a(qe){return RC?lw(RC.call(qe)):{}}function ru(qe,An){var Fa=An?Yr(qe.buffer):qe.buffer;return new qe.constructor(Fa,qe.byteOffset,qe.length)}function Rd(qe,An){if(qe!==An){var Fa=qe!==D,b0=qe===null,w1=qe===qe,Py=BT(qe),j_=An!==D,mx=An===null,n2=An===An,rC=BT(An);if(!mx&&!rC&&!Py&&qe>An||Py&&j_&&n2&&!mx&&!rC||b0&&j_&&n2||!Fa&&n2||!w1)return 1;if(!b0&&!Py&&!rC&&qe=mx)return n2;var rC=Fa[b0];return n2*(rC=="desc"?-1:1)}}return qe.index-An.index}function _g(qe,An,Fa,b0){for(var w1=-1,Py=qe.length,j_=Fa.length,mx=-1,n2=An.length,rC=rE(Py-j_,0),sC=Z_(n2+rC),FC=!b0;++mx1?Fa[w1-1]:D,j_=w1>2?Fa[2]:D;for(Py=qe.length>3&&typeof Py=="function"?(w1--,Py):D,j_&&jy(Fa[0],Fa[1],j_)&&(Py=w1<3?D:Py,w1=1),An=lw(An);++b0-1?w1[Py?An[j_]:j_]:D}}function Ou(qe){return w0(function(An){var Fa=An.length,b0=Fa,w1=Te.prototype.thru;for(qe&&An.reverse();b0--;){var Py=An[b0];if(typeof Py!="function")throw new dC(w);if(w1&&!j_&&q0(Py)=="wrapper")var j_=new Te([],!0)}for(b0=j_?b0:Fa;++b01&&HA.reverse(),sC&&n2mx))return!1;var rC=Py.get(qe),sC=Py.get(An);if(rC&&sC)return rC==An&&sC==qe;var FC=-1,tE=!0,UE=Fa&At?new Lg:D;for(Py.set(qe,An),Py.set(An,qe);++FC1?"& ":"")+An[b0],An=An.join(Fa>2?", ":" "),qe.replace(Bs,`{ -/* [wrapped with `+An+`] */ -`)}function Ly(qe){return He(qe)||ve(qe)||!!(US&&qe&&qe[US])}function y_(qe,An){var Fa=typeof qe;return An=An==null?gt:An,!!An&&(Fa=="number"||Fa!="symbol"&&n0.test(qe))&&qe>-1&&qe%1==0&&qe0){if(++An>=Rt)return arguments[0]}else An=0;return qe.apply(D,arguments)}}function _C(qe,An){var Fa=-1,b0=qe.length,w1=b0-1;for(An=An===D?b0:An;++Fa1?qe[An-1]:D;return Fa=typeof Fa=="function"?(qe.pop(),Fa):D,v2(qe,Fa)});function QT(qe){var An=r1(qe);return An.__chain__=!0,An}function DD(qe,An){return An(qe),qe}function a3(qe,An){return An(qe)}var X1=w0(function(qe){var An=qe.length,Fa=An?qe[0]:0,b0=this.__wrapped__,w1=function(Py){return uC(Py,qe)};return An>1||this.__actions__.length||!(b0 instanceof Ue)||!y_(Fa)?this.thru(w1):(b0=b0.slice(Fa,+Fa+(An?1:0)),b0.__actions__.push({func:a3,args:[w1],thisArg:D}),new Te(b0,this.__chain__).thru(function(Py){return An&&!Py.length&&Py.push(D),Py}))});function zD(){return QT(this)}function PT(){return new Te(this.value(),this.__chain__)}function hD(){this.__values__===D&&(this.__values__=Tx(this.value()));var qe=this.__index__>=this.__values__.length,An=qe?D:this.__values__[this.__index__++];return{done:qe,value:An}}function at(){return this}function C(qe){for(var An,Fa=this;Fa instanceof Y;){var b0=u2(Fa);b0.__index__=0,b0.__values__=D,An?w1.__wrapped__=b0:An=b0;var w1=b0;Fa=Fa.__wrapped__}return w1.__wrapped__=qe,An}function P(){var qe=this.__wrapped__;if(qe instanceof Ue){var An=qe;return this.__actions__.length&&(An=new Ue(this)),An=An.reverse(),An.__actions__.push({func:a3,args:[BS],thisArg:D}),new Te(An,this.__chain__)}return this.thru(BS)}function F(){return Qe(this.__wrapped__,this.__actions__)}var Q=a0(function(qe,An,Fa){VS.call(qe,Fa)?++qe[Fa]:ww(qe,Fa,1)});function _e(qe,An,Fa){var b0=He(qe)?Ay:lS;return Fa&&jy(qe,An,Fa)&&(An=D),b0(qe,Fv(An,3))}function Be(qe,An){var Fa=He(qe)?U1:wE;return Fa(qe,Fv(An,3))}var ot=_0(m0),Sn=_0(Hv);function js(qe,An){return NE(qv(qe,An),1)}function ka(qe,An){return NE(qv(qe,An),ai)}function Ud(qe,An,Fa){return Fa=Fa===D?1:f2(Fa),NE(qv(qe,An),Fa)}function Ng(qe,An){var Fa=He(qe)?k1:wC;return Fa(qe,Fv(An,3))}function N0(qe,An){var Fa=He(qe)?S1:xS;return Fa(qe,Fv(An,3))}var U0=a0(function(qe,An,Fa){VS.call(qe,Fa)?qe[Fa].push(An):ww(qe,Fa,[An])});function Gv(qe,An,Fa,b0){qe=Xr(qe)?qe:Y3(qe),Fa=Fa&&!b0?f2(Fa):0;var w1=qe.length;return Fa<0&&(Fa=rE(w1+Fa,0)),lT(qe)?Fa<=w1&&qe.indexOf(An,Fa)>-1:!!w1&&c2(qe,An,Fa)>-1}var Zv=TS(function(qe,An,Fa){var b0=-1,w1=typeof An=="function",Py=Xr(qe)?Z_(qe.length):[];return wC(qe,function(j_){Py[++b0]=w1?b1(An,j_,Fa):uE(j_,An,Fa)}),Py}),o1=a0(function(qe,An,Fa){ww(qe,Fa,An)});function qv(qe,An){var Fa=He(qe)?h_:gA;return Fa(qe,Fv(An,3))}function Sv(qe,An,Fa,b0){return qe==null?[]:(He(An)||(An=An==null?[]:[An]),Fa=b0?D:Fa,He(Fa)||(Fa=Fa==null?[]:[Fa]),W3(qe,An,Fa))}var ny=a0(function(qe,An,Fa){qe[Fa?0:1].push(An)},function(){return[[],[]]});function Uy(qe,An,Fa){var b0=He(qe)?ox:EC,w1=arguments.length<3;return b0(qe,Fv(An,4),Fa,w1,wC)}function w_(qe,An,Fa){var b0=He(qe)?$_:EC,w1=arguments.length<3;return b0(qe,Fv(An,4),Fa,w1,xS)}function px(qe,An){var Fa=He(qe)?U1:wE;return Fa(qe,Iw(Fv(An,3)))}function $x(qe){var An=He(qe)?Jy:Z3;return An(qe)}function Ix(qe,An,Fa){(Fa?jy(qe,An,Fa):An===D)?An=1:An=f2(An);var b0=He(qe)?qy:H3;return b0(qe,An)}function cw(qe){var An=He(qe)?H_:dD;return An(qe)}function Sx(qe){if(qe==null)return 0;if(Xr(qe))return lT(qe)?Fw(qe):qe.length;var An=Oy(qe);return An==k0||An==mu?qe.size:T3(qe).length}function W2(qe,An,Fa){var b0=He(qe)?K_:G3;return Fa&&jy(qe,An,Fa)&&(An=D),b0(qe,Fv(An,3))}var gu=TS(function(qe,An){if(qe==null)return[];var Fa=An.length;return Fa>1&&jy(qe,An[0],An[1])?An=[]:Fa>2&&jy(An[0],An[1],An[2])&&(An=[An[0]]),W3(qe,NE(An,1),[])}),bg=bE||function(){return t2.Date.now()};function i0(qe,An){if(typeof An!="function")throw new dC(w);return qe=f2(qe),function(){if(--qe<1)return An.apply(this,arguments)}}function S0(qe,An,Fa){return An=Fa?D:An,An=qe&&An==null?qe.length:An,O1(qe,Yn,D,D,D,D,An)}function Tv(qe,An){var Fa;if(typeof An!="function")throw new dC(w);return qe=f2(qe),function(){return--qe>0&&(Fa=An.apply(this,arguments)),qe<=1&&(An=D),Fa}}var cy=TS(function(qe,An,Fa){var b0=rt;if(Fa.length){var w1=L2(Fa,Ev(cy));b0|=jr}return O1(qe,b0,An,Fa,w1)}),Gy=TS(function(qe,An,Fa){var b0=rt|It;if(Fa.length){var w1=L2(Fa,Ev(Gy));b0|=jr}return O1(An,b0,qe,Fa,w1)});function q1(qe,An,Fa){An=Fa?D:An;var b0=O1(qe,wn,D,D,D,D,D,An);return b0.placeholder=q1.placeholder,b0}function i_(qe,An,Fa){An=Fa?D:An;var b0=O1(qe,Hs,D,D,D,D,D,An);return b0.placeholder=i_.placeholder,b0}function ex(qe,An,Fa){var b0,w1,Py,j_,mx,n2,rC=0,sC=!1,FC=!1,tE=!0;if(typeof qe!="function")throw new dC(w);An=GC(An)||0,b_(Fa)&&(sC=!!Fa.leading,FC="maxWait"in Fa,Py=FC?rE(GC(Fa.maxWait)||0,An):Py,tE="trailing"in Fa?!!Fa.trailing:tE);function UE(OD){var JI=b0,K4=w1;return b0=w1=D,rC=OD,j_=qe.apply(K4,JI),j_}function bT(OD){return rC=OD,mx=__(SA,An),sC?UE(OD):j_}function vA(OD){var JI=OD-n2,K4=OD-rC,AO=An-JI;return FC?PE(AO,Py-K4):AO}function zT(OD){var JI=OD-n2,K4=OD-rC;return n2===D||JI>=An||JI<0||FC&&K4>=Py}function SA(){var OD=bg();if(zT(OD))return HA(OD);mx=__(SA,vA(OD))}function HA(OD){return mx=D,tE&&b0?UE(OD):(b0=w1=D,j_)}function NI(){mx!==D&&wr(mx),rC=0,b0=n2=w1=mx=D}function uI(){return mx===D?j_:HA(bg())}function S3(){var OD=bg(),JI=zT(OD);if(b0=arguments,w1=this,n2=OD,JI){if(mx===D)return bT(n2);if(FC)return wr(mx),mx=__(SA,An),UE(n2)}return mx===D&&(mx=__(SA,An)),j_}return S3.cancel=NI,S3.flush=uI,S3}var W1=TS(function(qe,An){return yS(qe,1,An)}),A2=TS(function(qe,An,Fa){return yS(qe,GC(An)||0,Fa)});function CC(qe){return O1(qe,_n)}function Gw(qe,An){if(typeof qe!="function"||An!=null&&typeof An!="function")throw new dC(w);var Fa=function(){var b0=arguments,w1=An?An.apply(this,b0):b0[0],Py=Fa.cache;if(Py.has(w1))return Py.get(w1);var j_=qe.apply(this,b0);return Fa.cache=Py.set(w1,j_)||Py,j_};return Fa.cache=new(Gw.Cache||ge),Fa}Gw.Cache=ge;function Iw(qe){if(typeof qe!="function")throw new dC(w);return function(){var An=arguments;switch(An.length){case 0:return!qe.call(this);case 1:return!qe.call(this,An[0]);case 2:return!qe.call(this,An[0],An[1]);case 3:return!qe.call(this,An[0],An[1],An[2])}return!qe.apply(this,An)}}function bC(qe){return Tv(2,qe)}var CE=Me(function(qe,An){An=An.length==1&&He(An[0])?h_(An[0],UC(Fv())):h_(NE(An,1),UC(Fv()));var Fa=An.length;return TS(function(b0){for(var w1=-1,Py=PE(b0.length,Fa);++w1=An}),ve=ET(function(){return arguments}())?ET:function(qe){return V_(qe)&&VS.call(qe,"callee")&&!cT.call(qe,"callee")},He=Z_.isArray,Nt=ov?UC(ov):cC;function Xr(qe){return qe!=null&&B_(qe.length)&&!By(qe)}function Ar(qe){return V_(qe)&&Xr(qe)}function Ea(qe){return qe===!0||qe===!1||V_(qe)&&oS(qe)==H0}var iu=YE||u4,$g=rv?UC(rv):xT;function C0(qe){return V_(qe)&&qe.nodeType===1&&!oC(qe)}function Z0(qe){if(qe==null)return!0;if(Xr(qe)&&(He(qe)||typeof qe=="string"||typeof qe.splice=="function"||iu(qe)||mA(qe)||ve(qe)))return!qe.length;var An=Oy(qe);if(An==k0||An==mu)return!qe.size;if(jx(qe))return!T3(qe).length;for(var Fa in qe)if(VS.call(qe,Fa))return!1;return!0}function Nv(qe,An){return wT(qe,An)}function s1(qe,An,Fa){Fa=typeof Fa=="function"?Fa:D;var b0=Fa?Fa(qe,An):D;return b0===D?wT(qe,An,D,Fa):!!b0}function M1(qe){if(!V_(qe))return!1;var An=oS(qe);return An==jv||An==d0||typeof qe.message=="string"&&typeof qe.name=="string"&&!oC(qe)}function Ty(qe){return typeof qe=="number"&&OC(qe)}function By(qe){if(!b_(qe))return!1;var An=oS(qe);return An==Lv||An==Je||An==e0||An==Dg}function o_(qe){return typeof qe=="number"&&qe==f2(qe)}function B_(qe){return typeof qe=="number"&&qe>-1&&qe%1==0&&qe<=gt}function b_(qe){var An=typeof qe;return qe!=null&&(An=="object"||An=="function")}function V_(qe){return qe!=null&&typeof qe=="object"}var Hx=yd?UC(yd):DT;function dw(qe,An){return qe===An||WC(qe,An,vy(An))}function $C(qe,An,Fa){return Fa=typeof Fa=="function"?Fa:D,WC(qe,An,vy(An),Fa)}function eE(qe){return DS(qe)&&qe!=+qe}function ZC(qe){if(ix(qe))throw new kx(y);return wS(qe)}function HC(qe){return qe===null}function PC(qe){return qe==null}function DS(qe){return typeof qe=="number"||V_(qe)&&oS(qe)==G0}function oC(qe){if(!V_(qe)||oS(qe)!=u0)return!1;var An=O2(qe);if(An===null)return!0;var Fa=VS.call(An,"constructor")&&An.constructor;return typeof Fa=="function"&&Fa instanceof Fa&&zw.call(Fa)==MC}var Vw=kg?UC(kg):GT;function dE(qe){return o_(qe)&&qe>=-gt&&qe<=gt}var $S=Vg?UC(Vg):wA;function lT(qe){return typeof qe=="string"||!He(qe)&&V_(qe)&&oS(qe)==Ag}function BT(qe){return typeof qe=="symbol"||V_(qe)&&oS(qe)==c0}var mA=wv?UC(wv):cE;function _3(qe){return qe===D}function ID(qe){return V_(qe)&&Oy(qe)==$0}function b3(qe){return V_(qe)&&oS(qe)==cv}var jA=Jv(v3),Ux=Jv(function(qe,An){return qe<=An});function Tx(qe){if(!qe)return[];if(Xr(qe))return lT(qe)?U2(qe):Fd(qe);if(jE&&qe[jE])return i2(qe[jE]());var An=Oy(qe),Fa=An==k0?tx:An==mu?jw:Y3;return Fa(qe)}function hw(qe){if(!qe)return qe===0?qe:0;if(qe=GC(qe),qe===ai||qe===-ai){var An=qe<0?-1:1;return An*Zr}return qe===qe?qe:0}function f2(qe){var An=hw(qe),Fa=An%1;return An===An?Fa?An-Fa:An:0}function xC(qe){return qe?Qw(f2(qe),0,Zs):0}function GC(qe){if(typeof qe=="number")return qe;if(BT(qe))return Ht;if(b_(qe)){var An=typeof qe.valueOf=="function"?qe.valueOf():qe;qe=b_(An)?An+"":An}if(typeof qe!="string")return qe===0?qe:+qe;qe=sS(qe);var Fa=A0.test(qe);return Fa||t0.test(qe)?K1(qe.slice(2),Fa?2:8):Xg.test(qe)?Ht:+qe}function IS(qe){return zg(qe,yD(qe))}function RS(qe){return qe?Qw(f2(qe),-gt,gt):qe===0?qe:0}function SC(qe){return qe==null?"":aT(qe)}var sE=M0(function(qe,An){if(jx(An)||Xr(An)){zg(An,ZA(An),qe);return}for(var Fa in An)VS.call(An,Fa)&&lx(qe,Fa,An[Fa])}),hE=M0(function(qe,An){zg(An,yD(An),qe)}),KT=M0(function(qe,An,Fa,b0){zg(An,yD(An),qe,b0)}),kS=M0(function(qe,An,Fa,b0){zg(An,ZA(An),qe,b0)}),nA=w0(uC);function kA(qe,An){var Fa=j(qe);return An==null?Fa:Yx(Fa,An)}var WA=TS(function(qe,An){qe=lw(qe);var Fa=-1,b0=An.length,w1=b0>2?An[2]:D;for(w1&&jy(An[0],An[1],w1)&&(b0=1);++Fa1),Py}),zg(qe,l1(qe),Fa),b0&&(Fa=tS(Fa,ie|ze|Ie,r_));for(var w1=An.length;w1--;)y3(Fa,An[w1]);return Fa});function T4(qe,An){return L3(qe,Iw(Fv(An)))}var PD=w0(function(qe,An){return qe==null?{}:w3(qe,An)});function L3(qe,An){if(qe==null)return{};var Fa=h_(l1(qe),function(b0){return[b0]});return An=Fv(An),CA(qe,Fa,function(b0,w1){return An(b0,w1[0])})}function wP(qe,An,Fa){An=Ne(An,qe);var b0=-1,w1=An.length;for(w1||(w1=1,qe=D);++b0An){var b0=qe;qe=An,An=b0}if(Fa||qe%1||An%1){var w1=ZE();return PE(qe+w1*(An-qe+v1("1e-"+((w1+"").length-1))),An)}return aD(qe,An)}var XI=Zg(function(qe,An,Fa){return An=An.toLowerCase(),qe+(Fa?OI(An):An)});function OI(qe){return jP(SC(qe).toLowerCase())}function RI(qe){return qe=SC(qe),qe&&qe.replace(u1,ky).replace(P1,"")}function A4(qe,An,Fa){qe=SC(qe),An=aT(An);var b0=qe.length;Fa=Fa===D?b0:Qw(f2(Fa),0,b0);var w1=Fa;return Fa-=An.length,Fa>=0&&qe.slice(Fa,w1)==An}function vL(qe){return qe=SC(qe),qe&&rn.test(qe)?qe.replace(qr,$y):qe}function MD(qe){return qe=SC(qe),qe&&jg.test(qe)?qe.replace(Td,"\\$&"):qe}var yL=Zg(function(qe,An,Fa){return qe+(Fa?"-":"")+An.toLowerCase()}),$P=Zg(function(qe,An,Fa){return qe+(Fa?" ":"")+An.toLowerCase()}),kI=t1("toLowerCase");function Z4(qe,An,Fa){qe=SC(qe),An=f2(An);var b0=An?Fw(qe):0;if(!An||b0>=An)return qe;var w1=(An-b0)/2;return D0(zE(w1),Fa)+qe+D0(aC(w1),Fa)}function PM(qe,An,Fa){qe=SC(qe),An=f2(An);var b0=An?Fw(qe):0;return An&&b0>>0,Fa?(qe=SC(qe),qe&&(typeof An=="string"||An!=null&&!Vw(An))&&(An=aT(An),!An&&Cx(qe))?Gt(U2(qe),0,Fa):qe.split(An,Fa)):[]}var J0=Zg(function(qe,An,Fa){return qe+(Fa?" ":"")+jP(An)});function eM(qe,An,Fa){return qe=SC(qe),Fa=Fa==null?0:Qw(f2(Fa),0,qe.length),An=aT(An),qe.slice(Fa,Fa+An.length)==An}function tM(qe,An,Fa){var b0=r1.templateSettings;Fa&&jy(qe,An,Fa)&&(An=D),qe=SC(qe),An=KT({},An,b0,Mv);var w1=KT({},An.imports,b0.imports,Mv),Py=ZA(w1),j_=FS(w1,Py),mx,n2,rC=0,sC=An.interpolate||Eg,FC="__p += '",tE=eC((An.escape||Eg).source+"|"+sC.source+"|"+(sC===gd?g0:Eg).source+"|"+(An.evaluate||Eg).source+"|$","g"),UE="//# sourceURL="+(VS.call(An,"sourceURL")?(An.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qv+"]")+` -`;qe.replace(tE,function(zT,SA,HA,NI,uI,S3){return HA||(HA=NI),FC+=qe.slice(rC,S3).replace(a1,l_),SA&&(mx=!0,FC+=`' + -__e(`+SA+`) + -'`),uI&&(n2=!0,FC+=`'; -`+uI+`; -__p += '`),HA&&(FC+=`' + -((__t = (`+HA+`)) == null ? '' : __t) + -'`),rC=S3+zT.length,zT}),FC+=`'; -`;var bT=VS.call(An,"variable")&&An.variable;if(!bT)FC=`with (obj) { -`+FC+` -} -`;else if(Bg.test(bT))throw new kx(a);FC=(n2?FC.replace(Jg,""):FC).replace(j0,"$1").replace(Wo,"$1;"),FC="function("+(bT||"obj")+`) { -`+(bT?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(mx?", __e = _.escape":"")+(n2?`, __j = Array.prototype.join; + `]:{marginTop:Pr}}}),Qi(Cn)),Xi(Cn)),{[` + ${rr}-expand, + ${rr}-edit, + ${rr}-copy + `]:Object.assign(Object.assign({},(0,Tt.N)(Cn)),{marginInlineStart:Cn.marginXXS})}),hi(Cn)),Go(Cn)),Mo()),{"&-rtl":{direction:"rtl"}})}},Ii=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var Vi=(0,un.I$)("Typography",Cn=>[pe(Cn)],Ii),ai=Cn=>{const{prefixCls:rr,"aria-label":Pr,className:Er,style:ui,direction:Gr,maxLength:zr,autoSize:Ei=!0,value:Zi,onSave:Kr,onCancel:Xr,onEnd:Qo,component:pr,enterIcon:qo=v.createElement(vt,null)}=Cn,Br=v.useRef(null),sr=v.useRef(!1),ii=v.useRef(),[qi,Ln]=v.useState(Zi);v.useEffect(()=>{Ln(Zi)},[Zi]),v.useEffect(()=>{if(Br.current&&Br.current.resizableTextArea){const{textArea:yo}=Br.current.resizableTextArea;yo.focus();const{length:ao}=yo.value;yo.setSelectionRange(ao,ao)}},[]);const zn=yo=>{let{target:ao}=yo;Ln(ao.value.replace(/[\n\r]/g,""))},Wi=()=>{sr.current=!0},Yi=()=>{sr.current=!1},so=yo=>{let{keyCode:ao}=yo;sr.current||(ii.current=ao)},ko=()=>{Kr(qi.trim())},_i=yo=>{let{keyCode:ao,ctrlKey:Bs,altKey:fa,metaKey:ba,shiftKey:Rs}=yo;ii.current===ao&&!sr.current&&!Bs&&!fa&&!ba&&!Rs&&(ao===Pe.Z.ENTER?(ko(),Qo==null||Qo()):ao===Pe.Z.ESC&&Xr())},hs=()=>{ko()},Ts=pr?`${rr}-${pr}`:"",[Qr,Ai,Ri]=Vi(rr),To=ct()(rr,`${rr}-edit-content`,{[`${rr}-rtl`]:Gr==="rtl"},Er,Ts,Ai,Ri);return Qr(v.createElement("div",{className:To,style:ui},v.createElement(Vt.Z,{ref:Br,maxLength:zr,value:qi,onChange:zn,onKeyDown:so,onKeyUp:_i,onCompositionStart:Wi,onCompositionEnd:Yi,onBlur:hs,"aria-label":Pr,rows:1,autoSize:Ei}),qo!==null?(0,ze.Tm)(qo,{className:`${rr}-edit-content-confirm`}):null))};function Ms(Cn,rr){return v.useMemo(()=>{const Pr=!!Cn;return[Pr,Object.assign(Object.assign({},rr),Pr&&typeof Cn=="object"?Cn:null)]},[Cn])}var Rt=(Cn,rr)=>{const Pr=v.useRef(!1);v.useEffect(()=>{Pr.current?Cn():Pr.current=!0},rr)},jn=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{const{prefixCls:Pr,component:Er="article",className:ui,rootClassName:Gr,setContentRef:zr,children:Ei,direction:Zi,style:Kr}=Cn,Xr=jn(Cn,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Qo,direction:pr,typography:qo}=v.useContext(ft.E_),Br=Zi!=null?Zi:pr;let sr=rr;zr&&(sr=(0,Et.sQ)(rr,zr));const ii=Qo("typography",Pr),[qi,Ln,zn]=Vi(ii),Wi=ct()(ii,qo==null?void 0:qo.className,{[`${ii}-rtl`]:Br==="rtl"},ui,Gr,Ln,zn),Yi=Object.assign(Object.assign({},qo==null?void 0:qo.style),Kr);return qi(v.createElement(Er,Object.assign({className:Wi,style:Yi,ref:sr},Xr),Ei))});function Ti(Cn){const rr=typeof Cn;return rr==="string"||rr==="number"}function Bi(Cn){let rr=0;return Cn.forEach(Pr=>{Ti(Pr)?rr+=String(Pr).length:rr+=1}),rr}function no(Cn,rr){let Pr=0;const Er=[];for(let ui=0;uirr){const Kr=rr-Pr;return Er.push(String(Gr).slice(0,Kr)),Er}Er.push(Gr),Pr=Zi}return Cn}const Vr=0,Rn=1,Xt=2,Sn=3,Pn=4;var mt=Cn=>{let{enabledMeasure:rr,children:Pr,text:Er,width:ui,fontSize:Gr,rows:zr,onEllipsis:Ei}=Cn;const[[Zi,Kr,Xr],Qo]=v.useState([0,0,0]),[pr,qo]=v.useState(0),[Br,sr]=v.useState(Vr),[ii,qi]=v.useState(0),Ln=v.useRef(null),zn=v.useRef(null),Wi=v.useMemo(()=>(0,Ye.Z)(Er),[Er]),Yi=v.useMemo(()=>Bi(Wi),[Wi]),so=v.useMemo(()=>!rr||Br!==Sn?pr&&Br!==Pn&&rr?Pr(no(Wi,pr),pr{rr&&ui&&Gr&&Yi&&(sr(Rn),Qo([0,Math.ceil(Yi/2),Yi]))},[rr,ui,Gr,Er,Yi,zr]),(0,rt.Z)(()=>{var Ts;Br===Rn&&qi(((Ts=Ln.current)===null||Ts===void 0?void 0:Ts.offsetHeight)||0)},[Br]),(0,rt.Z)(()=>{var Ts,Qr;if(ii){if(Br===Rn){const Ai=((Ts=zn.current)===null||Ts===void 0?void 0:Ts.offsetHeight)||0,Ri=zr*ii;Ai<=Ri?(sr(Pn),Ei(!1)):sr(Xt)}else if(Br===Xt)if(Zi!==Xr){const Ai=((Qr=zn.current)===null||Qr===void 0?void 0:Qr.offsetHeight)||0,Ri=zr*ii;let To=Zi,yo=Xr;Zi===Xr-1?yo=Zi:Ai<=Ri?To=Kr:yo=Kr;const ao=Math.ceil((To+yo)/2);Qo([To,ao,yo])}else sr(Sn),qo(Kr),Ei(!0)}},[Br,Zi,Xr,zr,ii]);const ko={width:ui,whiteSpace:"normal",margin:0,padding:0},_i=(Ts,Qr,Ai)=>v.createElement("span",{"aria-hidden":!0,ref:Qr,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(Gr/2)*2},Ai)},Ts),hs=(Ts,Qr)=>{const Ai=no(Wi,Ts);return _i(Pr(Ai,!0),Qr,ko)};return v.createElement(v.Fragment,null,so,rr&&Br!==Sn&&Br!==Pn&&v.createElement(v.Fragment,null,_i("lg",Ln,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Br===Rn?_i(Pr(Wi,!1),zn,ko):hs(Kr,zn)))},kt=Cn=>{let{enabledEllipsis:rr,isEllipsis:Pr,children:Er,tooltipProps:ui}=Cn;return!(ui!=null&&ui.title)||!rr?Er:v.createElement(Xe.Z,Object.assign({open:Pr?void 0:!1},ui),Er)},vn=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{var Pr,Er,ui;const{prefixCls:Gr,className:zr,style:Ei,type:Zi,disabled:Kr,children:Xr,ellipsis:Qo,editable:pr,copyable:qo,component:Br,title:sr}=Cn,ii=vn(Cn,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:qi,direction:Ln}=v.useContext(ft.E_),[zn]=(0,Ct.Z)("Text"),Wi=v.useRef(null),Yi=v.useRef(null),so=qi("typography",Gr),ko=(0,yt.Z)(ii,["mark","code","delete","underline","strong","keyboard","italic"]),[_i,hs]=Ms(pr),[Ts,Qr]=(0,Gt.Z)(!1,{value:hs.editing}),{triggerType:Ai=["icon"]}=hs,Ri=vu=>{var ru;vu&&((ru=hs.onStart)===null||ru===void 0||ru.call(hs)),Qr(vu)};Rt(()=>{var vu;Ts||(vu=Yi.current)===null||vu===void 0||vu.focus()},[Ts]);const To=vu=>{vu==null||vu.preventDefault(),Ri(!0)},yo=vu=>{var ru;(ru=hs.onChange)===null||ru===void 0||ru.call(hs,vu),Ri(!1)},ao=()=>{var vu;(vu=hs.onCancel)===null||vu===void 0||vu.call(hs),Ri(!1)},[Bs,fa]=Ms(qo),[ba,Rs]=v.useState(!1),Ds=v.useRef(null),el={};fa.format&&(el.format=fa.format);const tl=()=>{Ds.current&&clearTimeout(Ds.current)},sn=vu=>{var ru;vu==null||vu.preventDefault(),vu==null||vu.stopPropagation(),Ge()(fa.text||String(Xr)||"",el),Rs(!0),tl(),Ds.current=setTimeout(()=>{Rs(!1)},3e3),(ru=fa.onCopy)===null||ru===void 0||ru.call(fa,vu)};v.useEffect(()=>tl,[]);const[dt,Mt]=v.useState(!1),[Zt,Kt]=v.useState(!1),[Nn,Ur]=v.useState(!1),[Ui,Ao]=v.useState(!1),[rs,ps]=v.useState(!1),[Po,$a]=v.useState(!0),[nl,ka]=Ms(Qo,{expandable:!1}),Xs=nl&&!Nn,{rows:zs=1}=ka,xa=v.useMemo(()=>!Xs||ka.suffix!==void 0||ka.onEllipsis||ka.expandable||_i||Bs,[Xs,ka,_i,Bs]);(0,rt.Z)(()=>{nl&&!xa&&(Mt((0,ht.G)("webkitLineClamp")),Kt((0,ht.G)("textOverflow")))},[xa,nl]);const Ea=v.useMemo(()=>xa?!1:zs===1?Zt:dt,[xa,Zt,dt]),_a=Xs&&(Ea?rs:Ui),Ba=Xs&&zs===1&&Ea,Al=Xs&&zs>1&&Ea,ks=vu=>{var ru;Ur(!0),(ru=ka.onExpand)===null||ru===void 0||ru.call(ka,vu)},[Za,lu]=v.useState(0),[mu,nu]=v.useState(0),Fl=(vu,ru)=>{let{offsetWidth:Ql}=vu;var Hi;lu(Ql),nu(parseInt((Hi=window.getComputedStyle)===null||Hi===void 0?void 0:Hi.call(window,ru).fontSize,10)||0)},va=vu=>{var ru;Ao(vu),Ui!==vu&&((ru=ka.onEllipsis)===null||ru===void 0||ru.call(ka,vu))};v.useEffect(()=>{const vu=Wi.current;if(nl&&Ea&&vu){const ru=Al?vu.offsetHeight{const vu=Wi.current;if(typeof IntersectionObserver=="undefined"||!vu||!Ea||!Xs)return;const ru=new IntersectionObserver(()=>{$a(!!vu.offsetParent)});return ru.observe(vu),()=>{ru.disconnect()}},[Ea,Xs]);let Ua={};ka.tooltip===!0?Ua={title:(Pr=hs.text)!==null&&Pr!==void 0?Pr:Xr}:v.isValidElement(ka.tooltip)?Ua={title:ka.tooltip}:typeof ka.tooltip=="object"?Ua=Object.assign({title:(Er=hs.text)!==null&&Er!==void 0?Er:Xr},ka.tooltip):Ua={title:ka.tooltip};const Yl=v.useMemo(()=>{const vu=ru=>["string","number"].includes(typeof ru);if(!(!nl||Ea)){if(vu(hs.text))return hs.text;if(vu(Xr))return Xr;if(vu(sr))return sr;if(vu(Ua.title))return Ua.title}},[nl,Ea,sr,Ua.title,_a]);if(Ts)return v.createElement(ai,{value:(ui=hs.text)!==null&&ui!==void 0?ui:typeof Xr=="string"?Xr:"",onSave:yo,onCancel:ao,onEnd:hs.onEnd,prefixCls:so,className:zr,style:Ei,direction:Ln,component:Br,maxLength:hs.maxLength,autoSize:hs.autoSize,enterIcon:hs.enterIcon});const Cc=()=>{const{expandable:vu,symbol:ru}=ka;if(!vu)return null;let Ql;return ru?Ql=ru:Ql=zn==null?void 0:zn.expand,v.createElement("a",{key:"expand",className:`${so}-expand`,onClick:ks,"aria-label":zn==null?void 0:zn.expand},Ql)},ch=()=>{if(!_i)return;const{icon:vu,tooltip:ru}=hs,Ql=(0,Ye.Z)(ru)[0]||(zn==null?void 0:zn.edit),Hi=typeof Ql=="string"?Ql:"";return Ai.includes("icon")?v.createElement(Xe.Z,{key:"edit",title:ru===!1?"":Ql},v.createElement(je,{ref:Yi,className:`${so}-edit`,onClick:To,"aria-label":Hi},vu||v.createElement(Be,{role:"button"}))):null},mh=()=>{if(!Bs)return null;const{tooltips:vu,icon:ru}=fa,Ql=Ni(vu),Hi=Ni(ru),ji=ba?qr(Ql[1],zn==null?void 0:zn.copied):qr(Ql[0],zn==null?void 0:zn.copy),Gn=ba?zn==null?void 0:zn.copied:zn==null?void 0:zn.copy,Sr=typeof ji=="string"?ji:Gn;return v.createElement(Xe.Z,{key:"copy",title:ji},v.createElement(je,{className:ct()(`${so}-copy`,{[`${so}-copy-success`]:ba,[`${so}-copy-icon-only`]:Xr==null}),onClick:sn,"aria-label":Sr},ba?qr(Hi[1],v.createElement(z.Z,null),!0):qr(Hi[0],v.createElement(ie,null),!0)))},_h=vu=>[vu&&Cc(),ch(),mh()],wh=vu=>[vu&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},li),ka.suffix,_h(vu)];return v.createElement(at.Z,{onResize:Fl,disabled:!Xs},vu=>v.createElement(kt,{tooltipProps:Ua,enabledEllipsis:Xs,isEllipsis:_a},v.createElement(oi,Object.assign({className:ct()({[`${so}-${Zi}`]:Zi,[`${so}-disabled`]:Kr,[`${so}-ellipsis`]:nl,[`${so}-single-line`]:Xs&&zs===1,[`${so}-ellipsis-single-line`]:Ba,[`${so}-ellipsis-multiple-line`]:Al},zr),prefixCls:Gr,style:Object.assign(Object.assign({},Ei),{WebkitLineClamp:Al?zs:void 0}),component:Br,ref:(0,Et.sQ)(vu,Wi,rr),direction:Ln,onClick:Ai.includes("text")?To:void 0,"aria-label":Yl==null?void 0:Yl.toString(),title:sr},ko),v.createElement(mt,{enabledMeasure:Xs&&!Ea,text:Xr,rows:zs,width:Za,fontSize:mu,onEllipsis:va},(ru,Ql)=>{let Hi=ru;return ru.length&&Ql&&Yl&&(Hi=v.createElement("span",{key:"show-content","aria-hidden":!0},Hi)),vr(Cn,v.createElement(v.Fragment,null,Hi,wh(Ql)))}))))}),xt=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{var{ellipsis:Pr,rel:Er}=Cn,ui=xt(Cn,["ellipsis","rel"]);const Gr=Object.assign(Object.assign({},ui),{rel:Er===void 0&&ui.target==="_blank"?"noopener noreferrer":Er});return delete Gr.navigate,v.createElement(dn,Object.assign({},Gr,{ref:rr,ellipsis:!!Pr,component:"a"}))}),ir=v.forwardRef((Cn,rr)=>v.createElement(dn,Object.assign({ref:rr},Cn,{component:"div"}))),tr=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{var{ellipsis:Pr}=Cn,Er=tr(Cn,["ellipsis"]);const ui=v.useMemo(()=>Pr&&typeof Pr=="object"?(0,yt.Z)(Pr,["expandable","rows"]):Pr,[Pr]);return v.createElement(dn,Object.assign({ref:rr},Er,{ellipsis:ui,component:"span"}))};var nn=v.forwardRef(Jn),er=function(Cn,rr){var Pr={};for(var Er in Cn)Object.prototype.hasOwnProperty.call(Cn,Er)&&rr.indexOf(Er)<0&&(Pr[Er]=Cn[Er]);if(Cn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Er=Object.getOwnPropertySymbols(Cn);ui{const{level:Pr=1}=Cn,Er=er(Cn,["level"]);let ui;return Fr.includes(Pr)?ui=`h${Pr}`:ui="h1",v.createElement(dn,Object.assign({ref:rr},Er,{component:ui}))});const zt=oi;zt.Text=nn,zt.Link=Bt,zt.Title=bo,zt.Paragraph=ir;var en=zt},43536:function(St,me,x){"use strict";x.d(me,{Z:function(){return ji}});var v=x(77617),z=x(49397),P=x(79161),A=x(92310),W=x.n(A),X=x(79384),Y=x(61577),ie=x(22946),ae=x(7963),se=x(3711),Ie=x(71038),Be=x(16514),Ce=x(54131),ct=x(56348),nt=x(33202),Ge=x(13255),at=x(90304),Ye=x(64834),rt=x(32188),Gt=function(Gn,Sr){if(Gn&&Sr){var Rr=Array.isArray(Sr)?Sr:Sr.split(","),co=Gn.name||"",ns=Gn.type||"",fs=ns.replace(/\/.*$/,"");return Rr.some(function(vs){var as=vs.trim();if(/^\*(\/\*)?$/.test(vs))return!0;if(as.charAt(0)==="."){var da=co.toLowerCase(),Ss=as.toLowerCase(),pl=[Ss];return(Ss===".jpg"||Ss===".jpeg")&&(pl=[".jpg",".jpeg"]),pl.some(function(Vs){return da.endsWith(Vs)})}return/\/\*$/.test(as)?fs===as.replace(/\/.*$/,""):ns===as?!0:/^\w+$/.test(as)?((0,rt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(as,"'.Skip for check.")),!0):!1})}return!0};function yt(Gn,Sr){var Rr="cannot ".concat(Gn.method," ").concat(Gn.action," ").concat(Sr.status,"'"),co=new Error(Rr);return co.status=Sr.status,co.method=Gn.method,co.url=Gn.action,co}function Et(Gn){var Sr=Gn.responseText||Gn.response;if(!Sr)return Sr;try{return JSON.parse(Sr)}catch(Rr){return Sr}}function ht(Gn){var Sr=new XMLHttpRequest;Gn.onProgress&&Sr.upload&&(Sr.upload.onprogress=function(fs){fs.total>0&&(fs.percent=fs.loaded/fs.total*100),Gn.onProgress(fs)});var Rr=new FormData;Gn.data&&Object.keys(Gn.data).forEach(function(ns){var fs=Gn.data[ns];if(Array.isArray(fs)){fs.forEach(function(vs){Rr.append("".concat(ns,"[]"),vs)});return}Rr.append(ns,fs)}),Gn.file instanceof Blob?Rr.append(Gn.filename,Gn.file,Gn.file.name):Rr.append(Gn.filename,Gn.file),Sr.onerror=function(fs){Gn.onError(fs)},Sr.onload=function(){return Sr.status<200||Sr.status>=300?Gn.onError(yt(Gn,Sr),Et(Sr)):Gn.onSuccess(Et(Sr),Sr)},Sr.open(Gn.method,Gn.action,!0),Gn.withCredentials&&"withCredentials"in Sr&&(Sr.withCredentials=!0);var co=Gn.headers||{};return co["X-Requested-With"]!==null&&Sr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(co).forEach(function(ns){co[ns]!==null&&Sr.setRequestHeader(ns,co[ns])}),Sr.send(Rr),{abort:function(){Sr.abort()}}}function Pe(Gn,Sr){var Rr=Gn.createReader(),co=[];function ns(){Rr.readEntries(function(fs){var vs=Array.prototype.slice.apply(fs);co=co.concat(vs);var as=!vs.length;as?Sr(co):ns()})}ns()}var et=function(Sr,Rr,co){var ns=function fs(vs,as){vs&&(vs.path=as||"",vs.isFile?vs.file(function(da){co(da)&&(vs.fullPath&&!da.webkitRelativePath&&(Object.defineProperties(da,{webkitRelativePath:{writable:!0}}),da.webkitRelativePath=vs.fullPath.replace(/^\//,""),Object.defineProperties(da,{webkitRelativePath:{writable:!1}})),Rr([da]))}):vs.isDirectory&&Pe(vs,function(da){da.forEach(function(Ss){fs(Ss,"".concat(as).concat(vs.name,"/"))})}))};Sr.forEach(function(fs){ns(fs.webkitGetAsEntry())})},Oe=et,Ue=+new Date,je=0;function ft(){return"rc-upload-".concat(Ue,"-").concat(++je)}var Ct=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Xe=function(Gn){(0,se.Z)(Rr,Gn);var Sr=(0,Ie.Z)(Rr);function Rr(){var co;(0,Y.Z)(this,Rr);for(var ns=arguments.length,fs=new Array(ns),vs=0;vs{const{componentCls:Sr,iconCls:Rr}=Gn;return{[`${Sr}-wrapper`]:{[`${Sr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Gn.colorFillAlter,border:`${(0,hi.bf)(Gn.lineWidth)} dashed ${Gn.colorBorder}`,borderRadius:Gn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Gn.motionDurationSlow}`,[Sr]:{padding:Gn.padding},[`${Sr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Gn.borderRadiusLG,"&:focus-visible":{outline:`${(0,hi.bf)(Gn.lineWidthFocus)} solid ${Gn.colorPrimaryBorder}`}},[`${Sr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${Sr}-disabled):hover, + &-hover:not(${Sr}-disabled) + `]:{borderColor:Gn.colorPrimaryHover},[`p${Sr}-drag-icon`]:{marginBottom:Gn.margin,[Rr]:{color:Gn.colorPrimary,fontSize:Gn.uploadThumbnailSize}},[`p${Sr}-text`]:{margin:`0 0 ${(0,hi.bf)(Gn.marginXXS)}`,color:Gn.colorTextHeading,fontSize:Gn.fontSizeLG},[`p${Sr}-hint`]:{color:Gn.colorTextDescription,fontSize:Gn.fontSize},[`&${Sr}-disabled`]:{[`p${Sr}-drag-icon ${Rr}, + p${Sr}-text, + p${Sr}-hint + `]:{color:Gn.colorTextDisabled}}}}}},Ii=Gn=>{const{componentCls:Sr,antCls:Rr,iconCls:co,fontSize:ns,lineHeight:fs,calc:vs}=Gn,as=`${Sr}-list-item`,da=`${as}-actions`,Ss=`${as}-action`,pl=Gn.fontHeightSM;return{[`${Sr}-wrapper`]:{[`${Sr}-list`]:Object.assign(Object.assign({},(0,Yr.dF)()),{lineHeight:Gn.lineHeight,[as]:{position:"relative",height:vs(Gn.lineHeight).mul(ns).equal(),marginTop:Gn.marginXS,fontSize:ns,display:"flex",alignItems:"center",transition:`background-color ${Gn.motionDurationSlow}`,"&:hover":{backgroundColor:Gn.controlItemBgHover},[`${as}-name`]:Object.assign(Object.assign({},Yr.vS),{padding:`0 ${(0,hi.bf)(Gn.paddingXS)}`,lineHeight:fs,flex:"auto",transition:`all ${Gn.motionDurationSlow}`}),[da]:{[Ss]:{opacity:0},[co]:{color:Gn.actionsColor,transition:`all ${Gn.motionDurationSlow}`},[` + ${Ss}:focus-visible, + &.picture ${Ss} + `]:{opacity:1},[`${Ss}${Rr}-btn`]:{height:pl,border:0,lineHeight:1}},[`${Sr}-icon ${co}`]:{color:Gn.colorTextDescription,fontSize:ns},[`${as}-progress`]:{position:"absolute",bottom:Gn.calc(Gn.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:vs(ns).add(Gn.paddingXS).equal(),fontSize:ns,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${as}:hover ${Ss}`]:{opacity:1},[`${as}-error`]:{color:Gn.colorError,[`${as}-name, ${Sr}-icon ${co}`]:{color:Gn.colorError},[da]:{[`${co}, ${co}:hover`]:{color:Gn.colorError},[Ss]:{opacity:1}}},[`${Sr}-list-item-container`]:{transition:`opacity ${Gn.motionDurationSlow}, height ${Gn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Vi=x(96504);const ro=new hi.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ai=new hi.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Ar=Gn=>{const{componentCls:Sr}=Gn,Rr=`${Sr}-animate-inline`;return[{[`${Sr}-wrapper`]:{[`${Rr}-appear, ${Rr}-enter, ${Rr}-leave`]:{animationDuration:Gn.motionDurationSlow,animationTimingFunction:Gn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Rr}-appear, ${Rr}-enter`]:{animationName:ro},[`${Rr}-leave`]:{animationName:ai}}},{[`${Sr}-wrapper`]:(0,Vi.J$)(Gn)},ro,ai]},Rt=x(10129);const jn=Gn=>{const{componentCls:Sr,iconCls:Rr,uploadThumbnailSize:co,uploadProgressOffset:ns,calc:fs}=Gn,vs=`${Sr}-list`,as=`${vs}-item`;return{[`${Sr}-wrapper`]:{[` + ${vs}${vs}-picture, + ${vs}${vs}-picture-card, + ${vs}${vs}-picture-circle + `]:{[as]:{position:"relative",height:fs(co).add(fs(Gn.lineWidth).mul(2)).add(fs(Gn.paddingXS).mul(2)).equal(),padding:Gn.paddingXS,border:`${(0,hi.bf)(Gn.lineWidth)} ${Gn.lineType} ${Gn.colorBorder}`,borderRadius:Gn.borderRadiusLG,"&:hover":{background:"transparent"},[`${as}-thumbnail`]:Object.assign(Object.assign({},Yr.vS),{width:co,height:co,lineHeight:(0,hi.bf)(fs(co).add(Gn.paddingSM).equal()),textAlign:"center",flex:"none",[Rr]:{fontSize:Gn.fontSizeHeading2,color:Gn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${as}-progress`]:{bottom:ns,width:`calc(100% - ${(0,hi.bf)(fs(Gn.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:fs(co).add(Gn.paddingXS).equal()}},[`${as}-error`]:{borderColor:Gn.colorError,[`${as}-thumbnail ${Rr}`]:{[`svg path[fill='${Rt.iN[0]}']`]:{fill:Gn.colorErrorBg},[`svg path[fill='${Rt.iN.primary}']`]:{fill:Gn.colorError}}},[`${as}-uploading`]:{borderStyle:"dashed",[`${as}-name`]:{marginBottom:ns}}},[`${vs}${vs}-picture-circle ${as}`]:{[`&, &::before, ${as}-thumbnail`]:{borderRadius:"50%"}}}}},wr=Gn=>{const{componentCls:Sr,iconCls:Rr,fontSizeLG:co,colorTextLightSolid:ns,calc:fs}=Gn,vs=`${Sr}-list`,as=`${vs}-item`,da=Gn.uploadPicCardSize;return{[` + ${Sr}-wrapper${Sr}-picture-card-wrapper, + ${Sr}-wrapper${Sr}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,Yr.dF)()),{display:"inline-block",width:"100%",[`${Sr}${Sr}-select`]:{width:da,height:da,marginInlineEnd:Gn.marginXS,marginBottom:Gn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Gn.colorFillAlter,border:`${(0,hi.bf)(Gn.lineWidth)} dashed ${Gn.colorBorder}`,borderRadius:Gn.borderRadiusLG,cursor:"pointer",transition:`border-color ${Gn.motionDurationSlow}`,[`> ${Sr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Sr}-disabled):hover`]:{borderColor:Gn.colorPrimary}},[`${vs}${vs}-picture-card, ${vs}${vs}-picture-circle`]:{[`${vs}-item-container`]:{display:"inline-block",width:da,height:da,marginBlock:`0 ${(0,hi.bf)(Gn.marginXS)}`,marginInline:`0 ${(0,hi.bf)(Gn.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[as]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,hi.bf)(fs(Gn.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,hi.bf)(fs(Gn.paddingXS).mul(2).equal())})`,backgroundColor:Gn.colorBgMask,opacity:0,transition:`all ${Gn.motionDurationSlow}`,content:'" "'}},[`${as}:hover`]:{[`&::before, ${as}-actions`]:{opacity:1}},[`${as}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Gn.motionDurationSlow}`,[` + ${Rr}-eye, + ${Rr}-download, + ${Rr}-delete + `]:{zIndex:10,width:co,margin:`0 ${(0,hi.bf)(Gn.marginXXS)}`,fontSize:co,cursor:"pointer",transition:`all ${Gn.motionDurationSlow}`,color:ns,"&:hover":{color:ns},svg:{verticalAlign:"baseline"}}},[`${as}-thumbnail, ${as}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${as}-name`]:{display:"none",textAlign:"center"},[`${as}-file + ${as}-name`]:{position:"absolute",bottom:Gn.margin,display:"block",width:`calc(100% - ${(0,hi.bf)(fs(Gn.paddingXS).mul(2).equal())})`},[`${as}-uploading`]:{[`&${as}`]:{backgroundColor:Gn.colorFillAlter},[`&::before, ${Rr}-eye, ${Rr}-download, ${Rr}-delete`]:{display:"none"}},[`${as}-progress`]:{bottom:Gn.marginXL,width:`calc(100% - ${(0,hi.bf)(fs(Gn.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Sr}-wrapper${Sr}-picture-circle-wrapper`]:{[`${Sr}${Sr}-select`]:{borderRadius:"50%"}}}};var Ti=Gn=>{const{componentCls:Sr}=Gn;return{[`${Sr}-rtl`]:{direction:"rtl"}}};const Bi=Gn=>{const{componentCls:Sr,colorTextDisabled:Rr}=Gn;return{[`${Sr}-wrapper`]:Object.assign(Object.assign({},(0,Yr.Wf)(Gn)),{[Sr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Sr}-select`]:{display:"inline-block"},[`${Sr}-disabled`]:{color:Rr,cursor:"not-allowed"}})}},no=Gn=>({actionsColor:Gn.colorTextDescription});var Vr=(0,Xi.I$)("Upload",Gn=>{const{fontSizeHeading3:Sr,fontHeight:Rr,lineWidth:co,controlHeightLG:ns,calc:fs}=Gn,vs=(0,Qi.TS)(Gn,{uploadThumbnailSize:fs(Sr).mul(2).equal(),uploadProgressOffset:fs(fs(Rr).div(2)).add(co).equal(),uploadPicCardSize:fs(ns).mul(2.55).equal()});return[Bi(vs),Mo(vs),jn(vs),wr(vs),Ii(vs),Ar(vs),Ti(vs),(0,fi.Z)(vs)]},no),Rn={icon:function(Sr,Rr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Rr}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Sr}}]}},name:"file",theme:"twotone"},Xt=Rn,Sn=x(44847),Pn=function(Sr,Rr){return v.createElement(Sn.Z,(0,X.Z)({},Sr,{ref:Rr,icon:Xt}))},hr=v.forwardRef(Pn),mt=x(20555),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},kt=tt,vn=function(Sr,Rr){return v.createElement(Sn.Z,(0,X.Z)({},Sr,{ref:Rr,icon:kt}))},vr=v.forwardRef(vn),qr={icon:function(Sr,Rr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Sr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Rr}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Rr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Rr}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Sr}}]}},name:"picture",theme:"twotone"},Ni=qr,li=function(Sr,Rr){return v.createElement(Sn.Z,(0,X.Z)({},Sr,{ref:Rr,icon:Ni}))},Un=v.forwardRef(li),dn=x(44516),xt=x(51626),it=x(12149),Bt=x(20612),rn=x(99622);function ir(Gn){return Object.assign(Object.assign({},Gn),{lastModified:Gn.lastModified,lastModifiedDate:Gn.lastModifiedDate,name:Gn.name,size:Gn.size,type:Gn.type,uid:Gn.uid,percent:0,originFileObj:Gn})}function tr(Gn,Sr){const Rr=(0,z.Z)(Sr),co=Rr.findIndex(ns=>{let{uid:fs}=ns;return fs===Gn.uid});return co===-1?Rr.push(Gn):Rr[co]=Gn,Rr}function Jn(Gn,Sr){const Rr=Gn.uid!==void 0?"uid":"name";return Sr.filter(co=>co[Rr]===Gn[Rr])[0]}function nn(Gn,Sr){const Rr=Gn.uid!==void 0?"uid":"name",co=Sr.filter(ns=>ns[Rr]!==Gn[Rr]);return co.length===Sr.length?null:co}const er=function(){const Sr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),co=Sr[Sr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(co)||[""])[0]},Fr=Gn=>Gn.indexOf("image/")===0,jr=Gn=>{if(Gn.type&&!Gn.thumbUrl)return Fr(Gn.type);const Sr=Gn.thumbUrl||Gn.url||"",Rr=er(Sr);return/^data:image\//.test(Sr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Rr)?!0:!(/^data:/.test(Sr)||Rr)},bo=200;function zt(Gn){return new Promise(Sr=>{if(!Gn.type||!Fr(Gn.type)){Sr("");return}const Rr=document.createElement("canvas");Rr.width=bo,Rr.height=bo,Rr.style.cssText=`position: fixed; left: 0; top: 0; width: ${bo}px; height: ${bo}px; z-index: 9999; display: none;`,document.body.appendChild(Rr);const co=Rr.getContext("2d"),ns=new Image;if(ns.onload=()=>{const{width:fs,height:vs}=ns;let as=bo,da=bo,Ss=0,pl=0;fs>vs?(da=vs*(bo/fs),pl=-(da-as)/2):(as=fs*(bo/vs),Ss=-(as-da)/2),co.drawImage(ns,Ss,pl,as,da);const Vs=Rr.toDataURL();document.body.removeChild(Rr),window.URL.revokeObjectURL(ns.src),Sr(Vs)},ns.crossOrigin="anonymous",Gn.type.startsWith("image/svg+xml")){const fs=new FileReader;fs.onload=()=>{fs.result&&typeof fs.result=="string"&&(ns.src=fs.result)},fs.readAsDataURL(Gn)}else if(Gn.type.startsWith("image/gif")){const fs=new FileReader;fs.onload=()=>{fs.result&&Sr(fs.result)},fs.readAsDataURL(Gn)}else ns.src=window.URL.createObjectURL(Gn)})}var en=x(43755),Cn=function(Sr,Rr){return v.createElement(Sn.Z,(0,X.Z)({},Sr,{ref:Rr,icon:en.Z}))},rr=v.forwardRef(Cn),Pr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Er=Pr,ui=function(Sr,Rr){return v.createElement(Sn.Z,(0,X.Z)({},Sr,{ref:Rr,icon:Er}))},Gr=v.forwardRef(ui),zr=x(29338),Ei=x(50555),Zi=x(49247),Kr=x(43418),Xr=x(4531),Qo=x(41123),pr={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},qo=function(){var Sr=(0,v.useRef)([]),Rr=(0,v.useRef)(null);return(0,v.useEffect)(function(){var co=Date.now(),ns=!1;Sr.current.forEach(function(fs){if(fs){ns=!0;var vs=fs.style;vs.transitionDuration=".3s, .3s, .3s, .06s",Rr.current&&co-Rr.current<100&&(vs.transitionDuration="0s, 0s")}}),ns&&(Rr.current=Date.now())}),Sr.current},Br=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],sr=function(Sr){var Rr=(0,Ce.Z)((0,Ce.Z)({},pr),Sr),co=Rr.className,ns=Rr.percent,fs=Rr.prefixCls,vs=Rr.strokeColor,as=Rr.strokeLinecap,da=Rr.strokeWidth,Ss=Rr.style,pl=Rr.trailColor,Vs=Rr.trailWidth,ol=Rr.transition,sl=(0,ct.Z)(Rr,Br);delete sl.gapPosition;var eu=Array.isArray(ns)?ns:[ns],kl=Array.isArray(vs)?vs:[vs],Wl=qo(),Dl=da/2,ml=100-da/2,uu="M ".concat(as==="round"?Dl:0,",").concat(Dl,` + L `).concat(as==="round"?ml:100,",").concat(Dl),pn="0 0 100 ".concat(da),pu=0;return v.createElement("svg",(0,X.Z)({className:W()("".concat(fs,"-line"),co),viewBox:pn,preserveAspectRatio:"none",style:Ss},sl),v.createElement("path",{className:"".concat(fs,"-line-trail"),d:uu,strokeLinecap:as,stroke:pl,strokeWidth:Vs||da,fillOpacity:"0"}),eu.map(function(tc,dc){var Mc=1;switch(as){case"round":Mc=1-da/100;break;case"square":Mc=1-da/2/100;break;default:Mc=1;break}var Fc={strokeDasharray:"".concat(tc*Mc,"px, 100px"),strokeDashoffset:"-".concat(pu,"px"),transition:ol||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},cd=kl[dc]||kl[kl.length-1];return pu+=tc,v.createElement("path",{key:dc,className:"".concat(fs,"-line-path"),d:uu,strokeLinecap:as,stroke:cd,strokeWidth:da,fillOpacity:"0",ref:function(yd){Wl[dc]=yd},style:Fc})}))},ii=sr,qi=x(35372),Ln=x(10254),zn=0,Wi=(0,Ln.Z)();function Yi(){var Gn;return Wi?(Gn=zn,zn+=1):Gn="TEST_OR_SSR",Gn}var so=function(Gn){var Sr=v.useState(),Rr=(0,qi.Z)(Sr,2),co=Rr[0],ns=Rr[1];return v.useEffect(function(){ns("rc_progress_".concat(Yi()))},[]),Gn||co},ko=function(Sr){var Rr=Sr.bg,co=Sr.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:Rr}},co)};function _i(Gn,Sr){return Object.keys(Gn).map(function(Rr){var co=parseFloat(Rr),ns="".concat(Math.floor(co*Sr),"%");return"".concat(Gn[Rr]," ").concat(ns)})}var hs=v.forwardRef(function(Gn,Sr){var Rr=Gn.prefixCls,co=Gn.color,ns=Gn.gradientId,fs=Gn.radius,vs=Gn.style,as=Gn.ptg,da=Gn.strokeLinecap,Ss=Gn.strokeWidth,pl=Gn.size,Vs=Gn.gapDegree,ol=co&&(0,Ge.Z)(co)==="object",sl=ol?"#FFF":void 0,eu=pl/2,kl=v.createElement("circle",{className:"".concat(Rr,"-circle-path"),r:fs,cx:eu,cy:eu,stroke:sl,strokeLinecap:da,strokeWidth:Ss,opacity:as===0?0:1,style:vs,ref:Sr});if(!ol)return kl;var Wl="".concat(ns,"-conic"),Dl=Vs?"".concat(180+Vs/2,"deg"):"0deg",ml=_i(co,(360-Vs)/360),uu=_i(co,1),pn="conic-gradient(from ".concat(Dl,", ").concat(ml.join(", "),")"),pu="linear-gradient(to ".concat(Vs?"bottom":"top",", ").concat(uu.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:Wl},kl),v.createElement("foreignObject",{x:0,y:0,width:pl,height:pl,mask:"url(#".concat(Wl,")")},v.createElement(ko,{bg:pu},v.createElement(ko,{bg:pn}))))}),Ts=hs,Qr=100,Ai=function(Sr,Rr,co,ns,fs,vs,as,da,Ss,pl){var Vs=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ol=co/100*360*((360-vs)/360),sl=vs===0?0:{bottom:0,top:180,left:90,right:-90}[as],eu=(100-ns)/100*Rr;Ss==="round"&&ns!==100&&(eu+=pl/2,eu>=Rr&&(eu=Rr-.01));var kl=Qr/2;return{stroke:typeof da=="string"?da:void 0,strokeDasharray:"".concat(Rr,"px ").concat(Sr),strokeDashoffset:eu+Vs,transform:"rotate(".concat(fs+ol+sl,"deg)"),transformOrigin:"".concat(kl,"px ").concat(kl,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ri=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function To(Gn){var Sr=Gn!=null?Gn:[];return Array.isArray(Sr)?Sr:[Sr]}var yo=function(Sr){var Rr=(0,Ce.Z)((0,Ce.Z)({},pr),Sr),co=Rr.id,ns=Rr.prefixCls,fs=Rr.steps,vs=Rr.strokeWidth,as=Rr.trailWidth,da=Rr.gapDegree,Ss=da===void 0?0:da,pl=Rr.gapPosition,Vs=Rr.trailColor,ol=Rr.strokeLinecap,sl=Rr.style,eu=Rr.className,kl=Rr.strokeColor,Wl=Rr.percent,Dl=(0,ct.Z)(Rr,Ri),ml=Qr/2,uu=so(co),pn="".concat(uu,"-gradient"),pu=ml-vs/2,tc=Math.PI*2*pu,dc=Ss>0?90+Ss/2:-90,Mc=tc*((360-Ss)/360),Fc=(0,Ge.Z)(fs)==="object"?fs:{count:fs,space:2},cd=Fc.count,Vd=Fc.space,yd=To(Wl),Sh=To(kl),xh=Sh.find(function(Rd){return Rd&&(0,Ge.Z)(Rd)==="object"}),Ud=xh&&(0,Ge.Z)(xh)==="object",Hf=Ud?"butt":ol,ef=Ai(tc,Mc,0,100,dc,Ss,pl,Vs,Hf,vs),Pd=qo(),Mf=function(){var fp=0;return yd.map(function(us,Ca){var Ta=Sh[Ca]||Sh[Sh.length-1],Ja=Ai(tc,Mc,fp,us,dc,Ss,pl,Ta,Hf,vs);return fp+=us,v.createElement(Ts,{key:Ca,color:Ta,ptg:us,radius:pu,prefixCls:ns,gradientId:pn,style:Ja,strokeLinecap:Hf,strokeWidth:vs,gapDegree:Ss,ref:function(yu){Pd[Ca]=yu},size:Qr})}).reverse()},$f=function(){var fp=Math.round(cd*(yd[0]/100)),us=100/cd,Ca=0;return new Array(cd).fill(null).map(function(Ta,Ja){var ou=Ja<=fp-1?Sh[0]:Vs,yu=ou&&(0,Ge.Z)(ou)==="object"?"url(#".concat(pn,")"):void 0,Ec=Ai(tc,Mc,Ca,us,dc,Ss,pl,ou,"butt",vs,Vd);return Ca+=(Mc-Ec.strokeDashoffset+Vd)*100/Mc,v.createElement("circle",{key:Ja,className:"".concat(ns,"-circle-path"),r:pu,cx:ml,cy:ml,stroke:yu,strokeWidth:vs,opacity:1,style:Ec,ref:function(Jl){Pd[Ja]=Jl}})})};return v.createElement("svg",(0,X.Z)({className:W()("".concat(ns,"-circle"),eu),viewBox:"0 0 ".concat(Qr," ").concat(Qr),style:sl,id:co,role:"presentation"},Dl),!cd&&v.createElement("circle",{className:"".concat(ns,"-circle-trail"),r:pu,cx:ml,cy:ml,stroke:Vs,strokeLinecap:Hf,strokeWidth:as||vs,style:ef}),cd?$f():Mf())},ao=yo,Bs={Line:ii,Circle:ao},fa=x(3773);function ba(Gn){return!Gn||Gn<0?0:Gn>100?100:Gn}function Rs(Gn){let{success:Sr,successPercent:Rr}=Gn,co=Rr;return Sr&&"progress"in Sr&&(co=Sr.progress),Sr&&"percent"in Sr&&(co=Sr.percent),co}const Ds=Gn=>{let{percent:Sr,success:Rr,successPercent:co}=Gn;const ns=ba(Rs({success:Rr,successPercent:co}));return[ns,ba(ba(Sr)-ns)]},el=Gn=>{let{success:Sr={},strokeColor:Rr}=Gn;const{strokeColor:co}=Sr;return[co||Rt.ez.green,Rr||null]},tl=(Gn,Sr,Rr)=>{var co,ns,fs,vs;let as=-1,da=-1;if(Sr==="step"){const Ss=Rr.steps,pl=Rr.strokeWidth;typeof Gn=="string"||typeof Gn=="undefined"?(as=Gn==="small"?2:14,da=pl!=null?pl:8):typeof Gn=="number"?[as,da]=[Gn,Gn]:[as=14,da=8]=Gn,as*=Ss}else if(Sr==="line"){const Ss=Rr==null?void 0:Rr.strokeWidth;typeof Gn=="string"||typeof Gn=="undefined"?da=Ss||(Gn==="small"?6:8):typeof Gn=="number"?[as,da]=[Gn,Gn]:[as=-1,da=8]=Gn}else(Sr==="circle"||Sr==="dashboard")&&(typeof Gn=="string"||typeof Gn=="undefined"?[as,da]=Gn==="small"?[60,60]:[120,120]:typeof Gn=="number"?[as,da]=[Gn,Gn]:(as=(ns=(co=Gn[0])!==null&&co!==void 0?co:Gn[1])!==null&&ns!==void 0?ns:120,da=(vs=(fs=Gn[0])!==null&&fs!==void 0?fs:Gn[1])!==null&&vs!==void 0?vs:120));return[as,da]},sn=3,dt=Gn=>sn/Gn*100;var Zt=Gn=>{const{prefixCls:Sr,trailColor:Rr=null,strokeLinecap:co="round",gapPosition:ns,gapDegree:fs,width:vs=120,type:as,children:da,success:Ss,size:pl=vs}=Gn,[Vs,ol]=tl(pl,"circle");let{strokeWidth:sl}=Gn;sl===void 0&&(sl=Math.max(dt(Vs),6));const eu={width:Vs,height:ol,fontSize:Vs*.15+6},kl=v.useMemo(()=>{if(fs||fs===0)return fs;if(as==="dashboard")return 75},[fs,as]),Wl=ns||as==="dashboard"&&"bottom"||void 0,Dl=Object.prototype.toString.call(Gn.strokeColor)==="[object Object]",ml=el({success:Ss,strokeColor:Gn.strokeColor}),uu=W()(`${Sr}-inner`,{[`${Sr}-circle-gradient`]:Dl}),pn=v.createElement(ao,{percent:Ds(Gn),strokeWidth:sl,trailWidth:sl,strokeColor:ml,strokeLinecap:co,trailColor:Rr,prefixCls:Sr,gapDegree:kl,gapPosition:Wl});return v.createElement("div",{className:uu,style:eu},Vs<=20?v.createElement(fa.Z,{title:da},v.createElement("span",null,pn)):v.createElement(v.Fragment,null,pn,da))};const Kt="--progress-line-stroke-color",Nn="--progress-percent",Ur=Gn=>{const Sr=Gn?"100%":"-100%";return new hi.E4(`antProgress${Gn?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Sr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Sr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ui=Gn=>{const{componentCls:Sr,iconCls:Rr}=Gn;return{[Sr]:Object.assign(Object.assign({},(0,Yr.Wf)(Gn)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Gn.fontSize,marginInlineEnd:Gn.marginXS,marginBottom:Gn.marginXS},[`${Sr}-outer`]:{display:"inline-block",width:"100%"},[`&${Sr}-show-info`]:{[`${Sr}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,hi.bf)(Gn.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,hi.bf)(Gn.paddingXS)})`}},[`${Sr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Gn.remainingColor,borderRadius:Gn.lineBorderRadius},[`${Sr}-inner:not(${Sr}-circle-gradient)`]:{[`${Sr}-circle-path`]:{stroke:Gn.defaultColor}},[`${Sr}-success-bg, ${Sr}-bg`]:{position:"relative",background:Gn.defaultColor,borderRadius:Gn.lineBorderRadius,transition:`all ${Gn.motionDurationSlow} ${Gn.motionEaseInOutCirc}`},[`${Sr}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Kt})`]},height:"100%",width:`calc(1 / var(${Nn}) * 100%)`,display:"block"}},[`${Sr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Gn.colorSuccess},[`${Sr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Gn.marginXS,color:Gn.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Rr]:{fontSize:Gn.fontSize}},[`&${Sr}-status-active`]:{[`${Sr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Gn.colorBgContainer,borderRadius:Gn.lineBorderRadius,opacity:0,animationName:Ur(),animationDuration:Gn.progressActiveMotionDuration,animationTimingFunction:Gn.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Sr}-rtl${Sr}-status-active`]:{[`${Sr}-bg::before`]:{animationName:Ur(!0)}},[`&${Sr}-status-exception`]:{[`${Sr}-bg`]:{backgroundColor:Gn.colorError},[`${Sr}-text`]:{color:Gn.colorError}},[`&${Sr}-status-exception ${Sr}-inner:not(${Sr}-circle-gradient)`]:{[`${Sr}-circle-path`]:{stroke:Gn.colorError}},[`&${Sr}-status-success`]:{[`${Sr}-bg`]:{backgroundColor:Gn.colorSuccess},[`${Sr}-text`]:{color:Gn.colorSuccess}},[`&${Sr}-status-success ${Sr}-inner:not(${Sr}-circle-gradient)`]:{[`${Sr}-circle-path`]:{stroke:Gn.colorSuccess}}})}},Ao=Gn=>{const{componentCls:Sr,iconCls:Rr}=Gn;return{[Sr]:{[`${Sr}-circle-trail`]:{stroke:Gn.remainingColor},[`&${Sr}-circle ${Sr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Sr}-circle ${Sr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Gn.circleTextColor,fontSize:Gn.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Rr]:{fontSize:Gn.circleIconFontSize}},[`${Sr}-circle&-status-exception`]:{[`${Sr}-text`]:{color:Gn.colorError}},[`${Sr}-circle&-status-success`]:{[`${Sr}-text`]:{color:Gn.colorSuccess}}},[`${Sr}-inline-circle`]:{lineHeight:1,[`${Sr}-inner`]:{verticalAlign:"bottom"}}}},rs=Gn=>{const{componentCls:Sr}=Gn;return{[Sr]:{[`${Sr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Gn.progressStepMinWidth,marginInlineEnd:Gn.progressStepMarginInlineEnd,backgroundColor:Gn.remainingColor,transition:`all ${Gn.motionDurationSlow}`,"&-active":{backgroundColor:Gn.defaultColor}}}}}},ps=Gn=>{const{componentCls:Sr,iconCls:Rr}=Gn;return{[Sr]:{[`${Sr}-small&-line, ${Sr}-small&-line ${Sr}-text ${Rr}`]:{fontSize:Gn.fontSizeSM}}}},Po=Gn=>({circleTextColor:Gn.colorText,defaultColor:Gn.colorInfo,remainingColor:Gn.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Gn.fontSize/Gn.fontSizeSM}em`});var $a=(0,Xi.I$)("Progress",Gn=>{const Sr=Gn.calc(Gn.marginXXS).div(2).equal(),Rr=(0,Qi.TS)(Gn,{progressStepMarginInlineEnd:Sr,progressStepMinWidth:Sr,progressActiveMotionDuration:"2.4s"});return[Ui(Rr),Ao(Rr),rs(Rr),ps(Rr)]},Po),nl=function(Gn,Sr){var Rr={};for(var co in Gn)Object.prototype.hasOwnProperty.call(Gn,co)&&Sr.indexOf(co)<0&&(Rr[co]=Gn[co]);if(Gn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ns=0,co=Object.getOwnPropertySymbols(Gn);ns{let Sr=[];return Object.keys(Gn).forEach(Rr=>{const co=parseFloat(Rr.replace(/%/g,""));isNaN(co)||Sr.push({key:co,value:Gn[Rr]})}),Sr=Sr.sort((Rr,co)=>Rr.key-co.key),Sr.map(Rr=>{let{key:co,value:ns}=Rr;return`${ns} ${co}%`}).join(", ")},Xs=(Gn,Sr)=>{const{from:Rr=Rt.ez.blue,to:co=Rt.ez.blue,direction:ns=Sr==="rtl"?"to left":"to right"}=Gn,fs=nl(Gn,["from","to","direction"]);if(Object.keys(fs).length!==0){const as=ka(fs),da=`linear-gradient(${ns}, ${as})`;return{background:da,[Kt]:da}}const vs=`linear-gradient(${ns}, ${Rr}, ${co})`;return{background:vs,[Kt]:vs}};var xa=Gn=>{const{prefixCls:Sr,direction:Rr,percent:co,size:ns,strokeWidth:fs,strokeColor:vs,strokeLinecap:as="round",children:da,trailColor:Ss=null,success:pl}=Gn,Vs=vs&&typeof vs!="string"?Xs(vs,Rr):{[Kt]:vs,background:vs},ol=as==="square"||as==="butt"?0:void 0,sl=ns!=null?ns:[-1,fs||(ns==="small"?6:8)],[eu,kl]=tl(sl,"line",{strokeWidth:fs}),Wl={backgroundColor:Ss||void 0,borderRadius:ol},Dl=Object.assign(Object.assign({width:`${ba(co)}%`,height:kl,borderRadius:ol},Vs),{[Nn]:ba(co)/100}),ml=Rs(Gn),uu={width:`${ba(ml)}%`,height:kl,borderRadius:ol,backgroundColor:pl==null?void 0:pl.strokeColor},pn={width:eu<0?"100%":eu,height:kl};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${Sr}-outer`,style:pn},v.createElement("div",{className:`${Sr}-inner`,style:Wl},v.createElement("div",{className:`${Sr}-bg`,style:Dl}),ml!==void 0?v.createElement("div",{className:`${Sr}-success-bg`,style:uu}):null)),da)},_a=Gn=>{const{size:Sr,steps:Rr,percent:co=0,strokeWidth:ns=8,strokeColor:fs,trailColor:vs=null,prefixCls:as,children:da}=Gn,Ss=Math.round(Rr*(co/100)),pl=Sr==="small"?2:14,Vs=Sr!=null?Sr:[pl,ns],[ol,sl]=tl(Vs,"step",{steps:Rr,strokeWidth:ns}),eu=ol/Rr,kl=new Array(Rr);for(let Wl=0;Wl{const{prefixCls:Rr,className:co,rootClassName:ns,steps:fs,strokeColor:vs,percent:as=0,size:da="default",showInfo:Ss=!0,type:pl="line",status:Vs,format:ol,style:sl}=Gn,eu=Ba(Gn,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),kl=v.useMemo(()=>{var Sh,xh;const Ud=Rs(Gn);return parseInt(Ud!==void 0?(Sh=Ud!=null?Ud:0)===null||Sh===void 0?void 0:Sh.toString():(xh=as!=null?as:0)===null||xh===void 0?void 0:xh.toString(),10)},[as,Gn.success,Gn.successPercent]),Wl=v.useMemo(()=>!ks.includes(Vs)&&kl>=100?"success":Vs||"normal",[Vs,kl]),{getPrefixCls:Dl,direction:ml,progress:uu}=v.useContext(Tt.E_),pn=Dl("progress",Rr),[pu,tc,dc]=$a(pn),Mc=v.useMemo(()=>{if(!Ss)return null;const Sh=Rs(Gn);let xh;const Ud=ol||(ef=>`${ef}%`),Hf=pl==="line";return ol||Wl!=="exception"&&Wl!=="success"?xh=Ud(ba(as),ba(Sh)):Wl==="exception"?xh=Hf?v.createElement(Kr.Z,null):v.createElement(Xr.Z,null):Wl==="success"&&(xh=Hf?v.createElement(Ei.Z,null):v.createElement(Zi.Z,null)),v.createElement("span",{className:`${pn}-text`,title:typeof xh=="string"?xh:void 0},xh)},[Ss,as,kl,Wl,pl,pn,ol]),Fc=Array.isArray(vs)?vs[0]:vs,cd=typeof vs=="string"||Array.isArray(vs)?vs:void 0;let Vd;pl==="line"?Vd=fs?v.createElement(_a,Object.assign({},Gn,{strokeColor:cd,prefixCls:pn,steps:fs}),Mc):v.createElement(xa,Object.assign({},Gn,{strokeColor:Fc,prefixCls:pn,direction:ml}),Mc):(pl==="circle"||pl==="dashboard")&&(Vd=v.createElement(Zt,Object.assign({},Gn,{strokeColor:Fc,prefixCls:pn,progressStatus:Wl}),Mc));const yd=W()(pn,`${pn}-status-${Wl}`,`${pn}-${pl==="dashboard"&&"circle"||fs&&"steps"||pl}`,{[`${pn}-inline-circle`]:pl==="circle"&&tl(da,"circle")[0]<=20,[`${pn}-show-info`]:Ss,[`${pn}-${da}`]:typeof da=="string",[`${pn}-rtl`]:ml==="rtl"},uu==null?void 0:uu.className,co,ns,tc,dc);return pu(v.createElement("div",Object.assign({ref:Sr,style:Object.assign(Object.assign({},uu==null?void 0:uu.style),sl),className:yd,role:"progressbar","aria-valuenow":kl},(0,Qo.Z)(eu,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Vd))}),mu=lu,Fl=v.forwardRef((Gn,Sr)=>{let{prefixCls:Rr,className:co,style:ns,locale:fs,listType:vs,file:as,items:da,progress:Ss,iconRender:pl,actionIconRender:Vs,itemRender:ol,isImgUrl:sl,showPreviewIcon:eu,showRemoveIcon:kl,showDownloadIcon:Wl,previewIcon:Dl,removeIcon:ml,downloadIcon:uu,onPreview:pn,onDownload:pu,onClose:tc}=Gn;var dc,Mc;const{status:Fc}=as,[cd,Vd]=v.useState(Fc);v.useEffect(()=>{Fc!=="removed"&&Vd(Fc)},[Fc]);const[yd,Sh]=v.useState(!1);v.useEffect(()=>{const Xu=setTimeout(()=>{Sh(!0)},300);return()=>{clearTimeout(Xu)}},[]);const xh=pl(as);let Ud=v.createElement("div",{className:`${Rr}-icon`},xh);if(vs==="picture"||vs==="picture-card"||vs==="picture-circle")if(cd==="uploading"||!as.thumbUrl&&!as.url){const Xu=W()(`${Rr}-list-item-thumbnail`,{[`${Rr}-list-item-file`]:cd!=="uploading"});Ud=v.createElement("div",{className:Xu},xh)}else{const Xu=sl!=null&&sl(as)?v.createElement("img",{src:as.thumbUrl||as.url,alt:as.name,className:`${Rr}-list-item-image`,crossOrigin:as.crossOrigin}):xh,Jl=W()(`${Rr}-list-item-thumbnail`,{[`${Rr}-list-item-file`]:sl&&!sl(as)});Ud=v.createElement("a",{className:Jl,onClick:Rc=>pn(as,Rc),href:as.url||as.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Xu)}const Hf=W()(`${Rr}-list-item`,`${Rr}-list-item-${cd}`),ef=typeof as.linkProps=="string"?JSON.parse(as.linkProps):as.linkProps,Pd=kl?Vs((typeof ml=="function"?ml(as):ml)||v.createElement(rr,null),()=>tc(as),Rr,fs.removeFile,!0):null,Mf=Wl&&cd==="done"?Vs((typeof uu=="function"?uu(as):uu)||v.createElement(Gr,null),()=>pu(as),Rr,fs.downloadFile):null,$f=vs!=="picture-card"&&vs!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:W()(`${Rr}-list-item-actions`,{picture:vs==="picture"})},Mf,Pd),Rd=W()(`${Rr}-list-item-name`),fp=as.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Rd,title:as.name},ef,{href:as.url,onClick:Xu=>pn(as,Xu)}),as.name),$f]:[v.createElement("span",{key:"view",className:Rd,onClick:Xu=>pn(as,Xu),title:as.name},as.name),$f],us=eu&&(as.url||as.thumbUrl)?v.createElement("a",{href:as.url||as.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Xu=>pn(as,Xu),title:fs.previewFile},typeof Dl=="function"?Dl(as):Dl||v.createElement(zr.Z,null)):null,Ca=(vs==="picture-card"||vs==="picture-circle")&&cd!=="uploading"&&v.createElement("span",{className:`${Rr}-list-item-actions`},us,cd==="done"&&Mf,Pd),{getPrefixCls:Ta}=v.useContext(Tt.E_),Ja=Ta(),ou=v.createElement("div",{className:Hf},Ud,fp,Ca,yd&&v.createElement(dn.ZP,{motionName:`${Ja}-fade`,visible:cd==="uploading",motionDeadline:2e3},Xu=>{let{className:Jl}=Xu;const Rc="percent"in as?v.createElement(mu,Object.assign({},Ss,{type:"line",percent:as.percent,"aria-label":as["aria-label"],"aria-labelledby":as["aria-labelledby"]})):null;return v.createElement("div",{className:W()(`${Rr}-list-item-progress`,Jl)},Rc)})),yu=as.response&&typeof as.response=="string"?as.response:((dc=as.error)===null||dc===void 0?void 0:dc.statusText)||((Mc=as.error)===null||Mc===void 0?void 0:Mc.message)||fs.uploadError,Ec=cd==="error"?v.createElement(fa.Z,{title:yu,getPopupContainer:Xu=>Xu.parentNode},ou):ou;return v.createElement("div",{className:W()(`${Rr}-list-item-container`,co),style:ns,ref:Sr},ol?ol(Ec,as,da,{download:pu.bind(null,as),preview:pn.bind(null,as),remove:tc.bind(null,as)}):Ec)});const va=(Gn,Sr)=>{const{listType:Rr="text",previewFile:co=zt,onPreview:ns,onDownload:fs,onRemove:vs,locale:as,iconRender:da,isImageUrl:Ss=jr,prefixCls:pl,items:Vs=[],showPreviewIcon:ol=!0,showRemoveIcon:sl=!0,showDownloadIcon:eu=!1,removeIcon:kl,previewIcon:Wl,downloadIcon:Dl,progress:ml={size:[-1,2],showInfo:!1},appendAction:uu,appendActionVisible:pn=!0,itemRender:pu,disabled:tc}=Gn,dc=(0,xt.Z)(),[Mc,Fc]=v.useState(!1);v.useEffect(()=>{Rr!=="picture"&&Rr!=="picture-card"&&Rr!=="picture-circle"||(Vs||[]).forEach(us=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(us.originFileObj instanceof File||us.originFileObj instanceof Blob)||us.thumbUrl!==void 0||(us.thumbUrl="",co&&co(us.originFileObj).then(Ca=>{us.thumbUrl=Ca||"",dc()}))})},[Rr,Vs,co]),v.useEffect(()=>{Fc(!0)},[]);const cd=(us,Ca)=>{if(ns)return Ca==null||Ca.preventDefault(),ns(us)},Vd=us=>{typeof fs=="function"?fs(us):us.url&&window.open(us.url)},yd=us=>{vs==null||vs(us)},Sh=us=>{if(da)return da(us,Rr);const Ca=us.status==="uploading",Ta=Ss&&Ss(us)?v.createElement(Un,null):v.createElement(hr,null);let Ja=Ca?v.createElement(mt.Z,null):v.createElement(vr,null);return Rr==="picture"?Ja=Ca?v.createElement(mt.Z,null):Ta:(Rr==="picture-card"||Rr==="picture-circle")&&(Ja=Ca?as.uploading:Ta),Ja},xh=(us,Ca,Ta,Ja,ou)=>{const yu={type:"text",size:"small",title:Ja,onClick:Ec=>{Ca(),(0,Bt.l$)(us)&&us.props.onClick&&us.props.onClick(Ec)},className:`${Ta}-list-item-action`};if(ou&&(yu.disabled=tc),(0,Bt.l$)(us)){const Ec=(0,Bt.Tm)(us,Object.assign(Object.assign({},us.props),{onClick:()=>{}}));return v.createElement(rn.ZP,Object.assign({},yu,{icon:Ec}))}return v.createElement(rn.ZP,Object.assign({},yu),v.createElement("span",null,us))};v.useImperativeHandle(Sr,()=>({handlePreview:cd,handleDownload:Vd}));const{getPrefixCls:Ud}=v.useContext(Tt.E_),Hf=Ud("upload",pl),ef=Ud(),Pd=W()(`${Hf}-list`,`${Hf}-list-${Rr}`),Mf=(0,z.Z)(Vs.map(us=>({key:us.uid,file:us})));let Rd={motionDeadline:2e3,motionName:`${Hf}-${Rr==="picture-card"||Rr==="picture-circle"?"animate-inline":"animate"}`,keys:Mf,motionAppear:Mc};const fp=v.useMemo(()=>{const us=Object.assign({},(0,it.Z)(ef));return delete us.onAppearEnd,delete us.onEnterEnd,delete us.onLeaveEnd,us},[ef]);return Rr!=="picture-card"&&Rr!=="picture-circle"&&(Rd=Object.assign(Object.assign({},fp),Rd)),v.createElement("div",{className:Pd},v.createElement(dn.V4,Object.assign({},Rd,{component:!1}),us=>{let{key:Ca,file:Ta,className:Ja,style:ou}=us;return v.createElement(Fl,{key:Ca,locale:as,prefixCls:Hf,className:Ja,style:ou,file:Ta,items:Vs,progress:ml,listType:Rr,isImgUrl:Ss,showPreviewIcon:ol,showRemoveIcon:sl,showDownloadIcon:eu,removeIcon:kl,previewIcon:Wl,downloadIcon:Dl,iconRender:Sh,actionIconRender:xh,itemRender:pu,onPreview:cd,onDownload:Vd,onClose:yd})}),uu&&v.createElement(dn.ZP,Object.assign({},Rd,{visible:pn,forceRender:!0}),us=>{let{className:Ca,style:Ta}=us;return(0,Bt.Tm)(uu,Ja=>({className:W()(Ja.className,Ca),style:Object.assign(Object.assign(Object.assign({},Ta),{pointerEvents:Ca?"none":void 0}),Ja.style)}))}))};var Yl=v.forwardRef(va),Cc=function(Gn,Sr,Rr,co){function ns(fs){return fs instanceof Rr?fs:new Rr(function(vs){vs(fs)})}return new(Rr||(Rr=Promise))(function(fs,vs){function as(pl){try{Ss(co.next(pl))}catch(Vs){vs(Vs)}}function da(pl){try{Ss(co.throw(pl))}catch(Vs){vs(Vs)}}function Ss(pl){pl.done?fs(pl.value):ns(pl.value).then(as,da)}Ss((co=co.apply(Gn,Sr||[])).next())})};const ch=`__LIST_IGNORE_${Date.now()}__`,mh=(Gn,Sr)=>{const{fileList:Rr,defaultFileList:co,onRemove:ns,showUploadList:fs=!0,listType:vs="text",onPreview:as,onDownload:da,onChange:Ss,onDrop:pl,previewFile:Vs,disabled:ol,locale:sl,iconRender:eu,isImageUrl:kl,progress:Wl,prefixCls:Dl,className:ml,type:uu="select",children:pn,style:pu,itemRender:tc,maxCount:dc,data:Mc={},multiple:Fc=!1,hasControlInside:cd=!0,action:Vd="",accept:yd="",supportServerRender:Sh=!0,rootClassName:xh}=Gn,Ud=v.useContext(un.Z),Hf=ol!=null?ol:Ud,[ef,Pd]=(0,Vt.Z)(co||[],{value:Rr,postState:mc=>mc!=null?mc:[]}),[Mf,$f]=v.useState("drop"),Rd=v.useRef(null);v.useMemo(()=>{const mc=Date.now();(Rr||[]).forEach((Gc,rh)=>{!Gc.uid&&!Object.isFrozen(Gc)&&(Gc.uid=`__AUTO__${mc}_${rh}__`)})},[Rr]);const fp=(mc,Gc,rh)=>{let Wh=(0,z.Z)(Gc),Id=!1;dc===1?Wh=Wh.slice(-1):dc&&(Id=Wh.length>dc,Wh=Wh.slice(0,dc)),(0,P.flushSync)(()=>{Pd(Wh)});const id={file:mc,fileList:Wh};rh&&(id.event=rh),(!Id||Wh.some(Wd=>Wd.uid===mc.uid))&&(0,P.flushSync)(()=>{Ss==null||Ss(id)})},us=(mc,Gc)=>Cc(void 0,void 0,void 0,function*(){const{beforeUpload:rh,transformFile:Wh}=Gn;let Id=mc;if(rh){const id=yield rh(mc,Gc);if(id===!1)return!1;if(delete mc[ch],id===ch)return Object.defineProperty(mc,ch,{value:!0,configurable:!0}),!1;typeof id=="object"&&id&&(Id=id)}return Wh&&(Id=yield Wh(Id)),Id}),Ca=mc=>{const Gc=mc.filter(Id=>!Id.file[ch]);if(!Gc.length)return;const rh=Gc.map(Id=>ir(Id.file));let Wh=(0,z.Z)(ef);rh.forEach(Id=>{Wh=tr(Id,Wh)}),rh.forEach((Id,id)=>{let Wd=Id;if(Gc[id].parsedFile)Id.status="uploading";else{const{originFileObj:Zd}=Id;let pf;try{pf=new File([Zd],Zd.name,{type:Zd.type})}catch(Zh){pf=new Blob([Zd],{type:Zd.type}),pf.name=Zd.name,pf.lastModifiedDate=new Date,pf.lastModified=new Date().getTime()}pf.uid=Id.uid,Wd=pf}fp(Wd,Wh)})},Ta=(mc,Gc,rh)=>{try{typeof mc=="string"&&(mc=JSON.parse(mc))}catch(id){}if(!Jn(Gc,ef))return;const Wh=ir(Gc);Wh.status="done",Wh.percent=100,Wh.response=mc,Wh.xhr=rh;const Id=tr(Wh,ef);fp(Wh,Id)},Ja=(mc,Gc)=>{if(!Jn(Gc,ef))return;const rh=ir(Gc);rh.status="uploading",rh.percent=mc.percent;const Wh=tr(rh,ef);fp(rh,Wh,mc)},ou=(mc,Gc,rh)=>{if(!Jn(rh,ef))return;const Wh=ir(rh);Wh.error=mc,Wh.response=Gc,Wh.status="error";const Id=tr(Wh,ef);fp(Wh,Id)},yu=mc=>{let Gc;Promise.resolve(typeof ns=="function"?ns(mc):ns).then(rh=>{var Wh;if(rh===!1)return;const Id=nn(mc,ef);Id&&(Gc=Object.assign(Object.assign({},mc),{status:"removed"}),ef==null||ef.forEach(id=>{const Wd=Gc.uid!==void 0?"uid":"name";id[Wd]===Gc[Wd]&&!Object.isFrozen(id)&&(id.status="removed")}),(Wh=Rd.current)===null||Wh===void 0||Wh.abort(Gc),fp(Gc,Id))})},Ec=mc=>{$f(mc.type),mc.type==="drop"&&(pl==null||pl(mc))};v.useImperativeHandle(Sr,()=>({onBatchStart:Ca,onSuccess:Ta,onProgress:Ja,onError:ou,fileList:ef,upload:Rd.current}));const{getPrefixCls:Xu,direction:Jl,upload:Rc}=v.useContext(Tt.E_),Ac=Xu("upload",Dl),Fh=Object.assign(Object.assign({onBatchStart:Ca,onError:ou,onProgress:Ja,onSuccess:Ta},Gn),{data:Mc,multiple:Fc,action:Vd,accept:yd,supportServerRender:Sh,prefixCls:Ac,disabled:Hf,beforeUpload:us,onChange:void 0,hasControlInside:cd});delete Fh.className,delete Fh.style,(!pn||Hf)&&delete Fh.id;const pc=`${Ac}-wrapper`,[hh,hd,Ih]=Vr(Ac,pc),[Oc]=(0,on.Z)("Upload",Lr.Z.Upload),{showRemoveIcon:bh,showPreviewIcon:jl,showDownloadIcon:Vh,removeIcon:wa,previewIcon:su,downloadIcon:gh}=typeof fs=="boolean"?{}:fs,Th=typeof bh=="undefined"?!Hf:!!bh,ws=(mc,Gc)=>fs?v.createElement(Yl,{prefixCls:Ac,listType:vs,items:ef,previewFile:Vs,onPreview:as,onDownload:da,onRemove:yu,showRemoveIcon:Th,showPreviewIcon:jl,showDownloadIcon:Vh,removeIcon:wa,previewIcon:su,downloadIcon:gh,iconRender:eu,locale:Object.assign(Object.assign({},Oc),sl),isImageUrl:kl,progress:Wl,appendAction:mc,appendActionVisible:Gc,itemRender:tc,disabled:Hf}):mc,Eu=W()(pc,ml,xh,hd,Ih,Rc==null?void 0:Rc.className,{[`${Ac}-rtl`]:Jl==="rtl",[`${Ac}-picture-card-wrapper`]:vs==="picture-card",[`${Ac}-picture-circle-wrapper`]:vs==="picture-circle"}),$l=Object.assign(Object.assign({},Rc==null?void 0:Rc.style),pu);if(uu==="drag"){const mc=W()(hd,Ac,`${Ac}-drag`,{[`${Ac}-drag-uploading`]:ef.some(Gc=>Gc.status==="uploading"),[`${Ac}-drag-hover`]:Mf==="dragover",[`${Ac}-disabled`]:Hf,[`${Ac}-rtl`]:Jl==="rtl"});return hh(v.createElement("span",{className:Eu},v.createElement("div",{className:mc,style:$l,onDrop:Ec,onDragOver:Ec,onDragLeave:Ec},v.createElement(ze,Object.assign({},Fh,{ref:Rd,className:`${Ac}-btn`}),v.createElement("div",{className:`${Ac}-drag-container`},pn))),ws()))}const Ou=W()(Ac,`${Ac}-select`,{[`${Ac}-disabled`]:Hf}),Lu=v.createElement("div",{className:Ou,style:pn?void 0:{display:"none"}},v.createElement(ze,Object.assign({},Fh,{ref:Rd})));return hh(vs==="picture-card"||vs==="picture-circle"?v.createElement("span",{className:Eu},ws(Lu,!!pn)):v.createElement("span",{className:Eu},Lu,ws()))};var wh=v.forwardRef(mh),vu=function(Gn,Sr){var Rr={};for(var co in Gn)Object.prototype.hasOwnProperty.call(Gn,co)&&Sr.indexOf(co)<0&&(Rr[co]=Gn[co]);if(Gn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ns=0,co=Object.getOwnPropertySymbols(Gn);ns{var{style:Rr,height:co,hasControlInside:ns=!1}=Gn,fs=vu(Gn,["style","height","hasControlInside"]);return v.createElement(wh,Object.assign({ref:Sr,hasControlInside:ns},fs,{type:"drag",style:Object.assign(Object.assign({},Rr),{height:co})}))});const Hi=wh;Hi.Dragger=Ql,Hi.LIST_IGNORE=ch;var ji=Hi},5787:function(St,me,x){"use strict";var v=x(62561);Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;var z=v(x(21173)),P=me.default=z.default},71003:function(St,me,x){"use strict";var v=x(62561);Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;var z=v(x(10243)),P=me.default=z.default},21173:function(St,me,x){"use strict";var v=x(62561);Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;var z=v(x(77821)),P=v(x(42839));const A={lang:Object.assign({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"]},z.default),timePickerLocale:Object.assign({},P.default)};var W=me.default=A},10243:function(St,me,x){"use strict";var v=x(62561);Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;var z=v(x(15737)),P=v(x(67644));const A={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},z.default),timePickerLocale:Object.assign({},P.default)};A.lang.ok="\u786E\u5B9A";var W=me.default=A},40098:function(St,me,x){"use strict";var v,z=x(62561);v={value:!0},me.Z=void 0;var P=z(x(65870)),A=z(x(5787)),W=z(x(21173)),X=z(x(42839));const Y="${label} is not a valid ${type}",ie={locale:"en",Pagination:P.default,DatePicker:W.default,TimePicker:X.default,Calendar:A.default,global:{placeholder:"Please select"},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",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"},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:Y,method:Y,array:Y,object:Y,number:Y,date:Y,boolean:Y,integer:Y,float:Y,regexp:Y,email:Y,url:Y,hex:Y},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};var ae=me.Z=ie},91825:function(St,me,x){"use strict";var v,z=x(62561);v={value:!0},me.Z=void 0;var P=z(x(25157)),A=z(x(71003)),W=z(x(10243)),X=z(x(67644));const Y="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",ie={locale:"zh-cn",Pagination:P.default,DatePicker:W.default,TimePicker:X.default,Calendar:A.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:Y,method:Y,array:Y,object:Y,number:Y,date:Y,boolean:Y,integer:Y,float:Y,regexp:Y,email:Y,url:Y,hex:Y},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var ae=me.Z=ie},42839:function(St,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;const x={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var v=me.default=x},67644:function(St,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.default=void 0;const x={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var v=me.default=x},86251:function(St,me){"use strict";me.byteLength=Y,me.toByteArray=ae,me.fromByteArray=Be;for(var x=[],v=[],z=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,W=P.length;A0)throw new Error("Invalid string. Length must be a multiple of 4");var nt=Ce.indexOf("=");nt===-1&&(nt=ct);var Ge=nt===ct?0:4-nt%4;return[nt,Ge]}function Y(Ce){var ct=X(Ce),nt=ct[0],Ge=ct[1];return(nt+Ge)*3/4-Ge}function ie(Ce,ct,nt){return(ct+nt)*3/4-nt}function ae(Ce){var ct,nt=X(Ce),Ge=nt[0],at=nt[1],Ye=new z(ie(Ce,Ge,at)),rt=0,Gt=at>0?Ge-4:Ge,yt;for(yt=0;yt>16&255,Ye[rt++]=ct>>8&255,Ye[rt++]=ct&255;return at===2&&(ct=v[Ce.charCodeAt(yt)]<<2|v[Ce.charCodeAt(yt+1)]>>4,Ye[rt++]=ct&255),at===1&&(ct=v[Ce.charCodeAt(yt)]<<10|v[Ce.charCodeAt(yt+1)]<<4|v[Ce.charCodeAt(yt+2)]>>2,Ye[rt++]=ct>>8&255,Ye[rt++]=ct&255),Ye}function se(Ce){return x[Ce>>18&63]+x[Ce>>12&63]+x[Ce>>6&63]+x[Ce&63]}function Ie(Ce,ct,nt){for(var Ge,at=[],Ye=ct;YeGt?Gt:rt+Ye));return Ge===1?(ct=Ce[nt-1],at.push(x[ct>>2]+x[ct<<4&63]+"==")):Ge===2&&(ct=(Ce[nt-2]<<8)+Ce[nt-1],at.push(x[ct>>10]+x[ct>>4&63]+x[ct<<2&63]+"=")),at.join("")}},71041:function(St,me,x){"use strict";var v=x(28263);St.exports=function(A){A=A||{};var W=A.reporter,X=v.getOption(A,"async",!0),Y=v.getOption(A,"auto",!0);Y&&!X&&(W&&W.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),X=!0);var ie=z(),ae,se=!1;function Ie(Ye,rt){!se&&Y&&X&&ie.size()===0&&ct(),ie.add(Ye,rt)}function Be(){for(se=!0;ie.size();){var Ye=ie;ie=z(),Ye.process()}se=!1}function Ce(Ye){se||(Ye===void 0&&(Ye=X),ae&&(Ge(ae),ae=null),Ye?ct():Be())}function ct(){ae=at(Be)}function nt(){ie={},batchSize=0,topLevel=0,bottomLevel=0}function Ge(Ye){var rt=clearTimeout;return rt(Ye)}function at(Ye){var rt=function(Gt){return setTimeout(Gt,0)};return rt(Ye)}return{add:Ie,force:Ce}};function z(){var P={},A=0,W=0,X=0;function Y(se,Ie){Ie||(Ie=se,se=0),se>W?W=se:se=X())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X().toString(16)+" bytes");return Ar|0}function Ye(Ar){return+Ar!=Ar&&(Ar=0),ie.alloc(+Ar)}ie.isBuffer=function(Rt){return!!(Rt!=null&&Rt._isBuffer)},ie.compare=function(Rt,jn){if(!ie.isBuffer(Rt)||!ie.isBuffer(jn))throw new TypeError("Arguments must be Buffers");if(Rt===jn)return 0;for(var wr=Rt.length,oi=jn.length,Ti=0,Bi=Math.min(wr,oi);Ti>>1;case"base64":return ro(Ar).length;default:if(wr)return pe(Ar).length;Rt=(""+Rt).toLowerCase(),wr=!0}}ie.byteLength=rt;function Gt(Ar,Rt,jn){var wr=!1;if((Rt===void 0||Rt<0)&&(Rt=0),Rt>this.length||((jn===void 0||jn>this.length)&&(jn=this.length),jn<=0)||(jn>>>=0,Rt>>>=0,jn<=Rt))return"";for(Ar||(Ar="utf8");;)switch(Ar){case"hex":return ze(this,Rt,jn);case"utf8":case"utf-8":return Xe(this,Rt,jn);case"ascii":return Te(this,Rt,jn);case"latin1":case"binary":return vt(this,Rt,jn);case"base64":return Ct(this,Rt,jn);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,Rt,jn);default:if(wr)throw new TypeError("Unknown encoding: "+Ar);Ar=(Ar+"").toLowerCase(),wr=!0}}ie.prototype._isBuffer=!0;function yt(Ar,Rt,jn){var wr=Ar[Rt];Ar[Rt]=Ar[jn],Ar[jn]=wr}ie.prototype.swap16=function(){var Rt=this.length;if(Rt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var jn=0;jn0&&(Rt=this.toString("hex",0,jn).match(/.{2}/g).join(" "),this.length>jn&&(Rt+=" ... ")),""},ie.prototype.compare=function(Rt,jn,wr,oi,Ti){if(!ie.isBuffer(Rt))throw new TypeError("Argument must be a Buffer");if(jn===void 0&&(jn=0),wr===void 0&&(wr=Rt?Rt.length:0),oi===void 0&&(oi=0),Ti===void 0&&(Ti=this.length),jn<0||wr>Rt.length||oi<0||Ti>this.length)throw new RangeError("out of range index");if(oi>=Ti&&jn>=wr)return 0;if(oi>=Ti)return-1;if(jn>=wr)return 1;if(jn>>>=0,wr>>>=0,oi>>>=0,Ti>>>=0,this===Rt)return 0;for(var Bi=Ti-oi,no=wr-jn,Vr=Math.min(Bi,no),Rn=this.slice(oi,Ti),Xt=Rt.slice(jn,wr),Sn=0;Sn2147483647?jn=2147483647:jn<-2147483648&&(jn=-2147483648),jn=+jn,isNaN(jn)&&(jn=oi?0:Ar.length-1),jn<0&&(jn=Ar.length+jn),jn>=Ar.length){if(oi)return-1;jn=Ar.length-1}else if(jn<0)if(oi)jn=0;else return-1;if(typeof Rt=="string"&&(Rt=ie.from(Rt,wr)),ie.isBuffer(Rt))return Rt.length===0?-1:ht(Ar,Rt,jn,wr,oi);if(typeof Rt=="number")return Rt=Rt&255,ie.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?oi?Uint8Array.prototype.indexOf.call(Ar,Rt,jn):Uint8Array.prototype.lastIndexOf.call(Ar,Rt,jn):ht(Ar,[Rt],jn,wr,oi);throw new TypeError("val must be string, number or Buffer")}function ht(Ar,Rt,jn,wr,oi){var Ti=1,Bi=Ar.length,no=Rt.length;if(wr!==void 0&&(wr=String(wr).toLowerCase(),wr==="ucs2"||wr==="ucs-2"||wr==="utf16le"||wr==="utf-16le")){if(Ar.length<2||Rt.length<2)return-1;Ti=2,Bi/=2,no/=2,jn/=2}function Vr(hr,mt){return Ti===1?hr[mt]:hr.readUInt16BE(mt*Ti)}var Rn;if(oi){var Xt=-1;for(Rn=jn;RnBi&&(jn=Bi-no),Rn=jn;Rn>=0;Rn--){for(var Sn=!0,Pn=0;Pnoi&&(wr=oi)):wr=oi;var Ti=Rt.length;if(Ti%2!==0)throw new TypeError("Invalid hex string");wr>Ti/2&&(wr=Ti/2);for(var Bi=0;BiTi)&&(wr=Ti),Rt.length>0&&(wr<0||jn<0)||jn>this.length)throw new RangeError("Attempt to write outside buffer bounds");oi||(oi="utf8");for(var Bi=!1;;)switch(oi){case"hex":return Pe(this,Rt,jn,wr);case"utf8":case"utf-8":return et(this,Rt,jn,wr);case"ascii":return Oe(this,Rt,jn,wr);case"latin1":case"binary":return Ue(this,Rt,jn,wr);case"base64":return je(this,Rt,jn,wr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,Rt,jn,wr);default:if(Bi)throw new TypeError("Unknown encoding: "+oi);oi=(""+oi).toLowerCase(),Bi=!0}},ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(Ar,Rt,jn){return Rt===0&&jn===Ar.length?z.fromByteArray(Ar):z.fromByteArray(Ar.slice(Rt,jn))}function Xe(Ar,Rt,jn){jn=Math.min(Ar.length,jn);for(var wr=[],oi=Rt;oi239?4:Ti>223?3:Ti>191?2:1;if(oi+no<=jn){var Vr,Rn,Xt,Sn;switch(no){case 1:Ti<128&&(Bi=Ti);break;case 2:Vr=Ar[oi+1],(Vr&192)===128&&(Sn=(Ti&31)<<6|Vr&63,Sn>127&&(Bi=Sn));break;case 3:Vr=Ar[oi+1],Rn=Ar[oi+2],(Vr&192)===128&&(Rn&192)===128&&(Sn=(Ti&15)<<12|(Vr&63)<<6|Rn&63,Sn>2047&&(Sn<55296||Sn>57343)&&(Bi=Sn));break;case 4:Vr=Ar[oi+1],Rn=Ar[oi+2],Xt=Ar[oi+3],(Vr&192)===128&&(Rn&192)===128&&(Xt&192)===128&&(Sn=(Ti&15)<<18|(Vr&63)<<12|(Rn&63)<<6|Xt&63,Sn>65535&&Sn<1114112&&(Bi=Sn))}}Bi===null?(Bi=65533,no=1):Bi>65535&&(Bi-=65536,wr.push(Bi>>>10&1023|55296),Bi=56320|Bi&1023),wr.push(Bi),oi+=no}return Nt(wr)}var hn=4096;function Nt(Ar){var Rt=Ar.length;if(Rt<=hn)return String.fromCharCode.apply(String,Ar);for(var jn="",wr=0;wrwr)&&(jn=wr);for(var oi="",Ti=Rt;Tiwr&&(Rt=wr),jn<0?(jn+=wr,jn<0&&(jn=0)):jn>wr&&(jn=wr),jnjn)throw new RangeError("Trying to access beyond buffer length")}ie.prototype.readUIntLE=function(Rt,jn,wr){Rt=Rt|0,jn=jn|0,wr||Tt(Rt,jn,this.length);for(var oi=this[Rt],Ti=1,Bi=0;++Bi0&&(Ti*=256);)oi+=this[Rt+--jn]*Ti;return oi},ie.prototype.readUInt8=function(Rt,jn){return jn||Tt(Rt,1,this.length),this[Rt]},ie.prototype.readUInt16LE=function(Rt,jn){return jn||Tt(Rt,2,this.length),this[Rt]|this[Rt+1]<<8},ie.prototype.readUInt16BE=function(Rt,jn){return jn||Tt(Rt,2,this.length),this[Rt]<<8|this[Rt+1]},ie.prototype.readUInt32LE=function(Rt,jn){return jn||Tt(Rt,4,this.length),(this[Rt]|this[Rt+1]<<8|this[Rt+2]<<16)+this[Rt+3]*16777216},ie.prototype.readUInt32BE=function(Rt,jn){return jn||Tt(Rt,4,this.length),this[Rt]*16777216+(this[Rt+1]<<16|this[Rt+2]<<8|this[Rt+3])},ie.prototype.readIntLE=function(Rt,jn,wr){Rt=Rt|0,jn=jn|0,wr||Tt(Rt,jn,this.length);for(var oi=this[Rt],Ti=1,Bi=0;++Bi=Ti&&(oi-=Math.pow(2,8*jn)),oi},ie.prototype.readIntBE=function(Rt,jn,wr){Rt=Rt|0,jn=jn|0,wr||Tt(Rt,jn,this.length);for(var oi=jn,Ti=1,Bi=this[Rt+--oi];oi>0&&(Ti*=256);)Bi+=this[Rt+--oi]*Ti;return Ti*=128,Bi>=Ti&&(Bi-=Math.pow(2,8*jn)),Bi},ie.prototype.readInt8=function(Rt,jn){return jn||Tt(Rt,1,this.length),this[Rt]&128?(255-this[Rt]+1)*-1:this[Rt]},ie.prototype.readInt16LE=function(Rt,jn){jn||Tt(Rt,2,this.length);var wr=this[Rt]|this[Rt+1]<<8;return wr&32768?wr|4294901760:wr},ie.prototype.readInt16BE=function(Rt,jn){jn||Tt(Rt,2,this.length);var wr=this[Rt+1]|this[Rt]<<8;return wr&32768?wr|4294901760:wr},ie.prototype.readInt32LE=function(Rt,jn){return jn||Tt(Rt,4,this.length),this[Rt]|this[Rt+1]<<8|this[Rt+2]<<16|this[Rt+3]<<24},ie.prototype.readInt32BE=function(Rt,jn){return jn||Tt(Rt,4,this.length),this[Rt]<<24|this[Rt+1]<<16|this[Rt+2]<<8|this[Rt+3]},ie.prototype.readFloatLE=function(Rt,jn){return jn||Tt(Rt,4,this.length),P.read(this,Rt,!0,23,4)},ie.prototype.readFloatBE=function(Rt,jn){return jn||Tt(Rt,4,this.length),P.read(this,Rt,!1,23,4)},ie.prototype.readDoubleLE=function(Rt,jn){return jn||Tt(Rt,8,this.length),P.read(this,Rt,!0,52,8)},ie.prototype.readDoubleBE=function(Rt,jn){return jn||Tt(Rt,8,this.length),P.read(this,Rt,!1,52,8)};function un(Ar,Rt,jn,wr,oi,Ti){if(!ie.isBuffer(Ar))throw new TypeError('"buffer" argument must be a Buffer instance');if(Rt>oi||RtAr.length)throw new RangeError("Index out of range")}ie.prototype.writeUIntLE=function(Rt,jn,wr,oi){if(Rt=+Rt,jn=jn|0,wr=wr|0,!oi){var Ti=Math.pow(2,8*wr)-1;un(this,Rt,jn,wr,Ti,0)}var Bi=1,no=0;for(this[jn]=Rt&255;++no=0&&(no*=256);)this[jn+Bi]=Rt/no&255;return jn+wr},ie.prototype.writeUInt8=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,1,255,0),ie.TYPED_ARRAY_SUPPORT||(Rt=Math.floor(Rt)),this[jn]=Rt&255,jn+1};function on(Ar,Rt,jn,wr){Rt<0&&(Rt=65535+Rt+1);for(var oi=0,Ti=Math.min(Ar.length-jn,2);oi>>(wr?oi:1-oi)*8}ie.prototype.writeUInt16LE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,2,65535,0),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt&255,this[jn+1]=Rt>>>8):on(this,Rt,jn,!0),jn+2},ie.prototype.writeUInt16BE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,2,65535,0),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt>>>8,this[jn+1]=Rt&255):on(this,Rt,jn,!1),jn+2};function Lr(Ar,Rt,jn,wr){Rt<0&&(Rt=4294967295+Rt+1);for(var oi=0,Ti=Math.min(Ar.length-jn,4);oi>>(wr?oi:3-oi)*8&255}ie.prototype.writeUInt32LE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,4,4294967295,0),ie.TYPED_ARRAY_SUPPORT?(this[jn+3]=Rt>>>24,this[jn+2]=Rt>>>16,this[jn+1]=Rt>>>8,this[jn]=Rt&255):Lr(this,Rt,jn,!0),jn+4},ie.prototype.writeUInt32BE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,4,4294967295,0),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt>>>24,this[jn+1]=Rt>>>16,this[jn+2]=Rt>>>8,this[jn+3]=Rt&255):Lr(this,Rt,jn,!1),jn+4},ie.prototype.writeIntLE=function(Rt,jn,wr,oi){if(Rt=+Rt,jn=jn|0,!oi){var Ti=Math.pow(2,8*wr-1);un(this,Rt,jn,wr,Ti-1,-Ti)}var Bi=0,no=1,Vr=0;for(this[jn]=Rt&255;++Bi>0)-Vr&255;return jn+wr},ie.prototype.writeIntBE=function(Rt,jn,wr,oi){if(Rt=+Rt,jn=jn|0,!oi){var Ti=Math.pow(2,8*wr-1);un(this,Rt,jn,wr,Ti-1,-Ti)}var Bi=wr-1,no=1,Vr=0;for(this[jn+Bi]=Rt&255;--Bi>=0&&(no*=256);)Rt<0&&Vr===0&&this[jn+Bi+1]!==0&&(Vr=1),this[jn+Bi]=(Rt/no>>0)-Vr&255;return jn+wr},ie.prototype.writeInt8=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,1,127,-128),ie.TYPED_ARRAY_SUPPORT||(Rt=Math.floor(Rt)),Rt<0&&(Rt=255+Rt+1),this[jn]=Rt&255,jn+1},ie.prototype.writeInt16LE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,2,32767,-32768),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt&255,this[jn+1]=Rt>>>8):on(this,Rt,jn,!0),jn+2},ie.prototype.writeInt16BE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,2,32767,-32768),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt>>>8,this[jn+1]=Rt&255):on(this,Rt,jn,!1),jn+2},ie.prototype.writeInt32LE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,4,2147483647,-2147483648),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt&255,this[jn+1]=Rt>>>8,this[jn+2]=Rt>>>16,this[jn+3]=Rt>>>24):Lr(this,Rt,jn,!0),jn+4},ie.prototype.writeInt32BE=function(Rt,jn,wr){return Rt=+Rt,jn=jn|0,wr||un(this,Rt,jn,4,2147483647,-2147483648),Rt<0&&(Rt=4294967295+Rt+1),ie.TYPED_ARRAY_SUPPORT?(this[jn]=Rt>>>24,this[jn+1]=Rt>>>16,this[jn+2]=Rt>>>8,this[jn+3]=Rt&255):Lr(this,Rt,jn,!1),jn+4};function Yr(Ar,Rt,jn,wr,oi,Ti){if(jn+wr>Ar.length)throw new RangeError("Index out of range");if(jn<0)throw new RangeError("Index out of range")}function fi(Ar,Rt,jn,wr,oi){return oi||Yr(Ar,Rt,jn,4,34028234663852886e22,-34028234663852886e22),P.write(Ar,Rt,jn,wr,23,4),jn+4}ie.prototype.writeFloatLE=function(Rt,jn,wr){return fi(this,Rt,jn,!0,wr)},ie.prototype.writeFloatBE=function(Rt,jn,wr){return fi(this,Rt,jn,!1,wr)};function Xi(Ar,Rt,jn,wr,oi){return oi||Yr(Ar,Rt,jn,8,17976931348623157e292,-17976931348623157e292),P.write(Ar,Rt,jn,wr,52,8),jn+8}ie.prototype.writeDoubleLE=function(Rt,jn,wr){return Xi(this,Rt,jn,!0,wr)},ie.prototype.writeDoubleBE=function(Rt,jn,wr){return Xi(this,Rt,jn,!1,wr)},ie.prototype.copy=function(Rt,jn,wr,oi){if(wr||(wr=0),!oi&&oi!==0&&(oi=this.length),jn>=Rt.length&&(jn=Rt.length),jn||(jn=0),oi>0&&oi=this.length)throw new RangeError("sourceStart out of bounds");if(oi<0)throw new RangeError("sourceEnd out of bounds");oi>this.length&&(oi=this.length),Rt.length-jn=0;--Bi)Rt[Bi+jn]=this[Bi+wr];else if(Ti<1e3||!ie.TYPED_ARRAY_SUPPORT)for(Bi=0;Bi>>0,wr=wr===void 0?this.length:wr>>>0,Rt||(Rt=0);var Bi;if(typeof Rt=="number")for(Bi=jn;Bi55295&&jn<57344){if(!oi){if(jn>56319){(Rt-=3)>-1&&Ti.push(239,191,189);continue}else if(Bi+1===wr){(Rt-=3)>-1&&Ti.push(239,191,189);continue}oi=jn;continue}if(jn<56320){(Rt-=3)>-1&&Ti.push(239,191,189),oi=jn;continue}jn=(oi-55296<<10|jn-56320)+65536}else oi&&(Rt-=3)>-1&&Ti.push(239,191,189);if(oi=null,jn<128){if((Rt-=1)<0)break;Ti.push(jn)}else if(jn<2048){if((Rt-=2)<0)break;Ti.push(jn>>6|192,jn&63|128)}else if(jn<65536){if((Rt-=3)<0)break;Ti.push(jn>>12|224,jn>>6&63|128,jn&63|128)}else if(jn<1114112){if((Rt-=4)<0)break;Ti.push(jn>>18|240,jn>>12&63|128,jn>>6&63|128,jn&63|128)}else throw new Error("Invalid code point")}return Ti}function Ii(Ar){for(var Rt=[],jn=0;jn>8,oi=jn%256,Ti.push(oi),Ti.push(wr);return Ti}function ro(Ar){return z.toByteArray(hi(Ar))}function ai(Ar,Rt,jn,wr){for(var oi=0;oi=Rt.length||oi>=Ar.length);++oi)Rt[oi+jn]=Ar[oi];return oi}function Ms(Ar){return Ar!==Ar}},23148:function(St,me,x){"use strict";var v=x(3091),z=x(16617),P=z(v("String.prototype.indexOf"));St.exports=function(W,X){var Y=v(W,!!X);return typeof Y=="function"&&P(W,".prototype.")>-1?z(Y):Y}},16617:function(St,me,x){"use strict";var v=x(36723),z=x(3091),P=x(79350),A=x(61054),W=z("%Function.prototype.apply%"),X=z("%Function.prototype.call%"),Y=z("%Reflect.apply%",!0)||v.call(X,W),ie=x(31989),ae=z("%Math.max%");St.exports=function(Be){if(typeof Be!="function")throw new A("a function is required");var Ce=Y(v,X,arguments);return P(Ce,1+ae(0,Be.length-(arguments.length-1)),!0)};var se=function(){return Y(v,W,arguments)};ie?ie(St.exports,"apply",{value:se}):St.exports.apply=se},67751:function(St){var me={utf8:{stringToBytes:function(x){return me.bin.stringToBytes(unescape(encodeURIComponent(x)))},bytesToString:function(x){return decodeURIComponent(escape(me.bin.bytesToString(x)))}},bin:{stringToBytes:function(x){for(var v=[],z=0;z1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Tt="";return typeof ze=="string"?Tt=nt(ze,Vt):ze instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ze==null?void 0:ze.type)?Tt=nt(ze.value,Vt):(Tt=se()(ze),Ie("copy")),Tt},at=Ge;function Ye(vt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ye=function(Vt){return typeof Vt}:Ye=function(Vt){return Vt&&typeof Symbol=="function"&&Vt.constructor===Symbol&&Vt!==Symbol.prototype?"symbol":typeof Vt},Ye(vt)}var rt=function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Vt=ze.action,Tt=Vt===void 0?"copy":Vt,un=ze.container,on=ze.target,Lr=ze.text;if(Tt!=="copy"&&Tt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(on!==void 0)if(on&&Ye(on)==="object"&&on.nodeType===1){if(Tt==="copy"&&on.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Tt==="cut"&&(on.hasAttribute("readonly")||on.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Lr)return at(Lr,{container:un});if(on)return Tt==="cut"?Ce(on):at(on,{container:un})},Gt=rt;function yt(vt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yt=function(Vt){return typeof Vt}:yt=function(Vt){return Vt&&typeof Symbol=="function"&&Vt.constructor===Symbol&&Vt!==Symbol.prototype?"symbol":typeof Vt},yt(vt)}function Et(vt,ze){if(!(vt instanceof ze))throw new TypeError("Cannot call a class as a function")}function ht(vt,ze){for(var Vt=0;Vt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof un.action=="function"?un.action:this.defaultAction,this.target=typeof un.target=="function"?un.target:this.defaultTarget,this.text=typeof un.text=="function"?un.text:this.defaultText,this.container=yt(un.container)==="object"?un.container:document.body}},{key:"listenClick",value:function(un){var on=this;this.listener=ie()(un,"click",function(Lr){return on.onClick(Lr)})}},{key:"onClick",value:function(un){var on=un.delegateTarget||un.currentTarget,Lr=this.action(on)||"copy",Yr=Gt({action:Lr,container:this.container,target:this.target(on),text:this.text(on)});this.emit(Yr?"success":"error",{action:Lr,text:Yr,trigger:on,clearSelection:function(){on&&on.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(un){return hn("action",un)}},{key:"defaultTarget",value:function(un){var on=hn("target",un);if(on)return document.querySelector(on)}},{key:"defaultText",value:function(un){return hn("text",un)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(un){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return at(un,on)}},{key:"cut",value:function(un){return Ce(un)}},{key:"isSupported",value:function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],on=typeof un=="string"?[un]:un,Lr=!!document.queryCommandSupported;return on.forEach(function(Yr){Lr=Lr&&!!document.queryCommandSupported(Yr)}),Lr}}]),Vt}(X()),Te=Nt},828:function(z){var P=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var A=Element.prototype;A.matches=A.matchesSelector||A.mozMatchesSelector||A.msMatchesSelector||A.oMatchesSelector||A.webkitMatchesSelector}function W(X,Y){for(;X&&X.nodeType!==P;){if(typeof X.matches=="function"&&X.matches(Y))return X;X=X.parentNode}}z.exports=W},438:function(z,P,A){var W=A(828);function X(ae,se,Ie,Be,Ce){var ct=ie.apply(this,arguments);return ae.addEventListener(Ie,ct,Ce),{destroy:function(){ae.removeEventListener(Ie,ct,Ce)}}}function Y(ae,se,Ie,Be,Ce){return typeof ae.addEventListener=="function"?X.apply(null,arguments):typeof Ie=="function"?X.bind(null,document).apply(null,arguments):(typeof ae=="string"&&(ae=document.querySelectorAll(ae)),Array.prototype.map.call(ae,function(ct){return X(ct,se,Ie,Be,Ce)}))}function ie(ae,se,Ie,Be){return function(Ce){Ce.delegateTarget=W(Ce.target,se),Ce.delegateTarget&&Be.call(ae,Ce)}}z.exports=Y},879:function(z,P){P.node=function(A){return A!==void 0&&A instanceof HTMLElement&&A.nodeType===1},P.nodeList=function(A){var W=Object.prototype.toString.call(A);return A!==void 0&&(W==="[object NodeList]"||W==="[object HTMLCollection]")&&"length"in A&&(A.length===0||P.node(A[0]))},P.string=function(A){return typeof A=="string"||A instanceof String},P.fn=function(A){var W=Object.prototype.toString.call(A);return W==="[object Function]"}},370:function(z,P,A){var W=A(879),X=A(438);function Y(Ie,Be,Ce){if(!Ie&&!Be&&!Ce)throw new Error("Missing required arguments");if(!W.string(Be))throw new TypeError("Second argument must be a String");if(!W.fn(Ce))throw new TypeError("Third argument must be a Function");if(W.node(Ie))return ie(Ie,Be,Ce);if(W.nodeList(Ie))return ae(Ie,Be,Ce);if(W.string(Ie))return se(Ie,Be,Ce);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ie(Ie,Be,Ce){return Ie.addEventListener(Be,Ce),{destroy:function(){Ie.removeEventListener(Be,Ce)}}}function ae(Ie,Be,Ce){return Array.prototype.forEach.call(Ie,function(ct){ct.addEventListener(Be,Ce)}),{destroy:function(){Array.prototype.forEach.call(Ie,function(ct){ct.removeEventListener(Be,Ce)})}}}function se(Ie,Be,Ce){return X(document.body,Ie,Be,Ce)}z.exports=Y},817:function(z){function P(A){var W;if(A.nodeName==="SELECT")A.focus(),W=A.value;else if(A.nodeName==="INPUT"||A.nodeName==="TEXTAREA"){var X=A.hasAttribute("readonly");X||A.setAttribute("readonly",""),A.select(),A.setSelectionRange(0,A.value.length),X||A.removeAttribute("readonly"),W=A.value}else{A.hasAttribute("contenteditable")&&A.focus();var Y=window.getSelection(),ie=document.createRange();ie.selectNodeContents(A),Y.removeAllRanges(),Y.addRange(ie),W=Y.toString()}return W}z.exports=P},279:function(z){function P(){}P.prototype={on:function(A,W,X){var Y=this.e||(this.e={});return(Y[A]||(Y[A]=[])).push({fn:W,ctx:X}),this},once:function(A,W,X){var Y=this;function ie(){Y.off(A,ie),W.apply(X,arguments)}return ie._=W,this.on(A,ie,X)},emit:function(A){var W=[].slice.call(arguments,1),X=((this.e||(this.e={}))[A]||[]).slice(),Y=0,ie=X.length;for(Y;Y1&&(ae-=1)),[ae*360,se*100,ct*100]},P.rgb.hwb=function(W){const X=W[0],Y=W[1];let ie=W[2];const ae=P.rgb.hsl(W)[0],se=1/255*Math.min(X,Math.min(Y,ie));return ie=1-1/255*Math.max(X,Math.max(Y,ie)),[ae,se*100,ie*100]},P.rgb.cmyk=function(W){const X=W[0]/255,Y=W[1]/255,ie=W[2]/255,ae=Math.min(1-X,1-Y,1-ie),se=(1-X-ae)/(1-ae)||0,Ie=(1-Y-ae)/(1-ae)||0,Be=(1-ie-ae)/(1-ae)||0;return[se*100,Ie*100,Be*100,ae*100]};function A(W,X){return ey(W[0]-X[0],2)+ey(W[1]-X[1],2)+ey(W[2]-X[2],2)}P.rgb.keyword=function(W){const X=z[W];if(X)return X;let Y=1/0,ie;for(const ae of Object.keys(v)){const se=v[ae],Ie=A(W,se);Ie.04045?ey((X+.055)/1.055,2.4):X/12.92,Y=Y>.04045?ey((Y+.055)/1.055,2.4):Y/12.92,ie=ie>.04045?ey((ie+.055)/1.055,2.4):ie/12.92;const ae=X*.4124+Y*.3576+ie*.1805,se=X*.2126+Y*.7152+ie*.0722,Ie=X*.0193+Y*.1192+ie*.9505;return[ae*100,se*100,Ie*100]},P.rgb.lab=function(W){const X=P.rgb.xyz(W);let Y=X[0],ie=X[1],ae=X[2];Y/=95.047,ie/=100,ae/=108.883,Y=Y>.008856?ey(Y,1/3):7.787*Y+16/116,ie=ie>.008856?ey(ie,1/3):7.787*ie+16/116,ae=ae>.008856?ey(ae,1/3):7.787*ae+16/116;const se=116*ie-16,Ie=500*(Y-ie),Be=200*(ie-ae);return[se,Ie,Be]},P.hsl.rgb=function(W){const X=W[0]/360,Y=W[1]/100,ie=W[2]/100;let ae,se,Ie;if(Y===0)return Ie=ie*255,[Ie,Ie,Ie];ie<.5?ae=ie*(1+Y):ae=ie+Y-ie*Y;const Be=2*ie-ae,Ce=[0,0,0];for(let ct=0;ct<3;ct++)se=X+1/3*-(ct-1),se<0&&se++,se>1&&se--,6*se<1?Ie=Be+(ae-Be)*6*se:2*se<1?Ie=ae:3*se<2?Ie=Be+(ae-Be)*(2/3-se)*6:Ie=Be,Ce[ct]=Ie*255;return Ce},P.hsl.hsv=function(W){const X=W[0];let Y=W[1]/100,ie=W[2]/100,ae=Y;const se=Math.max(ie,.01);ie*=2,Y*=ie<=1?ie:2-ie,ae*=se<=1?se:2-se;const Ie=(ie+Y)/2,Be=ie===0?2*ae/(se+ae):2*Y/(ie+Y);return[X,Be*100,Ie*100]},P.hsv.rgb=function(W){const X=W[0]/60,Y=W[1]/100;let ie=W[2]/100;const ae=Math.floor(X)%6,se=X-Math.floor(X),Ie=255*ie*(1-Y),Be=255*ie*(1-Y*se),Ce=255*ie*(1-Y*(1-se));switch(ie*=255,ae){case 0:return[ie,Ce,Ie];case 1:return[Be,ie,Ie];case 2:return[Ie,ie,Ce];case 3:return[Ie,Be,ie];case 4:return[Ce,Ie,ie];case 5:return[ie,Ie,Be]}},P.hsv.hsl=function(W){const X=W[0],Y=W[1]/100,ie=W[2]/100,ae=Math.max(ie,.01);let se,Ie;Ie=(2-Y)*ie;const Be=(2-Y)*ae;return se=Y*ae,se/=Be<=1?Be:2-Be,se=se||0,Ie/=2,[X,se*100,Ie*100]},P.hwb.rgb=function(W){const X=W[0]/360;let Y=W[1]/100,ie=W[2]/100;const ae=Y+ie;let se;ae>1&&(Y/=ae,ie/=ae);const Ie=Math.floor(6*X),Be=1-ie;se=6*X-Ie,Ie&1&&(se=1-se);const Ce=Y+se*(Be-Y);let ct,nt,Ge;switch(Ie){default:case 6:case 0:ct=Be,nt=Ce,Ge=Y;break;case 1:ct=Ce,nt=Be,Ge=Y;break;case 2:ct=Y,nt=Be,Ge=Ce;break;case 3:ct=Y,nt=Ce,Ge=Be;break;case 4:ct=Ce,nt=Y,Ge=Be;break;case 5:ct=Be,nt=Y,Ge=Ce;break}return[ct*255,nt*255,Ge*255]},P.cmyk.rgb=function(W){const X=W[0]/100,Y=W[1]/100,ie=W[2]/100,ae=W[3]/100,se=1-Math.min(1,X*(1-ae)+ae),Ie=1-Math.min(1,Y*(1-ae)+ae),Be=1-Math.min(1,ie*(1-ae)+ae);return[se*255,Ie*255,Be*255]},P.xyz.rgb=function(W){const X=W[0]/100,Y=W[1]/100,ie=W[2]/100;let ae,se,Ie;return ae=X*3.2406+Y*-1.5372+ie*-.4986,se=X*-.9689+Y*1.8758+ie*.0415,Ie=X*.0557+Y*-.204+ie*1.057,ae=ae>.0031308?1.055*ey(ae,1/2.4)-.055:ae*12.92,se=se>.0031308?1.055*ey(se,1/2.4)-.055:se*12.92,Ie=Ie>.0031308?1.055*ey(Ie,1/2.4)-.055:Ie*12.92,ae=Math.min(Math.max(0,ae),1),se=Math.min(Math.max(0,se),1),Ie=Math.min(Math.max(0,Ie),1),[ae*255,se*255,Ie*255]},P.xyz.lab=function(W){let X=W[0],Y=W[1],ie=W[2];X/=95.047,Y/=100,ie/=108.883,X=X>.008856?ey(X,1/3):7.787*X+16/116,Y=Y>.008856?ey(Y,1/3):7.787*Y+16/116,ie=ie>.008856?ey(ie,1/3):7.787*ie+16/116;const ae=116*Y-16,se=500*(X-Y),Ie=200*(Y-ie);return[ae,se,Ie]},P.lab.xyz=function(W){const X=W[0],Y=W[1],ie=W[2];let ae,se,Ie;se=(X+16)/116,ae=Y/500+se,Ie=se-ie/200;const Be=ey(se,3),Ce=ey(ae,3),ct=ey(Ie,3);return se=Be>.008856?Be:(se-16/116)/7.787,ae=Ce>.008856?Ce:(ae-16/116)/7.787,Ie=ct>.008856?ct:(Ie-16/116)/7.787,ae*=95.047,se*=100,Ie*=108.883,[ae,se,Ie]},P.lab.lch=function(W){const X=W[0],Y=W[1],ie=W[2];let ae;ae=Math.atan2(ie,Y)*360/2/Math.PI,ae<0&&(ae+=360);const Ie=Math.sqrt(Y*Y+ie*ie);return[X,Ie,ae]},P.lch.lab=function(W){const X=W[0],Y=W[1],ae=W[2]/360*2*Math.PI,se=Y*Math.cos(ae),Ie=Y*Math.sin(ae);return[X,se,Ie]},P.rgb.ansi16=function(W,X=null){const[Y,ie,ae]=W;let se=X===null?P.rgb.hsv(W)[2]:X;if(se=Math.round(se/50),se===0)return 30;let Ie=30+(Math.round(ae/255)<<2|Math.round(ie/255)<<1|Math.round(Y/255));return se===2&&(Ie+=60),Ie},P.hsv.ansi16=function(W){return P.rgb.ansi16(P.hsv.rgb(W),W[2])},P.rgb.ansi256=function(W){const X=W[0],Y=W[1],ie=W[2];return X===Y&&Y===ie?X<8?16:X>248?231:Math.round((X-8)/247*24)+232:16+36*Math.round(X/255*5)+6*Math.round(Y/255*5)+Math.round(ie/255*5)},P.ansi16.rgb=function(W){let X=W%10;if(X===0||X===7)return W>50&&(X+=3.5),X=X/10.5*255,[X,X,X];const Y=(~~(W>50)+1)*.5,ie=(X&1)*Y*255,ae=(X>>1&1)*Y*255,se=(X>>2&1)*Y*255;return[ie,ae,se]},P.ansi256.rgb=function(W){if(W>=232){const se=(W-232)*10+8;return[se,se,se]}W-=16;let X;const Y=Math.floor(W/36)/5*255,ie=Math.floor((X=W%36)/6)/5*255,ae=X%6/5*255;return[Y,ie,ae]},P.rgb.hex=function(W){const Y=(((Math.round(W[0])&255)<<16)+((Math.round(W[1])&255)<<8)+(Math.round(W[2])&255)).toString(16).toUpperCase();return"000000".substring(Y.length)+Y},P.hex.rgb=function(W){const X=W.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!X)return[0,0,0];let Y=X[0];X[0].length===3&&(Y=Y.split("").map(Be=>Be+Be).join(""));const ie=parseInt(Y,16),ae=ie>>16&255,se=ie>>8&255,Ie=ie&255;return[ae,se,Ie]},P.rgb.hcg=function(W){const X=W[0]/255,Y=W[1]/255,ie=W[2]/255,ae=Math.max(Math.max(X,Y),ie),se=Math.min(Math.min(X,Y),ie),Ie=ae-se;let Be,Ce;return Ie<1?Be=se/(1-Ie):Be=0,Ie<=0?Ce=0:ae===X?Ce=(Y-ie)/Ie%6:ae===Y?Ce=2+(ie-X)/Ie:Ce=4+(X-Y)/Ie,Ce/=6,Ce%=1,[Ce*360,Ie*100,Be*100]},P.hsl.hcg=function(W){const X=W[1]/100,Y=W[2]/100,ie=Y<.5?2*X*Y:2*X*(1-Y);let ae=0;return ie<1&&(ae=(Y-.5*ie)/(1-ie)),[W[0],ie*100,ae*100]},P.hsv.hcg=function(W){const X=W[1]/100,Y=W[2]/100,ie=X*Y;let ae=0;return ie<1&&(ae=(Y-ie)/(1-ie)),[W[0],ie*100,ae*100]},P.hcg.rgb=function(W){const X=W[0]/360,Y=W[1]/100,ie=W[2]/100;if(Y===0)return[ie*255,ie*255,ie*255];const ae=[0,0,0],se=X%1*6,Ie=se%1,Be=1-Ie;let Ce=0;switch(Math.floor(se)){case 0:ae[0]=1,ae[1]=Ie,ae[2]=0;break;case 1:ae[0]=Be,ae[1]=1,ae[2]=0;break;case 2:ae[0]=0,ae[1]=1,ae[2]=Ie;break;case 3:ae[0]=0,ae[1]=Be,ae[2]=1;break;case 4:ae[0]=Ie,ae[1]=0,ae[2]=1;break;default:ae[0]=1,ae[1]=0,ae[2]=Be}return Ce=(1-Y)*ie,[(Y*ae[0]+Ce)*255,(Y*ae[1]+Ce)*255,(Y*ae[2]+Ce)*255]},P.hcg.hsv=function(W){const X=W[1]/100,Y=W[2]/100,ie=X+Y*(1-X);let ae=0;return ie>0&&(ae=X/ie),[W[0],ae*100,ie*100]},P.hcg.hsl=function(W){const X=W[1]/100,ie=W[2]/100*(1-X)+.5*X;let ae=0;return ie>0&&ie<.5?ae=X/(2*ie):ie>=.5&&ie<1&&(ae=X/(2*(1-ie))),[W[0],ae*100,ie*100]},P.hcg.hwb=function(W){const X=W[1]/100,Y=W[2]/100,ie=X+Y*(1-X);return[W[0],(ie-X)*100,(1-ie)*100]},P.hwb.hcg=function(W){const X=W[1]/100,ie=1-W[2]/100,ae=ie-X;let se=0;return ae<1&&(se=(ie-ae)/(1-ae)),[W[0],ae*100,se*100]},P.apple.rgb=function(W){return[W[0]/65535*255,W[1]/65535*255,W[2]/65535*255]},P.rgb.apple=function(W){return[W[0]/255*65535,W[1]/255*65535,W[2]/255*65535]},P.gray.rgb=function(W){return[W[0]/100*255,W[0]/100*255,W[0]/100*255]},P.gray.hsl=function(W){return[0,0,W[0]]},P.gray.hsv=P.gray.hsl,P.gray.hwb=function(W){return[0,100,W[0]]},P.gray.cmyk=function(W){return[0,0,0,W[0]]},P.gray.lab=function(W){return[W[0],0,0]},P.gray.hex=function(W){const X=Math.round(W[0]/100*255)&255,ie=((X<<16)+(X<<8)+X).toString(16).toUpperCase();return"000000".substring(ie.length)+ie},P.rgb.gray=function(W){return[(W[0]+W[1]+W[2])/3/255*100]}},41492:function(St,me,x){const v=x(18135),z=x(40756),P={},A=Object.keys(v);function W(Y){const ie=function(...ae){const se=ae[0];return se==null?se:(se.length>1&&(ae=se),Y(ae))};return"conversion"in Y&&(ie.conversion=Y.conversion),ie}function X(Y){const ie=function(...ae){const se=ae[0];if(se==null)return se;se.length>1&&(ae=se);const Ie=Y(ae);if(typeof Ie=="object")for(let Be=Ie.length,Ce=0;Ce{P[Y]={},Object.defineProperty(P[Y],"channels",{value:v[Y].channels}),Object.defineProperty(P[Y],"labels",{value:v[Y].labels});const ie=z(Y);Object.keys(ie).forEach(se=>{const Ie=ie[se];P[Y][se]=X(Ie),P[Y][se].raw=W(Ie)})}),St.exports=P},40756:function(St,me,x){const v=x(18135);function z(){const X={},Y=Object.keys(v);for(let ie=Y.length,ae=0;ae=4&&ae[3]!==1&&(se=", "+ae[3]),"hwb("+ae[0]+", "+ae[1]+"%, "+ae[2]+"%"+se+")"},X.to.keyword=function(ae){return A[ae.slice(0,3)]};function Y(ae,se,Ie){return Math.min(Math.max(se,ae),Ie)}function ie(ae){var se=Math.round(ae).toString(16).toUpperCase();return se.length<2?"0"+se:se}},28170:function(St,me,x){const v=x(75196),z=x(41492),P=["keyword","gray","hex"],A={};for(const Ce of Object.keys(z))A[[...z[Ce].labels].sort().join("")]=Ce;const W={};function X(Ce,ct){if(!(this instanceof X))return new X(Ce,ct);if(ct&&ct in P&&(ct=null),ct&&!(ct in z))throw new Error("Unknown model: "+ct);let nt,Ge;if(Ce==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(Ce instanceof X)this.model=Ce.model,this.color=[...Ce.color],this.valpha=Ce.valpha;else if(typeof Ce=="string"){const at=v.get(Ce);if(at===null)throw new Error("Unable to parse color from string: "+Ce);this.model=at.model,Ge=z[this.model].channels,this.color=at.value.slice(0,Ge),this.valpha=typeof at.value[Ge]=="number"?at.value[Ge]:1}else if(Ce.length>0){this.model=ct||"rgb",Ge=z[this.model].channels;const at=Array.prototype.slice.call(Ce,0,Ge);this.color=Be(at,Ge),this.valpha=typeof Ce[Ge]=="number"?Ce[Ge]:1}else if(typeof Ce=="number")this.model="rgb",this.color=[Ce>>16&255,Ce>>8&255,Ce&255],this.valpha=1;else{this.valpha=1;const at=Object.keys(Ce);"alpha"in Ce&&(at.splice(at.indexOf("alpha"),1),this.valpha=typeof Ce.alpha=="number"?Ce.alpha:0);const Ye=at.sort().join("");if(!(Ye in A))throw new Error("Unable to parse color from object: "+JSON.stringify(Ce));this.model=A[Ye];const{labels:rt}=z[this.model],Gt=[];for(nt=0;nt(Ce%360+360)%360),saturationl:ae("hsl",1,se(100)),lightness:ae("hsl",2,se(100)),saturationv:ae("hsv",1,se(100)),value:ae("hsv",2,se(100)),chroma:ae("hcg",1,se(100)),gray:ae("hcg",2,se(100)),white:ae("hwb",1,se(100)),wblack:ae("hwb",2,se(100)),cyan:ae("cmyk",0,se(100)),magenta:ae("cmyk",1,se(100)),yellow:ae("cmyk",2,se(100)),black:ae("cmyk",3,se(100)),x:ae("xyz",0,se(95.047)),y:ae("xyz",1,se(100)),z:ae("xyz",2,se(108.833)),l:ae("lab",0,se(100)),a:ae("lab",1),b:ae("lab",2),keyword(Ce){return Ce!==void 0?new X(Ce):z[this.model].keyword(this.color)},hex(Ce){return Ce!==void 0?new X(Ce):v.to.hex(this.rgb().round().color)},hexa(Ce){if(Ce!==void 0)return new X(Ce);const ct=this.rgb().round().color;let nt=Math.round(this.valpha*255).toString(16).toUpperCase();return nt.length===1&&(nt="0"+nt),v.to.hex(ct)+nt},rgbNumber(){const Ce=this.rgb().color;return(Ce[0]&255)<<16|(Ce[1]&255)<<8|Ce[2]&255},luminosity(){const Ce=this.rgb().color,ct=[];for(const[nt,Ge]of Ce.entries()){const at=Ge/255;ct[nt]=at<=.04045?at/12.92:ey((at+.055)/1.055,2.4)}return .2126*ct[0]+.7152*ct[1]+.0722*ct[2]},contrast(Ce){const ct=this.luminosity(),nt=Ce.luminosity();return ct>nt?(ct+.05)/(nt+.05):(nt+.05)/(ct+.05)},level(Ce){const ct=this.contrast(Ce);return ct>=7?"AAA":ct>=4.5?"AA":""},isDark(){const Ce=this.rgb().color;return(Ce[0]*2126+Ce[1]*7152+Ce[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const Ce=this.rgb();for(let ct=0;ct<3;ct++)Ce.color[ct]=255-Ce.color[ct];return Ce},lighten(Ce){const ct=this.hsl();return ct.color[2]+=ct.color[2]*Ce,ct},darken(Ce){const ct=this.hsl();return ct.color[2]-=ct.color[2]*Ce,ct},saturate(Ce){const ct=this.hsl();return ct.color[1]+=ct.color[1]*Ce,ct},desaturate(Ce){const ct=this.hsl();return ct.color[1]-=ct.color[1]*Ce,ct},whiten(Ce){const ct=this.hwb();return ct.color[1]+=ct.color[1]*Ce,ct},blacken(Ce){const ct=this.hwb();return ct.color[2]+=ct.color[2]*Ce,ct},grayscale(){const Ce=this.rgb().color,ct=Ce[0]*.3+Ce[1]*.59+Ce[2]*.11;return X.rgb(ct,ct,ct)},fade(Ce){return this.alpha(this.valpha-this.valpha*Ce)},opaquer(Ce){return this.alpha(this.valpha+this.valpha*Ce)},rotate(Ce){const ct=this.hsl();let nt=ct.color[0];return nt=(nt+Ce)%360,nt=nt<0?360+nt:nt,ct.color[0]=nt,ct},mix(Ce,ct){if(!Ce||!Ce.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof Ce);const nt=Ce.rgb(),Ge=this.rgb(),at=ct===void 0?.5:ct,Ye=2*at-1,rt=nt.alpha()-Ge.alpha(),Gt=((Ye*rt===-1?Ye:(Ye+rt)/(1+Ye*rt))+1)/2,yt=1-Gt;return X.rgb(Gt*nt.red()+yt*Ge.red(),Gt*nt.green()+yt*Ge.green(),Gt*nt.blue()+yt*Ge.blue(),nt.alpha()*at+Ge.alpha()*(1-at))}};for(const Ce of Object.keys(z)){if(P.includes(Ce))continue;const{channels:ct}=z[Ce];X.prototype[Ce]=function(...nt){return this.model===Ce?new X(this):nt.length>0?new X(nt,Ce):new X([...Ie(z[this.model][Ce].raw(this.color)),this.valpha],Ce)},X[Ce]=function(...nt){let Ge=nt[0];return typeof Ge=="number"&&(Ge=Be(nt,ct)),new X(Ge,Ce)}}function Y(Ce,ct){return Number(Ce.toFixed(ct))}function ie(Ce){return function(ct){return Y(ct,Ce)}}function ae(Ce,ct,nt){Ce=Array.isArray(Ce)?Ce:[Ce];for(const Ge of Ce)(W[Ge]||(W[Ge]=[]))[ct]=nt;return Ce=Ce[0],function(Ge){let at;return Ge!==void 0?(nt&&(Ge=nt(Ge)),at=this[Ce](),at.color[ct]=Ge,at):(at=this[Ce]().color[ct],nt&&(at=nt(at)),at)}}function se(Ce){return function(ct){return Math.max(0,Math.min(Ce,ct))}}function Ie(Ce){return Array.isArray(Ce)?Ce:[Ce]}function Be(Ce,ct){for(let nt=0;ntOe||je.push({node:Xe,dist:hn})}for(;je.length&&!je.peek().node.children;){var Nt=je.pop(),Te=Nt.node,vt=at(Te,Et,ht),ze=at(Te,Pe,et);if(Nt.dist=Et.minX&&yt[0]<=Et.maxX&&yt[1]>=Et.minY&&yt[1]<=Et.maxY}function se(yt,Et,ht){for(var Pe=Math.min(yt[0],Et[0]),et=Math.min(yt[1],Et[1]),Oe=Math.max(yt[0],Et[0]),Ue=Math.max(yt[1],Et[1]),je=ht.search({minX:Pe,minY:et,maxX:Oe,maxY:Ue}),ft=0;ft0!=Ie(yt,Et,Pe)>0&&Ie(ht,Pe,yt)>0!=Ie(ht,Pe,Et)>0}function Ce(yt){var Et=yt.p,ht=yt.next.p;return yt.minX=Math.min(Et[0],ht[0]),yt.minY=Math.min(Et[1],ht[1]),yt.maxX=Math.max(Et[0],ht[0]),yt.maxY=Math.max(Et[1],ht[1]),yt}function ct(yt){for(var Et=yt[0],ht=yt[0],Pe=yt[0],et=yt[0],Oe=0;OePe[0]&&(Pe=Ue),Ue[1]et[1]&&(et=Ue)}var je=[Et,ht,Pe,et],ft=je.slice();for(Oe=0;Oe1?(Pe=ht[0],et=ht[1]):je>0&&(Pe+=Oe*je,et+=Ue*je)}return Oe=yt[0]-Pe,Ue=yt[1]-et,Oe*Oe+Ue*Ue}function Ye(yt,Et,ht,Pe,et,Oe,Ue,je){var ft=ht-yt,Ct=Pe-Et,Xe=Ue-et,hn=je-Oe,Nt=yt-et,Te=Et-Oe,vt=ft*ft+Ct*Ct,ze=ft*Xe+Ct*hn,Vt=Xe*Xe+hn*hn,Tt=ft*Nt+Ct*Te,un=Xe*Nt+hn*Te,on=vt*Vt-ze*ze,Lr,Yr,fi,Xi,Qi=on,hi=on;on===0?(Yr=0,Qi=1,Xi=un,hi=Vt):(Yr=ze*un-Vt*Tt,Xi=vt*un-ze*Tt,Yr<0?(Yr=0,Xi=un,hi=Vt):Yr>Qi&&(Yr=Qi,Xi=un+ze,hi=Vt)),Xi<0?(Xi=0,-Tt<0?Yr=0:-Tt>vt?Yr=Qi:(Yr=-Tt,Qi=vt)):Xi>hi&&(Xi=hi,-Tt+ze<0?Yr=0:-Tt+ze>vt?Yr=Qi:(Yr=-Tt+ze,Qi=vt)),Lr=Yr===0?0:Yr/Qi,fi=Xi===0?0:Xi/hi;var Go=(1-Lr)*yt+Lr*ht,Mo=(1-Lr)*Et+Lr*Pe,pe=(1-fi)*et+fi*Ue,Ii=(1-fi)*Oe+fi*je,Vi=pe-Go,ro=Ii-Mo;return Vi*Vi+ro*ro}function rt(yt,Et){return yt[0]===Et[0]?yt[1]-Et[1]:yt[0]-Et[0]}function Gt(yt){yt.sort(rt);for(var Et=[],ht=0;ht=2&&Ie(Et[Et.length-2],Et[Et.length-1],yt[ht])<=0;)Et.pop();Et.push(yt[ht])}for(var Pe=[],et=yt.length-1;et>=0;et--){for(;Pe.length>=2&&Ie(Pe[Pe.length-2],Pe[Pe.length-1],yt[et])<=0;)Pe.pop();Pe.push(yt[et])}return Pe.pop(),Et.pop(),Et.concat(Pe)}},75041:function(St){(function(){var me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x={rotl:function(v,z){return v<>>32-z},rotr:function(v,z){return v<<32-z|v>>>z},endian:function(v){if(v.constructor==Number)return x.rotl(v,8)&16711935|x.rotl(v,24)&4278255360;for(var z=0;z0;v--)z.push(Math.floor(Math.random()*256));return z},bytesToWords:function(v){for(var z=[],P=0,A=0;P>>5]|=v[P]<<24-A%32;return z},wordsToBytes:function(v){for(var z=[],P=0;P>>5]>>>24-P%32&255);return z},bytesToHex:function(v){for(var z=[],P=0;P>>4).toString(16)),z.push((v[P]&15).toString(16));return z.join("")},hexToBytes:function(v){for(var z=[],P=0;P>>6*(3-W)&63)):z.push("=");return z.join("")},base64ToBytes:function(v){v=v.replace(/[^A-Z0-9+\/]/ig,"");for(var z=[],P=0,A=0;P>>6-A*2);return z}};St.exports=x})()},57965:function(St,me,x){"use strict";x.d(me,{j2:function(){return v},b4:function(){return Y},YF:function(){return z},We:function(){return ie},TS:function(){return Gt},VR:function(){return Et},G9:function(){return Ge},ly:function(){return at},sd:function(){return nt}});function v(ht,Pe){return htPe?1:ht>=Pe?0:NaN}function z(ht){return ht.length===1&&(ht=P(ht)),{left:function(Pe,et,Oe,Ue){for(Oe==null&&(Oe=0),Ue==null&&(Ue=Pe.length);Oe>>1;ht(Pe[je],et)<0?Oe=je+1:Ue=je}return Oe},right:function(Pe,et,Oe,Ue){for(Oe==null&&(Oe=0),Ue==null&&(Ue=Pe.length);Oe>>1;ht(Pe[je],et)>0?Ue=je:Oe=je+1}return Oe}}}function P(ht){return function(Pe,et){return v(ht(Pe),et)}}var A=z(v),W=A.right,X=A.left,Y=W;function ie(ht,Pe){var et=ht.length,Oe=-1,Ue,je,ft;if(Pe==null){for(;++Oe=Ue)for(je=ft=Ue;++OeUe&&(je=Ue),ft=Ue)for(je=ft=Ue;++OeUe&&(je=Ue),ft0)return[ht];if((Oe=Pe0)for(ht=Math.ceil(ht/Ct),Pe=Math.floor(Pe/Ct),ft=new Array(je=Math.ceil(Pe-ht+1));++Ue=0?(je>=Be?10:je>=Ce?5:je>=ct?2:1)*Math.pow(10,Ue):-Math.pow(10,-Ue)/(je>=Be?10:je>=Ce?5:je>=ct?2:1)}function at(ht,Pe,et){var Oe=Math.abs(Pe-ht)/Math.max(0,et),Ue=Math.pow(10,Math.floor(Math.log(Oe)/Math.LN10)),je=Oe/Ue;return je>=Be?Ue*=10:je>=Ce?Ue*=5:je>=ct&&(Ue*=2),PeTe;)vt.pop(),--ze;var Vt=new Array(ze+1),Tt;for(je=0;je<=ze;++je)Tt=Vt[je]=[],Tt.x0=je>0?vt[je-1]:Nt,Tt.x1=je=0;)for(ft=ht[Pe],et=ft.length;--et>=0;)je[--Ue]=ft[et];return je}function yt(ht){return ht===null?NaN:+ht}function Et(ht,Pe,et){if(et==null&&(et=yt),!!(Oe=ht.length)){if((Pe=+Pe)<=0||Oe<2)return+et(ht[0],0,ht);if(Pe>=1)return+et(ht[Oe-1],Oe-1,ht);var Oe,Ue=(Oe-1)*Pe,je=Math.floor(Ue),ft=+et(ht[je],je,ht),Ct=+et(ht[je+1],je+1,ht);return ft+(Ct-ft)*(Ue-je)}}},9498:function(St){(function(me,x){St.exports=x()})(this,function(){"use strict";var me=1e3,x=6e4,v=36e5,z="millisecond",P="second",A="minute",W="hour",X="day",Y="week",ie="month",ae="quarter",se="year",Ie="date",Be="Invalid Date",Ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ct=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,nt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ue){var je=["th","st","nd","rd"],ft=Ue%100;return"["+Ue+(je[(ft-20)%10]||je[ft]||je[0])+"]"}},Ge=function(Ue,je,ft){var Ct=String(Ue);return!Ct||Ct.length>=je?Ue:""+Array(je+1-Ct.length).join(ft)+Ue},at={s:Ge,z:function(Ue){var je=-Ue.utcOffset(),ft=Math.abs(je),Ct=Math.floor(ft/60),Xe=ft%60;return(je<=0?"+":"-")+Ge(Ct,2,"0")+":"+Ge(Xe,2,"0")},m:function Ue(je,ft){if(je.date()1)return Ue(Nt[0])}else{var Te=je.name;rt[Te]=je,Xe=Te}return!Ct&&Xe&&(Ye=Xe),Xe||!Ct&&Ye},ht=function(Ue,je){if(yt(Ue))return Ue.clone();var ft=typeof je=="object"?je:{};return ft.date=Ue,ft.args=arguments,new et(ft)},Pe=at;Pe.l=Et,Pe.i=yt,Pe.w=function(Ue,je){return ht(Ue,{locale:je.$L,utc:je.$u,x:je.$x,$offset:je.$offset})};var et=function(){function Ue(ft){this.$L=Et(ft.locale,null,!0),this.parse(ft),this.$x=this.$x||ft.x||{},this[Gt]=!0}var je=Ue.prototype;return je.parse=function(ft){this.$d=function(Ct){var Xe=Ct.date,hn=Ct.utc;if(Xe===null)return new Date(NaN);if(Pe.u(Xe))return new Date;if(Xe instanceof Date)return new Date(Xe);if(typeof Xe=="string"&&!/Z$/i.test(Xe)){var Nt=Xe.match(Ce);if(Nt){var Te=Nt[2]-1||0,vt=(Nt[7]||"0").substring(0,3);return hn?new Date(Date.UTC(Nt[1],Te,Nt[3]||1,Nt[4]||0,Nt[5]||0,Nt[6]||0,vt)):new Date(Nt[1],Te,Nt[3]||1,Nt[4]||0,Nt[5]||0,Nt[6]||0,vt)}}return new Date(Xe)}(ft),this.init()},je.init=function(){var ft=this.$d;this.$y=ft.getFullYear(),this.$M=ft.getMonth(),this.$D=ft.getDate(),this.$W=ft.getDay(),this.$H=ft.getHours(),this.$m=ft.getMinutes(),this.$s=ft.getSeconds(),this.$ms=ft.getMilliseconds()},je.$utils=function(){return Pe},je.isValid=function(){return this.$d.toString()!==Be},je.isSame=function(ft,Ct){var Xe=ht(ft);return this.startOf(Ct)<=Xe&&Xe<=this.endOf(Ct)},je.isAfter=function(ft,Ct){return ht(ft)0&&typeof Be[0]!="number")}function Ie(Be,Ce,ct){var nt,Ge;if(typeof Be!=typeof Ce||ae(Be)||ae(Ce)||Be.prototype!==Ce.prototype||z(Be)!==z(Ce))return!1;var at=A(Be),Ye=A(Ce);if(at!==Ye)return!1;if(at||Ye)return Be.source===Ce.source&&W(Be)===W(Ce);if(X(Be)&&X(Ce))return Y.call(Be)===Y.call(Ce);var rt=se(Be),Gt=se(Ce);if(rt!==Gt)return!1;if(rt||Gt){if(Be.length!==Ce.length)return!1;for(nt=0;nt=0;nt--)if(yt[nt]!=Et[nt])return!1;for(nt=yt.length-1;nt>=0;nt--)if(Ge=yt[nt],!ie(Be[Ge],Ce[Ge],ct))return!1;return!0}St.exports=ie},67494:function(St,me,x){"use strict";var v=x(31989),z=x(35041),P=x(61054),A=x(67747);St.exports=function(X,Y,ie){if(!X||typeof X!="object"&&typeof X!="function")throw new P("`obj` must be an object or a function`");if(typeof Y!="string"&&typeof Y!="symbol")throw new P("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new P("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new P("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new P("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new P("`loose`, if provided, must be a boolean");var ae=arguments.length>3?arguments[3]:null,se=arguments.length>4?arguments[4]:null,Ie=arguments.length>5?arguments[5]:null,Be=arguments.length>6?arguments[6]:!1,Ce=!!A&&A(X,Y);if(v)v(X,Y,{configurable:Ie===null&&Ce?Ce.configurable:!Ie,enumerable:ae===null&&Ce?Ce.enumerable:!ae,value:ie,writable:se===null&&Ce?Ce.writable:!se});else if(Be||!ae&&!se&&!Ie)X[Y]=ie;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},8263:function(St,me,x){"use strict";var v=x(64253),z=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",P=Object.prototype.toString,A=Array.prototype.concat,W=x(67494),X=function(se){return typeof se=="function"&&P.call(se)==="[object Function]"},Y=x(3192)(),ie=function(se,Ie,Be,Ce){if(Ie in se){if(Ce===!0){if(se[Ie]===Be)return}else if(!X(Ce)||!Ce())return}Y?W(se,Ie,Be,!0):W(se,Ie,Be)},ae=function(se,Ie){var Be=arguments.length>2?arguments[2]:{},Ce=v(Ie);z&&(Ce=A.call(Ce,Object.getOwnPropertySymbols(Ie)));for(var ct=0;ct=this.minPts&&(v=this._mergeArrays(v,A))}this._assigned[P]!==1&&this._addToCluster(P,x)}},me.prototype._addToCluster=function(x,v){this.clusters[v].push(x),this._assigned[x]=1},me.prototype._regionQuery=function(x){for(var v=[],z=0;z0){for(var ie=0;ie=0);return v},me.prototype.assign=function(){for(var x=!1,v=this.dataset.length,z,P=0;P=this.minPts)return W}},z.prototype._regionQuery=function(P,A){A=A||this.epsilon;for(var W=[],X=0,Y=this.dataset.length;XA&&(z=P):v80*Nt){Tt=on=Xe[0],un=Lr=Xe[1];for(var Qi=Nt;Qion&&(on=Yr),fi>Lr&&(Lr=fi);Xi=Math.max(on-Tt,Lr-un),Xi=Xi!==0?32767/Xi:0}return z(ze,Vt,Nt,Tt,un,Xi,0),Vt}function x(Xe,hn,Nt,Te,vt){var ze,Vt;if(vt===Ct(Xe,hn,Nt,Te)>0)for(ze=hn;ze=hn;ze-=Te)Vt=Ue(ze,Xe[ze],Xe[ze+1],Vt);return Vt&&rt(Vt,Vt.next)&&(je(Vt),Vt=Vt.next),Vt}function v(Xe,hn){if(!Xe)return Xe;hn||(hn=Xe);var Nt=Xe,Te;do if(Te=!1,!Nt.steiner&&(rt(Nt,Nt.next)||Ye(Nt.prev,Nt,Nt.next)===0)){if(je(Nt),Nt=hn=Nt.prev,Nt===Nt.next)break;Te=!0}else Nt=Nt.next;while(Te||Nt!==hn);return hn}function z(Xe,hn,Nt,Te,vt,ze,Vt){if(Xe){!Vt&&ze&&Be(Xe,Te,vt,ze);for(var Tt=Xe,un,on;Xe.prev!==Xe.next;){if(un=Xe.prev,on=Xe.next,ze?A(Xe,Te,vt,ze):P(Xe)){hn.push(un.i/Nt|0),hn.push(Xe.i/Nt|0),hn.push(on.i/Nt|0),je(Xe),Xe=on.next,Tt=on.next;continue}if(Xe=on,Xe===Tt){Vt?Vt===1?(Xe=W(v(Xe),hn,Nt),z(Xe,hn,Nt,Te,vt,ze,2)):Vt===2&&X(Xe,hn,Nt,Te,vt,ze):z(v(Xe),hn,Nt,Te,vt,ze,1);break}}}}function P(Xe){var hn=Xe.prev,Nt=Xe,Te=Xe.next;if(Ye(hn,Nt,Te)>=0)return!1;for(var vt=hn.x,ze=Nt.x,Vt=Te.x,Tt=hn.y,un=Nt.y,on=Te.y,Lr=vtze?vt>Vt?vt:Vt:ze>Vt?ze:Vt,Xi=Tt>un?Tt>on?Tt:on:un>on?un:on,Qi=Te.next;Qi!==hn;){if(Qi.x>=Lr&&Qi.x<=fi&&Qi.y>=Yr&&Qi.y<=Xi&&Ge(vt,Tt,ze,un,Vt,on,Qi.x,Qi.y)&&Ye(Qi.prev,Qi,Qi.next)>=0)return!1;Qi=Qi.next}return!0}function A(Xe,hn,Nt,Te){var vt=Xe.prev,ze=Xe,Vt=Xe.next;if(Ye(vt,ze,Vt)>=0)return!1;for(var Tt=vt.x,un=ze.x,on=Vt.x,Lr=vt.y,Yr=ze.y,fi=Vt.y,Xi=Ttun?Tt>on?Tt:on:un>on?un:on,Go=Lr>Yr?Lr>fi?Lr:fi:Yr>fi?Yr:fi,Mo=ct(Xi,Qi,hn,Nt,Te),pe=ct(hi,Go,hn,Nt,Te),Ii=Xe.prevZ,Vi=Xe.nextZ;Ii&&Ii.z>=Mo&&Vi&&Vi.z<=pe;){if(Ii.x>=Xi&&Ii.x<=hi&&Ii.y>=Qi&&Ii.y<=Go&&Ii!==vt&&Ii!==Vt&&Ge(Tt,Lr,un,Yr,on,fi,Ii.x,Ii.y)&&Ye(Ii.prev,Ii,Ii.next)>=0||(Ii=Ii.prevZ,Vi.x>=Xi&&Vi.x<=hi&&Vi.y>=Qi&&Vi.y<=Go&&Vi!==vt&&Vi!==Vt&&Ge(Tt,Lr,un,Yr,on,fi,Vi.x,Vi.y)&&Ye(Vi.prev,Vi,Vi.next)>=0))return!1;Vi=Vi.nextZ}for(;Ii&&Ii.z>=Mo;){if(Ii.x>=Xi&&Ii.x<=hi&&Ii.y>=Qi&&Ii.y<=Go&&Ii!==vt&&Ii!==Vt&&Ge(Tt,Lr,un,Yr,on,fi,Ii.x,Ii.y)&&Ye(Ii.prev,Ii,Ii.next)>=0)return!1;Ii=Ii.prevZ}for(;Vi&&Vi.z<=pe;){if(Vi.x>=Xi&&Vi.x<=hi&&Vi.y>=Qi&&Vi.y<=Go&&Vi!==vt&&Vi!==Vt&&Ge(Tt,Lr,un,Yr,on,fi,Vi.x,Vi.y)&&Ye(Vi.prev,Vi,Vi.next)>=0)return!1;Vi=Vi.nextZ}return!0}function W(Xe,hn,Nt){var Te=Xe;do{var vt=Te.prev,ze=Te.next.next;!rt(vt,ze)&&Gt(vt,Te,Te.next,ze)&&Pe(vt,ze)&&Pe(ze,vt)&&(hn.push(vt.i/Nt|0),hn.push(Te.i/Nt|0),hn.push(ze.i/Nt|0),je(Te),je(Te.next),Te=Xe=ze),Te=Te.next}while(Te!==Xe);return v(Te)}function X(Xe,hn,Nt,Te,vt,ze){var Vt=Xe;do{for(var Tt=Vt.next.next;Tt!==Vt.prev;){if(Vt.i!==Tt.i&&at(Vt,Tt)){var un=Oe(Vt,Tt);Vt=v(Vt,Vt.next),un=v(un,un.next),z(Vt,hn,Nt,Te,vt,ze,0),z(un,hn,Nt,Te,vt,ze,0);return}Tt=Tt.next}Vt=Vt.next}while(Vt!==Xe)}function Y(Xe,hn,Nt,Te){var vt=[],ze,Vt,Tt,un,on;for(ze=0,Vt=hn.length;ze=Nt.next.y&&Nt.next.y!==Nt.y){var Tt=Nt.x+(vt-Nt.y)*(Nt.next.x-Nt.x)/(Nt.next.y-Nt.y);if(Tt<=Te&&Tt>ze&&(ze=Tt,Vt=Nt.x=Nt.x&&Nt.x>=on&&Te!==Nt.x&&Ge(vtVt.x||Nt.x===Vt.x&&Ie(Vt,Nt)))&&(Vt=Nt,Yr=fi)),Nt=Nt.next;while(Nt!==un);return Vt}function Ie(Xe,hn){return Ye(Xe.prev,Xe,hn.prev)<0&&Ye(hn.next,Xe,Xe.next)<0}function Be(Xe,hn,Nt,Te){var vt=Xe;do vt.z===0&&(vt.z=ct(vt.x,vt.y,hn,Nt,Te)),vt.prevZ=vt.prev,vt.nextZ=vt.next,vt=vt.next;while(vt!==Xe);vt.prevZ.nextZ=null,vt.prevZ=null,Ce(vt)}function Ce(Xe){var hn,Nt,Te,vt,ze,Vt,Tt,un,on=1;do{for(Nt=Xe,Xe=null,ze=null,Vt=0;Nt;){for(Vt++,Te=Nt,Tt=0,hn=0;hn0||un>0&&Te;)Tt!==0&&(un===0||!Te||Nt.z<=Te.z)?(vt=Nt,Nt=Nt.nextZ,Tt--):(vt=Te,Te=Te.nextZ,un--),ze?ze.nextZ=vt:Xe=vt,vt.prevZ=ze,ze=vt;Nt=Te}ze.nextZ=null,on*=2}while(Vt>1);return Xe}function ct(Xe,hn,Nt,Te,vt){return Xe=(Xe-Nt)*vt|0,hn=(hn-Te)*vt|0,Xe=(Xe|Xe<<8)&16711935,Xe=(Xe|Xe<<4)&252645135,Xe=(Xe|Xe<<2)&858993459,Xe=(Xe|Xe<<1)&1431655765,hn=(hn|hn<<8)&16711935,hn=(hn|hn<<4)&252645135,hn=(hn|hn<<2)&858993459,hn=(hn|hn<<1)&1431655765,Xe|hn<<1}function nt(Xe){var hn=Xe,Nt=Xe;do(hn.x=(Xe-Vt)*(ze-Tt)&&(Xe-Vt)*(Te-Tt)>=(Nt-Vt)*(hn-Tt)&&(Nt-Vt)*(ze-Tt)>=(vt-Vt)*(Te-Tt)}function at(Xe,hn){return Xe.next.i!==hn.i&&Xe.prev.i!==hn.i&&!ht(Xe,hn)&&(Pe(Xe,hn)&&Pe(hn,Xe)&&et(Xe,hn)&&(Ye(Xe.prev,Xe,hn.prev)||Ye(Xe,hn.prev,hn))||rt(Xe,hn)&&Ye(Xe.prev,Xe,Xe.next)>0&&Ye(hn.prev,hn,hn.next)>0)}function Ye(Xe,hn,Nt){return(hn.y-Xe.y)*(Nt.x-hn.x)-(hn.x-Xe.x)*(Nt.y-hn.y)}function rt(Xe,hn){return Xe.x===hn.x&&Xe.y===hn.y}function Gt(Xe,hn,Nt,Te){var vt=Et(Ye(Xe,hn,Nt)),ze=Et(Ye(Xe,hn,Te)),Vt=Et(Ye(Nt,Te,Xe)),Tt=Et(Ye(Nt,Te,hn));return!!(vt!==ze&&Vt!==Tt||vt===0&&yt(Xe,Nt,hn)||ze===0&&yt(Xe,Te,hn)||Vt===0&&yt(Nt,Xe,Te)||Tt===0&&yt(Nt,hn,Te))}function yt(Xe,hn,Nt){return hn.x<=Math.max(Xe.x,Nt.x)&&hn.x>=Math.min(Xe.x,Nt.x)&&hn.y<=Math.max(Xe.y,Nt.y)&&hn.y>=Math.min(Xe.y,Nt.y)}function Et(Xe){return Xe>0?1:Xe<0?-1:0}function ht(Xe,hn){var Nt=Xe;do{if(Nt.i!==Xe.i&&Nt.next.i!==Xe.i&&Nt.i!==hn.i&&Nt.next.i!==hn.i&&Gt(Nt,Nt.next,Xe,hn))return!0;Nt=Nt.next}while(Nt!==Xe);return!1}function Pe(Xe,hn){return Ye(Xe.prev,Xe,Xe.next)<0?Ye(Xe,hn,Xe.next)>=0&&Ye(Xe,Xe.prev,hn)>=0:Ye(Xe,hn,Xe.prev)<0||Ye(Xe,Xe.next,hn)<0}function et(Xe,hn){var Nt=Xe,Te=!1,vt=(Xe.x+hn.x)/2,ze=(Xe.y+hn.y)/2;do Nt.y>ze!=Nt.next.y>ze&&Nt.next.y!==Nt.y&&vt<(Nt.next.x-Nt.x)*(ze-Nt.y)/(Nt.next.y-Nt.y)+Nt.x&&(Te=!Te),Nt=Nt.next;while(Nt!==Xe);return Te}function Oe(Xe,hn){var Nt=new ft(Xe.i,Xe.x,Xe.y),Te=new ft(hn.i,hn.x,hn.y),vt=Xe.next,ze=hn.prev;return Xe.next=hn,hn.prev=Xe,Nt.next=vt,vt.prev=Nt,Te.next=Nt,Nt.prev=Te,ze.next=Te,Te.prev=ze,Te}function Ue(Xe,hn,Nt,Te){var vt=new ft(Xe,hn,Nt);return Te?(vt.next=Te.next,vt.prev=Te,Te.next.prev=vt,Te.next=vt):(vt.prev=vt,vt.next=vt),vt}function je(Xe){Xe.next.prev=Xe.prev,Xe.prev.next=Xe.next,Xe.prevZ&&(Xe.prevZ.nextZ=Xe.nextZ),Xe.nextZ&&(Xe.nextZ.prevZ=Xe.prevZ)}function ft(Xe,hn,Nt){this.i=Xe,this.x=hn,this.y=Nt,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}me.deviation=function(Xe,hn,Nt,Te){var vt=hn&&hn.length,ze=vt?hn[0]*Nt:Xe.length,Vt=Math.abs(Ct(Xe,0,ze,Nt));if(vt)for(var Tt=0,un=hn.length;Tt0&&(Te+=Xe[vt-1].length,Nt.holes.push(Te))}return Nt}},42676:function(St){"use strict";var me=St.exports={};me.isIE=function(x){function v(){var P=navigator.userAgent.toLowerCase();return P.indexOf("msie")!==-1||P.indexOf("trident")!==-1||P.indexOf(" edge/")!==-1}if(!v())return!1;if(!x)return!0;var z=function(){var P,A=3,W=document.createElement("div"),X=W.getElementsByTagName("i");do W.innerHTML="";while(X[0]);return A>4?A:P}();return x===z},me.isLegacyOpera=function(){return!!window.opera}},55776:function(St){"use strict";var me=St.exports={};me.forEach=function(x,v){for(var z=0;z div::-webkit-scrollbar { "+Be(["display: none"])+` } + +`,ft+="."+je+" { "+Be(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Ue,"animation-name: "+Ue])+` } +`,ft+="@-webkit-keyframes "+Ue+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,ft+="@keyframes "+Ue+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Oe(ft)}}function nt(ht){ht.className+=" "+se+"_animation_active"}function Ge(ht,Pe,et){if(ht.addEventListener)ht.addEventListener(Pe,et);else if(ht.attachEvent)ht.attachEvent("on"+Pe,et);else return P.error("[scroll] Don't know how to add event listeners.")}function at(ht,Pe,et){if(ht.removeEventListener)ht.removeEventListener(Pe,et);else if(ht.detachEvent)ht.detachEvent("on"+Pe,et);else return P.error("[scroll] Don't know how to remove event listeners.")}function Ye(ht){return W(ht).container.childNodes[0].childNodes[0].childNodes[0]}function rt(ht){return W(ht).container.childNodes[0].childNodes[0].childNodes[1]}function Gt(ht,Pe){var et=W(ht).listeners;if(!et.push)throw new Error("Cannot add listener to an element that is not detectable.");W(ht).listeners.push(Pe)}function yt(ht,Pe,et){et||(et=Pe,Pe=ht,ht=null),ht=ht||{};function Oe(){if(ht.debug){var Mo=Array.prototype.slice.call(arguments);if(Mo.unshift(Y.get(Pe),"Scroll: "),P.log.apply)P.log.apply(null,Mo);else for(var pe=0;pe=72.004&&Vi<=137.8347&&ro>=.8293&&ro<=55.8271}function ae(Vi,ro){let ai=-100+2*Vi+3*ro+.2*ro*ro+.1*Vi*ro+.2*P(A(Vi));return ai+=(20*v(6*Vi*W)+20*v(2*Vi*W))*2/3,ai+=(20*v(ro*W)+40*v(ro/3*W))*2/3,ai+=(160*v(ro/12*W)+320*v(ro*W/30))*2/3,ai}function se(Vi,ro){let ai=300+Vi+2*ro+.1*Vi*Vi+.1*Vi*ro+.1*P(A(Vi));return ai+=(20*v(6*Vi*W)+20*v(2*Vi*W))*2/3,ai+=(20*v(Vi*W)+40*v(Vi/3*W))*2/3,ai+=(150*v(Vi/12*W)+300*v(Vi/30*W))*2/3,ai}function Ie(Vi,ro){let ai=se(Vi-105,ro-35),Ms=ae(Vi-105,ro-35);const Ar=ro/180*W;let Rt=v(Ar);Rt=1-Y*Rt*Rt;const jn=P(Rt);return ai=ai*180/(X/jn*z(Ar)*W),Ms=Ms*180/(X*(1-Y)/(Rt*jn)*W),[ai,Ms]}function Be(Vi){const[ro,ai]=Vi;if(!ie(ro,ai))return[ro,ai];const Ms=Ie(ro,ai);return[ro+Ms[0],ai+Ms[1]]}function Ce(Vi){const[ro,ai]=Vi;if(!ie(ro,ai))return[ro,ai];let[Ms,Ar]=[ro,ai],Rt=Be([Ms,Ar]),jn=Rt[0]-ro,wr=Rt[1]-ai;for(;A(jn)>1e-6||A(wr)>1e-6;)Ms-=jn,Ar-=wr,Rt=Be([Ms,Ar]),jn=Rt[0]-ro,wr=Rt[1]-ai;return[Ms,Ar]}const{sin:ct,cos:nt,atan2:Ge,sqrt:at,PI:Ye}=Math,rt=Ye*3e3/180;function Gt(Vi){const[ro,ai]=Vi,Ms=ro-.0065,Ar=ai-.006,Rt=at(Ms*Ms+Ar*Ar)-2e-5*ct(Ar*rt),jn=Ge(Ar,Ms)-3e-6*nt(Ms*rt),wr=Rt*nt(jn),oi=Rt*ct(jn);return[wr,oi]}function yt(Vi){const[ro,ai]=Vi,Ms=ro,Ar=ai,Rt=at(Ms*Ms+Ar*Ar)+2e-5*ct(Ar*rt),jn=Ge(Ar,Ms)+3e-6*nt(Ms*rt),wr=Rt*nt(jn)+.0065,oi=Rt*ct(jn)+.006;return[wr,oi]}const Et=180/Math.PI,ht=Math.PI/180,Pe=6378137,et=20037508342789244e-9;function Oe(Vi){return[Vi[0]*Et/Pe,(Math.PI*.5-2*Math.atan(Math.exp(-Vi[1]/Pe)))*Et]}function Ue(Vi){const ro=Math.abs(Vi[0])<=180?Vi[0]:Vi[0]-(Vi[0]<0?-1:1)*360,ai=[Pe*ro*ht,Pe*Math.log(Math.tan(Math.PI*.25+.5*Vi[1]*ht))];return ai[0]>et&&(ai[0]=et),ai[0]<-et&&(ai[0]=-et),ai[1]>et&&(ai[1]=et),ai[1]<-et&&(ai[1]=-et),ai}const{abs:je}=Math,ft=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],Ct=[75,60,45,30,15,0],Xe=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],hn=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function Nt(Vi,ro,ai){const Ms=je(ro)/ai[9];let Ar=ai[0]+ai[1]*je(Vi),Rt=ai[2]+ai[3]*Ms+ai[4]*Math.pow(Ms,2)+ai[5]*Math.pow(Ms,3)+ai[6]*Math.pow(Ms,4)+ai[7]*Math.pow(Ms,5)+ai[8]*Math.pow(Ms,6);return Ar*=Vi<0?-1:1,Rt*=ro<0?-1:1,[Ar,Rt]}function Te(Vi){const[ro,ai]=Vi;let Ms=[];for(let Ar=0;ArCt[Ar]){Ms=hn[Ar];break}return Nt(ro,ai,Ms)}function vt(Vi){const[ro,ai]=Vi;let Ms=[];for(let Ar=0;Ar=ft[Ar]){Ms=Xe[Ar];break}return Nt(ro,ai,Ms)}function ze(Vi,ro){if(!Vi)throw new Error(ro)}function Vt(Vi){return!!Vi&&Object.prototype.toString.call(Vi)==="[object Array]"}function Tt(Vi){return!isNaN(Number(Vi))&&Vi!==null&&!Vt(Vi)}function un(...Vi){const ro=Vi.length-1;return function(...ai){let Ms=ro,Ar=Vi[ro].apply(null,ai);for(;Ms--;)Ar=Vi[Ms].call(null,Ar);return Ar}}function on(Vi,ro,ai=!1){if(Vi===null)return;let Ms,Ar,Rt,jn,wr,oi,Ti=0,Bi=0,no,Vr;const{type:Rn}=Vi,Xt=Rn==="FeatureCollection",Sn=Rn==="Feature",Pn=Xt?Vi.features.length:1;for(let hr=0;hr=2,`Invalid input coordinate: ${Vi}`),ze(Tt(Vi[0])&&Tt(Vi[1]),`Invalid input coordinate: ${Vi}`),Vi=Vi.map(Number),jn=!0);const wr=Ar;return jn?wr(Vi):(on(Vi,oi=>{[oi[0],oi[1]]=wr(oi)}),Vi)}const Ii=Object.assign(Object.assign({},Lr),{CRSTypes:Lr,transform:pe})},15468:function(St,me,x){var v=x(19545),z=function(X){this.precision=X&&X.precision?X.precision:17,this.direction=X&&X.direction?X.direction:!1,this.pseudoNode=X&&X.pseudoNode?X.pseudoNode:!1,this.objectComparator=X&&X.objectComparator?X.objectComparator:W};z.prototype.compare=function(X,Y){if(X.type!==Y.type||!A(X,Y))return!1;switch(X.type){case"Point":return this.compareCoord(X.coordinates,Y.coordinates);case"LineString":return this.compareLine(X.coordinates,Y.coordinates,0,!1);case"Polygon":return this.comparePolygon(X,Y);case"Feature":return this.compareFeature(X,Y);default:if(X.type.indexOf("Multi")===0){var ie=this,ae=P(X),se=P(Y);return ae.every(function(Ie){return this.some(function(Be){return ie.compare(Ie,Be)})},se)}}return!1};function P(X){return X.coordinates.map(function(Y){return{type:X.type.replace("Multi",""),coordinates:Y}})}function A(X,Y){return X.hasOwnProperty("coordinates")?X.coordinates.length===Y.coordinates.length:X.length===Y.length}z.prototype.compareCoord=function(X,Y){if(X.length!==Y.length)return!1;for(var ie=0;ie=0&&(ie=[].concat(X.slice(ae,X.length),X.slice(1,ae+1))),ie},z.prototype.comparePath=function(X,Y){var ie=this;return X.every(function(ae,se){return ie.compareCoord(ae,this[se])},Y)},z.prototype.comparePolygon=function(X,Y){if(this.compareLine(X.coordinates[0],Y.coordinates[0],1,!0)){var ie=X.coordinates.slice(1,X.coordinates.length),ae=Y.coordinates.slice(1,Y.coordinates.length),se=this;return ie.every(function(Ie){return this.some(function(Be){return se.compareLine(Ie,Be,1,!0)})},ae)}else return!1},z.prototype.compareFeature=function(X,Y){return X.id!==Y.id||!this.objectComparator(X.properties,Y.properties)||!this.compareBBox(X,Y)?!1:this.compare(X.geometry,Y.geometry)},z.prototype.compareBBox=function(X,Y){return!!(!X.bbox&&!Y.bbox||X.bbox&&Y.bbox&&this.compareCoord(X.bbox,Y.bbox))},z.prototype.removePseudo=function(X){return X};function W(X,Y){return v(X,Y,{strict:!0})}St.exports=z},56898:function(St,me,x){var v=x(79535),z=x(78161),P=x(9750),A=x(76314).Z,W=P.featureEach,X=P.coordEach,Y=z.polygon,ie=z.featureCollection;function ae(se){var Ie=new v(se);return Ie.insert=function(Be){if(Be.type!=="Feature")throw new Error("invalid feature");return Be.bbox=Be.bbox?Be.bbox:A(Be),v.prototype.insert.call(this,Be)},Ie.load=function(Be){var Ce=[];return Array.isArray(Be)?Be.forEach(function(ct){if(ct.type!=="Feature")throw new Error("invalid features");ct.bbox=ct.bbox?ct.bbox:A(ct),Ce.push(ct)}):W(Be,function(ct){if(ct.type!=="Feature")throw new Error("invalid features");ct.bbox=ct.bbox?ct.bbox:A(ct),Ce.push(ct)}),v.prototype.load.call(this,Ce)},Ie.remove=function(Be,Ce){if(Be.type!=="Feature")throw new Error("invalid feature");return Be.bbox=Be.bbox?Be.bbox:A(Be),v.prototype.remove.call(this,Be,Ce)},Ie.clear=function(){return v.prototype.clear.call(this)},Ie.search=function(Be){var Ce=v.prototype.search.call(this,this.toBBox(Be));return ie(Ce)},Ie.collides=function(Be){return v.prototype.collides.call(this,this.toBBox(Be))},Ie.all=function(){var Be=v.prototype.all.call(this);return ie(Be)},Ie.toJSON=function(){return v.prototype.toJSON.call(this)},Ie.fromJSON=function(Be){return v.prototype.fromJSON.call(this,Be)},Ie.toBBox=function(Be){var Ce;if(Be.bbox)Ce=Be.bbox;else if(Array.isArray(Be)&&Be.length===4)Ce=Be;else if(Array.isArray(Be)&&Be.length===6)Ce=[Be[0],Be[1],Be[3],Be[4]];else if(Be.type==="Feature")Ce=A(Be);else if(Be.type==="FeatureCollection")Ce=A(Be);else throw new Error("invalid geojson");return{minX:Ce[0],minY:Ce[1],maxX:Ce[2],maxY:Ce[3]}},Ie}St.exports=ae,St.exports.default=ae},3091:function(St,me,x){"use strict";var v,z=x(63550),P=x(4892),A=x(79761),W=x(45463),X=x(35041),Y=x(61054),ie=x(43839),ae=Function,se=function(Te){try{return ae('"use strict"; return ('+Te+").constructor;")()}catch(vt){}},Ie=Object.getOwnPropertyDescriptor;if(Ie)try{Ie({},"")}catch(Te){Ie=null}var Be=function(){throw new Y},Ce=Ie?function(){try{return arguments.callee,Be}catch(Te){try{return Ie(arguments,"callee").get}catch(vt){return Be}}}():Be,ct=x(9997)(),nt=x(63825)(),Ge=Object.getPrototypeOf||(nt?function(Te){return Te.__proto__}:null),at={},Ye=typeof Uint8Array=="undefined"||!Ge?v:Ge(Uint8Array),rt={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?v:ArrayBuffer,"%ArrayIteratorPrototype%":ct&&Ge?Ge([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":at,"%AsyncGenerator%":at,"%AsyncGeneratorFunction%":at,"%AsyncIteratorPrototype%":at,"%Atomics%":typeof Atomics=="undefined"?v:Atomics,"%BigInt%":typeof BigInt=="undefined"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":z,"%eval%":eval,"%EvalError%":P,"%Float32Array%":typeof Float32Array=="undefined"?v:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?v:FinalizationRegistry,"%Function%":ae,"%GeneratorFunction%":at,"%Int8Array%":typeof Int8Array=="undefined"?v:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?v:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ct&&Ge?Ge(Ge([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map=="undefined"?v:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ct||!Ge?v:Ge(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?v:Promise,"%Proxy%":typeof Proxy=="undefined"?v:Proxy,"%RangeError%":A,"%ReferenceError%":W,"%Reflect%":typeof Reflect=="undefined"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?v:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ct||!Ge?v:Ge(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ct&&Ge?Ge(""[Symbol.iterator]()):v,"%Symbol%":ct?Symbol:v,"%SyntaxError%":X,"%ThrowTypeError%":Ce,"%TypedArray%":Ye,"%TypeError%":Y,"%Uint8Array%":typeof Uint8Array=="undefined"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?v:Uint32Array,"%URIError%":ie,"%WeakMap%":typeof WeakMap=="undefined"?v:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?v:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?v:WeakSet};if(Ge)try{null.error}catch(Te){var Gt=Ge(Ge(Te));rt["%Error.prototype%"]=Gt}var yt=function Te(vt){var ze;if(vt==="%AsyncFunction%")ze=se("async function () {}");else if(vt==="%GeneratorFunction%")ze=se("function* () {}");else if(vt==="%AsyncGeneratorFunction%")ze=se("async function* () {}");else if(vt==="%AsyncGenerator%"){var Vt=Te("%AsyncGeneratorFunction%");Vt&&(ze=Vt.prototype)}else if(vt==="%AsyncIteratorPrototype%"){var Tt=Te("%AsyncGenerator%");Tt&&Ge&&(ze=Ge(Tt.prototype))}return rt[vt]=ze,ze},Et={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ht=x(36723),Pe=x(16663),et=ht.call(Function.call,Array.prototype.concat),Oe=ht.call(Function.apply,Array.prototype.splice),Ue=ht.call(Function.call,String.prototype.replace),je=ht.call(Function.call,String.prototype.slice),ft=ht.call(Function.call,RegExp.prototype.exec),Ct=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xe=/\\(\\)?/g,hn=function(vt){var ze=je(vt,0,1),Vt=je(vt,-1);if(ze==="%"&&Vt!=="%")throw new X("invalid intrinsic syntax, expected closing `%`");if(Vt==="%"&&ze!=="%")throw new X("invalid intrinsic syntax, expected opening `%`");var Tt=[];return Ue(vt,Ct,function(un,on,Lr,Yr){Tt[Tt.length]=Lr?Ue(Yr,Xe,"$1"):on||un}),Tt},Nt=function(vt,ze){var Vt=vt,Tt;if(Pe(Et,Vt)&&(Tt=Et[Vt],Vt="%"+Tt[0]+"%"),Pe(rt,Vt)){var un=rt[Vt];if(un===at&&(un=yt(Vt)),typeof un=="undefined"&&!ze)throw new Y("intrinsic "+vt+" exists, but is not available. Please file an issue!");return{alias:Tt,name:Vt,value:un}}throw new X("intrinsic "+vt+" does not exist!")};St.exports=function(vt,ze){if(typeof vt!="string"||vt.length===0)throw new Y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ze!="boolean")throw new Y('"allowMissing" argument must be a boolean');if(ft(/^%?[^%]*%?$/,vt)===null)throw new X("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Vt=hn(vt),Tt=Vt.length>0?Vt[0]:"",un=Nt("%"+Tt+"%",ze),on=un.name,Lr=un.value,Yr=!1,fi=un.alias;fi&&(Tt=fi[0],Oe(Vt,et([0,1],fi)));for(var Xi=1,Qi=!0;Xi=Vt.length){var pe=Ie(Lr,hi);Qi=!!pe,Qi&&"get"in pe&&!("originalValue"in pe.get)?Lr=pe.get:Lr=Lr[hi]}else Qi=Pe(Lr,hi),Lr=Lr[hi];Qi&&!Yr&&(rt[on]=Lr)}}return Lr}},67747:function(St,me,x){"use strict";var v=x(3091),z=v("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(P){z=null}St.exports=z},83959:function(St,me,x){var v;(function(z,P,A,W){"use strict";var X=["","webkit","Moz","MS","ms","o"],Y=P.createElement("div"),ie="function",ae=Math.round,se=Math.abs,Ie=Date.now;function Be(sn,dt,Mt){return setTimeout(Gt(sn,Mt),dt)}function Ce(sn,dt,Mt){return Array.isArray(sn)?(ct(sn,Mt[dt],Mt),!0):!1}function ct(sn,dt,Mt){var Zt;if(sn)if(sn.forEach)sn.forEach(dt,Mt);else if(sn.length!==W)for(Zt=0;Zt\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ur=z.console&&(z.console.warn||z.console.log);return Ur&&Ur.call(z.console,Zt,Nn),sn.apply(this,arguments)}}var Ge;typeof Object.assign!="function"?Ge=function(dt){if(dt===W||dt===null)throw new TypeError("Cannot convert undefined or null to object");for(var Mt=Object(dt),Zt=1;Zt-1}function Ue(sn){return sn.trim().split(/\s+/g)}function je(sn,dt,Mt){if(sn.indexOf&&!Mt)return sn.indexOf(dt);for(var Zt=0;Ztrs[dt]}):Zt=Zt.sort()),Zt}function Xe(sn,dt){for(var Mt,Zt,Kt=dt[0].toUpperCase()+dt.slice(1),Nn=0;Nn1&&!Mt.firstMultiple?Mt.firstMultiple=Rn(dt):Kt===1&&(Mt.firstMultiple=!1);var Nn=Mt.firstInput,Ur=Mt.firstMultiple,Ui=Ur?Ur.center:Nn.center,Ao=dt.center=Xt(Zt);dt.timeStamp=Ie(),dt.deltaTime=dt.timeStamp-Nn.timeStamp,dt.angle=mt(Ui,Ao),dt.distance=hr(Ui,Ao),no(Mt,dt),dt.offsetDirection=Pn(dt.deltaX,dt.deltaY);var rs=Sn(dt.deltaTime,dt.deltaX,dt.deltaY);dt.overallVelocityX=rs.x,dt.overallVelocityY=rs.y,dt.overallVelocity=se(rs.x)>se(rs.y)?rs.x:rs.y,dt.scale=Ur?kt(Ur.pointers,Zt):1,dt.rotation=Ur?tt(Ur.pointers,Zt):0,dt.maxPointers=Mt.prevInput?dt.pointers.length>Mt.prevInput.maxPointers?dt.pointers.length:Mt.prevInput.maxPointers:dt.pointers.length,Vr(Mt,dt);var ps=sn.element;et(dt.srcEvent.target,ps)&&(ps=dt.srcEvent.target),dt.target=ps}function no(sn,dt){var Mt=dt.center,Zt=sn.offsetDelta||{},Kt=sn.prevDelta||{},Nn=sn.prevInput||{};(dt.eventType===Xi||Nn.eventType===hi)&&(Kt=sn.prevDelta={x:Nn.deltaX||0,y:Nn.deltaY||0},Zt=sn.offsetDelta={x:Mt.x,y:Mt.y}),dt.deltaX=Kt.x+(Mt.x-Zt.x),dt.deltaY=Kt.y+(Mt.y-Zt.y)}function Vr(sn,dt){var Mt=sn.lastInterval||dt,Zt=dt.timeStamp-Mt.timeStamp,Kt,Nn,Ur,Ui;if(dt.eventType!=Go&&(Zt>fi||Mt.velocity===W)){var Ao=dt.deltaX-Mt.deltaX,rs=dt.deltaY-Mt.deltaY,ps=Sn(Zt,Ao,rs);Nn=ps.x,Ur=ps.y,Kt=se(ps.x)>se(ps.y)?ps.x:ps.y,Ui=Pn(Ao,rs),sn.lastInterval=dt}else Kt=Mt.velocity,Nn=Mt.velocityX,Ur=Mt.velocityY,Ui=Mt.direction;dt.velocity=Kt,dt.velocityX=Nn,dt.velocityY=Ur,dt.direction=Ui}function Rn(sn){for(var dt=[],Mt=0;Mt=se(dt)?sn<0?pe:Ii:dt<0?Vi:ro}function hr(sn,dt,Mt){Mt||(Mt=Rt);var Zt=dt[Mt[0]]-sn[Mt[0]],Kt=dt[Mt[1]]-sn[Mt[1]];return Math.sqrt(Zt*Zt+Kt*Kt)}function mt(sn,dt,Mt){Mt||(Mt=Rt);var Zt=dt[Mt[0]]-sn[Mt[0]],Kt=dt[Mt[1]]-sn[Mt[1]];return Math.atan2(Kt,Zt)*180/Math.PI}function tt(sn,dt){return mt(dt[1],dt[0],jn)+mt(sn[1],sn[0],jn)}function kt(sn,dt){return hr(dt[0],dt[1],jn)/hr(sn[0],sn[1],jn)}var vn={mousedown:Xi,mousemove:Qi,mouseup:hi},vr="mousedown",qr="mousemove mouseup";function Ni(){this.evEl=vr,this.evWin=qr,this.pressed=!1,wr.apply(this,arguments)}rt(Ni,wr,{handler:function(dt){var Mt=vn[dt.type];Mt&Xi&&dt.button===0&&(this.pressed=!0),Mt&Qi&&dt.which!==1&&(Mt=hi),this.pressed&&(Mt&hi&&(this.pressed=!1),this.callback(this.manager,Mt,{pointers:[dt],changedPointers:[dt],pointerType:Lr,srcEvent:dt}))}});var li={pointerdown:Xi,pointermove:Qi,pointerup:hi,pointercancel:Go,pointerout:Go},Un={2:un,3:on,4:Lr,5:Yr},dn="pointerdown",xt="pointermove pointerup pointercancel";z.MSPointerEvent&&!z.PointerEvent&&(dn="MSPointerDown",xt="MSPointerMove MSPointerUp MSPointerCancel");function it(){this.evEl=dn,this.evWin=xt,wr.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}rt(it,wr,{handler:function(dt){var Mt=this.store,Zt=!1,Kt=dt.type.toLowerCase().replace("ms",""),Nn=li[Kt],Ur=Un[dt.pointerType]||dt.pointerType,Ui=Ur==un,Ao=je(Mt,dt.pointerId,"pointerId");Nn&Xi&&(dt.button===0||Ui)?Ao<0&&(Mt.push(dt),Ao=Mt.length-1):Nn&(hi|Go)&&(Zt=!0),!(Ao<0)&&(Mt[Ao]=dt,this.callback(this.manager,Nn,{pointers:Mt,changedPointers:[dt],pointerType:Ur,srcEvent:dt}),Zt&&Mt.splice(Ao,1))}});var Bt={touchstart:Xi,touchmove:Qi,touchend:hi,touchcancel:Go},rn="touchstart",ir="touchstart touchmove touchend touchcancel";function tr(){this.evTarget=rn,this.evWin=ir,this.started=!1,wr.apply(this,arguments)}rt(tr,wr,{handler:function(dt){var Mt=Bt[dt.type];if(Mt===Xi&&(this.started=!0),!!this.started){var Zt=Jn.call(this,dt,Mt);Mt&(hi|Go)&&Zt[0].length-Zt[1].length===0&&(this.started=!1),this.callback(this.manager,Mt,{pointers:Zt[0],changedPointers:Zt[1],pointerType:un,srcEvent:dt})}}});function Jn(sn,dt){var Mt=ft(sn.touches),Zt=ft(sn.changedTouches);return dt&(hi|Go)&&(Mt=Ct(Mt.concat(Zt),"identifier",!0)),[Mt,Zt]}var nn={touchstart:Xi,touchmove:Qi,touchend:hi,touchcancel:Go},er="touchstart touchmove touchend touchcancel";function Fr(){this.evTarget=er,this.targetIds={},wr.apply(this,arguments)}rt(Fr,wr,{handler:function(dt){var Mt=nn[dt.type],Zt=jr.call(this,dt,Mt);Zt&&this.callback(this.manager,Mt,{pointers:Zt[0],changedPointers:Zt[1],pointerType:un,srcEvent:dt})}});function jr(sn,dt){var Mt=ft(sn.touches),Zt=this.targetIds;if(dt&(Xi|Qi)&&Mt.length===1)return Zt[Mt[0].identifier]=!0,[Mt,Mt];var Kt,Nn,Ur=ft(sn.changedTouches),Ui=[],Ao=this.target;if(Nn=Mt.filter(function(rs){return et(rs.target,Ao)}),dt===Xi)for(Kt=0;Kt-1&&Zt.splice(Nn,1)};setTimeout(Kt,bo)}}function Pr(sn){for(var dt=sn.srcEvent.clientX,Mt=sn.srcEvent.clientY,Zt=0;Zt-1&&this.requireFail.splice(dt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(sn){return!!this.simultaneous[sn.id]},emit:function(sn){var dt=this,Mt=this.state;function Zt(Kt){dt.manager.emit(Kt,sn)}Mt=Ln&&Zt(dt.options.event+ko(Mt))},tryEmit:function(sn){if(this.canEmit())return this.emit(sn);this.state=Yi},canEmit:function(){for(var sn=0;sndt.threshold&&Kt&dt.direction},attrTest:function(sn){return Ts.prototype.attrTest.call(this,sn)&&(this.state&ii||!(this.state&ii)&&this.directionTest(sn))},emit:function(sn){this.pX=sn.deltaX,this.pY=sn.deltaY;var dt=_i(sn.direction);dt&&(sn.additionalEvent=this.options.event+dt),this._super.emit.call(this,sn)}});function Ai(){Ts.apply(this,arguments)}rt(Ai,Ts,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Zi]},attrTest:function(sn){return this._super.attrTest.call(this,sn)&&(Math.abs(sn.scale-1)>this.options.threshold||this.state&ii)},emit:function(sn){if(sn.scale!==1){var dt=sn.scale<1?"in":"out";sn.additionalEvent=this.options.event+dt}this._super.emit.call(this,sn)}});function Ri(){so.apply(this,arguments),this._timer=null,this._input=null}rt(Ri,so,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[zr]},process:function(sn){var dt=this.options,Mt=sn.pointers.length===dt.pointers,Zt=sn.distancedt.time;if(this._input=sn,!Zt||!Mt||sn.eventType&(hi|Go)&&!Kt)this.reset();else if(sn.eventType&Xi)this.reset(),this._timer=Be(function(){this.state=zn,this.tryEmit()},dt.time,this);else if(sn.eventType&hi)return zn;return Yi},reset:function(){clearTimeout(this._timer)},emit:function(sn){this.state===zn&&(sn&&sn.eventType&hi?this.manager.emit(this.options.event+"up",sn):(this._input.timeStamp=Ie(),this.manager.emit(this.options.event,this._input)))}});function To(){Ts.apply(this,arguments)}rt(To,Ts,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Zi]},attrTest:function(sn){return this._super.attrTest.call(this,sn)&&(Math.abs(sn.rotation)>this.options.threshold||this.state&ii)}});function yo(){Ts.apply(this,arguments)}rt(yo,Ts,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ai|Ms,pointers:1},getTouchAction:function(){return Qr.prototype.getTouchAction.call(this)},attrTest:function(sn){var dt=this.options.direction,Mt;return dt&(ai|Ms)?Mt=sn.overallVelocity:dt&ai?Mt=sn.overallVelocityX:dt&Ms&&(Mt=sn.overallVelocityY),this._super.attrTest.call(this,sn)&&dt&sn.offsetDirection&&sn.distance>this.options.threshold&&sn.maxPointers==this.options.pointers&&se(Mt)>this.options.velocity&&sn.eventType&hi},emit:function(sn){var dt=_i(sn.offsetDirection);dt&&this.manager.emit(this.options.event+dt,sn),this.manager.emit(this.options.event,sn)}});function ao(){so.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}rt(ao,so,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ei]},process:function(sn){var dt=this.options,Mt=sn.pointers.length===dt.pointers,Zt=sn.distance>1,se=-7,Ie=z?A-1:0,Be=z?-1:1,Ce=x[v+Ie];for(Ie+=Be,W=Ce&(1<<-se)-1,Ce>>=-se,se+=Y;se>0;W=W*256+x[v+Ie],Ie+=Be,se-=8);for(X=W&(1<<-se)-1,W>>=-se,se+=P;se>0;X=X*256+x[v+Ie],Ie+=Be,se-=8);if(W===0)W=1-ae;else{if(W===ie)return X?NaN:(Ce?-1:1)*(1/0);X=X+Math.pow(2,P),W=W-ae}return(Ce?-1:1)*X*Math.pow(2,W-P)},me.write=function(x,v,z,P,A,W){var X,Y,ie,ae=W*8-A-1,se=(1<>1,Be=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ce=P?0:W-1,ct=P?1:-1,nt=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(Y=isNaN(v)?1:0,X=se):(X=Math.floor(Math.log(v)/Math.LN2),v*(ie=Math.pow(2,-X))<1&&(X--,ie*=2),X+Ie>=1?v+=Be/ie:v+=Be*Math.pow(2,1-Ie),v*ie>=2&&(X++,ie/=2),X+Ie>=se?(Y=0,X=se):X+Ie>=1?(Y=(v*ie-1)*Math.pow(2,A),X=X+Ie):(Y=v*Math.pow(2,Ie-1)*Math.pow(2,A),X=0));A>=8;x[z+Ce]=Y&255,Ce+=ct,Y/=256,A-=8);for(X=X<0;x[z+Ce]=X&255,Ce+=ct,X/=256,ae-=8);x[z+Ce-ct]|=nt*128}},3039:function(St,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0});var x=Symbol.for("INJECTION");function v(X,Y,ie,ae){function se(){return ae&&!Reflect.hasMetadata(x,this,Y)&&Reflect.defineMetadata(x,ie(),this,Y),Reflect.hasMetadata(x,this,Y)?Reflect.getMetadata(x,this,Y):ie()}function Ie(Be){Reflect.defineMetadata(x,Be,this,Y)}Object.defineProperty(X,Y,{configurable:!0,enumerable:!0,get:se,set:Ie})}function z(X,Y){return function(ie){return function(ae,se){var Ie=function(){return X.get(ie)};v(ae,se,Ie,Y)}}}me.makePropertyInjectDecorator=z;function P(X,Y){return function(ie,ae){return function(se,Ie){var Be=function(){return X.getNamed(ie,ae)};v(se,Ie,Be,Y)}}}me.makePropertyInjectNamedDecorator=P;function A(X,Y){return function(ie,ae,se){return function(Ie,Be){var Ce=function(){return X.getTagged(ie,ae,se)};v(Ie,Be,Ce,Y)}}}me.makePropertyInjectTaggedDecorator=A;function W(X,Y){return function(ie){return function(ae,se){var Ie=function(){return X.getAll(ie)};v(ae,se,Ie,Y)}}}me.makePropertyMultiInjectDecorator=W},11922:function(St,me,x){"use strict";var v;v={value:!0};var z=x(3039);function P(A,W){W===void 0&&(W=!0);var X=z.makePropertyInjectDecorator(A,W),Y=z.makePropertyInjectNamedDecorator(A,W),ie=z.makePropertyInjectTaggedDecorator(A,W),ae=z.makePropertyMultiInjectDecorator(A,W);return{lazyInject:X,lazyInjectNamed:Y,lazyInjectTagged:ie,lazyMultiInject:ae}}me.Z=P},80626:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.tagProperty=me.tagParameter=me.decorate=void 0;var v=x(36078),z=x(50295);function P(ae,se,Ie,Be){var Ce=z.TAGGED;W(Ce,ae,se,Be,Ie)}me.tagParameter=P;function A(ae,se,Ie){var Be=z.TAGGED_PROP;W(Be,ae.constructor,se,Ie)}me.tagProperty=A;function W(ae,se,Ie,Be,Ce){var ct={},nt=typeof Ce=="number",Ge=Ce!==void 0&&nt?Ce.toString():Ie;if(nt&&Ie!==void 0)throw new Error(v.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(ae,se)&&(ct=Reflect.getMetadata(ae,se));var at=ct[Ge];if(!Array.isArray(at))at=[];else for(var Ye=0,rt=at;Ye= than the number of constructor arguments of its base class.")};me.ARGUMENTS_LENGTH_MISMATCH=v,me.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",me.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",me.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",me.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",me.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var z=function(){for(var A=[],W=0;W0&&Et[Et.length-1])&&(Oe[0]===6||Oe[0]===2)){rt=0;continue}if(Oe[0]===3&&(!Et||Oe[1]>Et[0]&&Oe[1]0?W._map.set(Y,ie):W._map.delete(Y)})},P.prototype.hasKey=function(A){if(A==null)throw new Error(v.NULL_ARGUMENT);return this._map.has(A)},P.prototype.clone=function(){var A=new P;return this._map.forEach(function(W,X){W.forEach(function(Y){return A.add(X,Y.clone())})}),A},P.prototype.traverse=function(A){this._map.forEach(function(W,X){A(X,W)})},P}();me.Lookup=z},99311:function(St,me,x){"use strict";var v;v={value:!0},v=v=v=v=v=v=me.GW=v=v=me.zY=v=v=v=v=v=me.f3=v=v=me.b2=v=v=v=v=v=me.W2=v=void 0;var z=x(50295);v=z;var P=x(70596);Object.defineProperty(me,"W2",{enumerable:!0,get:function(){return P.Container}});var A=x(77690);v={enumerable:!0,get:function(){return A.BindingScopeEnum}},v={enumerable:!0,get:function(){return A.BindingTypeEnum}},v={enumerable:!0,get:function(){return A.TargetTypeEnum}};var W=x(42913);v={enumerable:!0,get:function(){return W.AsyncContainerModule}},v={enumerable:!0,get:function(){return W.ContainerModule}};var X=x(91773);Object.defineProperty(me,"b2",{enumerable:!0,get:function(){return X.injectable}});var Y=x(79189);v={enumerable:!0,get:function(){return Y.tagged}};var ie=x(79817);v={enumerable:!0,get:function(){return ie.named}};var ae=x(76213);Object.defineProperty(me,"f3",{enumerable:!0,get:function(){return ae.inject}}),v={enumerable:!0,get:function(){return ae.LazyServiceIdentifer}};var se=x(71316);v={enumerable:!0,get:function(){return se.optional}};var Ie=x(19235);v={enumerable:!0,get:function(){return Ie.unmanaged}};var Be=x(41528);v={enumerable:!0,get:function(){return Be.multiInject}};var Ce=x(8245);v={enumerable:!0,get:function(){return Ce.targetName}};var ct=x(71971);Object.defineProperty(me,"zY",{enumerable:!0,get:function(){return ct.postConstruct}});var nt=x(43870);v={enumerable:!0,get:function(){return nt.MetadataReader}};var Ge=x(70023);v={enumerable:!0,get:function(){return Ge.id}};var at=x(80626);Object.defineProperty(me,"GW",{enumerable:!0,get:function(){return at.decorate}});var Ye=x(83140);v={enumerable:!0,get:function(){return Ye.traverseAncerstors}},v={enumerable:!0,get:function(){return Ye.taggedConstraint}},v={enumerable:!0,get:function(){return Ye.namedConstraint}},v={enumerable:!0,get:function(){return Ye.typeConstraint}};var rt=x(29552);v={enumerable:!0,get:function(){return rt.getServiceIdentifierAsString}};var Gt=x(34384);v={enumerable:!0,get:function(){return Gt.multiBindToService}}},91519:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.Context=void 0;var v=x(70023),z=function(){function P(A){this.id=v.id(),this.container=A}return P.prototype.addPlan=function(A){this.plan=A},P.prototype.setCurrentRequest=function(A){this.currentRequest=A},P}();me.Context=z},25092:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.Metadata=void 0;var v=x(50295),z=function(){function P(A,W){this.key=A,this.value=W}return P.prototype.toString=function(){return this.key===v.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},P}();me.Metadata=z},43870:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.MetadataReader=void 0;var v=x(50295),z=function(){function P(){}return P.prototype.getConstructorMetadata=function(A){var W=Reflect.getMetadata(v.PARAM_TYPES,A),X=Reflect.getMetadata(v.TAGGED,A);return{compilerGeneratedMetadata:W,userGeneratedMetadata:X||{}}},P.prototype.getPropertiesMetadata=function(A){var W=Reflect.getMetadata(v.TAGGED_PROP,A)||[];return W},P}();me.MetadataReader=z},6335:function(St,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.Plan=void 0;var x=function(){function v(z,P){this.parentContext=z,this.rootRequest=P}return v}();me.Plan=x},54142:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.getBindingDictionary=me.createMockRequest=me.plan=void 0;var v=x(13497),z=x(36078),P=x(77690),A=x(50295),W=x(92542),X=x(29552),Y=x(91519),ie=x(25092),ae=x(6335),se=x(16664),Ie=x(14810),Be=x(69660);function Ce(yt){return yt._bindingDictionary}me.getBindingDictionary=Ce;function ct(yt,Et,ht,Pe,et,Oe){var Ue=yt?A.MULTI_INJECT_TAG:A.INJECT_TAG,je=new ie.Metadata(Ue,ht),ft=new Be.Target(Et,Pe,ht,je);if(et!==void 0){var Ct=new ie.Metadata(et,Oe);ft.metadata.push(Ct)}return ft}function nt(yt,Et,ht,Pe,et){var Oe=Ye(ht.container,et.serviceIdentifier),Ue=[];return Oe.length===v.BindingCount.NoBindingsAvailable&&ht.container.options.autoBindInjectable&&typeof et.serviceIdentifier=="function"&&yt.getConstructorMetadata(et.serviceIdentifier).compilerGeneratedMetadata&&(ht.container.bind(et.serviceIdentifier).toSelf(),Oe=Ye(ht.container,et.serviceIdentifier)),Et?Ue=Oe:Ue=Oe.filter(function(je){var ft=new Ie.Request(je.serviceIdentifier,ht,Pe,je,et);return je.constraint(ft)}),Ge(et.serviceIdentifier,Ue,et,ht.container),Ue}function Ge(yt,Et,ht,Pe){switch(Et.length){case v.BindingCount.NoBindingsAvailable:if(ht.isOptional())return Et;var et=X.getServiceIdentifierAsString(yt),Oe=z.NOT_REGISTERED;throw Oe+=X.listMetadataForTarget(et,ht),Oe+=X.listRegisteredBindingsForServiceIdentifier(Pe,et,Ye),new Error(Oe);case v.BindingCount.OnlyOneBindingAvailable:if(!ht.isArray())return Et;case v.BindingCount.MultipleBindingsAvailable:default:if(ht.isArray())return Et;var et=X.getServiceIdentifierAsString(yt),Oe=z.AMBIGUOUS_MATCH+" "+et;throw Oe+=X.listRegisteredBindingsForServiceIdentifier(Pe,et,Ye),new Error(Oe)}}function at(yt,Et,ht,Pe,et,Oe){var Ue,je;if(et===null){Ue=nt(yt,Et,Pe,null,Oe),je=new Ie.Request(ht,Pe,null,Ue,Oe);var ft=new ae.Plan(Pe,je);Pe.addPlan(ft)}else Ue=nt(yt,Et,Pe,et,Oe),je=et.addChildRequest(Oe.serviceIdentifier,Ue,Oe);Ue.forEach(function(Ct){var Xe=null;if(Oe.isArray())Xe=je.addChildRequest(Ct.serviceIdentifier,Ct,Oe);else{if(Ct.cache)return;Xe=je}if(Ct.type===P.BindingTypeEnum.Instance&&Ct.implementationType!==null){var hn=se.getDependencies(yt,Ct.implementationType);if(!Pe.container.options.skipBaseClassChecks){var Nt=se.getBaseClassDependencyCount(yt,Ct.implementationType);if(hn.length0,et=ht.length>at.length,Oe=Pe||et?ht.length:at.length,Ue=Ie(Ye,Ge,Gt,Et,Oe),je=Be(nt,at),ft=v(v([],Ue),je);return ft}function se(nt,Ge,at,Ye,rt){var Gt=rt[nt.toString()]||[],yt=ct(Gt),Et=yt.unmanaged!==!0,ht=Ye[nt],Pe=yt.inject||yt.multiInject;if(ht=Pe||ht,ht instanceof z.LazyServiceIdentifer&&(ht=ht.unwrap()),Et){var et=ht===Object,Oe=ht===Function,Ue=ht===void 0,je=et||Oe||Ue;if(!Ge&&je){var ft=P.MISSING_INJECT_ANNOTATION+" argument "+nt+" in class "+at+".";throw new Error(ft)}var Ct=new Y.Target(A.TargetTypeEnum.ConstructorArgument,yt.targetName,ht);return Ct.metadata=Gt,Ct}return null}function Ie(nt,Ge,at,Ye,rt){for(var Gt=[],yt=0;yt0?Et:Ce(nt,at)}else return 0}me.getBaseClassDependencyCount=Ce;function ct(nt){var Ge={};return nt.forEach(function(at){Ge[at.key.toString()]=at.value}),{inject:Ge[W.INJECT_TAG],multiInject:Ge[W.MULTI_INJECT_TAG],targetName:Ge[W.NAME_TAG],unmanaged:Ge[W.UNMANAGED_TAG]}}},14810:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.Request=void 0;var v=x(70023),z=function(){function P(A,W,X,Y,ie){this.id=v.id(),this.serviceIdentifier=A,this.parentContext=W,this.parentRequest=X,this.target=ie,this.childRequests=[],this.bindings=Array.isArray(Y)?Y:[Y],this.requestScope=X===null?new Map:null}return P.prototype.addChildRequest=function(A,W,X){var Y=new P(A,this.parentContext,this,W,X);return this.childRequests.push(Y),Y},P}();me.Request=z},69660:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.Target=void 0;var v=x(50295),z=x(70023),P=x(25092),A=x(68634),W=function(){function X(Y,ie,ae,se){this.id=z.id(),this.type=Y,this.serviceIdentifier=ae,this.name=new A.QueryableString(ie||""),this.metadata=new Array;var Ie=null;typeof se=="string"?Ie=new P.Metadata(v.NAMED_TAG,se):se instanceof P.Metadata&&(Ie=se),Ie!==null&&this.metadata.push(Ie)}return X.prototype.hasTag=function(Y){for(var ie=0,ae=this.metadata;ie0){var Ce=se.filter(function(nt){return nt.target!==null&&nt.target.type===P.TargetTypeEnum.ConstructorArgument}),ct=Ce.map(Ie);Be=X(ae,ct),Be=W(Be,se,Ie)}else Be=new ae;return Y(ae,Be),Be}me.resolveInstance=ie},9386:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.resolve=void 0;var v=x(36078),z=x(77690),P=x(92542),A=x(29552),W=x(74962),X=function(ae,se,Ie){try{return Ie()}catch(Be){throw P.isStackOverflowExeption(Be)?new Error(v.CIRCULAR_DEPENDENCY_IN_FACTORY(ae,se.toString())):Be}},Y=function(ae){return function(se){se.parentContext.setCurrentRequest(se);var Ie=se.bindings,Be=se.childRequests,Ce=se.target&&se.target.isArray(),ct=!se.parentRequest||!se.parentRequest.target||!se.target||!se.parentRequest.target.matchesArray(se.target.serviceIdentifier);if(Ce&&ct)return Be.map(function(Gt){var yt=Y(ae);return yt(Gt)});var nt=null;if(se.target.isOptional()&&Ie.length===0)return;var Ge=Ie[0],at=Ge.scope===z.BindingScopeEnum.Singleton,Ye=Ge.scope===z.BindingScopeEnum.Request;if(at&&Ge.activated)return Ge.cache;if(Ye&&ae!==null&&ae.has(Ge.id))return ae.get(Ge.id);if(Ge.type===z.BindingTypeEnum.ConstantValue)nt=Ge.cache,Ge.activated=!0;else if(Ge.type===z.BindingTypeEnum.Function)nt=Ge.cache,Ge.activated=!0;else if(Ge.type===z.BindingTypeEnum.Constructor)nt=Ge.implementationType;else if(Ge.type===z.BindingTypeEnum.DynamicValue&&Ge.dynamicValue!==null)nt=X("toDynamicValue",Ge.serviceIdentifier,function(){return Ge.dynamicValue(se.parentContext)});else if(Ge.type===z.BindingTypeEnum.Factory&&Ge.factory!==null)nt=X("toFactory",Ge.serviceIdentifier,function(){return Ge.factory(se.parentContext)});else if(Ge.type===z.BindingTypeEnum.Provider&&Ge.provider!==null)nt=X("toProvider",Ge.serviceIdentifier,function(){return Ge.provider(se.parentContext)});else if(Ge.type===z.BindingTypeEnum.Instance&&Ge.implementationType!==null)nt=W.resolveInstance(Ge.implementationType,Be,Y(ae));else{var rt=A.getServiceIdentifierAsString(se.serviceIdentifier);throw new Error(v.INVALID_BINDING_TYPE+" "+rt)}return typeof Ge.onActivation=="function"&&(nt=Ge.onActivation(se.parentContext,nt)),at&&(Ge.cache=nt,Ge.activated=!0),Ye&&ae!==null&&!ae.has(Ge.id)&&ae.set(Ge.id,nt),nt}};function ie(ae){var se=Y(ae.plan.rootRequest.requestScope);return se(ae.plan.rootRequest)}me.resolve=ie},91640:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingInSyntax=void 0;var v=x(77690),z=x(46890),P=function(){function A(W){this._binding=W}return A.prototype.inRequestScope=function(){return this._binding.scope=v.BindingScopeEnum.Request,new z.BindingWhenOnSyntax(this._binding)},A.prototype.inSingletonScope=function(){return this._binding.scope=v.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},A.prototype.inTransientScope=function(){return this._binding.scope=v.BindingScopeEnum.Transient,new z.BindingWhenOnSyntax(this._binding)},A}();me.BindingInSyntax=P},82386:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingInWhenOnSyntax=void 0;var v=x(91640),z=x(8926),P=x(36890),A=function(){function W(X){this._binding=X,this._bindingWhenSyntax=new P.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new z.BindingOnSyntax(this._binding),this._bindingInSyntax=new v.BindingInSyntax(X)}return W.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},W.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},W.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},W.prototype.when=function(X){return this._bindingWhenSyntax.when(X)},W.prototype.whenTargetNamed=function(X){return this._bindingWhenSyntax.whenTargetNamed(X)},W.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},W.prototype.whenTargetTagged=function(X,Y){return this._bindingWhenSyntax.whenTargetTagged(X,Y)},W.prototype.whenInjectedInto=function(X){return this._bindingWhenSyntax.whenInjectedInto(X)},W.prototype.whenParentNamed=function(X){return this._bindingWhenSyntax.whenParentNamed(X)},W.prototype.whenParentTagged=function(X,Y){return this._bindingWhenSyntax.whenParentTagged(X,Y)},W.prototype.whenAnyAncestorIs=function(X){return this._bindingWhenSyntax.whenAnyAncestorIs(X)},W.prototype.whenNoAncestorIs=function(X){return this._bindingWhenSyntax.whenNoAncestorIs(X)},W.prototype.whenAnyAncestorNamed=function(X){return this._bindingWhenSyntax.whenAnyAncestorNamed(X)},W.prototype.whenAnyAncestorTagged=function(X,Y){return this._bindingWhenSyntax.whenAnyAncestorTagged(X,Y)},W.prototype.whenNoAncestorNamed=function(X){return this._bindingWhenSyntax.whenNoAncestorNamed(X)},W.prototype.whenNoAncestorTagged=function(X,Y){return this._bindingWhenSyntax.whenNoAncestorTagged(X,Y)},W.prototype.whenAnyAncestorMatches=function(X){return this._bindingWhenSyntax.whenAnyAncestorMatches(X)},W.prototype.whenNoAncestorMatches=function(X){return this._bindingWhenSyntax.whenNoAncestorMatches(X)},W.prototype.onActivation=function(X){return this._bindingOnSyntax.onActivation(X)},W}();me.BindingInWhenOnSyntax=A},8926:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingOnSyntax=void 0;var v=x(36890),z=function(){function P(A){this._binding=A}return P.prototype.onActivation=function(A){return this._binding.onActivation=A,new v.BindingWhenSyntax(this._binding)},P}();me.BindingOnSyntax=z},43313:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingToSyntax=void 0;var v=x(36078),z=x(77690),P=x(82386),A=x(46890),W=function(){function X(Y){this._binding=Y}return X.prototype.to=function(Y){return this._binding.type=z.BindingTypeEnum.Instance,this._binding.implementationType=Y,new P.BindingInWhenOnSyntax(this._binding)},X.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+v.INVALID_TO_SELF_VALUE);var Y=this._binding.serviceIdentifier;return this.to(Y)},X.prototype.toConstantValue=function(Y){return this._binding.type=z.BindingTypeEnum.ConstantValue,this._binding.cache=Y,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=z.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},X.prototype.toDynamicValue=function(Y){return this._binding.type=z.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=Y,this._binding.implementationType=null,new P.BindingInWhenOnSyntax(this._binding)},X.prototype.toConstructor=function(Y){return this._binding.type=z.BindingTypeEnum.Constructor,this._binding.implementationType=Y,this._binding.scope=z.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},X.prototype.toFactory=function(Y){return this._binding.type=z.BindingTypeEnum.Factory,this._binding.factory=Y,this._binding.scope=z.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},X.prototype.toFunction=function(Y){if(typeof Y!="function")throw new Error(v.INVALID_FUNCTION_BINDING);var ie=this.toConstantValue(Y);return this._binding.type=z.BindingTypeEnum.Function,this._binding.scope=z.BindingScopeEnum.Singleton,ie},X.prototype.toAutoFactory=function(Y){return this._binding.type=z.BindingTypeEnum.Factory,this._binding.factory=function(ie){var ae=function(){return ie.container.get(Y)};return ae},this._binding.scope=z.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},X.prototype.toProvider=function(Y){return this._binding.type=z.BindingTypeEnum.Provider,this._binding.provider=Y,this._binding.scope=z.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},X.prototype.toService=function(Y){this.toDynamicValue(function(ie){return ie.container.get(Y)})},X}();me.BindingToSyntax=W},46890:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingWhenOnSyntax=void 0;var v=x(8926),z=x(36890),P=function(){function A(W){this._binding=W,this._bindingWhenSyntax=new z.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new v.BindingOnSyntax(this._binding)}return A.prototype.when=function(W){return this._bindingWhenSyntax.when(W)},A.prototype.whenTargetNamed=function(W){return this._bindingWhenSyntax.whenTargetNamed(W)},A.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},A.prototype.whenTargetTagged=function(W,X){return this._bindingWhenSyntax.whenTargetTagged(W,X)},A.prototype.whenInjectedInto=function(W){return this._bindingWhenSyntax.whenInjectedInto(W)},A.prototype.whenParentNamed=function(W){return this._bindingWhenSyntax.whenParentNamed(W)},A.prototype.whenParentTagged=function(W,X){return this._bindingWhenSyntax.whenParentTagged(W,X)},A.prototype.whenAnyAncestorIs=function(W){return this._bindingWhenSyntax.whenAnyAncestorIs(W)},A.prototype.whenNoAncestorIs=function(W){return this._bindingWhenSyntax.whenNoAncestorIs(W)},A.prototype.whenAnyAncestorNamed=function(W){return this._bindingWhenSyntax.whenAnyAncestorNamed(W)},A.prototype.whenAnyAncestorTagged=function(W,X){return this._bindingWhenSyntax.whenAnyAncestorTagged(W,X)},A.prototype.whenNoAncestorNamed=function(W){return this._bindingWhenSyntax.whenNoAncestorNamed(W)},A.prototype.whenNoAncestorTagged=function(W,X){return this._bindingWhenSyntax.whenNoAncestorTagged(W,X)},A.prototype.whenAnyAncestorMatches=function(W){return this._bindingWhenSyntax.whenAnyAncestorMatches(W)},A.prototype.whenNoAncestorMatches=function(W){return this._bindingWhenSyntax.whenNoAncestorMatches(W)},A.prototype.onActivation=function(W){return this._bindingOnSyntax.onActivation(W)},A}();me.BindingWhenOnSyntax=P},36890:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.BindingWhenSyntax=void 0;var v=x(8926),z=x(83140),P=function(){function A(W){this._binding=W}return A.prototype.when=function(W){return this._binding.constraint=W,new v.BindingOnSyntax(this._binding)},A.prototype.whenTargetNamed=function(W){return this._binding.constraint=z.namedConstraint(W),new v.BindingOnSyntax(this._binding)},A.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(W){var X=W.target!==null&&!W.target.isNamed()&&!W.target.isTagged();return X},new v.BindingOnSyntax(this._binding)},A.prototype.whenTargetTagged=function(W,X){return this._binding.constraint=z.taggedConstraint(W)(X),new v.BindingOnSyntax(this._binding)},A.prototype.whenInjectedInto=function(W){return this._binding.constraint=function(X){return z.typeConstraint(W)(X.parentRequest)},new v.BindingOnSyntax(this._binding)},A.prototype.whenParentNamed=function(W){return this._binding.constraint=function(X){return z.namedConstraint(W)(X.parentRequest)},new v.BindingOnSyntax(this._binding)},A.prototype.whenParentTagged=function(W,X){return this._binding.constraint=function(Y){return z.taggedConstraint(W)(X)(Y.parentRequest)},new v.BindingOnSyntax(this._binding)},A.prototype.whenAnyAncestorIs=function(W){return this._binding.constraint=function(X){return z.traverseAncerstors(X,z.typeConstraint(W))},new v.BindingOnSyntax(this._binding)},A.prototype.whenNoAncestorIs=function(W){return this._binding.constraint=function(X){return!z.traverseAncerstors(X,z.typeConstraint(W))},new v.BindingOnSyntax(this._binding)},A.prototype.whenAnyAncestorNamed=function(W){return this._binding.constraint=function(X){return z.traverseAncerstors(X,z.namedConstraint(W))},new v.BindingOnSyntax(this._binding)},A.prototype.whenNoAncestorNamed=function(W){return this._binding.constraint=function(X){return!z.traverseAncerstors(X,z.namedConstraint(W))},new v.BindingOnSyntax(this._binding)},A.prototype.whenAnyAncestorTagged=function(W,X){return this._binding.constraint=function(Y){return z.traverseAncerstors(Y,z.taggedConstraint(W)(X))},new v.BindingOnSyntax(this._binding)},A.prototype.whenNoAncestorTagged=function(W,X){return this._binding.constraint=function(Y){return!z.traverseAncerstors(Y,z.taggedConstraint(W)(X))},new v.BindingOnSyntax(this._binding)},A.prototype.whenAnyAncestorMatches=function(W){return this._binding.constraint=function(X){return z.traverseAncerstors(X,W)},new v.BindingOnSyntax(this._binding)},A.prototype.whenNoAncestorMatches=function(W){return this._binding.constraint=function(X){return!z.traverseAncerstors(X,W)},new v.BindingOnSyntax(this._binding)},A}();me.BindingWhenSyntax=P},83140:function(St,me,x){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.typeConstraint=me.namedConstraint=me.taggedConstraint=me.traverseAncerstors=void 0;var v=x(50295),z=x(25092),P=function(Y,ie){var ae=Y.parentRequest;return ae!==null?ie(ae)?!0:P(ae,ie):!1};me.traverseAncerstors=P;var A=function(Y){return function(ie){var ae=function(se){return se!==null&&se.target!==null&&se.target.matchesTag(Y)(ie)};return ae.metaData=new z.Metadata(Y,ie),ae}};me.taggedConstraint=A;var W=A(v.NAMED_TAG);me.namedConstraint=W;var X=function(Y){return function(ie){var ae=null;if(ie!==null)if(ae=ie.bindings[0],typeof Y=="string"){var se=ae.serviceIdentifier;return se===Y}else{var Ie=ie.bindings[0].implementationType;return Y===Ie}return!1}};me.typeConstraint=X},34384:function(St,me){"use strict";Object.defineProperty(me,"__esModule",{value:!0}),me.multiBindToService=void 0;var x=function(v){return function(z){return function(){for(var P=[],A=0;A ")}function X(ae){ae.childRequests.forEach(function(se){if(A(se,se.serviceIdentifier)){var Ie=W(se);throw new Error(v.CIRCULAR_DEPENDENCY+" "+Ie)}else X(se)})}me.circularDependencyToException=X;function Y(ae,se){if(se.isTagged()||se.isNamed()){var Ie="",Be=se.getNamedTag(),Ce=se.getCustomTags();return Be!==null&&(Ie+=Be.toString()+` +`),Ce!==null&&Ce.forEach(function(ct){Ie+=ct.toString()+` +`})," "+ae+` + `+ae+" - "+Ie}else return" "+ae}me.listMetadataForTarget=Y;function ie(ae){if(ae.name)return ae.name;var se=ae.toString(),Ie=se.match(/^function\s*([^\s(]+)/);return Ie?Ie[1]:"Anonymous function: "+se}me.getFunctionName=ie},76051:function(St,me,x){"use strict";var v=x(80758)(),z=x(23148),P=z("Object.prototype.toString"),A=function(ie){return v&&ie&&typeof ie=="object"&&Symbol.toStringTag in ie?!1:P(ie)==="[object Arguments]"},W=function(ie){return A(ie)?!0:ie!==null&&typeof ie=="object"&&typeof ie.length=="number"&&ie.length>=0&&P(ie)!=="[object Array]"&&P(ie.callee)==="[object Function]"},X=function(){return A(arguments)}();A.isLegacyArguments=W,St.exports=X?A:W},22948:function(St){St.exports=function(x){return!x||typeof x=="string"?!1:x instanceof Array||Array.isArray(x)||x.length>=0&&(x.splice instanceof Function||Object.getOwnPropertyDescriptor(x,x.length-1)&&x.constructor.name!=="String")}},78034:function(St){St.exports=function(v){return v!=null&&(me(v)||x(v)||!!v._isBuffer)};function me(v){return!!v.constructor&&typeof v.constructor.isBuffer=="function"&&v.constructor.isBuffer(v)}function x(v){return typeof v.readFloatLE=="function"&&typeof v.slice=="function"&&me(v.slice(0,0))}},5012:function(St,me,x){"use strict";var v=Date.prototype.getDay,z=function(Y){try{return v.call(Y),!0}catch(ie){return!1}},P=Object.prototype.toString,A="[object Date]",W=x(80758)();St.exports=function(Y){return typeof Y!="object"||Y===null?!1:W?z(Y):P.call(Y)===A}},11644:function(St,me,x){"use strict";var v=x(23148),z=x(80758)(),P,A,W,X;if(z){P=v("Object.prototype.hasOwnProperty"),A=v("RegExp.prototype.exec"),W={};var Y=function(){throw W};X={toString:Y,valueOf:Y},typeof Symbol.toPrimitive=="symbol"&&(X[Symbol.toPrimitive]=Y)}var ie=v("Object.prototype.toString"),ae=Object.getOwnPropertyDescriptor,se="[object RegExp]";St.exports=z?function(Be){if(!Be||typeof Be!="object")return!1;var Ce=ae(Be,"lastIndex"),ct=Ce&&P(Ce,"value");if(!ct)return!1;try{A(Be,X)}catch(nt){return nt===W}}:function(Be){return!Be||typeof Be!="object"&&typeof Be!="function"?!1:ie(Be)===se}},99100:function(St){var me={}.toString;St.exports=Array.isArray||function(x){return me.call(x)=="[object Array]"}},90417:function(St,me,x){St=x.nmd(St);var v=x(97671),z=function(){var P=function(at,Ye,rt,Gt){for(rt=rt||{},Gt=at.length;Gt--;rt[at[Gt]]=Ye);return rt},A=[1,12],W=[1,13],X=[1,9],Y=[1,10],ie=[1,11],ae=[1,14],se=[1,15],Ie=[14,18,22,24],Be=[18,22],Ce=[22,24],ct={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(Ye,rt,Gt,yt,Et,ht,Pe){var et=ht.length-1;switch(Et){case 1:this.$=Ye.replace(/\\(\\|")/g,"$1").replace(/\\n/g,` +`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(Ye);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=ht[et-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=ht[et-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[ht[et-2],ht[et]];break;case 16:this.$={},this.$[ht[et][0]]=ht[et][1];break;case 17:this.$=ht[et-2],ht[et-2][ht[et][0]]!==void 0&&(this.$.__duplicateProperties__||Object.defineProperty(this.$,"__duplicateProperties__",{value:[],enumerable:!1}),this.$.__duplicateProperties__.push(ht[et][0])),ht[et-2][ht[et][0]]=ht[et][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[ht[et]];break;case 21:this.$=ht[et-2],ht[et-2].push(ht[et]);break}},table:[{3:5,4:A,5:6,6:W,7:3,8:X,9:4,10:Y,11:ie,12:1,13:2,15:7,16:8,17:ae,23:se},{1:[3]},{14:[1,16]},P(Ie,[2,7]),P(Ie,[2,8]),P(Ie,[2,9]),P(Ie,[2,10]),P(Ie,[2,11]),P(Ie,[2,12]),P(Ie,[2,3]),P(Ie,[2,4]),P(Ie,[2,5]),P([14,18,21,22,24],[2,1]),P(Ie,[2,2]),{3:20,4:A,18:[1,17],19:18,20:19},{3:5,4:A,5:6,6:W,7:3,8:X,9:4,10:Y,11:ie,13:23,15:7,16:8,17:ae,23:se,24:[1,21],25:22},{1:[2,6]},P(Ie,[2,13]),{18:[1,24],22:[1,25]},P(Be,[2,16]),{21:[1,26]},P(Ie,[2,18]),{22:[1,28],24:[1,27]},P(Ce,[2,20]),P(Ie,[2,14]),{3:20,4:A,20:29},{3:5,4:A,5:6,6:W,7:3,8:X,9:4,10:Y,11:ie,13:30,15:7,16:8,17:ae,23:se},P(Ie,[2,19]),{3:5,4:A,5:6,6:W,7:3,8:X,9:4,10:Y,11:ie,13:31,15:7,16:8,17:ae,23:se},P(Be,[2,17]),P(Be,[2,15]),P(Ce,[2,21])],defaultActions:{16:[2,6]},parseError:function(Ye,rt){if(rt.recoverable)this.trace(Ye);else{let yt=function(Et,ht){this.message=Et,this.hash=ht};var Gt=yt;throw yt.prototype=Error,new yt(Ye,rt)}},parse:function(Ye){var rt=this,Gt=[0],yt=[],Et=[null],ht=[],Pe=this.table,et="",Oe=0,Ue=0,je=0,ft=2,Ct=1,Xe=ht.slice.call(arguments,1),hn=Object.create(this.lexer),Nt={yy:{}};for(var Te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Te)&&(Nt.yy[Te]=this.yy[Te]);hn.setInput(Ye,Nt.yy),Nt.yy.lexer=hn,Nt.yy.parser=this,typeof hn.yylloc=="undefined"&&(hn.yylloc={});var vt=hn.yylloc;ht.push(vt);var ze=hn.options&&hn.options.ranges;typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(Vi){Gt.length=Gt.length-2*Vi,Et.length=Et.length-Vi,ht.length=ht.length-Vi}e:var Tt=function(){var Vi;return Vi=hn.lex()||Ct,typeof Vi!="number"&&(Vi=rt.symbols_[Vi]||Vi),Vi};for(var un,on,Lr,Yr,fi,Xi,Qi={},hi,Go,Mo,pe;;){if(Lr=Gt[Gt.length-1],this.defaultActions[Lr]?Yr=this.defaultActions[Lr]:((un===null||typeof un=="undefined")&&(un=Tt()),Yr=Pe[Lr]&&Pe[Lr][un]),typeof Yr=="undefined"||!Yr.length||!Yr[0]){var Ii="";pe=[];for(hi in Pe[Lr])this.terminals_[hi]&&hi>ft&&pe.push("'"+this.terminals_[hi]+"'");hn.showPosition?Ii="Parse error on line "+(Oe+1)+`: +`+hn.showPosition()+` +Expecting `+pe.join(", ")+", got '"+(this.terminals_[un]||un)+"'":Ii="Parse error on line "+(Oe+1)+": Unexpected "+(un==Ct?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(Ii,{text:hn.match,token:this.terminals_[un]||un,line:hn.yylineno,loc:vt,expected:pe})}if(Yr[0]instanceof Array&&Yr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lr+", token: "+un);switch(Yr[0]){case 1:Gt.push(un),Et.push(hn.yytext),ht.push(hn.yylloc),Gt.push(Yr[1]),un=null,on?(un=on,on=null):(Ue=hn.yyleng,et=hn.yytext,Oe=hn.yylineno,vt=hn.yylloc,je>0&&je--);break;case 2:if(Go=this.productions_[Yr[1]][1],Qi.$=Et[Et.length-Go],Qi._$={first_line:ht[ht.length-(Go||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(Go||1)].first_column,last_column:ht[ht.length-1].last_column},ze&&(Qi._$.range=[ht[ht.length-(Go||1)].range[0],ht[ht.length-1].range[1]]),Xi=this.performAction.apply(Qi,[et,Ue,Oe,Nt.yy,Yr[1],Et,ht].concat(Xe)),typeof Xi!="undefined")return Xi;Go&&(Gt=Gt.slice(0,-1*Go*2),Et=Et.slice(0,-1*Go),ht=ht.slice(0,-1*Go)),Gt.push(this.productions_[Yr[1]][0]),Et.push(Qi.$),ht.push(Qi._$),Mo=Pe[Gt[Gt.length-2]][Gt[Gt.length-1]],Gt.push(Mo);break;case 3:return!0}}return!0}},nt=function(){var at={EOF:1,parseError:function(rt,Gt){if(this.yy.parser)this.yy.parser.parseError(rt,Gt);else throw new Error(rt)},setInput:function(Ye,rt){return this.yy=rt||this.yy||{},this._input=Ye,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ye=this._input[0];this.yytext+=Ye,this.yyleng++,this.offset++,this.match+=Ye,this.matched+=Ye;var rt=Ye.match(/(?:\r\n?|\n).*/g);return rt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ye},unput:function(Ye){var rt=Ye.length,Gt=Ye.split(/(?:\r\n?|\n)/g);this._input=Ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rt),this.offset-=rt;var yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Gt.length-1&&(this.yylineno-=Gt.length-1);var Et=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Gt?(Gt.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-Gt.length].length-Gt[0].length:this.yylloc.first_column-rt},this.options.ranges&&(this.yylloc.range=[Et[0],Et[0]+this.yyleng-rt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Ye){this.unput(this.match.slice(Ye))},pastInput:function(){var Ye=this.matched.substr(0,this.matched.length-this.match.length);return(Ye.length>20?"...":"")+Ye.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ye=this.match;return Ye.length<20&&(Ye+=this._input.substr(0,20-Ye.length)),(Ye.substr(0,20)+(Ye.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ye=this.pastInput(),rt=new Array(Ye.length+1).join("-");return Ye+this.upcomingInput()+` +`+rt+"^"},test_match:function(Ye,rt){var Gt,yt,Et;if(this.options.backtrack_lexer&&(Et={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Et.yylloc.range=this.yylloc.range.slice(0))),yt=Ye[0].match(/(?:\r\n?|\n).*/g),yt&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ye[0].length},this.yytext+=Ye[0],this.match+=Ye[0],this.matches=Ye,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Ye[0].length),this.matched+=Ye[0],Gt=this.performAction.call(this,this.yy,this,rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Gt)return Gt;if(this._backtrack){for(var ht in Et)this[ht]=Et[ht];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ye,rt,Gt,yt;this._more||(this.yytext="",this.match="");for(var Et=this._currentRules(),ht=0;htrt[0].length)){if(rt=Gt,yt=ht,this.options.backtrack_lexer){if(Ye=this.test_match(Gt,Et[ht]),Ye!==!1)return Ye;if(this._backtrack){rt=!1;continue}else return!1}else if(!this.options.flex)break}return rt?(Ye=this.test_match(rt,Et[yt]),Ye!==!1?Ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var rt=this.next();return rt||this.lex()},begin:function(rt){this.conditionStack.push(rt)},popState:function(){var rt=this.conditionStack.length-1;return rt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(rt){return rt=this.conditionStack.length-1-Math.abs(rt||0),rt>=0?this.conditionStack[rt]:"INITIAL"},pushState:function(rt){this.begin(rt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(rt,Gt,yt,Et){var ht=Et;switch(yt){case 0:break;case 1:return 6;case 2:return Gt.yytext=Gt.yytext.substr(1,Gt.yyleng-2),4;break;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return at}();ct.lexer=nt;function Ge(){this.yy={}}return Ge.prototype=ct,ct.Parser=Ge,new Ge}();me.parser=z,me.Parser=z.Parser,me.parse=function(){return z.parse.apply(z,arguments)},me.main=function(A){A[1]||(console.log("Usage: "+A[0]+" FILE"),v.exit(1));var W=x(2467).readFileSync(x(66072).normalize(A[1]),"utf8");return me.parser.parse(W)},x.c[x.s]===St&&me.main(v.argv.slice(1))},72402:function(St,me,x){(function(v){if(!0)St.exports=v();else var z})(function(){var v,z,P;return function A(W,X,Y){function ie(Ie,Be){if(!X[Ie]){if(!W[Ie]){var Ce=void 0;if(!Be&&Ce)return require(Ie,!0);if(ae)return ae(Ie,!0);var ct=new Error("Cannot find module '"+Ie+"'");throw ct.code="MODULE_NOT_FOUND",ct}var nt=X[Ie]={exports:{}};W[Ie][0].call(nt.exports,function(Ge){var at=W[Ie][1][Ge];return ie(at||Ge)},nt,nt.exports,A,W,X,Y)}return X[Ie].exports}for(var ae=void 0,se=0;se=43)}}).catch(function(){return!1})}function Oe(Qr){return typeof rt=="boolean"?Ce.resolve(rt):et(Qr).then(function(Ai){return rt=Ai,rt})}function Ue(Qr){var Ai=Gt[Qr.name],Ri={};Ri.promise=new Ce(function(To,yo){Ri.resolve=To,Ri.reject=yo}),Ai.deferredOperations.push(Ri),Ai.dbReady?Ai.dbReady=Ai.dbReady.then(function(){return Ri.promise}):Ai.dbReady=Ri.promise}function je(Qr){var Ai=Gt[Qr.name],Ri=Ai.deferredOperations.pop();if(Ri)return Ri.resolve(),Ri.promise}function ft(Qr,Ai){var Ri=Gt[Qr.name],To=Ri.deferredOperations.pop();if(To)return To.reject(Ai),To.promise}function Ct(Qr,Ai){return new Ce(function(Ri,To){if(Gt[Qr.name]=Gt[Qr.name]||on(),Qr.db)if(Ai)Ue(Qr),Qr.db.close();else return Ri(Qr.db);var yo=[Qr.name];Ai&&yo.push(Qr.version);var ao=se.open.apply(se,yo);Ai&&(ao.onupgradeneeded=function(Bs){var fa=ao.result;try{fa.createObjectStore(Qr.storeName),Bs.oldVersion<=1&&fa.createObjectStore(Ye)}catch(ba){if(ba.name==="ConstraintError")console.warn('The database "'+Qr.name+'" has been upgraded from version '+Bs.oldVersion+" to version "+Bs.newVersion+', but the storage "'+Qr.storeName+'" already exists.');else throw ba}}),ao.onerror=function(Bs){Bs.preventDefault(),To(ao.error)},ao.onsuccess=function(){var Bs=ao.result;Bs.onversionchange=function(fa){fa.target.close()},Ri(Bs),je(Qr)}})}function Xe(Qr){return Ct(Qr,!1)}function hn(Qr){return Ct(Qr,!0)}function Nt(Qr,Ai){if(!Qr.db)return!0;var Ri=!Qr.db.objectStoreNames.contains(Qr.storeName),To=Qr.versionQr.db.version;if(To&&(Qr.version!==Ai&&console.warn('The database "'+Qr.name+`" can't be downgraded from version `+Qr.db.version+" to version "+Qr.version+"."),Qr.version=Qr.db.version),yo||Ri){if(Ri){var ao=Qr.db.version+1;ao>Qr.version&&(Qr.version=ao)}return!0}return!1}function Te(Qr){return new Ce(function(Ai,Ri){var To=new FileReader;To.onerror=Ri,To.onloadend=function(yo){var ao=btoa(yo.target.result||"");Ai({__local_forage_encoded_blob:!0,data:ao,type:Qr.type})},To.readAsBinaryString(Qr)})}function vt(Qr){var Ai=Pe(atob(Qr.data));return Be([Ai],{type:Qr.type})}function ze(Qr){return Qr&&Qr.__local_forage_encoded_blob}function Vt(Qr){var Ai=this,Ri=Ai._initReady().then(function(){var To=Gt[Ai._dbInfo.name];if(To&&To.dbReady)return To.dbReady});return nt(Ri,Qr,Qr),Ri}function Tt(Qr){Ue(Qr);for(var Ai=Gt[Qr.name],Ri=Ai.forages,To=0;To0&&(!Qr.db||ao.name==="InvalidStateError"||ao.name==="NotFoundError"))return Ce.resolve().then(function(){if(!Qr.db||ao.name==="NotFoundError"&&!Qr.db.objectStoreNames.contains(Qr.storeName)&&Qr.version<=Qr.db.version)return Qr.db&&(Qr.version=Qr.db.version+1),hn(Qr)}).then(function(){return Tt(Qr).then(function(){un(Qr,Ai,Ri,To-1)})}).catch(Ri);Ri(ao)}}function on(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Lr(Qr){var Ai=this,Ri={db:null};if(Qr)for(var To in Qr)Ri[To]=Qr[To];var yo=Gt[Ri.name];yo||(yo=on(),Gt[Ri.name]=yo),yo.forages.push(Ai),Ai._initReady||(Ai._initReady=Ai.ready,Ai.ready=Vt);var ao=[];function Bs(){return Ce.resolve()}for(var fa=0;fa>4,Ds[yo++]=(Bs&15)<<4|fa>>2,Ds[yo++]=(fa&3)<<6|ba&63;return Rs}function vn(Qr){var Ai=new Uint8Array(Qr),Ri="",To;for(To=0;To>2],Ri+=ai[(Ai[To]&3)<<4|Ai[To+1]>>4],Ri+=ai[(Ai[To+1]&15)<<2|Ai[To+2]>>6],Ri+=ai[Ai[To+2]&63];return Ai.length%3===2?Ri=Ri.substring(0,Ri.length-1)+"=":Ai.length%3===1&&(Ri=Ri.substring(0,Ri.length-2)+"=="),Ri}function vr(Qr,Ai){var Ri="";if(Qr&&(Ri=tt.call(Qr)),Qr&&(Ri==="[object ArrayBuffer]"||Qr.buffer&&tt.call(Qr.buffer)==="[object ArrayBuffer]")){var To,yo=Rt;Qr instanceof ArrayBuffer?(To=Qr,yo+=wr):(To=Qr.buffer,Ri==="[object Int8Array]"?yo+=Ti:Ri==="[object Uint8Array]"?yo+=Bi:Ri==="[object Uint8ClampedArray]"?yo+=no:Ri==="[object Int16Array]"?yo+=Vr:Ri==="[object Uint16Array]"?yo+=Xt:Ri==="[object Int32Array]"?yo+=Rn:Ri==="[object Uint32Array]"?yo+=Sn:Ri==="[object Float32Array]"?yo+=Pn:Ri==="[object Float64Array]"?yo+=hr:Ai(new Error("Failed to get type for BinaryArray"))),Ai(yo+vn(To))}else if(Ri==="[object Blob]"){var ao=new FileReader;ao.onload=function(){var Bs=Ms+Qr.type+"~"+vn(this.result);Ai(Rt+oi+Bs)},ao.readAsArrayBuffer(Qr)}else try{Ai(JSON.stringify(Qr))}catch(Bs){console.error("Couldn't convert value into a JSON string: ",Qr),Ai(null,Bs)}}function qr(Qr){if(Qr.substring(0,jn)!==Rt)return JSON.parse(Qr);var Ai=Qr.substring(mt),Ri=Qr.substring(jn,mt),To;if(Ri===oi&&Ar.test(Ai)){var yo=Ai.match(Ar);To=yo[1],Ai=Ai.substring(yo[0].length)}var ao=kt(Ai);switch(Ri){case wr:return ao;case oi:return Be([ao],{type:To});case Ti:return new Int8Array(ao);case Bi:return new Uint8Array(ao);case no:return new Uint8ClampedArray(ao);case Vr:return new Int16Array(ao);case Xt:return new Uint16Array(ao);case Rn:return new Int32Array(ao);case Sn:return new Uint32Array(ao);case Pn:return new Float32Array(ao);case hr:return new Float64Array(ao);default:throw new Error("Unkown type: "+Ri)}}var Ni={serialize:vr,deserialize:qr,stringToBuffer:kt,bufferToString:vn};function li(Qr,Ai,Ri,To){Qr.executeSql("CREATE TABLE IF NOT EXISTS "+Ai.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Ri,To)}function Un(Qr){var Ai=this,Ri={db:null};if(Qr)for(var To in Qr)Ri[To]=typeof Qr[To]!="string"?Qr[To].toString():Qr[To];var yo=new Ce(function(ao,Bs){try{Ri.db=openDatabase(Ri.name,String(Ri.version),Ri.description,Ri.size)}catch(fa){return Bs(fa)}Ri.db.transaction(function(fa){li(fa,Ri,function(){Ai._dbInfo=Ri,ao()},function(ba,Rs){Bs(Rs)})},Bs)});return Ri.serializer=Ni,yo}function dn(Qr,Ai,Ri,To,yo,ao){Qr.executeSql(Ri,To,yo,function(Bs,fa){fa.code===fa.SYNTAX_ERR?Bs.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ai.storeName],function(ba,Rs){Rs.rows.length?ao(ba,fa):li(ba,Ai,function(){ba.executeSql(Ri,To,yo,ao)},ao)},ao):ao(Bs,fa)},ao)}function xt(Qr,Ai){var Ri=this;Qr=Ge(Qr);var To=new Ce(function(yo,ao){Ri.ready().then(function(){var Bs=Ri._dbInfo;Bs.db.transaction(function(fa){dn(fa,Bs,"SELECT * FROM "+Bs.storeName+" WHERE key = ? LIMIT 1",[Qr],function(ba,Rs){var Ds=Rs.rows.length?Rs.rows.item(0).value:null;Ds&&(Ds=Bs.serializer.deserialize(Ds)),yo(Ds)},function(ba,Rs){ao(Rs)})})}).catch(ao)});return ct(To,Ai),To}function it(Qr,Ai){var Ri=this,To=new Ce(function(yo,ao){Ri.ready().then(function(){var Bs=Ri._dbInfo;Bs.db.transaction(function(fa){dn(fa,Bs,"SELECT * FROM "+Bs.storeName,[],function(ba,Rs){for(var Ds=Rs.rows,el=Ds.length,tl=0;tl0){Bs(Bt.apply(yo,[Qr,ba,Ri,To-1]));return}fa(tl)}})})}).catch(fa)});return ct(ao,Ri),ao}function rn(Qr,Ai,Ri){return Bt.apply(this,[Qr,Ai,Ri,1])}function ir(Qr,Ai){var Ri=this;Qr=Ge(Qr);var To=new Ce(function(yo,ao){Ri.ready().then(function(){var Bs=Ri._dbInfo;Bs.db.transaction(function(fa){dn(fa,Bs,"DELETE FROM "+Bs.storeName+" WHERE key = ?",[Qr],function(){yo()},function(ba,Rs){ao(Rs)})})}).catch(ao)});return ct(To,Ai),To}function tr(Qr){var Ai=this,Ri=new Ce(function(To,yo){Ai.ready().then(function(){var ao=Ai._dbInfo;ao.db.transaction(function(Bs){dn(Bs,ao,"DELETE FROM "+ao.storeName,[],function(){To()},function(fa,ba){yo(ba)})})}).catch(yo)});return ct(Ri,Qr),Ri}function Jn(Qr){var Ai=this,Ri=new Ce(function(To,yo){Ai.ready().then(function(){var ao=Ai._dbInfo;ao.db.transaction(function(Bs){dn(Bs,ao,"SELECT COUNT(key) as c FROM "+ao.storeName,[],function(fa,ba){var Rs=ba.rows.item(0).c;To(Rs)},function(fa,ba){yo(ba)})})}).catch(yo)});return ct(Ri,Qr),Ri}function nn(Qr,Ai){var Ri=this,To=new Ce(function(yo,ao){Ri.ready().then(function(){var Bs=Ri._dbInfo;Bs.db.transaction(function(fa){dn(fa,Bs,"SELECT key FROM "+Bs.storeName+" WHERE id = ? LIMIT 1",[Qr+1],function(ba,Rs){var Ds=Rs.rows.length?Rs.rows.item(0).key:null;yo(Ds)},function(ba,Rs){ao(Rs)})})}).catch(ao)});return ct(To,Ai),To}function er(Qr){var Ai=this,Ri=new Ce(function(To,yo){Ai.ready().then(function(){var ao=Ai._dbInfo;ao.db.transaction(function(Bs){dn(Bs,ao,"SELECT key FROM "+ao.storeName,[],function(fa,ba){for(var Rs=[],Ds=0;Ds '__WebKitDatabaseInfoTable__'",[],function(yo,ao){for(var Bs=[],fa=0;fa0}function Pr(Qr){var Ai=this,Ri={};if(Qr)for(var To in Qr)Ri[To]=Qr[To];return Ri.keyPrefix=en(Qr,Ai._defaultConfig),rr()?(Ai._dbInfo=Ri,Ri.serializer=Ni,Ce.resolve()):Ce.reject()}function Er(Qr){var Ai=this,Ri=Ai.ready().then(function(){for(var To=Ai._dbInfo.keyPrefix,yo=localStorage.length-1;yo>=0;yo--){var ao=localStorage.key(yo);ao.indexOf(To)===0&&localStorage.removeItem(ao)}});return ct(Ri,Qr),Ri}function ui(Qr,Ai){var Ri=this;Qr=Ge(Qr);var To=Ri.ready().then(function(){var yo=Ri._dbInfo,ao=localStorage.getItem(yo.keyPrefix+Qr);return ao&&(ao=yo.serializer.deserialize(ao)),ao});return ct(To,Ai),To}function Gr(Qr,Ai){var Ri=this,To=Ri.ready().then(function(){for(var yo=Ri._dbInfo,ao=yo.keyPrefix,Bs=ao.length,fa=localStorage.length,ba=1,Rs=0;Rs=0;Bs--){var fa=localStorage.key(Bs);fa.indexOf(ao)===0&&localStorage.removeItem(fa)}}):yo=Ce.reject("Invalid arguments"),ct(yo,Ai),yo}var pr={_driver:"localStorageWrapper",_initStorage:Pr,_support:zt(),iterate:Gr,getItem:ui,setItem:Xr,removeItem:Kr,clear:Er,length:Zi,key:zr,keys:Ei,dropInstance:Qo},qo=function(Ai,Ri){return Ai===Ri||typeof Ai=="number"&&typeof Ri=="number"&&isNaN(Ai)&&isNaN(Ri)},Br=function(Ai,Ri){for(var To=Ai.length,yo=0;yo-1}St.exports=z},94874:function(St){function me(x,v,z){for(var P=-1,A=x==null?0:x.length;++P=v?x:v)),x}St.exports=me},99045:function(St,me,x){var v=x(91866),z=x(74809),P=x(60348),A=x(91937),W=x(26680),X=x(32315),Y=x(47760),ie=x(15168),ae=x(71678),se=x(12076),Ie=x(22675),Be=x(66139),Ce=x(79264),ct=x(97541),nt=x(4084),Ge=x(80744),at=x(57835),Ye=x(41626),rt=x(20816),Gt=x(65226),yt=x(55451),Et=x(56730),ht=1,Pe=2,et=4,Oe="[object Arguments]",Ue="[object Array]",je="[object Boolean]",ft="[object Date]",Ct="[object Error]",Xe="[object Function]",hn="[object GeneratorFunction]",Nt="[object Map]",Te="[object Number]",vt="[object Object]",ze="[object RegExp]",Vt="[object Set]",Tt="[object String]",un="[object Symbol]",on="[object WeakMap]",Lr="[object ArrayBuffer]",Yr="[object DataView]",fi="[object Float32Array]",Xi="[object Float64Array]",Qi="[object Int8Array]",hi="[object Int16Array]",Go="[object Int32Array]",Mo="[object Uint8Array]",pe="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Vi="[object Uint32Array]",ro={};ro[Oe]=ro[Ue]=ro[Lr]=ro[Yr]=ro[je]=ro[ft]=ro[fi]=ro[Xi]=ro[Qi]=ro[hi]=ro[Go]=ro[Nt]=ro[Te]=ro[vt]=ro[ze]=ro[Vt]=ro[Tt]=ro[un]=ro[Mo]=ro[pe]=ro[Ii]=ro[Vi]=!0,ro[Ct]=ro[Xe]=ro[on]=!1;function ai(Ms,Ar,Rt,jn,wr,oi){var Ti,Bi=Ar&ht,no=Ar&Pe,Vr=Ar&et;if(Rt&&(Ti=wr?Rt(Ms,jn,wr,oi):Rt(Ms)),Ti!==void 0)return Ti;if(!rt(Ms))return Ms;var Rn=Ge(Ms);if(Rn){if(Ti=Ce(Ms),!Bi)return Y(Ms,Ti)}else{var Xt=Be(Ms),Sn=Xt==Xe||Xt==hn;if(at(Ms))return X(Ms,Bi);if(Xt==vt||Xt==Oe||Sn&&!wr){if(Ti=no||Sn?{}:nt(Ms),!Bi)return no?ae(Ms,W(Ti,Ms)):ie(Ms,A(Ti,Ms))}else{if(!ro[Xt])return wr?Ms:{};Ti=ct(Ms,Xt,Bi)}}oi||(oi=new v);var Pn=oi.get(Ms);if(Pn)return Pn;oi.set(Ms,Ti),Gt(Ms)?Ms.forEach(function(tt){Ti.add(ai(tt,Ar,Rt,tt,Ms,oi))}):Ye(Ms)&&Ms.forEach(function(tt,kt){Ti.set(kt,ai(tt,Ar,Rt,kt,Ms,oi))});var hr=Vr?no?Ie:se:no?Et:yt,mt=Rn?void 0:hr(Ms);return z(mt||Ms,function(tt,kt){mt&&(kt=tt,tt=Ms[kt]),P(Ti,kt,ai(tt,Ar,Rt,kt,Ms,oi))}),Ti}St.exports=ai},35024:function(St,me,x){var v=x(20816),z=Object.create,P=function(){function A(){}return function(W){if(!v(W))return{};if(z)return z(W);A.prototype=W;var X=new A;return A.prototype=void 0,X}}();St.exports=P},51533:function(St){function me(x,v,z,P){for(var A=x.length,W=z+(P?1:-1);P?W--:++W-1;)Ge!==ae&&Y.call(Ge,at,1),Y.call(ae,at,1);return ae}St.exports=ie},92918:function(St,me,x){var v=x(46962),z=x(19652),P=x(71152);function A(W,X){return P(z(W,X,v),W+"")}St.exports=A},63989:function(St,me,x){var v=x(13503),z=x(35234),P=x(46962),A=z?function(W,X){return z(W,"toString",{configurable:!0,enumerable:!1,value:v(X),writable:!0})}:P;St.exports=A},75760:function(St){function me(x,v,z){var P=-1,A=x.length;v<0&&(v=-v>A?0:A+v),z=z>A?A:z,z<0&&(z+=A),A=v>z?0:z-v>>>0,v>>>=0;for(var W=Array(A);++P=Y){var Ye=se?null:W(ae);if(Ye)return X(Ye);nt=!1,Ce=A,at=new v}else at=se?[]:Ge;e:for(;++Be=X?P:v(P,A,W)}St.exports=z},20188:function(St,me,x){var v=x(77945);function z(P){var A=new P.constructor(P.byteLength);return new v(A).set(new v(P)),A}St.exports=z},32315:function(St,me,x){St=x.nmd(St);var v=x(33152),z=me&&!me.nodeType&&me,P=z&&!0&&St&&!St.nodeType&&St,A=P&&P.exports===z,W=A?v.Buffer:void 0,X=W?W.allocUnsafe:void 0;function Y(ie,ae){if(ae)return ie.slice();var se=ie.length,Ie=X?X(se):new ie.constructor(se);return ie.copy(Ie),Ie}St.exports=Y},27984:function(St,me,x){var v=x(20188);function z(P,A){var W=A?v(P.buffer):P.buffer;return new P.constructor(W,P.byteOffset,P.byteLength)}St.exports=z},78583:function(St){var me=/\w*$/;function x(v){var z=new v.constructor(v.source,me.exec(v));return z.lastIndex=v.lastIndex,z}St.exports=x},28757:function(St,me,x){var v=x(91869),z=v?v.prototype:void 0,P=z?z.valueOf:void 0;function A(W){return P?Object(P.call(W)):{}}St.exports=A},78358:function(St,me,x){var v=x(20188);function z(P,A){var W=A?v(P.buffer):P.buffer;return new P.constructor(W,P.byteOffset,P.length)}St.exports=z},47760:function(St){function me(x,v){var z=-1,P=x.length;for(v||(v=Array(P));++z1?X[ie-1]:void 0,se=ie>2?X[2]:void 0;for(ae=A.length>3&&typeof ae=="function"?(ie--,ae):void 0,se&&z(X[0],X[1],se)&&(ae=ie<3?void 0:ae,ie=1),W=Object(W);++Yct))return!1;var Ge=Be.get(Y),at=Be.get(ie);if(Ge&&at)return Ge==ie&&at==Y;var Ye=-1,rt=!0,Gt=ae&W?new v:void 0;for(Be.set(Y,ie),Be.set(ie,Y);++Ye-1&&z%1==0&&z-1}St.exports=z},54238:function(St,me,x){var v=x(67971);function z(P,A){var W=this.__data__,X=v(W,P);return X<0?(++this.size,W.push([P,A])):W[X][1]=A,this}St.exports=z},35365:function(St,me,x){var v=x(76414),z=x(99746),P=x(40164);function A(){this.size=0,this.__data__={hash:new v,map:new(P||z),string:new v}}St.exports=A},63765:function(St,me,x){var v=x(89819);function z(P){var A=v(this,P).delete(P);return this.size-=A?1:0,A}St.exports=z},12608:function(St,me,x){var v=x(89819);function z(P){return v(this,P).get(P)}St.exports=z},10203:function(St,me,x){var v=x(89819);function z(P){return v(this,P).has(P)}St.exports=z},11298:function(St,me,x){var v=x(89819);function z(P,A){var W=v(this,P),X=W.size;return W.set(P,A),this.size+=W.size==X?0:1,this}St.exports=z},83383:function(St){function me(x){var v=-1,z=Array(x.size);return x.forEach(function(P,A){z[++v]=[A,P]}),z}St.exports=me},26332:function(St,me,x){var v=x(52858),z=500;function P(A){var W=v(A,function(Y){return X.size===z&&X.clear(),Y}),X=W.cache;return W}St.exports=P},65294:function(St,me,x){var v=x(73893),z=v(Object,"create");St.exports=z},23730:function(St,me,x){var v=x(31030),z=v(Object.keys,Object);St.exports=z},97817:function(St){function me(x){var v=[];if(x!=null)for(var z in Object(x))v.push(z);return v}St.exports=me},52495:function(St,me,x){St=x.nmd(St);var v=x(37675),z=me&&!me.nodeType&&me,P=z&&!0&&St&&!St.nodeType&&St,A=P&&P.exports===z,W=A&&v.process,X=function(){try{var Y=P&&P.require&&P.require("util").types;return Y||W&&W.binding&&W.binding("util")}catch(ie){}}();St.exports=X},74702:function(St){var me=Object.prototype,x=me.toString;function v(z){return x.call(z)}St.exports=v},31030:function(St){function me(x,v){return function(z){return x(v(z))}}St.exports=me},19652:function(St,me,x){var v=x(79628),z=Math.max;function P(A,W,X){return W=z(W===void 0?A.length-1:W,0),function(){for(var Y=arguments,ie=-1,ae=z(Y.length-W,0),se=Array(ae);++ie0){if(++A>=me)return arguments[0]}else A=0;return P.apply(void 0,arguments)}}St.exports=z},31119:function(St,me,x){var v=x(99746);function z(){this.__data__=new v,this.size=0}St.exports=z},64399:function(St){function me(x){var v=this.__data__,z=v.delete(x);return this.size=v.size,z}St.exports=me},81897:function(St){function me(x){return this.__data__.get(x)}St.exports=me},90558:function(St){function me(x){return this.__data__.has(x)}St.exports=me},64841:function(St,me,x){var v=x(99746),z=x(40164),P=x(52166),A=200;function W(X,Y){var ie=this.__data__;if(ie instanceof v){var ae=ie.__data__;if(!z||ae.length=ae||Xe<0||rt&&hn>=Ce}function et(){var Ct=z();if(Pe(Ct))return Oe(Ct);nt=setTimeout(et,ht(Ct))}function Oe(Ct){return nt=void 0,Gt&&Ie?yt(Ct):(Ie=Be=void 0,ct)}function Ue(){nt!==void 0&&clearTimeout(nt),at=0,Ie=Ge=Be=nt=void 0}function je(){return nt===void 0?ct:Oe(z())}function ft(){var Ct=z(),Xe=Pe(Ct);if(Ie=arguments,Be=this,Ge=Ct,Xe){if(nt===void 0)return Et(Ge);if(rt)return clearTimeout(nt),nt=setTimeout(et,ae),yt(Ge)}return nt===void 0&&(nt=setTimeout(et,ae)),ct}return ft.cancel=Ue,ft.flush=je,ft}St.exports=Y},31876:function(St,me,x){var v=x(70668),z=x(44140),P=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,A="\\u0300-\\u036f",W="\\ufe20-\\ufe2f",X="\\u20d0-\\u20ff",Y=A+W+X,ie="["+Y+"]",ae=RegExp(ie,"g");function se(Ie){return Ie=z(Ie),Ie&&Ie.replace(P,v).replace(ae,"")}St.exports=se},43607:function(St){function me(x,v){return x===v||x!==x&&v!==v}St.exports=me},44231:function(St,me,x){var v=x(89147);function z(P,A,W){var X=P==null?void 0:v(P,A);return X===void 0?W:X}St.exports=z},46962:function(St){function me(x){return x}St.exports=me},13053:function(St,me,x){var v=x(4977),z=x(93913),P=Object.prototype,A=P.hasOwnProperty,W=P.propertyIsEnumerable,X=v(function(){return arguments}())?v:function(Y){return z(Y)&&A.call(Y,"callee")&&!W.call(Y,"callee")};St.exports=X},80744:function(St){var me=Array.isArray;St.exports=me},24665:function(St,me,x){var v=x(9363),z=x(11156);function P(A){return A!=null&&z(A.length)&&!v(A)}St.exports=P},41590:function(St,me,x){var v=x(24665),z=x(93913);function P(A){return z(A)&&v(A)}St.exports=P},26561:function(St,me,x){var v=x(86756),z=x(93913),P="[object Boolean]";function A(W){return W===!0||W===!1||z(W)&&v(W)==P}St.exports=A},57835:function(St,me,x){St=x.nmd(St);var v=x(33152),z=x(55950),P=me&&!me.nodeType&&me,A=P&&!0&&St&&!St.nodeType&&St,W=A&&A.exports===P,X=W?v.Buffer:void 0,Y=X?X.isBuffer:void 0,ie=Y||z;St.exports=ie},98621:function(St,me,x){var v=x(77295);function z(P,A){return v(P,A)}St.exports=z},9363:function(St,me,x){var v=x(86756),z=x(20816),P="[object AsyncFunction]",A="[object Function]",W="[object GeneratorFunction]",X="[object Proxy]";function Y(ie){if(!z(ie))return!1;var ae=v(ie);return ae==A||ae==W||ae==P||ae==X}St.exports=Y},11156:function(St){var me=9007199254740991;function x(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=me}St.exports=x},41626:function(St,me,x){var v=x(55005),z=x(38342),P=x(52495),A=P&&P.isMap,W=A?z(A):v;St.exports=W},93544:function(St){function me(x){return x==null}St.exports=me},68868:function(St,me,x){var v=x(86756),z=x(93913),P="[object Number]";function A(W){return typeof W=="number"||z(W)&&v(W)==P}St.exports=A},20816:function(St){function me(x){var v=typeof x;return x!=null&&(v=="object"||v=="function")}St.exports=me},93913:function(St){function me(x){return x!=null&&typeof x=="object"}St.exports=me},19308:function(St,me,x){var v=x(86756),z=x(49217),P=x(93913),A="[object Object]",W=Function.prototype,X=Object.prototype,Y=W.toString,ie=X.hasOwnProperty,ae=Y.call(Object);function se(Ie){if(!P(Ie)||v(Ie)!=A)return!1;var Be=z(Ie);if(Be===null)return!0;var Ce=ie.call(Be,"constructor")&&Be.constructor;return typeof Ce=="function"&&Ce instanceof Ce&&Y.call(Ce)==ae}St.exports=se},65226:function(St,me,x){var v=x(38652),z=x(38342),P=x(52495),A=P&&P.isSet,W=A?z(A):v;St.exports=W},7941:function(St,me,x){var v=x(86756),z=x(80744),P=x(93913),A="[object String]";function W(X){return typeof X=="string"||!z(X)&&P(X)&&v(X)==A}St.exports=W},45029:function(St,me,x){var v=x(86756),z=x(93913),P="[object Symbol]";function A(W){return typeof W=="symbol"||z(W)&&v(W)==P}St.exports=A},18397:function(St,me,x){var v=x(10766),z=x(38342),P=x(52495),A=P&&P.isTypedArray,W=A?z(A):v;St.exports=W},16513:function(St){function me(x){return x===void 0}St.exports=me},55451:function(St,me,x){var v=x(63333),z=x(6019),P=x(24665);function A(W){return P(W)?v(W):z(W)}St.exports=A},56730:function(St,me,x){var v=x(63333),z=x(33988),P=x(24665);function A(W){return P(W)?v(W,!0):z(W)}St.exports=A},89392:function(St,me,x){St=x.nmd(St);var v;(function(){var z,P="4.17.21",A=200,W="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",X="Expected a function",Y="Invalid `variable` option passed into `_.template`",ie="__lodash_hash_undefined__",ae=500,se="__lodash_placeholder__",Ie=1,Be=2,Ce=4,ct=1,nt=2,Ge=1,at=2,Ye=4,rt=8,Gt=16,yt=32,Et=64,ht=128,Pe=256,et=512,Oe=30,Ue="...",je=800,ft=16,Ct=1,Xe=2,hn=3,Nt=1/0,Te=9007199254740991,vt=17976931348623157e292,ze=0/0,Vt=4294967295,Tt=Vt-1,un=Vt>>>1,on=[["ary",ht],["bind",Ge],["bindKey",at],["curry",rt],["curryRight",Gt],["flip",et],["partial",yt],["partialRight",Et],["rearg",Pe]],Lr="[object Arguments]",Yr="[object Array]",fi="[object AsyncFunction]",Xi="[object Boolean]",Qi="[object Date]",hi="[object DOMException]",Go="[object Error]",Mo="[object Function]",pe="[object GeneratorFunction]",Ii="[object Map]",Vi="[object Number]",ro="[object Null]",ai="[object Object]",Ms="[object Promise]",Ar="[object Proxy]",Rt="[object RegExp]",jn="[object Set]",wr="[object String]",oi="[object Symbol]",Ti="[object Undefined]",Bi="[object WeakMap]",no="[object WeakSet]",Vr="[object ArrayBuffer]",Rn="[object DataView]",Xt="[object Float32Array]",Sn="[object Float64Array]",Pn="[object Int8Array]",hr="[object Int16Array]",mt="[object Int32Array]",tt="[object Uint8Array]",kt="[object Uint8ClampedArray]",vn="[object Uint16Array]",vr="[object Uint32Array]",qr=/\b__p \+= '';/g,Ni=/\b(__p \+=) '' \+/g,li=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Un=/&(?:amp|lt|gt|quot|#39);/g,dn=/[&<>"']/g,xt=RegExp(Un.source),it=RegExp(dn.source),Bt=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,ir=/<%=([\s\S]+?)%>/g,tr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jn=/^\w*$/,nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/[\\^$.*+?()[\]{}|]/g,Fr=RegExp(er.source),jr=/^\s+/,bo=/\s/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,en=/\{\n\/\* \[wrapped with (.+)\] \*/,Cn=/,? & /,rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pr=/[()=,{}\[\]\/\s]/,Er=/\\(\\)?/g,ui=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gr=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,Ei=/^0b[01]+$/i,Zi=/^\[object .+?Constructor\]$/,Kr=/^0o[0-7]+$/i,Xr=/^(?:0|[1-9]\d*)$/,Qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pr=/($^)/,qo=/['\n\r\u2028\u2029\\]/g,Br="\\ud800-\\udfff",sr="\\u0300-\\u036f",ii="\\ufe20-\\ufe2f",qi="\\u20d0-\\u20ff",Ln=sr+ii+qi,zn="\\u2700-\\u27bf",Wi="a-z\\xdf-\\xf6\\xf8-\\xff",Yi="\\xac\\xb1\\xd7\\xf7",so="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ko="\\u2000-\\u206f",_i=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ts="\\ufe0e\\ufe0f",Qr=Yi+so+ko+_i,Ai="['\u2019]",Ri="["+Br+"]",To="["+Qr+"]",yo="["+Ln+"]",ao="\\d+",Bs="["+zn+"]",fa="["+Wi+"]",ba="[^"+Br+Qr+ao+zn+Wi+hs+"]",Rs="\\ud83c[\\udffb-\\udfff]",Ds="(?:"+yo+"|"+Rs+")",el="[^"+Br+"]",tl="(?:\\ud83c[\\udde6-\\uddff]){2}",sn="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="["+hs+"]",Mt="\\u200d",Zt="(?:"+fa+"|"+ba+")",Kt="(?:"+dt+"|"+ba+")",Nn="(?:"+Ai+"(?:d|ll|m|re|s|t|ve))?",Ur="(?:"+Ai+"(?:D|LL|M|RE|S|T|VE))?",Ui=Ds+"?",Ao="["+Ts+"]?",rs="(?:"+Mt+"(?:"+[el,tl,sn].join("|")+")"+Ao+Ui+")*",ps="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Po="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$a=Ao+Ui+rs,nl="(?:"+[Bs,tl,sn].join("|")+")"+$a,ka="(?:"+[el+yo+"?",yo,tl,sn,Ri].join("|")+")",Xs=RegExp(Ai,"g"),zs=RegExp(yo,"g"),xa=RegExp(Rs+"(?="+Rs+")|"+ka+$a,"g"),Ea=RegExp([dt+"?"+fa+"+"+Nn+"(?="+[To,dt,"$"].join("|")+")",Kt+"+"+Ur+"(?="+[To,dt+Zt,"$"].join("|")+")",dt+"?"+Zt+"+"+Nn,dt+"+"+Ur,Po,ps,ao,nl].join("|"),"g"),_a=RegExp("["+Mt+Br+Ln+Ts+"]"),Ba=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Al=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ks=-1,Za={};Za[Xt]=Za[Sn]=Za[Pn]=Za[hr]=Za[mt]=Za[tt]=Za[kt]=Za[vn]=Za[vr]=!0,Za[Lr]=Za[Yr]=Za[Vr]=Za[Xi]=Za[Rn]=Za[Qi]=Za[Go]=Za[Mo]=Za[Ii]=Za[Vi]=Za[ai]=Za[Rt]=Za[jn]=Za[wr]=Za[Bi]=!1;var lu={};lu[Lr]=lu[Yr]=lu[Vr]=lu[Rn]=lu[Xi]=lu[Qi]=lu[Xt]=lu[Sn]=lu[Pn]=lu[hr]=lu[mt]=lu[Ii]=lu[Vi]=lu[ai]=lu[Rt]=lu[jn]=lu[wr]=lu[oi]=lu[tt]=lu[kt]=lu[vn]=lu[vr]=!0,lu[Go]=lu[Mo]=lu[Bi]=!1;var mu={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},nu={"&":"&","<":"<",">":">",'"':""","'":"'"},Fl={"&":"&","<":"<",">":">",""":'"',"'":"'"},va={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ua=parseFloat,Yl=parseInt,Cc=typeof x.g=="object"&&x.g&&x.g.Object===Object&&x.g,ch=typeof self=="object"&&self&&self.Object===Object&&self,mh=Cc||ch||Function("return this")(),_h=me&&!me.nodeType&&me,wh=_h&&!0&&St&&!St.nodeType&&St,vu=wh&&wh.exports===_h,ru=vu&&Cc.process,Ql=function(){try{var ws=wh&&wh.require&&wh.require("util").types;return ws||ru&&ru.binding&&ru.binding("util")}catch(Eu){}}(),Hi=Ql&&Ql.isArrayBuffer,ji=Ql&&Ql.isDate,Gn=Ql&&Ql.isMap,Sr=Ql&&Ql.isRegExp,Rr=Ql&&Ql.isSet,co=Ql&&Ql.isTypedArray;function ns(ws,Eu,$l){switch($l.length){case 0:return ws.call(Eu);case 1:return ws.call(Eu,$l[0]);case 2:return ws.call(Eu,$l[0],$l[1]);case 3:return ws.call(Eu,$l[0],$l[1],$l[2])}return ws.apply(Eu,$l)}function fs(ws,Eu,$l,Ou){for(var Lu=-1,mc=ws==null?0:ws.length;++Lu-1}function Vs(ws,Eu,$l){for(var Ou=-1,Lu=ws==null?0:ws.length;++Ou-1;);return $l}function fp(ws,Eu){for(var $l=ws.length;$l--&&tc(Eu,ws[$l],0)>-1;);return $l}function us(ws,Eu){for(var $l=ws.length,Ou=0;$l--;)ws[$l]===Eu&&++Ou;return Ou}var Ca=Vd(mu),Ta=Vd(nu);function Ja(ws){return"\\"+va[ws]}function ou(ws,Eu){return ws==null?z:ws[Eu]}function yu(ws){return _a.test(ws)}function Ec(ws){return Ba.test(ws)}function Xu(ws){for(var Eu,$l=[];!(Eu=ws.next()).done;)$l.push(Eu.value);return $l}function Jl(ws){var Eu=-1,$l=Array(ws.size);return ws.forEach(function(Ou,Lu){$l[++Eu]=[Lu,Ou]}),$l}function Rc(ws,Eu){return function($l){return ws(Eu($l))}}function Ac(ws,Eu){for(var $l=-1,Ou=ws.length,Lu=0,mc=[];++$l-1}function H(fe,We){var gn=this.__data__,ci=Pu(gn,fe);return ci<0?(++this.size,gn.push([fe,We])):gn[ci][1]=We,this}Ht.prototype.clear=Qt,Ht.prototype.delete=$n,Ht.prototype.get=kr,Ht.prototype.has=B,Ht.prototype.set=H;function G(fe){var We=-1,gn=fe==null?0:fe.length;for(this.clear();++We=We?fe:We)),fe}function Yd(fe,We,gn,ci,is,ya){var zl,cu=We&Ie,Gu=We&Be,qh=We&Ce;if(gn&&(zl=is?gn(fe,ci,is,ya):gn(fe)),zl!==z)return zl;if(!ul(fe))return fe;var Qh=de(fe);if(Qh){if(zl=$i(fe),!cu)return Fe(fe,zl)}else{var Td=ta(fe),Yf=Td==Mo||Td==pe;if(Tn(fe))return ln(fe,cu);if(Td==ai||Td==Lr||Yf&&!is){if(zl=Gu||Yf?{}:$s(fe),!cu)return Gu?An(fe,qc(zl,fe)):fn(fe,ju(zl,fe))}else{if(!lu[Td])return is?fe:{};zl=Ko(fe,Td,cu)}}ya||(ya=new Mi);var Op=ya.get(fe);if(Op)return Op;ya.set(fe,zl),Rf(fe)?fe.forEach(function(Pg){zl.add(Yd(Pg,We,gn,Pg,fe,ya))}):Uu(fe)&&fe.forEach(function(Pg,Cm){zl.set(Cm,Yd(Pg,We,gn,Cm,fe,ya))});var fg=qh?Gu?ls:Io:Gu?fv:$m,mm=Qh?z:fg(fe);return vs(mm||fe,function(Pg,Cm){mm&&(Cm=Pg,Pg=fe[Cm]),du(zl,Cm,Yd(Pg,We,gn,Cm,fe,ya))}),zl}function Qc(fe){var We=$m(fe);return function(gn){return wc(gn,fe,We)}}function wc(fe,We,gn){var ci=gn.length;if(fe==null)return!ci;for(fe=rh(fe);ci--;){var is=gn[ci],ya=We[is],zl=fe[is];if(zl===z&&!(is in fe)||!ya(zl))return!1}return!0}function bf(fe,We,gn){if(typeof fe!="function")throw new id(X);return yl(function(){fe.apply(z,gn)},We)}function Jd(fe,We,gn,ci){var is=-1,ya=pl,zl=!0,cu=fe.length,Gu=[],qh=We.length;if(!cu)return Gu;gn&&(We=ol(We,Pd(gn))),ci?(ya=Vs,zl=!1):We.length>=A&&(ya=$f,zl=!1,We=new _r(We));e:for(;++isis?0:is+gn),ci=ci===z||ci>is?is:oc(ci),ci<0&&(ci+=is),ci=gn>ci?0:gd(ci);gn0&&gn(cu)?We>1?Lp(cu,We-1,gn,ci,is):sl(is,cu):ci||(is[is.length]=cu)}return is}var jc=Tr(),yc=Tr(!0);function yh(fe,We){return fe&&jc(fe,We,$m)}function uh(fe,We){return fe&&yc(fe,We,$m)}function ad(fe,We){return Ss(We,function(gn){return Aa(fe[gn])})}function bc(fe,We){We=pt(We,fe);for(var gn=0,ci=We.length;fe!=null&&gnWe}function Oo(fe,We){return fe!=null&&Of.call(fe,We)}function Vp(fe,We){return fe!=null&&We in rh(fe)}function Rp(fe,We,gn){return fe>=Ep(We,gn)&&fe=120&&Qh.length>=120)?new _r(zl&&Qh):z}Qh=fe[0];var Td=-1,Yf=cu[0];e:for(;++Td-1;)cu!==fe&&pg.call(cu,Gu,1),pg.call(fe,Gu,1);return fe}function Fg(fe,We){for(var gn=fe?We.length:0,ci=gn-1;gn--;){var is=We[gn];if(gn==ci||is!==ya){var ya=is;vl(is)?pg.call(fe,is,1):m0(fe,is)}}return fe}function tv(fe,We){return fe+Pp(zp()*(We-fe+1))}function hp(fe,We,gn,ci){for(var is=-1,ya=Qf(od((We-fe)/(gn||1)),0),zl=$l(ya);ya--;)zl[ci?ya:++is]=fe,fe+=gn;return zl}function Gp(fe,We){var gn="";if(!fe||We<1||We>Te)return gn;do We%2&&(gn+=fe),We=Pp(We/2),We&&(fe+=fe);while(We);return gn}function Cf(fe,We){return rd(Hl(fe,We,$v),fe+"")}function P0(fe){return za($0(fe))}function H0(fe,We){var gn=$0(fe);return fd(gn,Gh(We,0,gn.length))}function Om(fe,We,gn,ci){if(!ul(fe))return fe;We=pt(We,fe);for(var is=-1,ya=We.length,zl=ya-1,cu=fe;cu!=null&&++isis?0:is+We),gn=gn>is?is:gn,gn<0&&(gn+=is),is=We>gn?0:gn-We>>>0,We>>>=0;for(var ya=$l(is);++ci>>1,zl=fe[ya];zl!==null&&!Mg(zl)&&(gn?zl<=We:zl=A){var qh=We?null:oo(fe);if(qh)return Fh(qh);zl=!1,is=$f,Gu=new _r}else Gu=We?[]:cu;e:for(;++ci=ci?fe:Kd(fe,We,gn)}var cn=kg||function(fe){return mh.clearTimeout(fe)};function ln(fe,We){if(We)return fe.slice();var gn=fe.length,ci=vc?vc(gn):new fe.constructor(gn);return fe.copy(ci),ci}function mn(fe){var We=new fe.constructor(fe.byteLength);return new mo(We).set(new mo(fe)),We}function Mn(fe,We){var gn=We?mn(fe.buffer):fe.buffer;return new fe.constructor(gn,fe.byteOffset,fe.byteLength)}function Yn(fe){var We=new fe.constructor(fe.source,Gr.exec(fe));return We.lastIndex=fe.lastIndex,We}function fr(fe){return Sd?rh(Sd.call(fe)):{}}function $r(fe,We){var gn=We?mn(fe.buffer):fe.buffer;return new fe.constructor(gn,fe.byteOffset,fe.length)}function ti(fe,We){if(fe!==We){var gn=fe!==z,ci=fe===null,is=fe===fe,ya=Mg(fe),zl=We!==z,cu=We===null,Gu=We===We,qh=Mg(We);if(!cu&&!qh&&!ya&&fe>We||ya&&zl&&Gu&&!cu&&!qh||ci&&zl&&Gu||!gn&&Gu||!is)return 1;if(!ci&&!ya&&!qh&&fe=cu)return Gu;var qh=gn[ci];return Gu*(qh=="desc"?-1:1)}}return fe.index-We.index}function vi(fe,We,gn,ci){for(var is=-1,ya=fe.length,zl=gn.length,cu=-1,Gu=We.length,qh=Qf(ya-zl,0),Qh=$l(Gu+qh),Td=!ci;++cu1?gn[is-1]:z,zl=is>2?gn[2]:z;for(ya=fe.length>3&&typeof ya=="function"?(is--,ya):z,zl&&Wa(gn[0],gn[1],zl)&&(ya=is<3?z:ya,is=1),We=rh(We);++ci-1?is[ya?We[zl]:zl]:z}}function kn(fe){return si(function(We){var gn=We.length,ci=gn,is=te.prototype.thru;for(fe&&We.reverse();ci--;){var ya=We[ci];if(typeof ya!="function")throw new id(X);if(is&&!zl&&lo(ya)=="wrapper")var zl=new te([],!0)}for(ci=zl?ci:gn;++ci1&&Wm.reverse(),Qh&&Gucu))return!1;var qh=ya.get(fe),Qh=ya.get(We);if(qh&&Qh)return qh==We&&Qh==fe;var Td=-1,Yf=!0,Op=gn&nt?new _r:z;for(ya.set(fe,We),ya.set(We,fe);++Td1?"& ":"")+We[ci],We=We.join(gn>2?", ":" "),fe.replace(zt,`{ +/* [wrapped with `+We+`] */ +`)}function pa(fe){return de(fe)||K(fe)||!!(kf&&fe&&fe[kf])}function vl(fe,We){var gn=typeof fe;return We=We==null?Te:We,!!We&&(gn=="number"||gn!="symbol"&&Xr.test(fe))&&fe>-1&&fe%1==0&&fe0){if(++We>=je)return arguments[0]}else We=0;return fe.apply(z,arguments)}}function fd(fe,We){var gn=-1,ci=fe.length,is=ci-1;for(We=We===z?ci:We;++gn1?fe[We-1]:z;return gn=typeof gn=="function"?(fe.pop(),gn):z,rc(fe,gn)});function Xg(fe){var We=Vo(fe);return We.__chain__=!0,We}function Cv(fe,We){return We(fe),fe}function i0(fe,We){return We(fe)}var Ps=si(function(fe){var We=fe.length,gn=We?fe[0]:0,ci=this.__wrapped__,is=function(ya){return td(ya,fe)};return We>1||this.__actions__.length||!(ci instanceof ue)||!vl(gn)?this.thru(is):(ci=ci.slice(gn,+gn+(We?1:0)),ci.__actions__.push({func:i0,args:[is],thisArg:z}),new te(ci,this.__chain__).thru(function(ya){return We&&!ya.length&&ya.push(z),ya}))});function kv(){return Xg(this)}function Sg(){return new te(this.value(),this.__chain__)}function ov(){this.__values__===z&&(this.__values__=Cu(this.value()));var fe=this.__index__>=this.__values__.length,We=fe?z:this.__values__[this.__index__++];return{done:fe,value:We}}function xe(){return this}function f(fe){for(var We,gn=this;gn instanceof k;){var ci=_c(gn);ci.__index__=0,ci.__values__=z,We?is.__wrapped__=ci:We=ci;var is=ci;gn=gn.__wrapped__}return is.__wrapped__=fe,We}function m(){var fe=this.__wrapped__;if(fe instanceof ue){var We=fe;return this.__actions__.length&&(We=new ue(this)),We=We.reverse(),We.__actions__.push({func:i0,args:[mf],thisArg:z}),new te(We,this.__chain__)}return this.thru(mf)}function C(){return ge(this.__wrapped__,this.__actions__)}var N=wn(function(fe,We,gn){Of.call(fe,gn)?++fe[gn]:vh(fe,gn,1)});function q(fe,We,gn){var ci=de(fe)?da:qd;return gn&&Wa(fe,We,gn)&&(We=z),ci(fe,No(We,3))}function oe(fe,We){var gn=de(fe)?Ss:wp;return gn(fe,No(We,3))}var _e=Cr(Jr),$e=Cr(_o);function Ft(fe,We){return Lp(Bo(fe,We),1)}function an(fe,We){return Lp(Bo(fe,We),Nt)}function nr(fe,We,gn){return gn=gn===z?1:oc(gn),Lp(Bo(fe,We),gn)}function Dr(fe,We){var gn=de(fe)?vs:nd;return gn(fe,No(We,3))}function bi(fe,We){var gn=de(fe)?as:gf;return gn(fe,No(We,3))}var Di=wn(function(fe,We,gn){Of.call(fe,gn)?fe[gn].push(We):vh(fe,gn,[We])});function Ro(fe,We,gn,ci){fe=gt(fe)?fe:$0(fe),gn=gn&&!ci?oc(gn):0;var is=fe.length;return gn<0&&(gn=Qf(is+gn,0)),og(fe)?gn<=is&&fe.indexOf(We,gn)>-1:!!is&&tc(fe,We,gn)>-1}var Lo=Cf(function(fe,We,gn){var ci=-1,is=typeof We=="function",ya=gt(fe)?$l(fe.length):[];return nd(fe,function(zl){ya[++ci]=is?ns(We,zl,gn):sp(zl,We,gn)}),ya}),Wo=wn(function(fe,We,gn){vh(fe,gn,We)});function Bo(fe,We){var gn=de(fe)?ol:lm;return gn(fe,No(We,3))}function ho(fe,We,gn,ci){return fe==null?[]:(de(We)||(We=We==null?[]:[We]),gn=ci?z:gn,de(gn)||(gn=gn==null?[]:[gn]),M0(fe,We,gn))}var Zs=wn(function(fe,We,gn){fe[gn?0:1].push(We)},function(){return[[],[]]});function Da(fe,We,gn){var ci=de(fe)?eu:yd,is=arguments.length<3;return ci(fe,No(We,4),gn,is,nd)}function hl(fe,We,gn){var ci=de(fe)?kl:yd,is=arguments.length<3;return ci(fe,No(We,4),gn,is,gf)}function au(fe,We){var gn=de(fe)?Ss:wp;return gn(fe,Ch(No(We,3)))}function Ru(fe){var We=de(fe)?za:P0;return We(fe)}function Su(fe,We,gn){(gn?Wa(fe,We,gn):We===z)?We=1:We=oc(We);var ci=de(fe)?Oa:H0;return ci(fe,We)}function ih(fe){var We=de(fe)?Ul:dv;return We(fe)}function _u(fe){if(fe==null)return 0;if(gt(fe))return og(fe)?Ih(fe):fe.length;var We=ta(fe);return We==Ii||We==jn?fe.size:g0(fe).length}function zc(fe,We,gn){var ci=de(fe)?Wl:G0;return gn&&Wa(fe,We,gn)&&(We=z),ci(fe,No(We,3))}var Fn=Cf(function(fe,We){if(fe==null)return[];var gn=We.length;return gn>1&&Wa(fe,We[0],We[1])?We=[]:gn>2&&Wa(We[0],We[1],We[2])&&(We=[We[0]]),M0(fe,Lp(We,1),[])}),ur=vp||function(){return mh.Date.now()};function Hr(fe,We){if(typeof We!="function")throw new id(X);return fe=oc(fe),function(){if(--fe<1)return We.apply(this,arguments)}}function gi(fe,We,gn){return We=gn?z:We,We=fe&&We==null?fe.length:We,xo(fe,ht,z,z,z,z,We)}function fo(fe,We){var gn;if(typeof We!="function")throw new id(X);return fe=oc(fe),function(){return--fe>0&&(gn=We.apply(this,arguments)),fe<=1&&(We=z),gn}}var Ys=Cf(function(fe,We,gn){var ci=Ge;if(gn.length){var is=Ac(gn,So(Ys));ci|=yt}return xo(fe,ci,We,gn,is)}),Pa=Cf(function(fe,We,gn){var ci=Ge|at;if(gn.length){var is=Ac(gn,So(Pa));ci|=yt}return xo(We,ci,fe,gn,is)});function Ns(fe,We,gn){We=gn?z:We;var ci=xo(fe,rt,z,z,z,z,z,We);return ci.placeholder=Ns.placeholder,ci}function Ha(fe,We,gn){We=gn?z:We;var ci=xo(fe,Gt,z,z,z,z,z,We);return ci.placeholder=Ha.placeholder,ci}function ql(fe,We,gn){var ci,is,ya,zl,cu,Gu,qh=0,Qh=!1,Td=!1,Yf=!0;if(typeof fe!="function")throw new id(X);We=zd(We)||0,ul(gn)&&(Qh=!!gn.leading,Td="maxWait"in gn,ya=Td?Qf(zd(gn.maxWait)||0,We):ya,Yf="trailing"in gn?!!gn.trailing:Yf);function Op(Tv){var G1=ci,Zy=is;return ci=is=z,qh=Tv,zl=fe.apply(Zy,G1),zl}function fg(Tv){return qh=Tv,cu=yl(Cm,We),Qh?Op(Tv):zl}function mm(Tv){var G1=Tv-Gu,Zy=Tv-qh,SC=We-G1;return Td?Ep(SC,ya-Zy):SC}function Pg(Tv){var G1=Tv-Gu,Zy=Tv-qh;return Gu===z||G1>=We||G1<0||Td&&Zy>=ya}function Cm(){var Tv=ur();if(Pg(Tv))return Wm(Tv);cu=yl(Cm,mm(Tv))}function Wm(Tv){return cu=z,Yf&&ci?Op(Tv):(ci=is=z,zl)}function M1(){cu!==z&&cn(cu),qh=0,ci=Gu=is=cu=z}function i1(){return cu===z?zl:Wm(ur())}function S0(){var Tv=ur(),G1=Pg(Tv);if(ci=arguments,is=this,Gu=Tv,G1){if(cu===z)return fg(Gu);if(Td)return cn(cu),cu=yl(Cm,We),Op(Gu)}return cu===z&&(cu=yl(Cm,We)),zl}return S0.cancel=M1,S0.flush=i1,S0}var As=Cf(function(fe,We){return bf(fe,1,We)}),xc=Cf(function(fe,We,gn){return bf(fe,zd(We)||0,gn)});function md(fe){return xo(fe,et)}function Uh(fe,We){if(typeof fe!="function"||We!=null&&typeof We!="function")throw new id(X);var gn=function(){var ci=arguments,is=We?We.apply(this,ci):ci[0],ya=gn.cache;if(ya.has(is))return ya.get(is);var zl=fe.apply(this,ci);return gn.cache=ya.set(is,zl)||ya,zl};return gn.cache=new(Uh.Cache||G),gn}Uh.Cache=G;function Ch(fe){if(typeof fe!="function")throw new id(X);return function(){var We=arguments;switch(We.length){case 0:return!fe.call(this);case 1:return!fe.call(this,We[0]);case 2:return!fe.call(this,We[0],We[1]);case 3:return!fe.call(this,We[0],We[1],We[2])}return!fe.apply(this,We)}}function pd(fe){return fo(2,fe)}var bp=ot(function(fe,We){We=We.length==1&&de(We[0])?ol(We[0],Pd(No())):ol(Lp(We,1),Pd(No()));var gn=We.length;return Cf(function(ci){for(var is=-1,ya=Ep(ci.length,gn);++is=We}),K=_g(function(){return arguments}())?_g:function(fe){return Bl(fe)&&Of.call(fe,"callee")&&!yg.call(fe,"callee")},de=$l.isArray,Re=Hi?Pd(Hi):ld;function gt(fe){return fe!=null&&Pl(fe.length)&&!Aa(fe)}function st(fe){return Bl(fe)&>(fe)}function Yt(fe){return fe===!0||fe===!1||Bl(fe)&&Qd(fe)==Xi}var Tn=Xp||iy,Mr=ji?Pd(ji):bg;function di(fe){return Bl(fe)&&fe.nodeType===1&&!Jh(fe)}function Li(fe){if(fe==null)return!0;if(gt(fe)&&(de(fe)||typeof fe=="string"||typeof fe.splice=="function"||Tn(fe)||gm(fe)||K(fe)))return!fe.length;var We=ta(fe);if(We==Ii||We==jn)return!fe.size;if(zu(fe))return!g0(fe).length;for(var gn in fe)if(Of.call(fe,gn))return!1;return!0}function Co(fe,We){return xg(fe,We)}function Zo(fe,We,gn){gn=typeof gn=="function"?gn:z;var ci=gn?gn(fe,We):z;return ci===z?xg(fe,We,z,gn):!!ci}function gs(fe){if(!Bl(fe))return!1;var We=Qd(fe);return We==Go||We==hi||typeof fe.message=="string"&&typeof fe.name=="string"&&!Jh(fe)}function ca(fe){return typeof fe=="number"&&sd(fe)}function Aa(fe){if(!ul(fe))return!1;var We=Qd(fe);return We==Mo||We==pe||We==fi||We==Ar}function Ga(fe){return typeof fe=="number"&&fe==oc(fe)}function Pl(fe){return typeof fe=="number"&&fe>-1&&fe%1==0&&fe<=Te}function ul(fe){var We=typeof fe;return fe!=null&&(We=="object"||We=="function")}function Bl(fe){return fe!=null&&typeof fe=="object"}var Uu=Gn?Pd(Gn):Tg;function oh(fe,We){return fe===We||Od(fe,We,ma(We))}function Md(fe,We,gn){return gn=typeof gn=="function"?gn:z,Od(fe,We,ma(We),gn)}function Xf(fe){return Sf(fe)&&fe!=+fe}function Nd(fe){if(Nl(fe))throw new Lu(W);return xf(fe)}function Bd(fe){return fe===null}function xd(fe){return fe==null}function Sf(fe){return typeof fe=="number"||Bl(fe)&&Qd(fe)==Vi}function Jh(fe){if(!Bl(fe)||Qd(fe)!=ai)return!1;var We=Ic(fe);if(We===null)return!0;var gn=Of.call(We,"constructor")&&We.constructor;return typeof gn=="function"&&gn instanceof gn&&Lh.call(gn)==wd}var Oh=Sr?Pd(Sr):Vg;function ap(fe){return Ga(fe)&&fe>=-Te&&fe<=Te}var Rf=Rr?Pd(Rr):im;function og(fe){return typeof fe=="string"||!de(fe)&&Bl(fe)&&Qd(fe)==wr}function Mg(fe){return typeof fe=="symbol"||Bl(fe)&&Qd(fe)==oi}var gm=co?Pd(co):ep;function v0(fe){return fe===z}function wv(fe){return Bl(fe)&&ta(fe)==Bi}function y0(fe){return Bl(fe)&&Qd(fe)==no}var Um=wo(Ym),Fu=wo(function(fe,We){return fe<=We});function Cu(fe){if(!fe)return[];if(gt(fe))return og(fe)?Oc(fe):Fe(fe);if(Fp&&fe[Fp])return Xu(fe[Fp]());var We=ta(fe),gn=We==Ii?Jl:We==jn?Fh:$0;return gn(fe)}function sh(fe){if(!fe)return fe===0?fe:0;if(fe=zd(fe),fe===Nt||fe===-Nt){var We=fe<0?-1:1;return We*vt}return fe===fe?fe:0}function oc(fe){var We=sh(fe),gn=We%1;return We===We?gn?We-gn:We:0}function gd(fe){return fe?Gh(oc(fe),0,Vt):0}function zd(fe){if(typeof fe=="number")return fe;if(Mg(fe))return ze;if(ul(fe)){var We=typeof fe.valueOf=="function"?fe.valueOf():fe;fe=ul(We)?We+"":We}if(typeof fe!="string")return fe===0?fe:+fe;fe=ef(fe);var gn=Ei.test(fe);return gn||Kr.test(fe)?Yl(fe.slice(2),gn?2:8):zr.test(fe)?ze:+fe}function Ef(fe){return Ut(fe,fv(fe))}function Df(fe){return fe?Gh(oc(fe),-Te,Te):fe===0?fe:0}function vd(fe){return fe==null?"":ig(fe)}var tp=gr(function(fe,We){if(zu(We)||gt(We)){Ut(We,$m(We),fe);return}for(var gn in We)Of.call(We,gn)&&du(fe,gn,We[gn])}),lp=gr(function(fe,We){Ut(We,fv(We),fe)}),$g=gr(function(fe,We,gn,ci){Ut(We,fv(We),fe,ci)}),If=gr(function(fe,We,gn,ci){Ut(We,$m(We),fe,ci)}),Jg=si(td);function Pm(fe,We){var gn=D(fe);return We==null?gn:ju(gn,We)}var Vm=Cf(function(fe,We){fe=rh(fe);var gn=-1,ci=We.length,is=ci>2?We[2]:z;for(is&&Wa(We[0],We[1],is)&&(ci=1);++gn1),ya}),Ut(fe,ls(fe),gn),ci&&(gn=Yd(gn,Ie|Be|Ce,Es));for(var is=We.length;is--;)m0(gn,We[is]);return gn});function Cy(fe,We){return A0(fe,Ch(No(We)))}var Sv=si(function(fe,We){return fe==null?{}:C0(fe,We)});function A0(fe,We){if(fe==null)return{};var gn=ol(ls(fe),function(ci){return[ci]});return We=No(We),pm(fe,gn,function(ci,is){return We(ci,is[0])})}function y_(fe,We,gn){We=pt(We,fe);var ci=-1,is=We.length;for(is||(is=1,fe=z);++ciWe){var ci=fe;fe=We,We=ci}if(gn||fe%1||We%1){var is=zp();return Ep(fe+is*(We-fe+Ua("1e-"+((is+"").length-1))),We)}return tv(fe,We)}var Z1=Bn(function(fe,We,gn){return We=We.toLowerCase(),fe+(gn?D1(We):We)});function D1(fe){return z_(vd(fe).toLowerCase())}function I1(fe){return fe=vd(fe),fe&&fe.replace(Qo,Ca).replace(zs,"")}function wy(fe,We,gn){fe=vd(fe),We=ig(We);var ci=fe.length;gn=gn===z?ci:Gh(oc(gn),0,ci);var is=gn;return gn-=We.length,gn>=0&&fe.slice(gn,is)==We}function fb(fe){return fe=vd(fe),fe&&it.test(fe)?fe.replace(dn,Ta):fe}function Av(fe){return fe=vd(fe),fe&&Fr.test(fe)?fe.replace(er,"\\$&"):fe}var pb=Bn(function(fe,We,gn){return fe+(gn?"-":"")+We.toLowerCase()}),N_=Bn(function(fe,We,gn){return fe+(gn?" ":"")+We.toLowerCase()}),L1=Pi("toLowerCase");function Vy(fe,We,gn){fe=vd(fe),We=oc(We);var ci=We?Ih(fe):0;if(!We||ci>=We)return fe;var is=(We-ci)/2;return Ci(Pp(is),gn)+fe+Ci(od(is),gn)}function Tx(fe,We,gn){fe=vd(fe),We=oc(We);var ci=We?Ih(fe):0;return We&&ci>>0,gn?(fe=vd(fe),fe&&(typeof We=="string"||We!=null&&!Oh(We))&&(We=ig(We),!We&&yu(fe))?Wt(Oc(fe),0,gn):fe.split(We,gn)):[]}var Fi=Bn(function(fe,We,gn){return fe+(gn?" ":"")+z_(We)});function Yb(fe,We,gn){return fe=vd(fe),gn=gn==null?0:Gh(oc(gn),0,fe.length),We=ig(We),fe.slice(gn,gn+We.length)==We}function qb(fe,We,gn){var ci=Vo.templateSettings;gn&&Wa(fe,We,gn)&&(We=z),fe=vd(fe),We=$g({},We,ci,ki);var is=$g({},We.imports,ci.imports,ki),ya=$m(is),zl=Mf(is,ya),cu,Gu,qh=0,Qh=We.interpolate||pr,Td="__p += '",Yf=Wh((We.escape||pr).source+"|"+Qh.source+"|"+(Qh===ir?ui:pr).source+"|"+(We.evaluate||pr).source+"|$","g"),Op="//# sourceURL="+(Of.call(We,"sourceURL")?(We.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ks+"]")+` +`;fe.replace(Yf,function(Pg,Cm,Wm,M1,i1,S0){return Wm||(Wm=M1),Td+=fe.slice(qh,S0).replace(qo,Ja),Cm&&(cu=!0,Td+=`' + +__e(`+Cm+`) + +'`),i1&&(Gu=!0,Td+=`'; +`+i1+`; +__p += '`),Wm&&(Td+=`' + +((__t = (`+Wm+`)) == null ? '' : __t) + +'`),qh=S0+Pg.length,Pg}),Td+=`'; +`;var fg=Of.call(We,"variable")&&We.variable;if(!fg)Td=`with (obj) { +`+Td+` +} +`;else if(Pr.test(fg))throw new Lu(Y);Td=(Gu?Td.replace(qr,""):Td).replace(Ni,"$1").replace(li,"$1;"),Td="function("+(fg||"obj")+`) { +`+(fg?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(cu?", __e = _.escape":"")+(Gu?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+FC+`return __p -}`;var vA=CP(function(){return C2(Py,UE+"return "+FC).apply(D,j_)});if(vA.source=FC,M1(vA))throw vA;return vA}function LM(qe){return SC(qe).toLowerCase()}function A5(qe){return SC(qe).toUpperCase()}function VP(qe,An,Fa){if(qe=SC(qe),qe&&(Fa||An===D))return sS(qe);if(!qe||!(An=aT(An)))return qe;var b0=U2(qe),w1=U2(An),Py=VC(b0,w1),j_=vE(b0,w1)+1;return Gt(b0,Py,j_).join("")}function Lk(qe,An,Fa){if(qe=SC(qe),qe&&(Fa||An===D))return qe.slice(0,Tw(qe)+1);if(!qe||!(An=aT(An)))return qe;var b0=U2(qe),w1=vE(b0,U2(An))+1;return Gt(b0,0,w1).join("")}function l4(qe,An,Fa){if(qe=SC(qe),qe&&(Fa||An===D))return qe.replace(Wa,"");if(!qe||!(An=aT(An)))return qe;var b0=U2(qe),w1=VC(b0,U2(An));return Gt(b0,w1).join("")}function YI(qe,An){var Fa=Mt,b0=Bt;if(b_(An)){var w1="separator"in An?An.separator:w1;Fa="length"in An?f2(An.length):Fa,b0="omission"in An?aT(An.omission):b0}qe=SC(qe);var Py=qe.length;if(Cx(qe)){var j_=U2(qe);Py=j_.length}if(Fa>=Py)return qe;var mx=Fa-Fw(b0);if(mx<1)return b0;var n2=j_?Gt(j_,0,mx).join(""):qe.slice(0,mx);if(w1===D)return n2+b0;if(j_&&(mx+=n2.length-mx),Vw(w1)){if(qe.slice(mx).search(w1)){var rC,sC=n2;for(w1.global||(w1=eC(w1.source,SC(qg.exec(w1))+"g")),w1.lastIndex=0;rC=w1.exec(sC);)var FC=rC.index;n2=n2.slice(0,FC===D?mx:FC)}}else if(qe.indexOf(aT(w1),mx)!=mx){var tE=n2.lastIndexOf(w1);tE>-1&&(n2=n2.slice(0,tE))}return n2+b0}function H4(qe){return qe=SC(qe),qe&&On.test(qe)?qe.replace(Mo,q_):qe}var qI=Zg(function(qe,An,Fa){return qe+(Fa?" ":"")+An.toUpperCase()}),jP=t1("toUpperCase");function MM(qe,An,Fa){return qe=SC(qe),An=Fa?D:An,An===D?P2(qe)?dx(qe):gx(qe):qe.match(An)||[]}var CP=TS(function(qe,An){try{return b1(qe,D,An)}catch(Fa){return M1(Fa)?Fa:new kx(Fa)}}),sP=w0(function(qe,An){return k1(An,function(Fa){Fa=kw(Fa),ww(qe,Fa,cy(qe[Fa],qe))}),qe});function G4(qe){var An=qe==null?0:qe.length,Fa=Fv();return qe=An?h_(qe,function(b0){if(typeof b0[1]!="function")throw new dC(w);return[Fa(b0[0]),b0[1]]}):[],TS(function(b0){for(var w1=-1;++w1gt)return[];var Fa=Zs,b0=PE(qe,Zs);An=Fv(An),qe-=Zs;for(var w1=KC(b0,An);++Fa0||An<0)?new Ue(Fa):(qe<0?Fa=Fa.takeRight(-qe):qe&&(Fa=Fa.drop(qe)),An!==D&&(An=f2(An),Fa=An<0?Fa.dropRight(-An):Fa.take(An-qe)),Fa)},Ue.prototype.takeRightWhile=function(qe){return this.reverse().takeWhile(qe).reverse()},Ue.prototype.toArray=function(){return this.take(Zs)},Sw(Ue.prototype,function(qe,An){var Fa=/^(?:filter|find|map|reject)|While$/.test(An),b0=/^(?:head|last)$/.test(An),w1=r1[b0?"take"+(An=="last"?"Right":""):An],Py=b0||/^find/.test(An);w1&&(r1.prototype[An]=function(){var j_=this.__wrapped__,mx=b0?[1]:arguments,n2=j_ instanceof Ue,rC=mx[0],sC=n2||He(j_),FC=function(SA){var HA=w1.apply(r1,g_([SA],mx));return b0&&tE?HA[0]:HA};sC&&Fa&&typeof rC=="function"&&rC.length!=1&&(n2=sC=!1);var tE=this.__chain__,UE=!!this.__actions__.length,bT=Py&&!tE,vA=n2&&!UE;if(!Py&&sC){j_=vA?j_:new Ue(this);var zT=qe.apply(j_,mx);return zT.__actions__.push({func:a3,args:[FC],thisArg:D}),new Te(zT,tE)}return bT&&vA?qe.apply(this,mx):(zT=this.thru(FC),bT?b0?zT.value()[0]:zT.value():zT)})}),k1(["pop","push","shift","sort","splice","unshift"],function(qe){var An=YC[qe],Fa=/^(?:push|sort|unshift)$/.test(qe)?"tap":"thru",b0=/^(?:pop|shift)$/.test(qe);r1.prototype[qe]=function(){var w1=arguments;if(b0&&!this.__chain__){var Py=this.value();return An.apply(He(Py)?Py:[],w1)}return this[Fa](function(j_){return An.apply(He(j_)?j_:[],w1)})}}),Sw(Ue.prototype,function(qe,An){var Fa=r1[An];if(Fa){var b0=Fa.name+"";VS.call(yw,b0)||(yw[b0]=[]),yw[b0].push({name:An,func:Fa})}}),yw[Kg(D,It).name]=[{name:"wrapper",func:D}],Ue.prototype.clone=Hn,Ue.prototype.reverse=za,Ue.prototype.value=og,r1.prototype.at=X1,r1.prototype.chain=zD,r1.prototype.commit=PT,r1.prototype.next=hD,r1.prototype.plant=C,r1.prototype.reverse=P,r1.prototype.toJSON=r1.prototype.valueOf=r1.prototype.value=F,r1.prototype.first=r1.prototype.head,jE&&(r1.prototype[jE]=at),r1},Ow=bw();t2._=Ow,u=function(){return Ow}.call(g,l,g,c),u!==D&&(c.exports=u)}).call(this)},52858:function(c,g,l){var u=l(52166),D="Expected a function";function b(x,y){if(typeof x!="function"||y!=null&&typeof y!="function")throw new TypeError(D);var w=function(){var a=arguments,S=y?y.apply(this,a):a[0],I=w.cache;if(I.has(S))return I.get(S);var N=x.apply(this,a);return w.cache=I.set(S,N)||I,N};return w.cache=new(b.Cache||u),w}b.Cache=u,c.exports=b},28440:function(c,g,l){var u=l(50097),D=l(63323),b=D(function(x,y,w){u(x,y,w)});c.exports=b},24602:function(c,g,l){var u=l(50097),D=l(63323),b=D(function(x,y,w,a){u(x,y,w,a)});c.exports=b},9958:function(c){function g(){}c.exports=g},5795:function(c,g,l){var u=l(33152),D=function(){return u.Date.now()};c.exports=D},63536:function(c,g,l){var u=l(92918),D=l(14989),b=u(D);c.exports=b},14989:function(c,g,l){var u=l(23442);function D(b,x){return b&&b.length&&x&&x.length?u(b,x):b}c.exports=D},4134:function(c){function g(){return[]}c.exports=g},55950:function(c){function g(){return!1}c.exports=g},46700:function(c,g,l){var u=l(41571),D=l(20816),b="Expected a function";function x(y,w,a){var S=!0,I=!0;if(typeof y!="function")throw new TypeError(b);return D(a)&&(S="leading"in a?!!a.leading:S,I="trailing"in a?!!a.trailing:I),u(y,w,{leading:S,maxWait:w,trailing:I})}c.exports=x},20168:function(c,g,l){var u=l(13927),D=l(20816),b=l(45029),x=0/0,y=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,a=/^0o[0-7]+$/i,S=parseInt;function I(N){if(typeof N=="number")return N;if(b(N))return x;if(D(N)){var ie=typeof N.valueOf=="function"?N.valueOf():N;N=D(ie)?ie+"":ie}if(typeof N!="string")return N===0?N:+N;N=u(N);var ze=w.test(N);return ze||a.test(N)?S(N.slice(2),ze?2:8):y.test(N)?x:+N}c.exports=I},20480:function(c,g,l){var u=l(95378),D=l(56730);function b(x){return u(x,D(x))}c.exports=b},44140:function(c,g,l){var u=l(50230);function D(b){return b==null?"":u(b)}c.exports=D},21691:function(c,g,l){var u=l(29098);function D(b){return b&&b.length?u(b):[]}c.exports=D},53592:function(c,g,l){var u=l(44412),D=u("toUpperCase");c.exports=D},61503:function(c,g,l){var u=l(34130),D=l(62840),b=l(44140),x=l(97681);function y(w,a,S){return w=b(w),a=S?void 0:a,a===void 0?D(w)?x(w):u(w):w.match(a)||[]}c.exports=y},17369:function(c){(function(g,l){c.exports=l()})(this,function(){"use strict";var g,l,u;function D(b,x){if(!g)g=x;else if(!l)l=x;else{var y="var sharedChunk = {}; ("+g+")(sharedChunk); ("+l+")(sharedChunk);",w={};g(w),u=x(w),typeof window!="undefined"&&(u.workerUrl=window.URL.createObjectURL(new Blob([y],{type:"text/javascript"})))}}return D(["exports"],function(b){"use strict";function x(C,P){return C(P={exports:{}},P.exports),P.exports}var y=w;function w(C,P,F,Q){this.cx=3*C,this.bx=3*(F-C)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*P,this.by=3*(Q-P)-this.cy,this.ay=1-this.cy-this.by,this.p1x=C,this.p1y=Q,this.p2x=F,this.p2y=Q}w.prototype.sampleCurveX=function(C){return((this.ax*C+this.bx)*C+this.cx)*C},w.prototype.sampleCurveY=function(C){return((this.ay*C+this.by)*C+this.cy)*C},w.prototype.sampleCurveDerivativeX=function(C){return(3*this.ax*C+2*this.bx)*C+this.cx},w.prototype.solveCurveX=function(C,P){var F,Q,_e,Be,ot;for(P===void 0&&(P=1e-6),_e=C,ot=0;ot<8;ot++){if(Be=this.sampleCurveX(_e)-C,Math.abs(Be)(Q=1))return Q;for(;FBe?F=_e:Q=_e,_e=.5*(Q-F)+F}return _e},w.prototype.solve=function(C,P){return this.sampleCurveY(this.solveCurveX(C,P))};var a=S;function S(C,P){this.x=C,this.y=P}S.prototype={clone:function(){return new S(this.x,this.y)},add:function(C){return this.clone()._add(C)},sub:function(C){return this.clone()._sub(C)},multByPoint:function(C){return this.clone()._multByPoint(C)},divByPoint:function(C){return this.clone()._divByPoint(C)},mult:function(C){return this.clone()._mult(C)},div:function(C){return this.clone()._div(C)},rotate:function(C){return this.clone()._rotate(C)},rotateAround:function(C,P){return this.clone()._rotateAround(C,P)},matMult:function(C){return this.clone()._matMult(C)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(C){return this.x===C.x&&this.y===C.y},dist:function(C){return Math.sqrt(this.distSqr(C))},distSqr:function(C){var P=C.x-this.x,F=C.y-this.y;return P*P+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(C){return Math.atan2(this.y-C.y,this.x-C.x)},angleWith:function(C){return this.angleWithSep(C.x,C.y)},angleWithSep:function(C,P){return Math.atan2(this.x*P-this.y*C,this.x*C+this.y*P)},_matMult:function(C){var P=C[2]*this.x+C[3]*this.y;return this.x=C[0]*this.x+C[1]*this.y,this.y=P,this},_add:function(C){return this.x+=C.x,this.y+=C.y,this},_sub:function(C){return this.x-=C.x,this.y-=C.y,this},_mult:function(C){return this.x*=C,this.y*=C,this},_div:function(C){return this.x/=C,this.y/=C,this},_multByPoint:function(C){return this.x*=C.x,this.y*=C.y,this},_divByPoint:function(C){return this.x/=C.x,this.y/=C.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var C=this.y;return this.y=this.x,this.x=-C,this},_rotate:function(C){var P=Math.cos(C),F=Math.sin(C),Q=F*this.x+P*this.y;return this.x=P*this.x-F*this.y,this.y=Q,this},_rotateAround:function(C,P){var F=Math.cos(C),Q=Math.sin(C),_e=P.y+Q*(this.x-P.x)+F*(this.y-P.y);return this.x=P.x+F*(this.x-P.x)-Q*(this.y-P.y),this.y=_e,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},S.convert=function(C){return C instanceof S?C:Array.isArray(C)?new S(C[0],C[1]):C};var I=typeof self!="undefined"?self:{},N=Math.pow(2,53)-1;function ie(C,P,F,Q){var _e=new y(C,P,F,Q);return function(Be){return _e.solve(Be)}}var ze=ie(.25,.1,.25,1);function Ie(C,P,F){return Math.min(F,Math.max(P,C))}function ct(C,P,F){var Q=F-P,_e=((C-P)%Q+Q)%Q+P;return _e===P?F:_e}function At(C){for(var P=[],F=arguments.length-1;F-- >0;)P[F]=arguments[F+1];for(var Q=0,_e=P;Q<_e.length;Q+=1){var Be=_e[Q];for(var ot in Be)C[ot]=Be[ot]}return C}var rt=1;function It(){return rt++}function Ot(){return function C(P){return P?(P^16*Math.random()>>P/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,C)}()}function wn(C){return!!C&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(C)}function Hs(C,P){C.forEach(function(F){P[F]&&(P[F]=P[F].bind(P))})}function jr(C,P){return C.indexOf(P,C.length-P.length)!==-1}function Jr(C,P,F){var Q={};for(var _e in C)Q[_e]=P.call(F||this,C[_e],_e,C);return Q}function Yn(C,P,F){var Q={};for(var _e in C)P.call(F||this,C[_e],_e,C)&&(Q[_e]=C[_e]);return Q}function Lt(C){return Array.isArray(C)?C.map(Lt):typeof C=="object"&&C?Jr(C,Lt):C}var _n={};function Mt(C){_n[C]||(typeof console!="undefined"&&console.warn(C),_n[C]=!0)}function Bt(C,P,F){return(F.y-C.y)*(P.x-C.x)>(P.y-C.y)*(F.x-C.x)}function Rt(C){for(var P=0,F=0,Q=C.length,_e=Q-1,Be=void 0,ot=void 0;F@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Q,_e,Be,ot){var Sn=Be||ot;return P[_e]=!Sn||Sn.toLowerCase(),""}),P["max-age"]){var F=parseInt(P["max-age"],10);isNaN(F)?delete P["max-age"]:P["max-age"]=F}return P}var vn=null;function Ca(C){if(vn==null){var P=C.navigator?C.navigator.userAgent:null;vn=!!C.safari||!(!P||!(/\b(iPad|iPhone|iPod)\b/.test(P)||P.match("Safari")&&!P.match("Chrome")))}return vn}function ai(C){try{var P=I[C];return P.setItem("_mapbox_test_",1),P.removeItem("_mapbox_test_"),!0}catch(F){return!1}}var gt,Zr,Ht,Zs,oi=I.performance&&I.performance.now?I.performance.now.bind(I.performance):Date.now.bind(Date),Pa=I.requestAnimationFrame||I.mozRequestAnimationFrame||I.webkitRequestAnimationFrame||I.msRequestAnimationFrame,Aa=I.cancelAnimationFrame||I.mozCancelAnimationFrame||I.webkitCancelAnimationFrame||I.msCancelAnimationFrame,Pg={now:oi,frame:function(C){var P=Pa(C);return{cancel:function(){return Aa(P)}}},getImageData:function(C,P){P===void 0&&(P=0);var F=I.document.createElement("canvas"),Q=F.getContext("2d");if(!Q)throw new Error("failed to create canvas 2d context");return F.width=C.width,F.height=C.height,Q.drawImage(C,0,0,C.width,C.height),Q.getImageData(-P,-P,C.width+2*P,C.height+2*P)},resolveURL:function(C){return gt||(gt=I.document.createElement("a")),gt.href=C,gt.href},hardwareConcurrency:I.navigator&&I.navigator.hardwareConcurrency||4,get devicePixelRatio(){return I.devicePixelRatio},get prefersReducedMotion(){return!!I.matchMedia&&(Zr==null&&(Zr=I.matchMedia("(prefers-reduced-motion: reduce)")),Zr.matches)}},Ug={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},e0={supported:!1,testSupport:function(C){!H0&&Zs&&(X0?d0(C):Ht=C)}},H0=!1,X0=!1;function d0(C){var P=C.createTexture();C.bindTexture(C.TEXTURE_2D,P);try{if(C.texImage2D(C.TEXTURE_2D,0,C.RGBA,C.RGBA,C.UNSIGNED_BYTE,Zs),C.isContextLost())return;e0.supported=!0}catch(F){}C.deleteTexture(P),H0=!0}I.document&&((Zs=I.document.createElement("img")).onload=function(){Ht&&d0(Ht),Ht=null,X0=!0},Zs.onerror=function(){H0=!0,Ht=null},Zs.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var jv="01",Lv=function(C,P){this._transformRequestFn=C,this._customAccessToken=P,this._createSkuToken()};function Je(C){return C.indexOf("mapbox:")===0}Lv.prototype._createSkuToken=function(){var C=function(){for(var P="",F=0;F<10;F++)P+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",jv,P].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=C.token,this._skuTokenExpiresAt=C.tokenExpiresAt},Lv.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Lv.prototype.transformRequest=function(C,P){return this._transformRequestFn&&this._transformRequestFn(C,P)||{url:C}},Lv.prototype.normalizeStyleURL=function(C,P){if(!Je(C))return C;var F=u0(C);return F.path="/styles/v1"+F.path,this._makeAPIURL(F,this._customAccessToken||P)},Lv.prototype.normalizeGlyphsURL=function(C,P){if(!Je(C))return C;var F=u0(C);return F.path="/fonts/v1"+F.path,this._makeAPIURL(F,this._customAccessToken||P)},Lv.prototype.normalizeSourceURL=function(C,P){if(!Je(C))return C;var F=u0(C);return F.path="/v4/"+F.authority+".json",F.params.push("secure"),this._makeAPIURL(F,this._customAccessToken||P)},Lv.prototype.normalizeSpriteURL=function(C,P,F,Q){var _e=u0(C);return Je(C)?(_e.path="/styles/v1"+_e.path+"/sprite"+P+F,this._makeAPIURL(_e,this._customAccessToken||Q)):(_e.path+=""+P+F,B1(_e))},Lv.prototype.normalizeTileURL=function(C,P){if(this._isSkuTokenExpired()&&this._createSkuToken(),C&&!Je(C))return C;var F=u0(C);F.path=F.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Pg.devicePixelRatio>=2||P===512?"@2x":"")+(e0.supported?".webp":"$1")),F.path=F.path.replace(/^.+\/v4\//,"/"),F.path="/v4"+F.path;var Q=this._customAccessToken||function(_e){for(var Be=0,ot=_e;Be=0&&C.params.splice(_e,1)}if(Q.path!=="/"&&(C.path=""+Q.path+C.path),!Ug.REQUIRE_ACCESS_TOKEN)return B1(C);if(!(P=P||Ug.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+F);if(P[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+F);return C.params=C.params.filter(function(Be){return Be.indexOf("access_token")===-1}),C.params.push("access_token="+P),B1(C)};var k0=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function G0(C){return k0.test(C)}var iv=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function u0(C){var P=C.match(iv);if(!P)throw new Error("Unable to parse URL object");return{protocol:P[1],authority:P[2],path:P[3]||"/",params:P[4]?P[4].split("&"):[]}}function B1(C){var P=C.params.length?"?"+C.params.join("&"):"";return C.protocol+"://"+C.authority+C.path+P}function Dg(C){if(!C)return null;var P=C.split(".");if(!P||P.length!==3)return null;try{return JSON.parse(decodeURIComponent(I.atob(P[1]).split("").map(function(F){return"%"+("00"+F.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(F){return null}}var zo=function(C){this.type=C,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};zo.prototype.getStorageKey=function(C){var P,F=Dg(Ug.ACCESS_TOKEN);return P=F&&F.u?I.btoa(encodeURIComponent(F.u).replace(/%([0-9A-F]{2})/g,function(Q,_e){return String.fromCharCode(+("0x"+_e))})):Ug.ACCESS_TOKEN||"",C?"mapbox.eventData."+C+":"+P:"mapbox.eventData:"+P},zo.prototype.fetchEventData=function(){var C=ai("localStorage"),P=this.getStorageKey(),F=this.getStorageKey("uuid");if(C)try{var Q=I.localStorage.getItem(P);Q&&(this.eventData=JSON.parse(Q));var _e=I.localStorage.getItem(F);_e&&(this.anonId=_e)}catch(Be){Mt("Unable to read from LocalStorage")}},zo.prototype.saveEventData=function(){var C=ai("localStorage"),P=this.getStorageKey(),F=this.getStorageKey("uuid");if(C)try{I.localStorage.setItem(F,this.anonId),Object.keys(this.eventData).length>=1&&I.localStorage.setItem(P,JSON.stringify(this.eventData))}catch(Q){Mt("Unable to write to LocalStorage")}},zo.prototype.processRequests=function(C){},zo.prototype.postEvent=function(C,P,F,Q){var _e=this;if(Ug.EVENTS_URL){var Be=u0(Ug.EVENTS_URL);Be.params.push("access_token="+(Q||Ug.ACCESS_TOKEN||""));var ot={event:this.type,created:new Date(C).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:jv,userId:this.anonId},Sn=P?At(ot,P):ot,js={url:B1(Be),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Sn])};this.pendingRequest=qr(js,function(ka){_e.pendingRequest=null,F(ka),_e.saveEventData(),_e.processRequests(Q)})}},zo.prototype.queueRequest=function(C,P){this.queue.push(C),this.processRequests(P)};var mu,Ag,c0=function(C){function P(){C.call(this,"map.load"),this.success={},this.skuToken=""}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.postMapLoadEvent=function(F,Q,_e,Be){this.skuToken=_e;var ot=!(!Be&&!Ug.ACCESS_TOKEN),Sn=Array.isArray(F)&&F.some(function(js){return Je(js)||G0(js)});Ug.EVENTS_URL&&ot&&Sn&&this.queueRequest({id:Q,timestamp:Date.now()},Be)},P.prototype.processRequests=function(F){var Q=this;if(!this.pendingRequest&&this.queue.length!==0){var _e=this.queue.shift(),Be=_e.id,ot=_e.timestamp;Be&&this.success[Be]||(this.anonId||this.fetchEventData(),wn(this.anonId)||(this.anonId=Ot()),this.postEvent(ot,{skuToken:this.skuToken},function(Sn){Sn||Be&&(Q.success[Be]=!0)},F))}},P}(zo),L0=new(function(C){function P(F){C.call(this,"appUserTurnstile"),this._customAccessToken=F}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.postTurnstileEvent=function(F,Q){Ug.EVENTS_URL&&Ug.ACCESS_TOKEN&&Array.isArray(F)&&F.some(function(_e){return Je(_e)||G0(_e)})&&this.queueRequest(Date.now(),Q)},P.prototype.processRequests=function(F){var Q=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var _e=Dg(Ug.ACCESS_TOKEN),Be=_e?_e.u:Ug.ACCESS_TOKEN,ot=Be!==this.eventData.tokenU;wn(this.anonId)||(this.anonId=Ot(),ot=!0);var Sn=this.queue.shift();if(this.eventData.lastSuccess){var js=new Date(this.eventData.lastSuccess),ka=new Date(Sn),Ud=(Sn-this.eventData.lastSuccess)/864e5;ot=ot||Ud>=1||Ud<-1||js.getDate()!==ka.getDate()}else ot=!0;if(!ot)return this.processRequests();this.postEvent(Sn,{"enabled.telemetry":!1},function(Ng){Ng||(Q.eventData.lastSuccess=Sn,Q.eventData.tokenU=Be)},F)}},P}(zo)),$0=L0.postTurnstileEvent.bind(L0),cv=new c0,Gg=cv.postMapLoadEvent.bind(cv),uu=500,Gs=50;function Ia(){I.caches&&!mu&&(mu=I.caches.open("mapbox-tiles"))}function lu(C){var P=C.indexOf("?");return P<0?C:C.slice(0,P)}var _h,Kr=1/0;function fr(){return _h==null&&(_h=I.OffscreenCanvas&&new I.OffscreenCanvas(1,1).getContext("2d")&&typeof I.createImageBitmap=="function"),_h}var ri={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(ri);var Ra=function(C){function P(F,Q,_e){Q===401&&G0(_e)&&(F+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),C.call(this,F),this.status=Q,this.url=_e,this.name=this.constructor.name,this.message=F}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},P}(Error),Sg=on()?function(){return self.worker&&self.worker.referrer}:function(){return(I.location.protocol==="blob:"?I.parent:I).location.href},Jg,j0,Wo=function(C,P){if(!(/^file:/.test(F=C.url)||/^file:/.test(Sg())&&!/^\w+:/.test(F))){if(I.fetch&&I.Request&&I.AbortController&&I.Request.prototype.hasOwnProperty("signal"))return function(Q,_e){var Be,ot=new I.AbortController,Sn=new I.Request(Q.url,{method:Q.method||"GET",body:Q.body,credentials:Q.credentials,headers:Q.headers,referrer:Sg(),signal:ot.signal}),js=!1,ka=!1,Ud=(Be=Sn.url).indexOf("sku=")>0&&G0(Be);Q.type==="json"&&Sn.headers.set("Accept","application/json");var Ng=function(U0,Gv,Zv){if(!ka){if(U0&&U0.message!=="SecurityError"&&Mt(U0),Gv&&Zv)return N0(Gv);var o1=Date.now();I.fetch(Sn).then(function(qv){if(qv.ok){var Sv=Ud?qv.clone():null;return N0(qv,Sv,o1)}return _e(new Ra(qv.statusText,qv.status,Q.url))}).catch(function(qv){qv.code!==20&&_e(new Error(qv.message))})}},N0=function(U0,Gv,Zv){(Q.type==="arrayBuffer"?U0.arrayBuffer():Q.type==="json"?U0.json():U0.text()).then(function(o1){ka||(Gv&&Zv&&function(qv,Sv,ny){if(Ia(),mu){var Uy={status:Sv.status,statusText:Sv.statusText,headers:new I.Headers};Sv.headers.forEach(function(px,$x){return Uy.headers.set($x,px)});var w_=Hr(Sv.headers.get("Cache-Control")||"");w_["no-store"]||(w_["max-age"]&&Uy.headers.set("Expires",new Date(ny+1e3*w_["max-age"]).toUTCString()),new Date(Uy.headers.get("Expires")).getTime()-ny<42e4||function(px,$x){if(Ag===void 0)try{new Response(new ReadableStream),Ag=!0}catch(Ix){Ag=!1}Ag?$x(px.body):px.blob().then($x)}(Sv,function(px){var $x=new I.Response(px,Uy);Ia(),mu&&mu.then(function(Ix){return Ix.put(lu(qv.url),$x)}).catch(function(Ix){return Mt(Ix.message)})}))}}(Sn,Gv,Zv),js=!0,_e(null,o1,U0.headers.get("Cache-Control"),U0.headers.get("Expires")))}).catch(function(o1){ka||_e(new Error(o1.message))})};return Ud?function(U0,Gv){if(Ia(),!mu)return Gv(null);var Zv=lu(U0.url);mu.then(function(o1){o1.match(Zv).then(function(qv){var Sv=function(ny){if(!ny)return!1;var Uy=new Date(ny.headers.get("Expires")||0),w_=Hr(ny.headers.get("Cache-Control")||"");return Uy>Date.now()&&!w_["no-cache"]}(qv);o1.delete(Zv),Sv&&o1.put(Zv,qv.clone()),Gv(null,qv,Sv)}).catch(Gv)}).catch(Gv)}(Sn,Ng):Ng(null,null),{cancel:function(){ka=!0,js||ot.abort()}}}(C,P);if(on()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",C,P,void 0,!0)}var F;return function(Q,_e){var Be=new I.XMLHttpRequest;for(var ot in Be.open(Q.method||"GET",Q.url,!0),Q.type==="arrayBuffer"&&(Be.responseType="arraybuffer"),Q.headers)Be.setRequestHeader(ot,Q.headers[ot]);return Q.type==="json"&&(Be.responseType="text",Be.setRequestHeader("Accept","application/json")),Be.withCredentials=Q.credentials==="include",Be.onerror=function(){_e(new Error(Be.statusText))},Be.onload=function(){if((Be.status>=200&&Be.status<300||Be.status===0)&&Be.response!==null){var Sn=Be.response;if(Q.type==="json")try{Sn=JSON.parse(Be.response)}catch(js){return _e(js)}_e(null,Sn,Be.getResponseHeader("Cache-Control"),Be.getResponseHeader("Expires"))}else _e(new Ra(Be.statusText,Be.status,Q.url))},Be.send(Q.body),{cancel:function(){return Be.abort()}}}(C,P)},Mo=function(C,P){return Wo(At(C,{type:"arrayBuffer"}),P)},qr=function(C,P){return Wo(At(C,{method:"POST"}),P)},On="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Jg=[],j0=0;var rn=function(C,P){if(e0.supported&&(C.headers||(C.headers={}),C.headers.accept="image/webp,*/*"),j0>=Ug.MAX_PARALLEL_IMAGE_REQUESTS){var F={requestParameters:C,callback:P,cancelled:!1,cancel:function(){this.cancelled=!0}};return Jg.push(F),F}j0++;var Q=!1,_e=function(){if(!Q)for(Q=!0,j0--;Jg.length&&j00||this._oneTimeListeners&&this._oneTimeListeners[C]&&this._oneTimeListeners[C].length>0||this._eventedParent&&this._eventedParent.listens(C)},xu.prototype.setEventedParent=function(C,P){return this._eventedParent=C,this._eventedParentData=P,this};var xa={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Td=function(C,P,F,Q){this.message=(C?C+": ":"")+F,Q&&(this.identifier=Q),P!=null&&P.__line__&&(this.line=P.__line__)};function jg(C){var P=C.value;return P?[new Td(C.key,P,"constants have been deprecated as of v8")]:[]}function Wa(C){for(var P=[],F=arguments.length-1;F-- >0;)P[F]=arguments[F+1];for(var Q=0,_e=P;Q<_e.length;Q+=1){var Be=_e[Q];for(var ot in Be)C[ot]=Be[ot]}return C}function tv(C){return C instanceof Number||C instanceof String||C instanceof Boolean?C.valueOf():C}function Bs(C){if(Array.isArray(C))return C.map(Bs);if(C instanceof Object&&!(C instanceof Number||C instanceof String||C instanceof Boolean)){var P={};for(var F in C)P[F]=Bs(C[F]);return P}return tv(C)}var Sa=function(C){function P(F,Q){C.call(this,Q),this.message=Q,this.key=F}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P}(Error),$a=function(C,P){P===void 0&&(P=[]),this.parent=C,this.bindings={};for(var F=0,Q=P;F":C.itemType.kind==="value"?"array":"array<"+P+">"}return C.kind}var a1=[Bd,Bg,Og,g0,qg,t0,Xg,u1(A0),n0];function Hg(C,P){if(P.kind==="error")return null;if(C.kind==="array"){if(P.kind==="array"&&(P.N===0&&P.itemType.kind==="value"||!Hg(C.itemType,P.itemType))&&(typeof C.N!="number"||C.N===P.N))return null}else{if(C.kind===P.kind)return null;if(C.kind==="value"){for(var F=0,Q=a1;F255?255:Sn}function _e(Sn){return Q(Sn[Sn.length-1]==="%"?parseFloat(Sn)/100*255:parseInt(Sn))}function Be(Sn){return(js=Sn[Sn.length-1]==="%"?parseFloat(Sn)/100:parseFloat(Sn))<0?0:js>1?1:js;var js}function ot(Sn,js,ka){return ka<0?ka+=1:ka>1&&(ka-=1),6*ka<1?Sn+(js-Sn)*ka*6:2*ka<1?js:3*ka<2?Sn+(js-Sn)*(2/3-ka)*6:Sn}try{P.parseCSSColor=function(Sn){var js,ka=Sn.replace(/ /g,"").toLowerCase();if(ka in F)return F[ka].slice();if(ka[0]==="#")return ka.length===4?(js=parseInt(ka.substr(1),16))>=0&&js<=4095?[(3840&js)>>4|(3840&js)>>8,240&js|(240&js)>>4,15&js|(15&js)<<4,1]:null:ka.length===7&&(js=parseInt(ka.substr(1),16))>=0&&js<=16777215?[(16711680&js)>>16,(65280&js)>>8,255&js,1]:null;var Ud=ka.indexOf("("),Ng=ka.indexOf(")");if(Ud!==-1&&Ng+1===ka.length){var N0=ka.substr(0,Ud),U0=ka.substr(Ud+1,Ng-(Ud+1)).split(","),Gv=1;switch(N0){case"rgba":if(U0.length!==4)return null;Gv=Be(U0.pop());case"rgb":return U0.length!==3?null:[_e(U0[0]),_e(U0[1]),_e(U0[2]),Gv];case"hsla":if(U0.length!==4)return null;Gv=Be(U0.pop());case"hsl":if(U0.length!==3)return null;var Zv=(parseFloat(U0[0])%360+360)%360/360,o1=Be(U0[1]),qv=Be(U0[2]),Sv=qv<=.5?qv*(o1+1):qv+o1-qv*o1,ny=2*qv-Sv;return[Q(255*ot(ny,Sv,Zv+1/3)),Q(255*ot(ny,Sv,Zv)),Q(255*ot(ny,Sv,Zv-1/3)),Gv];default:return null}}return null}}catch(Sn){}}).parseCSSColor,su=function(C,P,F,Q){Q===void 0&&(Q=1),this.r=C,this.g=P,this.b=F,this.a=Q};su.parse=function(C){if(C){if(C instanceof su)return C;if(typeof C=="string"){var P=lv(C);if(P)return new su(P[0]/255*P[3],P[1]/255*P[3],P[2]/255*P[3],P[3])}}},su.prototype.toString=function(){var C=this.toArray(),P=C[1],F=C[2],Q=C[3];return"rgba("+Math.round(C[0])+","+Math.round(P)+","+Math.round(F)+","+Q+")"},su.prototype.toArray=function(){var C=this.a;return C===0?[0,0,0,0]:[255*this.r/C,255*this.g/C,255*this.b/C,C]},su.black=new su(0,0,0,1),su.white=new su(1,1,1,1),su.transparent=new su(0,0,0,0),su.red=new su(1,0,0,1);var hu=function(C,P,F){this.sensitivity=C?P?"variant":"case":P?"accent":"base",this.locale=F,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};hu.prototype.compare=function(C,P){return this.collator.compare(C,P)},hu.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ev=function(C,P,F,Q,_e){this.text=C,this.image=P,this.scale=F,this.fontStack=Q,this.textColor=_e},sv=function(C){this.sections=C};sv.fromString=function(C){return new sv([new ev(C,null,null,null,null)])},sv.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(C){return C.text.length!==0||C.image&&C.image.name.length!==0})},sv.factory=function(C){return C instanceof sv?C:sv.fromString(C)},sv.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(C){return C.text}).join("")},sv.prototype.serialize=function(){for(var C=["format"],P=0,F=this.sections;P=0&&C<=255&&typeof P=="number"&&P>=0&&P<=255&&typeof F=="number"&&F>=0&&F<=255?Q===void 0||typeof Q=="number"&&Q>=0&&Q<=1?null:"Invalid rgba value ["+[C,P,F,Q].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Q=="number"?[C,P,F,Q]:[C,P,F]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function E0(C){if(C===null||typeof C=="string"||typeof C=="boolean"||typeof C=="number"||C instanceof su||C instanceof hu||C instanceof sv||C instanceof yv)return!0;if(Array.isArray(C)){for(var P=0,F=C;P2){var Sn=C[1];if(typeof Sn!="string"||!(Sn in W0)||Sn==="object")return P.error('The item type argument of "array" must be one of string, number, boolean',1);Be=W0[Sn],Q++}else Be=A0;if(C.length>3){if(C[2]!==null&&(typeof C[2]!="number"||C[2]<0||C[2]!==Math.floor(C[2])))return P.error('The length argument to "array" must be a positive integer literal',2);ot=C[2],Q++}F=u1(Be,ot)}else F=W0[_e];for(var js=[];Q1)&&P.push(Q)}}return P.concat(this.args.map(function(_e){return _e.serialize()}))};var R0=function(C){this.type=t0,this.sections=C};R0.parse=function(C,P){if(C.length<2)return P.error("Expected at least one argument.");var F=C[1];if(!Array.isArray(F)&&typeof F=="object")return P.error("First argument must be an image or text section.");for(var Q=[],_e=!1,Be=1;Be<=C.length-1;++Be){var ot=C[Be];if(_e&&typeof ot=="object"&&!Array.isArray(ot)){_e=!1;var Sn=null;if(ot["font-scale"]&&!(Sn=P.parse(ot["font-scale"],1,Bg)))return null;var js=null;if(ot["text-font"]&&!(js=P.parse(ot["text-font"],1,u1(Og))))return null;var ka=null;if(ot["text-color"]&&!(ka=P.parse(ot["text-color"],1,qg)))return null;var Ud=Q[Q.length-1];Ud.scale=Sn,Ud.font=js,Ud.textColor=ka}else{var Ng=P.parse(C[Be],1,A0);if(!Ng)return null;var N0=Ng.type.kind;if(N0!=="string"&&N0!=="value"&&N0!=="null"&&N0!=="resolvedImage")return P.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");_e=!0,Q.push({content:Ng,scale:null,font:null,textColor:null})}}return new R0(Q)},R0.prototype.evaluate=function(C){return new sv(this.sections.map(function(P){var F=P.content.evaluate(C);return E1(F)===n0?new ev("",F,null,null,null):new ev($1(F),null,P.scale?P.scale.evaluate(C):null,P.font?P.font.evaluate(C).join(","):null,P.textColor?P.textColor.evaluate(C):null)}))},R0.prototype.eachChild=function(C){for(var P=0,F=this.sections;P-1),F},gv.prototype.eachChild=function(C){C(this.input)},gv.prototype.outputDefined=function(){return!1},gv.prototype.serialize=function(){return["image",this.input.serialize()]};var G1={"to-boolean":g0,"to-color":qg,"to-number":Bg,"to-string":Og},xy=function(C,P){this.type=C,this.args=P};xy.parse=function(C,P){if(C.length<2)return P.error("Expected at least one argument.");var F=C[0];if((F==="to-boolean"||F==="to-string")&&C.length!==2)return P.error("Expected one argument.");for(var Q=G1[F],_e=[],Be=1;Be4?"Invalid rbga value "+JSON.stringify(P)+": expected an array containing either three or four numeric values.":$v(P[0],P[1],P[2],P[3])))return new su(P[0]/255,P[1]/255,P[2]/255,P[3])}throw new z0(F||"Could not parse color from value '"+(typeof P=="string"?P:String(JSON.stringify(P)))+"'")}if(this.type.kind==="number"){for(var ot=null,Sn=0,js=this.args;Sn=P[2]||C[1]<=P[1]||C[3]>=P[3])}function qt(C,P){var F=(180+C[0])/360,Q=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+C[1]*Math.PI/360)))/360,_e=Math.pow(2,P.z);return[Math.round(F*_e*8192),Math.round(Q*_e*8192)]}function Sr(C,P,F){return P[1]>C[1]!=F[1]>C[1]&&C[0]<(F[0]-P[0])*(C[1]-P[1])/(F[1]-P[1])+P[0]}function si(C,P){for(var F,Q,_e,Be,ot,Sn,js,ka=!1,Ud=0,Ng=P.length;Ud0&&Sn<0||ot<0&&Sn>0}function bu(C,P,F){for(var Q=0,_e=F;Q<_e.length;Q+=1)for(var Be=_e[Q],ot=0;otF[2]){var _e=.5*Q,Be=C[0]-F[0]>_e?-Q:F[0]-C[0]>_e?Q:0;Be===0&&(Be=C[0]-F[2]>_e?-Q:F[2]-C[0]>_e?Q:0),C[0]+=Be}r0(P,C)}function dv(C,P,F,Q){for(var _e=8192*Math.pow(2,Q.z),Be=[8192*Q.x,8192*Q.y],ot=[],Sn=0,js=C;Sn=0)return!1;var F=!0;return C.eachChild(function(Q){F&&!Z1(Q,P)&&(F=!1)}),F}Wv.parse=function(C,P){if(C.length!==2)return P.error("'within' expression requires exactly one argument, but found "+(C.length-1)+" instead.");if(E0(C[1])){var F=C[1];if(F.type==="FeatureCollection")for(var Q=0;QP))throw new z0("Input is not a number.");Be=ot-1}return 0}wy.prototype.parse=function(C,P,F,Q,_e){return _e===void 0&&(_e={}),P?this.concat(P,F,Q)._parse(C,_e):this._parse(C,_e)},wy.prototype._parse=function(C,P){function F(ka,Ud,Ng){return Ng==="assert"?new Rv(Ud,[ka]):Ng==="coerce"?new xy(Ud,[ka]):ka}if(C!==null&&typeof C!="string"&&typeof C!="boolean"&&typeof C!="number"||(C=["literal",C]),Array.isArray(C)){if(C.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Q=C[0];if(typeof Q!="string")return this.error("Expression name must be a string, but found "+typeof Q+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var _e=this.registry[Q];if(_e){var Be=_e.parse(C,this);if(!Be)return null;if(this.expectedType){var ot=this.expectedType,Sn=Be.type;if(ot.kind!=="string"&&ot.kind!=="number"&&ot.kind!=="boolean"&&ot.kind!=="object"&&ot.kind!=="array"||Sn.kind!=="value")if(ot.kind!=="color"&&ot.kind!=="formatted"&&ot.kind!=="resolvedImage"||Sn.kind!=="value"&&Sn.kind!=="string"){if(this.checkSubtype(ot,Sn))return null}else Be=F(Be,ot,P.typeAnnotation||"coerce");else Be=F(Be,ot,P.typeAnnotation||"assert")}if(!(Be instanceof l0)&&Be.type.kind!=="resolvedImage"&&function ka(Ud){if(Ud instanceof sy)return ka(Ud.boundExpression);if(Ud instanceof xd&&Ud.name==="error"||Ud instanceof Yg||Ud instanceof Wv)return!1;var Ng=Ud instanceof xy||Ud instanceof Rv,N0=!0;return Ud.eachChild(function(U0){N0=Ng?N0&&ka(U0):N0&&U0 instanceof l0}),!!N0&&c1(Ud)&&Z1(Ud,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(Be)){var js=new H1;try{Be=new l0(Be.type,Be.evaluate(js))}catch(ka){return this.error(ka.message),null}}return Be}return this.error('Unknown expression "'+Q+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(C===void 0?"'undefined' value invalid. Use null instead.":typeof C=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof C+" instead.")},wy.prototype.concat=function(C,P,F){var Q=typeof C=="number"?this.path.concat(C):this.path,_e=F?this.scope.concat(F):this.scope;return new wy(this.registry,Q,P||null,_e,this.errors)},wy.prototype.error=function(C){for(var P=[],F=arguments.length-1;F-- >0;)P[F]=arguments[F+1];var Q=""+this.key+P.map(function(_e){return"["+_e+"]"}).join("");this.errors.push(new Sa(Q,C))},wy.prototype.checkSubtype=function(C,P){var F=Hg(C,P);return F&&this.error(F),F};var hv=function(C,P,F){this.type=C,this.input=P,this.labels=[],this.outputs=[];for(var Q=0,_e=F;Q<_e.length;Q+=1){var Be=_e[Q],ot=Be[1];this.labels.push(Be[0]),this.outputs.push(ot)}};function Qv(C,P,F){return C*(1-F)+P*F}hv.parse=function(C,P){if(C.length-1<4)return P.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if((C.length-1)%2!=0)return P.error("Expected an even number of arguments.");var F=P.parse(C[1],1,Bg);if(!F)return null;var Q=[],_e=null;P.expectedType&&P.expectedType.kind!=="value"&&(_e=P.expectedType);for(var Be=1;Be=ot)return P.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',js);var Ud=P.parse(Sn,ka,_e);if(!Ud)return null;_e=_e||Ud.type,Q.push([ot,Ud])}return new hv(_e,F,Q)},hv.prototype.evaluate=function(C){var P=this.labels,F=this.outputs;if(P.length===1)return F[0].evaluate(C);var Q=this.input.evaluate(C);if(Q<=P[0])return F[0].evaluate(C);var _e=P.length;return Q>=P[_e-1]?F[_e-1].evaluate(C):F[zy(P,Q)].evaluate(C)},hv.prototype.eachChild=function(C){C(this.input);for(var P=0,F=this.outputs;P0&&C.push(this.labels[P]),C.push(this.outputs[P].serialize());return C};var Y1=Object.freeze({__proto__:null,number:Qv,color:function(C,P,F){return new su(Qv(C.r,P.r,F),Qv(C.g,P.g,F),Qv(C.b,P.b,F),Qv(C.a,P.a,F))},array:function(C,P,F){return C.map(function(Q,_e){return Qv(Q,P[_e],F)})}}),M_=6/29*3*(6/29),h1=Math.PI/180,_v=180/Math.PI;function Iv(C){return C>.008856451679035631?Math.pow(C,1/3):C/M_+4/29}function Ov(C){return C>6/29?C*C*C:M_*(C-4/29)}function v1(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}function K1(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function sx(C){var P=K1(C.r),F=K1(C.g),Q=K1(C.b),_e=Iv((.4124564*P+.3575761*F+.1804375*Q)/.95047),Be=Iv((.2126729*P+.7151522*F+.072175*Q)/1);return{l:116*Be-16,a:500*(_e-Be),b:200*(Be-Iv((.0193339*P+.119192*F+.9503041*Q)/1.08883)),alpha:C.a}}function Kx(C){var P=(C.l+16)/116,F=isNaN(C.a)?P:P+C.a/500,Q=isNaN(C.b)?P:P-C.b/200;return P=1*Ov(P),F=.95047*Ov(F),Q=1.08883*Ov(Q),new su(v1(3.2404542*F-1.5371385*P-.4985314*Q),v1(-.969266*F+1.8760108*P+.041556*Q),v1(.0556434*F-.2040259*P+1.0572252*Q),C.alpha)}function t2(C,P,F){var Q=P-C;return C+F*(Q>180||Q<-180?Q-360*Math.round(Q/360):Q)}var I2={forward:sx,reverse:Kx,interpolate:function(C,P,F){return{l:Qv(C.l,P.l,F),a:Qv(C.a,P.a,F),b:Qv(C.b,P.b,F),alpha:Qv(C.alpha,P.alpha,F)}}},D2={forward:function(C){var P=sx(C),F=P.l,Q=P.a,_e=P.b,Be=Math.atan2(_e,Q)*_v;return{h:Be<0?Be+360:Be,c:Math.sqrt(Q*Q+_e*_e),l:F,alpha:C.a}},reverse:function(C){var P=C.h*h1,F=C.c;return Kx({l:C.l,a:Math.cos(P)*F,b:Math.sin(P)*F,alpha:C.alpha})},interpolate:function(C,P,F){return{h:t2(C.h,P.h,F),c:Qv(C.c,P.c,F),l:Qv(C.l,P.l,F),alpha:Qv(C.alpha,P.alpha,F)}}},J_=Object.freeze({__proto__:null,lab:I2,hcl:D2}),ax=function(C,P,F,Q,_e){this.type=C,this.operator=P,this.interpolation=F,this.input=Q,this.labels=[],this.outputs=[];for(var Be=0,ot=_e;Be1}))return P.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Q={name:"cubic-bezier",controlPoints:Sn}}if(C.length-1<4)return P.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if((C.length-1)%2!=0)return P.error("Expected an even number of arguments.");if(!(_e=P.parse(_e,2,Bg)))return null;var js=[],ka=null;F==="interpolate-hcl"||F==="interpolate-lab"?ka=qg:P.expectedType&&P.expectedType.kind!=="value"&&(ka=P.expectedType);for(var Ud=0;Ud=Ng)return P.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',U0);var Zv=P.parse(N0,Gv,ka);if(!Zv)return null;ka=ka||Zv.type,js.push([Ng,Zv])}return ka.kind==="number"||ka.kind==="color"||ka.kind==="array"&&ka.itemType.kind==="number"&&typeof ka.N=="number"?new ax(ka,F,Q,_e,js):P.error("Type "+Eg(ka)+" is not interpolatable.")},ax.prototype.evaluate=function(C){var P=this.labels,F=this.outputs;if(P.length===1)return F[0].evaluate(C);var Q=this.input.evaluate(C);if(Q<=P[0])return F[0].evaluate(C);var _e=P.length;if(Q>=P[_e-1])return F[_e-1].evaluate(C);var Be=zy(P,Q),ot=ax.interpolationFactor(this.interpolation,Q,P[Be],P[Be+1]),Sn=F[Be].evaluate(C),js=F[Be+1].evaluate(C);return this.operator==="interpolate"?Y1[this.type.kind.toLowerCase()](Sn,js,ot):this.operator==="interpolate-hcl"?D2.reverse(D2.interpolate(D2.forward(Sn),D2.forward(js),ot)):I2.reverse(I2.interpolate(I2.forward(Sn),I2.forward(js),ot))},ax.prototype.eachChild=function(C){C(this.input);for(var P=0,F=this.outputs;P=F.length)throw new z0("Array index out of bounds: "+P+" > "+(F.length-1)+".");if(P!==Math.floor(P))throw new z0("Array index must be an integer, but found "+P+" instead.");return F[P]},yd.prototype.eachChild=function(C){C(this.index),C(this.input)},yd.prototype.outputDefined=function(){return!1},yd.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var kg=function(C,P){this.type=g0,this.needle=C,this.haystack=P};kg.parse=function(C,P){if(C.length!==3)return P.error("Expected 2 arguments, but found "+(C.length-1)+" instead.");var F=P.parse(C[1],1,A0),Q=P.parse(C[2],2,A0);return F&&Q?Gd(F.type,[g0,Og,Bg,Bd,A0])?new kg(F,Q):P.error("Expected first argument to be of type boolean, string, number or null, but found "+Eg(F.type)+" instead"):null},kg.prototype.evaluate=function(C){var P=this.needle.evaluate(C),F=this.haystack.evaluate(C);if(!F)return!1;if(!h0(P,["boolean","string","number","null"]))throw new z0("Expected first argument to be of type boolean, string, number or null, but found "+Eg(E1(P))+" instead.");if(!h0(F,["string","array"]))throw new z0("Expected second argument to be of type array or string, but found "+Eg(E1(F))+" instead.");return F.indexOf(P)>=0},kg.prototype.eachChild=function(C){C(this.needle),C(this.haystack)},kg.prototype.outputDefined=function(){return!0},kg.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Vg=function(C,P,F){this.type=Bg,this.needle=C,this.haystack=P,this.fromIndex=F};Vg.parse=function(C,P){if(C.length<=2||C.length>=5)return P.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var F=P.parse(C[1],1,A0),Q=P.parse(C[2],2,A0);if(!F||!Q)return null;if(!Gd(F.type,[g0,Og,Bg,Bd,A0]))return P.error("Expected first argument to be of type boolean, string, number or null, but found "+Eg(F.type)+" instead");if(C.length===4){var _e=P.parse(C[3],3,Bg);return _e?new Vg(F,Q,_e):null}return new Vg(F,Q)},Vg.prototype.evaluate=function(C){var P=this.needle.evaluate(C),F=this.haystack.evaluate(C);if(!h0(P,["boolean","string","number","null"]))throw new z0("Expected first argument to be of type boolean, string, number or null, but found "+Eg(E1(P))+" instead.");if(!h0(F,["string","array"]))throw new z0("Expected second argument to be of type array or string, but found "+Eg(E1(F))+" instead.");if(this.fromIndex){var Q=this.fromIndex.evaluate(C);return F.indexOf(P,Q)}return F.indexOf(P)},Vg.prototype.eachChild=function(C){C(this.needle),C(this.haystack),this.fromIndex&&C(this.fromIndex)},Vg.prototype.outputDefined=function(){return!1},Vg.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var C=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),C]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var wv=function(C,P,F,Q,_e,Be){this.inputType=C,this.type=P,this.input=F,this.cases=Q,this.outputs=_e,this.otherwise=Be};wv.parse=function(C,P){if(C.length<5)return P.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if(C.length%2!=1)return P.error("Expected an even number of arguments.");var F,Q;P.expectedType&&P.expectedType.kind!=="value"&&(Q=P.expectedType);for(var _e={},Be=[],ot=2;otNumber.MAX_SAFE_INTEGER)return ka.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof N0=="number"&&Math.floor(N0)!==N0)return ka.error("Numeric branch labels must be integer values.");if(F){if(ka.checkSubtype(F,E1(N0)))return null}else F=E1(N0);if(_e[String(N0)]!==void 0)return ka.error("Branch labels must be unique.");_e[String(N0)]=Be.length}var U0=P.parse(js,ot,Q);if(!U0)return null;Q=Q||U0.type,Be.push(U0)}var Gv=P.parse(C[1],1,A0);if(!Gv)return null;var Zv=P.parse(C[C.length-1],C.length-1,Q);return Zv?Gv.type.kind!=="value"&&P.concat(1).checkSubtype(F,Gv.type)?null:new wv(F,Q,Gv,_e,Be,Zv):null},wv.prototype.evaluate=function(C){var P=this.input.evaluate(C);return(E1(P)===this.inputType&&this.outputs[this.cases[P]]||this.otherwise).evaluate(C)},wv.prototype.eachChild=function(C){C(this.input),this.outputs.forEach(C),C(this.otherwise)},wv.prototype.outputDefined=function(){return this.outputs.every(function(C){return C.outputDefined()})&&this.otherwise.outputDefined()},wv.prototype.serialize=function(){for(var C=this,P=["match",this.input.serialize()],F=[],Q={},_e=0,Be=Object.keys(this.cases).sort();_e=5)return P.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var F=P.parse(C[1],1,A0),Q=P.parse(C[2],2,Bg);if(!F||!Q)return null;if(!Gd(F.type,[u1(A0),Og,A0]))return P.error("Expected first argument to be of type array or string, but found "+Eg(F.type)+" instead");if(C.length===4){var _e=P.parse(C[3],3,Bg);return _e?new I1(F.type,F,Q,_e):null}return new I1(F.type,F,Q)},I1.prototype.evaluate=function(C){var P=this.input.evaluate(C),F=this.beginIndex.evaluate(C);if(!h0(P,["string","array"]))throw new z0("Expected first argument to be of type array or string, but found "+Eg(E1(P))+" instead.");if(this.endIndex){var Q=this.endIndex.evaluate(C);return P.slice(F,Q)}return P.slice(F)},I1.prototype.eachChild=function(C){C(this.input),C(this.beginIndex),this.endIndex&&C(this.endIndex)},I1.prototype.outputDefined=function(){return!1},I1.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var C=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),C]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var U1=Ay("==",function(C,P,F){return P===F},S1),E_=Ay("!=",function(C,P,F){return P!==F},function(C,P,F,Q){return!S1(0,P,F,Q)}),ty=Ay("<",function(C,P,F){return P",function(C,P,F){return P>F},function(C,P,F,Q){return Q.compare(P,F)>0}),g_=Ay("<=",function(C,P,F){return P<=F},function(C,P,F,Q){return Q.compare(P,F)<=0}),ox=Ay(">=",function(C,P,F){return P>=F},function(C,P,F,Q){return Q.compare(P,F)>=0}),$_=function(C,P,F,Q,_e){this.type=Og,this.number=C,this.locale=P,this.currency=F,this.minFractionDigits=Q,this.maxFractionDigits=_e};$_.parse=function(C,P){if(C.length!==3)return P.error("Expected two arguments.");var F=P.parse(C[1],1,Bg);if(!F)return null;var Q=C[2];if(typeof Q!="object"||Array.isArray(Q))return P.error("NumberFormat options argument must be an object.");var _e=null;if(Q.locale&&!(_e=P.parse(Q.locale,1,Og)))return null;var Be=null;if(Q.currency&&!(Be=P.parse(Q.currency,1,Og)))return null;var ot=null;if(Q["min-fraction-digits"]&&!(ot=P.parse(Q["min-fraction-digits"],1,Bg)))return null;var Sn=null;return Q["max-fraction-digits"]&&!(Sn=P.parse(Q["max-fraction-digits"],1,Bg))?null:new $_(F,_e,Be,ot,Sn)},$_.prototype.evaluate=function(C){return new Intl.NumberFormat(this.locale?this.locale.evaluate(C):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(C):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(C):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(C):void 0}).format(this.number.evaluate(C))},$_.prototype.eachChild=function(C){C(this.number),this.locale&&C(this.locale),this.currency&&C(this.currency),this.minFractionDigits&&C(this.minFractionDigits),this.maxFractionDigits&&C(this.maxFractionDigits)},$_.prototype.outputDefined=function(){return!1},$_.prototype.serialize=function(){var C={};return this.locale&&(C.locale=this.locale.serialize()),this.currency&&(C.currency=this.currency.serialize()),this.minFractionDigits&&(C["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(C["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),C]};var K_=function(C){this.type=Bg,this.input=C};K_.parse=function(C,P){if(C.length!==2)return P.error("Expected 1 argument, but found "+(C.length-1)+" instead.");var F=P.parse(C[1],1);return F?F.type.kind!=="array"&&F.type.kind!=="string"&&F.type.kind!=="value"?P.error("Expected argument of type string or array, but found "+Eg(F.type)+" instead."):new K_(F):null},K_.prototype.evaluate=function(C){var P=this.input.evaluate(C);if(typeof P=="string"||Array.isArray(P))return P.length;throw new z0("Expected value to be of type string or array, but found "+Eg(E1(P))+" instead.")},K_.prototype.eachChild=function(C){C(this.input)},K_.prototype.outputDefined=function(){return!1},K_.prototype.serialize=function(){var C=["length"];return this.eachChild(function(P){C.push(P.serialize())}),C};var k_={"==":U1,"!=":E_,">":h_,"<":ty,">=":ox,"<=":g_,array:Rv,at:yd,boolean:Rv,case:b1,coalesce:ov,collator:Yg,format:R0,image:gv,in:kg,"index-of":Vg,interpolate:ax,"interpolate-hcl":ax,"interpolate-lab":ax,length:K_,let:rv,literal:l0,match:wv,number:Rv,"number-format":$_,object:Rv,slice:I1,step:hv,string:Rv,"to-boolean":xy,"to-color":xy,"to-number":xy,"to-string":xy,var:sy,within:Wv};function A_(C,P){var F=P[0],Q=P[1],_e=P[2],Be=P[3];F=F.evaluate(C),Q=Q.evaluate(C),_e=_e.evaluate(C);var ot=Be?Be.evaluate(C):1,Sn=$v(F,Q,_e,ot);if(Sn)throw new z0(Sn);return new su(F/255*ot,Q/255*ot,_e/255*ot,ot)}function gx(C,P){return C in P}function Na(C,P){var F=P[C];return F===void 0?null:F}function _x(C){return{type:C}}function c2(C){return{result:"success",value:C}}function b2(C){return{result:"error",value:C}}function N2(C){return C["property-type"]==="data-driven"||C["property-type"]==="cross-faded-data-driven"}function j2(C){return!!C.expression&&C.expression.parameters.indexOf("zoom")>-1}function mC(C){return!!C.expression&&C.expression.interpolated}function XC(C){return C instanceof Number?"number":C instanceof String?"string":C instanceof Boolean?"boolean":Array.isArray(C)?"array":C===null?"null":typeof C}function EC(C){return typeof C=="object"&&C!==null&&!Array.isArray(C)}function Pw(C){return C}function Aw(C,P,F){return C!==void 0?C:P!==void 0?P:F!==void 0?F:void 0}function KC(C,P,F,Q,_e){return Aw(typeof F===_e?Q[F]:void 0,C.default,P.default)}function JS(C,P,F){if(XC(F)!=="number")return Aw(C.default,P.default);var Q=C.stops.length;if(Q===1||F<=C.stops[0][0])return C.stops[0][1];if(F>=C.stops[Q-1][0])return C.stops[Q-1][1];var _e=zy(C.stops.map(function(Be){return Be[0]}),F);return C.stops[_e][1]}function sS(C,P,F){var Q=C.base!==void 0?C.base:1;if(XC(F)!=="number")return Aw(C.default,P.default);var _e=C.stops.length;if(_e===1||F<=C.stops[0][0])return C.stops[0][1];if(F>=C.stops[_e-1][0])return C.stops[_e-1][1];var Be=zy(C.stops.map(function(Ng){return Ng[0]}),F),ot=function(Ng,N0,U0,Gv){var Zv=Gv-U0,o1=Ng-U0;return Zv===0?0:N0===1?o1/Zv:(Math.pow(N0,o1)-1)/(Math.pow(N0,Zv)-1)}(F,Q,C.stops[Be][0],C.stops[Be+1][0]),Sn=C.stops[Be][1],js=C.stops[Be+1][1],ka=Y1[P.type]||Pw;if(C.colorSpace&&C.colorSpace!=="rgb"){var Ud=J_[C.colorSpace];ka=function(Ng,N0){return Ud.reverse(Ud.interpolate(Ud.forward(Ng),Ud.forward(N0),ot))}}return typeof Sn.evaluate=="function"?{evaluate:function(){for(var Ng=[],N0=arguments.length;N0--;)Ng[N0]=arguments[N0];var U0=Sn.evaluate.apply(void 0,Ng),Gv=js.evaluate.apply(void 0,Ng);if(U0!==void 0&&Gv!==void 0)return ka(U0,Gv,ot)}}:ka(Sn,js,ot)}function UC(C,P,F){return P.type==="color"?F=su.parse(F):P.type==="formatted"?F=sv.fromString(F.toString()):P.type==="resolvedImage"?F=yv.fromString(F.toString()):XC(F)===P.type||P.type==="enum"&&P.values[F]||(F=void 0),Aw(F,C.default,P.default)}xd.register(k_,{error:[{kind:"error"},[Og],function(C,P){throw new z0(P[0].evaluate(C))}],typeof:[Og,[A0],function(C,P){return Eg(E1(P[0].evaluate(C)))}],"to-rgba":[u1(Bg,4),[qg],function(C,P){return P[0].evaluate(C).toArray()}],rgb:[qg,[Bg,Bg,Bg],A_],rgba:[qg,[Bg,Bg,Bg,Bg],A_],has:{type:g0,overloads:[[[Og],function(C,P){return gx(P[0].evaluate(C),C.properties())}],[[Og,Xg],function(C,P){var F=P[1];return gx(P[0].evaluate(C),F.evaluate(C))}]]},get:{type:A0,overloads:[[[Og],function(C,P){return Na(P[0].evaluate(C),C.properties())}],[[Og,Xg],function(C,P){var F=P[1];return Na(P[0].evaluate(C),F.evaluate(C))}]]},"feature-state":[A0,[Og],function(C,P){return Na(P[0].evaluate(C),C.featureState||{})}],properties:[Xg,[],function(C){return C.properties()}],"geometry-type":[Og,[],function(C){return C.geometryType()}],id:[A0,[],function(C){return C.id()}],zoom:[Bg,[],function(C){return C.globals.zoom}],"heatmap-density":[Bg,[],function(C){return C.globals.heatmapDensity||0}],"line-progress":[Bg,[],function(C){return C.globals.lineProgress||0}],accumulated:[A0,[],function(C){return C.globals.accumulated===void 0?null:C.globals.accumulated}],"+":[Bg,_x(Bg),function(C,P){for(var F=0,Q=0,_e=P;Q<_e.length;Q+=1)F+=_e[Q].evaluate(C);return F}],"*":[Bg,_x(Bg),function(C,P){for(var F=1,Q=0,_e=P;Q<_e.length;Q+=1)F*=_e[Q].evaluate(C);return F}],"-":{type:Bg,overloads:[[[Bg,Bg],function(C,P){var F=P[1];return P[0].evaluate(C)-F.evaluate(C)}],[[Bg],function(C,P){return-P[0].evaluate(C)}]]},"/":[Bg,[Bg,Bg],function(C,P){var F=P[1];return P[0].evaluate(C)/F.evaluate(C)}],"%":[Bg,[Bg,Bg],function(C,P){var F=P[1];return P[0].evaluate(C)%F.evaluate(C)}],ln2:[Bg,[],function(){return Math.LN2}],pi:[Bg,[],function(){return Math.PI}],e:[Bg,[],function(){return Math.E}],"^":[Bg,[Bg,Bg],function(C,P){var F=P[1];return Math.pow(P[0].evaluate(C),F.evaluate(C))}],sqrt:[Bg,[Bg],function(C,P){return Math.sqrt(P[0].evaluate(C))}],log10:[Bg,[Bg],function(C,P){return Math.log(P[0].evaluate(C))/Math.LN10}],ln:[Bg,[Bg],function(C,P){return Math.log(P[0].evaluate(C))}],log2:[Bg,[Bg],function(C,P){return Math.log(P[0].evaluate(C))/Math.LN2}],sin:[Bg,[Bg],function(C,P){return Math.sin(P[0].evaluate(C))}],cos:[Bg,[Bg],function(C,P){return Math.cos(P[0].evaluate(C))}],tan:[Bg,[Bg],function(C,P){return Math.tan(P[0].evaluate(C))}],asin:[Bg,[Bg],function(C,P){return Math.asin(P[0].evaluate(C))}],acos:[Bg,[Bg],function(C,P){return Math.acos(P[0].evaluate(C))}],atan:[Bg,[Bg],function(C,P){return Math.atan(P[0].evaluate(C))}],min:[Bg,_x(Bg),function(C,P){return Math.min.apply(Math,P.map(function(F){return F.evaluate(C)}))}],max:[Bg,_x(Bg),function(C,P){return Math.max.apply(Math,P.map(function(F){return F.evaluate(C)}))}],abs:[Bg,[Bg],function(C,P){return Math.abs(P[0].evaluate(C))}],round:[Bg,[Bg],function(C,P){var F=P[0].evaluate(C);return F<0?-Math.round(-F):Math.round(F)}],floor:[Bg,[Bg],function(C,P){return Math.floor(P[0].evaluate(C))}],ceil:[Bg,[Bg],function(C,P){return Math.ceil(P[0].evaluate(C))}],"filter-==":[g0,[Og,A0],function(C,P){var F=P[0],Q=P[1];return C.properties()[F.value]===Q.value}],"filter-id-==":[g0,[A0],function(C,P){var F=P[0];return C.id()===F.value}],"filter-type-==":[g0,[Og],function(C,P){var F=P[0];return C.geometryType()===F.value}],"filter-<":[g0,[Og,A0],function(C,P){var F=P[0],Q=P[1],_e=C.properties()[F.value],Be=Q.value;return typeof _e==typeof Be&&_e":[g0,[Og,A0],function(C,P){var F=P[0],Q=P[1],_e=C.properties()[F.value],Be=Q.value;return typeof _e==typeof Be&&_e>Be}],"filter-id->":[g0,[A0],function(C,P){var F=P[0],Q=C.id(),_e=F.value;return typeof Q==typeof _e&&Q>_e}],"filter-<=":[g0,[Og,A0],function(C,P){var F=P[0],Q=P[1],_e=C.properties()[F.value],Be=Q.value;return typeof _e==typeof Be&&_e<=Be}],"filter-id-<=":[g0,[A0],function(C,P){var F=P[0],Q=C.id(),_e=F.value;return typeof Q==typeof _e&&Q<=_e}],"filter->=":[g0,[Og,A0],function(C,P){var F=P[0],Q=P[1],_e=C.properties()[F.value],Be=Q.value;return typeof _e==typeof Be&&_e>=Be}],"filter-id->=":[g0,[A0],function(C,P){var F=P[0],Q=C.id(),_e=F.value;return typeof Q==typeof _e&&Q>=_e}],"filter-has":[g0,[A0],function(C,P){return P[0].value in C.properties()}],"filter-has-id":[g0,[],function(C){return C.id()!==null&&C.id()!==void 0}],"filter-type-in":[g0,[u1(Og)],function(C,P){return P[0].value.indexOf(C.geometryType())>=0}],"filter-id-in":[g0,[u1(A0)],function(C,P){return P[0].value.indexOf(C.id())>=0}],"filter-in-small":[g0,[Og,u1(A0)],function(C,P){var F=P[0];return P[1].value.indexOf(C.properties()[F.value])>=0}],"filter-in-large":[g0,[Og,u1(A0)],function(C,P){var F=P[0],Q=P[1];return function(_e,Be,ot,Sn){for(;ot<=Sn;){var js=ot+Sn>>1;if(Be[js]===_e)return!0;Be[js]>_e?Sn=js-1:ot=js+1}return!1}(C.properties()[F.value],Q.value,0,Q.value.length-1)}],all:{type:g0,overloads:[[[g0,g0],function(C,P){var F=P[1];return P[0].evaluate(C)&&F.evaluate(C)}],[_x(g0),function(C,P){for(var F=0,Q=P;F0&&typeof C[0]=="string"&&C[0]in k_}function VC(C,P){var F=new wy(k_,[],P?function(_e){var Be={color:qg,string:Og,number:Bg,enum:Og,boolean:g0,formatted:t0,resolvedImage:n0};return _e.type==="array"?u1(Be[_e.value]||A0,_e.length):Be[_e.type]}(P):void 0),Q=F.parse(C,void 0,void 0,void 0,P&&P.type==="string"?{typeAnnotation:"coerce"}:void 0);return Q?c2(new FS(Q,P)):b2(F.errors)}FS.prototype.evaluateWithoutErrorHandling=function(C,P,F,Q,_e,Be){return this._evaluator.globals=C,this._evaluator.feature=P,this._evaluator.featureState=F,this._evaluator.canonical=Q,this._evaluator.availableImages=_e||null,this._evaluator.formattedSection=Be,this.expression.evaluate(this._evaluator)},FS.prototype.evaluate=function(C,P,F,Q,_e,Be){this._evaluator.globals=C,this._evaluator.feature=P||null,this._evaluator.featureState=F||null,this._evaluator.canonical=Q,this._evaluator.availableImages=_e||null,this._evaluator.formattedSection=Be||null;try{var ot=this.expression.evaluate(this._evaluator);if(ot==null||typeof ot=="number"&&ot!=ot)return this._defaultValue;if(this._enumValues&&!(ot in this._enumValues))throw new z0("Expected value to be one of "+Object.keys(this._enumValues).map(function(Sn){return JSON.stringify(Sn)}).join(", ")+", but found "+JSON.stringify(ot)+" instead.");return ot}catch(Sn){return this._warningHistory[Sn.message]||(this._warningHistory[Sn.message]=!0,typeof console!="undefined"&&console.warn(Sn.message)),this._defaultValue}};var vE=function(C,P){this.kind=C,this._styleExpression=P,this.isStateDependent=C!=="constant"&&!P1(P.expression)};vE.prototype.evaluateWithoutErrorHandling=function(C,P,F,Q,_e,Be){return this._styleExpression.evaluateWithoutErrorHandling(C,P,F,Q,_e,Be)},vE.prototype.evaluate=function(C,P,F,Q,_e,Be){return this._styleExpression.evaluate(C,P,F,Q,_e,Be)};var T1=function(C,P,F,Q){this.kind=C,this.zoomStops=F,this._styleExpression=P,this.isStateDependent=C!=="camera"&&!P1(P.expression),this.interpolationType=Q};function ky(C,P){if((C=VC(C,P)).result==="error")return C;var F=C.value.expression,Q=c1(F);if(!Q&&!N2(P))return b2([new Sa("","data expressions not supported")]);var _e=Z1(F,["zoom"]);if(!_e&&!j2(P))return b2([new Sa("","zoom expressions not supported")]);var Be=function ot(Sn){var js=null;if(Sn instanceof rv)js=ot(Sn.result);else if(Sn instanceof ov)for(var ka=0,Ud=Sn.args;kaQ.maximum?[new Td(P,F,F+" is greater than the maximum value "+Q.maximum)]:[]}function P2(C){var P,F,Q,_e=C.valueSpec,Be=tv(C.value.type),ot={},Sn=Be!=="categorical"&&C.value.property===void 0,js=!Sn,ka=XC(C.value.stops)==="array"&&XC(C.value.stops[0])==="array"&&XC(C.value.stops[0][0])==="object",Ud=l_({key:C.key,value:C.value,valueSpec:C.styleSpec.function,style:C.style,styleSpec:C.styleSpec,objectElementValidators:{stops:function(U0){if(Be==="identity")return[new Td(U0.key,U0.value,'identity function may not have a "stops" property')];var Gv=[],Zv=U0.value;return Gv=Gv.concat(cx({key:U0.key,value:Zv,valueSpec:U0.valueSpec,style:U0.style,styleSpec:U0.styleSpec,arrayElementValidator:Ng})),XC(Zv)==="array"&&Zv.length===0&&Gv.push(new Td(U0.key,Zv,"array must have at least one stop")),Gv},default:function(U0){return kx({key:U0.key,value:U0.value,valueSpec:_e,style:U0.style,styleSpec:U0.styleSpec})}}});return Be==="identity"&&Sn&&Ud.push(new Td(C.key,C.value,'missing required property "property"')),Be==="identity"||C.value.stops||Ud.push(new Td(C.key,C.value,'missing required property "stops"')),Be==="exponential"&&C.valueSpec.expression&&!mC(C.valueSpec)&&Ud.push(new Td(C.key,C.value,"exponential functions not supported")),C.styleSpec.$version>=8&&(js&&!N2(C.valueSpec)?Ud.push(new Td(C.key,C.value,"property functions not supported")):Sn&&!j2(C.valueSpec)&&Ud.push(new Td(C.key,C.value,"zoom functions not supported"))),Be!=="categorical"&&!ka||C.value.property!==void 0||Ud.push(new Td(C.key,C.value,'"property" property is required')),Ud;function Ng(U0){var Gv=[],Zv=U0.value,o1=U0.key;if(XC(Zv)!=="array")return[new Td(o1,Zv,"array expected, "+XC(Zv)+" found")];if(Zv.length!==2)return[new Td(o1,Zv,"array length 2 expected, length "+Zv.length+" found")];if(ka){if(XC(Zv[0])!=="object")return[new Td(o1,Zv,"object expected, "+XC(Zv[0])+" found")];if(Zv[0].zoom===void 0)return[new Td(o1,Zv,"object stop key must have zoom")];if(Zv[0].value===void 0)return[new Td(o1,Zv,"object stop key must have value")];if(Q&&Q>tv(Zv[0].zoom))return[new Td(o1,Zv[0].zoom,"stop zoom values must appear in ascending order")];tv(Zv[0].zoom)!==Q&&(Q=tv(Zv[0].zoom),F=void 0,ot={}),Gv=Gv.concat(l_({key:o1+"[0]",value:Zv[0],valueSpec:{zoom:{}},style:U0.style,styleSpec:U0.styleSpec,objectElementValidators:{zoom:Cx,value:N0}}))}else Gv=Gv.concat(N0({key:o1+"[0]",value:Zv[0],valueSpec:{},style:U0.style,styleSpec:U0.styleSpec},Zv));return KS(Bs(Zv[1]))?Gv.concat([new Td(o1+"[1]",Zv[1],"expressions are not allowed in function stops.")]):Gv.concat(kx({key:o1+"[1]",value:Zv[1],valueSpec:_e,style:U0.style,styleSpec:U0.styleSpec}))}function N0(U0,Gv){var Zv=XC(U0.value),o1=tv(U0.value),qv=U0.value!==null?U0.value:Gv;if(P){if(Zv!==P)return[new Td(U0.key,qv,Zv+" stop domain type must match previous stop domain type "+P)]}else P=Zv;if(Zv!=="number"&&Zv!=="string"&&Zv!=="boolean")return[new Td(U0.key,qv,"stop domain value must be a number, string, or boolean")];if(Zv!=="number"&&Be!=="categorical"){var Sv="number expected, "+Zv+" found";return N2(_e)&&Be===void 0&&(Sv+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Td(U0.key,qv,Sv)]}return Be!=="categorical"||Zv!=="number"||isFinite(o1)&&Math.floor(o1)===o1?Be!=="categorical"&&Zv==="number"&&F!==void 0&&o1=2&&C[1]!=="$id"&&C[1]!=="$type";case"in":return C.length>=3&&(typeof C[1]!="string"||Array.isArray(C[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return C.length!==3||Array.isArray(C[1])||Array.isArray(C[2]);case"any":case"all":for(var P=0,F=C.slice(1);PP?1:0}function gw(C){if(!C)return!0;var P,F=C[0];return C.length<=1?F!=="any":F==="=="?vC(C[1],C[2],"=="):F==="!="?Tw(vC(C[1],C[2],"==")):F==="<"||F===">"||F==="<="||F===">="?vC(C[1],C[2],F):F==="any"?(P=C.slice(1),["any"].concat(P.map(gw))):F==="all"?["all"].concat(C.slice(1).map(gw)):F==="none"?["all"].concat(C.slice(1).map(gw).map(Tw)):F==="in"?Fw(C[1],C.slice(2)):F==="!in"?Tw(Fw(C[1],C.slice(2))):F==="has"?U2(C[1]):F==="!has"?Tw(U2(C[1])):F!=="within"||C}function vC(C,P,F){switch(C){case"$type":return["filter-type-"+F,P];case"$id":return["filter-id-"+F,P];default:return["filter-"+F,C,P]}}function Fw(C,P){if(P.length===0)return!1;switch(C){case"$type":return["filter-type-in",["literal",P]];case"$id":return["filter-id-in",["literal",P]];default:return P.length>200&&!P.some(function(F){return typeof F!=typeof P[0]})?["filter-in-large",C,["literal",P.sort(w2)]]:["filter-in-small",C,["literal",P]]}}function U2(C){switch(C){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",C]}}function Tw(C){return["!",C]}function q_(C){return z2(Bs(C.value))?i2(Wa({},C,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function P(F){var Q=F.value,_e=F.key;if(XC(Q)!=="array")return[new Td(_e,Q,"array expected, "+XC(Q)+" found")];var Be,ot=F.styleSpec,Sn=[];if(Q.length<1)return[new Td(_e,Q,"filter array must have at least 1 element")];switch(Sn=Sn.concat(tx({key:_e+"[0]",value:Q[0],valueSpec:ot.filter_operator,style:F.style,styleSpec:F.styleSpec})),tv(Q[0])){case"<":case"<=":case">":case">=":Q.length>=2&&tv(Q[1])==="$type"&&Sn.push(new Td(_e,Q,'"$type" cannot be use with operator "'+Q[0]+'"'));case"==":case"!=":Q.length!==3&&Sn.push(new Td(_e,Q,'filter array for operator "'+Q[0]+'" must have 3 elements'));case"in":case"!in":Q.length>=2&&(Be=XC(Q[1]))!=="string"&&Sn.push(new Td(_e+"[1]",Q[1],"string expected, "+Be+" found"));for(var js=2;js=Ud[U0+0]&&Q>=Ud[U0+1])?(ot[N0]=!0,Be.push(ka[N0])):ot[N0]=!1}}},zw.prototype._forEachCell=function(C,P,F,Q,_e,Be,ot,Sn){for(var js=this._convertToCellCoord(C),ka=this._convertToCellCoord(P),Ud=this._convertToCellCoord(F),Ng=this._convertToCellCoord(Q),N0=js;N0<=Ud;N0++)for(var U0=ka;U0<=Ng;U0++){var Gv=this.d*U0+N0;if((!Sn||Sn(this._convertFromCellCoord(N0),this._convertFromCellCoord(U0),this._convertFromCellCoord(N0+1),this._convertFromCellCoord(U0+1)))&&_e.call(this,C,P,F,Q,Gv,Be,ot,Sn))return}},zw.prototype._convertFromCellCoord=function(C){return(C-this.padding)/this.scale},zw.prototype._convertToCellCoord=function(C){return Math.max(0,Math.min(this.d-1,Math.floor(C*this.scale)+this.padding))},zw.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var C=this.cells,P=3+this.cells.length+1+1,F=0,Q=0;Q=0)){var Ud=C[ka];js[ka]=G2[Sn].shallow.indexOf(ka)>=0?Ud:mv(Ud,P)}C instanceof Error&&(js.message=C.message)}if(js.$name)throw new Error("$name property is reserved for worker serialization logic.");return Sn!=="Object"&&(js.$name=Sn),js}throw new Error("can't serialize object of type "+typeof C)}function Lw(C){if(C==null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||C instanceof Boolean||C instanceof Number||C instanceof String||C instanceof Date||C instanceof RegExp||AT(C)||v_(C)||ArrayBuffer.isView(C)||C instanceof VS)return C;if(Array.isArray(C))return C.map(Lw);if(typeof C=="object"){var P=C.$name||"Object",F=G2[P].klass;if(!F)throw new Error("can't deserialize unregistered class "+P);if(F.deserialize)return F.deserialize(C);for(var Q=Object.create(F.prototype),_e=0,Be=Object.keys(C);_e=0?Sn:Lw(Sn)}}return Q}throw new Error("can't deserialize object of type "+typeof C)}var Pv=function(){this.first=!0};Pv.prototype.update=function(C,P){var F=Math.floor(C);return this.first?(this.first=!1,this.lastIntegerZoom=F,this.lastIntegerZoomTime=0,this.lastZoom=C,this.lastFloorZoom=F,!0):(this.lastFloorZoom>F?(this.lastIntegerZoom=F+1,this.lastIntegerZoomTime=P):this.lastFloorZoom=128&&C<=255},Arabic:function(C){return C>=1536&&C<=1791},"Arabic Supplement":function(C){return C>=1872&&C<=1919},"Arabic Extended-A":function(C){return C>=2208&&C<=2303},"Hangul Jamo":function(C){return C>=4352&&C<=4607},"Unified Canadian Aboriginal Syllabics":function(C){return C>=5120&&C<=5759},Khmer:function(C){return C>=6016&&C<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(C){return C>=6320&&C<=6399},"General Punctuation":function(C){return C>=8192&&C<=8303},"Letterlike Symbols":function(C){return C>=8448&&C<=8527},"Number Forms":function(C){return C>=8528&&C<=8591},"Miscellaneous Technical":function(C){return C>=8960&&C<=9215},"Control Pictures":function(C){return C>=9216&&C<=9279},"Optical Character Recognition":function(C){return C>=9280&&C<=9311},"Enclosed Alphanumerics":function(C){return C>=9312&&C<=9471},"Geometric Shapes":function(C){return C>=9632&&C<=9727},"Miscellaneous Symbols":function(C){return C>=9728&&C<=9983},"Miscellaneous Symbols and Arrows":function(C){return C>=11008&&C<=11263},"CJK Radicals Supplement":function(C){return C>=11904&&C<=12031},"Kangxi Radicals":function(C){return C>=12032&&C<=12255},"Ideographic Description Characters":function(C){return C>=12272&&C<=12287},"CJK Symbols and Punctuation":function(C){return C>=12288&&C<=12351},Hiragana:function(C){return C>=12352&&C<=12447},Katakana:function(C){return C>=12448&&C<=12543},Bopomofo:function(C){return C>=12544&&C<=12591},"Hangul Compatibility Jamo":function(C){return C>=12592&&C<=12687},Kanbun:function(C){return C>=12688&&C<=12703},"Bopomofo Extended":function(C){return C>=12704&&C<=12735},"CJK Strokes":function(C){return C>=12736&&C<=12783},"Katakana Phonetic Extensions":function(C){return C>=12784&&C<=12799},"Enclosed CJK Letters and Months":function(C){return C>=12800&&C<=13055},"CJK Compatibility":function(C){return C>=13056&&C<=13311},"CJK Unified Ideographs Extension A":function(C){return C>=13312&&C<=19903},"Yijing Hexagram Symbols":function(C){return C>=19904&&C<=19967},"CJK Unified Ideographs":function(C){return C>=19968&&C<=40959},"Yi Syllables":function(C){return C>=40960&&C<=42127},"Yi Radicals":function(C){return C>=42128&&C<=42191},"Hangul Jamo Extended-A":function(C){return C>=43360&&C<=43391},"Hangul Syllables":function(C){return C>=44032&&C<=55215},"Hangul Jamo Extended-B":function(C){return C>=55216&&C<=55295},"Private Use Area":function(C){return C>=57344&&C<=63743},"CJK Compatibility Ideographs":function(C){return C>=63744&&C<=64255},"Arabic Presentation Forms-A":function(C){return C>=64336&&C<=65023},"Vertical Forms":function(C){return C>=65040&&C<=65055},"CJK Compatibility Forms":function(C){return C>=65072&&C<=65103},"Small Form Variants":function(C){return C>=65104&&C<=65135},"Arabic Presentation Forms-B":function(C){return C>=65136&&C<=65279},"Halfwidth and Fullwidth Forms":function(C){return C>=65280&&C<=65519}};function O2(C){for(var P=0,F=C;P=65097&&C<=65103)||k2["CJK Compatibility Ideographs"](C)||k2["CJK Compatibility"](C)||k2["CJK Radicals Supplement"](C)||k2["CJK Strokes"](C)||!(!k2["CJK Symbols and Punctuation"](C)||C>=12296&&C<=12305||C>=12308&&C<=12319||C===12336)||k2["CJK Unified Ideographs Extension A"](C)||k2["CJK Unified Ideographs"](C)||k2["Enclosed CJK Letters and Months"](C)||k2["Hangul Compatibility Jamo"](C)||k2["Hangul Jamo Extended-A"](C)||k2["Hangul Jamo Extended-B"](C)||k2["Hangul Jamo"](C)||k2["Hangul Syllables"](C)||k2.Hiragana(C)||k2["Ideographic Description Characters"](C)||k2.Kanbun(C)||k2["Kangxi Radicals"](C)||k2["Katakana Phonetic Extensions"](C)||k2.Katakana(C)&&C!==12540||!(!k2["Halfwidth and Fullwidth Forms"](C)||C===65288||C===65289||C===65293||C>=65306&&C<=65310||C===65339||C===65341||C===65343||C>=65371&&C<=65503||C===65507||C>=65512&&C<=65519)||!(!k2["Small Form Variants"](C)||C>=65112&&C<=65118||C>=65123&&C<=65126)||k2["Unified Canadian Aboriginal Syllabics"](C)||k2["Unified Canadian Aboriginal Syllabics Extended"](C)||k2["Vertical Forms"](C)||k2["Yijing Hexagram Symbols"](C)||k2["Yi Syllables"](C)||k2["Yi Radicals"](C))))}function cT(C){return!(TE(C)||function(P){return!!(k2["Latin-1 Supplement"](P)&&(P===167||P===169||P===174||P===177||P===188||P===189||P===190||P===215||P===247)||k2["General Punctuation"](P)&&(P===8214||P===8224||P===8225||P===8240||P===8241||P===8251||P===8252||P===8258||P===8263||P===8264||P===8265||P===8273)||k2["Letterlike Symbols"](P)||k2["Number Forms"](P)||k2["Miscellaneous Technical"](P)&&(P>=8960&&P<=8967||P>=8972&&P<=8991||P>=8996&&P<=9e3||P===9003||P>=9085&&P<=9114||P>=9150&&P<=9165||P===9167||P>=9169&&P<=9179||P>=9186&&P<=9215)||k2["Control Pictures"](P)&&P!==9251||k2["Optical Character Recognition"](P)||k2["Enclosed Alphanumerics"](P)||k2["Geometric Shapes"](P)||k2["Miscellaneous Symbols"](P)&&!(P>=9754&&P<=9759)||k2["Miscellaneous Symbols and Arrows"](P)&&(P>=11026&&P<=11055||P>=11088&&P<=11097||P>=11192&&P<=11243)||k2["CJK Symbols and Punctuation"](P)||k2.Katakana(P)||k2["Private Use Area"](P)||k2["CJK Compatibility Forms"](P)||k2["Small Form Variants"](P)||k2["Halfwidth and Fullwidth Forms"](P)||P===8734||P===8756||P===8757||P>=9984&&P<=10087||P>=10102&&P<=10131||P===65532||P===65533)}(C))}function dT(C){return C>=1424&&C<=2303||k2["Arabic Presentation Forms-A"](C)||k2["Arabic Presentation Forms-B"](C)}function US(C,P){return!(!P&&dT(C)||C>=2304&&C<=3583||C>=3840&&C<=4255||k2.Khmer(C))}function jE(C){for(var P=0,F=C;P-1&&(IE="error"),eT&&eT(C)};function xE(){aC.fire(new gd("pluginStateChange",{pluginStatus:IE,pluginURL:$T}))}var aC=new xu,zE=function(){return IE},UT=function(){if(IE!=="deferred"||!$T)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");IE="loading",xE(),$T&&Mo({url:$T},function(C){C?bE(C):(IE="loaded",xE())})},YE={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return IE==="loaded"||YE.applyArabicShaping!=null},isLoading:function(){return IE==="loading"},setState:function(C){IE=C.pluginStatus,$T=C.pluginURL},isParsed:function(){return YE.applyArabicShaping!=null&&YE.processBidirectionalText!=null&&YE.processStyledBidirectionalText!=null},getPluginURL:function(){return $T}},OC=function(C,P){this.zoom=C,P?(this.now=P.now,this.fadeDuration=P.fadeDuration,this.zoomHistory=P.zoomHistory,this.transition=P.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Pv,this.transition={})};OC.prototype.isSupportedScript=function(C){return function(P,F){for(var Q=0,_e=P;Q<_e.length;Q+=1)if(!US(_e[Q].charCodeAt(0),F))return!1;return!0}(C,YE.isLoaded())},OC.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},OC.prototype.getCrossfadeParameters=function(){var C=this.zoom,P=C-Math.floor(C),F=this.crossFadingFactor();return C>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:P+(1-P)*F}:{fromScale:.5,toScale:1,t:1-(1-F)*P}};var yT=function(C,P){this.property=C,this.value=P,this.expression=function(F,Q){if(EC(F))return new $y(F,Q);if(KS(F)){var _e=ky(F,Q);if(_e.result==="error")throw new Error(_e.value.map(function(ot){return ot.key+": "+ot.message}).join(", "));return _e.value}var Be=F;return typeof F=="string"&&Q.type==="color"&&(Be=su.parse(F)),{kind:"constant",evaluate:function(){return Be}}}(P===void 0?C.specification.default:P,C.specification)};yT.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},yT.prototype.possiblyEvaluate=function(C,P,F){return this.property.possiblyEvaluate(this,C,P,F)};var hC=function(C){this.property=C,this.value=new yT(C,void 0)};hC.prototype.transitioned=function(C,P){return new PE(this.property,this.value,P,At({},C.transition,this.transition),C.now)},hC.prototype.untransitioned=function(){return new PE(this.property,this.value,null,{},0)};var rE=function(C){this._properties=C,this._values=Object.create(C.defaultTransitionablePropertyValues)};rE.prototype.getValue=function(C){return Lt(this._values[C].value.value)},rE.prototype.setValue=function(C,P){this._values.hasOwnProperty(C)||(this._values[C]=new hC(this._values[C].property)),this._values[C].value=new yT(this._values[C].property,P===null?void 0:Lt(P))},rE.prototype.getTransition=function(C){return Lt(this._values[C].transition)},rE.prototype.setTransition=function(C,P){this._values.hasOwnProperty(C)||(this._values[C]=new hC(this._values[C].property)),this._values[C].transition=Lt(P)||void 0},rE.prototype.serialize=function(){for(var C={},P=0,F=Object.keys(this._values);Pthis.end)return this.prior=null,_e;if(this.value.isDataDriven())return this.prior=null,_e;if(Q=1)return 1;var js=Sn*Sn,ka=js*Sn;return 4*(Sn<.5?ka:3*(Sn-js)+ka-.75)}(ot))}return _e};var Lx=function(C){this._properties=C,this._values=Object.create(C.defaultTransitioningPropertyValues)};Lx.prototype.possiblyEvaluate=function(C,P,F){for(var Q=new jS(this._properties),_e=0,Be=Object.keys(this._values);_eBe.zoomHistory.lastIntegerZoom?{from:F,to:Q}:{from:_e,to:Q}},P.prototype.interpolate=function(F){return F},P}(iC),nC=function(C){this.specification=C};nC.prototype.possiblyEvaluate=function(C,P,F,Q){if(C.value!==void 0){if(C.expression.kind==="constant"){var _e=C.expression.evaluate(P,null,{},F,Q);return this._calculate(_e,_e,_e,P)}return this._calculate(C.expression.evaluate(new OC(Math.floor(P.zoom-1),P)),C.expression.evaluate(new OC(Math.floor(P.zoom),P)),C.expression.evaluate(new OC(Math.floor(P.zoom+1),P)),P)}},nC.prototype._calculate=function(C,P,F,Q){return Q.zoom>Q.zoomHistory.lastIntegerZoom?{from:C,to:P}:{from:F,to:P}},nC.prototype.interpolate=function(C){return C};var AE=function(C){this.specification=C};AE.prototype.possiblyEvaluate=function(C,P,F,Q){return!!C.expression.evaluate(P,null,{},F,Q)},AE.prototype.interpolate=function(){return!1};var iE=function(C){for(var P in this.properties=C,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],C){var F=C[P];F.specification.overridable&&this.overridableProperties.push(P);var Q=this.defaultPropertyValues[P]=new yT(F,void 0),_e=this.defaultTransitionablePropertyValues[P]=new hC(F);this.defaultTransitioningPropertyValues[P]=_e.untransitioned(),this.defaultPossiblyEvaluatedValues[P]=Q.possiblyEvaluate({})}};pw("DataDrivenProperty",iC),pw("DataConstantProperty",Xw),pw("CrossFadedDataDrivenProperty",lC),pw("CrossFadedProperty",nC),pw("ColorRampProperty",AE);var HE=function(C){function P(F,Q){if(C.call(this),this.id=F.id,this.type=F.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},F.type!=="custom"&&(this.metadata=(F=F).metadata,this.minzoom=F.minzoom,this.maxzoom=F.maxzoom,F.type!=="background"&&(this.source=F.source,this.sourceLayer=F["source-layer"],this.filter=F.filter),Q.layout&&(this._unevaluatedLayout=new WE(Q.layout)),Q.paint)){for(var _e in this._transitionablePaint=new rE(Q.paint),F.paint)this.setPaintProperty(_e,F.paint[_e],{validate:!1});for(var Be in F.layout)this.setLayoutProperty(Be,F.layout[Be],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new jS(Q.paint)}}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},P.prototype.getLayoutProperty=function(F){return F==="visibility"?this.visibility:this._unevaluatedLayout.getValue(F)},P.prototype.setLayoutProperty=function(F,Q,_e){_e===void 0&&(_e={}),Q!=null&&this._validate(qC,"layers."+this.id+".layout."+F,F,Q,_e)||(F!=="visibility"?this._unevaluatedLayout.setValue(F,Q):this.visibility=Q)},P.prototype.getPaintProperty=function(F){return jr(F,"-transition")?this._transitionablePaint.getTransition(F.slice(0,-11)):this._transitionablePaint.getValue(F)},P.prototype.setPaintProperty=function(F,Q,_e){if(_e===void 0&&(_e={}),Q!=null&&this._validate(YC,"layers."+this.id+".paint."+F,F,Q,_e))return!1;if(jr(F,"-transition"))return this._transitionablePaint.setTransition(F.slice(0,-11),Q||void 0),!1;var Be=this._transitionablePaint._values[F],ot=Be.property.specification["property-type"]==="cross-faded-data-driven",Sn=Be.value.isDataDriven(),js=Be.value;this._transitionablePaint.setValue(F,Q),this._handleSpecialPaintPropertyUpdate(F);var ka=this._transitionablePaint._values[F].value;return ka.isDataDriven()||Sn||ot||this._handleOverridablePaintPropertyUpdate(F,js,ka)},P.prototype._handleSpecialPaintPropertyUpdate=function(F){},P.prototype._handleOverridablePaintPropertyUpdate=function(F,Q,_e){return!1},P.prototype.isHidden=function(F){return!!(this.minzoom&&F=this.maxzoom)||this.visibility==="none"},P.prototype.updateTransitions=function(F){this._transitioningPaint=this._transitionablePaint.transitioned(F,this._transitioningPaint)},P.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},P.prototype.recalculate=function(F,Q){F.getCrossfadeParameters&&(this._crossfadeParameters=F.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(F,void 0,Q)),this.paint=this._transitioningPaint.possiblyEvaluate(F,void 0,Q)},P.prototype.serialize=function(){var F={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(F.layout=F.layout||{},F.layout.visibility=this.visibility),Yn(F,function(Q,_e){return!(Q===void 0||_e==="layout"&&!Object.keys(Q).length||_e==="paint"&&!Object.keys(Q).length)})},P.prototype._validate=function(F,Q,_e,Be,ot){return ot===void 0&&(ot={}),(!ot||ot.validate!==!1)&&bS(this,F.call(zC,{key:Q,layerType:this.type,objectKey:_e,value:Be,styleSpec:xa,style:{glyphs:!0,sprite:!0}}))},P.prototype.is3D=function(){return!1},P.prototype.isTileClipped=function(){return!1},P.prototype.hasOffscreenPass=function(){return!1},P.prototype.resize=function(){},P.prototype.isStateDependent=function(){for(var F in this.paint._values){var Q=this.paint.get(F);if(Q instanceof ZE&&N2(Q.property.specification)&&(Q.value.kind==="source"||Q.value.kind==="composite")&&Q.value.isStateDependent)return!0}return!1},P}(xu),yw={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},OS=function(C,P){this._structArray=C,this._pos1=P*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},JC=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function aS(C,P){P===void 0&&(P=1);var F=0,Q=0;return{members:C.map(function(_e){var Be=yw[_e.type].BYTES_PER_ELEMENT,ot=F=QS(F,Math.max(P,Be)),Sn=_e.components||1;return Q=Math.max(Q,Be),F+=Be*Sn,{name:_e.name,type:_e.type,components:Sn,offset:ot}}),size:QS(F,Math.max(Q,P)),alignment:P}}function QS(C,P){return Math.ceil(C/P)*P}JC.serialize=function(C,P){return C._trim(),P&&(C.isTransferred=!0,P.push(C.arrayBuffer)),{length:C.length,arrayBuffer:C.arrayBuffer}},JC.deserialize=function(C){var P=Object.create(this.prototype);return P.arrayBuffer=C.arrayBuffer,P.length=C.length,P.capacity=C.arrayBuffer.byteLength/P.bytesPerElement,P._refreshViews(),P},JC.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},JC.prototype.clear=function(){this.length=0},JC.prototype.resize=function(C){this.reserve(C),this.length=C},JC.prototype.reserve=function(C){if(C>this.capacity){this.capacity=Math.max(C,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var P=this.uint8;this._refreshViews(),P&&this.uint8.set(P)}},JC.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mw=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q){var _e=this.length;return this.resize(_e+1),this.emplace(_e,F,Q)},P.prototype.emplace=function(F,Q,_e){var Be=2*F;return this.int16[Be+0]=Q,this.int16[Be+1]=_e,F},P}(JC);Mw.prototype.bytesPerElement=4,pw("StructArrayLayout2i4",Mw);var K2=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be){var ot=this.length;return this.resize(ot+1),this.emplace(ot,F,Q,_e,Be)},P.prototype.emplace=function(F,Q,_e,Be,ot){var Sn=4*F;return this.int16[Sn+0]=Q,this.int16[Sn+1]=_e,this.int16[Sn+2]=Be,this.int16[Sn+3]=ot,F},P}(JC);K2.prototype.bytesPerElement=8,pw("StructArrayLayout4i8",K2);var RC=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn){var js=this.length;return this.resize(js+1),this.emplace(js,F,Q,_e,Be,ot,Sn)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js){var ka=6*F;return this.int16[ka+0]=Q,this.int16[ka+1]=_e,this.int16[ka+2]=Be,this.int16[ka+3]=ot,this.int16[ka+4]=Sn,this.int16[ka+5]=js,F},P}(JC);RC.prototype.bytesPerElement=12,pw("StructArrayLayout2i4i12",RC);var QC=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn){var js=this.length;return this.resize(js+1),this.emplace(js,F,Q,_e,Be,ot,Sn)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js){var ka=4*F,Ud=8*F;return this.int16[ka+0]=Q,this.int16[ka+1]=_e,this.uint8[Ud+4]=Be,this.uint8[Ud+5]=ot,this.uint8[Ud+6]=Sn,this.uint8[Ud+7]=js,F},P}(JC);QC.prototype.bytesPerElement=8,pw("StructArrayLayout2i4ub8",QC);var r1=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q){var _e=this.length;return this.resize(_e+1),this.emplace(_e,F,Q)},P.prototype.emplace=function(F,Q,_e){var Be=2*F;return this.float32[Be+0]=Q,this.float32[Be+1]=_e,F},P}(JC);r1.prototype.bytesPerElement=8,pw("StructArrayLayout2f8",r1);var j=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng){var N0=this.length;return this.resize(N0+1),this.emplace(N0,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0){var U0=10*F;return this.uint16[U0+0]=Q,this.uint16[U0+1]=_e,this.uint16[U0+2]=Be,this.uint16[U0+3]=ot,this.uint16[U0+4]=Sn,this.uint16[U0+5]=js,this.uint16[U0+6]=ka,this.uint16[U0+7]=Ud,this.uint16[U0+8]=Ng,this.uint16[U0+9]=N0,F},P}(JC);j.prototype.bytesPerElement=20,pw("StructArrayLayout10ui20",j);var Y=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0){var Gv=this.length;return this.resize(Gv+1),this.emplace(Gv,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv){var Zv=12*F;return this.int16[Zv+0]=Q,this.int16[Zv+1]=_e,this.int16[Zv+2]=Be,this.int16[Zv+3]=ot,this.uint16[Zv+4]=Sn,this.uint16[Zv+5]=js,this.uint16[Zv+6]=ka,this.uint16[Zv+7]=Ud,this.int16[Zv+8]=Ng,this.int16[Zv+9]=N0,this.int16[Zv+10]=U0,this.int16[Zv+11]=Gv,F},P}(JC);Y.prototype.bytesPerElement=24,pw("StructArrayLayout4i4ui4i24",Y);var Te=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e){var Be=this.length;return this.resize(Be+1),this.emplace(Be,F,Q,_e)},P.prototype.emplace=function(F,Q,_e,Be){var ot=3*F;return this.float32[ot+0]=Q,this.float32[ot+1]=_e,this.float32[ot+2]=Be,F},P}(JC);Te.prototype.bytesPerElement=12,pw("StructArrayLayout3f12",Te);var Ue=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F){var Q=this.length;return this.resize(Q+1),this.emplace(Q,F)},P.prototype.emplace=function(F,Q){return this.uint32[1*F+0]=Q,F},P}(JC);Ue.prototype.bytesPerElement=4,pw("StructArrayLayout1ul4",Ue);var Hn=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn,js,ka,Ud){var Ng=this.length;return this.resize(Ng+1),this.emplace(Ng,F,Q,_e,Be,ot,Sn,js,ka,Ud)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng){var N0=10*F,U0=5*F;return this.int16[N0+0]=Q,this.int16[N0+1]=_e,this.int16[N0+2]=Be,this.int16[N0+3]=ot,this.int16[N0+4]=Sn,this.int16[N0+5]=js,this.uint32[U0+3]=ka,this.uint16[N0+8]=Ud,this.uint16[N0+9]=Ng,F},P}(JC);Hn.prototype.bytesPerElement=20,pw("StructArrayLayout6i1ul2ui20",Hn);var za=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn){var js=this.length;return this.resize(js+1),this.emplace(js,F,Q,_e,Be,ot,Sn)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js){var ka=6*F;return this.int16[ka+0]=Q,this.int16[ka+1]=_e,this.int16[ka+2]=Be,this.int16[ka+3]=ot,this.int16[ka+4]=Sn,this.int16[ka+5]=js,F},P}(JC);za.prototype.bytesPerElement=12,pw("StructArrayLayout2i2i2i12",za);var og=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot){var Sn=this.length;return this.resize(Sn+1),this.emplace(Sn,F,Q,_e,Be,ot)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn){var js=4*F,ka=8*F;return this.float32[js+0]=Q,this.float32[js+1]=_e,this.float32[js+2]=Be,this.int16[ka+6]=ot,this.int16[ka+7]=Sn,F},P}(JC);og.prototype.bytesPerElement=16,pw("StructArrayLayout2f1f2i16",og);var it=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be){var ot=this.length;return this.resize(ot+1),this.emplace(ot,F,Q,_e,Be)},P.prototype.emplace=function(F,Q,_e,Be,ot){var Sn=12*F,js=3*F;return this.uint8[Sn+0]=Q,this.uint8[Sn+1]=_e,this.float32[js+1]=Be,this.float32[js+2]=ot,F},P}(JC);it.prototype.bytesPerElement=12,pw("StructArrayLayout2ub2f12",it);var z=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e){var Be=this.length;return this.resize(Be+1),this.emplace(Be,F,Q,_e)},P.prototype.emplace=function(F,Q,_e,Be){var ot=3*F;return this.uint16[ot+0]=Q,this.uint16[ot+1]=_e,this.uint16[ot+2]=Be,F},P}(JC);z.prototype.bytesPerElement=6,pw("StructArrayLayout3ui6",z);var we=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv){var ny=this.length;return this.resize(ny+1),this.emplace(ny,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv,ny){var Uy=24*F,w_=12*F,px=48*F;return this.int16[Uy+0]=Q,this.int16[Uy+1]=_e,this.uint16[Uy+2]=Be,this.uint16[Uy+3]=ot,this.uint32[w_+2]=Sn,this.uint32[w_+3]=js,this.uint32[w_+4]=ka,this.uint16[Uy+10]=Ud,this.uint16[Uy+11]=Ng,this.uint16[Uy+12]=N0,this.float32[w_+7]=U0,this.float32[w_+8]=Gv,this.uint8[px+36]=Zv,this.uint8[px+37]=o1,this.uint8[px+38]=qv,this.uint32[w_+10]=Sv,this.int16[Uy+22]=ny,F},P}(JC);we.prototype.bytesPerElement=48,pw("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",we);var et=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv,ny,Uy,w_,px,$x,Ix,cw,Sx,W2,gu,bg){var i0=this.length;return this.resize(i0+1),this.emplace(i0,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv,ny,Uy,w_,px,$x,Ix,cw,Sx,W2,gu,bg)},P.prototype.emplace=function(F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv,o1,qv,Sv,ny,Uy,w_,px,$x,Ix,cw,Sx,W2,gu,bg,i0){var S0=34*F,Tv=17*F;return this.int16[S0+0]=Q,this.int16[S0+1]=_e,this.int16[S0+2]=Be,this.int16[S0+3]=ot,this.int16[S0+4]=Sn,this.int16[S0+5]=js,this.int16[S0+6]=ka,this.int16[S0+7]=Ud,this.uint16[S0+8]=Ng,this.uint16[S0+9]=N0,this.uint16[S0+10]=U0,this.uint16[S0+11]=Gv,this.uint16[S0+12]=Zv,this.uint16[S0+13]=o1,this.uint16[S0+14]=qv,this.uint16[S0+15]=Sv,this.uint16[S0+16]=ny,this.uint16[S0+17]=Uy,this.uint16[S0+18]=w_,this.uint16[S0+19]=px,this.uint16[S0+20]=$x,this.uint16[S0+21]=Ix,this.uint16[S0+22]=cw,this.uint32[Tv+12]=Sx,this.float32[Tv+13]=W2,this.float32[Tv+14]=gu,this.float32[Tv+15]=bg,this.float32[Tv+16]=i0,F},P}(JC);et.prototype.bytesPerElement=68,pw("StructArrayLayout8i15ui1ul4f68",et);var Tt=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F){var Q=this.length;return this.resize(Q+1),this.emplace(Q,F)},P.prototype.emplace=function(F,Q){return this.float32[1*F+0]=Q,F},P}(JC);Tt.prototype.bytesPerElement=4,pw("StructArrayLayout1f4",Tt);var _r=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e){var Be=this.length;return this.resize(Be+1),this.emplace(Be,F,Q,_e)},P.prototype.emplace=function(F,Q,_e,Be){var ot=3*F;return this.int16[ot+0]=Q,this.int16[ot+1]=_e,this.int16[ot+2]=Be,F},P}(JC);_r.prototype.bytesPerElement=6,pw("StructArrayLayout3i6",_r);var va=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e){var Be=this.length;return this.resize(Be+1),this.emplace(Be,F,Q,_e)},P.prototype.emplace=function(F,Q,_e,Be){var ot=4*F;return this.uint32[2*F+0]=Q,this.uint16[ot+2]=_e,this.uint16[ot+3]=Be,F},P}(JC);va.prototype.bytesPerElement=8,pw("StructArrayLayout1ul2ui8",va);var La=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q){var _e=this.length;return this.resize(_e+1),this.emplace(_e,F,Q)},P.prototype.emplace=function(F,Q,_e){var Be=2*F;return this.uint16[Be+0]=Q,this.uint16[Be+1]=_e,F},P}(JC);La.prototype.bytesPerElement=4,pw("StructArrayLayout2ui4",La);var yu=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F){var Q=this.length;return this.resize(Q+1),this.emplace(Q,F)},P.prototype.emplace=function(F,Q){return this.uint16[1*F+0]=Q,F},P}(JC);yu.prototype.bytesPerElement=2,pw("StructArrayLayout1ui2",yu);var Wg=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},P.prototype.emplaceBack=function(F,Q,_e,Be){var ot=this.length;return this.resize(ot+1),this.emplace(ot,F,Q,_e,Be)},P.prototype.emplace=function(F,Q,_e,Be,ot){var Sn=4*F;return this.float32[Sn+0]=Q,this.float32[Sn+1]=_e,this.float32[Sn+2]=Be,this.float32[Sn+3]=ot,F},P}(JC);Wg.prototype.bytesPerElement=16,pw("StructArrayLayout4f16",Wg);var re=function(C){function P(){C.apply(this,arguments)}C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P;var F={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return F.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},F.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},F.x1.get=function(){return this._structArray.int16[this._pos2+2]},F.y1.get=function(){return this._structArray.int16[this._pos2+3]},F.x2.get=function(){return this._structArray.int16[this._pos2+4]},F.y2.get=function(){return this._structArray.int16[this._pos2+5]},F.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},F.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},F.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},F.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(P.prototype,F),P}(OS);re.prototype.size=20;var pe=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.get=function(F){return new re(this,F)},P}(Hn);pw("CollisionBoxArray",pe);var ge=function(C){function P(){C.apply(this,arguments)}C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P;var F={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return F.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},F.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},F.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},F.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},F.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},F.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},F.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},F.segment.get=function(){return this._structArray.uint16[this._pos2+10]},F.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},F.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},F.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},F.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},F.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},F.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},F.placedOrientation.set=function(Q){this._structArray.uint8[this._pos1+37]=Q},F.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},F.hidden.set=function(Q){this._structArray.uint8[this._pos1+38]=Q},F.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},F.crossTileID.set=function(Q){this._structArray.uint32[this._pos4+10]=Q},F.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(P.prototype,F),P}(OS);ge.prototype.size=48;var Le=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.get=function(F){return new ge(this,F)},P}(we);pw("PlacedSymbolArray",Le);var Wt=function(C){function P(){C.apply(this,arguments)}C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P;var F={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return F.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},F.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},F.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},F.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},F.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},F.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},F.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},F.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},F.key.get=function(){return this._structArray.uint16[this._pos2+8]},F.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},F.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},F.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},F.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},F.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},F.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},F.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},F.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},F.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},F.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},F.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},F.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},F.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},F.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},F.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},F.crossTileID.set=function(Q){this._structArray.uint32[this._pos4+12]=Q},F.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},F.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},F.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},F.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(P.prototype,F),P}(OS);Wt.prototype.size=68;var ni=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.get=function(F){return new Wt(this,F)},P}(et);pw("SymbolInstanceArray",ni);var Vo=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.getoffsetX=function(F){return this.float32[1*F+0]},P}(Tt);pw("GlyphOffsetArray",Vo);var Ua=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.getx=function(F){return this.int16[3*F+0]},P.prototype.gety=function(F){return this.int16[3*F+1]},P.prototype.gettileUnitDistanceFromAnchor=function(F){return this.int16[3*F+2]},P}(_r);pw("SymbolLineVertexArray",Ua);var Lg=function(C){function P(){C.apply(this,arguments)}C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P;var F={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return F.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},F.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},F.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(P.prototype,F),P}(OS);Lg.prototype.size=8;var ou=function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.get=function(F){return new Lg(this,F)},P}(va);pw("FeatureIndexArray",ou);var I0=aS([{name:"a_pos",components:2,type:"Int16"}],4).members,K0=function(C){C===void 0&&(C=[]),this.segments=C};function fv(C,P){return 256*(C=Ie(Math.floor(C),0,255))+Ie(Math.floor(P),0,255)}K0.prototype.prepareSegment=function(C,P,F,Q){var _e=this.segments[this.segments.length-1];return C>K0.MAX_VERTEX_ARRAY_LENGTH&&Mt("Max vertices per segment is "+K0.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+C),(!_e||_e.vertexLength+C>K0.MAX_VERTEX_ARRAY_LENGTH||_e.sortKey!==Q)&&(_e={vertexOffset:P.length,primitiveOffset:F.length,vertexLength:0,primitiveLength:0},Q!==void 0&&(_e.sortKey=Q),this.segments.push(_e)),_e},K0.prototype.get=function(){return this.segments},K0.prototype.destroy=function(){for(var C=0,P=this.segments;C>>16)*Sn&65535)<<16)&4294967295)<<15|ka>>>17))*js+(((ka>>>16)*js&65535)<<16)&4294967295)<<13|Be>>>19))+((5*(Be>>>16)&65535)<<16)&4294967295))+((58964+(ot>>>16)&65535)<<16);switch(ka=0,Q){case 3:ka^=(255&P.charCodeAt(Ud+2))<<16;case 2:ka^=(255&P.charCodeAt(Ud+1))<<8;case 1:Be^=ka=(65535&(ka=(ka=(65535&(ka^=255&P.charCodeAt(Ud)))*Sn+(((ka>>>16)*Sn&65535)<<16)&4294967295)<<15|ka>>>17))*js+(((ka>>>16)*js&65535)<<16)&4294967295}return Be^=P.length,Be=2246822507*(65535&(Be^=Be>>>16))+((2246822507*(Be>>>16)&65535)<<16)&4294967295,Be=3266489909*(65535&(Be^=Be>>>13))+((3266489909*(Be>>>16)&65535)<<16)&4294967295,(Be^=Be>>>16)>>>0}}),uv=x(function(C){C.exports=function(P,F){for(var Q,_e=P.length,Be=F^_e,ot=0;_e>=4;)Q=1540483477*(65535&(Q=255&P.charCodeAt(ot)|(255&P.charCodeAt(++ot))<<8|(255&P.charCodeAt(++ot))<<16|(255&P.charCodeAt(++ot))<<24))+((1540483477*(Q>>>16)&65535)<<16),Be=1540483477*(65535&Be)+((1540483477*(Be>>>16)&65535)<<16)^(Q=1540483477*(65535&(Q^=Q>>>24))+((1540483477*(Q>>>16)&65535)<<16)),_e-=4,++ot;switch(_e){case 3:Be^=(255&P.charCodeAt(ot+2))<<16;case 2:Be^=(255&P.charCodeAt(ot+1))<<8;case 1:Be=1540483477*(65535&(Be^=255&P.charCodeAt(ot)))+((1540483477*(Be>>>16)&65535)<<16)}return Be=1540483477*(65535&(Be^=Be>>>13))+((1540483477*(Be>>>16)&65535)<<16),(Be^=Be>>>15)>>>0}}),e1=d1,iy=uv;e1.murmur3=d1,e1.murmur2=iy;var Jy=function(){this.ids=[],this.positions=[],this.indexed=!1};Jy.prototype.add=function(C,P,F,Q){this.ids.push(H_(C)),this.positions.push(P,F,Q)},Jy.prototype.getPositions=function(C){for(var P=H_(C),F=0,Q=this.ids.length-1;F>1;this.ids[_e]>=P?Q=_e:F=_e+1}for(var Be=[];this.ids[F]===P;)Be.push({index:this.positions[3*F],start:this.positions[3*F+1],end:this.positions[3*F+2]}),F++;return Be},Jy.serialize=function(C,P){var F=new Float64Array(C.ids),Q=new Uint32Array(C.positions);return function _e(Be,ot,Sn,js){for(;Sn>1],Ud=Sn-1,Ng=js+1;;){do Ud++;while(Be[Ud]ka);if(Ud>=Ng)break;x_(Be,Ud,Ng),x_(ot,3*Ud,3*Ng),x_(ot,3*Ud+1,3*Ng+1),x_(ot,3*Ud+2,3*Ng+2)}Ng-Snot.x+1||jsot.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return F}function Sw(C,P){return{type:C.type,id:C.id,properties:C.properties,geometry:P?E2(C):[]}}function vw(C,P,F,Q,_e){C.emplaceBack(2*P+(Q+1)/2,2*F+(_e+1)/2)}var yC=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(P){return P.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new Mw,this.indexArray=new z,this.segments=new K0,this.programConfigurations=new AC(C.layers,C.zoom),this.stateDependentLayerIds=this.layers.filter(function(P){return P.isStateDependent()}).map(function(P){return P.id})};function T2(C,P){for(var F=0;F1){if(Xv(C,P))return!0;for(var Q=0;Q1?F:F.sub(P)._mult(_e)._add(P))}function FT(C,P){for(var F,Q,_e,Be=!1,ot=0;otP.y!=(_e=F[js]).y>P.y&&P.x<(_e.x-Q.x)*(P.y-Q.y)/(_e.y-Q.y)+Q.x&&(Be=!Be);return Be}function uE(C,P){for(var F=!1,Q=0,_e=C.length-1;QP.y!=ot.y>P.y&&P.x<(ot.x-Be.x)*(P.y-Be.y)/(ot.y-Be.y)+Be.x&&(F=!F)}return F}function ET(C,P,F){var Q=F[0],_e=F[2];if(C.x_e.x&&P.x>_e.x||C.y_e.y&&P.y>_e.y)return!1;var Be=Bt(C,P,F[0]);return Be!==Bt(C,P,F[1])||Be!==Bt(C,P,F[2])||Be!==Bt(C,P,F[3])}function cC(C,P,F){var Q=P.paint.get(C).value;return Q.kind==="constant"?Q.value:F.programConfigurations.get(P.id).getMaxValue(C)}function xT(C){return Math.sqrt(C[0]*C[0]+C[1]*C[1])}function wT(C,P,F,Q,_e){if(!P[0]&&!P[1])return C;var Be=a.convert(P)._mult(_e);F==="viewport"&&Be._rotate(-Q);for(var ot=[],Sn=0;Sn=8192||Ud<0||Ud>=8192)){var Ng=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,C.sortKey),N0=Ng.vertexLength;vw(this.layoutVertexArray,ka,Ud,-1,-1),vw(this.layoutVertexArray,ka,Ud,1,-1),vw(this.layoutVertexArray,ka,Ud,1,1),vw(this.layoutVertexArray,ka,Ud,-1,1),this.indexArray.emplaceBack(N0,N0+1,N0+2),this.indexArray.emplaceBack(N0,N0+3,N0+2),Ng.vertexLength+=4,Ng.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,C,F,{},Q)},pw("CircleBucket",yC,{omit:["layers"]});var oE=new iE({"circle-sort-key":new iC(xa.layout_circle["circle-sort-key"])}),DT={paint:new iE({"circle-radius":new iC(xa.paint_circle["circle-radius"]),"circle-color":new iC(xa.paint_circle["circle-color"]),"circle-blur":new iC(xa.paint_circle["circle-blur"]),"circle-opacity":new iC(xa.paint_circle["circle-opacity"]),"circle-translate":new Xw(xa.paint_circle["circle-translate"]),"circle-translate-anchor":new Xw(xa.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Xw(xa.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Xw(xa.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new iC(xa.paint_circle["circle-stroke-width"]),"circle-stroke-color":new iC(xa.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new iC(xa.paint_circle["circle-stroke-opacity"])}),layout:oE},WC=typeof Float32Array!="undefined"?Float32Array:Array;function wS(C){return C[0]=1,C[1]=0,C[2]=0,C[3]=0,C[4]=0,C[5]=1,C[6]=0,C[7]=0,C[8]=0,C[9]=0,C[10]=1,C[11]=0,C[12]=0,C[13]=0,C[14]=0,C[15]=1,C}function GT(C,P,F){var Q=P[0],_e=P[1],Be=P[2],ot=P[3],Sn=P[4],js=P[5],ka=P[6],Ud=P[7],Ng=P[8],N0=P[9],U0=P[10],Gv=P[11],Zv=P[12],o1=P[13],qv=P[14],Sv=P[15],ny=F[0],Uy=F[1],w_=F[2],px=F[3];return C[0]=ny*Q+Uy*Sn+w_*Ng+px*Zv,C[1]=ny*_e+Uy*js+w_*N0+px*o1,C[2]=ny*Be+Uy*ka+w_*U0+px*qv,C[3]=ny*ot+Uy*Ud+w_*Gv+px*Sv,C[4]=(ny=F[4])*Q+(Uy=F[5])*Sn+(w_=F[6])*Ng+(px=F[7])*Zv,C[5]=ny*_e+Uy*js+w_*N0+px*o1,C[6]=ny*Be+Uy*ka+w_*U0+px*qv,C[7]=ny*ot+Uy*Ud+w_*Gv+px*Sv,C[8]=(ny=F[8])*Q+(Uy=F[9])*Sn+(w_=F[10])*Ng+(px=F[11])*Zv,C[9]=ny*_e+Uy*js+w_*N0+px*o1,C[10]=ny*Be+Uy*ka+w_*U0+px*qv,C[11]=ny*ot+Uy*Ud+w_*Gv+px*Sv,C[12]=(ny=F[12])*Q+(Uy=F[13])*Sn+(w_=F[14])*Ng+(px=F[15])*Zv,C[13]=ny*_e+Uy*js+w_*N0+px*o1,C[14]=ny*Be+Uy*ka+w_*U0+px*qv,C[15]=ny*ot+Uy*Ud+w_*Gv+px*Sv,C}Math.hypot||(Math.hypot=function(){for(var C=arguments,P=0,F=arguments.length;F--;)P+=C[F]*C[F];return Math.sqrt(P)});var wA,cE=GT;function kC(C,P,F){var Q=P[0],_e=P[1],Be=P[2],ot=P[3];return C[0]=F[0]*Q+F[4]*_e+F[8]*Be+F[12]*ot,C[1]=F[1]*Q+F[5]*_e+F[9]*Be+F[13]*ot,C[2]=F[2]*Q+F[6]*_e+F[10]*Be+F[14]*ot,C[3]=F[3]*Q+F[7]*_e+F[11]*Be+F[15]*ot,C}wA=new WC(3),WC!=Float32Array&&(wA[0]=0,wA[1]=0,wA[2]=0),function(){var C=new WC(4);WC!=Float32Array&&(C[0]=0,C[1]=0,C[2]=0,C[3]=0)}();var T3=(function(){var C=new WC(2);WC!=Float32Array&&(C[0]=0,C[1]=0)}(),function(C){function P(F){C.call(this,F,DT)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.createBucket=function(F){return new yC(F)},P.prototype.queryRadius=function(F){var Q=F;return cC("circle-radius",this,Q)+cC("circle-stroke-width",this,Q)+xT(this.paint.get("circle-translate"))},P.prototype.queryIntersectsFeature=function(F,Q,_e,Be,ot,Sn,js,ka){for(var Ud=wT(F,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Sn.angle,js),Ng=this.paint.get("circle-radius").evaluate(Q,_e)+this.paint.get("circle-stroke-width").evaluate(Q,_e),N0=this.paint.get("circle-pitch-alignment")==="map",U0=N0?Ud:function($x,Ix){return $x.map(function(cw){return $A(cw,Ix)})}(Ud,ka),Gv=N0?Ng*js:Ng,Zv=0,o1=Be;ZvC.width||_e.height>C.height||F.x>C.width-_e.width||F.y>C.height-_e.height)throw new RangeError("out of range source coordinates for image copy");if(_e.width>P.width||_e.height>P.height||Q.x>P.width-_e.width||Q.y>P.height-_e.height)throw new RangeError("out of range destination coordinates for image copy");for(var ot=C.data,Sn=P.data,js=0;js<_e.height;js++)for(var ka=((F.y+js)*C.width+F.x)*Be,Ud=((Q.y+js)*P.width+Q.x)*Be,Ng=0;Ng<_e.width*Be;Ng++)Sn[Ud+Ng]=ot[ka+Ng];return P}pw("HeatmapBucket",v3,{omit:["layers"]});var UA=function(C,P){gA(this,C,1,P)};UA.prototype.resize=function(C){N3(this,C,1)},UA.prototype.clone=function(){return new UA({width:this.width,height:this.height},new Uint8Array(this.data))},UA.copy=function(C,P,F,Q,_e){A3(C,P,F,Q,_e,1)};var TA=function(C,P){gA(this,C,4,P)};TA.prototype.resize=function(C){N3(this,C,4)},TA.prototype.replace=function(C,P){P?this.data.set(C):this.data=C instanceof Uint8ClampedArray?new Uint8Array(C.buffer):C},TA.prototype.clone=function(){return new TA({width:this.width,height:this.height},new Uint8Array(this.data))},TA.copy=function(C,P,F,Q,_e){A3(C,P,F,Q,_e,4)},pw("AlphaImage",UA),pw("RGBAImage",TA);var IA={paint:new iE({"heatmap-radius":new iC(xa.paint_heatmap["heatmap-radius"]),"heatmap-weight":new iC(xa.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Xw(xa.paint_heatmap["heatmap-intensity"]),"heatmap-color":new AE(xa.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Xw(xa.paint_heatmap["heatmap-opacity"])})};function W3(C){var P={},F=C.resolution||256,Q=C.clips?C.clips.length:1,_e=C.image||new TA({width:F,height:Q}),Be=function(Gv,Zv,o1){P[C.evaluationKey]=o1;var qv=C.expression.evaluate(P);_e.data[Gv+Zv+0]=Math.floor(255*qv.r/qv.a),_e.data[Gv+Zv+1]=Math.floor(255*qv.g/qv.a),_e.data[Gv+Zv+2]=Math.floor(255*qv.b/qv.a),_e.data[Gv+Zv+3]=Math.floor(255*qv.a)};if(C.clips)for(var ot=0,Sn=0;ot80*F){Q=Be=C[0],_e=ot=C[1];for(var Gv=F;GvBe&&(Be=Sn),js>ot&&(ot=js);ka=(ka=Math.max(Be-Q,ot-_e))!==0?1/ka:0}return Z3(N0,U0,F,Q,_e,ka),U0}function qE(C,P,F,Q,_e){var Be,ot;if(_e===Ne(C,P,F,Q)>0)for(Be=P;Be=P;Be-=Q)ot=yt(Be,C[Be],C[Be+1],ot);return ot&&VT(ot,ot.next)&&(ci(ot),ot=ot.next),ot}function TS(C,P){if(!C)return C;P||(P=C);var F,Q=C;do if(F=!1,Q.steiner||!VT(Q,Q.next)&&aT(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(ci(Q),(Q=P=Q.prev)===Q.next)break;F=!0}while(F||Q!==P);return P}function Z3(C,P,F,Q,_e,Be,ot){if(C){!ot&&Be&&function(Ud,Ng,N0,U0){var Gv=Ud;do Gv.z===null&&(Gv.z=tA(Gv.x,Gv.y,Ng,N0,U0)),Gv.prevZ=Gv.prev,Gv.nextZ=Gv.next,Gv=Gv.next;while(Gv!==Ud);Gv.prevZ.nextZ=null,Gv.prevZ=null,function(Zv){var o1,qv,Sv,ny,Uy,w_,px,$x,Ix=1;do{for(qv=Zv,Zv=null,Uy=null,w_=0;qv;){for(w_++,Sv=qv,px=0,o1=0;o10||$x>0&&Sv;)px!==0&&($x===0||!Sv||qv.z<=Sv.z)?(ny=qv,qv=qv.nextZ,px--):(ny=Sv,Sv=Sv.nextZ,$x--),Uy?Uy.nextZ=ny:Zv=ny,ny.prevZ=Uy,Uy=ny;qv=Sv}Uy.nextZ=null,Ix*=2}while(w_>1)}(Gv)}(C,Q,_e,Be);for(var Sn,js,ka=C;C.prev!==C.next;)if(Sn=C.prev,js=C.next,Be?VA(C,Q,_e,Be):H3(C))P.push(Sn.i/F),P.push(C.i/F),P.push(js.i/F),ci(C),C=js.next,ka=js.next;else if((C=js)===ka){ot?ot===1?Z3(C=D3(TS(C),P,F),P,F,Q,_e,Be,2):ot===2&&AD(C,P,F,Q,_e,Be):Z3(TS(C),P,F,Q,_e,Be,1);break}}}function H3(C){var P=C.prev,F=C,Q=C.next;if(aT(P,F,Q)>=0)return!1;for(var _e=C.next.next;_e!==C.prev;){if(QA(P.x,P.y,F.x,F.y,Q.x,Q.y,_e.x,_e.y)&&aT(_e.prev,_e,_e.next)>=0)return!1;_e=_e.next}return!0}function VA(C,P,F,Q){var _e=C.prev,Be=C,ot=C.next;if(aT(_e,Be,ot)>=0)return!1;for(var Sn=_e.x>Be.x?_e.x>ot.x?_e.x:ot.x:Be.x>ot.x?Be.x:ot.x,js=_e.y>Be.y?_e.y>ot.y?_e.y:ot.y:Be.y>ot.y?Be.y:ot.y,ka=tA(_e.x=ka&&N0&&N0.z<=Ud;){if(Ng!==C.prev&&Ng!==C.next&&QA(_e.x,_e.y,Be.x,Be.y,ot.x,ot.y,Ng.x,Ng.y)&&aT(Ng.prev,Ng,Ng.next)>=0||(Ng=Ng.prevZ,N0!==C.prev&&N0!==C.next&&QA(_e.x,_e.y,Be.x,Be.y,ot.x,ot.y,N0.x,N0.y)&&aT(N0.prev,N0,N0.next)>=0))return!1;N0=N0.nextZ}for(;Ng&&Ng.z>=ka;){if(Ng!==C.prev&&Ng!==C.next&&QA(_e.x,_e.y,Be.x,Be.y,ot.x,ot.y,Ng.x,Ng.y)&&aT(Ng.prev,Ng,Ng.next)>=0)return!1;Ng=Ng.prevZ}for(;N0&&N0.z<=Ud;){if(N0!==C.prev&&N0!==C.next&&QA(_e.x,_e.y,Be.x,Be.y,ot.x,ot.y,N0.x,N0.y)&&aT(N0.prev,N0,N0.next)>=0)return!1;N0=N0.nextZ}return!0}function D3(C,P,F){var Q=C;do{var _e=Q.prev,Be=Q.next.next;!VT(_e,Be)&&y3(_e,Q,Q.next,Be)&&Qe(_e,Be)&&Qe(Be,_e)&&(P.push(_e.i/F),P.push(Q.i/F),P.push(Be.i/F),ci(Q),ci(Q.next),Q=C=Be),Q=Q.next}while(Q!==C);return TS(Q)}function AD(C,P,F,Q,_e,Be){var ot=C;do{for(var Sn=ot.next.next;Sn!==ot.prev;){if(ot.i!==Sn.i&&e3(ot,Sn)){var js=he(ot,Sn);return ot=TS(ot,ot.next),js=TS(js,js.next),Z3(ot,P,F,Q,_e,Be),void Z3(js,P,F,Q,_e,Be)}Sn=Sn.next}ot=ot.next}while(ot!==C)}function dD(C,P){return C.x-P.x}function rS(C,P){if(P=function(Q,_e){var Be,ot=_e,Sn=Q.x,js=Q.y,ka=-1/0;do{if(js<=ot.y&&js>=ot.next.y&&ot.next.y!==ot.y){var Ud=ot.x+(js-ot.y)*(ot.next.x-ot.x)/(ot.next.y-ot.y);if(Ud<=Sn&&Ud>ka){if(ka=Ud,Ud===Sn){if(js===ot.y)return ot;if(js===ot.next.y)return ot.next}Be=ot.x=ot.x&&ot.x>=U0&&Sn!==ot.x&&QA(jsBe.x||ot.x===Be.x&&G3(Be,ot)))&&(Be=ot,Zv=Ng)),ot=ot.next;while(ot!==N0);return Be}(C,P)){var F=he(P,C);TS(P,P.next),TS(F,F.next)}}function G3(C,P){return aT(C.prev,C,P.prev)<0&&aT(P.next,C,C.next)<0}function tA(C,P,F,Q,_e){return(C=1431655765&((C=858993459&((C=252645135&((C=16711935&((C=32767*(C-F)*_e)|C<<8))|C<<4))|C<<2))|C<<1))|(P=1431655765&((P=858993459&((P=252645135&((P=16711935&((P=32767*(P-Q)*_e)|P<<8))|P<<4))|P<<2))|P<<1))<<1}function JA(C){var P=C,F=C;do(P.x=0&&(C-ot)*(Q-Sn)-(F-ot)*(P-Sn)>=0&&(F-ot)*(Be-Sn)-(_e-ot)*(Q-Sn)>=0}function e3(C,P){return C.next.i!==P.i&&C.prev.i!==P.i&&!function(F,Q){var _e=F;do{if(_e.i!==F.i&&_e.next.i!==F.i&&_e.i!==Q.i&&_e.next.i!==Q.i&&y3(_e,_e.next,F,Q))return!0;_e=_e.next}while(_e!==F);return!1}(C,P)&&(Qe(C,P)&&Qe(P,C)&&function(F,Q){var _e=F,Be=!1,ot=(F.x+Q.x)/2,Sn=(F.y+Q.y)/2;do _e.y>Sn!=_e.next.y>Sn&&_e.next.y!==_e.y&&ot<(_e.next.x-_e.x)*(Sn-_e.y)/(_e.next.y-_e.y)+_e.x&&(Be=!Be),_e=_e.next;while(_e!==F);return Be}(C,P)&&(aT(C.prev,C,P.prev)||aT(C,P.prev,P))||VT(C,P)&&aT(C.prev,C,C.next)>0&&aT(P.prev,P,P.next)>0)}function aT(C,P,F){return(P.y-C.y)*(F.x-P.x)-(P.x-C.x)*(F.y-P.y)}function VT(C,P){return C.x===P.x&&C.y===P.y}function y3(C,P,F,Q){var _e=RA(aT(C,P,F)),Be=RA(aT(C,P,Q)),ot=RA(aT(F,Q,C)),Sn=RA(aT(F,Q,P));return _e!==Be&&ot!==Sn||!(_e!==0||!PA(C,F,P))||!(Be!==0||!PA(C,Q,P))||!(ot!==0||!PA(F,C,Q))||!(Sn!==0||!PA(F,P,Q))}function PA(C,P,F){return P.x<=Math.max(C.x,F.x)&&P.x>=Math.min(C.x,F.x)&&P.y<=Math.max(C.y,F.y)&&P.y>=Math.min(C.y,F.y)}function RA(C){return C>0?1:C<0?-1:0}function Qe(C,P){return aT(C.prev,C,C.next)<0?aT(C,P,C.next)>=0&&aT(C,C.prev,P)>=0:aT(C,P,C.prev)<0||aT(C,C.next,P)<0}function he(C,P){var F=new Eu(C.i,C.x,C.y),Q=new Eu(P.i,P.x,P.y),_e=C.next,Be=P.prev;return C.next=P,P.prev=C,F.next=_e,_e.prev=F,Q.next=F,F.prev=Q,Be.next=Q,Q.prev=Be,Q}function yt(C,P,F,Q){var _e=new Eu(C,P,F);return Q?(_e.next=Q.next,_e.prev=Q,Q.next.prev=_e,Q.next=_e):(_e.prev=_e,_e.next=_e),_e}function ci(C){C.next.prev=C.prev,C.prev.next=C.next,C.prevZ&&(C.prevZ.nextZ=C.nextZ),C.nextZ&&(C.nextZ.prevZ=C.prevZ)}function Eu(C,P,F){this.i=C,this.x=P,this.y=F,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ne(C,P,F,Q){for(var _e=0,Be=P,ot=F-Q;Bejs;){if(ka-js>600){var Ng=ka-js+1,N0=Sn-js+1,U0=Math.log(Ng),Gv=.5*Math.exp(2*U0/3),Zv=.5*Math.sqrt(U0*Gv*(Ng-Gv)/Ng)*(N0-Ng/2<0?-1:1);Be(ot,Sn,Math.max(js,Math.floor(Sn-N0*Gv/Ng+Zv)),Math.min(ka,Math.floor(Sn+(Ng-N0)*Gv/Ng+Zv)),Ud)}var o1=ot[Sn],qv=js,Sv=ka;for(Gt(ot,js,Sn),Ud(ot[ka],o1)>0&&Gt(ot,js,ka);qv0;)Sv--}Ud(ot[js],o1)===0?Gt(ot,js,Sv):Gt(ot,++Sv,ka),Sv<=Sn&&(js=Sv+1),Sn<=Sv&&(ka=Sv-1)}})(C,P,F||0,Q||C.length-1,_e||wr)}function Gt(C,P,F){var Q=C[P];C[P]=C[F],C[F]=Q}function wr(C,P){return CP?1:0}function Ir(C,P){var F=C.length;if(F<=1)return[C];for(var Q,_e,Be=[],ot=0;ot1)for(var js=0;js0&&F.holes.push(Q+=C[_e-1].length)}return F},WT.default=aD;var _a=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(P){return P.id}),this.index=C.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mw,this.indexArray=new z,this.indexArray2=new La,this.programConfigurations=new AC(C.layers,C.zoom),this.segments=new K0,this.segments2=new K0,this.stateDependentLayerIds=this.layers.filter(function(P){return P.isStateDependent()}).map(function(P){return P.id})};_a.prototype.populate=function(C,P,F){this.hasPattern=Ws("fill",this.layers,P);for(var Q=this.layers[0].layout.get("fill-sort-key"),_e=[],Be=0,ot=C;Be>3}if(_e--,Q===1||Q===2)Be+=C.readSVarint(),ot+=C.readSVarint(),Q===1&&(P&&Sn.push(P),P=[]),P.push(new a(Be,ot));else{if(Q!==7)throw new Error("unknown command "+Q);P&&P.push(P[0].clone())}}return P&&Sn.push(P),Sn},Fd.prototype.bbox=function(){var C=this._pbf;C.pos=this._geometry;for(var P=C.readVarint()+C.pos,F=1,Q=0,_e=0,Be=0,ot=1/0,Sn=-1/0,js=1/0,ka=-1/0;C.pos>3}if(Q--,F===1||F===2)(_e+=C.readSVarint())Sn&&(Sn=_e),(Be+=C.readSVarint())ka&&(ka=Be);else if(F!==7)throw new Error("unknown command "+F)}return[ot,js,Sn,ka]},Fd.prototype.toGeoJSON=function(C,P,F){var Q,_e,Be=this.extent*Math.pow(2,F),ot=this.extent*C,Sn=this.extent*P,js=this.loadGeometry(),ka=Fd.types[this.type];function Ud(U0){for(var Gv=0;Gv>3;_e=ot===1?Q.readString():ot===2?Q.readFloat():ot===3?Q.readDouble():ot===4?Q.readVarint64():ot===5?Q.readVarint():ot===6?Q.readSVarint():ot===7?Q.readBoolean():null}return _e}(F))}function O0(C,P,F){if(C===3){var Q=new x0(F,F.readVarint()+F.pos);Q.length&&(P[Q.name]=Q)}}a0.prototype.feature=function(C){if(C<0||C>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[C];var P=this._pbf.readVarint()+this._pbf.pos;return new au(this._pbf,P,this.extent,this._keys,this._values)};var Y0={VectorTile:function(C,P){this.layers=C.readFields(O0,{},P)},VectorTileFeature:au,VectorTileLayer:x0},V0=Y0.VectorTileFeature.types,t1=Math.pow(2,13);function Zg(C,P,F,Q,_e,Be,ot,Sn){C.emplaceBack(P,F,2*Math.floor(Q*t1)+ot,_e*t1*2,Be*t1*2,Math.round(Sn))}var y0=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(P){return P.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new RC,this.indexArray=new z,this.programConfigurations=new AC(C.layers,C.zoom),this.segments=new K0,this.stateDependentLayerIds=this.layers.filter(function(P){return P.isStateDependent()}).map(function(P){return P.id})};function Fg(C,P){return C.x===P.x&&(C.x<0||C.x>8192)||C.y===P.y&&(C.y<0||C.y>8192)}y0.prototype.populate=function(C,P,F){this.features=[],this.hasPattern=Ws("fill-extrusion",this.layers,P);for(var Q=0,_e=C;Q<_e.length;Q+=1){var Be=_e[Q],ot=Be.feature,Sn=Be.id,js=Be.index,ka=Be.sourceLayerIndex,Ud=this.layers[0]._featureFilter.needGeometry,Ng=Sw(ot,Ud);if(this.layers[0]._featureFilter.filter(new OC(this.zoom),Ng,F)){var N0={id:Sn,sourceLayerIndex:ka,index:js,geometry:Ud?Ng.geometry:E2(ot),properties:ot.properties,type:ot.type,patterns:{}};this.hasPattern?this.features.push(qs("fill-extrusion",this.layers,N0,this.zoom,P)):this.addFeature(N0,N0.geometry,js,F,{}),P.featureIndex.insert(ot,N0.geometry,js,ka,this.index,!0)}}},y0.prototype.addFeatures=function(C,P,F){for(var Q=0,_e=this.features;Q<_e.length;Q+=1){var Be=_e[Q];this.addFeature(Be,Be.geometry,Be.index,P,F)}},y0.prototype.update=function(C,P,F){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(C,P,this.stateDependentLayers,F)},y0.prototype.isEmpty=function(){return this.layoutVertexArray.length===0},y0.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},y0.prototype.upload=function(C){this.uploaded||(this.layoutVertexBuffer=C.createVertexBuffer(this.layoutVertexArray,_g),this.indexBuffer=C.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(C),this.uploaded=!0},y0.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},y0.prototype.addFeature=function(C,P,F,Q,_e){for(var Be=0,ot=Ir(P,500);Be8192})||Tv.every(function(cy){return cy.y<0})||Tv.every(function(cy){return cy.y>8192})))for(var Zv=0,o1=0;o1=1){var Sv=Gv[o1-1];if(!Fg(qv,Sv)){Ng.vertexLength+4>K0.MAX_VERTEX_ARRAY_LENGTH&&(Ng=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var ny=qv.sub(Sv)._perp()._unit(),Uy=Sv.dist(qv);Zv+Uy>32768&&(Zv=0),Zg(this.layoutVertexArray,qv.x,qv.y,ny.x,ny.y,0,0,Zv),Zg(this.layoutVertexArray,qv.x,qv.y,ny.x,ny.y,0,1,Zv),Zg(this.layoutVertexArray,Sv.x,Sv.y,ny.x,ny.y,0,0,Zv+=Uy),Zg(this.layoutVertexArray,Sv.x,Sv.y,ny.x,ny.y,0,1,Zv);var w_=Ng.vertexLength;this.indexArray.emplaceBack(w_,w_+2,w_+1),this.indexArray.emplaceBack(w_+1,w_+2,w_+3),Ng.vertexLength+=4,Ng.primitiveLength+=2}}}}if(Ng.vertexLength+js>K0.MAX_VERTEX_ARRAY_LENGTH&&(Ng=this.segments.prepareSegment(js,this.layoutVertexArray,this.indexArray)),V0[C.type]==="Polygon"){for(var px=[],$x=[],Ix=Ng.vertexLength,cw=0,Sx=Sn;cw=2&&C[js-1].equals(C[js-2]);)js--;for(var ka=0;ka0;if($x&&qv>ka){var cw=Ud.dist(U0);if(cw>2*Ng){var Sx=Ud.sub(Ud.sub(U0)._mult(Ng/cw)._round());this.updateDistance(U0,Sx),this.addCurrentVertex(Sx,Zv,0,0,N0),U0=Sx}}var W2=U0&&Gv,gu=W2?F:Sn?"butt":Q;if(W2&&gu==="round"&&(w__e&&(gu="bevel"),gu==="bevel"&&(w_>2&&(gu="flipbevel"),w_<_e&&(gu="miter")),U0&&this.updateDistance(U0,Ud),gu==="miter")Sv._mult(w_),this.addCurrentVertex(Ud,Sv,0,0,N0);else if(gu==="flipbevel"){if(w_>100)Sv=o1.mult(-1);else{var bg=w_*Zv.add(o1).mag()/Zv.sub(o1).mag();Sv._perp()._mult(bg*(Ix?-1:1))}this.addCurrentVertex(Ud,Sv,0,0,N0),this.addCurrentVertex(Ud,Sv.mult(-1),0,0,N0)}else if(gu==="bevel"||gu==="fakeround"){var i0=-Math.sqrt(w_*w_-1),S0=Ix?i0:0,Tv=Ix?0:i0;if(U0&&this.addCurrentVertex(Ud,Zv,S0,Tv,N0),gu==="fakeround")for(var cy=Math.round(180*px/Math.PI/20),Gy=1;Gy2*Ng){var CC=Ud.add(Gv.sub(Ud)._mult(Ng/A2)._round());this.updateDistance(Ud,CC),this.addCurrentVertex(CC,o1,0,0,N0),Ud=CC}}}}},Jv.prototype.addCurrentVertex=function(C,P,F,Q,_e,Be){Be===void 0&&(Be=!1);var ot=P.y*Q-P.x,Sn=-P.y-P.x*Q;this.addHalfVertex(C,P.x+P.y*F,P.y-P.x*F,Be,!1,F,_e),this.addHalfVertex(C,ot,Sn,Be,!0,-Q,_e),this.distance>f1/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(C,P,F,Q,_e,Be))},Jv.prototype.addHalfVertex=function(C,P,F,Q,_e,Be,ot){var Sn=.5*(this.lineClips?this.scaledDistance*(f1-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((C.x<<1)+(Q?1:0),(C.y<<1)+(_e?1:0),Math.round(63*P)+128,Math.round(63*F)+128,1+(Be===0?0:Be<0?-1:1)|(63&Sn)<<2,Sn>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var js=ot.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,js),ot.primitiveLength++),_e?this.e2=js:this.e1=js},Jv.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jv.prototype.updateDistance=function(C,P){this.distance+=C.dist(P),this.updateScaledDistance()},pw("LineBucket",Jv,{omit:["layers","patternFeatures"]});var m1=new iE({"line-cap":new Xw(xa.layout_line["line-cap"]),"line-join":new iC(xa.layout_line["line-join"]),"line-miter-limit":new Xw(xa.layout_line["line-miter-limit"]),"line-round-limit":new Xw(xa.layout_line["line-round-limit"]),"line-sort-key":new iC(xa.layout_line["line-sort-key"])}),Iy={paint:new iE({"line-opacity":new iC(xa.paint_line["line-opacity"]),"line-color":new iC(xa.paint_line["line-color"]),"line-translate":new Xw(xa.paint_line["line-translate"]),"line-translate-anchor":new Xw(xa.paint_line["line-translate-anchor"]),"line-width":new iC(xa.paint_line["line-width"]),"line-gap-width":new iC(xa.paint_line["line-gap-width"]),"line-offset":new iC(xa.paint_line["line-offset"]),"line-blur":new iC(xa.paint_line["line-blur"]),"line-dasharray":new nC(xa.paint_line["line-dasharray"]),"line-pattern":new lC(xa.paint_line["line-pattern"]),"line-gradient":new AE(xa.paint_line["line-gradient"])}),layout:m1},n1=new(function(C){function P(){C.apply(this,arguments)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.possiblyEvaluate=function(F,Q){return Q=new OC(Math.floor(Q.zoom),{now:Q.now,fadeDuration:Q.fadeDuration,zoomHistory:Q.zoomHistory,transition:Q.transition}),C.prototype.possiblyEvaluate.call(this,F,Q)},P.prototype.evaluate=function(F,Q,_e,Be){return Q=At({},Q,{zoom:Math.floor(Q.zoom)}),C.prototype.evaluate.call(this,F,Q,_e,Be)},P}(iC))(Iy.paint.properties["line-width"].specification);n1.useIntegerZoom=!0;var t_=function(C){function P(F){C.call(this,F,Iy),this.gradientVersion=0}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype._handleSpecialPaintPropertyUpdate=function(F){F==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof hv,this.gradientVersion=(this.gradientVersion+1)%N)},P.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},P.prototype.recalculate=function(F,Q){C.prototype.recalculate.call(this,F,Q),this.paint._values["line-floorwidth"]=n1.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,F)},P.prototype.createBucket=function(F){return new Jv(F)},P.prototype.queryRadius=function(F){var Q=F,_e=O1(cC("line-width",this,Q),cC("line-gap-width",this,Q)),Be=cC("line-offset",this,Q);return _e/2+Math.abs(Be)+xT(this.paint.get("line-translate"))},P.prototype.queryIntersectsFeature=function(F,Q,_e,Be,ot,Sn,js){var ka=wT(F,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Sn.angle,js),Ud=js/2*O1(this.paint.get("line-width").evaluate(Q,_e),this.paint.get("line-gap-width").evaluate(Q,_e)),Ng=this.paint.get("line-offset").evaluate(Q,_e);return Ng&&(Be=function(N0,U0){for(var Gv=[],Zv=new a(0,0),o1=0;o1=3){for(var qv=0;qv0?P+2*C:C}var Mv=aS([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Qy=aS([{name:"a_projected_pos",components:3,type:"Float32"}],4),r_=(aS([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),aS([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),My=(aS([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),aS([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Da=aS([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function mg(C,P,F){return C.sections.forEach(function(Q){Q.text=function(_e,Be,ot){var Sn=Be.layout.get("text-transform").evaluate(ot,{});return Sn==="uppercase"?_e=_e.toLocaleUpperCase():Sn==="lowercase"&&(_e=_e.toLocaleLowerCase()),YE.applyArabicShaping&&(_e=YE.applyArabicShaping(_e)),_e}(Q.text,P,F)}),C}aS([{name:"triangle",components:3,type:"Uint16"}]),aS([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),aS([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),aS([{type:"Float32",name:"offsetX"}]),aS([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var w0={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},Kv=function(C,P,F,Q,_e){var Be,ot,Sn=8*_e-Q-1,js=(1<>1,Ud=-7,Ng=F?_e-1:0,N0=F?-1:1,U0=C[P+Ng];for(Ng+=N0,Be=U0&(1<<-Ud)-1,U0>>=-Ud,Ud+=Sn;Ud>0;Be=256*Be+C[P+Ng],Ng+=N0,Ud-=8);for(ot=Be&(1<<-Ud)-1,Be>>=-Ud,Ud+=Q;Ud>0;ot=256*ot+C[P+Ng],Ng+=N0,Ud-=8);if(Be===0)Be=1-ka;else{if(Be===js)return ot?NaN:1/0*(U0?-1:1);ot+=Math.pow(2,Q),Be-=ka}return(U0?-1:1)*ot*Math.pow(2,Be-Q)},l1=function(C,P,F,Q,_e,Be){var ot,Sn,js,ka=8*Be-_e-1,Ud=(1<>1,N0=_e===23?Math.pow(2,-24)-Math.pow(2,-77):0,U0=Q?0:Be-1,Gv=Q?1:-1,Zv=P<0||P===0&&1/P<0?1:0;for(P=Math.abs(P),isNaN(P)||P===1/0?(Sn=isNaN(P)?1:0,ot=Ud):(ot=Math.floor(Math.log(P)/Math.LN2),P*(js=Math.pow(2,-ot))<1&&(ot--,js*=2),(P+=ot+Ng>=1?N0/js:N0*Math.pow(2,1-Ng))*js>=2&&(ot++,js/=2),ot+Ng>=Ud?(Sn=0,ot=Ud):ot+Ng>=1?(Sn=(P*js-1)*Math.pow(2,_e),ot+=Ng):(Sn=P*Math.pow(2,Ng-1)*Math.pow(2,_e),ot=0));_e>=8;C[F+U0]=255&Sn,U0+=Gv,Sn/=256,_e-=8);for(ot=ot<<_e|Sn,ka+=_e;ka>0;C[F+U0]=255&ot,U0+=Gv,ot/=256,ka-=8);C[F+U0-Gv]|=128*Zv},V1=q0;function q0(C){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(C)?C:new Uint8Array(C||0),this.pos=0,this.type=0,this.length=this.buf.length}q0.Varint=0,q0.Fixed64=1,q0.Bytes=2,q0.Fixed32=5;var Ev=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Fv(C){return C.type===q0.Bytes?C.readVarint()+C.pos:C.pos+1}function Q1(C,P,F){return F?4294967296*P+(C>>>0):4294967296*(P>>>0)+(C>>>0)}function vy(C,P,F){var Q=P<=16383?1:P<=2097151?2:P<=268435455?3:Math.floor(Math.log(P)/(7*Math.LN2));F.realloc(Q);for(var _e=F.pos-1;_e>=C;_e--)F.buf[_e+Q]=F.buf[_e]}function nn(C,P){for(var F=0;F>>8,C[F+2]=P>>>16,C[F+3]=P>>>24}function by(C,P){return(C[P]|C[P+1]<<8|C[P+2]<<16)+(C[P+3]<<24)}function Ly(C,P,F){C===1&&F.readMessage(y_,P)}function y_(C,P,F){if(C===3){var Q=F.readMessage(jy,{}),_e=Q.width,Be=Q.height,ot=Q.left,Sn=Q.top,js=Q.advance;P.push({id:Q.id,bitmap:new UA({width:_e+6,height:Be+6},Q.bitmap),metrics:{width:_e,height:Be,left:ot,top:Sn,advance:js}})}}function jy(C,P,F){C===1?P.id=F.readVarint():C===2?P.bitmap=F.readBytes():C===3?P.width=F.readVarint():C===4?P.height=F.readVarint():C===5?P.left=F.readSVarint():C===6?P.top=F.readSVarint():C===7&&(P.advance=F.readVarint())}function P0(C){for(var P=0,F=0,Q=0,_e=C;Q<_e.length;Q+=1){var Be=_e[Q];P+=Be.w*Be.h,F=Math.max(F,Be.w)}C.sort(function(Zv,o1){return o1.h-Zv.h});for(var ot=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(P/.95)),F),h:1/0}],Sn=0,js=0,ka=0,Ud=C;ka=0;N0--){var U0=ot[N0];if(!(Ng.w>U0.w||Ng.h>U0.h)){if(Ng.x=U0.x,Ng.y=U0.y,js=Math.max(js,Ng.y+Ng.h),Sn=Math.max(Sn,Ng.x+Ng.w),Ng.w===U0.w&&Ng.h===U0.h){var Gv=ot.pop();N0>3,Be=this.pos;this.type=7&Q,C(_e,P,this),this.pos===Be&&this.skip(Q)}return P},readMessage:function(C,P){return this.readFields(C,P,this.readVarint()+this.pos)},readFixed32:function(){var C=hy(this.buf,this.pos);return this.pos+=4,C},readSFixed32:function(){var C=by(this.buf,this.pos);return this.pos+=4,C},readFixed64:function(){var C=hy(this.buf,this.pos)+4294967296*hy(this.buf,this.pos+4);return this.pos+=8,C},readSFixed64:function(){var C=hy(this.buf,this.pos)+4294967296*by(this.buf,this.pos+4);return this.pos+=8,C},readFloat:function(){var C=Kv(this.buf,this.pos,!0,23,4);return this.pos+=4,C},readDouble:function(){var C=Kv(this.buf,this.pos,!0,52,8);return this.pos+=8,C},readVarint:function(C){var P,F,Q=this.buf;return P=127&(F=Q[this.pos++]),F<128?P:(P|=(127&(F=Q[this.pos++]))<<7,F<128?P:(P|=(127&(F=Q[this.pos++]))<<14,F<128?P:(P|=(127&(F=Q[this.pos++]))<<21,F<128?P:function(_e,Be,ot){var Sn,js,ka=ot.buf;if(Sn=(112&(js=ka[ot.pos++]))>>4,js<128||(Sn|=(127&(js=ka[ot.pos++]))<<3,js<128)||(Sn|=(127&(js=ka[ot.pos++]))<<10,js<128)||(Sn|=(127&(js=ka[ot.pos++]))<<17,js<128)||(Sn|=(127&(js=ka[ot.pos++]))<<24,js<128)||(Sn|=(1&(js=ka[ot.pos++]))<<31,js<128))return Q1(_e,Sn,Be);throw new Error("Expected varint not more than 10 bytes")}(P|=(15&(F=Q[this.pos]))<<28,C,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var C=this.readVarint();return C%2==1?(C+1)/-2:C/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var C=this.readVarint()+this.pos,P=this.pos;return this.pos=C,C-P>=12&&Ev?function(F,Q,_e){return Ev.decode(F.subarray(Q,_e))}(this.buf,P,C):function(F,Q,_e){for(var Be="",ot=Q;ot<_e;){var Sn,js,ka,Ud=F[ot],Ng=null,N0=Ud>239?4:Ud>223?3:Ud>191?2:1;if(ot+N0>_e)break;N0===1?Ud<128&&(Ng=Ud):N0===2?(192&(Sn=F[ot+1]))==128&&(Ng=(31&Ud)<<6|63&Sn)<=127&&(Ng=null):N0===3?(js=F[ot+2],(192&(Sn=F[ot+1]))==128&&(192&js)==128&&((Ng=(15&Ud)<<12|(63&Sn)<<6|63&js)<=2047||Ng>=55296&&Ng<=57343)&&(Ng=null)):N0===4&&(js=F[ot+2],ka=F[ot+3],(192&(Sn=F[ot+1]))==128&&(192&js)==128&&(192&ka)==128&&((Ng=(15&Ud)<<18|(63&Sn)<<12|(63&js)<<6|63&ka)<=65535||Ng>=1114112)&&(Ng=null)),Ng===null?(Ng=65533,N0=1):Ng>65535&&(Ng-=65536,Be+=String.fromCharCode(Ng>>>10&1023|55296),Ng=56320|1023&Ng),Be+=String.fromCharCode(Ng),ot+=N0}return Be}(this.buf,P,C)},readBytes:function(){var C=this.readVarint()+this.pos,P=this.buf.subarray(this.pos,C);return this.pos=C,P},readPackedVarint:function(C,P){if(this.type!==q0.Bytes)return C.push(this.readVarint(P));var F=Fv(this);for(C=C||[];this.pos127;);else if(P===q0.Bytes)this.pos=this.readVarint()+this.pos;else if(P===q0.Fixed32)this.pos+=4;else{if(P!==q0.Fixed64)throw new Error("Unimplemented type: "+P);this.pos+=8}},writeTag:function(C,P){this.writeVarint(C<<3|P)},realloc:function(C){for(var P=this.length||16;P268435455||C<0?function(P,F){var Q,_e;if(P>=0?(Q=P%4294967296|0,_e=P/4294967296|0):(_e=~(-P/4294967296),4294967295^(Q=~(-P%4294967296))?Q=Q+1|0:(Q=0,_e=_e+1|0)),P>=18446744073709552e3||P<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(Be,ot,Sn){Sn.buf[Sn.pos++]=127&Be|128,Be>>>=7,Sn.buf[Sn.pos++]=127&Be|128,Be>>>=7,Sn.buf[Sn.pos++]=127&Be|128,Be>>>=7,Sn.buf[Sn.pos++]=127&Be|128,Sn.buf[Sn.pos]=127&(Be>>>=7)}(Q,0,F),function(Be,ot){var Sn=(7&Be)<<4;ot.buf[ot.pos++]|=Sn|((Be>>>=3)?128:0),Be&&(ot.buf[ot.pos++]=127&Be|((Be>>>=7)?128:0),Be&&(ot.buf[ot.pos++]=127&Be|((Be>>>=7)?128:0),Be&&(ot.buf[ot.pos++]=127&Be|((Be>>>=7)?128:0),Be&&(ot.buf[ot.pos++]=127&Be|((Be>>>=7)?128:0),Be&&(ot.buf[ot.pos++]=127&Be)))))}(_e,F)}(C,this):(this.realloc(4),this.buf[this.pos++]=127&C|(C>127?128:0),C<=127||(this.buf[this.pos++]=127&(C>>>=7)|(C>127?128:0),C<=127||(this.buf[this.pos++]=127&(C>>>=7)|(C>127?128:0),C<=127||(this.buf[this.pos++]=C>>>7&127))))},writeSVarint:function(C){this.writeVarint(C<0?2*-C-1:2*C)},writeBoolean:function(C){this.writeVarint(!!C)},writeString:function(C){C=String(C),this.realloc(4*C.length),this.pos++;var P=this.pos;this.pos=function(Q,_e,Be){for(var ot,Sn,js=0;js<_e.length;js++){if((ot=_e.charCodeAt(js))>55295&&ot<57344){if(!Sn){ot>56319||js+1===_e.length?(Q[Be++]=239,Q[Be++]=191,Q[Be++]=189):Sn=ot;continue}if(ot<56320){Q[Be++]=239,Q[Be++]=191,Q[Be++]=189,Sn=ot;continue}ot=Sn-55296<<10|ot-56320|65536,Sn=null}else Sn&&(Q[Be++]=239,Q[Be++]=191,Q[Be++]=189,Sn=null);ot<128?Q[Be++]=ot:(ot<2048?Q[Be++]=ot>>6|192:(ot<65536?Q[Be++]=ot>>12|224:(Q[Be++]=ot>>18|240,Q[Be++]=ot>>12&63|128),Q[Be++]=ot>>6&63|128),Q[Be++]=63&ot|128)}return Be}(this.buf,C,this.pos);var F=this.pos-P;F>=128&&vy(P,F,this),this.pos=P-1,this.writeVarint(F),this.pos+=F},writeFloat:function(C){this.realloc(4),l1(this.buf,C,this.pos,!0,23,4),this.pos+=4},writeDouble:function(C){this.realloc(8),l1(this.buf,C,this.pos,!0,52,8),this.pos+=8},writeBytes:function(C){var P=C.length;this.writeVarint(P),this.realloc(P);for(var F=0;F=128&&vy(F,Q,this),this.pos=F-1,this.writeVarint(Q),this.pos+=Q},writeMessage:function(C,P,F){this.writeTag(C,q0.Bytes),this.writeRawMessage(P,F)},writePackedVarint:function(C,P){P.length&&this.writeMessage(C,nn,P)},writePackedSVarint:function(C,P){P.length&&this.writeMessage(C,u_,P)},writePackedBoolean:function(C,P){P.length&&this.writeMessage(C,Oy,P)},writePackedFloat:function(C,P){P.length&&this.writeMessage(C,U_,P)},writePackedDouble:function(C,P){P.length&&this.writeMessage(C,hx,P)},writePackedFixed32:function(C,P){P.length&&this.writeMessage(C,p_,P)},writePackedSFixed32:function(C,P){P.length&&this.writeMessage(C,G_,P)},writePackedFixed64:function(C,P){P.length&&this.writeMessage(C,Ry,P)},writePackedSFixed64:function(C,P){P.length&&this.writeMessage(C,Uv,P)},writeBytesField:function(C,P){this.writeTag(C,q0.Bytes),this.writeBytes(P)},writeFixed32Field:function(C,P){this.writeTag(C,q0.Fixed32),this.writeFixed32(P)},writeSFixed32Field:function(C,P){this.writeTag(C,q0.Fixed32),this.writeSFixed32(P)},writeFixed64Field:function(C,P){this.writeTag(C,q0.Fixed64),this.writeFixed64(P)},writeSFixed64Field:function(C,P){this.writeTag(C,q0.Fixed64),this.writeSFixed64(P)},writeVarintField:function(C,P){this.writeTag(C,q0.Varint),this.writeVarint(P)},writeSVarintField:function(C,P){this.writeTag(C,q0.Varint),this.writeSVarint(P)},writeStringField:function(C,P){this.writeTag(C,q0.Bytes),this.writeString(P)},writeFloatField:function(C,P){this.writeTag(C,q0.Fixed32),this.writeFloat(P)},writeDoubleField:function(C,P){this.writeTag(C,q0.Fixed64),this.writeDouble(P)},writeBooleanField:function(C,P){this.writeVarintField(C,!!P)}};var A1=function(C,P){var F=P.pixelRatio,Q=P.version,_e=P.stretchX,Be=P.stretchY,ot=P.content;this.paddedRect=C,this.pixelRatio=F,this.stretchX=_e,this.stretchY=Be,this.content=ot,this.version=Q},ry={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ry.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ry.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ry.tlbr.get=function(){return this.tl.concat(this.br)},ry.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(A1.prototype,ry);var Wy=function(C,P){var F={},Q={};this.haveRenderCallbacks=[];var _e=[];this.addImages(C,F,_e),this.addImages(P,Q,_e);var Be=P0(_e),ot=new TA({width:Be.w||1,height:Be.h||1});for(var Sn in C){var js=C[Sn],ka=F[Sn].paddedRect;TA.copy(js.data,ot,{x:0,y:0},{x:ka.x+1,y:ka.y+1},js.data)}for(var Ud in P){var Ng=P[Ud],N0=Q[Ud].paddedRect,U0=N0.x+1,Gv=N0.y+1,Zv=Ng.data.width,o1=Ng.data.height;TA.copy(Ng.data,ot,{x:0,y:0},{x:U0,y:Gv},Ng.data),TA.copy(Ng.data,ot,{x:0,y:o1-1},{x:U0,y:Gv-1},{width:Zv,height:1}),TA.copy(Ng.data,ot,{x:0,y:0},{x:U0,y:Gv+o1},{width:Zv,height:1}),TA.copy(Ng.data,ot,{x:Zv-1,y:0},{x:U0-1,y:Gv},{width:1,height:o1}),TA.copy(Ng.data,ot,{x:0,y:0},{x:U0+Zv,y:Gv},{width:1,height:o1})}this.image=ot,this.iconPositions=F,this.patternPositions=Q};Wy.prototype.addImages=function(C,P,F){for(var Q in C){var _e=C[Q],Be={x:0,y:0,w:_e.data.width+2,h:_e.data.height+2};F.push(Be),P[Q]=new A1(Be,_e),_e.hasRenderCallback&&this.haveRenderCallbacks.push(Q)}},Wy.prototype.patchUpdatedImages=function(C,P){for(var F in C.dispatchRenderCallbacks(this.haveRenderCallbacks),C.updatedImages)this.patchUpdatedImage(this.iconPositions[F],C.getImage(F),P),this.patchUpdatedImage(this.patternPositions[F],C.getImage(F),P)},Wy.prototype.patchUpdatedImage=function(C,P,F){if(C&&P&&C.version!==P.version){C.version=P.version;var Q=C.tl;F.update(P.data,void 0,{x:Q[0],y:Q[1]})}},pw("ImagePosition",A1),pw("ImageAtlas",Wy);var ix={horizontal:1,vertical:2,horizontalOnly:3},jx=function(){this.scale=1,this.fontStack="",this.imageName=null};jx.forText=function(C,P){var F=new jx;return F.scale=C||1,F.fontStack=P,F},jx.forImage=function(C){var P=new jx;return P.imageName=C,P};var n_=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Q2(C,P,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv,Zv){var o1,qv=n_.fromFeature(C,_e);Ng===ix.vertical&&qv.verticalizePunctuation();var Sv=YE.processBidirectionalText,ny=YE.processStyledBidirectionalText;if(Sv&&qv.sections.length===1){o1=[];for(var Uy=0,w_=Sv(qv.toString(),F2(qv,ka,Be,P,Q,U0,Gv));Uy0&&$g>$w&&($w=$g)}else{var C0=cy[eS.fontStack],Z0=C0&&C0[ne];if(Z0&&Z0.rect)He=Z0.rect,ve=Z0.metrics;else{var Nv=Tv[eS.fontStack],s1=Nv&&Nv[ne];if(!s1)continue;ve=s1.metrics}H=24*(WS-eS.scale)}Ar?(S0.verticalizable=!0,Zb.push({glyph:ne,imageName:Nt,x:bC,y:CE+H,vertical:Ar,scale:eS.scale,fontStack:eS.fontStack,sectionIndex:DE,metrics:ve,rect:He}),bC+=Xr*eS.scale+CC):(Zb.push({glyph:ne,imageName:Nt,x:bC,y:CE+H,vertical:Ar,scale:eS.scale,fontStack:eS.fontStack,sectionIndex:DE,metrics:ve,rect:He}),bC+=ve.advance*eS.scale+CC)}Zb.length!==0&&($E=Math.max(bC-CC,$E),$2(Zb,0,Zb.length-1,cS,$w)),bC=0;var M1=i_*WS+$w;zS.lineOffset=Math.max($w,MT),CE+=M1,nS=Math.max(M1,nS),++g1}else CE+=i_,++g1}var Ty,By=CE- -17,o_=uw(ex),B_=o_.horizontalAlign,b_=o_.verticalAlign;(function(V_,Hx,dw,$C,eE,ZC,HC,PC,DS){var oC,Vw=(Hx-dw)*eE;oC=ZC!==HC?-PC*$C- -17:(-$C*DS+.5)*HC;for(var dE=0,$S=V_;dE<$S.length;dE+=1)for(var lT=0,BT=$S[dE].positionedGlyphs;lT=0&&Q>=C&&Y_[this.text.charCodeAt(Q)];Q--)F--;this.text=this.text.substring(C,F),this.sectionIndex=this.sectionIndex.slice(C,F)},n_.prototype.substring=function(C,P){var F=new n_;return F.text=this.text.substring(C,P),F.sectionIndex=this.sectionIndex.slice(C,P),F.sections=this.sections,F},n_.prototype.toString=function(){return this.text},n_.prototype.getMaxScale=function(){var C=this;return this.sectionIndex.reduce(function(P,F){return Math.max(P,C.sections[F].scale)},0)},n_.prototype.addTextSection=function(C,P){this.text+=C.text,this.sections.push(jx.forText(C.scale,C.fontStack||P));for(var F=this.sections.length-1,Q=0;Q=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Y_={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},xw={};function Mx(C,P,F,Q,_e,Be){if(P.imageName){var ot=Q[P.imageName];return ot?ot.displaySize[0]*P.scale*24/Be+_e:0}var Sn=F[P.fontStack],js=Sn&&Sn[C];return js?js.metrics.advance*P.scale+_e:0}function Ew(C,P,F,Q){var _e=Math.pow(C-P,2);return Q?C=0,Ng=0,N0=0;N0-F/2;){if(--ot<0)return!1;Sn-=C[ot].dist(Be),Be=C[ot]}Sn+=C[ot].dist(C[ot+1]),ot++;for(var js=[],ka=0;SnQ;)ka-=js.shift().angleDelta;if(ka>_e)return!1;ot++,Sn+=Ud.dist(Ng)}return!0}function Bv(C){for(var P=0,F=0;Fka){var Gv=(ka-js)/U0,Zv=Qv(Ng.x,N0.x,Gv),o1=Qv(Ng.y,N0.y,Gv),qv=new Ww(Zv,o1,N0.angleTo(Ng),Ud);return qv._round(),!ot||kw(C,qv,Sn,ot,P)?qv:void 0}js+=U0}}function IC(C,P,F,Q,_e,Be,ot,Sn,js){var ka=e_(Q,Be,ot),Ud=u2(Q,_e),Ng=Ud*ot,N0=C[0].x===0||C[0].x===js||C[0].y===0||C[0].y===js;return P-Ng

=0&&Gy=0&&q1=0&&Sx+$x<=Ix){var i_=new Ww(Gy,q1,Tv,gu);i_._round(),qv&&!kw(Gv,i_,ny,qv,Sv)||W2.push(i_)}}cw+=S0}return w_||W2.length||Uy||(W2=U0(Gv,cw/2,o1,qv,Sv,ny,Uy,!0,px)),W2}(C,N0?P/2*Sn%P:(Ud/2+2*Be)*ot*Sn%P,P,ka,F,Ng,N0,!1,js)}function _T(C,P,F,Q,_e){for(var Be=[],ot=0;ot=Q&&Ng.x>=Q||(Ud.x>=Q?Ud=new a(Q,Ud.y+(Q-Ud.x)/(Ng.x-Ud.x)*(Ng.y-Ud.y))._round():Ng.x>=Q&&(Ng=new a(Q,Ud.y+(Q-Ud.x)/(Ng.x-Ud.x)*(Ng.y-Ud.y))._round()),Ud.y>=_e&&Ng.y>=_e||(Ud.y>=_e?Ud=new a(Ud.x+(_e-Ud.y)/(Ng.y-Ud.y)*(Ng.x-Ud.x),_e)._round():Ng.y>=_e&&(Ng=new a(Ud.x+(_e-Ud.y)/(Ng.y-Ud.y)*(Ng.x-Ud.x),_e)._round()),js&&Ud.equals(js[js.length-1])||Be.push(js=[Ud]),js.push(Ng)))))}return Be}function py(C,P,F,Q){var _e=[],Be=C.image,ot=Be.pixelRatio,Sn=Be.paddedRect.w-2,js=Be.paddedRect.h-2,ka=C.right-C.left,Ud=C.bottom-C.top,Ng=Be.stretchX||[[0,Sn]],N0=Be.stretchY||[[0,js]],U0=function(Gy,q1){return Gy+q1[1]-q1[0]},Gv=Ng.reduce(U0,0),Zv=N0.reduce(U0,0),o1=Sn-Gv,qv=js-Zv,Sv=0,ny=Gv,Uy=0,w_=Zv,px=0,$x=o1,Ix=0,cw=qv;if(Be.content&&Q){var Sx=Be.content;Sv=xt(Ng,0,Sx[0]),Uy=xt(N0,0,Sx[1]),ny=xt(Ng,Sx[0],Sx[2]),w_=xt(N0,Sx[1],Sx[3]),px=Sx[0]-Sv,Ix=Sx[1]-Uy,$x=Sx[2]-Sx[0]-ny,cw=Sx[3]-Sx[1]-w_}var W2=function(Gy,q1,i_,ex){var W1=jn(Gy.stretch-Sv,ny,ka,C.left),A2=Oa(Gy.fixed-px,$x,Gy.stretch,Gv),CC=jn(q1.stretch-Uy,w_,Ud,C.top),Gw=Oa(q1.fixed-Ix,cw,q1.stretch,Zv),Iw=jn(i_.stretch-Sv,ny,ka,C.left),bC=Oa(i_.fixed-px,$x,i_.stretch,Gv),CE=jn(ex.stretch-Uy,w_,Ud,C.top),$E=Oa(ex.fixed-Ix,cw,ex.stretch,Zv),nS=new a(W1,CC),cS=new a(Iw,CC),g1=new a(Iw,CE),z_=new a(W1,CE),hS=new a(A2/ot,Gw/ot),NC=new a(bC/ot,$E/ot),WS=P*Math.PI/180;if(WS){var MT=Math.sin(WS),zS=Math.cos(WS),Zb=[zS,-MT,MT,zS];nS._matMult(Zb),cS._matMult(Zb),z_._matMult(Zb),g1._matMult(Zb)}var $w=Gy.stretch+Gy.fixed,mS=q1.stretch+q1.fixed;return{tl:nS,tr:cS,bl:z_,br:g1,tex:{x:Be.paddedRect.x+1+$w,y:Be.paddedRect.y+1+mS,w:i_.stretch+i_.fixed-$w,h:ex.stretch+ex.fixed-mS},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:hS,pixelOffsetBR:NC,minFontScaleX:$x/ot/ka,minFontScaleY:cw/ot/Ud,isSDF:F}};if(Q&&(Be.stretchX||Be.stretchY))for(var gu=Et(Ng,o1,Gv),bg=Et(N0,qv,Zv),i0=0;i00&&(U0=Math.max(10,U0),this.circleDiameter=U0)}else{var Gv=Be.top*ot-Sn,Zv=Be.bottom*ot+Sn,o1=Be.left*ot-Sn,qv=Be.right*ot+Sn,Sv=Be.collisionPadding;if(Sv&&(o1-=Sv[0]*ot,Gv-=Sv[1]*ot,qv+=Sv[2]*ot,Zv+=Sv[3]*ot),ka){var ny=new a(o1,Gv),Uy=new a(qv,Gv),w_=new a(o1,Zv),px=new a(qv,Zv),$x=ka*Math.PI/180;ny._rotate($x),Uy._rotate($x),w_._rotate($x),px._rotate($x),o1=Math.min(ny.x,Uy.x,w_.x,px.x),qv=Math.max(ny.x,Uy.x,w_.x,px.x),Gv=Math.min(ny.y,Uy.y,w_.y,px.y),Zv=Math.max(ny.y,Uy.y,w_.y,px.y)}C.emplaceBack(P.x,P.y,o1,Gv,qv,Zv,F,Q,_e)}this.boxEndIndex=C.length},oh=function(C,P){if(C===void 0&&(C=[]),P===void 0&&(P=cu),this.data=C,this.length=this.data.length,this.compare=P,this.length>0)for(var F=(this.length>>1)-1;F>=0;F--)this._down(F)};function cu(C,P){return CP?1:0}function m0(C,P,F){P===void 0&&(P=1),F===void 0&&(F=!1);for(var Q=1/0,_e=1/0,Be=-1/0,ot=-1/0,Sn=C[0],js=0;jsBe)&&(Be=ka.x),(!js||ka.y>ot)&&(ot=ka.y)}var Ud=Math.min(Be-Q,ot-_e),Ng=Ud/2,N0=new oh([],Hv);if(Ud===0)return new a(Q,_e);for(var U0=Q;U0Zv.d||!Zv.d)&&(Zv=qv,F&&console.log("found best %d after %d probes",Math.round(1e4*qv.d)/1e4,o1)),qv.max-Zv.d<=P||(N0.push(new _1(qv.p.x-(Ng=qv.h/2),qv.p.y-Ng,Ng,C)),N0.push(new _1(qv.p.x+Ng,qv.p.y-Ng,Ng,C)),N0.push(new _1(qv.p.x-Ng,qv.p.y+Ng,Ng,C)),N0.push(new _1(qv.p.x+Ng,qv.p.y+Ng,Ng,C)),o1+=4)}return F&&(console.log("num probes: "+o1),console.log("best distance: "+Zv.d)),Zv.p}function Hv(C,P){return P.max-C.max}function _1(C,P,F,Q){this.p=new a(C,P),this.h=F,this.d=function(_e,Be){for(var ot=!1,Sn=1/0,js=0;js_e.y!=Gv.y>_e.y&&_e.x<(Gv.x-U0.x)*(_e.y-U0.y)/(Gv.y-U0.y)+U0.x&&(ot=!ot),Sn=Math.min(Sn,oA(_e,U0,Gv))}return(ot?1:-1)*Math.sqrt(Sn)}(this.p,Q),this.max=this.d+this.h*Math.SQRT2}oh.prototype.push=function(C){this.data.push(C),this.length++,this._up(this.length-1)},oh.prototype.pop=function(){if(this.length!==0){var C=this.data[0],P=this.data.pop();return this.length--,this.length>0&&(this.data[0]=P,this._down(0)),C}},oh.prototype.peek=function(){return this.data[0]},oh.prototype._up=function(C){for(var P=this.data,F=this.compare,Q=P[C];C>0;){var _e=C-1>>1,Be=P[_e];if(F(Q,Be)>=0)break;P[C]=Be,C=_e}P[C]=Q},oh.prototype._down=function(C){for(var P=this.data,F=this.compare,Q=this.length>>1,_e=P[C];C=0)break;P[C]=ot,C=Be}P[C]=_e};var kv=Number.POSITIVE_INFINITY;function L1(C,P){return P[1]!==kv?function(F,Q,_e){var Be=0,ot=0;switch(Q=Math.abs(Q),_e=Math.abs(_e),F){case"top-right":case"top-left":case"top":ot=_e-7;break;case"bottom-right":case"bottom-left":case"bottom":ot=7-_e}switch(F){case"top-right":case"bottom-right":case"right":Be=-Q;break;case"top-left":case"bottom-left":case"left":Be=Q}return[Be,ot]}(C,P[0],P[1]):function(F,Q){var _e=0,Be=0;Q<0&&(Q=0);var ot=Q/Math.sqrt(2);switch(F){case"top-right":case"top-left":Be=ot-7;break;case"bottom-right":case"bottom-left":Be=7-ot;break;case"bottom":Be=7-Q;break;case"top":Be=Q-7}switch(F){case"top-right":case"bottom-right":_e=-ot;break;case"top-left":case"bottom-left":_e=ot;break;case"left":_e=Q;break;case"right":_e=-Q}return[_e,Be]}(C,P[0])}function uy(C){switch(C){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function D1(C,P,F,Q,_e,Be,ot,Sn,js,ka,Ud,Ng,N0,U0,Gv){var Zv=function(Uy,w_,px,$x,Ix,cw,Sx,W2){for(var gu=$x.layout.get("text-rotate").evaluate(cw,{})*Math.PI/180,bg=[],i0=0,S0=w_.positionedLines;i032640&&Mt(C.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):o1.kind==="composite"&&((qv=[128*U0.compositeTextSizes[0].evaluate(ot,{},Gv),128*U0.compositeTextSizes[1].evaluate(ot,{},Gv)])[0]>32640||qv[1]>32640)&&Mt(C.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),C.addSymbols(C.text,Zv,qv,Sn,Be,ot,ka,P,js.lineStartIndex,js.lineLength,N0,Gv);for(var Sv=0,ny=Ud;Sv=0;ot--)if(Q.dist(Be[ot])0)&&(Be.value.kind!=="constant"||Be.value.value.length>0),ka=Sn.value.kind!=="constant"||!!Sn.value.value||Object.keys(Sn.parameters).length>0,Ud=_e.get("symbol-sort-key");if(this.features=[],js||ka){for(var Ng=P.iconDependencies,N0=P.glyphDependencies,U0=P.availableImages,Gv=new OC(this.zoom),Zv=0,o1=C;Zv=0;for(var Tv=0,cy=Ix.sections;Tv=0;Sn--)Be[Sn]={x:P[Sn].x,y:P[Sn].y,tileUnitDistanceFromAnchor:_e},Sn>0&&(_e+=P[Sn-1].dist(P[Sn]));for(var js=0;js0},Dx.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Dx.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Dx.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Dx.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Dx.prototype.addIndicesForPlacedSymbol=function(C,P){for(var F=C.placedSymbolArray.get(P),Q=F.vertexStartIndex+4*F.numGlyphs,_e=F.vertexStartIndex;_e1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(C),this.sortedAngle=C,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var F=0,Q=this.symbolInstanceIndexes;F=0&&Sn.indexOf(Be)===ot&&P.addIndicesForPlacedSymbol(P.text,Be)}),_e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,_e.verticalPlacedTextSymbolIndex),_e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.placedIconSymbolIndex),_e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,_e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pw("SymbolBucket",Dx,{omit:["layers","collisionBoxArray","features","compareText"]}),Dx.MAX_GLYPHS=65535,Dx.addDynamicAttributes=nx;var rw=new iE({"symbol-placement":new Xw(xa.layout_symbol["symbol-placement"]),"symbol-spacing":new Xw(xa.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Xw(xa.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new iC(xa.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Xw(xa.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Xw(xa.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Xw(xa.layout_symbol["icon-ignore-placement"]),"icon-optional":new Xw(xa.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Xw(xa.layout_symbol["icon-rotation-alignment"]),"icon-size":new iC(xa.layout_symbol["icon-size"]),"icon-text-fit":new Xw(xa.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Xw(xa.layout_symbol["icon-text-fit-padding"]),"icon-image":new iC(xa.layout_symbol["icon-image"]),"icon-rotate":new iC(xa.layout_symbol["icon-rotate"]),"icon-padding":new Xw(xa.layout_symbol["icon-padding"]),"icon-keep-upright":new Xw(xa.layout_symbol["icon-keep-upright"]),"icon-offset":new iC(xa.layout_symbol["icon-offset"]),"icon-anchor":new iC(xa.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Xw(xa.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Xw(xa.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Xw(xa.layout_symbol["text-rotation-alignment"]),"text-field":new iC(xa.layout_symbol["text-field"]),"text-font":new iC(xa.layout_symbol["text-font"]),"text-size":new iC(xa.layout_symbol["text-size"]),"text-max-width":new iC(xa.layout_symbol["text-max-width"]),"text-line-height":new Xw(xa.layout_symbol["text-line-height"]),"text-letter-spacing":new iC(xa.layout_symbol["text-letter-spacing"]),"text-justify":new iC(xa.layout_symbol["text-justify"]),"text-radial-offset":new iC(xa.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Xw(xa.layout_symbol["text-variable-anchor"]),"text-anchor":new iC(xa.layout_symbol["text-anchor"]),"text-max-angle":new Xw(xa.layout_symbol["text-max-angle"]),"text-writing-mode":new Xw(xa.layout_symbol["text-writing-mode"]),"text-rotate":new iC(xa.layout_symbol["text-rotate"]),"text-padding":new Xw(xa.layout_symbol["text-padding"]),"text-keep-upright":new Xw(xa.layout_symbol["text-keep-upright"]),"text-transform":new iC(xa.layout_symbol["text-transform"]),"text-offset":new iC(xa.layout_symbol["text-offset"]),"text-allow-overlap":new Xw(xa.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Xw(xa.layout_symbol["text-ignore-placement"]),"text-optional":new Xw(xa.layout_symbol["text-optional"])}),Dw={paint:new iE({"icon-opacity":new iC(xa.paint_symbol["icon-opacity"]),"icon-color":new iC(xa.paint_symbol["icon-color"]),"icon-halo-color":new iC(xa.paint_symbol["icon-halo-color"]),"icon-halo-width":new iC(xa.paint_symbol["icon-halo-width"]),"icon-halo-blur":new iC(xa.paint_symbol["icon-halo-blur"]),"icon-translate":new Xw(xa.paint_symbol["icon-translate"]),"icon-translate-anchor":new Xw(xa.paint_symbol["icon-translate-anchor"]),"text-opacity":new iC(xa.paint_symbol["text-opacity"]),"text-color":new iC(xa.paint_symbol["text-color"],{runtimeType:qg,getOverride:function(C){return C.textColor},hasOverride:function(C){return!!C.textColor}}),"text-halo-color":new iC(xa.paint_symbol["text-halo-color"]),"text-halo-width":new iC(xa.paint_symbol["text-halo-width"]),"text-halo-blur":new iC(xa.paint_symbol["text-halo-blur"]),"text-translate":new Xw(xa.paint_symbol["text-translate"]),"text-translate-anchor":new Xw(xa.paint_symbol["text-translate-anchor"])}),layout:rw},Y2=function(C){this.type=C.property.overrides?C.property.overrides.runtimeType:Bd,this.defaultValue=C};Y2.prototype.evaluate=function(C){if(C.formattedSection){var P=this.defaultValue.property.overrides;if(P&&P.hasOverride(C.formattedSection))return P.getOverride(C.formattedSection)}return C.feature&&C.featureState?this.defaultValue.evaluate(C.feature,C.featureState):this.defaultValue.property.specification.default},Y2.prototype.eachChild=function(C){this.defaultValue.isConstant()||C(this.defaultValue.value._styleExpression.expression)},Y2.prototype.outputDefined=function(){return!1},Y2.prototype.serialize=function(){return null},pw("FormatSectionOverride",Y2,{omit:["defaultValue"]});var qw=function(C){function P(F){C.call(this,F,Dw)}return C&&(P.__proto__=C),(P.prototype=Object.create(C&&C.prototype)).constructor=P,P.prototype.recalculate=function(F,Q){if(C.prototype.recalculate.call(this,F,Q),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var _e=this.layout.get("text-writing-mode");if(_e){for(var Be=[],ot=0,Sn=_e;ot",targetMapId:Q,sourceMapId:Be.mapId})}}},yE.prototype.receive=function(C){var P=C.data,F=P.id;if(F&&(!P.targetMapId||this.mapId===P.targetMapId))if(P.type===""){delete this.tasks[F];var Q=this.cancelCallbacks[F];delete this.cancelCallbacks[F],Q&&Q()}else on()||P.mustQueue?(this.tasks[F]=P,this.taskQueue.push(F),this.invoker.trigger()):this.processTask(F,P)},yE.prototype.process=function(){if(this.taskQueue.length){var C=this.taskQueue.shift(),P=this.tasks[C];delete this.tasks[C],this.taskQueue.length&&this.invoker.trigger(),P&&this.processTask(C,P)}},yE.prototype.processTask=function(C,P){var F=this;if(P.type===""){var Q=this.callbacks[C];delete this.callbacks[C],Q&&(P.error?Q(Lw(P.error)):Q(null,Lw(P.data)))}else{var _e=!1,Be=Ca(this.globalScope)?void 0:[],ot=P.hasCallback?function(Ud,Ng){_e=!0,delete F.cancelCallbacks[C],F.target.postMessage({id:C,type:"",sourceMapId:F.mapId,error:Ud?mv(Ud):null,data:mv(Ng,Be)},Be)}:function(Ud){_e=!0},Sn=null,js=Lw(P.data);if(this.parent[P.type])Sn=this.parent[P.type](P.sourceMapId,js,ot);else if(this.parent.getWorkerSource){var ka=P.type.split(".");Sn=this.parent.getWorkerSource(P.sourceMapId,ka[0],js.source)[ka[1]](js,ot)}else ot(new Error("Could not find function "+P.type));!_e&&Sn&&Sn.cancel&&(this.cancelCallbacks[C]=Sn.cancel)}},yE.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var CS=function(C,P){C&&(P?this.setSouthWest(C).setNorthEast(P):C.length===4?this.setSouthWest([C[0],C[1]]).setNorthEast([C[2],C[3]]):this.setSouthWest(C[0]).setNorthEast(C[1]))};CS.prototype.setNorthEast=function(C){return this._ne=C instanceof IT?new IT(C.lng,C.lat):IT.convert(C),this},CS.prototype.setSouthWest=function(C){return this._sw=C instanceof IT?new IT(C.lng,C.lat):IT.convert(C),this},CS.prototype.extend=function(C){var P,F,Q=this._sw,_e=this._ne;if(C instanceof IT)P=C,F=C;else{if(!(C instanceof CS))return Array.isArray(C)?C.length===4||C.every(Array.isArray)?this.extend(CS.convert(C)):this.extend(IT.convert(C)):this;if(F=C._ne,!(P=C._sw)||!F)return this}return Q||_e?(Q.lng=Math.min(P.lng,Q.lng),Q.lat=Math.min(P.lat,Q.lat),_e.lng=Math.max(F.lng,_e.lng),_e.lat=Math.max(F.lat,_e.lat)):(this._sw=new IT(P.lng,P.lat),this._ne=new IT(F.lng,F.lat)),this},CS.prototype.getCenter=function(){return new IT((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},CS.prototype.getSouthWest=function(){return this._sw},CS.prototype.getNorthEast=function(){return this._ne},CS.prototype.getNorthWest=function(){return new IT(this.getWest(),this.getNorth())},CS.prototype.getSouthEast=function(){return new IT(this.getEast(),this.getSouth())},CS.prototype.getWest=function(){return this._sw.lng},CS.prototype.getSouth=function(){return this._sw.lat},CS.prototype.getEast=function(){return this._ne.lng},CS.prototype.getNorth=function(){return this._ne.lat},CS.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},CS.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},CS.prototype.isEmpty=function(){return!(this._sw&&this._ne)},CS.prototype.contains=function(C){var P=IT.convert(C),F=P.lng,Q=P.lat,_e=this._sw.lng<=F&&F<=this._ne.lng;return this._sw.lng>this._ne.lng&&(_e=this._sw.lng>=F&&F>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&_e},CS.convert=function(C){return!C||C instanceof CS?C:new CS(C)};var IT=function(C,P){if(isNaN(C)||isNaN(P))throw new Error("Invalid LngLat object: ("+C+", "+P+")");if(this.lng=+C,this.lat=+P,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};IT.prototype.wrap=function(){return new IT(ct(this.lng,-180,180),this.lat)},IT.prototype.toArray=function(){return[this.lng,this.lat]},IT.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},IT.prototype.distanceTo=function(C){var P=Math.PI/180,F=this.lat*P,Q=C.lat*P,_e=Math.sin(F)*Math.sin(Q)+Math.cos(F)*Math.cos(Q)*Math.cos((C.lng-this.lng)*P);return 63710088e-1*Math.acos(Math.min(_e,1))},IT.prototype.toBounds=function(C){C===void 0&&(C=0);var P=360*C/40075017,F=P/Math.cos(Math.PI/180*this.lat);return new CS(new IT(this.lng-F,this.lat-P),new IT(this.lng+F,this.lat+P))},IT.convert=function(C){if(C instanceof IT)return C;if(Array.isArray(C)&&(C.length===2||C.length===3))return new IT(Number(C[0]),Number(C[1]));if(!Array.isArray(C)&&typeof C=="object"&&C!==null)return new IT(Number("lng"in C?C.lng:C.lon),Number(C.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var K3=2*Math.PI*63710088e-1;function I3(C){return K3*Math.cos(C*Math.PI/180)}function jT(C){return(180+C)/360}function Jx(C){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+C*Math.PI/360)))/360}function LA(C,P){return C/I3(P)}function P3(C){return 360/Math.PI*Math.atan(Math.exp((180-360*C)*Math.PI/180))-90}var v2=function(C,P,F){F===void 0&&(F=0),this.x=+C,this.y=+P,this.z=+F};v2.fromLngLat=function(C,P){P===void 0&&(P=0);var F=IT.convert(C);return new v2(jT(F.lng),Jx(F.lat),LA(P,F.lat))},v2.prototype.toLngLat=function(){return new IT(360*this.x-180,P3(this.y))},v2.prototype.toAltitude=function(){return this.z*I3(P3(this.y))},v2.prototype.meterInMercatorCoordinateUnits=function(){return 1/K3*(C=P3(this.y),1/Math.cos(C*Math.PI/180));var C};var Fx=function(C,P,F){this.z=C,this.x=P,this.y=F,this.key=nT(0,C,C,P,F)};Fx.prototype.equals=function(C){return this.z===C.z&&this.x===C.x&&this.y===C.y},Fx.prototype.url=function(C,P){var F,Q,_e,Be,ot,Sn=(Q=this.y,_e=this.z,Be=JE(256*(F=this.x),256*(Q=Math.pow(2,_e)-Q-1),_e),ot=JE(256*(F+1),256*(Q+1),_e),Be[0]+","+Be[1]+","+ot[0]+","+ot[1]),js=function(ka,Ud,Ng){for(var N0,U0="",Gv=ka;Gv>0;Gv--)U0+=(Ud&(N0=1<this.canonical.z?new t3(C,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t3(C,this.wrap,C,this.canonical.x>>P,this.canonical.y>>P)},t3.prototype.calculateScaledKey=function(C,P){var F=this.canonical.z-C;return C>this.canonical.z?nT(this.wrap*+P,C,this.canonical.z,this.canonical.x,this.canonical.y):nT(this.wrap*+P,C,C,this.canonical.x>>F,this.canonical.y>>F)},t3.prototype.isChildOf=function(C){if(C.wrap!==this.wrap)return!1;var P=this.canonical.z-C.canonical.z;return C.overscaledZ===0||C.overscaledZ>P&&C.canonical.y===this.canonical.y>>P},t3.prototype.children=function(C){if(this.overscaledZ>=C)return[new t3(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var P=this.canonical.z+1,F=2*this.canonical.x,Q=2*this.canonical.y;return[new t3(P,this.wrap,P,F,Q),new t3(P,this.wrap,P,F+1,Q),new t3(P,this.wrap,P,F,Q+1),new t3(P,this.wrap,P,F+1,Q+1)]},t3.prototype.isLessThan=function(C){return this.wrapC.wrap)&&(this.overscaledZC.overscaledZ)&&(this.canonical.xC.canonical.x)&&this.canonical.y=this.dim+1||P<-1||P>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(P+1)*this.stride+(C+1)},rT.prototype._unpackMapbox=function(C,P,F){return(256*C*256+256*P+F)/10-1e4},rT.prototype._unpackTerrarium=function(C,P,F){return 256*C+P+F/256-32768},rT.prototype.getPixels=function(){return new TA({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},rT.prototype.backfillBorder=function(C,P,F){if(this.dim!==C.dim)throw new Error("dem dimension mismatch");var Q=P*this.dim,_e=P*this.dim+this.dim,Be=F*this.dim,ot=F*this.dim+this.dim;switch(P){case-1:Q=_e-1;break;case 1:_e=Q+1}switch(F){case-1:Be=ot-1;break;case 1:ot=Be+1}for(var Sn=-P*this.dim,js=-F*this.dim,ka=Be;ka=0&&Ud[3]>=0&&Sn.insert(ot,Ud[0],Ud[1],Ud[2],Ud[3])}},DD.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Y0.VectorTile(new V1(this.rawTileData)).layers,this.sourceLayerCoder=new E4(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},DD.prototype.query=function(C,P,F,Q){var _e=this;this.loadVTLayers();for(var Be=C.params||{},ot=8192/C.tileSize/C.scale,Sn=jw(Be.filter),js=C.queryGeometry,ka=C.queryPadding*ot,Ud=X1(js),Ng=this.grid.query(Ud.minX-ka,Ud.minY-ka,Ud.maxX+ka,Ud.maxY+ka),N0=X1(C.cameraQueryGeometry),U0=this.grid3D.query(N0.minX-ka,N0.minY-ka,N0.maxX+ka,N0.maxY+ka,function(Uy,w_,px,$x){return function(Ix,cw,Sx,W2,gu){for(var bg=0,i0=Ix;bg=S0.x&&gu>=S0.y)return!0}var Tv=[new a(cw,Sx),new a(cw,gu),new a(W2,gu),new a(W2,Sx)];if(Ix.length>2){for(var cy=0,Gy=Tv;cy=0)return!0;return!1}(Be,Ng)){var N0=this.sourceLayerCoder.decode(F),U0=this.vtLayers[N0].feature(Q);if(_e.needGeometry){var Gv=Sw(U0,!0);if(!_e.filter(new OC(this.tileID.overscaledZ),Gv,this.tileID.canonical))return}else if(!_e.filter(new OC(this.tileID.overscaledZ),U0))return;for(var Zv=this.getId(U0,N0),o1=0;o1Q)_e=!1;else if(P)if(this.expirationTimeGs&&(C.getActor().send("enforceCacheSizeLimit",uu),Kr=0)},b.clamp=Ie,b.clearTileCache=function(C){var P=I.caches.delete("mapbox-tiles");C&&P.catch(C).then(function(){return C()})},b.clipLine=_T,b.clone=function(C){var P=new WC(16);return P[0]=C[0],P[1]=C[1],P[2]=C[2],P[3]=C[3],P[4]=C[4],P[5]=C[5],P[6]=C[6],P[7]=C[7],P[8]=C[8],P[9]=C[9],P[10]=C[10],P[11]=C[11],P[12]=C[12],P[13]=C[13],P[14]=C[14],P[15]=C[15],P},b.clone$1=Lt,b.clone$2=function(C){var P=new WC(3);return P[0]=C[0],P[1]=C[1],P[2]=C[2],P},b.collisionCircleLayout=Da,b.config=Ug,b.create=function(){var C=new WC(16);return WC!=Float32Array&&(C[1]=0,C[2]=0,C[3]=0,C[4]=0,C[6]=0,C[7]=0,C[8]=0,C[9]=0,C[11]=0,C[12]=0,C[13]=0,C[14]=0),C[0]=1,C[5]=1,C[10]=1,C[15]=1,C},b.create$1=function(){var C=new WC(9);return WC!=Float32Array&&(C[1]=0,C[2]=0,C[3]=0,C[5]=0,C[6]=0,C[7]=0),C[0]=1,C[4]=1,C[8]=1,C},b.create$2=function(){var C=new WC(4);return WC!=Float32Array&&(C[1]=0,C[2]=0),C[0]=1,C[3]=1,C},b.createCommonjsModule=x,b.createExpression=VC,b.createLayout=aS,b.createStyleLayer=function(C){return C.type==="custom"?new m_(C):new ay[C.type](C)},b.cross=function(C,P,F){var Q=P[0],_e=P[1],Be=P[2],ot=F[0],Sn=F[1],js=F[2];return C[0]=_e*js-Be*Sn,C[1]=Be*ot-Q*js,C[2]=Q*Sn-_e*ot,C},b.deepEqual=function C(P,F){if(Array.isArray(P)){if(!Array.isArray(F)||P.length!==F.length)return!1;for(var Q=0;Q0&&(Be=1/Math.sqrt(Be)),C[0]=P[0]*Be,C[1]=P[1]*Be,C[2]=P[2]*Be,C},b.number=Qv,b.offscreenCanvasSupported=fr,b.ortho=function(C,P,F,Q,_e,Be,ot){var Sn=1/(P-F),js=1/(Q-_e),ka=1/(Be-ot);return C[0]=-2*Sn,C[1]=0,C[2]=0,C[3]=0,C[4]=0,C[5]=-2*js,C[6]=0,C[7]=0,C[8]=0,C[9]=0,C[10]=2*ka,C[11]=0,C[12]=(P+F)*Sn,C[13]=(_e+Q)*js,C[14]=(ot+Be)*ka,C[15]=1,C},b.parseGlyphPBF=function(C){return new V1(C).readFields(Ly,[])},b.pbf=V1,b.performSymbolLayout=function(C,P,F,Q,_e,Be,ot){C.createArrays(),C.tilePixelRatio=8192/(512*C.overscaling),C.compareText={},C.iconsNeedLinear=!1;var Sn=C.layers[0].layout,js=C.layers[0]._unevaluatedLayout._values,ka={};if(C.textSizeData.kind==="composite"){var Ud=C.textSizeData,Ng=Ud.maxZoom;ka.compositeTextSizes=[js["text-size"].possiblyEvaluate(new OC(Ud.minZoom),ot),js["text-size"].possiblyEvaluate(new OC(Ng),ot)]}if(C.iconSizeData.kind==="composite"){var N0=C.iconSizeData,U0=N0.maxZoom;ka.compositeIconSizes=[js["icon-size"].possiblyEvaluate(new OC(N0.minZoom),ot),js["icon-size"].possiblyEvaluate(new OC(U0),ot)]}ka.layoutTextSize=js["text-size"].possiblyEvaluate(new OC(C.zoom+1),ot),ka.layoutIconSize=js["icon-size"].possiblyEvaluate(new OC(C.zoom+1),ot),ka.textMaxSize=js["text-size"].possiblyEvaluate(new OC(18));for(var Gv=24*Sn.get("text-line-height"),Zv=Sn.get("text-rotation-alignment")==="map"&&Sn.get("symbol-placement")!=="point",o1=Sn.get("text-keep-upright"),qv=Sn.get("text-size"),Sv=function(){var w_=Uy[ny],px=Sn.get("text-font").evaluate(w_,{},ot).join(","),$x=qv.evaluate(w_,{},ot),Ix=ka.layoutTextSize.evaluate(w_,{},ot),cw=ka.layoutIconSize.evaluate(w_,{},ot),Sx={horizontal:{},vertical:void 0},W2=w_.text,gu=[0,0];if(W2){var bg=W2.toString(),i0=24*Sn.get("text-letter-spacing").evaluate(w_,{},ot),S0=function(z_){for(var hS=0,NC=z_;hS=8192||hw.y<0||hw.y>=8192||function(f2,xC,GC,IS,RS,SC,sE,hE,KT,kS,nA,kA,WA,C3,RT,rA,s4,eI,sA,n3,eA,XA,KE,HD,a4){var aI,F3,SI,ZA,yD,W4=f2.addToLineVertexArray(xC,GC),gI=0,zP=0,GI=0,MI=0,T4=-1,PD=-1,L3={},wP=e1(""),oP=0,EI=0;if(hE._unevaluatedLayout.getValue("text-radial-offset")===void 0?(oP=(aI=hE.layout.get("text-offset").evaluate(eA,{},HD).map(function(_D){return 24*_D}))[0],EI=aI[1]):(oP=24*hE.layout.get("text-radial-offset").evaluate(eA,{},HD),EI=kv),f2.allowVerticalPlacement&&IS.vertical){var TI=hE.layout.get("text-rotate").evaluate(eA,{},HD)+90;ZA=new Rg(KT,xC,kS,nA,kA,IS.vertical,WA,C3,RT,TI),sE&&(yD=new Rg(KT,xC,kS,nA,kA,sE,s4,eI,RT,TI))}if(RS){var eD=hE.layout.get("icon-rotate").evaluate(eA,{}),fD=hE.layout.get("icon-text-fit")!=="none",mI=py(RS,eD,KE,fD),X3=sE?py(sE,eD,KE,fD):void 0;SI=new Rg(KT,xC,kS,nA,kA,RS,s4,eI,!1,eD),gI=4*mI.length;var LD=f2.iconSizeData,Y3=null;LD.kind==="source"?(Y3=[128*hE.layout.get("icon-size").evaluate(eA,{})])[0]>32640&&Mt(f2.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):LD.kind==="composite"&&((Y3=[128*XA.compositeIconSizes[0].evaluate(eA,{},HD),128*XA.compositeIconSizes[1].evaluate(eA,{},HD)])[0]>32640||Y3[1]>32640)&&Mt(f2.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),f2.addSymbols(f2.icon,mI,Y3,n3,sA,eA,!1,xC,W4.lineStartIndex,W4.lineLength,-1,HD),T4=f2.icon.placedSymbolArray.length-1,X3&&(zP=4*X3.length,f2.addSymbols(f2.icon,X3,Y3,n3,sA,eA,ix.vertical,xC,W4.lineStartIndex,W4.lineLength,-1,HD),PD=f2.icon.placedSymbolArray.length-1)}for(var mL in IS.horizontal){var KI=IS.horizontal[mL];if(!F3){wP=e1(KI.text);var vI=hE.layout.get("text-rotate").evaluate(eA,{},HD);F3=new Rg(KT,xC,kS,nA,kA,KI,WA,C3,RT,vI)}var lI=KI.positionedLines.length===1;if(GI+=D1(f2,xC,KI,SC,hE,RT,eA,rA,W4,IS.vertical?ix.horizontal:ix.horizontalOnly,lI?Object.keys(IS.horizontal):[mL],L3,T4,XA,HD),lI)break}IS.vertical&&(MI+=D1(f2,xC,IS.vertical,SC,hE,RT,eA,rA,W4,ix.vertical,["vertical"],L3,PD,XA,HD));var XI=F3?F3.boxStartIndex:f2.collisionBoxArray.length,OI=F3?F3.boxEndIndex:f2.collisionBoxArray.length,RI=ZA?ZA.boxStartIndex:f2.collisionBoxArray.length,A4=ZA?ZA.boxEndIndex:f2.collisionBoxArray.length,vL=SI?SI.boxStartIndex:f2.collisionBoxArray.length,MD=SI?SI.boxEndIndex:f2.collisionBoxArray.length,yL=yD?yD.boxStartIndex:f2.collisionBoxArray.length,$P=yD?yD.boxEndIndex:f2.collisionBoxArray.length,kI=-1,Z4=function(_D,QL){return _D&&_D.circleDiameter?Math.max(_D.circleDiameter,QL):QL};kI=Z4(F3,kI),kI=Z4(ZA,kI),kI=Z4(SI,kI);var PM=(kI=Z4(yD,kI))>-1?1:0;PM&&(kI*=a4/24),f2.glyphOffsetArray.length>=Dx.MAX_GLYPHS&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),eA.sortKey!==void 0&&f2.addToSortKeyRanges(f2.symbolInstances.length,eA.sortKey),f2.symbolInstances.emplaceBack(xC.x,xC.y,L3.right>=0?L3.right:-1,L3.center>=0?L3.center:-1,L3.left>=0?L3.left:-1,L3.vertical||-1,T4,PD,wP,XI,OI,RI,A4,vL,MD,yL,$P,kS,GI,MI,gI,zP,PM,0,WA,oP,EI,kI)}(z_,hw,Tx,NC,WS,MT,H,z_.layers[0],z_.collisionBoxArray,hS.index,hS.sourceLayerIndex,z_.index,Ar,C0,s1,mS,iu,Z0,M1,He,hS,zS,eS,DE,Zb)};if(Ty==="line")for(var b_=0,V_=_T(hS.geometry,0,0,8192,8192);b_1){var DS=Zw(PC,Nv,NC.vertical||Nt,WS,24,Ea);DS&&B_(PC,DS)}}else if(hS.type==="Polygon")for(var oC=0,Vw=Ir(hS.geometry,0);oC=u1.maxzoom||u1.visibility!=="none"&&(I(n0,this.zoom,ui),(Bs[u1.id]=u1.createBucket({index:xa.bucketLayerIDs.length,layers:n0,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Og,sourceID:this.source})).populate(g0,Sa,this.tileID.canonical),xa.bucketLayerIDs.push(n0.map(function(h0){return h0.id})))}}}var Eg=b.mapObject(Sa.glyphDependencies,function(h0){return Object.keys(h0).map(Number)});Object.keys(Eg).length?ya.send("getGlyphs",{uid:this.uid,stacks:Eg},function(h0,lv){Td||(Td=h0,jg=lv,Gd.call(Su))}):jg={};var a1=Object.keys(Sa.iconDependencies);a1.length?ya.send("getImages",{icons:a1,source:this.source,tileID:this.tileID,type:"icons"},function(h0,lv){Td||(Td=h0,Wa=lv,Gd.call(Su))}):Wa={};var Hg=Object.keys(Sa.patternDependencies);function Gd(){if(Td)return gd(Td);if(jg&&Wa&&tv){var h0=new a(jg),lv=new b.ImageAtlas(Wa,tv);for(var su in Bs){var hu=Bs[su];hu instanceof b.SymbolBucket?(I(hu.layers,this.zoom,ui),b.performSymbolLayout(hu,jg,h0.positions,Wa,lv.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):hu.hasPattern&&(hu instanceof b.LineBucket||hu instanceof b.FillBucket||hu instanceof b.FillExtrusionBucket)&&(I(hu.layers,this.zoom,ui),hu.addFeatures(Sa,this.tileID.canonical,lv.patternPositions))}this.status="done",gd(null,{buckets:b.values(Bs).filter(function(ev){return!ev.isEmpty()}),featureIndex:xa,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:h0.image,imageAtlas:lv,glyphMap:this.returnDependencies?jg:null,iconMap:this.returnDependencies?Wa:null,glyphPositions:this.returnDependencies?h0.positions:null})}}Hg.length?ya.send("getImages",{icons:Hg,source:this.source,tileID:this.tileID,type:"patterns"},function(h0,lv){Td||(Td=h0,tv=lv,Gd.call(Su))}):tv={},Gd.call(this)};var ie=function(On,rn,ui,ya){this.actor=On,this.layerIndex=rn,this.availableImages=ui,this.loadVectorData=ya||N,this.loading={},this.loaded={}};ie.prototype.loadTile=function(On,rn){var ui=this,ya=On.uid;this.loading||(this.loading={});var gd=!!(On&&On.request&&On.request.collectResourceTiming)&&new b.RequestPerformance(On.request),Su=this.loading[ya]=new S(On);Su.abort=this.loadVectorData(On,function(xu,xa){if(delete ui.loading[ya],xu||!xa)return Su.status="done",ui.loaded[ya]=Su,rn(xu);var Td=xa.rawData,jg={};xa.expires&&(jg.expires=xa.expires),xa.cacheControl&&(jg.cacheControl=xa.cacheControl);var Wa={};if(gd){var tv=gd.finish();tv&&(Wa.resourceTiming=JSON.parse(JSON.stringify(tv)))}Su.vectorTile=xa.vectorTile,Su.parse(xa.vectorTile,ui.layerIndex,ui.availableImages,ui.actor,function(Bs,Sa){if(Bs||!Sa)return rn(Bs);rn(null,b.extend({rawTileData:Td.slice(0)},Sa,jg,Wa))}),ui.loaded=ui.loaded||{},ui.loaded[ya]=Su})},ie.prototype.reloadTile=function(On,rn){var ui=this,ya=this.loaded,gd=On.uid,Su=this;if(ya&&ya[gd]){var xu=ya[gd];xu.showCollisionBoxes=On.showCollisionBoxes;var xa=function(Td,jg){var Wa=xu.reloadCallback;Wa&&(delete xu.reloadCallback,xu.parse(xu.vectorTile,Su.layerIndex,ui.availableImages,Su.actor,Wa)),rn(Td,jg)};xu.status==="parsing"?xu.reloadCallback=xa:xu.status==="done"&&(xu.vectorTile?xu.parse(xu.vectorTile,this.layerIndex,this.availableImages,this.actor,xa):xa())}},ie.prototype.abortTile=function(On,rn){var ui=this.loading,ya=On.uid;ui&&ui[ya]&&ui[ya].abort&&(ui[ya].abort(),delete ui[ya]),rn()},ie.prototype.removeTile=function(On,rn){var ui=this.loaded,ya=On.uid;ui&&ui[ya]&&delete ui[ya],rn()};var ze=b.window.ImageBitmap,Ie=function(){this.loaded={}};function ct(On,rn){if(On.length!==0){At(On[0],rn);for(var ui=1;ui=Math.abs(xa)?ui-Td+xa:xa-Td+ui,ui=Td}ui+ya>=0!=!!rn&&On.reverse()}Ie.prototype.loadTile=function(On,rn){var ui=On.uid,ya=On.encoding,gd=On.rawImageData,Su=ze&&gd instanceof ze?this.getImageData(gd):gd,xu=new b.DEMData(ui,Su,ya);this.loaded=this.loaded||{},this.loaded[ui]=xu,rn(null,xu)},Ie.prototype.getImageData=function(On){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(On.width,On.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=On.width,this.offscreenCanvas.height=On.height,this.offscreenCanvasContext.drawImage(On,0,0,On.width,On.height);var rn=this.offscreenCanvasContext.getImageData(-1,-1,On.width+2,On.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new b.RGBAImage({width:rn.width,height:rn.height},rn.data)},Ie.prototype.removeTile=function(On){var rn=this.loaded,ui=On.uid;rn&&rn[ui]&&delete rn[ui]};var rt=b.vectorTile.VectorTileFeature.prototype.toGeoJSON,It=function(On){this._feature=On,this.extent=b.EXTENT,this.type=On.type,this.properties=On.tags,"id"in On&&!isNaN(On.id)&&(this.id=parseInt(On.id,10))};It.prototype.loadGeometry=function(){if(this._feature.type===1){for(var On=[],rn=0,ui=this._feature.geometry;rn>31}function vn(On,rn){for(var ui=On.loadGeometry(),ya=On.type,gd=0,Su=0,xu=ui.length,xa=0;xa>1;(function Og(g0,qg,Xg,A0,nv,t0){for(;nv>A0;){if(nv-A0>600){var n0=nv-A0+1,u1=Xg-A0+1,Eg=Math.log(n0),a1=.5*Math.exp(2*Eg/3),Hg=.5*Math.sqrt(Eg*a1*(n0-a1)/n0)*(u1-n0/2<0?-1:1);Og(g0,qg,Xg,Math.max(A0,Math.floor(Xg-u1*a1/n0+Hg)),Math.min(nv,Math.floor(Xg+(n0-u1)*a1/n0+Hg)),t0)}var Gd=qg[2*Xg+t0],h0=A0,lv=nv;for(ai(g0,qg,A0,Xg),qg[2*nv+t0]>Gd&&ai(g0,qg,A0,nv);h0Gd;)lv--}qg[2*A0+t0]===Gd?ai(g0,qg,A0,lv):ai(g0,qg,++lv,nv),lv<=Xg&&(A0=lv+1),Xg<=lv&&(nv=lv-1)}})(Wa,tv,Bg,Sa,$a,Bd%2),jg(Wa,tv,Bs,Sa,Bg-1,Bd+1),jg(Wa,tv,Bs,Bg+1,$a,Bd+1)}})(xu,xa,ya,0,xu.length-1,0)};oi.prototype.range=function(On,rn,ui,ya){return function(gd,Su,xu,xa,Td,jg,Wa){for(var tv,Bs,Sa=[0,gd.length-1,0],$a=[];Sa.length;){var Bd=Sa.pop(),Bg=Sa.pop(),Og=Sa.pop();if(Bg-Og<=Wa)for(var g0=Og;g0<=Bg;g0++)Bs=Su[2*g0+1],(tv=Su[2*g0])>=xu&&tv<=Td&&Bs>=xa&&Bs<=jg&&$a.push(gd[g0]);else{var qg=Math.floor((Og+Bg)/2);Bs=Su[2*qg+1],(tv=Su[2*qg])>=xu&&tv<=Td&&Bs>=xa&&Bs<=jg&&$a.push(gd[qg]);var Xg=(Bd+1)%2;(Bd===0?xu<=tv:xa<=Bs)&&(Sa.push(Og),Sa.push(qg-1),Sa.push(Xg)),(Bd===0?Td>=tv:jg>=Bs)&&(Sa.push(qg+1),Sa.push(Bg),Sa.push(Xg))}}return $a}(this.ids,this.coords,On,rn,ui,ya,this.nodeSize)},oi.prototype.within=function(On,rn,ui){return function(ya,gd,Su,xu,xa,Td){for(var jg=[0,ya.length-1,0],Wa=[],tv=xa*xa;jg.length;){var Bs=jg.pop(),Sa=jg.pop(),$a=jg.pop();if(Sa-$a<=Td)for(var Bd=$a;Bd<=Sa;Bd++)Zr(gd[2*Bd],gd[2*Bd+1],Su,xu)<=tv&&Wa.push(ya[Bd]);else{var Bg=Math.floor(($a+Sa)/2),Og=gd[2*Bg],g0=gd[2*Bg+1];Zr(Og,g0,Su,xu)<=tv&&Wa.push(ya[Bg]);var qg=(Bs+1)%2;(Bs===0?Su-xa<=Og:xu-xa<=g0)&&(jg.push($a),jg.push(Bg-1),jg.push(qg)),(Bs===0?Su+xa>=Og:xu+xa>=g0)&&(jg.push(Bg+1),jg.push(Sa),jg.push(qg))}}return Wa}(this.ids,this.coords,On,rn,ui,this.nodeSize)};var Pa={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(On){return On}},Aa=function(On){this.options=jv(Object.create(Pa),On),this.trees=new Array(this.options.maxZoom+1)};function Pg(On,rn,ui,ya,gd){return{x:On,y:rn,zoom:1/0,id:ui,parentId:-1,numPoints:ya,properties:gd}}function Ug(On,rn){var ui=On.geometry.coordinates,ya=ui[1];return{x:X0(ui[0]),y:d0(ya),zoom:1/0,index:rn,parentId:-1}}function e0(On){return{type:"Feature",id:On.id,properties:H0(On),geometry:{type:"Point",coordinates:[(ya=On.x,360*(ya-.5)),(rn=On.y,ui=(180-360*rn)*Math.PI/180,360*Math.atan(Math.exp(ui))/Math.PI-90)]}};var rn,ui,ya}function H0(On){var rn=On.numPoints,ui=rn>=1e4?Math.round(rn/1e3)+"k":rn>=1e3?Math.round(rn/100)/10+"k":rn;return jv(jv({},On.properties),{cluster:!0,cluster_id:On.id,point_count:rn,point_count_abbreviated:ui})}function X0(On){return On/360+.5}function d0(On){var rn=Math.sin(On*Math.PI/180),ui=.5-.25*Math.log((1+rn)/(1-rn))/Math.PI;return ui<0?0:ui>1?1:ui}function jv(On,rn){for(var ui in rn)On[ui]=rn[ui];return On}function Lv(On){return On.x}function Je(On){return On.y}function k0(On,rn,ui,ya,gd,Su){var xu=gd-ui,xa=Su-ya;if(xu!==0||xa!==0){var Td=((On-ui)*xu+(rn-ya)*xa)/(xu*xu+xa*xa);Td>1?(ui=gd,ya=Su):Td>0&&(ui+=xu*Td,ya+=xa*Td)}return(xu=On-ui)*xu+(xa=rn-ya)*xa}function G0(On,rn,ui,ya){var gd={id:On===void 0?null:On,type:rn,geometry:ui,tags:ya,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Su){var xu=Su.geometry,xa=Su.type;if(xa==="Point"||xa==="MultiPoint"||xa==="LineString")iv(Su,xu);else if(xa==="Polygon"||xa==="MultiLineString")for(var Td=0;Td0&&(xu+=ya?(gd*jg-Td*Su)/2:Math.sqrt(Math.pow(Td-gd,2)+Math.pow(jg-Su,2))),gd=Td,Su=jg}var Wa=rn.length-3;rn[2]=1,function tv(Bs,Sa,$a,Bd){for(var Bg,Og=Bd,g0=$a-Sa>>1,qg=$a-Sa,Xg=Bs[Sa],A0=Bs[Sa+1],nv=Bs[$a],t0=Bs[$a+1],n0=Sa+3;n0<$a;n0+=3){var u1=k0(Bs[n0],Bs[n0+1],Xg,A0,nv,t0);if(u1>Og)Bg=n0,Og=u1;else if(u1===Og){var Eg=Math.abs(n0-g0);EgBd&&(Bg-Sa>3&&tv(Bs,Sa,Bg,Bd),Bs[Bg+2]=Og,$a-Bg>3&&tv(Bs,Bg,$a,Bd))}(rn,0,Wa,ui),rn[Wa+2]=1,rn.size=Math.abs(xu),rn.start=0,rn.end=rn.size}function zo(On,rn,ui,ya){for(var gd=0;gd1?1:ui}function c0(On,rn,ui,ya,gd,Su,xu,xa){if(ya/=rn,Su>=(ui/=rn)&&xu=ya)return null;for(var Td=[],jg=0;jg=ui&&$a=ya)){var Bd=[];if(Bs==="Point"||Bs==="MultiPoint")L0(tv,Bd,ui,ya,gd);else if(Bs==="LineString")$0(tv,Bd,ui,ya,gd,!1,xa.lineMetrics);else if(Bs==="MultiLineString")Gg(tv,Bd,ui,ya,gd,!1);else if(Bs==="Polygon")Gg(tv,Bd,ui,ya,gd,!0);else if(Bs==="MultiPolygon")for(var Bg=0;Bg=ui&&xu<=ya&&(rn.push(On[Su]),rn.push(On[Su+1]),rn.push(On[Su+2]))}}function $0(On,rn,ui,ya,gd,Su,xu){for(var xa,Td,jg=cv(On),Wa=gd===0?Gs:Ia,tv=On.start,Bs=0;Bsui&&(Td=Wa(jg,Sa,$a,Bg,Og,ui),xu&&(jg.start=tv+xa*Td)):g0>ya?qg=ui&&(Td=Wa(jg,Sa,$a,Bg,Og,ui),Xg=!0),qg>ya&&g0<=ya&&(Td=Wa(jg,Sa,$a,Bg,Og,ya),Xg=!0),!Su&&Xg&&(xu&&(jg.end=tv+xa*Td),rn.push(jg),jg=cv(On)),xu&&(tv+=xa)}var A0=On.length-3;Sa=On[A0],$a=On[A0+1],Bd=On[A0+2],(g0=gd===0?Sa:$a)>=ui&&g0<=ya&&uu(jg,Sa,$a,Bd),A0=jg.length-3,Su&&A0>=3&&(jg[A0]!==jg[0]||jg[A0+1]!==jg[1])&&uu(jg,jg[0],jg[1],jg[2]),jg.length&&rn.push(jg)}function cv(On){var rn=[];return rn.size=On.size,rn.start=On.start,rn.end=On.end,rn}function Gg(On,rn,ui,ya,gd,Su){for(var xu=0;xuxu.maxX&&(xu.maxX=Wa),tv>xu.maxY&&(xu.maxY=tv)}return xu}function Ra(On,rn,ui,ya){var gd=rn.geometry,Su=rn.type,xu=[];if(Su==="Point"||Su==="MultiPoint")for(var xa=0;xa0&&rn.size<(gd?xu:ya))ui.numPoints+=rn.length/3;else{for(var xa=[],Td=0;Tdxu)&&(ui.numSimplified++,xa.push(rn[Td]),xa.push(rn[Td+1])),ui.numPoints++;gd&&function(jg,Wa){for(var tv=0,Bs=0,Sa=jg.length,$a=Sa-2;Bs0===Wa)for(Bs=0,Sa=jg.length;Bs24)throw new Error("maxZoom should be in the 0-24 range");if(rn.promoteId&&rn.generateId)throw new Error("promoteId and generateId cannot be used together.");var ya=function(gd,Su){var xu=[];if(gd.type==="FeatureCollection")for(var xa=0;xa=ya;jg--){var Wa=+Date.now();xa=this._cluster(xa,jg),this.trees[jg]=new oi(xa,Lv,Je,Su,Float32Array),ui&&console.log("z%d: %d clusters in %dms",jg,xa.length,+Date.now()-Wa)}return ui&&console.timeEnd("total time"),this},Aa.prototype.getClusters=function(On,rn){var ui=((On[0]+180)%360+360)%360-180,ya=Math.max(-90,Math.min(90,On[1])),gd=On[2]===180?180:((On[2]+180)%360+360)%360-180,Su=Math.max(-90,Math.min(90,On[3]));if(On[2]-On[0]>=360)ui=-180,gd=180;else if(ui>gd){var xu=this.getClusters([ui,ya,180,Su],rn),xa=this.getClusters([-180,ya,gd,Su],rn);return xu.concat(xa)}for(var Td=this.trees[this._limitZoom(rn)],jg=[],Wa=0,tv=Td.range(X0(ui),d0(Su),X0(gd),d0(ya));Warn&&(Bs+=Bd.numPoints||1)}if(Bs>=Su){for(var Bg=Td.x*tv,Og=Td.y*tv,g0=gd&&tv>1?this._map(Td,!0):null,qg=(xa<<5)+(rn+1)+this.points.length,Xg=0,A0=Wa;Xg1)for(var n0=0,u1=Wa;n0>5},Aa.prototype._getOriginZoom=function(On){return(On-this.points.length)%32},Aa.prototype._map=function(On,rn){if(On.numPoints)return rn?jv({},On.properties):On.properties;var ui=this.points[On.index].properties,ya=this.options.map(ui);return rn&&ya===ui?jv({},ya):ya},Jg.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Jg.prototype.splitTile=function(On,rn,ui,ya,gd,Su,xu){for(var xa=[On,rn,ui,ya],Td=this.options,jg=Td.debug;xa.length;){ya=xa.pop(),ui=xa.pop(),rn=xa.pop(),On=xa.pop();var Wa=1<1&&console.time("creation"),Bs=this.tiles[tv]=ri(On,rn,ui,ya,Td),this.tileCoords.push({z:rn,x:ui,y:ya}),jg)){jg>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",rn,ui,ya,Bs.numFeatures,Bs.numPoints,Bs.numSimplified),console.timeEnd("creation"));var Sa="z"+rn;this.stats[Sa]=(this.stats[Sa]||0)+1,this.total++}if(Bs.source=On,gd){if(rn===Td.maxZoom||rn===gd)continue;var $a=1<1&&console.time("clipping");var Bd,Bg,Og,g0,qg,Xg,A0=.5*Td.buffer/Td.extent,nv=.5-A0,t0=.5+A0,n0=1+A0;Bd=Bg=Og=g0=null,qg=c0(On,Wa,ui-A0,ui+t0,0,Bs.minX,Bs.maxX,Td),Xg=c0(On,Wa,ui+nv,ui+n0,0,Bs.minX,Bs.maxX,Td),On=null,qg&&(Bd=c0(qg,Wa,ya-A0,ya+t0,1,Bs.minY,Bs.maxY,Td),Bg=c0(qg,Wa,ya+nv,ya+n0,1,Bs.minY,Bs.maxY,Td),qg=null),Xg&&(Og=c0(Xg,Wa,ya-A0,ya+t0,1,Bs.minY,Bs.maxY,Td),g0=c0(Xg,Wa,ya+nv,ya+n0,1,Bs.minY,Bs.maxY,Td),Xg=null),jg>1&&console.timeEnd("clipping"),xa.push(Bd||[],rn+1,2*ui,2*ya),xa.push(Bg||[],rn+1,2*ui,2*ya+1),xa.push(Og||[],rn+1,2*ui+1,2*ya),xa.push(g0||[],rn+1,2*ui+1,2*ya+1)}}},Jg.prototype.getTile=function(On,rn,ui){var ya=this.options,gd=ya.extent,Su=ya.debug;if(On<0||On>24)return null;var xu=1<1&&console.log("drilling down to z%d-%d-%d",On,rn,ui);for(var Td,jg=On,Wa=rn,tv=ui;!Td&&jg>0;)jg--,Wa=Math.floor(Wa/2),tv=Math.floor(tv/2),Td=this.tiles[j0(jg,Wa,tv)];return Td&&Td.source?(Su>1&&console.log("found parent tile z%d-%d-%d",jg,Wa,tv),Su>1&&console.time("drilling down"),this.splitTile(Td.source,jg,Wa,tv,On,rn,ui),Su>1&&console.timeEnd("drilling down"),this.tiles[xa]?Kr(this.tiles[xa],gd):null):null};var Mo=function(On){function rn(ui,ya,gd,Su){On.call(this,ui,ya,gd,Wo),Su&&(this.loadGeoJSON=Su)}return On&&(rn.__proto__=On),(rn.prototype=Object.create(On&&On.prototype)).constructor=rn,rn.prototype.loadData=function(ui,ya){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ya,this._pendingLoadDataParams=ui,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},rn.prototype._loadData=function(){var ui=this;if(this._pendingCallback&&this._pendingLoadDataParams){var ya=this._pendingCallback,gd=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Su=!!(gd&&gd.request&&gd.request.collectResourceTiming)&&new b.RequestPerformance(gd.request);this.loadGeoJSON(gd,function(xu,xa){if(xu||!xa)return ya(xu);if(typeof xa!="object")return ya(new Error("Input data given to '"+gd.source+"' is not a valid GeoJSON object."));(function Bs(Sa,$a){var Bd,Bg=Sa&&Sa.type;if(Bg==="FeatureCollection")for(Bd=0;Bd=0?0:re.button},y.remove=function(re){re.parentNode&&re.parentNode.removeChild(re)};var At=function(re){function pe(){re.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new b.RGBAImage({width:1,height:1}),this.dirty=!0}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.isLoaded=function(){return this.loaded},pe.prototype.setLoaded=function(ge){if(this.loaded!==ge&&(this.loaded=ge,ge)){for(var Le=0,Wt=this.requestors;Le=0?1.2:1))}function Hs(re,pe,ge,Le,Wt,ni,Vo){for(var Ua=0;Ua65535)Lg(new Error("glyphs > 65535 not supported"));else if(K0.ranges[Yv])Lg(null,{stack:ou,id:I0,glyph:fv});else{var d1=K0.requests[Yv];d1||(d1=K0.requests[Yv]=[],Jr.loadGlyphRange(ou,Yv,ge.url,ge.requestManager,function(uv,e1){if(e1){for(var iy in e1)ge._doesCharSupportLocalGlyph(+iy)||(K0.glyphs[+iy]=e1[+iy]);K0.ranges[Yv]=!0}for(var Jy=0,qy=d1;Jy1&&(Ua=re[++Vo]);var ou=Math.abs(Lg-Ua.left),I0=Math.abs(Lg-Ua.right),K0=Math.min(ou,I0),fv=void 0,Yv=Wt/ge*(Le+1);if(Ua.isDash){var d1=Le-Math.abs(Yv);fv=Math.sqrt(K0*K0+d1*d1)}else fv=Le-Math.sqrt(K0*K0+Yv*Yv);this.data[ni+Lg]=Math.max(0,Math.min(255,fv+128))}},Mt.prototype.addRegularDash=function(re){for(var pe=re.length-1;pe>=0;--pe){var ge=re[pe],Le=re[pe+1];ge.zeroLength?re.splice(pe,1):Le&&Le.isDash===ge.isDash&&(Le.left=ge.left,re.splice(pe,1))}var Wt=re[0],ni=re[re.length-1];Wt.isDash===ni.isDash&&(Wt.left=ni.left-this.width,ni.right=Wt.right+this.width);for(var Vo=this.width*this.nextRow,Ua=0,Lg=re[Ua],ou=0;ou1&&(Lg=re[++Ua]);var I0=Math.abs(ou-Lg.left),K0=Math.abs(ou-Lg.right),fv=Math.min(I0,K0);this.data[Vo+ou]=Math.max(0,Math.min(255,(Lg.isDash?fv:-fv)+128))}},Mt.prototype.addDash=function(re,pe){var ge=pe?7:0,Le=2*ge+1;if(this.nextRow+Le>this.height)return b.warnOnce("LineAtlas out of space"),null;for(var Wt=0,ni=0;ni=ge&&re.x=Le&&re.y0&&(ou[new b.OverscaledTileID(ge.overscaledZ,Vo,Le.z,ni,Le.y-1).key]={backfilled:!1},ou[new b.OverscaledTileID(ge.overscaledZ,ge.wrap,Le.z,Le.x,Le.y-1).key]={backfilled:!1},ou[new b.OverscaledTileID(ge.overscaledZ,Lg,Le.z,Ua,Le.y-1).key]={backfilled:!1}),Le.y+10&&(Wt.resourceTiming=ge._resourceTiming,ge._resourceTiming=[]),ge.fire(new b.Event("data",Wt))}})},pe.prototype.onAdd=function(ge){this.map=ge,this.load()},pe.prototype.setData=function(ge){var Le=this;return this._data=ge,this.fire(new b.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Wt){if(Wt)Le.fire(new b.ErrorEvent(Wt));else{var ni={dataType:"source",sourceDataType:"content"};Le._collectResourceTiming&&Le._resourceTiming&&Le._resourceTiming.length>0&&(ni.resourceTiming=Le._resourceTiming,Le._resourceTiming=[]),Le.fire(new b.Event("data",ni))}}),this},pe.prototype.getClusterExpansionZoom=function(ge,Le){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ge,source:this.id},Le),this},pe.prototype.getClusterChildren=function(ge,Le){return this.actor.send("geojson.getClusterChildren",{clusterId:ge,source:this.id},Le),this},pe.prototype.getClusterLeaves=function(ge,Le,Wt,ni){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ge,limit:Le,offset:Wt},ni),this},pe.prototype._updateWorkerData=function(ge){var Le=this;this._loaded=!1;var Wt=b.extend({},this.workerOptions),ni=this._data;typeof ni=="string"?(Wt.request=this.map._requestManager.transformRequest(b.browser.resolveURL(ni),b.ResourceType.Source),Wt.request.collectResourceTiming=this._collectResourceTiming):Wt.data=JSON.stringify(ni),this.actor.send(this.type+".loadData",Wt,function(Vo,Ua){Le._removed||Ua&&Ua.abandoned||(Le._loaded=!0,Ua&&Ua.resourceTiming&&Ua.resourceTiming[Le.id]&&(Le._resourceTiming=Ua.resourceTiming[Le.id].slice(0)),Le.actor.send(Le.type+".coalesce",{source:Wt.source},null),ge(Vo))})},pe.prototype.loaded=function(){return this._loaded},pe.prototype.loadTile=function(ge,Le){var Wt=this,ni=ge.actor?"reloadTile":"loadTile";ge.actor=this.actor,ge.request=this.actor.send(ni,{type:this.type,uid:ge.uid,tileID:ge.tileID,zoom:ge.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:b.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Vo,Ua){return delete ge.request,ge.unloadVectorData(),ge.aborted?Le(null):Vo?Le(Vo):(ge.loadVectorData(Ua,Wt.map.painter,ni==="reloadTile"),Le(null))})},pe.prototype.abortTile=function(ge){ge.request&&(ge.request.cancel(),delete ge.request),ge.aborted=!0},pe.prototype.unloadTile=function(ge){ge.unloadVectorData(),this.actor.send("removeTile",{uid:ge.uid,type:this.type,source:this.id})},pe.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},pe.prototype.serialize=function(){return b.extend({},this._options,{type:this.type,data:this._data})},pe.prototype.hasTransition=function(){return!1},pe}(b.Evented),gt=b.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Zr=function(re){function pe(ge,Le,Wt,ni){re.call(this),this.id=ge,this.dispatcher=Wt,this.coordinates=Le.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ni),this.options=Le}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.load=function(ge,Le){var Wt=this;this._loaded=!1,this.fire(new b.Event("dataloading",{dataType:"source"})),this.url=this.options.url,b.getImage(this.map._requestManager.transformRequest(this.url,b.ResourceType.Image),function(ni,Vo){Wt._loaded=!0,ni?Wt.fire(new b.ErrorEvent(ni)):Vo&&(Wt.image=Vo,ge&&(Wt.coordinates=ge),Le&&Le(),Wt._finishLoading())})},pe.prototype.loaded=function(){return this._loaded},pe.prototype.updateImage=function(ge){var Le=this;return this.image&&ge.url?(this.options.url=ge.url,this.load(ge.coordinates,function(){Le.texture=null}),this):this},pe.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new b.Event("data",{dataType:"source",sourceDataType:"metadata"})))},pe.prototype.onAdd=function(ge){this.map=ge,this.load()},pe.prototype.setCoordinates=function(ge){var Le=this;this.coordinates=ge;var Wt=ge.map(b.MercatorCoordinate.fromLngLat);this.tileID=function(Vo){for(var Ua=1/0,Lg=1/0,ou=-1/0,I0=-1/0,K0=0,fv=Vo;K0Le.end(0)?this.fire(new b.ErrorEvent(new b.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+Le.start(0)+" and "+Le.end(0)+"-second mark."))):this.video.currentTime=ge}},pe.prototype.getVideo=function(){return this.video},pe.prototype.onAdd=function(ge){this.map||(this.map=ge,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},pe.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ge=this.map.painter.context,Le=ge.gl;for(var Wt in this.boundsBuffer||(this.boundsBuffer=ge.createVertexBuffer(this._boundsArray,gt.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(Le.LINEAR,Le.CLAMP_TO_EDGE),Le.texSubImage2D(Le.TEXTURE_2D,0,0,0,Le.RGBA,Le.UNSIGNED_BYTE,this.video)):(this.texture=new b.Texture(ge,this.video,Le.RGBA),this.texture.bind(Le.LINEAR,Le.CLAMP_TO_EDGE)),this.tiles){var ni=this.tiles[Wt];ni.state!=="loaded"&&(ni.state="loaded",ni.texture=this.texture)}}},pe.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},pe.prototype.hasTransition=function(){return this.video&&!this.video.paused},pe}(Zr),Zs=function(re){function pe(ge,Le,Wt,ni){re.call(this,ge,Le,Wt,ni),Le.coordinates?Array.isArray(Le.coordinates)&&Le.coordinates.length===4&&!Le.coordinates.some(function(Vo){return!Array.isArray(Vo)||Vo.length!==2||Vo.some(function(Ua){return typeof Ua!="number"})})||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+ge,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+ge,null,'missing required property "coordinates"'))),Le.animate&&typeof Le.animate!="boolean"&&this.fire(new b.ErrorEvent(new b.ValidationError("sources."+ge,null,'optional "animate" property must be a boolean value'))),Le.canvas?typeof Le.canvas=="string"||Le.canvas instanceof b.window.HTMLCanvasElement||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+ge,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+ge,null,'missing required property "canvas"'))),this.options=Le,this.animate=Le.animate===void 0||Le.animate}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof b.window.HTMLCanvasElement?this.options.canvas:b.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new b.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},pe.prototype.getCanvas=function(){return this.canvas},pe.prototype.onAdd=function(ge){this.map=ge,this.load(),this.canvas&&this.animate&&this.play()},pe.prototype.onRemove=function(){this.pause()},pe.prototype.prepare=function(){var ge=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ge=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ge=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var Le=this.map.painter.context,Wt=Le.gl;for(var ni in this.boundsBuffer||(this.boundsBuffer=Le.createVertexBuffer(this._boundsArray,gt.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ge||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new b.Texture(Le,this.canvas,Wt.RGBA,{premultiply:!0}),this.tiles){var Vo=this.tiles[ni];Vo.state!=="loaded"&&(Vo.state="loaded",Vo.texture=this.texture)}}},pe.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},pe.prototype.hasTransition=function(){return this._playing},pe.prototype._hasInvalidDimensions=function(){for(var ge=0,Le=[this.canvas.width,this.canvas.height];gethis.max){var Vo=this._getAndRemoveByKey(this.order[0]);Vo&&this.onRemove(Vo)}return this},Ug.prototype.has=function(re){return re.wrapped().key in this.data},Ug.prototype.getAndRemove=function(re){return this.has(re)?this._getAndRemoveByKey(re.wrapped().key):null},Ug.prototype._getAndRemoveByKey=function(re){var pe=this.data[re].shift();return pe.timeout&&clearTimeout(pe.timeout),this.data[re].length===0&&delete this.data[re],this.order.splice(this.order.indexOf(re),1),pe.value},Ug.prototype.getByKey=function(re){var pe=this.data[re];return pe?pe[0].value:null},Ug.prototype.get=function(re){return this.has(re)?this.data[re.wrapped().key][0].value:null},Ug.prototype.remove=function(re,pe){if(!this.has(re))return this;var ge=re.wrapped().key,Le=pe===void 0?0:this.data[ge].indexOf(pe),Wt=this.data[ge][Le];return this.data[ge].splice(Le,1),Wt.timeout&&clearTimeout(Wt.timeout),this.data[ge].length===0&&delete this.data[ge],this.onRemove(Wt.value),this.order.splice(this.order.indexOf(ge),1),this},Ug.prototype.setMaxSize=function(re){for(this.max=re;this.order.length>this.max;){var pe=this._getAndRemoveByKey(this.order[0]);pe&&this.onRemove(pe)}return this},Ug.prototype.filter=function(re){var pe=[];for(var ge in this.data)for(var Le=0,Wt=this.data[ge];Le1||(Math.abs(I0)>1&&(Math.abs(I0+fv)===1?I0+=fv:Math.abs(I0-fv)===1&&(I0-=fv)),ou.dem&&Lg.dem&&(Lg.dem.backfillBorder(ou.dem,I0,K0),Lg.neighboringTiles&&Lg.neighboringTiles[Yv]&&(Lg.neighboringTiles[Yv].backfilled=!0)))}},pe.prototype.getTile=function(ge){return this.getTileByID(ge.key)},pe.prototype.getTileByID=function(ge){return this._tiles[ge]},pe.prototype._retainLoadedChildren=function(ge,Le,Wt,ni){for(var Vo in this._tiles){var Ua=this._tiles[Vo];if(!(ni[Vo]||!Ua.hasData()||Ua.tileID.overscaledZ<=Le||Ua.tileID.overscaledZ>Wt)){for(var Lg=Ua.tileID;Ua&&Ua.tileID.overscaledZ>Le+1;){var ou=Ua.tileID.scaledTo(Ua.tileID.overscaledZ-1);(Ua=this._tiles[ou.key])&&Ua.hasData()&&(Lg=ou)}for(var I0=Lg;I0.overscaledZ>Le;)if(ge[(I0=I0.scaledTo(I0.overscaledZ-1)).key]){ni[Lg.key]=Lg;break}}}},pe.prototype.findLoadedParent=function(ge,Le){if(ge.key in this._loadedParentTiles){var Wt=this._loadedParentTiles[ge.key];return Wt&&Wt.tileID.overscaledZ>=Le?Wt:null}for(var ni=ge.overscaledZ-1;ni>=Le;ni--){var Vo=ge.scaledTo(ni),Ua=this._getLoadedTile(Vo);if(Ua)return Ua}},pe.prototype._getLoadedTile=function(ge){var Le=this._tiles[ge.key];return Le&&Le.hasData()?Le:this._cache.getByKey(ge.wrapped().key)},pe.prototype.updateCacheSize=function(ge){var Le=Math.ceil(ge.width/this._source.tileSize)+1,Wt=Math.ceil(ge.height/this._source.tileSize)+1,ni=Math.floor(Le*Wt*5),Vo=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ni):ni;this._cache.setMaxSize(Vo)},pe.prototype.handleWrapJump=function(ge){var Le=Math.round((ge-(this._prevLng===void 0?ge:this._prevLng))/360);if(this._prevLng=ge,Le){var Wt={};for(var ni in this._tiles){var Vo=this._tiles[ni];Vo.tileID=Vo.tileID.unwrapTo(Vo.tileID.wrap+Le),Wt[Vo.tileID.key]=Vo}for(var Ua in this._tiles=Wt,this._timers)clearTimeout(this._timers[Ua]),delete this._timers[Ua];for(var Lg in this._tiles)this._setTileReloadTimer(Lg,this._tiles[Lg])}},pe.prototype.update=function(ge){var Le=this;if(this.transform=ge,this._sourceLoaded&&!this._paused){var Wt;this.updateCacheSize(ge),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?Wt=ge.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(zx){return new b.OverscaledTileID(zx.canonical.z,zx.wrap,zx.canonical.z,zx.canonical.x,zx.canonical.y)}):(Wt=ge.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Wt=Wt.filter(function(zx){return Le._source.hasTile(zx)}))):Wt=[];var ni=ge.coveringZoomLevel(this._source),Vo=Math.max(ni-pe.maxOverzooming,this._source.minzoom),Ua=Math.max(ni+pe.maxUnderzooming,this._source.minzoom),Lg=this._updateRetainedTiles(Wt,ni);if(Wa(this._source.type)){for(var ou={},I0={},K0=0,fv=Object.keys(Lg);K0this._source.maxzoom){var iy=uv.children(this._source.maxzoom)[0],Jy=this.getTile(iy);if(Jy&&Jy.hasData()){Wt[iy.key]=iy;continue}}else{var qy=uv.children(this._source.maxzoom);if(Wt[qy[0].key]&&Wt[qy[1].key]&&Wt[qy[2].key]&&Wt[qy[3].key])continue}for(var H_=e1.wasRequested(),x_=uv.overscaledZ-1;x_>=Vo;--x_){var lx=uv.scaledTo(x_);if(ni[lx.key]||(ni[lx.key]=!0,!(e1=this.getTile(lx))&&H_&&(e1=this._addTile(lx)),e1&&(Wt[lx.key]=lx,H_=e1.wasRequested(),e1.hasData())))break}}}return Wt},pe.prototype._updateLoadedParentTileCache=function(){for(var ge in this._loadedParentTiles={},this._tiles){for(var Le=[],Wt=void 0,ni=this._tiles[ge].tileID;ni.overscaledZ>0;){if(ni.key in this._loadedParentTiles){Wt=this._loadedParentTiles[ni.key];break}Le.push(ni.key);var Vo=ni.scaledTo(ni.overscaledZ-1);if(Wt=this._getLoadedTile(Vo))break;ni=Vo}for(var Ua=0,Lg=Le;Ua0||(Le.hasData()&&Le.state!=="reloading"?this._cache.add(Le.tileID,Le,Le.getExpiryTimeout()):(Le.aborted=!0,this._abortTile(Le),this._unloadTile(Le))))},pe.prototype.clearTiles=function(){for(var ge in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ge);this._cache.reset()},pe.prototype.tilesIn=function(ge,Le,Wt){var ni=this,Vo=[],Ua=this.transform;if(!Ua)return Vo;for(var Lg=Wt?Ua.getCameraQueryGeometry(ge):ge,ou=ge.map(function(x_){return Ua.pointCoordinate(x_)}),I0=Lg.map(function(x_){return Ua.pointCoordinate(x_)}),K0=this.getIds(),fv=1/0,Yv=1/0,d1=-1/0,uv=-1/0,e1=0,iy=I0;e1=0&&tw[1].y+Yx>=0){var ww=ou.map(function(Qw){return zx.getTilePoint(Qw)}),uC=I0.map(function(Qw){return zx.getTilePoint(Qw)});Vo.push({tile:lx,tileID:zx,queryGeometry:ww,cameraQueryGeometry:uC,scale:s2})}}},H_=0;H_=b.browser.now())return!0}return!1},pe.prototype.setFeatureState=function(ge,Le,Wt){this._state.updateState(ge=ge||"_geojsonTileLayer",Le,Wt)},pe.prototype.removeFeatureState=function(ge,Le,Wt){this._state.removeFeatureState(ge=ge||"_geojsonTileLayer",Le,Wt)},pe.prototype.getFeatureState=function(ge,Le){return this._state.getState(ge=ge||"_geojsonTileLayer",Le)},pe.prototype.setDependencies=function(ge,Le,Wt){var ni=this._tiles[ge];ni&&ni.setDependencies(Le,Wt)},pe.prototype.reloadTilesForDependencies=function(ge,Le){for(var Wt in this._tiles)this._tiles[Wt].hasDependency(ge,Le)&&this._reloadTile(Wt,"reloading");this._cache.filter(function(ni){return!ni.hasDependency(ge,Le)})},pe}(b.Evented);function jg(re,pe){var ge=Math.abs(2*re.wrap)-+(re.wrap<0),Le=Math.abs(2*pe.wrap)-+(pe.wrap<0);return re.overscaledZ-pe.overscaledZ||Le-ge||pe.canonical.y-re.canonical.y||pe.canonical.x-re.canonical.x}function Wa(re){return re==="raster"||re==="image"||re==="video"}function tv(){return new b.window.Worker(Wg.workerUrl)}Td.maxOverzooming=10,Td.maxUnderzooming=3;var Bs="mapboxgl_preloaded_worker_pool",Sa=function(){this.active={}};Sa.prototype.acquire=function(re){if(!this.workers)for(this.workers=[];this.workers.length0?(Le-ni)/Vo:0;return this.points[Wt].mult(1-Ua).add(this.points[pe].mult(Ua))};var Hg=function(re,pe,ge){var Le=this.boxCells=[],Wt=this.circleCells=[];this.xCellCount=Math.ceil(re/ge),this.yCellCount=Math.ceil(pe/ge);for(var ni=0;ni=-pe[0]&&ge<=pe[0]&&Le>=-pe[1]&&Le<=pe[1]}function ev(re,pe,ge,Le,Wt,ni,Vo,Ua){var Lg=Le?re.textSizeData:re.iconSizeData,ou=b.evaluateSizeForZoom(Lg,ge.transform.zoom),I0=[256/ge.width*2+1,256/ge.height*2+1],K0=Le?re.text.dynamicLayoutVertexArray:re.icon.dynamicLayoutVertexArray;K0.clear();for(var fv=re.lineVertexArray,Yv=Le?re.text.placedSymbolArray:re.icon.placedSymbolArray,d1=ge.transform.width/ge.transform.height,uv=!1,e1=0;e1Math.abs(ge.x-pe.x)*Le?{useVertical:!0}:(re===b.WritingMode.vertical?pe.yge.x)?{needsFlipping:!0}:null}function $v(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou,I0,K0,fv,Yv){var d1,uv=pe/24,e1=re.lineOffsetX*uv,iy=re.lineOffsetY*uv;if(re.numGlyphs>1){var Jy=re.glyphStartIndex+re.numGlyphs,qy=re.lineStartIndex,H_=re.lineStartIndex+re.lineLength,x_=sv(uv,Ua,e1,iy,ge,I0,K0,re,Lg,ni,fv);if(!x_)return{notEnoughRoom:!0};var lx=lv(x_.first.point,Vo).point,zx=lv(x_.last.point,Vo).point;if(Le&&!ge){var s2=yv(re.writingMode,lx,zx,Yv);if(s2)return s2}d1=[x_.first];for(var Yx=re.glyphStartIndex+1;Yx0?Qw.point:E0(K0,uC,tw,1,Wt),ow=yv(re.writingMode,tw,tS,Yv);if(ow)return ow}var S2=E1(uv*Ua.getoffsetX(re.glyphStartIndex),e1,iy,ge,I0,K0,re.segment,re.lineStartIndex,re.lineStartIndex+re.lineLength,Lg,ni,fv);if(!S2)return{notEnoughRoom:!0};d1=[S2]}for(var yS=0,iS=d1;yS0?1:-1,d1=0;Le&&(Yv*=-1,d1=Math.PI),Yv<0&&(d1+=Math.PI);for(var uv=Yv>0?Ua+Vo:Ua+Vo+1,e1=Wt,iy=Wt,Jy=0,qy=0,H_=Math.abs(fv),x_=[];Jy+qy<=H_;){if((uv+=Yv)=Lg)return null;if(iy=e1,x_.push(e1),(e1=K0[uv])===void 0){var lx=new b.Point(ou.getx(uv),ou.gety(uv)),zx=lv(lx,I0);if(zx.signedDistanceFromCamera>0)e1=K0[uv]=zx.point;else{var s2=uv-Yv;e1=E0(Jy===0?ni:new b.Point(ou.getx(s2),ou.gety(s2)),lx,iy,H_-Jy+1,I0)}}Jy+=qy,qy=iy.dist(e1)}var Yx=(H_-Jy)/qy,tw=e1.sub(iy),ww=tw.mult(Yx)._add(iy);ww._add(tw._unit()._perp()._mult(ge*Yv));var uC=d1+Math.atan2(e1.y-iy.y,e1.x-iy.x);return x_.push(ww),{point:ww,angle:uC,path:x_}}Hg.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Hg.prototype.insert=function(re,pe,ge,Le,Wt){this._forEachCell(pe,ge,Le,Wt,this._insertBoxCell,this.boxUid++),this.boxKeys.push(re),this.bboxes.push(pe),this.bboxes.push(ge),this.bboxes.push(Le),this.bboxes.push(Wt)},Hg.prototype.insertCircle=function(re,pe,ge,Le){this._forEachCell(pe-Le,ge-Le,pe+Le,ge+Le,this._insertCircleCell,this.circleUid++),this.circleKeys.push(re),this.circles.push(pe),this.circles.push(ge),this.circles.push(Le)},Hg.prototype._insertBoxCell=function(re,pe,ge,Le,Wt,ni){this.boxCells[Wt].push(ni)},Hg.prototype._insertCircleCell=function(re,pe,ge,Le,Wt,ni){this.circleCells[Wt].push(ni)},Hg.prototype._query=function(re,pe,ge,Le,Wt,ni){if(ge<0||re>this.width||Le<0||pe>this.height)return!Wt&&[];var Vo=[];if(re<=0&&pe<=0&&this.width<=ge&&this.height<=Le){if(Wt)return!0;for(var Ua=0;Ua0:Vo},Hg.prototype._queryCircle=function(re,pe,ge,Le,Wt){var ni=re-ge,Vo=re+ge,Ua=pe-ge,Lg=pe+ge;if(Vo<0||ni>this.width||Lg<0||Ua>this.height)return!Le&&[];var ou=[];return this._forEachCell(ni,Ua,Vo,Lg,this._queryCellCircle,ou,{hitTest:Le,circle:{x:re,y:pe,radius:ge},seenUids:{box:{},circle:{}}},Wt),Le?ou.length>0:ou},Hg.prototype.query=function(re,pe,ge,Le,Wt){return this._query(re,pe,ge,Le,!1,Wt)},Hg.prototype.hitTest=function(re,pe,ge,Le,Wt){return this._query(re,pe,ge,Le,!0,Wt)},Hg.prototype.hitTestCircle=function(re,pe,ge,Le){return this._queryCircle(re,pe,ge,!0,Le)},Hg.prototype._queryCell=function(re,pe,ge,Le,Wt,ni,Vo,Ua){var Lg=Vo.seenUids,ou=this.boxCells[Wt];if(ou!==null)for(var I0=this.bboxes,K0=0,fv=ou;K0=I0[d1+0]&&Le>=I0[d1+1]&&(!Ua||Ua(this.boxKeys[Yv]))){if(Vo.hitTest)return ni.push(!0),!0;ni.push({key:this.boxKeys[Yv],x1:I0[d1],y1:I0[d1+1],x2:I0[d1+2],y2:I0[d1+3]})}}}var uv=this.circleCells[Wt];if(uv!==null)for(var e1=this.circles,iy=0,Jy=uv;iyVo*Vo+Ua*Ua},Hg.prototype._circleAndRectCollide=function(re,pe,ge,Le,Wt,ni,Vo){var Ua=(ni-Le)/2,Lg=Math.abs(re-(Le+Ua));if(Lg>Ua+ge)return!1;var ou=(Vo-Wt)/2,I0=Math.abs(pe-(Wt+ou));if(I0>ou+ge)return!1;if(Lg<=Ua||I0<=ou)return!0;var K0=Lg-Ua,fv=I0-ou;return K0*K0+fv*fv<=ge*ge};var $1=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function l0(re,pe){for(var ge=0;ge=1;tS--)Qw.push(ww.path[tS]);for(var ow=1;ow0){for(var wC=Qw[0].clone(),xS=Qw[0].clone(),lS=1;lS=s2.x&&xS.x<=Yx.x&&wC.y>=s2.y&&xS.y<=Yx.y?[Qw]:xS.xYx.x||xS.yYx.y?[]:b.clipLine([Qw],s2.x,s2.y,Yx.x,Yx.y)}for(var AC=0,tT=iS;AC=this.screenRightBoundary||Le<100||pe>this.screenBottomBoundary},W0.prototype.isInsideGrid=function(re,pe,ge,Le){return ge>=0&&re=0&&pe0?(this.prevPlacement&&this.prevPlacement.variableOffsets[K0.crossTileID]&&this.prevPlacement.placements[K0.crossTileID]&&this.prevPlacement.placements[K0.crossTileID].text&&(uv=this.prevPlacement.variableOffsets[K0.crossTileID].anchor),this.variableOffsets[K0.crossTileID]={textOffset:e1,width:ge,height:Le,anchor:re,textBoxScale:Wt,prevAnchor:uv},this.markUsedJustification(fv,re,K0,Yv),fv.allowVerticalPlacement&&(this.markUsedOrientation(fv,Yv,K0),this.placedOrientations[K0.crossTileID]=Yv),{shift:iy,placedGlyphBoxes:Jy}):void 0},r0.prototype.placeLayerBucketPart=function(re,pe,ge){var Le=this,Wt=re.parameters,ni=Wt.bucket,Vo=Wt.layout,Ua=Wt.posMatrix,Lg=Wt.textLabelPlaneMatrix,ou=Wt.labelToScreenMatrix,I0=Wt.textPixelRatio,K0=Wt.holdingForFade,fv=Wt.collisionBoxArray,Yv=Wt.partiallyEvaluatedTextSize,d1=Wt.collisionGroup,uv=Vo.get("text-optional"),e1=Vo.get("icon-optional"),iy=Vo.get("text-allow-overlap"),Jy=Vo.get("icon-allow-overlap"),qy=Vo.get("text-rotation-alignment")==="map",H_=Vo.get("text-pitch-alignment")==="map",x_=Vo.get("icon-text-fit")!=="none",lx=Vo.get("symbol-z-order")==="viewport-y",zx=iy&&(Jy||!ni.hasIconData()||e1),s2=Jy&&(iy||!ni.hasTextData()||uv);!ni.collisionArrays&&fv&&ni.deserializeCollisionBoxes(fv);var Yx=function(ow,S2){if(!pe[ow.crossTileID])if(K0)Le.placements[ow.crossTileID]=new G1(!1,!1,!1);else{var yS,iS=!1,wC=!1,xS=!0,lS=null,AC={box:null,offscreen:null},tT={box:null,offscreen:null},wE=null,NE=null,J2=0,E2=0,Sw=0;S2.textFeatureIndex?J2=S2.textFeatureIndex:ow.useRuntimeCollisionCircles&&(J2=ow.featureIndex),S2.verticalTextFeatureIndex&&(E2=S2.verticalTextFeatureIndex);var vw=S2.textBox;if(vw){var yC=function(WC){var wS=b.WritingMode.horizontal;if(ni.allowVerticalPlacement&&!WC&&Le.prevPlacement){var GT=Le.prevPlacement.placedOrientations[ow.crossTileID];GT&&(Le.placedOrientations[ow.crossTileID]=GT,Le.markUsedOrientation(ni,wS=GT,ow))}return wS},T2=function(WC,wS){if(ni.allowVerticalPlacement&&ow.numVerticalGlyphVertices>0&&S2.verticalTextBox)for(var GT=0,wA=ni.writingModes;GT0&&(jC=jC.filter(function(WC){return WC!==oS.anchor})).unshift(oS.anchor)}var nw=function(WC,wS,GT){for(var wA=WC.x2-WC.x1,cE=WC.y2-WC.y1,kC=ow.textBoxScale,T3=x_&&!Jy?wS:null,$A={box:[],offscreen:!1},v3=iy?2*jC.length:jC.length,gA=0;gA=jC.length,ow,ni,GT,T3);if(N3&&($A=N3.placedGlyphBoxes)&&$A.box&&$A.box.length){iS=!0,lS=N3.shift;break}}return $A};T2(function(){return nw(vw,S2.iconBox,b.WritingMode.horizontal)},function(){var WC=S2.verticalTextBox;return ni.allowVerticalPlacement&&!(AC&&AC.box&&AC.box.length)&&ow.numVerticalGlyphVertices>0&&WC?nw(WC,S2.verticalIconBox,b.WritingMode.vertical):{box:null,offscreen:null}}),AC&&(iS=AC.box,xS=AC.offscreen);var Xv=yC(AC&&AC.box);if(!iS&&Le.prevPlacement){var GE=Le.prevPlacement.variableOffsets[ow.crossTileID];GE&&(Le.variableOffsets[ow.crossTileID]=GE,Le.markUsedJustification(ni,GE.anchor,ow,Xv))}}else{var LE=function(WC,wS){var GT=Le.collisionIndex.placeCollisionBox(WC,iy,I0,Ua,d1.predicate);return GT&>.box&>.box.length&&(Le.markUsedOrientation(ni,wS,ow),Le.placedOrientations[ow.crossTileID]=wS),GT};T2(function(){return LE(vw,b.WritingMode.horizontal)},function(){var WC=S2.verticalTextBox;return ni.allowVerticalPlacement&&ow.numVerticalGlyphVertices>0&&WC?LE(WC,b.WritingMode.vertical):{box:null,offscreen:null}}),yC(AC&&AC.box&&AC.box.length)}}if(iS=(yS=AC)&&yS.box&&yS.box.length>0,xS=yS&&yS.offscreen,ow.useRuntimeCollisionCircles){var oA=ni.text.placedSymbolArray.get(ow.centerJustifiedTextSymbolIndex),FT=b.evaluateSizeForFeature(ni.textSizeData,Yv,oA),uE=Vo.get("text-padding");wE=Le.collisionIndex.placeCollisionCircles(iy,oA,ni.lineVertexArray,ni.glyphOffsetArray,FT,Ua,Lg,ou,ge,H_,d1.predicate,ow.collisionCircleDiameter,uE),iS=iy||wE.circles.length>0&&!wE.collisionDetected,xS=xS&&wE.offscreen}if(S2.iconFeatureIndex&&(Sw=S2.iconFeatureIndex),S2.iconBox){var ET=function(WC){var wS=x_&&lS?Yg(WC,lS.x,lS.y,qy,H_,Le.transform.angle):WC;return Le.collisionIndex.placeCollisionBox(wS,Jy,I0,Ua,d1.predicate)};wC=tT&&tT.box&&tT.box.length&&S2.verticalIconBox?(NE=ET(S2.verticalIconBox)).box.length>0:(NE=ET(S2.iconBox)).box.length>0,xS=xS&&NE.offscreen}var cC=uv||ow.numHorizontalGlyphVertices===0&&ow.numVerticalGlyphVertices===0,xT=e1||ow.numIconVertices===0;if(cC||xT?xT?cC||(wC=wC&&iS):iS=wC&&iS:wC=iS=wC&&iS,iS&&yS&&yS.box&&Le.collisionIndex.insertCollisionBox(yS.box,Vo.get("text-ignore-placement"),ni.bucketInstanceId,tT&&tT.box&&E2?E2:J2,d1.ID),wC&&NE&&Le.collisionIndex.insertCollisionBox(NE.box,Vo.get("icon-ignore-placement"),ni.bucketInstanceId,Sw,d1.ID),wE&&(iS&&Le.collisionIndex.insertCollisionCircles(wE.circles,Vo.get("text-ignore-placement"),ni.bucketInstanceId,J2,d1.ID),ge)){var wT=ni.bucketInstanceId,oE=Le.collisionCircleArrays[wT];oE===void 0&&(oE=Le.collisionCircleArrays[wT]=new xy);for(var DT=0;DT=0;--ww){var uC=tw[ww];Yx(ni.symbolInstances.get(uC),ni.collisionArrays[uC])}else for(var Qw=re.symbolInstanceStart;Qw=0&&(re.text.placedSymbolArray.get(Ua).crossTileID=Wt>=0&&Ua!==Wt?0:ge.crossTileID)}},r0.prototype.markUsedOrientation=function(re,pe,ge){for(var Le=pe===b.WritingMode.horizontal||pe===b.WritingMode.horizontalOnly?pe:0,Wt=pe===b.WritingMode.vertical?pe:0,ni=0,Vo=[ge.leftJustifiedTextSymbolIndex,ge.centerJustifiedTextSymbolIndex,ge.rightJustifiedTextSymbolIndex];ni0,s2=Le.placedOrientations[Jy.crossTileID],Yx=s2===b.WritingMode.vertical,tw=s2===b.WritingMode.horizontal||s2===b.WritingMode.horizontalOnly;if(qy>0||H_>0){var ww=In(lx.text);Yv(re.text,qy,Yx?ga:ww),Yv(re.text,H_,tw?ga:ww);var uC=lx.text.isHidden();[Jy.rightJustifiedTextSymbolIndex,Jy.centerJustifiedTextSymbolIndex,Jy.leftJustifiedTextSymbolIndex].forEach(function(AC){AC>=0&&(re.text.placedSymbolArray.get(AC).hidden=uC||Yx?1:0)}),Jy.verticalPlacedTextSymbolIndex>=0&&(re.text.placedSymbolArray.get(Jy.verticalPlacedTextSymbolIndex).hidden=uC||tw?1:0);var Qw=Le.variableOffsets[Jy.crossTileID];Qw&&Le.markUsedJustification(re,Qw.anchor,Jy,s2);var tS=Le.placedOrientations[Jy.crossTileID];tS&&(Le.markUsedJustification(re,"left",Jy,tS),Le.markUsedOrientation(re,tS,Jy))}if(zx){var ow=In(lx.icon),S2=!(K0&&Jy.verticalPlacedIconSymbolIndex&&Yx);Jy.placedIconSymbolIndex>=0&&(Yv(re.icon,Jy.numIconVertices,S2?ow:ga),re.icon.placedSymbolArray.get(Jy.placedIconSymbolIndex).hidden=lx.icon.isHidden()),Jy.verticalPlacedIconSymbolIndex>=0&&(Yv(re.icon,Jy.numVerticalIconVertices,S2?ga:ow),re.icon.placedSymbolArray.get(Jy.verticalPlacedIconSymbolIndex).hidden=lx.icon.isHidden())}if(re.hasIconCollisionBoxData()||re.hasTextCollisionBoxData()){var yS=re.collisionArrays[iy];if(yS){var iS=new b.Point(0,0);if(yS.textBox||yS.verticalTextBox){var wC=!0;if(Lg){var xS=Le.variableOffsets[x_];xS?(iS=xd(xS.anchor,xS.width,xS.height,xS.textOffset,xS.textBoxScale),ou&&iS._rotate(I0?Le.transform.angle:-Le.transform.angle)):wC=!1}yS.textBox&&No(re.textCollisionBox.collisionVertexArray,lx.text.placed,!wC||Yx,iS.x,iS.y),yS.verticalTextBox&&No(re.textCollisionBox.collisionVertexArray,lx.text.placed,!wC||tw,iS.x,iS.y)}var lS=!!(!tw&&yS.verticalIconBox);yS.iconBox&&No(re.iconCollisionBox.collisionVertexArray,lx.icon.placed,lS,K0?iS.x:0,K0?iS.y:0),yS.verticalIconBox&&No(re.iconCollisionBox.collisionVertexArray,lx.icon.placed,!lS,K0?iS.x:0,K0?iS.y:0)}}},uv=0;uvre},r0.prototype.setStale=function(){this.stale=!0};var qt=Math.pow(2,25),Sr=Math.pow(2,24),si=Math.pow(2,17),Rs=Math.pow(2,16),wa=Math.pow(2,9),bu=Math.pow(2,8),s0=Math.pow(2,1);function In(re){if(re.opacity===0&&!re.placed)return 0;if(re.opacity===1&&re.placed)return 4294967295;var pe=re.placed?1:0,ge=Math.floor(127*re.opacity);return ge*qt+pe*Sr+ge*si+pe*Rs+ge*wa+pe*bu+ge*s0+pe}var ga=0,Ga=function(re){this._sortAcrossTiles=re.layout.get("symbol-z-order")!=="viewport-y"&&re.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Ga.prototype.continuePlacement=function(re,pe,ge,Le,Wt){for(var ni=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Vo=pe[re[this._currentPlacementIndex]],Ua=this.placement.collisionIndex.transform.zoom;if(Vo.type==="symbol"&&(!Vo.minzoom||Vo.minzoom<=Ua)&&(!Vo.maxzoom||Vo.maxzoom>Ua)){if(this._inProgressLayer||(this._inProgressLayer=new Ga(Vo)),this._inProgressLayer.continuePlacement(ge[Vo.source],this.placement,this._showCollisionBoxes,Vo,ni))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Lu.prototype.commit=function(re){return this.placement.commit(re),this.placement};var dv=512/b.EXTENT/2,Cv=function(re,pe,ge){this.tileID=re,this.indexedSymbolInstances={},this.bucketInstanceId=ge;for(var Le=0;Lere.overscaledZ)for(var Ua in Vo){var Lg=Vo[Ua];Lg.tileID.isChildOf(re)&&Lg.findMatches(pe.symbolInstances,re,Wt)}else{var ou=Vo[re.scaledTo(Number(ni)).key];ou&&ou.findMatches(pe.symbolInstances,re,Wt)}}for(var I0=0;I01?"@2x":"",K0=b.getJSON(ni.transformRequest(ni.normalizeSpriteURL(Wt,I0,".json"),b.ResourceType.SpriteJSON),function(d1,uv){K0=null,ou||(ou=d1,Ua=uv,Yv())}),fv=b.getImage(ni.transformRequest(ni.normalizeSpriteURL(Wt,I0,".png"),b.ResourceType.SpriteImage),function(d1,uv){fv=null,ou||(ou=d1,Lg=uv,Yv())});function Yv(){if(ou)Vo(ou);else if(Ua&&Lg){var d1=b.browser.getImageData(Lg),uv={};for(var e1 in Ua){var iy=Ua[e1],Jy=iy.width,qy=iy.height,H_=iy.x,x_=iy.y,lx=iy.sdf,zx=iy.pixelRatio,s2=iy.stretchX,Yx=iy.stretchY,tw=iy.content,ww=new b.RGBAImage({width:Jy,height:qy});b.RGBAImage.copy(d1,ww,{x:H_,y:x_},{x:0,y:0},{width:Jy,height:qy}),uv[e1]={data:ww,pixelRatio:zx,sdf:lx,stretchX:s2,stretchY:Yx,content:tw}}Vo(null,uv)}}return{cancel:function(){K0&&(K0.cancel(),K0=null),fv&&(fv.cancel(),fv=null)}}}(ge,this.map._requestManager,function(Wt,ni){if(Le._spriteRequest=null,Wt)Le.fire(new b.ErrorEvent(Wt));else if(ni)for(var Vo in ni)Le.imageManager.addImage(Vo,ni[Vo]);Le.imageManager.setLoaded(!0),Le._availableImages=Le.imageManager.listImages(),Le.dispatcher.broadcast("setImages",Le._availableImages),Le.fire(new b.Event("data",{dataType:"style"}))})},pe.prototype._validateLayer=function(ge){var Le=this.sourceCaches[ge.source];if(Le){var Wt=ge.sourceLayer;if(Wt){var ni=Le.getSource();(ni.type==="geojson"||ni.vectorLayerIds&&ni.vectorLayerIds.indexOf(Wt)===-1)&&this.fire(new b.ErrorEvent(new Error('Source layer "'+Wt+'" does not exist on source "'+ni.id+'" as specified by style layer "'+ge.id+'"')))}}},pe.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ge in this.sourceCaches)if(!this.sourceCaches[ge].loaded())return!1;return!!this.imageManager.isLoaded()},pe.prototype._serializeLayers=function(ge){for(var Le=[],Wt=0,ni=ge;Wt0)throw new Error("Unimplemented: "+ni.map(function(Vo){return Vo.command}).join(", ")+".");return Wt.forEach(function(Vo){Vo.command!=="setTransition"&&Le[Vo.command].apply(Le,Vo.args)}),this.stylesheet=ge,!0},pe.prototype.addImage=function(ge,Le){if(this.getImage(ge))return this.fire(new b.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ge,Le),this._afterImageUpdated(ge)},pe.prototype.updateImage=function(ge,Le){this.imageManager.updateImage(ge,Le)},pe.prototype.getImage=function(ge){return this.imageManager.getImage(ge)},pe.prototype.removeImage=function(ge){if(!this.getImage(ge))return this.fire(new b.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ge),this._afterImageUpdated(ge)},pe.prototype._afterImageUpdated=function(ge){this._availableImages=this.imageManager.listImages(),this._changedImages[ge]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new b.Event("data",{dataType:"style"}))},pe.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},pe.prototype.addSource=function(ge,Le,Wt){var ni=this;if(Wt===void 0&&(Wt={}),this._checkLoaded(),this.sourceCaches[ge]!==void 0)throw new Error("There is already a source with this ID");if(!Le.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(Le).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(Le.type)>=0&&this._validate(b.validateStyle.source,"sources."+ge,Le,null,Wt))){this.map&&this.map._collectResourceTiming&&(Le.collectResourceTiming=!0);var Vo=this.sourceCaches[ge]=new Td(ge,Le,this.dispatcher);Vo.style=this,Vo.setEventedParent(this,function(){return{isSourceLoaded:ni.loaded(),source:Vo.serialize(),sourceId:ge}}),Vo.onAdd(this.map),this._changed=!0}},pe.prototype.removeSource=function(ge){if(this._checkLoaded(),this.sourceCaches[ge]===void 0)throw new Error("There is no source with this ID");for(var Le in this._layers)if(this._layers[Le].source===ge)return this.fire(new b.ErrorEvent(new Error('Source "'+ge+'" cannot be removed while layer "'+Le+'" is using it.')));var Wt=this.sourceCaches[ge];delete this.sourceCaches[ge],delete this._updatedSources[ge],Wt.fire(new b.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ge})),Wt.setEventedParent(null),Wt.clearTiles(),Wt.onRemove&&Wt.onRemove(this.map),this._changed=!0},pe.prototype.setGeoJSONSourceData=function(ge,Le){this._checkLoaded(),this.sourceCaches[ge].getSource().setData(Le),this._changed=!0},pe.prototype.getSource=function(ge){return this.sourceCaches[ge]&&this.sourceCaches[ge].getSource()},pe.prototype.addLayer=function(ge,Le,Wt){Wt===void 0&&(Wt={}),this._checkLoaded();var ni=ge.id;if(this.getLayer(ni))this.fire(new b.ErrorEvent(new Error('Layer with id "'+ni+'" already exists on this map')));else{var Vo;if(ge.type==="custom"){if(Z1(this,b.validateCustomStyleLayer(ge)))return;Vo=b.createStyleLayer(ge)}else{if(typeof ge.source=="object"&&(this.addSource(ni,ge.source),ge=b.clone$1(ge),ge=b.extend(ge,{source:ni})),this._validate(b.validateStyle.layer,"layers."+ni,ge,{arrayIndex:-1},Wt))return;Vo=b.createStyleLayer(ge),this._validateLayer(Vo),Vo.setEventedParent(this,{layer:{id:ni}}),this._serializedLayers[Vo.id]=Vo.serialize()}var Ua=Le?this._order.indexOf(Le):this._order.length;if(Le&&Ua===-1)this.fire(new b.ErrorEvent(new Error('Layer with id "'+Le+'" does not exist on this map.')));else{if(this._order.splice(Ua,0,ni),this._layerOrderChanged=!0,this._layers[ni]=Vo,this._removedLayers[ni]&&Vo.source&&Vo.type!=="custom"){var Lg=this._removedLayers[ni];delete this._removedLayers[ni],Lg.type!==Vo.type?this._updatedSources[Vo.source]="clear":(this._updatedSources[Vo.source]="reload",this.sourceCaches[Vo.source].pause())}this._updateLayer(Vo),Vo.onAdd&&Vo.onAdd(this.map)}}},pe.prototype.moveLayer=function(ge,Le){if(this._checkLoaded(),this._changed=!0,this._layers[ge]){if(ge!==Le){var Wt=this._order.indexOf(ge);this._order.splice(Wt,1);var ni=Le?this._order.indexOf(Le):this._order.length;Le&&ni===-1?this.fire(new b.ErrorEvent(new Error('Layer with id "'+Le+'" does not exist on this map.'))):(this._order.splice(ni,0,ge),this._layerOrderChanged=!0)}}else this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot be moved.")))},pe.prototype.removeLayer=function(ge){this._checkLoaded();var Le=this._layers[ge];if(Le){Le.setEventedParent(null);var Wt=this._order.indexOf(ge);this._order.splice(Wt,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ge]=Le,delete this._layers[ge],delete this._serializedLayers[ge],delete this._updatedLayers[ge],delete this._updatedPaintProps[ge],Le.onRemove&&Le.onRemove(this.map)}else this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot be removed.")))},pe.prototype.getLayer=function(ge){return this._layers[ge]},pe.prototype.hasLayer=function(ge){return ge in this._layers},pe.prototype.setLayerZoomRange=function(ge,Le,Wt){this._checkLoaded();var ni=this.getLayer(ge);ni?ni.minzoom===Le&&ni.maxzoom===Wt||(Le!=null&&(ni.minzoom=Le),Wt!=null&&(ni.maxzoom=Wt),this._updateLayer(ni)):this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot have zoom extent.")))},pe.prototype.setFilter=function(ge,Le,Wt){Wt===void 0&&(Wt={}),this._checkLoaded();var ni=this.getLayer(ge);if(ni){if(!b.deepEqual(ni.filter,Le))return Le==null?(ni.filter=void 0,void this._updateLayer(ni)):void(this._validate(b.validateStyle.filter,"layers."+ni.id+".filter",Le,null,Wt)||(ni.filter=b.clone$1(Le),this._updateLayer(ni)))}else this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot be filtered.")))},pe.prototype.getFilter=function(ge){return b.clone$1(this.getLayer(ge).filter)},pe.prototype.setLayoutProperty=function(ge,Le,Wt,ni){ni===void 0&&(ni={}),this._checkLoaded();var Vo=this.getLayer(ge);Vo?b.deepEqual(Vo.getLayoutProperty(Le),Wt)||(Vo.setLayoutProperty(Le,Wt,ni),this._updateLayer(Vo)):this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot be styled.")))},pe.prototype.getLayoutProperty=function(ge,Le){var Wt=this.getLayer(ge);if(Wt)return Wt.getLayoutProperty(Le);this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style.")))},pe.prototype.setPaintProperty=function(ge,Le,Wt,ni){ni===void 0&&(ni={}),this._checkLoaded();var Vo=this.getLayer(ge);Vo?b.deepEqual(Vo.getPaintProperty(Le),Wt)||(Vo.setPaintProperty(Le,Wt,ni)&&this._updateLayer(Vo),this._changed=!0,this._updatedPaintProps[ge]=!0):this.fire(new b.ErrorEvent(new Error("The layer '"+ge+"' does not exist in the map's style and cannot be styled.")))},pe.prototype.getPaintProperty=function(ge,Le){return this.getLayer(ge).getPaintProperty(Le)},pe.prototype.setFeatureState=function(ge,Le){this._checkLoaded();var Wt=ge.source,ni=ge.sourceLayer,Vo=this.sourceCaches[Wt];if(Vo!==void 0){var Ua=Vo.getSource().type;Ua==="geojson"&&ni?this.fire(new b.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ua!=="vector"||ni?(ge.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),Vo.setFeatureState(ni,ge.id,Le)):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+Wt+"' does not exist in the map's style.")))},pe.prototype.removeFeatureState=function(ge,Le){this._checkLoaded();var Wt=ge.source,ni=this.sourceCaches[Wt];if(ni!==void 0){var Vo=ni.getSource().type,Ua=Vo==="vector"?ge.sourceLayer:void 0;Vo!=="vector"||Ua?Le&&typeof ge.id!="string"&&typeof ge.id!="number"?this.fire(new b.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ni.removeFeatureState(Ua,ge.id,Le):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+Wt+"' does not exist in the map's style.")))},pe.prototype.getFeatureState=function(ge){this._checkLoaded();var Le=ge.source,Wt=ge.sourceLayer,ni=this.sourceCaches[Le];if(ni!==void 0){if(ni.getSource().type!=="vector"||Wt)return ge.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),ni.getFeatureState(Wt,ge.id);this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+Le+"' does not exist in the map's style.")))},pe.prototype.getTransition=function(){return b.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},pe.prototype.serialize=function(){return b.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:b.mapObject(this.sourceCaches,function(ge){return ge.serialize()}),layers:this._serializeLayers(this._order)},function(ge){return ge!==void 0})},pe.prototype._updateLayer=function(ge){this._updatedLayers[ge.id]=!0,ge.source&&!this._updatedSources[ge.source]&&this.sourceCaches[ge.source].getSource().type!=="raster"&&(this._updatedSources[ge.source]="reload",this.sourceCaches[ge.source].pause()),this._changed=!0},pe.prototype._flattenAndSortRenderedFeatures=function(ge){for(var Le=this,Wt=function(s2){return Le._layers[s2].type==="fill-extrusion"},ni={},Vo=[],Ua=this._order.length-1;Ua>=0;Ua--){var Lg=this._order[Ua];if(Wt(Lg)){ni[Lg]=Ua;for(var ou=0,I0=ge;ou=0;uv--){var e1=this._order[uv];if(Wt(e1))for(var iy=Vo.length-1;iy>=0;iy--){var Jy=Vo[iy].feature;if(ni[Jy.layer.id]=ya)return fe;var cu=gn-Ih(ci);if(cu<1)return ci;var Gu=zl?Wt(zl,0,cu).join(""):fe.slice(0,cu);if(is===z)return Gu+ci;if(zl&&(cu+=Gu.length-cu),Oh(is)){if(fe.slice(cu).search(is)){var qh,Qh=Gu;for(is.global||(is=Wh(is.source,vd(Gr.exec(is))+"g")),is.lastIndex=0;qh=is.exec(Qh);)var Td=qh.index;Gu=Gu.slice(0,Td===z?cu:Td)}}else if(fe.indexOf(ig(is),cu)!=cu){var Yf=Gu.lastIndexOf(is);Yf>-1&&(Gu=Gu.slice(0,Yf))}return Gu+ci}function $y(fe){return fe=vd(fe),fe&&xt.test(fe)?fe.replace(Un,jl):fe}var H1=Bn(function(fe,We,gn){return fe+(gn?" ":"")+We.toUpperCase()}),z_=Pi("toUpperCase");function Ix(fe,We,gn){return fe=vd(fe),We=gn?z:We,We===z?Ec(fe)?su(fe):uu(fe):fe.match(We)||[]}var __=Cf(function(fe,We){try{return ns(fe,z,We)}catch(gn){return gs(gn)?gn:new Lu(gn)}}),n_=si(function(fe,We){return vs(We,function(gn){gn=Fd(gn),vh(fe,gn,Ys(fe[gn],fe))}),fe});function Wy(fe){var We=fe==null?0:fe.length,gn=No();return fe=We?ol(fe,function(ci){if(typeof ci[1]!="function")throw new id(X);return[gn(ci[0]),ci[1]]}):[],Cf(function(ci){for(var is=-1;++isTe)return[];var gn=Vt,ci=Ep(fe,Vt);We=No(We),fe-=Vt;for(var is=Ud(ci,We);++gn0||We<0)?new ue(gn):(fe<0?gn=gn.takeRight(-fe):fe&&(gn=gn.drop(fe)),We!==z&&(We=oc(We),gn=We<0?gn.dropRight(-We):gn.take(We-fe)),gn)},ue.prototype.takeRightWhile=function(fe){return this.reverse().takeWhile(fe).reverse()},ue.prototype.toArray=function(){return this.take(Vt)},yh(ue.prototype,function(fe,We){var gn=/^(?:filter|find|map|reject)|While$/.test(We),ci=/^(?:head|last)$/.test(We),is=Vo[ci?"take"+(We=="last"?"Right":""):We],ya=ci||/^find/.test(We);is&&(Vo.prototype[We]=function(){var zl=this.__wrapped__,cu=ci?[1]:arguments,Gu=zl instanceof ue,qh=cu[0],Qh=Gu||de(zl),Td=function(Cm){var Wm=is.apply(Vo,sl([Cm],cu));return ci&&Yf?Wm[0]:Wm};Qh&&gn&&typeof qh=="function"&&qh.length!=1&&(Gu=Qh=!1);var Yf=this.__chain__,Op=!!this.__actions__.length,fg=ya&&!Yf,mm=Gu&&!Op;if(!ya&&Qh){zl=mm?zl:new ue(this);var Pg=fe.apply(zl,cu);return Pg.__actions__.push({func:i0,args:[Td],thisArg:z}),new te(Pg,Yf)}return fg&&mm?fe.apply(this,cu):(Pg=this.thru(Td),fg?ci?Pg.value()[0]:Pg.value():Pg)})}),vs(["pop","push","shift","sort","splice","unshift"],function(fe){var We=Wd[fe],gn=/^(?:push|sort|unshift)$/.test(fe)?"tap":"thru",ci=/^(?:pop|shift)$/.test(fe);Vo.prototype[fe]=function(){var is=arguments;if(ci&&!this.__chain__){var ya=this.value();return We.apply(de(ya)?ya:[],is)}return this[gn](function(zl){return We.apply(de(zl)?zl:[],is)})}}),yh(ue.prototype,function(fe,We){var gn=Vo[We];if(gn){var ci=gn.name+"";Of.call(fh,ci)||(fh[ci]=[]),fh[ci].push({name:We,func:gn})}}),fh[yr(z,at).name]=[{name:"wrapper",func:z}],ue.prototype.clone=Ke,ue.prototype.reverse=_n,ue.prototype.value=lr,Vo.prototype.at=Ps,Vo.prototype.chain=kv,Vo.prototype.commit=Sg,Vo.prototype.next=ov,Vo.prototype.plant=f,Vo.prototype.reverse=m,Vo.prototype.toJSON=Vo.prototype.valueOf=Vo.prototype.value=C,Vo.prototype.first=Vo.prototype.head,Fp&&(Vo.prototype[Fp]=xe),Vo},Th=gh();mh._=Th,v=function(){return Th}.call(me,x,me,St),v!==z&&(St.exports=v)}).call(this)},52858:function(St,me,x){var v=x(52166),z="Expected a function";function P(A,W){if(typeof A!="function"||W!=null&&typeof W!="function")throw new TypeError(z);var X=function(){var Y=arguments,ie=W?W.apply(this,Y):Y[0],ae=X.cache;if(ae.has(ie))return ae.get(ie);var se=A.apply(this,Y);return X.cache=ae.set(ie,se)||ae,se};return X.cache=new(P.Cache||v),X}P.Cache=v,St.exports=P},28440:function(St,me,x){var v=x(50097),z=x(63323),P=z(function(A,W,X){v(A,W,X)});St.exports=P},24602:function(St,me,x){var v=x(50097),z=x(63323),P=z(function(A,W,X,Y){v(A,W,X,Y)});St.exports=P},9958:function(St){function me(){}St.exports=me},5795:function(St,me,x){var v=x(33152),z=function(){return v.Date.now()};St.exports=z},63536:function(St,me,x){var v=x(92918),z=x(14989),P=v(z);St.exports=P},14989:function(St,me,x){var v=x(23442);function z(P,A){return P&&P.length&&A&&A.length?v(P,A):P}St.exports=z},4134:function(St){function me(){return[]}St.exports=me},55950:function(St){function me(){return!1}St.exports=me},46700:function(St,me,x){var v=x(41571),z=x(20816),P="Expected a function";function A(W,X,Y){var ie=!0,ae=!0;if(typeof W!="function")throw new TypeError(P);return z(Y)&&(ie="leading"in Y?!!Y.leading:ie,ae="trailing"in Y?!!Y.trailing:ae),v(W,X,{leading:ie,maxWait:X,trailing:ae})}St.exports=A},20168:function(St,me,x){var v=x(13927),z=x(20816),P=x(45029),A=0/0,W=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,ie=parseInt;function ae(se){if(typeof se=="number")return se;if(P(se))return A;if(z(se)){var Ie=typeof se.valueOf=="function"?se.valueOf():se;se=z(Ie)?Ie+"":Ie}if(typeof se!="string")return se===0?se:+se;se=v(se);var Be=X.test(se);return Be||Y.test(se)?ie(se.slice(2),Be?2:8):W.test(se)?A:+se}St.exports=ae},20480:function(St,me,x){var v=x(95378),z=x(56730);function P(A){return v(A,z(A))}St.exports=P},44140:function(St,me,x){var v=x(50230);function z(P){return P==null?"":v(P)}St.exports=z},21691:function(St,me,x){var v=x(29098);function z(P){return P&&P.length?v(P):[]}St.exports=z},53592:function(St,me,x){var v=x(44412),z=v("toUpperCase");St.exports=z},61503:function(St,me,x){var v=x(34130),z=x(62840),P=x(44140),A=x(97681);function W(X,Y,ie){return X=P(X),Y=ie?void 0:Y,Y===void 0?z(X)?A(X):v(X):X.match(Y)||[]}St.exports=W},17369:function(St){(function(me,x){St.exports=x()})(this,function(){"use strict";var me,x,v;function z(P,A){if(!me)me=A;else if(!x)x=A;else{var W="var sharedChunk = {}; ("+me+")(sharedChunk); ("+x+")(sharedChunk);",X={};me(X),v=A(X),typeof window!="undefined"&&(v.workerUrl=window.URL.createObjectURL(new Blob([W],{type:"text/javascript"})))}}return z(["exports"],function(P){"use strict";function A(f,m){return f(m={exports:{}},m.exports),m.exports}var W=X;function X(f,m,C,N){this.cx=3*f,this.bx=3*(C-f)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*m,this.by=3*(N-m)-this.cy,this.ay=1-this.cy-this.by,this.p1x=f,this.p1y=N,this.p2x=C,this.p2y=N}X.prototype.sampleCurveX=function(f){return((this.ax*f+this.bx)*f+this.cx)*f},X.prototype.sampleCurveY=function(f){return((this.ay*f+this.by)*f+this.cy)*f},X.prototype.sampleCurveDerivativeX=function(f){return(3*this.ax*f+2*this.bx)*f+this.cx},X.prototype.solveCurveX=function(f,m){var C,N,q,oe,_e;for(m===void 0&&(m=1e-6),q=f,_e=0;_e<8;_e++){if(oe=this.sampleCurveX(q)-f,Math.abs(oe)(N=1))return N;for(;Coe?C=q:N=q,q=.5*(N-C)+C}return q},X.prototype.solve=function(f,m){return this.sampleCurveY(this.solveCurveX(f,m))};var Y=ie;function ie(f,m){this.x=f,this.y=m}ie.prototype={clone:function(){return new ie(this.x,this.y)},add:function(f){return this.clone()._add(f)},sub:function(f){return this.clone()._sub(f)},multByPoint:function(f){return this.clone()._multByPoint(f)},divByPoint:function(f){return this.clone()._divByPoint(f)},mult:function(f){return this.clone()._mult(f)},div:function(f){return this.clone()._div(f)},rotate:function(f){return this.clone()._rotate(f)},rotateAround:function(f,m){return this.clone()._rotateAround(f,m)},matMult:function(f){return this.clone()._matMult(f)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(f){return this.x===f.x&&this.y===f.y},dist:function(f){return Math.sqrt(this.distSqr(f))},distSqr:function(f){var m=f.x-this.x,C=f.y-this.y;return m*m+C*C},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith:function(f){return this.angleWithSep(f.x,f.y)},angleWithSep:function(f,m){return Math.atan2(this.x*m-this.y*f,this.x*f+this.y*m)},_matMult:function(f){var m=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=m,this},_add:function(f){return this.x+=f.x,this.y+=f.y,this},_sub:function(f){return this.x-=f.x,this.y-=f.y,this},_mult:function(f){return this.x*=f,this.y*=f,this},_div:function(f){return this.x/=f,this.y/=f,this},_multByPoint:function(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint:function(f){return this.x/=f.x,this.y/=f.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var f=this.y;return this.y=this.x,this.x=-f,this},_rotate:function(f){var m=Math.cos(f),C=Math.sin(f),N=C*this.x+m*this.y;return this.x=m*this.x-C*this.y,this.y=N,this},_rotateAround:function(f,m){var C=Math.cos(f),N=Math.sin(f),q=m.y+N*(this.x-m.x)+C*(this.y-m.y);return this.x=m.x+C*(this.x-m.x)-N*(this.y-m.y),this.y=q,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},ie.convert=function(f){return f instanceof ie?f:Array.isArray(f)?new ie(f[0],f[1]):f};var ae=typeof self!="undefined"?self:{},se=Math.pow(2,53)-1;function Ie(f,m,C,N){var q=new W(f,m,C,N);return function(oe){return q.solve(oe)}}var Be=Ie(.25,.1,.25,1);function Ce(f,m,C){return Math.min(C,Math.max(m,f))}function ct(f,m,C){var N=C-m,q=((f-m)%N+N)%N+m;return q===m?C:q}function nt(f){for(var m=[],C=arguments.length-1;C-- >0;)m[C]=arguments[C+1];for(var N=0,q=m;N>m/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,f)}()}function rt(f){return!!f&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(f)}function Gt(f,m){f.forEach(function(C){m[C]&&(m[C]=m[C].bind(m))})}function yt(f,m){return f.indexOf(m,f.length-m.length)!==-1}function Et(f,m,C){var N={};for(var q in f)N[q]=m.call(C||this,f[q],q,f);return N}function ht(f,m,C){var N={};for(var q in f)m.call(C||this,f[q],q,f)&&(N[q]=f[q]);return N}function Pe(f){return Array.isArray(f)?f.map(Pe):typeof f=="object"&&f?Et(f,Pe):f}var et={};function Oe(f){et[f]||(typeof console!="undefined"&&console.warn(f),et[f]=!0)}function Ue(f,m,C){return(C.y-f.y)*(m.x-f.x)>(m.y-f.y)*(C.x-f.x)}function je(f){for(var m=0,C=0,N=f.length,q=N-1,oe=void 0,_e=void 0;C@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(N,q,oe,_e){var $e=oe||_e;return m[q]=!$e||$e.toLowerCase(),""}),m["max-age"]){var C=parseInt(m["max-age"],10);isNaN(C)?delete m["max-age"]:m["max-age"]=C}return m}var Xe=null;function hn(f){if(Xe==null){var m=f.navigator?f.navigator.userAgent:null;Xe=!!f.safari||!(!m||!(/\b(iPad|iPhone|iPod)\b/.test(m)||m.match("Safari")&&!m.match("Chrome")))}return Xe}function Nt(f){try{var m=ae[f];return m.setItem("_mapbox_test_",1),m.removeItem("_mapbox_test_"),!0}catch(C){return!1}}var Te,vt,ze,Vt,Tt=ae.performance&&ae.performance.now?ae.performance.now.bind(ae.performance):Date.now.bind(Date),un=ae.requestAnimationFrame||ae.mozRequestAnimationFrame||ae.webkitRequestAnimationFrame||ae.msRequestAnimationFrame,on=ae.cancelAnimationFrame||ae.mozCancelAnimationFrame||ae.webkitCancelAnimationFrame||ae.msCancelAnimationFrame,Lr={now:Tt,frame:function(f){var m=un(f);return{cancel:function(){return on(m)}}},getImageData:function(f,m){m===void 0&&(m=0);var C=ae.document.createElement("canvas"),N=C.getContext("2d");if(!N)throw new Error("failed to create canvas 2d context");return C.width=f.width,C.height=f.height,N.drawImage(f,0,0,f.width,f.height),N.getImageData(-m,-m,f.width+2*m,f.height+2*m)},resolveURL:function(f){return Te||(Te=ae.document.createElement("a")),Te.href=f,Te.href},hardwareConcurrency:ae.navigator&&ae.navigator.hardwareConcurrency||4,get devicePixelRatio(){return ae.devicePixelRatio},get prefersReducedMotion(){return!!ae.matchMedia&&(vt==null&&(vt=ae.matchMedia("(prefers-reduced-motion: reduce)")),vt.matches)}},Yr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},fi={supported:!1,testSupport:function(f){!Xi&&Vt&&(Qi?hi(f):ze=f)}},Xi=!1,Qi=!1;function hi(f){var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);try{if(f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,Vt),f.isContextLost())return;fi.supported=!0}catch(C){}f.deleteTexture(m),Xi=!0}ae.document&&((Vt=ae.document.createElement("img")).onload=function(){ze&&hi(ze),ze=null,Qi=!0},Vt.onerror=function(){Xi=!0,ze=null},Vt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Go="01",Mo=function(f,m){this._transformRequestFn=f,this._customAccessToken=m,this._createSkuToken()};function pe(f){return f.indexOf("mapbox:")===0}Mo.prototype._createSkuToken=function(){var f=function(){for(var m="",C=0;C<10;C++)m+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Go,m].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=f.token,this._skuTokenExpiresAt=f.tokenExpiresAt},Mo.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Mo.prototype.transformRequest=function(f,m){return this._transformRequestFn&&this._transformRequestFn(f,m)||{url:f}},Mo.prototype.normalizeStyleURL=function(f,m){if(!pe(f))return f;var C=ai(f);return C.path="/styles/v1"+C.path,this._makeAPIURL(C,this._customAccessToken||m)},Mo.prototype.normalizeGlyphsURL=function(f,m){if(!pe(f))return f;var C=ai(f);return C.path="/fonts/v1"+C.path,this._makeAPIURL(C,this._customAccessToken||m)},Mo.prototype.normalizeSourceURL=function(f,m){if(!pe(f))return f;var C=ai(f);return C.path="/v4/"+C.authority+".json",C.params.push("secure"),this._makeAPIURL(C,this._customAccessToken||m)},Mo.prototype.normalizeSpriteURL=function(f,m,C,N){var q=ai(f);return pe(f)?(q.path="/styles/v1"+q.path+"/sprite"+m+C,this._makeAPIURL(q,this._customAccessToken||N)):(q.path+=""+m+C,Ms(q))},Mo.prototype.normalizeTileURL=function(f,m){if(this._isSkuTokenExpired()&&this._createSkuToken(),f&&!pe(f))return f;var C=ai(f);C.path=C.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Lr.devicePixelRatio>=2||m===512?"@2x":"")+(fi.supported?".webp":"$1")),C.path=C.path.replace(/^.+\/v4\//,"/"),C.path="/v4"+C.path;var N=this._customAccessToken||function(q){for(var oe=0,_e=q;oe<_e.length;oe+=1){var $e=_e[oe].match(/^access_token=(.*)$/);if($e)return $e[1]}return null}(C.params)||Yr.ACCESS_TOKEN;return Yr.REQUIRE_ACCESS_TOKEN&&N&&this._skuToken&&C.params.push("sku="+this._skuToken),this._makeAPIURL(C,N)},Mo.prototype.canonicalizeTileURL=function(f,m){var C=ai(f);if(!C.path.match(/(^\/v4\/)/)||!C.path.match(/\.[\w]+$/))return f;var N="mapbox://tiles/";N+=C.path.replace("/v4/","");var q=C.params;return m&&(q=q.filter(function(oe){return!oe.match(/^access_token=/)})),q.length&&(N+="?"+q.join("&")),N},Mo.prototype.canonicalizeTileset=function(f,m){for(var C=!!m&&pe(m),N=[],q=0,oe=f.tiles||[];q=0&&f.params.splice(q,1)}if(N.path!=="/"&&(f.path=""+N.path+f.path),!Yr.REQUIRE_ACCESS_TOKEN)return Ms(f);if(!(m=m||Yr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+C);if(m[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+C);return f.params=f.params.filter(function(oe){return oe.indexOf("access_token")===-1}),f.params.push("access_token="+m),Ms(f)};var Ii=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Vi(f){return Ii.test(f)}var ro=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ai(f){var m=f.match(ro);if(!m)throw new Error("Unable to parse URL object");return{protocol:m[1],authority:m[2],path:m[3]||"/",params:m[4]?m[4].split("&"):[]}}function Ms(f){var m=f.params.length?"?"+f.params.join("&"):"";return f.protocol+"://"+f.authority+f.path+m}function Ar(f){if(!f)return null;var m=f.split(".");if(!m||m.length!==3)return null;try{return JSON.parse(decodeURIComponent(ae.atob(m[1]).split("").map(function(C){return"%"+("00"+C.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(C){return null}}var Rt=function(f){this.type=f,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Rt.prototype.getStorageKey=function(f){var m,C=Ar(Yr.ACCESS_TOKEN);return m=C&&C.u?ae.btoa(encodeURIComponent(C.u).replace(/%([0-9A-F]{2})/g,function(N,q){return String.fromCharCode(+("0x"+q))})):Yr.ACCESS_TOKEN||"",f?"mapbox.eventData."+f+":"+m:"mapbox.eventData:"+m},Rt.prototype.fetchEventData=function(){var f=Nt("localStorage"),m=this.getStorageKey(),C=this.getStorageKey("uuid");if(f)try{var N=ae.localStorage.getItem(m);N&&(this.eventData=JSON.parse(N));var q=ae.localStorage.getItem(C);q&&(this.anonId=q)}catch(oe){Oe("Unable to read from LocalStorage")}},Rt.prototype.saveEventData=function(){var f=Nt("localStorage"),m=this.getStorageKey(),C=this.getStorageKey("uuid");if(f)try{ae.localStorage.setItem(C,this.anonId),Object.keys(this.eventData).length>=1&&ae.localStorage.setItem(m,JSON.stringify(this.eventData))}catch(N){Oe("Unable to write to LocalStorage")}},Rt.prototype.processRequests=function(f){},Rt.prototype.postEvent=function(f,m,C,N){var q=this;if(Yr.EVENTS_URL){var oe=ai(Yr.EVENTS_URL);oe.params.push("access_token="+(N||Yr.ACCESS_TOKEN||""));var _e={event:this.type,created:new Date(f).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Go,userId:this.anonId},$e=m?nt(_e,m):_e,Ft={url:Ms(oe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([$e])};this.pendingRequest=dn(Ft,function(an){q.pendingRequest=null,C(an),q.saveEventData(),q.processRequests(N)})}},Rt.prototype.queueRequest=function(f,m){this.queue.push(f),this.processRequests(m)};var jn,wr,oi=function(f){function m(){f.call(this,"map.load"),this.success={},this.skuToken=""}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.postMapLoadEvent=function(C,N,q,oe){this.skuToken=q;var _e=!(!oe&&!Yr.ACCESS_TOKEN),$e=Array.isArray(C)&&C.some(function(Ft){return pe(Ft)||Vi(Ft)});Yr.EVENTS_URL&&_e&&$e&&this.queueRequest({id:N,timestamp:Date.now()},oe)},m.prototype.processRequests=function(C){var N=this;if(!this.pendingRequest&&this.queue.length!==0){var q=this.queue.shift(),oe=q.id,_e=q.timestamp;oe&&this.success[oe]||(this.anonId||this.fetchEventData(),rt(this.anonId)||(this.anonId=Ye()),this.postEvent(_e,{skuToken:this.skuToken},function($e){$e||oe&&(N.success[oe]=!0)},C))}},m}(Rt),Ti=new(function(f){function m(C){f.call(this,"appUserTurnstile"),this._customAccessToken=C}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.postTurnstileEvent=function(C,N){Yr.EVENTS_URL&&Yr.ACCESS_TOKEN&&Array.isArray(C)&&C.some(function(q){return pe(q)||Vi(q)})&&this.queueRequest(Date.now(),N)},m.prototype.processRequests=function(C){var N=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var q=Ar(Yr.ACCESS_TOKEN),oe=q?q.u:Yr.ACCESS_TOKEN,_e=oe!==this.eventData.tokenU;rt(this.anonId)||(this.anonId=Ye(),_e=!0);var $e=this.queue.shift();if(this.eventData.lastSuccess){var Ft=new Date(this.eventData.lastSuccess),an=new Date($e),nr=($e-this.eventData.lastSuccess)/864e5;_e=_e||nr>=1||nr<-1||Ft.getDate()!==an.getDate()}else _e=!0;if(!_e)return this.processRequests();this.postEvent($e,{"enabled.telemetry":!1},function(Dr){Dr||(N.eventData.lastSuccess=$e,N.eventData.tokenU=oe)},C)}},m}(Rt)),Bi=Ti.postTurnstileEvent.bind(Ti),no=new oi,Vr=no.postMapLoadEvent.bind(no),Rn=500,Xt=50;function Sn(){ae.caches&&!jn&&(jn=ae.caches.open("mapbox-tiles"))}function Pn(f){var m=f.indexOf("?");return m<0?f:f.slice(0,m)}var hr,mt=1/0;function tt(){return hr==null&&(hr=ae.OffscreenCanvas&&new ae.OffscreenCanvas(1,1).getContext("2d")&&typeof ae.createImageBitmap=="function"),hr}var kt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(kt);var vn=function(f){function m(C,N,q){N===401&&Vi(q)&&(C+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),f.call(this,C),this.status=N,this.url=q,this.name=this.constructor.name,this.message=C}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},m}(Error),vr=ft()?function(){return self.worker&&self.worker.referrer}:function(){return(ae.location.protocol==="blob:"?ae.parent:ae).location.href},qr,Ni,li=function(f,m){if(!(/^file:/.test(C=f.url)||/^file:/.test(vr())&&!/^\w+:/.test(C))){if(ae.fetch&&ae.Request&&ae.AbortController&&ae.Request.prototype.hasOwnProperty("signal"))return function(N,q){var oe,_e=new ae.AbortController,$e=new ae.Request(N.url,{method:N.method||"GET",body:N.body,credentials:N.credentials,headers:N.headers,referrer:vr(),signal:_e.signal}),Ft=!1,an=!1,nr=(oe=$e.url).indexOf("sku=")>0&&Vi(oe);N.type==="json"&&$e.headers.set("Accept","application/json");var Dr=function(Di,Ro,Lo){if(!an){if(Di&&Di.message!=="SecurityError"&&Oe(Di),Ro&&Lo)return bi(Ro);var Wo=Date.now();ae.fetch($e).then(function(Bo){if(Bo.ok){var ho=nr?Bo.clone():null;return bi(Bo,ho,Wo)}return q(new vn(Bo.statusText,Bo.status,N.url))}).catch(function(Bo){Bo.code!==20&&q(new Error(Bo.message))})}},bi=function(Di,Ro,Lo){(N.type==="arrayBuffer"?Di.arrayBuffer():N.type==="json"?Di.json():Di.text()).then(function(Wo){an||(Ro&&Lo&&function(Bo,ho,Zs){if(Sn(),jn){var Da={status:ho.status,statusText:ho.statusText,headers:new ae.Headers};ho.headers.forEach(function(au,Ru){return Da.headers.set(Ru,au)});var hl=Ct(ho.headers.get("Cache-Control")||"");hl["no-store"]||(hl["max-age"]&&Da.headers.set("Expires",new Date(Zs+1e3*hl["max-age"]).toUTCString()),new Date(Da.headers.get("Expires")).getTime()-Zs<42e4||function(au,Ru){if(wr===void 0)try{new Response(new ReadableStream),wr=!0}catch(Su){wr=!1}wr?Ru(au.body):au.blob().then(Ru)}(ho,function(au){var Ru=new ae.Response(au,Da);Sn(),jn&&jn.then(function(Su){return Su.put(Pn(Bo.url),Ru)}).catch(function(Su){return Oe(Su.message)})}))}}($e,Ro,Lo),Ft=!0,q(null,Wo,Di.headers.get("Cache-Control"),Di.headers.get("Expires")))}).catch(function(Wo){an||q(new Error(Wo.message))})};return nr?function(Di,Ro){if(Sn(),!jn)return Ro(null);var Lo=Pn(Di.url);jn.then(function(Wo){Wo.match(Lo).then(function(Bo){var ho=function(Zs){if(!Zs)return!1;var Da=new Date(Zs.headers.get("Expires")||0),hl=Ct(Zs.headers.get("Cache-Control")||"");return Da>Date.now()&&!hl["no-cache"]}(Bo);Wo.delete(Lo),ho&&Wo.put(Lo,Bo.clone()),Ro(null,Bo,ho)}).catch(Ro)}).catch(Ro)}($e,Dr):Dr(null,null),{cancel:function(){an=!0,Ft||_e.abort()}}}(f,m);if(ft()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",f,m,void 0,!0)}var C;return function(N,q){var oe=new ae.XMLHttpRequest;for(var _e in oe.open(N.method||"GET",N.url,!0),N.type==="arrayBuffer"&&(oe.responseType="arraybuffer"),N.headers)oe.setRequestHeader(_e,N.headers[_e]);return N.type==="json"&&(oe.responseType="text",oe.setRequestHeader("Accept","application/json")),oe.withCredentials=N.credentials==="include",oe.onerror=function(){q(new Error(oe.statusText))},oe.onload=function(){if((oe.status>=200&&oe.status<300||oe.status===0)&&oe.response!==null){var $e=oe.response;if(N.type==="json")try{$e=JSON.parse(oe.response)}catch(Ft){return q(Ft)}q(null,$e,oe.getResponseHeader("Cache-Control"),oe.getResponseHeader("Expires"))}else q(new vn(oe.statusText,oe.status,N.url))},oe.send(N.body),{cancel:function(){return oe.abort()}}}(f,m)},Un=function(f,m){return li(nt(f,{type:"arrayBuffer"}),m)},dn=function(f,m){return li(nt(f,{method:"POST"}),m)},xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";qr=[],Ni=0;var it=function(f,m){if(fi.supported&&(f.headers||(f.headers={}),f.headers.accept="image/webp,*/*"),Ni>=Yr.MAX_PARALLEL_IMAGE_REQUESTS){var C={requestParameters:f,callback:m,cancelled:!1,cancel:function(){this.cancelled=!0}};return qr.push(C),C}Ni++;var N=!1,q=function(){if(!N)for(N=!0,Ni--;qr.length&&Ni0||this._oneTimeListeners&&this._oneTimeListeners[f]&&this._oneTimeListeners[f].length>0||this._eventedParent&&this._eventedParent.listens(f)},Jn.prototype.setEventedParent=function(f,m){return this._eventedParent=f,this._eventedParentData=m,this};var nn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},er=function(f,m,C,N){this.message=(f?f+": ":"")+C,N&&(this.identifier=N),m!=null&&m.__line__&&(this.line=m.__line__)};function Fr(f){var m=f.value;return m?[new er(f.key,m,"constants have been deprecated as of v8")]:[]}function jr(f){for(var m=[],C=arguments.length-1;C-- >0;)m[C]=arguments[C+1];for(var N=0,q=m;N":f.itemType.kind==="value"?"array":"array<"+m+">"}return f.kind}var qo=[rr,Pr,Er,ui,Gr,Kr,zr,Qo(Ei),Xr];function Br(f,m){if(m.kind==="error")return null;if(f.kind==="array"){if(m.kind==="array"&&(m.N===0&&m.itemType.kind==="value"||!Br(f.itemType,m.itemType))&&(typeof f.N!="number"||f.N===m.N))return null}else{if(f.kind===m.kind)return null;if(f.kind==="value"){for(var C=0,N=qo;C255?255:$e}function q($e){return N($e[$e.length-1]==="%"?parseFloat($e)/100*255:parseInt($e))}function oe($e){return(Ft=$e[$e.length-1]==="%"?parseFloat($e)/100:parseFloat($e))<0?0:Ft>1?1:Ft;var Ft}function _e($e,Ft,an){return an<0?an+=1:an>1&&(an-=1),6*an<1?$e+(Ft-$e)*an*6:2*an<1?Ft:3*an<2?$e+(Ft-$e)*(2/3-an)*6:$e}try{m.parseCSSColor=function($e){var Ft,an=$e.replace(/ /g,"").toLowerCase();if(an in C)return C[an].slice();if(an[0]==="#")return an.length===4?(Ft=parseInt(an.substr(1),16))>=0&&Ft<=4095?[(3840&Ft)>>4|(3840&Ft)>>8,240&Ft|(240&Ft)>>4,15&Ft|(15&Ft)<<4,1]:null:an.length===7&&(Ft=parseInt(an.substr(1),16))>=0&&Ft<=16777215?[(16711680&Ft)>>16,(65280&Ft)>>8,255&Ft,1]:null;var nr=an.indexOf("("),Dr=an.indexOf(")");if(nr!==-1&&Dr+1===an.length){var bi=an.substr(0,nr),Di=an.substr(nr+1,Dr-(nr+1)).split(","),Ro=1;switch(bi){case"rgba":if(Di.length!==4)return null;Ro=oe(Di.pop());case"rgb":return Di.length!==3?null:[q(Di[0]),q(Di[1]),q(Di[2]),Ro];case"hsla":if(Di.length!==4)return null;Ro=oe(Di.pop());case"hsl":if(Di.length!==3)return null;var Lo=(parseFloat(Di[0])%360+360)%360/360,Wo=oe(Di[1]),Bo=oe(Di[2]),ho=Bo<=.5?Bo*(Wo+1):Bo+Wo-Bo*Wo,Zs=2*Bo-ho;return[N(255*_e(Zs,ho,Lo+1/3)),N(255*_e(Zs,ho,Lo)),N(255*_e(Zs,ho,Lo-1/3)),Ro];default:return null}}return null}}catch($e){}}).parseCSSColor,Ln=function(f,m,C,N){N===void 0&&(N=1),this.r=f,this.g=m,this.b=C,this.a=N};Ln.parse=function(f){if(f){if(f instanceof Ln)return f;if(typeof f=="string"){var m=qi(f);if(m)return new Ln(m[0]/255*m[3],m[1]/255*m[3],m[2]/255*m[3],m[3])}}},Ln.prototype.toString=function(){var f=this.toArray(),m=f[1],C=f[2],N=f[3];return"rgba("+Math.round(f[0])+","+Math.round(m)+","+Math.round(C)+","+N+")"},Ln.prototype.toArray=function(){var f=this.a;return f===0?[0,0,0,0]:[255*this.r/f,255*this.g/f,255*this.b/f,f]},Ln.black=new Ln(0,0,0,1),Ln.white=new Ln(1,1,1,1),Ln.transparent=new Ln(0,0,0,0),Ln.red=new Ln(1,0,0,1);var zn=function(f,m,C){this.sensitivity=f?m?"variant":"case":m?"accent":"base",this.locale=C,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};zn.prototype.compare=function(f,m){return this.collator.compare(f,m)},zn.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Wi=function(f,m,C,N,q){this.text=f,this.image=m,this.scale=C,this.fontStack=N,this.textColor=q},Yi=function(f){this.sections=f};Yi.fromString=function(f){return new Yi([new Wi(f,null,null,null,null)])},Yi.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(f){return f.text.length!==0||f.image&&f.image.name.length!==0})},Yi.factory=function(f){return f instanceof Yi?f:Yi.fromString(f)},Yi.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(f){return f.text}).join("")},Yi.prototype.serialize=function(){for(var f=["format"],m=0,C=this.sections;m=0&&f<=255&&typeof m=="number"&&m>=0&&m<=255&&typeof C=="number"&&C>=0&&C<=255?N===void 0||typeof N=="number"&&N>=0&&N<=1?null:"Invalid rgba value ["+[f,m,C,N].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof N=="number"?[f,m,C,N]:[f,m,C]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function _i(f){if(f===null||typeof f=="string"||typeof f=="boolean"||typeof f=="number"||f instanceof Ln||f instanceof zn||f instanceof Yi||f instanceof so)return!0;if(Array.isArray(f)){for(var m=0,C=f;m2){var $e=f[1];if(typeof $e!="string"||!($e in Ri)||$e==="object")return m.error('The item type argument of "array" must be one of string, number, boolean',1);oe=Ri[$e],N++}else oe=Ei;if(f.length>3){if(f[2]!==null&&(typeof f[2]!="number"||f[2]<0||f[2]!==Math.floor(f[2])))return m.error('The length argument to "array" must be a positive integer literal',2);_e=f[2],N++}C=Qo(oe,_e)}else C=Ri[q];for(var Ft=[];N1)&&m.push(N)}}return m.concat(this.args.map(function(q){return q.serialize()}))};var yo=function(f){this.type=Kr,this.sections=f};yo.parse=function(f,m){if(f.length<2)return m.error("Expected at least one argument.");var C=f[1];if(!Array.isArray(C)&&typeof C=="object")return m.error("First argument must be an image or text section.");for(var N=[],q=!1,oe=1;oe<=f.length-1;++oe){var _e=f[oe];if(q&&typeof _e=="object"&&!Array.isArray(_e)){q=!1;var $e=null;if(_e["font-scale"]&&!($e=m.parse(_e["font-scale"],1,Pr)))return null;var Ft=null;if(_e["text-font"]&&!(Ft=m.parse(_e["text-font"],1,Qo(Er))))return null;var an=null;if(_e["text-color"]&&!(an=m.parse(_e["text-color"],1,Gr)))return null;var nr=N[N.length-1];nr.scale=$e,nr.font=Ft,nr.textColor=an}else{var Dr=m.parse(f[oe],1,Ei);if(!Dr)return null;var bi=Dr.type.kind;if(bi!=="string"&&bi!=="value"&&bi!=="null"&&bi!=="resolvedImage")return m.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");q=!0,N.push({content:Dr,scale:null,font:null,textColor:null})}}return new yo(N)},yo.prototype.evaluate=function(f){return new Yi(this.sections.map(function(m){var C=m.content.evaluate(f);return hs(C)===Xr?new Wi("",C,null,null,null):new Wi(Ts(C),null,m.scale?m.scale.evaluate(f):null,m.font?m.font.evaluate(f).join(","):null,m.textColor?m.textColor.evaluate(f):null)}))},yo.prototype.eachChild=function(f){for(var m=0,C=this.sections;m-1),C},ao.prototype.eachChild=function(f){f(this.input)},ao.prototype.outputDefined=function(){return!1},ao.prototype.serialize=function(){return["image",this.input.serialize()]};var Bs={"to-boolean":ui,"to-color":Gr,"to-number":Pr,"to-string":Er},fa=function(f,m){this.type=f,this.args=m};fa.parse=function(f,m){if(f.length<2)return m.error("Expected at least one argument.");var C=f[0];if((C==="to-boolean"||C==="to-string")&&f.length!==2)return m.error("Expected one argument.");for(var N=Bs[C],q=[],oe=1;oe4?"Invalid rbga value "+JSON.stringify(m)+": expected an array containing either three or four numeric values.":ko(m[0],m[1],m[2],m[3])))return new Ln(m[0]/255,m[1]/255,m[2]/255,m[3])}throw new Ai(C||"Could not parse color from value '"+(typeof m=="string"?m:String(JSON.stringify(m)))+"'")}if(this.type.kind==="number"){for(var _e=null,$e=0,Ft=this.args;$e=m[2]||f[1]<=m[1]||f[3]>=m[3])}function dt(f,m){var C=(180+f[0])/360,N=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f[1]*Math.PI/360)))/360,q=Math.pow(2,m.z);return[Math.round(C*q*8192),Math.round(N*q*8192)]}function Mt(f,m,C){return m[1]>f[1]!=C[1]>f[1]&&f[0]<(C[0]-m[0])*(f[1]-m[1])/(C[1]-m[1])+m[0]}function Zt(f,m){for(var C,N,q,oe,_e,$e,Ft,an=!1,nr=0,Dr=m.length;nr0&&$e<0||_e<0&&$e>0}function Ur(f,m,C){for(var N=0,q=C;NC[2]){var q=.5*N,oe=f[0]-C[0]>q?-N:C[0]-f[0]>q?N:0;oe===0&&(oe=f[0]-C[2]>q?-N:C[2]-f[0]>q?N:0),f[0]+=oe}tl(m,f)}function $a(f,m,C,N){for(var q=8192*Math.pow(2,N.z),oe=[8192*N.x,8192*N.y],_e=[],$e=0,Ft=f;$e=0)return!1;var C=!0;return f.eachChild(function(N){C&&!xa(N,m)&&(C=!1)}),C}ka.parse=function(f,m){if(f.length!==2)return m.error("'within' expression requires exactly one argument, but found "+(f.length-1)+" instead.");if(_i(f[1])){var C=f[1];if(C.type==="FeatureCollection")for(var N=0;Nm))throw new Ai("Input is not a number.");oe=_e-1}return 0}_a.prototype.parse=function(f,m,C,N,q){return q===void 0&&(q={}),m?this.concat(m,C,N)._parse(f,q):this._parse(f,q)},_a.prototype._parse=function(f,m){function C(an,nr,Dr){return Dr==="assert"?new To(nr,[an]):Dr==="coerce"?new fa(nr,[an]):an}if(f!==null&&typeof f!="string"&&typeof f!="boolean"&&typeof f!="number"||(f=["literal",f]),Array.isArray(f)){if(f.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var N=f[0];if(typeof N!="string")return this.error("Expression name must be a string, but found "+typeof N+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var q=this.registry[N];if(q){var oe=q.parse(f,this);if(!oe)return null;if(this.expectedType){var _e=this.expectedType,$e=oe.type;if(_e.kind!=="string"&&_e.kind!=="number"&&_e.kind!=="boolean"&&_e.kind!=="object"&&_e.kind!=="array"||$e.kind!=="value")if(_e.kind!=="color"&&_e.kind!=="formatted"&&_e.kind!=="resolvedImage"||$e.kind!=="value"&&$e.kind!=="string"){if(this.checkSubtype(_e,$e))return null}else oe=C(oe,_e,m.typeAnnotation||"coerce");else oe=C(oe,_e,m.typeAnnotation||"assert")}if(!(oe instanceof Qr)&&oe.type.kind!=="resolvedImage"&&function an(nr){if(nr instanceof Ea)return an(nr.boundExpression);if(nr instanceof Ds&&nr.name==="error"||nr instanceof el||nr instanceof ka)return!1;var Dr=nr instanceof fa||nr instanceof To,bi=!0;return nr.eachChild(function(Di){bi=Dr?bi&&an(Di):bi&&Di instanceof Qr}),!!bi&&Xs(nr)&&xa(nr,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(oe)){var Ft=new Rs;try{oe=new Qr(oe.type,oe.evaluate(Ft))}catch(an){return this.error(an.message),null}}return oe}return this.error('Unknown expression "'+N+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(f===void 0?"'undefined' value invalid. Use null instead.":typeof f=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof f+" instead.")},_a.prototype.concat=function(f,m,C){var N=typeof f=="number"?this.path.concat(f):this.path,q=C?this.scope.concat(C):this.scope;return new _a(this.registry,N,m||null,q,this.errors)},_a.prototype.error=function(f){for(var m=[],C=arguments.length-1;C-- >0;)m[C]=arguments[C+1];var N=""+this.key+m.map(function(q){return"["+q+"]"}).join("");this.errors.push(new en(N,f))},_a.prototype.checkSubtype=function(f,m){var C=Br(f,m);return C&&this.error(C),C};var Al=function(f,m,C){this.type=f,this.input=m,this.labels=[],this.outputs=[];for(var N=0,q=C;N=_e)return m.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Ft);var nr=m.parse($e,an,q);if(!nr)return null;q=q||nr.type,N.push([_e,nr])}return new Al(q,C,N)},Al.prototype.evaluate=function(f){var m=this.labels,C=this.outputs;if(m.length===1)return C[0].evaluate(f);var N=this.input.evaluate(f);if(N<=m[0])return C[0].evaluate(f);var q=m.length;return N>=m[q-1]?C[q-1].evaluate(f):C[Ba(m,N)].evaluate(f)},Al.prototype.eachChild=function(f){f(this.input);for(var m=0,C=this.outputs;m0&&f.push(this.labels[m]),f.push(this.outputs[m].serialize());return f};var Za=Object.freeze({__proto__:null,number:ks,color:function(f,m,C){return new Ln(ks(f.r,m.r,C),ks(f.g,m.g,C),ks(f.b,m.b,C),ks(f.a,m.a,C))},array:function(f,m,C){return f.map(function(N,q){return ks(N,m[q],C)})}}),lu=6/29*3*(6/29),mu=Math.PI/180,nu=180/Math.PI;function Fl(f){return f>.008856451679035631?Math.pow(f,1/3):f/lu+4/29}function va(f){return f>6/29?f*f*f:lu*(f-4/29)}function Ua(f){return 255*(f<=.0031308?12.92*f:1.055*Math.pow(f,1/2.4)-.055)}function Yl(f){return(f/=255)<=.04045?f/12.92:Math.pow((f+.055)/1.055,2.4)}function Cc(f){var m=Yl(f.r),C=Yl(f.g),N=Yl(f.b),q=Fl((.4124564*m+.3575761*C+.1804375*N)/.95047),oe=Fl((.2126729*m+.7151522*C+.072175*N)/1);return{l:116*oe-16,a:500*(q-oe),b:200*(oe-Fl((.0193339*m+.119192*C+.9503041*N)/1.08883)),alpha:f.a}}function ch(f){var m=(f.l+16)/116,C=isNaN(f.a)?m:m+f.a/500,N=isNaN(f.b)?m:m-f.b/200;return m=1*va(m),C=.95047*va(C),N=1.08883*va(N),new Ln(Ua(3.2404542*C-1.5371385*m-.4985314*N),Ua(-.969266*C+1.8760108*m+.041556*N),Ua(.0556434*C-.2040259*m+1.0572252*N),f.alpha)}function mh(f,m,C){var N=m-f;return f+C*(N>180||N<-180?N-360*Math.round(N/360):N)}var _h={forward:Cc,reverse:ch,interpolate:function(f,m,C){return{l:ks(f.l,m.l,C),a:ks(f.a,m.a,C),b:ks(f.b,m.b,C),alpha:ks(f.alpha,m.alpha,C)}}},wh={forward:function(f){var m=Cc(f),C=m.l,N=m.a,q=m.b,oe=Math.atan2(q,N)*nu;return{h:oe<0?oe+360:oe,c:Math.sqrt(N*N+q*q),l:C,alpha:f.a}},reverse:function(f){var m=f.h*mu,C=f.c;return ch({l:f.l,a:Math.cos(m)*C,b:Math.sin(m)*C,alpha:f.alpha})},interpolate:function(f,m,C){return{h:mh(f.h,m.h,C),c:ks(f.c,m.c,C),l:ks(f.l,m.l,C),alpha:ks(f.alpha,m.alpha,C)}}},vu=Object.freeze({__proto__:null,lab:_h,hcl:wh}),ru=function(f,m,C,N,q){this.type=f,this.operator=m,this.interpolation=C,this.input=N,this.labels=[],this.outputs=[];for(var oe=0,_e=q;oe<_e.length;oe+=1){var $e=_e[oe],Ft=$e[1];this.labels.push($e[0]),this.outputs.push(Ft)}};function Ql(f,m,C,N){var q=N-C,oe=f-C;return q===0?0:m===1?oe/q:(Math.pow(m,oe)-1)/(Math.pow(m,q)-1)}ru.interpolationFactor=function(f,m,C,N){var q=0;if(f.name==="exponential")q=Ql(m,f.base,C,N);else if(f.name==="linear")q=Ql(m,1,C,N);else if(f.name==="cubic-bezier"){var oe=f.controlPoints;q=new W(oe[0],oe[1],oe[2],oe[3]).solve(Ql(m,1,C,N))}return q},ru.parse=function(f,m){var C=f[0],N=f[1],q=f[2],oe=f.slice(3);if(!Array.isArray(N)||N.length===0)return m.error("Expected an interpolation type expression.",1);if(N[0]==="linear")N={name:"linear"};else if(N[0]==="exponential"){var _e=N[1];if(typeof _e!="number")return m.error("Exponential interpolation requires a numeric base.",1,1);N={name:"exponential",base:_e}}else{if(N[0]!=="cubic-bezier")return m.error("Unknown interpolation type "+String(N[0]),1,0);var $e=N.slice(1);if($e.length!==4||$e.some(function(Wo){return typeof Wo!="number"||Wo<0||Wo>1}))return m.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);N={name:"cubic-bezier",controlPoints:$e}}if(f.length-1<4)return m.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if((f.length-1)%2!=0)return m.error("Expected an even number of arguments.");if(!(q=m.parse(q,2,Pr)))return null;var Ft=[],an=null;C==="interpolate-hcl"||C==="interpolate-lab"?an=Gr:m.expectedType&&m.expectedType.kind!=="value"&&(an=m.expectedType);for(var nr=0;nr=Dr)return m.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Di);var Lo=m.parse(bi,Ro,an);if(!Lo)return null;an=an||Lo.type,Ft.push([Dr,Lo])}return an.kind==="number"||an.kind==="color"||an.kind==="array"&&an.itemType.kind==="number"&&typeof an.N=="number"?new ru(an,C,N,q,Ft):m.error("Type "+pr(an)+" is not interpolatable.")},ru.prototype.evaluate=function(f){var m=this.labels,C=this.outputs;if(m.length===1)return C[0].evaluate(f);var N=this.input.evaluate(f);if(N<=m[0])return C[0].evaluate(f);var q=m.length;if(N>=m[q-1])return C[q-1].evaluate(f);var oe=Ba(m,N),_e=ru.interpolationFactor(this.interpolation,N,m[oe],m[oe+1]),$e=C[oe].evaluate(f),Ft=C[oe+1].evaluate(f);return this.operator==="interpolate"?Za[this.type.kind.toLowerCase()]($e,Ft,_e):this.operator==="interpolate-hcl"?wh.reverse(wh.interpolate(wh.forward($e),wh.forward(Ft),_e)):_h.reverse(_h.interpolate(_h.forward($e),_h.forward(Ft),_e))},ru.prototype.eachChild=function(f){f(this.input);for(var m=0,C=this.outputs;m=C.length)throw new Ai("Array index out of bounds: "+m+" > "+(C.length-1)+".");if(m!==Math.floor(m))throw new Ai("Array index must be an integer, but found "+m+" instead.");return C[m]},Gn.prototype.eachChild=function(f){f(this.index),f(this.input)},Gn.prototype.outputDefined=function(){return!1},Gn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Sr=function(f,m){this.type=ui,this.needle=f,this.haystack=m};Sr.parse=function(f,m){if(f.length!==3)return m.error("Expected 2 arguments, but found "+(f.length-1)+" instead.");var C=m.parse(f[1],1,Ei),N=m.parse(f[2],2,Ei);return C&&N?sr(C.type,[ui,Er,Pr,rr,Ei])?new Sr(C,N):m.error("Expected first argument to be of type boolean, string, number or null, but found "+pr(C.type)+" instead"):null},Sr.prototype.evaluate=function(f){var m=this.needle.evaluate(f),C=this.haystack.evaluate(f);if(!C)return!1;if(!ii(m,["boolean","string","number","null"]))throw new Ai("Expected first argument to be of type boolean, string, number or null, but found "+pr(hs(m))+" instead.");if(!ii(C,["string","array"]))throw new Ai("Expected second argument to be of type array or string, but found "+pr(hs(C))+" instead.");return C.indexOf(m)>=0},Sr.prototype.eachChild=function(f){f(this.needle),f(this.haystack)},Sr.prototype.outputDefined=function(){return!0},Sr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Rr=function(f,m,C){this.type=Pr,this.needle=f,this.haystack=m,this.fromIndex=C};Rr.parse=function(f,m){if(f.length<=2||f.length>=5)return m.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var C=m.parse(f[1],1,Ei),N=m.parse(f[2],2,Ei);if(!C||!N)return null;if(!sr(C.type,[ui,Er,Pr,rr,Ei]))return m.error("Expected first argument to be of type boolean, string, number or null, but found "+pr(C.type)+" instead");if(f.length===4){var q=m.parse(f[3],3,Pr);return q?new Rr(C,N,q):null}return new Rr(C,N)},Rr.prototype.evaluate=function(f){var m=this.needle.evaluate(f),C=this.haystack.evaluate(f);if(!ii(m,["boolean","string","number","null"]))throw new Ai("Expected first argument to be of type boolean, string, number or null, but found "+pr(hs(m))+" instead.");if(!ii(C,["string","array"]))throw new Ai("Expected second argument to be of type array or string, but found "+pr(hs(C))+" instead.");if(this.fromIndex){var N=this.fromIndex.evaluate(f);return C.indexOf(m,N)}return C.indexOf(m)},Rr.prototype.eachChild=function(f){f(this.needle),f(this.haystack),this.fromIndex&&f(this.fromIndex)},Rr.prototype.outputDefined=function(){return!1},Rr.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var f=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),f]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var co=function(f,m,C,N,q,oe){this.inputType=f,this.type=m,this.input=C,this.cases=N,this.outputs=q,this.otherwise=oe};co.parse=function(f,m){if(f.length<5)return m.error("Expected at least 4 arguments, but found only "+(f.length-1)+".");if(f.length%2!=1)return m.error("Expected an even number of arguments.");var C,N;m.expectedType&&m.expectedType.kind!=="value"&&(N=m.expectedType);for(var q={},oe=[],_e=2;_eNumber.MAX_SAFE_INTEGER)return an.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof bi=="number"&&Math.floor(bi)!==bi)return an.error("Numeric branch labels must be integer values.");if(C){if(an.checkSubtype(C,hs(bi)))return null}else C=hs(bi);if(q[String(bi)]!==void 0)return an.error("Branch labels must be unique.");q[String(bi)]=oe.length}var Di=m.parse(Ft,_e,N);if(!Di)return null;N=N||Di.type,oe.push(Di)}var Ro=m.parse(f[1],1,Ei);if(!Ro)return null;var Lo=m.parse(f[f.length-1],f.length-1,N);return Lo?Ro.type.kind!=="value"&&m.concat(1).checkSubtype(C,Ro.type)?null:new co(C,N,Ro,q,oe,Lo):null},co.prototype.evaluate=function(f){var m=this.input.evaluate(f);return(hs(m)===this.inputType&&this.outputs[this.cases[m]]||this.otherwise).evaluate(f)},co.prototype.eachChild=function(f){f(this.input),this.outputs.forEach(f),f(this.otherwise)},co.prototype.outputDefined=function(){return this.outputs.every(function(f){return f.outputDefined()})&&this.otherwise.outputDefined()},co.prototype.serialize=function(){for(var f=this,m=["match",this.input.serialize()],C=[],N={},q=0,oe=Object.keys(this.cases).sort();q=5)return m.error("Expected 3 or 4 arguments, but found "+(f.length-1)+" instead.");var C=m.parse(f[1],1,Ei),N=m.parse(f[2],2,Pr);if(!C||!N)return null;if(!sr(C.type,[Qo(Ei),Er,Ei]))return m.error("Expected first argument to be of type array or string, but found "+pr(C.type)+" instead");if(f.length===4){var q=m.parse(f[3],3,Pr);return q?new fs(C.type,C,N,q):null}return new fs(C.type,C,N)},fs.prototype.evaluate=function(f){var m=this.input.evaluate(f),C=this.beginIndex.evaluate(f);if(!ii(m,["string","array"]))throw new Ai("Expected first argument to be of type array or string, but found "+pr(hs(m))+" instead.");if(this.endIndex){var N=this.endIndex.evaluate(f);return m.slice(C,N)}return m.slice(C)},fs.prototype.eachChild=function(f){f(this.input),f(this.beginIndex),this.endIndex&&f(this.endIndex)},fs.prototype.outputDefined=function(){return!1},fs.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var f=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),f]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Ss=da("==",function(f,m,C){return m===C},as),pl=da("!=",function(f,m,C){return m!==C},function(f,m,C,N){return!as(0,m,C,N)}),Vs=da("<",function(f,m,C){return m",function(f,m,C){return m>C},function(f,m,C,N){return N.compare(m,C)>0}),sl=da("<=",function(f,m,C){return m<=C},function(f,m,C,N){return N.compare(m,C)<=0}),eu=da(">=",function(f,m,C){return m>=C},function(f,m,C,N){return N.compare(m,C)>=0}),kl=function(f,m,C,N,q){this.type=Er,this.number=f,this.locale=m,this.currency=C,this.minFractionDigits=N,this.maxFractionDigits=q};kl.parse=function(f,m){if(f.length!==3)return m.error("Expected two arguments.");var C=m.parse(f[1],1,Pr);if(!C)return null;var N=f[2];if(typeof N!="object"||Array.isArray(N))return m.error("NumberFormat options argument must be an object.");var q=null;if(N.locale&&!(q=m.parse(N.locale,1,Er)))return null;var oe=null;if(N.currency&&!(oe=m.parse(N.currency,1,Er)))return null;var _e=null;if(N["min-fraction-digits"]&&!(_e=m.parse(N["min-fraction-digits"],1,Pr)))return null;var $e=null;return N["max-fraction-digits"]&&!($e=m.parse(N["max-fraction-digits"],1,Pr))?null:new kl(C,q,oe,_e,$e)},kl.prototype.evaluate=function(f){return new Intl.NumberFormat(this.locale?this.locale.evaluate(f):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(f):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(f):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(f):void 0}).format(this.number.evaluate(f))},kl.prototype.eachChild=function(f){f(this.number),this.locale&&f(this.locale),this.currency&&f(this.currency),this.minFractionDigits&&f(this.minFractionDigits),this.maxFractionDigits&&f(this.maxFractionDigits)},kl.prototype.outputDefined=function(){return!1},kl.prototype.serialize=function(){var f={};return this.locale&&(f.locale=this.locale.serialize()),this.currency&&(f.currency=this.currency.serialize()),this.minFractionDigits&&(f["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(f["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),f]};var Wl=function(f){this.type=Pr,this.input=f};Wl.parse=function(f,m){if(f.length!==2)return m.error("Expected 1 argument, but found "+(f.length-1)+" instead.");var C=m.parse(f[1],1);return C?C.type.kind!=="array"&&C.type.kind!=="string"&&C.type.kind!=="value"?m.error("Expected argument of type string or array, but found "+pr(C.type)+" instead."):new Wl(C):null},Wl.prototype.evaluate=function(f){var m=this.input.evaluate(f);if(typeof m=="string"||Array.isArray(m))return m.length;throw new Ai("Expected value to be of type string or array, but found "+pr(hs(m))+" instead.")},Wl.prototype.eachChild=function(f){f(this.input)},Wl.prototype.outputDefined=function(){return!1},Wl.prototype.serialize=function(){var f=["length"];return this.eachChild(function(m){f.push(m.serialize())}),f};var Dl={"==":Ss,"!=":pl,">":ol,"<":Vs,">=":eu,"<=":sl,array:To,at:Gn,boolean:To,case:ns,coalesce:Hi,collator:el,format:yo,image:ao,in:Sr,"index-of":Rr,interpolate:ru,"interpolate-hcl":ru,"interpolate-lab":ru,length:Wl,let:ji,literal:Qr,match:co,number:To,"number-format":kl,object:To,slice:fs,step:Al,string:To,"to-boolean":fa,"to-color":fa,"to-number":fa,"to-string":fa,var:Ea,within:ka};function ml(f,m){var C=m[0],N=m[1],q=m[2],oe=m[3];C=C.evaluate(f),N=N.evaluate(f),q=q.evaluate(f);var _e=oe?oe.evaluate(f):1,$e=ko(C,N,q,_e);if($e)throw new Ai($e);return new Ln(C/255*_e,N/255*_e,q/255*_e,_e)}function uu(f,m){return f in m}function pn(f,m){var C=m[f];return C===void 0?null:C}function pu(f){return{type:f}}function tc(f){return{result:"success",value:f}}function dc(f){return{result:"error",value:f}}function Mc(f){return f["property-type"]==="data-driven"||f["property-type"]==="cross-faded-data-driven"}function Fc(f){return!!f.expression&&f.expression.parameters.indexOf("zoom")>-1}function cd(f){return!!f.expression&&f.expression.interpolated}function Vd(f){return f instanceof Number?"number":f instanceof String?"string":f instanceof Boolean?"boolean":Array.isArray(f)?"array":f===null?"null":typeof f}function yd(f){return typeof f=="object"&&f!==null&&!Array.isArray(f)}function Sh(f){return f}function xh(f,m,C){return f!==void 0?f:m!==void 0?m:C!==void 0?C:void 0}function Ud(f,m,C,N,q){return xh(typeof C===q?N[C]:void 0,f.default,m.default)}function Hf(f,m,C){if(Vd(C)!=="number")return xh(f.default,m.default);var N=f.stops.length;if(N===1||C<=f.stops[0][0])return f.stops[0][1];if(C>=f.stops[N-1][0])return f.stops[N-1][1];var q=Ba(f.stops.map(function(oe){return oe[0]}),C);return f.stops[q][1]}function ef(f,m,C){var N=f.base!==void 0?f.base:1;if(Vd(C)!=="number")return xh(f.default,m.default);var q=f.stops.length;if(q===1||C<=f.stops[0][0])return f.stops[0][1];if(C>=f.stops[q-1][0])return f.stops[q-1][1];var oe=Ba(f.stops.map(function(Dr){return Dr[0]}),C),_e=function(Dr,bi,Di,Ro){var Lo=Ro-Di,Wo=Dr-Di;return Lo===0?0:bi===1?Wo/Lo:(Math.pow(bi,Wo)-1)/(Math.pow(bi,Lo)-1)}(C,N,f.stops[oe][0],f.stops[oe+1][0]),$e=f.stops[oe][1],Ft=f.stops[oe+1][1],an=Za[m.type]||Sh;if(f.colorSpace&&f.colorSpace!=="rgb"){var nr=vu[f.colorSpace];an=function(Dr,bi){return nr.reverse(nr.interpolate(nr.forward(Dr),nr.forward(bi),_e))}}return typeof $e.evaluate=="function"?{evaluate:function(){for(var Dr=[],bi=arguments.length;bi--;)Dr[bi]=arguments[bi];var Di=$e.evaluate.apply(void 0,Dr),Ro=Ft.evaluate.apply(void 0,Dr);if(Di!==void 0&&Ro!==void 0)return an(Di,Ro,_e)}}:an($e,Ft,_e)}function Pd(f,m,C){return m.type==="color"?C=Ln.parse(C):m.type==="formatted"?C=Yi.fromString(C.toString()):m.type==="resolvedImage"?C=so.fromString(C.toString()):Vd(C)===m.type||m.type==="enum"&&m.values[C]||(C=void 0),xh(C,f.default,m.default)}Ds.register(Dl,{error:[{kind:"error"},[Er],function(f,m){throw new Ai(m[0].evaluate(f))}],typeof:[Er,[Ei],function(f,m){return pr(hs(m[0].evaluate(f)))}],"to-rgba":[Qo(Pr,4),[Gr],function(f,m){return m[0].evaluate(f).toArray()}],rgb:[Gr,[Pr,Pr,Pr],ml],rgba:[Gr,[Pr,Pr,Pr,Pr],ml],has:{type:ui,overloads:[[[Er],function(f,m){return uu(m[0].evaluate(f),f.properties())}],[[Er,zr],function(f,m){var C=m[1];return uu(m[0].evaluate(f),C.evaluate(f))}]]},get:{type:Ei,overloads:[[[Er],function(f,m){return pn(m[0].evaluate(f),f.properties())}],[[Er,zr],function(f,m){var C=m[1];return pn(m[0].evaluate(f),C.evaluate(f))}]]},"feature-state":[Ei,[Er],function(f,m){return pn(m[0].evaluate(f),f.featureState||{})}],properties:[zr,[],function(f){return f.properties()}],"geometry-type":[Er,[],function(f){return f.geometryType()}],id:[Ei,[],function(f){return f.id()}],zoom:[Pr,[],function(f){return f.globals.zoom}],"heatmap-density":[Pr,[],function(f){return f.globals.heatmapDensity||0}],"line-progress":[Pr,[],function(f){return f.globals.lineProgress||0}],accumulated:[Ei,[],function(f){return f.globals.accumulated===void 0?null:f.globals.accumulated}],"+":[Pr,pu(Pr),function(f,m){for(var C=0,N=0,q=m;N":[ui,[Er,Ei],function(f,m){var C=m[0],N=m[1],q=f.properties()[C.value],oe=N.value;return typeof q==typeof oe&&q>oe}],"filter-id->":[ui,[Ei],function(f,m){var C=m[0],N=f.id(),q=C.value;return typeof N==typeof q&&N>q}],"filter-<=":[ui,[Er,Ei],function(f,m){var C=m[0],N=m[1],q=f.properties()[C.value],oe=N.value;return typeof q==typeof oe&&q<=oe}],"filter-id-<=":[ui,[Ei],function(f,m){var C=m[0],N=f.id(),q=C.value;return typeof N==typeof q&&N<=q}],"filter->=":[ui,[Er,Ei],function(f,m){var C=m[0],N=m[1],q=f.properties()[C.value],oe=N.value;return typeof q==typeof oe&&q>=oe}],"filter-id->=":[ui,[Ei],function(f,m){var C=m[0],N=f.id(),q=C.value;return typeof N==typeof q&&N>=q}],"filter-has":[ui,[Ei],function(f,m){return m[0].value in f.properties()}],"filter-has-id":[ui,[],function(f){return f.id()!==null&&f.id()!==void 0}],"filter-type-in":[ui,[Qo(Er)],function(f,m){return m[0].value.indexOf(f.geometryType())>=0}],"filter-id-in":[ui,[Qo(Ei)],function(f,m){return m[0].value.indexOf(f.id())>=0}],"filter-in-small":[ui,[Er,Qo(Ei)],function(f,m){var C=m[0];return m[1].value.indexOf(f.properties()[C.value])>=0}],"filter-in-large":[ui,[Er,Qo(Ei)],function(f,m){var C=m[0],N=m[1];return function(q,oe,_e,$e){for(;_e<=$e;){var Ft=_e+$e>>1;if(oe[Ft]===q)return!0;oe[Ft]>q?$e=Ft-1:_e=Ft+1}return!1}(f.properties()[C.value],N.value,0,N.value.length-1)}],all:{type:ui,overloads:[[[ui,ui],function(f,m){var C=m[1];return m[0].evaluate(f)&&C.evaluate(f)}],[pu(ui),function(f,m){for(var C=0,N=m;C0&&typeof f[0]=="string"&&f[0]in Dl}function Rd(f,m){var C=new _a(Dl,[],m?function(q){var oe={color:Gr,string:Er,number:Pr,enum:Er,boolean:ui,formatted:Kr,resolvedImage:Xr};return q.type==="array"?Qo(oe[q.value]||Ei,q.length):oe[q.type]}(m):void 0),N=C.parse(f,void 0,void 0,void 0,m&&m.type==="string"?{typeAnnotation:"coerce"}:void 0);return N?tc(new Mf(N,m)):dc(C.errors)}Mf.prototype.evaluateWithoutErrorHandling=function(f,m,C,N,q,oe){return this._evaluator.globals=f,this._evaluator.feature=m,this._evaluator.featureState=C,this._evaluator.canonical=N,this._evaluator.availableImages=q||null,this._evaluator.formattedSection=oe,this.expression.evaluate(this._evaluator)},Mf.prototype.evaluate=function(f,m,C,N,q,oe){this._evaluator.globals=f,this._evaluator.feature=m||null,this._evaluator.featureState=C||null,this._evaluator.canonical=N,this._evaluator.availableImages=q||null,this._evaluator.formattedSection=oe||null;try{var _e=this.expression.evaluate(this._evaluator);if(_e==null||typeof _e=="number"&&_e!=_e)return this._defaultValue;if(this._enumValues&&!(_e in this._enumValues))throw new Ai("Expected value to be one of "+Object.keys(this._enumValues).map(function($e){return JSON.stringify($e)}).join(", ")+", but found "+JSON.stringify(_e)+" instead.");return _e}catch($e){return this._warningHistory[$e.message]||(this._warningHistory[$e.message]=!0,typeof console!="undefined"&&console.warn($e.message)),this._defaultValue}};var fp=function(f,m){this.kind=f,this._styleExpression=m,this.isStateDependent=f!=="constant"&&!zs(m.expression)};fp.prototype.evaluateWithoutErrorHandling=function(f,m,C,N,q,oe){return this._styleExpression.evaluateWithoutErrorHandling(f,m,C,N,q,oe)},fp.prototype.evaluate=function(f,m,C,N,q,oe){return this._styleExpression.evaluate(f,m,C,N,q,oe)};var us=function(f,m,C,N){this.kind=f,this.zoomStops=C,this._styleExpression=m,this.isStateDependent=f!=="camera"&&!zs(m.expression),this.interpolationType=N};function Ca(f,m){if((f=Rd(f,m)).result==="error")return f;var C=f.value.expression,N=Xs(C);if(!N&&!Mc(m))return dc([new en("","data expressions not supported")]);var q=xa(C,["zoom"]);if(!q&&!Fc(m))return dc([new en("","zoom expressions not supported")]);var oe=function _e($e){var Ft=null;if($e instanceof ji)Ft=_e($e.result);else if($e instanceof Hi)for(var an=0,nr=$e.args;anN.maximum?[new er(m,C,C+" is greater than the maximum value "+N.maximum)]:[]}function Ec(f){var m,C,N,q=f.valueSpec,oe=bo(f.value.type),_e={},$e=oe!=="categorical"&&f.value.property===void 0,Ft=!$e,an=Vd(f.value.stops)==="array"&&Vd(f.value.stops[0])==="array"&&Vd(f.value.stops[0][0])==="object",nr=Ja({key:f.key,value:f.value,valueSpec:f.styleSpec.function,style:f.style,styleSpec:f.styleSpec,objectElementValidators:{stops:function(Di){if(oe==="identity")return[new er(Di.key,Di.value,'identity function may not have a "stops" property')];var Ro=[],Lo=Di.value;return Ro=Ro.concat(ou({key:Di.key,value:Lo,valueSpec:Di.valueSpec,style:Di.style,styleSpec:Di.styleSpec,arrayElementValidator:Dr})),Vd(Lo)==="array"&&Lo.length===0&&Ro.push(new er(Di.key,Lo,"array must have at least one stop")),Ro},default:function(Di){return Lu({key:Di.key,value:Di.value,valueSpec:q,style:Di.style,styleSpec:Di.styleSpec})}}});return oe==="identity"&&$e&&nr.push(new er(f.key,f.value,'missing required property "property"')),oe==="identity"||f.value.stops||nr.push(new er(f.key,f.value,'missing required property "stops"')),oe==="exponential"&&f.valueSpec.expression&&!cd(f.valueSpec)&&nr.push(new er(f.key,f.value,"exponential functions not supported")),f.styleSpec.$version>=8&&(Ft&&!Mc(f.valueSpec)?nr.push(new er(f.key,f.value,"property functions not supported")):$e&&!Fc(f.valueSpec)&&nr.push(new er(f.key,f.value,"zoom functions not supported"))),oe!=="categorical"&&!an||f.value.property!==void 0||nr.push(new er(f.key,f.value,'"property" property is required')),nr;function Dr(Di){var Ro=[],Lo=Di.value,Wo=Di.key;if(Vd(Lo)!=="array")return[new er(Wo,Lo,"array expected, "+Vd(Lo)+" found")];if(Lo.length!==2)return[new er(Wo,Lo,"array length 2 expected, length "+Lo.length+" found")];if(an){if(Vd(Lo[0])!=="object")return[new er(Wo,Lo,"object expected, "+Vd(Lo[0])+" found")];if(Lo[0].zoom===void 0)return[new er(Wo,Lo,"object stop key must have zoom")];if(Lo[0].value===void 0)return[new er(Wo,Lo,"object stop key must have value")];if(N&&N>bo(Lo[0].zoom))return[new er(Wo,Lo[0].zoom,"stop zoom values must appear in ascending order")];bo(Lo[0].zoom)!==N&&(N=bo(Lo[0].zoom),C=void 0,_e={}),Ro=Ro.concat(Ja({key:Wo+"[0]",value:Lo[0],valueSpec:{zoom:{}},style:Di.style,styleSpec:Di.styleSpec,objectElementValidators:{zoom:yu,value:bi}}))}else Ro=Ro.concat(bi({key:Wo+"[0]",value:Lo[0],valueSpec:{},style:Di.style,styleSpec:Di.styleSpec},Lo));return $f(zt(Lo[1]))?Ro.concat([new er(Wo+"[1]",Lo[1],"expressions are not allowed in function stops.")]):Ro.concat(Lu({key:Wo+"[1]",value:Lo[1],valueSpec:q,style:Di.style,styleSpec:Di.styleSpec}))}function bi(Di,Ro){var Lo=Vd(Di.value),Wo=bo(Di.value),Bo=Di.value!==null?Di.value:Ro;if(m){if(Lo!==m)return[new er(Di.key,Bo,Lo+" stop domain type must match previous stop domain type "+m)]}else m=Lo;if(Lo!=="number"&&Lo!=="string"&&Lo!=="boolean")return[new er(Di.key,Bo,"stop domain value must be a number, string, or boolean")];if(Lo!=="number"&&oe!=="categorical"){var ho="number expected, "+Lo+" found";return Mc(q)&&oe===void 0&&(ho+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new er(Di.key,Bo,ho)]}return oe!=="categorical"||Lo!=="number"||isFinite(Wo)&&Math.floor(Wo)===Wo?oe!=="categorical"&&Lo==="number"&&C!==void 0&&Wo=2&&f[1]!=="$id"&&f[1]!=="$type";case"in":return f.length>=3&&(typeof f[1]!="string"||Array.isArray(f[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return f.length!==3||Array.isArray(f[1])||Array.isArray(f[2]);case"any":case"all":for(var m=0,C=f.slice(1);mm?1:0}function hh(f){if(!f)return!0;var m,C=f[0];return f.length<=1?C!=="any":C==="=="?hd(f[1],f[2],"=="):C==="!="?bh(hd(f[1],f[2],"==")):C==="<"||C===">"||C==="<="||C===">="?hd(f[1],f[2],C):C==="any"?(m=f.slice(1),["any"].concat(m.map(hh))):C==="all"?["all"].concat(f.slice(1).map(hh)):C==="none"?["all"].concat(f.slice(1).map(hh).map(bh)):C==="in"?Ih(f[1],f.slice(2)):C==="!in"?bh(Ih(f[1],f.slice(2))):C==="has"?Oc(f[1]):C==="!has"?bh(Oc(f[1])):C!=="within"||f}function hd(f,m,C){switch(f){case"$type":return["filter-type-"+C,m];case"$id":return["filter-id-"+C,m];default:return["filter-"+C,f,m]}}function Ih(f,m){if(m.length===0)return!1;switch(f){case"$type":return["filter-type-in",["literal",m]];case"$id":return["filter-id-in",["literal",m]];default:return m.length>200&&!m.some(function(C){return typeof C!=typeof m[0]})?["filter-in-large",f,["literal",m.sort(pc)]]:["filter-in-small",f,["literal",m]]}}function Oc(f){switch(f){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",f]}}function bh(f){return["!",f]}function jl(f){return Rc(zt(f.value))?Xu(jr({},f,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function m(C){var N=C.value,q=C.key;if(Vd(N)!=="array")return[new er(q,N,"array expected, "+Vd(N)+" found")];var oe,_e=C.styleSpec,$e=[];if(N.length<1)return[new er(q,N,"filter array must have at least 1 element")];switch($e=$e.concat(Jl({key:q+"[0]",value:N[0],valueSpec:_e.filter_operator,style:C.style,styleSpec:C.styleSpec})),bo(N[0])){case"<":case"<=":case">":case">=":N.length>=2&&bo(N[1])==="$type"&&$e.push(new er(q,N,'"$type" cannot be use with operator "'+N[0]+'"'));case"==":case"!=":N.length!==3&&$e.push(new er(q,N,'filter array for operator "'+N[0]+'" must have 3 elements'));case"in":case"!in":N.length>=2&&(oe=Vd(N[1]))!=="string"&&$e.push(new er(q+"[1]",N[1],"string expected, "+oe+" found"));for(var Ft=2;Ft=nr[Di+0]&&N>=nr[Di+1])?(_e[bi]=!0,oe.push(an[bi])):_e[bi]=!1}}},Lh.prototype._forEachCell=function(f,m,C,N,q,oe,_e,$e){for(var Ft=this._convertToCellCoord(f),an=this._convertToCellCoord(m),nr=this._convertToCellCoord(C),Dr=this._convertToCellCoord(N),bi=Ft;bi<=nr;bi++)for(var Di=an;Di<=Dr;Di++){var Ro=this.d*Di+bi;if((!$e||$e(this._convertFromCellCoord(bi),this._convertFromCellCoord(Di),this._convertFromCellCoord(bi+1),this._convertFromCellCoord(Di+1)))&&q.call(this,f,m,C,N,Ro,oe,_e,$e))return}},Lh.prototype._convertFromCellCoord=function(f){return(f-this.padding)/this.scale},Lh.prototype._convertToCellCoord=function(f){return Math.max(0,Math.min(this.d-1,Math.floor(f*this.scale)+this.padding))},Lh.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var f=this.cells,m=3+this.cells.length+1+1,C=0,N=0;N=0)){var nr=f[an];Ft[an]=Wc[$e].shallow.indexOf(an)>=0?nr:eo(nr,m)}f instanceof Error&&(Ft.message=f.message)}if(Ft.$name)throw new Error("$name property is reserved for worker serialization logic.");return $e!=="Object"&&(Ft.$name=$e),Ft}throw new Error("can't serialize object of type "+typeof f)}function Eh(f){if(f==null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||f instanceof Boolean||f instanceof Number||f instanceof String||f instanceof Date||f instanceof RegExp||wg(f)||al(f)||ArrayBuffer.isView(f)||f instanceof Of)return f;if(Array.isArray(f))return f.map(Eh);if(typeof f=="object"){var m=f.$name||"Object",C=Wc[m].klass;if(!C)throw new Error("can't deserialize unregistered class "+m);if(C.deserialize)return C.deserialize(f);for(var N=Object.create(C.prototype),q=0,oe=Object.keys(f);q=0?$e:Eh($e)}}return N}throw new Error("can't deserialize object of type "+typeof f)}var mo=function(){this.first=!0};mo.prototype.update=function(f,m){var C=Math.floor(f);return this.first?(this.first=!1,this.lastIntegerZoom=C,this.lastIntegerZoomTime=0,this.lastZoom=f,this.lastFloorZoom=C,!0):(this.lastFloorZoom>C?(this.lastIntegerZoom=C+1,this.lastIntegerZoomTime=m):this.lastFloorZoom=128&&f<=255},Arabic:function(f){return f>=1536&&f<=1791},"Arabic Supplement":function(f){return f>=1872&&f<=1919},"Arabic Extended-A":function(f){return f>=2208&&f<=2303},"Hangul Jamo":function(f){return f>=4352&&f<=4607},"Unified Canadian Aboriginal Syllabics":function(f){return f>=5120&&f<=5759},Khmer:function(f){return f>=6016&&f<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(f){return f>=6320&&f<=6399},"General Punctuation":function(f){return f>=8192&&f<=8303},"Letterlike Symbols":function(f){return f>=8448&&f<=8527},"Number Forms":function(f){return f>=8528&&f<=8591},"Miscellaneous Technical":function(f){return f>=8960&&f<=9215},"Control Pictures":function(f){return f>=9216&&f<=9279},"Optical Character Recognition":function(f){return f>=9280&&f<=9311},"Enclosed Alphanumerics":function(f){return f>=9312&&f<=9471},"Geometric Shapes":function(f){return f>=9632&&f<=9727},"Miscellaneous Symbols":function(f){return f>=9728&&f<=9983},"Miscellaneous Symbols and Arrows":function(f){return f>=11008&&f<=11263},"CJK Radicals Supplement":function(f){return f>=11904&&f<=12031},"Kangxi Radicals":function(f){return f>=12032&&f<=12255},"Ideographic Description Characters":function(f){return f>=12272&&f<=12287},"CJK Symbols and Punctuation":function(f){return f>=12288&&f<=12351},Hiragana:function(f){return f>=12352&&f<=12447},Katakana:function(f){return f>=12448&&f<=12543},Bopomofo:function(f){return f>=12544&&f<=12591},"Hangul Compatibility Jamo":function(f){return f>=12592&&f<=12687},Kanbun:function(f){return f>=12688&&f<=12703},"Bopomofo Extended":function(f){return f>=12704&&f<=12735},"CJK Strokes":function(f){return f>=12736&&f<=12783},"Katakana Phonetic Extensions":function(f){return f>=12784&&f<=12799},"Enclosed CJK Letters and Months":function(f){return f>=12800&&f<=13055},"CJK Compatibility":function(f){return f>=13056&&f<=13311},"CJK Unified Ideographs Extension A":function(f){return f>=13312&&f<=19903},"Yijing Hexagram Symbols":function(f){return f>=19904&&f<=19967},"CJK Unified Ideographs":function(f){return f>=19968&&f<=40959},"Yi Syllables":function(f){return f>=40960&&f<=42127},"Yi Radicals":function(f){return f>=42128&&f<=42191},"Hangul Jamo Extended-A":function(f){return f>=43360&&f<=43391},"Hangul Syllables":function(f){return f>=44032&&f<=55215},"Hangul Jamo Extended-B":function(f){return f>=55216&&f<=55295},"Private Use Area":function(f){return f>=57344&&f<=63743},"CJK Compatibility Ideographs":function(f){return f>=63744&&f<=64255},"Arabic Presentation Forms-A":function(f){return f>=64336&&f<=65023},"Vertical Forms":function(f){return f>=65040&&f<=65055},"CJK Compatibility Forms":function(f){return f>=65072&&f<=65103},"Small Form Variants":function(f){return f>=65104&&f<=65135},"Arabic Presentation Forms-B":function(f){return f>=65136&&f<=65279},"Halfwidth and Fullwidth Forms":function(f){return f>=65280&&f<=65519}};function Ic(f){for(var m=0,C=f;m=65097&&f<=65103)||vc["CJK Compatibility Ideographs"](f)||vc["CJK Compatibility"](f)||vc["CJK Radicals Supplement"](f)||vc["CJK Strokes"](f)||!(!vc["CJK Symbols and Punctuation"](f)||f>=12296&&f<=12305||f>=12308&&f<=12319||f===12336)||vc["CJK Unified Ideographs Extension A"](f)||vc["CJK Unified Ideographs"](f)||vc["Enclosed CJK Letters and Months"](f)||vc["Hangul Compatibility Jamo"](f)||vc["Hangul Jamo Extended-A"](f)||vc["Hangul Jamo Extended-B"](f)||vc["Hangul Jamo"](f)||vc["Hangul Syllables"](f)||vc.Hiragana(f)||vc["Ideographic Description Characters"](f)||vc.Kanbun(f)||vc["Kangxi Radicals"](f)||vc["Katakana Phonetic Extensions"](f)||vc.Katakana(f)&&f!==12540||!(!vc["Halfwidth and Fullwidth Forms"](f)||f===65288||f===65289||f===65293||f>=65306&&f<=65310||f===65339||f===65341||f===65343||f>=65371&&f<=65503||f===65507||f>=65512&&f<=65519)||!(!vc["Small Form Variants"](f)||f>=65112&&f<=65118||f>=65123&&f<=65126)||vc["Unified Canadian Aboriginal Syllabics"](f)||vc["Unified Canadian Aboriginal Syllabics Extended"](f)||vc["Vertical Forms"](f)||vc["Yijing Hexagram Symbols"](f)||vc["Yi Syllables"](f)||vc["Yi Radicals"](f))))}function yg(f){return!(Hp(f)||function(m){return!!(vc["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||vc["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||vc["Letterlike Symbols"](m)||vc["Number Forms"](m)||vc["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||vc["Control Pictures"](m)&&m!==9251||vc["Optical Character Recognition"](m)||vc["Enclosed Alphanumerics"](m)||vc["Geometric Shapes"](m)||vc["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||vc["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||vc["CJK Symbols and Punctuation"](m)||vc.Katakana(m)||vc["Private Use Area"](m)||vc["CJK Compatibility Forms"](m)||vc["Small Form Variants"](m)||vc["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}(f))}function pg(f){return f>=1424&&f<=2303||vc["Arabic Presentation Forms-A"](f)||vc["Arabic Presentation Forms-B"](f)}function kf(f,m){return!(!m&&pg(f)||f>=2304&&f<=3583||f>=3840&&f<=4255||vc.Khmer(f))}function Fp(f){for(var m=0,C=f;m-1&&(pp="error"),rg&&rg(f)};function yp(){od.fire(new ir("pluginStateChange",{pluginStatus:pp,pluginURL:kg}))}var od=new Jn,Pp=function(){return pp},Og=function(){if(pp!=="deferred"||!kg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");pp="loading",yp(),kg&&Un({url:kg},function(f){f?vp(f):(pp="loaded",yp())})},Xp={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return pp==="loaded"||Xp.applyArabicShaping!=null},isLoading:function(){return pp==="loading"},setState:function(f){pp=f.pluginStatus,kg=f.pluginURL},isParsed:function(){return Xp.applyArabicShaping!=null&&Xp.processBidirectionalText!=null&&Xp.processStyledBidirectionalText!=null},getPluginURL:function(){return kg}},sd=function(f,m){this.zoom=f,m?(this.now=m.now,this.fadeDuration=m.fadeDuration,this.zoomHistory=m.zoomHistory,this.transition=m.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new mo,this.transition={})};sd.prototype.isSupportedScript=function(f){return function(m,C){for(var N=0,q=m;Nthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:m+(1-m)*C}:{fromScale:.5,toScale:1,t:1-(1-C)*m}};var Yp=function(f,m){this.property=f,this.value=m,this.expression=function(C,N){if(yd(C))return new Ta(C,N);if($f(C)){var q=Ca(C,N);if(q.result==="error")throw new Error(q.value.map(function(_e){return _e.key+": "+_e.message}).join(", "));return q.value}var oe=C;return typeof C=="string"&&N.type==="color"&&(oe=Ln.parse(C)),{kind:"constant",evaluate:function(){return oe}}}(m===void 0?f.specification.default:m,f.specification)};Yp.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Yp.prototype.possiblyEvaluate=function(f,m,C){return this.property.possiblyEvaluate(this,f,m,C)};var Kh=function(f){this.property=f,this.value=new Yp(f,void 0)};Kh.prototype.transitioned=function(f,m){return new Ep(this.property,this.value,m,nt({},f.transition,this.transition),f.now)},Kh.prototype.untransitioned=function(){return new Ep(this.property,this.value,null,{},0)};var Qf=function(f){this._properties=f,this._values=Object.create(f.defaultTransitionablePropertyValues)};Qf.prototype.getValue=function(f){return Pe(this._values[f].value.value)},Qf.prototype.setValue=function(f,m){this._values.hasOwnProperty(f)||(this._values[f]=new Kh(this._values[f].property)),this._values[f].value=new Yp(this._values[f].property,m===null?void 0:Pe(m))},Qf.prototype.getTransition=function(f){return Pe(this._values[f].transition)},Qf.prototype.setTransition=function(f,m){this._values.hasOwnProperty(f)||(this._values[f]=new Kh(this._values[f].property)),this._values[f].transition=Pe(m)||void 0},Qf.prototype.serialize=function(){for(var f={},m=0,C=Object.keys(this._values);mthis.end)return this.prior=null,q;if(this.value.isDataDriven())return this.prior=null,q;if(N=1)return 1;var Ft=$e*$e,an=Ft*$e;return 4*($e<.5?an:3*($e-Ft)+an-.75)}(_e))}return q};var Au=function(f){this._properties=f,this._values=Object.create(f.defaultTransitioningPropertyValues)};Au.prototype.possiblyEvaluate=function(f,m,C){for(var N=new Nf(this._properties),q=0,oe=Object.keys(this._values);qoe.zoomHistory.lastIntegerZoom?{from:C,to:N}:{from:q,to:N}},m.prototype.interpolate=function(C){return C},m}(Xh),Hh=function(f){this.specification=f};Hh.prototype.possiblyEvaluate=function(f,m,C,N){if(f.value!==void 0){if(f.expression.kind==="constant"){var q=f.expression.evaluate(m,null,{},C,N);return this._calculate(q,q,q,m)}return this._calculate(f.expression.evaluate(new sd(Math.floor(m.zoom-1),m)),f.expression.evaluate(new sd(Math.floor(m.zoom),m)),f.expression.evaluate(new sd(Math.floor(m.zoom+1),m)),m)}},Hh.prototype._calculate=function(f,m,C,N){return N.zoom>N.zoomHistory.lastIntegerZoom?{from:f,to:m}:{from:C,to:m}},Hh.prototype.interpolate=function(f){return f};var _p=function(f){this.specification=f};_p.prototype.possiblyEvaluate=function(f,m,C,N){return!!f.expression.evaluate(m,null,{},C,N)},_p.prototype.interpolate=function(){return!1};var Jf=function(f){for(var m in this.properties=f,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],f){var C=f[m];C.specification.overridable&&this.overridableProperties.push(m);var N=this.defaultPropertyValues[m]=new Yp(C,void 0),q=this.defaultTransitionablePropertyValues[m]=new Kh(C);this.defaultTransitioningPropertyValues[m]=q.untransitioned(),this.defaultPossiblyEvaluatedValues[m]=N.possiblyEvaluate({})}};lh("DataDrivenProperty",Xh),lh("DataConstantProperty",zh),lh("CrossFadedDataDrivenProperty",ed),lh("CrossFadedProperty",Hh),lh("ColorRampProperty",_p);var Up=function(f){function m(C,N){if(f.call(this),this.id=C.id,this.type=C.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},C.type!=="custom"&&(this.metadata=(C=C).metadata,this.minzoom=C.minzoom,this.maxzoom=C.maxzoom,C.type!=="background"&&(this.source=C.source,this.sourceLayer=C["source-layer"],this.filter=C.filter),N.layout&&(this._unevaluatedLayout=new Bp(N.layout)),N.paint)){for(var q in this._transitionablePaint=new Qf(N.paint),C.paint)this.setPaintProperty(q,C.paint[q],{validate:!1});for(var oe in C.layout)this.setLayoutProperty(oe,C.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Nf(N.paint)}}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},m.prototype.getLayoutProperty=function(C){return C==="visibility"?this.visibility:this._unevaluatedLayout.getValue(C)},m.prototype.setLayoutProperty=function(C,N,q){q===void 0&&(q={}),N!=null&&this._validate(Zd,"layers."+this.id+".layout."+C,C,N,q)||(C!=="visibility"?this._unevaluatedLayout.setValue(C,N):this.visibility=N)},m.prototype.getPaintProperty=function(C){return yt(C,"-transition")?this._transitionablePaint.getTransition(C.slice(0,-11)):this._transitionablePaint.getValue(C)},m.prototype.setPaintProperty=function(C,N,q){if(q===void 0&&(q={}),N!=null&&this._validate(Wd,"layers."+this.id+".paint."+C,C,N,q))return!1;if(yt(C,"-transition"))return this._transitionablePaint.setTransition(C.slice(0,-11),N||void 0),!1;var oe=this._transitionablePaint._values[C],_e=oe.property.specification["property-type"]==="cross-faded-data-driven",$e=oe.value.isDataDriven(),Ft=oe.value;this._transitionablePaint.setValue(C,N),this._handleSpecialPaintPropertyUpdate(C);var an=this._transitionablePaint._values[C].value;return an.isDataDriven()||$e||_e||this._handleOverridablePaintPropertyUpdate(C,Ft,an)},m.prototype._handleSpecialPaintPropertyUpdate=function(C){},m.prototype._handleOverridablePaintPropertyUpdate=function(C,N,q){return!1},m.prototype.isHidden=function(C){return!!(this.minzoom&&C=this.maxzoom)||this.visibility==="none"},m.prototype.updateTransitions=function(C){this._transitioningPaint=this._transitionablePaint.transitioned(C,this._transitioningPaint)},m.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},m.prototype.recalculate=function(C,N){C.getCrossfadeParameters&&(this._crossfadeParameters=C.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(C,void 0,N)),this.paint=this._transitioningPaint.possiblyEvaluate(C,void 0,N)},m.prototype.serialize=function(){var C={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(C.layout=C.layout||{},C.layout.visibility=this.visibility),ht(C,function(N,q){return!(N===void 0||q==="layout"&&!Object.keys(N).length||q==="paint"&&!Object.keys(N).length)})},m.prototype._validate=function(C,N,q,oe,_e){return _e===void 0&&(_e={}),(!_e||_e.validate!==!1)&&pf(this,C.call(Id,{key:N,layerType:this.type,objectKey:q,value:oe,styleSpec:nn,style:{glyphs:!0,sprite:!0}}))},m.prototype.is3D=function(){return!1},m.prototype.isTileClipped=function(){return!1},m.prototype.hasOffscreenPass=function(){return!1},m.prototype.resize=function(){},m.prototype.isStateDependent=function(){for(var C in this.paint._values){var N=this.paint.get(C);if(N instanceof zp&&Mc(N.property.specification)&&(N.value.kind==="source"||N.value.kind==="composite")&&N.value.isStateDependent)return!0}return!1},m}(Jn),fh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_f=function(f,m){this._structArray=f,this._pos1=m*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},jd=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function tf(f,m){m===void 0&&(m=1);var C=0,N=0;return{members:f.map(function(q){var oe=fh[q.type].BYTES_PER_ELEMENT,_e=C=Gf(C,Math.max(m,oe)),$e=q.components||1;return N=Math.max(N,oe),C+=oe*$e,{name:q.name,type:q.type,components:$e,offset:_e}}),size:Gf(C,Math.max(N,m)),alignment:m}}function Gf(f,m){return Math.ceil(f/m)*m}jd.serialize=function(f,m){return f._trim(),m&&(f.isTransferred=!0,m.push(f.arrayBuffer)),{length:f.length,arrayBuffer:f.arrayBuffer}},jd.deserialize=function(f){var m=Object.create(this.prototype);return m.arrayBuffer=f.arrayBuffer,m.length=f.length,m.capacity=f.arrayBuffer.byteLength/m.bytesPerElement,m._refreshViews(),m},jd.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},jd.prototype.clear=function(){this.length=0},jd.prototype.resize=function(f){this.reserve(f),this.length=f},jd.prototype.reserve=function(f){if(f>this.capacity){this.capacity=Math.max(f,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var m=this.uint8;this._refreshViews(),m&&this.uint8.set(m)}},jd.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ah=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N){var q=this.length;return this.resize(q+1),this.emplace(q,C,N)},m.prototype.emplace=function(C,N,q){var oe=2*C;return this.int16[oe+0]=N,this.int16[oe+1]=q,C},m}(jd);Ah.prototype.bytesPerElement=4,lh("StructArrayLayout2i4",Ah);var Zc=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,C,N,q,oe)},m.prototype.emplace=function(C,N,q,oe,_e){var $e=4*C;return this.int16[$e+0]=N,this.int16[$e+1]=q,this.int16[$e+2]=oe,this.int16[$e+3]=_e,C},m}(jd);Zc.prototype.bytesPerElement=8,lh("StructArrayLayout4i8",Zc);var Sd=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e){var Ft=this.length;return this.resize(Ft+1),this.emplace(Ft,C,N,q,oe,_e,$e)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft){var an=6*C;return this.int16[an+0]=N,this.int16[an+1]=q,this.int16[an+2]=oe,this.int16[an+3]=_e,this.int16[an+4]=$e,this.int16[an+5]=Ft,C},m}(jd);Sd.prototype.bytesPerElement=12,lh("StructArrayLayout2i4i12",Sd);var Hd=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e){var Ft=this.length;return this.resize(Ft+1),this.emplace(Ft,C,N,q,oe,_e,$e)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft){var an=4*C,nr=8*C;return this.int16[an+0]=N,this.int16[an+1]=q,this.uint8[nr+4]=oe,this.uint8[nr+5]=_e,this.uint8[nr+6]=$e,this.uint8[nr+7]=Ft,C},m}(jd);Hd.prototype.bytesPerElement=8,lh("StructArrayLayout2i4ub8",Hd);var Vo=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N){var q=this.length;return this.resize(q+1),this.emplace(q,C,N)},m.prototype.emplace=function(C,N,q){var oe=2*C;return this.float32[oe+0]=N,this.float32[oe+1]=q,C},m}(jd);Vo.prototype.bytesPerElement=8,lh("StructArrayLayout2f8",Vo);var D=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr){var bi=this.length;return this.resize(bi+1),this.emplace(bi,C,N,q,oe,_e,$e,Ft,an,nr,Dr)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi){var Di=10*C;return this.uint16[Di+0]=N,this.uint16[Di+1]=q,this.uint16[Di+2]=oe,this.uint16[Di+3]=_e,this.uint16[Di+4]=$e,this.uint16[Di+5]=Ft,this.uint16[Di+6]=an,this.uint16[Di+7]=nr,this.uint16[Di+8]=Dr,this.uint16[Di+9]=bi,C},m}(jd);D.prototype.bytesPerElement=20,lh("StructArrayLayout10ui20",D);var k=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di){var Ro=this.length;return this.resize(Ro+1),this.emplace(Ro,C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro){var Lo=12*C;return this.int16[Lo+0]=N,this.int16[Lo+1]=q,this.int16[Lo+2]=oe,this.int16[Lo+3]=_e,this.uint16[Lo+4]=$e,this.uint16[Lo+5]=Ft,this.uint16[Lo+6]=an,this.uint16[Lo+7]=nr,this.int16[Lo+8]=Dr,this.int16[Lo+9]=bi,this.int16[Lo+10]=Di,this.int16[Lo+11]=Ro,C},m}(jd);k.prototype.bytesPerElement=24,lh("StructArrayLayout4i4ui4i24",k);var te=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q){var oe=this.length;return this.resize(oe+1),this.emplace(oe,C,N,q)},m.prototype.emplace=function(C,N,q,oe){var _e=3*C;return this.float32[_e+0]=N,this.float32[_e+1]=q,this.float32[_e+2]=oe,C},m}(jd);te.prototype.bytesPerElement=12,lh("StructArrayLayout3f12",te);var ue=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C){var N=this.length;return this.resize(N+1),this.emplace(N,C)},m.prototype.emplace=function(C,N){return this.uint32[1*C+0]=N,C},m}(jd);ue.prototype.bytesPerElement=4,lh("StructArrayLayout1ul4",ue);var Ke=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e,Ft,an,nr){var Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,C,N,q,oe,_e,$e,Ft,an,nr)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr){var bi=10*C,Di=5*C;return this.int16[bi+0]=N,this.int16[bi+1]=q,this.int16[bi+2]=oe,this.int16[bi+3]=_e,this.int16[bi+4]=$e,this.int16[bi+5]=Ft,this.uint32[Di+3]=an,this.uint16[bi+8]=nr,this.uint16[bi+9]=Dr,C},m}(jd);Ke.prototype.bytesPerElement=20,lh("StructArrayLayout6i1ul2ui20",Ke);var _n=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e){var Ft=this.length;return this.resize(Ft+1),this.emplace(Ft,C,N,q,oe,_e,$e)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft){var an=6*C;return this.int16[an+0]=N,this.int16[an+1]=q,this.int16[an+2]=oe,this.int16[an+3]=_e,this.int16[an+4]=$e,this.int16[an+5]=Ft,C},m}(jd);_n.prototype.bytesPerElement=12,lh("StructArrayLayout2i2i2i12",_n);var lr=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e){var $e=this.length;return this.resize($e+1),this.emplace($e,C,N,q,oe,_e)},m.prototype.emplace=function(C,N,q,oe,_e,$e){var Ft=4*C,an=8*C;return this.float32[Ft+0]=N,this.float32[Ft+1]=q,this.float32[Ft+2]=oe,this.int16[an+6]=_e,this.int16[an+7]=$e,C},m}(jd);lr.prototype.bytesPerElement=16,lh("StructArrayLayout2f1f2i16",lr);var ye=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,C,N,q,oe)},m.prototype.emplace=function(C,N,q,oe,_e){var $e=12*C,Ft=3*C;return this.uint8[$e+0]=N,this.uint8[$e+1]=q,this.float32[Ft+1]=oe,this.float32[Ft+2]=_e,C},m}(jd);ye.prototype.bytesPerElement=12,lh("StructArrayLayout2ub2f12",ye);var S=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q){var oe=this.length;return this.resize(oe+1),this.emplace(oe,C,N,q)},m.prototype.emplace=function(C,N,q,oe){var _e=3*C;return this.uint16[_e+0]=N,this.uint16[_e+1]=q,this.uint16[_e+2]=oe,C},m}(jd);S.prototype.bytesPerElement=6,lh("StructArrayLayout3ui6",S);var J=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho){var Zs=this.length;return this.resize(Zs+1),this.emplace(Zs,C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho,Zs){var Da=24*C,hl=12*C,au=48*C;return this.int16[Da+0]=N,this.int16[Da+1]=q,this.uint16[Da+2]=oe,this.uint16[Da+3]=_e,this.uint32[hl+2]=$e,this.uint32[hl+3]=Ft,this.uint32[hl+4]=an,this.uint16[Da+10]=nr,this.uint16[Da+11]=Dr,this.uint16[Da+12]=bi,this.float32[hl+7]=Di,this.float32[hl+8]=Ro,this.uint8[au+36]=Lo,this.uint8[au+37]=Wo,this.uint8[au+38]=Bo,this.uint32[hl+10]=ho,this.int16[Da+22]=Zs,C},m}(jd);J.prototype.bytesPerElement=48,lh("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",J);var ve=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho,Zs,Da,hl,au,Ru,Su,ih,_u,zc,Fn,ur){var Hr=this.length;return this.resize(Hr+1),this.emplace(Hr,C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho,Zs,Da,hl,au,Ru,Su,ih,_u,zc,Fn,ur)},m.prototype.emplace=function(C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo,Wo,Bo,ho,Zs,Da,hl,au,Ru,Su,ih,_u,zc,Fn,ur,Hr){var gi=34*C,fo=17*C;return this.int16[gi+0]=N,this.int16[gi+1]=q,this.int16[gi+2]=oe,this.int16[gi+3]=_e,this.int16[gi+4]=$e,this.int16[gi+5]=Ft,this.int16[gi+6]=an,this.int16[gi+7]=nr,this.uint16[gi+8]=Dr,this.uint16[gi+9]=bi,this.uint16[gi+10]=Di,this.uint16[gi+11]=Ro,this.uint16[gi+12]=Lo,this.uint16[gi+13]=Wo,this.uint16[gi+14]=Bo,this.uint16[gi+15]=ho,this.uint16[gi+16]=Zs,this.uint16[gi+17]=Da,this.uint16[gi+18]=hl,this.uint16[gi+19]=au,this.uint16[gi+20]=Ru,this.uint16[gi+21]=Su,this.uint16[gi+22]=ih,this.uint32[fo+12]=_u,this.float32[fo+13]=zc,this.float32[fo+14]=Fn,this.float32[fo+15]=ur,this.float32[fo+16]=Hr,C},m}(jd);ve.prototype.bytesPerElement=68,lh("StructArrayLayout8i15ui1ul4f68",ve);var Ae=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C){var N=this.length;return this.resize(N+1),this.emplace(N,C)},m.prototype.emplace=function(C,N){return this.float32[1*C+0]=N,C},m}(jd);Ae.prototype.bytesPerElement=4,lh("StructArrayLayout1f4",Ae);var Qe=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q){var oe=this.length;return this.resize(oe+1),this.emplace(oe,C,N,q)},m.prototype.emplace=function(C,N,q,oe){var _e=3*C;return this.int16[_e+0]=N,this.int16[_e+1]=q,this.int16[_e+2]=oe,C},m}(jd);Qe.prototype.bytesPerElement=6,lh("StructArrayLayout3i6",Qe);var Ht=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q){var oe=this.length;return this.resize(oe+1),this.emplace(oe,C,N,q)},m.prototype.emplace=function(C,N,q,oe){var _e=4*C;return this.uint32[2*C+0]=N,this.uint16[_e+2]=q,this.uint16[_e+3]=oe,C},m}(jd);Ht.prototype.bytesPerElement=8,lh("StructArrayLayout1ul2ui8",Ht);var Qt=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N){var q=this.length;return this.resize(q+1),this.emplace(q,C,N)},m.prototype.emplace=function(C,N,q){var oe=2*C;return this.uint16[oe+0]=N,this.uint16[oe+1]=q,C},m}(jd);Qt.prototype.bytesPerElement=4,lh("StructArrayLayout2ui4",Qt);var $n=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C){var N=this.length;return this.resize(N+1),this.emplace(N,C)},m.prototype.emplace=function(C,N){return this.uint16[1*C+0]=N,C},m}(jd);$n.prototype.bytesPerElement=2,lh("StructArrayLayout1ui2",$n);var kr=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},m.prototype.emplaceBack=function(C,N,q,oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,C,N,q,oe)},m.prototype.emplace=function(C,N,q,oe,_e){var $e=4*C;return this.float32[$e+0]=N,this.float32[$e+1]=q,this.float32[$e+2]=oe,this.float32[$e+3]=_e,C},m}(jd);kr.prototype.bytesPerElement=16,lh("StructArrayLayout4f16",kr);var B=function(f){function m(){f.apply(this,arguments)}f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m;var C={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return C.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},C.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},C.x1.get=function(){return this._structArray.int16[this._pos2+2]},C.y1.get=function(){return this._structArray.int16[this._pos2+3]},C.x2.get=function(){return this._structArray.int16[this._pos2+4]},C.y2.get=function(){return this._structArray.int16[this._pos2+5]},C.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},C.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},C.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},C.anchorPoint.get=function(){return new Y(this.anchorPointX,this.anchorPointY)},Object.defineProperties(m.prototype,C),m}(_f);B.prototype.size=20;var H=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.get=function(C){return new B(this,C)},m}(Ke);lh("CollisionBoxArray",H);var G=function(f){function m(){f.apply(this,arguments)}f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m;var C={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return C.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},C.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},C.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},C.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},C.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},C.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},C.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},C.segment.get=function(){return this._structArray.uint16[this._pos2+10]},C.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},C.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},C.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},C.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},C.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},C.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},C.placedOrientation.set=function(N){this._structArray.uint8[this._pos1+37]=N},C.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},C.hidden.set=function(N){this._structArray.uint8[this._pos1+38]=N},C.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},C.crossTileID.set=function(N){this._structArray.uint32[this._pos4+10]=N},C.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(m.prototype,C),m}(_f);G.prototype.size=48;var re=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.get=function(C){return new G(this,C)},m}(J);lh("PlacedSymbolArray",re);var ke=function(f){function m(){f.apply(this,arguments)}f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m;var C={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return C.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},C.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},C.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},C.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},C.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},C.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},C.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},C.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},C.key.get=function(){return this._structArray.uint16[this._pos2+8]},C.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},C.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},C.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},C.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},C.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},C.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},C.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},C.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},C.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},C.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},C.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},C.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},C.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},C.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},C.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},C.crossTileID.set=function(N){this._structArray.uint32[this._pos4+12]=N},C.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},C.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},C.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},C.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(m.prototype,C),m}(_f);ke.prototype.size=68;var _t=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.get=function(C){return new ke(this,C)},m}(ve);lh("SymbolInstanceArray",_t);var Lt=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.getoffsetX=function(C){return this.float32[1*C+0]},m}(Ae);lh("GlyphOffsetArray",Lt);var bn=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.getx=function(C){return this.int16[3*C+0]},m.prototype.gety=function(C){return this.int16[3*C+1]},m.prototype.gettileUnitDistanceFromAnchor=function(C){return this.int16[3*C+2]},m}(Qe);lh("SymbolLineVertexArray",bn);var _r=function(f){function m(){f.apply(this,arguments)}f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m;var C={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return C.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},C.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},C.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(m.prototype,C),m}(_f);_r.prototype.size=8;var Dn=function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.get=function(C){return new _r(this,C)},m}(Ht);lh("FeatureIndexArray",Dn);var mi=tf([{name:"a_pos",components:2,type:"Int16"}],4).members,Mi=function(f){f===void 0&&(f=[]),this.segments=f};function Ji(f,m){return 256*(f=Ce(Math.floor(f),0,255))+Ce(Math.floor(m),0,255)}Mi.prototype.prepareSegment=function(f,m,C,N){var q=this.segments[this.segments.length-1];return f>Mi.MAX_VERTEX_ARRAY_LENGTH&&Oe("Max vertices per segment is "+Mi.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+f),(!q||q.vertexLength+f>Mi.MAX_VERTEX_ARRAY_LENGTH||q.sortKey!==N)&&(q={vertexOffset:m.length,primitiveOffset:C.length,vertexLength:0,primitiveLength:0},N!==void 0&&(q.sortKey=N),this.segments.push(q)),q},Mi.prototype.get=function(){return this.segments},Mi.prototype.destroy=function(){for(var f=0,m=this.segments;f>>16)*$e&65535)<<16)&4294967295)<<15|an>>>17))*Ft+(((an>>>16)*Ft&65535)<<16)&4294967295)<<13|oe>>>19))+((5*(oe>>>16)&65535)<<16)&4294967295))+((58964+(_e>>>16)&65535)<<16);switch(an=0,N){case 3:an^=(255&m.charCodeAt(nr+2))<<16;case 2:an^=(255&m.charCodeAt(nr+1))<<8;case 1:oe^=an=(65535&(an=(an=(65535&(an^=255&m.charCodeAt(nr)))*$e+(((an>>>16)*$e&65535)<<16)&4294967295)<<15|an>>>17))*Ft+(((an>>>16)*Ft&65535)<<16)&4294967295}return oe^=m.length,oe=2246822507*(65535&(oe^=oe>>>16))+((2246822507*(oe>>>16)&65535)<<16)&4294967295,oe=3266489909*(65535&(oe^=oe>>>13))+((3266489909*(oe>>>16)&65535)<<16)&4294967295,(oe^=oe>>>16)>>>0}}),Gi=A(function(f){f.exports=function(m,C){for(var N,q=m.length,oe=C^q,_e=0;q>=4;)N=1540483477*(65535&(N=255&m.charCodeAt(_e)|(255&m.charCodeAt(++_e))<<8|(255&m.charCodeAt(++_e))<<16|(255&m.charCodeAt(++_e))<<24))+((1540483477*(N>>>16)&65535)<<16),oe=1540483477*(65535&oe)+((1540483477*(oe>>>16)&65535)<<16)^(N=1540483477*(65535&(N^=N>>>24))+((1540483477*(N>>>16)&65535)<<16)),q-=4,++_e;switch(q){case 3:oe^=(255&m.charCodeAt(_e+2))<<16;case 2:oe^=(255&m.charCodeAt(_e+1))<<8;case 1:oe=1540483477*(65535&(oe^=255&m.charCodeAt(_e)))+((1540483477*(oe>>>16)&65535)<<16)}return oe=1540483477*(65535&(oe^=oe>>>13))+((1540483477*(oe>>>16)&65535)<<16),(oe^=oe>>>15)>>>0}}),Fo=Yo,js=Gi;Fo.murmur3=Yo,Fo.murmur2=js;var za=function(){this.ids=[],this.positions=[],this.indexed=!1};za.prototype.add=function(f,m,C,N){this.ids.push(Ul(f)),this.positions.push(m,C,N)},za.prototype.getPositions=function(f){for(var m=Ul(f),C=0,N=this.ids.length-1;C>1;this.ids[q]>=m?N=q:C=q+1}for(var oe=[];this.ids[C]===m;)oe.push({index:this.positions[3*C],start:this.positions[3*C+1],end:this.positions[3*C+2]}),C++;return oe},za.serialize=function(f,m){var C=new Float64Array(f.ids),N=new Uint32Array(f.positions);return function q(oe,_e,$e,Ft){for(;$e>1],nr=$e-1,Dr=Ft+1;;){do nr++;while(oe[nr]an);if(nr>=Dr)break;cl(oe,nr,Dr),cl(_e,3*nr,3*Dr),cl(_e,3*nr+1,3*Dr+1),cl(_e,3*nr+2,3*Dr+2)}Dr-$e_e.x+1||Ft<_e.y||Ft>_e.y+1)&&Oe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return C}function yh(f,m){return{type:f.type,id:f.id,properties:f.properties,geometry:m?yc(f):[]}}function uh(f,m,C,N,q){f.emplaceBack(2*m+(N+1)/2,2*C+(q+1)/2)}var ad=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(m){return m.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new Ah,this.indexArray=new S,this.segments=new Mi,this.programConfigurations=new _d(f.layers,f.zoom),this.stateDependentLayerIds=this.layers.filter(function(m){return m.isStateDependent()}).map(function(m){return m.id})};function bc(f,m){for(var C=0;C1){if(Oo(f,m))return!0;for(var N=0;N1?C:C.sub(m)._mult(q)._add(m))}function Ng(f,m){for(var C,N,q,oe=!1,_e=0;_em.y!=(q=C[Ft]).y>m.y&&m.x<(q.x-N.x)*(m.y-N.y)/(q.y-N.y)+N.x&&(oe=!oe);return oe}function sp(f,m){for(var C=!1,N=0,q=f.length-1;Nm.y!=_e.y>m.y&&m.x<(_e.x-oe.x)*(m.y-oe.y)/(_e.y-oe.y)+oe.x&&(C=!C)}return C}function _g(f,m,C){var N=C[0],q=C[2];if(f.xq.x&&m.x>q.x||f.yq.y&&m.y>q.y)return!1;var oe=Ue(f,m,C[0]);return oe!==Ue(f,m,C[1])||oe!==Ue(f,m,C[2])||oe!==Ue(f,m,C[3])}function ld(f,m,C){var N=m.paint.get(f).value;return N.kind==="constant"?N.value:C.programConfigurations.get(m.id).getMaxValue(f)}function bg(f){return Math.sqrt(f[0]*f[0]+f[1]*f[1])}function xg(f,m,C,N,q){if(!m[0]&&!m[1])return f;var oe=Y.convert(m)._mult(q);C==="viewport"&&oe._rotate(-N);for(var _e=[],$e=0;$e=8192||nr<0||nr>=8192)){var Dr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,f.sortKey),bi=Dr.vertexLength;uh(this.layoutVertexArray,an,nr,-1,-1),uh(this.layoutVertexArray,an,nr,1,-1),uh(this.layoutVertexArray,an,nr,1,1),uh(this.layoutVertexArray,an,nr,-1,1),this.indexArray.emplaceBack(bi,bi+1,bi+2),this.indexArray.emplaceBack(bi,bi+3,bi+2),Dr.vertexLength+=4,Dr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,f,C,{},N)},lh("CircleBucket",ad,{omit:["layers"]});var ip=new Jf({"circle-sort-key":new Xh(nn.layout_circle["circle-sort-key"])}),Tg={paint:new Jf({"circle-radius":new Xh(nn.paint_circle["circle-radius"]),"circle-color":new Xh(nn.paint_circle["circle-color"]),"circle-blur":new Xh(nn.paint_circle["circle-blur"]),"circle-opacity":new Xh(nn.paint_circle["circle-opacity"]),"circle-translate":new zh(nn.paint_circle["circle-translate"]),"circle-translate-anchor":new zh(nn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new zh(nn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new zh(nn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Xh(nn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Xh(nn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Xh(nn.paint_circle["circle-stroke-opacity"])}),layout:ip},Od=typeof Float32Array!="undefined"?Float32Array:Array;function xf(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Vg(f,m,C){var N=m[0],q=m[1],oe=m[2],_e=m[3],$e=m[4],Ft=m[5],an=m[6],nr=m[7],Dr=m[8],bi=m[9],Di=m[10],Ro=m[11],Lo=m[12],Wo=m[13],Bo=m[14],ho=m[15],Zs=C[0],Da=C[1],hl=C[2],au=C[3];return f[0]=Zs*N+Da*$e+hl*Dr+au*Lo,f[1]=Zs*q+Da*Ft+hl*bi+au*Wo,f[2]=Zs*oe+Da*an+hl*Di+au*Bo,f[3]=Zs*_e+Da*nr+hl*Ro+au*ho,f[4]=(Zs=C[4])*N+(Da=C[5])*$e+(hl=C[6])*Dr+(au=C[7])*Lo,f[5]=Zs*q+Da*Ft+hl*bi+au*Wo,f[6]=Zs*oe+Da*an+hl*Di+au*Bo,f[7]=Zs*_e+Da*nr+hl*Ro+au*ho,f[8]=(Zs=C[8])*N+(Da=C[9])*$e+(hl=C[10])*Dr+(au=C[11])*Lo,f[9]=Zs*q+Da*Ft+hl*bi+au*Wo,f[10]=Zs*oe+Da*an+hl*Di+au*Bo,f[11]=Zs*_e+Da*nr+hl*Ro+au*ho,f[12]=(Zs=C[12])*N+(Da=C[13])*$e+(hl=C[14])*Dr+(au=C[15])*Lo,f[13]=Zs*q+Da*Ft+hl*bi+au*Wo,f[14]=Zs*oe+Da*an+hl*Di+au*Bo,f[15]=Zs*_e+Da*nr+hl*Ro+au*ho,f}Math.hypot||(Math.hypot=function(){for(var f=arguments,m=0,C=arguments.length;C--;)m+=f[C]*f[C];return Math.sqrt(m)});var im,ep=Vg;function Ld(f,m,C){var N=m[0],q=m[1],oe=m[2],_e=m[3];return f[0]=C[0]*N+C[4]*q+C[8]*oe+C[12]*_e,f[1]=C[1]*N+C[5]*q+C[9]*oe+C[13]*_e,f[2]=C[2]*N+C[6]*q+C[10]*oe+C[14]*_e,f[3]=C[3]*N+C[7]*q+C[11]*oe+C[15]*_e,f}im=new Od(3),Od!=Float32Array&&(im[0]=0,im[1]=0,im[2]=0),function(){var f=new Od(4);Od!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0,f[3]=0)}();var g0=(function(){var f=new Od(2);Od!=Float32Array&&(f[0]=0,f[1]=0)}(),function(f){function m(C){f.call(this,C,Tg)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.createBucket=function(C){return new ad(C)},m.prototype.queryRadius=function(C){var N=C;return ld("circle-radius",this,N)+ld("circle-stroke-width",this,N)+bg(this.paint.get("circle-translate"))},m.prototype.queryIntersectsFeature=function(C,N,q,oe,_e,$e,Ft,an){for(var nr=xg(C,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),$e.angle,Ft),Dr=this.paint.get("circle-radius").evaluate(N,q)+this.paint.get("circle-stroke-width").evaluate(N,q),bi=this.paint.get("circle-pitch-alignment")==="map",Di=bi?nr:function(Ru,Su){return Ru.map(function(ih){return zm(ih,Su)})}(nr,an),Ro=bi?Dr*Ft:Dr,Lo=0,Wo=oe;Lof.width||q.height>f.height||C.x>f.width-q.width||C.y>f.height-q.height)throw new RangeError("out of range source coordinates for image copy");if(q.width>m.width||q.height>m.height||N.x>m.width-q.width||N.y>m.height-q.height)throw new RangeError("out of range destination coordinates for image copy");for(var _e=f.data,$e=m.data,Ft=0;Ft80*C){N=oe=f[0],q=_e=f[1];for(var Ro=C;Rooe&&(oe=$e),Ft>_e&&(_e=Ft);an=(an=Math.max(oe-N,_e-q))!==0?1/an:0}return P0(bi,Di,C,N,q,an),Di}function Gp(f,m,C,N,q){var oe,_e;if(q===pt(f,m,C,N)>0)for(oe=m;oe=m;oe-=N)_e=Se(oe,f[oe],f[oe+1],_e);return _e&&Bg(_e,_e.next)&&(wt(_e),_e=_e.next),_e}function Cf(f,m){if(!f)return f;m||(m=f);var C,N=f;do if(C=!1,N.steiner||!Bg(N,N.next)&&ig(N.prev,N,N.next)!==0)N=N.next;else{if(wt(N),(N=m=N.prev)===N.next)break;C=!0}while(C||N!==m);return m}function P0(f,m,C,N,q,oe,_e){if(f){!_e&&oe&&function(nr,Dr,bi,Di){var Ro=nr;do Ro.z===null&&(Ro.z=Gg(Ro.x,Ro.y,Dr,bi,Di)),Ro.prevZ=Ro.prev,Ro.nextZ=Ro.next,Ro=Ro.next;while(Ro!==nr);Ro.prevZ.nextZ=null,Ro.prevZ=null,function(Lo){var Wo,Bo,ho,Zs,Da,hl,au,Ru,Su=1;do{for(Bo=Lo,Lo=null,Da=null,hl=0;Bo;){for(hl++,ho=Bo,au=0,Wo=0;Wo0||Ru>0&&ho;)au!==0&&(Ru===0||!ho||Bo.z<=ho.z)?(Zs=Bo,Bo=Bo.nextZ,au--):(Zs=ho,ho=ho.nextZ,Ru--),Da?Da.nextZ=Zs:Lo=Zs,Zs.prevZ=Da,Da=Zs;Bo=ho}Da.nextZ=null,Su*=2}while(hl>1)}(Ro)}(f,N,q,oe);for(var $e,Ft,an=f;f.prev!==f.next;)if($e=f.prev,Ft=f.next,oe?Om(f,N,q,oe):H0(f))m.push($e.i/C),m.push(f.i/C),m.push(Ft.i/C),wt(f),f=Ft.next,an=Ft.next;else if((f=Ft)===an){_e?_e===1?P0(f=R0(Cf(f),m,C),m,C,N,q,oe,2):_e===2&&hv(f,m,C,N,q,oe):P0(Cf(f),m,C,N,q,oe,1);break}}}function H0(f){var m=f.prev,C=f,N=f.next;if(ig(m,C,N)>=0)return!1;for(var q=f.next.next;q!==f.prev;){if(Hm(m.x,m.y,C.x,C.y,N.x,N.y,q.x,q.y)&&ig(q.prev,q,q.next)>=0)return!1;q=q.next}return!0}function Om(f,m,C,N){var q=f.prev,oe=f,_e=f.next;if(ig(q,oe,_e)>=0)return!1;for(var $e=q.x>oe.x?q.x>_e.x?q.x:_e.x:oe.x>_e.x?oe.x:_e.x,Ft=q.y>oe.y?q.y>_e.y?q.y:_e.y:oe.y>_e.y?oe.y:_e.y,an=Gg(q.x=an&&bi&&bi.z<=nr;){if(Dr!==f.prev&&Dr!==f.next&&Hm(q.x,q.y,oe.x,oe.y,_e.x,_e.y,Dr.x,Dr.y)&&ig(Dr.prev,Dr,Dr.next)>=0||(Dr=Dr.prevZ,bi!==f.prev&&bi!==f.next&&Hm(q.x,q.y,oe.x,oe.y,_e.x,_e.y,bi.x,bi.y)&&ig(bi.prev,bi,bi.next)>=0))return!1;bi=bi.nextZ}for(;Dr&&Dr.z>=an;){if(Dr!==f.prev&&Dr!==f.next&&Hm(q.x,q.y,oe.x,oe.y,_e.x,_e.y,Dr.x,Dr.y)&&ig(Dr.prev,Dr,Dr.next)>=0)return!1;Dr=Dr.prevZ}for(;bi&&bi.z<=nr;){if(bi!==f.prev&&bi!==f.next&&Hm(q.x,q.y,oe.x,oe.y,_e.x,_e.y,bi.x,bi.y)&&ig(bi.prev,bi,bi.next)>=0)return!1;bi=bi.nextZ}return!0}function R0(f,m,C){var N=f;do{var q=N.prev,oe=N.next.next;!Bg(q,oe)&&m0(q,N,N.next,oe)&&ge(q,oe)&&ge(oe,q)&&(m.push(q.i/C),m.push(N.i/C),m.push(oe.i/C),wt(N),wt(N.next),N=f=oe),N=N.next}while(N!==f);return Cf(N)}function hv(f,m,C,N,q,oe){var _e=f;do{for(var $e=_e.next.next;$e!==_e.prev;){if(_e.i!==$e.i&&r0(_e,$e)){var Ft=j(_e,$e);return _e=Cf(_e,_e.next),Ft=Cf(Ft,Ft.next),P0(_e,m,C,N,q,oe),void P0(Ft,m,C,N,q,oe)}$e=$e.next}_e=_e.next}while(_e!==f)}function dv(f,m){return f.x-m.x}function Kd(f,m){if(m=function(N,q){var oe,_e=q,$e=N.x,Ft=N.y,an=-1/0;do{if(Ft<=_e.y&&Ft>=_e.next.y&&_e.next.y!==_e.y){var nr=_e.x+(Ft-_e.y)*(_e.next.x-_e.x)/(_e.next.y-_e.y);if(nr<=$e&&nr>an){if(an=nr,nr===$e){if(Ft===_e.y)return _e;if(Ft===_e.next.y)return _e.next}oe=_e.x<_e.next.x?_e:_e.next}}_e=_e.next}while(_e!==q);if(!oe)return null;if($e===an)return oe;var Dr,bi=oe,Di=oe.x,Ro=oe.y,Lo=1/0;_e=oe;do $e>=_e.x&&_e.x>=Di&&$e!==_e.x&&Hm(Ftoe.x||_e.x===oe.x&&G0(oe,_e)))&&(oe=_e,Lo=Dr)),_e=_e.next;while(_e!==bi);return oe}(f,m)){var C=j(m,f);Cf(m,m.next),Cf(C,C.next)}}function G0(f,m){return ig(f.prev,f,m.prev)<0&&ig(m.next,f,f.next)<0}function Gg(f,m,C,N,q){return(f=1431655765&((f=858993459&((f=252645135&((f=16711935&((f=32767*(f-C)*q)|f<<8))|f<<4))|f<<2))|f<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m=32767*(m-N)*q)|m<<8))|m<<4))|m<<2))|m<<1))<<1}function u0(f){var m=f,C=f;do(m.x=0&&(f-_e)*(N-$e)-(C-_e)*(m-$e)>=0&&(C-_e)*(oe-$e)-(q-_e)*(N-$e)>=0}function r0(f,m){return f.next.i!==m.i&&f.prev.i!==m.i&&!function(C,N){var q=C;do{if(q.i!==C.i&&q.next.i!==C.i&&q.i!==N.i&&q.next.i!==N.i&&m0(q,q.next,C,N))return!0;q=q.next}while(q!==C);return!1}(f,m)&&(ge(f,m)&&ge(m,f)&&function(C,N){var q=C,oe=!1,_e=(C.x+N.x)/2,$e=(C.y+N.y)/2;do q.y>$e!=q.next.y>$e&&q.next.y!==q.y&&_e<(q.next.x-q.x)*($e-q.y)/(q.next.y-q.y)+q.x&&(oe=!oe),q=q.next;while(q!==C);return oe}(f,m)&&(ig(f.prev,f,m.prev)||ig(f,m.prev,m))||Bg(f,m)&&ig(f.prev,f,f.next)>0&&ig(m.prev,m,m.next)>0)}function ig(f,m,C){return(m.y-f.y)*(C.x-m.x)-(m.x-f.x)*(C.y-m.y)}function Bg(f,m){return f.x===m.x&&f.y===m.y}function m0(f,m,C,N){var q=Mm(ig(f,m,C)),oe=Mm(ig(f,m,N)),_e=Mm(ig(C,N,f)),$e=Mm(ig(C,N,m));return q!==oe&&_e!==$e||!(q!==0||!Lm(f,C,m))||!(oe!==0||!Lm(f,N,m))||!(_e!==0||!Lm(C,f,N))||!($e!==0||!Lm(C,m,N))}function Lm(f,m,C){return m.x<=Math.max(f.x,C.x)&&m.x>=Math.min(f.x,C.x)&&m.y<=Math.max(f.y,C.y)&&m.y>=Math.min(f.y,C.y)}function Mm(f){return f>0?1:f<0?-1:0}function ge(f,m){return ig(f.prev,f,f.next)<0?ig(f,m,f.next)>=0&&ig(f,f.prev,m)>=0:ig(f,m,f.prev)<0||ig(f,f.next,m)<0}function j(f,m){var C=new Zn(f.i,f.x,f.y),N=new Zn(m.i,m.x,m.y),q=f.next,oe=m.prev;return f.next=m,m.prev=f,C.next=q,q.prev=C,N.next=C,C.prev=N,oe.next=N,N.prev=oe,N}function Se(f,m,C,N){var q=new Zn(f,m,C);return N?(q.next=N.next,q.prev=N,N.next.prev=q,N.next=q):(q.prev=q,q.next=q),q}function wt(f){f.next.prev=f.prev,f.prev.next=f.next,f.prevZ&&(f.prevZ.nextZ=f.nextZ),f.nextZ&&(f.nextZ.prevZ=f.prevZ)}function Zn(f,m,C){this.i=f,this.x=m,this.y=C,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pt(f,m,C,N){for(var q=0,oe=m,_e=C-N;oeFt;){if(an-Ft>600){var Dr=an-Ft+1,bi=$e-Ft+1,Di=Math.log(Dr),Ro=.5*Math.exp(2*Di/3),Lo=.5*Math.sqrt(Di*Ro*(Dr-Ro)/Dr)*(bi-Dr/2<0?-1:1);oe(_e,$e,Math.max(Ft,Math.floor($e-bi*Ro/Dr+Lo)),Math.min(an,Math.floor($e+(Dr-bi)*Ro/Dr+Lo)),nr)}var Wo=_e[$e],Bo=Ft,ho=an;for(Wt(_e,Ft,$e),nr(_e[an],Wo)>0&&Wt(_e,Ft,an);Bo0;)ho--}nr(_e[Ft],Wo)===0?Wt(_e,Ft,ho):Wt(_e,++ho,an),ho<=$e&&(Ft=ho+1),$e<=ho&&(an=ho-1)}})(f,m,C||0,N||f.length-1,q||cn)}function Wt(f,m,C){var N=f[m];f[m]=f[C],f[C]=N}function cn(f,m){return fm?1:0}function ln(f,m){var C=f.length;if(C<=1)return[f];for(var N,q,oe=[],_e=0;_e1)for(var Ft=0;Ft0&&C.holes.push(N+=f[q-1].length)}return C},Fg.default=tv;var fr=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(m){return m.id}),this.index=f.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ah,this.indexArray=new S,this.indexArray2=new Qt,this.programConfigurations=new _d(f.layers,f.zoom),this.segments=new Mi,this.segments2=new Mi,this.stateDependentLayerIds=this.layers.filter(function(m){return m.isStateDependent()}).map(function(m){return m.id})};fr.prototype.populate=function(f,m,C){this.hasPattern=Mn("fill",this.layers,m);for(var N=this.layers[0].layout.get("fill-sort-key"),q=[],oe=0,_e=f;oe<_e.length;oe+=1){var $e=_e[oe],Ft=$e.feature,an=$e.id,nr=$e.index,Dr=$e.sourceLayerIndex,bi=this.layers[0]._featureFilter.needGeometry,Di=yh(Ft,bi);if(this.layers[0]._featureFilter.filter(new sd(this.zoom),Di,C)){var Ro=N?N.evaluate(Di,{},C,m.availableImages):void 0,Lo={id:an,properties:Ft.properties,type:Ft.type,sourceLayerIndex:Dr,index:nr,geometry:bi?Di.geometry:yc(Ft),patterns:{},sortKey:Ro};q.push(Lo)}}N&&q.sort(function(Ru,Su){return Ru.sortKey-Su.sortKey});for(var Wo=0,Bo=q;Wo>3}if(q--,N===1||N===2)oe+=f.readSVarint(),_e+=f.readSVarint(),N===1&&(m&&$e.push(m),m=[]),m.push(new Y(oe,_e));else{if(N!==7)throw new Error("unknown command "+N);m&&m.push(m[0].clone())}}return m&&$e.push(m),$e},Fe.prototype.bbox=function(){var f=this._pbf;f.pos=this._geometry;for(var m=f.readVarint()+f.pos,C=1,N=0,q=0,oe=0,_e=1/0,$e=-1/0,Ft=1/0,an=-1/0;f.pos>3}if(N--,C===1||C===2)(q+=f.readSVarint())<_e&&(_e=q),q>$e&&($e=q),(oe+=f.readSVarint())an&&(an=oe);else if(C!==7)throw new Error("unknown command "+C)}return[_e,Ft,$e,an]},Fe.prototype.toGeoJSON=function(f,m,C){var N,q,oe=this.extent*Math.pow(2,C),_e=this.extent*f,$e=this.extent*m,Ft=this.loadGeometry(),an=Fe.types[this.type];function nr(Di){for(var Ro=0;Ro>3;q=_e===1?N.readString():_e===2?N.readFloat():_e===3?N.readDouble():_e===4?N.readVarint64():_e===5?N.readVarint():_e===6?N.readSVarint():_e===7?N.readBoolean():null}return q}(C))}function cr(f,m,C){if(f===3){var N=new An(C,C.readVarint()+C.pos);N.length&&(m[N.name]=N)}}wn.prototype.feature=function(f){if(f<0||f>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[f];var m=this._pbf.readVarint()+this._pbf.pos;return new Me(this._pbf,m,this.extent,this._keys,this._values)};var Tr={VectorTile:function(f,m){this.layers=f.readFields(cr,{},m)},VectorTileFeature:Me,VectorTileLayer:An},Nr=Tr.VectorTileFeature.types,Pi=Math.pow(2,13);function Bn(f,m,C,N,q,oe,_e,$e){f.emplaceBack(m,C,2*Math.floor(N*Pi)+_e,q*Pi*2,oe*Pi*2,Math.round($e))}var Or=function(f){this.zoom=f.zoom,this.overscaling=f.overscaling,this.layers=f.layers,this.layerIds=this.layers.map(function(m){return m.id}),this.index=f.index,this.hasPattern=!1,this.layoutVertexArray=new Sd,this.indexArray=new S,this.programConfigurations=new _d(f.layers,f.zoom),this.segments=new Mi,this.stateDependentLayerIds=this.layers.filter(function(m){return m.isStateDependent()}).map(function(m){return m.id})};function Vn(f,m){return f.x===m.x&&(f.x<0||f.x>8192)||f.y===m.y&&(f.y<0||f.y>8192)}Or.prototype.populate=function(f,m,C){this.features=[],this.hasPattern=Mn("fill-extrusion",this.layers,m);for(var N=0,q=f;N8192})||fo.every(function(Ys){return Ys.y<0})||fo.every(function(Ys){return Ys.y>8192})))for(var Lo=0,Wo=0;Wo=1){var ho=Ro[Wo-1];if(!Vn(Bo,ho)){Dr.vertexLength+4>Mi.MAX_VERTEX_ARRAY_LENGTH&&(Dr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Zs=Bo.sub(ho)._perp()._unit(),Da=ho.dist(Bo);Lo+Da>32768&&(Lo=0),Bn(this.layoutVertexArray,Bo.x,Bo.y,Zs.x,Zs.y,0,0,Lo),Bn(this.layoutVertexArray,Bo.x,Bo.y,Zs.x,Zs.y,0,1,Lo),Bn(this.layoutVertexArray,ho.x,ho.y,Zs.x,Zs.y,0,0,Lo+=Da),Bn(this.layoutVertexArray,ho.x,ho.y,Zs.x,Zs.y,0,1,Lo);var hl=Dr.vertexLength;this.indexArray.emplaceBack(hl,hl+2,hl+1),this.indexArray.emplaceBack(hl+1,hl+2,hl+3),Dr.vertexLength+=4,Dr.primitiveLength+=2}}}}if(Dr.vertexLength+Ft>Mi.MAX_VERTEX_ARRAY_LENGTH&&(Dr=this.segments.prepareSegment(Ft,this.layoutVertexArray,this.indexArray)),Nr[f.type]==="Polygon"){for(var au=[],Ru=[],Su=Dr.vertexLength,ih=0,_u=$e;ih<_u.length;ih+=1){var zc=_u[ih];if(zc.length!==0){zc!==$e[0]&&Ru.push(au.length/2);for(var Fn=0;Fn=2&&f[Ft-1].equals(f[Ft-2]);)Ft--;for(var an=0;an0;if(Ru&&Bo>an){var ih=nr.dist(Di);if(ih>2*Dr){var _u=nr.sub(nr.sub(Di)._mult(Dr/ih)._round());this.updateDistance(Di,_u),this.addCurrentVertex(_u,Lo,0,0,bi),Di=_u}}var zc=Di&&Ro,Fn=zc?C:$e?"butt":N;if(zc&&Fn==="round"&&(hlq&&(Fn="bevel"),Fn==="bevel"&&(hl>2&&(Fn="flipbevel"),hl100)ho=Wo.mult(-1);else{var ur=hl*Lo.add(Wo).mag()/Lo.sub(Wo).mag();ho._perp()._mult(ur*(Su?-1:1))}this.addCurrentVertex(nr,ho,0,0,bi),this.addCurrentVertex(nr,ho.mult(-1),0,0,bi)}else if(Fn==="bevel"||Fn==="fakeround"){var Hr=-Math.sqrt(hl*hl-1),gi=Su?Hr:0,fo=Su?0:Hr;if(Di&&this.addCurrentVertex(nr,Lo,gi,fo,bi),Fn==="fakeround")for(var Ys=Math.round(180*au/Math.PI/20),Pa=1;Pa2*Dr){var md=nr.add(Ro.sub(nr)._mult(Dr/xc)._round());this.updateDistance(nr,md),this.addCurrentVertex(md,Wo,0,0,bi),nr=md}}}}},wo.prototype.addCurrentVertex=function(f,m,C,N,q,oe){oe===void 0&&(oe=!1);var _e=m.y*N-m.x,$e=-m.y-m.x*N;this.addHalfVertex(f,m.x+m.y*C,m.y-m.x*C,oe,!1,C,q),this.addHalfVertex(f,_e,$e,oe,!0,-N,q),this.distance>vo/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(f,m,C,N,q,oe))},wo.prototype.addHalfVertex=function(f,m,C,N,q,oe,_e){var $e=.5*(this.lineClips?this.scaledDistance*(vo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((f.x<<1)+(N?1:0),(f.y<<1)+(q?1:0),Math.round(63*m)+128,Math.round(63*C)+128,1+(oe===0?0:oe<0?-1:1)|(63&$e)<<2,$e>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var Ft=_e.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ft),_e.primitiveLength++),q?this.e2=Ft:this.e1=Ft},wo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},wo.prototype.updateDistance=function(f,m){this.distance+=f.dist(m),this.updateScaledDistance()},lh("LineBucket",wo,{omit:["layers","patternFeatures"]});var jo=new Jf({"line-cap":new zh(nn.layout_line["line-cap"]),"line-join":new Xh(nn.layout_line["line-join"]),"line-miter-limit":new zh(nn.layout_line["line-miter-limit"]),"line-round-limit":new zh(nn.layout_line["line-round-limit"]),"line-sort-key":new Xh(nn.layout_line["line-sort-key"])}),cs={paint:new Jf({"line-opacity":new Xh(nn.paint_line["line-opacity"]),"line-color":new Xh(nn.paint_line["line-color"]),"line-translate":new zh(nn.paint_line["line-translate"]),"line-translate-anchor":new zh(nn.paint_line["line-translate-anchor"]),"line-width":new Xh(nn.paint_line["line-width"]),"line-gap-width":new Xh(nn.paint_line["line-gap-width"]),"line-offset":new Xh(nn.paint_line["line-offset"]),"line-blur":new Xh(nn.paint_line["line-blur"]),"line-dasharray":new Hh(nn.paint_line["line-dasharray"]),"line-pattern":new ed(nn.paint_line["line-pattern"]),"line-gradient":new _p(nn.paint_line["line-gradient"])}),layout:jo},oo=new(function(f){function m(){f.apply(this,arguments)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.possiblyEvaluate=function(C,N){return N=new sd(Math.floor(N.zoom),{now:N.now,fadeDuration:N.fadeDuration,zoomHistory:N.zoomHistory,transition:N.transition}),f.prototype.possiblyEvaluate.call(this,C,N)},m.prototype.evaluate=function(C,N,q,oe){return N=nt({},N,{zoom:Math.floor(N.zoom)}),f.prototype.evaluate.call(this,C,N,q,oe)},m}(Xh))(cs.paint.properties["line-width"].specification);oo.useIntegerZoom=!0;var ha=function(f){function m(C){f.call(this,C,cs),this.gradientVersion=0}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype._handleSpecialPaintPropertyUpdate=function(C){C==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Al,this.gradientVersion=(this.gradientVersion+1)%se)},m.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},m.prototype.recalculate=function(C,N){f.prototype.recalculate.call(this,C,N),this.paint._values["line-floorwidth"]=oo.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,C)},m.prototype.createBucket=function(C){return new wo(C)},m.prototype.queryRadius=function(C){var N=C,q=xo(ld("line-width",this,N),ld("line-gap-width",this,N)),oe=ld("line-offset",this,N);return q/2+Math.abs(oe)+bg(this.paint.get("line-translate"))},m.prototype.queryIntersectsFeature=function(C,N,q,oe,_e,$e,Ft){var an=xg(C,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),$e.angle,Ft),nr=Ft/2*xo(this.paint.get("line-width").evaluate(N,q),this.paint.get("line-gap-width").evaluate(N,q)),Dr=this.paint.get("line-offset").evaluate(N,q);return Dr&&(oe=function(bi,Di){for(var Ro=[],Lo=new Y(0,0),Wo=0;Wo=3){for(var Bo=0;Bo0?m+2*f:f}var ki=tf([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Os=tf([{name:"a_projected_pos",components:3,type:"Float32"}],4),Es=(tf([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),tf([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Cs=(tf([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),tf([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),$t=tf([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ar(f,m,C){return f.sections.forEach(function(N){N.text=function(q,oe,_e){var $e=oe.layout.get("text-transform").evaluate(_e,{});return $e==="uppercase"?q=q.toLocaleUpperCase():$e==="lowercase"&&(q=q.toLocaleLowerCase()),Xp.applyArabicShaping&&(q=Xp.applyArabicShaping(q)),q}(N.text,m,C)}),f}tf([{name:"triangle",components:3,type:"Uint16"}]),tf([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),tf([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),tf([{type:"Float32",name:"offsetX"}]),tf([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var si={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},Io=function(f,m,C,N,q){var oe,_e,$e=8*q-N-1,Ft=(1<<$e)-1,an=Ft>>1,nr=-7,Dr=C?q-1:0,bi=C?-1:1,Di=f[m+Dr];for(Dr+=bi,oe=Di&(1<<-nr)-1,Di>>=-nr,nr+=$e;nr>0;oe=256*oe+f[m+Dr],Dr+=bi,nr-=8);for(_e=oe&(1<<-nr)-1,oe>>=-nr,nr+=N;nr>0;_e=256*_e+f[m+Dr],Dr+=bi,nr-=8);if(oe===0)oe=1-an;else{if(oe===Ft)return _e?NaN:1/0*(Di?-1:1);_e+=Math.pow(2,N),oe-=an}return(Di?-1:1)*_e*Math.pow(2,oe-N)},ls=function(f,m,C,N,q,oe){var _e,$e,Ft,an=8*oe-q-1,nr=(1<>1,bi=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,Di=N?0:oe-1,Ro=N?1:-1,Lo=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?($e=isNaN(m)?1:0,_e=nr):(_e=Math.floor(Math.log(m)/Math.LN2),m*(Ft=Math.pow(2,-_e))<1&&(_e--,Ft*=2),(m+=_e+Dr>=1?bi/Ft:bi*Math.pow(2,1-Dr))*Ft>=2&&(_e++,Ft/=2),_e+Dr>=nr?($e=0,_e=nr):_e+Dr>=1?($e=(m*Ft-1)*Math.pow(2,q),_e+=Dr):($e=m*Math.pow(2,Dr-1)*Math.pow(2,q),_e=0));q>=8;f[C+Di]=255&$e,Di+=Ro,$e/=256,q-=8);for(_e=_e<0;f[C+Di]=255&_e,Di+=Ro,_e/=256,an-=8);f[C+Di-Ro]|=128*Lo},ua=lo;function lo(f){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(f)?f:new Uint8Array(f||0),this.pos=0,this.type=0,this.length=this.buf.length}lo.Varint=0,lo.Fixed64=1,lo.Bytes=2,lo.Fixed32=5;var So=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function No(f){return f.type===lo.Bytes?f.readVarint()+f.pos:f.pos+1}function Ls(f,m,C){return C?4294967296*m+(f>>>0):4294967296*(m>>>0)+(f>>>0)}function ma(f,m,C){var N=m<=16383?1:m<=2097151?2:m<=268435455?3:Math.floor(Math.log(m)/(7*Math.LN2));C.realloc(N);for(var q=C.pos-1;q>=f;q--)C.buf[q+N]=C.buf[q]}function Ne(f,m){for(var C=0;C>>8,f[C+2]=m>>>16,f[C+3]=m>>>24}function qs(f,m){return(f[m]|f[m+1]<<8|f[m+2]<<16)+(f[m+3]<<24)}function pa(f,m,C){f===1&&C.readMessage(vl,m)}function vl(f,m,C){if(f===3){var N=C.readMessage(Wa,{}),q=N.width,oe=N.height,_e=N.left,$e=N.top,Ft=N.advance;m.push({id:N.id,bitmap:new Im({width:q+6,height:oe+6},N.bitmap),metrics:{width:q,height:oe,left:_e,top:$e,advance:Ft}})}}function Wa(f,m,C){f===1?m.id=C.readVarint():f===2?m.bitmap=C.readBytes():f===3?m.width=C.readVarint():f===4?m.height=C.readVarint():f===5?m.left=C.readSVarint():f===6?m.top=C.readSVarint():f===7&&(m.advance=C.readVarint())}function yi(f){for(var m=0,C=0,N=0,q=f;N=0;bi--){var Di=_e[bi];if(!(Dr.w>Di.w||Dr.h>Di.h)){if(Dr.x=Di.x,Dr.y=Di.y,Ft=Math.max(Ft,Dr.y+Dr.h),$e=Math.max($e,Dr.x+Dr.w),Dr.w===Di.w&&Dr.h===Di.h){var Ro=_e.pop();bi<_e.length&&(_e[bi]=Ro)}else Dr.h===Di.h?(Di.x+=Dr.w,Di.w-=Dr.w):Dr.w===Di.w?(Di.y+=Dr.h,Di.h-=Dr.h):(_e.push({x:Di.x+Dr.w,y:Di.y,w:Di.w-Dr.w,h:Dr.h}),Di.y+=Dr.h,Di.h-=Dr.h);break}}return{w:$e,h:Ft,fill:m/($e*Ft)||0}}lo.prototype={destroy:function(){this.buf=null},readFields:function(f,m,C){for(C=C||this.length;this.pos>3,oe=this.pos;this.type=7&N,f(q,m,this),this.pos===oe&&this.skip(N)}return m},readMessage:function(f,m){return this.readFields(f,m,this.readVarint()+this.pos)},readFixed32:function(){var f=$s(this.buf,this.pos);return this.pos+=4,f},readSFixed32:function(){var f=qs(this.buf,this.pos);return this.pos+=4,f},readFixed64:function(){var f=$s(this.buf,this.pos)+4294967296*$s(this.buf,this.pos+4);return this.pos+=8,f},readSFixed64:function(){var f=$s(this.buf,this.pos)+4294967296*qs(this.buf,this.pos+4);return this.pos+=8,f},readFloat:function(){var f=Io(this.buf,this.pos,!0,23,4);return this.pos+=4,f},readDouble:function(){var f=Io(this.buf,this.pos,!0,52,8);return this.pos+=8,f},readVarint:function(f){var m,C,N=this.buf;return m=127&(C=N[this.pos++]),C<128?m:(m|=(127&(C=N[this.pos++]))<<7,C<128?m:(m|=(127&(C=N[this.pos++]))<<14,C<128?m:(m|=(127&(C=N[this.pos++]))<<21,C<128?m:function(q,oe,_e){var $e,Ft,an=_e.buf;if($e=(112&(Ft=an[_e.pos++]))>>4,Ft<128||($e|=(127&(Ft=an[_e.pos++]))<<3,Ft<128)||($e|=(127&(Ft=an[_e.pos++]))<<10,Ft<128)||($e|=(127&(Ft=an[_e.pos++]))<<17,Ft<128)||($e|=(127&(Ft=an[_e.pos++]))<<24,Ft<128)||($e|=(1&(Ft=an[_e.pos++]))<<31,Ft<128))return Ls(q,$e,oe);throw new Error("Expected varint not more than 10 bytes")}(m|=(15&(C=N[this.pos]))<<28,f,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var f=this.readVarint();return f%2==1?(f+1)/-2:f/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var f=this.readVarint()+this.pos,m=this.pos;return this.pos=f,f-m>=12&&So?function(C,N,q){return So.decode(C.subarray(N,q))}(this.buf,m,f):function(C,N,q){for(var oe="",_e=N;_e239?4:nr>223?3:nr>191?2:1;if(_e+bi>q)break;bi===1?nr<128&&(Dr=nr):bi===2?(192&($e=C[_e+1]))==128&&(Dr=(31&nr)<<6|63&$e)<=127&&(Dr=null):bi===3?(Ft=C[_e+2],(192&($e=C[_e+1]))==128&&(192&Ft)==128&&((Dr=(15&nr)<<12|(63&$e)<<6|63&Ft)<=2047||Dr>=55296&&Dr<=57343)&&(Dr=null)):bi===4&&(Ft=C[_e+2],an=C[_e+3],(192&($e=C[_e+1]))==128&&(192&Ft)==128&&(192&an)==128&&((Dr=(15&nr)<<18|(63&$e)<<12|(63&Ft)<<6|63&an)<=65535||Dr>=1114112)&&(Dr=null)),Dr===null?(Dr=65533,bi=1):Dr>65535&&(Dr-=65536,oe+=String.fromCharCode(Dr>>>10&1023|55296),Dr=56320|1023&Dr),oe+=String.fromCharCode(Dr),_e+=bi}return oe}(this.buf,m,f)},readBytes:function(){var f=this.readVarint()+this.pos,m=this.buf.subarray(this.pos,f);return this.pos=f,m},readPackedVarint:function(f,m){if(this.type!==lo.Bytes)return f.push(this.readVarint(m));var C=No(this);for(f=f||[];this.pos127;);else if(m===lo.Bytes)this.pos=this.readVarint()+this.pos;else if(m===lo.Fixed32)this.pos+=4;else{if(m!==lo.Fixed64)throw new Error("Unimplemented type: "+m);this.pos+=8}},writeTag:function(f,m){this.writeVarint(f<<3|m)},realloc:function(f){for(var m=this.length||16;m268435455||f<0?function(m,C){var N,q;if(m>=0?(N=m%4294967296|0,q=m/4294967296|0):(q=~(-m/4294967296),4294967295^(N=~(-m%4294967296))?N=N+1|0:(N=0,q=q+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");C.realloc(10),function(oe,_e,$e){$e.buf[$e.pos++]=127&oe|128,oe>>>=7,$e.buf[$e.pos++]=127&oe|128,oe>>>=7,$e.buf[$e.pos++]=127&oe|128,oe>>>=7,$e.buf[$e.pos++]=127&oe|128,$e.buf[$e.pos]=127&(oe>>>=7)}(N,0,C),function(oe,_e){var $e=(7&oe)<<4;_e.buf[_e.pos++]|=$e|((oe>>>=3)?128:0),oe&&(_e.buf[_e.pos++]=127&oe|((oe>>>=7)?128:0),oe&&(_e.buf[_e.pos++]=127&oe|((oe>>>=7)?128:0),oe&&(_e.buf[_e.pos++]=127&oe|((oe>>>=7)?128:0),oe&&(_e.buf[_e.pos++]=127&oe|((oe>>>=7)?128:0),oe&&(_e.buf[_e.pos++]=127&oe)))))}(q,C)}(f,this):(this.realloc(4),this.buf[this.pos++]=127&f|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=127&(f>>>=7)|(f>127?128:0),f<=127||(this.buf[this.pos++]=f>>>7&127))))},writeSVarint:function(f){this.writeVarint(f<0?2*-f-1:2*f)},writeBoolean:function(f){this.writeVarint(!!f)},writeString:function(f){f=String(f),this.realloc(4*f.length),this.pos++;var m=this.pos;this.pos=function(N,q,oe){for(var _e,$e,Ft=0;Ft55295&&_e<57344){if(!$e){_e>56319||Ft+1===q.length?(N[oe++]=239,N[oe++]=191,N[oe++]=189):$e=_e;continue}if(_e<56320){N[oe++]=239,N[oe++]=191,N[oe++]=189,$e=_e;continue}_e=$e-55296<<10|_e-56320|65536,$e=null}else $e&&(N[oe++]=239,N[oe++]=191,N[oe++]=189,$e=null);_e<128?N[oe++]=_e:(_e<2048?N[oe++]=_e>>6|192:(_e<65536?N[oe++]=_e>>12|224:(N[oe++]=_e>>18|240,N[oe++]=_e>>12&63|128),N[oe++]=_e>>6&63|128),N[oe++]=63&_e|128)}return oe}(this.buf,f,this.pos);var C=this.pos-m;C>=128&&ma(m,C,this),this.pos=m-1,this.writeVarint(C),this.pos+=C},writeFloat:function(f){this.realloc(4),ls(this.buf,f,this.pos,!0,23,4),this.pos+=4},writeDouble:function(f){this.realloc(8),ls(this.buf,f,this.pos,!0,52,8),this.pos+=8},writeBytes:function(f){var m=f.length;this.writeVarint(m),this.realloc(m);for(var C=0;C=128&&ma(C,N,this),this.pos=C-1,this.writeVarint(N),this.pos+=N},writeMessage:function(f,m,C){this.writeTag(f,lo.Bytes),this.writeRawMessage(m,C)},writePackedVarint:function(f,m){m.length&&this.writeMessage(f,Ne,m)},writePackedSVarint:function(f,m){m.length&&this.writeMessage(f,ja,m)},writePackedBoolean:function(f,m){m.length&&this.writeMessage(f,ta,m)},writePackedFloat:function(f,m){m.length&&this.writeMessage(f,Ol,m)},writePackedDouble:function(f,m){m.length&&this.writeMessage(f,ll,m)},writePackedFixed32:function(f,m){m.length&&this.writeMessage(f,ga,m)},writePackedSFixed32:function(f,m){m.length&&this.writeMessage(f,qa,m)},writePackedFixed64:function(f,m){m.length&&this.writeMessage(f,bs,m)},writePackedSFixed64:function(f,m){m.length&&this.writeMessage(f,$i,m)},writeBytesField:function(f,m){this.writeTag(f,lo.Bytes),this.writeBytes(m)},writeFixed32Field:function(f,m){this.writeTag(f,lo.Fixed32),this.writeFixed32(m)},writeSFixed32Field:function(f,m){this.writeTag(f,lo.Fixed32),this.writeSFixed32(m)},writeFixed64Field:function(f,m){this.writeTag(f,lo.Fixed64),this.writeFixed64(m)},writeSFixed64Field:function(f,m){this.writeTag(f,lo.Fixed64),this.writeSFixed64(m)},writeVarintField:function(f,m){this.writeTag(f,lo.Varint),this.writeVarint(m)},writeSVarintField:function(f,m){this.writeTag(f,lo.Varint),this.writeSVarint(m)},writeStringField:function(f,m){this.writeTag(f,lo.Bytes),this.writeString(m)},writeFloatField:function(f,m){this.writeTag(f,lo.Fixed32),this.writeFloat(m)},writeDoubleField:function(f,m){this.writeTag(f,lo.Fixed64),this.writeDouble(m)},writeBooleanField:function(f,m){this.writeVarintField(f,!!m)}};var ss=function(f,m){var C=m.pixelRatio,N=m.version,q=m.stretchX,oe=m.stretchY,_e=m.content;this.paddedRect=f,this.pixelRatio=C,this.stretchX=q,this.stretchY=oe,this.content=_e,this.version=N},Ws={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Ws.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Ws.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Ws.tlbr.get=function(){return this.tl.concat(this.br)},Ws.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ss.prototype,Ws);var Ra=function(f,m){var C={},N={};this.haveRenderCallbacks=[];var q=[];this.addImages(f,C,q),this.addImages(m,N,q);var oe=yi(q),_e=new xm({width:oe.w||1,height:oe.h||1});for(var $e in f){var Ft=f[$e],an=C[$e].paddedRect;xm.copy(Ft.data,_e,{x:0,y:0},{x:an.x+1,y:an.y+1},Ft.data)}for(var nr in m){var Dr=m[nr],bi=N[nr].paddedRect,Di=bi.x+1,Ro=bi.y+1,Lo=Dr.data.width,Wo=Dr.data.height;xm.copy(Dr.data,_e,{x:0,y:0},{x:Di,y:Ro},Dr.data),xm.copy(Dr.data,_e,{x:0,y:Wo-1},{x:Di,y:Ro-1},{width:Lo,height:1}),xm.copy(Dr.data,_e,{x:0,y:0},{x:Di,y:Ro+Wo},{width:Lo,height:1}),xm.copy(Dr.data,_e,{x:Lo-1,y:0},{x:Di-1,y:Ro},{width:1,height:Wo}),xm.copy(Dr.data,_e,{x:0,y:0},{x:Di+Lo,y:Ro},{width:1,height:Wo})}this.image=_e,this.iconPositions=C,this.patternPositions=N};Ra.prototype.addImages=function(f,m,C){for(var N in f){var q=f[N],oe={x:0,y:0,w:q.data.width+2,h:q.data.height+2};C.push(oe),m[N]=new ss(oe,q),q.hasRenderCallback&&this.haveRenderCallbacks.push(N)}},Ra.prototype.patchUpdatedImages=function(f,m){for(var C in f.dispatchRenderCallbacks(this.haveRenderCallbacks),f.updatedImages)this.patchUpdatedImage(this.iconPositions[C],f.getImage(C),m),this.patchUpdatedImage(this.patternPositions[C],f.getImage(C),m)},Ra.prototype.patchUpdatedImage=function(f,m,C){if(f&&m&&f.version!==m.version){f.version=m.version;var N=f.tl;C.update(m.data,void 0,{x:N[0],y:N[1]})}},lh("ImagePosition",ss),lh("ImageAtlas",Ra);var Nl={horizontal:1,vertical:2,horizontalOnly:3},zu=function(){this.scale=1,this.fontStack="",this.imageName=null};zu.forText=function(f,m){var C=new zu;return C.scale=f||1,C.fontStack=m,C},zu.forImage=function(f){var m=new zu;return m.imageName=f,m};var Va=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Sc(f,m,C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro,Lo){var Wo,Bo=Va.fromFeature(f,q);Dr===Nl.vertical&&Bo.verticalizePunctuation();var ho=Xp.processBidirectionalText,Zs=Xp.processStyledBidirectionalText;if(ho&&Bo.sections.length===1){Wo=[];for(var Da=0,hl=ho(Bo.toString(),gc(Bo,an,oe,m,N,Di,Ro));Da0&&Mr>Ph&&(Ph=Mr)}else{var di=Ys[Gd.fontStack],Li=di&&di[F];if(Li&&Li.rect)de=Li.rect,K=Li.metrics;else{var Co=fo[Gd.fontStack],Zo=Co&&Co[F];if(!Zo)continue;K=Zo.metrics}I=24*(Ff-Gd.scale)}st?(gi.verticalizable=!0,Xl.push({glyph:F,imageName:Re,x:pd,y:bp+I,vertical:st,scale:Gd.scale,fontStack:Gd.fontStack,sectionIndex:Sp,metrics:K,rect:de}),pd+=gt*Gd.scale+md):(Xl.push({glyph:F,imageName:Re,x:pd,y:bp+I,vertical:st,scale:Gd.scale,fontStack:Gd.fontStack,sectionIndex:Sp,metrics:K,rect:de}),pd+=K.advance*Gd.scale+md)}Xl.length!==0&&(kp=Math.max(pd-md,kp),uc(Xl,0,Xl.length-1,rf,Ph)),pd=0;var gs=Ha*Ff+Ph;Pf.lineOffset=Math.max(Ph,Ag),bp+=gs,Xd=Math.max(gs,Xd),++es}else bp+=Ha,++es}var ca,Aa=bp- -17,Ga=Kc(ql),Pl=Ga.horizontalAlign,ul=Ga.verticalAlign;(function(Bl,Uu,oh,Md,Xf,Nd,Bd,xd,Sf){var Jh,Oh=(Uu-oh)*Xf;Jh=Nd!==Bd?-xd*Md- -17:(-Md*Sf+.5)*Bd;for(var ap=0,Rf=Bl;ap=0&&N>=f&&Il[this.text.charCodeAt(N)];N--)C--;this.text=this.text.substring(f,C),this.sectionIndex=this.sectionIndex.slice(f,C)},Va.prototype.substring=function(f,m){var C=new Va;return C.text=this.text.substring(f,m),C.sectionIndex=this.sectionIndex.slice(f,m),C.sections=this.sections,C},Va.prototype.toString=function(){return this.text},Va.prototype.getMaxScale=function(){var f=this;return this.sectionIndex.reduce(function(m,C){return Math.max(m,f.sections[C].scale)},0)},Va.prototype.addTextSection=function(f,m){this.text+=f.text,this.sections.push(zu.forText(f.scale,f.fontStack||m));for(var C=this.sections.length-1,N=0;N=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Il={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Bc={};function xu(f,m,C,N,q,oe){if(m.imageName){var _e=N[m.imageName];return _e?_e.displaySize[0]*m.scale*24/oe+q:0}var $e=C[m.fontStack],Ft=$e&&$e[f];return Ft?Ft.metrics.advance*m.scale+q:0}function Yc(f,m,C,N){var q=Math.pow(f-m,2);return N?f=0,Dr=0,bi=0;bi-C/2;){if(--_e<0)return!1;$e-=f[_e].dist(oe),oe=f[_e]}$e+=f[_e].dist(f[_e+1]),_e++;for(var Ft=[],an=0;$eN;)an-=Ft.shift().angleDelta;if(an>q)return!1;_e++,$e+=nr.dist(Dr)}return!0}function Uo(f){for(var m=0,C=0;Can){var Ro=(an-Ft)/Di,Lo=ks(Dr.x,bi.x,Ro),Wo=ks(Dr.y,bi.y,Ro),Bo=new rd(Lo,Wo,bi.angleTo(Dr),nr);return Bo._round(),!_e||Fd(f,Bo,$e,_e,m)?Bo:void 0}Ft+=Di}}function Ed(f,m,C,N,q,oe,_e,$e,Ft){var an=rl(N,oe,_e),nr=_c(N,q),Dr=nr*_e,bi=f[0].x===0||f[0].x===Ft||f[0].y===0||f[0].y===Ft;return m-Dr=0&&Pa=0&&Ns=0&&_u+Ru<=Su){var Ha=new rd(Pa,Ns,fo,Fn);Ha._round(),Bo&&!Fd(Ro,Ha,Zs,Bo,ho)||zc.push(Ha)}}ih+=gi}return hl||zc.length||Da||(zc=Di(Ro,ih/2,Wo,Bo,ho,Zs,Da,!0,au)),zc}(f,bi?m/2*$e%m:(nr/2+2*oe)*_e*$e%m,m,an,C,Dr,bi,!1,Ft)}function Rg(f,m,C,N,q){for(var oe=[],_e=0;_e=N&&Dr.x>=N||(nr.x>=N?nr=new Y(N,nr.y+(N-nr.x)/(Dr.x-nr.x)*(Dr.y-nr.y))._round():Dr.x>=N&&(Dr=new Y(N,nr.y+(N-nr.x)/(Dr.x-nr.x)*(Dr.y-nr.y))._round()),nr.y>=q&&Dr.y>=q||(nr.y>=q?nr=new Y(nr.x+(q-nr.y)/(Dr.y-nr.y)*(Dr.x-nr.x),q)._round():Dr.y>=q&&(Dr=new Y(nr.x+(q-nr.y)/(Dr.y-nr.y)*(Dr.x-nr.x),q)._round()),Ft&&nr.equals(Ft[Ft.length-1])||oe.push(Ft=[nr]),Ft.push(Dr)))))}return oe}function Hs(f,m,C,N){var q=[],oe=f.image,_e=oe.pixelRatio,$e=oe.paddedRect.w-2,Ft=oe.paddedRect.h-2,an=f.right-f.left,nr=f.bottom-f.top,Dr=oe.stretchX||[[0,$e]],bi=oe.stretchY||[[0,Ft]],Di=function(Pa,Ns){return Pa+Ns[1]-Ns[0]},Ro=Dr.reduce(Di,0),Lo=bi.reduce(Di,0),Wo=$e-Ro,Bo=Ft-Lo,ho=0,Zs=Ro,Da=0,hl=Lo,au=0,Ru=Wo,Su=0,ih=Bo;if(oe.content&&N){var _u=oe.content;ho=we(Dr,0,_u[0]),Da=we(bi,0,_u[1]),Zs=we(Dr,_u[0],_u[2]),hl=we(bi,_u[1],_u[3]),au=_u[0]-ho,Su=_u[1]-Da,Ru=_u[2]-_u[0]-Zs,ih=_u[3]-_u[1]-hl}var zc=function(Pa,Ns,Ha,ql){var As=He(Pa.stretch-ho,Zs,an,f.left),xc=Jt(Pa.fixed-au,Ru,Pa.stretch,Ro),md=He(Ns.stretch-Da,hl,nr,f.top),Uh=Jt(Ns.fixed-Su,ih,Ns.stretch,Lo),Ch=He(Ha.stretch-ho,Zs,an,f.left),pd=Jt(Ha.fixed-au,Ru,Ha.stretch,Ro),bp=He(ql.stretch-Da,hl,nr,f.top),kp=Jt(ql.fixed-Su,ih,ql.stretch,Lo),Xd=new Y(As,md),rf=new Y(Ch,md),es=new Y(Ch,bp),Rl=new Y(As,bp),sf=new Y(xc/_e,Uh/_e),Ad=new Y(pd/_e,kp/_e),Ff=m*Math.PI/180;if(Ff){var Ag=Math.sin(Ff),Pf=Math.cos(Ff),Xl=[Pf,-Ag,Ag,Pf];Xd._matMult(Xl),rf._matMult(Xl),Rl._matMult(Xl),es._matMult(Xl)}var Ph=Pa.stretch+Pa.fixed,cf=Ns.stretch+Ns.fixed;return{tl:Xd,tr:rf,bl:Rl,br:es,tex:{x:oe.paddedRect.x+1+Ph,y:oe.paddedRect.y+1+cf,w:Ha.stretch+Ha.fixed-Ph,h:ql.stretch+ql.fixed-cf},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sf,pixelOffsetBR:Ad,minFontScaleX:Ru/_e/an,minFontScaleY:ih/_e/nr,isSDF:C}};if(N&&(oe.stretchX||oe.stretchY))for(var Fn=Ee(Dr,Wo,Ro),ur=Ee(bi,Bo,Lo),Hr=0;Hr0&&(Di=Math.max(10,Di),this.circleDiameter=Di)}else{var Ro=oe.top*_e-$e,Lo=oe.bottom*_e+$e,Wo=oe.left*_e-$e,Bo=oe.right*_e+$e,ho=oe.collisionPadding;if(ho&&(Wo-=ho[0]*_e,Ro-=ho[1]*_e,Bo+=ho[2]*_e,Lo+=ho[3]*_e),an){var Zs=new Y(Wo,Ro),Da=new Y(Bo,Ro),hl=new Y(Wo,Lo),au=new Y(Bo,Lo),Ru=an*Math.PI/180;Zs._rotate(Ru),Da._rotate(Ru),hl._rotate(Ru),au._rotate(Ru),Wo=Math.min(Zs.x,Da.x,hl.x,au.x),Bo=Math.max(Zs.x,Da.x,hl.x,au.x),Ro=Math.min(Zs.y,Da.y,hl.y,au.y),Lo=Math.max(Zs.y,Da.y,hl.y,au.y)}f.emplaceBack(m.x,m.y,Wo,Ro,Bo,Lo,C,N,q)}this.boxEndIndex=f.length},Hn=function(f,m){if(f===void 0&&(f=[]),m===void 0&&(m=In),this.data=f,this.length=this.data.length,this.compare=m,this.length>0)for(var C=(this.length>>1)-1;C>=0;C--)this._down(C)};function In(f,m){return fm?1:0}function Jr(f,m,C){m===void 0&&(m=1),C===void 0&&(C=!1);for(var N=1/0,q=1/0,oe=-1/0,_e=-1/0,$e=f[0],Ft=0;Ft<$e.length;Ft++){var an=$e[Ft];(!Ft||an.xoe)&&(oe=an.x),(!Ft||an.y>_e)&&(_e=an.y)}var nr=Math.min(oe-N,_e-q),Dr=nr/2,bi=new Hn([],_o);if(nr===0)return new Y(N,q);for(var Di=N;DiLo.d||!Lo.d)&&(Lo=Bo,C&&console.log("found best %d after %d probes",Math.round(1e4*Bo.d)/1e4,Wo)),Bo.max-Lo.d<=m||(bi.push(new Xo(Bo.p.x-(Dr=Bo.h/2),Bo.p.y-Dr,Dr,f)),bi.push(new Xo(Bo.p.x+Dr,Bo.p.y-Dr,Dr,f)),bi.push(new Xo(Bo.p.x-Dr,Bo.p.y+Dr,Dr,f)),bi.push(new Xo(Bo.p.x+Dr,Bo.p.y+Dr,Dr,f)),Wo+=4)}return C&&(console.log("num probes: "+Wo),console.log("best distance: "+Lo.d)),Lo.p}function _o(f,m){return m.max-f.max}function Xo(f,m,C,N){this.p=new Y(f,m),this.h=C,this.d=function(q,oe){for(var _e=!1,$e=1/0,Ft=0;Ftq.y!=Ro.y>q.y&&q.x<(Ro.x-Di.x)*(q.y-Di.y)/(Ro.y-Di.y)+Di.x&&(_e=!_e),$e=Math.min($e,am(q,Di,Ro))}return(_e?1:-1)*Math.sqrt($e)}(this.p,N),this.max=this.d+this.h*Math.SQRT2}Hn.prototype.push=function(f){this.data.push(f),this.length++,this._up(this.length-1)},Hn.prototype.pop=function(){if(this.length!==0){var f=this.data[0],m=this.data.pop();return this.length--,this.length>0&&(this.data[0]=m,this._down(0)),f}},Hn.prototype.peek=function(){return this.data[0]},Hn.prototype._up=function(f){for(var m=this.data,C=this.compare,N=m[f];f>0;){var q=f-1>>1,oe=m[q];if(C(N,oe)>=0)break;m[f]=oe,f=q}m[f]=N},Hn.prototype._down=function(f){for(var m=this.data,C=this.compare,N=this.length>>1,q=m[f];f=0)break;m[f]=_e,f=oe}m[f]=q};var Ho=Number.POSITIVE_INFINITY;function Is(f,m){return m[1]!==Ho?function(C,N,q){var oe=0,_e=0;switch(N=Math.abs(N),q=Math.abs(q),C){case"top-right":case"top-left":case"top":_e=q-7;break;case"bottom-right":case"bottom-left":case"bottom":_e=7-q}switch(C){case"top-right":case"bottom-right":case"right":oe=-N;break;case"top-left":case"bottom-left":case"left":oe=N}return[oe,_e]}(f,m[0],m[1]):function(C,N){var q=0,oe=0;N<0&&(N=0);var _e=N/Math.sqrt(2);switch(C){case"top-right":case"top-left":oe=_e-7;break;case"bottom-right":case"bottom-left":oe=7-_e;break;case"bottom":oe=7-N;break;case"top":oe=N-7}switch(C){case"top-right":case"bottom-right":q=-_e;break;case"top-left":case"bottom-left":q=_e;break;case"left":q=N;break;case"right":q=-N}return[q,oe]}(f,m[0])}function sa(f){switch(f){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ds(f,m,C,N,q,oe,_e,$e,Ft,an,nr,Dr,bi,Di,Ro){var Lo=function(Da,hl,au,Ru,Su,ih,_u,zc){for(var Fn=Ru.layout.get("text-rotate").evaluate(ih,{})*Math.PI/180,ur=[],Hr=0,gi=hl.positionedLines;Hr32640&&Oe(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Wo.kind==="composite"&&((Bo=[128*Di.compositeTextSizes[0].evaluate(_e,{},Ro),128*Di.compositeTextSizes[1].evaluate(_e,{},Ro)])[0]>32640||Bo[1]>32640)&&Oe(f.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),f.addSymbols(f.text,Lo,Bo,$e,oe,_e,an,m,Ft.lineStartIndex,Ft.lineLength,bi,Ro);for(var ho=0,Zs=nr;ho=0;_e--)if(N.dist(oe[_e])0)&&(oe.value.kind!=="constant"||oe.value.value.length>0),an=$e.value.kind!=="constant"||!!$e.value.value||Object.keys($e.parameters).length>0,nr=q.get("symbol-sort-key");if(this.features=[],Ft||an){for(var Dr=m.iconDependencies,bi=m.glyphDependencies,Di=m.availableImages,Ro=new sd(this.zoom),Lo=0,Wo=f;Lo=0;for(var fo=0,Ys=Su.sections;fo=0;$e--)oe[$e]={x:m[$e].x,y:m[$e].y,tileUnitDistanceFromAnchor:q},$e>0&&(q+=m[$e-1].dist(m[$e]));for(var Ft=0;Ft0},Sl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Sl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Sl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Sl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Sl.prototype.addIndicesForPlacedSymbol=function(f,m){for(var C=f.placedSymbolArray.get(m),N=C.vertexStartIndex+4*C.numGlyphs,q=C.vertexStartIndex;q1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(f),this.sortedAngle=f,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var C=0,N=this.symbolInstanceIndexes;C=0&&$e.indexOf(oe)===_e&&m.addIndicesForPlacedSymbol(m.text,oe)}),q.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,q.verticalPlacedTextSymbolIndex),q.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,q.placedIconSymbolIndex),q.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,q.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},lh("SymbolBucket",Sl,{omit:["layers","collisionBoxArray","features","compareText"]}),Sl.MAX_GLYPHS=65535,Sl.addDynamicAttributes=Gl;var Yu=new Jf({"symbol-placement":new zh(nn.layout_symbol["symbol-placement"]),"symbol-spacing":new zh(nn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new zh(nn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Xh(nn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new zh(nn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new zh(nn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new zh(nn.layout_symbol["icon-ignore-placement"]),"icon-optional":new zh(nn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new zh(nn.layout_symbol["icon-rotation-alignment"]),"icon-size":new Xh(nn.layout_symbol["icon-size"]),"icon-text-fit":new zh(nn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new zh(nn.layout_symbol["icon-text-fit-padding"]),"icon-image":new Xh(nn.layout_symbol["icon-image"]),"icon-rotate":new Xh(nn.layout_symbol["icon-rotate"]),"icon-padding":new zh(nn.layout_symbol["icon-padding"]),"icon-keep-upright":new zh(nn.layout_symbol["icon-keep-upright"]),"icon-offset":new Xh(nn.layout_symbol["icon-offset"]),"icon-anchor":new Xh(nn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new zh(nn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new zh(nn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new zh(nn.layout_symbol["text-rotation-alignment"]),"text-field":new Xh(nn.layout_symbol["text-field"]),"text-font":new Xh(nn.layout_symbol["text-font"]),"text-size":new Xh(nn.layout_symbol["text-size"]),"text-max-width":new Xh(nn.layout_symbol["text-max-width"]),"text-line-height":new zh(nn.layout_symbol["text-line-height"]),"text-letter-spacing":new Xh(nn.layout_symbol["text-letter-spacing"]),"text-justify":new Xh(nn.layout_symbol["text-justify"]),"text-radial-offset":new Xh(nn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new zh(nn.layout_symbol["text-variable-anchor"]),"text-anchor":new Xh(nn.layout_symbol["text-anchor"]),"text-max-angle":new zh(nn.layout_symbol["text-max-angle"]),"text-writing-mode":new zh(nn.layout_symbol["text-writing-mode"]),"text-rotate":new Xh(nn.layout_symbol["text-rotate"]),"text-padding":new zh(nn.layout_symbol["text-padding"]),"text-keep-upright":new zh(nn.layout_symbol["text-keep-upright"]),"text-transform":new Xh(nn.layout_symbol["text-transform"]),"text-offset":new Xh(nn.layout_symbol["text-offset"]),"text-allow-overlap":new zh(nn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new zh(nn.layout_symbol["text-ignore-placement"]),"text-optional":new zh(nn.layout_symbol["text-optional"])}),kc={paint:new Jf({"icon-opacity":new Xh(nn.paint_symbol["icon-opacity"]),"icon-color":new Xh(nn.paint_symbol["icon-color"]),"icon-halo-color":new Xh(nn.paint_symbol["icon-halo-color"]),"icon-halo-width":new Xh(nn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Xh(nn.paint_symbol["icon-halo-blur"]),"icon-translate":new zh(nn.paint_symbol["icon-translate"]),"icon-translate-anchor":new zh(nn.paint_symbol["icon-translate-anchor"]),"text-opacity":new Xh(nn.paint_symbol["text-opacity"]),"text-color":new Xh(nn.paint_symbol["text-color"],{runtimeType:Gr,getOverride:function(f){return f.textColor},hasOverride:function(f){return!!f.textColor}}),"text-halo-color":new Xh(nn.paint_symbol["text-halo-color"]),"text-halo-width":new Xh(nn.paint_symbol["text-halo-width"]),"text-halo-blur":new Xh(nn.paint_symbol["text-halo-blur"]),"text-translate":new zh(nn.paint_symbol["text-translate"]),"text-translate-anchor":new zh(nn.paint_symbol["text-translate-anchor"])}),layout:Yu},Lc=function(f){this.type=f.property.overrides?f.property.overrides.runtimeType:rr,this.defaultValue=f};Lc.prototype.evaluate=function(f){if(f.formattedSection){var m=this.defaultValue.property.overrides;if(m&&m.hasOverride(f.formattedSection))return m.getOverride(f.formattedSection)}return f.feature&&f.featureState?this.defaultValue.evaluate(f.feature,f.featureState):this.defaultValue.property.specification.default},Lc.prototype.eachChild=function(f){this.defaultValue.isConstant()||f(this.defaultValue.value._styleExpression.expression)},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return null},lh("FormatSectionOverride",Lc,{omit:["defaultValue"]});var Nh=function(f){function m(C){f.call(this,C,kc)}return f&&(m.__proto__=f),(m.prototype=Object.create(f&&f.prototype)).constructor=m,m.prototype.recalculate=function(C,N){if(f.prototype.recalculate.call(this,C,N),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var q=this.layout.get("text-writing-mode");if(q){for(var oe=[],_e=0,$e=q;_e<$e.length;_e+=1){var Ft=$e[_e];oe.indexOf(Ft)<0&&oe.push(Ft)}this.layout._values["text-writing-mode"]=oe}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},m.prototype.getValueAndResolveTokens=function(C,N,q,oe){var _e=this.layout.get(C).evaluate(N,{},q,oe),$e=this._unevaluatedLayout._values[C];return $e.isDataDriven()||$f($e.value)||!_e?_e:function(Ft,an){return an.replace(/{([^{}]+)}/g,function(nr,Dr){return Dr in Ft?String(Ft[Dr]):""})}(N.properties,_e)},m.prototype.createBucket=function(C){return new Sl(C)},m.prototype.queryRadius=function(){return 0},m.prototype.queryIntersectsFeature=function(){return!1},m.prototype._setPaintOverrides=function(){for(var C=0,N=kc.paint.overridableProperties;C",targetMapId:N,sourceMapId:oe.mapId})}}},op.prototype.receive=function(f){var m=f.data,C=m.id;if(C&&(!m.targetMapId||this.mapId===m.targetMapId))if(m.type===""){delete this.tasks[C];var N=this.cancelCallbacks[C];delete this.cancelCallbacks[C],N&&N()}else ft()||m.mustQueue?(this.tasks[C]=m,this.taskQueue.push(C),this.invoker.trigger()):this.processTask(C,m)},op.prototype.process=function(){if(this.taskQueue.length){var f=this.taskQueue.shift(),m=this.tasks[f];delete this.tasks[f],this.taskQueue.length&&this.invoker.trigger(),m&&this.processTask(f,m)}},op.prototype.processTask=function(f,m){var C=this;if(m.type===""){var N=this.callbacks[f];delete this.callbacks[f],N&&(m.error?N(Eh(m.error)):N(null,Eh(m.data)))}else{var q=!1,oe=hn(this.globalScope)?void 0:[],_e=m.hasCallback?function(nr,Dr){q=!0,delete C.cancelCallbacks[f],C.target.postMessage({id:f,type:"",sourceMapId:C.mapId,error:nr?eo(nr):null,data:eo(Dr,oe)},oe)}:function(nr){q=!0},$e=null,Ft=Eh(m.data);if(this.parent[m.type])$e=this.parent[m.type](m.sourceMapId,Ft,_e);else if(this.parent.getWorkerSource){var an=m.type.split(".");$e=this.parent.getWorkerSource(m.sourceMapId,an[0],Ft.source)[an[1]](Ft,_e)}else _e(new Error("Could not find function "+m.type));!q&&$e&&$e.cancel&&(this.cancelCallbacks[f]=$e.cancel)}},op.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Mh=function(f,m){f&&(m?this.setSouthWest(f).setNorthEast(m):f.length===4?this.setSouthWest([f[0],f[1]]).setNorthEast([f[2],f[3]]):this.setSouthWest(f[0]).setNorthEast(f[1]))};Mh.prototype.setNorthEast=function(f){return this._ne=f instanceof df?new df(f.lng,f.lat):df.convert(f),this},Mh.prototype.setSouthWest=function(f){return this._sw=f instanceof df?new df(f.lng,f.lat):df.convert(f),this},Mh.prototype.extend=function(f){var m,C,N=this._sw,q=this._ne;if(f instanceof df)m=f,C=f;else{if(!(f instanceof Mh))return Array.isArray(f)?f.length===4||f.every(Array.isArray)?this.extend(Mh.convert(f)):this.extend(df.convert(f)):this;if(C=f._ne,!(m=f._sw)||!C)return this}return N||q?(N.lng=Math.min(m.lng,N.lng),N.lat=Math.min(m.lat,N.lat),q.lng=Math.max(C.lng,q.lng),q.lat=Math.max(C.lat,q.lat)):(this._sw=new df(m.lng,m.lat),this._ne=new df(C.lng,C.lat)),this},Mh.prototype.getCenter=function(){return new df((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mh.prototype.getSouthWest=function(){return this._sw},Mh.prototype.getNorthEast=function(){return this._ne},Mh.prototype.getNorthWest=function(){return new df(this.getWest(),this.getNorth())},Mh.prototype.getSouthEast=function(){return new df(this.getEast(),this.getSouth())},Mh.prototype.getWest=function(){return this._sw.lng},Mh.prototype.getSouth=function(){return this._sw.lat},Mh.prototype.getEast=function(){return this._ne.lng},Mh.prototype.getNorth=function(){return this._ne.lat},Mh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mh.prototype.contains=function(f){var m=df.convert(f),C=m.lng,N=m.lat,q=this._sw.lng<=C&&C<=this._ne.lng;return this._sw.lng>this._ne.lng&&(q=this._sw.lng>=C&&C>=this._ne.lng),this._sw.lat<=N&&N<=this._ne.lat&&q},Mh.convert=function(f){return!f||f instanceof Mh?f:new Mh(f)};var df=function(f,m){if(isNaN(f)||isNaN(m))throw new Error("Invalid LngLat object: ("+f+", "+m+")");if(this.lng=+f,this.lat=+m,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};df.prototype.wrap=function(){return new df(ct(this.lng,-180,180),this.lat)},df.prototype.toArray=function(){return[this.lng,this.lat]},df.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},df.prototype.distanceTo=function(f){var m=Math.PI/180,C=this.lat*m,N=f.lat*m,q=Math.sin(C)*Math.sin(N)+Math.cos(C)*Math.cos(N)*Math.cos((f.lng-this.lng)*m);return 63710088e-1*Math.acos(Math.min(q,1))},df.prototype.toBounds=function(f){f===void 0&&(f=0);var m=360*f/40075017,C=m/Math.cos(Math.PI/180*this.lat);return new Mh(new df(this.lng-C,this.lat-m),new df(this.lng+C,this.lat+m))},df.convert=function(f){if(f instanceof df)return f;if(Array.isArray(f)&&(f.length===2||f.length===3))return new df(Number(f[0]),Number(f[1]));if(!Array.isArray(f)&&typeof f=="object"&&f!==null)return new df(Number("lng"in f?f.lng:f.lon),Number(f.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var um=2*Math.PI*63710088e-1;function qg(f){return um*Math.cos(f*Math.PI/180)}function qp(f){return(180+f)/360}function Nu(f){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360}function Kg(f,m){return f/qg(m)}function Nm(f){return 360/Math.PI*Math.atan(Math.exp((180-360*f)*Math.PI/180))-90}var rc=function(f,m,C){C===void 0&&(C=0),this.x=+f,this.y=+m,this.z=+C};rc.fromLngLat=function(f,m){m===void 0&&(m=0);var C=df.convert(f);return new rc(qp(C.lng),Nu(C.lat),Kg(m,C.lat))},rc.prototype.toLngLat=function(){return new df(360*this.x-180,Nm(this.y))},rc.prototype.toAltitude=function(){return this.z*qg(Nm(this.y))},rc.prototype.meterInMercatorCoordinateUnits=function(){return 1/um*(f=Nm(this.y),1/Math.cos(f*Math.PI/180));var f};var Du=function(f,m,C){this.z=f,this.x=m,this.y=C,this.key=Jp(0,f,f,m,C)};Du.prototype.equals=function(f){return this.z===f.z&&this.x===f.x&&this.y===f.y},Du.prototype.url=function(f,m){var C,N,q,oe,_e,$e=(N=this.y,q=this.z,oe=$p(256*(C=this.x),256*(N=Math.pow(2,q)-N-1),q),_e=$p(256*(C+1),256*(N+1),q),oe[0]+","+oe[1]+","+_e[0]+","+_e[1]),Ft=function(an,nr,Dr){for(var bi,Di="",Ro=an;Ro>0;Ro--)Di+=(nr&(bi=1<this.canonical.z?new qm(f,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new qm(f,this.wrap,f,this.canonical.x>>m,this.canonical.y>>m)},qm.prototype.calculateScaledKey=function(f,m){var C=this.canonical.z-f;return f>this.canonical.z?Jp(this.wrap*+m,f,this.canonical.z,this.canonical.x,this.canonical.y):Jp(this.wrap*+m,f,f,this.canonical.x>>C,this.canonical.y>>C)},qm.prototype.isChildOf=function(f){if(f.wrap!==this.wrap)return!1;var m=this.canonical.z-f.canonical.z;return f.overscaledZ===0||f.overscaledZ>m&&f.canonical.y===this.canonical.y>>m},qm.prototype.children=function(f){if(this.overscaledZ>=f)return[new qm(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var m=this.canonical.z+1,C=2*this.canonical.x,N=2*this.canonical.y;return[new qm(m,this.wrap,m,C,N),new qm(m,this.wrap,m,C+1,N),new qm(m,this.wrap,m,C,N+1),new qm(m,this.wrap,m,C+1,N+1)]},qm.prototype.isLessThan=function(f){return this.wrapf.wrap)&&(this.overscaledZf.overscaledZ)&&(this.canonical.xf.canonical.x)&&this.canonical.y=this.dim+1||m<-1||m>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(m+1)*this.stride+(f+1)},Qp.prototype._unpackMapbox=function(f,m,C){return(256*f*256+256*m+C)/10-1e4},Qp.prototype._unpackTerrarium=function(f,m,C){return 256*f+m+C/256-32768},Qp.prototype.getPixels=function(){return new xm({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Qp.prototype.backfillBorder=function(f,m,C){if(this.dim!==f.dim)throw new Error("dem dimension mismatch");var N=m*this.dim,q=m*this.dim+this.dim,oe=C*this.dim,_e=C*this.dim+this.dim;switch(m){case-1:N=q-1;break;case 1:q=N+1}switch(C){case-1:oe=_e-1;break;case 1:_e=oe+1}for(var $e=-m*this.dim,Ft=-C*this.dim,an=oe;an<_e;an++)for(var nr=N;nr=0&&nr[3]>=0&&$e.insert(_e,nr[0],nr[1],nr[2],nr[3])}},Cv.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Tr.VectorTile(new ua(this.rawTileData)).layers,this.sourceLayerCoder=new xy(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Cv.prototype.query=function(f,m,C,N){var q=this;this.loadVTLayers();for(var oe=f.params||{},_e=8192/f.tileSize/f.scale,$e=Fh(oe.filter),Ft=f.queryGeometry,an=f.queryPadding*_e,nr=Ps(Ft),Dr=this.grid.query(nr.minX-an,nr.minY-an,nr.maxX+an,nr.maxY+an),bi=Ps(f.cameraQueryGeometry),Di=this.grid3D.query(bi.minX-an,bi.minY-an,bi.maxX+an,bi.maxY+an,function(Da,hl,au,Ru){return function(Su,ih,_u,zc,Fn){for(var ur=0,Hr=Su;ur=gi.x&&Fn>=gi.y)return!0}var fo=[new Y(ih,_u),new Y(ih,Fn),new Y(zc,Fn),new Y(zc,_u)];if(Su.length>2){for(var Ys=0,Pa=fo;Ys=0)return!0;return!1}(oe,Dr)){var bi=this.sourceLayerCoder.decode(C),Di=this.vtLayers[bi].feature(N);if(q.needGeometry){var Ro=yh(Di,!0);if(!q.filter(new sd(this.tileID.overscaledZ),Ro,this.tileID.canonical))return}else if(!q.filter(new sd(this.tileID.overscaledZ),Di))return;for(var Lo=this.getId(Di,bi),Wo=0;WoN)q=!1;else if(m)if(this.expirationTimeXt&&(f.getActor().send("enforceCacheSizeLimit",Rn),mt=0)},P.clamp=Ce,P.clearTileCache=function(f){var m=ae.caches.delete("mapbox-tiles");f&&m.catch(f).then(function(){return f()})},P.clipLine=Rg,P.clone=function(f){var m=new Od(16);return m[0]=f[0],m[1]=f[1],m[2]=f[2],m[3]=f[3],m[4]=f[4],m[5]=f[5],m[6]=f[6],m[7]=f[7],m[8]=f[8],m[9]=f[9],m[10]=f[10],m[11]=f[11],m[12]=f[12],m[13]=f[13],m[14]=f[14],m[15]=f[15],m},P.clone$1=Pe,P.clone$2=function(f){var m=new Od(3);return m[0]=f[0],m[1]=f[1],m[2]=f[2],m},P.collisionCircleLayout=$t,P.config=Yr,P.create=function(){var f=new Od(16);return Od!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[11]=0,f[12]=0,f[13]=0,f[14]=0),f[0]=1,f[5]=1,f[10]=1,f[15]=1,f},P.create$1=function(){var f=new Od(9);return Od!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},P.create$2=function(){var f=new Od(4);return Od!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},P.createCommonjsModule=A,P.createExpression=Rd,P.createLayout=tf,P.createStyleLayer=function(f){return f.type==="custom"?new Cl(f):new oa[f.type](f)},P.cross=function(f,m,C){var N=m[0],q=m[1],oe=m[2],_e=C[0],$e=C[1],Ft=C[2];return f[0]=q*Ft-oe*$e,f[1]=oe*_e-N*Ft,f[2]=N*$e-q*_e,f},P.deepEqual=function f(m,C){if(Array.isArray(m)){if(!Array.isArray(C)||m.length!==C.length)return!1;for(var N=0;N0&&(oe=1/Math.sqrt(oe)),f[0]=m[0]*oe,f[1]=m[1]*oe,f[2]=m[2]*oe,f},P.number=ks,P.offscreenCanvasSupported=tt,P.ortho=function(f,m,C,N,q,oe,_e){var $e=1/(m-C),Ft=1/(N-q),an=1/(oe-_e);return f[0]=-2*$e,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=-2*Ft,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=2*an,f[11]=0,f[12]=(m+C)*$e,f[13]=(q+N)*Ft,f[14]=(_e+oe)*an,f[15]=1,f},P.parseGlyphPBF=function(f){return new ua(f).readFields(pa,[])},P.pbf=ua,P.performSymbolLayout=function(f,m,C,N,q,oe,_e){f.createArrays(),f.tilePixelRatio=8192/(512*f.overscaling),f.compareText={},f.iconsNeedLinear=!1;var $e=f.layers[0].layout,Ft=f.layers[0]._unevaluatedLayout._values,an={};if(f.textSizeData.kind==="composite"){var nr=f.textSizeData,Dr=nr.maxZoom;an.compositeTextSizes=[Ft["text-size"].possiblyEvaluate(new sd(nr.minZoom),_e),Ft["text-size"].possiblyEvaluate(new sd(Dr),_e)]}if(f.iconSizeData.kind==="composite"){var bi=f.iconSizeData,Di=bi.maxZoom;an.compositeIconSizes=[Ft["icon-size"].possiblyEvaluate(new sd(bi.minZoom),_e),Ft["icon-size"].possiblyEvaluate(new sd(Di),_e)]}an.layoutTextSize=Ft["text-size"].possiblyEvaluate(new sd(f.zoom+1),_e),an.layoutIconSize=Ft["icon-size"].possiblyEvaluate(new sd(f.zoom+1),_e),an.textMaxSize=Ft["text-size"].possiblyEvaluate(new sd(18));for(var Ro=24*$e.get("text-line-height"),Lo=$e.get("text-rotation-alignment")==="map"&&$e.get("symbol-placement")!=="point",Wo=$e.get("text-keep-upright"),Bo=$e.get("text-size"),ho=function(){var hl=Da[Zs],au=$e.get("text-font").evaluate(hl,{},_e).join(","),Ru=Bo.evaluate(hl,{},_e),Su=an.layoutTextSize.evaluate(hl,{},_e),ih=an.layoutIconSize.evaluate(hl,{},_e),_u={horizontal:{},vertical:void 0},zc=hl.text,Fn=[0,0];if(zc){var ur=zc.toString(),Hr=24*$e.get("text-letter-spacing").evaluate(hl,{},_e),gi=function(Rl){for(var sf=0,Ad=Rl;sf=8192||sh.y<0||sh.y>=8192||function(oc,gd,zd,Ef,Df,vd,tp,lp,$g,If,Jg,Pm,Vm,w0,Dg,Qg,ty,Xv,tm,Jm,Yg,Gm,Wp,Vv,ny){var n1,k0,_1,$m,fv,Uy=oc.addToLineVertexArray(gd,zd),c1=0,O_=0,$1=0,T1=0,Cy=-1,Sv=-1,A0={},y_=Fo(""),t_=0,b1=0;if(lp._unevaluatedLayout.getValue("text-radial-offset")===void 0?(t_=(n1=lp.layout.get("text-offset").evaluate(Yg,{},Vv).map(function(pv){return 24*pv}))[0],b1=n1[1]):(t_=24*lp.layout.get("text-radial-offset").evaluate(Yg,{},Vv),b1=Ho),oc.allowVerticalPlacement&&Ef.vertical){var x1=lp.layout.get("text-rotate").evaluate(Yg,{},Vv)+90;$m=new xr($g,gd,If,Jg,Pm,Ef.vertical,Vm,w0,Dg,x1),tp&&(fv=new xr($g,gd,If,Jg,Pm,tp,ty,Xv,Dg,x1))}if(Df){var K0=lp.layout.get("icon-rotate").evaluate(Yg,{}),sv=lp.layout.get("icon-text-fit")!=="none",h1=Hs(Df,K0,Wp,sv),V0=tp?Hs(tp,K0,Wp,sv):void 0;_1=new xr($g,gd,If,Jg,Pm,Df,ty,Xv,!1,K0),c1=4*h1.length;var Ev=oc.iconSizeData,$0=null;Ev.kind==="source"?($0=[128*lp.layout.get("icon-size").evaluate(Yg,{})])[0]>32640&&Oe(oc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):Ev.kind==="composite"&&(($0=[128*Gm.compositeIconSizes[0].evaluate(Yg,{},Vv),128*Gm.compositeIconSizes[1].evaluate(Yg,{},Vv)])[0]>32640||$0[1]>32640)&&Oe(oc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),oc.addSymbols(oc.icon,h1,$0,Jm,tm,Yg,!1,gd,Uy.lineStartIndex,Uy.lineLength,-1,Vv),Cy=oc.icon.placedSymbolArray.length-1,V0&&(O_=4*V0.length,oc.addSymbols(oc.icon,V0,$0,Jm,tm,Yg,Nl.vertical,gd,Uy.lineStartIndex,Uy.lineLength,-1,Vv),Sv=oc.icon.placedSymbolArray.length-1)}for(var db in Ef.horizontal){var W1=Ef.horizontal[db];if(!k0){y_=Fo(W1.text);var d1=lp.layout.get("text-rotate").evaluate(Yg,{},Vv);k0=new xr($g,gd,If,Jg,Pm,W1,Vm,w0,Dg,d1)}var r1=W1.positionedLines.length===1;if($1+=ds(oc,gd,W1,vd,lp,Dg,Yg,Qg,Uy,Ef.vertical?Nl.horizontal:Nl.horizontalOnly,r1?Object.keys(Ef.horizontal):[db],A0,Cy,Gm,Vv),r1)break}Ef.vertical&&(T1+=ds(oc,gd,Ef.vertical,vd,lp,Dg,Yg,Qg,Uy,Nl.vertical,["vertical"],A0,Sv,Gm,Vv));var Z1=k0?k0.boxStartIndex:oc.collisionBoxArray.length,D1=k0?k0.boxEndIndex:oc.collisionBoxArray.length,I1=$m?$m.boxStartIndex:oc.collisionBoxArray.length,wy=$m?$m.boxEndIndex:oc.collisionBoxArray.length,fb=_1?_1.boxStartIndex:oc.collisionBoxArray.length,Av=_1?_1.boxEndIndex:oc.collisionBoxArray.length,pb=fv?fv.boxStartIndex:oc.collisionBoxArray.length,N_=fv?fv.boxEndIndex:oc.collisionBoxArray.length,L1=-1,Vy=function(pv,Xb){return pv&&pv.circleDiameter?Math.max(pv.circleDiameter,Xb):Xb};L1=Vy(k0,L1),L1=Vy($m,L1),L1=Vy(_1,L1);var Tx=(L1=Vy(fv,L1))>-1?1:0;Tx&&(L1*=ny/24),oc.glyphOffsetArray.length>=Sl.MAX_GLYPHS&&Oe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Yg.sortKey!==void 0&&oc.addToSortKeyRanges(oc.symbolInstances.length,Yg.sortKey),oc.symbolInstances.emplaceBack(gd.x,gd.y,A0.right>=0?A0.right:-1,A0.center>=0?A0.center:-1,A0.left>=0?A0.left:-1,A0.vertical||-1,Cy,Sv,y_,Z1,D1,I1,wy,fb,Av,pb,N_,If,$1,T1,c1,O_,Tx,0,Vm,t_,b1,L1)}(Rl,sh,Cu,Ad,Ff,Ag,I,Rl.layers[0],Rl.collisionBoxArray,sf.index,sf.sourceLayerIndex,Rl.index,st,di,Zo,cf,Tn,Li,gs,de,sf,Pf,Gd,Sp,Xl)};if(ca==="line")for(var ul=0,Bl=Rg(sf.geometry,0,0,8192,8192);ul1){var Sf=jh(xd,Co,Ad.vertical||Re,Ff,24,Yt);Sf&&Pl(xd,Sf)}}else if(sf.type==="Polygon")for(var Jh=0,Oh=ln(sf.geometry,0);Jh=Qo.maxzoom||Qo.visibility!=="none"&&(ae(Xr,this.zoom,Bt),(zt[Qo.id]=Qo.createBucket({index:nn.bucketLayerIDs.length,layers:Xr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Er,sourceID:this.source})).populate(ui,en,this.tileID.canonical),nn.bucketLayerIDs.push(Xr.map(function(ii){return ii.id})))}}}var pr=P.mapObject(en.glyphDependencies,function(ii){return Object.keys(ii).map(Number)});Object.keys(pr).length?rn.send("getGlyphs",{uid:this.uid,stacks:pr},function(ii,qi){er||(er=ii,Fr=qi,sr.call(tr))}):Fr={};var qo=Object.keys(en.iconDependencies);qo.length?rn.send("getImages",{icons:qo,source:this.source,tileID:this.tileID,type:"icons"},function(ii,qi){er||(er=ii,jr=qi,sr.call(tr))}):jr={};var Br=Object.keys(en.patternDependencies);function sr(){if(er)return ir(er);if(Fr&&jr&&bo){var ii=new Y(Fr),qi=new P.ImageAtlas(jr,bo);for(var Ln in zt){var zn=zt[Ln];zn instanceof P.SymbolBucket?(ae(zn.layers,this.zoom,Bt),P.performSymbolLayout(zn,Fr,ii.positions,jr,qi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):zn.hasPattern&&(zn instanceof P.LineBucket||zn instanceof P.FillBucket||zn instanceof P.FillExtrusionBucket)&&(ae(zn.layers,this.zoom,Bt),zn.addFeatures(en,this.tileID.canonical,qi.patternPositions))}this.status="done",ir(null,{buckets:P.values(zt).filter(function(Wi){return!Wi.isEmpty()}),featureIndex:nn,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ii.image,imageAtlas:qi,glyphMap:this.returnDependencies?Fr:null,iconMap:this.returnDependencies?jr:null,glyphPositions:this.returnDependencies?ii.positions:null})}}Br.length?rn.send("getImages",{icons:Br,source:this.source,tileID:this.tileID,type:"patterns"},function(ii,qi){er||(er=ii,bo=qi,sr.call(tr))}):bo={},sr.call(this)};var Ie=function(xt,it,Bt,rn){this.actor=xt,this.layerIndex=it,this.availableImages=Bt,this.loadVectorData=rn||se,this.loading={},this.loaded={}};Ie.prototype.loadTile=function(xt,it){var Bt=this,rn=xt.uid;this.loading||(this.loading={});var ir=!!(xt&&xt.request&&xt.request.collectResourceTiming)&&new P.RequestPerformance(xt.request),tr=this.loading[rn]=new ie(xt);tr.abort=this.loadVectorData(xt,function(Jn,nn){if(delete Bt.loading[rn],Jn||!nn)return tr.status="done",Bt.loaded[rn]=tr,it(Jn);var er=nn.rawData,Fr={};nn.expires&&(Fr.expires=nn.expires),nn.cacheControl&&(Fr.cacheControl=nn.cacheControl);var jr={};if(ir){var bo=ir.finish();bo&&(jr.resourceTiming=JSON.parse(JSON.stringify(bo)))}tr.vectorTile=nn.vectorTile,tr.parse(nn.vectorTile,Bt.layerIndex,Bt.availableImages,Bt.actor,function(zt,en){if(zt||!en)return it(zt);it(null,P.extend({rawTileData:er.slice(0)},en,Fr,jr))}),Bt.loaded=Bt.loaded||{},Bt.loaded[rn]=tr})},Ie.prototype.reloadTile=function(xt,it){var Bt=this,rn=this.loaded,ir=xt.uid,tr=this;if(rn&&rn[ir]){var Jn=rn[ir];Jn.showCollisionBoxes=xt.showCollisionBoxes;var nn=function(er,Fr){var jr=Jn.reloadCallback;jr&&(delete Jn.reloadCallback,Jn.parse(Jn.vectorTile,tr.layerIndex,Bt.availableImages,tr.actor,jr)),it(er,Fr)};Jn.status==="parsing"?Jn.reloadCallback=nn:Jn.status==="done"&&(Jn.vectorTile?Jn.parse(Jn.vectorTile,this.layerIndex,this.availableImages,this.actor,nn):nn())}},Ie.prototype.abortTile=function(xt,it){var Bt=this.loading,rn=xt.uid;Bt&&Bt[rn]&&Bt[rn].abort&&(Bt[rn].abort(),delete Bt[rn]),it()},Ie.prototype.removeTile=function(xt,it){var Bt=this.loaded,rn=xt.uid;Bt&&Bt[rn]&&delete Bt[rn],it()};var Be=P.window.ImageBitmap,Ce=function(){this.loaded={}};function ct(xt,it){if(xt.length!==0){nt(xt[0],it);for(var Bt=1;Bt=Math.abs(nn)?Bt-er+nn:nn-er+Bt,Bt=er}Bt+rn>=0!=!!it&&xt.reverse()}Ce.prototype.loadTile=function(xt,it){var Bt=xt.uid,rn=xt.encoding,ir=xt.rawImageData,tr=Be&&ir instanceof Be?this.getImageData(ir):ir,Jn=new P.DEMData(Bt,tr,rn);this.loaded=this.loaded||{},this.loaded[Bt]=Jn,it(null,Jn)},Ce.prototype.getImageData=function(xt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(xt.width,xt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=xt.width,this.offscreenCanvas.height=xt.height,this.offscreenCanvasContext.drawImage(xt,0,0,xt.width,xt.height);var it=this.offscreenCanvasContext.getImageData(-1,-1,xt.width+2,xt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new P.RGBAImage({width:it.width,height:it.height},it.data)},Ce.prototype.removeTile=function(xt){var it=this.loaded,Bt=xt.uid;it&&it[Bt]&&delete it[Bt]};var Ge=P.vectorTile.VectorTileFeature.prototype.toGeoJSON,at=function(xt){this._feature=xt,this.extent=P.EXTENT,this.type=xt.type,this.properties=xt.tags,"id"in xt&&!isNaN(xt.id)&&(this.id=parseInt(xt.id,10))};at.prototype.loadGeometry=function(){if(this._feature.type===1){for(var xt=[],it=0,Bt=this._feature.geometry;it>31}function Xe(xt,it){for(var Bt=xt.loadGeometry(),rn=xt.type,ir=0,tr=0,Jn=Bt.length,nn=0;nn>1;(function Er(ui,Gr,zr,Ei,Zi,Kr){for(;Zi>Ei;){if(Zi-Ei>600){var Xr=Zi-Ei+1,Qo=zr-Ei+1,pr=Math.log(Xr),qo=.5*Math.exp(2*pr/3),Br=.5*Math.sqrt(pr*qo*(Xr-qo)/Xr)*(Qo-Xr/2<0?-1:1);Er(ui,Gr,zr,Math.max(Ei,Math.floor(zr-Qo*qo/Xr+Br)),Math.min(Zi,Math.floor(zr+(Xr-Qo)*qo/Xr+Br)),Kr)}var sr=Gr[2*zr+Kr],ii=Ei,qi=Zi;for(Nt(ui,Gr,Ei,zr),Gr[2*Zi+Kr]>sr&&Nt(ui,Gr,Ei,Zi);iisr;)qi--}Gr[2*Ei+Kr]===sr?Nt(ui,Gr,Ei,qi):Nt(ui,Gr,++qi,Zi),qi<=zr&&(Ei=qi+1),zr<=qi&&(Zi=qi-1)}})(jr,bo,Pr,en,Cn,rr%2),Fr(jr,bo,zt,en,Pr-1,rr+1),Fr(jr,bo,zt,Pr+1,Cn,rr+1)}})(Jn,nn,rn,0,Jn.length-1,0)};Tt.prototype.range=function(xt,it,Bt,rn){return function(ir,tr,Jn,nn,er,Fr,jr){for(var bo,zt,en=[0,ir.length-1,0],Cn=[];en.length;){var rr=en.pop(),Pr=en.pop(),Er=en.pop();if(Pr-Er<=jr)for(var ui=Er;ui<=Pr;ui++)zt=tr[2*ui+1],(bo=tr[2*ui])>=Jn&&bo<=er&&zt>=nn&&zt<=Fr&&Cn.push(ir[ui]);else{var Gr=Math.floor((Er+Pr)/2);zt=tr[2*Gr+1],(bo=tr[2*Gr])>=Jn&&bo<=er&&zt>=nn&&zt<=Fr&&Cn.push(ir[Gr]);var zr=(rr+1)%2;(rr===0?Jn<=bo:nn<=zt)&&(en.push(Er),en.push(Gr-1),en.push(zr)),(rr===0?er>=bo:Fr>=zt)&&(en.push(Gr+1),en.push(Pr),en.push(zr))}}return Cn}(this.ids,this.coords,xt,it,Bt,rn,this.nodeSize)},Tt.prototype.within=function(xt,it,Bt){return function(rn,ir,tr,Jn,nn,er){for(var Fr=[0,rn.length-1,0],jr=[],bo=nn*nn;Fr.length;){var zt=Fr.pop(),en=Fr.pop(),Cn=Fr.pop();if(en-Cn<=er)for(var rr=Cn;rr<=en;rr++)vt(ir[2*rr],ir[2*rr+1],tr,Jn)<=bo&&jr.push(rn[rr]);else{var Pr=Math.floor((Cn+en)/2),Er=ir[2*Pr],ui=ir[2*Pr+1];vt(Er,ui,tr,Jn)<=bo&&jr.push(rn[Pr]);var Gr=(zt+1)%2;(zt===0?tr-nn<=Er:Jn-nn<=ui)&&(Fr.push(Cn),Fr.push(Pr-1),Fr.push(Gr)),(zt===0?tr+nn>=Er:Jn+nn>=ui)&&(Fr.push(Pr+1),Fr.push(en),Fr.push(Gr))}}return jr}(this.ids,this.coords,xt,it,Bt,this.nodeSize)};var un={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(xt){return xt}},on=function(xt){this.options=Go(Object.create(un),xt),this.trees=new Array(this.options.maxZoom+1)};function Lr(xt,it,Bt,rn,ir){return{x:xt,y:it,zoom:1/0,id:Bt,parentId:-1,numPoints:rn,properties:ir}}function Yr(xt,it){var Bt=xt.geometry.coordinates,rn=Bt[1];return{x:Qi(Bt[0]),y:hi(rn),zoom:1/0,index:it,parentId:-1}}function fi(xt){return{type:"Feature",id:xt.id,properties:Xi(xt),geometry:{type:"Point",coordinates:[(rn=xt.x,360*(rn-.5)),(it=xt.y,Bt=(180-360*it)*Math.PI/180,360*Math.atan(Math.exp(Bt))/Math.PI-90)]}};var it,Bt,rn}function Xi(xt){var it=xt.numPoints,Bt=it>=1e4?Math.round(it/1e3)+"k":it>=1e3?Math.round(it/100)/10+"k":it;return Go(Go({},xt.properties),{cluster:!0,cluster_id:xt.id,point_count:it,point_count_abbreviated:Bt})}function Qi(xt){return xt/360+.5}function hi(xt){var it=Math.sin(xt*Math.PI/180),Bt=.5-.25*Math.log((1+it)/(1-it))/Math.PI;return Bt<0?0:Bt>1?1:Bt}function Go(xt,it){for(var Bt in it)xt[Bt]=it[Bt];return xt}function Mo(xt){return xt.x}function pe(xt){return xt.y}function Ii(xt,it,Bt,rn,ir,tr){var Jn=ir-Bt,nn=tr-rn;if(Jn!==0||nn!==0){var er=((xt-Bt)*Jn+(it-rn)*nn)/(Jn*Jn+nn*nn);er>1?(Bt=ir,rn=tr):er>0&&(Bt+=Jn*er,rn+=nn*er)}return(Jn=xt-Bt)*Jn+(nn=it-rn)*nn}function Vi(xt,it,Bt,rn){var ir={id:xt===void 0?null:xt,type:it,geometry:Bt,tags:rn,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(tr){var Jn=tr.geometry,nn=tr.type;if(nn==="Point"||nn==="MultiPoint"||nn==="LineString")ro(tr,Jn);else if(nn==="Polygon"||nn==="MultiLineString")for(var er=0;er0&&(Jn+=rn?(ir*Fr-er*tr)/2:Math.sqrt(Math.pow(er-ir,2)+Math.pow(Fr-tr,2))),ir=er,tr=Fr}var jr=it.length-3;it[2]=1,function bo(zt,en,Cn,rr){for(var Pr,Er=rr,ui=Cn-en>>1,Gr=Cn-en,zr=zt[en],Ei=zt[en+1],Zi=zt[Cn],Kr=zt[Cn+1],Xr=en+3;XrEr)Pr=Xr,Er=Qo;else if(Qo===Er){var pr=Math.abs(Xr-ui);prrr&&(Pr-en>3&&bo(zt,en,Pr,rr),zt[Pr+2]=Er,Cn-Pr>3&&bo(zt,Pr,Cn,rr))}(it,0,jr,Bt),it[jr+2]=1,it.size=Math.abs(Jn),it.start=0,it.end=it.size}function Rt(xt,it,Bt,rn){for(var ir=0;ir1?1:Bt}function oi(xt,it,Bt,rn,ir,tr,Jn,nn){if(rn/=it,tr>=(Bt/=it)&&Jn=rn)return null;for(var er=[],Fr=0;Fr=Bt&&Cn=rn)){var rr=[];if(zt==="Point"||zt==="MultiPoint")Ti(bo,rr,Bt,rn,ir);else if(zt==="LineString")Bi(bo,rr,Bt,rn,ir,!1,nn.lineMetrics);else if(zt==="MultiLineString")Vr(bo,rr,Bt,rn,ir,!1);else if(zt==="Polygon")Vr(bo,rr,Bt,rn,ir,!0);else if(zt==="MultiPolygon")for(var Pr=0;Pr=Bt&&Jn<=rn&&(it.push(xt[tr]),it.push(xt[tr+1]),it.push(xt[tr+2]))}}function Bi(xt,it,Bt,rn,ir,tr,Jn){for(var nn,er,Fr=no(xt),jr=ir===0?Xt:Sn,bo=xt.start,zt=0;ztBt&&(er=jr(Fr,en,Cn,Pr,Er,Bt),Jn&&(Fr.start=bo+nn*er)):ui>rn?Gr=Bt&&(er=jr(Fr,en,Cn,Pr,Er,Bt),zr=!0),Gr>rn&&ui<=rn&&(er=jr(Fr,en,Cn,Pr,Er,rn),zr=!0),!tr&&zr&&(Jn&&(Fr.end=bo+nn*er),it.push(Fr),Fr=no(xt)),Jn&&(bo+=nn)}var Ei=xt.length-3;en=xt[Ei],Cn=xt[Ei+1],rr=xt[Ei+2],(ui=ir===0?en:Cn)>=Bt&&ui<=rn&&Rn(Fr,en,Cn,rr),Ei=Fr.length-3,tr&&Ei>=3&&(Fr[Ei]!==Fr[0]||Fr[Ei+1]!==Fr[1])&&Rn(Fr,Fr[0],Fr[1],Fr[2]),Fr.length&&it.push(Fr)}function no(xt){var it=[];return it.size=xt.size,it.start=xt.start,it.end=xt.end,it}function Vr(xt,it,Bt,rn,ir,tr){for(var Jn=0;JnJn.maxX&&(Jn.maxX=jr),bo>Jn.maxY&&(Jn.maxY=bo)}return Jn}function vn(xt,it,Bt,rn){var ir=it.geometry,tr=it.type,Jn=[];if(tr==="Point"||tr==="MultiPoint")for(var nn=0;nn0&&it.size<(ir?Jn:rn))Bt.numPoints+=it.length/3;else{for(var nn=[],er=0;erJn)&&(Bt.numSimplified++,nn.push(it[er]),nn.push(it[er+1])),Bt.numPoints++;ir&&function(Fr,jr){for(var bo=0,zt=0,en=Fr.length,Cn=en-2;zt0===jr)for(zt=0,en=Fr.length;zt24)throw new Error("maxZoom should be in the 0-24 range");if(it.promoteId&&it.generateId)throw new Error("promoteId and generateId cannot be used together.");var rn=function(ir,tr){var Jn=[];if(ir.type==="FeatureCollection")for(var nn=0;nn=rn;Fr--){var jr=+Date.now();nn=this._cluster(nn,Fr),this.trees[Fr]=new Tt(nn,Mo,pe,tr,Float32Array),Bt&&console.log("z%d: %d clusters in %dms",Fr,nn.length,+Date.now()-jr)}return Bt&&console.timeEnd("total time"),this},on.prototype.getClusters=function(xt,it){var Bt=((xt[0]+180)%360+360)%360-180,rn=Math.max(-90,Math.min(90,xt[1])),ir=xt[2]===180?180:((xt[2]+180)%360+360)%360-180,tr=Math.max(-90,Math.min(90,xt[3]));if(xt[2]-xt[0]>=360)Bt=-180,ir=180;else if(Bt>ir){var Jn=this.getClusters([Bt,rn,180,tr],it),nn=this.getClusters([-180,rn,ir,tr],it);return Jn.concat(nn)}for(var er=this.trees[this._limitZoom(it)],Fr=[],jr=0,bo=er.range(Qi(Bt),hi(tr),Qi(ir),hi(rn));jrit&&(zt+=rr.numPoints||1)}if(zt>=tr){for(var Pr=er.x*bo,Er=er.y*bo,ui=ir&&bo>1?this._map(er,!0):null,Gr=(nn<<5)+(it+1)+this.points.length,zr=0,Ei=jr;zr1)for(var Xr=0,Qo=jr;Xr>5},on.prototype._getOriginZoom=function(xt){return(xt-this.points.length)%32},on.prototype._map=function(xt,it){if(xt.numPoints)return it?Go({},xt.properties):xt.properties;var Bt=this.points[xt.index].properties,rn=this.options.map(Bt);return it&&rn===Bt?Go({},rn):rn},qr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},qr.prototype.splitTile=function(xt,it,Bt,rn,ir,tr,Jn){for(var nn=[xt,it,Bt,rn],er=this.options,Fr=er.debug;nn.length;){rn=nn.pop(),Bt=nn.pop(),it=nn.pop(),xt=nn.pop();var jr=1<1&&console.time("creation"),zt=this.tiles[bo]=kt(xt,it,Bt,rn,er),this.tileCoords.push({z:it,x:Bt,y:rn}),Fr)){Fr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",it,Bt,rn,zt.numFeatures,zt.numPoints,zt.numSimplified),console.timeEnd("creation"));var en="z"+it;this.stats[en]=(this.stats[en]||0)+1,this.total++}if(zt.source=xt,ir){if(it===er.maxZoom||it===ir)continue;var Cn=1<1&&console.time("clipping");var rr,Pr,Er,ui,Gr,zr,Ei=.5*er.buffer/er.extent,Zi=.5-Ei,Kr=.5+Ei,Xr=1+Ei;rr=Pr=Er=ui=null,Gr=oi(xt,jr,Bt-Ei,Bt+Kr,0,zt.minX,zt.maxX,er),zr=oi(xt,jr,Bt+Zi,Bt+Xr,0,zt.minX,zt.maxX,er),xt=null,Gr&&(rr=oi(Gr,jr,rn-Ei,rn+Kr,1,zt.minY,zt.maxY,er),Pr=oi(Gr,jr,rn+Zi,rn+Xr,1,zt.minY,zt.maxY,er),Gr=null),zr&&(Er=oi(zr,jr,rn-Ei,rn+Kr,1,zt.minY,zt.maxY,er),ui=oi(zr,jr,rn+Zi,rn+Xr,1,zt.minY,zt.maxY,er),zr=null),Fr>1&&console.timeEnd("clipping"),nn.push(rr||[],it+1,2*Bt,2*rn),nn.push(Pr||[],it+1,2*Bt,2*rn+1),nn.push(Er||[],it+1,2*Bt+1,2*rn),nn.push(ui||[],it+1,2*Bt+1,2*rn+1)}}},qr.prototype.getTile=function(xt,it,Bt){var rn=this.options,ir=rn.extent,tr=rn.debug;if(xt<0||xt>24)return null;var Jn=1<1&&console.log("drilling down to z%d-%d-%d",xt,it,Bt);for(var er,Fr=xt,jr=it,bo=Bt;!er&&Fr>0;)Fr--,jr=Math.floor(jr/2),bo=Math.floor(bo/2),er=this.tiles[Ni(Fr,jr,bo)];return er&&er.source?(tr>1&&console.log("found parent tile z%d-%d-%d",Fr,jr,bo),tr>1&&console.time("drilling down"),this.splitTile(er.source,Fr,jr,bo,xt,it,Bt),tr>1&&console.timeEnd("drilling down"),this.tiles[nn]?mt(this.tiles[nn],ir):null):null};var Un=function(xt){function it(Bt,rn,ir,tr){xt.call(this,Bt,rn,ir,li),tr&&(this.loadGeoJSON=tr)}return xt&&(it.__proto__=xt),(it.prototype=Object.create(xt&&xt.prototype)).constructor=it,it.prototype.loadData=function(Bt,rn){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=rn,this._pendingLoadDataParams=Bt,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},it.prototype._loadData=function(){var Bt=this;if(this._pendingCallback&&this._pendingLoadDataParams){var rn=this._pendingCallback,ir=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var tr=!!(ir&&ir.request&&ir.request.collectResourceTiming)&&new P.RequestPerformance(ir.request);this.loadGeoJSON(ir,function(Jn,nn){if(Jn||!nn)return rn(Jn);if(typeof nn!="object")return rn(new Error("Input data given to '"+ir.source+"' is not a valid GeoJSON object."));(function zt(en,Cn){var rr,Pr=en&&en.type;if(Pr==="FeatureCollection")for(rr=0;rr=0?0:B.button},W.remove=function(B){B.parentNode&&B.parentNode.removeChild(B)};var nt=function(B){function H(){B.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new P.RGBAImage({width:1,height:1}),this.dirty=!0}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.isLoaded=function(){return this.loaded},H.prototype.setLoaded=function(G){if(this.loaded!==G&&(this.loaded=G,G)){for(var re=0,ke=this.requestors;re=0?1.2:1))}function Gt(B,H,G,re,ke,_t,Lt){for(var bn=0;bn65535)_r(new Error("glyphs > 65535 not supported"));else if(Mi.ranges[zo])_r(null,{stack:Dn,id:mi,glyph:Ji});else{var Yo=Mi.requests[zo];Yo||(Yo=Mi.requests[zo]=[],Et.loadGlyphRange(Dn,zo,G.url,G.requestManager,function(Gi,Fo){if(Fo){for(var js in Fo)G._doesCharSupportLocalGlyph(+js)||(Mi.glyphs[+js]=Fo[+js]);Mi.ranges[zo]=!0}for(var za=0,Oa=Yo;za1&&(bn=B[++Lt]);var Dn=Math.abs(_r-bn.left),mi=Math.abs(_r-bn.right),Mi=Math.min(Dn,mi),Ji=void 0,zo=ke/G*(re+1);if(bn.isDash){var Yo=re-Math.abs(zo);Ji=Math.sqrt(Mi*Mi+Yo*Yo)}else Ji=re-Math.sqrt(Mi*Mi+zo*zo);this.data[_t+_r]=Math.max(0,Math.min(255,Ji+128))}},Oe.prototype.addRegularDash=function(B){for(var H=B.length-1;H>=0;--H){var G=B[H],re=B[H+1];G.zeroLength?B.splice(H,1):re&&re.isDash===G.isDash&&(re.left=G.left,B.splice(H,1))}var ke=B[0],_t=B[B.length-1];ke.isDash===_t.isDash&&(ke.left=_t.left-this.width,_t.right=ke.right+this.width);for(var Lt=this.width*this.nextRow,bn=0,_r=B[bn],Dn=0;Dn1&&(_r=B[++bn]);var mi=Math.abs(Dn-_r.left),Mi=Math.abs(Dn-_r.right),Ji=Math.min(mi,Mi);this.data[Lt+Dn]=Math.max(0,Math.min(255,(_r.isDash?Ji:-Ji)+128))}},Oe.prototype.addDash=function(B,H){var G=H?7:0,re=2*G+1;if(this.nextRow+re>this.height)return P.warnOnce("LineAtlas out of space"),null;for(var ke=0,_t=0;_t=G&&B.x=re&&B.y<_t};var Ct=function(B){function H(G,re,ke,_t){if(B.call(this),this.id=G,this.dispatcher=ke,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,P.extend(this,P.pick(re,["url","scheme","tileSize","promoteId"])),this._options=P.extend({type:"vector"},re),this._collectResourceTiming=re.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(_t)}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.load=function(){var G=this;this._loaded=!1,this.fire(new P.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=je(this._options,this.map._requestManager,function(re,ke){G._tileJSONRequest=null,G._loaded=!0,re?G.fire(new P.ErrorEvent(re)):ke&&(P.extend(G,ke),ke.bounds&&(G.tileBounds=new ft(ke.bounds,G.minzoom,G.maxzoom)),P.postTurnstileEvent(ke.tiles,G.map._requestManager._customAccessToken),P.postMapLoadEvent(ke.tiles,G.map._getMapId(),G.map._requestManager._skuToken,G.map._requestManager._customAccessToken),G.fire(new P.Event("data",{dataType:"source",sourceDataType:"metadata"})),G.fire(new P.Event("data",{dataType:"source",sourceDataType:"content"})))})},H.prototype.loaded=function(){return this._loaded},H.prototype.hasTile=function(G){return!this.tileBounds||this.tileBounds.contains(G.canonical)},H.prototype.onAdd=function(G){this.map=G,this.load()},H.prototype.setSourceProperty=function(G){this._tileJSONRequest&&this._tileJSONRequest.cancel(),G(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},H.prototype.setTiles=function(G){var re=this;return this.setSourceProperty(function(){re._options.tiles=G}),this},H.prototype.setUrl=function(G){var re=this;return this.setSourceProperty(function(){re.url=G,re._options.url=G}),this},H.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},H.prototype.serialize=function(){return P.extend({},this._options)},H.prototype.loadTile=function(G,re){var ke=this.map._requestManager.normalizeTileURL(G.tileID.canonical.url(this.tiles,this.scheme)),_t={request:this.map._requestManager.transformRequest(ke,P.ResourceType.Tile),uid:G.uid,tileID:G.tileID,zoom:G.tileID.overscaledZ,tileSize:this.tileSize*G.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:P.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function Lt(bn,_r){return delete G.request,G.aborted?re(null):bn&&bn.status!==404?re(bn):(_r&&_r.resourceTiming&&(G.resourceTiming=_r.resourceTiming),this.map._refreshExpiredTiles&&_r&&G.setExpiryData(_r),G.loadVectorData(_r,this.map.painter),P.cacheEntryPossiblyAdded(this.dispatcher),re(null),void(G.reloadCallback&&(this.loadTile(G,G.reloadCallback),G.reloadCallback=null)))}_t.request.collectResourceTiming=this._collectResourceTiming,G.actor&&G.state!=="expired"?G.state==="loading"?G.reloadCallback=re:G.request=G.actor.send("reloadTile",_t,Lt.bind(this)):(G.actor=this.dispatcher.getActor(),G.request=G.actor.send("loadTile",_t,Lt.bind(this)))},H.prototype.abortTile=function(G){G.request&&(G.request.cancel(),delete G.request),G.actor&&G.actor.send("abortTile",{uid:G.uid,type:this.type,source:this.id},void 0)},H.prototype.unloadTile=function(G){G.unloadVectorData(),G.actor&&G.actor.send("removeTile",{uid:G.uid,type:this.type,source:this.id},void 0)},H.prototype.hasTransition=function(){return!1},H}(P.Evented),Xe=function(B){function H(G,re,ke,_t){B.call(this),this.id=G,this.dispatcher=ke,this.setEventedParent(_t),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=P.extend({type:"raster"},re),P.extend(this,P.pick(re,["url","scheme","tileSize"]))}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.load=function(){var G=this;this._loaded=!1,this.fire(new P.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=je(this._options,this.map._requestManager,function(re,ke){G._tileJSONRequest=null,G._loaded=!0,re?G.fire(new P.ErrorEvent(re)):ke&&(P.extend(G,ke),ke.bounds&&(G.tileBounds=new ft(ke.bounds,G.minzoom,G.maxzoom)),P.postTurnstileEvent(ke.tiles),P.postMapLoadEvent(ke.tiles,G.map._getMapId(),G.map._requestManager._skuToken),G.fire(new P.Event("data",{dataType:"source",sourceDataType:"metadata"})),G.fire(new P.Event("data",{dataType:"source",sourceDataType:"content"})))})},H.prototype.loaded=function(){return this._loaded},H.prototype.onAdd=function(G){this.map=G,this.load()},H.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},H.prototype.serialize=function(){return P.extend({},this._options)},H.prototype.hasTile=function(G){return!this.tileBounds||this.tileBounds.contains(G.canonical)},H.prototype.loadTile=function(G,re){var ke=this,_t=this.map._requestManager.normalizeTileURL(G.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);G.request=P.getImage(this.map._requestManager.transformRequest(_t,P.ResourceType.Tile),function(Lt,bn){if(delete G.request,G.aborted)G.state="unloaded",re(null);else if(Lt)G.state="errored",re(Lt);else if(bn){ke.map._refreshExpiredTiles&&G.setExpiryData(bn),delete bn.cacheControl,delete bn.expires;var _r=ke.map.painter.context,Dn=_r.gl;G.texture=ke.map.painter.getTileTexture(bn.width),G.texture?G.texture.update(bn,{useMipmap:!0}):(G.texture=new P.Texture(_r,bn,Dn.RGBA,{useMipmap:!0}),G.texture.bind(Dn.LINEAR,Dn.CLAMP_TO_EDGE,Dn.LINEAR_MIPMAP_NEAREST),_r.extTextureFilterAnisotropic&&Dn.texParameterf(Dn.TEXTURE_2D,_r.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,_r.extTextureFilterAnisotropicMax)),G.state="loaded",P.cacheEntryPossiblyAdded(ke.dispatcher),re(null)}})},H.prototype.abortTile=function(G,re){G.request&&(G.request.cancel(),delete G.request),re()},H.prototype.unloadTile=function(G,re){G.texture&&this.map.painter.saveTileTexture(G.texture),re()},H.prototype.hasTransition=function(){return!1},H}(P.Evented),hn=function(B){function H(G,re,ke,_t){B.call(this,G,re,ke,_t),this.type="raster-dem",this.maxzoom=22,this._options=P.extend({type:"raster-dem"},re),this.encoding=re.encoding||"mapbox"}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},H.prototype.loadTile=function(G,re){var ke=this.map._requestManager.normalizeTileURL(G.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function _t(Lt,bn){Lt&&(G.state="errored",re(Lt)),bn&&(G.dem=bn,G.needsHillshadePrepare=!0,G.state="loaded",re(null))}G.request=P.getImage(this.map._requestManager.transformRequest(ke,P.ResourceType.Tile),function(Lt,bn){if(delete G.request,G.aborted)G.state="unloaded",re(null);else if(Lt)G.state="errored",re(Lt);else if(bn){this.map._refreshExpiredTiles&&G.setExpiryData(bn),delete bn.cacheControl,delete bn.expires;var _r=P.window.ImageBitmap&&bn instanceof P.window.ImageBitmap&&P.offscreenCanvasSupported()?bn:P.browser.getImageData(bn,1),Dn={uid:G.uid,coord:G.tileID,source:this.id,rawImageData:_r,encoding:this.encoding};G.actor&&G.state!=="expired"||(G.actor=this.dispatcher.getActor(),G.actor.send("loadDEMTile",Dn,_t.bind(this)))}}.bind(this)),G.neighboringTiles=this._getNeighboringTiles(G.tileID)},H.prototype._getNeighboringTiles=function(G){var re=G.canonical,ke=Math.pow(2,re.z),_t=(re.x-1+ke)%ke,Lt=re.x===0?G.wrap-1:G.wrap,bn=(re.x+1+ke)%ke,_r=re.x+1===ke?G.wrap+1:G.wrap,Dn={};return Dn[new P.OverscaledTileID(G.overscaledZ,Lt,re.z,_t,re.y).key]={backfilled:!1},Dn[new P.OverscaledTileID(G.overscaledZ,_r,re.z,bn,re.y).key]={backfilled:!1},re.y>0&&(Dn[new P.OverscaledTileID(G.overscaledZ,Lt,re.z,_t,re.y-1).key]={backfilled:!1},Dn[new P.OverscaledTileID(G.overscaledZ,G.wrap,re.z,re.x,re.y-1).key]={backfilled:!1},Dn[new P.OverscaledTileID(G.overscaledZ,_r,re.z,bn,re.y-1).key]={backfilled:!1}),re.y+10&&(ke.resourceTiming=G._resourceTiming,G._resourceTiming=[]),G.fire(new P.Event("data",ke))}})},H.prototype.onAdd=function(G){this.map=G,this.load()},H.prototype.setData=function(G){var re=this;return this._data=G,this.fire(new P.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ke){if(ke)re.fire(new P.ErrorEvent(ke));else{var _t={dataType:"source",sourceDataType:"content"};re._collectResourceTiming&&re._resourceTiming&&re._resourceTiming.length>0&&(_t.resourceTiming=re._resourceTiming,re._resourceTiming=[]),re.fire(new P.Event("data",_t))}}),this},H.prototype.getClusterExpansionZoom=function(G,re){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:G,source:this.id},re),this},H.prototype.getClusterChildren=function(G,re){return this.actor.send("geojson.getClusterChildren",{clusterId:G,source:this.id},re),this},H.prototype.getClusterLeaves=function(G,re,ke,_t){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:G,limit:re,offset:ke},_t),this},H.prototype._updateWorkerData=function(G){var re=this;this._loaded=!1;var ke=P.extend({},this.workerOptions),_t=this._data;typeof _t=="string"?(ke.request=this.map._requestManager.transformRequest(P.browser.resolveURL(_t),P.ResourceType.Source),ke.request.collectResourceTiming=this._collectResourceTiming):ke.data=JSON.stringify(_t),this.actor.send(this.type+".loadData",ke,function(Lt,bn){re._removed||bn&&bn.abandoned||(re._loaded=!0,bn&&bn.resourceTiming&&bn.resourceTiming[re.id]&&(re._resourceTiming=bn.resourceTiming[re.id].slice(0)),re.actor.send(re.type+".coalesce",{source:ke.source},null),G(Lt))})},H.prototype.loaded=function(){return this._loaded},H.prototype.loadTile=function(G,re){var ke=this,_t=G.actor?"reloadTile":"loadTile";G.actor=this.actor,G.request=this.actor.send(_t,{type:this.type,uid:G.uid,tileID:G.tileID,zoom:G.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:P.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(Lt,bn){return delete G.request,G.unloadVectorData(),G.aborted?re(null):Lt?re(Lt):(G.loadVectorData(bn,ke.map.painter,_t==="reloadTile"),re(null))})},H.prototype.abortTile=function(G){G.request&&(G.request.cancel(),delete G.request),G.aborted=!0},H.prototype.unloadTile=function(G){G.unloadVectorData(),this.actor.send("removeTile",{uid:G.uid,type:this.type,source:this.id})},H.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},H.prototype.serialize=function(){return P.extend({},this._options,{type:this.type,data:this._data})},H.prototype.hasTransition=function(){return!1},H}(P.Evented),Te=P.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),vt=function(B){function H(G,re,ke,_t){B.call(this),this.id=G,this.dispatcher=ke,this.coordinates=re.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(_t),this.options=re}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.load=function(G,re){var ke=this;this._loaded=!1,this.fire(new P.Event("dataloading",{dataType:"source"})),this.url=this.options.url,P.getImage(this.map._requestManager.transformRequest(this.url,P.ResourceType.Image),function(_t,Lt){ke._loaded=!0,_t?ke.fire(new P.ErrorEvent(_t)):Lt&&(ke.image=Lt,G&&(ke.coordinates=G),re&&re(),ke._finishLoading())})},H.prototype.loaded=function(){return this._loaded},H.prototype.updateImage=function(G){var re=this;return this.image&&G.url?(this.options.url=G.url,this.load(G.coordinates,function(){re.texture=null}),this):this},H.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new P.Event("data",{dataType:"source",sourceDataType:"metadata"})))},H.prototype.onAdd=function(G){this.map=G,this.load()},H.prototype.setCoordinates=function(G){var re=this;this.coordinates=G;var ke=G.map(P.MercatorCoordinate.fromLngLat);this.tileID=function(Lt){for(var bn=1/0,_r=1/0,Dn=-1/0,mi=-1/0,Mi=0,Ji=Lt;Mire.end(0)?this.fire(new P.ErrorEvent(new P.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+re.start(0)+" and "+re.end(0)+"-second mark."))):this.video.currentTime=G}},H.prototype.getVideo=function(){return this.video},H.prototype.onAdd=function(G){this.map||(this.map=G,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},H.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var G=this.map.painter.context,re=G.gl;for(var ke in this.boundsBuffer||(this.boundsBuffer=G.createVertexBuffer(this._boundsArray,Te.members)),this.boundsSegments||(this.boundsSegments=P.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(re.LINEAR,re.CLAMP_TO_EDGE),re.texSubImage2D(re.TEXTURE_2D,0,0,0,re.RGBA,re.UNSIGNED_BYTE,this.video)):(this.texture=new P.Texture(G,this.video,re.RGBA),this.texture.bind(re.LINEAR,re.CLAMP_TO_EDGE)),this.tiles){var _t=this.tiles[ke];_t.state!=="loaded"&&(_t.state="loaded",_t.texture=this.texture)}}},H.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},H.prototype.hasTransition=function(){return this.video&&!this.video.paused},H}(vt),Vt=function(B){function H(G,re,ke,_t){B.call(this,G,re,ke,_t),re.coordinates?Array.isArray(re.coordinates)&&re.coordinates.length===4&&!re.coordinates.some(function(Lt){return!Array.isArray(Lt)||Lt.length!==2||Lt.some(function(bn){return typeof bn!="number"})})||this.fire(new P.ErrorEvent(new P.ValidationError("sources."+G,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new P.ErrorEvent(new P.ValidationError("sources."+G,null,'missing required property "coordinates"'))),re.animate&&typeof re.animate!="boolean"&&this.fire(new P.ErrorEvent(new P.ValidationError("sources."+G,null,'optional "animate" property must be a boolean value'))),re.canvas?typeof re.canvas=="string"||re.canvas instanceof P.window.HTMLCanvasElement||this.fire(new P.ErrorEvent(new P.ValidationError("sources."+G,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new P.ErrorEvent(new P.ValidationError("sources."+G,null,'missing required property "canvas"'))),this.options=re,this.animate=re.animate===void 0||re.animate}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof P.window.HTMLCanvasElement?this.options.canvas:P.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new P.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},H.prototype.getCanvas=function(){return this.canvas},H.prototype.onAdd=function(G){this.map=G,this.load(),this.canvas&&this.animate&&this.play()},H.prototype.onRemove=function(){this.pause()},H.prototype.prepare=function(){var G=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,G=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,G=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var re=this.map.painter.context,ke=re.gl;for(var _t in this.boundsBuffer||(this.boundsBuffer=re.createVertexBuffer(this._boundsArray,Te.members)),this.boundsSegments||(this.boundsSegments=P.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(G||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new P.Texture(re,this.canvas,ke.RGBA,{premultiply:!0}),this.tiles){var Lt=this.tiles[_t];Lt.state!=="loaded"&&(Lt.state="loaded",Lt.texture=this.texture)}}},H.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},H.prototype.hasTransition=function(){return this._playing},H.prototype._hasInvalidDimensions=function(){for(var G=0,re=[this.canvas.width,this.canvas.height];Gthis.max){var Lt=this._getAndRemoveByKey(this.order[0]);Lt&&this.onRemove(Lt)}return this},Yr.prototype.has=function(B){return B.wrapped().key in this.data},Yr.prototype.getAndRemove=function(B){return this.has(B)?this._getAndRemoveByKey(B.wrapped().key):null},Yr.prototype._getAndRemoveByKey=function(B){var H=this.data[B].shift();return H.timeout&&clearTimeout(H.timeout),this.data[B].length===0&&delete this.data[B],this.order.splice(this.order.indexOf(B),1),H.value},Yr.prototype.getByKey=function(B){var H=this.data[B];return H?H[0].value:null},Yr.prototype.get=function(B){return this.has(B)?this.data[B.wrapped().key][0].value:null},Yr.prototype.remove=function(B,H){if(!this.has(B))return this;var G=B.wrapped().key,re=H===void 0?0:this.data[G].indexOf(H),ke=this.data[G][re];return this.data[G].splice(re,1),ke.timeout&&clearTimeout(ke.timeout),this.data[G].length===0&&delete this.data[G],this.onRemove(ke.value),this.order.splice(this.order.indexOf(G),1),this},Yr.prototype.setMaxSize=function(B){for(this.max=B;this.order.length>this.max;){var H=this._getAndRemoveByKey(this.order[0]);H&&this.onRemove(H)}return this},Yr.prototype.filter=function(B){var H=[];for(var G in this.data)for(var re=0,ke=this.data[G];re1||(Math.abs(mi)>1&&(Math.abs(mi+Ji)===1?mi+=Ji:Math.abs(mi-Ji)===1&&(mi-=Ji)),Dn.dem&&_r.dem&&(_r.dem.backfillBorder(Dn.dem,mi,Mi),_r.neighboringTiles&&_r.neighboringTiles[zo]&&(_r.neighboringTiles[zo].backfilled=!0)))}},H.prototype.getTile=function(G){return this.getTileByID(G.key)},H.prototype.getTileByID=function(G){return this._tiles[G]},H.prototype._retainLoadedChildren=function(G,re,ke,_t){for(var Lt in this._tiles){var bn=this._tiles[Lt];if(!(_t[Lt]||!bn.hasData()||bn.tileID.overscaledZ<=re||bn.tileID.overscaledZ>ke)){for(var _r=bn.tileID;bn&&bn.tileID.overscaledZ>re+1;){var Dn=bn.tileID.scaledTo(bn.tileID.overscaledZ-1);(bn=this._tiles[Dn.key])&&bn.hasData()&&(_r=Dn)}for(var mi=_r;mi.overscaledZ>re;)if(G[(mi=mi.scaledTo(mi.overscaledZ-1)).key]){_t[_r.key]=_r;break}}}},H.prototype.findLoadedParent=function(G,re){if(G.key in this._loadedParentTiles){var ke=this._loadedParentTiles[G.key];return ke&&ke.tileID.overscaledZ>=re?ke:null}for(var _t=G.overscaledZ-1;_t>=re;_t--){var Lt=G.scaledTo(_t),bn=this._getLoadedTile(Lt);if(bn)return bn}},H.prototype._getLoadedTile=function(G){var re=this._tiles[G.key];return re&&re.hasData()?re:this._cache.getByKey(G.wrapped().key)},H.prototype.updateCacheSize=function(G){var re=Math.ceil(G.width/this._source.tileSize)+1,ke=Math.ceil(G.height/this._source.tileSize)+1,_t=Math.floor(re*ke*5),Lt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,_t):_t;this._cache.setMaxSize(Lt)},H.prototype.handleWrapJump=function(G){var re=Math.round((G-(this._prevLng===void 0?G:this._prevLng))/360);if(this._prevLng=G,re){var ke={};for(var _t in this._tiles){var Lt=this._tiles[_t];Lt.tileID=Lt.tileID.unwrapTo(Lt.tileID.wrap+re),ke[Lt.tileID.key]=Lt}for(var bn in this._tiles=ke,this._timers)clearTimeout(this._timers[bn]),delete this._timers[bn];for(var _r in this._tiles)this._setTileReloadTimer(_r,this._tiles[_r])}},H.prototype.update=function(G){var re=this;if(this.transform=G,this._sourceLoaded&&!this._paused){var ke;this.updateCacheSize(G),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ke=G.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Pu){return new P.OverscaledTileID(Pu.canonical.z,Pu.wrap,Pu.canonical.z,Pu.canonical.x,Pu.canonical.y)}):(ke=G.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ke=ke.filter(function(Pu){return re._source.hasTile(Pu)}))):ke=[];var _t=G.coveringZoomLevel(this._source),Lt=Math.max(_t-H.maxOverzooming,this._source.minzoom),bn=Math.max(_t+H.maxUnderzooming,this._source.minzoom),_r=this._updateRetainedTiles(ke,_t);if(jr(this._source.type)){for(var Dn={},mi={},Mi=0,Ji=Object.keys(_r);Mithis._source.maxzoom){var js=Gi.children(this._source.maxzoom)[0],za=this.getTile(js);if(za&&za.hasData()){ke[js.key]=js;continue}}else{var Oa=Gi.children(this._source.maxzoom);if(ke[Oa[0].key]&&ke[Oa[1].key]&&ke[Oa[2].key]&&ke[Oa[3].key])continue}for(var Ul=Fo.wasRequested(),cl=Gi.overscaledZ-1;cl>=Lt;--cl){var du=Gi.scaledTo(cl);if(_t[du.key]||(_t[du.key]=!0,!(Fo=this.getTile(du))&&Ul&&(Fo=this._addTile(du)),Fo&&(ke[du.key]=du,Ul=Fo.wasRequested(),Fo.hasData())))break}}}return ke},H.prototype._updateLoadedParentTileCache=function(){for(var G in this._loadedParentTiles={},this._tiles){for(var re=[],ke=void 0,_t=this._tiles[G].tileID;_t.overscaledZ>0;){if(_t.key in this._loadedParentTiles){ke=this._loadedParentTiles[_t.key];break}re.push(_t.key);var Lt=_t.scaledTo(_t.overscaledZ-1);if(ke=this._getLoadedTile(Lt))break;_t=Lt}for(var bn=0,_r=re;bn<_r.length;bn+=1)this._loadedParentTiles[_r[bn]]=ke}},H.prototype._addTile=function(G){var re=this._tiles[G.key];if(re)return re;(re=this._cache.getAndRemove(G))&&(this._setTileReloadTimer(G.key,re),re.tileID=G,this._state.initializeTileState(re,this.map?this.map.painter:null),this._cacheTimers[G.key]&&(clearTimeout(this._cacheTimers[G.key]),delete this._cacheTimers[G.key],this._setTileReloadTimer(G.key,re)));var ke=!!re;return ke||(re=new P.Tile(G,this._source.tileSize*G.overscaleFactor()),this._loadTile(re,this._tileLoaded.bind(this,re,G.key,re.state))),re?(re.uses++,this._tiles[G.key]=re,ke||this._source.fire(new P.Event("dataloading",{tile:re,coord:re.tileID,dataType:"source"})),re):null},H.prototype._setTileReloadTimer=function(G,re){var ke=this;G in this._timers&&(clearTimeout(this._timers[G]),delete this._timers[G]);var _t=re.getExpiryTimeout();_t&&(this._timers[G]=setTimeout(function(){ke._reloadTile(G,"expired"),delete ke._timers[G]},_t))},H.prototype._removeTile=function(G){var re=this._tiles[G];re&&(re.uses--,delete this._tiles[G],this._timers[G]&&(clearTimeout(this._timers[G]),delete this._timers[G]),re.uses>0||(re.hasData()&&re.state!=="reloading"?this._cache.add(re.tileID,re,re.getExpiryTimeout()):(re.aborted=!0,this._abortTile(re),this._unloadTile(re))))},H.prototype.clearTiles=function(){for(var G in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(G);this._cache.reset()},H.prototype.tilesIn=function(G,re,ke){var _t=this,Lt=[],bn=this.transform;if(!bn)return Lt;for(var _r=ke?bn.getCameraQueryGeometry(G):G,Dn=G.map(function(cl){return bn.pointCoordinate(cl)}),mi=_r.map(function(cl){return bn.pointCoordinate(cl)}),Mi=this.getIds(),Ji=1/0,zo=1/0,Yo=-1/0,Gi=-1/0,Fo=0,js=mi;Fo=0&&qc[1].y+ju>=0){var vh=Dn.map(function(Gh){return Pu.getTilePoint(Gh)}),td=mi.map(function(Gh){return Pu.getTilePoint(Gh)});Lt.push({tile:du,tileID:Pu,queryGeometry:vh,cameraQueryGeometry:td,scale:ec})}}},Ul=0;Ul=P.browser.now())return!0}return!1},H.prototype.setFeatureState=function(G,re,ke){this._state.updateState(G=G||"_geojsonTileLayer",re,ke)},H.prototype.removeFeatureState=function(G,re,ke){this._state.removeFeatureState(G=G||"_geojsonTileLayer",re,ke)},H.prototype.getFeatureState=function(G,re){return this._state.getState(G=G||"_geojsonTileLayer",re)},H.prototype.setDependencies=function(G,re,ke){var _t=this._tiles[G];_t&&_t.setDependencies(re,ke)},H.prototype.reloadTilesForDependencies=function(G,re){for(var ke in this._tiles)this._tiles[ke].hasDependency(G,re)&&this._reloadTile(ke,"reloading");this._cache.filter(function(_t){return!_t.hasDependency(G,re)})},H}(P.Evented);function Fr(B,H){var G=Math.abs(2*B.wrap)-+(B.wrap<0),re=Math.abs(2*H.wrap)-+(H.wrap<0);return B.overscaledZ-H.overscaledZ||re-G||H.canonical.y-B.canonical.y||H.canonical.x-B.canonical.x}function jr(B){return B==="raster"||B==="image"||B==="video"}function bo(){return new P.window.Worker(kr.workerUrl)}er.maxOverzooming=10,er.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",en=function(){this.active={}};en.prototype.acquire=function(B){if(!this.workers)for(this.workers=[];this.workers.length0?(re-_t)/Lt:0;return this.points[ke].mult(1-bn).add(this.points[H].mult(bn))};var Br=function(B,H,G){var re=this.boxCells=[],ke=this.circleCells=[];this.xCellCount=Math.ceil(B/G),this.yCellCount=Math.ceil(H/G);for(var _t=0;_t=-H[0]&&G<=H[0]&&re>=-H[1]&&re<=H[1]}function Wi(B,H,G,re,ke,_t,Lt,bn){var _r=re?B.textSizeData:B.iconSizeData,Dn=P.evaluateSizeForZoom(_r,G.transform.zoom),mi=[256/G.width*2+1,256/G.height*2+1],Mi=re?B.text.dynamicLayoutVertexArray:B.icon.dynamicLayoutVertexArray;Mi.clear();for(var Ji=B.lineVertexArray,zo=re?B.text.placedSymbolArray:B.icon.placedSymbolArray,Yo=G.transform.width/G.transform.height,Gi=!1,Fo=0;FoMath.abs(G.x-H.x)*re?{useVertical:!0}:(B===P.WritingMode.vertical?H.yG.x)?{needsFlipping:!0}:null}function ko(B,H,G,re,ke,_t,Lt,bn,_r,Dn,mi,Mi,Ji,zo){var Yo,Gi=H/24,Fo=B.lineOffsetX*Gi,js=B.lineOffsetY*Gi;if(B.numGlyphs>1){var za=B.glyphStartIndex+B.numGlyphs,Oa=B.lineStartIndex,Ul=B.lineStartIndex+B.lineLength,cl=Yi(Gi,bn,Fo,js,G,mi,Mi,B,_r,_t,Ji);if(!cl)return{notEnoughRoom:!0};var du=qi(cl.first.point,Lt).point,Pu=qi(cl.last.point,Lt).point;if(re&&!G){var ec=so(B.writingMode,du,Pu,zo);if(ec)return ec}Yo=[cl.first];for(var ju=B.glyphStartIndex+1;ju0?Gh.point:_i(Mi,td,qc,1,ke),Qc=so(B.writingMode,qc,Yd,zo);if(Qc)return Qc}var wc=hs(Gi*bn.getoffsetX(B.glyphStartIndex),Fo,js,G,mi,Mi,B.segment,B.lineStartIndex,B.lineStartIndex+B.lineLength,_r,_t,Ji);if(!wc)return{notEnoughRoom:!0};Yo=[wc]}for(var bf=0,Jd=Yo;bf0?1:-1,Yo=0;re&&(zo*=-1,Yo=Math.PI),zo<0&&(Yo+=Math.PI);for(var Gi=zo>0?bn+Lt:bn+Lt+1,Fo=ke,js=ke,za=0,Oa=0,Ul=Math.abs(Ji),cl=[];za+Oa<=Ul;){if((Gi+=zo)=_r)return null;if(js=Fo,cl.push(Fo),(Fo=Mi[Gi])===void 0){var du=new P.Point(Dn.getx(Gi),Dn.gety(Gi)),Pu=qi(du,mi);if(Pu.signedDistanceFromCamera>0)Fo=Mi[Gi]=Pu.point;else{var ec=Gi-zo;Fo=_i(za===0?_t:new P.Point(Dn.getx(ec),Dn.gety(ec)),du,js,Ul-za+1,mi)}}za+=Oa,Oa=js.dist(Fo)}var ju=(Ul-za)/Oa,qc=Fo.sub(js),vh=qc.mult(ju)._add(js);vh._add(qc._unit()._perp()._mult(G*zo));var td=Yo+Math.atan2(Fo.y-js.y,Fo.x-js.x);return cl.push(vh),{point:vh,angle:td,path:cl}}Br.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Br.prototype.insert=function(B,H,G,re,ke){this._forEachCell(H,G,re,ke,this._insertBoxCell,this.boxUid++),this.boxKeys.push(B),this.bboxes.push(H),this.bboxes.push(G),this.bboxes.push(re),this.bboxes.push(ke)},Br.prototype.insertCircle=function(B,H,G,re){this._forEachCell(H-re,G-re,H+re,G+re,this._insertCircleCell,this.circleUid++),this.circleKeys.push(B),this.circles.push(H),this.circles.push(G),this.circles.push(re)},Br.prototype._insertBoxCell=function(B,H,G,re,ke,_t){this.boxCells[ke].push(_t)},Br.prototype._insertCircleCell=function(B,H,G,re,ke,_t){this.circleCells[ke].push(_t)},Br.prototype._query=function(B,H,G,re,ke,_t){if(G<0||B>this.width||re<0||H>this.height)return!ke&&[];var Lt=[];if(B<=0&&H<=0&&this.width<=G&&this.height<=re){if(ke)return!0;for(var bn=0;bn0:Lt},Br.prototype._queryCircle=function(B,H,G,re,ke){var _t=B-G,Lt=B+G,bn=H-G,_r=H+G;if(Lt<0||_t>this.width||_r<0||bn>this.height)return!re&&[];var Dn=[];return this._forEachCell(_t,bn,Lt,_r,this._queryCellCircle,Dn,{hitTest:re,circle:{x:B,y:H,radius:G},seenUids:{box:{},circle:{}}},ke),re?Dn.length>0:Dn},Br.prototype.query=function(B,H,G,re,ke){return this._query(B,H,G,re,!1,ke)},Br.prototype.hitTest=function(B,H,G,re,ke){return this._query(B,H,G,re,!0,ke)},Br.prototype.hitTestCircle=function(B,H,G,re){return this._queryCircle(B,H,G,!0,re)},Br.prototype._queryCell=function(B,H,G,re,ke,_t,Lt,bn){var _r=Lt.seenUids,Dn=this.boxCells[ke];if(Dn!==null)for(var mi=this.bboxes,Mi=0,Ji=Dn;Mi=mi[Yo+0]&&re>=mi[Yo+1]&&(!bn||bn(this.boxKeys[zo]))){if(Lt.hitTest)return _t.push(!0),!0;_t.push({key:this.boxKeys[zo],x1:mi[Yo],y1:mi[Yo+1],x2:mi[Yo+2],y2:mi[Yo+3]})}}}var Gi=this.circleCells[ke];if(Gi!==null)for(var Fo=this.circles,js=0,za=Gi;jsLt*Lt+bn*bn},Br.prototype._circleAndRectCollide=function(B,H,G,re,ke,_t,Lt){var bn=(_t-re)/2,_r=Math.abs(B-(re+bn));if(_r>bn+G)return!1;var Dn=(Lt-ke)/2,mi=Math.abs(H-(ke+Dn));if(mi>Dn+G)return!1;if(_r<=bn||mi<=Dn)return!0;var Mi=_r-bn,Ji=mi-Dn;return Mi*Mi+Ji*Ji<=G*G};var Ts=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Qr(B,H){for(var G=0;G=1;Yd--)Gh.push(vh.path[Yd]);for(var Qc=1;Qc0){for(var nd=Gh[0].clone(),gf=Gh[0].clone(),qd=1;qd=ec.x&&gf.x<=ju.x&&nd.y>=ec.y&&gf.y<=ju.y?[Gh]:gf.xju.x||gf.yju.y?[]:P.clipLine([Gh],ec.x,ec.y,ju.x,ju.y)}for(var _d=0,jp=Jd;_d=this.screenRightBoundary||re<100||H>this.screenBottomBoundary},Ri.prototype.isInsideGrid=function(B,H,G,re){return G>=0&&B=0&&H0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Mi.crossTileID]&&this.prevPlacement.placements[Mi.crossTileID]&&this.prevPlacement.placements[Mi.crossTileID].text&&(Gi=this.prevPlacement.variableOffsets[Mi.crossTileID].anchor),this.variableOffsets[Mi.crossTileID]={textOffset:Fo,width:G,height:re,anchor:B,textBoxScale:ke,prevAnchor:Gi},this.markUsedJustification(Ji,B,Mi,zo),Ji.allowVerticalPlacement&&(this.markUsedOrientation(Ji,zo,Mi),this.placedOrientations[Mi.crossTileID]=zo),{shift:js,placedGlyphBoxes:za}):void 0},tl.prototype.placeLayerBucketPart=function(B,H,G){var re=this,ke=B.parameters,_t=ke.bucket,Lt=ke.layout,bn=ke.posMatrix,_r=ke.textLabelPlaneMatrix,Dn=ke.labelToScreenMatrix,mi=ke.textPixelRatio,Mi=ke.holdingForFade,Ji=ke.collisionBoxArray,zo=ke.partiallyEvaluatedTextSize,Yo=ke.collisionGroup,Gi=Lt.get("text-optional"),Fo=Lt.get("icon-optional"),js=Lt.get("text-allow-overlap"),za=Lt.get("icon-allow-overlap"),Oa=Lt.get("text-rotation-alignment")==="map",Ul=Lt.get("text-pitch-alignment")==="map",cl=Lt.get("icon-text-fit")!=="none",du=Lt.get("symbol-z-order")==="viewport-y",Pu=js&&(za||!_t.hasIconData()||Fo),ec=za&&(js||!_t.hasTextData()||Gi);!_t.collisionArrays&&Ji&&_t.deserializeCollisionBoxes(Ji);var ju=function(Qc,wc){if(!H[Qc.crossTileID])if(Mi)re.placements[Qc.crossTileID]=new Bs(!1,!1,!1);else{var bf,Jd=!1,nd=!1,gf=!0,qd=null,_d={box:null,offscreen:null},jp={box:null,offscreen:null},wp=null,Lp=null,jc=0,yc=0,yh=0;wc.textFeatureIndex?jc=wc.textFeatureIndex:Qc.useRuntimeCollisionCircles&&(jc=Qc.featureIndex),wc.verticalTextFeatureIndex&&(yc=wc.verticalTextFeatureIndex);var uh=wc.textBox;if(uh){var ad=function(Od){var xf=P.WritingMode.horizontal;if(_t.allowVerticalPlacement&&!Od&&re.prevPlacement){var Vg=re.prevPlacement.placedOrientations[Qc.crossTileID];Vg&&(re.placedOrientations[Qc.crossTileID]=Vg,re.markUsedOrientation(_t,xf=Vg,Qc))}return xf},bc=function(Od,xf){if(_t.allowVerticalPlacement&&Qc.numVerticalGlyphVertices>0&&wc.verticalTextBox)for(var Vg=0,im=_t.writingModes;Vg0&&(kd=kd.filter(function(Od){return Od!==Qd.anchor})).unshift(Qd.anchor)}var eh=function(Od,xf,Vg){for(var im=Od.x2-Od.x1,ep=Od.y2-Od.y1,Ld=Qc.textBoxScale,g0=cl&&!za?xf:null,zm={box:[],offscreen:!1},Ym=js?2*kd.length:kd.length,lm=0;lm=kd.length,Qc,_t,Vg,g0);if(b0&&(zm=b0.placedGlyphBoxes)&&zm.box&&zm.box.length){Jd=!0,qd=b0.shift;break}}return zm};bc(function(){return eh(uh,wc.iconBox,P.WritingMode.horizontal)},function(){var Od=wc.verticalTextBox;return _t.allowVerticalPlacement&&!(_d&&_d.box&&_d.box.length)&&Qc.numVerticalGlyphVertices>0&&Od?eh(Od,wc.verticalIconBox,P.WritingMode.vertical):{box:null,offscreen:null}}),_d&&(Jd=_d.box,gf=_d.offscreen);var Oo=ad(_d&&_d.box);if(!Jd&&re.prevPlacement){var Vp=re.prevPlacement.variableOffsets[Qc.crossTileID];Vp&&(re.variableOffsets[Qc.crossTileID]=Vp,re.markUsedJustification(_t,Vp.anchor,Qc,Oo))}}else{var Rp=function(Od,xf){var Vg=re.collisionIndex.placeCollisionBox(Od,js,mi,bn,Yo.predicate);return Vg&&Vg.box&&Vg.box.length&&(re.markUsedOrientation(_t,xf,Qc),re.placedOrientations[Qc.crossTileID]=xf),Vg};bc(function(){return Rp(uh,P.WritingMode.horizontal)},function(){var Od=wc.verticalTextBox;return _t.allowVerticalPlacement&&Qc.numVerticalGlyphVertices>0&&Od?Rp(Od,P.WritingMode.vertical):{box:null,offscreen:null}}),ad(_d&&_d.box&&_d.box.length)}}if(Jd=(bf=_d)&&bf.box&&bf.box.length>0,gf=bf&&bf.offscreen,Qc.useRuntimeCollisionCircles){var am=_t.text.placedSymbolArray.get(Qc.centerJustifiedTextSymbolIndex),Ng=P.evaluateSizeForFeature(_t.textSizeData,zo,am),sp=Lt.get("text-padding");wp=re.collisionIndex.placeCollisionCircles(js,am,_t.lineVertexArray,_t.glyphOffsetArray,Ng,bn,_r,Dn,G,Ul,Yo.predicate,Qc.collisionCircleDiameter,sp),Jd=js||wp.circles.length>0&&!wp.collisionDetected,gf=gf&&wp.offscreen}if(wc.iconFeatureIndex&&(yh=wc.iconFeatureIndex),wc.iconBox){var _g=function(Od){var xf=cl&&qd?el(Od,qd.x,qd.y,Oa,Ul,re.transform.angle):Od;return re.collisionIndex.placeCollisionBox(xf,za,mi,bn,Yo.predicate)};nd=jp&&jp.box&&jp.box.length&&wc.verticalIconBox?(Lp=_g(wc.verticalIconBox)).box.length>0:(Lp=_g(wc.iconBox)).box.length>0,gf=gf&&Lp.offscreen}var ld=Gi||Qc.numHorizontalGlyphVertices===0&&Qc.numVerticalGlyphVertices===0,bg=Fo||Qc.numIconVertices===0;if(ld||bg?bg?ld||(nd=nd&&Jd):Jd=nd&&Jd:nd=Jd=nd&&Jd,Jd&&bf&&bf.box&&re.collisionIndex.insertCollisionBox(bf.box,Lt.get("text-ignore-placement"),_t.bucketInstanceId,jp&&jp.box&&yc?yc:jc,Yo.ID),nd&&Lp&&re.collisionIndex.insertCollisionBox(Lp.box,Lt.get("icon-ignore-placement"),_t.bucketInstanceId,yh,Yo.ID),wp&&(Jd&&re.collisionIndex.insertCollisionCircles(wp.circles,Lt.get("text-ignore-placement"),_t.bucketInstanceId,jc,Yo.ID),G)){var xg=_t.bucketInstanceId,ip=re.collisionCircleArrays[xg];ip===void 0&&(ip=re.collisionCircleArrays[xg]=new fa);for(var Tg=0;Tg=0;--vh){var td=qc[vh];ju(_t.symbolInstances.get(td),_t.collisionArrays[td])}else for(var Gh=B.symbolInstanceStart;Gh=0&&(B.text.placedSymbolArray.get(bn).crossTileID=ke>=0&&bn!==ke?0:G.crossTileID)}},tl.prototype.markUsedOrientation=function(B,H,G){for(var re=H===P.WritingMode.horizontal||H===P.WritingMode.horizontalOnly?H:0,ke=H===P.WritingMode.vertical?H:0,_t=0,Lt=[G.leftJustifiedTextSymbolIndex,G.centerJustifiedTextSymbolIndex,G.rightJustifiedTextSymbolIndex];_t0,ec=re.placedOrientations[za.crossTileID],ju=ec===P.WritingMode.vertical,qc=ec===P.WritingMode.horizontal||ec===P.WritingMode.horizontalOnly;if(Oa>0||Ul>0){var vh=Ao(du.text);zo(B.text,Oa,ju?rs:vh),zo(B.text,Ul,qc?rs:vh);var td=du.text.isHidden();[za.rightJustifiedTextSymbolIndex,za.centerJustifiedTextSymbolIndex,za.leftJustifiedTextSymbolIndex].forEach(function(_d){_d>=0&&(B.text.placedSymbolArray.get(_d).hidden=td||ju?1:0)}),za.verticalPlacedTextSymbolIndex>=0&&(B.text.placedSymbolArray.get(za.verticalPlacedTextSymbolIndex).hidden=td||qc?1:0);var Gh=re.variableOffsets[za.crossTileID];Gh&&re.markUsedJustification(B,Gh.anchor,za,ec);var Yd=re.placedOrientations[za.crossTileID];Yd&&(re.markUsedJustification(B,"left",za,Yd),re.markUsedOrientation(B,Yd,za))}if(Pu){var Qc=Ao(du.icon),wc=!(Mi&&za.verticalPlacedIconSymbolIndex&&ju);za.placedIconSymbolIndex>=0&&(zo(B.icon,za.numIconVertices,wc?Qc:rs),B.icon.placedSymbolArray.get(za.placedIconSymbolIndex).hidden=du.icon.isHidden()),za.verticalPlacedIconSymbolIndex>=0&&(zo(B.icon,za.numVerticalIconVertices,wc?rs:Qc),B.icon.placedSymbolArray.get(za.verticalPlacedIconSymbolIndex).hidden=du.icon.isHidden())}if(B.hasIconCollisionBoxData()||B.hasTextCollisionBoxData()){var bf=B.collisionArrays[js];if(bf){var Jd=new P.Point(0,0);if(bf.textBox||bf.verticalTextBox){var nd=!0;if(_r){var gf=re.variableOffsets[cl];gf?(Jd=Ds(gf.anchor,gf.width,gf.height,gf.textOffset,gf.textBoxScale),Dn&&Jd._rotate(mi?re.transform.angle:-re.transform.angle)):nd=!1}bf.textBox&&sn(B.textCollisionBox.collisionVertexArray,du.text.placed,!nd||ju,Jd.x,Jd.y),bf.verticalTextBox&&sn(B.textCollisionBox.collisionVertexArray,du.text.placed,!nd||qc,Jd.x,Jd.y)}var qd=!!(!qc&&bf.verticalIconBox);bf.iconBox&&sn(B.iconCollisionBox.collisionVertexArray,du.icon.placed,qd,Mi?Jd.x:0,Mi?Jd.y:0),bf.verticalIconBox&&sn(B.iconCollisionBox.collisionVertexArray,du.icon.placed,!qd,Mi?Jd.x:0,Mi?Jd.y:0)}}},Gi=0;GiB},tl.prototype.setStale=function(){this.stale=!0};var dt=Math.pow(2,25),Mt=Math.pow(2,24),Zt=Math.pow(2,17),Kt=Math.pow(2,16),Nn=Math.pow(2,9),Ur=Math.pow(2,8),Ui=Math.pow(2,1);function Ao(B){if(B.opacity===0&&!B.placed)return 0;if(B.opacity===1&&B.placed)return 4294967295;var H=B.placed?1:0,G=Math.floor(127*B.opacity);return G*dt+H*Mt+G*Zt+H*Kt+G*Nn+H*Ur+G*Ui+H}var rs=0,ps=function(B){this._sortAcrossTiles=B.layout.get("symbol-z-order")!=="viewport-y"&&B.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ps.prototype.continuePlacement=function(B,H,G,re,ke){for(var _t=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Lt=H[B[this._currentPlacementIndex]],bn=this.placement.collisionIndex.transform.zoom;if(Lt.type==="symbol"&&(!Lt.minzoom||Lt.minzoom<=bn)&&(!Lt.maxzoom||Lt.maxzoom>bn)){if(this._inProgressLayer||(this._inProgressLayer=new ps(Lt)),this._inProgressLayer.continuePlacement(G[Lt.source],this.placement,this._showCollisionBoxes,Lt,_t))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Po.prototype.commit=function(B){return this.placement.commit(B),this.placement};var $a=512/P.EXTENT/2,nl=function(B,H,G){this.tileID=B,this.indexedSymbolInstances={},this.bucketInstanceId=G;for(var re=0;reB.overscaledZ)for(var bn in Lt){var _r=Lt[bn];_r.tileID.isChildOf(B)&&_r.findMatches(H.symbolInstances,B,ke)}else{var Dn=Lt[B.scaledTo(Number(_t)).key];Dn&&Dn.findMatches(H.symbolInstances,B,ke)}}for(var mi=0;mi1?"@2x":"",Mi=P.getJSON(_t.transformRequest(_t.normalizeSpriteURL(ke,mi,".json"),P.ResourceType.SpriteJSON),function(Yo,Gi){Mi=null,Dn||(Dn=Yo,bn=Gi,zo())}),Ji=P.getImage(_t.transformRequest(_t.normalizeSpriteURL(ke,mi,".png"),P.ResourceType.SpriteImage),function(Yo,Gi){Ji=null,Dn||(Dn=Yo,_r=Gi,zo())});function zo(){if(Dn)Lt(Dn);else if(bn&&_r){var Yo=P.browser.getImageData(_r),Gi={};for(var Fo in bn){var js=bn[Fo],za=js.width,Oa=js.height,Ul=js.x,cl=js.y,du=js.sdf,Pu=js.pixelRatio,ec=js.stretchX,ju=js.stretchY,qc=js.content,vh=new P.RGBAImage({width:za,height:Oa});P.RGBAImage.copy(Yo,vh,{x:Ul,y:cl},{x:0,y:0},{width:za,height:Oa}),Gi[Fo]={data:vh,pixelRatio:Pu,sdf:du,stretchX:ec,stretchY:ju,content:qc}}Lt(null,Gi)}}return{cancel:function(){Mi&&(Mi.cancel(),Mi=null),Ji&&(Ji.cancel(),Ji=null)}}}(G,this.map._requestManager,function(ke,_t){if(re._spriteRequest=null,ke)re.fire(new P.ErrorEvent(ke));else if(_t)for(var Lt in _t)re.imageManager.addImage(Lt,_t[Lt]);re.imageManager.setLoaded(!0),re._availableImages=re.imageManager.listImages(),re.dispatcher.broadcast("setImages",re._availableImages),re.fire(new P.Event("data",{dataType:"style"}))})},H.prototype._validateLayer=function(G){var re=this.sourceCaches[G.source];if(re){var ke=G.sourceLayer;if(ke){var _t=re.getSource();(_t.type==="geojson"||_t.vectorLayerIds&&_t.vectorLayerIds.indexOf(ke)===-1)&&this.fire(new P.ErrorEvent(new Error('Source layer "'+ke+'" does not exist on source "'+_t.id+'" as specified by style layer "'+G.id+'"')))}}},H.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var G in this.sourceCaches)if(!this.sourceCaches[G].loaded())return!1;return!!this.imageManager.isLoaded()},H.prototype._serializeLayers=function(G){for(var re=[],ke=0,_t=G;ke<_t.length;ke+=1){var Lt=this._layers[_t[ke]];Lt.type!=="custom"&&re.push(Lt.serialize())}return re},H.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var G in this.sourceCaches)if(this.sourceCaches[G].hasTransition())return!0;for(var re in this._layers)if(this._layers[re].hasTransition())return!0;return!1},H.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},H.prototype.update=function(G){if(this._loaded){var re=this._changed;if(this._changed){var ke=Object.keys(this._updatedLayers),_t=Object.keys(this._removedLayers);for(var Lt in(ke.length||_t.length)&&this._updateWorkerLayers(ke,_t),this._updatedSources){var bn=this._updatedSources[Lt];bn==="reload"?this._reloadSource(Lt):bn==="clear"&&this._clearSource(Lt)}for(var _r in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[_r].updateTransitions(G);this.light.updateTransitions(G),this._resetUpdates()}var Dn={};for(var mi in this.sourceCaches){var Mi=this.sourceCaches[mi];Dn[mi]=Mi.used,Mi.used=!1}for(var Ji=0,zo=this._order;Ji0)throw new Error("Unimplemented: "+_t.map(function(Lt){return Lt.command}).join(", ")+".");return ke.forEach(function(Lt){Lt.command!=="setTransition"&&re[Lt.command].apply(re,Lt.args)}),this.stylesheet=G,!0},H.prototype.addImage=function(G,re){if(this.getImage(G))return this.fire(new P.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(G,re),this._afterImageUpdated(G)},H.prototype.updateImage=function(G,re){this.imageManager.updateImage(G,re)},H.prototype.getImage=function(G){return this.imageManager.getImage(G)},H.prototype.removeImage=function(G){if(!this.getImage(G))return this.fire(new P.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(G),this._afterImageUpdated(G)},H.prototype._afterImageUpdated=function(G){this._availableImages=this.imageManager.listImages(),this._changedImages[G]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new P.Event("data",{dataType:"style"}))},H.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},H.prototype.addSource=function(G,re,ke){var _t=this;if(ke===void 0&&(ke={}),this._checkLoaded(),this.sourceCaches[G]!==void 0)throw new Error("There is already a source with this ID");if(!re.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(re).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(re.type)>=0&&this._validate(P.validateStyle.source,"sources."+G,re,null,ke))){this.map&&this.map._collectResourceTiming&&(re.collectResourceTiming=!0);var Lt=this.sourceCaches[G]=new er(G,re,this.dispatcher);Lt.style=this,Lt.setEventedParent(this,function(){return{isSourceLoaded:_t.loaded(),source:Lt.serialize(),sourceId:G}}),Lt.onAdd(this.map),this._changed=!0}},H.prototype.removeSource=function(G){if(this._checkLoaded(),this.sourceCaches[G]===void 0)throw new Error("There is no source with this ID");for(var re in this._layers)if(this._layers[re].source===G)return this.fire(new P.ErrorEvent(new Error('Source "'+G+'" cannot be removed while layer "'+re+'" is using it.')));var ke=this.sourceCaches[G];delete this.sourceCaches[G],delete this._updatedSources[G],ke.fire(new P.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:G})),ke.setEventedParent(null),ke.clearTiles(),ke.onRemove&&ke.onRemove(this.map),this._changed=!0},H.prototype.setGeoJSONSourceData=function(G,re){this._checkLoaded(),this.sourceCaches[G].getSource().setData(re),this._changed=!0},H.prototype.getSource=function(G){return this.sourceCaches[G]&&this.sourceCaches[G].getSource()},H.prototype.addLayer=function(G,re,ke){ke===void 0&&(ke={}),this._checkLoaded();var _t=G.id;if(this.getLayer(_t))this.fire(new P.ErrorEvent(new Error('Layer with id "'+_t+'" already exists on this map')));else{var Lt;if(G.type==="custom"){if(xa(this,P.validateCustomStyleLayer(G)))return;Lt=P.createStyleLayer(G)}else{if(typeof G.source=="object"&&(this.addSource(_t,G.source),G=P.clone$1(G),G=P.extend(G,{source:_t})),this._validate(P.validateStyle.layer,"layers."+_t,G,{arrayIndex:-1},ke))return;Lt=P.createStyleLayer(G),this._validateLayer(Lt),Lt.setEventedParent(this,{layer:{id:_t}}),this._serializedLayers[Lt.id]=Lt.serialize()}var bn=re?this._order.indexOf(re):this._order.length;if(re&&bn===-1)this.fire(new P.ErrorEvent(new Error('Layer with id "'+re+'" does not exist on this map.')));else{if(this._order.splice(bn,0,_t),this._layerOrderChanged=!0,this._layers[_t]=Lt,this._removedLayers[_t]&&Lt.source&&Lt.type!=="custom"){var _r=this._removedLayers[_t];delete this._removedLayers[_t],_r.type!==Lt.type?this._updatedSources[Lt.source]="clear":(this._updatedSources[Lt.source]="reload",this.sourceCaches[Lt.source].pause())}this._updateLayer(Lt),Lt.onAdd&&Lt.onAdd(this.map)}}},H.prototype.moveLayer=function(G,re){if(this._checkLoaded(),this._changed=!0,this._layers[G]){if(G!==re){var ke=this._order.indexOf(G);this._order.splice(ke,1);var _t=re?this._order.indexOf(re):this._order.length;re&&_t===-1?this.fire(new P.ErrorEvent(new Error('Layer with id "'+re+'" does not exist on this map.'))):(this._order.splice(_t,0,G),this._layerOrderChanged=!0)}}else this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot be moved.")))},H.prototype.removeLayer=function(G){this._checkLoaded();var re=this._layers[G];if(re){re.setEventedParent(null);var ke=this._order.indexOf(G);this._order.splice(ke,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[G]=re,delete this._layers[G],delete this._serializedLayers[G],delete this._updatedLayers[G],delete this._updatedPaintProps[G],re.onRemove&&re.onRemove(this.map)}else this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot be removed.")))},H.prototype.getLayer=function(G){return this._layers[G]},H.prototype.hasLayer=function(G){return G in this._layers},H.prototype.setLayerZoomRange=function(G,re,ke){this._checkLoaded();var _t=this.getLayer(G);_t?_t.minzoom===re&&_t.maxzoom===ke||(re!=null&&(_t.minzoom=re),ke!=null&&(_t.maxzoom=ke),this._updateLayer(_t)):this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot have zoom extent.")))},H.prototype.setFilter=function(G,re,ke){ke===void 0&&(ke={}),this._checkLoaded();var _t=this.getLayer(G);if(_t){if(!P.deepEqual(_t.filter,re))return re==null?(_t.filter=void 0,void this._updateLayer(_t)):void(this._validate(P.validateStyle.filter,"layers."+_t.id+".filter",re,null,ke)||(_t.filter=P.clone$1(re),this._updateLayer(_t)))}else this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot be filtered.")))},H.prototype.getFilter=function(G){return P.clone$1(this.getLayer(G).filter)},H.prototype.setLayoutProperty=function(G,re,ke,_t){_t===void 0&&(_t={}),this._checkLoaded();var Lt=this.getLayer(G);Lt?P.deepEqual(Lt.getLayoutProperty(re),ke)||(Lt.setLayoutProperty(re,ke,_t),this._updateLayer(Lt)):this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot be styled.")))},H.prototype.getLayoutProperty=function(G,re){var ke=this.getLayer(G);if(ke)return ke.getLayoutProperty(re);this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style.")))},H.prototype.setPaintProperty=function(G,re,ke,_t){_t===void 0&&(_t={}),this._checkLoaded();var Lt=this.getLayer(G);Lt?P.deepEqual(Lt.getPaintProperty(re),ke)||(Lt.setPaintProperty(re,ke,_t)&&this._updateLayer(Lt),this._changed=!0,this._updatedPaintProps[G]=!0):this.fire(new P.ErrorEvent(new Error("The layer '"+G+"' does not exist in the map's style and cannot be styled.")))},H.prototype.getPaintProperty=function(G,re){return this.getLayer(G).getPaintProperty(re)},H.prototype.setFeatureState=function(G,re){this._checkLoaded();var ke=G.source,_t=G.sourceLayer,Lt=this.sourceCaches[ke];if(Lt!==void 0){var bn=Lt.getSource().type;bn==="geojson"&&_t?this.fire(new P.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):bn!=="vector"||_t?(G.id===void 0&&this.fire(new P.ErrorEvent(new Error("The feature id parameter must be provided."))),Lt.setFeatureState(_t,G.id,re)):this.fire(new P.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new P.ErrorEvent(new Error("The source '"+ke+"' does not exist in the map's style.")))},H.prototype.removeFeatureState=function(G,re){this._checkLoaded();var ke=G.source,_t=this.sourceCaches[ke];if(_t!==void 0){var Lt=_t.getSource().type,bn=Lt==="vector"?G.sourceLayer:void 0;Lt!=="vector"||bn?re&&typeof G.id!="string"&&typeof G.id!="number"?this.fire(new P.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):_t.removeFeatureState(bn,G.id,re):this.fire(new P.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new P.ErrorEvent(new Error("The source '"+ke+"' does not exist in the map's style.")))},H.prototype.getFeatureState=function(G){this._checkLoaded();var re=G.source,ke=G.sourceLayer,_t=this.sourceCaches[re];if(_t!==void 0){if(_t.getSource().type!=="vector"||ke)return G.id===void 0&&this.fire(new P.ErrorEvent(new Error("The feature id parameter must be provided."))),_t.getFeatureState(ke,G.id);this.fire(new P.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new P.ErrorEvent(new Error("The source '"+re+"' does not exist in the map's style.")))},H.prototype.getTransition=function(){return P.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},H.prototype.serialize=function(){return P.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:P.mapObject(this.sourceCaches,function(G){return G.serialize()}),layers:this._serializeLayers(this._order)},function(G){return G!==void 0})},H.prototype._updateLayer=function(G){this._updatedLayers[G.id]=!0,G.source&&!this._updatedSources[G.source]&&this.sourceCaches[G.source].getSource().type!=="raster"&&(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause()),this._changed=!0},H.prototype._flattenAndSortRenderedFeatures=function(G){for(var re=this,ke=function(ec){return re._layers[ec].type==="fill-extrusion"},_t={},Lt=[],bn=this._order.length-1;bn>=0;bn--){var _r=this._order[bn];if(ke(_r)){_t[_r]=bn;for(var Dn=0,mi=G;Dn=0;Gi--){var Fo=this._order[Gi];if(ke(Fo))for(var js=Lt.length-1;js>=0;js--){var za=Lt[js].feature;if(_t[za.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),sx=Ay("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Kx=Ay("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),t2=Ay(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Yl=da("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Cc=da("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),ch=da("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),mh=da(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -7528,7 +7523,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),I2=Ay(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),_h=da(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -7544,7 +7539,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),D2=Ay(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),wh=da(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -7568,7 +7563,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),J_=Ay(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),vu=da(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -7592,7 +7587,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),ax=Ay(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),ru=da(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -7604,7 +7599,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),rx=Ay(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),Ql=da(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -7638,20 +7633,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),ov=Ay(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Hi=da(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),rv=Ay(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),ji=da(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),yd=Ay(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Gn=da(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -7679,7 +7674,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),kg=Ay(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Sr=da(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -7703,7 +7698,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Vg=Ay(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Rr=da(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -7746,7 +7741,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),wv=Ay(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),co=da(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -7781,11 +7776,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),b1=Ay(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),ns=da(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),I1=Ay(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),fs=da(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -7799,7 +7794,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),k1=Ay(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),vs=da(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -7830,7 +7825,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),S1=Ay(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),as=da(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -7867,118 +7862,118 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ay(re,pe){var ge=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Le=pe.match(/attribute ([\w]+) ([\w]+)/g),Wt=re.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ni=pe.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Vo=ni?ni.concat(Wt):Wt,Ua={};return{fragmentSource:re=re.replace(ge,function(Lg,ou,I0,K0,fv){return Ua[fv]=!0,ou==="define"?` -#ifndef HAS_UNIFORM_u_`+fv+` -varying `+I0+" "+K0+" "+fv+`; +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function da(B,H){var G=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,re=H.match(/attribute ([\w]+) ([\w]+)/g),ke=B.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),_t=H.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Lt=_t?_t.concat(ke):ke,bn={};return{fragmentSource:B=B.replace(G,function(_r,Dn,mi,Mi,Ji){return bn[Ji]=!0,Dn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +varying `+mi+" "+Mi+" "+Ji+`; #else -uniform `+I0+" "+K0+" u_"+fv+`; +uniform `+mi+" "+Mi+" u_"+Ji+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+fv+` - `+I0+" "+K0+" "+fv+" = u_"+fv+`; +#ifdef HAS_UNIFORM_u_`+Ji+` + `+mi+" "+Mi+" "+Ji+" = u_"+Ji+`; #endif -`}),vertexSource:pe=pe.replace(ge,function(Lg,ou,I0,K0,fv){var Yv=K0==="float"?"vec2":"vec4",d1=fv.match(/color/)?"color":Yv;return Ua[fv]?ou==="define"?` -#ifndef HAS_UNIFORM_u_`+fv+` -uniform lowp float u_`+fv+`_t; -attribute `+I0+" "+Yv+" a_"+fv+`; -varying `+I0+" "+K0+" "+fv+`; +`}),vertexSource:H=H.replace(G,function(_r,Dn,mi,Mi,Ji){var zo=Mi==="float"?"vec2":"vec4",Yo=Ji.match(/color/)?"color":zo;return bn[Ji]?Dn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +uniform lowp float u_`+Ji+`_t; +attribute `+mi+" "+zo+" a_"+Ji+`; +varying `+mi+" "+Mi+" "+Ji+`; #else -uniform `+I0+" "+K0+" u_"+fv+`; +uniform `+mi+" "+Mi+" u_"+Ji+`; #endif -`:d1==="vec4"?` -#ifndef HAS_UNIFORM_u_`+fv+` - `+fv+" = a_"+fv+`; +`:Yo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ji+` + `+Ji+" = a_"+Ji+`; #else - `+I0+" "+K0+" "+fv+" = u_"+fv+`; + `+mi+" "+Mi+" "+Ji+" = u_"+Ji+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+fv+` - `+fv+" = unpack_mix_"+d1+"(a_"+fv+", u_"+fv+`_t); +#ifndef HAS_UNIFORM_u_`+Ji+` + `+Ji+" = unpack_mix_"+Yo+"(a_"+Ji+", u_"+Ji+`_t); #else - `+I0+" "+K0+" "+fv+" = u_"+fv+`; + `+mi+" "+Mi+" "+Ji+" = u_"+Ji+`; #endif -`:ou==="define"?` -#ifndef HAS_UNIFORM_u_`+fv+` -uniform lowp float u_`+fv+`_t; -attribute `+I0+" "+Yv+" a_"+fv+`; +`:Dn==="define"?` +#ifndef HAS_UNIFORM_u_`+Ji+` +uniform lowp float u_`+Ji+`_t; +attribute `+mi+" "+zo+" a_"+Ji+`; #else -uniform `+I0+" "+K0+" u_"+fv+`; +uniform `+mi+" "+Mi+" u_"+Ji+`; #endif -`:d1==="vec4"?` -#ifndef HAS_UNIFORM_u_`+fv+` - `+I0+" "+K0+" "+fv+" = a_"+fv+`; +`:Yo==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Ji+` + `+mi+" "+Mi+" "+Ji+" = a_"+Ji+`; #else - `+I0+" "+K0+" "+fv+" = u_"+fv+`; + `+mi+" "+Mi+" "+Ji+" = u_"+Ji+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+fv+` - `+I0+" "+K0+" "+fv+" = unpack_mix_"+d1+"(a_"+fv+", u_"+fv+`_t); +#ifndef HAS_UNIFORM_u_`+Ji+` + `+mi+" "+Mi+" "+Ji+" = unpack_mix_"+Yo+"(a_"+Ji+", u_"+Ji+`_t); #else - `+I0+" "+K0+" "+fv+" = u_"+fv+`; + `+mi+" "+Mi+" "+Ji+" = u_"+Ji+`; #endif -`}),staticAttributes:Le,staticUniforms:Vo}}var U1=Object.freeze({__proto__:null,prelude:Y1,background:M_,backgroundPattern:h1,circle:_v,clippingMask:Iv,heatmap:Ov,heatmapTexture:v1,collisionBox:K1,collisionCircle:sx,debug:Kx,fill:t2,fillOutline:I2,fillOutlinePattern:D2,fillPattern:J_,fillExtrusion:ax,fillExtrusionPattern:rx,hillshadePrepare:ov,hillshade:rv,line:yd,lineGradient:kg,linePattern:Vg,lineSDF:wv,raster:b1,symbolIcon:I1,symbolSDF:k1,symbolTextAndIcon:S1}),E_=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function ty(re){for(var pe=[],ge=0;ge>16,Ua>>16],u_pixel_coord_lower:[65535&Vo,65535&Ua]}}h_.prototype.draw=function(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou,I0,K0,fv,Yv,d1,uv){var e1,iy=re.gl;if(!this.failedToCreate){for(var Jy in re.program.set(this.program),re.setDepthMode(ge),re.setStencilMode(Le),re.setColorMode(Wt),re.setCullFace(ni),this.fixedUniforms)this.fixedUniforms[Jy].set(Vo[Jy]);Yv&&Yv.setUniforms(re,this.binderUniforms,K0,{zoom:fv});for(var qy=(e1={},e1[iy.LINES]=2,e1[iy.TRIANGLES]=3,e1[iy.LINE_STRIP]=1,e1)[pe],H_=0,x_=I0.get();H_0?1-1/(1.001-Vo):-Vo),u_contrast_factor:(ni=Wt.paint.get("raster-contrast"),ni>0?1/(1-ni):1+ni),u_spin_weights:sS(Wt.paint.get("raster-hue-rotate"))};var ni,Vo};function sS(re){re*=Math.PI/180;var pe=Math.sin(re),ge=Math.cos(re);return[(2*ge+1)/3,(-Math.sqrt(3)*pe-ge+1)/3,(Math.sqrt(3)*pe-ge+1)/3]}var UC,FS=function(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou){var I0=Wt.transform;return{u_is_size_zoom_constant:+(re==="constant"||re==="source"),u_is_size_feature_constant:+(re==="constant"||re==="camera"),u_size_t:pe?pe.uSizeT:0,u_size:pe?pe.uSize:0,u_camera_to_center_distance:I0.cameraToCenterDistance,u_pitch:I0.pitch/360*2*Math.PI,u_rotate_symbol:+ge,u_aspect_ratio:I0.width/I0.height,u_fade_change:Wt.options.fadeDuration?Wt.symbolFadeChange:1,u_matrix:ni,u_label_plane_matrix:Vo,u_coord_matrix:Ua,u_is_text:+Lg,u_pitch_with_map:+Le,u_texsize:ou,u_texture:0}},KS=function(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou,I0){var K0=Wt.transform;return b.extend(FS(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou),{u_gamma_scale:Le?Math.cos(K0._pitch)*K0.cameraToCenterDistance:1,u_device_pixel_ratio:b.browser.devicePixelRatio,u_is_halo:+I0})},VC=function(re,pe,ge,Le,Wt,ni,Vo,Ua,Lg,ou){return b.extend(KS(re,pe,ge,Le,Wt,ni,Vo,Ua,!0,Lg,!0),{u_texsize_icon:ou,u_texture_icon:1})},vE=function(re,pe,ge){return{u_matrix:re,u_opacity:pe,u_color:ge}},T1=function(re,pe,ge,Le,Wt,ni){return b.extend(function(Vo,Ua,Lg,ou){var I0=Lg.imageManager.getPattern(Vo.from.toString()),K0=Lg.imageManager.getPattern(Vo.to.toString()),fv=Lg.imageManager.getPixelSize(),Yv=fv.width,d1=fv.height,uv=Math.pow(2,ou.tileID.overscaledZ),e1=ou.tileSize*Math.pow(2,Lg.transform.tileZoom)/uv,iy=e1*(ou.tileID.canonical.x+ou.tileID.wrap*uv),Jy=e1*ou.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:I0.tl,u_pattern_br_a:I0.br,u_pattern_tl_b:K0.tl,u_pattern_br_b:K0.br,u_texsize:[Yv,d1],u_mix:Ua.t,u_pattern_size_a:I0.displaySize,u_pattern_size_b:K0.displaySize,u_scale_a:Ua.fromScale,u_scale_b:Ua.toScale,u_tile_units_to_pixels:1/Rv(ou,1,Lg.transform.tileZoom),u_pixel_coord_upper:[iy>>16,Jy>>16],u_pixel_coord_lower:[65535&iy,65535&Jy]}}(Le,ni,ge,Wt),{u_matrix:re,u_opacity:pe})},ky={fillExtrusion:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_lightpos:new b.Uniform3f(re,pe.u_lightpos),u_lightintensity:new b.Uniform1f(re,pe.u_lightintensity),u_lightcolor:new b.Uniform3f(re,pe.u_lightcolor),u_vertical_gradient:new b.Uniform1f(re,pe.u_vertical_gradient),u_opacity:new b.Uniform1f(re,pe.u_opacity)}},fillExtrusionPattern:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_lightpos:new b.Uniform3f(re,pe.u_lightpos),u_lightintensity:new b.Uniform1f(re,pe.u_lightintensity),u_lightcolor:new b.Uniform3f(re,pe.u_lightcolor),u_vertical_gradient:new b.Uniform1f(re,pe.u_vertical_gradient),u_height_factor:new b.Uniform1f(re,pe.u_height_factor),u_image:new b.Uniform1i(re,pe.u_image),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_pixel_coord_upper:new b.Uniform2f(re,pe.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(re,pe.u_pixel_coord_lower),u_scale:new b.Uniform3f(re,pe.u_scale),u_fade:new b.Uniform1f(re,pe.u_fade),u_opacity:new b.Uniform1f(re,pe.u_opacity)}},fill:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix)}},fillPattern:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_image:new b.Uniform1i(re,pe.u_image),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_pixel_coord_upper:new b.Uniform2f(re,pe.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(re,pe.u_pixel_coord_lower),u_scale:new b.Uniform3f(re,pe.u_scale),u_fade:new b.Uniform1f(re,pe.u_fade)}},fillOutline:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_world:new b.Uniform2f(re,pe.u_world)}},fillOutlinePattern:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_world:new b.Uniform2f(re,pe.u_world),u_image:new b.Uniform1i(re,pe.u_image),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_pixel_coord_upper:new b.Uniform2f(re,pe.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(re,pe.u_pixel_coord_lower),u_scale:new b.Uniform3f(re,pe.u_scale),u_fade:new b.Uniform1f(re,pe.u_fade)}},circle:function(re,pe){return{u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_scale_with_map:new b.Uniform1i(re,pe.u_scale_with_map),u_pitch_with_map:new b.Uniform1i(re,pe.u_pitch_with_map),u_extrude_scale:new b.Uniform2f(re,pe.u_extrude_scale),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix)}},collisionBox:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_pixels_to_tile_units:new b.Uniform1f(re,pe.u_pixels_to_tile_units),u_extrude_scale:new b.Uniform2f(re,pe.u_extrude_scale),u_overscale_factor:new b.Uniform1f(re,pe.u_overscale_factor)}},collisionCircle:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_inv_matrix:new b.UniformMatrix4f(re,pe.u_inv_matrix),u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_viewport_size:new b.Uniform2f(re,pe.u_viewport_size)}},debug:function(re,pe){return{u_color:new b.UniformColor(re,pe.u_color),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_overlay:new b.Uniform1i(re,pe.u_overlay),u_overlay_scale:new b.Uniform1f(re,pe.u_overlay_scale)}},clippingMask:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix)}},heatmap:function(re,pe){return{u_extrude_scale:new b.Uniform1f(re,pe.u_extrude_scale),u_intensity:new b.Uniform1f(re,pe.u_intensity),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix)}},heatmapTexture:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_world:new b.Uniform2f(re,pe.u_world),u_image:new b.Uniform1i(re,pe.u_image),u_color_ramp:new b.Uniform1i(re,pe.u_color_ramp),u_opacity:new b.Uniform1f(re,pe.u_opacity)}},hillshade:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_image:new b.Uniform1i(re,pe.u_image),u_latrange:new b.Uniform2f(re,pe.u_latrange),u_light:new b.Uniform2f(re,pe.u_light),u_shadow:new b.UniformColor(re,pe.u_shadow),u_highlight:new b.UniformColor(re,pe.u_highlight),u_accent:new b.UniformColor(re,pe.u_accent)}},hillshadePrepare:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_image:new b.Uniform1i(re,pe.u_image),u_dimension:new b.Uniform2f(re,pe.u_dimension),u_zoom:new b.Uniform1f(re,pe.u_zoom),u_unpack:new b.Uniform4f(re,pe.u_unpack)}},line:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_ratio:new b.Uniform1f(re,pe.u_ratio),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(re,pe.u_units_to_pixels)}},lineGradient:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_ratio:new b.Uniform1f(re,pe.u_ratio),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(re,pe.u_units_to_pixels),u_image:new b.Uniform1i(re,pe.u_image),u_image_height:new b.Uniform1f(re,pe.u_image_height)}},linePattern:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_ratio:new b.Uniform1f(re,pe.u_ratio),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_image:new b.Uniform1i(re,pe.u_image),u_units_to_pixels:new b.Uniform2f(re,pe.u_units_to_pixels),u_scale:new b.Uniform3f(re,pe.u_scale),u_fade:new b.Uniform1f(re,pe.u_fade)}},lineSDF:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_ratio:new b.Uniform1f(re,pe.u_ratio),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(re,pe.u_units_to_pixels),u_patternscale_a:new b.Uniform2f(re,pe.u_patternscale_a),u_patternscale_b:new b.Uniform2f(re,pe.u_patternscale_b),u_sdfgamma:new b.Uniform1f(re,pe.u_sdfgamma),u_image:new b.Uniform1i(re,pe.u_image),u_tex_y_a:new b.Uniform1f(re,pe.u_tex_y_a),u_tex_y_b:new b.Uniform1f(re,pe.u_tex_y_b),u_mix:new b.Uniform1f(re,pe.u_mix)}},raster:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_tl_parent:new b.Uniform2f(re,pe.u_tl_parent),u_scale_parent:new b.Uniform1f(re,pe.u_scale_parent),u_buffer_scale:new b.Uniform1f(re,pe.u_buffer_scale),u_fade_t:new b.Uniform1f(re,pe.u_fade_t),u_opacity:new b.Uniform1f(re,pe.u_opacity),u_image0:new b.Uniform1i(re,pe.u_image0),u_image1:new b.Uniform1i(re,pe.u_image1),u_brightness_low:new b.Uniform1f(re,pe.u_brightness_low),u_brightness_high:new b.Uniform1f(re,pe.u_brightness_high),u_saturation_factor:new b.Uniform1f(re,pe.u_saturation_factor),u_contrast_factor:new b.Uniform1f(re,pe.u_contrast_factor),u_spin_weights:new b.Uniform3f(re,pe.u_spin_weights)}},symbolIcon:function(re,pe){return{u_is_size_zoom_constant:new b.Uniform1i(re,pe.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(re,pe.u_is_size_feature_constant),u_size_t:new b.Uniform1f(re,pe.u_size_t),u_size:new b.Uniform1f(re,pe.u_size),u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_pitch:new b.Uniform1f(re,pe.u_pitch),u_rotate_symbol:new b.Uniform1i(re,pe.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(re,pe.u_aspect_ratio),u_fade_change:new b.Uniform1f(re,pe.u_fade_change),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(re,pe.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(re,pe.u_coord_matrix),u_is_text:new b.Uniform1i(re,pe.u_is_text),u_pitch_with_map:new b.Uniform1i(re,pe.u_pitch_with_map),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_texture:new b.Uniform1i(re,pe.u_texture)}},symbolSDF:function(re,pe){return{u_is_size_zoom_constant:new b.Uniform1i(re,pe.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(re,pe.u_is_size_feature_constant),u_size_t:new b.Uniform1f(re,pe.u_size_t),u_size:new b.Uniform1f(re,pe.u_size),u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_pitch:new b.Uniform1f(re,pe.u_pitch),u_rotate_symbol:new b.Uniform1i(re,pe.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(re,pe.u_aspect_ratio),u_fade_change:new b.Uniform1f(re,pe.u_fade_change),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(re,pe.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(re,pe.u_coord_matrix),u_is_text:new b.Uniform1i(re,pe.u_is_text),u_pitch_with_map:new b.Uniform1i(re,pe.u_pitch_with_map),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_texture:new b.Uniform1i(re,pe.u_texture),u_gamma_scale:new b.Uniform1f(re,pe.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(re,pe.u_is_halo)}},symbolTextAndIcon:function(re,pe){return{u_is_size_zoom_constant:new b.Uniform1i(re,pe.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(re,pe.u_is_size_feature_constant),u_size_t:new b.Uniform1f(re,pe.u_size_t),u_size:new b.Uniform1f(re,pe.u_size),u_camera_to_center_distance:new b.Uniform1f(re,pe.u_camera_to_center_distance),u_pitch:new b.Uniform1f(re,pe.u_pitch),u_rotate_symbol:new b.Uniform1i(re,pe.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(re,pe.u_aspect_ratio),u_fade_change:new b.Uniform1f(re,pe.u_fade_change),u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(re,pe.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(re,pe.u_coord_matrix),u_is_text:new b.Uniform1i(re,pe.u_is_text),u_pitch_with_map:new b.Uniform1i(re,pe.u_pitch_with_map),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_texsize_icon:new b.Uniform2f(re,pe.u_texsize_icon),u_texture:new b.Uniform1i(re,pe.u_texture),u_texture_icon:new b.Uniform1i(re,pe.u_texture_icon),u_gamma_scale:new b.Uniform1f(re,pe.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(re,pe.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(re,pe.u_is_halo)}},background:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_opacity:new b.Uniform1f(re,pe.u_opacity),u_color:new b.UniformColor(re,pe.u_color)}},backgroundPattern:function(re,pe){return{u_matrix:new b.UniformMatrix4f(re,pe.u_matrix),u_opacity:new b.Uniform1f(re,pe.u_opacity),u_image:new b.Uniform1i(re,pe.u_image),u_pattern_tl_a:new b.Uniform2f(re,pe.u_pattern_tl_a),u_pattern_br_a:new b.Uniform2f(re,pe.u_pattern_br_a),u_pattern_tl_b:new b.Uniform2f(re,pe.u_pattern_tl_b),u_pattern_br_b:new b.Uniform2f(re,pe.u_pattern_br_b),u_texsize:new b.Uniform2f(re,pe.u_texsize),u_mix:new b.Uniform1f(re,pe.u_mix),u_pattern_size_a:new b.Uniform2f(re,pe.u_pattern_size_a),u_pattern_size_b:new b.Uniform2f(re,pe.u_pattern_size_b),u_scale_a:new b.Uniform1f(re,pe.u_scale_a),u_scale_b:new b.Uniform1f(re,pe.u_scale_b),u_pixel_coord_upper:new b.Uniform2f(re,pe.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(re,pe.u_pixel_coord_lower),u_tile_units_to_pixels:new b.Uniform1f(re,pe.u_tile_units_to_pixels)}}};function $y(re,pe,ge,Le,Wt,ni,Vo){for(var Ua=re.context,Lg=Ua.gl,ou=re.useProgram("collisionBox"),I0=[],K0=0,fv=0,Yv=0;Yv0){var H_=b.create(),x_=iy;b.mul(H_,e1.placementInvProjMatrix,re.transform.glCoordMatrix),b.mul(H_,H_,e1.placementViewportMatrix),I0.push({circleArray:qy,circleOffset:fv,transform:x_,invTransform:H_}),fv=K0+=qy.length/4}Jy&&ou.draw(Ua,Lg.LINES,ya.disabled,gd.disabled,re.colorModeForRenderPass(),xu.disabled,_x(iy,re.transform,uv),ge.id,Jy.layoutVertexBuffer,Jy.indexBuffer,Jy.segments,null,re.transform.zoom,null,null,Jy.collisionVertexBuffer)}}if(Vo&&I0.length){var lx=re.useProgram("collisionCircle"),zx=new b.StructArrayLayout2f1f2i16;zx.resize(4*K0),zx._trim();for(var s2=0,Yx=0,tw=I0;Yx=0&&(d1[e1.associatedIconIndex]={shiftedAnchor:zx,angle:s2})}else l0(e1.numGlyphs,fv)}if(I0){Yv.clear();for(var tw=re.icon.placedSymbolArray,ww=0;ww0){var Vo=b.browser.now(),Ua=(Vo-re.timeAdded)/ni,Lg=pe?(Vo-pe.timeAdded)/ni:-1,ou=ge.getSource(),I0=Wt.coveringZoomLevel({tileSize:ou.tileSize,roundZoom:ou.roundZoom}),K0=!pe||Math.abs(pe.tileID.overscaledZ-I0)>Math.abs(re.tileID.overscaledZ-I0),fv=K0&&re.refreshedUponExpiration?1:b.clamp(K0?Ua:1-Lg,0,1);return re.refreshedUponExpiration&&Ua>=1&&(re.refreshedUponExpiration=!1),pe?{opacity:1,mix:1-fv}:{opacity:fv,mix:0}}return{opacity:1,mix:0}}var vC=new b.Color(1,0,0,1),Fw=new b.Color(0,1,0,1),U2=new b.Color(0,0,1,1),Tw=new b.Color(1,0,1,1),q_=new b.Color(0,1,1,1);function Kw(re,pe,ge,Le){dx(re,0,pe+ge/2,re.transform.width,ge,Le)}function Ny(re,pe,ge,Le){dx(re,pe-ge/2,0,ge,re.transform.height,Le)}function dx(re,pe,ge,Le,Wt,ni){var Vo=re.context,Ua=Vo.gl;Ua.enable(Ua.SCISSOR_TEST),Ua.scissor(pe*b.browser.devicePixelRatio,ge*b.browser.devicePixelRatio,Le*b.browser.devicePixelRatio,Wt*b.browser.devicePixelRatio),Vo.clear({color:ni}),Ua.disable(Ua.SCISSOR_TEST)}function bw(re,pe,ge){var Le=re.context,Wt=Le.gl,ni=ge.posMatrix,Vo=re.useProgram("debug"),Ua=ya.disabled,Lg=gd.disabled,ou=re.colorModeForRenderPass();Le.activeTexture.set(Wt.TEXTURE0),re.emptyTexture.bind(Wt.LINEAR,Wt.CLAMP_TO_EDGE),Vo.draw(Le,Wt.LINE_STRIP,Ua,Lg,ou,xu.disabled,b2(ni,b.Color.red),"$debug",re.debugBuffer,re.tileBorderIndexBuffer,re.debugSegments);var I0=pe.getTileByID(ge.key).latestRawTileData,K0=Math.floor((I0&&I0.byteLength||0)/1024),fv=pe.getTile(ge).tileSize,Yv=512/Math.min(fv,512)*(ge.overscaledZ/re.transform.zoom)*.5,d1=ge.canonical.toString();ge.overscaledZ!==ge.canonical.z&&(d1+=" => "+ge.overscaledZ),function(uv,e1){uv.initDebugOverlayCanvas();var iy=uv.debugOverlayCanvas,Jy=uv.context.gl,qy=uv.debugOverlayCanvas.getContext("2d");qy.clearRect(0,0,iy.width,iy.height),qy.shadowColor="white",qy.shadowBlur=2,qy.lineWidth=1.5,qy.strokeStyle="white",qy.textBaseline="top",qy.font="bold 36px Open Sans, sans-serif",qy.fillText(e1,5,5),qy.strokeText(e1,5,5),uv.debugOverlayTexture.update(iy),uv.debugOverlayTexture.bind(Jy.LINEAR,Jy.CLAMP_TO_EDGE)}(re,d1+" "+K0+"kb"),Vo.draw(Le,Wt.TRIANGLES,Ua,Lg,Su.alphaBlended,xu.disabled,b2(ni,b.Color.transparent,Yv),"$debug",re.debugBuffer,re.quadTriangleIndexBuffer,re.debugSegments)}var Ow={symbol:function(re,pe,ge,Le,Wt){if(re.renderPass==="translucent"){var ni=gd.disabled,Vo=re.colorModeForRenderPass();ge.layout.get("text-variable-anchor")&&function(Ua,Lg,ou,I0,K0,fv,Yv){for(var d1=Lg.transform,uv=K0==="map",e1=fv==="map",iy=0,Jy=Ua;iy256&&this.clearStencil(),ge.setColorMode(Su.disabled),ge.setDepthMode(ya.disabled);var Wt=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ni=0,Vo=pe;ni256&&this.clearStencil();var re=this.nextStencilID++,pe=this.context.gl;return new gd({func:pe.NOTEQUAL,mask:255},re,255,pe.KEEP,pe.KEEP,pe.REPLACE)},j1.prototype.stencilModeForClipping=function(re){var pe=this.context.gl;return new gd({func:pe.EQUAL,mask:255},this._tileClippingMaskIDs[re.key],0,pe.KEEP,pe.KEEP,pe.REPLACE)},j1.prototype.stencilConfigForOverlap=function(re){var pe,ge=this.context.gl,Le=re.sort(function(Lg,ou){return ou.overscaledZ-Lg.overscaledZ}),Wt=Le[Le.length-1].overscaledZ,ni=Le[0].overscaledZ-Wt+1;if(ni>1){this.currentStencilSource=void 0,this.nextStencilID+ni>256&&this.clearStencil();for(var Vo={},Ua=0;Ua=0;this.currentLayer--){var qy=this.style._layers[Le[this.currentLayer]],H_=Wt[qy.source],x_=ou[qy.source];this._renderTileClippingMasks(qy,x_),this.renderLayer(this,H_,qy,x_)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?pe.pop():null},j1.prototype.isPatternMissing=function(re){if(!re)return!1;if(!re.from||!re.to)return!0;var pe=this.imageManager.getPattern(re.from.toString()),ge=this.imageManager.getPattern(re.to.toString());return!pe||!ge},j1.prototype.useProgram=function(re,pe){this.cache=this.cache||{};var ge=""+re+(pe?pe.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ge]||(this.cache[ge]=new h_(this.context,re,U1[re],pe,ky[re],this._showOverdrawInspector)),this.cache[ge]},j1.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},j1.prototype.setBaseState=function(){var re=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(re.FUNC_ADD)},j1.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=b.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new b.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},j1.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Px=function(re,pe){this.points=re,this.planes=pe};Px.fromInvProjectionMatrix=function(re,pe,ge){var Le=Math.pow(2,ge),Wt=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(Vo){return b.transformMat4([],Vo,re)}).map(function(Vo){return b.scale$1([],Vo,1/Vo[3]/pe*Le)}),ni=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Vo){var Ua=b.sub([],Wt[Vo[0]],Wt[Vo[1]]),Lg=b.sub([],Wt[Vo[2]],Wt[Vo[1]]),ou=b.normalize([],b.cross([],Ua,Lg)),I0=-b.dot(ou,Wt[Vo[1]]);return ou.concat(I0)});return new Px(Wt,ni)};var Z_=function(re,pe){this.min=re,this.max=pe,this.center=b.scale$2([],b.add([],this.min,this.max),.5)};Z_.prototype.quadrant=function(re){for(var pe=[re%2==0,re<2],ge=b.clone$2(this.min),Le=b.clone$2(this.max),Wt=0;Wt=0;if(ni===0)return 0;ni!==pe.length&&(ge=!1)}if(ge)return 2;for(var Ua=0;Ua<3;Ua++){for(var Lg=Number.MAX_VALUE,ou=-Number.MAX_VALUE,I0=0;I0this.max[Ua]-this.min[Ua])return 0}return 1};var Vx=function(re,pe,ge,Le){if(re===void 0&&(re=0),pe===void 0&&(pe=0),ge===void 0&&(ge=0),Le===void 0&&(Le=0),isNaN(re)||re<0||isNaN(pe)||pe<0||isNaN(ge)||ge<0||isNaN(Le)||Le<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=re,this.bottom=pe,this.left=ge,this.right=Le};Vx.prototype.interpolate=function(re,pe,ge){return pe.top!=null&&re.top!=null&&(this.top=b.number(re.top,pe.top,ge)),pe.bottom!=null&&re.bottom!=null&&(this.bottom=b.number(re.bottom,pe.bottom,ge)),pe.left!=null&&re.left!=null&&(this.left=b.number(re.left,pe.left,ge)),pe.right!=null&&re.right!=null&&(this.right=b.number(re.right,pe.right,ge)),this},Vx.prototype.getCenter=function(re,pe){var ge=b.clamp((this.left+re-this.right)/2,0,re),Le=b.clamp((this.top+pe-this.bottom)/2,0,pe);return new b.Point(ge,Le)},Vx.prototype.equals=function(re){return this.top===re.top&&this.bottom===re.bottom&&this.left===re.left&&this.right===re.right},Vx.prototype.clone=function(){return new Vx(this.top,this.bottom,this.left,this.right)},Vx.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var kx=function(re,pe,ge,Le,Wt){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Wt===void 0||Wt,this._minZoom=re||0,this._maxZoom=pe||22,this._minPitch=ge==null?0:ge,this._maxPitch=Le==null?60:Le,this.setMaxBounds(),this.width=0,this.height=0,this._center=new b.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vx,this._posMatrixCache={},this._alignedPosMatrixCache={}},C2={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};kx.prototype.clone=function(){var re=new kx(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return re.tileSize=this.tileSize,re.latRange=this.latRange,re.width=this.width,re.height=this.height,re._center=this._center,re.zoom=this.zoom,re.angle=this.angle,re._fov=this._fov,re._pitch=this._pitch,re._unmodified=this._unmodified,re._edgeInsets=this._edgeInsets.clone(),re._calcMatrices(),re},C2.minZoom.get=function(){return this._minZoom},C2.minZoom.set=function(re){this._minZoom!==re&&(this._minZoom=re,this.zoom=Math.max(this.zoom,re))},C2.maxZoom.get=function(){return this._maxZoom},C2.maxZoom.set=function(re){this._maxZoom!==re&&(this._maxZoom=re,this.zoom=Math.min(this.zoom,re))},C2.minPitch.get=function(){return this._minPitch},C2.minPitch.set=function(re){this._minPitch!==re&&(this._minPitch=re,this.pitch=Math.max(this.pitch,re))},C2.maxPitch.get=function(){return this._maxPitch},C2.maxPitch.set=function(re){this._maxPitch!==re&&(this._maxPitch=re,this.pitch=Math.min(this.pitch,re))},C2.renderWorldCopies.get=function(){return this._renderWorldCopies},C2.renderWorldCopies.set=function(re){re===void 0?re=!0:re===null&&(re=!1),this._renderWorldCopies=re},C2.worldSize.get=function(){return this.tileSize*this.scale},C2.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},C2.size.get=function(){return new b.Point(this.width,this.height)},C2.bearing.get=function(){return-this.angle/Math.PI*180},C2.bearing.set=function(re){var pe=-b.wrap(re,-180,180)*Math.PI/180;this.angle!==pe&&(this._unmodified=!1,this.angle=pe,this._calcMatrices(),this.rotationMatrix=b.create$2(),b.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},C2.pitch.get=function(){return this._pitch/Math.PI*180},C2.pitch.set=function(re){var pe=b.clamp(re,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==pe&&(this._unmodified=!1,this._pitch=pe,this._calcMatrices())},C2.fov.get=function(){return this._fov/Math.PI*180},C2.fov.set=function(re){re=Math.max(.01,Math.min(60,re)),this._fov!==re&&(this._unmodified=!1,this._fov=re/180*Math.PI,this._calcMatrices())},C2.zoom.get=function(){return this._zoom},C2.zoom.set=function(re){var pe=Math.min(Math.max(re,this.minZoom),this.maxZoom);this._zoom!==pe&&(this._unmodified=!1,this._zoom=pe,this.scale=this.zoomScale(pe),this.tileZoom=Math.floor(pe),this.zoomFraction=pe-this.tileZoom,this._constrain(),this._calcMatrices())},C2.center.get=function(){return this._center},C2.center.set=function(re){re.lat===this._center.lat&&re.lng===this._center.lng||(this._unmodified=!1,this._center=re,this._constrain(),this._calcMatrices())},C2.padding.get=function(){return this._edgeInsets.toJSON()},C2.padding.set=function(re){this._edgeInsets.equals(re)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,re,1),this._calcMatrices())},C2.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},kx.prototype.isPaddingEqual=function(re){return this._edgeInsets.equals(re)},kx.prototype.interpolatePadding=function(re,pe,ge){this._unmodified=!1,this._edgeInsets.interpolate(re,pe,ge),this._constrain(),this._calcMatrices()},kx.prototype.coveringZoomLevel=function(re){var pe=(re.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/re.tileSize));return Math.max(0,pe)},kx.prototype.getVisibleUnwrappedCoordinates=function(re){var pe=[new b.UnwrappedTileID(0,re)];if(this._renderWorldCopies)for(var ge=this.pointCoordinate(new b.Point(0,0)),Le=this.pointCoordinate(new b.Point(this.width,0)),Wt=this.pointCoordinate(new b.Point(this.width,this.height)),ni=this.pointCoordinate(new b.Point(0,this.height)),Vo=Math.floor(Math.min(ge.x,Le.x,Wt.x,ni.x)),Ua=Math.floor(Math.max(ge.x,Le.x,Wt.x,ni.x)),Lg=Vo-1;Lg<=Ua+1;Lg++)Lg!==0&&pe.push(new b.UnwrappedTileID(Lg,re));return pe},kx.prototype.coveringTiles=function(re){var pe=this.coveringZoomLevel(re),ge=pe;if(re.minzoom!==void 0&&pere.maxzoom&&(pe=re.maxzoom);var Le=b.MercatorCoordinate.fromLngLat(this.center),Wt=Math.pow(2,pe),ni=[Wt*Le.x,Wt*Le.y,0],Vo=Px.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,pe),Ua=re.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ua=pe);var Lg=function(Yx){return{aabb:new Z_([Yx*Wt,0,0],[(Yx+1)*Wt,Wt,0]),zoom:0,x:0,y:0,wrap:Yx,fullyVisible:!1}},ou=[],I0=[],K0=pe,fv=re.reparseOverscaled?ge:pe;if(this._renderWorldCopies)for(var Yv=1;Yv<=3;Yv++)ou.push(Lg(-Yv)),ou.push(Lg(Yv));for(ou.push(Lg(0));ou.length>0;){var d1=ou.pop(),uv=d1.x,e1=d1.y,iy=d1.fullyVisible;if(!iy){var Jy=d1.aabb.intersects(Vo);if(Jy===0)continue;iy=Jy===2}var qy=d1.aabb.distanceX(ni),H_=d1.aabb.distanceY(ni),x_=Math.max(Math.abs(qy),Math.abs(H_));if(d1.zoom===K0||x_>3+(1<=Ua)I0.push({tileID:new b.OverscaledTileID(d1.zoom===K0?fv:d1.zoom,d1.wrap,d1.zoom,uv,e1),distanceSq:b.sqrLen([ni[0]-.5-uv,ni[1]-.5-e1])});else for(var lx=0;lx<4;lx++){var zx=(uv<<1)+lx%2,s2=(e1<<1)+(lx>>1);ou.push({aabb:d1.aabb.quadrant(lx),zoom:d1.zoom+1,x:zx,y:s2,wrap:d1.wrap,fullyVisible:iy})}}return I0.sort(function(Yx,tw){return Yx.distanceSq-tw.distanceSq}).map(function(Yx){return Yx.tileID})},kx.prototype.resize=function(re,pe){this.width=re,this.height=pe,this.pixelsToGLUnits=[2/re,-2/pe],this._constrain(),this._calcMatrices()},C2.unmodified.get=function(){return this._unmodified},kx.prototype.zoomScale=function(re){return Math.pow(2,re)},kx.prototype.scaleZoom=function(re){return Math.log(re)/Math.LN2},kx.prototype.project=function(re){var pe=b.clamp(re.lat,-this.maxValidLatitude,this.maxValidLatitude);return new b.Point(b.mercatorXfromLng(re.lng)*this.worldSize,b.mercatorYfromLat(pe)*this.worldSize)},kx.prototype.unproject=function(re){return new b.MercatorCoordinate(re.x/this.worldSize,re.y/this.worldSize).toLngLat()},C2.point.get=function(){return this.project(this.center)},kx.prototype.setLocationAtPoint=function(re,pe){var ge=this.pointCoordinate(pe),Le=this.pointCoordinate(this.centerPoint),Wt=this.locationCoordinate(re),ni=new b.MercatorCoordinate(Wt.x-(ge.x-Le.x),Wt.y-(ge.y-Le.y));this.center=this.coordinateLocation(ni),this._renderWorldCopies&&(this.center=this.center.wrap())},kx.prototype.locationPoint=function(re){return this.coordinatePoint(this.locationCoordinate(re))},kx.prototype.pointLocation=function(re){return this.coordinateLocation(this.pointCoordinate(re))},kx.prototype.locationCoordinate=function(re){return b.MercatorCoordinate.fromLngLat(re)},kx.prototype.coordinateLocation=function(re){return re.toLngLat()},kx.prototype.pointCoordinate=function(re){var pe=[re.x,re.y,0,1],ge=[re.x,re.y,1,1];b.transformMat4(pe,pe,this.pixelMatrixInverse),b.transformMat4(ge,ge,this.pixelMatrixInverse);var Le=pe[3],Wt=ge[3],ni=pe[1]/Le,Vo=ge[1]/Wt,Ua=pe[2]/Le,Lg=ge[2]/Wt,ou=Ua===Lg?0:(0-Ua)/(Lg-Ua);return new b.MercatorCoordinate(b.number(pe[0]/Le,ge[0]/Wt,ou)/this.worldSize,b.number(ni,Vo,ou)/this.worldSize)},kx.prototype.coordinatePoint=function(re){var pe=[re.x*this.worldSize,re.y*this.worldSize,0,1];return b.transformMat4(pe,pe,this.pixelMatrix),new b.Point(pe[0]/pe[3],pe[1]/pe[3])},kx.prototype.getBounds=function(){return new b.LngLatBounds().extend(this.pointLocation(new b.Point(0,0))).extend(this.pointLocation(new b.Point(this.width,0))).extend(this.pointLocation(new b.Point(this.width,this.height))).extend(this.pointLocation(new b.Point(0,this.height)))},kx.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new b.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},kx.prototype.setMaxBounds=function(re){re?(this.lngRange=[re.getWest(),re.getEast()],this.latRange=[re.getSouth(),re.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},kx.prototype.calculatePosMatrix=function(re,pe){pe===void 0&&(pe=!1);var ge=re.key,Le=pe?this._alignedPosMatrixCache:this._posMatrixCache;if(Le[ge])return Le[ge];var Wt=re.canonical,ni=this.worldSize/this.zoomScale(Wt.z),Vo=Wt.x+Math.pow(2,Wt.z)*re.wrap,Ua=b.identity(new Float64Array(16));return b.translate(Ua,Ua,[Vo*ni,Wt.y*ni,0]),b.scale(Ua,Ua,[ni/b.EXTENT,ni/b.EXTENT,1]),b.multiply(Ua,pe?this.alignedProjMatrix:this.projMatrix,Ua),Le[ge]=new Float32Array(Ua),Le[ge]},kx.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},kx.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var re,pe,ge,Le,Wt=-90,ni=90,Vo=-180,Ua=180,Lg=this.size,ou=this._unmodified;if(this.latRange){var I0=this.latRange;Wt=b.mercatorYfromLat(I0[1])*this.worldSize,re=(ni=b.mercatorYfromLat(I0[0])*this.worldSize)-Wtni&&(Le=ni-uv)}if(this.lngRange){var e1=fv.x,iy=Lg.x/2;e1-iyUa&&(ge=Ua-iy)}ge===void 0&&Le===void 0||(this.center=this.unproject(new b.Point(ge!==void 0?ge:fv.x,Le!==void 0?Le:fv.y))),this._unmodified=ou,this._constraining=!1}},kx.prototype._calcMatrices=function(){if(this.height){var re=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var pe=Math.PI/2+this._pitch,ge=this._fov*(.5+re.y/this.height),Le=Math.sin(ge)*this.cameraToCenterDistance/Math.sin(b.clamp(Math.PI-pe-ge,.01,Math.PI-.01)),Wt=this.point,ni=Wt.x,Vo=Wt.y,Ua=1.01*(Math.cos(Math.PI/2-this._pitch)*Le+this.cameraToCenterDistance),Lg=this.height/50,ou=new Float64Array(16);b.perspective(ou,this._fov,this.width/this.height,Lg,Ua),ou[8]=2*-re.x/this.width,ou[9]=2*re.y/this.height,b.scale(ou,ou,[1,-1,1]),b.translate(ou,ou,[0,0,-this.cameraToCenterDistance]),b.rotateX(ou,ou,this._pitch),b.rotateZ(ou,ou,this.angle),b.translate(ou,ou,[-ni,-Vo,0]),this.mercatorMatrix=b.scale([],ou,[this.worldSize,this.worldSize,this.worldSize]),b.scale(ou,ou,[1,1,b.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=ou,this.invProjMatrix=b.invert([],this.projMatrix);var I0=this.width%2/2,K0=this.height%2/2,fv=Math.cos(this.angle),Yv=Math.sin(this.angle),d1=ni-Math.round(ni)+fv*I0+Yv*K0,uv=Vo-Math.round(Vo)+fv*K0+Yv*I0,e1=new Float64Array(ou);if(b.translate(e1,e1,[d1>.5?d1-1:d1,uv>.5?uv-1:uv,0]),this.alignedProjMatrix=e1,ou=b.create(),b.scale(ou,ou,[this.width/2,-this.height/2,1]),b.translate(ou,ou,[1,-1,0]),this.labelPlaneMatrix=ou,ou=b.create(),b.scale(ou,ou,[1,-1,1]),b.translate(ou,ou,[-1,-1,0]),b.scale(ou,ou,[2/this.width,2/this.height,1]),this.glCoordMatrix=ou,this.pixelMatrix=b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(ou=b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=ou,this._posMatrixCache={},this._alignedPosMatrixCache={}}},kx.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var re=this.pointCoordinate(new b.Point(0,0)),pe=[re.x*this.worldSize,re.y*this.worldSize,0,1];return b.transformMat4(pe,pe,this.pixelMatrix)[3]/this.cameraToCenterDistance},kx.prototype.getCameraPoint=function(){var re=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new b.Point(0,re))},kx.prototype.getCameraQueryGeometry=function(re){var pe=this.getCameraPoint();if(re.length===1)return[re[0],pe];for(var ge=pe.x,Le=pe.y,Wt=pe.x,ni=pe.y,Vo=0,Ua=re;Vo=3&&!re.some(function(ge){return isNaN(ge)})){var pe=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(re[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+re[2],+re[1]],zoom:+re[0],bearing:pe,pitch:+(re[4]||0)}),!0}return!1},q2.prototype._updateHashUnthrottled=function(){var re=b.window.location.href.replace(/(#.+)?$/,this.getHashString());try{b.window.history.replaceState(b.window.history.state,null,re)}catch(pe){}};var lw={linearity:.3,easing:b.bezier(0,0,.3,1)},eC=b.extend({deceleration:2500,maxSpeed:1400},lw),zC=b.extend({deceleration:20,maxSpeed:1400},lw),dC=b.extend({deceleration:1e3,maxSpeed:360},lw),YC=b.extend({deceleration:1e3,maxSpeed:90},lw),qC=function(re){this._map=re,this.clear()};function bS(re,pe){(!re.duration||re.duration0&&pe-re[0].time>160;)re.shift()},qC.prototype._onMoveEnd=function(re){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var pe={zoom:0,bearing:0,pitch:0,pan:new b.Point(0,0),pinchAround:void 0,around:void 0},ge=0,Le=this._inertiaBuffer;ge=this._clickTolerance||this._map.fire(new zw(re.type,this._map,re))},G2.prototype.dblclick=function(re){return this._firePreventable(new zw(re.type,this._map,re))},G2.prototype.mouseover=function(re){this._map.fire(new zw(re.type,this._map,re))},G2.prototype.mouseout=function(re){this._map.fire(new zw(re.type,this._map,re))},G2.prototype.touchstart=function(re){return this._firePreventable(new VS(re.type,this._map,re))},G2.prototype.touchmove=function(re){this._map.fire(new VS(re.type,this._map,re))},G2.prototype.touchend=function(re){this._map.fire(new VS(re.type,this._map,re))},G2.prototype.touchcancel=function(re){this._map.fire(new VS(re.type,this._map,re))},G2.prototype._firePreventable=function(re){if(this._map.fire(re),re.defaultPrevented)return{}},G2.prototype.isEnabled=function(){return!0},G2.prototype.isActive=function(){return!1},G2.prototype.enable=function(){},G2.prototype.disable=function(){};var pw=function(re){this._map=re};pw.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},pw.prototype.mousemove=function(re){this._map.fire(new zw(re.type,this._map,re))},pw.prototype.mousedown=function(){this._delayContextMenu=!0},pw.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zw("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},pw.prototype.contextmenu=function(re){this._delayContextMenu?this._contextMenuEvent=re:this._map.fire(new zw(re.type,this._map,re)),this._map.listens("contextmenu")&&re.preventDefault()},pw.prototype.isEnabled=function(){return!0},pw.prototype.isActive=function(){return!1},pw.prototype.enable=function(){},pw.prototype.disable=function(){};var MC=function(re,pe){this._map=re,this._el=re.getCanvasContainer(),this._container=re.getContainer(),this._clickTolerance=pe.clickTolerance||1};function AT(re,pe){for(var ge={},Le=0;Lethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=re.timeStamp),ge.length===this.numTouches&&(this.centroid=function(Le){for(var Wt=new b.Point(0,0),ni=0,Vo=Le;ni30)&&(this.aborted=!0)}}},v_.prototype.touchend=function(re,pe,ge){if((!this.centroid||re.timeStamp-this.startTime>500)&&(this.aborted=!0),ge.length===0){var Le=!this.aborted&&this.centroid;if(this.reset(),Le)return Le}};var mv=function(re){this.singleTap=new v_(re),this.numTaps=re.numTaps,this.reset()};mv.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},mv.prototype.touchstart=function(re,pe,ge){this.singleTap.touchstart(re,pe,ge)},mv.prototype.touchmove=function(re,pe,ge){this.singleTap.touchmove(re,pe,ge)},mv.prototype.touchend=function(re,pe,ge){var Le=this.singleTap.touchend(re,pe,ge);if(Le){var Wt=re.timeStamp-this.lastTime<500,ni=!this.lastTap||this.lastTap.dist(Le)<30;if(Wt&&ni||this.reset(),this.count++,this.lastTime=re.timeStamp,this.lastTap=Le,this.count===this.numTaps)return this.reset(),Le}};var Lw=function(){this._zoomIn=new mv({numTouches:1,numTaps:2}),this._zoomOut=new mv({numTouches:2,numTaps:1}),this.reset()};Lw.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Lw.prototype.touchstart=function(re,pe,ge){this._zoomIn.touchstart(re,pe,ge),this._zoomOut.touchstart(re,pe,ge)},Lw.prototype.touchmove=function(re,pe,ge){this._zoomIn.touchmove(re,pe,ge),this._zoomOut.touchmove(re,pe,ge)},Lw.prototype.touchend=function(re,pe,ge){var Le=this,Wt=this._zoomIn.touchend(re,pe,ge),ni=this._zoomOut.touchend(re,pe,ge);return Wt?(this._active=!0,re.preventDefault(),setTimeout(function(){return Le.reset()},0),{cameraAnimation:function(Vo){return Vo.easeTo({duration:300,zoom:Vo.getZoom()+1,around:Vo.unproject(Wt)},{originalEvent:re})}}):ni?(this._active=!0,re.preventDefault(),setTimeout(function(){return Le.reset()},0),{cameraAnimation:function(Vo){return Vo.easeTo({duration:300,zoom:Vo.getZoom()-1,around:Vo.unproject(ni)},{originalEvent:re})}}):void 0},Lw.prototype.touchcancel=function(){this.reset()},Lw.prototype.enable=function(){this._enabled=!0},Lw.prototype.disable=function(){this._enabled=!1,this.reset()},Lw.prototype.isEnabled=function(){return this._enabled},Lw.prototype.isActive=function(){return this._active};var Pv={0:1,2:2},k2=function(re){this.reset(),this._clickTolerance=re.clickTolerance||1};k2.prototype.blur=function(){this.reset()},k2.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},k2.prototype._correctButton=function(re,pe){return!1},k2.prototype._move=function(re,pe){return{}},k2.prototype.mousedown=function(re,pe){if(!this._lastPoint){var ge=y.mouseButton(re);this._correctButton(re,ge)&&(this._lastPoint=pe,this._eventButton=ge)}},k2.prototype.mousemoveWindow=function(re,pe){var ge=this._lastPoint;if(ge){if(re.preventDefault(),function(Le,Wt){var ni=Pv[Wt];return Le.buttons===void 0||(Le.buttons&ni)!==ni}(re,this._eventButton))this.reset();else if(this._moved||!(pe.dist(ge)0&&(this._active=!0);var Le=AT(ge,pe),Wt=new b.Point(0,0),ni=new b.Point(0,0),Vo=0;for(var Ua in Le){var Lg=Le[Ua],ou=this._touches[Ua];ou&&(Wt._add(Lg),ni._add(Lg.sub(ou)),Vo++,Le[Ua]=Lg)}if(this._touches=Le,!(VoMath.abs(re.x)}var aC=function(re){function pe(){re.apply(this,arguments)}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.reset=function(){re.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},pe.prototype._start=function(ge){this._lastPoints=ge,xE(ge[0].sub(ge[1]))&&(this._valid=!1)},pe.prototype._move=function(ge,Le,Wt){var ni=ge[0].sub(this._lastPoints[0]),Vo=ge[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ni,Vo,Wt.timeStamp),this._valid)return this._lastPoints=ge,this._active=!0,{pitchDelta:(ni.y+Vo.y)/2*-.5}},pe.prototype.gestureBeginsVertically=function(ge,Le,Wt){if(this._valid!==void 0)return this._valid;var ni=ge.mag()>=2,Vo=Le.mag()>=2;if(ni||Vo){if(!ni||!Vo)return this._firstMove===void 0&&(this._firstMove=Wt),Wt-this._firstMove<100&&void 0;var Ua=ge.y>0==Le.y>0;return xE(ge)&&xE(Le)&&Ua}},pe}(US),zE={panStep:100,bearingStep:15,pitchStep:10},UT=function(){var re=zE;this._panStep=re.panStep,this._bearingStep=re.bearingStep,this._pitchStep=re.pitchStep,this._rotationDisabled=!1};function YE(re){return re*(2-re)}UT.prototype.blur=function(){this.reset()},UT.prototype.reset=function(){this._active=!1},UT.prototype.keydown=function(re){var pe=this;if(!(re.altKey||re.ctrlKey||re.metaKey)){var ge=0,Le=0,Wt=0,ni=0,Vo=0;switch(re.keyCode){case 61:case 107:case 171:case 187:ge=1;break;case 189:case 109:case 173:ge=-1;break;case 37:re.shiftKey?Le=-1:(re.preventDefault(),ni=-1);break;case 39:re.shiftKey?Le=1:(re.preventDefault(),ni=1);break;case 38:re.shiftKey?Wt=1:(re.preventDefault(),Vo=-1);break;case 40:re.shiftKey?Wt=-1:(re.preventDefault(),Vo=1);break;default:return}return this._rotationDisabled&&(Le=0,Wt=0),{cameraAnimation:function(Ua){var Lg=Ua.getZoom();Ua.easeTo({duration:300,easeId:"keyboardHandler",easing:YE,zoom:ge?Math.round(Lg)+ge*(re.shiftKey?2:1):Lg,bearing:Ua.getBearing()+Le*pe._bearingStep,pitch:Ua.getPitch()+Wt*pe._pitchStep,offset:[-ni*pe._panStep,-Vo*pe._panStep],center:Ua.getCenter()},{originalEvent:re})}}}},UT.prototype.enable=function(){this._enabled=!0},UT.prototype.disable=function(){this._enabled=!1,this.reset()},UT.prototype.isEnabled=function(){return this._enabled},UT.prototype.isActive=function(){return this._active},UT.prototype.disableRotation=function(){this._rotationDisabled=!0},UT.prototype.enableRotation=function(){this._rotationDisabled=!1};var OC=function(re,pe){this._map=re,this._el=re.getCanvasContainer(),this._handler=pe,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,b.bindAll(["_onTimeout"],this)};OC.prototype.setZoomRate=function(re){this._defaultZoomRate=re},OC.prototype.setWheelZoomRate=function(re){this._wheelZoomRate=re},OC.prototype.isEnabled=function(){return!!this._enabled},OC.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},OC.prototype.isZooming=function(){return!!this._zooming},OC.prototype.enable=function(re){this.isEnabled()||(this._enabled=!0,this._aroundCenter=re&&re.around==="center")},OC.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},OC.prototype.wheel=function(re){if(this.isEnabled()){var pe=re.deltaMode===b.window.WheelEvent.DOM_DELTA_LINE?40*re.deltaY:re.deltaY,ge=b.browser.now(),Le=ge-(this._lastWheelEventTime||0);this._lastWheelEventTime=ge,pe!==0&&pe%4.000244140625==0?this._type="wheel":pe!==0&&Math.abs(pe)<4?this._type="trackpad":Le>400?(this._type=null,this._lastValue=pe,this._timeout=setTimeout(this._onTimeout,40,re)):this._type||(this._type=Math.abs(Le*pe)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,pe+=this._lastValue)),re.shiftKey&&pe&&(pe/=4),this._type&&(this._lastWheelEvent=re,this._delta-=pe,this._active||this._start(re)),re.preventDefault()}},OC.prototype._onTimeout=function(re){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(re)},OC.prototype._start=function(re){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var pe=y.mousePos(this._el,re);this._around=b.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(pe)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},OC.prototype.renderFrame=function(){var re=this;if(this._frameId&&(this._frameId=null,this.isActive())){var pe=this._map.transform;if(this._delta!==0){var ge=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,Le=2/(1+Math.exp(-Math.abs(this._delta*ge)));this._delta<0&&Le!==0&&(Le=1/Le);var Wt=typeof this._targetZoom=="number"?pe.zoomScale(this._targetZoom):pe.scale;this._targetZoom=Math.min(pe.maxZoom,Math.max(pe.minZoom,pe.scaleZoom(Wt*Le))),this._type==="wheel"&&(this._startZoom=pe.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ni,Vo=typeof this._targetZoom=="number"?this._targetZoom:pe.zoom,Ua=this._startZoom,Lg=this._easing,ou=!1;if(this._type==="wheel"&&Ua&&Lg){var I0=Math.min((b.browser.now()-this._lastWheelEventTime)/200,1),K0=Lg(I0);ni=b.number(Ua,Vo,K0),I0<1?this._frameId||(this._frameId=!0):ou=!0}else ni=Vo,ou=!0;return this._active=!0,ou&&(this._active=!1,this._finishTimeout=setTimeout(function(){re._zooming=!1,re._handler._triggerRenderFrame(),delete re._targetZoom,delete re._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ou,zoomDelta:ni-pe.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},OC.prototype._smoothOutEasing=function(re){var pe=b.ease;if(this._prevEase){var ge=this._prevEase,Le=(b.browser.now()-ge.start)/ge.duration,Wt=ge.easing(Le+.01)-ge.easing(Le),ni=.27/Math.sqrt(Wt*Wt+1e-4)*.01,Vo=Math.sqrt(.0729-ni*ni);pe=b.bezier(ni,Vo,.25,1)}return this._prevEase={start:b.browser.now(),duration:re,easing:pe},pe},OC.prototype.blur=function(){this.reset()},OC.prototype.reset=function(){this._active=!1};var yT=function(re,pe){this._clickZoom=re,this._tapZoom=pe};yT.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},yT.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},yT.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},yT.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var hC=function(){this.reset()};hC.prototype.reset=function(){this._active=!1},hC.prototype.blur=function(){this.reset()},hC.prototype.dblclick=function(re,pe){return re.preventDefault(),{cameraAnimation:function(ge){ge.easeTo({duration:300,zoom:ge.getZoom()+(re.shiftKey?-1:1),around:ge.unproject(pe)},{originalEvent:re})}}},hC.prototype.enable=function(){this._enabled=!0},hC.prototype.disable=function(){this._enabled=!1,this.reset()},hC.prototype.isEnabled=function(){return this._enabled},hC.prototype.isActive=function(){return this._active};var rE=function(){this._tap=new mv({numTouches:1,numTaps:1}),this.reset()};rE.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},rE.prototype.touchstart=function(re,pe,ge){this._swipePoint||(this._tapTime&&re.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ge.length>0&&(this._swipePoint=pe[0],this._swipeTouch=ge[0].identifier):this._tap.touchstart(re,pe,ge))},rE.prototype.touchmove=function(re,pe,ge){if(this._tapTime){if(this._swipePoint){if(ge[0].identifier!==this._swipeTouch)return;var Le=pe[0],Wt=Le.y-this._swipePoint.y;return this._swipePoint=Le,re.preventDefault(),this._active=!0,{zoomDelta:Wt/128}}}else this._tap.touchmove(re,pe,ge)},rE.prototype.touchend=function(re,pe,ge){this._tapTime?this._swipePoint&&ge.length===0&&this.reset():this._tap.touchend(re,pe,ge)&&(this._tapTime=re.timeStamp)},rE.prototype.touchcancel=function(){this.reset()},rE.prototype.enable=function(){this._enabled=!0},rE.prototype.disable=function(){this._enabled=!1,this.reset()},rE.prototype.isEnabled=function(){return this._enabled},rE.prototype.isActive=function(){return this._active};var PE=function(re,pe,ge){this._el=re,this._mousePan=pe,this._touchPan=ge};PE.prototype.enable=function(re){this._inertiaOptions=re||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},PE.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},PE.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},PE.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Lx=function(re,pe,ge){this._pitchWithRotate=re.pitchWithRotate,this._mouseRotate=pe,this._mousePitch=ge};Lx.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Lx.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Lx.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Lx.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var WE=function(re,pe,ge,Le){this._el=re,this._touchZoom=pe,this._touchRotate=ge,this._tapDragZoom=Le,this._rotationDisabled=!1,this._enabled=!0};WE.prototype.enable=function(re){this._touchZoom.enable(re),this._rotationDisabled||this._touchRotate.enable(re),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},WE.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},WE.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},WE.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},WE.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},WE.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var ZE=function(re){return re.zoom||re.drag||re.pitch||re.rotate},jS=function(re){function pe(){re.apply(this,arguments)}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe}(b.Event);function Xw(re){return re.panDelta&&re.panDelta.mag()||re.zoomDelta||re.bearingDelta||re.pitchDelta}var iC=function(re,pe){this._map=re,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new qC(re),this._bearingSnap=pe.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(pe),b.bindAll(["handleEvent","handleWindowEvent"],this);var ge=this._el;this._listeners=[[ge,"touchstart",{passive:!0}],[ge,"touchmove",{passive:!1}],[ge,"touchend",void 0],[ge,"touchcancel",void 0],[ge,"mousedown",void 0],[ge,"mousemove",void 0],[ge,"mouseup",void 0],[b.window.document,"mousemove",{capture:!0}],[b.window.document,"mouseup",void 0],[ge,"mouseover",void 0],[ge,"mouseout",void 0],[ge,"dblclick",void 0],[ge,"click",void 0],[ge,"keydown",{capture:!1}],[ge,"keyup",void 0],[ge,"wheel",{passive:!1}],[ge,"contextmenu",void 0],[b.window,"blur",void 0]];for(var Le=0,Wt=this._listeners;LeVo?Math.min(2,lx):Math.max(.5,lx),ww=Math.pow(tw,1-s2),uC=ni.unproject(H_.add(x_.mult(s2*ww)).mult(Yx));ni.setLocationAtPoint(ni.renderWorldCopies?uC.wrap():uC,uv)}Wt._fireMoveEvents(Le)},function(s2){Wt._afterEase(Le,s2)},ge),this},pe.prototype._prepareEase=function(ge,Le,Wt){Wt===void 0&&(Wt={}),this._moving=!0,Le||Wt.moving||this.fire(new b.Event("movestart",ge)),this._zooming&&!Wt.zooming&&this.fire(new b.Event("zoomstart",ge)),this._rotating&&!Wt.rotating&&this.fire(new b.Event("rotatestart",ge)),this._pitching&&!Wt.pitching&&this.fire(new b.Event("pitchstart",ge))},pe.prototype._fireMoveEvents=function(ge){this.fire(new b.Event("move",ge)),this._zooming&&this.fire(new b.Event("zoom",ge)),this._rotating&&this.fire(new b.Event("rotate",ge)),this._pitching&&this.fire(new b.Event("pitch",ge))},pe.prototype._afterEase=function(ge,Le){if(!this._easeId||!Le||this._easeId!==Le){delete this._easeId;var Wt=this._zooming,ni=this._rotating,Vo=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Wt&&this.fire(new b.Event("zoomend",ge)),ni&&this.fire(new b.Event("rotateend",ge)),Vo&&this.fire(new b.Event("pitchend",ge)),this.fire(new b.Event("moveend",ge))}},pe.prototype.flyTo=function(ge,Le){var Wt=this;if(!ge.essential&&b.browser.prefersReducedMotion){var ni=b.pick(ge,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ni,Le)}this.stop(),ge=b.extend({offset:[0,0],speed:1.2,curve:1.42,easing:b.ease},ge);var Vo=this.transform,Ua=this.getZoom(),Lg=this.getBearing(),ou=this.getPitch(),I0=this.getPadding(),K0="zoom"in ge?b.clamp(+ge.zoom,Vo.minZoom,Vo.maxZoom):Ua,fv="bearing"in ge?this._normalizeBearing(ge.bearing,Lg):Lg,Yv="pitch"in ge?+ge.pitch:ou,d1="padding"in ge?ge.padding:Vo.padding,uv=Vo.zoomScale(K0-Ua),e1=b.Point.convert(ge.offset),iy=Vo.centerPoint.add(e1),Jy=Vo.pointLocation(iy),qy=b.LngLat.convert(ge.center||Jy);this._normalizeCenter(qy);var H_=Vo.project(Jy),x_=Vo.project(qy).sub(H_),lx=ge.curve,zx=Math.max(Vo.width,Vo.height),s2=zx/uv,Yx=x_.mag();if("minZoom"in ge){var tw=b.clamp(Math.min(ge.minZoom,Ua,K0),Vo.minZoom,Vo.maxZoom),ww=zx/Vo.zoomScale(tw-Ua);lx=Math.sqrt(ww/Yx*2)}var uC=lx*lx;function Qw(lS){var AC=(s2*s2-zx*zx+(lS?-1:1)*uC*uC*Yx*Yx)/(2*(lS?s2:zx)*uC*Yx);return Math.log(Math.sqrt(AC*AC+1)-AC)}function tS(lS){return(Math.exp(lS)-Math.exp(-lS))/2}function ow(lS){return(Math.exp(lS)+Math.exp(-lS))/2}var S2=Qw(0),yS=function(lS){return ow(S2)/ow(S2+lx*lS)},iS=function(lS){return zx*((ow(S2)*(tS(AC=S2+lx*lS)/ow(AC))-tS(S2))/uC)/Yx;var AC},wC=(Qw(1)-S2)/lx;if(Math.abs(Yx)<1e-6||!isFinite(wC)){if(Math.abs(zx-s2)<1e-6)return this.easeTo(ge,Le);var xS=s2ge.maxDuration&&(ge.duration=0),this._zooming=!0,this._rotating=Lg!==fv,this._pitching=Yv!==ou,this._padding=!Vo.isPaddingEqual(d1),this._prepareEase(Le,!1),this._ease(function(lS){var AC=lS*wC,tT=1/yS(AC);Vo.zoom=lS===1?K0:Ua+Vo.scaleZoom(tT),Wt._rotating&&(Vo.bearing=b.number(Lg,fv,lS)),Wt._pitching&&(Vo.pitch=b.number(ou,Yv,lS)),Wt._padding&&(Vo.interpolatePadding(I0,d1,lS),iy=Vo.centerPoint.add(e1));var wE=lS===1?qy:Vo.unproject(H_.add(x_.mult(iS(AC))).mult(tT));Vo.setLocationAtPoint(Vo.renderWorldCopies?wE.wrap():wE,iy),Wt._fireMoveEvents(Le)},function(){return Wt._afterEase(Le)},ge),this},pe.prototype.isEasing=function(){return!!this._easeFrameId},pe.prototype.stop=function(){return this._stop()},pe.prototype._stop=function(ge,Le){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Wt=this._onEaseEnd;delete this._onEaseEnd,Wt.call(this,Le)}if(!ge){var ni=this.handlers;ni&&ni.stop(!1)}return this},pe.prototype._ease=function(ge,Le,Wt){Wt.animate===!1||Wt.duration===0?(ge(1),Le()):(this._easeStart=b.browser.now(),this._easeOptions=Wt,this._onEaseFrame=ge,this._onEaseEnd=Le,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},pe.prototype._renderFrameCallback=function(){var ge=Math.min((b.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ge)),ge<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},pe.prototype._normalizeBearing=function(ge,Le){ge=b.wrap(ge,-180,180);var Wt=Math.abs(ge-Le);return Math.abs(ge-360-Le)180?-360:Wt<-180?360:0}},pe}(b.Evented),nC=function(re){re===void 0&&(re={}),this.options=re,b.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};nC.prototype.getDefaultPosition=function(){return"bottom-right"},nC.prototype.onAdd=function(re){var pe=this.options&&this.options.compact;return this._map=re,this._container=y.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=y.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=y.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),pe&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),pe===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},nC.prototype.onRemove=function(){y.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},nC.prototype._setElementTitle=function(re,pe){var ge=this._map._getUIString("AttributionControl."+pe);re.title=ge,re.setAttribute("aria-label",ge)},nC.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},nC.prototype._updateEditLink=function(){var re=this._editLink;re||(re=this._editLink=this._container.querySelector(".mapbox-improve-map"));var pe=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||b.config.ACCESS_TOKEN}];if(re){var ge=pe.reduce(function(Le,Wt,ni){return Wt.value&&(Le+=Wt.key+"="+Wt.value+(ni=0)return!1;return!0})).join(" | ");Vo!==this._attribHTML&&(this._attribHTML=Vo,re.length?(this._innerContainer.innerHTML=Vo,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},nC.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var AE=function(){b.bindAll(["_updateLogo"],this),b.bindAll(["_updateCompact"],this)};AE.prototype.onAdd=function(re){this._map=re,this._container=y.create("div","mapboxgl-ctrl");var pe=y.create("a","mapboxgl-ctrl-logo");return pe.target="_blank",pe.rel="noopener nofollow",pe.href="https://www.mapbox.com/",pe.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),pe.setAttribute("rel","noopener nofollow"),this._container.appendChild(pe),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},AE.prototype.onRemove=function(){y.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},AE.prototype.getDefaultPosition=function(){return"bottom-left"},AE.prototype._updateLogo=function(re){re&&re.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},AE.prototype._logoRequired=function(){if(this._map.style){var re=this._map.style.sourceCaches;for(var pe in re)if(re[pe].getSource().mapbox_logo)return!0;return!1}},AE.prototype._updateCompact=function(){var re=this._container.children;if(re.length){var pe=re[0];this._map.getCanvasContainer().offsetWidth<250?pe.classList.add("mapboxgl-compact"):pe.classList.remove("mapboxgl-compact")}};var iE=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};iE.prototype.add=function(re){var pe=++this._id;return this._queue.push({callback:re,id:pe,cancelled:!1}),pe},iE.prototype.remove=function(re){for(var pe=this._currentlyRunning,ge=0,Le=pe?this._queue.concat(pe):this._queue;geLe.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(Le.minPitch!=null&&Le.maxPitch!=null&&Le.minPitch>Le.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(Le.minPitch!=null&&Le.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(Le.maxPitch!=null&&Le.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var ni=new kx(Le.minZoom,Le.maxZoom,Le.minPitch,Le.maxPitch,Le.renderWorldCopies);if(re.call(this,ni,Le),this._interactive=Le.interactive,this._maxTileCacheSize=Le.maxTileCacheSize,this._failIfMajorPerformanceCaveat=Le.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=Le.preserveDrawingBuffer,this._antialias=Le.antialias,this._trackResize=Le.trackResize,this._bearingSnap=Le.bearingSnap,this._refreshExpiredTiles=Le.refreshExpiredTiles,this._fadeDuration=Le.fadeDuration,this._crossSourceCollisions=Le.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=Le.collectResourceTiming,this._renderTaskQueue=new iE,this._controls=[],this._mapId=b.uniqueId(),this._locale=b.extend({},HE,Le.locale),this._clickTolerance=Le.clickTolerance,this._requestManager=new b.RequestManager(Le.transformRequest,Le.accessToken),typeof Le.container=="string"){if(this._container=b.window.document.getElementById(Le.container),!this._container)throw new Error("Container '"+Le.container+"' not found.")}else{if(!(Le.container instanceof OS))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=Le.container}if(Le.maxBounds&&this.setMaxBounds(Le.maxBounds),b.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return Wt._update(!1)}),this.on("moveend",function(){return Wt._update(!1)}),this.on("zoom",function(){return Wt._update(!0)}),b.window!==void 0&&(b.window.addEventListener("online",this._onWindowOnline,!1),b.window.addEventListener("resize",this._onWindowResize,!1),b.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new iC(this,Le),this._hash=Le.hash&&new q2(typeof Le.hash=="string"&&Le.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:Le.center,zoom:Le.zoom,bearing:Le.bearing,pitch:Le.pitch}),Le.bounds&&(this.resize(),this.fitBounds(Le.bounds,b.extend({},Le.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=Le.localIdeographFontFamily,Le.style&&this.setStyle(Le.style,{localIdeographFontFamily:Le.localIdeographFontFamily}),Le.attributionControl&&this.addControl(new nC({customAttribution:Le.customAttribution})),this.addControl(new AE,Le.logoPosition),this.on("style.load",function(){Wt.transform.unmodified&&Wt.jumpTo(Wt.style.stylesheet)}),this.on("data",function(Vo){Wt._update(Vo.dataType==="style"),Wt.fire(new b.Event(Vo.dataType+"data",Vo))}),this.on("dataloading",function(Vo){Wt.fire(new b.Event(Vo.dataType+"dataloading",Vo))})}re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe;var ge={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return pe.prototype._getMapId=function(){return this._mapId},pe.prototype.addControl=function(Le,Wt){if(Wt===void 0&&(Wt=Le.getDefaultPosition?Le.getDefaultPosition():"top-right"),!Le||!Le.onAdd)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ni=Le.onAdd(this);this._controls.push(Le);var Vo=this._controlPositions[Wt];return Wt.indexOf("bottom")!==-1?Vo.insertBefore(ni,Vo.firstChild):Vo.appendChild(ni),this},pe.prototype.removeControl=function(Le){if(!Le||!Le.onRemove)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Wt=this._controls.indexOf(Le);return Wt>-1&&this._controls.splice(Wt,1),Le.onRemove(this),this},pe.prototype.hasControl=function(Le){return this._controls.indexOf(Le)>-1},pe.prototype.resize=function(Le){var Wt=this._containerDimensions(),ni=Wt[0],Vo=Wt[1];if(ni===this.transform.width&&Vo===this.transform.height)return this;this._resizeCanvas(ni,Vo),this.transform.resize(ni,Vo),this.painter.resize(ni,Vo);var Ua=!this._moving;return Ua&&this.fire(new b.Event("movestart",Le)).fire(new b.Event("move",Le)),this.fire(new b.Event("resize",Le)),Ua&&this.fire(new b.Event("moveend",Le)),this},pe.prototype.getBounds=function(){return this.transform.getBounds()},pe.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},pe.prototype.setMaxBounds=function(Le){return this.transform.setMaxBounds(b.LngLatBounds.convert(Le)),this._update()},pe.prototype.setMinZoom=function(Le){if((Le=Le==null?-2:Le)>=-2&&Le<=this.transform.maxZoom)return this.transform.minZoom=Le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=Le,this._update(),this.getZoom()>Le&&this.setZoom(Le),this;throw new Error("maxZoom must be greater than the current minZoom")},pe.prototype.getMaxZoom=function(){return this.transform.maxZoom},pe.prototype.setMinPitch=function(Le){if((Le=Le==null?0:Le)<0)throw new Error("minPitch must be greater than or equal to 0");if(Le>=0&&Le<=this.transform.maxPitch)return this.transform.minPitch=Le,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(Le>=this.transform.minPitch)return this.transform.maxPitch=Le,this._update(),this.getPitch()>Le&&this.setPitch(Le),this;throw new Error("maxPitch must be greater than the current minPitch")},pe.prototype.getMaxPitch=function(){return this.transform.maxPitch},pe.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},pe.prototype.setRenderWorldCopies=function(Le){return this.transform.renderWorldCopies=Le,this._update()},pe.prototype.project=function(Le){return this.transform.locationPoint(b.LngLat.convert(Le))},pe.prototype.unproject=function(Le){return this.transform.pointLocation(b.Point.convert(Le))},pe.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},pe.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},pe.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},pe.prototype._createDelegatedListener=function(Le,Wt,ni){var Vo,Ua=this;if(Le==="mouseenter"||Le==="mouseover"){var Lg=!1;return{layer:Wt,listener:ni,delegates:{mousemove:function(I0){var K0=Ua.getLayer(Wt)?Ua.queryRenderedFeatures(I0.point,{layers:[Wt]}):[];K0.length?Lg||(Lg=!0,ni.call(Ua,new zw(Le,Ua,I0.originalEvent,{features:K0}))):Lg=!1},mouseout:function(){Lg=!1}}}}if(Le==="mouseleave"||Le==="mouseout"){var ou=!1;return{layer:Wt,listener:ni,delegates:{mousemove:function(I0){(Ua.getLayer(Wt)?Ua.queryRenderedFeatures(I0.point,{layers:[Wt]}):[]).length?ou=!0:ou&&(ou=!1,ni.call(Ua,new zw(Le,Ua,I0.originalEvent)))},mouseout:function(I0){ou&&(ou=!1,ni.call(Ua,new zw(Le,Ua,I0.originalEvent)))}}}}return{layer:Wt,listener:ni,delegates:(Vo={},Vo[Le]=function(I0){var K0=Ua.getLayer(Wt)?Ua.queryRenderedFeatures(I0.point,{layers:[Wt]}):[];K0.length&&(I0.features=K0,ni.call(Ua,I0),delete I0.features)},Vo)}},pe.prototype.on=function(Le,Wt,ni){if(ni===void 0)return re.prototype.on.call(this,Le,Wt);var Vo=this._createDelegatedListener(Le,Wt,ni);for(var Ua in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[Le]=this._delegatedListeners[Le]||[],this._delegatedListeners[Le].push(Vo),Vo.delegates)this.on(Ua,Vo.delegates[Ua]);return this},pe.prototype.once=function(Le,Wt,ni){if(ni===void 0)return re.prototype.once.call(this,Le,Wt);var Vo=this._createDelegatedListener(Le,Wt,ni);for(var Ua in Vo.delegates)this.once(Ua,Vo.delegates[Ua]);return this},pe.prototype.off=function(Le,Wt,ni){var Vo=this;return ni===void 0?re.prototype.off.call(this,Le,Wt):(this._delegatedListeners&&this._delegatedListeners[Le]&&function(Ua){for(var Lg=Ua[Le],ou=0;ou180;){var Vo=ge.locationPoint(re);if(Vo.x>=0&&Vo.y>=0&&Vo.x<=ge.width&&Vo.y<=ge.height)break;re.lng>ge.center.lng?re.lng-=360:re.lng+=360}return re}QC.prototype.down=function(re,pe){this.mouseRotate.mousedown(re,pe),this.mousePitch&&this.mousePitch.mousedown(re,pe),y.disableDrag()},QC.prototype.move=function(re,pe){var ge=this.map,Le=this.mouseRotate.mousemoveWindow(re,pe);if(Le&&Le.bearingDelta&&ge.setBearing(ge.getBearing()+Le.bearingDelta),this.mousePitch){var Wt=this.mousePitch.mousemoveWindow(re,pe);Wt&&Wt.pitchDelta&&ge.setPitch(ge.getPitch()+Wt.pitchDelta)}},QC.prototype.off=function(){var re=this.element;y.removeEventListener(re,"mousedown",this.mousedown),y.removeEventListener(re,"touchstart",this.touchstart,{passive:!1}),y.removeEventListener(re,"touchmove",this.touchmove),y.removeEventListener(re,"touchend",this.touchend),y.removeEventListener(re,"touchcancel",this.reset),this.offTemp()},QC.prototype.offTemp=function(){y.enableDrag(),y.removeEventListener(b.window,"mousemove",this.mousemove),y.removeEventListener(b.window,"mouseup",this.mouseup)},QC.prototype.mousedown=function(re){this.down(b.extend({},re,{ctrlKey:!0,preventDefault:function(){return re.preventDefault()}}),y.mousePos(this.element,re)),y.addEventListener(b.window,"mousemove",this.mousemove),y.addEventListener(b.window,"mouseup",this.mouseup)},QC.prototype.mousemove=function(re){this.move(re,y.mousePos(this.element,re))},QC.prototype.mouseup=function(re){this.mouseRotate.mouseupWindow(re),this.mousePitch&&this.mousePitch.mouseupWindow(re),this.offTemp()},QC.prototype.touchstart=function(re){re.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=y.touchPos(this.element,re.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return re.preventDefault()}},this._startPos))},QC.prototype.touchmove=function(re){re.targetTouches.length!==1?this.reset():(this._lastPos=y.touchPos(this.element,re.targetTouches)[0],this.move({preventDefault:function(){return re.preventDefault()}},this._lastPos))},QC.prototype.touchend=function(re){re.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=Le}this._isDragging&&(this._pos=ge.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new b.Event("dragstart"))),this.fire(new b.Event("drag")))},pe.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new b.Event("dragend")),this._state="inactive"},pe.prototype._addDragHandler=function(ge){this._element.contains(ge.originalEvent.target)&&(ge.preventDefault(),this._positionDelta=ge.point.sub(this._pos).add(this._offset),this._pointerdownPos=ge.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},pe.prototype.setDraggable=function(ge){return this._draggable=!!ge,this._map&&(ge?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},pe.prototype.isDraggable=function(){return this._draggable},pe.prototype.setRotation=function(ge){return this._rotation=ge||0,this._update(),this},pe.prototype.getRotation=function(){return this._rotation},pe.prototype.setRotationAlignment=function(ge){return this._rotationAlignment=ge||"auto",this._update(),this},pe.prototype.getRotationAlignment=function(){return this._rotationAlignment},pe.prototype.setPitchAlignment=function(ge){return this._pitchAlignment=ge&&ge!=="auto"?ge:this._rotationAlignment,this._update(),this},pe.prototype.getPitchAlignment=function(){return this._pitchAlignment},pe}(b.Evented),Hn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},za=0,og=!1,it=function(re){function pe(ge){re.call(this),this.options=b.extend({},Hn,ge),b.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.onAdd=function(ge){var Le;return this._map=ge,this._container=y.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Le=this._setupUI,Te!==void 0?Le(Te):b.window.navigator.permissions!==void 0?b.window.navigator.permissions.query({name:"geolocation"}).then(function(Wt){Le(Te=Wt.state!=="denied")}):Le(Te=!!b.window.navigator.geolocation),this._container},pe.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),y.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,za=0,og=!1},pe.prototype._isOutOfMapMaxBounds=function(ge){var Le=this._map.getMaxBounds(),Wt=ge.coords;return Le&&(Wt.longitudeLe.getEast()||Wt.latitudeLe.getNorth())},pe.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},pe.prototype._onSuccess=function(ge){if(this._map){if(this._isOutOfMapMaxBounds(ge))return this._setErrorState(),this.fire(new b.Event("outofmaxbounds",ge)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ge,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ge),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ge),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("geolocate",ge)),this._finish()}},pe.prototype._updateCamera=function(ge){var Le=new b.LngLat(ge.coords.longitude,ge.coords.latitude),Wt=ge.coords.accuracy,ni=this._map.getBearing(),Vo=b.extend({bearing:ni},this.options.fitBoundsOptions);this._map.fitBounds(Le.toBounds(Wt),Vo,{geolocateSource:!0})},pe.prototype._updateMarker=function(ge){if(ge){var Le=new b.LngLat(ge.coords.longitude,ge.coords.latitude);this._accuracyCircleMarker.setLngLat(Le).addTo(this._map),this._userLocationDotMarker.setLngLat(Le).addTo(this._map),this._accuracy=ge.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},pe.prototype._updateCircleRadius=function(){var ge=this._map._container.clientHeight/2,Le=this._map.unproject([0,ge]),Wt=this._map.unproject([1,ge]),ni=Le.distanceTo(Wt),Vo=Math.ceil(2*this._accuracy/ni);this._circleElement.style.width=Vo+"px",this._circleElement.style.height=Vo+"px"},pe.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},pe.prototype._onError=function(ge){if(this._map){if(this.options.trackUserLocation)if(ge.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var Le=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=Le,this._geolocateButton.setAttribute("aria-label",Le),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ge.code===3&&og)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("error",ge)),this._finish()}},pe.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},pe.prototype._setupUI=function(ge){var Le=this;if(this._container.addEventListener("contextmenu",function(Vo){return Vo.preventDefault()}),this._geolocateButton=y.create("button","mapboxgl-ctrl-geolocate",this._container),y.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ge===!1){b.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Wt=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Wt,this._geolocateButton.setAttribute("aria-label",Wt)}else{var ni=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ni,this._geolocateButton.setAttribute("aria-label",ni)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=y.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ue(this._dotElement),this._circleElement=y.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ue({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Vo){Vo.geolocateSource||Le._watchState!=="ACTIVE_LOCK"||Vo.originalEvent&&Vo.originalEvent.type==="resize"||(Le._watchState="BACKGROUND",Le._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),Le._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),Le.fire(new b.Event("trackuserlocationend")))})},pe.prototype.trigger=function(){if(!this._setup)return b.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new b.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":za--,og=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new b.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new b.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ge;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++za>1?(ge={maximumAge:6e5,timeout:0},og=!0):(ge=this.options.positionOptions,og=!1),this._geolocationWatchID=b.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ge)}}else b.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},pe.prototype._clearWatch=function(){b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},pe}(b.Evented),z={maxWidth:100,unit:"metric"},we=function(re){this.options=b.extend({},z,re),b.bindAll(["_onMove","setUnit"],this)};function et(re,pe,ge){var Le=ge&&ge.maxWidth||100,Wt=re._container.clientHeight/2,ni=re.unproject([0,Wt]),Vo=re.unproject([Le,Wt]),Ua=ni.distanceTo(Vo);if(ge&&ge.unit==="imperial"){var Lg=3.2808*Ua;Lg>5280?Tt(pe,Le,Lg/5280,re._getUIString("ScaleControl.Miles")):Tt(pe,Le,Lg,re._getUIString("ScaleControl.Feet"))}else ge&&ge.unit==="nautical"?Tt(pe,Le,Ua/1852,re._getUIString("ScaleControl.NauticalMiles")):Ua>=1e3?Tt(pe,Le,Ua/1e3,re._getUIString("ScaleControl.Kilometers")):Tt(pe,Le,Ua,re._getUIString("ScaleControl.Meters"))}function Tt(re,pe,ge,Le){var Wt,ni,Vo,Ua=(Wt=ge,(ni=Math.pow(10,(""+Math.floor(Wt)).length-1))*(Vo=(Vo=Wt/ni)>=10?10:Vo>=5?5:Vo>=3?3:Vo>=2?2:Vo>=1?1:function(Lg){var ou=Math.pow(10,Math.ceil(-Math.log(Lg)/Math.LN10));return Math.round(Lg*ou)/ou}(Vo)));re.style.width=pe*(Ua/ge)+"px",re.innerHTML=Ua+" "+Le}we.prototype.getDefaultPosition=function(){return"bottom-left"},we.prototype._onMove=function(){et(this._map,this._container,this.options)},we.prototype.onAdd=function(re){return this._map=re,this._container=y.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",re.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},we.prototype.onRemove=function(){y.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},we.prototype.setUnit=function(re){this.options.unit=re,et(this._map,this._container,this.options)};var _r=function(re){this._fullscreen=!1,re&&re.container&&(re.container instanceof b.window.HTMLElement?this._container=re.container:b.warnOnce("Full screen control 'container' must be a DOM element.")),b.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in b.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in b.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in b.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in b.window.document&&(this._fullscreenchange="MSFullscreenChange")};_r.prototype.onAdd=function(re){return this._map=re,this._container||(this._container=this._map.getContainer()),this._controlContainer=y.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",b.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},_r.prototype.onRemove=function(){y.remove(this._controlContainer),this._map=null,b.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},_r.prototype._checkFullscreenSupport=function(){return!!(b.window.document.fullscreenEnabled||b.window.document.mozFullScreenEnabled||b.window.document.msFullscreenEnabled||b.window.document.webkitFullscreenEnabled)},_r.prototype._setupUI=function(){var re=this._fullscreenButton=y.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);y.create("span","mapboxgl-ctrl-icon",re).setAttribute("aria-hidden",!0),re.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),b.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},_r.prototype._updateTitle=function(){var re=this._getTitle();this._fullscreenButton.setAttribute("aria-label",re),this._fullscreenButton.title=re},_r.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},_r.prototype._isFullscreen=function(){return this._fullscreen},_r.prototype._changeIcon=function(){(b.window.document.fullscreenElement||b.window.document.mozFullScreenElement||b.window.document.webkitFullscreenElement||b.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},_r.prototype._onClickFullscreen=function(){this._isFullscreen()?b.window.document.exitFullscreen?b.window.document.exitFullscreen():b.window.document.mozCancelFullScreen?b.window.document.mozCancelFullScreen():b.window.document.msExitFullscreen?b.window.document.msExitFullscreen():b.window.document.webkitCancelFullScreen&&b.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var va={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},La=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),yu=function(re){function pe(ge){re.call(this),this.options=b.extend(Object.create(va),ge),b.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return re&&(pe.__proto__=re),(pe.prototype=Object.create(re&&re.prototype)).constructor=pe,pe.prototype.addTo=function(ge){return this._map&&this.remove(),this._map=ge,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new b.Event("open")),this},pe.prototype.isOpen=function(){return!!this._map},pe.prototype.remove=function(){return this._content&&y.remove(this._content),this._container&&(y.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new b.Event("close")),this},pe.prototype.getLngLat=function(){return this._lngLat},pe.prototype.setLngLat=function(ge){return this._lngLat=b.LngLat.convert(ge),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},pe.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},pe.prototype.getElement=function(){return this._container},pe.prototype.setText=function(ge){return this.setDOMContent(b.window.document.createTextNode(ge))},pe.prototype.setHTML=function(ge){var Le,Wt=b.window.document.createDocumentFragment(),ni=b.window.document.createElement("body");for(ni.innerHTML=ge;Le=ni.firstChild;)Wt.appendChild(Le);return this.setDOMContent(Wt)},pe.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},pe.prototype.setMaxWidth=function(ge){return this.options.maxWidth=ge,this._update(),this},pe.prototype.setDOMContent=function(ge){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=y.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ge),this._createCloseButton(),this._update(),this._focusFirstElement(),this},pe.prototype.addClassName=function(ge){this._container&&this._container.classList.add(ge)},pe.prototype.removeClassName=function(ge){this._container&&this._container.classList.remove(ge)},pe.prototype.setOffset=function(ge){return this.options.offset=ge,this._update(),this},pe.prototype.toggleClassName=function(ge){if(this._container)return this._container.classList.toggle(ge)},pe.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=y.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},pe.prototype._onMouseUp=function(ge){this._update(ge.point)},pe.prototype._onMouseMove=function(ge){this._update(ge.point)},pe.prototype._onDrag=function(ge){this._update(ge.point)},pe.prototype._update=function(ge){var Le=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=y.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=y.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(K0){return Le._container.classList.add(K0)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=r1(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ge)){var Wt=this._pos=this._trackPointer&&ge?ge:this._map.project(this._lngLat),ni=this.options.anchor,Vo=function K0(fv){if(fv){if(typeof fv=="number"){var Yv=Math.round(Math.sqrt(.5*Math.pow(fv,2)));return{center:new b.Point(0,0),top:new b.Point(0,fv),"top-left":new b.Point(Yv,Yv),"top-right":new b.Point(-Yv,Yv),bottom:new b.Point(0,-fv),"bottom-left":new b.Point(Yv,-Yv),"bottom-right":new b.Point(-Yv,-Yv),left:new b.Point(fv,0),right:new b.Point(-fv,0)}}if(fv instanceof b.Point||Array.isArray(fv)){var d1=b.Point.convert(fv);return{center:d1,top:d1,"top-left":d1,"top-right":d1,bottom:d1,"bottom-left":d1,"bottom-right":d1,left:d1,right:d1}}return{center:b.Point.convert(fv.center||[0,0]),top:b.Point.convert(fv.top||[0,0]),"top-left":b.Point.convert(fv["top-left"]||[0,0]),"top-right":b.Point.convert(fv["top-right"]||[0,0]),bottom:b.Point.convert(fv.bottom||[0,0]),"bottom-left":b.Point.convert(fv["bottom-left"]||[0,0]),"bottom-right":b.Point.convert(fv["bottom-right"]||[0,0]),left:b.Point.convert(fv.left||[0,0]),right:b.Point.convert(fv.right||[0,0])}}return K0(new b.Point(0,0))}(this.options.offset);if(!ni){var Ua,Lg=this._container.offsetWidth,ou=this._container.offsetHeight;Ua=Wt.y+Vo.bottom.ythis._map.transform.height-ou?["bottom"]:[],Wt.xthis._map.transform.width-Lg/2&&Ua.push("right"),ni=Ua.length===0?"bottom":Ua.join("-")}var I0=Wt.add(Vo[ni]).round();y.setTransform(this._container,j[ni]+" translate("+I0.x+"px,"+I0.y+"px)"),Y(this._container,ni,"popup")}},pe.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ge=this._container.querySelector(La);ge&&ge.focus()}},pe.prototype._onClose=function(){this.remove()},pe}(b.Evented),Wg={version:b.version,supported:x,setRTLTextPlugin:b.setRTLTextPlugin,getRTLTextPluginStatus:b.getRTLTextPluginStatus,Map:QS,NavigationControl:RC,GeolocateControl:it,AttributionControl:nC,ScaleControl:we,FullscreenControl:_r,Popup:yu,Marker:Ue,Style:hv,LngLat:b.LngLat,LngLatBounds:b.LngLatBounds,Point:b.Point,MercatorCoordinate:b.MercatorCoordinate,Evented:b.Evented,config:b.config,prewarm:function(){Bg().acquire(Bs)},clearPrewarmedResources:function(){var re=$a;re&&(re.isPreloaded()&&re.numActive()===1?(re.release(Bs),$a=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return b.config.ACCESS_TOKEN},set accessToken(re){b.config.ACCESS_TOKEN=re},get baseApiUrl(){return b.config.API_URL},set baseApiUrl(re){b.config.API_URL=re},get workerCount(){return Sa.workerCount},set workerCount(re){Sa.workerCount=re},get maxParallelImageRequests(){return b.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(re){b.config.MAX_PARALLEL_IMAGE_REQUESTS=re},clearStorage:function(re){b.clearTileCache(re)},workerUrl:""};return Wg}),u})},93735:function(c,g,l){(function(){var u=l(75041),D=l(67751).utf8,b=l(78034),x=l(67751).bin,y=function(w,a){w.constructor==String?a&&a.encoding==="binary"?w=x.stringToBytes(w):w=D.stringToBytes(w):b(w)?w=Array.prototype.slice.call(w,0):!Array.isArray(w)&&w.constructor!==Uint8Array&&(w=w.toString());for(var S=u.bytesToWords(w),I=w.length*8,N=1732584193,ie=-271733879,ze=-1732584194,Ie=271733878,ct=0;ct>>24)&16711935|(S[ct]<<24|S[ct]>>>8)&4278255360;S[I>>>5]|=128<>>9<<4)+14]=I;for(var At=y._ff,rt=y._gg,It=y._hh,Ot=y._ii,ct=0;ct>>0,ie=ie+Hs>>>0,ze=ze+jr>>>0,Ie=Ie+Jr>>>0}return u.endian([N,ie,ze,Ie])};y._ff=function(w,a,S,I,N,ie,ze){var Ie=w+(a&S|~a&I)+(N>>>0)+ze;return(Ie<>>32-ie)+a},y._gg=function(w,a,S,I,N,ie,ze){var Ie=w+(a&I|S&~I)+(N>>>0)+ze;return(Ie<>>32-ie)+a},y._hh=function(w,a,S,I,N,ie,ze){var Ie=w+(a^S^I)+(N>>>0)+ze;return(Ie<>>32-ie)+a},y._ii=function(w,a,S,I,N,ie,ze){var Ie=w+(S^(a|~I))+(N>>>0)+ze;return(Ie<>>32-ie)+a},y._blocksize=16,y._digestsize=16,c.exports=function(w,a){if(w==null)throw new Error("Illegal argument "+w);var S=u.wordsToBytes(y(w,a));return a&&a.asBytes?S:a&&a.asString?x.bytesToString(S):u.bytesToHex(S)}})()},4027:function(c,g,l){"use strict";l.r(g),l.d(g,{CancellationTokenSource:function(){return afe},Emitter:function(){return lfe},KeyCode:function(){return ufe},KeyMod:function(){return cfe},MarkerSeverity:function(){return gfe},MarkerTag:function(){return mfe},Position:function(){return dfe},Range:function(){return hfe},Selection:function(){return ffe},SelectionDirection:function(){return pfe},Token:function(){return yfe},Uri:function(){return vfe},default:function(){return pve},editor:function(){return _fe},languages:function(){return bfe}});var u={};l.r(u),l.d(u,{PixelRatio:function(){return E1},addMatchMediaChangeListener:function(){return E0},getZoomFactor:function(){return $1},isAndroid:function(){return xy},isChrome:function(){return Rv},isElectron:function(){return G1},isFirefox:function(){return z0},isSafari:function(){return R0},isStandalone:function(){return H1},isWebKit:function(){return W0},isWebkitWebView:function(){return gv}});var D={};l.r(D),l.d(D,{CancellationTokenSource:function(){return afe},Emitter:function(){return lfe},KeyCode:function(){return ufe},KeyMod:function(){return cfe},MarkerSeverity:function(){return gfe},MarkerTag:function(){return mfe},Position:function(){return dfe},Range:function(){return hfe},Selection:function(){return ffe},SelectionDirection:function(){return pfe},Token:function(){return yfe},Uri:function(){return vfe},editor:function(){return _fe},languages:function(){return bfe}});var b={};l.r(b),l.d(b,{CancellationTokenSource:function(){return afe},Emitter:function(){return lfe},KeyCode:function(){return ufe},KeyMod:function(){return cfe},MarkerSeverity:function(){return gfe},MarkerTag:function(){return mfe},Position:function(){return dfe},Range:function(){return hfe},Selection:function(){return ffe},SelectionDirection:function(){return pfe},Token:function(){return yfe},Uri:function(){return vfe},default:function(){return pve},editor:function(){return _fe},languages:function(){return bfe}});class x{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?rt.isErrorNoTelemetry(e)?new rt(e.message+` +`}),staticAttributes:re,staticUniforms:Lt}}var Ss=Object.freeze({__proto__:null,prelude:Za,background:lu,backgroundPattern:mu,circle:nu,clippingMask:Fl,heatmap:va,heatmapTexture:Ua,collisionBox:Yl,collisionCircle:Cc,debug:ch,fill:mh,fillOutline:_h,fillOutlinePattern:wh,fillPattern:vu,fillExtrusion:ru,fillExtrusionPattern:Ql,hillshadePrepare:Hi,hillshade:ji,line:Gn,lineGradient:Sr,linePattern:Rr,lineSDF:co,raster:ns,symbolIcon:fs,symbolSDF:vs,symbolTextAndIcon:as}),pl=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Vs(B){for(var H=[],G=0;G>16,bn>>16],u_pixel_coord_lower:[65535&Lt,65535&bn]}}ol.prototype.draw=function(B,H,G,re,ke,_t,Lt,bn,_r,Dn,mi,Mi,Ji,zo,Yo,Gi){var Fo,js=B.gl;if(!this.failedToCreate){for(var za in B.program.set(this.program),B.setDepthMode(G),B.setStencilMode(re),B.setColorMode(ke),B.setCullFace(_t),this.fixedUniforms)this.fixedUniforms[za].set(Lt[za]);zo&&zo.setUniforms(B,this.binderUniforms,Mi,{zoom:Ji});for(var Oa=(Fo={},Fo[js.LINES]=2,Fo[js.TRIANGLES]=3,Fo[js.LINE_STRIP]=1,Fo)[H],Ul=0,cl=mi.get();Ul0?1-1/(1.001-Lt):-Lt),u_contrast_factor:(_t=ke.paint.get("raster-contrast"),_t>0?1/(1-_t):1+_t),u_spin_weights:ef(ke.paint.get("raster-hue-rotate"))};var _t,Lt};function ef(B){B*=Math.PI/180;var H=Math.sin(B),G=Math.cos(B);return[(2*G+1)/3,(-Math.sqrt(3)*H-G+1)/3,(Math.sqrt(3)*H-G+1)/3]}var Pd,Mf=function(B,H,G,re,ke,_t,Lt,bn,_r,Dn){var mi=ke.transform;return{u_is_size_zoom_constant:+(B==="constant"||B==="source"),u_is_size_feature_constant:+(B==="constant"||B==="camera"),u_size_t:H?H.uSizeT:0,u_size:H?H.uSize:0,u_camera_to_center_distance:mi.cameraToCenterDistance,u_pitch:mi.pitch/360*2*Math.PI,u_rotate_symbol:+G,u_aspect_ratio:mi.width/mi.height,u_fade_change:ke.options.fadeDuration?ke.symbolFadeChange:1,u_matrix:_t,u_label_plane_matrix:Lt,u_coord_matrix:bn,u_is_text:+_r,u_pitch_with_map:+re,u_texsize:Dn,u_texture:0}},$f=function(B,H,G,re,ke,_t,Lt,bn,_r,Dn,mi){var Mi=ke.transform;return P.extend(Mf(B,H,G,re,ke,_t,Lt,bn,_r,Dn),{u_gamma_scale:re?Math.cos(Mi._pitch)*Mi.cameraToCenterDistance:1,u_device_pixel_ratio:P.browser.devicePixelRatio,u_is_halo:+mi})},Rd=function(B,H,G,re,ke,_t,Lt,bn,_r,Dn){return P.extend($f(B,H,G,re,ke,_t,Lt,bn,!0,_r,!0),{u_texsize_icon:Dn,u_texture_icon:1})},fp=function(B,H,G){return{u_matrix:B,u_opacity:H,u_color:G}},us=function(B,H,G,re,ke,_t){return P.extend(function(Lt,bn,_r,Dn){var mi=_r.imageManager.getPattern(Lt.from.toString()),Mi=_r.imageManager.getPattern(Lt.to.toString()),Ji=_r.imageManager.getPixelSize(),zo=Ji.width,Yo=Ji.height,Gi=Math.pow(2,Dn.tileID.overscaledZ),Fo=Dn.tileSize*Math.pow(2,_r.transform.tileZoom)/Gi,js=Fo*(Dn.tileID.canonical.x+Dn.tileID.wrap*Gi),za=Fo*Dn.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:mi.tl,u_pattern_br_a:mi.br,u_pattern_tl_b:Mi.tl,u_pattern_br_b:Mi.br,u_texsize:[zo,Yo],u_mix:bn.t,u_pattern_size_a:mi.displaySize,u_pattern_size_b:Mi.displaySize,u_scale_a:bn.fromScale,u_scale_b:bn.toScale,u_tile_units_to_pixels:1/To(Dn,1,_r.transform.tileZoom),u_pixel_coord_upper:[js>>16,za>>16],u_pixel_coord_lower:[65535&js,65535&za]}}(re,_t,G,ke),{u_matrix:B,u_opacity:H})},Ca={fillExtrusion:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_lightpos:new P.Uniform3f(B,H.u_lightpos),u_lightintensity:new P.Uniform1f(B,H.u_lightintensity),u_lightcolor:new P.Uniform3f(B,H.u_lightcolor),u_vertical_gradient:new P.Uniform1f(B,H.u_vertical_gradient),u_opacity:new P.Uniform1f(B,H.u_opacity)}},fillExtrusionPattern:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_lightpos:new P.Uniform3f(B,H.u_lightpos),u_lightintensity:new P.Uniform1f(B,H.u_lightintensity),u_lightcolor:new P.Uniform3f(B,H.u_lightcolor),u_vertical_gradient:new P.Uniform1f(B,H.u_vertical_gradient),u_height_factor:new P.Uniform1f(B,H.u_height_factor),u_image:new P.Uniform1i(B,H.u_image),u_texsize:new P.Uniform2f(B,H.u_texsize),u_pixel_coord_upper:new P.Uniform2f(B,H.u_pixel_coord_upper),u_pixel_coord_lower:new P.Uniform2f(B,H.u_pixel_coord_lower),u_scale:new P.Uniform3f(B,H.u_scale),u_fade:new P.Uniform1f(B,H.u_fade),u_opacity:new P.Uniform1f(B,H.u_opacity)}},fill:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix)}},fillPattern:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_image:new P.Uniform1i(B,H.u_image),u_texsize:new P.Uniform2f(B,H.u_texsize),u_pixel_coord_upper:new P.Uniform2f(B,H.u_pixel_coord_upper),u_pixel_coord_lower:new P.Uniform2f(B,H.u_pixel_coord_lower),u_scale:new P.Uniform3f(B,H.u_scale),u_fade:new P.Uniform1f(B,H.u_fade)}},fillOutline:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_world:new P.Uniform2f(B,H.u_world)}},fillOutlinePattern:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_world:new P.Uniform2f(B,H.u_world),u_image:new P.Uniform1i(B,H.u_image),u_texsize:new P.Uniform2f(B,H.u_texsize),u_pixel_coord_upper:new P.Uniform2f(B,H.u_pixel_coord_upper),u_pixel_coord_lower:new P.Uniform2f(B,H.u_pixel_coord_lower),u_scale:new P.Uniform3f(B,H.u_scale),u_fade:new P.Uniform1f(B,H.u_fade)}},circle:function(B,H){return{u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_scale_with_map:new P.Uniform1i(B,H.u_scale_with_map),u_pitch_with_map:new P.Uniform1i(B,H.u_pitch_with_map),u_extrude_scale:new P.Uniform2f(B,H.u_extrude_scale),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_matrix:new P.UniformMatrix4f(B,H.u_matrix)}},collisionBox:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_pixels_to_tile_units:new P.Uniform1f(B,H.u_pixels_to_tile_units),u_extrude_scale:new P.Uniform2f(B,H.u_extrude_scale),u_overscale_factor:new P.Uniform1f(B,H.u_overscale_factor)}},collisionCircle:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_inv_matrix:new P.UniformMatrix4f(B,H.u_inv_matrix),u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_viewport_size:new P.Uniform2f(B,H.u_viewport_size)}},debug:function(B,H){return{u_color:new P.UniformColor(B,H.u_color),u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_overlay:new P.Uniform1i(B,H.u_overlay),u_overlay_scale:new P.Uniform1f(B,H.u_overlay_scale)}},clippingMask:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix)}},heatmap:function(B,H){return{u_extrude_scale:new P.Uniform1f(B,H.u_extrude_scale),u_intensity:new P.Uniform1f(B,H.u_intensity),u_matrix:new P.UniformMatrix4f(B,H.u_matrix)}},heatmapTexture:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_world:new P.Uniform2f(B,H.u_world),u_image:new P.Uniform1i(B,H.u_image),u_color_ramp:new P.Uniform1i(B,H.u_color_ramp),u_opacity:new P.Uniform1f(B,H.u_opacity)}},hillshade:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_image:new P.Uniform1i(B,H.u_image),u_latrange:new P.Uniform2f(B,H.u_latrange),u_light:new P.Uniform2f(B,H.u_light),u_shadow:new P.UniformColor(B,H.u_shadow),u_highlight:new P.UniformColor(B,H.u_highlight),u_accent:new P.UniformColor(B,H.u_accent)}},hillshadePrepare:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_image:new P.Uniform1i(B,H.u_image),u_dimension:new P.Uniform2f(B,H.u_dimension),u_zoom:new P.Uniform1f(B,H.u_zoom),u_unpack:new P.Uniform4f(B,H.u_unpack)}},line:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_ratio:new P.Uniform1f(B,H.u_ratio),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_units_to_pixels:new P.Uniform2f(B,H.u_units_to_pixels)}},lineGradient:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_ratio:new P.Uniform1f(B,H.u_ratio),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_units_to_pixels:new P.Uniform2f(B,H.u_units_to_pixels),u_image:new P.Uniform1i(B,H.u_image),u_image_height:new P.Uniform1f(B,H.u_image_height)}},linePattern:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_texsize:new P.Uniform2f(B,H.u_texsize),u_ratio:new P.Uniform1f(B,H.u_ratio),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_image:new P.Uniform1i(B,H.u_image),u_units_to_pixels:new P.Uniform2f(B,H.u_units_to_pixels),u_scale:new P.Uniform3f(B,H.u_scale),u_fade:new P.Uniform1f(B,H.u_fade)}},lineSDF:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_ratio:new P.Uniform1f(B,H.u_ratio),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_units_to_pixels:new P.Uniform2f(B,H.u_units_to_pixels),u_patternscale_a:new P.Uniform2f(B,H.u_patternscale_a),u_patternscale_b:new P.Uniform2f(B,H.u_patternscale_b),u_sdfgamma:new P.Uniform1f(B,H.u_sdfgamma),u_image:new P.Uniform1i(B,H.u_image),u_tex_y_a:new P.Uniform1f(B,H.u_tex_y_a),u_tex_y_b:new P.Uniform1f(B,H.u_tex_y_b),u_mix:new P.Uniform1f(B,H.u_mix)}},raster:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_tl_parent:new P.Uniform2f(B,H.u_tl_parent),u_scale_parent:new P.Uniform1f(B,H.u_scale_parent),u_buffer_scale:new P.Uniform1f(B,H.u_buffer_scale),u_fade_t:new P.Uniform1f(B,H.u_fade_t),u_opacity:new P.Uniform1f(B,H.u_opacity),u_image0:new P.Uniform1i(B,H.u_image0),u_image1:new P.Uniform1i(B,H.u_image1),u_brightness_low:new P.Uniform1f(B,H.u_brightness_low),u_brightness_high:new P.Uniform1f(B,H.u_brightness_high),u_saturation_factor:new P.Uniform1f(B,H.u_saturation_factor),u_contrast_factor:new P.Uniform1f(B,H.u_contrast_factor),u_spin_weights:new P.Uniform3f(B,H.u_spin_weights)}},symbolIcon:function(B,H){return{u_is_size_zoom_constant:new P.Uniform1i(B,H.u_is_size_zoom_constant),u_is_size_feature_constant:new P.Uniform1i(B,H.u_is_size_feature_constant),u_size_t:new P.Uniform1f(B,H.u_size_t),u_size:new P.Uniform1f(B,H.u_size),u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_pitch:new P.Uniform1f(B,H.u_pitch),u_rotate_symbol:new P.Uniform1i(B,H.u_rotate_symbol),u_aspect_ratio:new P.Uniform1f(B,H.u_aspect_ratio),u_fade_change:new P.Uniform1f(B,H.u_fade_change),u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_label_plane_matrix:new P.UniformMatrix4f(B,H.u_label_plane_matrix),u_coord_matrix:new P.UniformMatrix4f(B,H.u_coord_matrix),u_is_text:new P.Uniform1i(B,H.u_is_text),u_pitch_with_map:new P.Uniform1i(B,H.u_pitch_with_map),u_texsize:new P.Uniform2f(B,H.u_texsize),u_texture:new P.Uniform1i(B,H.u_texture)}},symbolSDF:function(B,H){return{u_is_size_zoom_constant:new P.Uniform1i(B,H.u_is_size_zoom_constant),u_is_size_feature_constant:new P.Uniform1i(B,H.u_is_size_feature_constant),u_size_t:new P.Uniform1f(B,H.u_size_t),u_size:new P.Uniform1f(B,H.u_size),u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_pitch:new P.Uniform1f(B,H.u_pitch),u_rotate_symbol:new P.Uniform1i(B,H.u_rotate_symbol),u_aspect_ratio:new P.Uniform1f(B,H.u_aspect_ratio),u_fade_change:new P.Uniform1f(B,H.u_fade_change),u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_label_plane_matrix:new P.UniformMatrix4f(B,H.u_label_plane_matrix),u_coord_matrix:new P.UniformMatrix4f(B,H.u_coord_matrix),u_is_text:new P.Uniform1i(B,H.u_is_text),u_pitch_with_map:new P.Uniform1i(B,H.u_pitch_with_map),u_texsize:new P.Uniform2f(B,H.u_texsize),u_texture:new P.Uniform1i(B,H.u_texture),u_gamma_scale:new P.Uniform1f(B,H.u_gamma_scale),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_is_halo:new P.Uniform1i(B,H.u_is_halo)}},symbolTextAndIcon:function(B,H){return{u_is_size_zoom_constant:new P.Uniform1i(B,H.u_is_size_zoom_constant),u_is_size_feature_constant:new P.Uniform1i(B,H.u_is_size_feature_constant),u_size_t:new P.Uniform1f(B,H.u_size_t),u_size:new P.Uniform1f(B,H.u_size),u_camera_to_center_distance:new P.Uniform1f(B,H.u_camera_to_center_distance),u_pitch:new P.Uniform1f(B,H.u_pitch),u_rotate_symbol:new P.Uniform1i(B,H.u_rotate_symbol),u_aspect_ratio:new P.Uniform1f(B,H.u_aspect_ratio),u_fade_change:new P.Uniform1f(B,H.u_fade_change),u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_label_plane_matrix:new P.UniformMatrix4f(B,H.u_label_plane_matrix),u_coord_matrix:new P.UniformMatrix4f(B,H.u_coord_matrix),u_is_text:new P.Uniform1i(B,H.u_is_text),u_pitch_with_map:new P.Uniform1i(B,H.u_pitch_with_map),u_texsize:new P.Uniform2f(B,H.u_texsize),u_texsize_icon:new P.Uniform2f(B,H.u_texsize_icon),u_texture:new P.Uniform1i(B,H.u_texture),u_texture_icon:new P.Uniform1i(B,H.u_texture_icon),u_gamma_scale:new P.Uniform1f(B,H.u_gamma_scale),u_device_pixel_ratio:new P.Uniform1f(B,H.u_device_pixel_ratio),u_is_halo:new P.Uniform1i(B,H.u_is_halo)}},background:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_opacity:new P.Uniform1f(B,H.u_opacity),u_color:new P.UniformColor(B,H.u_color)}},backgroundPattern:function(B,H){return{u_matrix:new P.UniformMatrix4f(B,H.u_matrix),u_opacity:new P.Uniform1f(B,H.u_opacity),u_image:new P.Uniform1i(B,H.u_image),u_pattern_tl_a:new P.Uniform2f(B,H.u_pattern_tl_a),u_pattern_br_a:new P.Uniform2f(B,H.u_pattern_br_a),u_pattern_tl_b:new P.Uniform2f(B,H.u_pattern_tl_b),u_pattern_br_b:new P.Uniform2f(B,H.u_pattern_br_b),u_texsize:new P.Uniform2f(B,H.u_texsize),u_mix:new P.Uniform1f(B,H.u_mix),u_pattern_size_a:new P.Uniform2f(B,H.u_pattern_size_a),u_pattern_size_b:new P.Uniform2f(B,H.u_pattern_size_b),u_scale_a:new P.Uniform1f(B,H.u_scale_a),u_scale_b:new P.Uniform1f(B,H.u_scale_b),u_pixel_coord_upper:new P.Uniform2f(B,H.u_pixel_coord_upper),u_pixel_coord_lower:new P.Uniform2f(B,H.u_pixel_coord_lower),u_tile_units_to_pixels:new P.Uniform1f(B,H.u_tile_units_to_pixels)}}};function Ta(B,H,G,re,ke,_t,Lt){for(var bn=B.context,_r=bn.gl,Dn=B.useProgram("collisionBox"),mi=[],Mi=0,Ji=0,zo=0;zo0){var Ul=P.create(),cl=js;P.mul(Ul,Fo.placementInvProjMatrix,B.transform.glCoordMatrix),P.mul(Ul,Ul,Fo.placementViewportMatrix),mi.push({circleArray:Oa,circleOffset:Ji,transform:cl,invTransform:Ul}),Ji=Mi+=Oa.length/4}za&&Dn.draw(bn,_r.LINES,rn.disabled,ir.disabled,B.colorModeForRenderPass(),Jn.disabled,pu(js,B.transform,Gi),G.id,za.layoutVertexBuffer,za.indexBuffer,za.segments,null,B.transform.zoom,null,null,za.collisionVertexBuffer)}}if(Lt&&mi.length){var du=B.useProgram("collisionCircle"),Pu=new P.StructArrayLayout2f1f2i16;Pu.resize(4*Mi),Pu._trim();for(var ec=0,ju=0,qc=mi;ju=0&&(Yo[Fo.associatedIconIndex]={shiftedAnchor:Pu,angle:ec})}else Qr(Fo.numGlyphs,Ji)}if(mi){zo.clear();for(var qc=B.icon.placedSymbolArray,vh=0;vh0){var Lt=P.browser.now(),bn=(Lt-B.timeAdded)/_t,_r=H?(Lt-H.timeAdded)/_t:-1,Dn=G.getSource(),mi=ke.coveringZoomLevel({tileSize:Dn.tileSize,roundZoom:Dn.roundZoom}),Mi=!H||Math.abs(H.tileID.overscaledZ-mi)>Math.abs(B.tileID.overscaledZ-mi),Ji=Mi&&B.refreshedUponExpiration?1:P.clamp(Mi?bn:1-_r,0,1);return B.refreshedUponExpiration&&bn>=1&&(B.refreshedUponExpiration=!1),H?{opacity:1,mix:1-Ji}:{opacity:Ji,mix:0}}return{opacity:1,mix:0}}var hd=new P.Color(1,0,0,1),Ih=new P.Color(0,1,0,1),Oc=new P.Color(0,0,1,1),bh=new P.Color(1,0,1,1),jl=new P.Color(0,1,1,1);function Vh(B,H,G,re){su(B,0,H+G/2,B.transform.width,G,re)}function wa(B,H,G,re){su(B,H-G/2,0,G,B.transform.height,re)}function su(B,H,G,re,ke,_t){var Lt=B.context,bn=Lt.gl;bn.enable(bn.SCISSOR_TEST),bn.scissor(H*P.browser.devicePixelRatio,G*P.browser.devicePixelRatio,re*P.browser.devicePixelRatio,ke*P.browser.devicePixelRatio),Lt.clear({color:_t}),bn.disable(bn.SCISSOR_TEST)}function gh(B,H,G){var re=B.context,ke=re.gl,_t=G.posMatrix,Lt=B.useProgram("debug"),bn=rn.disabled,_r=ir.disabled,Dn=B.colorModeForRenderPass();re.activeTexture.set(ke.TEXTURE0),B.emptyTexture.bind(ke.LINEAR,ke.CLAMP_TO_EDGE),Lt.draw(re,ke.LINE_STRIP,bn,_r,Dn,Jn.disabled,dc(_t,P.Color.red),"$debug",B.debugBuffer,B.tileBorderIndexBuffer,B.debugSegments);var mi=H.getTileByID(G.key).latestRawTileData,Mi=Math.floor((mi&&mi.byteLength||0)/1024),Ji=H.getTile(G).tileSize,zo=512/Math.min(Ji,512)*(G.overscaledZ/B.transform.zoom)*.5,Yo=G.canonical.toString();G.overscaledZ!==G.canonical.z&&(Yo+=" => "+G.overscaledZ),function(Gi,Fo){Gi.initDebugOverlayCanvas();var js=Gi.debugOverlayCanvas,za=Gi.context.gl,Oa=Gi.debugOverlayCanvas.getContext("2d");Oa.clearRect(0,0,js.width,js.height),Oa.shadowColor="white",Oa.shadowBlur=2,Oa.lineWidth=1.5,Oa.strokeStyle="white",Oa.textBaseline="top",Oa.font="bold 36px Open Sans, sans-serif",Oa.fillText(Fo,5,5),Oa.strokeText(Fo,5,5),Gi.debugOverlayTexture.update(js),Gi.debugOverlayTexture.bind(za.LINEAR,za.CLAMP_TO_EDGE)}(B,Yo+" "+Mi+"kb"),Lt.draw(re,ke.TRIANGLES,bn,_r,tr.alphaBlended,Jn.disabled,dc(_t,P.Color.transparent,zo),"$debug",B.debugBuffer,B.quadTriangleIndexBuffer,B.debugSegments)}var Th={symbol:function(B,H,G,re,ke){if(B.renderPass==="translucent"){var _t=ir.disabled,Lt=B.colorModeForRenderPass();G.layout.get("text-variable-anchor")&&function(bn,_r,Dn,mi,Mi,Ji,zo){for(var Yo=_r.transform,Gi=Mi==="map",Fo=Ji==="map",js=0,za=bn;js256&&this.clearStencil(),G.setColorMode(tr.disabled),G.setDepthMode(rn.disabled);var ke=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var _t=0,Lt=H;_t256&&this.clearStencil();var B=this.nextStencilID++,H=this.context.gl;return new ir({func:H.NOTEQUAL,mask:255},B,255,H.KEEP,H.KEEP,H.REPLACE)},ws.prototype.stencilModeForClipping=function(B){var H=this.context.gl;return new ir({func:H.EQUAL,mask:255},this._tileClippingMaskIDs[B.key],0,H.KEEP,H.KEEP,H.REPLACE)},ws.prototype.stencilConfigForOverlap=function(B){var H,G=this.context.gl,re=B.sort(function(_r,Dn){return Dn.overscaledZ-_r.overscaledZ}),ke=re[re.length-1].overscaledZ,_t=re[0].overscaledZ-ke+1;if(_t>1){this.currentStencilSource=void 0,this.nextStencilID+_t>256&&this.clearStencil();for(var Lt={},bn=0;bn<_t;bn++)Lt[bn+ke]=new ir({func:G.GEQUAL,mask:255},bn+this.nextStencilID,255,G.KEEP,G.KEEP,G.REPLACE);return this.nextStencilID+=_t,[Lt,re]}return[(H={},H[ke]=ir.disabled,H),re]},ws.prototype.colorModeForRenderPass=function(){var B=this.context.gl;return this._showOverdrawInspector?new tr([B.CONSTANT_COLOR,B.ONE],new P.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):this.renderPass==="opaque"?tr.unblended:tr.alphaBlended},ws.prototype.depthModeForSublayer=function(B,H,G){if(!this.opaquePassEnabledForLayer())return rn.disabled;var re=1-((1+this.currentLayer)*this.numSublayers+B)*this.depthEpsilon;return new rn(G||this.context.gl.LEQUAL,H,[re,re])},ws.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer=0;this.currentLayer--){var Oa=this.style._layers[re[this.currentLayer]],Ul=ke[Oa.source],cl=Dn[Oa.source];this._renderTileClippingMasks(Oa,cl),this.renderLayer(this,Ul,Oa,cl)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?H.pop():null},ws.prototype.isPatternMissing=function(B){if(!B)return!1;if(!B.from||!B.to)return!0;var H=this.imageManager.getPattern(B.from.toString()),G=this.imageManager.getPattern(B.to.toString());return!H||!G},ws.prototype.useProgram=function(B,H){this.cache=this.cache||{};var G=""+B+(H?H.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[G]||(this.cache[G]=new ol(this.context,B,Ss[B],H,Ca[B],this._showOverdrawInspector)),this.cache[G]},ws.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},ws.prototype.setBaseState=function(){var B=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(B.FUNC_ADD)},ws.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=P.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new P.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},ws.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Eu=function(B,H){this.points=B,this.planes=H};Eu.fromInvProjectionMatrix=function(B,H,G){var re=Math.pow(2,G),ke=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(Lt){return P.transformMat4([],Lt,B)}).map(function(Lt){return P.scale$1([],Lt,1/Lt[3]/H*re)}),_t=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(Lt){var bn=P.sub([],ke[Lt[0]],ke[Lt[1]]),_r=P.sub([],ke[Lt[2]],ke[Lt[1]]),Dn=P.normalize([],P.cross([],bn,_r)),mi=-P.dot(Dn,ke[Lt[1]]);return Dn.concat(mi)});return new Eu(ke,_t)};var $l=function(B,H){this.min=B,this.max=H,this.center=P.scale$2([],P.add([],this.min,this.max),.5)};$l.prototype.quadrant=function(B){for(var H=[B%2==0,B<2],G=P.clone$2(this.min),re=P.clone$2(this.max),ke=0;ke=0;if(_t===0)return 0;_t!==H.length&&(G=!1)}if(G)return 2;for(var bn=0;bn<3;bn++){for(var _r=Number.MAX_VALUE,Dn=-Number.MAX_VALUE,mi=0;mithis.max[bn]-this.min[bn])return 0}return 1};var Ou=function(B,H,G,re){if(B===void 0&&(B=0),H===void 0&&(H=0),G===void 0&&(G=0),re===void 0&&(re=0),isNaN(B)||B<0||isNaN(H)||H<0||isNaN(G)||G<0||isNaN(re)||re<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=B,this.bottom=H,this.left=G,this.right=re};Ou.prototype.interpolate=function(B,H,G){return H.top!=null&&B.top!=null&&(this.top=P.number(B.top,H.top,G)),H.bottom!=null&&B.bottom!=null&&(this.bottom=P.number(B.bottom,H.bottom,G)),H.left!=null&&B.left!=null&&(this.left=P.number(B.left,H.left,G)),H.right!=null&&B.right!=null&&(this.right=P.number(B.right,H.right,G)),this},Ou.prototype.getCenter=function(B,H){var G=P.clamp((this.left+B-this.right)/2,0,B),re=P.clamp((this.top+H-this.bottom)/2,0,H);return new P.Point(G,re)},Ou.prototype.equals=function(B){return this.top===B.top&&this.bottom===B.bottom&&this.left===B.left&&this.right===B.right},Ou.prototype.clone=function(){return new Ou(this.top,this.bottom,this.left,this.right)},Ou.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Lu=function(B,H,G,re,ke){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ke===void 0||ke,this._minZoom=B||0,this._maxZoom=H||22,this._minPitch=G==null?0:G,this._maxPitch=re==null?60:re,this.setMaxBounds(),this.width=0,this.height=0,this._center=new P.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ou,this._posMatrixCache={},this._alignedPosMatrixCache={}},mc={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Lu.prototype.clone=function(){var B=new Lu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return B.tileSize=this.tileSize,B.latRange=this.latRange,B.width=this.width,B.height=this.height,B._center=this._center,B.zoom=this.zoom,B.angle=this.angle,B._fov=this._fov,B._pitch=this._pitch,B._unmodified=this._unmodified,B._edgeInsets=this._edgeInsets.clone(),B._calcMatrices(),B},mc.minZoom.get=function(){return this._minZoom},mc.minZoom.set=function(B){this._minZoom!==B&&(this._minZoom=B,this.zoom=Math.max(this.zoom,B))},mc.maxZoom.get=function(){return this._maxZoom},mc.maxZoom.set=function(B){this._maxZoom!==B&&(this._maxZoom=B,this.zoom=Math.min(this.zoom,B))},mc.minPitch.get=function(){return this._minPitch},mc.minPitch.set=function(B){this._minPitch!==B&&(this._minPitch=B,this.pitch=Math.max(this.pitch,B))},mc.maxPitch.get=function(){return this._maxPitch},mc.maxPitch.set=function(B){this._maxPitch!==B&&(this._maxPitch=B,this.pitch=Math.min(this.pitch,B))},mc.renderWorldCopies.get=function(){return this._renderWorldCopies},mc.renderWorldCopies.set=function(B){B===void 0?B=!0:B===null&&(B=!1),this._renderWorldCopies=B},mc.worldSize.get=function(){return this.tileSize*this.scale},mc.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},mc.size.get=function(){return new P.Point(this.width,this.height)},mc.bearing.get=function(){return-this.angle/Math.PI*180},mc.bearing.set=function(B){var H=-P.wrap(B,-180,180)*Math.PI/180;this.angle!==H&&(this._unmodified=!1,this.angle=H,this._calcMatrices(),this.rotationMatrix=P.create$2(),P.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},mc.pitch.get=function(){return this._pitch/Math.PI*180},mc.pitch.set=function(B){var H=P.clamp(B,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==H&&(this._unmodified=!1,this._pitch=H,this._calcMatrices())},mc.fov.get=function(){return this._fov/Math.PI*180},mc.fov.set=function(B){B=Math.max(.01,Math.min(60,B)),this._fov!==B&&(this._unmodified=!1,this._fov=B/180*Math.PI,this._calcMatrices())},mc.zoom.get=function(){return this._zoom},mc.zoom.set=function(B){var H=Math.min(Math.max(B,this.minZoom),this.maxZoom);this._zoom!==H&&(this._unmodified=!1,this._zoom=H,this.scale=this.zoomScale(H),this.tileZoom=Math.floor(H),this.zoomFraction=H-this.tileZoom,this._constrain(),this._calcMatrices())},mc.center.get=function(){return this._center},mc.center.set=function(B){B.lat===this._center.lat&&B.lng===this._center.lng||(this._unmodified=!1,this._center=B,this._constrain(),this._calcMatrices())},mc.padding.get=function(){return this._edgeInsets.toJSON()},mc.padding.set=function(B){this._edgeInsets.equals(B)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,B,1),this._calcMatrices())},mc.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Lu.prototype.isPaddingEqual=function(B){return this._edgeInsets.equals(B)},Lu.prototype.interpolatePadding=function(B,H,G){this._unmodified=!1,this._edgeInsets.interpolate(B,H,G),this._constrain(),this._calcMatrices()},Lu.prototype.coveringZoomLevel=function(B){var H=(B.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/B.tileSize));return Math.max(0,H)},Lu.prototype.getVisibleUnwrappedCoordinates=function(B){var H=[new P.UnwrappedTileID(0,B)];if(this._renderWorldCopies)for(var G=this.pointCoordinate(new P.Point(0,0)),re=this.pointCoordinate(new P.Point(this.width,0)),ke=this.pointCoordinate(new P.Point(this.width,this.height)),_t=this.pointCoordinate(new P.Point(0,this.height)),Lt=Math.floor(Math.min(G.x,re.x,ke.x,_t.x)),bn=Math.floor(Math.max(G.x,re.x,ke.x,_t.x)),_r=Lt-1;_r<=bn+1;_r++)_r!==0&&H.push(new P.UnwrappedTileID(_r,B));return H},Lu.prototype.coveringTiles=function(B){var H=this.coveringZoomLevel(B),G=H;if(B.minzoom!==void 0&&HB.maxzoom&&(H=B.maxzoom);var re=P.MercatorCoordinate.fromLngLat(this.center),ke=Math.pow(2,H),_t=[ke*re.x,ke*re.y,0],Lt=Eu.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,H),bn=B.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(bn=H);var _r=function(ju){return{aabb:new $l([ju*ke,0,0],[(ju+1)*ke,ke,0]),zoom:0,x:0,y:0,wrap:ju,fullyVisible:!1}},Dn=[],mi=[],Mi=H,Ji=B.reparseOverscaled?G:H;if(this._renderWorldCopies)for(var zo=1;zo<=3;zo++)Dn.push(_r(-zo)),Dn.push(_r(zo));for(Dn.push(_r(0));Dn.length>0;){var Yo=Dn.pop(),Gi=Yo.x,Fo=Yo.y,js=Yo.fullyVisible;if(!js){var za=Yo.aabb.intersects(Lt);if(za===0)continue;js=za===2}var Oa=Yo.aabb.distanceX(_t),Ul=Yo.aabb.distanceY(_t),cl=Math.max(Math.abs(Oa),Math.abs(Ul));if(Yo.zoom===Mi||cl>3+(1<=bn)mi.push({tileID:new P.OverscaledTileID(Yo.zoom===Mi?Ji:Yo.zoom,Yo.wrap,Yo.zoom,Gi,Fo),distanceSq:P.sqrLen([_t[0]-.5-Gi,_t[1]-.5-Fo])});else for(var du=0;du<4;du++){var Pu=(Gi<<1)+du%2,ec=(Fo<<1)+(du>>1);Dn.push({aabb:Yo.aabb.quadrant(du),zoom:Yo.zoom+1,x:Pu,y:ec,wrap:Yo.wrap,fullyVisible:js})}}return mi.sort(function(ju,qc){return ju.distanceSq-qc.distanceSq}).map(function(ju){return ju.tileID})},Lu.prototype.resize=function(B,H){this.width=B,this.height=H,this.pixelsToGLUnits=[2/B,-2/H],this._constrain(),this._calcMatrices()},mc.unmodified.get=function(){return this._unmodified},Lu.prototype.zoomScale=function(B){return Math.pow(2,B)},Lu.prototype.scaleZoom=function(B){return Math.log(B)/Math.LN2},Lu.prototype.project=function(B){var H=P.clamp(B.lat,-this.maxValidLatitude,this.maxValidLatitude);return new P.Point(P.mercatorXfromLng(B.lng)*this.worldSize,P.mercatorYfromLat(H)*this.worldSize)},Lu.prototype.unproject=function(B){return new P.MercatorCoordinate(B.x/this.worldSize,B.y/this.worldSize).toLngLat()},mc.point.get=function(){return this.project(this.center)},Lu.prototype.setLocationAtPoint=function(B,H){var G=this.pointCoordinate(H),re=this.pointCoordinate(this.centerPoint),ke=this.locationCoordinate(B),_t=new P.MercatorCoordinate(ke.x-(G.x-re.x),ke.y-(G.y-re.y));this.center=this.coordinateLocation(_t),this._renderWorldCopies&&(this.center=this.center.wrap())},Lu.prototype.locationPoint=function(B){return this.coordinatePoint(this.locationCoordinate(B))},Lu.prototype.pointLocation=function(B){return this.coordinateLocation(this.pointCoordinate(B))},Lu.prototype.locationCoordinate=function(B){return P.MercatorCoordinate.fromLngLat(B)},Lu.prototype.coordinateLocation=function(B){return B.toLngLat()},Lu.prototype.pointCoordinate=function(B){var H=[B.x,B.y,0,1],G=[B.x,B.y,1,1];P.transformMat4(H,H,this.pixelMatrixInverse),P.transformMat4(G,G,this.pixelMatrixInverse);var re=H[3],ke=G[3],_t=H[1]/re,Lt=G[1]/ke,bn=H[2]/re,_r=G[2]/ke,Dn=bn===_r?0:(0-bn)/(_r-bn);return new P.MercatorCoordinate(P.number(H[0]/re,G[0]/ke,Dn)/this.worldSize,P.number(_t,Lt,Dn)/this.worldSize)},Lu.prototype.coordinatePoint=function(B){var H=[B.x*this.worldSize,B.y*this.worldSize,0,1];return P.transformMat4(H,H,this.pixelMatrix),new P.Point(H[0]/H[3],H[1]/H[3])},Lu.prototype.getBounds=function(){return new P.LngLatBounds().extend(this.pointLocation(new P.Point(0,0))).extend(this.pointLocation(new P.Point(this.width,0))).extend(this.pointLocation(new P.Point(this.width,this.height))).extend(this.pointLocation(new P.Point(0,this.height)))},Lu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new P.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Lu.prototype.setMaxBounds=function(B){B?(this.lngRange=[B.getWest(),B.getEast()],this.latRange=[B.getSouth(),B.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Lu.prototype.calculatePosMatrix=function(B,H){H===void 0&&(H=!1);var G=B.key,re=H?this._alignedPosMatrixCache:this._posMatrixCache;if(re[G])return re[G];var ke=B.canonical,_t=this.worldSize/this.zoomScale(ke.z),Lt=ke.x+Math.pow(2,ke.z)*B.wrap,bn=P.identity(new Float64Array(16));return P.translate(bn,bn,[Lt*_t,ke.y*_t,0]),P.scale(bn,bn,[_t/P.EXTENT,_t/P.EXTENT,1]),P.multiply(bn,H?this.alignedProjMatrix:this.projMatrix,bn),re[G]=new Float32Array(bn),re[G]},Lu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Lu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var B,H,G,re,ke=-90,_t=90,Lt=-180,bn=180,_r=this.size,Dn=this._unmodified;if(this.latRange){var mi=this.latRange;ke=P.mercatorYfromLat(mi[1])*this.worldSize,B=(_t=P.mercatorYfromLat(mi[0])*this.worldSize)-ke<_r.y?_r.y/(_t-ke):0}if(this.lngRange){var Mi=this.lngRange;Lt=P.mercatorXfromLng(Mi[0])*this.worldSize,H=(bn=P.mercatorXfromLng(Mi[1])*this.worldSize)-Lt<_r.x?_r.x/(bn-Lt):0}var Ji=this.point,zo=Math.max(H||0,B||0);if(zo)return this.center=this.unproject(new P.Point(H?(bn+Lt)/2:Ji.x,B?(_t+ke)/2:Ji.y)),this.zoom+=this.scaleZoom(zo),this._unmodified=Dn,void(this._constraining=!1);if(this.latRange){var Yo=Ji.y,Gi=_r.y/2;Yo-Gi_t&&(re=_t-Gi)}if(this.lngRange){var Fo=Ji.x,js=_r.x/2;Fo-jsbn&&(G=bn-js)}G===void 0&&re===void 0||(this.center=this.unproject(new P.Point(G!==void 0?G:Ji.x,re!==void 0?re:Ji.y))),this._unmodified=Dn,this._constraining=!1}},Lu.prototype._calcMatrices=function(){if(this.height){var B=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var H=Math.PI/2+this._pitch,G=this._fov*(.5+B.y/this.height),re=Math.sin(G)*this.cameraToCenterDistance/Math.sin(P.clamp(Math.PI-H-G,.01,Math.PI-.01)),ke=this.point,_t=ke.x,Lt=ke.y,bn=1.01*(Math.cos(Math.PI/2-this._pitch)*re+this.cameraToCenterDistance),_r=this.height/50,Dn=new Float64Array(16);P.perspective(Dn,this._fov,this.width/this.height,_r,bn),Dn[8]=2*-B.x/this.width,Dn[9]=2*B.y/this.height,P.scale(Dn,Dn,[1,-1,1]),P.translate(Dn,Dn,[0,0,-this.cameraToCenterDistance]),P.rotateX(Dn,Dn,this._pitch),P.rotateZ(Dn,Dn,this.angle),P.translate(Dn,Dn,[-_t,-Lt,0]),this.mercatorMatrix=P.scale([],Dn,[this.worldSize,this.worldSize,this.worldSize]),P.scale(Dn,Dn,[1,1,P.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Dn,this.invProjMatrix=P.invert([],this.projMatrix);var mi=this.width%2/2,Mi=this.height%2/2,Ji=Math.cos(this.angle),zo=Math.sin(this.angle),Yo=_t-Math.round(_t)+Ji*mi+zo*Mi,Gi=Lt-Math.round(Lt)+Ji*Mi+zo*mi,Fo=new Float64Array(Dn);if(P.translate(Fo,Fo,[Yo>.5?Yo-1:Yo,Gi>.5?Gi-1:Gi,0]),this.alignedProjMatrix=Fo,Dn=P.create(),P.scale(Dn,Dn,[this.width/2,-this.height/2,1]),P.translate(Dn,Dn,[1,-1,0]),this.labelPlaneMatrix=Dn,Dn=P.create(),P.scale(Dn,Dn,[1,-1,1]),P.translate(Dn,Dn,[-1,-1,0]),P.scale(Dn,Dn,[2/this.width,2/this.height,1]),this.glCoordMatrix=Dn,this.pixelMatrix=P.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Dn=P.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Dn,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Lu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var B=this.pointCoordinate(new P.Point(0,0)),H=[B.x*this.worldSize,B.y*this.worldSize,0,1];return P.transformMat4(H,H,this.pixelMatrix)[3]/this.cameraToCenterDistance},Lu.prototype.getCameraPoint=function(){var B=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new P.Point(0,B))},Lu.prototype.getCameraQueryGeometry=function(B){var H=this.getCameraPoint();if(B.length===1)return[B[0],H];for(var G=H.x,re=H.y,ke=H.x,_t=H.y,Lt=0,bn=B;Lt=3&&!B.some(function(G){return isNaN(G)})){var H=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:H,pitch:+(B[4]||0)}),!0}return!1},Gc.prototype._updateHashUnthrottled=function(){var B=P.window.location.href.replace(/(#.+)?$/,this.getHashString());try{P.window.history.replaceState(P.window.history.state,null,B)}catch(H){}};var rh={linearity:.3,easing:P.bezier(0,0,.3,1)},Wh=P.extend({deceleration:2500,maxSpeed:1400},rh),Id=P.extend({deceleration:20,maxSpeed:1400},rh),id=P.extend({deceleration:1e3,maxSpeed:360},rh),Wd=P.extend({deceleration:1e3,maxSpeed:90},rh),Zd=function(B){this._map=B,this.clear()};function pf(B,H){(!B.duration||B.duration0&&H-B[0].time>160;)B.shift()},Zd.prototype._onMoveEnd=function(B){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var H={zoom:0,bearing:0,pitch:0,pan:new P.Point(0,0),pinchAround:void 0,around:void 0},G=0,re=this._inertiaBuffer;G=this._clickTolerance||this._map.fire(new Lh(B.type,this._map,B))},Wc.prototype.dblclick=function(B){return this._firePreventable(new Lh(B.type,this._map,B))},Wc.prototype.mouseover=function(B){this._map.fire(new Lh(B.type,this._map,B))},Wc.prototype.mouseout=function(B){this._map.fire(new Lh(B.type,this._map,B))},Wc.prototype.touchstart=function(B){return this._firePreventable(new Of(B.type,this._map,B))},Wc.prototype.touchmove=function(B){this._map.fire(new Of(B.type,this._map,B))},Wc.prototype.touchend=function(B){this._map.fire(new Of(B.type,this._map,B))},Wc.prototype.touchcancel=function(B){this._map.fire(new Of(B.type,this._map,B))},Wc.prototype._firePreventable=function(B){if(this._map.fire(B),B.defaultPrevented)return{}},Wc.prototype.isEnabled=function(){return!0},Wc.prototype.isActive=function(){return!1},Wc.prototype.enable=function(){},Wc.prototype.disable=function(){};var lh=function(B){this._map=B};lh.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},lh.prototype.mousemove=function(B){this._map.fire(new Lh(B.type,this._map,B))},lh.prototype.mousedown=function(){this._delayContextMenu=!0},lh.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Lh("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},lh.prototype.contextmenu=function(B){this._delayContextMenu?this._contextMenuEvent=B:this._map.fire(new Lh(B.type,this._map,B)),this._map.listens("contextmenu")&&B.preventDefault()},lh.prototype.isEnabled=function(){return!0},lh.prototype.isActive=function(){return!1},lh.prototype.enable=function(){},lh.prototype.disable=function(){};var wd=function(B,H){this._map=B,this._el=B.getCanvasContainer(),this._container=B.getContainer(),this._clickTolerance=H.clickTolerance||1};function wg(B,H){for(var G={},re=0;rethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=B.timeStamp),G.length===this.numTouches&&(this.centroid=function(re){for(var ke=new P.Point(0,0),_t=0,Lt=re;_t30)&&(this.aborted=!0)}}},al.prototype.touchend=function(B,H,G){if((!this.centroid||B.timeStamp-this.startTime>500)&&(this.aborted=!0),G.length===0){var re=!this.aborted&&this.centroid;if(this.reset(),re)return re}};var eo=function(B){this.singleTap=new al(B),this.numTaps=B.numTaps,this.reset()};eo.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},eo.prototype.touchstart=function(B,H,G){this.singleTap.touchstart(B,H,G)},eo.prototype.touchmove=function(B,H,G){this.singleTap.touchmove(B,H,G)},eo.prototype.touchend=function(B,H,G){var re=this.singleTap.touchend(B,H,G);if(re){var ke=B.timeStamp-this.lastTime<500,_t=!this.lastTap||this.lastTap.dist(re)<30;if(ke&&_t||this.reset(),this.count++,this.lastTime=B.timeStamp,this.lastTap=re,this.count===this.numTaps)return this.reset(),re}};var Eh=function(){this._zoomIn=new eo({numTouches:1,numTaps:2}),this._zoomOut=new eo({numTouches:2,numTaps:1}),this.reset()};Eh.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Eh.prototype.touchstart=function(B,H,G){this._zoomIn.touchstart(B,H,G),this._zoomOut.touchstart(B,H,G)},Eh.prototype.touchmove=function(B,H,G){this._zoomIn.touchmove(B,H,G),this._zoomOut.touchmove(B,H,G)},Eh.prototype.touchend=function(B,H,G){var re=this,ke=this._zoomIn.touchend(B,H,G),_t=this._zoomOut.touchend(B,H,G);return ke?(this._active=!0,B.preventDefault(),setTimeout(function(){return re.reset()},0),{cameraAnimation:function(Lt){return Lt.easeTo({duration:300,zoom:Lt.getZoom()+1,around:Lt.unproject(ke)},{originalEvent:B})}}):_t?(this._active=!0,B.preventDefault(),setTimeout(function(){return re.reset()},0),{cameraAnimation:function(Lt){return Lt.easeTo({duration:300,zoom:Lt.getZoom()-1,around:Lt.unproject(_t)},{originalEvent:B})}}):void 0},Eh.prototype.touchcancel=function(){this.reset()},Eh.prototype.enable=function(){this._enabled=!0},Eh.prototype.disable=function(){this._enabled=!1,this.reset()},Eh.prototype.isEnabled=function(){return this._enabled},Eh.prototype.isActive=function(){return this._active};var mo={0:1,2:2},vc=function(B){this.reset(),this._clickTolerance=B.clickTolerance||1};vc.prototype.blur=function(){this.reset()},vc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},vc.prototype._correctButton=function(B,H){return!1},vc.prototype._move=function(B,H){return{}},vc.prototype.mousedown=function(B,H){if(!this._lastPoint){var G=W.mouseButton(B);this._correctButton(B,G)&&(this._lastPoint=H,this._eventButton=G)}},vc.prototype.mousemoveWindow=function(B,H){var G=this._lastPoint;if(G){if(B.preventDefault(),function(re,ke){var _t=mo[ke];return re.buttons===void 0||(re.buttons&_t)!==_t}(B,this._eventButton))this.reset();else if(this._moved||!(H.dist(G)0&&(this._active=!0);var re=wg(G,H),ke=new P.Point(0,0),_t=new P.Point(0,0),Lt=0;for(var bn in re){var _r=re[bn],Dn=this._touches[bn];Dn&&(ke._add(_r),_t._add(_r.sub(Dn)),Lt++,re[bn]=_r)}if(this._touches=re,!(LtMath.abs(B.x)}var od=function(B){function H(){B.apply(this,arguments)}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.reset=function(){B.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},H.prototype._start=function(G){this._lastPoints=G,yp(G[0].sub(G[1]))&&(this._valid=!1)},H.prototype._move=function(G,re,ke){var _t=G[0].sub(this._lastPoints[0]),Lt=G[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(_t,Lt,ke.timeStamp),this._valid)return this._lastPoints=G,this._active=!0,{pitchDelta:(_t.y+Lt.y)/2*-.5}},H.prototype.gestureBeginsVertically=function(G,re,ke){if(this._valid!==void 0)return this._valid;var _t=G.mag()>=2,Lt=re.mag()>=2;if(_t||Lt){if(!_t||!Lt)return this._firstMove===void 0&&(this._firstMove=ke),ke-this._firstMove<100&&void 0;var bn=G.y>0==re.y>0;return yp(G)&&yp(re)&&bn}},H}(kf),Pp={panStep:100,bearingStep:15,pitchStep:10},Og=function(){var B=Pp;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1};function Xp(B){return B*(2-B)}Og.prototype.blur=function(){this.reset()},Og.prototype.reset=function(){this._active=!1},Og.prototype.keydown=function(B){var H=this;if(!(B.altKey||B.ctrlKey||B.metaKey)){var G=0,re=0,ke=0,_t=0,Lt=0;switch(B.keyCode){case 61:case 107:case 171:case 187:G=1;break;case 189:case 109:case 173:G=-1;break;case 37:B.shiftKey?re=-1:(B.preventDefault(),_t=-1);break;case 39:B.shiftKey?re=1:(B.preventDefault(),_t=1);break;case 38:B.shiftKey?ke=1:(B.preventDefault(),Lt=-1);break;case 40:B.shiftKey?ke=-1:(B.preventDefault(),Lt=1);break;default:return}return this._rotationDisabled&&(re=0,ke=0),{cameraAnimation:function(bn){var _r=bn.getZoom();bn.easeTo({duration:300,easeId:"keyboardHandler",easing:Xp,zoom:G?Math.round(_r)+G*(B.shiftKey?2:1):_r,bearing:bn.getBearing()+re*H._bearingStep,pitch:bn.getPitch()+ke*H._pitchStep,offset:[-_t*H._panStep,-Lt*H._panStep],center:bn.getCenter()},{originalEvent:B})}}}},Og.prototype.enable=function(){this._enabled=!0},Og.prototype.disable=function(){this._enabled=!1,this.reset()},Og.prototype.isEnabled=function(){return this._enabled},Og.prototype.isActive=function(){return this._active},Og.prototype.disableRotation=function(){this._rotationDisabled=!0},Og.prototype.enableRotation=function(){this._rotationDisabled=!1};var sd=function(B,H){this._map=B,this._el=B.getCanvasContainer(),this._handler=H,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,P.bindAll(["_onTimeout"],this)};sd.prototype.setZoomRate=function(B){this._defaultZoomRate=B},sd.prototype.setWheelZoomRate=function(B){this._wheelZoomRate=B},sd.prototype.isEnabled=function(){return!!this._enabled},sd.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},sd.prototype.isZooming=function(){return!!this._zooming},sd.prototype.enable=function(B){this.isEnabled()||(this._enabled=!0,this._aroundCenter=B&&B.around==="center")},sd.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},sd.prototype.wheel=function(B){if(this.isEnabled()){var H=B.deltaMode===P.window.WheelEvent.DOM_DELTA_LINE?40*B.deltaY:B.deltaY,G=P.browser.now(),re=G-(this._lastWheelEventTime||0);this._lastWheelEventTime=G,H!==0&&H%4.000244140625==0?this._type="wheel":H!==0&&Math.abs(H)<4?this._type="trackpad":re>400?(this._type=null,this._lastValue=H,this._timeout=setTimeout(this._onTimeout,40,B)):this._type||(this._type=Math.abs(re*H)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,H+=this._lastValue)),B.shiftKey&&H&&(H/=4),this._type&&(this._lastWheelEvent=B,this._delta-=H,this._active||this._start(B)),B.preventDefault()}},sd.prototype._onTimeout=function(B){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(B)},sd.prototype._start=function(B){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var H=W.mousePos(this._el,B);this._around=P.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(H)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},sd.prototype.renderFrame=function(){var B=this;if(this._frameId&&(this._frameId=null,this.isActive())){var H=this._map.transform;if(this._delta!==0){var G=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,re=2/(1+Math.exp(-Math.abs(this._delta*G)));this._delta<0&&re!==0&&(re=1/re);var ke=typeof this._targetZoom=="number"?H.zoomScale(this._targetZoom):H.scale;this._targetZoom=Math.min(H.maxZoom,Math.max(H.minZoom,H.scaleZoom(ke*re))),this._type==="wheel"&&(this._startZoom=H.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var _t,Lt=typeof this._targetZoom=="number"?this._targetZoom:H.zoom,bn=this._startZoom,_r=this._easing,Dn=!1;if(this._type==="wheel"&&bn&&_r){var mi=Math.min((P.browser.now()-this._lastWheelEventTime)/200,1),Mi=_r(mi);_t=P.number(bn,Lt,Mi),mi<1?this._frameId||(this._frameId=!0):Dn=!0}else _t=Lt,Dn=!0;return this._active=!0,Dn&&(this._active=!1,this._finishTimeout=setTimeout(function(){B._zooming=!1,B._handler._triggerRenderFrame(),delete B._targetZoom,delete B._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Dn,zoomDelta:_t-H.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},sd.prototype._smoothOutEasing=function(B){var H=P.ease;if(this._prevEase){var G=this._prevEase,re=(P.browser.now()-G.start)/G.duration,ke=G.easing(re+.01)-G.easing(re),_t=.27/Math.sqrt(ke*ke+1e-4)*.01,Lt=Math.sqrt(.0729-_t*_t);H=P.bezier(_t,Lt,.25,1)}return this._prevEase={start:P.browser.now(),duration:B,easing:H},H},sd.prototype.blur=function(){this.reset()},sd.prototype.reset=function(){this._active=!1};var Yp=function(B,H){this._clickZoom=B,this._tapZoom=H};Yp.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Yp.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Yp.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Yp.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Kh=function(){this.reset()};Kh.prototype.reset=function(){this._active=!1},Kh.prototype.blur=function(){this.reset()},Kh.prototype.dblclick=function(B,H){return B.preventDefault(),{cameraAnimation:function(G){G.easeTo({duration:300,zoom:G.getZoom()+(B.shiftKey?-1:1),around:G.unproject(H)},{originalEvent:B})}}},Kh.prototype.enable=function(){this._enabled=!0},Kh.prototype.disable=function(){this._enabled=!1,this.reset()},Kh.prototype.isEnabled=function(){return this._enabled},Kh.prototype.isActive=function(){return this._active};var Qf=function(){this._tap=new eo({numTouches:1,numTaps:1}),this.reset()};Qf.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qf.prototype.touchstart=function(B,H,G){this._swipePoint||(this._tapTime&&B.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?G.length>0&&(this._swipePoint=H[0],this._swipeTouch=G[0].identifier):this._tap.touchstart(B,H,G))},Qf.prototype.touchmove=function(B,H,G){if(this._tapTime){if(this._swipePoint){if(G[0].identifier!==this._swipeTouch)return;var re=H[0],ke=re.y-this._swipePoint.y;return this._swipePoint=re,B.preventDefault(),this._active=!0,{zoomDelta:ke/128}}}else this._tap.touchmove(B,H,G)},Qf.prototype.touchend=function(B,H,G){this._tapTime?this._swipePoint&&G.length===0&&this.reset():this._tap.touchend(B,H,G)&&(this._tapTime=B.timeStamp)},Qf.prototype.touchcancel=function(){this.reset()},Qf.prototype.enable=function(){this._enabled=!0},Qf.prototype.disable=function(){this._enabled=!1,this.reset()},Qf.prototype.isEnabled=function(){return this._enabled},Qf.prototype.isActive=function(){return this._active};var Ep=function(B,H,G){this._el=B,this._mousePan=H,this._touchPan=G};Ep.prototype.enable=function(B){this._inertiaOptions=B||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Ep.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Ep.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Ep.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Au=function(B,H,G){this._pitchWithRotate=B.pitchWithRotate,this._mouseRotate=H,this._mousePitch=G};Au.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Au.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Au.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Au.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Bp=function(B,H,G,re){this._el=B,this._touchZoom=H,this._touchRotate=G,this._tapDragZoom=re,this._rotationDisabled=!1,this._enabled=!0};Bp.prototype.enable=function(B){this._touchZoom.enable(B),this._rotationDisabled||this._touchRotate.enable(B),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Bp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Bp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Bp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Bp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Bp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var zp=function(B){return B.zoom||B.drag||B.pitch||B.rotate},Nf=function(B){function H(){B.apply(this,arguments)}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H}(P.Event);function zh(B){return B.panDelta&&B.panDelta.mag()||B.zoomDelta||B.bearingDelta||B.pitchDelta}var Xh=function(B,H){this._map=B,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Zd(B),this._bearingSnap=H.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(H),P.bindAll(["handleEvent","handleWindowEvent"],this);var G=this._el;this._listeners=[[G,"touchstart",{passive:!0}],[G,"touchmove",{passive:!1}],[G,"touchend",void 0],[G,"touchcancel",void 0],[G,"mousedown",void 0],[G,"mousemove",void 0],[G,"mouseup",void 0],[P.window.document,"mousemove",{capture:!0}],[P.window.document,"mouseup",void 0],[G,"mouseover",void 0],[G,"mouseout",void 0],[G,"dblclick",void 0],[G,"click",void 0],[G,"keydown",{capture:!1}],[G,"keyup",void 0],[G,"wheel",{passive:!1}],[G,"contextmenu",void 0],[P.window,"blur",void 0]];for(var re=0,ke=this._listeners;reLt?Math.min(2,du):Math.max(.5,du),vh=Math.pow(qc,1-ec),td=_t.unproject(Ul.add(cl.mult(ec*vh)).mult(ju));_t.setLocationAtPoint(_t.renderWorldCopies?td.wrap():td,Gi)}ke._fireMoveEvents(re)},function(ec){ke._afterEase(re,ec)},G),this},H.prototype._prepareEase=function(G,re,ke){ke===void 0&&(ke={}),this._moving=!0,re||ke.moving||this.fire(new P.Event("movestart",G)),this._zooming&&!ke.zooming&&this.fire(new P.Event("zoomstart",G)),this._rotating&&!ke.rotating&&this.fire(new P.Event("rotatestart",G)),this._pitching&&!ke.pitching&&this.fire(new P.Event("pitchstart",G))},H.prototype._fireMoveEvents=function(G){this.fire(new P.Event("move",G)),this._zooming&&this.fire(new P.Event("zoom",G)),this._rotating&&this.fire(new P.Event("rotate",G)),this._pitching&&this.fire(new P.Event("pitch",G))},H.prototype._afterEase=function(G,re){if(!this._easeId||!re||this._easeId!==re){delete this._easeId;var ke=this._zooming,_t=this._rotating,Lt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ke&&this.fire(new P.Event("zoomend",G)),_t&&this.fire(new P.Event("rotateend",G)),Lt&&this.fire(new P.Event("pitchend",G)),this.fire(new P.Event("moveend",G))}},H.prototype.flyTo=function(G,re){var ke=this;if(!G.essential&&P.browser.prefersReducedMotion){var _t=P.pick(G,["center","zoom","bearing","pitch","around"]);return this.jumpTo(_t,re)}this.stop(),G=P.extend({offset:[0,0],speed:1.2,curve:1.42,easing:P.ease},G);var Lt=this.transform,bn=this.getZoom(),_r=this.getBearing(),Dn=this.getPitch(),mi=this.getPadding(),Mi="zoom"in G?P.clamp(+G.zoom,Lt.minZoom,Lt.maxZoom):bn,Ji="bearing"in G?this._normalizeBearing(G.bearing,_r):_r,zo="pitch"in G?+G.pitch:Dn,Yo="padding"in G?G.padding:Lt.padding,Gi=Lt.zoomScale(Mi-bn),Fo=P.Point.convert(G.offset),js=Lt.centerPoint.add(Fo),za=Lt.pointLocation(js),Oa=P.LngLat.convert(G.center||za);this._normalizeCenter(Oa);var Ul=Lt.project(za),cl=Lt.project(Oa).sub(Ul),du=G.curve,Pu=Math.max(Lt.width,Lt.height),ec=Pu/Gi,ju=cl.mag();if("minZoom"in G){var qc=P.clamp(Math.min(G.minZoom,bn,Mi),Lt.minZoom,Lt.maxZoom),vh=Pu/Lt.zoomScale(qc-bn);du=Math.sqrt(vh/ju*2)}var td=du*du;function Gh(qd){var _d=(ec*ec-Pu*Pu+(qd?-1:1)*td*td*ju*ju)/(2*(qd?ec:Pu)*td*ju);return Math.log(Math.sqrt(_d*_d+1)-_d)}function Yd(qd){return(Math.exp(qd)-Math.exp(-qd))/2}function Qc(qd){return(Math.exp(qd)+Math.exp(-qd))/2}var wc=Gh(0),bf=function(qd){return Qc(wc)/Qc(wc+du*qd)},Jd=function(qd){return Pu*((Qc(wc)*(Yd(_d=wc+du*qd)/Qc(_d))-Yd(wc))/td)/ju;var _d},nd=(Gh(1)-wc)/du;if(Math.abs(ju)<1e-6||!isFinite(nd)){if(Math.abs(Pu-ec)<1e-6)return this.easeTo(G,re);var gf=ecG.maxDuration&&(G.duration=0),this._zooming=!0,this._rotating=_r!==Ji,this._pitching=zo!==Dn,this._padding=!Lt.isPaddingEqual(Yo),this._prepareEase(re,!1),this._ease(function(qd){var _d=qd*nd,jp=1/bf(_d);Lt.zoom=qd===1?Mi:bn+Lt.scaleZoom(jp),ke._rotating&&(Lt.bearing=P.number(_r,Ji,qd)),ke._pitching&&(Lt.pitch=P.number(Dn,zo,qd)),ke._padding&&(Lt.interpolatePadding(mi,Yo,qd),js=Lt.centerPoint.add(Fo));var wp=qd===1?Oa:Lt.unproject(Ul.add(cl.mult(Jd(_d))).mult(jp));Lt.setLocationAtPoint(Lt.renderWorldCopies?wp.wrap():wp,js),ke._fireMoveEvents(re)},function(){return ke._afterEase(re)},G),this},H.prototype.isEasing=function(){return!!this._easeFrameId},H.prototype.stop=function(){return this._stop()},H.prototype._stop=function(G,re){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ke=this._onEaseEnd;delete this._onEaseEnd,ke.call(this,re)}if(!G){var _t=this.handlers;_t&&_t.stop(!1)}return this},H.prototype._ease=function(G,re,ke){ke.animate===!1||ke.duration===0?(G(1),re()):(this._easeStart=P.browser.now(),this._easeOptions=ke,this._onEaseFrame=G,this._onEaseEnd=re,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},H.prototype._renderFrameCallback=function(){var G=Math.min((P.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(G)),G<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},H.prototype._normalizeBearing=function(G,re){G=P.wrap(G,-180,180);var ke=Math.abs(G-re);return Math.abs(G-360-re)180?-360:ke<-180?360:0}},H}(P.Evented),Hh=function(B){B===void 0&&(B={}),this.options=B,P.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Hh.prototype.getDefaultPosition=function(){return"bottom-right"},Hh.prototype.onAdd=function(B){var H=this.options&&this.options.compact;return this._map=B,this._container=W.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=W.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=W.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),H&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),H===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Hh.prototype.onRemove=function(){W.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Hh.prototype._setElementTitle=function(B,H){var G=this._map._getUIString("AttributionControl."+H);B.title=G,B.setAttribute("aria-label",G)},Hh.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Hh.prototype._updateEditLink=function(){var B=this._editLink;B||(B=this._editLink=this._container.querySelector(".mapbox-improve-map"));var H=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||P.config.ACCESS_TOKEN}];if(B){var G=H.reduce(function(re,ke,_t){return ke.value&&(re+=ke.key+"="+ke.value+(_t=0)return!1;return!0})).join(" | ");Lt!==this._attribHTML&&(this._attribHTML=Lt,B.length?(this._innerContainer.innerHTML=Lt,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Hh.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var _p=function(){P.bindAll(["_updateLogo"],this),P.bindAll(["_updateCompact"],this)};_p.prototype.onAdd=function(B){this._map=B,this._container=W.create("div","mapboxgl-ctrl");var H=W.create("a","mapboxgl-ctrl-logo");return H.target="_blank",H.rel="noopener nofollow",H.href="https://www.mapbox.com/",H.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),H.setAttribute("rel","noopener nofollow"),this._container.appendChild(H),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_p.prototype.onRemove=function(){W.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_p.prototype.getDefaultPosition=function(){return"bottom-left"},_p.prototype._updateLogo=function(B){B&&B.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},_p.prototype._logoRequired=function(){if(this._map.style){var B=this._map.style.sourceCaches;for(var H in B)if(B[H].getSource().mapbox_logo)return!0;return!1}},_p.prototype._updateCompact=function(){var B=this._container.children;if(B.length){var H=B[0];this._map.getCanvasContainer().offsetWidth<250?H.classList.add("mapboxgl-compact"):H.classList.remove("mapboxgl-compact")}};var Jf=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Jf.prototype.add=function(B){var H=++this._id;return this._queue.push({callback:B,id:H,cancelled:!1}),H},Jf.prototype.remove=function(B){for(var H=this._currentlyRunning,G=0,re=H?this._queue.concat(H):this._queue;Gre.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(re.minPitch!=null&&re.maxPitch!=null&&re.minPitch>re.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(re.minPitch!=null&&re.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(re.maxPitch!=null&&re.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var _t=new Lu(re.minZoom,re.maxZoom,re.minPitch,re.maxPitch,re.renderWorldCopies);if(B.call(this,_t,re),this._interactive=re.interactive,this._maxTileCacheSize=re.maxTileCacheSize,this._failIfMajorPerformanceCaveat=re.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=re.preserveDrawingBuffer,this._antialias=re.antialias,this._trackResize=re.trackResize,this._bearingSnap=re.bearingSnap,this._refreshExpiredTiles=re.refreshExpiredTiles,this._fadeDuration=re.fadeDuration,this._crossSourceCollisions=re.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=re.collectResourceTiming,this._renderTaskQueue=new Jf,this._controls=[],this._mapId=P.uniqueId(),this._locale=P.extend({},Up,re.locale),this._clickTolerance=re.clickTolerance,this._requestManager=new P.RequestManager(re.transformRequest,re.accessToken),typeof re.container=="string"){if(this._container=P.window.document.getElementById(re.container),!this._container)throw new Error("Container '"+re.container+"' not found.")}else{if(!(re.container instanceof _f))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=re.container}if(re.maxBounds&&this.setMaxBounds(re.maxBounds),P.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ke._update(!1)}),this.on("moveend",function(){return ke._update(!1)}),this.on("zoom",function(){return ke._update(!0)}),P.window!==void 0&&(P.window.addEventListener("online",this._onWindowOnline,!1),P.window.addEventListener("resize",this._onWindowResize,!1),P.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Xh(this,re),this._hash=re.hash&&new Gc(typeof re.hash=="string"&&re.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:re.center,zoom:re.zoom,bearing:re.bearing,pitch:re.pitch}),re.bounds&&(this.resize(),this.fitBounds(re.bounds,P.extend({},re.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=re.localIdeographFontFamily,re.style&&this.setStyle(re.style,{localIdeographFontFamily:re.localIdeographFontFamily}),re.attributionControl&&this.addControl(new Hh({customAttribution:re.customAttribution})),this.addControl(new _p,re.logoPosition),this.on("style.load",function(){ke.transform.unmodified&&ke.jumpTo(ke.style.stylesheet)}),this.on("data",function(Lt){ke._update(Lt.dataType==="style"),ke.fire(new P.Event(Lt.dataType+"data",Lt))}),this.on("dataloading",function(Lt){ke.fire(new P.Event(Lt.dataType+"dataloading",Lt))})}B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H;var G={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return H.prototype._getMapId=function(){return this._mapId},H.prototype.addControl=function(re,ke){if(ke===void 0&&(ke=re.getDefaultPosition?re.getDefaultPosition():"top-right"),!re||!re.onAdd)return this.fire(new P.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var _t=re.onAdd(this);this._controls.push(re);var Lt=this._controlPositions[ke];return ke.indexOf("bottom")!==-1?Lt.insertBefore(_t,Lt.firstChild):Lt.appendChild(_t),this},H.prototype.removeControl=function(re){if(!re||!re.onRemove)return this.fire(new P.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ke=this._controls.indexOf(re);return ke>-1&&this._controls.splice(ke,1),re.onRemove(this),this},H.prototype.hasControl=function(re){return this._controls.indexOf(re)>-1},H.prototype.resize=function(re){var ke=this._containerDimensions(),_t=ke[0],Lt=ke[1];if(_t===this.transform.width&&Lt===this.transform.height)return this;this._resizeCanvas(_t,Lt),this.transform.resize(_t,Lt),this.painter.resize(_t,Lt);var bn=!this._moving;return bn&&this.fire(new P.Event("movestart",re)).fire(new P.Event("move",re)),this.fire(new P.Event("resize",re)),bn&&this.fire(new P.Event("moveend",re)),this},H.prototype.getBounds=function(){return this.transform.getBounds()},H.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},H.prototype.setMaxBounds=function(re){return this.transform.setMaxBounds(P.LngLatBounds.convert(re)),this._update()},H.prototype.setMinZoom=function(re){if((re=re==null?-2:re)>=-2&&re<=this.transform.maxZoom)return this.transform.minZoom=re,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=re,this._update(),this.getZoom()>re&&this.setZoom(re),this;throw new Error("maxZoom must be greater than the current minZoom")},H.prototype.getMaxZoom=function(){return this.transform.maxZoom},H.prototype.setMinPitch=function(re){if((re=re==null?0:re)<0)throw new Error("minPitch must be greater than or equal to 0");if(re>=0&&re<=this.transform.maxPitch)return this.transform.minPitch=re,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(re>=this.transform.minPitch)return this.transform.maxPitch=re,this._update(),this.getPitch()>re&&this.setPitch(re),this;throw new Error("maxPitch must be greater than the current minPitch")},H.prototype.getMaxPitch=function(){return this.transform.maxPitch},H.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},H.prototype.setRenderWorldCopies=function(re){return this.transform.renderWorldCopies=re,this._update()},H.prototype.project=function(re){return this.transform.locationPoint(P.LngLat.convert(re))},H.prototype.unproject=function(re){return this.transform.pointLocation(P.Point.convert(re))},H.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},H.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},H.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},H.prototype._createDelegatedListener=function(re,ke,_t){var Lt,bn=this;if(re==="mouseenter"||re==="mouseover"){var _r=!1;return{layer:ke,listener:_t,delegates:{mousemove:function(mi){var Mi=bn.getLayer(ke)?bn.queryRenderedFeatures(mi.point,{layers:[ke]}):[];Mi.length?_r||(_r=!0,_t.call(bn,new Lh(re,bn,mi.originalEvent,{features:Mi}))):_r=!1},mouseout:function(){_r=!1}}}}if(re==="mouseleave"||re==="mouseout"){var Dn=!1;return{layer:ke,listener:_t,delegates:{mousemove:function(mi){(bn.getLayer(ke)?bn.queryRenderedFeatures(mi.point,{layers:[ke]}):[]).length?Dn=!0:Dn&&(Dn=!1,_t.call(bn,new Lh(re,bn,mi.originalEvent)))},mouseout:function(mi){Dn&&(Dn=!1,_t.call(bn,new Lh(re,bn,mi.originalEvent)))}}}}return{layer:ke,listener:_t,delegates:(Lt={},Lt[re]=function(mi){var Mi=bn.getLayer(ke)?bn.queryRenderedFeatures(mi.point,{layers:[ke]}):[];Mi.length&&(mi.features=Mi,_t.call(bn,mi),delete mi.features)},Lt)}},H.prototype.on=function(re,ke,_t){if(_t===void 0)return B.prototype.on.call(this,re,ke);var Lt=this._createDelegatedListener(re,ke,_t);for(var bn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[re]=this._delegatedListeners[re]||[],this._delegatedListeners[re].push(Lt),Lt.delegates)this.on(bn,Lt.delegates[bn]);return this},H.prototype.once=function(re,ke,_t){if(_t===void 0)return B.prototype.once.call(this,re,ke);var Lt=this._createDelegatedListener(re,ke,_t);for(var bn in Lt.delegates)this.once(bn,Lt.delegates[bn]);return this},H.prototype.off=function(re,ke,_t){var Lt=this;return _t===void 0?B.prototype.off.call(this,re,ke):(this._delegatedListeners&&this._delegatedListeners[re]&&function(bn){for(var _r=bn[re],Dn=0;Dn<_r.length;Dn++){var mi=_r[Dn];if(mi.layer===ke&&mi.listener===_t){for(var Mi in mi.delegates)Lt.off(Mi,mi.delegates[Mi]);return _r.splice(Dn,1),Lt}}}(this._delegatedListeners),this)},H.prototype.queryRenderedFeatures=function(re,ke){if(!this.style)return[];var _t;if(ke!==void 0||re===void 0||re instanceof P.Point||Array.isArray(re)||(ke=re,re=void 0),ke=ke||{},(re=re||[[0,0],[this.transform.width,this.transform.height]])instanceof P.Point||typeof re[0]=="number")_t=[P.Point.convert(re)];else{var Lt=P.Point.convert(re[0]),bn=P.Point.convert(re[1]);_t=[Lt,new P.Point(bn.x,Lt.y),bn,new P.Point(Lt.x,bn.y),Lt]}return this.style.queryRenderedFeatures(_t,ke,this.transform)},H.prototype.querySourceFeatures=function(re,ke){return this.style.querySourceFeatures(re,ke)},H.prototype.setStyle=function(re,ke){return(ke=P.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},ke)).diff!==!1&&ke.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&re?(this._diffStyle(re,ke),this):(this._localIdeographFontFamily=ke.localIdeographFontFamily,this._updateStyle(re,ke))},H.prototype._getUIString=function(re){var ke=this._locale[re];if(ke==null)throw new Error("Missing UI string '"+re+"'");return ke},H.prototype._updateStyle=function(re,ke){return this.style&&(this.style.setEventedParent(null),this.style._remove()),re?(this.style=new Al(this,ke||{}),this.style.setEventedParent(this,{style:this.style}),typeof re=="string"?this.style.loadURL(re):this.style.loadJSON(re),this):(delete this.style,this)},H.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Al(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},H.prototype._diffStyle=function(re,ke){var _t=this;if(typeof re=="string"){var Lt=this._requestManager.normalizeStyleURL(re),bn=this._requestManager.transformRequest(Lt,P.ResourceType.Style);P.getJSON(bn,function(_r,Dn){_r?_t.fire(new P.ErrorEvent(_r)):Dn&&_t._updateDiff(Dn,ke)})}else typeof re=="object"&&this._updateDiff(re,ke)},H.prototype._updateDiff=function(re,ke){try{this.style.setState(re)&&this._update(!0)}catch(_t){P.warnOnce("Unable to perform style diff: "+(_t.message||_t.error||_t)+". Rebuilding the style from scratch."),this._updateStyle(re,ke)}},H.prototype.getStyle=function(){if(this.style)return this.style.serialize()},H.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():P.warnOnce("There is no style added to the map.")},H.prototype.addSource=function(re,ke){return this._lazyInitEmptyStyle(),this.style.addSource(re,ke),this._update(!0)},H.prototype.isSourceLoaded=function(re){var ke=this.style&&this.style.sourceCaches[re];if(ke!==void 0)return ke.loaded();this.fire(new P.ErrorEvent(new Error("There is no source with ID '"+re+"'")))},H.prototype.areTilesLoaded=function(){var re=this.style&&this.style.sourceCaches;for(var ke in re){var _t=re[ke]._tiles;for(var Lt in _t){var bn=_t[Lt];if(bn.state!=="loaded"&&bn.state!=="errored")return!1}}return!0},H.prototype.addSourceType=function(re,ke,_t){return this._lazyInitEmptyStyle(),this.style.addSourceType(re,ke,_t)},H.prototype.removeSource=function(re){return this.style.removeSource(re),this._update(!0)},H.prototype.getSource=function(re){return this.style.getSource(re)},H.prototype.addImage=function(re,ke,_t){_t===void 0&&(_t={});var Lt=_t.pixelRatio;Lt===void 0&&(Lt=1);var bn=_t.sdf;bn===void 0&&(bn=!1);var _r=_t.stretchX,Dn=_t.stretchY,mi=_t.content;if(this._lazyInitEmptyStyle(),ke instanceof fh||jd&&ke instanceof jd){var Mi=P.browser.getImageData(ke);this.style.addImage(re,{data:new P.RGBAImage({width:Mi.width,height:Mi.height},Mi.data),pixelRatio:Lt,stretchX:_r,stretchY:Dn,content:mi,sdf:bn,version:0})}else{if(ke.width===void 0||ke.height===void 0)return this.fire(new P.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var Ji=ke;this.style.addImage(re,{data:new P.RGBAImage({width:ke.width,height:ke.height},new Uint8Array(ke.data)),pixelRatio:Lt,stretchX:_r,stretchY:Dn,content:mi,sdf:bn,version:0,userImage:Ji}),Ji.onAdd&&Ji.onAdd(this,re)}},H.prototype.updateImage=function(re,ke){var _t=this.style.getImage(re);if(!_t)return this.fire(new P.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var Lt=ke instanceof fh||jd&&ke instanceof jd?P.browser.getImageData(ke):ke,bn=Lt.width,_r=Lt.height,Dn=Lt.data;return bn===void 0||_r===void 0?this.fire(new P.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):bn!==_t.data.width||_r!==_t.data.height?this.fire(new P.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(_t.data.replace(Dn,!(ke instanceof fh||jd&&ke instanceof jd)),void this.style.updateImage(re,_t))},H.prototype.hasImage=function(re){return re?!!this.style.getImage(re):(this.fire(new P.ErrorEvent(new Error("Missing required image id"))),!1)},H.prototype.removeImage=function(re){this.style.removeImage(re)},H.prototype.loadImage=function(re,ke){P.getImage(this._requestManager.transformRequest(re,P.ResourceType.Image),ke)},H.prototype.listImages=function(){return this.style.listImages()},H.prototype.addLayer=function(re,ke){return this._lazyInitEmptyStyle(),this.style.addLayer(re,ke),this._update(!0)},H.prototype.moveLayer=function(re,ke){return this.style.moveLayer(re,ke),this._update(!0)},H.prototype.removeLayer=function(re){return this.style.removeLayer(re),this._update(!0)},H.prototype.getLayer=function(re){return this.style.getLayer(re)},H.prototype.setLayerZoomRange=function(re,ke,_t){return this.style.setLayerZoomRange(re,ke,_t),this._update(!0)},H.prototype.setFilter=function(re,ke,_t){return _t===void 0&&(_t={}),this.style.setFilter(re,ke,_t),this._update(!0)},H.prototype.getFilter=function(re){return this.style.getFilter(re)},H.prototype.setPaintProperty=function(re,ke,_t,Lt){return Lt===void 0&&(Lt={}),this.style.setPaintProperty(re,ke,_t,Lt),this._update(!0)},H.prototype.getPaintProperty=function(re,ke){return this.style.getPaintProperty(re,ke)},H.prototype.setLayoutProperty=function(re,ke,_t,Lt){return Lt===void 0&&(Lt={}),this.style.setLayoutProperty(re,ke,_t,Lt),this._update(!0)},H.prototype.getLayoutProperty=function(re,ke){return this.style.getLayoutProperty(re,ke)},H.prototype.setLight=function(re,ke){return ke===void 0&&(ke={}),this._lazyInitEmptyStyle(),this.style.setLight(re,ke),this._update(!0)},H.prototype.getLight=function(){return this.style.getLight()},H.prototype.setFeatureState=function(re,ke){return this.style.setFeatureState(re,ke),this._update()},H.prototype.removeFeatureState=function(re,ke){return this.style.removeFeatureState(re,ke),this._update()},H.prototype.getFeatureState=function(re){return this.style.getFeatureState(re)},H.prototype.getContainer=function(){return this._container},H.prototype.getCanvasContainer=function(){return this._canvasContainer},H.prototype.getCanvas=function(){return this._canvas},H.prototype._containerDimensions=function(){var re=0,ke=0;return this._container&&(re=this._container.clientWidth||400,ke=this._container.clientHeight||300),[re,ke]},H.prototype._detectMissingCSS=function(){P.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&P.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},H.prototype._setupContainer=function(){var re=this._container;re.classList.add("mapboxgl-map"),(this._missingCSSCanary=W.create("div","mapboxgl-canary",re)).style.visibility="hidden",this._detectMissingCSS();var ke=this._canvasContainer=W.create("div","mapboxgl-canvas-container",re);this._interactive&&ke.classList.add("mapboxgl-interactive"),this._canvas=W.create("canvas","mapboxgl-canvas",ke),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var _t=this._containerDimensions();this._resizeCanvas(_t[0],_t[1]);var Lt=this._controlContainer=W.create("div","mapboxgl-control-container",re),bn=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(_r){bn[_r]=W.create("div","mapboxgl-ctrl-"+_r,Lt)}),this._container.addEventListener("scroll",this._onMapScroll,!1)},H.prototype._resizeCanvas=function(re,ke){var _t=P.browser.devicePixelRatio||1;this._canvas.width=_t*re,this._canvas.height=_t*ke,this._canvas.style.width=re+"px",this._canvas.style.height=ke+"px"},H.prototype._setupPainter=function(){var re=P.extend({},A.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),ke=this._canvas.getContext("webgl",re)||this._canvas.getContext("experimental-webgl",re);ke?(this.painter=new ws(ke,this.transform),P.webpSupported.testSupport(ke)):this.fire(new P.ErrorEvent(new Error("Failed to initialize WebGL")))},H.prototype._contextLost=function(re){re.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new P.Event("webglcontextlost",{originalEvent:re}))},H.prototype._contextRestored=function(re){this._setupPainter(),this.resize(),this._update(),this.fire(new P.Event("webglcontextrestored",{originalEvent:re}))},H.prototype._onMapScroll=function(re){if(re.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},H.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},H.prototype._update=function(re){return this.style?(this._styleDirty=this._styleDirty||re,this._sourcesDirty=!0,this.triggerRepaint(),this):this},H.prototype._requestRenderFrame=function(re){return this._update(),this._renderTaskQueue.add(re)},H.prototype._cancelRenderFrame=function(re){this._renderTaskQueue.remove(re)},H.prototype._render=function(re){var ke,_t=this,Lt=0,bn=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(ke=bn.createQueryEXT(),bn.beginQueryEXT(bn.TIME_ELAPSED_EXT,ke),Lt=P.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(re),!this._removed){var _r=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var Dn=this.transform.zoom,mi=P.browser.now();this.style.zoomHistory.update(Dn,mi);var Mi=new P.EvaluationParameters(Dn,{now:mi,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ji=Mi.crossFadingFactor();Ji===1&&Ji===this._crossFadingFactor||(_r=!0,this._crossFadingFactor=Ji),this.style.update(Mi)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new P.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new P.Event("load"))),this.style&&(this.style.hasTransitions()||_r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var zo=P.browser.now()-Lt;bn.endQueryEXT(bn.TIME_ELAPSED_EXT,ke),setTimeout(function(){var Fo=bn.getQueryObjectEXT(ke,bn.QUERY_RESULT_EXT)/1e6;bn.deleteQueryEXT(ke),_t.fire(new P.Event("gpu-timing-frame",{cpuTime:zo,gpuTime:Fo}))},50)}if(this.listens("gpu-timing-layer")){var Yo=this.painter.collectGpuTimers();setTimeout(function(){var Fo=_t.painter.queryGpuTimers(Yo);_t.fire(new P.Event("gpu-timing-layer",{layerTimes:Fo}))},50)}var Gi=this._sourcesDirty||this._styleDirty||this._placementDirty;return Gi||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new P.Event("idle")),!this._loaded||this._fullyLoaded||Gi||(this._fullyLoaded=!0),this}},H.prototype.remove=function(){this._hash&&this._hash.remove();for(var re=0,ke=this._controls;re180;){var Lt=G.locationPoint(B);if(Lt.x>=0&&Lt.y>=0&&Lt.x<=G.width&&Lt.y<=G.height)break;B.lng>G.center.lng?B.lng-=360:B.lng+=360}return B}Hd.prototype.down=function(B,H){this.mouseRotate.mousedown(B,H),this.mousePitch&&this.mousePitch.mousedown(B,H),W.disableDrag()},Hd.prototype.move=function(B,H){var G=this.map,re=this.mouseRotate.mousemoveWindow(B,H);if(re&&re.bearingDelta&&G.setBearing(G.getBearing()+re.bearingDelta),this.mousePitch){var ke=this.mousePitch.mousemoveWindow(B,H);ke&&ke.pitchDelta&&G.setPitch(G.getPitch()+ke.pitchDelta)}},Hd.prototype.off=function(){var B=this.element;W.removeEventListener(B,"mousedown",this.mousedown),W.removeEventListener(B,"touchstart",this.touchstart,{passive:!1}),W.removeEventListener(B,"touchmove",this.touchmove),W.removeEventListener(B,"touchend",this.touchend),W.removeEventListener(B,"touchcancel",this.reset),this.offTemp()},Hd.prototype.offTemp=function(){W.enableDrag(),W.removeEventListener(P.window,"mousemove",this.mousemove),W.removeEventListener(P.window,"mouseup",this.mouseup)},Hd.prototype.mousedown=function(B){this.down(P.extend({},B,{ctrlKey:!0,preventDefault:function(){return B.preventDefault()}}),W.mousePos(this.element,B)),W.addEventListener(P.window,"mousemove",this.mousemove),W.addEventListener(P.window,"mouseup",this.mouseup)},Hd.prototype.mousemove=function(B){this.move(B,W.mousePos(this.element,B))},Hd.prototype.mouseup=function(B){this.mouseRotate.mouseupWindow(B),this.mousePitch&&this.mousePitch.mouseupWindow(B),this.offTemp()},Hd.prototype.touchstart=function(B){B.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=W.touchPos(this.element,B.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return B.preventDefault()}},this._startPos))},Hd.prototype.touchmove=function(B){B.targetTouches.length!==1?this.reset():(this._lastPos=W.touchPos(this.element,B.targetTouches)[0],this.move({preventDefault:function(){return B.preventDefault()}},this._lastPos))},Hd.prototype.touchend=function(B){B.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=re}this._isDragging&&(this._pos=G.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new P.Event("dragstart"))),this.fire(new P.Event("drag")))},H.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new P.Event("dragend")),this._state="inactive"},H.prototype._addDragHandler=function(G){this._element.contains(G.originalEvent.target)&&(G.preventDefault(),this._positionDelta=G.point.sub(this._pos).add(this._offset),this._pointerdownPos=G.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},H.prototype.setDraggable=function(G){return this._draggable=!!G,this._map&&(G?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},H.prototype.isDraggable=function(){return this._draggable},H.prototype.setRotation=function(G){return this._rotation=G||0,this._update(),this},H.prototype.getRotation=function(){return this._rotation},H.prototype.setRotationAlignment=function(G){return this._rotationAlignment=G||"auto",this._update(),this},H.prototype.getRotationAlignment=function(){return this._rotationAlignment},H.prototype.setPitchAlignment=function(G){return this._pitchAlignment=G&&G!=="auto"?G:this._rotationAlignment,this._update(),this},H.prototype.getPitchAlignment=function(){return this._pitchAlignment},H}(P.Evented),Ke={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},_n=0,lr=!1,ye=function(B){function H(G){B.call(this),this.options=P.extend({},Ke,G),P.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.onAdd=function(G){var re;return this._map=G,this._container=W.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),re=this._setupUI,te!==void 0?re(te):P.window.navigator.permissions!==void 0?P.window.navigator.permissions.query({name:"geolocation"}).then(function(ke){re(te=ke.state!=="denied")}):re(te=!!P.window.navigator.geolocation),this._container},H.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(P.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),W.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,_n=0,lr=!1},H.prototype._isOutOfMapMaxBounds=function(G){var re=this._map.getMaxBounds(),ke=G.coords;return re&&(ke.longitudere.getEast()||ke.latitudere.getNorth())},H.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},H.prototype._onSuccess=function(G){if(this._map){if(this._isOutOfMapMaxBounds(G))return this._setErrorState(),this.fire(new P.Event("outofmaxbounds",G)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=G,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(G),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(G),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new P.Event("geolocate",G)),this._finish()}},H.prototype._updateCamera=function(G){var re=new P.LngLat(G.coords.longitude,G.coords.latitude),ke=G.coords.accuracy,_t=this._map.getBearing(),Lt=P.extend({bearing:_t},this.options.fitBoundsOptions);this._map.fitBounds(re.toBounds(ke),Lt,{geolocateSource:!0})},H.prototype._updateMarker=function(G){if(G){var re=new P.LngLat(G.coords.longitude,G.coords.latitude);this._accuracyCircleMarker.setLngLat(re).addTo(this._map),this._userLocationDotMarker.setLngLat(re).addTo(this._map),this._accuracy=G.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},H.prototype._updateCircleRadius=function(){var G=this._map._container.clientHeight/2,re=this._map.unproject([0,G]),ke=this._map.unproject([1,G]),_t=re.distanceTo(ke),Lt=Math.ceil(2*this._accuracy/_t);this._circleElement.style.width=Lt+"px",this._circleElement.style.height=Lt+"px"},H.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},H.prototype._onError=function(G){if(this._map){if(this.options.trackUserLocation)if(G.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var re=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=re,this._geolocateButton.setAttribute("aria-label",re),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(G.code===3&&lr)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new P.Event("error",G)),this._finish()}},H.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},H.prototype._setupUI=function(G){var re=this;if(this._container.addEventListener("contextmenu",function(Lt){return Lt.preventDefault()}),this._geolocateButton=W.create("button","mapboxgl-ctrl-geolocate",this._container),W.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",G===!1){P.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ke=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ke,this._geolocateButton.setAttribute("aria-label",ke)}else{var _t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=_t,this._geolocateButton.setAttribute("aria-label",_t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=W.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ue(this._dotElement),this._circleElement=W.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ue({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Lt){Lt.geolocateSource||re._watchState!=="ACTIVE_LOCK"||Lt.originalEvent&&Lt.originalEvent.type==="resize"||(re._watchState="BACKGROUND",re._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),re._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),re.fire(new P.Event("trackuserlocationend")))})},H.prototype.trigger=function(){if(!this._setup)return P.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new P.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":_n--,lr=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new P.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new P.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var G;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++_n>1?(G={maximumAge:6e5,timeout:0},lr=!0):(G=this.options.positionOptions,lr=!1),this._geolocationWatchID=P.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,G)}}else P.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},H.prototype._clearWatch=function(){P.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},H}(P.Evented),S={maxWidth:100,unit:"metric"},J=function(B){this.options=P.extend({},S,B),P.bindAll(["_onMove","setUnit"],this)};function ve(B,H,G){var re=G&&G.maxWidth||100,ke=B._container.clientHeight/2,_t=B.unproject([0,ke]),Lt=B.unproject([re,ke]),bn=_t.distanceTo(Lt);if(G&&G.unit==="imperial"){var _r=3.2808*bn;_r>5280?Ae(H,re,_r/5280,B._getUIString("ScaleControl.Miles")):Ae(H,re,_r,B._getUIString("ScaleControl.Feet"))}else G&&G.unit==="nautical"?Ae(H,re,bn/1852,B._getUIString("ScaleControl.NauticalMiles")):bn>=1e3?Ae(H,re,bn/1e3,B._getUIString("ScaleControl.Kilometers")):Ae(H,re,bn,B._getUIString("ScaleControl.Meters"))}function Ae(B,H,G,re){var ke,_t,Lt,bn=(ke=G,(_t=Math.pow(10,(""+Math.floor(ke)).length-1))*(Lt=(Lt=ke/_t)>=10?10:Lt>=5?5:Lt>=3?3:Lt>=2?2:Lt>=1?1:function(_r){var Dn=Math.pow(10,Math.ceil(-Math.log(_r)/Math.LN10));return Math.round(_r*Dn)/Dn}(Lt)));B.style.width=H*(bn/G)+"px",B.innerHTML=bn+" "+re}J.prototype.getDefaultPosition=function(){return"bottom-left"},J.prototype._onMove=function(){ve(this._map,this._container,this.options)},J.prototype.onAdd=function(B){return this._map=B,this._container=W.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",B.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},J.prototype.onRemove=function(){W.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},J.prototype.setUnit=function(B){this.options.unit=B,ve(this._map,this._container,this.options)};var Qe=function(B){this._fullscreen=!1,B&&B.container&&(B.container instanceof P.window.HTMLElement?this._container=B.container:P.warnOnce("Full screen control 'container' must be a DOM element.")),P.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in P.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in P.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in P.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in P.window.document&&(this._fullscreenchange="MSFullscreenChange")};Qe.prototype.onAdd=function(B){return this._map=B,this._container||(this._container=this._map.getContainer()),this._controlContainer=W.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",P.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qe.prototype.onRemove=function(){W.remove(this._controlContainer),this._map=null,P.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qe.prototype._checkFullscreenSupport=function(){return!!(P.window.document.fullscreenEnabled||P.window.document.mozFullScreenEnabled||P.window.document.msFullscreenEnabled||P.window.document.webkitFullscreenEnabled)},Qe.prototype._setupUI=function(){var B=this._fullscreenButton=W.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);W.create("span","mapboxgl-ctrl-icon",B).setAttribute("aria-hidden",!0),B.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),P.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qe.prototype._updateTitle=function(){var B=this._getTitle();this._fullscreenButton.setAttribute("aria-label",B),this._fullscreenButton.title=B},Qe.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qe.prototype._isFullscreen=function(){return this._fullscreen},Qe.prototype._changeIcon=function(){(P.window.document.fullscreenElement||P.window.document.mozFullScreenElement||P.window.document.webkitFullscreenElement||P.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Qe.prototype._onClickFullscreen=function(){this._isFullscreen()?P.window.document.exitFullscreen?P.window.document.exitFullscreen():P.window.document.mozCancelFullScreen?P.window.document.mozCancelFullScreen():P.window.document.msExitFullscreen?P.window.document.msExitFullscreen():P.window.document.webkitCancelFullScreen&&P.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ht={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Qt=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),$n=function(B){function H(G){B.call(this),this.options=P.extend(Object.create(Ht),G),P.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return B&&(H.__proto__=B),(H.prototype=Object.create(B&&B.prototype)).constructor=H,H.prototype.addTo=function(G){return this._map&&this.remove(),this._map=G,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new P.Event("open")),this},H.prototype.isOpen=function(){return!!this._map},H.prototype.remove=function(){return this._content&&W.remove(this._content),this._container&&(W.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new P.Event("close")),this},H.prototype.getLngLat=function(){return this._lngLat},H.prototype.setLngLat=function(G){return this._lngLat=P.LngLat.convert(G),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},H.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},H.prototype.getElement=function(){return this._container},H.prototype.setText=function(G){return this.setDOMContent(P.window.document.createTextNode(G))},H.prototype.setHTML=function(G){var re,ke=P.window.document.createDocumentFragment(),_t=P.window.document.createElement("body");for(_t.innerHTML=G;re=_t.firstChild;)ke.appendChild(re);return this.setDOMContent(ke)},H.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},H.prototype.setMaxWidth=function(G){return this.options.maxWidth=G,this._update(),this},H.prototype.setDOMContent=function(G){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=W.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(G),this._createCloseButton(),this._update(),this._focusFirstElement(),this},H.prototype.addClassName=function(G){this._container&&this._container.classList.add(G)},H.prototype.removeClassName=function(G){this._container&&this._container.classList.remove(G)},H.prototype.setOffset=function(G){return this.options.offset=G,this._update(),this},H.prototype.toggleClassName=function(G){if(this._container)return this._container.classList.toggle(G)},H.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=W.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},H.prototype._onMouseUp=function(G){this._update(G.point)},H.prototype._onMouseMove=function(G){this._update(G.point)},H.prototype._onDrag=function(G){this._update(G.point)},H.prototype._update=function(G){var re=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=W.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=W.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Mi){return re._container.classList.add(Mi)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Vo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||G)){var ke=this._pos=this._trackPointer&&G?G:this._map.project(this._lngLat),_t=this.options.anchor,Lt=function Mi(Ji){if(Ji){if(typeof Ji=="number"){var zo=Math.round(Math.sqrt(.5*Math.pow(Ji,2)));return{center:new P.Point(0,0),top:new P.Point(0,Ji),"top-left":new P.Point(zo,zo),"top-right":new P.Point(-zo,zo),bottom:new P.Point(0,-Ji),"bottom-left":new P.Point(zo,-zo),"bottom-right":new P.Point(-zo,-zo),left:new P.Point(Ji,0),right:new P.Point(-Ji,0)}}if(Ji instanceof P.Point||Array.isArray(Ji)){var Yo=P.Point.convert(Ji);return{center:Yo,top:Yo,"top-left":Yo,"top-right":Yo,bottom:Yo,"bottom-left":Yo,"bottom-right":Yo,left:Yo,right:Yo}}return{center:P.Point.convert(Ji.center||[0,0]),top:P.Point.convert(Ji.top||[0,0]),"top-left":P.Point.convert(Ji["top-left"]||[0,0]),"top-right":P.Point.convert(Ji["top-right"]||[0,0]),bottom:P.Point.convert(Ji.bottom||[0,0]),"bottom-left":P.Point.convert(Ji["bottom-left"]||[0,0]),"bottom-right":P.Point.convert(Ji["bottom-right"]||[0,0]),left:P.Point.convert(Ji.left||[0,0]),right:P.Point.convert(Ji.right||[0,0])}}return Mi(new P.Point(0,0))}(this.options.offset);if(!_t){var bn,_r=this._container.offsetWidth,Dn=this._container.offsetHeight;bn=ke.y+Lt.bottom.ythis._map.transform.height-Dn?["bottom"]:[],ke.x<_r/2?bn.push("left"):ke.x>this._map.transform.width-_r/2&&bn.push("right"),_t=bn.length===0?"bottom":bn.join("-")}var mi=ke.add(Lt[_t]).round();W.setTransform(this._container,D[_t]+" translate("+mi.x+"px,"+mi.y+"px)"),k(this._container,_t,"popup")}},H.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var G=this._container.querySelector(Qt);G&&G.focus()}},H.prototype._onClose=function(){this.remove()},H}(P.Evented),kr={version:P.version,supported:A,setRTLTextPlugin:P.setRTLTextPlugin,getRTLTextPluginStatus:P.getRTLTextPluginStatus,Map:Gf,NavigationControl:Sd,GeolocateControl:ye,AttributionControl:Hh,ScaleControl:J,FullscreenControl:Qe,Popup:$n,Marker:ue,Style:Al,LngLat:P.LngLat,LngLatBounds:P.LngLatBounds,Point:P.Point,MercatorCoordinate:P.MercatorCoordinate,Evented:P.Evented,config:P.config,prewarm:function(){Pr().acquire(zt)},clearPrewarmedResources:function(){var B=Cn;B&&(B.isPreloaded()&&B.numActive()===1?(B.release(zt),Cn=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return P.config.ACCESS_TOKEN},set accessToken(B){P.config.ACCESS_TOKEN=B},get baseApiUrl(){return P.config.API_URL},set baseApiUrl(B){P.config.API_URL=B},get workerCount(){return en.workerCount},set workerCount(B){en.workerCount=B},get maxParallelImageRequests(){return P.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(B){P.config.MAX_PARALLEL_IMAGE_REQUESTS=B},clearStorage:function(B){P.clearTileCache(B)},workerUrl:""};return kr}),v})},93735:function(St,me,x){(function(){var v=x(75041),z=x(67751).utf8,P=x(78034),A=x(67751).bin,W=function(X,Y){X.constructor==String?Y&&Y.encoding==="binary"?X=A.stringToBytes(X):X=z.stringToBytes(X):P(X)?X=Array.prototype.slice.call(X,0):!Array.isArray(X)&&X.constructor!==Uint8Array&&(X=X.toString());for(var ie=v.bytesToWords(X),ae=X.length*8,se=1732584193,Ie=-271733879,Be=-1732584194,Ce=271733878,ct=0;ct>>24)&16711935|(ie[ct]<<24|ie[ct]>>>8)&4278255360;ie[ae>>>5]|=128<>>9<<4)+14]=ae;for(var nt=W._ff,Ge=W._gg,at=W._hh,Ye=W._ii,ct=0;ct>>0,Ie=Ie+Gt>>>0,Be=Be+yt>>>0,Ce=Ce+Et>>>0}return v.endian([se,Ie,Be,Ce])};W._ff=function(X,Y,ie,ae,se,Ie,Be){var Ce=X+(Y&ie|~Y&ae)+(se>>>0)+Be;return(Ce<>>32-Ie)+Y},W._gg=function(X,Y,ie,ae,se,Ie,Be){var Ce=X+(Y&ae|ie&~ae)+(se>>>0)+Be;return(Ce<>>32-Ie)+Y},W._hh=function(X,Y,ie,ae,se,Ie,Be){var Ce=X+(Y^ie^ae)+(se>>>0)+Be;return(Ce<>>32-Ie)+Y},W._ii=function(X,Y,ie,ae,se,Ie,Be){var Ce=X+(ie^(Y|~ae))+(se>>>0)+Be;return(Ce<>>32-Ie)+Y},W._blocksize=16,W._digestsize=16,St.exports=function(X,Y){if(X==null)throw new Error("Illegal argument "+X);var ie=v.wordsToBytes(W(X,Y));return Y&&Y.asBytes?ie:Y&&Y.asString?A.bytesToString(ie):v.bytesToHex(ie)}})()},4027:function(St,me,x){"use strict";x.r(me),x.d(me,{CancellationTokenSource:function(){return GJ},Emitter:function(){return KJ},KeyCode:function(){return XJ},KeyMod:function(){return YJ},MarkerSeverity:function(){return tQ},MarkerTag:function(){return nQ},Position:function(){return qJ},Range:function(){return JJ},Selection:function(){return QJ},SelectionDirection:function(){return eQ},Token:function(){return iQ},Uri:function(){return rQ},default:function(){return Xre},editor:function(){return oQ},languages:function(){return sQ}});var v={};x.r(v),x.d(v,{PixelRatio:function(){return hs},addMatchMediaChangeListener:function(){return _i},getZoomFactor:function(){return Ts},isAndroid:function(){return fa},isChrome:function(){return To},isElectron:function(){return Bs},isFirefox:function(){return Ai},isSafari:function(){return yo},isStandalone:function(){return Rs},isWebKit:function(){return Ri},isWebkitWebView:function(){return ao}});var z={};x.r(z),x.d(z,{CancellationTokenSource:function(){return GJ},Emitter:function(){return KJ},KeyCode:function(){return XJ},KeyMod:function(){return YJ},MarkerSeverity:function(){return tQ},MarkerTag:function(){return nQ},Position:function(){return qJ},Range:function(){return JJ},Selection:function(){return QJ},SelectionDirection:function(){return eQ},Token:function(){return iQ},Uri:function(){return rQ},editor:function(){return oQ},languages:function(){return sQ}});var P={};x.r(P),x.d(P,{CancellationTokenSource:function(){return GJ},Emitter:function(){return KJ},KeyCode:function(){return XJ},KeyMod:function(){return YJ},MarkerSeverity:function(){return tQ},MarkerTag:function(){return nQ},Position:function(){return qJ},Range:function(){return JJ},Selection:function(){return QJ},SelectionDirection:function(){return eQ},Token:function(){return iQ},Uri:function(){return rQ},default:function(){return Xre},editor:function(){return oQ},languages:function(){return sQ}});class A{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Ge.isErrorNoTelemetry(e)?new Ge(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const y=new x;function w(s){N(s)||y.onUnexpectedError(s)}function a(s){N(s)||y.onUnexpectedExternalError(s)}function S(s){if(s instanceof Error){const{name:e,message:t}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:rt.isErrorNoTelemetry(s)}}return s}const I="Canceled";function N(s){return s instanceof ie?!0:s instanceof Error&&s.name===I&&s.message===I}class ie extends Error{constructor(){super(I),this.name=this.message}}function ze(){const s=new Error(I);return s.name=s.message,s}function Ie(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function ct(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class At extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class rt extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof rt)return e;const t=new rt;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class It extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,It.prototype);debugger}}function Ot(s){const e=this;let t=!1,n;return function(){return t||(t=!0,n=s.apply(e,arguments)),n}}var wn;(function(s){function e(bv){return bv&&typeof bv=="object"&&typeof bv[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function n(){return t}s.empty=n;function*r(bv){yield bv}s.single=r;function o(bv){return bv||t}s.from=o;function p(bv){return!bv||bv[Symbol.iterator]().next().done===!0}s.isEmpty=p;function A(bv){return bv[Symbol.iterator]().next().value}s.first=A;function k(bv,F1){for(const Sy of bv)if(F1(Sy))return!0;return!1}s.some=k;function V(bv,F1){for(const Sy of bv)if(F1(Sy))return Sy}s.find=V;function*X(bv,F1){for(const Sy of bv)F1(Sy)&&(yield Sy)}s.filter=X;function*se(bv,F1){let Sy=0;for(const Vv of bv)yield F1(Vv,Sy++)}s.map=se;function*$e(...bv){for(const F1 of bv)for(const Sy of F1)yield Sy}s.concat=$e;function*Dt(bv){for(const F1 of bv)for(const Sy of F1)yield Sy}s.concatNested=Dt;function qn(bv,F1,Sy){let Vv=Sy;for(const zv of bv)Vv=F1(Vv,zv);return Vv}s.reduce=qn;function Ro(bv,F1){let Sy=0;for(const Vv of bv)F1(Vv,Sy++)}s.forEach=Ro;function*Ma(bv,F1,Sy=bv.length){for(F1<0&&(F1+=bv.length),Sy<0?Sy+=bv.length:Sy>bv.length&&(Sy=bv.length);F1Vv===zv){const Vv=bv[Symbol.iterator](),zv=F1[Symbol.iterator]();for(;;){const gy=Vv.next(),I_=zv.next();if(gy.done!==I_.done)return!1;if(gy.done)return!0;if(!Sy(gy.value,I_.value))return!1}}s.equals=p0})(wn||(wn={}));const Hs=!1;let jr=null;function Jr(s){jr=s}if(Hs){const s="__is_disposable_tracked__";Jr(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[s]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==gt.None)try{e[s]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==gt.None)try{e[s]=!0}catch(t){}}markAsSingleton(e){}})}function Yn(s){return jr==null||jr.trackDisposable(s),s}function Lt(s){jr==null||jr.markAsDisposed(s)}function _n(s,e){jr==null||jr.setParent(s,e)}function Mt(s,e){if(jr)for(const t of s)jr.setParent(t,e)}function Bt(s){return jr==null||jr.markAsSingleton(s),s}class Rt extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function on(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Hr(s){if(wn.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new Rt(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function vn(...s){const e=Ca(()=>Hr(s));return Mt(s,e),e}function Ca(s){const e=Yn({dispose:Ot(()=>{Lt(e),s()})});return e}class ai{constructor(){this._toDispose=new Set,this._isDisposed=!1,Yn(this)}dispose(){this._isDisposed||(Lt(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Hr(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return _n(e,this),this._isDisposed?ai.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}ai.DISABLE_DISPOSED_WARNING=!1;class gt{constructor(){this._store=new ai,Yn(this),_n(this._store,this)}dispose(){Lt(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}gt.None=Object.freeze({dispose(){}});class Zr{constructor(){this._isDisposed=!1,Yn(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&_n(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Lt(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&_n(e,null),e}}class Ht{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Zs{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,Yn(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Lt(this))},this}}class oi{constructor(e){this.object=e}dispose(){}}class Pa{constructor(e){this.element=e,this.next=Pa.Undefined,this.prev=Pa.Undefined}}Pa.Undefined=new Pa(void 0);class Aa{constructor(){this._first=Pa.Undefined,this._last=Pa.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Pa.Undefined}clear(){let e=this._first;for(;e!==Pa.Undefined;){const t=e.next;e.prev=Pa.Undefined,e.next=Pa.Undefined,e=t}this._first=Pa.Undefined,this._last=Pa.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Pa(e);if(this._first===Pa.Undefined)this._first=n,this._last=n;else if(t){const o=this._last;this._last=n,n.prev=o,o.next=n}else{const o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Pa.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Pa.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Pa.Undefined&&e.next!==Pa.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Pa.Undefined&&e.next===Pa.Undefined?(this._first=Pa.Undefined,this._last=Pa.Undefined):e.next===Pa.Undefined?(this._last=this._last.prev,this._last.next=Pa.Undefined):e.prev===Pa.Undefined&&(this._first=this._first.next,this._first.prev=Pa.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Pa.Undefined;)yield e.element,e=e.next}}var Pg=function(s,e,t,n){function r(o){return o instanceof t?o:new t(function(p){p(o)})}return new(t||(t=Promise))(function(o,p){function A(X){try{V(n.next(X))}catch(se){p(se)}}function k(X){try{V(n.throw(X))}catch(se){p(se)}}function V(X){X.done?o(X.value):r(X.value).then(A,k)}V((n=n.apply(s,e||[])).next())})};let Ug=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const e0="i-default";function H0(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(n,r)=>{const o=r[0],p=e[o];let A=n;return typeof p=="string"?A=p:(typeof p=="number"||typeof p=="boolean"||p===void 0||p===null)&&(A=String(p)),A}),Ug&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function X0(s,e){let t=s[e];return t||(t=s["*"],t)?t:null}function d0(s){return s.charAt(s.length-1)==="/"?s:s+"/"}function jv(s,e,t){return Pg(this,void 0,void 0,function*(){const n=d0(s)+d0(e)+"vscode/"+d0(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function Lv(s){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return H0(s[e],n)}}function Je(s,e,...t){return H0(e,t)}function k0(s){}function G0(s){Ug=s}function iv(s,e){var t;return{localize:Lv(e[s]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function u0(s,e,t,n){var r;const o=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!s||s.length===0)return t({localize:Je,getConfiguredDefaultLocale:()=>{var X;return(X=o.availableLanguages)===null||X===void 0?void 0:X["*"]}});const p=o.availableLanguages?X0(o.availableLanguages,s):null,A=p===null||p===e0;let k=".nls";A||(k=k+"."+p);const V=X=>{Array.isArray(X)?X.localize=Lv(X):X.localize=Lv(X[s]),X.getConfiguredDefaultLocale=()=>{var se;return(se=o.availableLanguages)===null||se===void 0?void 0:se["*"]},t(X)};typeof o.loadBundle=="function"?o.loadBundle(s,p,(X,se)=>{X?e([s+".nls"],V):V(se)}):o.translationServiceUrl&&!A?Pg(this,void 0,void 0,function*(){var X;try{const se=yield jv(o.translationServiceUrl,p,s);return V(se)}catch(se){if(!p.includes("-"))return console.error(se),e([s+".nls"],V);try{const $e=p.split("-")[0],Dt=yield jv(o.translationServiceUrl,$e,s);return(X=o.availableLanguages)!==null&&X!==void 0||(o.availableLanguages={}),o.availableLanguages["*"]=$e,V(Dt)}catch($e){return console.error($e),e([s+".nls"],V)}}}):e([s+k],V,X=>{if(k===".nls"){console.error("Failed trying to load default language strings",X);return}console.error(`Failed to load message bundle for language ${p}. Falling back to the default language:`,X),e([s+".nls"],V)})}var B1=l(97671),Dg;const zo="en";let mu=!1,Ag=!1,c0=!1,L0=!1,$0=!1,cv=!1,Gg=!1,uu=!1,Gs=!1,Ia,lu=zo,_h=null,Kr;const fr=typeof self=="object"?self:typeof l.g=="object"?l.g:{};let ri;typeof fr.vscode!="undefined"&&typeof fr.vscode.process!="undefined"?ri=fr.vscode.process:typeof B1!="undefined"&&(ri=B1);const Ra=typeof((Dg=ri==null?void 0:ri.versions)===null||Dg===void 0?void 0:Dg.electron)=="string",Sg=Ra&&(ri==null?void 0:ri.type)==="renderer";if(typeof navigator=="object"&&!Sg)Kr=navigator.userAgent,mu=Kr.indexOf("Windows")>=0,Ag=Kr.indexOf("Macintosh")>=0,uu=(Kr.indexOf("Macintosh")>=0||Kr.indexOf("iPad")>=0||Kr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c0=Kr.indexOf("Linux")>=0,cv=!0,Ia=(Je({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||zo,lu=Ia;else if(typeof ri=="object"){mu=ri.platform==="win32",Ag=ri.platform==="darwin",c0=ri.platform==="linux",L0=c0&&!!ri.env.SNAP&&!!ri.env.SNAP_REVISION,Gg=Ra,Gs=!!ri.env.CI||!!ri.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ia=zo,lu=zo;const s=ri.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Ia=e.locale,lu=t||zo,_h=e._translationsConfigFile}catch(e){}$0=!0}else console.error("Unable to resolve platform.");let Jg=0;Ag?Jg=1:mu?Jg=3:c0&&(Jg=2);const j0=mu,Wo=Ag,Mo=c0,qr=$0,On=cv,rn=cv&&typeof fr.importScripts=="function",ui=uu,ya=Kr,gd=lu,Su=typeof fr.postMessage=="function"&&!fr.importScripts,xu=(()=>{if(Su){const s=[];fr.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=s.length;n{const n=++e;s.push({id:n,callback:t}),fr.postMessage({vscodeScheduleAsyncWork:n},"*")}}return s=>setTimeout(s)})(),xa=Ag||uu?2:mu?1:3;let Td=!0,jg=!1;function Wa(){if(!jg){jg=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,Td=new Uint16Array(s.buffer)[0]===512+1}return Td}const tv=!!(ya&&ya.indexOf("Chrome")>=0),Bs=!!(ya&&ya.indexOf("Firefox")>=0),Sa=!!(!tv&&ya&&ya.indexOf("Safari")>=0),$a=!!(ya&&ya.indexOf("Edg/")>=0),Bd=!!(ya&&ya.indexOf("Android")>=0),Bg=fr.performance&&typeof fr.performance.now=="function";class Og{constructor(e){this._highResolution=Bg&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Og(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?fr.performance.now():Date.now()}}const g0=!1,qg=!1;var Xg;(function(s){s.None=()=>gt.None;function e(Vv){if(qg){const{onListenerDidAdd:zv}=Vv,gy=n0.create();let I_=0;Vv.onListenerDidAdd=()=>{++I_===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),gy.print()),zv==null||zv()}}}function t(Vv){return(zv,gy=null,I_)=>{let X_=!1,Zx;return Zx=Vv(x2=>{if(!X_)return Zx?Zx.dispose():X_=!0,zv.call(gy,x2)},null,I_),X_&&Zx.dispose(),Zx}}s.once=t;function n(Vv,zv,gy){return V((I_,X_=null,Zx)=>Vv(x2=>I_.call(X_,zv(x2)),null,Zx),gy)}s.map=n;function r(Vv,zv,gy){return V((I_,X_=null,Zx)=>Vv(x2=>{zv(x2),I_.call(X_,x2)},null,Zx),gy)}s.forEach=r;function o(Vv,zv,gy){return V((I_,X_=null,Zx)=>Vv(x2=>zv(x2)&&I_.call(X_,x2),null,Zx),gy)}s.filter=o;function p(Vv){return Vv}s.signal=p;function A(...Vv){return(zv,gy=null,I_)=>vn(...Vv.map(X_=>X_(Zx=>zv.call(gy,Zx),null,I_)))}s.any=A;function k(Vv,zv,gy,I_){let X_=gy;return n(Vv,Zx=>(X_=zv(X_,Zx),X_),I_)}s.reduce=k;function V(Vv,zv){let gy;const I_={onFirstListenerAdd(){gy=Vv(X_.fire,X_)},onLastListenerRemove(){gy==null||gy.dispose()}};zv||e(I_);const X_=new Eg(I_);return zv==null||zv.add(X_),X_.event}function X(Vv,zv,gy=100,I_=!1,X_,Zx){let x2,TC,GS,RE=0;const uT={leakWarningThreshold:X_,onFirstListenerAdd(){x2=Vv(pA=>{RE++,TC=zv(TC,pA),I_&&!GS&&(vT.fire(TC),TC=void 0),clearTimeout(GS),GS=setTimeout(()=>{const mD=TC;TC=void 0,GS=void 0,(!I_||RE>1)&&vT.fire(mD),RE=0},gy)})},onLastListenerRemove(){x2.dispose()}};Zx||e(uT);const vT=new Eg(uT);return Zx==null||Zx.add(vT),vT.event}s.debounce=X;function se(Vv,zv=(I_,X_)=>I_===X_,gy){let I_=!0,X_;return o(Vv,Zx=>{const x2=I_||!zv(Zx,X_);return I_=!1,X_=Zx,x2},gy)}s.latch=se;function $e(Vv,zv,gy){return[s.filter(Vv,zv,gy),s.filter(Vv,I_=>!zv(I_),gy)]}s.split=$e;function Dt(Vv,zv=!1,gy=[]){let I_=gy.slice(),X_=Vv(TC=>{I_?I_.push(TC):x2.fire(TC)});const Zx=()=>{I_==null||I_.forEach(TC=>x2.fire(TC)),I_=null},x2=new Eg({onFirstListenerAdd(){X_||(X_=Vv(TC=>x2.fire(TC)))},onFirstListenerDidAdd(){I_&&(zv?setTimeout(Zx):Zx())},onLastListenerRemove(){X_&&X_.dispose(),X_=null}});return x2.event}s.buffer=Dt;class qn{constructor(zv){this.event=zv,this.disposables=new ai}map(zv){return new qn(n(this.event,zv,this.disposables))}forEach(zv){return new qn(r(this.event,zv,this.disposables))}filter(zv){return new qn(o(this.event,zv,this.disposables))}reduce(zv,gy){return new qn(k(this.event,zv,gy,this.disposables))}latch(){return new qn(se(this.event,void 0,this.disposables))}debounce(zv,gy=100,I_=!1,X_){return new qn(X(this.event,zv,gy,I_,X_,this.disposables))}on(zv,gy,I_){return this.event(zv,gy,I_)}once(zv,gy,I_){return t(this.event)(zv,gy,I_)}dispose(){this.disposables.dispose()}}function Ro(Vv){return new qn(Vv)}s.chain=Ro;function Ma(Vv,zv,gy=I_=>I_){const I_=(...TC)=>x2.fire(gy(...TC)),X_=()=>Vv.on(zv,I_),Zx=()=>Vv.removeListener(zv,I_),x2=new Eg({onFirstListenerAdd:X_,onLastListenerRemove:Zx});return x2.event}s.fromNodeEventEmitter=Ma;function Nd(Vv,zv,gy=I_=>I_){const I_=(...TC)=>x2.fire(gy(...TC)),X_=()=>Vv.addEventListener(zv,I_),Zx=()=>Vv.removeEventListener(zv,I_),x2=new Eg({onFirstListenerAdd:X_,onLastListenerRemove:Zx});return x2.event}s.fromDOMEventEmitter=Nd;function uh(Vv){return new Promise(zv=>t(Vv)(zv))}s.toPromise=uh;function p0(Vv,zv){return zv(void 0),Vv(gy=>zv(gy))}s.runAndSubscribe=p0;function bv(Vv,zv){let gy=null;function I_(Zx){gy==null||gy.dispose(),gy=new ai,zv(Zx,gy)}I_(void 0);const X_=Vv(Zx=>I_(Zx));return Ca(()=>{X_.dispose(),gy==null||gy.dispose()})}s.runAndSubscribeWithStore=bv;class F1{constructor(zv,gy){this.obs=zv,this._counter=0,this._hasChanged=!1;const I_={onFirstListenerAdd:()=>{zv.addObserver(this)},onLastListenerRemove:()=>{zv.removeObserver(this)}};gy||e(I_),this.emitter=new Eg(I_),gy&&gy.add(this.emitter)}beginUpdate(zv){this._counter++}handleChange(zv,gy){this._hasChanged=!0}endUpdate(zv){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Sy(Vv,zv){return new F1(Vv,zv).emitter.event}s.fromObservable=Sy})(Xg||(Xg={}));class A0{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${A0._idPool++}`}start(e){this._stopWatch=new Og(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}A0._idPool=0;let nv=-1;class t0{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=nv;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class n0{constructor(e){this.value=e}static create(){var e;return new n0((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const W=new A;function X(s){se(s)||W.onUnexpectedError(s)}function Y(s){se(s)||W.onUnexpectedExternalError(s)}function ie(s){if(s instanceof Error){const{name:e,message:t}=s,n=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:Ge.isErrorNoTelemetry(s)}}return s}const ae="Canceled";function se(s){return s instanceof Ie?!0:s instanceof Error&&s.name===ae&&s.message===ae}class Ie extends Error{constructor(){super(ae),this.name=this.message}}function Be(){const s=new Error(ae);return s.name=s.message,s}function Ce(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function ct(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class nt extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Ge extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof Ge)return e;const t=new Ge;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class at extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,at.prototype);debugger}}function Ye(s){const e=this;let t=!1,n;return function(){return t||(t=!0,n=s.apply(e,arguments)),n}}var rt;(function(s){function e(uo){return uo&&typeof uo=="object"&&typeof uo[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function n(){return t}s.empty=n;function*r(uo){yield uo}s.single=r;function o(uo){return uo||t}s.from=o;function u(uo){return!uo||uo[Symbol.iterator]().next().done===!0}s.isEmpty=u;function g(uo){return uo[Symbol.iterator]().next().value}s.first=g;function b(uo,_s){for(const la of uo)if(_s(la))return!0;return!1}s.some=b;function E(uo,_s){for(const la of uo)if(_s(la))return la}s.find=E;function*R(uo,_s){for(const la of uo)_s(la)&&(yield la)}s.filter=R;function*U(uo,_s){let la=0;for(const Do of uo)yield _s(Do,la++)}s.map=U;function*le(...uo){for(const _s of uo)for(const la of _s)yield la}s.concat=le;function*De(uo){for(const _s of uo)for(const la of _s)yield la}s.concatNested=De;function qe(uo,_s,la){let Do=la;for(const Eo of uo)Do=_s(Do,Eo);return Do}s.reduce=qe;function At(uo,_s){let la=0;for(const Do of uo)_s(Do,la++)}s.forEach=At;function*tn(uo,_s,la=uo.length){for(_s<0&&(_s+=uo.length),la<0?la+=uo.length:la>uo.length&&(la=uo.length);_sDo===Eo){const Do=uo[Symbol.iterator](),Eo=_s[Symbol.iterator]();for(;;){const ea=Do.next(),bl=Eo.next();if(ea.done!==bl.done)return!1;if(ea.done)return!0;if(!la(ea.value,bl.value))return!1}}s.equals=ni})(rt||(rt={}));const Gt=!1;let yt=null;function Et(s){yt=s}if(Gt){const s="__is_disposable_tracked__";Et(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[s]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==Te.None)try{e[s]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==Te.None)try{e[s]=!0}catch(t){}}markAsSingleton(e){}})}function ht(s){return yt==null||yt.trackDisposable(s),s}function Pe(s){yt==null||yt.markAsDisposed(s)}function et(s,e){yt==null||yt.setParent(s,e)}function Oe(s,e){if(yt)for(const t of s)yt.setParent(t,e)}function Ue(s){return yt==null||yt.markAsSingleton(s),s}class je extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function ft(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Ct(s){if(rt.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new je(e);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function Xe(...s){const e=hn(()=>Ct(s));return Oe(s,e),e}function hn(s){const e=ht({dispose:Ye(()=>{Pe(e),s()})});return e}class Nt{constructor(){this._toDispose=new Set,this._isDisposed=!1,ht(this)}dispose(){this._isDisposed||(Pe(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{Ct(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return et(e,this),this._isDisposed?Nt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}Nt.DISABLE_DISPOSED_WARNING=!1;class Te{constructor(){this._store=new Nt,ht(this),et(this._store,this)}dispose(){Pe(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}Te.None=Object.freeze({dispose(){}});class vt{constructor(){this._isDisposed=!1,ht(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&et(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,Pe(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&et(e,null),e}}class ze{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Vt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,ht(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,Pe(this))},this}}class Tt{constructor(e){this.object=e}dispose(){}}class un{constructor(e){this.element=e,this.next=un.Undefined,this.prev=un.Undefined}}un.Undefined=new un(void 0);class on{constructor(){this._first=un.Undefined,this._last=un.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===un.Undefined}clear(){let e=this._first;for(;e!==un.Undefined;){const t=e.next;e.prev=un.Undefined,e.next=un.Undefined,e=t}this._first=un.Undefined,this._last=un.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new un(e);if(this._first===un.Undefined)this._first=n,this._last=n;else if(t){const o=this._last;this._last=n,n.prev=o,o.next=n}else{const o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==un.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==un.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==un.Undefined&&e.next!==un.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===un.Undefined&&e.next===un.Undefined?(this._first=un.Undefined,this._last=un.Undefined):e.next===un.Undefined?(this._last=this._last.prev,this._last.next=un.Undefined):e.prev===un.Undefined&&(this._first=this._first.next,this._first.prev=un.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==un.Undefined;)yield e.element,e=e.next}}var Lr=function(s,e,t,n){function r(o){return o instanceof t?o:new t(function(u){u(o)})}return new(t||(t=Promise))(function(o,u){function g(R){try{E(n.next(R))}catch(U){u(U)}}function b(R){try{E(n.throw(R))}catch(U){u(U)}}function E(R){R.done?o(R.value):r(R.value).then(g,b)}E((n=n.apply(s,e||[])).next())})};let Yr=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const fi="i-default";function Xi(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(n,r)=>{const o=r[0],u=e[o];let g=n;return typeof u=="string"?g=u:(typeof u=="number"||typeof u=="boolean"||u===void 0||u===null)&&(g=String(u)),g}),Yr&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function Qi(s,e){let t=s[e];return t||(t=s["*"],t)?t:null}function hi(s){return s.charAt(s.length-1)==="/"?s:s+"/"}function Go(s,e,t){return Lr(this,void 0,void 0,function*(){const n=hi(s)+hi(e)+"vscode/"+hi(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function Mo(s){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return Xi(s[e],n)}}function pe(s,e,...t){return Xi(e,t)}function Ii(s){}function Vi(s){Yr=s}function ro(s,e){var t;return{localize:Mo(e[s]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function ai(s,e,t,n){var r;const o=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!s||s.length===0)return t({localize:pe,getConfiguredDefaultLocale:()=>{var R;return(R=o.availableLanguages)===null||R===void 0?void 0:R["*"]}});const u=o.availableLanguages?Qi(o.availableLanguages,s):null,g=u===null||u===fi;let b=".nls";g||(b=b+"."+u);const E=R=>{Array.isArray(R)?R.localize=Mo(R):R.localize=Mo(R[s]),R.getConfiguredDefaultLocale=()=>{var U;return(U=o.availableLanguages)===null||U===void 0?void 0:U["*"]},t(R)};typeof o.loadBundle=="function"?o.loadBundle(s,u,(R,U)=>{R?e([s+".nls"],E):E(U)}):o.translationServiceUrl&&!g?Lr(this,void 0,void 0,function*(){var R;try{const U=yield Go(o.translationServiceUrl,u,s);return E(U)}catch(U){if(!u.includes("-"))return console.error(U),e([s+".nls"],E);try{const le=u.split("-")[0],De=yield Go(o.translationServiceUrl,le,s);return(R=o.availableLanguages)!==null&&R!==void 0||(o.availableLanguages={}),o.availableLanguages["*"]=le,E(De)}catch(le){return console.error(le),e([s+".nls"],E)}}}):e([s+b],E,R=>{if(b===".nls"){console.error("Failed trying to load default language strings",R);return}console.error(`Failed to load message bundle for language ${u}. Falling back to the default language:`,R),e([s+".nls"],E)})}var Ms=x(97671),Ar;const Rt="en";let jn=!1,wr=!1,oi=!1,Ti=!1,Bi=!1,no=!1,Vr=!1,Rn=!1,Xt=!1,Sn,Pn=Rt,hr=null,mt;const tt=typeof self=="object"?self:typeof x.g=="object"?x.g:{};let kt;typeof tt.vscode!="undefined"&&typeof tt.vscode.process!="undefined"?kt=tt.vscode.process:typeof Ms!="undefined"&&(kt=Ms);const vn=typeof((Ar=kt==null?void 0:kt.versions)===null||Ar===void 0?void 0:Ar.electron)=="string",vr=vn&&(kt==null?void 0:kt.type)==="renderer";if(typeof navigator=="object"&&!vr)mt=navigator.userAgent,jn=mt.indexOf("Windows")>=0,wr=mt.indexOf("Macintosh")>=0,Rn=(mt.indexOf("Macintosh")>=0||mt.indexOf("iPad")>=0||mt.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,oi=mt.indexOf("Linux")>=0,no=!0,Sn=(pe({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Rt,Pn=Sn;else if(typeof kt=="object"){jn=kt.platform==="win32",wr=kt.platform==="darwin",oi=kt.platform==="linux",Ti=oi&&!!kt.env.SNAP&&!!kt.env.SNAP_REVISION,Vr=vn,Xt=!!kt.env.CI||!!kt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Sn=Rt,Pn=Rt;const s=kt.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Sn=e.locale,Pn=t||Rt,hr=e._translationsConfigFile}catch(e){}Bi=!0}else console.error("Unable to resolve platform.");let qr=0;wr?qr=1:jn?qr=3:oi&&(qr=2);const Ni=jn,li=wr,Un=oi,dn=Bi,xt=no,it=no&&typeof tt.importScripts=="function",Bt=Rn,rn=mt,ir=Pn,tr=typeof tt.postMessage=="function"&&!tt.importScripts,Jn=(()=>{if(tr){const s=[];tt.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=s.length;n{const n=++e;s.push({id:n,callback:t}),tt.postMessage({vscodeScheduleAsyncWork:n},"*")}}return s=>setTimeout(s)})(),nn=wr||Rn?2:jn?1:3;let er=!0,Fr=!1;function jr(){if(!Fr){Fr=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,er=new Uint16Array(s.buffer)[0]===512+1}return er}const bo=!!(rn&&rn.indexOf("Chrome")>=0),zt=!!(rn&&rn.indexOf("Firefox")>=0),en=!!(!bo&&rn&&rn.indexOf("Safari")>=0),Cn=!!(rn&&rn.indexOf("Edg/")>=0),rr=!!(rn&&rn.indexOf("Android")>=0),Pr=tt.performance&&typeof tt.performance.now=="function";class Er{constructor(e){this._highResolution=Pr&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Er(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?tt.performance.now():Date.now()}}const ui=!1,Gr=!1;var zr;(function(s){s.None=()=>Te.None;function e(Do){if(Gr){const{onListenerDidAdd:Eo}=Do,ea=Xr.create();let bl=0;Do.onListenerDidAdd=()=>{++bl===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),ea.print()),Eo==null||Eo()}}}function t(Do){return(Eo,ea=null,bl)=>{let Zl=!1,Bu;return Bu=Do(fc=>{if(!Zl)return Bu?Bu.dispose():Zl=!0,Eo.call(ea,fc)},null,bl),Zl&&Bu.dispose(),Bu}}s.once=t;function n(Do,Eo,ea){return E((bl,Zl=null,Bu)=>Do(fc=>bl.call(Zl,Eo(fc)),null,Bu),ea)}s.map=n;function r(Do,Eo,ea){return E((bl,Zl=null,Bu)=>Do(fc=>{Eo(fc),bl.call(Zl,fc)},null,Bu),ea)}s.forEach=r;function o(Do,Eo,ea){return E((bl,Zl=null,Bu)=>Do(fc=>Eo(fc)&&bl.call(Zl,fc),null,Bu),ea)}s.filter=o;function u(Do){return Do}s.signal=u;function g(...Do){return(Eo,ea=null,bl)=>Xe(...Do.map(Zl=>Zl(Bu=>Eo.call(ea,Bu),null,bl)))}s.any=g;function b(Do,Eo,ea,bl){let Zl=ea;return n(Do,Bu=>(Zl=Eo(Zl,Bu),Zl),bl)}s.reduce=b;function E(Do,Eo){let ea;const bl={onFirstListenerAdd(){ea=Do(Zl.fire,Zl)},onLastListenerRemove(){ea==null||ea.dispose()}};Eo||e(bl);const Zl=new pr(bl);return Eo==null||Eo.add(Zl),Zl.event}function R(Do,Eo,ea=100,bl=!1,Zl,Bu){let fc,bd,Uf,Dp=0;const sg={leakWarningThreshold:Zl,onFirstListenerAdd(){fc=Do(fm=>{Dp++,bd=Eo(bd,fm),bl&&!Uf&&(dg.fire(bd),bd=void 0),clearTimeout(Uf),Uf=setTimeout(()=>{const uv=bd;bd=void 0,Uf=void 0,(!bl||Dp>1)&&dg.fire(uv),Dp=0},ea)})},onLastListenerRemove(){fc.dispose()}};Bu||e(sg);const dg=new pr(sg);return Bu==null||Bu.add(dg),dg.event}s.debounce=R;function U(Do,Eo=(bl,Zl)=>bl===Zl,ea){let bl=!0,Zl;return o(Do,Bu=>{const fc=bl||!Eo(Bu,Zl);return bl=!1,Zl=Bu,fc},ea)}s.latch=U;function le(Do,Eo,ea){return[s.filter(Do,Eo,ea),s.filter(Do,bl=>!Eo(bl),ea)]}s.split=le;function De(Do,Eo=!1,ea=[]){let bl=ea.slice(),Zl=Do(bd=>{bl?bl.push(bd):fc.fire(bd)});const Bu=()=>{bl==null||bl.forEach(bd=>fc.fire(bd)),bl=null},fc=new pr({onFirstListenerAdd(){Zl||(Zl=Do(bd=>fc.fire(bd)))},onFirstListenerDidAdd(){bl&&(Eo?setTimeout(Bu):Bu())},onLastListenerRemove(){Zl&&Zl.dispose(),Zl=null}});return fc.event}s.buffer=De;class qe{constructor(Eo){this.event=Eo,this.disposables=new Nt}map(Eo){return new qe(n(this.event,Eo,this.disposables))}forEach(Eo){return new qe(r(this.event,Eo,this.disposables))}filter(Eo){return new qe(o(this.event,Eo,this.disposables))}reduce(Eo,ea){return new qe(b(this.event,Eo,ea,this.disposables))}latch(){return new qe(U(this.event,void 0,this.disposables))}debounce(Eo,ea=100,bl=!1,Zl){return new qe(R(this.event,Eo,ea,bl,Zl,this.disposables))}on(Eo,ea,bl){return this.event(Eo,ea,bl)}once(Eo,ea,bl){return t(this.event)(Eo,ea,bl)}dispose(){this.disposables.dispose()}}function At(Do){return new qe(Do)}s.chain=At;function tn(Do,Eo,ea=bl=>bl){const bl=(...bd)=>fc.fire(ea(...bd)),Zl=()=>Do.on(Eo,bl),Bu=()=>Do.removeListener(Eo,bl),fc=new pr({onFirstListenerAdd:Zl,onLastListenerRemove:Bu});return fc.event}s.fromNodeEventEmitter=tn;function Qn(Do,Eo,ea=bl=>bl){const bl=(...bd)=>fc.fire(ea(...bd)),Zl=()=>Do.addEventListener(Eo,bl),Bu=()=>Do.removeEventListener(Eo,bl),fc=new pr({onFirstListenerAdd:Zl,onLastListenerRemove:Bu});return fc.event}s.fromDOMEventEmitter=Qn;function or(Do){return new Promise(Eo=>t(Do)(Eo))}s.toPromise=or;function ni(Do,Eo){return Eo(void 0),Do(ea=>Eo(ea))}s.runAndSubscribe=ni;function uo(Do,Eo){let ea=null;function bl(Bu){ea==null||ea.dispose(),ea=new Nt,Eo(Bu,ea)}bl(void 0);const Zl=Do(Bu=>bl(Bu));return hn(()=>{Zl.dispose(),ea==null||ea.dispose()})}s.runAndSubscribeWithStore=uo;class _s{constructor(Eo,ea){this.obs=Eo,this._counter=0,this._hasChanged=!1;const bl={onFirstListenerAdd:()=>{Eo.addObserver(this)},onLastListenerRemove:()=>{Eo.removeObserver(this)}};ea||e(bl),this.emitter=new pr(bl),ea&&ea.add(this.emitter)}beginUpdate(Eo){this._counter++}handleChange(Eo,ea){this._hasChanged=!0}endUpdate(Eo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function la(Do,Eo){return new _s(Do,Eo).emitter.event}s.fromObservable=la})(zr||(zr={}));class Ei{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Ei._idPool++}`}start(e){this._stopWatch=new Er(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Ei._idPool=0;let Zi=-1;class Kr{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Zi;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class Xr{constructor(e){this.value=e}static create(){var e;return new Xr((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class u1{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new Zs}invoke(e){this.callback.call(this.callbackThis,e)}}class Eg{constructor(e){var t,n;this._disposed=!1,this._options=e,this._leakageMon=nv>0?new t0(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new A0(this._options._profName):void 0,this._deliveryQueue=(n=this._options)===null||n===void 0?void 0:n.deliveryQueue}dispose(){var e,t,n,r;if(!this._disposed){if(this._disposed=!0,this._listeners){if(g0){const o=Array.from(this._listeners);queueMicrotask(()=>{var p;for(const A of o)A.subscription.isset()&&(A.subscription.unset(),(p=A.stack)===null||p===void 0||p.print())})}this._listeners.clear()}(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||n===void 0||n.call(t),(r=this._leakageMon)===null||r===void 0||r.dispose()}}get event(){return this._event||(this._event=(e,t,n)=>{var r,o,p;this._listeners||(this._listeners=new Aa);const A=this._listeners.isEmpty();A&&(!((r=this._options)===null||r===void 0)&&r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let k,V;this._leakageMon&&this._listeners.size>=30&&(V=n0.create(),k=this._leakageMon.check(V,this._listeners.size+1)),g0&&(V=V!=null?V:n0.create());const X=new u1(e,t,V),se=this._listeners.push(X);A&&(!((o=this._options)===null||o===void 0)&&o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((p=this._options)===null||p===void 0)&&p.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const $e=X.subscription.set(()=>{k==null||k(),this._disposed||(se(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof ai?n.add($e):Array.isArray(n)&&n.push($e),$e}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Hg);for(const r of this._listeners)this._deliveryQueue.push(this,r,e);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(n=this._perfMon)===null||n===void 0||n.stop()}}}class a1{constructor(){this._queue=new Aa}get size(){return this._queue.size}push(e,t,n){this._queue.push(new Gd(e,t,n))}clear(e){const t=new Aa;for(const n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){w(t)}}}}class Hg extends a1{clear(e){this._queue.clear()}}class Gd{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}class h0 extends Eg{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Aa,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class lv extends h0{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class su{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(o=>{const p=this.buffers[this.buffers.length-1];p?p.push(()=>t.call(n,o)):t.call(n,o)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class hu{constructor(){this.listening=!1,this.inputEvent=Xg.None,this.inputEventListener=gt.None,this.emitter=new Eg({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}class ev{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ev.INSTANCE=new ev;class sv extends gt{constructor(){super(),this._onDidChange=this._register(new Eg),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class yv extends gt{constructor(){super(),this._onDidChange=this._register(new Eg),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new sv);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class $v{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=Bt(new yv)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function E0(s,e){typeof s=="string"&&(s=window.matchMedia(s)),s.addEventListener("change",e)}const E1=new $v;function $1(){return ev.INSTANCE.getZoomFactor()}const l0=navigator.userAgent,z0=l0.indexOf("Firefox")>=0,W0=l0.indexOf("AppleWebKit")>=0,Rv=l0.indexOf("Chrome")>=0,R0=!Rv&&l0.indexOf("Safari")>=0,gv=!Rv&&!R0&&W0,G1=l0.indexOf("Electron/")>=0,xy=l0.indexOf("Android")>=0;let Dy=!1;if(window.matchMedia){const s=window.matchMedia("(display-mode: standalone)");Dy=s.matches,E0(s,({matches:e})=>{Dy=e})}function H1(){return Dy}const xd={clipboard:{writeText:qr||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:qr||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>qr||H1()?0:navigator.keyboard||R0?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class Yg{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const r0=new Yg,No=new Yg,qt=new Yg,Sr=new Array(230),si={},Rs=[],wa=Object.create(null),bu=Object.create(null),s0=[],In=[];for(let s=0;s<=193;s++)s0[s]=-1;for(let s=0;s<=127;s++)In[s]=-1;(function(){const s="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",s,s],[0,1,1,"Hyper",0,s,0,s,s,s],[0,1,2,"Super",0,s,0,s,s,s],[0,1,3,"Fn",0,s,0,s,s,s],[0,1,4,"FnLock",0,s,0,s,s,s],[0,1,5,"Suspend",0,s,0,s,s,s],[0,1,6,"Resume",0,s,0,s,s,s],[0,1,7,"Turbo",0,s,0,s,s,s],[0,1,8,"Sleep",0,s,0,"VK_SLEEP",s,s],[0,1,9,"WakeUp",0,s,0,s,s,s],[31,0,10,"KeyA",31,"A",65,"VK_A",s,s],[32,0,11,"KeyB",32,"B",66,"VK_B",s,s],[33,0,12,"KeyC",33,"C",67,"VK_C",s,s],[34,0,13,"KeyD",34,"D",68,"VK_D",s,s],[35,0,14,"KeyE",35,"E",69,"VK_E",s,s],[36,0,15,"KeyF",36,"F",70,"VK_F",s,s],[37,0,16,"KeyG",37,"G",71,"VK_G",s,s],[38,0,17,"KeyH",38,"H",72,"VK_H",s,s],[39,0,18,"KeyI",39,"I",73,"VK_I",s,s],[40,0,19,"KeyJ",40,"J",74,"VK_J",s,s],[41,0,20,"KeyK",41,"K",75,"VK_K",s,s],[42,0,21,"KeyL",42,"L",76,"VK_L",s,s],[43,0,22,"KeyM",43,"M",77,"VK_M",s,s],[44,0,23,"KeyN",44,"N",78,"VK_N",s,s],[45,0,24,"KeyO",45,"O",79,"VK_O",s,s],[46,0,25,"KeyP",46,"P",80,"VK_P",s,s],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",s,s],[48,0,27,"KeyR",48,"R",82,"VK_R",s,s],[49,0,28,"KeyS",49,"S",83,"VK_S",s,s],[50,0,29,"KeyT",50,"T",84,"VK_T",s,s],[51,0,30,"KeyU",51,"U",85,"VK_U",s,s],[52,0,31,"KeyV",52,"V",86,"VK_V",s,s],[53,0,32,"KeyW",53,"W",87,"VK_W",s,s],[54,0,33,"KeyX",54,"X",88,"VK_X",s,s],[55,0,34,"KeyY",55,"Y",89,"VK_Y",s,s],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",s,s],[22,0,36,"Digit1",22,"1",49,"VK_1",s,s],[23,0,37,"Digit2",23,"2",50,"VK_2",s,s],[24,0,38,"Digit3",24,"3",51,"VK_3",s,s],[25,0,39,"Digit4",25,"4",52,"VK_4",s,s],[26,0,40,"Digit5",26,"5",53,"VK_5",s,s],[27,0,41,"Digit6",27,"6",54,"VK_6",s,s],[28,0,42,"Digit7",28,"7",55,"VK_7",s,s],[29,0,43,"Digit8",29,"8",56,"VK_8",s,s],[30,0,44,"Digit9",30,"9",57,"VK_9",s,s],[21,0,45,"Digit0",21,"0",48,"VK_0",s,s],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",s,s],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",s,s],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",s,s],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",s,s],[10,1,50,"Space",10,"Space",32,"VK_SPACE",s,s],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,s,0,s,s,s],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",s,s],[59,1,64,"F1",59,"F1",112,"VK_F1",s,s],[60,1,65,"F2",60,"F2",113,"VK_F2",s,s],[61,1,66,"F3",61,"F3",114,"VK_F3",s,s],[62,1,67,"F4",62,"F4",115,"VK_F4",s,s],[63,1,68,"F5",63,"F5",116,"VK_F5",s,s],[64,1,69,"F6",64,"F6",117,"VK_F6",s,s],[65,1,70,"F7",65,"F7",118,"VK_F7",s,s],[66,1,71,"F8",66,"F8",119,"VK_F8",s,s],[67,1,72,"F9",67,"F9",120,"VK_F9",s,s],[68,1,73,"F10",68,"F10",121,"VK_F10",s,s],[69,1,74,"F11",69,"F11",122,"VK_F11",s,s],[70,1,75,"F12",70,"F12",123,"VK_F12",s,s],[0,1,76,"PrintScreen",0,s,0,s,s,s],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",s,s],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",s,s],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",s,s],[14,1,80,"Home",14,"Home",36,"VK_HOME",s,s],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",s,s],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",s,s],[13,1,83,"End",13,"End",35,"VK_END",s,s],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",s,s],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",s],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",s],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",s],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",s],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",s,s],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",s,s],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",s,s],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",s,s],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",s,s],[3,1,94,"NumpadEnter",3,s,0,s,s,s],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",s,s],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",s,s],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",s,s],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",s,s],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",s,s],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",s,s],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",s,s],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",s,s],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",s,s],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",s,s],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",s,s],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",s,s],[58,1,107,"ContextMenu",58,"ContextMenu",93,s,s,s],[0,1,108,"Power",0,s,0,s,s,s],[0,1,109,"NumpadEqual",0,s,0,s,s,s],[71,1,110,"F13",71,"F13",124,"VK_F13",s,s],[72,1,111,"F14",72,"F14",125,"VK_F14",s,s],[73,1,112,"F15",73,"F15",126,"VK_F15",s,s],[74,1,113,"F16",74,"F16",127,"VK_F16",s,s],[75,1,114,"F17",75,"F17",128,"VK_F17",s,s],[76,1,115,"F18",76,"F18",129,"VK_F18",s,s],[77,1,116,"F19",77,"F19",130,"VK_F19",s,s],[0,1,117,"F20",0,s,0,"VK_F20",s,s],[0,1,118,"F21",0,s,0,"VK_F21",s,s],[0,1,119,"F22",0,s,0,"VK_F22",s,s],[0,1,120,"F23",0,s,0,"VK_F23",s,s],[0,1,121,"F24",0,s,0,"VK_F24",s,s],[0,1,122,"Open",0,s,0,s,s,s],[0,1,123,"Help",0,s,0,s,s,s],[0,1,124,"Select",0,s,0,s,s,s],[0,1,125,"Again",0,s,0,s,s,s],[0,1,126,"Undo",0,s,0,s,s,s],[0,1,127,"Cut",0,s,0,s,s,s],[0,1,128,"Copy",0,s,0,s,s,s],[0,1,129,"Paste",0,s,0,s,s,s],[0,1,130,"Find",0,s,0,s,s,s],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",s,s],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",s,s],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",s,s],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",s,s],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",s,s],[0,1,136,"KanaMode",0,s,0,s,s,s],[0,0,137,"IntlYen",0,s,0,s,s,s],[0,1,138,"Convert",0,s,0,s,s,s],[0,1,139,"NonConvert",0,s,0,s,s,s],[0,1,140,"Lang1",0,s,0,s,s,s],[0,1,141,"Lang2",0,s,0,s,s,s],[0,1,142,"Lang3",0,s,0,s,s,s],[0,1,143,"Lang4",0,s,0,s,s,s],[0,1,144,"Lang5",0,s,0,s,s,s],[0,1,145,"Abort",0,s,0,s,s,s],[0,1,146,"Props",0,s,0,s,s,s],[0,1,147,"NumpadParenLeft",0,s,0,s,s,s],[0,1,148,"NumpadParenRight",0,s,0,s,s,s],[0,1,149,"NumpadBackspace",0,s,0,s,s,s],[0,1,150,"NumpadMemoryStore",0,s,0,s,s,s],[0,1,151,"NumpadMemoryRecall",0,s,0,s,s,s],[0,1,152,"NumpadMemoryClear",0,s,0,s,s,s],[0,1,153,"NumpadMemoryAdd",0,s,0,s,s,s],[0,1,154,"NumpadMemorySubtract",0,s,0,s,s,s],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",s,s],[0,1,156,"NumpadClearEntry",0,s,0,s,s,s],[5,1,0,s,5,"Ctrl",17,"VK_CONTROL",s,s],[4,1,0,s,4,"Shift",16,"VK_SHIFT",s,s],[6,1,0,s,6,"Alt",18,"VK_MENU",s,s],[57,1,0,s,57,"Meta",0,"VK_COMMAND",s,s],[5,1,157,"ControlLeft",5,s,0,"VK_LCONTROL",s,s],[4,1,158,"ShiftLeft",4,s,0,"VK_LSHIFT",s,s],[6,1,159,"AltLeft",6,s,0,"VK_LMENU",s,s],[57,1,160,"MetaLeft",57,s,0,"VK_LWIN",s,s],[5,1,161,"ControlRight",5,s,0,"VK_RCONTROL",s,s],[4,1,162,"ShiftRight",4,s,0,"VK_RSHIFT",s,s],[6,1,163,"AltRight",6,s,0,"VK_RMENU",s,s],[57,1,164,"MetaRight",57,s,0,"VK_RWIN",s,s],[0,1,165,"BrightnessUp",0,s,0,s,s,s],[0,1,166,"BrightnessDown",0,s,0,s,s,s],[0,1,167,"MediaPlay",0,s,0,s,s,s],[0,1,168,"MediaRecord",0,s,0,s,s,s],[0,1,169,"MediaFastForward",0,s,0,s,s,s],[0,1,170,"MediaRewind",0,s,0,s,s,s],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",s,s],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",s,s],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",s,s],[0,1,174,"Eject",0,s,0,s,s,s],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",s,s],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",s,s],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",s,s],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",s,s],[0,1,179,"LaunchApp1",0,s,0,"VK_MEDIA_LAUNCH_APP1",s,s],[0,1,180,"SelectTask",0,s,0,s,s,s],[0,1,181,"LaunchScreenSaver",0,s,0,s,s,s],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",s,s],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",s,s],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",s,s],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",s,s],[0,1,186,"BrowserStop",0,s,0,"VK_BROWSER_STOP",s,s],[0,1,187,"BrowserRefresh",0,s,0,"VK_BROWSER_REFRESH",s,s],[0,1,188,"BrowserFavorites",0,s,0,"VK_BROWSER_FAVORITES",s,s],[0,1,189,"ZoomToggle",0,s,0,s,s,s],[0,1,190,"MailReply",0,s,0,s,s,s],[0,1,191,"MailForward",0,s,0,s,s,s],[0,1,192,"MailSend",0,s,0,s,s,s],[109,1,0,s,109,"KeyInComposition",229,s,s,s],[111,1,0,s,111,"ABNT_C2",194,"VK_ABNT_C2",s,s],[91,1,0,s,91,"OEM_8",223,"VK_OEM_8",s,s],[0,1,0,s,0,s,0,"VK_KANA",s,s],[0,1,0,s,0,s,0,"VK_HANGUL",s,s],[0,1,0,s,0,s,0,"VK_JUNJA",s,s],[0,1,0,s,0,s,0,"VK_FINAL",s,s],[0,1,0,s,0,s,0,"VK_HANJA",s,s],[0,1,0,s,0,s,0,"VK_KANJI",s,s],[0,1,0,s,0,s,0,"VK_CONVERT",s,s],[0,1,0,s,0,s,0,"VK_NONCONVERT",s,s],[0,1,0,s,0,s,0,"VK_ACCEPT",s,s],[0,1,0,s,0,s,0,"VK_MODECHANGE",s,s],[0,1,0,s,0,s,0,"VK_SELECT",s,s],[0,1,0,s,0,s,0,"VK_PRINT",s,s],[0,1,0,s,0,s,0,"VK_EXECUTE",s,s],[0,1,0,s,0,s,0,"VK_SNAPSHOT",s,s],[0,1,0,s,0,s,0,"VK_HELP",s,s],[0,1,0,s,0,s,0,"VK_APPS",s,s],[0,1,0,s,0,s,0,"VK_PROCESSKEY",s,s],[0,1,0,s,0,s,0,"VK_PACKET",s,s],[0,1,0,s,0,s,0,"VK_DBE_SBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_DBE_DBCSCHAR",s,s],[0,1,0,s,0,s,0,"VK_ATTN",s,s],[0,1,0,s,0,s,0,"VK_CRSEL",s,s],[0,1,0,s,0,s,0,"VK_EXSEL",s,s],[0,1,0,s,0,s,0,"VK_EREOF",s,s],[0,1,0,s,0,s,0,"VK_PLAY",s,s],[0,1,0,s,0,s,0,"VK_ZOOM",s,s],[0,1,0,s,0,s,0,"VK_NONAME",s,s],[0,1,0,s,0,s,0,"VK_PA1",s,s],[0,1,0,s,0,s,0,"VK_OEM_CLEAR",s,s]],t=[],n=[];for(const r of e){const[o,p,A,k,V,X,se,$e,Dt,qn]=r;if(n[A]||(n[A]=!0,Rs[A]=k,wa[k]=A,bu[k.toLowerCase()]=A,p&&(s0[A]=V,V!==0&&V!==3&&V!==5&&V!==4&&V!==6&&V!==57&&(In[V]=A))),!t[V]){if(t[V]=!0,!X)throw new Error(`String representation missing for key code ${V} around scan code ${k}`);r0.define(V,X),No.define(V,Dt||X),qt.define(V,qn||Dt||X)}se&&(Sr[se]=V),$e&&(si[$e]=V)}In[3]=46})();var ga;(function(s){function e(A){return r0.keyCodeToStr(A)}s.toString=e;function t(A){return r0.strToKeyCode(A)}s.fromString=t;function n(A){return No.keyCodeToStr(A)}s.toUserSettingsUS=n;function r(A){return qt.keyCodeToStr(A)}s.toUserSettingsGeneral=r;function o(A){return No.strToKeyCode(A)||qt.strToKeyCode(A)}s.fromUserSettings=o;function p(A){if(A>=93&&A<=108)return null;switch(A){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r0.keyCodeToStr(A)}s.toElectronAccelerator=p})(ga||(ga={}));function Ga(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}function Lu(s,e){if(s===0)return null;const t=(s&65535)>>>0,n=(s&4294901760)>>>16;return n!==0?new Wv([dv(t,e),dv(n,e)]):new Wv([dv(t,e)])}function dv(s,e){const t=!!(s&2048),n=!!(s&256),r=e===2?n:t,o=!!(s&1024),p=!!(s&512),A=e===2?t:n,k=s&255;return new Cv(r,o,p,A,k)}class Cv{constructor(e,t,n,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new Wv([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class Wv{constructor(e){if(e.length===0)throw Ie("parts");this.parts=e}}class c1{constructor(e,t,n,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.scanCode=o}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}class P1{constructor(e,t,n,r,o,p){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=o,this.keyAriaLabel=p}}class Z1{}function sy(s){if(s.charCode){const t=String.fromCharCode(s.charCode).toUpperCase();return ga.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(z0){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(Wo&&e===224)return 57}else if(W0){if(e===91)return 57;if(Wo&&e===93)return 57;if(!Wo&&e===92)return 57}return Sr[e]||0}const wy=Wo?256:2048,zy=512,hv=1024,Qv=Wo?2048:256;class Y1{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=sy(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=wy),this.altKey&&(t|=zy),this.shiftKey&&(t|=hv),this.metaKey&&(t|=Qv),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Cv(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let M_=!1,h1=null;function _v(s){if(!s.parent||s.parent===s)return null;try{const e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return M_=!0,null}catch(e){return M_=!0,null}return s.parent}class Iv{static getSameOriginWindowChain(){if(!h1){h1=[];let e=window,t;do t=_v(e),t?h1.push({window:e,iframeElement:e.frameElement||null}):h1.push({window:e,iframeElement:null}),e=t;while(e)}return h1.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0;const o=this.getSameOriginWindowChain();for(const p of o){if(n+=p.window.scrollY,r+=p.window.scrollX,p.window===t||!p.iframeElement)break;const A=p.iframeElement.getBoundingClientRect();n+=A.top,r+=A.left}return{top:n,left:r}}}class Ov{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=Iv.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class v1{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){const r=e,o=e;if(typeof r.wheelDeltaY!="undefined")this.deltaY=r.wheelDeltaY/120;else if(typeof o.VERTICAL_AXIS!="undefined"&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if(e.type==="wheel"){const p=e;p.deltaMode===p.DOM_DELTA_LINE?z0&&!Wo?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")R0&&j0?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof o.HORIZONTAL_AXIS!="undefined"&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const p=e;p.deltaMode===p.DOM_DELTA_LINE?z0&&!Wo?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}function K1(s){if(Array.isArray(s)){for(var e=0,t=Array(s.length);e1?t-1:0),r=1;r/gm),Pw=ax(/^data-[\-\w.\u00B7-\uFFFF]/),Aw=ax(/^aria-[\-\w]+$/),KC=ax(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JS=ax(/^(?:\w+script|data):/i),sS=ax(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};function FS(s){if(Array.isArray(s)){for(var e=0,t=Array(s.length);e0&&arguments[0]!==void 0?arguments[0]:KS(),e=function(H2){return vE(H2)};if(e.version="2.3.1",e.removed=[],!s||!s.document||s.document.nodeType!==9)return e.isSupported=!1,e;var t=s.document,n=s.document,r=s.DocumentFragment,o=s.HTMLTemplateElement,p=s.Node,A=s.Element,k=s.NodeFilter,V=s.NamedNodeMap,X=V===void 0?s.NamedNodeMap||s.MozNamedAttrMap:V,se=s.Text,$e=s.Comment,Dt=s.DOMParser,qn=s.trustedTypes,Ro=A.prototype,Ma=$_(Ro,"cloneNode"),Nd=$_(Ro,"nextSibling"),uh=$_(Ro,"childNodes"),p0=$_(Ro,"parentNode");if(typeof o=="function"){var bv=n.createElement("template");bv.content&&bv.content.ownerDocument&&(n=bv.content.ownerDocument)}var F1=VC(qn,t),Sy=F1&&tZ?F1.createHTML(""):"",Vv=n,zv=Vv.implementation,gy=Vv.createNodeIterator,I_=Vv.createDocumentFragment,X_=Vv.getElementsByTagName,Zx=t.importNode,x2={};try{x2=ox(n).documentMode?n.documentMode:{}}catch(xA){}var TC={};e.isSupported=typeof p0=="function"&&zv&&typeof zv.createHTMLDocument!="undefined"&&x2!==9;var GS=XC,RE=EC,uT=Pw,vT=Aw,pA=JS,mD=sS,vD=KC,kE=null,mE=g_({},[].concat(FS(K_),FS(k_),FS(A_),FS(Na),FS(c2))),TD=null,V4=g_({},[].concat(FS(b2),FS(N2),FS(j2),FS(mC))),XL=null,Ik=null,DF=!0,Pk=!0,u6=!1,aA=!1,g9=!1,NX=!1,FX=!1,m9=!1,eZ=!1,Fne=!0,tZ=!1,Bne=!0,iw=!0,d2=!1,y2={},_y=null,Zy=g_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),xx=null,W_=g_({},["audio","video","img","source","image","track"]),_w=null,gC=g_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pT="http://www.w3.org/1998/Math/MathML",BE="http://www.w3.org/2000/svg",cA="http://www.w3.org/1999/xhtml",lA=cA,cD=!1,x3=null,ST=n.createElement("form"),HI=function(H2){x3&&x3===H2||((!H2||(typeof H2=="undefined"?"undefined":UC(H2))!=="object")&&(H2={}),H2=ox(H2),kE="ALLOWED_TAGS"in H2?g_({},H2.ALLOWED_TAGS):mE,TD="ALLOWED_ATTR"in H2?g_({},H2.ALLOWED_ATTR):V4,_w="ADD_URI_SAFE_ATTR"in H2?g_(ox(gC),H2.ADD_URI_SAFE_ATTR):gC,xx="ADD_DATA_URI_TAGS"in H2?g_(ox(W_),H2.ADD_DATA_URI_TAGS):W_,_y="FORBID_CONTENTS"in H2?g_({},H2.FORBID_CONTENTS):Zy,XL="FORBID_TAGS"in H2?g_({},H2.FORBID_TAGS):{},Ik="FORBID_ATTR"in H2?g_({},H2.FORBID_ATTR):{},y2="USE_PROFILES"in H2?H2.USE_PROFILES:!1,DF=H2.ALLOW_ARIA_ATTR!==!1,Pk=H2.ALLOW_DATA_ATTR!==!1,u6=H2.ALLOW_UNKNOWN_PROTOCOLS||!1,aA=H2.SAFE_FOR_TEMPLATES||!1,g9=H2.WHOLE_DOCUMENT||!1,m9=H2.RETURN_DOM||!1,eZ=H2.RETURN_DOM_FRAGMENT||!1,Fne=H2.RETURN_DOM_IMPORT!==!1,tZ=H2.RETURN_TRUSTED_TYPE||!1,FX=H2.FORCE_BODY||!1,Bne=H2.SANITIZE_DOM!==!1,iw=H2.KEEP_CONTENT!==!1,d2=H2.IN_PLACE||!1,vD=H2.ALLOWED_URI_REGEXP||vD,lA=H2.NAMESPACE||cA,aA&&(Pk=!1),eZ&&(m9=!0),y2&&(kE=g_({},[].concat(FS(c2))),TD=[],y2.html===!0&&(g_(kE,K_),g_(TD,b2)),y2.svg===!0&&(g_(kE,k_),g_(TD,N2),g_(TD,mC)),y2.svgFilters===!0&&(g_(kE,A_),g_(TD,N2),g_(TD,mC)),y2.mathMl===!0&&(g_(kE,Na),g_(TD,j2),g_(TD,mC))),H2.ADD_TAGS&&(kE===mE&&(kE=ox(kE)),g_(kE,H2.ADD_TAGS)),H2.ADD_ATTR&&(TD===V4&&(TD=ox(TD)),g_(TD,H2.ADD_ATTR)),H2.ADD_URI_SAFE_ATTR&&g_(_w,H2.ADD_URI_SAFE_ATTR),H2.FORBID_CONTENTS&&(_y===Zy&&(_y=ox(_y)),g_(_y,H2.FORBID_CONTENTS)),iw&&(kE["#text"]=!0),g9&&g_(kE,["html","head","body"]),kE.table&&(g_(kE,["tbody"]),delete XL.tbody),J_&&J_(H2),x3=H2)},fI=g_({},["mi","mo","mn","ms","mtext"]),xR=g_({},["foreignobject","desc","title","annotation-xml"]),oI=g_({},k_);g_(oI,A_),g_(oI,gx);var j4=g_({},Na);g_(j4,_x);var _U=function(H2){var EE=p0(H2);(!EE||!EE.tagName)&&(EE={namespaceURI:cA,tagName:"template"});var JT=b1(H2.tagName),sI=b1(EE.tagName);if(H2.namespaceURI===BE)return EE.namespaceURI===cA?JT==="svg":EE.namespaceURI===pT?JT==="svg"&&(sI==="annotation-xml"||fI[sI]):!!oI[JT];if(H2.namespaceURI===pT)return EE.namespaceURI===cA?JT==="math":EE.namespaceURI===BE?JT==="math"&&xR[sI]:!!j4[JT];if(H2.namespaceURI===cA){if(EE.namespaceURI===BE&&!xR[sI]||EE.namespaceURI===pT&&!fI[sI])return!1;var YL=g_({},["title","style","font","a","script"]);return!j4[JT]&&(YL[JT]||!oI[JT])}return!1},mO=function(H2){wv(e.removed,{element:H2});try{H2.parentNode.removeChild(H2)}catch(EE){try{H2.outerHTML=Sy}catch(JT){H2.remove()}}},c6=function(H2,EE){try{wv(e.removed,{attribute:EE.getAttributeNode(H2),from:EE})}catch(JT){wv(e.removed,{attribute:null,from:EE})}if(EE.removeAttribute(H2),H2==="is"&&!TD[H2])if(m9||eZ)try{mO(EE)}catch(JT){}else try{EE.setAttribute(H2,"")}catch(JT){}},IF=function(H2){var EE=void 0,JT=void 0;if(FX)H2=""+H2;else{var sI=I1(H2,/^[\r\n\t ]+/);JT=sI&&sI[0]}var YL=F1?F1.createHTML(H2):H2;if(lA===cA)try{EE=new Dt().parseFromString(YL,"text/html")}catch(JL){}if(!EE||!EE.documentElement){EE=zv.createDocument(lA,"template",null);try{EE.documentElement.innerHTML=cD?"":YL}catch(JL){}}var qL=EE.body||EE.documentElement;return H2&&JT&&qL.insertBefore(n.createTextNode(JT),qL.childNodes[0]||null),lA===cA?X_.call(EE,g9?"html":"body")[0]:g9?EE.documentElement:qL},bU=function(H2){return gy.call(H2.ownerDocument||H2,H2,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT,null,!1)},v9=function(H2){return H2 instanceof se||H2 instanceof $e?!1:typeof H2.nodeName!="string"||typeof H2.textContent!="string"||typeof H2.removeChild!="function"||!(H2.attributes instanceof X)||typeof H2.removeAttribute!="function"||typeof H2.setAttribute!="function"||typeof H2.namespaceURI!="string"||typeof H2.insertBefore!="function"},xU=function(H2){return(typeof p=="undefined"?"undefined":UC(p))==="object"?H2 instanceof p:H2&&(typeof H2=="undefined"?"undefined":UC(H2))==="object"&&typeof H2.nodeType=="number"&&typeof H2.nodeName=="string"},E5=function(H2,EE,JT){TC[H2]&&kg(TC[H2],function(sI){sI.call(e,EE,JT,x3)})},zne=function(H2){var EE=void 0;if(E5("beforeSanitizeElements",H2,null),v9(H2)||I1(H2.nodeName,/[\u0080-\uFFFF]/))return mO(H2),!0;var JT=b1(H2.nodeName);if(E5("uponSanitizeElement",H2,{tagName:JT,allowedTags:kE}),!xU(H2.firstElementChild)&&(!xU(H2.content)||!xU(H2.content.firstElementChild))&&U1(/<[/\w]/g,H2.innerHTML)&&U1(/<[/\w]/g,H2.textContent)||JT==="select"&&U1(/