(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+YoI":function(n,t,e){n.exports=e.p+"static/media/screenSnap1.47722537.jpg"},"/SQE":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"onDefault",function(){return d}),e.d(t,"clear",function(){return p}),e.d(t,"getEventLink",function(){return g}),e.d(t,"getFileOptions",function(){return h}),e.d(t,"gotoPreset",function(){return m});var a=e("tZYx"),r=e("kfXn"),o=e("rGIM"),i=e("a61M").default.CHANNEL_NUMBER>1?1:0;function c(n,t,e){n(Object(r.a)(t,e))}var u=function(){return function(n,t,e,u){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.VideoInAnalyse.getTemplateRule({channel:i,class:"BoatDetection"}),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.PTZManager("getPresets"),o.default.get("IntelliTrackerMulti")]).then(function(t){c(n,r.b.BOATRULECONFIG_INIT,{VideoAnalyseRule:t[0],TemplateRule:t[1],VideoAnalyseGlobal:t[2],Presets:t[3],IntelliTrackerMulti:t[4]}),e()}).catch(function(){u()})}},f=function(n){return function(t){c(t,r.b.BOATRULECONFIG_CHANGE,n)}},l=function(){return function(n,t,e,o){var i=t().BoatRuleConfig.vm.VRule;a.a.ConfigManager.setConfig(["VideoAnalyseRule"],[i]).then(function(){c(n,r.b.BOATRULECONFIG_SAVE),e()}).catch(function(){o()})}},s=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.PTZManager("getPresets")]).then(function(t){c(n,r.b.BOATRULECONFIG_REFRESH,{VideoAnalyseRule:t[0],VideoAnalyseGlobal:t[1],Presets:t[2]}),e()}).catch(function(){o()})}},d=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseRule")]).then(function(t){c(n,r.b.BOATRULECONFIG_DEFAULT,{VideoAnalyseRule:t[0]}),e()}).catch(function(){o()})}},p=function(){return function(n){c(n,r.b.BOATRULECONFIG_CLEAR)}},g=function(n){return function(t,e,o,i){for(var u=Math.ceil(n.length/8),f=[],l=[],s=0;s<u;s++)f[s]=n.slice(8*s,8*(s+1)),l.push(a.a.EventManager.getEventLink({code:f[s]}));return Promise.all(l).then(function(n){c(t,r.b.BOATRULECONFIG_GETEVENTLINK,{EventLink:n||[]}),o()}).catch(function(){i()})}},h=function(){return function(n,t,e,i){var u=t().BoatRuleConfig.vm;a.a.Speak.getCaps().then(function(t){var f,l=t.caps,s="";o.default.get("AudioFileManager").then(function(t){l?l.AudioPlayPath.map(function(n){n.SupportUpload?(s=n.Path,l.maxNum=n.MaxFileUploadNum):f=n.Path}):(s=t.CustomAudioPath?t.CustomAudioPath.split(";")[0]:"",f=t.PlayRootPath?t.PlayRootPath.split(";")[0]:"");var o=[];a.a.FileManager.instance().then(function(t){a.a.FileManager.list(f,t.result).then(function(i){i&&i.elementInfo.forEach(function(n){o.push(n.file.path)}),a.a.FileManager.list(s,t.result).then(function(t){t&&t.elementInfo&&t.elementInfo.forEach(function(n){o.push(n.file.path)}),u.fileOptions=[],o.forEach(function(n){u.fileOptions.push({value:n,text:n.split("/").pop()})}),c(n,r.b.BOATRULECONFIG_CHANGE,u),e()})})}).catch(function(){i()})}).catch(function(){i()})}).catch(function(){i()})}},m=function(){return function(n,t,e,r){var o=t().BoatCompleteConfig.vm,i=o.channel,c=o.curPreset;a.a.PTZManager("gotoPreset",i,{index:c}).then(function(){e()}).catch(function(){r()})}}},"/T9o":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"clear",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"onDefault",function(){return d}),e.d(t,"getTemp",function(){return p}),e.d(t,"getTestTemp",function(){return g});var a=e("tZYx"),r=e("1D23"),o=e("rGIM");function i(n,t,e){n(Object(r.a)(t,e))}var c=function(){return function(n,t,e,c){return Promise.all([o.default.get("SupportTempSensing"),o.default.get("PtzHeater"),o.default.get("PtzCaps"),a.a.ConfigManager.getConfig("PtzHeater")]).then(function(t){i(n,r.b.HEATERCONFIGTPC_INIT,{SupportTempSensing:t[0],PtzHeater:t[1],PtzCaps:t[2],PtzHeaterConfig:t[3]}),e()}).catch(function(n){c()})}},u=function(){return function(n){i(n,r.b.HEATERCONFIGTPC_CLEAR)}},f=function(n){return function(t){i(t,r.b.HEATERCONFIGTPC_CHANGE,n)}},l=function(){return function(n,t,e,o){var c=t().HeaterConfigTPC.rpc.PtzHeaterConfig;i(n,r.b.HEATERCONFIGTPC_SAVE),a.a.ConfigManager.setConfig("PtzHeater",c).then(function(){e()}).catch(function(n){o()})}},s=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getConfig("PtzHeater")]).then(function(t){i(n,r.b.HEATERCONFIGTPC_REFRESH,{PtzHeaterConfig:t[0]}),e()}).catch(function(){o()})}},d=function(){return function(n,t,e,o){a.a.ConfigManager.getDefault("PtzHeater").then(function(t){i(n,r.b.HEATERCONFIGTPC_DEFAULT,{PtzHeaterConfig:t}),e()}).catch(function(){o()})}},p=function(){return function(n,t,e,r){var o=t(),i=o.HeaterConfigTPC,c=i.vm,u=i.caps,f=o.publicState.$t,l=u.heaterTypes.indexOf(c.heaterType);u.hasTempSensorArr[l]?a.a.FaceBoard.instance().then(function(n){return a.a.FaceBoard.getTemperatureEx("All",n.result).then(function(n){c.tempText=f("com.Temeper")+": "+n.info.CPU[l+1]+"\u2103",e()})}).catch(function(){r()}):e("noNeedRefresh")}},g=function(){return function(n,t,e,r){var o=t(),i=o.HeaterConfigTPC.vm,c=o.publicState.$t,u=null;a.a.FaceBoard.instance().then(function(n){return a.a.FaceBoard.getTemperatureEx("All",n.result).then(function(n){i.testText=c("com.Temeper")+": "+n.info.CPU[1]+"\u2103",i.testText=i.testText+" "+c("com.Spend")+": "+n.info.CPU[4]+"s",i.testText=i.testText+" "+c("per.InitialTemp")+": "+n.info.CPU[2]+"\u2103",5e3!==n.info.CPU[3]?(i.testText=i.testText+" "+c("com.MaxLimitTemp")+": "+n.info.CPU[3]+"\u2103",i.testEnable=!1,u&&(clearTimeout(u),u=null),e()):(u&&(clearTimeout(u),u=null),n.info.CPU[4]>179?(i.testText=c("com.Time")+": 180s"+c("com.HeatFailure"),i.testEnable=!1,e("Fail")):e("getTestTemp"))})}).catch(function(){r()})}}},"/wXC":function(n,t,e){"use strict";e.d(t,"b",function(){return o}),e.d(t,"c",function(){return i}),e.d(t,"a",function(){return c});var a=e("8UeF"),r=e("tZYx");function o(n){return{type:a.a,data:n}}function i(n){return{type:a.c,data:n}}var c=function(n){return function(t,e,a,o){r.a.intelliScheme.getSchemeInfo(n).then(function(n){var e=!!n.Infos[0].masterSlaveMode;t(i(e)),a(n)}).catch(function(){o()})}}},"03UE":function(n,t,e){n.exports=e.p+"static/media/logo2.41aa5943.png"},"0DkV":function(n,t,e){"use strict";e.d(t,"h",function(){return s}),e.d(t,"j",function(){return d}),e.d(t,"f",function(){return p}),e.d(t,"g",function(){return g}),e.d(t,"i",function(){return h}),e.d(t,"e",function(){return m}),e.d(t,"a",function(){return C}),e.d(t,"c",function(){return S}),e.d(t,"d",function(){return v}),e.d(t,"b",function(){return b});var a=e("DjBF"),r=(e("tL+A"),e("QpBz")),o=e.n(r),i=e("npfB"),c=e("tZYx"),u=e("LvDl"),f=e.n(u),l=e("a61M");function s(n){return{type:i.e,data:n}}function d(n){return{type:i.a,data:n}}function p(n){return{type:i.c,data:n}}function g(n){return{type:i.d,data:n}}function h(n){return{type:i.f,data:n}}function m(n){return function(t,e,a,r){e().publicState.$t;l.default.DeviceType.indexOf("SD")>-1&&l.default.SupportIntelliScheme?c.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal").then(function(n){t(s(n)),a()}):c.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(n){t(s(n)),a()})}}function C(n,t,e,a,r){return function(t,i,u,f){var s=i().publicState.$t;l.default.DeviceType.indexOf("SD")>-1&&l.default.SupportIntelliScheme?c.a.intelliScheme.getConfig(a,n).then(function(n){if(t(d(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;t(p(a))}"refresh"!==e||r||o.a.success(s("com.Operateingsuccess")),u()}).catch(function(n){"refresh"!==e||r||o.a.error(s("com.Operateingfailure"))}):c.a.ConfigManager.getConfig(n).then(function(n){if(t(d(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;t(p(a))}"refresh"===e&&o.a.success(s("com.Operateingsuccess")),u()}).catch(function(n){"refresh"===e&&o.a.error(s("com.Operateingfailure"))})}}function S(n,t,e,a){return function(n,e,a,r){c.a.VideoInAnalyse.getTemplateCalibrate({Channel:t}).then(function(t){n(g(f.a.clone(t))),a()}).catch(function(n){})}}var v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"WaterMonitor";return function(e,r,o,u){var f=c.a.VideoInAnalyse.getTemplateSceneSnapShotWithRule2({Class:t,Channel:n,RuleType:"All"});Promise.all([f]).then(function(n){var r=Object(a.a)(n,1)[0];e({type:i.b,data:{templateSnap:r[t]}}),o()}).catch(function(n){u(n)})}};function b(n){return function(n,t,e,a){t().publicState.$t;c.a.ConfigManager.getConfig("SceneSnapShotWithRule2").then(function(t){n({type:i.b,data:{SceneSnapShotWithRule2:t}}),e()}).catch(function(n){})}}},"0lfz":function(n,t,e){"use strict";e.d(t,"c",function(){return s}),e.d(t,"a",function(){return d}),e.d(t,"b",function(){return p}),e.d(t,"d",function(){return g});var a=e("upjz"),r=e("DjBF"),o=e("V/bf"),i=e("tZYx"),c=e("rGIM"),u=e("TEr5"),f=null;function l(n){return{type:o.a,data:n}}function s(n){return{type:o.c,data:n}}var d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,o){Promise.all([c.default.get("VideoInputCaps",null,n),c.default.get("VideoInputCapsEx",null,n)]).then(function(n){var e=Object(r.a)(n,2),o=e[0],i=e[1];o.FishEye&&i.VideoInFishEye?(t(l(i.VideoInFishEye)),a(i.VideoInFishEye)):(t(l(!1)),a(!1))})}},p=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,r,o){var c=e(),l=c.publicState,d=l.panel,p=l.titleMenu,g=c.webCaps;i.a.ConfigManager.getConfig("FishEye").then(function(e){var o=e[n].CalibrateMode,c=g.isKoreaParking&&"FourEPtzRegion"===o,l=!(("Original"===o||c)&&1===e[n].PlaceHolder);if(t(s({config:e,isOriginal:"Original"===o,hideIVS:l,ocxInstallMode:e[n].PlaceHolder,ocxCalibrateMode:"1"})),f||(f=Object(a.a)(p)),l){var h=["AIConfig","report","FaceAnalysisConfig"],m=[],C=[];d.forEach(function(n){h.includes(n.FamilyKey)||m.push(n)}),p.forEach(function(n){h.includes(n.FamilyKey)||C.push(n)}),m.length&&t(Object(u.r)(m)),C.length&&t(Object(u.y)(C)),i.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){t[n]&&t[n].Scene&&(t[n].Scene.Type=null,t[n].Scene.TypeList=null,i.a.ConfigManager.setConfig("VideoAnalyseGlobal",t))})}else t(Object(u.y)(f));r(e)}).catch(function(){o()})}},g=function(n){return function(t){t({type:o.d,data:n})}}},"2cyI":function(n,t,e){"use strict";e.d(t,"h",function(){return g}),e.d(t,"o",function(){return h}),e.d(t,"l",function(){return m}),e.d(t,"n",function(){return C}),e.d(t,"j",function(){return y}),e.d(t,"a",function(){return E}),e.d(t,"i",function(){return T}),e.d(t,"f",function(){return M}),e.d(t,"b",function(){return A}),e.d(t,"m",function(){return I}),e.d(t,"e",function(){return O}),e.d(t,"c",function(){return P}),e.d(t,"k",function(){return R}),e.d(t,"d",function(){return L}),e.d(t,"g",function(){return D});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=(e("tL+A"),e("QpBz")),c=e.n(i),u=e("DDbh"),f=e("tZYx"),l=e("R+FV"),s=e("a61M"),d=e("rGIM"),p=e("h/sm");function g(n){return{type:u.a,data:n}}function h(n){return{type:u.f,data:n}}function m(n){return{type:u.b,data:n}}function C(n){return{type:u.d,data:n}}function S(n){return{type:u.e,data:n}}var v=function(n,t){for(var e=[],a=0;a<=s.default.MaxExtraStream;a++)e.push({Compression:"H.264",Policy:0});for(var r=[n[t].MainFormat[0].Video],o=0;o<s.default.MaxExtraStream;o++)r.push(n[t].ExtraFormat[o].Video);return r.length=s.default.MaxExtraStream+1,r.map(function(n,t){e[t].Compression=n.Compression}),e},b=function(n){return Object(p.getFrame)(n.Video.Width,n.Video.Height)},y=function(n){var t=n.config,e=n.table,a=n.VideoEncode,r=n.EncodeCrop,o=n.curChannel,i=void 0===o?0:o,u=n.videoMainStreamType,d=void 0===u?0:u;return function(n,o,u,p){var h=o(),m=h.publicState.$t,C=h.VideoEncode,v=C.CropCaps,y=C.tempSmartEncode,E=C.SmartEncodeCaps,T=!1;if(E&&1===E[0]&&s.default.SmartEncodeChangeNeedReboot&&y.map(function(n,t){t===i&&a.SmartEncode&&n.Enable!==a.SmartEncode[t].Enable&&(T=!0)}),n(S(!0)),s.default.MaxExtraStream>0){var M=Object(l.g)(e[t.indexOf("Encode")]);M.map(function(n){n.ExtraFormat.map(function(n){n&&!1===n.VideoEnable&&(n.AudioEnable=!1)})}),e[t.indexOf("Encode")]=M}f.a.ConfigManager.setConfig(t,e).then(function(t){for(var e=0,o=0;o<t.length;o++){var s=t[o];if(!s.result)e=1,s.params.options.includes("CapsNotSupport")&&(e=2)}Object(l.i)({params:t,$t:m,isDefaultTip:!1})?(n(S(!1)),u()):1===e?(c.a.error(m("com.Operateingfailure")),n(S(!1))):2===e?(c.a.error(m("com.RorateresolutiongSavingFailureTip")),n(S(!1))):(a.Loding=!1,v&&(v.Extra2&&v.Extra2.Support||v.AllStream&&v.AllStream.Support)?f.a.ConfigManager.setConfig("EncodeCrop",r).then(function(){c.a.success(m("com.Operateingsuccess")),a.EncodeCrop=r,a.MainResolution=b(a.encodeFormat[i].MainFormat[d]),n(g(a)),T&&(f.a.MagicBox.reboot(),c.a.info(m("com.RebootingTip"),0),setTimeout(function(){window.location.reload()},11e3))}).catch(function(){c.a.error(m("com.Operateingfailure"))}):(c.a.success(m("com.Operateingsuccess")),a.MainResolution=b(a.encodeFormat[i].MainFormat[d]),n(g(a)),T&&(f.a.MagicBox.reboot(),c.a.info(m("com.RebootingTip"),0),setTimeout(function(){window.location.replace("/")},11e3))),u(123))}).catch(function(){c.a.error(m("com.Operateingfailure")),n(S(!1))})}},E=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{curChannel:0}).curChannel;return function(t,e,a,r){f.a.ConfigManager.getConfig(["Encode","VideoWaterMark","MediaGlobal","EncodeEncrypt","EncodeAuth","VideoImageControl","EncodeCrop","NetAutoAdaptEncode","VideoOut","VideoAnalyseGlobal","SmartEncode","VideoWidget","GB35114Level","VideoStandard","AICoding"]).then(function(e){var o,i,c,u=e[0].result&&e[0].params.table||null,d=e[1].result&&e[1].params.table||[],p=e[2].result&&e[2].params.table||{},h=e[3].result&&e[3].params.table||[],m=e[4].result&&e[4].params.table||[],C=e[5].result&&e[5].params.table||{},S=e[6].result&&e[6].params.table||null,y=e[7].result&&e[7].params.table||{},E=e[8].result&&e[8].params.table||{},T=e[9].result&&e[9].params.table||{},M=e[10].result&&e[10].params.table||null,A=e[11].result&&e[11].params.table||null,I=e[12].result&&e[12].params.table||null,O=e[13].result&&e[13].params.table||null,P=e[14].result&&e[14].params.table||null,R=b(u[n].MainFormat[0]),L={config:u,stream:"All",channel:0};-1!==s.default.DeviceType.indexOf("TPC")&&(L={config:u,channel:0});var D=v(u,n);f.a.getEncode("getConfigCaps",L).then(function(e){o=e.caps||[],f.a.getEncode("getCropCaps",{channel:n}).then(function(n){i=n&&n.caps||{}}).finally(function(){f.a.getEncode("getSmartCaps",{channel:n,config:D}).then(function(n){c=M&&n&&n.caps||null}).catch(function(){c=null}).finally(function(){var n={encodeFormat:u,WaterMark:d,MediaGlobal:p,EncodeEncrypt:h,EncodeAuth:m,VideoImageControl:C,EncodeCrop:S,NetAutoAdaptEncode:y,VideoOut:E,VideoAnalyseGlobal:T,encodeCaps:o,CropCaps:i,SmartEncodeCaps:c,SmartEncode:M,tempSmartEncode:Object(l.g)(M),MainResolution:R,VideoWidget:A,GB35114Level:I,VideoStandard:O,AICoding:P,curMainRes:R,Loding:!1};t(g(n)),a()})}).catch(function(){r()})}).catch(function(){r()})}).catch(function(){t(S(!1)),r()})}},T=function(n){var t=n.encodeFormat,e=n.curChannel,a=void 0===e?0:e,r=n.index,o=n.compression,i=n.IsFirstEntry;return function(n,e){var c,u,l,d=e().VideoEncode.SmartEncode,p={config:t,stream:"All",channel:0};-1!==s.default.DeviceType.indexOf("TPC")&&(p={config:t,channel:0});var h=v(t,a);h[r].Compression=o,f.a.getEncode("getConfigCaps",p).then(function(e){c=e.caps||[],u=b(t[a].MainFormat[0]),f.a.getEncode("getSmartCaps",{channel:a,config:h}).then(function(n){l=d&&n&&n.caps||[]}).catch(function(){l=null}).finally(function(){n(g({encodeCaps:c,SmartEncodeCaps:l,curMainRes:u,IsFirstEntry:i}))})})}},M=function(n){var t=n.curChannel,e=void 0===t?0:t,a=n.IsFirstEntry,i=n.isActive,u=void 0!==i&&i;return function(n,t,i,d){var p=t(),h=p.publicState.$t,m=p.VideoEncode.isConflictTVoutExtra2;n(S(!0));var C=["Encode","VideoWaterMark","EncodeEncrypt","EncodeAuth","EncodeCrop","NetAutoAdaptEncode","VideoAnalyseGlobal","SmartEncode","VideoStandard","AICoding"];m&&u&&C.push("VideoOut"),f.a.ConfigManager.getConfig(C).then(function(t){var d,p,m=t[0].result&&t[0].params.table||null,S=t[1].result&&t[1].params.table||[],y=t[2].result&&t[2].params.table||[],E=t[3].result&&t[3].params.table||[],T=t[4].result&&t[4].params.table||null,M=t[5].result&&t[5].params.table||{},A=t[6].result&&t[6].params.table||{},I=t[7].result&&t[7].params.table||null,O=t[8].result&&t[8].params.table||null,P=t[9].result&&t[9].params.table||null,R=t[C.indexOf("VideoOut")]&&t[C.indexOf("VideoOut")].result&&t[C.indexOf("VideoOut")].params.table,L=b(m[e].MainFormat[0]),D={config:m,stream:"All",channel:0};-1!==s.default.DeviceType.indexOf("TPC")&&(D={config:m,channel:0});var V=v(m,e);f.a.getEncode("getConfigCaps",D).then(function(){var t=Object(o.a)(r.a.mark(function t(o){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return d=o.caps||[],t.next=3,f.a.getEncode("getSmartCaps",{channel:e,config:V}).then(function(n){p=I&&n&&n.caps||null}).catch(function(){p=null}).finally(function(){var t={encodeFormat:m,WaterMark:S,EncodeEncrypt:y,EncodeAuth:E,EncodeCrop:T,NetAutoAdaptEncode:M,VideoAnalyseGlobal:A,encodeCaps:d,SmartEncodeCaps:p,SmartEncode:I,VideoStandard:O,AICoding:P,tempSmartEncode:Object(l.g)(I),MainResolution:L,curMainRes:L,IsFirstEntry:a,Loding:!1};R&&(t.VideoOut=R),n(g(t)),!u&&c.a.success(h("com.Operateingsuccess"))});case 3:i();case 4:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}())}).catch(function(){c.a.error(h("com.Operateingfailure")),!u&&n(S(!1)),d()})}},A=function(n){var t=n.curChannel,e=void 0===t?0:t,a=(n.channelNumber,n.IsFirstEntry);return function(n,t,i,u){var d=t(),p=d.publicState.$t,h=d.VideoEncode,m=h.encodeFormat,C=h.WaterMark,y=h.NetAutoAdaptEncode,E=h.EncodeCrop,T=h.SmartEncode,M=h.AICoding;n(S(!0));var A=Object(l.g)(m),I=Object(l.g)(C),O=Object(l.g)(y),P=Object(l.g)(E),R=Object(l.g)(T),L=Object(l.g)(M);f.a.ConfigManager.getDefault(["Encode","VideoWaterMark","EncodeEncrypt","EncodeAuth","EncodeCrop","NetAutoAdaptEncode","SmartEncode","AICoding"]).then(function(t){var u,d,h=t[0].result&&t[0].params.table||null,m=t[1].result&&t[1].params.table||[],C=t[2].result&&t[2].params.table||[],S=t[3].result&&t[3].params.table||[],y=t[4].result&&t[4].params.table||null,E=t[5].result&&t[5].params.table||{},T=t[6].result&&t[6].params.table||null,M=t[7].result&&t[7].params.table||null;h&&h[e].MainFormat.map(function(n,t){A[e].MainFormat[t].Video=n.Video}),h&&h[e].ExtraFormat.map(function(n,t){A[e].ExtraFormat[t]&&(A[e].ExtraFormat[t].Video=n.Video,A[e].ExtraFormat[t].VideoEnable=n.VideoEnable)}),E&&(O[e]=E[e]),T&&(R[e]=T[e]),y&&(P[e]=y[e]),M&&(L[e]=M[e]);var D=b(A[e].MainFormat[0]);m&&(I[e]=m[e]);var V={config:A,stream:"All",channel:0};-1!==s.default.DeviceType.indexOf("TPC")&&(V={config:A,channel:0});var F=v(A,e);f.a.ConfigManager.getConfig("VideoStandard").then(function(t){var s=t;f.a.getEncode("getConfigCaps",V).then(function(){var t=Object(o.a)(r.a.mark(function t(o){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=o.caps||[],t.next=3,f.a.getEncode("getSmartCaps",{channel:e,config:F}).then(function(n){d=T&&n&&n.caps||null}).catch(function(){d=null}).finally(function(){var t={encodeFormat:A,WaterMark:I,EncodeEncrypt:C,EncodeAuth:S,EncodeCrop:P,NetAutoAdaptEncode:O,encodeCaps:u,SmartEncodeCaps:d,SmartEncode:Object(l.g)(R),VideoStandard:s,AICoding:Object(l.g)(L),tempSmartEncode:R,MainResolution:D,curMainRes:D,IsFirstEntry:a,Loding:!1};n(g(t)),c.a.success(p("com.OperateingSuccessTip"))});case 3:i();case 4:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}())})}).catch(function(){n(S(!1)),c.a.error(p("com.Operateingfailure")),u()})}};function I(n){return{type:u.c,data:n}}var O=function(){return function(n,t,e,a){f.a.ConfigManager.getConfig("FlexStream").then(function(t){n(I(t)),e(!0)}).catch(function(){a(!1)})}},P=function(){return function(n,t,e,a){f.a.ConfigManager.getDefault("FlexStream").then(function(t){n(I(t)),e(!0)}).catch(function(){a(!1)})}},R=function(n){return function(t,e,a,r){var o=e().publicState.$t;t(S(!0)),f.a.ConfigManager.setConfig("FlexStream",n).then(function(n){c.a.success(o("com.Operateingsuccess")),t(S(!1)),a(n)}).catch(function(n){c.a.error(o("com.Operateingfailure")),t(S(!1)),r(n)})}},L=function(){return function(n,t,e,a){d.default.get("EncodeCrop").then(function(t){n(g({EncodeCropPD:t})),e(!0)}).catch(function(){a(!1)})}},D=function(n){return function(t,e,a,r){var o,i=e().VideoEncode,c=i.encodeFormat,u=i.SmartEncode,l=v(c,n);return f.a.getEncode("getSmartCaps",{channel:n,config:l}).then(function(n){o=u&&n&&n.caps||null,a()}).catch(function(){o=null,r()}).finally(function(){t(g({SmartEncodeCaps:o}))})}}},"35Yu":function(n,t,e){"use strict";e.r(t),e.d(t,"getCaps",function(){return m}),e.d(t,"getData",function(){return C}),e.d(t,"setData",function(){return S}),e.d(t,"getDefaultData",function(){return v}),e.d(t,"changeChannel",function(){return b}),e.d(t,"updateSmartKitchenCurClassRules",function(){return h}),e.d(t,"updateSmartKitchenConfig",function(){return p}),e.d(t,"updateSmartKitchenData",function(){return g});var a=e("upjz"),r=e("jQsN"),o=e.n(r),i=e("a1D8"),c=e("DjBF"),u=e("butC"),f=e("uOCl"),l=e("tZYx"),s=e("a61M"),d=e("rGIM"),p=function(n){return{type:f.c,data:n}},g=function(n){return{type:f.e,data:n}},h=function(n){return{type:f.d,data:n}},m=function(n){return function(){var t=Object(u.a)(o.a.mark(function t(e,a,r,u){var p,h,m,C,S,v,b,y,E,T,M,A,I,O,P,R,L;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p=a(),h=p.SmartKitchen.curClass,m=s.default.ChannelCapsInfo[n].SupportedScenes[h],C=m.SupportedRules,S=Object.keys(C),v=l.a.VideoInAnalyse.getTemplateRule({class:h,channel:n}),b=l.a.EventManager.getEventLink({code:S}).catch(function(){return!1}),y=l.a.devVideoEncodeManager("getCaps",{},n).catch(function(){return!1}),E=d.default.get("VideoInputCapsEx",{Name:"All"},n),t.next=10,Promise.all([v,b,y,E]);case 10:T=t.sent,M=Object(c.a)(T,4),A=M[0],I=M[1],O=M[2],P=M[3],R={},O&&O.caps&&O.caps.DynamicTrackROI,P.FaceAutoExposure&&P.FaceAutoExposure.Support,m.CutoutPolicy&&m.CutoutPolicy.length&&m.CutoutPolicy,L=["VideoAnalyseRule","VideoAnalyseModule"],(I&&I.name).forEach(function(n,t){if(n.includes("default"))R[S[t]]=Object(i.a)({},s.default.EventCaps);else{var e=Object(i.a)({},s.default.EventCaps,s.default.DefaultEvent);n.forEach(function(n){e[n]=!0}),R[S[t]]=e}}),e(g({curChannel:n})),e((o={templateRule:A[h],eventLink:R,ruleCaps:m.SupportedRules,configNames:L},{type:f.a,data:o})),r();case 28:case"end":return t.stop()}var o},t)}));return function(n,e,a,r){return t.apply(this,arguments)}}()},C=function(){return function(){var n=Object(u.a)(o.a.mark(function n(t,e,a,r){var i,c,u,f,s,d,p,h,m,C;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=e(),c=i.SmartKitchen,u=c.curChannel,f=c.curClass,s=c.curPresetId,d=c.caps.configNames,n.next=3,l.a.ConfigManager.getConfig(d).catch(function(){return!1});case 3:if(p=n.sent,h={},p){n.next=8;break}return r(),n.abrupt("return",!1);case 8:d.forEach(function(n,t){h[n]=p[t].params.table}),m=h.VideoAnalyseRule[u].filter(function(n){return n.Class===f&&n.PtzPresetId===s}),C=h.VideoAnalyseRule[u].filter(function(n){return n.Class!==f}),t(g({configJSON:h,curClassRules:m,otherRulesNum:C.length})),a();case 13:case"end":return n.stop()}},n)}));return function(t,e,a,r){return n.apply(this,arguments)}}()},S=function(){return function(n,t,e,a){var r=t().SmartKitchen,o=r.configJSON,i=r.caps.configNames,c=r.curChannel,u=r.curClass,f=r.curPresetId,s=i.map(function(n){return o[n]});n(g({configJSON:o})),s[i.indexOf("VideoAnalyseRule")][c]=s[i.indexOf("VideoAnalyseRule")][c].map(function(n){return n.Class===u&&"SmartKitchen"===n.ClassAlias&&n.PtzPresetId===f&&(n.Config.ChefClothesEnable=n.Config.ChefClothesColors.length>0),n}),l.a.ConfigManager.setConfig(i,s).then(function(){e()}).catch(function(){a()})}},v=function(){return function(){var n=Object(u.a)(o.a.mark(function n(t,e,r,i){var c,u,f,s,d,p,h,m,C,S;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=e(),u=c.SmartKitchen,f=u.configJSON,s=u.curChannel,d=u.curClass,p=u.curPresetId,h=u.caps.configNames,n.next=3,l.a.ConfigManager.getDefault(h).catch(function(){return!1});case 3:if(m=n.sent,C=f.VideoAnalyseRule[s].filter(function(n){return n.Class!==d}),m){n.next=8;break}return i(),n.abrupt("return",!1);case 8:h.forEach(function(n,t){var e=m[t].params.table,r=[];switch(n){case"VideoAnalyseRule":r=e[s].filter(function(n){return n.Class===d}),f.VideoAnalyseRule[s]=[].concat(Object(a.a)(C),Object(a.a)(r));break;case"VideoAnalyseModule":e[s].forEach(function(n,t){n.Type===d&&(f.VideoAnalyseModule[s][t]=n)});break;case"FaceSnapshot":e[s].Class===d?f.FaceSnapshot[s].CutoutPolicy=e[s].CutoutPolicy:e[s].ExtraOther.forEach(function(n){n.Class===d&&(f.FaceSnapshot[s].CutoutPolicy=n.CutoutPolicy)});break;case"VideoInFaceAutoExposure":f.VideoInFaceAutoExposure[s]=e[s];break;case"VideoEncodeROI":f.VideoEncodeROI[s].DynamicTrack=e[s].DynamicTrack}}),S=f.VideoAnalyseRule[s].filter(function(n){return n.Class===d&&n.PtzPresetId===p}),t(g({configJSON:f,curClassRules:S,otherRulesNum:C.length})),r();case 12:case"end":return n.stop()}},n)}));return function(t,e,a,r){return n.apply(this,arguments)}}()},b=function(n){return function(t,e,a,r){var o=e().SmartKitchen,i=o.configJSON,c=o.curClass,u=o.curPresetId,f=i.VideoAnalyseRule[n].filter(function(n){return n.Class===c&&n.PtzPresetId===u}),l=i.VideoAnalyseRule[n].filter(function(n){return n.Class!==c});t(g({curChannel:n,curClassRules:f,otherRulesNum:l.length})),a()}}},"3OWX":function(n,t,e){"use strict";e.d(t,"f",function(){return d}),e.d(t,"h",function(){return p}),e.d(t,"d",function(){return g}),e.d(t,"e",function(){return h}),e.d(t,"g",function(){return m}),e.d(t,"c",function(){return C}),e.d(t,"b",function(){return S}),e.d(t,"a",function(){return v});var a=e("a1D8"),r=(e("tL+A"),e("QpBz")),o=e.n(r),i=e("tgX9"),c=e("tZYx"),u=e("a61M"),f=e("LvDl"),l=e.n(f);function s(n){return{type:i.b,data:n}}function d(n){return{type:i.e,data:n}}function p(n){return{type:i.a,data:n}}function g(n){return{type:i.c,data:n}}function h(n){return{type:i.d,data:n}}function m(n){return{type:i.f,data:n}}function C(n){return function(t,e,a,r){e().publicState.$t;u.default.SupportIntelliScheme&&u.default.DeviceType.indexOf("SD")>-1?c.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal").then(function(n){t(d(n)),a()}):c.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(n){t(d(n)),a()})}}function S(n,t,e,a){return function(r,i,f,s){var d=i().publicState.$t;u.default.SupportIntelliScheme&&u.default.DeviceType.indexOf("SD")>-1?c.a.intelliScheme.getConfig(a,n).then(function(n){if(r(p(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;r(g(a)),r(h(l.a.clone(a[t][0])))}"refresh"===e&&o.a.success(d("com.Operateingsuccess")),f()}).catch(function(n){"refresh"===e&&o.a.error(d("com.Operateingfailure"))}):c.a.ConfigManager.getConfig(n).then(function(n){if(r(p(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;r(g(a)),r(h(l.a.clone(a[t][0])))}"refresh"===e&&o.a.success(d("com.Operateingsuccess")),f()}).catch(function(n){"refresh"===e&&o.a.error(d("com.Operateingfailure"))})}}var v=function(){return function(n,t,e,r){if(u.default.EventCaps){var o=t().ParkingSpaceConfig.linkEvent;c.a.EventManager.getEventLink({code:["CrowdDetection"]}).then(function(t){o=Object(a.a)({},u.default.EventCaps,u.default.DefaultEvent),t.name.forEach(function(n,t){n.forEach(function(n,t){"default"===n?o=u.default.EventCaps:o[n]=!0})}),n(s({linkEvent:o})),e(!0)}).catch(function(t){n(s({linkEvent:u.default.EventCaps})),e(!0)})}else e(!1)}}},"3SB/":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return o}),e.d(t,"change",function(){return i}),e.d(t,"save",function(){return c}),e.d(t,"refresh",function(){return u}),e.d(t,"clear",function(){return f}),e.d(t,"getEventLink",function(){return l});e("tZYx");var a=e("5I/Z");e("rGIM");function r(n,t,e){n(Object(a.a)(t,e))}var o=function(){return function(n,t,e,o){return Promise.all([]).then(function(t){r(n,a.b.LANEEVENTCONFIG_INIT,{}),e()}).catch(function(){o()})}},i=function(n){return function(t,e,o,i){return Promise.all([]).then(function(){r(t,a.b.LANEEVENTCONFIG_CHANGE,n),o()}).catch(function(){i()})}},c=function(){return function(n,t,e,a){}},u=function(){return function(n,t,e,o){return Promise.all([]).then(function(t){r(n,a.b.LANEEVENTCONFIG_REFRESH,{}),e()}).catch(function(){o()})}},f=function(){return function(n){r(n,a.b.LANEEVENTCONFIG_CLEAR)}},l=function(n){return function(n,t,e,a){}}},"3UGw":function(n,t,e){"use strict";e.d(t,"l",function(){return l}),e.d(t,"k",function(){return s}),e.d(t,"d",function(){return d}),e.d(t,"g",function(){return p}),e.d(t,"f",function(){return g}),e.d(t,"j",function(){return h}),e.d(t,"c",function(){return m}),e.d(t,"a",function(){return C}),e.d(t,"h",function(){return S}),e.d(t,"e",function(){return v}),e.d(t,"b",function(){return b}),e.d(t,"i",function(){return y});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("p38c"),u=e("tZYx"),f=(e("rGIM"),e("a61M"));e("33yf");function l(n){return{type:c.b,data:n}}function s(n){return{type:c.a,data:n}}var d=function(n){return function(t,e,a,r){if(f.default.EventCaps){var o={};u.a.EventManager.getEventLink({code:n}).then(function(e){e.name.forEach(function(t,e){o[n[e]]=Object(i.a)({},f.default.EventCaps,f.default.DefaultEvent),t.forEach(function(t,a){"default"===t?o[n[e]]=f.default.EventCaps:o[n[e]][t]=!0})}),t(l({ruleEventCaps:o})),a(!0)}).catch(function(n){t(l({linkEvent:f.default.EventCaps})),a(!0)})}else a(!1)}},p=function(n){return function(t,e,a,r){u.a.VideoInAnalyse.getTemplateRule(n).then(function(n){var e=n.StereoBehavior;t(l({ruleTemp:e})),a(!0)}).catch(function(n){a(!1)})}},g=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){e.next=6;break}return e.next=4,u.a.intelliScheme.getConfig(t,n).then(function(n){s=n.map(function(n){return n.params.table})});case 4:e.next=8;break;case 6:return e.next=8,u.a.ConfigManager.getConfig(n).then(function(n){s=n.map(function(n){return n.params.table})});case 8:a(l({cfgData:s})),i(!0);case 10:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},h=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,l){var s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=!1,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){a.next=6;break}return a.next=4,u.a.intelliScheme.setConfig(e,n,t).then(function(){}).catch(function(){s=!0});case 4:a.next=8;break;case 6:return a.next=8,u.a.ConfigManager.setConfig(n,t).then(function(){}).catch(function(){s=!0});case 8:s?l():c(!0);case 9:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},m=function(n){return function(t,e,a,r){var o=null;u.a.ConfigManager.getDefault(n).then(function(n){o=n.map(function(n){return n.params.table}),a(o)}).catch(function(){a(!1)})}},C=function(n,t){return function(e,a,r,o){var i={};f.default.SupportIntelliScheme?u.a.intelliScheme.getConfig(t,n).then(function(t){for(var a=0;a<n.length;a++)i[n[a]]=t[a].params.table;e(s(i)),r(!0)}):u.a.ConfigManager.getConfig(n).then(function(t){for(var a=0;a<n.length;a++)i[n[a]]=t[a].params.table;e(s(i)),r(!0)})}},S=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,l){var s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=!1,!f.default.SupportIntelliScheme){a.next=6;break}return a.next=4,u.a.intelliScheme.setConfig(e,n,t).then(function(n){}).catch(function(){s=!0});case 4:a.next=8;break;case 6:return a.next=8,u.a.ConfigManager.setConfig(n,t).then(function(n){}).catch(function(){s=!0});case 8:s?l():c(!0);case 9:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},v=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){e.next=6;break}return e.next=4,u.a.intelliScheme.getConfig(t,n).then(function(n){s=n});case 4:e.next=8;break;case 6:return e.next=8,u.a.ConfigManager.getConfig(n).then(function(n){s=n});case 8:a(l({moduleCfgData:s})),i(!0);case 10:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},b=function(n){return function(t,e,a,r){u.a.ConfigManager.getDefault(n).then(function(n){t(l({moduleCfgData:n})),a()}).catch(function(n){r(n)})}},y=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,l){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){a.next=6;break}return a.next=4,u.a.intelliScheme.setConfig(e,n,t);case 4:a.next=8;break;case 6:return a.next=8,u.a.ConfigManager.setConfig(n,t);case 8:c(),a.next=14;break;case 11:a.prev=11,a.t0=a.catch(0),l(a.t0);case 14:case"end":return a.stop()}},a,null,[[0,11]])}));return function(n,t,e,r){return a.apply(this,arguments)}}()}},4051:function(n,t,e){n.exports=e.p+"static/media/RepeatEnter.5139bfb2.png"},"5BCP":function(n,t,e){"use strict";e.d(t,"d",function(){return c}),e.d(t,"e",function(){return u}),e.d(t,"c",function(){return f}),e.d(t,"b",function(){return l}),e.d(t,"a",function(){return s});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("DW/0"),i=e("tZYx");e("LvDl");function c(n){return{type:o.c,data:n}}function u(n){return{type:o.a,data:n}}function f(n){return{type:o.b,data:n}}function l(){return function(n,t,e,a){t().publicState.$t;i.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){n(c(t)),e()})}}function s(n,t,e){return function(t,a,o,c){var f=a().publicState.$t;i.a.ConfigManager.getConfig(n).then(function(n){t(u(n[0].params.table)),"refresh"===e&&r.a.success(f("com.Operateingsuccess")),o()}).catch(function(n){"refresh"===e&&r.a.error(f("com.Operateingfailure"))})}}},"5gQQ":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"clear",function(){return s}),e.d(t,"onDefault",function(){return d});var a=e("tZYx"),r=e("U8aX"),o=(e("rGIM"),e("a61M"));function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(c,u,f,l){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(e,"VideoAnalyseGlobal")]).then(function(e){i(c,r.b.VEHICLEGLOBALCONFIG_INIT,{VideoAnalyseGlobal:e[0],CurChannelRPC:n,CurPresetRPC:t}),f()}).catch(function(){l()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseGlobal")]).then(function(e){i(c,r.b.VEHICLEGLOBALCONFIG_INIT,{VideoAnalyseGlobal:e[0],CurChannelRPC:n,CurPresetRPC:t}),f()}).catch(function(){l()})}},u=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){i(t,r.b.VEHICLEGLOBALCONFIG_CHANGE,n),a()}).catch(function(){o()})}},f=function(n){return function(t,e,c,u){var f=e().VehicleGlobalConfig.vm.VGlobal;o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["VideoAnalyseGlobal"],[f]).then(function(){i(t,r.b.VEHICLEGLOBALCONFIG_SAVE),c()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["VideoAnalyseGlobal"],[f]).then(function(){i(t,r.b.VEHICLEGLOBALCONFIG_SAVE),c()}).catch(function(n){u()})}},l=function(n){return function(t,e,c,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal")]).then(function(n){i(t,r.b.VEHICLEGLOBALCONFIG_REFRESH,{VideoAnalyseGlobal:n[0]}),c()}).catch(function(){u()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseGlobal")]).then(function(n){i(t,r.b.VEHICLEGLOBALCONFIG_REFRESH,{VideoAnalyseGlobal:n[0]}),c()}).catch(function(){u()})}},s=function(){return function(n){i(n,r.b.VEHICLEGLOBALCONFIG_CLEAR)}},d=function(n){return function(t,e,c,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getDefault(n,"VideoAnalyseGlobal")]).then(function(n){i(t,r.b.VEHICLEGLOBALCONFIG_DEFAULT,{VideoAnalyseGlobal:n[0]}),c()}).catch(function(n){u()}):Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseGlobal")]).then(function(n){i(t,r.b.VEHICLEGLOBALCONFIG_DEFAULT,{VideoAnalyseGlobal:n[0]}),c()}).catch(function(n){u()})}}},"5xG2":function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,"/*\u5b58\u653e\u57fa\u8272*/\n.MyTable {\n  position: relative;\n  border: 1px solid #e8e8e8;\n}\n.MyTable .ant-table-thead {\n  border-top: none;\n}\n.MyTable .ant-table-thead > tr > th,\n.MyTable .ant-table-tbody > tr > td {\n  text-align: center;\n}\n.MyTable .bottom-pagination {\n  border-top: 1px solid #e8e8e8;\n}\n.MyTable .noBorderLR {\n  border-left: none;\n  border-right: none;\n}\n.MyTable.noBoderTop {\n  border-top: none;\n}\n.MyTable .drawer-content-wrapper {\n  position: absolute;\n  height: 100%;\n  background-color: white;\n  z-index: 99;\n  right: 0;\n  -webkit-box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);\n          box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);\n  overflow: hidden;\n  -webkit-transition: width 0.3s;\n  -o-transition: width 0.3s;\n  transition: width 0.3s;\n}\n.MyTable .drawer-content-wrapper .drawer-header {\n  padding: 0 16px;\n  position: relative;\n  color: #272727;\n  height: 40px;\n  line-height: 40px;\n  background: #ffffff;\n  border-bottom: 1px solid #e8e8e8;\n  border-radius: 4px 4px 0 0;\n}\n.MyTable .drawer-content-wrapper .drawer-header .drawer-close {\n  position: absolute;\n  top: 0;\n  right: 0;\n  display: block;\n  width: 40px;\n  height: 40px;\n  padding: 0;\n  color: rgba(0, 0, 0, 0.45);\n  font-weight: 700;\n  font-size: 16px;\n  line-height: 40px;\n  text-align: center;\n  text-transform: none;\n  text-decoration: none;\n  background: transparent;\n  border: 0;\n  outline: 0;\n  cursor: pointer;\n  -webkit-transition: color 0.3s;\n  -o-transition: color 0.3s;\n  transition: color 0.3s;\n  text-rendering: auto;\n}\n",""])},"68py":function(n,t,e){n.exports=e.p+"static/media/match.4568ad61.png"},"6gtY":function(n,t,e){n.exports=e.p+"static/media/label_pass.4976ca51.png"},"6qJw":function(n,t,e){n.exports=e.p+"static/media/icon_renti_n.77da3fb6.png"},"6rp8":function(n,t,e){"use strict";e.d(t,"c",function(){return a}),e.d(t,"b",function(){return r}),e.d(t,"a",function(){return o});e("a1D8");var a={},r={},o={}},"73Yq":function(n,t,e){"use strict";e.d(t,"a",function(){return r});var a=e("3t5Z");e("tZYx"),e("LvDl");function r(n){return{type:a.a,data:n}}},"7rZf":function(n,t,e){"use strict";e.d(t,"v",function(){return u}),e.d(t,"z",function(){return f}),e.d(t,"t",function(){return l}),e.d(t,"w",function(){return d}),e.d(t,"y",function(){return p}),e.d(t,"x",function(){return g}),e.d(t,"k",function(){return m}),e.d(t,"h",function(){return C}),e.d(t,"a",function(){return S}),e.d(t,"n",function(){return v}),e.d(t,"p",function(){return b}),e.d(t,"j",function(){return y}),e.d(t,"m",function(){return E}),e.d(t,"f",function(){return T}),e.d(t,"u",function(){return M}),e.d(t,"b",function(){return A}),e.d(t,"c",function(){return I}),e.d(t,"q",function(){return O}),e.d(t,"i",function(){return P}),e.d(t,"e",function(){return R}),e.d(t,"s",function(){return L}),e.d(t,"g",function(){return D}),e.d(t,"d",function(){return V}),e.d(t,"r",function(){return F}),e.d(t,"l",function(){return N}),e.d(t,"o",function(){return w});var a=e("DjBF"),r=(e("tL+A"),e("QpBz")),o=e.n(r),i=e("UhQ6"),c=e("tZYx"),u=function(n){return{type:i.a,data:n}},f=function(n){return{type:i.k,data:n}},l=function(n){return function(t,e,a,r){c.a.multiSec(n).then(function(n){a(n)}).catch(function(n){r(n)})}},s=function(n){return{type:i.j,data:n}},d=function(n){return{type:i.c,data:n}},p=function(n){return{type:i.e,data:n}},g=function(n){return{type:i.d,data:n}},h=function(n){return{type:i.f,data:n}},m=function(){return function(n,t,e){t().publicState.$t;c.a.ConfigManager.getConfig("Network").then(function(t){var a,r="";t.br0&&t.br0.Enable&&(r="br0"),t.bond0&&t.bond0.Bonding&&(r="bond0"),n((a={cardName:r},{type:i.b,data:a})),e(t)}).catch(function(n){})}},C=function(){return function(n,t,e){t().publicState.$t;c.a.ConfigManager.getConfig("IPv6").then(function(t){var a;n((a={IPv6:t},{type:i.h,data:a})),e(t)}).catch(function(n){})}},S=function(){return function(n,t,e){t().publicState.$t;c.a.ConfigManager.getConfig("AccessPoint").then(function(t){n(u(t)),e(t)}).catch(function(n){})}},v=function(){return function(n,t,e){t().publicState.$t;c.a.ConfigManager.getConfig("WLan").then(function(t){n(f(t)),e(t)}).catch(function(n){})}},b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e,a,r){e().publicState.$t;var o=Object.assign({Name:"eth2"},n);c.a.NetApp.scanWLanDevices(o).then(function(n){var e;t((e=n,{type:i.i,data:e})),a(n)}).catch(function(n){r(!1)})}},y=function(){return function(n,t,e){t().publicState.$t;c.a.NetApp.getNetInterfaces().then(function(n){e(n)}).catch(function(n){})}},E=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getConfig("AroudWifiSearch").then(function(t){n(s(t)),e(t),o.a.success(a("com.Operateingsuccess"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},T=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getDefault("AroudWifiSearch").then(function(t){n(s(t)),e(t),o.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},M=function(n){return function(t,e,a){var r=e().publicState.$t;c.a.ConfigManager.setConfig("AroudWifiSearch",[n]).then(function(e){t(s(n)),o.a.success(r("com.Operateingsuccess"))}).catch(function(n){o.a.error(r("com.Operateingfailure"))})}},A=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getConfig("AroudWifiDevInfo").then(function(t){n(d(t[0])),e(t[0]),o.a.success(a("com.Operateingsuccess"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},I=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getDefault("AroudWifiDevInfo").then(function(t){n(d(t[0])),e(t[0]),o.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},O=function(n){return function(t,e,a){var r=e().publicState.$t;c.a.ConfigManager.setConfig("AroudWifiDevInfo",[n]).then(function(e){t(d(n)),o.a.success(r("com.Operateingsuccess"))}).catch(function(n){o.a.error(r("com.Operateingfailure"))})}},P=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getConfig("AroudWifiLocationInfo").then(function(t){n(p(t[0])),e(t[0]),o.a.success(a("com.Operateingsuccess"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},R=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getDefault("AroudWifiLocationInfo").then(function(t){n(p(t[0])),e(t[0]),o.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},L=function(n){return function(t,e,a){var r=e().publicState.$t;c.a.ConfigManager.setConfig("AroudWifiLocationInfo",[n]).then(function(e){t(p(n)),o.a.success(r("com.Operateingsuccess"))}).catch(function(n){o.a.error(r("com.Operateingfailure"))})}},D=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getConfig("AroudWifiFactoryInfo").then(function(t){n(g(t[0])),e(t[0]),o.a.success(a("com.Operateingsuccess"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},V=function(){return function(n,t,e){var a=t().publicState.$t;c.a.ConfigManager.getDefault("AroudWifiFactoryInfo").then(function(t){n(g(t[0])),e(t[0]),o.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){o.a.error(a("com.Operateingfailure"))})}},F=function(n){return function(t,e,a){var r=e().publicState.$t;c.a.ConfigManager.setConfig("AroudWifiFactoryInfo",[n]).then(function(e){t(g(n)),o.a.success(r("com.Operateingsuccess"))}).catch(function(n){o.a.error(r("com.Operateingfailure"))})}},N=function(){return function(n,t,e){var r=t().publicState.$t;Promise.all([c.a.ConfigManager.getConfig("WifiPsdDecrypt"),c.a.AroudWifi.getApsInfoState()]).then(function(t){var c,u=Object(a.a)(t,2),f=u[0],l=u[1],s=f.map(function(n){return Object.assign({},n)});if(f[0]&&l.DecryptInfo)for(var d=0;d<f.length;d++){f[d]._index=d+1;for(var p=0;p<l.DecryptInfo.length;p++)if(f[d].APSSID===l.DecryptInfo[p].APSSID){f[d].CheckResult=l.DecryptInfo[p].CheckResult,l.DecryptInfo.splice(p,1);break}}if(f[0])for(var g in f)switch(f[g].CheckResult){case 0:f[g].CheckResult=r("com.Unknow");break;case 1:f[g].CheckResult=r("com.Stateunormal");break;case 2:f[g].CheckResult=r("com.Normal");break;default:f[g].CheckResult=r("com.Unknow")}n(h(s||[])),n((c=f||[],{type:i.g,data:c})),e(f||[]),o.a.success(r("com.Operateingsuccess"))})}},w=function(n){return function(t,e,a){var r=e().publicState.$t;c.a.ConfigManager.setConfig("WifiPsdDecrypt",n).then(function(e){t(h(n)),a(!0),o.a.success(r("com.Operateingsuccess"))}).catch(function(n){o.a.error(r("com.Operateingfailure"))})}}},"7vjG":function(n,t,e){"use strict";e.d(t,"mb",function(){return c}),e.d(t,"qb",function(){return u}),e.d(t,"kb",function(){return f}),e.d(t,"jb",function(){return l}),e.d(t,"rb",function(){return s}),e.d(t,"nb",function(){return d}),e.d(t,"pb",function(){return p}),e.d(t,"ob",function(){return g}),e.d(t,"lb",function(){return h}),e.d(t,"k",function(){return m}),e.d(t,"F",function(){return C}),e.d(t,"b",function(){return S}),e.d(t,"Q",function(){return v}),e.d(t,"n",function(){return b}),e.d(t,"eb",function(){return y}),e.d(t,"H",function(){return E}),e.d(t,"I",function(){return T}),e.d(t,"N",function(){return M}),e.d(t,"m",function(){return A}),e.d(t,"l",function(){return I}),e.d(t,"G",function(){return O}),e.d(t,"ab",function(){return P}),e.d(t,"Y",function(){return R}),e.d(t,"u",function(){return L}),e.d(t,"gb",function(){return D}),e.d(t,"e",function(){return V}),e.d(t,"h",function(){return F}),e.d(t,"O",function(){return N}),e.d(t,"E",function(){return w}),e.d(t,"W",function(){return x}),e.d(t,"V",function(){return G}),e.d(t,"hb",function(){return k}),e.d(t,"ib",function(){return _}),e.d(t,"db",function(){return j}),e.d(t,"a",function(){return W}),e.d(t,"j",function(){return B}),e.d(t,"X",function(){return U}),e.d(t,"o",function(){return z}),e.d(t,"R",function(){return H}),e.d(t,"f",function(){return Y}),e.d(t,"r",function(){return Z}),e.d(t,"q",function(){return $}),e.d(t,"w",function(){return K}),e.d(t,"L",function(){return Q}),e.d(t,"P",function(){return X}),e.d(t,"M",function(){return J}),e.d(t,"x",function(){return q}),e.d(t,"y",function(){return nn}),e.d(t,"bb",function(){return tn}),e.d(t,"fb",function(){return en}),e.d(t,"cb",function(){return an}),e.d(t,"p",function(){return rn}),e.d(t,"c",function(){return on}),e.d(t,"d",function(){return cn}),e.d(t,"g",function(){return un}),e.d(t,"T",function(){return fn}),e.d(t,"S",function(){return ln}),e.d(t,"U",function(){return sn}),e.d(t,"v",function(){return dn}),e.d(t,"i",function(){return pn}),e.d(t,"C",function(){return gn}),e.d(t,"z",function(){return hn}),e.d(t,"A",function(){return mn}),e.d(t,"D",function(){return Cn}),e.d(t,"B",function(){return Sn}),e.d(t,"Z",function(){return vn}),e.d(t,"s",function(){return bn}),e.d(t,"t",function(){return yn}),e.d(t,"J",function(){return En}),e.d(t,"K",function(){return Tn});var a=e("DjBF"),r=e("9pik"),o=e("tZYx"),i=(e("4Gn2"),e("rGIM"));function c(n){return{type:r.f,data:n}}function u(n){return{type:r.k,data:n}}function f(n){return{type:r.b,data:n}}function l(n){return{type:r.a,data:n}}function s(n){return{type:r.m,data:n}}function d(n){return{type:r.g,data:n}}function p(n){return{type:r.i,data:n}}function g(n){return{type:r.h,data:n}}function h(n){return{type:r.c,data:n}}var m=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},C=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},S=function(n,t,e){return function(a,r,i,c){o.a.PTZManager(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},v=function(n,t,e){return function(a,i,c,u){o.a.ConfigManager.getConfig(n,t,e).then(function(n){var t;a((t={color:n},{type:r.e,data:t})),c(!0)}).catch(function(n){u(n)})}},b=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},y=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.setConfig(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},E=function(n,t){return function(e,a,i,c){o.a.PTZManager("getPresets",n,t).then(function(n){var t;e((t={presetList:n&&n.presets},{type:r.j,data:t})),i(n)}).catch(function(n){c(n)})}},T=function(n,t){return function(e,a,r,i){o.a.ConfigManager.getConfig("PtzCurOperType",n,t).then(function(n){r(!0)}).catch(function(n){i(n)})}},M=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;arguments.length>1&&arguments[1];return function(t,e,r,f){var l=e().publicState.$t,s=o.a.ConfigManager.getConfig("PtzMovement"),d=o.a.ConfigManager.getConfig("PtzTour"),p=i.default.get("PtzCaps",{},n,!0);Promise.all([s,d,p]).then(function(e){var o,i=Object(a.a)(e,3),f=i[0],s=i[1],d=i[2],p={lastPtzCommand:"",lastPtzCommandIndex:-1};o=d.TourMax-d.TourMin+1,s&&s.map(function(n,e){n.map(function(n,a){n.play=!1,n.Index=a+1,"Tour"===f[e].Function&&f[e].Index===a&&(n.play=!0,p.lastPtzCommand="StartTour",p.lastPtzCommandIndex=f[e].Index+1,t(c({ptzMoveStatus:p}))),n.Name||(n.Name=l("per.Cruise")+(a+1))})});var g=f.some(function(n,t){return["Scan","Pattern","Tour"].includes(n.Function)});s[n=n||0].length>o&&(s[n]=s[n].slice(0,o)),t(u({tourList:s})),g||t(c({ptzMoveStatus:p})),r(s)}).catch(function(n){f(n)})}},A=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&arguments[1];return function(n,t,e,r){var i=t().publicState.$t,u=o.a.ConfigManager.getConfig("PtzMovement"),l=o.a.ConfigManager.getConfig("AutoScan");Promise.all([u,l]).then(function(t){var r=Object(a.a)(t,2),o=r[0],u=r[1],l={lastPtzCommand:"",lastPtzCommandIndex:-1};u&&u.map(function(t,e){t.map(function(t,a){t.Index=a+1,t.play=!1,"Scan"===o[e].Function&&o[e].Index===a&&(t.play=!0,l.lastPtzCommand="AutoScanOn",l.lastPtzCommandIndex=o[e].Index+1,n(c({ptzMoveStatus:l}))),t.Name||(t.Name=i("com.LineScan")+(a+1))})});var s=o.some(function(n,t){return["Scan","Pattern","Tour"].includes(n.Function)});n(f({autoScanList:u})),s||n(c({ptzMoveStatus:l})),e(!0)}).catch(function(n){r(n)})}},I=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&arguments[1];return function(n,t,e,r){var i=t().publicState.$t,u=o.a.ConfigManager.getConfig("PtzMovement"),f=o.a.ConfigManager.getConfig("AutoPattern");Promise.all([u,f]).then(function(t){var r=Object(a.a)(t,2),o=r[0],u=r[1],f={lastPtzCommand:"",lastPtzCommandIndex:-1};u&&u.map(function(t,e){t.map(function(t,a){t.Index=a+1,t.play=!1,"Pattern"===o[e].Function&&o[e].Index===a&&(t.play=!0,f.lastPtzCommand="StartPattern",f.lastPtzCommandIndex=o[e].Index+1,n(c({ptzMoveStatus:f}))),t.Name||(t.Name=i("per.Pattern")+(a+1))})});var s=o.some(function(n,t){return["Scan","Pattern","Tour"].includes(n.Function)});n(l({autoPatternList:u})),s||n(c({ptzMoveStatus:f})),e(!0)}).catch(function(n){r(n)})}},O=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){o.a.PtzFunc.getPanGroup(n).then(function(n){t(c({ptzPanGroup:n&&n.panGroupInfo||[]})),a(!0)}).catch(function(n){r(n)})}},P=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){o.a.PtzFunc.resumeLastTask(n).then(function(n){a(n)}).catch(function(n){r(n)})}},R=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){o.a.PtzFunc.pausePtzAction(n).then(function(n){a(n)}).catch(function(n){r(n)})}},L=function(n,t){return function(t,e,a,r){o.a.DevVideoInput.instance(n).then(function(n){o.a.DevVideoInput.getFocusStatus(n.result).then(function(n){t(s({zoomFocus:n&&n.status})),a(n.status)}).catch(function(){r(!1)})})}},D=function(n,t){return function(t,e,a,r){o.a.DevVideoInput.instance(n).then(function(n){o.a.DevVideoInput.stopAutoFocus(n.result).then(function(){a(!0)}).catch(function(){r(!1)})})}},V=function(n,t){return function(e,a,r,i){o.a.DevVideoInput.instance(t).then(function(t){o.a.DevVideoInput.adjustFocus(t.result,n).then(function(){r(!0)}).catch(function(){i(!1)})})}},F=function(n,t){return function(e,a,r,i){o.a.DevVideoInput.instance(t).then(function(t){o.a.DevVideoInput.autoFocus(t.result,n).then(function(){r(!0)}).catch(function(){i(!1)})})}},N=function(n){return function(t,e,a,i){o.a.UserManager.getUserInfo(n).then(function(n){var e;t((e={userInfo:n.user},{type:r.l,data:e})),a(n.user)}).catch(function(){i(!1)})}},w=function(){return function(n,t,e,a){o.a.Alarm.instance().then(function(n){o.a.Alarm.getOutState(n.result).then(function(n){e(n)}).catch(function(){a(!1)})})}},x=function(n){return function(t,e,a,r){o.a.RainBrush.moveOnce(n).then(function(n){a(n)}).catch(function(){r(!1)})}},G=function(n){return function(t,e,a,r){o.a.RainBrush.moveContinuously(n).then(function(n){a(n)}).catch(function(){r(!1)})}},k=function(n){return function(t,e,a,r){o.a.RainBrush.stopMove(n).then(function(n){a(n)}).catch(function(){r(!1)})}},_=function(n,t){return function(e,a,r,i){o.a.DevIntelliTracker.instance({channel:t||0}).then(function(t){o.a.DevIntelliTracker.trackObject(t.result,n).then(function(n){r(n)}).catch(function(){i(!1)})})}},j=function(n){return function(t,e,a,r){o.a.DevVideoAnalyse.instance({channel:n.channel}).then(function(t){o.a.DevVideoAnalyse.setAnalyseObject(n).then(function(n){a(n)}).catch(function(){r(!1)})}).catch(function(){r(!1)})}},W=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("AudioInput").then(function(n){e(n)}).catch(function(n){a(n)})}},B=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.PTZ.instance(t).then(function(t){o.a.PTZ.focusRegion(t.result,n).then(function(n){r(n)}).catch(function(n){i(n)})}).catch(function(n){i(n)})}},U=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.DevVideoInput.instance(t).then(function(t){o.a.DevVideoInput.focusRegion(t.result,n).then(function(n){r(n)}).catch(function(n){i(n)})}).catch(function(n){i(n)})}},z=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.PTZ.instance(t).then(function(t){o.a.PTZ.getCurrentProtocolCaps(t.result,n).then(function(n){r(n)}).catch(function(n){i(n)})}).catch(function(n){i(n)})}},H=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.PTZ.instance(t).then(function(t){t.result,o.a.PTZ.lensInit(t.result,n).then(function(n){r(n)}).catch(function(n){i(n)})}).catch(function(n){i(n)})}},Y=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.DevVideoInput.instance(t).then(function(t){o.a.DevVideoInput.adjustFocusContinuously(t.result,n).then(function(n){r(n)}).catch(function(){i(!1)})})}},Z=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("EncodeCrop").then(function(n){e(n)}).catch(function(n){a(n)})}},$=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("Encode").then(function(n){e(n)}).catch(function(n){a(n)})}},K=function(){return function(n,t,e,a){i.default.get("IVSCaps").then(function(t){n(c({ivsCaps:t})),e(!0)}).catch(function(n){a(n)})}},Q=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("SmartEncode").then(function(n){e(n)}).catch(function(n){a(n)})}},X=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig(["VideoAnalyseGlobal","VideoAnalyseRule"]).then(function(n){e(n)}).catch(function(n){a(n)})}},J=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("SwitchSpliceMode").then(function(n){e(n)}).catch(function(n){a(n)})}},q=function(n){return function(t,e,a,r){o.a.LensFunc.getCaps(n).then(function(n){a(n)}).catch(function(n){r(n)})}},nn=function(n){return function(t,e,a,r){o.a.LensFunc.getLensInfo(n).then(function(n){a(n)}).catch(function(n){r(n)})}},tn=function(n){return function(t,e,a,r){o.a.LensFunc.adjustAngleContinuously(n).then(function(n){a(n)}).catch(function(n){r(n)})}},en=function(n){return function(t,e,a,r){o.a.LensFunc.stopAdjustingAngle(n).then(function(n){a(n)}).catch(function(n){r(n)})}},an=function(n){return function(t,e,a,r){o.a.LensFunc.adjustFocusRel(n).then(function(n){a(n)}).catch(function(n){r(n)})}},rn=function(n){return function(t,e,a,r){o.a.LensFunc.getDepthFieldStatus(n).then(function(n){a(n)}).catch(function(n){r(n)})}},on=function(n){return function(t,e,a,r){o.a.LensFunc.adjustDepthField(n).then(function(n){a(n)}).catch(function(n){r(n)})}},cn=function(n){return function(t,e,a,r){o.a.LensFunc.adjustDepthFieldContinuously(n).then(function(n){a(n)}).catch(function(n){r(n)})}},un=function(n){return function(t,e,a,r){o.a.LensFunc.autoAdjustDepthField(n).then(function(n){a(n)}).catch(function(n){r(n)})}},fn=function(n,t,e){return function(a,r,i,c){o.a.MasterSlaveGroup.open(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},ln=function(n,t,e){return function(a,r,i,c){o.a.MasterSlaveGroup.locate(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},sn=function(n,t,e){return function(a,r,i,c){o.a.MasterSlaveGroup.rectLocate(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},dn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){o.a.PtzPeripheral.getHeaterStateEx(n).then(function(n){a(n)}).catch(function(n){r(n)})}},pn=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.PtzPeripheral.controlPtzHeater(n,t).then(function(n){r(n)}).catch(function(n){i(n)})}},gn=function(n,t,e){return function(n,a,r,i){o.a.ConfigManager.getConfig("MasterSlaveGroup",t,e).then(function(n){r(n)}).catch(function(n){i(n)})}},hn=function(n,t){return function(e,a,r,i){o.a.MasterSlaveGroup.attach(n,t).then(function(n){r(n)}).catch(function(n){i(n)})}},mn=function(n){return function(t,e,a,r){o.a.MasterSlaveGroup.detach(n).then(function(n){a(n)}).catch(function(n){r(n)})}},Cn=function(n,t){return function(e,a,r,i){o.a.MasterSlaveGroup.track(n,t).then(function(n){r(n)}).catch(function(n){i(n)})}},Sn=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("MasterSlaveGlobal").then(function(n){e(n)}).catch(function(n){a(n)})}},vn=function(n){return function(t,e,a,r){o.a.LensManager.resetAngle(n).then(function(){a()}).catch(function(){r()})}},bn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){o.a.ConfigManager.getConfig("FishEye").then(function(t){t[n]&&"Original"===t[n].CalibrateMode?a(!0):a(!1)}).catch(function(n){r(n)})}},yn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,r,o){Promise.all([i.default.get("VideoInputCaps",null,n),i.default.get("VideoInputCapsEx",null,n)]).then(function(n){var t=Object(a.a)(n,2),e=t[0],o=t[1];e.FishEye&&o.VideoInFishEye?r(!0):r(!1)})}},En=function(n,t){return function(e,a,r,i){o.a.DevVideoAnalyse.instance({channel:n}).then(function(n){o.a.DevVideoAnalyse.getRelatedParamsBySence(n.result,t).then(function(n){r(n)}).catch(function(n){i(n)})})}},Tn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return function(e,a,r,i){if(-1===n){for(var c=[],u=[],f=0;f<t;f++)c.push(o.a.ScenicSpot.getCaps({channel:f}));Promise.all(c).then(function(n){n.forEach(function(n,t){u[t]=n&&n.caps&&n.caps.Enable})}).catch(function(n){}).finally(function(){r(u)})}else o.a.ScenicSpot.getCaps({channel:n}).then(function(n){n&&n.caps&&n.caps.Enable?r():i()}).catch(function(n){i(n)})}}},"86eP":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return f}),e.d(t,"clear",function(){return l});var a=e("tZYx"),r=e("HcvJ");e("rGIM"),e("a61M");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(){return function(n,t,e,a){o(n,r.b.TRAFFICPREVIEW_RULE_INIT)}},c=function(n){return function(t){o(t,r.b.TRAFFICPREVIEW_RULE_CHANGE,n)}},u=function(){return function(n,t,e,i){var c=t().SmokeDetectRuleConfig.vm.VRule;a.a.ConfigManager.setConfig(["VideoAnalyseRule"],[c]).then(function(){o(n,r.b.TRAFFICPREVIEW_RULE_SAVE),e()}).catch(function(n){i()})}},f=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule")]).then(function(t){o(n,r.b.TRAFFICPREVIEW_RULE_REFRESH,{VideoAnalyseRule:t[0]}),e()}).catch(function(){i()})}},l=function(){return function(n){o(n,r.b.TRAFFICPREVIEW_RULE_CLEAR)}}},"8dqK":function(n,t,e){"use strict";e.d(t,"y",function(){return i}),e.d(t,"z",function(){return c}),e.d(t,"w",function(){return u}),e.d(t,"A",function(){return f}),e.d(t,"h",function(){return l}),e.d(t,"n",function(){return s}),e.d(t,"b",function(){return d}),e.d(t,"o",function(){return p}),e.d(t,"c",function(){return g}),e.d(t,"i",function(){return h}),e.d(t,"e",function(){return m}),e.d(t,"j",function(){return C}),e.d(t,"l",function(){return S}),e.d(t,"s",function(){return v}),e.d(t,"t",function(){return b}),e.d(t,"v",function(){return y}),e.d(t,"g",function(){return E}),e.d(t,"a",function(){return T}),e.d(t,"q",function(){return M}),e.d(t,"m",function(){return A}),e.d(t,"x",function(){return I}),e.d(t,"k",function(){return O}),e.d(t,"r",function(){return P}),e.d(t,"f",function(){return R}),e.d(t,"p",function(){return L}),e.d(t,"d",function(){return D}),e.d(t,"u",function(){return V});var a=e("DjBF"),r=e("HvD0"),o=e("tZYx");function i(n){return{type:r.e,data:n}}function c(n){return{type:r.f,data:n}}function u(n){return{type:r.c,data:n}}function f(n){return{type:r.g,data:n}}var l=function(){return function(n,t,e,a){o.a.NetApp.getMobileInterfaces().then(function(t){var a;n((a=t.netInterface||[],{type:r.b,data:a})),e(t.netInterface||[])}).catch(function(){a(!1)})}},s=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("Wireless").then(function(t){t&&(n(i(t)),e(!0))}).catch(function(){a(!1)})}},d=function(){return function(n,t,e,a){o.a.ConfigManager.getDefault("Wireless").then(function(t){t&&(n(i(t)),e(!0))}).catch(function(){a(!1)})}},p=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("WirelessOfflineDetect").then(function(t){t&&(n(c(t)),e(!0))}).catch(function(){a(!1)})}},g=function(){return function(n,t,e,a){o.a.ConfigManager.getDefault("WirelessOfflineDetect").then(function(t){t&&(n(c(t)),e(!0))}).catch(function(){a(!1)})}},h=function(n){return function(t,e,a,r){o.a.getNetApp("getMobileRSSI",n).then(function(n){a(n.info||{})}).catch(function(){r(!1)})}},m=function(n){return function(t,e,a,r){o.a.getNetApp("getDialInfo",n).then(function(n){n&&a(n)}).catch(function(){r(!1)})}},C=function(n){return function(t,e,a,r){o.a.NetApp.getNetDataStat(n).then(function(n){n&&a(n)}).catch(function(){r(!1)})}},S=function(n){return function(t,e,a,r){o.a.NetApp.getSIMState(n).then(function(n){n&&a(n)}).catch(function(){r(!1)})}},v=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("Wireless",n).then(function(n){n&&a(!0)}).catch(function(){r(!1)})}},b=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("WirelessOfflineDetect",n).then(function(n){n&&a(!0)}).catch(function(){r(!1)})}},y=function(n){return function(t,e,a,r){o.a.NetApp.switchSimSlot(n).then(function(n){n&&a(n)}).catch(function(){r(!1)})}},E=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("Mobile").then(function(t){t&&(n(u(t)),e(t))}).catch(function(){a(!1)})}},T=function(){return function(n,t,e,a){o.a.ConfigManager.getDefault("Mobile").then(function(t){t&&(n(u(t)),e(t))}).catch(function(){a(!1)})}},M=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("Mobile",n).then(function(n){n&&a(n)}).catch(function(){r(!1)})}},A=function(){return function(n,t,e,a){o.a.Upgrader.getState().then(function(t){var a;t&&(n((a=t,{type:r.d,data:a})),e(!0))}).catch(function(){a(!1)})}};function I(n){return{type:r.h,data:n}}var O=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("CellularFlux").then(function(t){n(I(t["3G"].SIM1)),e(t)}).catch(function(){a(!1)})}},P=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("CellularFlux",n).then(function(n){a(!0)}).catch(function(){r(!1)})}};var R=function(){return function(n,t,e,i){var c=Object(a.a)(t().FourG.jsonInterfaces,1)[0],u=c.Name,f=c.ICCID;o.a.DataFlux.getFlux({card:u,SimName:"SIM1",ICCID:f}).then(function(t){var e;n((e=t.info,{type:r.a,data:e}))})}},L=function(){return function(n,t,e,a){o.a.ConfigManager.getConfig("WirelessExpert").then(function(t){n(f(t)),e()}).catch(function(n){a(n)})}},D=function(){return function(n,t,e,a){o.a.ConfigManager.getDefault("WirelessExpert").then(function(t){n(f(t)),e()}).catch(function(n){a(n)})}},V=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("WirelessExpert",n).then(function(){a()}).catch(function(n){r(n)})}}},"8pTo":function(n,t,e){"use strict";e.r(t),e.d(t,"updateAutomt",function(){return u}),e.d(t,"updateCaps",function(){return f}),e.d(t,"getAutomt",function(){return l}),e.d(t,"setAutomt",function(){return s}),e.d(t,"Reboot",function(){return d}),e.d(t,"getUserInfo",function(){return p}),e.d(t,"Restore",function(){return g}),e.d(t,"getDefault",function(){return h}),e.d(t,"getConfig",function(){return m}),e.d(t,"setConfig",function(){return C}),e.d(t,"getMulticall",function(){return S}),e.d(t,"restoreExcept",function(){return v}),e.d(t,"resetFactory",function(){return b}),e.d(t,"resetSystemEx",function(){return y}),e.d(t,"resetProbeSearch",function(){return E}),e.d(t,"getCaps",function(){return T}),e.d(t,"getNetInterfaces",function(){return M}),e.d(t,"networkSnifferManagerStart",function(){return A}),e.d(t,"networkSnifferManagerStop",function(){return I}),e.d(t,"networkSnifferManagerAttach",function(){return O}),e.d(t,"networkSnifferManagerDetach",function(){return P}),e.d(t,"getSnifferInfo",function(){return R}),e.d(t,"getIntelliDiagnoseCaps",function(){return L}),e.d(t,"getIntelliDiagnoseStatus",function(){return D}),e.d(t,"intelliDiagnoseStart",function(){return V}),e.d(t,"exportDiagnoseData",function(){return F}),e.d(t,"getDeviceData",function(){return N}),e.d(t,"importFontsInfo",function(){return w}),e.d(t,"deleteFontsFile",function(){return x});var a=e("DjBF"),r=e("m6gf"),o=e("tZYx"),i=e("rGIM"),c=e("a61M");function u(n){return{type:r.a,data:n}}function f(n){return{type:r.b,data:n}}var l=function(n){return function(t,e,a,r){o.a.System.multicall(n).then(function(n){t(u({automt:{autoReboot:n[0].params.table,autoDelete:{Enable:0!==n[1].params.table.FileHoldTime,FileHoldTime:n[1].params.table.FileHoldTime},autoAOL:n[2]&&n[2].params.table}})),a(!0)}).catch(function(){r(!1)})}},s=function(n,t,e){return function(t,e,a,r){o.a.System.multicall(n).then(function(n){a(n)}).catch(function(){r(!1)})}},d=function(){return function(n,t,e,a){o.a.MagicBox.instance().then(function(n){o.a.MagicBox.reboot(n.result).then(function(){e(!0)}).catch(function(){a(!1)})})}},p=function(){return function(n,t,e,a){o.a.UserManager.getGroupInfoAll().then(function(n){e(n)}).catch(function(){a(!1)})}},g=function(n){return function(t,e,a,r){o.a.ConfigManager.restore(n).then(function(){a(!0)}).catch(function(){r(!1)})}},h=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getDefault(n,t,e).then(function(n){i(n)}).catch(function(){c(!1)})}},m=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){i(n)}).catch(function(){c(!1)})}},C=function(n,t,e,a){return function(r,i,c,u){o.a.ConfigManager.setConfig(n,t,e,a).then(function(){c(!0)}).catch(function(){u(!1)})}},S=function(n){return function(t,e,a,r){o.a.System.multicall(n).then(function(n){a(n)}).catch(function(){r(!1)})}},v=function(n){return function(t,e,r,u){o.a.ConfigManager.restoreExcept(n).then(function(n){Promise.all([i.default.get("PD"),i.default.get("VideoChannelsInfo")]).then(function(t){var e=Object(a.a)(t,2),i=e[0],f=e[1],l=i.PtzFunctionMenu,s=i.PtzFunctionMenuMulti,d=f&&f.Input&&f.Input.PTZ?f.Input.PTZ[0]:0,p=l;f&&f.Input&&f.Input.PTZ&&s&&(p=s[d],f.Input.PTZ.forEach(function(n){s[n]&&s[n].Support&&(p=s[d=n])})),p&&p.Support&&c.default.DeviceType.includes("SD")?o.a.PTZManager("reset",d).then(function(){r(n)}).catch(function(){u(!1)}):r(n)})}).catch(function(){u(!1)})}},b=function(n){return function(t,e,a,r){var i=[{method:"magicBox.resetSystem",params:{authN:{mode:"pwd",password:n.pwd}}},{method:"Authentication2th.getLockInfo",params:{MethodName:"magicBox.resetSystem"}}];o.a.multiSec(i).then(function(n){a(n)}).catch(function(n){r(n)})}},y=function(n){return function(t,e,a,r){o.a.MagicBox.resetSystemEx(n).then(function(n){a(n)}).catch(function(n){r(n)})}},E=function(){return function(n,t,e,a){o.a.Aroud4GProbeSearch.resetFactory().then(function(n){e(!0)}).catch(function(){a(!1)})}},T=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,r,c){var u=i.default.get("PD"),l=o.a.MultiVideo.getSpliceCaps(n).catch(function(){}),s=i.default.get("IVSCaps").catch(function(){});Promise.all([u,l,s]).then(function(n){var e=Object(a.a)(n,3),o=e[0],i=e[1],c=e[2],u=o.AOLCaps;t(f({autoCaps:{AOLCaps:u,supportAOL:!(!u||!u.Support),SpliceCaps:i&&i.Caps,SupportGlobalDeviceParam:c&&1===c.SupportGlobalDeviceParam}})),r(!0)}).catch(function(n){r(!1)})}},M=function(n){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,t,e,a){o.a.getNetApp("getNetInterfaces").then(function(n){e(n)}).catch(function(){a(!1)})}},A=function(n){return function(t,e,a,r){o.a.NetworkSnifferManager.start(n).then(function(n){a(n)}).catch(function(){r(!1)})}},I=function(n){return function(t,e,a,r){o.a.NetworkSnifferManager.stop(n).then(function(n){a(n)}).catch(function(){r(!1)})}},O=function(n){return function(t,e,a,r){o.a.NetworkSnifferManager.attachSnifferCall(n).then(function(n){a(n)}).catch(function(){r(!1)})}},P=function(n){return function(t,e,a,r){o.a.NetworkSnifferManager.detachSnifferCall(n).then(function(n){a(n)}).catch(function(){r(!1)})}},R=function(n){return function(t,e,a,r){o.a.NetworkSnifferManager.getSnifferInfo(n).then(function(n){a(n)}).catch(function(){r(!1)})}},L=function(){return function(n,t,e,a){o.a.IntelliDiagnose.getCaps().then(function(n){e(n)}).catch(function(){a(!1)})}},D=function(){return function(n,t,e,a){o.a.IntelliDiagnose.getStatus().then(function(n){e(n)}).catch(function(){a(!1)})}},V=function(n){return function(t,e,a,r){o.a.IntelliDiagnose.start(n).then(function(n){a(n)}).catch(function(){r(!1)})}},F=function(n){return function(t,e,a,r){o.a.IntelliDiagnose.exportDiagnoseData(n).then(function(n){a(n)}).catch(function(){r(!1)})}},N=function(){return function(n,t,e,a){Promise.all([o.a.ConfigManager.getConfig("Network"),o.a.MagicBox.getDeviceType(),o.a.MagicBox.getSerialNo()]).then(function(n){e(n)}).catch(function(){a(!1)})}},w=function(){return function(n,t,e,a){o.a.FontManager.importFontsInfo().then(function(n){e(n)}).catch(function(){a(!1)})}},x=function(){return function(n,t,e,a){o.a.FontManager.deleteFontsFile().then(function(n){e(n)}).catch(function(){a(!1)})}}},"9DSn":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return f}),e.d(t,"clear",function(){return l}),e.d(t,"onDefault",function(){return s});var a=e("tZYx"),r=e("M78W");e("rGIM");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(n,t){return function(e,i,c,u){return Promise.all([a.a.PTZManager("getPresets"),a.a.ConfigManager.getConfig(["VideoAnalyseGlobal","VideoAnalyseModule","VideoAnalyseRule","TrafficImage","MultiSceneRecord","SceneSnapShotWithRule2","TrafficSnapMosaic2","TrafficFlowStat"])]).then(function(a){o(e,r.b.SDTRAFFICVEHICLELANECONFIGURATION_INIT,{Presets:a[0],VideoAnalyseGlobal:a[1][0].params.table,VideoAnalyseModule:a[1][1].params.table,VideoAnalyseRule:a[1][2].params.table,TrafficImage:a[1][3].params.table,MultiSceneRecord:a[1][4].params.table,SceneSnapShotWithRule2:a[1][5].params.table,TrafficSnapMosaic2:a[1][6].params.table,planType:n,sceneType:t,TrafficFlowStat:a[1][7].result&&a[1][7].params.table||[]}),c()}).catch(function(){u()})}},c=function(n){return function(t,e,a,i){return Promise.all([]).then(function(){o(t,r.b.SDTRAFFICVEHICLELANECONFIGURATION_CHANGE,n),a()}).catch(function(){i()})}},u=function(){return function(n,t,e,i){var c=t().SDTrafficVehicleLaneConfiguration.vm,u=c.VGlobal,f=c.VModule,l=c.VRule,s=c.MulSceneRec,d=c.SceneSnapShotWithRule2,p=c.TrafficImage,g=c.TrafficSnapMosaic2,h=c.TrafficFlowStat;a.a.ConfigManager.setConfig(["VideoAnalyseGlobal","VideoAnalyseModule","VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","TrafficImage","TrafficSnapMosaic2","TrafficFlowStat"],[u,f,l,s,d,p,g,h]).then(function(){o(n,r.b.SDTRAFFICVEHICLELANECONFIGURATION_SAVE),e()}).catch(function(n){i()})}},f=function(){return function(n,t,e,i){return Promise.all([a.a.PTZManager("getPresets"),a.a.ConfigManager.getConfig(["VideoAnalyseGlobal","VideoAnalyseModule","VideoAnalyseRule","TrafficImage","MultiSceneRecord","SceneSnapShotWithRule2","TrafficSnapMosaic2","TrafficFlowStat"])]).then(function(t){o(n,r.b.SDTRAFFICVEHICLELANECONFIGURATION_REFRESH,{Presets:t[0],VideoAnalyseGlobal:t[1][0].params.table,VideoAnalyseModule:t[1][1].params.table,VideoAnalyseRule:t[1][2].params.table,TrafficImage:t[1][3].params.table,MultiSceneRecord:t[1][4].params.table,SceneSnapShotWithRule2:t[1][5].params.table,TrafficSnapMosaic2:t[1][6].params.table,TrafficFlowStat:t[1][7].result&&t[1][7].params.table||[]}),e()}).catch(function(){i()})}},l=function(){return function(n){o(n,r.b.SDTRAFFICVEHICLELANECONFIGURATION_CLEAR)}},s=function(){return function(n,t,e,a){}}},"9z/b":function(n,t,e){n.exports=e.p+"static/media/yuntai_bg_1.8e5b41fe.png"},A7K7:function(n,t,e){n.exports=e.p+"static/media/logo.4cbdb088.png"},ALmZ:function(n,t,e){"use strict";e.d(t,"q",function(){return c}),e.d(t,"o",function(){return u}),e.d(t,"p",function(){return f}),e.d(t,"k",function(){return l}),e.d(t,"d",function(){return s}),e.d(t,"l",function(){return d}),e.d(t,"g",function(){return p}),e.d(t,"m",function(){return g}),e.d(t,"e",function(){return h}),e.d(t,"j",function(){return m}),e.d(t,"b",function(){return C}),e.d(t,"i",function(){return S}),e.d(t,"a",function(){return v}),e.d(t,"h",function(){return b}),e.d(t,"n",function(){return y}),e.d(t,"c",function(){return E}),e.d(t,"f",function(){return T});var a=e("DjBF"),r=e("99k6"),o=e("tZYx"),i=null;function c(n){return{type:r.e,data:n}}function u(n){return{type:r.b,data:n}}function f(n){return{type:r.d,data:n}}var l=function(){return function(n,t,e,a){var r=t().TrafficList,i="TrafficTrustCar.EnableRedList",c=r.TrafficRedList.Enable;"TrafficBlackList"===r.listType&&(i="TrafficSuspiciousCar.EnableBlackList",c=r.TrafficBlackList.Enable),o.a.ConfigManager.setConfig(i,c).then(function(){e()}).catch(function(){a()})}},s=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"getConfig";return function(t,e,a,r){if("TrafficRedList"!==e().TrafficList.listType)return r();o.a.ConfigManager[n]("TrafficTrustCar").then(function(n){t(u({TrafficConfig:n,Enable:n.EnableRedList,MatchPatternParam:n.PlateMatchPattern})),a()}).catch(function(n){r()})}},d=function(){return function(n,t,e,a){var r=t().TrafficList,i=r.listType,c=r.TrafficRedList;if("TrafficRedList"!==i)return a();var f=c.TrafficConfig,l=c.MatchPatternParam;f.PlateMatchPattern=l,f.EnableRedList=c.Enable;var s=l.Enable,d=l.MatchingRules,p=void 0===d?new Array(7).fill("*"):d;l.MatchingRules=p.map(function(n){return["",void 0].includes(n)?"*":n});var g=p.every(function(n){return"*"===n});s&&g&&(l.Enable=!1),n(u({MatchPatternParam:l})),o.a.ConfigManager.setConfig("TrafficTrustCar",f).then(function(){e()}).catch(function(){a()})}},p=function(){return function(n,t,e,r){var i=t().TrafficList.listType,c="TrafficRedList"===i?"TrafficTrustCar":"TrafficSuspiciousCar",f="TrafficRedList"===i?"EnableRedList":"EnableBlackList",l="TrafficRedList"===i?"PlateMatchPattern":"",s=o.a.getRecordSchema(i),d=o.a.ConfigManager.getConfig(c);Promise.all([s,d]).then(function(t){var r=Object(a.a)(t,2),o=r[0],i=r[1];n(u({caps:o,TrafficConfig:i,Enable:i[f],MatchPatternParam:i[l],searchList:[],totalSize:0})),e()}).catch(function(n){r()})}},g=function(n){return function(t,e,a,r){var c=e().TrafficList.listType;(i=o.a.createDoSeekFind(c,n,!1)).getQuerySize().then(function(n){i.doSeekFind(1).then(function(e){e||(e=[]),t(u({totalSize:n,searchList:e,pageIndex:1})),a(n)})})}},h=function(){return function(n,t,e,a){var r=t().TrafficList.listType,i=o.a.createDoSeekFind(r,{},!1);i.getQuerySize().then(function(n){e(n)}).catch(function(){e(0)}).finally(function(){i.destroy()})}},m=function(n){return function(t,e,a,r){i.doSeekFind(n).then(function(e){t(u({searchList:e,pageIndex:n}))})}},C=function(n,t){return function(n,t,e,a){if(!i)return e(),!1;i.destroy().then(function(){i=null,e()})}},S=function(n,t){return function(e,a,r,i){o.a.removeRecord(n,t).then(function(){r()}).catch(function(){i()})}},v=function(n){return function(t,e,a,r){o.a.clearRecord(n).then(function(){a()}).catch(function(){r()})}},b=function(n,t){return function(e,a,r,i){o.a.insertRecord(n,t,!1).then(function(){r()}).catch(function(n){i(n)})}},y=function(n,t,e){return function(a,r,i,c){o.a.updateRecord(n,t,e,!1).then(function(){i()}).catch(function(){c()})}},E=function(n,t,e,a,r,i){return function(c,u,f,l){var s=o.a.createExportRecode(n),d=s.exportRecord,p=s.getFileExportState,g=s.destroy,h=0,m=function(){p().then(function(n){var t=n.state;switch(t){case 0:clearInterval(h),g(),f();break;case 2:break;default:clearInterval(h),g(),l(t)}}).catch(function(){l(1)})};d(t,e,a,r,i).then(function(){h=setInterval(m,500)}).catch(function(){g(),l(1)})}},T=function(n,t,e,a,r){return function(i,c,u,f){var l=o.a.createImportRecode(n),s=l.importRecord,d=l.getFileImportData,p=l.destroy,g=0,h=function(){d().then(function(n){switch(n.state){case 0:clearInterval(g),p(),u(n);break;case 2:break;default:clearInterval(g),p(),f(n)}}).catch(function(){f({state:1})})};s(t,e,a,r).then(function(){g=setInterval(h,500)}).catch(function(n){n&&n.error?(p(),f(n.error)):h()})}}},BBwX:function(n,t,e){n.exports=e.p+"static/media/icon_chepai_s.511038e6.png"},"Bfi/":function(n,t,e){"use strict";e.r(t),e.d(t,"updateData",function(){return p}),e.d(t,"updateCapsData",function(){return g}),e.d(t,"updateConfigData",function(){return h}),e.d(t,"updateTemplateRuleData",function(){return m}),e.d(t,"getCapsData",function(){return C}),e.d(t,"getTemplateRule",function(){return S}),e.d(t,"getData",function(){return v}),e.d(t,"setData",function(){return b});var a=e("jQsN"),r=e.n(a),o=e("a1D8"),i=e("DjBF"),c=e("butC"),u=e("hxSp"),f=e("tZYx"),l=e("a61M"),s=e("rGIM"),d=e("R+FV");function p(n){return{type:u.d,data:n}}function g(n){return{type:u.a,data:n}}function h(n){return{type:u.b,data:n}}function m(n){return{type:u.c,data:n}}var C=function(n){return function(t,e,a,u){var p=[s.default.get("IVSCaps"),s.default.get("PD").catch(function(){})];Promise.all(p).then(function(){var e=Object(c.a)(r.a.mark(function e(c){var s,p,h,m,C,S,v,b;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=Object(i.a)(c,1),p=s[0],h=p.SupportedScenes[n],m=[],C=Object(o.a)({},l.default.EventCaps,l.default.DefaultEvent),S={},h){e.next=5;break}return e.abrupt("return",u());case 5:return m=Object.keys(h.SupportedRules),v=Object(o.a)({MaxRules:h.MaxRules||0,supportRules:m},h),e.next=9,f.a.EventManager.getEventLink({code:m}).catch(function(){});case 9:b=e.sent,m.forEach(function(n,t){var e=b&&b.name&&b.name[t];e?(e.forEach(function(n){"default"===n?C=l.default.EventCaps:C[n]=!0}),S[n]=Object(d.g)(C)):S[n]=l.default.EventCaps}),v.linkEvent=S,t(g(v)),a();case 14:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()).catch(function(){u()})}},S=function(n,t){return function(e,a,r,o){var c=a().IvsCarDetectConfig.templateConfig,u=[f.a.VideoInAnalyse.getTemplateRule({class:t,channel:n})];c.templateRuleAllJson||(c.templateRuleAllJson=[]),Promise.all(u).then(function(t){var a=Object(i.a)(t,1)[0];c.templateRuleAllJson[n]=a,e(m(c)),r()}).catch(function(){o()})}},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t,e,a,r){if(!n.length)return r();var o=e().IvsCarDetectConfig.config;f.a.ConfigManager.getConfig(n).then(function(e){n.forEach(function(n,t){o[n]=e[t]&&e[t].params.table}),t(h(o)),a()}).catch(function(){r()})}},b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t,e,a,r){if(!n.length)return r();var o=e().IvsCarDetectConfig.config,i=[];n.forEach(function(n){i.push(o[n])}),f.a.ConfigManager.setConfig(n,i).then(function(n){a(n)}).catch(function(){r()})}}},BzgS:function(n,t,e){"use strict";e.r(t),e.d(t,"initFile",function(){return f}),e.d(t,"change",function(){return s}),e.d(t,"getImgUrl",function(){return l}),e.d(t,"clear",function(){return d});var a=e("tZYx"),r=e("UWE4"),o=(e("rGIM"),e("a61M")),i=e("vDqi"),c=e.n(i);function u(n,t,e){n(Object(r.a)(t,e))}var f=function(n,t){return function(e,i,c,f){var l=t.length?t[0]:0;return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseGlobal")]).then(function(t){var a,f=null===(a=i().webCaps.supportUserImage)||void 0===a?void 0:a[n],s=o.default.ChannelCapsInfo[l].SupportedScenes[n].SupportedRules?Object.keys(o.default.ChannelCapsInfo[l].SupportedScenes[n].SupportedRules):[],d=[];s.forEach(function(t,e){("IntelliCityMgr"===n&&"CityMotorParking"===t||"IntelliCityMgr"!==n)&&(!f||f&&f.includes(t))&&d.push(t)}),u(e,r.b.IVSINTELLICITYMGRCONFIG_FILE_INIT,{VideoAnalyseGlobal:t[0],VideoAnalyse:o.default.ChannelCapsInfo[l],SupportedScenes:o.default.ChannelCapsInfo[l].SupportedScenes,ClassType:n,channel:l,SupportedRules:d}),c()}).catch(function(){f()})}},l=function(n,t){return function(e,a,o,i){var f="/sdtraffic/Preset"+n.Name+"_"+n.Type+".jpg?"+Date.now(),l=a().FileParam.vm;c()({method:"GET",url:f}).then(function(){n.imgList.length||(n.imgList[0]={uid:0-n.Name,status:"done"}),n.imgList[0].url=f,l.FileParamTableData[t].imgList=n.imgList,u(e,r.b.IVSINTELLICITYMGRCONFIG_FILE_CHANGE,l),o()}).catch(function(n){console.error(n)})}},s=function(n){return function(t,e,a,o){u(t,r.b.IVSINTELLICITYMGRCONFIG_FILE_CHANGE,n)}},d=function(){return function(n){u(n,r.b.IVSINTELLICITYMGRCONFIG_FILE_CLEAR)}}},CV1K:function(n,t,e){n.exports=e.p+"static/media/icon_head_n.ce37d601.png"},ClYH:function(n,t,e){"use strict";e.d(t,"a",function(){return r});var a=e("vreR");e("tZYx");function r(n){return{type:a.a,data:n}}},"DNr+":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return p}),e.d(t,"onDefault",function(){return g}),e.d(t,"refreshforChannel",function(){return d});var a=e("tZYx"),r=e("4/QJ"),o=(e("rGIM"),e("a61M")),i=e("R+FV");function c(n,t,e){n(Object(r.a)(t,e))}var u=function(n,t){return function(e,o,u,f){return Promise.all([i.p.getConfig(t,["VideoAnalyseGlobal","VideoAnalyseCalibrate","VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","VideoAnalyseModule","TrafficImage","TrafficSnapMosaic2","TrafficFlowStat"]),a.a.intelli.getCaps({capsName:"SupportIntelliScheme"})]).then(function(t){var a,o;c(e,r.b.DETECTIONDRAWCONGIG_INIT,{VideoAnalyseGlobal:t[0][0].params.table,VideoAnalyseCalibrate:t[0][1].params.table,VideoAnalyseRule:t[0][2].params.table,MultiSceneRecord:t[0][3].params.table,SceneSnapShotWithRule2:t[0][4].params.table,IntelliSchemeCaps:t[1],VideoAnalyseModule:t[0][5].params.table,planType:n,TrafficImage:t[0][6].params.table,TrafficSnapMosaic2:t[0][7].params.table,TrafficFlowStat:null===(a=t[0][8])||void 0===a?void 0:null===(o=a.params)||void 0===o?void 0:o.table}),u()}).catch(function(){f()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){c(t,r.b.DETECTIONDRAWCONGIG_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e,u,f,l){var s=u().DetectionDrawConfig.vm,d=s.VGlobal,p=s.VideoAnalyseCalibrate,g=s.VRule,h=s.MulSceneRec,m=s.SceneSnapShotWithRule2,C=s.VideoAnalyseModule,S=s.TrafficImage,v=s.TrafficSnapMosaic2,b=s.TrafficFlowStat,y=["VideoAnalyseGlobal","VideoAnalyseCalibrate","VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","VideoAnalyseModule","TrafficImage","TrafficSnapMosaic2"],E=[d,p,g,h,m,C,S,v];t&&(y.push("TrafficFlowStat"),E.push(b)),o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,y,E).then(function(n){Object(i.f)(n)?(c(e,r.b.DETECTIONDRAWCONGIG_SAVE),f()):l()}).catch(function(n){l()}):a.a.ConfigManager.setConfig(y,E).then(function(n){Object(i.f)(n)?(c(e,r.b.DETECTIONDRAWCONGIG_SAVE),f()):l()}).catch(function(n){l()})}},s=function(n){return function(n,t,e,o){var i=t().DetectionDrawConfig.vm.CurChannel;return Promise.all([a.a.PTZManager("getPresets",i),a.a.ConfigManager.getConfig(["VideoAnalyseGlobal","VideoAnalyseCalibrate","VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","VideoAnalyseModule","TrafficImage","TrafficSnapMosaic2","TrafficFlowStat"])]).then(function(t){c(n,r.b.DETECTIONDRAWCONGIG_REFRESH,{Presets:t[0],VideoAnalyseGlobal:t[1][0].params.table,VideoAnalyseCalibrate:t[1][1].params.table,VideoAnalyseRule:t[1][2].params.table,MultiSceneRecord:t[1][3].params.table,SceneSnapShotWithRule2:t[1][4].params.table,VideoAnalyseModule:t[1][5].params.table,TrafficImage:t[1][6].params.table,TrafficSnapMosaic2:t[1][7].params.table,TrafficFlowStat:t[1][8].result&&t[1][8].params.table}),e()}).catch(function(){o()})}},d=function(){return function(n,t,e,o){var i=t().DetectionDrawConfig.vm.CurChannel;return Promise.all([a.a.PTZManager("getPresets",i),a.a.VideoInAnalyse.getTemplateGlobal({channel:i}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:i})]).then(function(t){c(n,r.b.DETECTIONDRAWCONGIG_SOMEREF,{presets:t[0].presets||[],TemplateGlobal:t[1],TemplateCalibrate:t[2]}),e()}).catch(function(){o()})}},p=function(){return function(n){c(n,r.b.DETECTIONDRAWCONGIG_CLEAR)}},g=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseCalibrate"),a.a.ConfigManager.getDefault("VideoAnalyseGlobal"),a.a.ConfigManager.getDefault("VideoAnalyseModule")]).then(function(t){c(n,r.b.DETECTIONDRAWCONGIG_DEFAULT,{VideoAnalyseCalibrate:t[0],VideoAnalyseGlobal:t[1],VideoAnalyseModule:t[2]}),e()}).catch(function(n){o()})}}},DPHw:function(n,t,e){"use strict";e.d(t,"q",function(){return d}),e.d(t,"p",function(){return p}),e.d(t,"w",function(){return g}),e.d(t,"A",function(){return h}),e.d(t,"B",function(){return m}),e.d(t,"H",function(){return C}),e.d(t,"t",function(){return S}),e.d(t,"G",function(){return v}),e.d(t,"D",function(){return b}),e.d(t,"C",function(){return y}),e.d(t,"I",function(){return E}),e.d(t,"z",function(){return T}),e.d(t,"u",function(){return M}),e.d(t,"x",function(){return A}),e.d(t,"E",function(){return I}),e.d(t,"v",function(){return O}),e.d(t,"r",function(){return P}),e.d(t,"F",function(){return R}),e.d(t,"n",function(){return L}),e.d(t,"K",function(){return D}),e.d(t,"y",function(){return V}),e.d(t,"o",function(){return F}),e.d(t,"J",function(){return N}),e.d(t,"i",function(){return w}),e.d(t,"k",function(){return x}),e.d(t,"j",function(){return G}),e.d(t,"b",function(){return k}),e.d(t,"d",function(){return _}),e.d(t,"a",function(){return j}),e.d(t,"l",function(){return W}),e.d(t,"h",function(){return B}),e.d(t,"m",function(){return U}),e.d(t,"f",function(){return z}),e.d(t,"e",function(){return H}),e.d(t,"c",function(){return Y}),e.d(t,"g",function(){return Z}),e.d(t,"s",function(){return $});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("ppeb"),u=e("tZYx"),f=e("a61M"),l=e("LvDl"),s=e.n(l);function d(n){return{type:c.e,data:n}}function p(n){return{type:c.d,data:n}}function g(n){return{type:c.q,data:n}}function h(n){return{type:c.v,data:n}}function m(n){return{type:c.w,data:n}}function C(n){return{type:c.C,data:n}}function S(n){return{type:c.h,data:n}}function v(n){return{type:c.B,data:n}}function b(n){return{type:c.y,data:n}}function y(n){return{type:c.x,data:n}}function E(n){return{type:c.D,data:n}}function T(n){return{type:c.t,data:n}}function M(n){return{type:c.n,data:n}}function A(n){return{type:c.r,data:n}}function I(n){return{type:c.z,data:n}}function O(n){return{type:c.p,data:n}}function P(n){return{type:c.f,data:n}}function R(n){return{type:c.A,data:n}}function L(n){return{type:c.b,data:n}}function D(n){return{type:c.E,data:n}}function V(n){return{type:c.s,data:n}}function F(n){return{type:c.c,data:n}}function N(n){return{type:c.F,data:n}}var w=function(){return function(n,t,e,a){u.a.ConfigManager.getConfig("VideoEncodeROI").then(function(t){t&&(n(v({data:t})),e(!0))}).catch(function(){a(!1)})}},x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){u.a.devVideoEncodeManager("getCaps",{},n).then(function(n){var e;n&&(t((e={data:n},{type:c.o,data:e})),a(!0))}).catch(function(){r(!1)})}},G=function(){return function(n,t,e,a){u.a.devVideoEncodeManager("getCaps",{},1).then(function(n){n&&e(n)}).catch(function(){a(!1)})}},k=function(){return function(n,t,e,a){u.a.getEncode("getCaps",{}).then(function(t){if(t){var r=t.caps||{};n((o=Object(i.a)({},r),{type:c.G,data:o})),e(!0)}else a(!1);var o})}},_=function(n,t,e){return function(a,r,o,i){var l=-1!==f.default.DeviceType.indexOf("TPC");if(f.default.AuthorityList.AuthEventCfg&&f.default.AuthorityList.AuthAVParam){var s=["VideoWidget","ChannelTitle","FaceFlowStat",n,"OSDSysAbnormal","VideoWidget2","LaserDistMeasure"];t.osd_GPS&&s.push("DevLocation"),t.osd_GPS&&s.push("GPS"),e&&s.push("PtzLifeProtection"),t.osd_AtmosphereOSD&&s.push("AtmosphereOSD"),t.osd_WeatherMonitor&&s.push("WeatherMonitorTitle"),t.osd_HeadLiftFlowStat&&s.push("HeadLiftFlowStat"),t.osd_Battery&&s.push("BatteryLowPowerAlarm"),t.osd_WaterLevel&&s.push("WaterLevelTitle"),s.push("VideoWidgetSolarCellStat"),t.osd_WaterMonitor&&s.push("WaterMonitorTitle"),u.a.ConfigManager.getConfig(s).then(function(n){var r=n[0]&&n[0].params.table,i=n[1]&&n[1].params.table,u=n[2]&&n[2].params.table,f=n[3]&&n[3].params.table,l=n[4]&&n[4].params.table,d=n[5]&&n[5].params.table,S=n[6]&&n[6].params.table,v=n[7]&&n[7].params.table,b=n[8]&&n[8].params.table,y=e&&n[s.indexOf("PtzLifeProtection")].params.table,I=t.osd_AtmosphereOSD&&n[s.indexOf("AtmosphereOSD")].params.table,O=t.osd_WeatherMonitor&&n[s.indexOf("WeatherMonitorTitle")].params.table,P=t.osd_HeadLiftFlowStat&&n[s.indexOf("HeadLiftFlowStat")].params.table,w=t.osd_Battery&&n[s.indexOf("BatteryLowPowerAlarm")].params.table,x=t.osd_WaterLevel&&n[s.indexOf("WaterLevelTitle")].params.table,G=null;n[s.indexOf("VideoWidgetSolarCellStat")].result&&(G=n[s.indexOf("VideoWidgetSolarCellStat")].params.table);var k=t.osd_WaterMonitor&&n[s.indexOf("WaterMonitorTitle")].params.table;r&&a(C(r)),i&&a(p(i)),u&&a(g(u)),f&&a(h(f)),l&&a(m(l)),d&&a(E(d)),S&&a(T(S)),v&&a(M(v)),b&&a(A(b)),y&&a(R(y)),I&&a(L(I)),O&&a(D(O)),P&&a(V(P)),w&&a(F(w)),x&&a(N(x)),G&&a({type:c.i,data:{VideoWidgetSolarCellStat:G}}),k&&a({type:c.i,data:{WaterMonitorTitle:k}}),o(r)}).catch(function(){i()})}else if(f.default.AuthorityList.AuthEventCfg&&!f.default.AuthorityList.AuthAVParam){var d=["VideoWidget","FaceFlowStat",n];t.osd_WaterLevel&&d.push("WaterLevelTitle"),t.osd_WaterMonitor&&d.push("WaterMonitorTitle"),u.a.ConfigManager.getConfig(d).then(function(n){var e=n[0]&&n[0].params.table,r=n[1]&&n[1].params.table,i=n[2]&&n[2].params.table,u=t.osd_WaterLevel&&n[d.indexOf("WaterLevelTitle")].params.table,f=t.osd_WaterMonitor&&n[d.indexOf("WaterMonitorTitle")].params.table;e&&a(C(e)),r&&a(g(r)),i&&a(h(i)),u&&a(N(u)),f&&a({type:c.i,data:{WaterMonitorTitle:f}}),o(e)}).catch(function(){i()})}else{var S=["VideoWidget","ChannelTitle","OSDSysAbnormal","VideoWidget2","LaserDistMeasure"];t.osd_GPS&&S.push("DevLocation"),t.osd_GPS&&S.push("GPS"),t.osd_AtmosphereOSD&&S.push("AtmosphereOSD"),u.a.ConfigManager.getConfig(S).then(function(n){var e=n[0]&&n[0].params.table,r=n[1]&&n[1].params.table,i=n[2]&&n[2].params.table,c=n[3]&&n[3].params.table,u=n[4]&&n[4].params.table,f=n[5]&&n[5].params.table,l=n[6]&&n[6].params.table,s=t.osd_AtmosphereOSD&&n[S.indexOf("AtmosphereOSD")].params.table;e&&a(C(e)),r&&a(p(r)),i&&a(m(i)),c&&a(E(c)),u&&a(T(u)),f&&a(M(f)),l&&a(A(l)),s&&a(L(s)),o(e)}).catch(function(){i()})}if(l){var v=[];t.osd_osdcombination&&v.push("ECompass"),t.osd_locationInfo&&v.push("CompassTitle"),v.length>0&&u.a.ConfigManager.getConfig(v).then(function(n){var t=v.indexOf("ECompass"),e=v.indexOf("CompassTitle");if(t>-1){var r=n[t]&&n[t].params.table;r&&a(O(r))}if(e>-1){var o=n[e]&&n[e].params.table;o&&a(P(o))}})}}},j=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,l,d){var S,v,b,y,I,O,D;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(S=-1!==f.default.DeviceType.indexOf("TPC"),v=i(),b=s.a.cloneDeep(v.Imgset),y=s.a.cloneDeep(v.Imgset.curChannel),!f.default.AuthorityList.AuthEventCfg||!f.default.AuthorityList.AuthAVParam){a.next=20;break}return I=["VideoWidget","ChannelTitle","FaceFlowStat",n,"OSDSysAbnormal","VideoWidget2","LaserDistMeasure"],t.osd_GPS&&I.push("DevLocation"),t.osd_GPS&&I.push("GPS"),e&&I.push("PtzLifeProtection"),t.osd_AtmosphereOSD&&I.push("AtmosphereOSD"),t.osd_WeatherMonitor&&I.push("WeatherMonitorTitle"),t.osd_HeadLiftFlowStat&&I.push("HeadLiftFlowStat"),t.osd_Battery&&I.push("BatteryLowPowerAlarm"),t.osd_WaterLevel&&I.push("WaterLevelTitle"),I.push("VideoWidgetSolarCellStat"),t.osd_WaterMonitor&&I.push("WaterMonitorTitle"),a.next=18,u.a.ConfigManager.getDefault(I).then(function(n){var a=s.a.cloneDeep(null===b||void 0===b?void 0:b.VideoWidget[y]);b.VideoWidget[y]=n[0].params.table[y],Array.isArray(a.ParkingSpaceBerthNumbers)&&a.ParkingSpaceBerthNumbers.map(function(n,t){b.VideoWidget[y].ParkingSpaceBerthNumbers&&(b.VideoWidget[y].ParkingSpaceBerthNumbers[t].EncodeBlend=n.EncodeBlend,b.VideoWidget[y].ParkingSpaceBerthNumbers[t].PlateSuperpositionEnable=n.PlateSuperpositionEnable,b.VideoWidget[y].ParkingSpaceBerthNumbers[t].BerthageSuperpositionEnable=n.BerthageSuperpositionEnable)}),b.ChannelTitle[y]=n[1].params.table[y],n[2].result&&(b.FaceFlowStat[y]=n[2].params.table[y]),n[3].result&&(b.NumberStat[y]=n[3].params.table[y]),n[4].result&&(b.OSDSysAbnormal=n[4].params.table),n[5].result&&(b.VideoWidget2[y]=n[5].params.table[y]),n[6].result&&(b.LaserDistMeasure[y]=n[6].params.table[y]),t.osd_GPS&&n[7]&&n[7].result&&(b.DevLocation=n[7].params.table),t.osd_GPS&&n[8]&&n[8].result&&(b.GPS[0].Enable=n[8].params.table[0].Enable),e&&n[I.indexOf("PtzLifeProtection")].result&&(b.PtzLifeProtection[y]=n[I.indexOf("PtzLifeProtection")].params.table[y]),t.osd_AtmosphereOSD&&n[I.indexOf("AtmosphereOSD")].result&&(b.AtmosphereOSD[y]=n[I.indexOf("AtmosphereOSD")].params.table[y]),t.osd_HeadLiftFlowStat&&n[I.indexOf("HeadLiftFlowStat")].result&&(b.HeadLiftFlowStat=n[I.indexOf("HeadLiftFlowStat")].params.table),t.osd_Battery&&n[I.indexOf("BatteryLowPowerAlarm")].result&&(b.BatteryLowPowerAlarm=n[I.indexOf("BatteryLowPowerAlarm")].params.table),t.osd_WaterLevel&&n[I.indexOf("WaterLevelTitle")].result&&(b.WaterLevelTitle[y]=n[I.indexOf("WaterLevelTitle")].params.table[y]),n[I.indexOf("VideoWidgetSolarCellStat")].result&&(b.VideoWidgetSolarCellStat[y]=n[I.indexOf("VideoWidgetSolarCellStat")].params.table[y]),t.osd_WaterMonitor&&n[I.indexOf("WaterMonitorTitle")].result&&(b.WaterMonitorTitle[y]=n[I.indexOf("WaterMonitorTitle")].params.table[y]),b.VideoWidget&&o(C(b.VideoWidget)),b.ChannelTitle&&o(p(b.ChannelTitle)),b.FaceFlowStat&&o(g(b.FaceFlowStat)),b.NumberStat&&o(h(b.NumberStat)),b.OSDSysAbnormal&&o(m(b.OSDSysAbnormal)),b.VideoWidget2&&o(E(b.VideoWidget2)),b.LaserDistMeasure&&o(T(b.LaserDistMeasure)),b.DevLocation&&o(M(b.DevLocation)),b.GPS&&o(A(b.GPS)),e&&o(R(b.PtzLifeProtection)),t.osd_AtmosphereOSD&&o(L(b.AtmosphereOSD)),t.osd_HeadLiftFlowStat&&o(V(b.HeadLiftFlowStat)),t.osd_Battery&&o(F(b.BatteryLowPowerAlarm)),t.osd_WaterLevel&&o(N(b.WaterLevelTitle)),b.VideoWidgetSolarCellStat&&o({type:c.i,data:{VideoWidgetSolarCellStat:b.VideoWidgetSolarCellStat}}),b.WaterMonitorTitle&&o({type:c.i,data:{WaterMonitorTitle:b.WaterMonitorTitle}}),l(b.VideoWidget)}).catch(function(){d()});case 18:a.next=34;break;case 20:if(!f.default.AuthorityList.AuthEventCfg||f.default.AuthorityList.AuthAVParam){a.next=28;break}return O=["VideoWidget","FaceFlowStat",n],t.osd_WaterLevel&&O.push("WaterLevelTitle"),t.osd_WaterMonitor&&O.push("WaterMonitorTitle"),a.next=26,u.a.ConfigManager.getDefault(O).then(function(n){b.VideoWidget[y]=n[0].params.table[y],n[1].result&&(b.FaceFlowStat[y]=n[1].params.table[y]),n[2].result&&(b.NumberStat[y]=n[2].params.table[y]),t.osd_WaterLevel&&n[O.indexOf("WaterLevelTitle")].result&&(b.WaterLevelTitle[y]=n[O.indexOf("WaterLevelTitle")].params.table[y]),t.osd_WaterMonitor&&n[O.indexOf("WaterMonitorTitle")].result&&(b.WaterMonitorTitle[y]=n[O.indexOf("WaterMonitorTitle")].params.table[y]),b.VideoWidget&&o(C(b.VideoWidget)),b.FaceFlowStat&&o(g(b.FaceFlowStat)),b.NumberStat&&o(h(b.NumberStat)),t.osd_WaterLevel&&o(N(b.WaterLevelTitle)),b.WaterMonitorTitle&&o({type:c.i,data:{WaterMonitorTitle:b.WaterMonitorTitle}}),l(b.VideoWidget)}).catch(function(){d()});case 26:a.next=34;break;case 28:return D=["VideoWidget","ChannelTitle","OSDSysAbnormal","VideoWidget2","LaserDistMeasure"],t.osd_GPS&&D.push("DevLocation"),t.osd_GPS&&D.push("GPS"),t.osd_AtmosphereOSD&&D.push("AtmosphereOSD"),a.next=34,u.a.ConfigManager.getDefault(D).then(function(n){b.VideoWidget[y]=n[0].params.table[y],b.ChannelTitle[y]=n[1].params.table[y],n[2].result&&(b.OSDSysAbnormal=n[2].params.table),n[3].result&&(b.VideoWidget2[y]=n[3].params.table[y]),n[4].result&&(b.LaserDistMeasure[y]=n[4].params.table[y]),n[5]&&n[5].result&&(b.DevLocation=n[5].params.table),n[6]&&n[6].result&&(b.GPS[y]=n[6].params.table[0]),t.osd_AtmosphereOSD&&n[D.indexOf("AtmosphereOSD")].result&&(b.AtmosphereOSD[y]=n[D.indexOf("AtmosphereOSD")].params.table[y]),b.VideoWidget&&o(C(b.VideoWidget)),b.ChannelTitle&&o(p(b.ChannelTitle)),b.OSDSysAbnormal&&o(m(b.OSDSysAbnormal)),b.VideoWidget2&&o(E(b.VideoWidget2)),b.LaserDistMeasure&&o(T(b.LaserDistMeasure)),b.DevLocation&&o(M(b.DevLocation)),b.GPS&&o(A(b.GPS)),t.osd_AtmosphereOSD&&o(L(b.AtmosphereOSD)),l(b.VideoWidget)}).catch(function(){d()});case 34:S&&t.osd_locationInfo&&u.a.ConfigManager.getDefault("CompassTitle").then(function(n){n&&o(P(n))});case 35:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},W=function(n,t,e){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0;return function(o,i,c,l){var s=i().Imgset,d=s.VideoWidget,p=s.ChannelTitle,g=s.FaceFlowStat,h=s.NumberStat,m=s.OSDSysAbnormal,C=s.VideoWidget2,S=s.LaserDistMeasure,v=s.DevLocation,b=s.GPS,y=s.PrivacyMasking,E=s.ECompass,T=s.CompassTitle,M=s.PtzLifeProtection,A=s.AtmosphereOSD,I=s.WeatherMonitor,O=s.HeadLiftFlowStat,P=s.BatteryLowPowerAlarm,R=s.WaterLevelTitle,L=s.VideoWidgetSolarCellStat,D=s.WaterMonitorTitle,V=s.SolarPowerTitle,F=-1!==f.default.DeviceType.indexOf("TPC"),N=[],w=[];v.Latitude=v.Latitude>0?v.Latitude:0,v.Longitude=v.Longitude>0?v.Longitude:0,f.default.AuthorityList.AuthEventCfg&&f.default.AuthorityList.AuthAVParam?(N=["VideoWidget","ChannelTitle","VideoWidget2"],w=[d,p,C],t.osd_SDMeasureDistance&&N.push("LaserDistMeasure")&&w.push(S),t.osd_abnormal&&N.push("OSDSysAbnormal")&&w.push(m),t.osd_GPS&&N.push("DevLocation")&&w.push(v),t.osd_GPS&&N.push("GPS")&&w.push(b),r&&N.push("PtzLifeProtection")&&w.push(M),t.osd_AtmosphereOSD&&N.push("AtmosphereOSD")&&w.push(A),t.osd_WeatherMonitor&&N.push("WeatherMonitorTitle")&&w.push(I),t.osd_HeadLiftFlowStat&&N.push("HeadLiftFlowStat")&&w.push(O),t.osd_Battery&&N.push("BatteryLowPowerAlarm")&&w.push(P),t.osd_WaterLevel&&N.push("WaterLevelTitle")&&w.push(R),t.osd_WaterMonitor&&N.push("WaterMonitorTitle")&&w.push(D),t.osd_SolarPower&&N.push("SolarPowerTitle")&&w.push(V),F&&(t.osd_osdcombination&&E&&E.length>0&&(N.push("ECompass"),w.push(E)),t.osd_locationInfo&&T&&T.length>0&&(N.push("CompassTitle"),w.push(T))),(e&&"VideoWidgetNumberPlan"===n||t.osd_ManNumber)&&N.push(n)&&w.push(h),(t.osd_faceAnalysis||t.osd_faceDetection)&&N.push("FaceFlowStat")&&w.push(g),"V1"===a&&N.push("PrivacyMasking")&&w.push(y.data),L&&N.push("VideoWidgetSolarCellStat")&&w.push(L),u.a.ConfigManager.setConfig(N,w).then(function(n){c(n)}).catch(function(n){l(n)})):f.default.AuthorityList.AuthEventCfg&&!f.default.AuthorityList.AuthAVParam?(N=["VideoWidget","VideoWidget2"],w=[d,C],e&&"VideoWidgetNumberPlan"===n&&N.push(n)&&w.push(h),(t.osd_faceAnalysis||t.osd_faceDetection)&&N.push("FaceFlowStat")&&w.push(g),"V1"===a&&N.push("PrivacyMasking")&&w.push(y.data),t.osd_WaterLevel&&N.push("WaterLevelTitle")&&w.push(R),t.osd_WaterMonitor&&N.push("WaterMonitorTitle")&&w.push(D),u.a.ConfigManager.setConfig(N,w).then(function(n){c(n)}).catch(function(n){l(n)})):(N=["VideoWidget","ChannelTitle","VideoWidget2"],w=[d,p,C],t.osd_SDMeasureDistance&&N.push("LaserDistMeasure")&&w.push(S),t.osd_abnormal&&N.push("OSDSysAbnormal")&&w.push(m),t.osd_GPS&&N.push("DevLocation")&&w.push(v),t.osd_GPS&&N.push("GPS")&&w.push(b),t.osd_AtmosphereOSD&&N.push("AtmosphereOSD")&&w.push(A),F&&(t.osd_osdcombination&&E&&E.length>0&&(N.push("ECompass"),w.push(E)),t.osd_locationInfo&&T&&T.length>0&&(N.push("CompassTitle"),w.push(T))),"V1"===a&&N.push("PrivacyMasking")&&w.push(y.data),u.a.ConfigManager.setConfig(N,w).then(function(n){c(n)}).catch(function(n){l(n)}))}},B=function(){return function(n,t,e,a){u.a.ConfigManager.getConfig("PrivacyMasking").then(function(t){t&&(n(b({data:t})),e(!0))}).catch(function(){a(!1)})}},U=function(n){return function(t,e,a,r){u.a.ConfigManager.setConfig("PrivacyMasking",n).then(function(n){n&&a(!0)}).catch(function(){r(!1)})}},z=function(){return function(n,t,e,a){u.a.PrivacyMasking.getPrivacyMasking({channel:0,offset:0,limit:24}).then(function(t){t&&(n(b({data:t})),e(!0))}).catch(function(){a(!1)})}},H=function(){return function(n,t,e,a){u.a.OSDManager.getCaps().then(function(n){n&&e(n)}).catch(function(){a(!1)})}},Y=function(){return function(n,t,e,a){u.a.LaserDistMeasure.getCaps(0).then(function(n){n&&e(n)}).catch(function(){a(!1)})}},Z=function(n,t){return function(e,a,r,o){u.a.PrivacyMasking.getPrivacyMasking({channel:n,offset:0,limit:t}).then(function(n){n&&(e(I({data:n})),r(!0))}).catch(function(){o(!1)})}},$=function(n){return function(t,e,a,r){t({type:c.i,data:n})}}},DsEz:function(n,t,e){n.exports=e.p+"static/media/plate_bg.c08e53ac.png"},DxJF:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"onDefault",function(){return l}),e.d(t,"clear",function(){return s});var a=e("tZYx"),r=e("VKoK"),o=e("R+FV");function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(o,c,u,f){var l=c().CutoutSetConfig.vm.CurChannel;return Promise.all([a.a.ConfigManager.getConfig("TrafficOverlap")]).then(function(a){i(o,r.b.CUTOUSETCONFIG_INIT,{TrafficOverlap:a[0],CurChannel:e?l:n.length>0?n[0]:0,ClassType:t}),u()}).catch(function(){f()})}},u=function(n){return function(t,e,a,c){i(t,r.b.CUTOUSETCONFIG_SAVE);var u=e().CutoutSetConfig.vm.TrafficOverlap;o.p.setConfig(n,"TrafficOverlap",u).then(function(){a()}).catch(function(n){c()})}},f=function(n){return function(t,e,a,o){i(t,r.b.CUTOUSETCONFIG_CHANGE,n)}},l=function(n){return function(n,t,e,o){a.a.ConfigManager.getDefault("TrafficOverlap").then(function(t){i(n,r.b.CUTOUSETCONFIG_DEFAULT,{TrafficOverlap:t}),e()}).catch(function(n){o()})}},s=function(){return function(n){i(n,r.b.CUTOUSETCONFIG_CLEAR)}}},E6Go:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return l}),e.d(t,"change",function(){return s}),e.d(t,"save",function(){return d}),e.d(t,"refresh",function(){return p}),e.d(t,"clear",function(){return g}),e.d(t,"upLoadPic",function(){return h}),e.d(t,"onDefault",function(){return m}),e.d(t,"getEventLink",function(){return C});var a=e("upjz"),r=e("tZYx"),o=e("d16l"),i=e("rGIM"),c=e("a61M"),u="IntelliCityMgr";function f(n,t,e){n(Object(o.a)(t,e))}var l=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,l,s){return c.default.DeviceType.indexOf("SD")>-1&&-1===c.default.DeviceType.indexOf("TPC")&&c.default.SupportIntelliScheme?Promise.all([r.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),r.a.intelliScheme.getConfig(n,"MultiSceneRecord"),r.a.intelliScheme.getConfig(n,"TrafficImage"),r.a.intelliScheme.getConfig(n,"SceneSnapShotWithRule2"),r.a.intelliScheme.getConfig(n,"TrafficSnapMosaic2"),r.a.VideoInAnalyse.getTemplateRule({channel:t,class:u}),r.a.VideoInAnalyse.getTemplatePresetRecord({Channel:t}),r.a.VideoInAnalyse.getTemplatePresetImage({Channel:t}),r.a.VideoInAnalyse.getTemplateSceneSnapShotWithRule2({Channel:t,Class:u,RuleType:"All"}),r.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:t}),r.a.intelliScheme.getConfig(n,"VideoAnalyseCalibrate"),r.a.VideoInAnalyse.getTemplateCalibrate({Channel:t}),r.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal"),i.default.get("IntelliCityMgr")]).then(function(n){f(e,o.b.IVSINTELLICITYMGR_RULE_INIT,{VideoAnalyseRule:n[0],MultiSceneRecord:n[1],TrafficImage:n[2],SceneSnapShotWithRule2:n[3],TrafficSnapMosaic2:n[4],TemplateRule:n[5],TemplatePresetRecord:n[6],TemplatePresetImage:n[7],TemplateSceneSnapShotWithRule2:n[8],TemplateTrafficSnapMosaic2:n[9],VideoAnalyseCalibrate:n[10],TemplateCalibrate:n[11],VideoAnalyseGlobal:n[12],IntelliCityMgrPD:n[13]}),l()}).catch(function(n){s(n)}):Promise.all([r.a.ConfigManager.getConfig("VideoAnalyseRule"),r.a.ConfigManager.getConfig("MultiSceneRecord"),r.a.ConfigManager.getConfig("TrafficImage"),r.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),r.a.ConfigManager.getConfig("TrafficSnapMosaic2"),r.a.VideoInAnalyse.getTemplateRule({channel:t,class:u}),r.a.VideoInAnalyse.getTemplatePresetRecord({Channel:t}),r.a.VideoInAnalyse.getTemplatePresetImage({Channel:t}),r.a.VideoInAnalyse.getTemplateSceneSnapShotWithRule2({Channel:t,Class:u,RuleType:"All"}),r.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:t}),r.a.ConfigManager.getConfig("VideoAnalyseCalibrate"),r.a.VideoInAnalyse.getTemplateCalibrate({Channel:t}),r.a.ConfigManager.getConfig("VideoAnalyseGlobal"),i.default.get("IntelliCityMgr")]).then(function(n){f(e,o.b.IVSINTELLICITYMGR_RULE_INIT,{VideoAnalyseRule:n[0],MultiSceneRecord:n[1],TrafficImage:n[2],SceneSnapShotWithRule2:n[3],TrafficSnapMosaic2:n[4],TemplateRule:n[5],TemplatePresetRecord:n[6],TemplatePresetImage:n[7],TemplateSceneSnapShotWithRule2:n[8],TemplateTrafficSnapMosaic2:n[9],VideoAnalyseCalibrate:n[10],TemplateCalibrate:n[11],VideoAnalyseGlobal:n[12],IntelliCityMgrPD:n[13]}),l()}).catch(function(n){s(n)})}},s=function(n){return function(t,e,a,r){return Promise.all([]).then(function(){f(t,o.b.IVSINTELLICITYMGR_RULE_CHANGE,n),a()}).catch(function(n){r(n)})}},d=function(n){return function(t,e,a,i){var u=e().IVSIntelliCityMgrRuleConfig.vm,l=u.VRule,s=u.MulSceneRec,d=u.SceneSnapShotWithRule2,p=u.VideoAnalyseGlobal,g=u.VideoAnalyseCalibrate;c.default.DeviceType.indexOf("SD")>-1&&-1===c.default.DeviceType.indexOf("TPC")&&c.default.SupportIntelliScheme?r.a.intelliScheme.setConfig(n,["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseGlobal","VideoAnalyseCalibrate"],[d,s,l,p,g]).then(function(){f(t,o.b.IVSINTELLICITYMGR_RULE_SAVE),a()}).catch(function(n){i(n)}):r.a.ConfigManager.setConfig(["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseGlobal","VideoAnalyseCalibrate"],[d,s,l,p,g]).then(function(){f(t,o.b.IVSINTELLICITYMGR_RULE_SAVE),a()}).catch(function(n){i(n)})}},p=function(n,t){return function(e,a,i,u){var l={actionName:"refresh"};return n.reflect("wait",l),c.default.DeviceType.indexOf("SD")>-1&&-1===c.default.DeviceType.indexOf("TPC")&&c.default.SupportIntelliScheme?Promise.all([r.a.intelliScheme.getConfig(t,"VideoAnalyseRule"),r.a.intelliScheme.getConfig(t,"MultiSceneRecord"),r.a.intelliScheme.getConfig(t,"TrafficImage"),r.a.intelliScheme.getConfig(t,"SceneSnapShotWithRule2"),r.a.intelliScheme.getConfig(t,"TrafficSnapMosaic2"),r.a.intelliScheme.getConfig(t,"VideoAnalyseCalibrate"),r.a.intelliScheme.getConfig(t,"VideoAnalyseGlobal")]).then(function(t){if(n.reflect("isWait",l))return i("cancel");f(e,o.b.IVSINTELLICITYMGR_RULE_REFRESH,{VideoAnalyseRule:t[0],MultiSceneRecord:t[1],TrafficImage:t[2],SceneSnapShotWithRule2:t[3],TrafficSnapMosaic2:t[4],VideoAnalyseCalibrate:t[5],VideoAnalyseGlobal:t[6]}),n.reflect("waitOver",l),i()}).catch(function(t){if(n.reflect("isWait",l))return u("cancel");n.reflect("waitOver",l),u(t)}):Promise.all([r.a.ConfigManager.getConfig("VideoAnalyseRule"),r.a.ConfigManager.getConfig("MultiSceneRecord"),r.a.ConfigManager.getConfig("TrafficImage"),r.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),r.a.ConfigManager.getConfig("TrafficSnapMosaic2"),r.a.ConfigManager.getConfig("VideoAnalyseCalibrate"),r.a.ConfigManager.getConfig("VideoAnalyseGlobal")]).then(function(t){if(n.reflect("isWait",l))return i("cancel");f(e,o.b.IVSINTELLICITYMGR_RULE_REFRESH,{VideoAnalyseRule:t[0],MultiSceneRecord:t[1],TrafficImage:t[2],SceneSnapShotWithRule2:t[3],TrafficSnapMosaic2:t[4],VideoAnalyseCalibrate:t[5],VideoAnalyseGlobal:t[6]}),n.reflect("waitOver",l),i()}).catch(function(t){if(n.reflect("isWait",l))return u("cancel");n.reflect("waitOver",l),u(t)})}},g=function(){return function(n){f(n,o.b.IVSINTELLICITYMGR_RULE_CLEAR)}},h=function(n){return function(t,e,a,i){var c=e().IVSIntelliCityMgrRuleConfig.vm.CurChannel;return Promise.all([r.a.IntelliSnapshot.manualSnapByEvent({Channel:c,Info:{EventCode:"ShopSignAbnormal",Times:1}})]).then(function(){var e=setInterval(function(){r.a.getEncode("updateOverlayPicture",{Pictures:[{Name:n+".jpg"}]}).then(function(n){clearInterval(e),f(t,o.b.IVSINTELLICITYMGR_RULE_UPLOADPIC,{UpLoadPicURLObj:n}),a()}).catch(function(){i()})})}).catch(function(){i()})}},m=function(n){return function(t,e,i,c){var u={actionName:"default"};n.reflect("wait",u);var l=e().IVSIntelliCityMgrRuleConfig.vm,s=l.VRule,d=l.CurChannel;return Promise.all([r.a.ConfigManager.getDefault("VideoAnalyseRule"),r.a.ConfigManager.getDefault("MultiSceneRecord"),r.a.ConfigManager.getDefault("SceneSnapShotWithRule2")]).then(function(e){if(n.reflect("isWait",u))return i("cancel");var r=s[d].filter(function(n){return"IntelliCityMgr"!==n.Class}),c=e[0][d].filter(function(n){return"IntelliCityMgr"===n.Class});s[d]=[].concat(Object(a.a)(r),Object(a.a)(c)),f(t,o.b.IVSINTELLICITYMGR_RULE_DEFAULT,{VideoAnalyseRule:s,MultiSceneRecord:e[1],SceneSnapShotWithRule2:e[2]}),n.reflect("waitOver",u),i()}).catch(function(t){if(n.reflect("isWait",u))return c("cancel");n.reflect("waitOver",u),c()})}},C=function(n){return function(t,e,a,i){for(var c=Math.ceil(n.length/8),u=[],l=[],s=0;s<c;s++)u[s]=n.slice(8*s,8*(s+1)),l.push(r.a.EventManager.getEventLink({code:u[s]}));return Promise.all(l).then(function(n){f(t,o.b.IVSINTELLICITYMGR_RULE_GETEVENTLINK,{EventLink:n||[]}),a()}).catch(function(){i()})}}},ECPF:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"onDefault",function(){return p}),e.d(t,"refreshforChannel",function(){return u});var a=e("tZYx"),r=e("w4R+"),o=(e("rGIM"),e("R+FV"));function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(a,c,u,f){return Promise.all([o.p.getConfig(e,"VideoAnalyseModule"),o.p.getConfig(e,"VideoAnalyseGlobal"),o.p.getConfig(e,"VideoAnalyseRule")]).then(function(e){i(a,r.b.SDTRAFFICADVANCECONFIGURATION_INIT,{VideoAnalyseModule:e[0],VideoAnalyseGlobal:e[1],VideoAnalyseRule:e[2],planType:n,sceneType:t}),u()}).catch(function(){f()})}},u=function(){return function(n,t,e,o){var c=t().SDTrafficAdvanceConfig.vm,u=c.CurChannel;c.sceneType;return Promise.all([a.a.PTZManager("getPresets",u)]).then(function(t){i(n,r.b.SDTRAFFICADVANCECONFIGURATION_SOMEREF,{presets:t[0].presets||[]}),e()}).catch(function(){o()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){i(t,r.b.SDTRAFFICADVANCECONFIGURATION_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){return function(t,e,a,c){var u=e().SDTrafficAdvanceConfig.vm,f=u.VModule,l=u.VGlobal,s=u.VRule;o.p.setConfig(n,["VideoAnalyseModule","VideoAnalyseGlobal","VideoAnalyseRule"],[f,l,s]).then(function(){i(t,r.b.SDTRAFFICADVANCECONFIGURATION_SAVE),a()}).catch(function(n){c()})}},s=function(n){return function(t,e,c,u){var f=e().SDTrafficAdvanceConfig.vm.CurChannel;return Promise.all([o.p.getConfig(n,"VideoAnalyseModule"),a.a.PTZManager("getPresets",f),o.p.getConfig(n,"VideoAnalyseGlobal"),o.p.getConfig(n,"VideoAnalyseRule")]).then(function(n){i(t,r.b.SDTRAFFICADVANCECONFIGURATION_REFRESH,{VideoAnalyseModule:n[0],Presets:n[1],VideoAnalyseGlobal:n[2],VideoAnalyseRule:n[3]}),c()}).catch(function(){u()})}},d=function(){return function(n){i(n,r.b.SDTRAFFICADVANCECONFIGURATION_CLEAR)}},p=function(){return function(n,t,e,a){}}},EEMX:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,"/*\u5b58\u653e\u57fa\u8272*/\n.record_download .record_download-title-left {\n  float: left;\n}\n.record_download .record_download-title-right {\n  float: right;\n}\n.record_download .item-list {\n  line-height: 32px;\n}\n.record_download .saveplace-input {\n  width: 350px;\n}\n.record_download .encryption_password {\n  width: 170px;\n}\n.record_download .ant-spin-container {\n  min-height: 240px;\n}\n.record_download .ant-modal-body {\n  padding-bottom: 60px;\n}\n.record_download .ant-modal-body .ant-table-scroll .ant-table-body {\n  overflow-y: auto !important;\n}\n.record_download .ant-modal-body .ant-table-scroll .ant-table-header {\n  overflow: auto !important;\n  margin-bottom: 0px !important;\n  padding-bottom: 0px !important;\n}\n",""])},EET9:function(n,t,e){"use strict";e.d(t,"n",function(){return u}),e.d(t,"m",function(){return f}),e.d(t,"i",function(){return l}),e.d(t,"d",function(){return s}),e.d(t,"f",function(){return d}),e.d(t,"g",function(){return p}),e.d(t,"l",function(){return g}),e.d(t,"k",function(){return h}),e.d(t,"j",function(){return m}),e.d(t,"c",function(){return C}),e.d(t,"b",function(){return S}),e.d(t,"a",function(){return v}),e.d(t,"h",function(){return b}),e.d(t,"e",function(){return y});var a=e("upjz"),r=(e("tL+A"),e("QpBz")),o=e.n(r),i=e("3wHl"),c=e("tZYx");function u(n){return{type:i.e,data:n}}function f(n){return{type:i.b,data:n}}var l=function(n){var t=n.delayFuncList,e=void 0===t?[]:t;return function(n,t){0!==e.length&&e.forEach(function(n){n()})}},s=function(n){return function(t,e){var a=e().publicState.$t;c.a.getDeviceInfo("getDeviceInfo",n).then(function(e){var r={name:n,part:n,fs:e.device.Partitions[0].FileSystem};c.a.formatPatition("formatPatition",r).then(function(n){o.a.success(a("com.Operateingsuccess")),t(d())}).catch(function(n){})}).catch(function(){o.a.error(a("com.Operateingfailure"))}).finally(function(){})}},d=function(n){return function(t,e){var r=e().publicState.$t,u=[];c.a.getDeviceAllInfo("getDeviceAllInfo").then(function(t){u=t.info||[],n&&o.a.success(r("com.Operateingsuccess"))}).catch(function(){u=[],n&&o.a.error(r("sto.NoStorage"))}).finally(function(){var n;t((n=Object(a.a)(u),{type:i.d,data:n}))})}},p=function(n){return function(t,e){var r=e().publicState.$t,u=[];c.a.StorageQuota.getQuotaInfo().then(function(n){u=n.CapacityFileType||[]}).catch(function(){u=[],n&&o.a.error(r("com.Operateingfailure"))}).finally(function(){var n;t((n=Object(a.a)(u),{type:i.a,data:n}))})}},g=function(n){return function(t,e){var a=e().publicState.$t;c.a.StorageQuota.setQuotaInfo(n).then(function(){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))}).finally(function(){d()(t,e),p()(t,e)})}},h=function(n){return function(t,e){var a=e().publicState.$t;c.a.setGroup("setGroup",n).then(function(){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))}).finally(function(){d()(t,e)})}},m=function(n){return function(t,e){var a=e().publicState.$t;c.a.setEject("eject",n).then(function(n){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))}).finally(function(){d()(t,e)})}},C=function(n){return function(t,e){var a=e().publicState.$t;c.a.SDEncryptRPC("encrypt",n).then(function(n){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))}).finally(function(){d()(t,e)})}},S=function(n){return function(t,e){var a=e().publicState.$t;c.a.SDEncryptRPC("decrypt",n).then(function(t){t[0]&&!1===t[0].result?c.a.SDEncrypt.getOperateErrorPolicy({name:n.name,operate:"decrypt"}).then(function(n){var t=a("com.Operateingfailure");n.policy&&n.policy.leftTimes?t=a("sys.AfreshPwdTip")+a("com.LoginTimes").replace("XXXX",n.policy.leftTimes):n.policy&&n.policy.lockSeconds&&(t=a("com.LoginErrorNo5")+a("sys.LockedSecond").replace("XXXX",n.policy.lockSeconds)),o.a.error(a(t))}):o.a.success(a("com.Operateingsuccess"))}).catch(function(){}).finally(function(){d()(t,e)})}},v=function(n){return function(t,e){var a=e().publicState.$t;c.a.SDEncryptRPC("clearPassword",n).then(function(t){t[0]&&!1===t[0].result?c.a.SDEncrypt.getOperateErrorPolicy({name:n.name,operate:"clearPassword"}).then(function(n){var t="";n.policy&&n.policy.leftTimes?t=a("sys.AfreshPwdTip")+a("com.LoginTimes").replace("XXXX",n.policy.leftTimes):n.policy&&n.policy.lockSeconds&&(t=a("com.LoginErrorNo5")+a("sys.LockedSecond").replace("XXXX",n.policy.lockSeconds)),o.a.error(a(t))}):o.a.success(a("com.Operateingsuccess"))}).catch(function(){}).finally(function(){d()(t,e)})}},b=function(n){return function(t,e){var a=e().publicState.$t;c.a.SDEncryptRPC("modifyPassword",n).then(function(t){t[0]&&!1===t[0].result?c.a.SDEncrypt.getOperateErrorPolicy({name:n.name,operate:"modifyPassword"}).then(function(n){var t=a("com.Operateingfailure");n.policy&&n.policy.leftTimes?t=a("sys.AfreshPwdTip")+a("com.LoginTimes").replace("XXXX",n.policy.leftTimes):n.policy&&n.policy.lockSeconds&&(t=a("com.LoginErrorNo5")+a("sys.LockedSecond").replace("XXXX",n.policy.lockSeconds)),o.a.error(a(t))}):o.a.success(a("com.Operateingsuccess"))}).catch(function(){}).finally(function(){d()(t,e)})}},y=function(){return function(n){setTimeout(function(){n(u({ip:["255.255.255.255","255.255.255.255","255.255.255.255"]})),n(f({count:1}))},2e3)}}},EjoO:function(n,t,e){"use strict";e.d(t,"g",function(){return c}),e.d(t,"h",function(){return u}),e.d(t,"c",function(){return f}),e.d(t,"d",function(){return l}),e.d(t,"f",function(){return s}),e.d(t,"e",function(){return d}),e.d(t,"b",function(){return p}),e.d(t,"a",function(){return g});var a=e("a1D8"),r=e("Naw0"),o=e("tZYx"),i=e("rGIM");function c(n){return{type:r.a,data:n}}function u(n){return{type:r.b,data:n}}var f=function(n){return function(t,e,a,r){o.a.System.multicall(n).then(function(i){if(i.length>0){var f={};if(i.forEach(function(t,e){t.params&&t.params.table&&(f[n[e].params.name]=t.params.table)}),f.GPS&&f.GPS[0]&&f.GPS[0].Enable){var l=null;f.GPS[0].CurMode||(f.GPS[0].CurMode="GPS"),l=f.GPS[0].CurMode,"configManager.getDefault"!==n[0].method?o.a.GpsControl.getGpsStatus().then(function(n){n&&n.status&&n.status.Source&&(l=n.status.Source),t(c({GPSvalue:l})),a(!0)}).catch(function(){r()}):t(c({GPSvalue:l}))}if("configManager.getDefault"===n[0].method){var s=e().LocalSet,d=s.TVOutShow,p=s.conflictJson,g=s.isConflictTVoutExtra2;if(d){var h=f.VideoOut[0]||{};g&&p.Extra2&&h.Mode&&"Off"!==h.Mode.Format&&(h.Enable=!1,h.Mode.Format="Off",a("conflictTip"))}}t(u({data:f}))}a(!0)}).catch(function(){r(!1)})}},l=function(n){return function(t,e,a,i){o.a.System.multicall(n).then(function(n){var e;n.length>0&&(n.forEach(function(n){var t=n.params.definition,e=[];t.forEach(function(n){n&&e.push({text:n,value:n})}),n.params.definition=e}),t((e={VideoStandards:n[0].params.definition},{type:r.c,data:e})),a(!0))}).catch(function(){i(!1)})}},s=function(n,t,e){return function(t,e,a,r){o.a.System.multicall(n).then(function(n){for(var t=0,e=!1,o=0;o<n.length;o++){var i=n[o];i.result||(t=1,i.error&&(285475337===i.error.code?e="ivs.NTSCAndIntelConflictTip":285475338===i.error.code?e="ivs.NTSCAndMotionConflictTip":285475073===i.error.code&&(e="per.PtzStartingTip")))}1!==t?a(!0):r(e)}).catch(function(){r(!1)})}},d=function(){return function(n,t,e,a){Promise.all([o.a.DevVideoOutput.getCollect(),i.default.get("TVOutConflict")]).then(function(t){t[0].channels&&!t[1]?(n(c({TVOutShow:!0})),o.a.MagicBox.getProductDefinition("CaptureSetResolution").then(function(t){t&&t.definition&&n(c({TVOutShow:!1}))}).catch(function(){e()})):e()}).catch(function(){e()})}},p=function(n){return function(t,e,r,i){var u=e().LocalSet.conflictJson;o.a.ConfigManager.getConfig(n).then(function(e){e.forEach(function(e,r){var o=e.params.table;switch(n[r]){case"Encode":t(c({conflictJson:Object(a.a)({},u,{Extra2:o.some(function(n){return n.ExtraFormat[1].VideoEnable})})}))}}),r(!0)})}},g=function(){return function(n,t,e,a){var r=[o.a.DevVideoOutput.getCollect(),i.default.get("TVOutConflict"),i.default.get("PD"),o.a.FaceBoard.getCaps().catch(function(n){})];Promise.all(r).then(function(t){var a=t[2].CaptureSetResolution,r=!1,o=!1;!t[0].channels||t[1]||a||(r=!0),t[3]&&t[3].caps&&t[3].caps.SupportPowerMonitor&&(o=!0),n(c({TVOutShow:r,PowerMonitorShow:o})),e()}).catch(function(){e()})}}},"F+Lv":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return f}),e.d(t,"clear",function(){return l}),e.d(t,"getEventLink",function(){return s}),e.d(t,"updateVm",function(){return d});var a=e("tZYx"),r=e("3fSH");e("rGIM");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("MultiSceneRecord"),a.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),a.a.ConfigManager.getConfig("VideoAnalyseCalibrate")]).then(function(t){o(n,r.b.TRAFFICILLEGALMANUALEVIDENCE_INIT,{VideoAnalyseRule:t[0],MultiSceneRecord:t[1],SceneSnapShotWithRule2:t[2],VideoAnalyseCalibrate:t[3]}),e()}).catch(function(){i()})}},c=function(n){return function(t,e,a,i){return Promise.all([]).then(function(){o(t,r.b.TRAFFICILLEGALMANUALEVIDENCE_CHANGE,n),a()}).catch(function(){i()})}},u=function(){return function(n,t,e,i){var c=t().TrafficIllegalManualEvidenceConfig.vm,u=c.VRule,f=c.MulSceneRec,l=c.SceneSnapShotWithRule2,s=c.VideoAnalyseCalibrate;a.a.ConfigManager.setConfig(["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseCalibrate"],[l,f,u,s]).then(function(){o(n,r.b.TRAFFICILLEGALMANUALEVIDENCE_SAVE),e()}).catch(function(n){i()})}},f=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("MultiSceneRecord"),a.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),a.a.ConfigManager.getConfig("VideoAnalyseCalibrate")]).then(function(t){o(n,r.b.TRAFFICILLEGALMANUALEVIDENCE_REFRESH,{VideoAnalyseRule:t[0],MultiSceneRecord:t[1],SceneSnapShotWithRule2:t[2],VideoAnalyseCalibrate:t[3]}),e()}).catch(function(){i()})}},l=function(){return function(n){o(n,r.b.TRAFFICILLEGALMANUALEVIDENCE_CLEAR)}},s=function(n){return function(t,e,i,c){for(var u=Math.ceil(n.length/8),f=[],l=[],s=0;s<u;s++)f[s]=n.slice(8*s,8*(s+1)),l.push(a.a.EventManager.getEventLink({code:f[s]}));return Promise.all(l).then(function(n){o(t,r.b.TRAFFICILLEGALMANUALEVIDENCE_GETEVENTLINK,{EventLink:n||[]}),i()}).catch(function(){c()})}},d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.a)(r.b.TRAFFICILLEGALMANUALEVIDENCE_UPDATEVM,n)}},F5Yw:function(n,t,e){"use strict";e.d(t,"a",function(){return i}),e.d(t,"b",function(){return c}),e.d(t,"d",function(){return u}),e.d(t,"e",function(){return f}),e.d(t,"c",function(){return l});var a=e("2bPg"),r=e("BRlI"),o=(e("Vo62"),e("tZYx")),i=function(n){return function(t,e,a,r){o.a.MediaFileFind.instance().then(function(t){o.a.MediaFileFind.findFile(t.result,n).then(function(){o.a.MediaFileFind.getCount(t.result).then(function(n){a({object:t.result,totalCount:n.count})}).catch(function(){r(!1)})}).catch(function(){o.a.MediaFileFind.close(t.result),o.a.MediaFileFind.destroy(t.result),r(!1)})}).catch(function(){r(!1)})}},c=function(n,t){return function(e,a,r,i){o.a.MediaFileFind.findNextFile(n,t).then(function(n){r(n)}).catch(function(){i()})}},u=function(n,t){return function(e,a,r,i){o.a.MediaFileFind.setQueryResultOptions(n,t).then(function(n){r(n)}).catch(function(){i()})}},f=function(n){return function(t,e,a,r){o.a.MediaFileFind.close(n).then(function(){o.a.MediaFileFind.destroy(n),a()}).catch(function(){r()})}},l=new(function(){function n(t){Object(a.a)(this,n),this.getNewData=function(n,t,e){return n.slice(0,e).concat(t).concat(n.slice(e+t.length))},Object.assign(this,{token:null,totalCount:0,count:100,params:null,formatInfo:function(n){return[]},fn:[function(){},function(){},function(){},function(){}]},t)}return Object(r.a)(n,[{key:"init",value:function(n){Object.assign(this,{count:100,token:null,params:null,totalCount:0,formatInfo:function(n){}},this,n)}},{key:"request",value:function(n){void 0!==n&&(this.params=n);var t=this,e={isOk:!1,content:""};return new Promise(function(n){t.fn[0](t.params).then(function(a){if(t.totalCount=a.totalCount,t.token=a.object,!a.totalCount)return n(e);var r=new Array(a.totalCount).fill({});t.requestRange(0,r,t.count).then(function(t){return""===t.content&&console.error("this response is error"),n(t)})}).catch(function(t){return console.error(t),n(e)})})}},{key:"requestRange",value:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.count,a=this,r={isOk:!1,content:"com.NoDataTip"};return new Promise(function(o){a.fn[1](a.token,{options:{offset:n}}).then(function(){a.fn[2](a.token,{count:e}).then(function(e){return e&&!e.infos?o(r):e.infos&&e.infos.length>0?o({isOk:!0,content:a.getNewData(t,a.formatInfo(e.infos,n,t),n)}):(r.content="",o(r))})}).catch(function(n){return console.error(n),o(r)})})}},{key:"finish",value:function(){this.token&&(this.fn[3](this.token),this.token=null)}}]),n}())},Fd5U:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"clear",function(){return s}),e.d(t,"onDefault",function(){return d});var a=e("tZYx"),r=e("uHSf"),o=(e("rGIM"),e("a61M"));function i(n,t,e){n(Object(r.a)(t,e))}var c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,c,u,f){var l=o.default.ChannelCapsInfo[n].SupportedScenes.ForeignDetection.SupportedRules,s=Object.keys(l);return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(t,"VideoAnalyseRule"),a.a.intelliScheme.getConfig(t,"VideoAnalyseGlobal"),a.a.VideoInAnalyse.getTemplateRule({channel:n,class:"ForeignDetection"}),o.default.EventCaps&&a.a.EventManager.getEventLink({code:s})]).then(function(n){i(e,r.b.FOREIGNDETECTION_RULE_INIT,{VideoAnalyseRule:n[0],VideoAnalyseGlobal:n[1],TemplateRule:n[2],EventLink:n[3]||{}}),u()}).catch(function(){f()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.VideoInAnalyse.getTemplateRule({channel:n,class:"ForeignDetection"}),o.default.EventCaps&&a.a.EventManager.getEventLink({code:s})]).then(function(n){i(e,r.b.FOREIGNDETECTION_RULE_INIT,{VideoAnalyseRule:n[0],VideoAnalyseGlobal:n[1],TemplateRule:n[2],EventLink:n[3]||{}}),u()}).catch(function(){f()})}},u=function(n){return function(t){i(t,r.b.FOREIGNDETECTION_RULE_CHANGE,n)}},f=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t,e,c,u){var f=e().ForeignDetectRuleConfig.vm.VRule;o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["VideoAnalyseRule"],[f]).then(function(){i(t,r.b.FOREIGNDETECTION_RULE_SAVE),c()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["VideoAnalyseRule"],[f]).then(function(){i(t,r.b.FOREIGNDETECTION_RULE_SAVE),c()}).catch(function(n){u()})}},l=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t,e,c,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal")]).then(function(n){i(t,r.b.FOREIGNDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0],VideoAnalyseGlobal:n[1]}),c()}).catch(function(){u()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule")]).then(function(n){i(t,r.b.FOREIGNDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0]}),c()}).catch(function(){u()})}},s=function(){return function(n){i(n,r.b.FOREIGNDETECTION_RULE_CLEAR)}},d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t,e,c,u){e().ForeignDetectRuleConfig.vm.VRule;return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getDefault(n,"VideoAnalyseRule")]).then(function(n){i(t,r.b.FOREIGNDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0]}),c()}).catch(function(){u()}):Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseRule")]).then(function(n){i(t,r.b.FOREIGNDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0]}),c()}).catch(function(){u()})}}},GJs2:function(n,t,e){"use strict";e.d(t,"e",function(){return u}),e.d(t,"g",function(){return f}),e.d(t,"c",function(){return l}),e.d(t,"d",function(){return s}),e.d(t,"f",function(){return d}),e.d(t,"b",function(){return p}),e.d(t,"a",function(){return g});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("o4R/"),i=e("tZYx"),c=(e("LvDl"),e("a61M"));function u(n){return{type:o.d,data:n}}function f(n){return{type:o.a,data:n}}function l(n){return{type:o.b,data:n}}function s(n){return{type:o.c,data:n}}function d(n){return{type:o.e,data:n}}function p(n){return function(t,e,a,r){e().publicState.$t;c.default.DeviceType.indexOf("SD")>-1&&c.default.SupportIntelliScheme?i.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal").then(function(n){t(u(n)),a()}):i.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(n){t(u(n)),a()})}}function g(n,t,e,a){return function(t,o,u,s){var d=o().publicState.$t;c.default.DeviceType.indexOf("SD")>-1&&c.default.SupportIntelliScheme?i.a.intelliScheme.getConfig(a,n).then(function(n){if(t(f(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;t(l(a))}"refresh"===e&&r.a.success(d("com.Operateingsuccess")),u()}).catch(function(n){"refresh"===e&&r.a.error(d("com.Operateingfailure"))}):i.a.ConfigManager.getConfig(n).then(function(n){if(t(f(n[0].params.table)),n[1]&&n[1].result){var a=n[1].params.table;t(l(a))}"refresh"===e&&r.a.success(d("com.Operateingsuccess")),u()}).catch(function(n){"refresh"===e&&r.a.error(d("com.Operateingfailure"))})}}},GulU:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return f}),e.d(t,"clear",function(){return l}),e.d(t,"onDefault",function(){return s});var a=e("tZYx"),r=e("aBw5");e("rGIM"),e("a61M");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(){return function(n,t,e,i){return Promise.all([a.a.createDoSeekFind("TrafficBlackList").getQuerySize(),a.a.createDoSeekFind("TrafficRedList").getQuerySize()]).then(function(t){o(n,r.b.VEHICLELIBRARYGROUPCONFIG_INIT,{TrafficBlackList:t[0],TrafficRedList:t[1]}),e()}).catch(function(){i()})}},c=function(n){return function(n,t,e,a){}},u=function(){return function(n,t,e,a){}},f=function(){return function(n,t,e,a){}},l=function(){return function(n){o(n,r.b.VEHICLELIBRARYGROUPCONFIG_CLEAR)}},s=function(){return function(n,t,e,a){}}},H9HX:function(n,t,e){"use strict";e.d(t,"d",function(){return r}),e.d(t,"c",function(){return o}),e.d(t,"b",function(){return i}),e.d(t,"a",function(){return c});var a=e("BDir");function r(n){return{type:a.b,data:n}}function o(n){return{type:a.a,data:n}}var i=function(n){var t=n.delayFuncList,e=void 0===t?[]:t;return function(n,t){t(),0!==e.length&&e.forEach(function(n){n()})}},c=function(){return function(n){setTimeout(function(){n(r({ip:["255.255.255.255","255.255.255.255","255.255.255.255"]})),n(o({count:1}))},2e3)}}},HCnz:function(n,t,e){"use strict";e.r(t),e.d(t,"initCode",function(){return c}),e.d(t,"saveCode",function(){return f}),e.d(t,"changeCode",function(){return s}),e.d(t,"defaultCode",function(){return d}),e.d(t,"clear",function(){return p}),e.d(t,"filterCode",function(){return l}),e.d(t,"refreshCode",function(){return u});var a=e("tZYx"),r=e("Oz5q"),o=e("rGIM");function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t){return function(e,c,u,f){var l=n.length?n[0]:0;return Promise.all([a.a.ConfigManager.getConfig(["VideoAnalyseGlobal","TrafficViolationCode"]),o.default.get("IVSCaps")]).then(function(a){i(e,r.b.IVSINTELLICITYMGRCONFIG_CODE_INIT,{VideoAnalyseGlobal:a[0][0].params.table,TrafficViolationCode:a[0][1].params.table,VideoAnalyse:a[1],SupportedScenes:a[1].SupportedScenes,PageChannels:n,CurChannel:l,ClassType:t}),u()}).catch(function(){f()})}},u=function(){return function(n,t,e,o){var c=t().ViolationCode.vm;a.a.ConfigManager.getConfig("TrafficViolationCode").then(function(t){c.TrafficViolationCode=t,i(n,r.b.IVSINTELLICITYMGRCONFIG_CODE_CHANGE,c),e()}).catch(function(){o()})}},f=function(){return function(n,t,e,o){i(n,r.b.IVSINTELLICITYMGRCONFIG_CODE_SAVE);var c=t().ViolationCode.vm.TrafficViolationCode;a.a.ConfigManager.setConfig("TrafficViolationCode",c).then(function(){e()}).catch(function(n){o()})}},l=function(n){return function(t,e,a,o){i(t,r.b.IVSINTELLICITYMGRCONFIG_CODE_FILTER,n)}},s=function(n){return function(t,e,a,o){i(t,r.b.IVSINTELLICITYMGRCONFIG_CODE_CHANGE,n)}},d=function(n){return function(n,t,e,o){a.a.ConfigManager.getDefault("TrafficViolationCode").then(function(t){i(n,r.b.IVSINTELLICITYMGRCONFIG_CODE_DEFAULT,{TrafficViolationCode:t}),e()}).catch(function(n){o()})}},p=function(){return function(n){i(n,r.b.IVSINTELLICITYMGRCONFIG_CODE_CLEAR)}}},HI6Z:function(n,t,e){"use strict";e.d(t,"b",function(){return f}),e.d(t,"c",function(){return l}),e.d(t,"g",function(){return u}),e.d(t,"a",function(){return s}),e.d(t,"d",function(){return p}),e.d(t,"f",function(){return g}),e.d(t,"e",function(){return d});var a=e("upjz"),r=e("DjBF"),o=e("zb5l"),i=e("tZYx"),c=e("rGIM");function u(n){return{type:o.a,data:n}}var f=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,u,f){var l=e().SpliceVideoConfig.caps;if(l[n])u(l[n]);else{var s=c.default.get("VideoInputCapsEx",null,n),d=i.a.LensManager.getLensInfo(n),p=i.a.MultiVideo.getSpliceCaps(n);Promise.all([s,d,p]).then(function(e){var i,c=Object(r.a)(e,3),f=c[0],s=c[1],d=c[2],p={FreeSplice:f.FreeSplice,LensInfo:s.lensInfo,SpliceCaps:d.Caps};l[n]=p,t((i=Object(a.a)(l),{type:o.b,data:i})),u(p)}).catch(function(){f()})}}},l=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("FreeSplice").then(function(t){n(u(t)),e(t)}).catch(function(){a()})}},s=function(n,t){return function(e,a,o,c){var u=[i.a.ConfigManager.getDefault("VideoWidget")];if(n>1){var f=a().VideoEncode.encodeFormat;f?u.push(Promise.resolve(f)):u.push(i.a.ConfigManager.getConfig("Encode"))}Promise.all(u).then(function(e){var a=Object(r.a)(e,2),c=a[0],u=a[1],f=[];c.forEach(function(n){n&&n.ChannelTitle&&(n.ChannelTitle.EncodeBlend=!1),n&&n.TimeTitle&&(n.TimeTitle.EncodeBlend=!1)}),f.push({name:"VideoWidget",table:c}),u&&!u[t].ExtraFormat[n-2].VideoEnable&&(u[t].ExtraFormat[n-2].VideoEnable=!0,f.push({name:"Encode",table:u})),i.a.ConfigManager.setTemporaryConfig(f).then(function(){}).finally(function(){o()})}).catch(function(){o()})}},d=function(){return function(n,t,e,a){i.a.ConfigManager.restoreTemporaryConfig([{name:"VideoWidget"},{name:"Encode"}])}},p=function(){return function(n,t,e,a){i.a.ConfigManager.restoreExcept({names:["Network","IPv6","VideoInSensor","Multicast","Web","Https","DVRIP","VideoStandard","VSP_GAYS","DeviceInfo","Telnet","WLan","FreeSplice"]}).then(function(){e()}).catch(function(){a()})}},g=function(n){return function(t,e,a,r){i.a.ConfigManager.setConfig("FreeSplice",n,-1,["ForceNotify"]).then(function(){a()}).catch(function(){r()})}}},"JZ+Q":function(n,t,e){"use strict";e.r(t),e.d(t,"updateVideoAnalyse",function(){return o}),e.d(t,"updateVideoAnalyseRule",function(){return i}),e.d(t,"updateVideoAnalyseModule",function(){return c}),e.d(t,"getVideoAnalyse",function(){return u}),e.d(t,"getDefaultVideoAnalyse",function(){return f}),e.d(t,"setVideoAnalyse",function(){return l});var a=e("+Rsl"),r=e("tZYx");e("LvDl"),e("a61M");function o(n){return{type:a.a,data:n}}function i(n){return{type:a.c,data:n}}function c(n){return{type:a.b,data:n}}function u(n,t,e,a){return function(t,e,a,u){r.a.ConfigManager.getConfig(n).then(function(n){var e=n[0].params.table,r=n[1].params.table;t(o(n)),t(i(e)),t(c(r)),a(n)})}}function f(n,t,e,a){return function(t,e,a,u){r.a.ConfigManager.getDefault(n).then(function(n){var e=n[0].params.table,r=n[1].params.table;t(o(n)),t(i(e)),t(c(r)),a(n)})}}function l(n){return function(t,e,a,o){var i=[],c=e().ElevatorDetectRuleConfig;n.forEach(function(n){i.push(c[n])}),r.a.ConfigManager.setConfig(n,i).then(function(n){a(n)})}}},Kfkz:function(n,t,e){var a=e("raZl");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},KjJg:function(n,t,e){"use strict";e.d(t,"t",function(){return o}),e.d(t,"a",function(){return i}),e.d(t,"b",function(){return c}),e.d(t,"m",function(){return u}),e.d(t,"v",function(){return f}),e.d(t,"j",function(){return l}),e.d(t,"e",function(){return s}),e.d(t,"q",function(){return d}),e.d(t,"n",function(){return p}),e.d(t,"w",function(){return g}),e.d(t,"k",function(){return h}),e.d(t,"r",function(){return m}),e.d(t,"l",function(){return C}),e.d(t,"u",function(){return S}),e.d(t,"i",function(){return v}),e.d(t,"h",function(){return b}),e.d(t,"s",function(){return E}),e.d(t,"f",function(){return T}),e.d(t,"c",function(){return M}),e.d(t,"o",function(){return A}),e.d(t,"g",function(){return O}),e.d(t,"d",function(){return P}),e.d(t,"p",function(){return R});var a=e("d0G+"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("CalibrateMatrix").then(function(t){n(o({data:t})),e(!0)}).catch(function(){a(!1)})}},c=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("CalibrateMatrix").then(function(t){n(o({data:t})),e(!0)}).catch(function(){a(!1)})}},u=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("CalibrateMatrix",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function f(n){return{type:a.e,data:n}}var l=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("SplitCalibrateMatrix").then(function(t){n(f({data:t})),e(!0)}).catch(function(){a(!1)})}},s=function(n){return function(t,e,a,o){var i=e().CalibrateMatrixConfig.SplitCalibrateMatrix;r.a.ConfigManager.getDefault("SplitCalibrateMatrix").then(function(e){if(n)for(var r=0;r<i.length;r++)i[r].Mode=e[r].Mode,i[r].Splits.forEach(function(n,t){n.CalibratedModes=[],n.PointPairEx.forEach(function(n,t){n.Point=[]})});t(f({data:n?i:e})),a(!0)}).catch(function(){o(!1)})}},d=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("SplitCalibrateMatrix",n).then(function(){a(!0)}).catch(function(){o(!1)})}},p=function(n){return function(t,e,a,o){r.a.MasterSlaveGroup.setCalibrateScene(n).then(function(n){a(n.result)}).catch(function(){o(!1)})}};function g(n){return{type:a.g,data:n}}var h=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("VideoWidget").then(function(t){n(g({data:t})),e(!0)}).catch(function(){a(!1)})}},m=function(n){return function(t,e,a,o){r.a.ConfigManager.setTemporaryConfig("VideoWidget",n).then(function(n){t(g({data:n})),a(!0)}).catch(function(){o(!1)})}},C=function(){return function(n,t,e,a){r.a.ConfigManager.restoreTemporaryConfig("VideoWidget").then(function(){e(!0)}).catch(function(){a(!1)})}};function S(n){return{type:a.d,data:n}}var v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,o){r.a.PTZManager("getPresets",n).then(function(n){var e={};n.presets&&n.presets.forEach(function(n,t){e[n.Index]={Name:n.Name}}),t(S({PtzPreset:e})),a(!0)}).catch(function(n){o(!1)})}},b=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,o){var i=a().CalibrateMatrixConfig.PtzPreset,c={},u=[];n[t]&&n[t].Splits.forEach(function(n,t){n.PresetID>0&&i[n.PresetID]&&(u.push({text:i[n.PresetID].Name,value:n.PresetID}),c[n.PresetID]={Id:t,Mode:n.CalibratedModes||[]})}),e(S({PresetConfig:{presetOptions:u,presetList:c}})),r(!0)}};function y(n){return{type:a.b,data:n}}var E=function(n){return function(t){t(y({data:n}))}},T=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("MasterSlaveGlobal").then(function(t){n(y({data:t})),e(!0)}).catch(function(){a(!1)})}},M=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("MasterSlaveGlobal").then(function(t){n(y({data:t})),e(!0)}).catch(function(){a(!1)})}},A=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("MasterSlaveGlobal",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function I(n){return{type:a.c,data:n}}var O=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("MasterSlaveGroup").then(function(t){n(I({data:t})),e(!0)}).catch(function(){a(!1)})}},P=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("MasterSlaveGroup").then(function(t){n(I({data:t})),e(!0)}).catch(function(){a(!1)})}},R=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("MasterSlaveGroup",n).then(function(){a(!0)}).catch(function(){o(!1)})}}},KsXv:function(n,t,e){"use strict";e.d(t,"a",function(){return o});var a=function(n,t){var e=(n[0][0]-t[0][0])*(n[1][1]-t[0][1])-(n[0][1]-t[0][1])*(n[1][0]-t[0][0]),a=(n[0][0]-t[1][0])*(n[1][1]-t[1][1])-(n[0][1]-t[1][1])*(n[1][0]-t[1][0]);if(e*a>=0)return!1;var r=(t[0][0]-n[0][0])*(t[1][1]-n[0][1])-(t[0][1]-n[0][1])*(t[1][0]-n[0][0]);return!(r*(r+e-a)>=0)},r=function(n,t){var e,a,r=t.length,o=0,i=n;e=t[0];for(var c=1;c<=r;++c){if(i[0]===e[0]&&i[1]===e[1])return!0;if(a=t[c%r],i[1]<Math.min(e[1],a[1])||i[1]>Math.max(e[1],a[1]))e=a;else{if(i[1]>Math.min(e[1],a[1])&&i[1]<Math.max(e[1],a[1])){if(i[0]<=Math.max(e[0],a[0])){if(e[1]===a[1]&&i[0]>=Math.min(e[0],a[0]))return!0;if(e[0]===a[0]){if(e[0]===i[0])return!0;++o}else{var u=(i[1]-e[1])*(a[0]-e[0])/(a[1]-e[1])+e[0];if(Math.abs(i[0]-u)<2e-10)return!0;i[0]<u&&++o}}}else if(i[1]===a[1]&&i[0]<=a[0]){var f=t[(c+1)%r];i[1]>=Math.min(e[1],f[1])&&i[1]<=Math.max(e[1],f[1])?++o:o+=2}e=a}}return o%2!==0},o=function(n,t){return function(n,t){for(var e=0,r=n.length;e<r;e++)for(var o=0,i=t.length;o<i;o++){var c=[n[e],n[e===r-1?0:e+1]],u=[t[o],t[o===i-1?0:o+1]];if(a(c,u))return!0}return!1}(n,t)||function(n,t){var e,a=!1;return(e=n.some(function(n){return r(n,t)}))||(a=t.some(function(t){return r(t,n)})),e||a}(n,t)}},LeNF:function(n,t,e){n.exports=e.p+"static/media/icon_chepai_n.ff6144ea.png"},"MD/Z":function(n,t,e){"use strict";e.d(t,"c",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"b",function(){return u});var a=e("sCc5"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(n){return function(t,e,a,i){r.a.ConfigManager.setConfig("VideoAnalyseGlobal",n).then(function(){t(o(n)),a()}).catch(function(){i()})}},c=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){n(o(t)),e()}).catch(function(){a()})}},u=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(t){n(o(t)),e()}).catch(function(){a()})}}},NRwH:function(n,t,e){var a=e("5xG2");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},O4lr:function(n,t,e){n.exports=e.p+"static/media/dismatch.112ffd85.png"},"P/nQ":function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return m}),e.d(t,"refresh",function(){return C}),e.d(t,"clear",function(){return S}),e.d(t,"insert",function(){return c}),e.d(t,"delData",function(){return u}),e.d(t,"clearData",function(){return l}),e.d(t,"update",function(){return f}),e.d(t,"importFile",function(){return s}),e.d(t,"importState",function(){return p}),e.d(t,"exportFile",function(){return d}),e.d(t,"exportState",function(){return g}),e.d(t,"search",function(){return h});var a=e("tZYx"),r=e("v3NN");e("rGIM"),e("a61M");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,i,c,u){var f=n.name,l=n.pageSize,s=a.a.createDoSeekFind(f,{pageSize:l},!1);s.getQuerySize().then(function(n){0!==n?s.doSeekFind(t).then(function(t){o(e,r.b.VEHICLELIBRARYDETAILCONFIG_INIT,{TotalSize:n,CurQueryData:t}),c()}).catch(function(n){u()}):(o(e,r.b.VEHICLELIBRARYDETAILCONFIG_INIT,{TotalSize:n,CurQueryData:[]}),c())}).catch(function(n){u()})}},c=function(n){return function(t,e,i,c){var u=n.name,f=n.record;return Promise.all([a.a.insertRecord(u,f,!1)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_INSERT),i()}).catch(function(n){c(n)})}},u=function(n){return function(t,e,i,c){var u=n.name,f=n.recno;return Promise.all([a.a.removeRecord(u,f)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_DELDATA),i()}).catch(function(n){c()})}},f=function(n){return function(t,e,i,c){var u=n.name,f=n.recno,l=n.record;return Promise.all([a.a.updateRecord(u,f,l,!1)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_UPDATE),i()}).catch(function(n){c()})}},l=function(n){return function(t,e,i,c){var u=n.name;return Promise.all([a.a.clearRecord(u)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_CLEARDATA),i()}).catch(function(n){c()})}},s=function(n){return function(t,e,i,c){var u=n.name,f=n.filename,l=n.format,s=n.code,d=a.a.createImportRecode(u),p=d.importRecord,g=(d.getFileImportData,d.destroy);p(f,l,s,!1).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_IMPORT),i(n)}).catch(function(n){n&&n.error?(g(),c(n.error)):c()})}},d=function(n){return function(t,e,i,c){var u=n.name,f=n.filename,l=n.format,s=n.code;return Promise.all([a.a.createExportRecode(u).exportRecord(f,l,s,!1)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_EXPORT),i(n[0])}).catch(function(n){c()})}},p=function(n){return function(t,e,i,c){var u=n.name;return Promise.all([a.a.createImportRecode(u).getFileImportData()]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_IMPORTSTATE),i(n[0])}).catch(function(n){c()})}},g=function(n){return function(t,e,i,c){var u=n.name;return Promise.all([a.a.createExportRecode(u).getFileExportState()]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_EXPORTSTATE),i(n[0])}).catch(function(n){c()})}},h=function(n){return function(t,e,i,c){var u=n.name,f=n.pageSize,l=n.PlateNumberVague,s=n.pageID,d=void 0===s?1:s,p=a.a.createDoSeekFind(u,{pageSize:f,PlateNumberVague:l},!1);p.getQuerySize().then(function(n){0!==n?p.doSeekFind(d).then(function(e){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_SEARCH,{TotalSize:n,CurQueryData:e}),i(n)}).catch(function(n){c()}):(o(t,r.b.VEHICLELIBRARYDETAILCONFIG_SEARCH,{TotalSize:n,CurQueryData:[]}),i(n))}).catch(function(n){c()})}},m=function(n){return function(n,t,e,a){}},C=function(n){return function(t,e,i,c){var u=n.name,f=n.pageSize;return Promise.all([a.a.getRecords(u,{pageSize:f},!1)]).then(function(n){o(t,r.b.VEHICLELIBRARYDETAILCONFIG_REFRESH,{QueryData:n[0]}),i()}).catch(function(n){c()})}},S=function(){return function(n){o(n,r.b.VEHICLELIBRARYDETAILCONFIG_CLEAR)}}},PoTb:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"onDefault",function(){return p});var a=e("tZYx"),r=e("v7nT"),o=e("rGIM"),i=e("a61M");function c(n,t,e){n(Object(r.a)(t,e))}var u=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,u,f,l){return i.default.DeviceType.indexOf("SD")>-1&&-1===i.default.DeviceType.indexOf("TPC")&&i.default.SupportIntelliScheme?Promise.all([a.a.PTZManager("getPresets"),a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal"),a.a.intelliScheme.getConfig(n,"VideoAnalyseCalibrate"),a.a.VideoInAnalyse.getTemplateGlobal({channel:t}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:t}),o.default.get("IntelliCityMgr"),a.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),a.a.intelliScheme.getConfig(n,"MultiSceneRecord"),a.a.intelliScheme.getConfig(n,"TrafficImage"),a.a.intelliScheme.getConfig(n,"SceneSnapShotWithRule2"),a.a.intelliScheme.getConfig(n,"TrafficSnapMosaic2")]).then(function(n){c(e,r.b.IVSINTELLICITYMGR_INIT,{Presets:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseCalibrate:n[2],TemplateGlobal:n[3],TemplateCalibrate:n[4],IntelliCityMgrPD:n[5],VideoAnalyseRule:n[6],MultiSceneRecord:n[7],TrafficImage:n[8],SceneSnapShotWithRule2:n[9],TrafficSnapMosaic2:n[10]}),f()}).catch(function(){l()}):Promise.all([a.a.PTZManager("getPresets"),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseCalibrate"),a.a.VideoInAnalyse.getTemplateGlobal({channel:t}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:t}),o.default.get("IntelliCityMgr"),a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("MultiSceneRecord"),a.a.ConfigManager.getConfig("TrafficImage"),a.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),a.a.ConfigManager.getConfig("TrafficSnapMosaic2")]).then(function(n){c(e,r.b.IVSINTELLICITYMGR_INIT,{Presets:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseCalibrate:n[2],TemplateGlobal:n[3],TemplateCalibrate:n[4],IntelliCityMgrPD:n[5],VideoAnalyseRule:n[6],MultiSceneRecord:n[7],TrafficImage:n[8],SceneSnapShotWithRule2:n[9],TrafficSnapMosaic2:n[10]}),f()}).catch(function(){l()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){c(t,r.b.IVSINTELLICITYMGR_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){return function(t,e,o,u){var f=e().IVSIntelliCityMgrConfig.vm,l=f.VGlobal,s=f.VideoAnalyseCalibrate,d=f.SceneSnapShotWithRule2,p=f.MulSceneRec,g=f.TrafficImg,h=f.VRule,m=f.TrafficSnapMosaic2;i.default.DeviceType.indexOf("SD")>-1&&-1===i.default.DeviceType.indexOf("TPC")&&i.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["VideoAnalyseGlobal","VideoAnalyseCalibrate","SceneSnapShotWithRule2","MultiSceneRecord","TrafficImage","VideoAnalyseRule","TrafficSnapMosaic2"],[l,s,d,p,g,h,m]).then(function(){c(t,r.b.IVSINTELLICITYMGR_SAVE),o()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["VideoAnalyseGlobal","VideoAnalyseCalibrate","SceneSnapShotWithRule2","MultiSceneRecord","TrafficImage","VideoAnalyseRule","TrafficSnapMosaic2"],[l,s,d,p,g,h,m]).then(function(){c(t,r.b.IVSINTELLICITYMGR_SAVE),o()}).catch(function(n){u()})}},s=function(n){return function(t,e,o,u){return i.default.DeviceType.indexOf("SD")>-1&&-1===i.default.DeviceType.indexOf("TPC")&&i.default.SupportIntelliScheme?Promise.all([a.a.PTZManager("getPresets"),a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal"),a.a.intelliScheme.getConfig(n,"VideoAnalyseCalibrate"),a.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),a.a.intelliScheme.getConfig(n,"MultiSceneRecord"),a.a.intelliScheme.getConfig(n,"TrafficImage"),a.a.intelliScheme.getConfig(n,"SceneSnapShotWithRule2"),a.a.intelliScheme.getConfig(n,"TrafficSnapMosaic2")]).then(function(n){c(t,r.b.IVSINTELLICITYMGR_REFRESH,{Presets:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseCalibrate:n[2],VideoAnalyseRule:n[3],MultiSceneRecord:n[4],TrafficImage:n[5],SceneSnapShotWithRule2:n[6],TrafficSnapMosaic2:n[7]}),o()}).catch(function(){u()}):Promise.all([a.a.PTZManager("getPresets"),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseCalibrate"),a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("MultiSceneRecord"),a.a.ConfigManager.getConfig("TrafficImage"),a.a.ConfigManager.getConfig("SceneSnapShotWithRule2"),a.a.ConfigManager.getConfig("TrafficSnapMosaic2")]).then(function(n){c(t,r.b.IVSINTELLICITYMGR_REFRESH,{Presets:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseCalibrate:n[2],VideoAnalyseRule:n[3],MultiSceneRecord:n[4],TrafficImage:n[5],SceneSnapShotWithRule2:n[6],TrafficSnapMosaic2:n[7]}),o()}).catch(function(){u()})}},d=function(){return function(n){c(n,r.b.IVSINTELLICITYMGR_CLEAR)}},p=function(){return function(n,t,e,o){a.a.ConfigManager.getDefault("VideoAnalyseCalibrate").then(function(t){c(n,r.b.IVSINTELLICITYMGR_DEFAULT,{VideoAnalyseCalibrate:t}),e()}).catch(function(n){o()})}}},"Q/Ux":function(n,t,e){n.exports=e.p+"static/media/logo_small.a5ebfc7a.png"},Qv5c:function(n,t,e){"use strict";e.d(t,"t",function(){return f}),e.d(t,"i",function(){return l}),e.d(t,"d",function(){return s}),e.d(t,"p",function(){return d}),e.d(t,"s",function(){return p}),e.d(t,"h",function(){return g}),e.d(t,"c",function(){return h}),e.d(t,"o",function(){return m}),e.d(t,"r",function(){return C}),e.d(t,"f",function(){return S}),e.d(t,"a",function(){return v}),e.d(t,"n",function(){return b}),e.d(t,"b",function(){return y}),e.d(t,"u",function(){return E}),e.d(t,"l",function(){return T}),e.d(t,"q",function(){return M}),e.d(t,"k",function(){return A}),e.d(t,"e",function(){return I}),e.d(t,"m",function(){return O}),e.d(t,"j",function(){return P}),e.d(t,"g",function(){return R});var a=e("a1D8"),r=e("7x8c"),o=e("tZYx"),i=e("a61M"),c=e("rGIM");function u(n){return{type:r.i,data:n}}function f(n){return{type:r.h,data:n}}var l=function(n){return function(n,t,e,a){o.a.ConfigManager.getConfig("VideoAnalyseRule").then(function(t){n(f(t)),e(!0)}).catch(function(n){})}},s=function(n){return function(n,t,e,a){o.a.ConfigManager.getDefault("VideoAnalyseRule").then(function(t){n(f(t)),e(!0)}).catch(function(n){})}},d=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("VideoAnalyseRule",n).then(function(n){a(!0)}).catch(function(n){})}};function p(n){return{type:r.g,data:n}}var g=function(n){return function(n,t,e,a){o.a.ConfigManager.getConfig("VideoAnalyseModule").then(function(t){n(p(t)),e(!0)}).catch(function(n){})}},h=function(n){return function(n,t,e,a){o.a.ConfigManager.getDefault("VideoAnalyseModule").then(function(t){n(p(t)),e(!0)}).catch(function(n){})}},m=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("VideoAnalyseModule",n).then(function(n){a(!0)}).catch(function(n){})}};function C(n){return{type:r.f,data:n}}var S=function(n){return function(n,t,e,a){o.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){n(C(t)),e(!0)}).catch(function(n){})}},v=function(n){return function(n,t,e,a){o.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(t){n(C(t)),e(!0)}).catch(function(n){})}},b=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("VideoAnalyseGlobal",n).then(function(n){a(!0)}).catch(function(n){})}};var y=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,a,r,i){o.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(a){o.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(o){var i=null;if(Array.isArray(o))for(var c in o[t]){var u=o[t][c];if(/Scene/.test(c)&&0===u.PtzPresetId){i=u;break}}"Lanes"===n&&a[t].Scene&&a[t].Scene.Detail&&(a[t].Scene.Detail.Lanes=i.Detail.Lanes,a[t].Scene.Detail.SnapOverlayObjRect=i.Detail.SnapOverlayObjRect,a[t].Scene.Detail.TrafficSnapOverlayObjRect=i.Detail.TrafficSnapOverlayObjRect),"PlateHints"===n&&a[t].Scene&&a[t].Scene.Detail.Lanes,e(C(a)),r(!0)}).catch(function(n){}),r(!0)}).catch(function(n){})}};function E(n){return{type:r.b,data:n}}var T=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){var i=null,c=null,u=null;Promise.all([o.a.VideoInAnalyse.getTemplateGlobal({channel:n}),o.a.VideoInAnalyse.getTemplateModule({channel:n,class:"Traffic"}),o.a.VideoInAnalyse.getTemplateRule({channel:n,class:"Traffic"}),o.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:n})]).then(function(n){var e=n[0]||{},r=n[1]||{},o=n[2]||{};for(var f in u=n[3]||{},e){var l=e[f];if(/Scene/.test(f)&&"Traffic"===l.Type){i=l;break}}var s=r.Traffic,d=[];for(var p in c=o.Traffic)d.push(c[p]);u=u.Traffic,t(E({templateGlobal:i,templateModule:s,templateRule:d,templateTrafficSnapMosaic2:u})),a(!0)}).catch(function(n){t(E({templateGlobal:i,templateModule:null,templateRule:c,templateTrafficSnapMosaic2:u}))})}};function M(n){return{type:r.c,data:n}}var A=function(n){return function(n,t,e,a){o.a.ConfigManager.getConfig("RoadFlowStat").then(function(t){n(M(t)),e(!0)}).catch(function(n){})}},I=function(n){return function(n,t,e,a){o.a.ConfigManager.getDefault("RoadFlowStat").then(function(t){n(M(t)),e(!0)}).catch(function(n){})}},O=function(n){return function(t,e,a,r){o.a.ConfigManager.setConfig("RoadFlowStat",n).then(function(n){a(!0)}).catch(function(n){})}};var P=function(){return function(n,t,e,a){c.default.get("IVSCaps").then(function(t){var a;n((a=t.SupportedScenes.Traffic,{type:r.a,data:a})),e(!0)}).catch(function(n){})}},R=function(){return function(n,t,e,r){if(i.default.EventCaps){var c=t().ParkingSpaceConfig.linkEvent;o.a.EventManager.getEventLink({code:["TrafficTollGate"]}).then(function(t){c=Object(a.a)({},i.default.EventCaps,i.default.DefaultEvent),t.name.forEach(function(n,t){n.forEach(function(n,t){"default"===n?c=i.default.EventCaps:c[n]=!0})}),n(u({linkEvent:c})),e(!0)}).catch(function(t){n(u({linkEvent:i.default.EventCaps})),e(!0)})}else e(!1)}}},RoHF:function(n,t,e){"use strict";e.d(t,"H",function(){return u}),e.d(t,"s",function(){return f}),e.d(t,"J",function(){return l}),e.d(t,"E",function(){return d}),e.d(t,"I",function(){return p}),e.d(t,"C",function(){return h}),e.d(t,"c",function(){return m}),e.d(t,"D",function(){return C}),e.d(t,"F",function(){return S}),e.d(t,"i",function(){return v}),e.d(t,"u",function(){return E}),e.d(t,"A",function(){return T}),e.d(t,"t",function(){return M}),e.d(t,"v",function(){return A}),e.d(t,"l",function(){return I}),e.d(t,"o",function(){return O}),e.d(t,"B",function(){return P}),e.d(t,"x",function(){return R}),e.d(t,"m",function(){return L}),e.d(t,"z",function(){return D}),e.d(t,"y",function(){return V}),e.d(t,"b",function(){return F}),e.d(t,"d",function(){return N}),e.d(t,"j",function(){return w}),e.d(t,"k",function(){return x}),e.d(t,"r",function(){return G}),e.d(t,"e",function(){return k}),e.d(t,"G",function(){return _}),e.d(t,"g",function(){return j}),e.d(t,"h",function(){return W}),e.d(t,"w",function(){return B}),e.d(t,"a",function(){return U}),e.d(t,"n",function(){return z}),e.d(t,"q",function(){return H}),e.d(t,"p",function(){return Y}),e.d(t,"f",function(){return Z});var a=e("DjBF"),r=e("a1D8"),o=e("TRqa"),i=e("tZYx"),c=e("rGIM");function u(n){return{type:o.d,data:n}}function f(n){return{type:o.a,data:n}}function l(n){return{type:o.i,data:n}}function s(n){return n=JSON.parse(JSON.stringify(n)),{type:o.h,data:n}}function d(n){return n=JSON.parse(JSON.stringify(n)),{type:o.f,data:n}}function p(n){return{type:o.e,data:n}}function g(n){return{type:o.c,data:n}}var h=function(n){return function(t,e){t(s({mmp:n}))}},m=function(){return function(n,t){i.a.ConfigManager.getConfig("CustomLightName").then(function(t){t[0].Names=[],n(g({data:t}))})}},C=function(n){return function(t,e){t(g({data:n}))}},S=function(n){return function(t,e){t(u({data:n}))}},v=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("CustomLightName").then(function(t){t[0].Names||(t[0].Names=[]),n(g({data:t})),e(!0)}).catch(function(){a(!1)})}},b=function(n,t){return Object.prototype.toString.call(n).toLowerCase()===("[object "+t+"]").toLowerCase()},y=function(n,t,e,a){var r={};return b(n,"array")?(r=[],n.map(function(n,o){var i={name:n,table:t[o],options:a||[]};b(e,"array")?i.channel=e[o]:b(e,"number")&&(i.channel=e),r.push(i)})):b(e,"array")?(r=[],e.map(function(e,o){r.push({name:n,table:t[o],channel:e,options:a||[]})})):(r={name:n,table:t,options:a||[]},b(e,"number")&&(r.channel=e)),r};var E=function(n){return function(t,e,a,r){i.a.ConfigManager.restoreTemporaryConfig(function(n,t,e){void 0===e&&(e=!1);var a={};return b(n,"array")?(a=[],n.map(function(n,r){var o={name:n};b(t,"array")?(o.channel=t[r],o.onlyLocal=e):b(t,"array")&&(o.channel=t,o.onlyLocal=e),a.push(o)})):b(n,"array")?(a=[],t.map(function(t,r){a.push({name:n,channel:t,onlyLocal:e})})):(a={name:n},b(t,"number")&&(a.channel=t,a.onlyLocal=e)),a}(n)).then(function(){a(!0)}).catch(function(){r(!1)})}},T=function(n,t,e){return function(a,o,c,u){b(n,"array")?n.map(function(n,a){e[n]=t[a]}):e[n]=t,a(d({data:Object(r.a)({},e)})),i.a.ConfigManager.setTemporaryConfig(y(n,t)).then(function(){c(!0)}).catch(function(n){n.error&&[285475328,285475334,285475335,285475336].includes(n.error.code)?c(n):u(n)})}},M=function(n){return function(t,e,a,r){t(d({data:n=JSON.parse(JSON.stringify(n))}))}};var A=function(n,t){return function(e,a,r,o){i.a.ConfigManager.setConfig(n,t).then(function(a){if(a.some(function(n){return!n.result}))return a.some(function(n){if(!n.result)return o(n)});var i={};n.map(function(n,e){i[n]=t[e]}),e(s({mmp:i})),r(!0)}).catch(function(n){o(!1)})}},I=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(a,r,c,u){var f=r().CameraConfig.subListData;f&&(f=JSON.parse(JSON.stringify(f))),i.a.ConfigManager.getDefault(n).then(function(r){f?r.map(function(t,a){t.params&&t.params.table&&(void 0!==t.params.table[e]?f[n[a]][e]=t.params.table[e]:f[n[a]]=t.params.table)}):r.map(function(t,e){f[n[e]]=t.params.table}),t||a(d({data:f,mmp:f})),a(function(n){return n=JSON.parse(JSON.stringify(n)),{type:o.g,data:n}}({data:f})),c(f)}).catch(function(n){u(!1)})}},O=function(n){return function(t,e,a,r){i.a.ConfigManager.getConfig(n).then(function(e){var r={};e.map(function(t,e){t.result?r[n[e]]=t.params.table:r[n[e]]=null}),t(d({data:r,mmp:r})),a(r)}).catch(function(){r(!1)})}},P=function(n){return function(t,e,a,r){i.a.ConfigManager.setTemporaryConfig(y("VideoInMode",n)).then(function(){t(l({data:n})),a(!0)}).catch(function(){r(!1)})}},R=function(n,t){return function(e,a,r,o){i.a.ConfigManager.setConfig(n,t).then(function(){r(!0)}).catch(function(){o(!1)})}},L=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("FocusCalibrationScene").then(function(t){n(p({focusCalibrationScene:t})),e(!0)}).catch(function(){a(!1)})}},D=function(n){return function(t,e,a,r){i.a.LensFunc.setFocusScene(n).then(function(n){a(!0)}).catch(function(n){r(n)})}},V=function(n,t,e){return function(a,r,o,c){i.a.LensFunc.setFocusCalibration(n,t,e).then(function(){o(!0)}).catch(function(){c(!1)})}},F=function(n){return function(t,e,a,r){i.a.LensFunc.attachFocusCalibration(n).then(function(n){a(n)}).catch(function(){r(!1)})}},N=function(n,t){return function(e,a,r,o){i.a.LensFunc.detachFocusCalibration(n,t).then(function(){r(!0)}).catch(function(){o(!1)})}},w=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("VideoInMode").then(function(t){n(u({data:t})),e(!0)}).catch(function(){a(!1)})}},x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){i.a.ConfigManager.getDefault("VideoInMode").then(function(r){var o=e().CameraConfig.VideoInModeData;o[n]=r[n],t(u({data:o})),a(!0)}).catch(function(){r(!1)})}},G=function(n){return function(t,e,a,r){var o=e().CameraConfig,u=o.supportSnapshot,l=o.SupportAuroraBw,s=o.SupportMultiSensorImage,d=o.showSnapshot,p=o.snapshotMode,g=o.CoriaDisplayCaps;Promise.all([i.a.DevVideoInputManager("getCaps",null,n),i.a.ConfigManager.getConfig("VideoAnalyseGlobal"),i.a.ConfigManager.getConfig("VideoAnalyseRule"),c.default.get("Encode.getCaps")]).then(function(e){var r=e[1][n]||{},o=e[2][n]||[];u=(u=(u=!!e[0]&&!(1!==(1&e[0].DoubleExposure)&&2!==(2&e[0].DoubleExposure)))&&Object.keys(r).some(function(n){return!!n.includes("Scene")&&("ObjectDetect"===r[n].Type||!(!Array.isArray(r[n].TypeList)||!r[n].TypeList.includes("ObjectDetect")))}))&&o.some(function(n){return"ObjectDetect"===n.Class&&!!n.Enable});var i=l||s||u;t(f({supportSnapshot:u,showSnapshot:!!i&&d,snapshotMode:i?p:"1",CoriaDisplayCaps:e[3]&&e[3].caps&&e[3].caps.CoriaDisplay})),a(u)}).catch(function(){u=!1,t(f({supportSnapshot:!1,showSnapshot:!1,snapshotMode:"1",CoriaDisplayCaps:g})),a(!1)})}},k=function(n){return function(t,e,r,o){e().CameraConfig.snapshotMode;var i=[c.default.get("PD")];Promise.all(i).then(function(e){var o=Object(a.a)(e,1)[0],i=o.AuroraBwParameter,c=i&&i[n]&&i[n].SupportAuroraBw,u=o.MultiSensorImageParameter,l=u&&u[n]&&u[n].SupportMultiSensorImage;t(f({SupportAuroraBw:c,SupportMultiSensorImage:l})),r(c||l)}).catch(function(){t(f({SupportAuroraBw:!1,SupportMultiSensorImage:!1})),r(!1)})}};function _(n){return{type:o.b,data:n}}var j=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("CoriaDisplay").then(function(t){n(_({data:t})),e(!0)}).catch(function(){a(!1)})}},W=function(){return function(n,t,e,a){i.a.ConfigManager.getDefault("CoriaDisplay").then(function(t){n(_({data:t})),e(!0)}).catch(function(){a(!1)})}},B=function(n){return function(t,e,a,r){i.a.ConfigManager.setConfig("CoriaDisplay",n).then(function(){a(!0)}).catch(function(){r(!1)})}},U=function(n,t,e,a){return function(r,o,c,u){var f=a/8,l={Up:[0,f],Right:[f,0],Down:[0,-f],Left:[-f,0]};"start"===n?i.a.PtzPeripheral.adjustLaserAxis(l[e],t).then(function(){c(!0)}).catch(function(){u(!1)}):i.a.PtzPeripheral.stopAdjustLaserAxis(t).then(function(){c(!0)}).catch(function(){u(!1)})}},z=function(){return function(n,t,e,a){i.a.ConfigManager.getConfig("CalibratePoints").then(function(n){e(n)}).catch(function(){a(!1)})}},H=function(n,t){return function(e,a,r,o){i.a.ThermographyManager.instance(t).then(function(e){i.a.ThermographyManager.getPresetParam(e.result,{channel:t,mode:n}).then(function(n){r(n)}).catch(function(){o(!1)})})}},Y=function(n){return function(t,e,a,r){i.a.ThermographyManager.instance(n).then(function(t){i.a.ThermographyManager.getOptimizedRegion(t.result,{channel:n}).then(function(n){a(n)}).catch(function(){r(!1)})})}},Z=function(n,t){return function(e,a,r,o){i.a.ThermographyManager.instance(n).then(function(e){i.a.ThermographyManager.getCaps(e.result,{channel:n,name:t}).then(function(n){r(n)}).catch(function(){o(!1)})})}}},TLUw:function(n,t,e){"use strict";e.d(t,"h",function(){return l}),e.d(t,"b",function(){return s}),e.d(t,"e",function(){return d}),e.d(t,"c",function(){return p}),e.d(t,"g",function(){return g}),e.d(t,"a",function(){return h}),e.d(t,"f",function(){return m}),e.d(t,"d",function(){return C});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("0x2N"),u=e("tZYx"),f=(e("rGIM"),e("a61M"));e("33yf");function l(n){return{type:c.a,data:n}}var s=function(n){return function(t,e,a,r){if(f.default.EventCaps){var o={};u.a.EventManager.getEventLink({code:n}).then(function(e){e.name.forEach(function(t,e){o[n[e]]=Object(i.a)({},f.default.EventCaps,f.default.DefaultEvent),t.forEach(function(t,a){"default"===t?o[n[e]]=f.default.EventCaps:o[n[e]][t]=!0})}),t(l({ruleEventCaps:o})),a(!0)}).catch(function(n){t(l({linkEvent:f.default.EventCaps})),a(!0)})}else a(!1)}},d=function(n){return function(t,e,a,r){u.a.VideoInAnalyse.getTemplateRule(n).then(function(n){var e=n.ClassroomAnalys;t(l({ruleTemp:e})),a(!0)}).catch(function(n){a(!1)})}},p=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){e.next=6;break}return e.next=4,u.a.intelliScheme.getConfig(t,n).then(function(n){s=n.map(function(n){return n.params.table})});case 4:e.next=8;break;case 6:return e.next=8,u.a.ConfigManager.getConfig(n).then(function(n){s=n.map(function(n){return n.params.table})});case 8:a(l({cfgData:s})),i(!0);case 10:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},g=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,l){var s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=!1,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){a.next=6;break}return a.next=4,u.a.intelliScheme.setConfig(e,n,t).then(function(){}).catch(function(){s=!0});case 4:a.next=8;break;case 6:return a.next=8,u.a.ConfigManager.setConfig(n,t).then(function(){}).catch(function(){s=!0});case 8:s?l():c(!0);case 9:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},h=function(n){return function(t,e,a,r){var o=null;u.a.ConfigManager.getDefault(n).then(function(n){o=n.map(function(n){return n.params.table}),a(o)}).catch(function(){a(!1)})}},m=function(n,t){return function(e,a,r,o){u.a.PTZManager("gotoPreset",n,{index:t}).then(function(n){r(!0)}).catch(function(){o()})}},C=function(n){return function(t,e,a,r){u.a.intelliScheme.getSchemeInfo(n).then(function(n){var e,r=!!n.Infos[0].masterSlaveMode;t((e=r,{type:c.b,data:e})),a(n)}).catch(function(){r()})}}},TXJn:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,"/*\u5b58\u653e\u57fa\u8272*/\n.download-box {\n  position: absolute;\n  top: 10px;\n  height: 30px;\n}\n.download-box .handle {\n  width: 100%;\n  height: 100%;\n}\n.download-box .handle button {\n  display: inline-block;\n  background: rgba(0, 0, 0, 0.8);\n  color: #fff;\n}\n.download-box .handle button:hover,\n.download-box .handle button:active,\n.download-box .handle button:focus {\n  background: rgba(0, 0, 0, 0.8);\n  color: #fff;\n}\n.download-box .left-border,\n.download-box .right-border {\n  position: absolute;\n  width: 20px;\n  height: 30px;\n}\n.download-box .left-border span,\n.download-box .right-border span {\n  position: absolute;\n  display: block;\n  width: 10px;\n  height: 30px;\n  border-top: 3px solid #1890ff;\n  border-bottom: 3px solid #1890ff;\n}\n.download-box .left-border {\n  left: -10px;\n}\n.download-box .left-border span {\n  left: 10px;\n  border-left: 3px solid #1890ff;\n  cursor: w-resize;\n}\n.download-box .right-border {\n  right: -10px;\n  padding-right: 10px;\n}\n.download-box .right-border span {\n  right: 10px;\n  border-right: 3px solid #1890ff;\n  cursor: e-resize;\n}\n.download-box .download-range {\n  width: 100%;\n  height: 100%;\n  cursor: move;\n  background: rgba(24, 144, 255, 0.5);\n}\n.download-box input {\n  margin: 0;\n  padding: 0;\n  width: 18px;\n  border: none;\n  font-size: 12px;\n  text-align: center;\n  outline: none;\n}\n.download-box .ant-popover-inner-content {\n  padding: 3px 2px;\n  min-width: 65px;\n}\n.download-box .handle {\n  position: absolute;\n  top: 0;\n  white-space: nowrap;\n}\n.download-box .handle .download-save,\n.download-box .handle .download-cancle {\n  background: rgba(0, 0, 0, 0.8);\n  color: #fff;\n}\n.download-box .handle .download-save.download-save,\n.download-box .handle .download-cancle.download-save {\n  right: -80px;\n}\n.download-box .handle .download-save.download-cancle,\n.download-box .handle .download-cancle.download-cancle {\n  right: -160px;\n}\n.download-box .handle .download-save:hover,\n.download-box .handle .download-cancle:hover,\n.download-box .handle .download-save:active,\n.download-box .handle .download-cancle:active,\n.download-box .handle .download-save:focus,\n.download-box .handle .download-cancle:focus {\n  background: rgba(0, 0, 0, 0.8);\n  color: #fff;\n}\n",""])},Tnnl:function(n,t,e){var a=e("mE4v");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},UFzp:function(n,t,e){"use strict";e.d(t,"b",function(){return r}),e.d(t,"a",function(){return o});var a=e("5vtU");e("tZYx"),e("LvDl");function r(n){return{type:a.b,data:n}}function o(n){return{type:a.a,data:n}}},USKn:function(n,t,e){"use strict";e.d(t,"c",function(){return h}),e.d(t,"b",function(){return C}),e.d(t,"a",function(){return S});var a=e("7cf5"),r=e("2bPg"),o=e("BRlI"),i=e("PK3Q"),c=e("Q5Ww"),u=e("00an"),f=e("tquP"),l=(e("Z8Mf"),e("j7zX")),s=e.n(l),d=e("q1tI"),p=e.n(d),g=s.a.TabPane,h=function(n,t){var e=function(n,t){for(var e=this,a=arguments.length,r=new Array(a>2?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];if("action"===n){if(this.action||(this.action={_record:{}}),t&&"on"===t.substr(0,2))for(var i in this.action){var c;this.action[i]&&this.action[i][t]&&(c=this.action[i])[t].apply(c,r)}else if(r.length)this.action._record[t]&&(this.action._record[t].forEach(function(n){return n(r[0])}),delete this.action._record[t]),void 0===r[0]||null===r[0]?delete this.action[t]:this.action[t]=r[0];else if(t)return"function"===typeof this.action[t]?Promise.resolve(this.action[t]):new Promise(function(n){"[object Array]"===Object.prototype.toString.call(e.action._record[t])?e.action._record[t].push(n):e.action._record[t]=[n]});return this.action}return"string"!==typeof n&&this.setState(n,t),this.state}.bind(n);return function(){var n=t&&t.apply(void 0,arguments);return void 0!==n?n:e.apply(void 0,arguments)}};var m=function(){var n=function(n,t){if(!n[t])return Promise.resolve(!1);var e=n[t].caps;return"function"===typeof e?new Promise(function(n){e(n)}):Promise.resolve(e)};return{tabHandle:function(t,e){var a=t.cache||{};if(["string","number"].includes(typeof e)&&void 0!==a[e])return t(a[e+"record"]),Promise.resolve(a[e]);var r=function(){var n={},t={},e=function(e){if(!(arguments.length<=1)&&arguments.length-1){var a=arguments.length<=1?void 0:arguments[1];n[e]=a,void 0!==t[e]&&(t[e].forEach(function(n){return n(a)}),delete t[e])}return n[e]},a=function(e){return void 0===n[e]?new Promise(function(n){void 0===t[e]?t[e]=[n]:t[e].push(n)}):Promise.resolve(n[e])};return e.await=function(n){return"string"===typeof n?a(n):Promise.all(n.map(function(n){return a(n)}))},e.info={wait:t,data:n},e}(),o=t(r);return new Promise(function(a){(function(t,e){return Array.isArray(t)?new Promise(function(a){var r=t.map(function(e,a){return n(t,a)});Object.assign(e.info,{status:r}),Promise.all(r).then(function(n){return a(t.filter(function(t,e){return n[e]}))})}):new Promise(function(a){var r=Object.keys(t),o=r.map(function(e){return n(t,e)});Object.assign(e.info,{status:r.reduce(function(n,t,e){return n[t]=o[e],n},{})}),Promise.all(o).then(function(n){return a(r.filter(function(t,e){return!!n[e]}).reduce(function(n,e){return n[e]=t[e],n},{}))})})})(o,r).then(function(n){return delete r.info,["string","number"].includes(typeof e)&&(t.cache||(t.cache={}),t.cache[e]=n,t.cache[e+"record"]=r),a(n)})})},TabBar:function(n){function t(n){var e;if(Object(r.a)(this,t),(e=Object(i.a)(this,Object(c.a)(t).call(this,n))).state={activeKey:n.defaulteActiveKey},void 0===n.useMain?e.useMain=h(Object(f.a)(Object(f.a)(e))):e.useMain=e.props.useMain,e.useFunctionKey=function(n,t){return"function"===typeof n[t]?n[t](e.props):n[t]},n.bind)for(var a in n.bind)e[a]=n.bind[a].bind(Object(f.a)(Object(f.a)(e)));return e}return Object(u.a)(t,n),Object(o.a)(t,[{key:"onChange",value:function(n){var t=this.useMain("action");t[e]&&t[e]("leave"),this.useMain("action",n).then(function(n){n("init")});var e=this.state.activeKey;this.setState({activeKey:n})}},{key:"render",value:function(){var n=this,t=this.props,e=t.child,r=void 0===e?[]:e,o=t.keepAlive,i=(t.onEvent,t.bind,t.children,Object(a.a)(t,["child","keepAlive","onEvent","bind","children"])),c=i.activeKey||this.state.activeKey||r[0]&&r[0].key,u=Object.assign({useMain:this.useMain},i);return p.a.createElement(s.a,Object.assign({activeKey:c,onChange:function(t){return n.onChange(t)}},i),r.map(function(t){var e=t.component,r=(t.caps,Object(a.a)(t,["component","caps"])),i={};return Object.keys(r).forEach(function(e){i[e]=n.useFunctionKey(t,e)}),p.a.createElement(g,{tab:i.tab,key:i.key},(o||i.key===c)&&e?p.a.createElement(e,Object.assign({},u,i)):null)}))}}]),t}(p.a.Component)}}(),C=m.tabHandle,S=m.TabBar},UVgI:function(n,t,e){"use strict";e.d(t,"z",function(){return h}),e.d(t,"E",function(){return m}),e.d(t,"B",function(){return C}),e.d(t,"L",function(){return S}),e.d(t,"A",function(){return v}),e.d(t,"M",function(){return b}),e.d(t,"I",function(){return y}),e.d(t,"C",function(){return E}),e.d(t,"J",function(){return T}),e.d(t,"H",function(){return M}),e.d(t,"O",function(){return A}),e.d(t,"K",function(){return I}),e.d(t,"F",function(){return O}),e.d(t,"G",function(){return P}),e.d(t,"N",function(){return R}),e.d(t,"P",function(){return D}),e.d(t,"s",function(){return V}),e.d(t,"n",function(){return F}),e.d(t,"o",function(){return N}),e.d(t,"b",function(){return x}),e.d(t,"d",function(){return G}),e.d(t,"e",function(){return k}),e.d(t,"g",function(){return _}),e.d(t,"u",function(){return W}),e.d(t,"i",function(){return B}),e.d(t,"p",function(){return U}),e.d(t,"f",function(){return z}),e.d(t,"y",function(){return H}),e.d(t,"j",function(){return Y}),e.d(t,"v",function(){return Z}),e.d(t,"c",function(){return $}),e.d(t,"l",function(){return X}),e.d(t,"q",function(){return J}),e.d(t,"t",function(){return q}),e.d(t,"D",function(){return nn}),e.d(t,"r",function(){return tn}),e.d(t,"k",function(){return an}),e.d(t,"h",function(){return rn}),e.d(t,"w",function(){return on}),e.d(t,"m",function(){return cn}),e.d(t,"x",function(){return un}),e.d(t,"a",function(){return fn});var a=e("2bPg"),r=e("BRlI"),o=e("upjz"),i=(e("tL+A"),e("QpBz")),c=e.n(i),u=e("JfVb"),f=e("tZYx"),l=e("rGIM"),s=e("R+FV"),d=e("4Gn2"),p=e("mDNY"),g=function(){};function h(n){return{type:u.c,data:n}}function m(n){return{type:u.j,data:n}}function C(n){return{type:u.f,data:n}}function S(n){return{type:u.A,data:n}}function v(n){return{type:u.g,data:n}}function b(n){return{type:u.C,data:n}}function y(n){return{type:u.w,data:n}}function E(n){return{type:u.h,data:n}}function T(n){return{type:u.z,data:n}}function M(n){return{type:u.p,data:n}}function A(n){return{type:u.E,data:n}}function I(n){return{type:u.x,data:n}}function O(n){return{type:u.l,data:n}}function P(n){return{type:u.m,data:n}}function R(n){return{type:u.D,data:n}}function L(n){return{type:u.d,data:n}}function D(n){return{type:u.F,data:n}}var V=function(n){return function(t,e){var a=e().publicState.$t,r=(n.name,{NoListAuth:"com.FTPNoListAuthTip",NoDeleteFileAuth:"com.FTPNoDeleteFileAuthTip",NoDeleteDirAuth:"com.FTPNoDeleteDirAuthTip",ReadWrite:"net.TestSuccess",ReadOnly:"com.FTPReadOnlyTip",NotAcess:"com.FTPNotAcessTip",LoginFailure:"com.FTPLoginFailure"});f.a.FtpTest.checkAuthority(n).then(function(n){if(n){var t=n.access,e=n.authority,o=n.deleteDir,i=n.deleteFile,u=n.list;0===t?"ReadWrite"===e?0===u?c.a.error(a(r.NoListAuth)):0===i?c.a.error(a(r.NoDeleteFileAuth)):0===o?c.a.error(a(r.NoDeleteDirAuth)):c.a.success(a(r.ReadWrite)):"ReadOnly"===e&&c.a.error(a(r.ReadOnly)):1===t?c.a.error(a(r.NotAcess)):2===t&&c.a.error(a(r.LoginFailure))}}).catch(function(){c.a.error(a("com.Operateingfailure"))})}},F=function(){return function(n,t){var e=t(),a=(e.publicState.$t,e.ImagePlayback.remoteStoreList);l.default.is("RemoteStoreList").then(function(t){var e;a=t.RemoteStoreList||[],n((e=Object(o.a)(a),{type:u.v,data:e}))})}},N=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.flag,e=n.resetFields,a=n.cb,r=n.addConf;return function(n,o,i,u){var l=o().publicState.$t,s=["RecordStoragePoint","NAS","SFTP","StorageGroup"];r&&s.push("TrafficImage"),f.a.getSecConfig(s).then(function(e){j(e,n,a),t&&c.a.success(l("com.Operateingsuccess")),i(e)}).catch(function(n){c.a.error(l("com.Operateingfailure")),u(n)}),e&&e()}},w={},x=function(n,t,e){return function(a,r,o,i){var c=("0"+t.condition.Month).slice(-2),u="".concat(t.condition.Year,"-").concat(c);f.a.setWorkDirectory("getBit",n,t).then(function(n){w[u]=n.bitmap,o({bitmap:n.bitmap,status:e,time:"".concat(t.condition.Year,"-").concat(c)})})}},G=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(n.flag,n.resetFields),e=n.cb,a=n.addConf;return function(n,r,o,i){var u=r().publicState.$t;t&&t();var l=["RecordStoragePoint","NAS","SFTP","StorageGroup"];a&&l.push("TrafficImage"),f.a.getSecDefault(l).then(function(t){j(t,n,e),c.a.success(u("com.OperateingSuccessTip")),o(!0)}).catch(function(n){c.a.error(u("com.Operateingfailure")),i(n)})}},k=function(){return function(n,t,e,a){f.a.ConfigManager.getDefault("StorageGroup").then(function(t){n(b(t)),e(!0)}).catch(function(n){a(n)})}},_=function(n){var t=n.configData,e=n.picType;return function(n,a,r,o){f.a.ConfigManager.getDefault("TrafficImage").then(function(a){"mergeOSD"===e?t[0].NamingFormat.Format=a[0].NamingFormat.Format:"originalOSD"===e?t[0].NamingFormat.FormatEx=a[0].NamingFormat.FormatEx:"PreParking"===e&&(t[0].NamingFormat.PreAlarmFTPFormat=a[0].NamingFormat.PreAlarmFTPFormat),n(D(t)),r(!0)}).catch(function(n){o(n)})}};function j(n,t,e){var a,r=n[0]&&n[0].params.table,o=n[1]&&n[1].params.table,i=n[2]&&n[2].params.table,c=n[3]&&n[3].params.table,f=n[4]&&n[4].params.table,l=o.filter(function(n){return"FTP"===n.Protocol})[0],s=o.filter(function(n){return"NAS"===n.Protocol})[0],d=o.filter(function(n){return"NFS"===n.Protocol})[0],p=o.filter(function(n){return"SMB"===n.Protocol})[0],g=i&&i[0],h={Local:[],FTP:[],NAS:[]};h.Local[0]=!!r[0].TimingSnapShot.Local,h.Local[1]=!(!r[0].VideoDetectSnapShot||!r[0].VideoDetectSnapShot.Local),h.Local[2]=!!r[0].AlarmSnapShot.Local,h.FTP[0]=!!r[0].TimingSnapShot.FTP,h.FTP[1]=!!r[0].VideoDetectSnapShot.FTP,h.FTP[2]=!!r[0].AlarmSnapShot.FTP,h.NAS[0]=!!r[0].TimingSnapShot.Remote,h.NAS[1]=!!r[0].VideoDetectSnapShot.Remote,h.NAS[2]=!!r[0].AlarmSnapShot.Remote,t(y(r)),t(M(o)),t(T(g)),t(E(l)),t((a=s,{type:u.u,data:a})),t(A(h)),t(b(c)),f&&t(D(f));var m="",C="",S={ftpMode:"SFTP",nasMode:"NFS"};r[0].TimingRecord.Local||r[0].VideoDetectRecord.Local||r[0].AlarmRecord.Local||r[0].EventRecord.Local||r[0].ManualRecord.Local?t(R("Local")):r[0].TimingRecord.FTP||r[0].VideoDetectRecord.FTP||r[0].AlarmRecord.FTP||r[0].EventRecord.FTP||r[0].ManualRecord.FTP?t(R("FTP")):t(R("NAS")),m=g.Enable?"SFTP":l.Enable?"FTP":"SFTP",C=d.Enable?"NFS":p.Enable?"SMB":"NFS",S.ftpMode=m,S.nasMode=C,e&&e(S)}var W=function(n){n.success,n.error;var t=n.emergencyFlag;n.ftpMode;return function(n,e,a){var r=e(),o=r.publicState.$t,i=r.ImagePlayback,u=i.storagePoint,l=i.RSP,d=i.NAS,p=i.FTP,g=i.SFTP,h=i.remoteStoreList,m=i.StorageGroup,C=i.TrafficImage,S=r.webCaps;for(var v in l){var b=l[v];b.TimingSnapShot.Local=u.Local[0],b.VideoDetectSnapShot.Local=u.Local[1],b.AlarmSnapShot.Local=u.Local[2],b.ManualSnapShot.Local=u.Local[0]||u.Local[1]||u.Local[2],b.EventSnapShot.Local=u.Local[0]||u.Local[1]||u.Local[2],b.TimingSnapShot.FTP=u.FTP[0],b.VideoDetectSnapShot.FTP=u.FTP[1],b.AlarmSnapShot.FTP=u.FTP[2],b.ManualSnapShot.FTP=u.FTP[0]||u.FTP[1]||u.FTP[2],b.EventSnapShot.FTP=u.FTP[0]||u.FTP[1]||u.FTP[2],b.TimingSnapShot.Remote=u.NAS[0],b.VideoDetectSnapShot.Remote=u.NAS[1],b.AlarmSnapShot.Remote=u.NAS[2],b.ManualSnapShot.Remote=u.NAS[0]||u.NAS[1]||u.NAS[2]||u.FTP[0]||u.FTP[1]||u.FTP[2],b.EventSnapShot.Remote=u.NAS[0]||u.NAS[1]||u.NAS[2]||u.FTP[0]||u.FTP[1]||u.FTP[2],b.TimingSnapShot.LocalForEmergency=u.FTP[0]&&t,b.VideoDetectSnapShot.LocalForEmergency=u.FTP[1]&&t,b.AlarmSnapShot.LocalForEmergency=u.FTP[2]&&t,b.ManualSnapShot.LocalForEmergency=b.TimingSnapShot.LocalForEmergency||b.VideoDetectSnapShot.LocalForEmergency||b.AlarmSnapShot.LocalForEmergency,b.EventSnapShot.LocalForEmergency=b.TimingSnapShot.LocalForEmergency||b.VideoDetectSnapShot.LocalForEmergency||b.AlarmSnapShot.LocalForEmergency,b.TimingRecord.LocalForEmergency=u.FTP[0]&&t,b.VideoDetectRecord.LocalForEmergency=u.FTP[1]&&t,b.AlarmRecord.LocalForEmergency=u.FTP[2]&&t,b.ManualRecord.LocalForEmergency=b.TimingRecord.LocalForEmergency||b.VideoDetectRecord.LocalForEmergency||b.AlarmRecord.LocalForEmergency,b.EventRecord.LocalForEmergency=b.TimingRecord.LocalForEmergency||b.VideoDetectRecord.LocalForEmergency||b.AlarmRecord.LocalForEmergency}var y="false,false,false"!==u.FTP.join(","),E="false,false,false"!==u.NAS.join(",");y&&(d=d.map(function(n){return n.Protocol===p.Protocol?n=Object(s.h)(p):n}));var T=["RecordStoragePoint","StorageGroup"],M=[l,m];S.is_show_newIntelli&&(T.push("TrafficImage"),M.push(C)),f.a.setSecConfig(T,M).then(function(t){E?f.a.setSecConfig("SFTP",[g]).then(function(){f.a.setSecConfig("NAS",d).then(function(){c.a.success(o("com.Operateingsuccess")),a()}).catch(function(){c.a.error(o("com.Operateingfailure"))}).finally(function(){n(N())})}).catch(function(){c.a.error(o("com.Operateingfailure"))}):f.a.setSecConfig("NAS",d).then(function(){h.includes("SFTP")&&f.a.setSecConfig("SFTP",[g]).then(function(){c.a.success(o("com.Operateingsuccess")),a()}).catch(function(){c.a.error(o("com.Operateingfailure"))})}).catch(function(){c.a.error(o("com.Operateingfailure"))})})}},B=function(n){return function(t,e,a,r){f.a.Storage.instance().then(function(e){f.a.Storage.getDeviceAllInfo(e.result,n).then(function(n){var e;t((e=n&&n.info,{type:u.e,data:e})),a(n&&n.info)}).catch(function(n){r(n)})}).catch(function(){r()})}},U=function(n){var t=n.success,e=void 0===t?g:t,a=n.flag;return function(n,t){var r=t().publicState.$t;f.a.ConfigManager.getConfig(["Snap"]).then(function(t){e&&e(),n(I(t[0].params.table)),a&&c.a.success(r("com.Operateingsuccess"))}).catch(function(){c.a.error(r("com.Operateingfailure"))})}},z=function(n,t){var e=n.success,a=void 0===e?g:e,r=n.flag;return function(n,e){var o=e(),i=o.publicState.$t,u=o.ImagePlayback.Schedule,l=Object(s.h)(u);f.a.ConfigManager.getDefault(["Snap"]).then(function(e){a&&a(),l[t]=e[0].params.table[t],n(I(l)),r&&c.a.success(i("com.OperateingSuccessTip"))}).catch(function(){c.a.error(i("com.Operateingfailure"))})}},H=function(n){var t=n.params;n.success;return function(n,e){var a=e().publicState.$t;f.a.ConfigManager.setConfig(["Snap"],[t]).then(function(n){c.a.success(a("com.Operateingsuccess"))}).catch(function(){c.a.error(a("com.Operateingfailure"))})}},Y=function(){return function(n,t,e,a){f.a.ConfigManager.getConfig("Holiday").then(function(n){e(n)}).catch(function(n){a(n)})}},Z=function(n){return function(t,e,a,r){f.a.ConfigManager.setConfig("Holiday",n).then(function(n){a(n)}).catch(function(n){r(n)})}},$=function(){return function(n,t,e,a){f.a.ConfigManager.getDefault("Holiday").then(function(n){e(n)}).catch(function(n){a(n)})}};function K(n,t,e){return t?n.filter(function(n){return n&&-1!==n.Events.indexOf("AlarmLocal")}):n}var Q=function(){function n(t){var e=this;Object(a.a)(this,n),Object.assign(this,{num:1,target:{},request:function(n){return new Promise(function(n){return n(!1)})},finish:null},t),this.record={count:0,success:0,fail:[],finishNum:0,current:{isNext:!0,isFinish:!1,isStop:!1},isStop:function(){return e.record.current.isStop}}}return Object(r.a)(n,[{key:"start",value:function(){for(var n=0;n<this.num;n++)this.startOne()}},{key:"stop",value:function(){this.record.current.isStop=!0}},{key:"reset",value:function(){Object.assign(this,{num:1,target:{},request:function(n){return new Promise(function(n){return n(!1)})},finish:null}),this.resetState()}},{key:"resetState",value:function(){var n=this;this.record={count:0,success:0,fail:[],finishNum:0,errorNum:0,current:{isNext:!0,isFinish:!1,isStop:!1},isStop:function(){return n.record.current.isStop}}}},{key:"startOne",value:function(){var n=this;if(!this.record.current.isStop)if(this.record.current.isNext){this.record.count++;var t=this.record.count;this.request(this.target,this.record).then(function(e){if("boolean"!==typeof e)return n.record.errorNum++,n.record.errorNum===n.num&&n.finish&&n.finish(n.target,n.record),console.error(e,"\u7b2c"+t+"\u4e2a\u8bf7\u6c42");e?n.record.success++:(n.record.fail.push(t),n.record.finishNum++),n.record.current.isNext=e,n.startOne()})}else this.record.finishNum===this.num&&(this.finish&&this.finish(this.target,this.record),this.record.count)}}]),n}(),X=function(n){return function(t,e,a,r){var i=n.condition,c=i.count,u=i.isAlarm,l=i.Flags;f.a.MediaFileFind.instance().then(function(e){f.a.MediaFileFind.findFile(e.result,n).then(function(){f.a.MediaFileFind.findNextFile(e.result,{count:c}).then(function(n){if(n.found>0){var r=[];r.push.apply(r,Object(o.a)(n.infos));var i=K(r,u);t(m(i)),t(h(i.length));var s={num:3,target:{RPC:f.a,id:e.result,count:c,arr:r,resolve:a,data:n,filterEvent:K,isAlarm:u,Flags:l,dispatch:t,updateInfos:m,updateCount:h},request:function(n,a){return new Promise(function(n){f.a.MediaFileFind.findNextFile(e.result,{count:c}).then(function(e){if(a.isStop())return n(!1);if(0!==e.found){r.push.apply(r,Object(o.a)(e.infos));var i=K(r,u);t(m(i)),t(h(i.length)),n(!0)}else n(!1)}).catch(function(t){return n(t)})})},finish:function(o,i){r.sort(function(n,t){var e=n.StartTime,a=t.StartTime;return e<a?-1:e>a?1:0}),f.a.MediaFileFind.destroy(e.result);var c=K(r,u);t(m(c)),t(h(c.length)),a(n)}},p=new Q(s);p.start();var g=d.a.subscribe("ImagePlayBack_onLeave",function(n){if(n)return f.a.MediaFileFind.destroy(e.result),p.stop(),d.a.unsubscribe(g),a(i)})}else t(m([])),t(h(0)),a()})}).catch(function(n){r(n)})}).catch(function(){r(!1)})}},J=function(n){return function(t,e,a,r){f.a.UserManager.getUserInfo(n).then(function(n){a(n.user)}).catch(function(){r(!1)})}},q=function(n){return function(t,e,a,r){f.a.FileManager.removeMediaFiles(n).then(function(n){a(n)}).catch(function(n){r(n)})}};function nn(n){return{type:u.a,data:n}}var tn=function(n){return function(t,e,a,r){var o=Object(p.b)("TcpTest",n);Object(p.d)(o,"/RPC2_TcpTest").then(function(n){a(n)}).catch(function(){r(!1)})}},en="PictureHttpUpload",an=function(n){return function(n,t,e,a){en="EventManage"===t().publicState.curKey?"EventHttpUpload":"PictureHttpUpload",Promise.all([f.a.getSecConfig(en),l.default.get("QueryDatabase")]).then(function(t){n(nn(t[0]));var a,r=(t[1]||{}).EventTypes||{},o=r.M||[],i=r.A||[];o=o.concat(i),n((a=o,{type:u.G,data:a})),e()}).catch(function(n){a(n)})}},rn=function(){return function(n,t,e,a){f.a.ConfigManager.getDefault(en).then(function(t){n(nn(t)),e()}).catch(function(n){a(n)})}},on=function(){return function(n,t,e,a){var r=t().ImagePlayback.httpConfig,o=Object(s.h)(r);o.UploadServerList&&(o.UploadServerList=o.UploadServerList.map(function(n){return delete n._id,n}));try{var i={StereoFightDetection:"FightDetection",StereoFallDetection:"TumbleDetection",StereoStayDetection:"StayDetection",StereoDistanceDetection:"DistanceDetection",StereoManNumDetection:"ManNumDetection",StereoRunDetection:"RunDetection"};o.UploadServerList[0].EventType=o.UploadServerList[0].EventType.map(function(n){return i[n]||n})}catch(c){}f.a.setSecConfig(en,o).then(function(n){e(n)}).catch(function(n){a(n)})}},cn=function(){return function(n,t,e,a){f.a.ConfigManager.getConfig("PositionSnap").then(function(t){n(L({PositionSnap:t})),e(!0)}).catch(function(n){a(n)})}},un=function(n){return function(t,e,a,r){f.a.ConfigManager.setConfig("PositionSnap",n).then(function(n){a(!0)}).catch(function(n){r(n)})}},fn=function(n){return function(t,e,a,r){t(L({PositionSnap:n}))}}},V9eM:function(n,t,e){"use strict";e.d(t,"l",function(){return o}),e.d(t,"e",function(){return i}),e.d(t,"s",function(){return c}),e.d(t,"j",function(){return u}),e.d(t,"c",function(){return f}),e.d(t,"q",function(){return l}),e.d(t,"i",function(){return s}),e.d(t,"b",function(){return d}),e.d(t,"p",function(){return p}),e.d(t,"k",function(){return g}),e.d(t,"d",function(){return h}),e.d(t,"r",function(){return m}),e.d(t,"h",function(){return C}),e.d(t,"a",function(){return S}),e.d(t,"o",function(){return v}),e.d(t,"m",function(){return b}),e.d(t,"f",function(){return y}),e.d(t,"t",function(){return E}),e.d(t,"n",function(){return T}),e.d(t,"g",function(){return M}),e.d(t,"u",function(){return A});var a=e("6a0p"),r=e("tZYx");e("LvDl");var o=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoAnalyseRule").then(function(t){var r;n((r=t,{type:a.d,data:r})),e(!0)}).catch(function(n){})}},i=function(n){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoAnalyseRule").then(function(n){e(n)}).catch(function(n){})}},c=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoAnalyseRule",n).then(function(n){a(!0)}).catch(function(n){})}};var u=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoAnalyseModule").then(function(t){var r;n((r=t,{type:a.c,data:r})),e(!0)}).catch(function(n){})}},f=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoAnalyseModule").then(function(n){e(n)}).catch(function(n){})}},l=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoAnalyseModule",n).then(function(n){a(!0)}).catch(function(n){})}};var s=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){var r;n((r=t,{type:a.b,data:r})),e(!0)}).catch(function(n){})}},d=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(n){e(n),e(!0)}).catch(function(n){})}},p=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoAnalyseGlobal",n).then(function(n){a(!0)}).catch(function(n){})}};var g=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoEncodeROI").then(function(t){var r;n((r=t,{type:a.e,data:r})),e(!0)}).catch(function(n){})}},h=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoEncodeROI").then(function(n){e(n),e(!0)}).catch(function(n){})}},m=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoEncodeROI",n).then(function(n){a(!0)}).catch(function(n){})}};var C=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoInFaceAutoExposure").then(function(t){var r;n((r=t,{type:a.f,data:r})),e(!0)}).catch(function(n){})}},S=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoInFaceAutoExposure").then(function(n){e(n),e(!0)}).catch(function(n){})}},v=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoInFaceAutoExposure",n).then(function(n){a(!0)}).catch(function(n){})}};var b=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("FaceSnapshot").then(function(t){var r;n((r=t,{type:a.a,data:r})),e(!0)}).catch(function(n){})}},y=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("FaceSnapshot").then(function(n){e(n),e(!0)}).catch(function(n){})}},E=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("FaceSnapshot",n).then(function(n){a(!0)}).catch(function(n){})}};var T=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("VideoWidget").then(function(t){var r;n((r=t,{type:a.g,data:r})),e(!0)}).catch(function(n){})}},M=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("VideoWidget").then(function(n){e(n)}).catch(function(n){})}},A=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("VideoWidget",n).then(function(n){a(!0)}).catch(function(n){})}}},"VS8+":function(n,t,e){var a=e("TXJn");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},Vb2n:function(n,t,e){"use strict";e.d(t,"e",function(){return i}),e.d(t,"f",function(){return c}),e.d(t,"a",function(){return u}),e.d(t,"d",function(){return f}),e.d(t,"b",function(){return l}),e.d(t,"c",function(){return s});var a=e("UGKd"),r=e("tZYx"),o=e("rGIM");function i(n){return{type:a.a,data:n}}function c(n){return{type:a.c,data:n}}var u=function(){return function(n,t,e,r){o.default.get("PD").then(function(t){var r;n((r=t.AroudWifiSearch,{type:a.b,data:r})),e()})}},f=function(){return function(n,t,e,a){var o=t().MacInfo.AroudWifiSearch;r.a.ConfigManager.setConfig("AroudWifiSearch",o).then(function(n){e()}).catch(function(){a()})}},l=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("AroudWifiSearch").then(function(t){n(i(t)),e()}).catch(function(){a()})}},s=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("AroudWifiSearch").then(function(t){n(i(t)),e()}).catch(function(){a()})}}},Wayr:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return l}),e.d(t,"save",function(){return s}),e.d(t,"refresh",function(){return d}),e.d(t,"clear",function(){return p}),e.d(t,"getEventLink",function(){return g}),e.d(t,"refreshforChannel",function(){return f});var a=e("tZYx"),r=e("tdKR"),o=(e("rGIM"),e("a61M")),i=e("R+FV");function c(n,t,e){n(Object(r.a)(t,e))}var u=function(n,t,e){return function(a,o,u,f){return Promise.all([i.p.getConfig(t,"VideoAnalyseRule"),i.p.getConfig(t,"MultiSceneRecord"),i.p.getConfig(t,"SceneSnapShotWithRule2"),i.p.getConfig(t,"VideoAnalyseCalibrate"),i.p.getConfig(t,"VideoAnalyseGlobal"),i.p.getConfig(t,"TrafficImage"),i.p.getConfig(t,"TrafficSnapMosaic2")]).then(function(t){c(a,r.b.IVSTRAFFICILLEGALRULE_INIT,{VideoAnalyseRule:t[0],MultiSceneRecord:t[1],SceneSnapShotWithRule2:t[2],VideoAnalyseCalibrate:t[3],VideoAnalyseGlobal:t[4],planType:n,TrafficImage:t[5],TrafficSnapMosaic2:t[6],sceneType:e}),u()}).catch(function(){f()})}},f=function(){return function(n,t,e,o){var i=t().IVSTrafficIllegalRuleConfig.vm,u=i.CurChannel,f=i.sceneType;return Promise.all([a.a.VideoInAnalyse.getTemplateRule({channel:u,class:f}),a.a.VideoInAnalyse.getTemplatePresetRecord({Channel:u}),a.a.VideoInAnalyse.getTemplateSceneSnapShotWithRule2({Channel:u,Class:f,RuleType:"All"}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:u}),a.a.PTZManager("getPresets",u),a.a.VideoInAnalyse.getTemplatePresetImage({Channel:u}),a.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:u})]).then(function(t){c(n,r.b.IVSTRAFFICILLEGALRULE_SOMEREF,{TemplateRule:t[0],TemplatePresetRecord:t[1],TemplateSceneSnapShotWithRule2:t[2],TemplateCalibrate:t[3],presets:t[4].presets||[],TemplatePresetImage:t[5],TemplateTrafficSnapMosaic2:t[6]}),e()}).catch(function(){o()})}},l=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){c(t,r.b.IVSTRAFFICILLEGALRULE_CHANGE,n),a()}).catch(function(){o()})}},s=function(n){return function(t,e,i,u){var f=e().IVSTrafficIllegalRuleConfig.vm,l=f.VRule,s=f.MulSceneRec,d=f.SceneSnapShotWithRule2,p=f.VideoAnalyseGlobal,g=f.VideoAnalyseCalibrate,h=f.TrafficImage,m=f.TrafficSnapMosaic2;o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseGlobal","VideoAnalyseCalibrate","TrafficImage","TrafficSnapMosaic2"],[d,s,l,p,g,h,m]).then(function(){c(t,r.b.IVSTRAFFICILLEGALRULE_SAVE),i()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseGlobal","VideoAnalyseCalibrate","TrafficImage","TrafficSnapMosaic2"],[d,s,l,p,g,h,m]).then(function(){c(t,r.b.IVSTRAFFICILLEGALRULE_SAVE),i()}).catch(function(n){u()})}},d=function(n){return function(t,e,o,u){var f=e().IVSTrafficIllegalRuleConfig.vm.CurChannel;return Promise.all([i.p.getConfig(n,"VideoAnalyseRule"),i.p.getConfig(n,"MultiSceneRecord"),i.p.getConfig(n,"SceneSnapShotWithRule2"),i.p.getConfig(n,"VideoAnalyseCalibrate"),i.p.getConfig(n,"VideoAnalyseGlobal"),a.a.PTZManager("getPresets",f),i.p.getConfig(n,"TrafficImage"),i.p.getConfig(n,"TrafficSnapMosaic2")]).then(function(n){c(t,r.b.IVSTRAFFICILLEGALRULE_REFRESH,{VideoAnalyseRule:n[0],MultiSceneRecord:n[1],SceneSnapShotWithRule2:n[2],VideoAnalyseCalibrate:n[3],VideoAnalyseGlobal:n[4],Presets:n[5],TrafficImage:n[6],TrafficSnapMosaic2:n[7]}),o()}).catch(function(){u()})}},p=function(){return function(n){c(n,r.b.IVSTRAFFICILLEGALRULE_CLEAR)}},g=function(n){return function(t,e,o,i){for(var u=Math.ceil(n.length/8),f=[],l=[],s=0;s<u;s++)f[s]=n.slice(8*s,8*(s+1)),l.push(a.a.EventManager.getEventLink({code:f[s]}));return Promise.all(l).then(function(n){c(t,r.b.IVSTRAFFICILLEGALRULE_GETEVENTLINK,{EventLink:n||[]}),o()}).catch(function(){i()})}}},WcJ6:function(n,t,e){var a=e("kTT7");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},Wcqc:function(n,t,e){n.exports=e.p+"static/media/icon_renti_s.45243ef1.png"},WdYO:function(n,t,e){"use strict";e.d(t,"f",function(){return o}),e.d(t,"c",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"b",function(){return u}),e.d(t,"d",function(){return f}),e.d(t,"e",function(){return l});var a=e("tQaS"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(n){return function(t,e,a,i){r.a.ConfigManager.getConfig(n).then(function(n){t(o({channelList:n})),a(n)}).catch(function(n){i(n)})}},c=function(){return function(n,t,e,a){r.a.Encode.getCaps().then(function(n){e(n)}).catch(function(){a(!1)})}},u=function(n){return function(t,e,a,o){r.a.Encode.getConfigCaps(n).then(function(n){a(n)}).catch(function(){o(!1)})}},f=function(n){return function(t,e,a,i){r.a.ConfigManager.getDefault(n).then(function(n){t(o({channelList:n})),a(n)}).catch(function(n){i(n)})}},l=function(n,t){return function(e,a,o,i){r.a.ConfigManager.setConfig(n,t).then(function(n){o(n)}).catch(function(n){i(n)})}}},WyWB:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"clear",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"onDefault",function(){return d});var a=e("tZYx"),r=e("qcgV"),o=e("rGIM");function i(n,t,e){n(Object(r.a)(t,e))}var c=function(){return function(n,t,e,c){return Promise.all([o.default.get("BurningCheck"),a.a.ConfigManager.getConfig("BurningCheck"),a.a.EventManager.getEventLink({code:["BurningCheck"]})]).then(function(t){i(n,r.b.BURNINGWARNCONFIG_INIT,{BurningCaps:t[0],BurningControl:t[1],LinkCaps:t[2]}),e()}).catch(function(n){c()})}},u=function(){return function(n){i(n,r.b.BURNINGWARNCONFIG_CLEAR)}},f=function(n){return function(t){i(t,r.b.BURNINGWARNCONFIG_CHANGE,n)}},l=function(){return function(n,t,e,o){var c=t().BurningWarnConfig.vm.config;a.a.ConfigManager.setConfig("BurningCheck",c).then(function(){i(n,r.b.BURNINGWARNCONFIG_SAVE),e()}).catch(function(n){o()})}},s=function(){return function(n,t,e,o){a.a.ConfigManager.getConfig("BurningCheck").then(function(t){i(n,r.b.BURNINGWARNCONFIG_REFRESH,{BurningControl:t}),e()}).catch(function(){o()})}},d=function(){return function(n,t,e,o){a.a.ConfigManager.getDefault("BurningCheck").then(function(t){i(n,r.b.BURNINGWARNCONFIG_DEFAULT,{BurningControl:t}),e()}).catch(function(n){o()})}}},XHtu:function(n,t,e){"use strict";e.d(t,"d",function(){return o}),e.d(t,"b",function(){return i}),e.d(t,"c",function(){return c}),e.d(t,"a",function(){return u});var a=e("b9pS"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(n){return function(t,e,a,i){r.a.System.multicall(n).then(function(n){if(n){var e=n.map(function(n){return{table:n.params.table}});t(o({data:e})),a(!0)}}).catch(function(){i(!1)})}},c=function(n){return function(t,e,a,o){r.a.System.multicall(n).then(function(n){n[0]&&n[0].result&&n[1]&&n[1].result&&n[2]&&n[2].result?a(!0):o(!1)}).catch(function(){o(!1)})}},u=function(n){return function(t,e,a,o){r.a.NetApp.checkIPConflictEx(n).then(function(n){a(n)}).catch(function(){o(!1)})}}},XymR:function(n,t,e){"use strict";e.r(t),e.d(t,"updateRadarLinkState",function(){return c}),e.d(t,"updateMapPara",function(){return u}),e.d(t,"updateRealSize",function(){return f}),e.d(t,"getMapParaData",function(){return l}),e.d(t,"setMapParaData",function(){return s}),e.d(t,"getDefaultMapParaData",function(){return d}),e.d(t,"calculateRealSize",function(){return p});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("gQfx"),i=e("tZYx"),c=(e("rGIM"),function(n){return{type:o.c,data:n}}),u=function(n){return{type:o.a,data:n}},f=function(n){return{type:o.b,data:n}},l=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.getConfig("MapPara").then(function(e){t(u(e)),n&&r.a.success(o("com.Operateingsuccess")),a(e)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},s=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.setConfig("MapPara",n).then(function(){t(u(n)),r.a.success(o("com.Operateingsuccess")),a()}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},d=function(){return function(n,t,e){var a=t().publicState.$t;i.a.ConfigManager.getDefault("MapPara").then(function(t){n(u(t)),e(t),r.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){r.a.error(a("com.Operateingfailure"))})}},p=function(n,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(e,a,o){var c=a().publicState.$t;i.a.RadarAdaptor.calculateRealSize(n,t,0).then(function(n){e(f(n)),o(n)}).catch(function(n){r.a.error(c("com.Operateingfailure"))})}}},"Y+z2":function(n,t,e){"use strict";e.d(t,"d",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"b",function(){return u}),e.d(t,"c",function(){return f});var a=e("UzYW"),r=e("tZYx"),o=e("R+FV");function i(n){return{type:a.a,data:n}}var c=function(n,t,e){return function(a,c,u,f){r.a.ConfigManager.getConfig(n,t,e).then(function(t){var e,r,c,f,l=t[0].params.table,s=t[1]&&t[1].params.table;"Multicast"===n[0]?(e=Object(o.g)(l).RTP,r=Object(o.g)(e),c=Object(o.g)(l).TS,f=Object(o.g)(c)):(e=Object(o.g)(l),r=Object(o.g)(e),c=Object(o.g)(l)[1],f=Object(o.g)(c)),a(i({DVRIP:s,RTP:e,broad_Table:l,RTP_INIT:r,TS:c,TS_INIT:f})),u(!0)}).catch(function(){f(!1)})}},u=function(n,t,e){return function(a,c,u,f){r.a.ConfigManager.getDefault(n,t,e).then(function(t){var e,r,c=t[0].params.table,f=t[1]&&t[1].params.table;"Multicast"===n[0]?(e=Object(o.g)(c).RTP,r=Object(o.g)(c).TS):(e=Object(o.g)(c),r=Object(o.g)(c)[1]),a(i({DVRIP:f,RTP:e,broad_Table:c,TS:r})),u(!0)}).catch(function(){f(!1)})}},f=function(n,t,e){return function(a,o,i,c){r.a.ConfigManager.setConfig(n,t,e).then(function(n){n&&(n instanceof Array&&n.length>0?n[0]&&n[0].result&&n[1]&&n[1].result?i(!0):c(!1):i(!0))}).catch(function(){c(!1)})}}},YYpU:function(n,t,e){n.exports=e.p+"static/media/icon_toujian_n.8c958db6.png"},YjH1:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,'._radioComponent_ .radio-group {\n  -webkit-box-sizing: border-box;\n     -moz-box-sizing: border-box;\n          box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  color: rgba(0, 0, 0, 0.65);\n  font-size: 14px;\n  line-height: 1.5;\n  list-style: none;\n  display: inline-block;\n  line-height: unset;\n}\n._radioComponent_ .radio-group .radio-button-wrapper {\n  margin: 0px 10px 0px 0px;\n  height: 32px;\n  line-height: 30px;\n  color: #272727;\n  display: inline-block;\n  -webkit-transition: all 0.3s ease;\n  -o-transition: all 0.3s ease;\n  transition: all 0.3s ease;\n  cursor: pointer;\n  border: 1px solid #E8E8E8;\n  border-top-width: 1.02px;\n  background: #fff;\n  padding: 0 15px;\n  position: relative;\n}\n._radioComponent_ .radio-group .radio-button-wrapper:first-child {\n  margin: 0px 10px 0px 0px;\n}\n._radioComponent_ .radio-group .radio-button-wrapper input[type="radio"] {\n  margin: 3px 3px 0px 5px;\n  display: none;\n}\n._radioComponent_ .radio-group .radio-button-wrapper input[type="checkbox"] {\n  margin: 3px 3px 0px 5px;\n  display: none;\n}\n._radioComponent_ .radio-group .radio-button-wrapper.radio-button-wrapper-checked {\n  z-index: 1;\n  color: #1890ff;\n  background: #fff;\n  border-color: #1890ff;\n}\n._radioComponent_ .radio-group .radio-button-wrapper.radio-button-wrapper-disabled {\n  border-color: #E8E8E8;\n  background-color: #f5f5f5;\n  cursor: not-allowed;\n  color: rgba(0, 0, 0, 0.25);\n}\n',""])},Zc53:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"clear",function(){return s}),e.d(t,"onDefault",function(){return d}),e.d(t,"getEventLink",function(){return p});var a=e("tZYx"),r=e("X4fs"),o=(e("rGIM"),e("a61M"));function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(c,u,f,l){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(e,"VideoAnalyseRule"),a.a.VideoInAnalyse.getTemplateRule({channel:n,class:"ObjectArming"}),a.a.intelliScheme.getConfig(e,"VideoAnalyseGlobal"),a.a.intelliScheme.getConfig(e,"VideoAnalyseModule")]).then(function(e){i(c,r.b.VEHICLERULECONFIG_INIT,{VideoAnalyseRule:e[0],TemplateRule:e[1],VideoAnalyseGlobal:e[2],VideoAnalyseModule:e[3],CurChannelRPC:n,CurPresetRPC:t}),f()}).catch(function(){l()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.VideoInAnalyse.getTemplateRule({channel:n,class:"ObjectArming"}),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseModule")]).then(function(e){i(c,r.b.VEHICLERULECONFIG_INIT,{VideoAnalyseRule:e[0],TemplateRule:e[1],VideoAnalyseGlobal:e[2],VideoAnalyseModule:e[3],CurChannelRPC:n,CurPresetRPC:t}),f()}).catch(function(){l()})}},u=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){i(t,r.b.VEHICLERULECONFIG_CHANGE,n),a()}).catch(function(){o()})}},f=function(n){return function(t,e,c,u){var f=e().VehicleRuleConfig.vm,l=f.VRule,s=f.VGlobal,d=f.VModule;o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["VideoAnalyseGlobal","VideoAnalyseRule","VideoAnalyseModule"],[s,l,d]).then(function(){i(t,r.b.VEHICLERULECONFIG_SAVE),c()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["VideoAnalyseGlobal","VideoAnalyseRule","VideoAnalyseModule"],[s,l,d]).then(function(){i(t,r.b.VEHICLERULECONFIG_SAVE),c()}).catch(function(n){u()})}},l=function(n){return function(t,e,c,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal"),a.a.intelliScheme.getConfig(n,"VideoAnalyseModule")]).then(function(n){i(t,r.b.VEHICLERULECONFIG_REFRESH,{VideoAnalyseRule:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseModule:n[2]}),c()}).catch(function(){u()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseModule")]).then(function(n){i(t,r.b.VEHICLERULECONFIG_REFRESH,{VideoAnalyseRule:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseModule:n[2]}),c()}).catch(function(){u()})}},s=function(){return function(n){i(n,r.b.VEHICLERULECONFIG_CLEAR)}},d=function(n){return function(t,e,c,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getDefault(n,"VideoAnalyseRule")]).then(function(n){i(t,r.b.VEHICLERULECONFIG_DEFAULT,{VideoAnalyseRule:n[0]}),c()}).catch(function(n){u()}):Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseRule")]).then(function(n){i(t,r.b.VEHICLERULECONFIG_DEFAULT,{VideoAnalyseRule:n[0]}),c()}).catch(function(n){u()})}},p=function(n){return function(t,e,o,c){for(var u=Math.ceil(n.length/8),f=[],l=[],s=0;s<u;s++)f[s]=n.slice(8*s,8*(s+1)),l.push(a.a.EventManager.getEventLink({code:f[s]}));return Promise.all(l).then(function(n){i(t,r.b.VEHICLERULECONFIG_GETEVENTLINK,{EventLink:n||[]}),o()}).catch(function(){c()})}}},aA2J:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return f}),e.d(t,"change",function(){return l}),e.d(t,"save",function(){return s}),e.d(t,"refresh",function(){return d}),e.d(t,"_default",function(){return p}),e.d(t,"clear",function(){return g});var a=e("tZYx"),r=e("Zi8k"),o=e("rGIM"),i=e("a61M"),c=["TrafficParkingSpaceParking"];function u(n,t,e){n(Object(r.a)(t,e))}var f=function(){return function(n,t,e,f){return Promise.all([a.a.VideoInAnalyse.getTemplateRule({channel:0,class:"ParkingSpace"}),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseRule"),i.default.EventCaps&&a.a.EventManager.getEventLink({code:c}),o.default.getIVSCaps(i.default.CHANNEL_NUMBER),o.default.get("ParkingSpace"),a.a.ConfigManager.getConfig("ParkingSpaceLightState")]).then(function(t){u(n,r.b.PARKINGSPACE_INIT,{TempParkingSpace:t[0].ParkingSpace,VideoAnalyseGlobal:t[1],VideoAnalyseRule:t[2],EventLink:t[3],IVSCaps:t[4],ParkingSpacePD:t[5],ParkingSpaceLightState:t[6]}),e()}).catch(function(){f()})}},l=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){u(t,r.b.PARKINGSPACE_CHANGE,n),a()}).catch(function(){o()})}},s=function(){return function(n,t,e,o){var i=t().ParkingSpace.vm,c=i.VGlobal,f=i.VRule,l=i.VLight;a.a.ConfigManager.setConfig(["VideoAnalyseGlobal","VideoAnalyseRule","ParkingSpaceLightState"],[c,f,l]).then(function(){u(n,r.b.PARKINGSPACE_SAVE),e()}).catch(function(n){o()})}},d=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.ConfigManager.getConfig("ParkingSpaceLightState")]).then(function(t){u(n,r.b.PARKINGSPACE_REFRESH,{VideoAnalyseGlobal:t[0],VideoAnalyseRule:t[1],ParkingSpaceLightState:t[2]}),e()}).catch(function(){o()})}},p=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseGlobal"),a.a.ConfigManager.getDefault("VideoAnalyseRule"),a.a.ConfigManager.getDefault("ParkingSpaceLightState")]).then(function(t){u(n,r.b.PARKINGSPACE_DEFAULT,{VideoAnalyseGlobal:t[0],VideoAnalyseRule:t[1],ParkingSpaceLightState:t[2]}),e()}).catch(function(){o()})}},g=function(){return function(n){u(n,r.b.PARKINGSPACE_CLEAR)}}},"bC+/":function(n,t,e){"use strict";e.d(t,"d",function(){return o}),e.d(t,"b",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"c",function(){return u});var a=e("J89p"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("StereoCalibrate").then(function(t){n(o({data:t})),e(!0)}).catch(function(){a(!1)})}},c=function(n){return function(n,t,e,a){r.a.ConfigManager.getDefault("StereoCalibrate").then(function(t){n(o({data:t})),e(!0)}).catch(function(){a(!1)})}},u=function(n){return function(t,e,a,i){r.a.ConfigManager.setConfig("StereoCalibrate",n).then(function(){t(o({data:n})),a(!0)}).catch(function(){a(!1)})}}},bXOg:function(n,t,e){"use strict";e("G851");var a=e("ZvzK"),r=e.n(a),o=(e("MaXC"),e("4IMT")),i=e.n(o),c=(e("FGdI"),e("Pbn2")),u=e.n(c),f=(e("PFYH"),e("Jv8k")),l=e.n(f),s=(e("pJsf"),e("g4D/")),d=e.n(s),p=e("upjz"),g=e("2bPg"),h=e("BRlI"),m=e("PK3Q"),C=e("Q5Ww"),S=e("00an"),v=e("q1tI"),b=e.n(v),y=e("zTcL"),E=(e("WcJ6"),function(n){function t(n){var e;return Object(g.a)(this,t),(e=Object(m.a)(this,Object(C.a)(t).call(this,n))).handleAllCheck=function(){var n=e.props,t=n.value,a=n.onChange,r=n.options;a(t=t.length===r.length?[]:r.map(function(n){return n.value}))},e.handleItemCheck=function(n,t){var a=e.props,r=a.value,o=a.onChange,i=Object(p.a)(r);if(n)i=i.concat(t);else{var c=new Set(i);c.delete(t),i=Object(p.a)(c)}o(i)},e.handleDocClick=function(n){var t=e.closest(n.target,"custom_muti_menu");e.closest(n.target,"fn-center")?(e.setState({visible:!1}),document.removeEventListener("click",e.handleDocClick)):t||(e.setState({visible:!1}),e.props.onBlur&&e.props.onBlur(n),document.removeEventListener("click",e.handleDocClick))},e.handleBlur=function(){e.state.visible||e.props.onBlur&&e.props.onBlur()},e.handleBtnClick=function(){e.setState({visible:!0}),document.addEventListener("click",e.handleDocClick)},e.state={visible:!1},e}return Object(S.a)(t,n),Object(h.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocClick)}},{key:"getMenu",value:function(){var n=this,t=this.props,e=t.$t,a=t.options,r=t.value;return b.a.createElement(l.a,{className:"custom_muti_menu"},b.a.createElement(l.a.Item,null,b.a.createElement(d.a,{onChange:this.handleAllCheck,checked:a.length===r.length},e("com.All"))),a&&a.map(function(t){return b.a.createElement(l.a.Item,{key:t.value},b.a.createElement(d.a,{onChange:function(e){return n.handleItemCheck(e.target.checked,t.value)},checked:r.includes(t.value)},t.text))}))}},{key:"closest",value:function(n,t){for(var e=n.parentNode;e;){var a=e.getAttribute("class");if(a&&a.includes(t))return!0;if("BODY"===e.tagName||"HTML"===e.tagName)return!1;e=e.parentNode}return!1}},{key:"render",value:function(){var n,t=this,e=this.props,a=e.options,o=e.value,c=e.$t,f=this.state.visible;return n=0===o.length?c("com.None"):a.length===o.length?c("com.All"):a.filter(function(n){return o.includes(n.value)}).map(function(n){return n.text}).join(", "),b.a.createElement(r.a,{placement:"bottomCenter",overlay:this.getMenu(),visible:f},b.a.createElement(i.a,{ref:function(n){return t.btnRef=n},className:"mutidropdown-btn",onClick:this.handleBtnClick,onBlur:this.handleBlur},b.a.createElement("span",{className:"mutidropdown-btn-ellipsis",title:n},n),b.a.createElement(u.a,{type:"down"})))}}]),t}(v.PureComponent));t.a=Object(y.a)(E)},cjNu:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"change",function(){return c}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return f}),e.d(t,"onDefault",function(){return l}),e.d(t,"clear",function(){return s}),e.d(t,"PtzManager",function(){return d}),e.d(t,"getBoatCaliCheckResult",function(){return p});var a=e("tZYx"),r=e("uFeX");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseBoatCalibrate")]).then(function(t){o(n,r.b.BOATCALIBRATIONCONFIG_INIT,{VideoAnalyseBoatCalibrate:t[0]}),e()}).catch(function(){i()})}},c=function(n){return function(t){o(t,r.b.BOATCALIBRATIONCONFIG_CHANGE,n)}},u=function(){return function(n,t,e,i){var c=t().BoatCalibrationConfig.vm.boatCalibrate;a.a.ConfigManager.setConfig("VideoAnalyseBoatCalibrate",c).then(function(t){o(n,r.b.BOATCALIBRATIONCONFIG_SAVE),e(t)}).catch(function(){i()})}},f=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseBoatCalibrate")]).then(function(t){o(n,r.b.BOATCALIBRATIONCONFIG_REFRESH,{VideoAnalyseBoatCalibrate:t[0]}),e()}).catch(function(){i()})}},l=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseBoatCalibrate")]).then(function(t){o(n,r.b.BOATCALIBRATIONCONFIG_DEFAULT,{VideoAnalyseBoatCalibrate:t[0]}),e()}).catch(function(){i()})}},s=function(){return function(n){o(n,r.b.BOATCALIBRATIONCONFIG_CLEAR)}},d=function(n,t,e){return function(r,o,i,c){a.a.PTZManager(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}},p=function(n,t){return function(e,r,o,i){a.a.DevVideoAnalyse.instance({channel:n}).then(function(n){a.a.DevVideoAnalyse.getBoatCaliCheckResult(n.result,{CheckRect:t}).then(function(n){o(n)}).catch(function(n){i(n)})})}}},d8mQ:function(n,t,e){n.exports=e.p+"static/media/motion_figure.763d43f2.png"},efpy:function(n,t,e){"use strict";e.d(t,"d",function(){return o}),e.d(t,"c",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"b",function(){return u});var a=e("RDD8"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(){return function(n,t,e,a){var o=t().SpliceOptionConfig.SpliceOption;r.a.ConfigManager.setConfig("SpliceOption",o).then(function(){e(!0)}).catch(function(){a(!1)})}},c=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("SpliceOption").then(function(t){n(o({SpliceOption:t})),e(!0)}).catch(function(){a(!1)})}},u=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("SpliceOption").then(function(t){n(o({SpliceOption:t})),e(!0)}).catch(function(){a(!1)})}}},epnh:function(n,t,e){"use strict";e.d(t,"f",function(){return o}),e.d(t,"d",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"b",function(){return u}),e.d(t,"g",function(){return f}),e.d(t,"c",function(){return l}),e.d(t,"e",function(){return s});var a=e("DeUv"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(){return function(n,t,e,a){var o=t().ProbeSearch.Aroud4GProbeSearch;r.a.ConfigManager.setConfig("Aroud4GProbeSearch",o).then(function(){e()}).catch(function(){a()})}},c=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("Aroud4GProbeSearch").then(function(t){n(o(t)),e()}).catch(function(){a()})}},u=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("Aroud4GProbeSearch").then(function(t){n(o(t)),e()}).catch(function(){a()})}};function f(n){return{type:a.b,data:n}}var l=function(n){return function(t,e,a,o){r.a.ConfigManager.getConfig(n).then(function(n){t(f(n)),a()}).catch(function(){o()})}},s=function(n,t){return function(e,a,o,i){r.a.ConfigManager.setConfig(n,t).then(function(){e(f(t)),o()}).catch(function(n){i(n)})}}},f0th:function(n,t,e){n.exports=e.p+"static/media/icon_head_s.4a744fdc.png"},fj2L:function(n,t,e){"use strict";e.d(t,"L",function(){return d}),e.d(t,"G",function(){return p}),e.d(t,"M",function(){return g}),e.d(t,"S",function(){return h}),e.d(t,"R",function(){return m}),e.d(t,"T",function(){return C}),e.d(t,"O",function(){return S}),e.d(t,"Q",function(){return b}),e.d(t,"I",function(){return y}),e.d(t,"Z",function(){return E}),e.d(t,"H",function(){return T}),e.d(t,"V",function(){return A}),e.d(t,"W",function(){return I}),e.d(t,"ab",function(){return O}),e.d(t,"U",function(){return P}),e.d(t,"J",function(){return R}),e.d(t,"X",function(){return L}),e.d(t,"P",function(){return D}),e.d(t,"cb",function(){return V}),e.d(t,"Y",function(){return F}),e.d(t,"F",function(){return w}),e.d(t,"N",function(){return x}),e.d(t,"bb",function(){return G}),e.d(t,"db",function(){return k}),e.d(t,"K",function(){return _}),e.d(t,"eb",function(){return j}),e.d(t,"n",function(){return B}),e.d(t,"z",function(){return U}),e.d(t,"r",function(){return z}),e.d(t,"b",function(){return Y}),e.d(t,"w",function(){return Z}),e.d(t,"o",function(){return $}),e.d(t,"s",function(){return K}),e.d(t,"t",function(){return Q}),e.d(t,"C",function(){return X}),e.d(t,"d",function(){return J}),e.d(t,"e",function(){return q}),e.d(t,"g",function(){return nn}),e.d(t,"y",function(){return en}),e.d(t,"u",function(){return an}),e.d(t,"f",function(){return rn}),e.d(t,"c",function(){return on}),e.d(t,"D",function(){return cn}),e.d(t,"k",function(){return fn}),e.d(t,"v",function(){return ln}),e.d(t,"E",function(){return sn}),e.d(t,"l",function(){return dn}),e.d(t,"m",function(){return pn}),e.d(t,"B",function(){return gn}),e.d(t,"p",function(){return hn}),e.d(t,"j",function(){return Cn}),e.d(t,"A",function(){return Sn}),e.d(t,"h",function(){return vn}),e.d(t,"i",function(){return bn}),e.d(t,"x",function(){return yn}),e.d(t,"a",function(){return En}),e.d(t,"q",function(){return Tn});var a=e("upjz"),r=(e("tL+A"),e("QpBz")),o=e.n(r),i=e("DiES"),c=e("tZYx"),u=(e("u3Tm"),e("rGIM")),f=(e("a61M"),e("R+FV")),l=(e("H9HX"),e("4Gn2")),s=(e("8gbx"),function(){});function d(n){return{type:i.k,data:n}}function p(n){return{type:i.c,data:n}}function g(n){return{type:i.j,data:n}}function h(n){return{type:i.r,data:n}}function m(n){return{type:i.q,data:n}}function C(n){return{type:i.s,data:n}}function S(n){return{type:i.n,data:n}}function v(n){return{type:i.D,data:n}}function b(n){return{type:i.p,data:n}}function y(n){return{type:i.e,data:n}}function E(n){return l.a.publish("videoToggle",n),{type:i.C,data:n}}function T(n){return{type:i.f,data:n}}function M(n){return{type:i.m,data:n}}function A(n){return{type:i.t,data:n}}function I(n){return{type:i.v,data:n}}function O(n){return{type:i.E,data:n}}function P(n){return{type:i.y,data:n}}function R(n){return{type:i.h,data:n}}function L(n){return{type:i.B,data:n}}function D(n){return{type:i.o,data:n}}function V(n){return{type:i.G,data:n}}function F(n){return{type:i.z,data:n}}function N(n){return{type:i.d,data:n}}function w(n){return{type:i.b,data:n}}function x(n){return{type:i.l,data:n}}function G(n){return{type:i.F,data:n}}function k(n){return{type:i.H,data:n}}function _(n){return{type:i.g,data:n}}function j(n){return{type:i.L,data:n}}function W(n,t,e){var a,r=n.toString(2),o=r.length;return"left"===e&&(e=o-t),e="number"===typeof e?e:1,(a=r.substring(o-t,o-t-e))?parseInt(a,2):0}var B=function(){return function(n,t){u.default.get("SupportDownloadEncrypt").then(function(t){var e;n((e=t||!1,{type:i.I,data:e}))}),u.default.is("SupportEventCaps").then(function(t){var e,a=t.SupportEventCaps;t.SupportEventCaps?n((e=a,{type:i.J,data:e})):u.default.get("QueryDatabase").then(function(t){var e;n((e=t||{},{type:i.K,data:e}))})}),u.default.get("RecordCaps").then(function(t){var e;n((e=t||{},{type:i.u,data:e}))}),c.a.ConfigManager.getConfig("DownloadEncrypt").then(function(t){n(N(t))}).catch(function(n){})}},U=function(n){var t=n.delayFuncList,e=void 0===t?[]:t;return function(n,t){t(),0!==e.length&&e.forEach(function(n){n()})}},z=function(){return function(n){setTimeout(function(){n(d({ip:["255.255.255.255","255.255.255.255","255.255.255.255"]})),n(p({count:1}))},2e3)}},H={},Y=function(n,t,e){return function(a,r,o,i){var u=("0"+t.condition.Month).slice(-2),f="".concat(t.condition.Year,"-").concat(u);c.a.setWorkDirectory("getBit",n,t).then(function(n){H[f]=n.bitmap,o({bitmap:n.bitmap,status:e,time:"".concat(t.condition.Year,"-").concat(u)})})}},Z=function(n){return function(t,e){var a=e().publicState.$t,r=(n.name,{NoListAuth:"com.FTPNoListAuthTip",NoDeleteFileAuth:"com.FTPNoDeleteFileAuthTip",NoDeleteDirAuth:"com.FTPNoDeleteDirAuthTip",ReadWrite:"net.TestSuccess",ReadOnly:"com.FTPReadOnlyTip",NotAcess:"com.FTPNotAcessTip",LoginFailure:"com.FTPLoginFailure"});c.a.FtpTest.checkAuthority(n).then(function(n){if(n){var t=n.access,e=n.authority,i=n.deleteDir,c=n.deleteFile,u=n.list;0===t?"ReadWrite"===e?0===u?o.a.error(a(r.NoListAuth)):0===c?o.a.error(a(r.NoDeleteFileAuth)):0===i?o.a.error(a(r.NoDeleteDirAuth)):o.a.success(a(r.ReadWrite)):"ReadOnly"===e&&o.a.error(a(r.ReadOnly)):1===t?o.a.error(a(r.NotAcess)):2===t&&o.a.error(a(r.LoginFailure))}}).catch(function(){o.a.error(a("com.Operateingfailure"))})}},$=function(){return function(n,t){var e=t(),r=(e.publicState.$t,e.Playback.remoteStoreList);u.default.is("RemoteStoreList").then(function(t){var e;r=t.RemoteStoreList||[],n((e=Object(a.a)(r),{type:i.x,data:e}))})}},K=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.flag,e=n.resetFields,a=n.cb,r=n.addConf;return function(n,i,u,f){var l=i().publicState.$t;e&&e();var s=["RecordStoragePoint","NAS","SFTP","StorageGroup"];r&&s.push("MultiSceneRecord"),c.a.getSecConfig(s).then(function(e){var r=e.map(function(n){return n.params&&n.params.table||[]});tn(r,n,a),t&&o.a.success(l("com.Operateingsuccess")),u(r)}).catch(function(n){o.a.error(l("com.Operateingfailure")),f(n)})}},Q=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.flag,e=n.resetFields;n.cb;return function(n,a,r,i){var u=a().publicState.$t;e&&e(),c.a.getSecConfig(["Encode","VideoEncodeROI"]).then(function(e){var a=e.map(function(n){return n.params&&n.params.table||[]});n(k(a)),t&&o.a.success(u("com.Operateingsuccess")),r(a)}).catch(function(n){o.a.error(u("com.Operateingfailure")),i(n)})}},X=function(n){return function(t,e,a,r){var i=e().publicState.$t;c.a.ConfigManager.setConfig(["Encode","VideoEncodeROI"],n).then(function(n){o.a.success(i("com.Operateingsuccess")),a(!0)}).catch(function(n){o.a.error(i("com.Operateingfailure")),r(n)})}},J=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(n.flag,n.resetFields),e=n.cb,a=n.addConf;return function(n,r,i,u){var f=r().publicState.$t;t&&t();var l=["RecordStoragePoint","NAS","SFTP","StorageGroup"];a&&l.push("MultiSceneRecord"),c.a.getSecDefault(l).then(function(t){tn(t.map(function(n){return n.params&&n.params.table||[]}),n,e),o.a.success(f("com.OperateingSuccessTip")),i(!0)}).catch(function(n){o.a.error(f("com.Operateingfailure")),u(n)})}},q=function(){return function(n,t,e,a){c.a.ConfigManager.getDefault("StorageGroup").then(function(t){n(O(t)),e(!0)}).catch(function(n){a(n)})}},nn=function(n){var t=n.configData;return function(n,e,a,r){c.a.ConfigManager.getDefault("MultiSceneRecord").then(function(e){t[0].VideoNamingFormat.Format=e[0].VideoNamingFormat.Format,n(j(t)),a(!0)}).catch(function(n){r(n)})}};function tn(n,t,e){var a,r=n[0]&&n[0],o=n[1]&&n[1],c=n[2]&&n[2],u=c&&c[0],f=n[3]&&n[3],l=n[4]&&n[4],s=o.filter(function(n){return"FTP"===n.Protocol})[0],d=o.filter(function(n){return"NAS"===n.Protocol})[0],p=o.filter(function(n){return"NFS"===n.Protocol})[0],g=o.filter(function(n){return"SMB"===n.Protocol})[0],h={Local:[],FTP:[],NAS:[]};h.Local[0]=!!r[0].TimingRecord.Local,h.Local[1]=!!r[0].VideoDetectRecord.Local,h.Local[2]=!!r[0].AlarmRecord.Local,h.FTP[0]=!!r[0].TimingRecord.FTP,h.FTP[1]=!!r[0].VideoDetectRecord.FTP,h.FTP[2]=!!r[0].AlarmRecord.FTP,h.NAS[0]=!!r[0].TimingRecord.Remote,h.NAS[1]=!!r[0].VideoDetectRecord.Remote,h.NAS[2]=!!r[0].AlarmRecord.Remote,t(P(r)),t(D(o)),t(L(u)),t(R(s)),t((a=d,{type:i.w,data:a})),t(V(h)),t(O(f)),l&&t(j(l));var m="",C="",S={ftpMode:"SFTP",nasMode:"NFS"};r[0].TimingSnapShot.Local||r[0].VideoDetectSnapShot.Local||r[0].AlarmSnapShot.Local||r[0].EventSnapShot.Local||r[0].ManualSnapShot.Local?t(G("Local")):r[0].TimingSnapShot.FTP||r[0].VideoDetectSnapShot.FTP||r[0].AlarmSnapShot.FTP||r[0].EventSnapShot.FTP||r[0].ManualSnapShot.FTP?t(G("FTP")):t(G("NAS")),m=u.Enable?"SFTP":s.Enable?"FTP":"SFTP",C=p.Enable?"NFS":g.Enable?"SMB":"NFS",S.ftpMode=m,S.nasMode=C,e&&e(S)}var en=function(n){n.success,n.error;var t=n.emergencyFlag;n.ftpMode;return function(n,e,a){var r=e(),i=r.publicState.$t,u=r.Playback,l=u.storagePoint,s=u.RSP,d=u.NAS,p=u.FTP,g=u.SFTP,h=u.remoteStoreList,m=u.StorageGroup,C=u.TrafficRecord,S=r.webCaps;for(var v in s){var b=s[v];b.TimingRecord.Local=l.Local[0],b.VideoDetectRecord.Local=l.Local[1],b.AlarmRecord.Local=l.Local[2],b.ManualRecord.Local=l.Local[0]||l.Local[1]||l.Local[2],b.EventRecord.Local=l.Local[0]||l.Local[1]||l.Local[2],b.TimingRecord.FTP=l.FTP[0],b.VideoDetectRecord.FTP=l.FTP[1],b.AlarmRecord.FTP=l.FTP[2],b.ManualRecord.FTP=l.FTP[0]||l.FTP[1]||l.FTP[2],b.EventRecord.FTP=l.FTP[0]||l.FTP[1]||l.FTP[2],b.TimingRecord.Remote=l.NAS[0],b.VideoDetectRecord.Remote=l.NAS[1],b.AlarmRecord.Remote=l.NAS[2],b.ManualRecord.Remote=l.NAS[0]||l.NAS[1]||l.NAS[2]||l.FTP[0]||l.FTP[1]||l.FTP[2],b.EventRecord.Remote=l.NAS[0]||l.NAS[1]||l.NAS[2]||l.FTP[0]||l.FTP[1]||l.FTP[2],b.TimingRecord.LocalForEmergency=l.FTP[0]&&t,b.VideoDetectRecord.LocalForEmergency=l.FTP[1]&&t,b.AlarmRecord.LocalForEmergency=l.FTP[2]&&t,b.ManualRecord.LocalForEmergency=b.TimingRecord.LocalForEmergency||b.VideoDetectRecord.LocalForEmergency||b.AlarmRecord.LocalForEmergency,b.EventRecord.LocalForEmergency=b.TimingRecord.LocalForEmergency||b.VideoDetectRecord.LocalForEmergency||b.AlarmRecord.LocalForEmergency,b.TimingSnapShot.LocalForEmergency=l.FTP[0]&&t,b.VideoDetectSnapShot.LocalForEmergency=l.FTP[1]&&t,b.AlarmSnapShot.LocalForEmergency=l.FTP[2]&&t,b.ManualSnapShot.LocalForEmergency=b.TimingSnapShot.LocalForEmergency||b.VideoDetectSnapShot.LocalForEmergency||b.AlarmSnapShot.LocalForEmergency,b.EventSnapShot.LocalForEmergency=b.TimingSnapShot.LocalForEmergency||b.VideoDetectSnapShot.LocalForEmergency||b.AlarmSnapShot.LocalForEmergency}var y="false,false,false"!==l.FTP.join(","),E="false,false,false"!==l.NAS.join(",");y&&(d=d.map(function(n){return n.Protocol===p.Protocol?n=Object(f.h)(p):n}));var T=["RecordStoragePoint","StorageGroup"],M=[s,m];S.is_show_newIntelli&&(T.push("MultiSceneRecord"),M.push(C)),c.a.ConfigManager.setConfig(T,M).then(function(t){E?c.a.setSecConfig("SFTP",[g]).then(function(){c.a.setSecConfig("NAS",d).then(function(){o.a.success(i("com.Operateingsuccess")),a()}).catch(function(){o.a.error(i("com.Operateingfailure"))}).finally(function(){n(K())})}).catch(function(){o.a.error(i("com.Operateingfailure"))}):c.a.setSecConfig("NAS",d).then(function(){h.includes("SFTP")&&c.a.setSecConfig("SFTP",[g]).then(function(){o.a.success(i("com.Operateingsuccess")),a()}).catch(function(){o.a.error(i("com.Operateingfailure"))})}).catch(function(){o.a.error(i("com.Operateingfailure"))})})}},an=function(n){var t=n.success,e=void 0===t?s:t,a=n.flag;return function(n,t){var r=t().publicState.$t;c.a.ConfigManager.getConfig(["Record"]).then(function(t){e&&e(),n(F(t[0].params.table)),a&&o.a.success(r("com.Operateingsuccess"))}).catch(function(){o.a.error(r("com.Operateingfailure"))})}},rn=function(n,t){var e=n.success,a=void 0===e?s:e;return function(n,e){var r=e(),i=r.publicState.$t,u=r.Playback.Schedule,l=Object(f.h)(u);c.a.ConfigManager.getDefault(["Record"]).then(function(e){a&&a(),l[t]=e[0].params.table[t],n(F(l)),o.a.success(i("com.OperateingSuccessTip"))}).catch(function(){o.a.error(i("com.Operateingfailure"))})}},on=function(){return function(n,t,e,a){c.a.ConfigManager.getDefault("Holiday").then(function(n){e(n)}).catch(function(n){a(n)})}},cn=function(n){var t=n.params;n.success;return function(n,e){var a=e().publicState.$t;c.a.ConfigManager.setConfig(["Record"],[t]).then(function(n){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))})}},un=function(n){return function(t,e,a,r){c.a.MediaFileFind.close(n).then(function(){c.a.MediaFileFind.destroy(n),a(!0)}).catch(function(){r()}).finally(function(){})}},fn=function(n){return function(t,e,r,o){c.a.MediaFileFind.instance().then(function(e){var i=e.result;c.a.MediaFileFind.findFile(i,n).then(function(){t(function n(t){return function(e,r,o,i){c.a.MediaFileFind.findNextFile(t,{count:100}).then(function(c){if(c.found){var u=r().Playback,f=u.infos,l=u.count;e(g([].concat(Object(a.a)(f),Object(a.a)(c.infos))));var s=l+c.found;e(p(s)),100===c.found?e(n(t)).then(function(){o(!0)}).catch(function(n){i(n)}):(e(un(t)),o(!0))}else e(un(t)),o(!0)}).catch(function(n){i(n),e(un(t))})}}(i)).then(function(){r(!0)}).catch(function(n){o(n)})}).catch(function(n){o(n)})}).catch(function(n){o(n)})}},ln=function(n){return function(t,e,a,r){var o,i,u,f=e().Playback.infos,l=[];n.forEach(function(n){o=W(n.Disk,3,"left"),i=W(n.Disk,0,2),u=n.Cluster,l.push({fileName:"DHFS"+o+"-"+i+"-"+u,flag:!0})}),c.a.Storage.markFile(l).then(function(e){n.forEach(function(n){var t=f.findIndex(function(t){return t.FilePath===n.FilePath});f[t].Flags.includes("Marked")||f[t].Flags.push("Marked")}),t(g(f)),a()}).catch(function(n){r(n)}).finally(function(){n.forEach(function(n){var t=f.findIndex(function(t){return t.FilePath===n.FilePath});f[t].Flags.includes("Marked")||f[t].Flags.push("Marked")}),t(g(f))})}},sn=function(n){return function(t,e,a,r){var o,i,u,f=e().Playback.infos,l=[];n.forEach(function(n){o=W(n.Disk,3,"left"),i=W(n.Disk,0,2),u=n.Cluster,l.push({fileName:"DHFS"+o+"-"+i+"-"+u,flag:!1})}),c.a.Storage.markFile(l).then(function(e){n.forEach(function(n){var t=f.findIndex(function(t){return t.FilePath===n.FilePath}),e=f[t].Flags.indexOf("Marked");e>-1&&f[t].Flags.splice(e,1)}),t(g(f)),a()}).finally(function(){n.forEach(function(n){var t=f.findIndex(function(t){return t.FilePath===n.FilePath}),e=f[t].Flags.indexOf("Marked");e>-1&&f[t].Flags.splice(e,1)}),t(g(f))})}},dn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.flag,e=n.resetFields,a=n.channel,r=void 0===a?0:a;return function(n,a,i,u){var f=a().publicState.$t;e&&e(),c.a.ConfigManager.getConfig(["MediaGlobal","Record","RecordMode","StorageGroup","SnapMode"]).then(function(e){mn(e,n,r),t&&o.a.success(f("com.Operateingsuccess")),i(e)}).catch(function(){o.a.error(f("com.Operateingfailure"))})}},pn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(n.flag,n.overWriteValue),e=n.resetFields,a=n.channel,r=void 0===a?0:a;return function(n,a){var i=a(),u=i.publicState.$t,f=i.Playback,l=f.RecordConfig,s=f.modes,d=f.snapModes;e&&e(),c.a.ConfigManager.getDefault(["MediaGlobal","Record","RecordMode","StorageGroup","SnapMode"]).then(function(e){var a,i,c,f,p,g,h,m;null!==(a=e[1])&&void 0!==a&&null!==(i=a.params)&&void 0!==i&&i.table&&(l[r].PreRecord=e[1].params.table[r].PreRecord,l[r].Stream=e[1].params.table[r].Stream,e[1].params.table=l),null!==(c=e[2])&&void 0!==c&&null!==(f=c.params)&&void 0!==f&&f.table&&(s[r]=e[2].params.table[r],e[2].params.table=s),null!==(p=e[3])&&void 0!==p&&null!==(g=p.params)&&void 0!==g&&g.table&&(e[3].params.table[0].OverWrite=t),null!==(h=e[4])&&void 0!==h&&null!==(m=h.params)&&void 0!==m&&m.table&&(d[r]=e[4].params.table[r],e[4].params.table=d),mn(e,n,r),o.a.success(u("com.OperateingSuccessTip"))}).catch(function(){o.a.error(u("com.Operateingfailure"))})}},gn=function(){return function(n,t){var e=t(),a=e.publicState.$t,r=e.Playback,i=r.MediaGlobalConfig,u=r.StorageGroup,f=r.overWrite,l=r.PacketLength,s=r.RecordConfig,d=r.modes,p=r.snapModes;i.PacketLength=l-0,u.forEach(function(n){n.OverWrite=!!f}),c.a.ConfigManager.setConfig(["MediaGlobal","Record","RecordMode","SnapMode"],[i,s,d,p]).then(function(){o.a.success(a("com.Operateingsuccess"))}).catch(function(){o.a.error(a("com.Operateingfailure"))})}},hn=function(n){return function(t,e){var a=c.a.ConfigManager.getConfig("RecordStoragePoint"),r=c.a.getDeviceAllInfo("getDeviceAllInfo"),o=!1;Promise.all([a,r]).then(function(n){for(var t=n[0],e=n[1].info,a=!1,r=!1,i=0;i<e.length;i++)e[i].SDEncryptFlag&&1===e[i].SDEncryptFlag&&(a=!0);for(var c=0;c<t.length;c++){var u=t[c];for(var f in u)u.hasOwnProperty(f)&&u[f]&&u[f].Local&&(r=!0)}a&&r&&(o=!0)}).catch(function(){o=!1}).finally(function(){var e;t((e=o,{type:i.A,data:e})),"function"===typeof n&&n(o)})}};function mn(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=n[0]&&n[0].params.table,r=n[1]&&n[1].params.table,o=n[2]&&n[2].params.table,i=n[3]&&n[3].params.table,c=n[4]&&n[4].params.table,u=n[0]&&n[0].params.table.PacketLength,f=n[1]&&n[1].params.table[e].PreRecord,l=n[1]&&n[1].params.table[e].Stream,s=n[3]&&n[3].params.table[0].OverWrite;s=!!s,t(m(u)),t(C(f)),t(S(o)),t(v(c)),t(M(a)),t(A(r)),t(I(l)),t(b(s)),t(O(i))}var Cn=function(){return function(n,t,e,a){c.a.ConfigManager.getConfig("Holiday").then(function(n){e(n)}).catch(function(n){a(n)})}},Sn=function(n){return function(t,e,a,r){c.a.ConfigManager.setConfig("Holiday",n).then(function(n){a(n)}).catch(function(n){r(n)})}},vn=function(n){return function(t,e,a,r){return c.a.Storage.instance().then(function(t){c.a.Storage.getDeviceAllInfo(t.result,n).then(function(n){a(n&&n.info)}).catch(function(n){r(n)})}).catch(function(n){r(n)})}},bn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){u.default.get("VideoInputCaps",null,n).then(function(n){n.FishEye?a(!0):a(!1)})}},yn=function(n){return function(t,e,a,r){c.a.FileManager.removeMediaFiles(n).then(function(n){a(n)}).catch(function(n){r(n)})}},En=function(){return function(n,t,e,a){c.a.ConfigManager.getConfig("DownloadEncrypt").then(function(t){n(N(t))}).catch(function(n){a(n)})}},Tn=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,e,a,r){c.a.ScenicSpot.getCaps({channel:n}).then(function(n){n&&n.caps&&n.caps.Enable?a():r()}).catch(function(n){r(n)})}}},h5TP:function(n,t,e){"use strict";e.r(t);var a=e("2bPg"),r=e("BRlI"),o=e("PK3Q"),i=e("Q5Ww"),c=e("00an"),u=e("tquP"),f=e("q1tI"),l=e.n(f),s=e("/MKj"),d=e("zTcL"),p=e("a1D8"),g=(e("e2d9"),{BaseLineDemo1:"",BaseLineDemo2:""});var h=e("H9HX"),m=e("eA3y"),C=e("y/a8"),S={setData:h.b,getData:h.a,updateCount:h.c,updateIP:h.d},v=function(n){function t(){var n,e;Object(a.a)(this,t);for(var r=arguments.length,c=new Array(r),f=0;f<r;f++)c[f]=arguments[f];return(e=Object(o.a)(this,(n=Object(i.a)(t)).call.apply(n,[this].concat(c)))).state={},e.onSubmit=function(){var n=e.props,t=n.setData,a=n.updateIP,r=Object(C.a)(Object(u.a)(Object(u.a)(e))),o=r._dataList.ipInput,i=r.hasBlank;if(i)alert(i);else if(-2!==o.code)return a({ip:o}),t({delayFuncList:void Object(u.a)(Object(u.a)(e))||[]}),null},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentDidMount",value:function(){(0,this.props.getData)()}},{key:"render",value:function(){var n=(this.props,g),t=n.BaseLineDemo1,e=n.BaseLineDemo2,a=this.props.BaseLine.ip;return l.a.createElement(l.a.Fragment,null,t?l.a.createElement(t,Object.assign({ref:"BaseLineDemo1_Custom"},this.props.BaseLine)):"",e?l.a.createElement(e,Object.assign({ref:"BaseLineDemo2_Custom"},this.props.BaseLine)):"",l.a.createElement(m.g,{ref:"ipInput",address:a}),l.a.createElement("button",{onClick:this.onSubmit},"send rpc"))}}]),t}(f.Component),b=Object(s.b)(function(n){return{BaseLine:n.BaseLine}},S,null,{forwardRef:!0})(Object(d.a)(v)),y=e("hiTX"),E=(e("pJsf"),e("g4D/")),T=e.n(E),M=e("g4DW"),A=e("c3ML"),I=(e("Tnnl"),function(n){function t(n){var e;return Object(a.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).state={modes:[],allCheck0:!1,allCheck1:!1,allCheck2:!1,indeterminate0:!1,indeterminate1:!1,indeterminate2:!1},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentWillReceiveProps",value:function(n){var t=n.modes,e=n.modeName,a=n.channel,r=this.checkSelect(t,e,a);this.setState(Object(p.a)({modes:t},r))}},{key:"checkSelect",value:function(n,t,e){e=e||this.props.channel;var a=!1,r=!1,o=!1,i=!1,c=!1,u=!1,f=e.length,l=0,s=0,d=0;return n.filter(function(n,t){return e.includes(t)}).forEach(function(n){0===n[t]?(i=!0,l++):1===n[t]?(c=!0,s++):2===n[t]&&(u=!0,d++),l===f&&(a=!0,i=!1),s===f&&(r=!0,c=!1),d===f&&(o=!0,u=!1)}),{allCheck0:a,allCheck1:r,allCheck2:o,indeterminate0:i,indeterminate1:c,indeterminate2:u}}},{key:"checkAll",value:function(n){var t=this.props.modeName,e=this.state.modes;e.forEach(function(e){e[t]=n});var a=Object(p.a)({},e,{allCheck0:!1,allCheck1:!1,allCheck2:!1,indeterminate0:!1,indeterminate1:!1,indeterminate2:!1},Object(M.a)({},"allCheck"+n,!0));this.setState(a)}},{key:"checkOne",value:function(n,t){var e=this.state.modes,a=this.props.modeName;e[t][a]=n;var r=this.checkSelect(e,a);this.setState(Object(p.a)({modes:e},r))}},{key:"getBitEx",value:function(n,t){var e=(n-0).toString(2),a=e.length;return"1"===e.charAt(a-t-1)?1:0}},{key:"onSubmit",value:function(){return this.state.modes}},{key:"render",value:function(){var n=this,t=this.state.modes,e=this.props,a=e.$t,r=e.title,o=e.tabelTitles,i=e.modeName,c=e.channel;return l.a.createElement("div",{className:"_MutiControl_"},l.a.createElement("div",{className:"title row-list"},l.a.createElement("ul",{className:"mode-wrap clearfix"},l.a.createElement("li",{className:"mode-title mode-item-top",title:r},r),l.a.createElement("li",{className:"mode-item mode-item-top"},a("com.All")),t.map(function(n,t){return c.includes(t)&&l.a.createElement("li",{className:"mode-item mode-item-top",key:t},a("com.Channel"),t+1)}))),l.a.createElement("div",{className:"row-list"},l.a.createElement("ul",{className:"clearfix"},l.a.createElement("li",{className:"mode-title"},o[0]),l.a.createElement("li",{className:"mode-item"},l.a.createElement(T.a,{indeterminate:this.state.indeterminate0,checked:this.state.allCheck0,onClick:function(){return n.checkAll(0)}})),t.map(function(t,e){return c.includes(e)&&l.a.createElement("li",{className:"mode-item",key:e},l.a.createElement(T.a,{checked:0===t[i],onClick:function(){return n.checkOne(0,e)}}))}))),l.a.createElement("div",{className:"row-list"},l.a.createElement("ul",{className:"clearfix"},l.a.createElement("li",{className:"mode-title"},o[1]),l.a.createElement("li",{className:"mode-item"},l.a.createElement(T.a,{indeterminate:this.state.indeterminate1,checked:this.state.allCheck1,onClick:function(){return n.checkAll(1)}})),t.map(function(t,e){return c.includes(e)&&l.a.createElement("li",{className:"mode-item",key:e},l.a.createElement(T.a,{checked:1===t[i],onClick:function(){return n.checkOne(1,e)}}))}))),l.a.createElement("div",{className:" row-list"},l.a.createElement("ul",{className:"clearfix"},l.a.createElement("li",{className:"mode-title mode-item-bottom"},o[2]),l.a.createElement("li",{className:"mode-item mode-item-bottom"},l.a.createElement(T.a,{indeterminate:this.state.indeterminate2,checked:this.state.allCheck2,onClick:function(){return n.checkAll(2)}})),t.map(function(t,e){return c.includes(e)&&l.a.createElement("li",{className:"mode-item mode-item-bottom",key:e},l.a.createElement(T.a,{checked:2===t[i],onClick:function(){return n.checkOne(2,e)}}))}))))}}]),t}(f.Component)),O=Object(A.a)(I),P=e("Ni3L"),R=e.n(P),L=e("upjz"),D=function(){function n(t){Object(a.a)(this,n),this.options=t,this.scaleLayer=new R.a.Layer}return Object(r.a)(n,[{key:"addTo",value:function(n){n.add(this.scaleLayer)}},{key:"initShape",value:function(){for(var n=this.options.startTime.clone(),t=0,e=0;e<this.options.size;e++){var a,r=void 0;a=[e*this.options.w+this.options.offset,this.options.y],r=e%10===0?[e*this.options.w+this.options.offset,this.options.y-this.options.bigScaleHeight]:e%5===0?[e*this.options.w+this.options.offset,this.options.y-this.options.middleScaleHeight]:[e*this.options.w+this.options.offset,this.options.y-this.options.smallScaleHeight];var o=new R.a.Line({points:[].concat(Object(L.a)(a),Object(L.a)(r)),stroke:"#94969b",strokeWidth:1});if(this.scaleLayer.add(o),e%10===0){var i=e/10*this.options.interval-24*t,c=i<10?"0"+i+":00":i+":00",u=e*this.options.w+this.options.offset-this.options.hourOffset,f=this.options.y-this.options.bigScaleHeight-this.options.hourOffset;0===i?(c=n.format("YYYY-MM-DD"),u=e*this.options.w+this.options.offset-this.options.dayOffset):i%24===0&&(t++,c=n.add(1,"day").format("YYYY-MM-DD"),u=e*this.options.w+this.options.offset-this.options.dayOffset);var l=new R.a.Text({x:u,y:f,text:c,fontSize:this.options.fontsize,fontFamily:"MicrosoftYaHei",fill:"#272727"});this.scaleLayer.add(l)}}}},{key:"draw",value:function(){this.scaleLayer.destroyChildren(),this.initShape(),this.scaleLayer.draw()}}]),n}(),V=e("wd/R"),F=e.n(V),N=function(n,t){var e,a=(e=(n-t.offset)*t.interval/(10*t.w),parseInt(1e6*e)/1e6);a=a<0?0:a;var r=parseInt(a/24),o=t.startTime.clone().add(r,"day"),i=parseInt(a%24),c=parseInt(60*(a%24-i)),u=parseInt(60*(60*(a%24-i)-c));return i=i<10?"0"+i:i,c=c<10?"0"+c:c,u=(u=u<10?"0"+u:u)<0?"0":u,"".concat(o.format("YYYY-MM-DD")," ").concat(i,":").concat(c,":").concat(u)},w=function(n,t){return(n="string"===typeof n?F()(n):n).diff(t.startTime)/1e3/3600/t.interval*10*t.w+t.offset};var x=function(){function n(t){Object(a.a)(this,n),this.options=t,this.timeLayer=new R.a.Layer,this.initShape()}return Object(r.a)(n,[{key:"addTo",value:function(n){this.stage=n,n.add(this.timeLayer),this.bind()}},{key:"initShape",value:function(){var n=this;this.curDate=new R.a.Line({points:[this.options.width/2,40,this.options.width/2,5],stroke:"red",strokeWidth:1}),this.simpleLabel=new R.a.Label({x:this.options.width/2,y:5,width:130,height:14,offsetX:75,scaleX:10/12,scaleY:10/12}),this.simpleLabel.add(new R.a.Tag({fill:"rgba(0,0,0,0.4)",cornerRadius:7})),this.simpleLabel.add(new R.a.Text({text:"2019-08-18 08:08:08",fontFamily:"MicrosoftYaHei",fill:"#ffffff",width:130,padding:1,offsetY:-1.5,align:"center"}));var t=new Image;t.onload=function(){n.image=new R.a.Image({x:n.options.width/2-5,y:0,image:t,width:9,height:9}),n.timeLayer.add(n.image),n.timeLayer.draw()},t.src=e("kyWw"),this.timeLayer.add(this.simpleLabel),this.timeLayer.add(this.curDate)}},{key:"bind",value:function(){}},{key:"draw",value:function(){var n=N(this.options.width/2,this.options);this.simpleLabel.getText().text(n),this.timeLayer.draw()}},{key:"toggle",value:function(n){"show"===n?this.timeLayer.show():this.timeLayer.hide()}}]),n}(),G=function(){function n(t){Object(a.a)(this,n),this.options=t,this.recordLayer=new R.a.Layer,this.records=[],this.eventMap={Timing:"rgba(82,196,26, 0.4)",Manual:"rgba(0,255,247, 0.4)",Alarm:"rgba(245,34,45, 0.4)",Event:"rgba(252,172,21, 0.4)"}}return Object(r.a)(n,[{key:"addTo",value:function(n){n.add(this.recordLayer)}},{key:"addRecord",value:function(n,t,e){this.records.push({start:n,end:t,type:e})}},{key:"initShape",value:function(){var n=this;this.records.forEach(function(t){var e=w(t.start,n.options),a=w(t.end,n.options)-e,r=new R.a.Rect({x:e,y:10,width:a,height:30,fill:n.eventMap[t.type],strokeWidth:1});n.recordLayer.add(r),r.alpha(.1)})}},{key:"draw",value:function(n){n&&(this.records=n),this.recordLayer.destroyChildren(),this.initShape(),this.recordLayer.draw()}}]),n}(),k={allScaleNum:241,w:5,x:10,y:40,minW:4.5,maxW:20,wSetp:.3,moveStep:5,interval:1,offset:0,canOperate:!0,bigScaleHeight:8,middleScaleHeight:5,smallScaleHeight:3,fontsize:10,dayOffset:27,hourOffset:12,playingTime:"2019-08-18 08:08:08"},_=15,j=28,W=!1,B=function(){function n(t,e){Object(a.a)(this,n),this.options=Object.assign({},k,e),this.stage=new R.a.Stage({container:t,width:this.options.width,height:this.options.height}),this.options.w=this.options.width/240,this.options.minW=this.options.w;var r=this.options.endTime.diff(this.options.startTime,"day")+1;this.options.size=24*r*10+1,_=this.options.width/2,j=this.options.width/2,this.events={},this.init(),this.bind()}return Object(r.a)(n,[{key:"init",value:function(){this.scale=new D(this.options),this.scale.addTo(this.stage),this.scale.draw(),this.time=new x(this.options),this.time.addTo(this.stage),this.time.draw(),this.record=new G(this.options),this.record.addTo(this.stage)}},{key:"on",value:function(n,t){this.events[n]=t}},{key:"bind",value:function(){var n=this;this.stage.on("wheel",function(t){n.options.canOperate&&(t.evt.deltaY<0?n.options.w=n.options.w+n.options.wSetp:n.options.w=n.options.w-n.options.wSetp,n.options.offset+n.options.w*n.options.allScaleNum<=n.options.width/2&&(n.options.offset=n.options.width/2-n.options.w*n.options.allScaleNum),n.options.w>n.options.maxW?n.options.w=n.options.maxW:n.options.w<n.options.minW&&(n.options.w=n.options.minW),n.playTo(n.options.playingTime))}),this.stage.on("mousedown",function(t){if(n.options.canOperate){var e=t.evt.x;n.stage.off("mousemove").on("mousemove",function(t){W=!0;var a=t.evt.x-e;e=t.evt.x,n.options.offset=n.options.offset+a,n._judgeBorder(),n.options.playingTime=N(n.options.width/2,n.options),n.scale.draw(),n.record.draw(),n.time.draw()})}}),this.stage.on("mouseup",function(t){if(n.options.canOperate){if(W)n.events.click&&n.events.click(n.options.playingTime);else{var e=n.options.width/2-t.evt.offsetX;n.options.offset+=e;var a=N(n.options.width/2,n.options);n.events.click&&n.events.click(a),n._judgeBorder(),n.scale.draw(),n.record.draw(),n.time.draw()}W=!1}}),document.addEventListener("mouseup",function(){n.stage.off("mousemove")})}},{key:"_judgeBorder",value:function(){var n=(this.options.size-1)*this.options.w;this.options.offset>_?this.options.offset=_:this.options.offset<this.options.width-n-j&&(this.options.offset=this.options.width-n-j)}},{key:"playTo",value:function(n){if(!W){var t=w(n,this.options)-this.options.width/2;this.options.offset-=t,this.options.playingTime=n,this.scale.draw(),this.record.draw(),this.time.draw()}}},{key:"addRecord",value:function(n,t,e){this.record.addRecord(n,t,e)}},{key:"drawRecord",value:function(n){this.record.draw(n)}},{key:"pause",value:function(){this.options.canOperate=!1,this.time.toggle("hide")}},{key:"start",value:function(){this.options.canOperate=!0,this.time.toggle("show")}},{key:"getOptions",value:function(){return this.options}}]),n}(),U=(e("fwXI"),e("CC+v")),z=e.n(U),H=(e("cUip"),e("iJl9")),Y=e.n(H),Z=(e("hr7U"),e("9xET")),$=e.n(Z),K=(e("7kJ1"),e("qPIi")),Q=e.n(K),X=(e("fv9D"),e("ZPTe")),J=e.n(X),q=(e("MaXC"),e("4IMT")),nn=e.n(q),tn=(e("5Nzg"),e("CgBw")),en=e.n(tn),an=(e("pjuD"),e("rR1Q")),rn=e.n(an),on=(e("tL+A"),e("QpBz")),cn=e.n(on),un=e("fj2L"),fn=e("R+FV"),ln=e("a61M"),sn=e("8gbx"),dn=e("4Gn2"),pn=(e("jcbi"),e("rGIM")),gn=y.a.ColumnHeader,hn=y.a.ListData,mn={updateShowDownload:un.Z,updateDownloading:un.I,updateDownloadList:un.H,updateLeftCount:un.N,downloadEncrypt:un.a},Cn=function(n){function t(n){var e;Object(a.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).path2name=function(n){var t=n.FilePath.match(/(\/[^/]*)/g).pop().slice(1);return t.substring(0,t.lastIndexOf("."))+"_ch"+(n.Channel+1)},e.selectDirectory=function(){sn.a.SelectDirectory()},e.startDownloadByH5=function(){var n=e.state.supportDownloadEncrypt,t=Object(p.a)({},e.props),a=t.updateDownloading,r=t.updateDownloadList,o=(t.updateLeftCount,t.Playback.downloadList),i=(t.$t,Object(fn.h)(o)),c=i.length,f=Object(u.a)(Object(u.a)(e));f.index=0;!function t(e){if(void 0===e)return f.state.isShowDelete?(f.timer=setInterval(function(){f.index===c&&(clearInterval(f.timer),a(!1))},500),void r([])):(r([]),void a(!1));var o=n?"/RPC_Encrypt_Loadfile":"/RPC_Loadfile",u=window.location.origin+o+e.FilePath;setTimeout(function(){if(function(n,t){var e=document.createElement("a");e.href=t,e.download="",document.body.appendChild(e),e.click(),setTimeout(function(){document.body.removeChild(e)},1e3)}(0,u),a(!0),t(i.shift()),r(i),f.state.isShowDelete){var n=new XMLHttpRequest;n.open("GET","".concat(o).concat(e.FilePath),!0),n.addEventListener("progress",function(n){n.lengthComputable&&1===n.loaded/n.total&&(f.index+=1)},!1),n.send()}},1e3)}(i.shift())},e.downLoadeByA=function(n){if(e.state.isShowDelete){var t=e.state.supportDownloadEncrypt,a=Object(p.a)({},e.props).updateDownloading,r=new XMLHttpRequest,o=t?"/RPC_Encrypt_Loadfile":"/RPC_Loadfile";r.open("GET","".concat(o).concat(n),!0),a(!0),r.addEventListener("progress",function(n){n.lengthComputable&&(1===n.loaded/n.total&&a(!1))},!1),r.send()}},e.startDownload2=function(){var n=Object(p.a)({},e.props),t=n.updateDownloading,a=n.updateDownloadList,r=n.updateLeftCount,o=n.Playback.downloadList,i=n.$t,c=(e.state.dir,[]),u=Object(fn.h)(o);if(u.length>5)cn.a.warn(i("com.recordMaxLimit"));else for(var f=u.shift();f;){var s=Object(fn.h)(f);t(!0),e.setState({downloads:c}),sn.a.downloadOneVideoFile(JSON.stringify(s),e.path2name(s),"dav").then(function(n){c.push(n),e.timer=setInterval(function(){var n=Object(fn.h)(c),u=n.length;n.forEach(function(n,c){sn.a.GetDownoadProgress(n).then(function(n){n<1e3?o[c].progress=parseInt(n/10):r(--u),a(o),0===u&&(a([]),clearInterval(e.timer),t(!1),rn.a.open({message:i("com.RecordDownloaded"),icon:l.a.createElement(m.f,{type:"check-circle",theme:"twoTone",twoToneColor:"#52c41a"})}))})})},2e3)}).catch(function(n){}),f=u.shift()}},e.startDownload3=function(){if("h5"===sn.a.playMode)return e.startDownloadByH5(),!1;var n=Object(p.a)({},e.props),t=n.updateDownloading,a=n.updateDownloadList,r=(n.updateLeftCount,n.Playback.downloadList),o=n.$t,i=e.state;i.downloadFormat,i.dir;if(r&&r.length){r.map(function(n,t){n.progress=0}),a(r);var c=Object(fn.h)(r),u=0,f=Promise.resolve();t(!0);for(var s=function(){var n=c.shift();f=f.then(function(){return e.downLoade(n,u++)})};c.length>0;)s();f.then(function(){t(!1),a([]),rn.a.open({message:o("com.RecordDownloaded"),icon:l.a.createElement(m.f,{type:"check-circle",theme:"twoTone",twoToneColor:"#52c41a"})})})}},e.downLoade=function(n,t){var a=e.state,r=a.downloadFormat,o=(a.dir,a.supportDownloadEncrypt),i=Object(p.a)({},e.props),c=(i.updateDownloading,i.updateDownloadList),u=(i.updateLeftCount,i.Playback.downloadList);i.$t;return new Promise(function(a,i){var f;if("Clips"===n.type){var l=n.StartTime.replace(/[-:\s]/g,"")+"-"+n.EndTime.replace(/[-:\s]/g,"");f=sn.a.clipRemoteVideoFiles(JSON.stringify(n.clipsArr),n.StartTime,n.EndTime,l,r)}else f=o?sn.a.DownloadOneVideoFileByCGIKms(sn.a.deviceID,n.FilePath,e.path2name(n),r):sn.a.downloadOneVideoFileByCGI(n.FilePath,e.path2name(n),r);f.then(function(n){e.curDownFileId=n,e.timer=setInterval(function(){sn.a.GetDownoadProgress(n).then(function(n){var r=Math.abs(n);r<1e3?(u[t].progress=parseInt(r/10),c(u)):(clearInterval(e.timer),u[t].progress=100,c(u),a())}).catch(function(n){})},2e3)}).catch(function(n){a()})})},e.clearDownload3=function(){var n=e.props,t=n.updateDownloading,a=n.updateDownloadList,r=n.Playback.downloadList;n.$t;sn.a.StopDownload(e.curDownFileId||0),clearInterval(e.timer),t(!1),a(r=r&&r.filter(function(n,t){return 100!==n.progress})),e.setState({downloads:[]})},e.startDownload=function(){var n=Object(p.a)({},e.props),t=n.updateDownloading,a=n.updateDownloadList,r=(n.updateLeftCount,n.Playback.downloadList),o=n.$t,i=e.state,c=i.downloadFormat,u=(i.dir,[]),f=[],s=Object(fn.h)(r),d=s.shift();for(e.setState({downloads:u});d;){var g=Object(fn.h)(d);if("Clips"===g.type){var h=g.StartTime.replace(/[-:\s]/g,"")+"-"+g.EndTime.replace(/[-:\s]/g,""),C=sn.a.clipRemoteVideoFiles(JSON.stringify(g.clipsArr),g.StartTime,g.EndTime,h,c);f.push(C)}else{var S=sn.a.downloadOneVideoFile(JSON.stringify(g),e.path2name(g),c);f.push(S)}d=s.shift()}Promise.all(f).then(function(n){u=Object(fn.h)(n),t(!0),e.setState({downloads:u}),e.timer=setInterval(function(){var n=Object(fn.h)(e.props.Playback.downloadList),r=Object(fn.h)(e.state.downloads);n.length;r.forEach(function(r,i){sn.a.GetDownoadProgress(r).then(function(r){var c=Math.abs(r);c<1e3?(n[i].progress=parseInt(c/10),a(n)):(clearInterval(e.timer),0===s.length?(a([]),t(!1),rn.a.open({message:o("com.RecordDownloaded"),icon:l.a.createElement(m.f,{type:"check-circle",theme:"twoTone",twoToneColor:"#52c41a"})})):d=s.shift())}).catch(function(){clearInterval(e.timer)})})},3e3)}).catch(function(n){})},e.clearDownload=function(){var n=e.props,t=n.updateDownloading,a=n.updateDownloadList;sn.a.StopDownload(),clearInterval(e.timer),t(!1),a([]),e.setState({downloads:[]})},e.handleAfterClose=function(){var n=e.props.afterClose;dn.a.publish("videoToggle",!1),n()},e.onChangeFormat=function(n){if("h5"===sn.a.playMode)return sn.a.ShowHightOCXTip(),!1;e.setState({downloadFormat:n.target.value})};var r=n.$t;return e.eventMap={Timing:r("sys.Timing"),Manual:r("com.Manual"),Event:r("com.Event"),Clips:r("med.VideoCut")},e.state={downloads:[],tableSource:[],dir:"",dirKey:"",downloadFormat:"dav",isShowDelete:!1,supportDownloadEncrypt:!1},e.index=0,e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentWillUnmount",value:function(){sn.a.addEvent("DirectorySelected",null)}},{key:"componentDidMount",value:function(){var n=this;sn.a.addEvent("DirectorySelected",function(t){t&&(n.setState({dir:t}),sn.a.setStoragePath(n.state.dirKey,t))}),pn.default.get("PD").then(function(t){var e=t.IsSupportRemovePicOrVideo,a=t.SupportDownloadEncrypt;n.setState({isShowDelete:!!e,supportDownloadEncrypt:!!a})})}},{key:"componentWillReceiveProps",value:function(n){var t=this;if(this.props.Playback.orShowDownload!==n.Playback.orShowDownload&&!0===n.Playback.orShowDownload&&sn.a.addEvent("DirectorySelected",function(n){n&&(t.setState({dir:n}),sn.a.setStoragePath(t.state.dirKey,n))}),"ocx"===sn.a.playMode){var e=n.Playback.downloadList;if(0===e.length)return;e[0].type?sn.a.getStoragePath("VideoClips").then(function(n){t.setState({dir:n,dirKey:"VideoClips"})}):sn.a.getStoragePath("PlaybackRecord").then(function(n){t.setState({dir:n,dirKey:"PlaybackRecord"})})}}},{key:"onChangeVisible",value:function(n){(0,this.props.updateShowDownload)(n)}},{key:"stopDownload",value:function(n){var t=this.props,e=t.updateDownloading,a=t.updateDownloadList,r=t.updateLeftCount,o=t.Playback,i=o.downloadList,c=o.leftCount,u=Object(fn.h)(this.state.downloads),f=u[n],l=Object(fn.h)(i);100===l[n].progress?(l.splice(n,1),u.splice(n,1),a(l)):(sn.a.StopDownload(f),l.splice(n,1),u.splice(n,1),a(l),c--),this.setState({downloads:u}),c>0?r(c):(clearInterval(this.timer),e(!1))}},{key:"render",value:function(){var n=this,t=this.state.supportDownloadEncrypt,e=this.props,a=e.$t,r=e.Playback,o=r.orShowDownload,i=r.isDownloading,c=r.downloadList,u=r.downloadEncrypt,f=e.webCaps,s=[{title:a("com.Numbers"),align:"center",key:"index",width:"6%"},{title:a("com.Type"),align:"center",key:"Type",width:"10%"},{title:a("sys.StartTime"),align:"center",key:"StartTime",width:"20%"},{title:a("com.EndTime"),align:"center",key:"EndTime",width:"20%"}];i||s.push({title:a("com.TimeLength"),align:"center",key:"TimeLength",width:"15%"}),c[0]&&!c[0].type&&s.push({title:a("com.Size"),align:"center",key:"Size",width:"10%"}),i&&(s.push({title:a("com.Progress"),align:"center",key:"progress",width:"15%"}),"h5"===sn.a.playMode&&s.push({title:a("com.Operation"),align:"center",key:"action",width:"10%"})),"h5"===sn.a.playMode&&s.push({title:a("com.Operation"),align:"center",key:"Operation"});var d=new gn(s);if(d.addOtherColumn("index",function(n,t,e){return e+1}),d.addOtherColumn("Type",function(t,e){return n.eventMap[e.Flags[0]]}),i?d.addOtherColumn("progress",function(n,t){var e="";return e=-1===t.progress?"exception":100===t.progress?"success":"active",l.a.createElement(en.a,{percent:t.progress||0,size:"small",status:e})}):d.addOtherColumn("TimeLength",function(n,t){var e=F()(t.EndTime).diff(F()(t.StartTime),"hour"),a=F()(t.EndTime).diff(F()(t.StartTime),"minute")%60,r=F()(t.EndTime).diff(F()(t.StartTime),"seconds")%60;return(e=e<10?"0"+e:e)+":"+(a=a<10?"0"+a:a)+":"+(r=r<10?"0"+r:r)}),c[0]&&!c[0].type&&d.addOtherColumn("Size",function(n,t){var e=t.Length/1024/1024;return parseInt(10*e)/10+"M"}),"h5"===sn.a.playMode){var p=t?"/RPC_Encrypt_Loadfile":"/RPC_Loadfile";d.addOtherColumn("Operation",function(t,e){return l.a.createElement("a",{target:"_download",href:"".concat(p).concat(e.FilePath),style:{color:"inherit"}},l.a.createElement(m.f,{type:"download",onClick:n.downLoadeByA.bind(n,e.FilePath)}))})}var g=new hn(c).get(),h=d.get(),C=0;c.length&&c.forEach(function(n){C+=n.Length});var S=parseInt(C/1024/1024*10)/10+"M";return l.a.createElement(z.a,{width:"960px",wrapClassName:"record_download",title:a("com.Recdown"),visible:o,onCancel:function(){return n.onChangeVisible(!1)},afterClose:this.handleAfterClose,footer:ln.default.IsSpecialBrowse||i?f.hideH5PlayerV4_0||i?null:l.a.createElement(nn.a,{disabled:0===c.length,onClick:this.startDownloadByH5,type:"primary"},a("com.StartDownload")):l.a.createElement(nn.a,{disabled:0===c.length,onClick:this.startDownload3,type:"primary"},a("com.StartDownload"))},!ln.default.IsSpecialBrowse&&i&&l.a.createElement("div",{className:"record_download-title clearfix fn-margin-bottom10"},l.a.createElement("div",{className:"record_download-title-right"},l.a.createElement(nn.a,{onClick:this.clearDownload3},a("com.StopAll")))),l.a.createElement(y.a,{className:"download-list",dataSource:g,columns:h,scroll:{y:250},pagination:!1}),!f.hideH5PlayerV4_0&&c[0]&&!c[0].type&&l.a.createElement("div",{className:"item-list fn-margin-bottom10 fn-margin-top10"},a("com.Size"),S),!ln.default.IsSpecialBrowse&&!i&&l.a.createElement(l.a.Fragment,null,!!f.hideH5PlayerV4_0&&c[0]&&!c[0].type&&l.a.createElement("div",{className:"item-list fn-margin-bottom10 fn-margin-top10"},a("com.Size"),S),l.a.createElement("div",{className:"saveplace item-list fn-margin-bottom10"},l.a.createElement($.a,null,l.a.createElement(J.a,{span:3},a("com.DownLoadFormat")),l.a.createElement(J.a,{span:21},l.a.createElement(Q.a.Group,{onChange:this.onChangeFormat,value:this.state.downloadFormat},l.a.createElement(Q.a,{value:"dav",disabled:t&&u.Enable},"dav"),(!t||!u.Enable)&&l.a.createElement(Q.a,{value:"mp4"},"mp4")))),l.a.createElement($.a,null,l.a.createElement(J.a,{span:3},a("com.Savepath")),l.a.createElement(J.a,{span:21},l.a.createElement(Y.a,{disabled:!0,value:this.state.dir,className:"saveplace-input fn-margin-right10"}),l.a.createElement(nn.a,{onClick:this.selectDirectory},a("com.Scan")+"..."))))))}}]),t}(f.Component),Sn=Object(s.b)(function(n){return{Playback:n.Playback,publicState:n.publicState,webCaps:n.webCaps}},mn,null,{forwardRef:!0})(Object(d.a)(Cn)),vn=e("XK3+"),bn=(e("VS8+"),73),yn=function(n){function t(n){var e;return Object(a.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).handleMouseMove=function(n){var t=e.props.timelineOptions.width;if(e.start){var a=Object(vn.a)(e.props.timelineOptions.startTime,e.props.timelineOptions),r=n.clientX-e.start;e.start=n.clientX;var o=e.state.left+r;o<=a&&(o=a),o+e.state.width>=t-e.state.rightBtnsLength&&(o=t-e.state.rightBtnsLength-e.state.width),e.setState({left:o<0?0:o}),e.resetTime(e.props)}},e.handleMouseMoveLeft=function(n){var t=e.props.timelineOptions.width;if(e.start){var a=Object(vn.a)(e.props.timelineOptions.startTime,e.props.timelineOptions),r=n.clientX-e.start;e.start=n.clientX;var o=e.state.left+r,i=e.state.width-r;if(o<a)return;if(o<=0)return;o+e.state.width>=t&&(o=t-e.state.width),o+i>=t-e.state.rightBtnsLength&&(i=t-e.state.rightBtnsLength-o),i=i<0?0:i;var c=Object(p.a)({},e.state.leftBarStyle);c.left=i<bn?-30-(bn-i):-30,e.setState({left:o,width:i,leftBarStyle:c,leftBorderzIndex:1001,rightBorderzIndex:1}),e.resetTime(e.props)}},e.handleMouseMoveRight=function(n){var t=e.props.timelineOptions.width;if(e.start){var a=Object(vn.a)(e.props.timelineOptions.startTime,e.props.timelineOptions),r=n.clientX-e.start;e.start=n.clientX;var o=e.state.left+r,i=e.state.width+r;o<=a&&(o=a),i+o>t-e.state.rightBtnsLength&&(i=t-e.state.rightBtnsLength-o),i=i<0?0:i;var c=Object(p.a)({},e.state.rightBarStyle);c.right=i<bn?-30-(bn-i):-30,e.setState({width:i,rightBarStyle:c,leftBorderzIndex:1,rightBorderzIndex:1001}),e.resetTime(e.props)}},e.changeStartTime=function(n){e.setState({startTime:n})},e.changeEndTime=function(n){e.setState({endTime:n})},e.onClipsDownload=function(){var n=e.props,t=n.onDownloadByTime,a=n.$t,r=e.state,o=r.startTime,i=r.endTime;if(o>=i)return cn.a.error(a("com.BeginTLessThanEndTTip"));t(o,i)},e.onCancle=function(){(0,e.props.onCancle)()},e.state={orBind:!1,left:600,width:200,startTime:"",endTime:"",rightBtnsLength:155,leftBarStyle:{left:-30,top:-40,transformOrigin:"50% 38px"},rightBarStyle:{left:"auto",top:-40,right:-30,transformOrigin:"50% 38px"},leftBorderzIndex:1,rightBorderzIndex:1},e.downloadBox=l.a.createRef(),e.start=null,e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.init()}},{key:"bind",value:function(n){var t=this;n.addEventListener("mousedown",function(n){t.start=n.clientX;var e=n.target.getAttribute("class")||n.target.parentNode.getAttribute("class");"download-range"===e?document.addEventListener("mousemove",t.handleMouseMove):"left-border"===e?document.addEventListener("mousemove",t.handleMouseMoveLeft):"right-border"===e&&document.addEventListener("mousemove",t.handleMouseMoveRight)}),document.addEventListener("mouseup",function(){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mousemove",t.handleMouseMoveLeft),document.removeEventListener("mousemove",t.handleMouseMoveRight)}),this.setState({orBind:!0})}},{key:"init",value:function(){var n=this.downloadBox.current;n&&this.state.orBind&&(this.setState({orBind:!0}),this.bind(n))}},{key:"componentWillReceiveProps",value:function(n){if(n.visible){var t=this.downloadBox.current;this.bind(t),this.resetTime(n)}}},{key:"resetTime",value:function(n){var t=Object(vn.b)(this.state.left,n.timelineOptions),e=Object(vn.b)(this.state.left+this.state.width,n.timelineOptions);this.setState({startTime:t,endTime:e})}},{key:"render",value:function(){var n=this.props,t=n.visible,e=n.$t;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"download-box",ref:this.downloadBox,style:{left:this.state.left,width:this.state.width,display:t?"block":"none"}},l.a.createElement("div",{style:{zIndex:this.state.leftBorderzIndex},className:"left-border"},l.a.createElement("span",null)),l.a.createElement("div",{style:{zIndex:this.state.rightBorderzIndex},className:"right-border"},l.a.createElement("span",null)),l.a.createElement("div",{className:"download-range"}),l.a.createElement(En,{style:this.state.leftBarStyle},l.a.createElement(Tn,{time:this.state.startTime,changeStartTime:this.changeStartTime})),l.a.createElement(En,{style:this.state.rightBarStyle},l.a.createElement(Tn,{time:this.state.endTime,changeEndTime:this.changeEndTime})),l.a.createElement("div",{className:"handle"},l.a.createElement(nn.a,{onClick:this.onClipsDownload,className:"download-save",style:{left:this.state.width+10}},e("com.Ok")),l.a.createElement(nn.a,{onClick:this.onCancle,className:"download-cancle",style:{left:this.state.width+20}},e("com.Cancel")))))}}]),t}(f.Component),En=function(n){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(c.a)(t,n),Object(r.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ant-popover ant-popover-placement-top",style:this.props.style},l.a.createElement("div",{className:"ant-popover-content"},l.a.createElement("div",{className:"ant-popover-arrow"}),l.a.createElement("div",{className:"ant-popover-inner",role:"tooltip"},l.a.createElement("div",null,l.a.createElement("div",{className:"ant-popover-inner-content"},this.props.children)))))}}]),t}(f.PureComponent),Tn=function(n){function t(n){var e;return Object(a.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).state={time:"",hour:"",minute:"",second:""},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentWillReceiveProps",value:function(n){if(n.time!==this.state.time){var t=n.time.split(" ")[1].split(":");this.setState({time:n.time,hour:t[0],minute:t[1],second:t[2]})}}},{key:"handleChange",value:function(n,t){isNaN(Number(t))&&(t=0),t.length>2?t=t.substr(0,2):1===t.length&&(t="0"+t),this.setState(Object(M.a)({},n,t))}},{key:"render",value:function(){var n=this,t=this.state,e=t.hour,a=t.minute,r=t.second;return l.a.createElement("div",null,l.a.createElement("input",{type:"text",value:e,disabled:!0,onChange:function(t){return n.handleChange("hour",t.target.value)}}),":",l.a.createElement("input",{type:"text",value:a,disabled:!0,onChange:function(t){return n.handleChange("minute",t.target.value)}}),":",l.a.createElement("input",{type:"text",value:r,disabled:!0,onChange:function(t){return n.handleChange("second",t.target.value)}}))}}]),t}(f.Component),Mn=Object(d.a)(yn),An=e("qkdH"),In=function(n){function t(){var n,e;Object(a.a)(this,t);for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return(e=Object(o.a)(this,(n=Object(i.a)(t)).call.apply(n,[this].concat(c)))).state={},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentDidMount",value:function(){var n=this.ref;An.a.create(n,Object(p.a)({},this.props))}},{key:"render",value:function(){var n=this,t=this.props.className;return l.a.createElement("div",{id:"_sortable_",ref:function(t){return n.ref=t},className:t},this.props.children)}}]),t}(l.a.Component),On=(e("/xgg"),e("aOJk")),Pn=e.n(On),Rn=(e("93XW"),e("d1El")),Ln=e.n(Rn),Dn=function(n){function t(n){var e;return Object(a.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).visibleChange=function(n){if(e.state.manualOpen&&!n)return!1;e.setState({visible:n})},e.setVisible=function(n){e.setState({visible:n,manualOpen:n})},e.state={visible:!1,manualOpen:!1},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"render",value:function(){var n=this.props,t=n.$t,e=n.currentChannel,a=n.currentPtzName,r=n.currentPtzId,o=n.mode,i=void 0===o?"ivs":o;if(!1===ln.default.PtzControlChannel[i].includes(e))return!1;var c=ln.default.ChannelPTZCaps[e]||{Zoom:!1,Focus:!1,Iris:!1,UnSupportDirections:[]},u=["up","down","left","right","leftup","rightup","leftdown","rightdown"];c.UnSupportDirections&&c.UnSupportDirections.length>0&&c.UnSupportDirections.map(function(n){u.includes(n.toLowerCase())&&u.splice(u.indexOf(n.toLowerCase()),1)});var f={plugin:sn.a,currentChannel:e,currentPtzId:r,currentPtzName:a,showZoom:!1!==c.Zoom,showFocus:!1!==c.Focus,showIris:!1!==c.Iris,showSavePreset:r<1e3&&r>0&&ln.default.AuthorityList.AuthPTZ,hideFastPostion:!0,supportDirections:u};return l.a.createElement(l.a.Fragment,null,l.a.createElement(Pn.a,{placement:"rightBottom",content:l.a.createElement(m.w,f),trigger:"click",visible:this.state.visible,onVisibleChange:this.visibleChange},l.a.createElement(Ln.a,{placement:"right",title:t("com.PtzControl")},l.a.createElement(m.f,{type:"ptzControl"}))))}}]),t}(l.a.Component),Vn=Object(d.a)(Dn);e.d(t,"BaseLine",function(){return b}),e.d(t,"Table",function(){return y.a}),e.d(t,"MutiControlTabel",function(){return O}),e.d(t,"Timeline",function(){return B}),e.d(t,"Download",function(){return Sn}),e.d(t,"DownloadBar",function(){return Mn}),e.d(t,"Sortable",function(){return In}),e.d(t,"PtzControl",function(){return Vn})},hOHL:function(n,t,e){"use strict";e.r(t),e.d(t,"updateOperateLibraryData",function(){return p}),e.d(t,"updateOperateLibraryGroupList",function(){return g}),e.d(t,"updateOperateLibraryPersonList",function(){return h}),e.d(t,"updateOperateLibraryPageIndex",function(){return m}),e.d(t,"updateOperateLibraryCurMode",function(){return C}),e.d(t,"updateOperateLibraryAbstractProcess",function(){return S}),e.d(t,"updateOperateLibraryImportStep",function(){return v}),e.d(t,"init",function(){return b}),e.d(t,"setGroup",function(){return y}),e.d(t,"modifyGroup",function(){return E}),e.d(t,"addGroup",function(){return T}),e.d(t,"deleteGroup",function(){return M}),e.d(t,"startSearchPerson",function(){return I}),e.d(t,"searchPersonByPage",function(){return O}),e.d(t,"changeCurMode",function(){return P}),e.d(t,"deletePerson",function(){return R}),e.d(t,"startAbstract",function(){return L}),e.d(t,"startImport",function(){return D});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("DjBF"),u=e("5m7x"),f=e("tZYx"),l=e("mDNY"),s=e("R+FV"),d=e("8gbx");function p(n){return{type:u.c,data:n}}function g(n){return{type:u.d,data:n}}function h(n){return{type:u.f,data:n}}function m(n){return{type:u.f,data:n}}function C(n){return{type:u.f,data:n}}function S(n){return{type:u.a,data:n}}function v(n){return{type:u.e,data:n}}var b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"list";return function(t,e,a,r){var o=[f.a.WorkSuitCompareServer.getGroupSpaceInfo(),f.a.WorkSuitCompareServer.findGroup()],i=0;Promise.all(o).then(function(e){var r=Object(c.a)(e,2),o=r[0],u=r[1];if(u.forEach(function(n){i+=n.GroupSize}),"getCount"===n)return t(p({allPeopleCount:i,GroupList:u})),a();t(p({SpaceInfo:o,GroupList:u,allPeopleCount:i,isInit:!0,curMode:n,totalCount:-1})),a()})}},y=function(n,t){return function(e,a,r,o){f.a.WorkSuitCompareServer.setGroup(n,t).then(function(){r()}).catch(function(n){o(n)})}},E=function(n,t){return function(e,a,r,o){var c=[],u=a().OperateLibrary.channel;if(Object.keys(t).includes("Channels")){var l=[];-1!==t.Channels[u]&&l.push({GroupID:n}),delete t.Channels,c.push(f.a.WorkSuitCompareServer.setGroup(l,u))}Object.keys(t).length&&c.push(f.a.WorkSuitCompareServer.modifyGroup(Object(i.a)({GroupID:n},t))),Promise.all(c).then(function(){r()}).catch(function(){o()}).finally(function(){f.a.WorkSuitCompareServer.findGroup().then(function(n){e(g(n))})})}},T=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,u){var l;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,f.a.WorkSuitCompareServer.createGroup(n,t,"BlackListDB","",e).catch(function(){u()});case 2:return a.next=4,f.a.WorkSuitCompareServer.findGroup().catch(function(){u()});case 4:l=a.sent,o(g(l)),c();case 7:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},M=function(n){return function(t,e,a,r){f.a.WorkSuitCompareServer.deleteGroup(n).then(function(){var r=e().OperateLibrary.GroupList,o=-1;r.forEach(function(t,e){t.GroupID===n&&(o=e)}),r.splice(o,1),t(g(r)),a()}).catch(function(n){r(n)})}},A=-1,I=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var u,l,s,d,g,h;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=o(),l=u.OperateLibrary.pageSize,s=[],d=0,e.next=5,f.a.WorkSuitCompareServer.startFind({GroupID:[n]},t).catch(function(n){return!1});case 5:if(!(g=e.sent)){e.next=13;break}if(A=g.Token,!g.TotalCount){e.next=13;break}return e.next=11,f.a.WorkSuitCompareServer.doFind(A,l,0).catch(function(n){return!1});case 11:(h=e.sent)&&h.Candidates&&h.Candidates.length&&(s=h.Candidates,d=g.TotalCount);case 13:a(p({personList:s,totalCount:d,pageIndex:1})),d?i():c();case 15:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},O=function(n){return function(t,e,a,r){var o=e().OperateLibrary.pageSize;f.a.WorkSuitCompareServer.doFind(A,o,(n-1)*o).then(function(e){e.Candidates&&e.Candidates.length&&t(p({personList:e.Candidates,pageIndex:n})),a()}).catch(function(n){r(n)})}},P=function(n,t){return function(e,a,r,o){e(p({curMode:n,detailGroupInfo:t}))}},R=function(n){return function(t,e,a,r){f.a.WorkSuitCompareServer.deleteByUID(n).then(function(){a()}).catch(function(){r()})}},L=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var u,d,g,h,m,C,v;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=0,d=o(),g=d.webCaps,h=function n(t){if("WorkSuitFeatureAbstract"===t.eventList[0].Code&&t.SID===u){var e=t.eventList[0].Data.Infos[0];100===e.Process?(a(p({abstractProcess:100,abstractResult:{SucceedCnt:e.SucceedCnt,FailedCnt:e.FailedCnt}})),f.a.EventManager.detach(u,["WorkSuitFeatureAbstract"]),s.o.devNotify.detach("client.notifyEventStream",n)):a(S(e.Process))}},s.o.devNotify.initComet(Object(l.c)(),g.support_HttpOnly),s.o.devNotify.subscribe("client.notifyEventStream",h),m=[f.a.EventManager.attach(["WorkSuitFeatureAbstract"])],"Single"===n&&m.push(f.a.WorkSuitCompareServer.getAppendToken()),e.next=9,Promise.all(m).catch(function(){return s.o.devNotify.detach("client.notifyEventStream",h),!1});case 9:if(!(C=e.sent)){e.next=24;break}if(u=C[0].SID,v=!1,"Single"!==n){e.next=19;break}return e.next=16,f.a.WorkSuitCompareServer.reAbstract(t,C[1]).catch(function(){return!1});case 16:v=e.sent,e.next=23;break;case 19:if("All"!==n){e.next=23;break}return e.next=22,f.a.WorkSuitCompareServer.groupReAbstract(t).catch(function(){return!1});case 22:v=e.sent;case 23:v?i():(a(S(-1)),c());case 24:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},D=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(i,c,u,g){var h,m,C,S,b,y,E,T;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return h=0,m=c(),C=m.webCaps,S=function n(t){if("WorkSuitFeatureAbstract"===t.eventList[0].Code&&t.SID===h){var e=t.eventList[0].Data.Infos[0];if(i(p({abstractProcess:e.Process,abstractResult:{SucceedCnt:e.SucceedCnt,FailedCnt:e.FailedCnt},failList:(e.FailedSourceFileNames||[]).map(function(n){return{FileName:n}})})),100===e.Process)if(c().OperateLibrary.pluginAddFinish){f.a.EventManager.detach(h,["WorkSuitFeatureAbstract"]),s.o.devNotify.detach("client.notifyEventStream",n);i(p({importStep:"finish"}))}}},b=function(){f.a.EventManager.detach(h,["WorkSuitFeatureAbstract"]),s.o.devNotify.detach("client.notifyEventStream",S)},a.next=6,f.a.WorkSuitCompareServer.getAppendToken().catch(function(){return{Token:0}});case 6:if(y=a.sent,!(E=y.Token)){a.next=24;break}return s.o.devNotify.initComet(Object(l.c)(),C.support_HttpOnly),s.o.devNotify.subscribe("client.notifyEventStream",S),a.next=13,f.a.EventManager.attach(["WorkSuitFeatureAbstract"]);case 13:if(T=a.sent,h=T.SID,"h5"!==d.a.playMode){a.next=19;break}Object(o.a)(r.a.mark(function a(){var o,i,c;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:o=r.a.mark(function e(){var a,o;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=c[i],o={GroupID:n,GroupName:t,SourceFileName:a.name,Image:{Offset:0,Length:a.size}},e.next=4,f.a.WorkSuitCompareServer.multiAppend([o],{Token:E},a).then(function(){d.a.fireEvent("WorkSuitInfoRegister",["",0,a.name])}).catch(function(n){d.a.fireEvent("WorkSuitInfoRegister",["",n.error.code,a.name])});case 4:case"end":return e.stop()}},e)}),i=0,c=Object.values(e);case 2:if(!(i<c.length)){a.next=7;break}return a.delegateYield(o(),"t0",4);case 4:i++,a.next=2;break;case 7:case"end":return a.stop()}},a)}))(),a.next=22;break;case 19:return a.next=21,d.a.SetWorkSuitDBToken(E);case 21:d.a.StartWorkSuitBatchRegister(JSON.stringify({GroupID:n,GroupName:t}));case 22:i(v("importing")),u(b);case 24:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()}},hiTX:function(n,t,e){"use strict";e("zmYW");var a=e("DtFj"),r=e.n(a),o=e("PK3Q"),i=e("Q5Ww"),c=e("00an"),u=e("a1D8"),f=e("upjz"),l=e("2bPg"),s=e("BRlI"),d=e("eA3y"),p=(e("hr7U"),e("9xET")),g=e.n(p),h=(e("TxAo"),e("s4l/")),m=e.n(h),C=(e("fv9D"),e("ZPTe")),S=e.n(C),v=e("q1tI"),b=e.n(v),y=e("i8i4"),E=e.n(y),T=(e("Kfkz"),function(n){function t(){return Object(l.a)(this,t),Object(o.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(c.a)(t,n),Object(s.a)(t,[{key:"render",value:function(){var n=this.props,t=n.total,e=void 0===t?0:t,a=n.$t;return b.a.createElement(g.a,{className:"bottom-pagination"},b.a.createElement(S.a,{span:6},e+" "+a("ivs.ListRecords")),b.a.createElement(S.a,{span:18},b.a.createElement(m.a,Object.assign({className:"ant-table-pagination"},this.props))))}}]),t}(v.Component)),M=function(n){function t(n){var e;return Object(l.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).call(this,n))).el=document.createElement("div"),e}return Object(c.a)(t,n),Object(s.a)(t,[{key:"componentDidMount",value:function(){var n=this.props.getContainer;n&&n().appendChild(this.el)}},{key:"render",value:function(){return this.props.getContainer?E.a.createPortal(b.a.createElement(T,this.props),this.el):b.a.createElement(T,this.props)}}]),t}(v.Component),A=e("zTcL"),I=(e("NRwH"),function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;Object(l.a)(this,n),this.key=t,this.data=[],this.listData=e,this.transform=a,this.init()}return Object(s.a)(n,[{key:"init",value:function(){var n=this;this.data.forEach(function(n,t){n.key||(n.key=t)}),this.listData.forEach(function(t){n.data.push(t[n.key])})}},{key:"getFilters",value:function(){var n=this;return Object(f.a)(new Set(this.data)).map(function(t){return t+="",{text:n.transform?n.transform(t):t,value:t}})}},{key:"getOnFilter",value:function(n,t){return 0===(t[this.key]+"").indexOf(n)}}]),n}()),O=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(l.a)(this,n),this.data=t,this.addKey()}return Object(s.a)(n,[{key:"addKey",value:function(){this.data.forEach(function(n,t){n.key=t})}},{key:"get",value:function(){return this.data}}]),n}(),P=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(l.a)(this,n),this.columns=t,this.filterList=[],this.otherColumnList=[]}return Object(s.a)(n,[{key:"addKeys",value:function(){this.columns.forEach(function(n,t){n.key||(n.key=t+1),n.dataIndex=n.key})}},{key:"addFilter",value:function(n,t,e){this.filterList.push(new I(n,t,e))}},{key:"renderFilters",value:function(){var n=this;this.columns=this.columns.map(function(t){var e=n.filterList.find(function(n){return n.key===t.key});return e?Object(u.a)({filterIcon:function(){return b.a.createElement(d.f,{type:"caret-down"})},filters:e.getFilters(),onFilter:e.getOnFilter.bind(e)},t):t})}},{key:"addOtherColumn",value:function(n,t,e){for(var a=this.columns,r=0;r<a.length;r++)if(a[r].key===n)return void(a[r]=Object(u.a)({key:n,render:t},a[r]));this.columns.push({key:n,render:t,title:e})}},{key:"get",value:function(){return this.addKeys(),this.renderFilters(),this.columns}}]),n}(),R=function(n){function t(){return Object(l.a)(this,t),Object(o.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(c.a)(t,n),Object(s.a)(t,[{key:"render",value:function(){var n=this.props,t=n.visible,e=void 0===t||t,a=n.width,r=n.title,o=n.onClose;return b.a.createElement("aside",{className:"drawer-content-wrapper",style:{width:e?a:0}},e?b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:"drawer-header"},b.a.createElement("div",{className:"drawer-title"},r),b.a.createElement(d.f,{onClick:o,type:"close",className:"drawer-close"})),b.a.createElement("div",{className:"drawer-body"},this.props.children)):"")}}]),t}(v.Component),L=function(n){function t(){var n,e;Object(l.a)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(e=Object(o.a)(this,(n=Object(i.a)(t)).call.apply(n,[this].concat(r)))).state={},e}return Object(c.a)(t,n),Object(s.a)(t,[{key:"render",value:function(){var n={title:"MyDrawer",width:"256px",visible:!0,onClose:new Function,render:""},t={current:0,total:0,pageSize:0,showQuickJumper:!0,onChange:new Function,hideOnSinglePage:!0},e=this.props,a=e.columns,o=void 0===a?[]:a,i=e.bordered,c=void 0!==i&&i,u=e.noBorderLR,f=void 0!==u&&u,l=e.noBoderTop,s=void 0!==l&&l,d=e.drawer,p=void 0===d?n:d,g=e.pagination,h=void 0===g?t:g,m=e.height,C=void 0===m?"":m,S=e.dataSource,v=void 0===S?[]:S;return b.a.createElement("div",{className:"MyTable"+(s?" noBoderTop":""),style:{height:C}},p!==n?b.a.createElement(R,p,p.render?p.render:"\u8fd9\u91cc\u662f\u5185\u5bb9"):"",b.a.createElement(r.a,Object.assign({},this.props,{className:f?"noBorderLR":"",bordered:c,dataSource:v,columns:o,pagination:!1})),h.total?b.a.createElement(M,Object.assign({},h,this.props)):"")}}]),t}(v.Component),D=Object(A.a)(L);D.ColumnHeader=P,D.ListData=O;t.a=D},"i/zi":function(n,t,e){"use strict";e.d(t,"n",function(){return c}),e.d(t,"m",function(){return u}),e.d(t,"d",function(){return f}),e.d(t,"i",function(){return l}),e.d(t,"b",function(){return s}),e.d(t,"g",function(){return d}),e.d(t,"k",function(){return p}),e.d(t,"e",function(){return g}),e.d(t,"c",function(){return h}),e.d(t,"j",function(){return m}),e.d(t,"a",function(){return C}),e.d(t,"h",function(){return S}),e.d(t,"f",function(){return v}),e.d(t,"l",function(){return b});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("H//Q"),i=e("tZYx"),c=(e("rGIM"),function(n){return{type:o.c,data:n}}),u=function(n){return{type:o.a,data:n}},f=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.getConfig("MapPara").then(function(e){t(u(e)),n&&r.a.success(o("com.Operateingsuccess")),a(e)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},l=function(n,t){return function(e,a,o){var c=a().publicState.$t;i.a.ConfigManager.setConfig("MapPara",n).then(function(){t&&r.a.success(c("com.Operateingsuccess")),o()}).catch(function(n){r.a.error(c("com.Operateingfailure"))})}},s=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.getDefault("MapPara").then(function(e){t(u(e)),n&&r.a.success(o("com.OperateingSuccessTip")),a(e)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},d=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.getConfig("VideoWidget").then(function(e){t(c({VideoWidget:e})),n&&r.a.success(o("com.Operateingsuccess")),a(e)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},p=function(n,t){return function(e,a,o){var c=a().publicState.$t;i.a.ConfigManager.setConfig("VideoWidget",n).then(function(){t&&r.a.success(c("com.Operateingsuccess")),o()}).catch(function(n){r.a.error(c("com.Operateingfailure"))})}},g=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.ConfigManager.getConfig("RadarCalibration").then(function(e){t(c({RadarCalibration:e})),n&&r.a.success(o("com.Operateingsuccess")),a(e)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},h=function(n){return function(n,t,e){var a=t().publicState.$t;i.a.ConfigManager.getDefault("RadarCalibration").then(function(t){n(c({RadarCalibration:t})),r.a.success(a("com.OperateingSuccessTip")),e(t)}).catch(function(n){r.a.error(a("com.Operateingfailure"))})}},m=function(n,t){return function(e,a,o){var c=a().publicState.$t;i.a.ConfigManager.setConfig("RadarCalibration",n).then(function(){t||r.a.success(c("com.Operateingsuccess")),o()}).catch(function(n){r.a.error(c("com.Operateingfailure"))})}},C=function(n,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(e,a,c){var u=a().publicState.$t;i.a.RadarAdaptor.calculateRealSize(n,t,0).then(function(n){var t;e((t=n,{type:o.b,data:t})),c(n)}).catch(function(n){r.a.error(u("com.Operateingfailure"))})}},S=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.RadarAdaptor.guideConfigure(n).then(function(n){a(n)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}},v=function(){return function(n,t,e){var a=t().publicState.$t;i.a.RadarAdaptor.getRadarPixelSet().then(function(n){r.a.success(a("com.OperateingSuccessTip")),e(n)}).catch(function(n){r.a.error(a("com.Operateingfailure"))})}},b=function(n){return function(t,e,a){var o=e().publicState.$t;i.a.RadarAdaptor.startRadarCalibration(n).then(function(n){a(n)}).catch(function(n){r.a.error(o("com.Operateingfailure"))})}}},jcbi:function(n,t,e){var a=e("EEMX");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},jyPE:function(n,t,e){"use strict";e.d(t,"g",function(){return u}),e.d(t,"i",function(){return f}),e.d(t,"h",function(){return l}),e.d(t,"j",function(){return s}),e.d(t,"a",function(){return d}),e.d(t,"e",function(){return p}),e.d(t,"b",function(){return g}),e.d(t,"f",function(){return h}),e.d(t,"d",function(){return m}),e.d(t,"c",function(){return C});var a=e("DjBF"),r=e("5VL4"),o=e("tZYx"),i=e("rGIM"),c=e("R+FV");function u(n){return{type:r.c,data:n}}function f(n){return{type:r.e,data:n}}function l(n){return{type:r.d,data:n}}function s(n){return{type:r.g,data:n}}var d=function(){return function(n,t,e,o){var c=t().TrafficOsd,u=c.curChannel,f=c.ClassType;Promise.all([i.default.get("IVSCaps",null,u),i.default.get("PD")]).then(function(t){var o,i=Object(a.a)(t,2),c=i[0],u=i[1],l=c.SupportedScenes[f];if(l.pdTraffic=u[f],"ParkingSpace"===f){var s=u[f],d=s.SupportTrafficGatePicUpload,p=s.SupportTrafficParkingMergePic,g=s.SupportTrafficGateMergePic;d&&d.length&&(l.SupportedRules.TrafficGate.SupportPicUpload=d),l.pdTraffic.SupportMergeOSDRule||(l.pdTraffic.SupportMergeOSDRule=[]),p&&l.pdTraffic.SupportMergeOSDRule.push("TrafficParking"),g&&l.pdTraffic.SupportMergeOSDRule.push("TrafficGate")}"ParkVehicleDetect"===f&&(l.SupportedRules.ParkVehicleDetection.SupportPicUpload=l.SupportedRules.ParkVehicleDetection.SnapTypeSupport),n((o=l,{type:r.a,data:o})),e()})}},p=function(){return function(n,t,e,r){var i=t().TrafficOsd,c=i.curChannel,f=(i.ClassType,i.TemplatePresetImage),l=i.TemplateTrafficSnapMosaic2;Promise.all([o.a.VideoInAnalyse.getTemplatePresetImage({Channel:c}),o.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:c})]).then(function(t){var r=Object(a.a)(t,2),o=r[0],i=r[1];f[c]=o,l[c]=i,n(u({TemplatePresetImage:f,TemplateTrafficSnapMosaic2:l})),e()})}},g=function(){return function(n,t,e,a){var r=t().TrafficOsd.Arraycfg,i={};r=r.concat(["VideoAnalyseRule"]),o.a.ConfigManager.getConfig(r).then(function(t){for(var a=0;a<r.length;a++)i[r[a]]=t[a].params.table;n(u(i)),e()}).catch(function(){a()})}},h=function(n){return function(t,e,a,r){var o=e().TrafficOsd,i=o.SnapOSD,u=o.Arraycfg,f=o.TrafficImage,l=o.TrafficSnapMosaic2,s=[];u.includes("TrafficImage")&&(s[u.indexOf("TrafficImage")]=f),u.includes("TrafficSnapMosaic2")&&(s[u.indexOf("TrafficSnapMosaic2")]=l),s[u.indexOf("SnapOSD")]=i,c.p.setConfig(n,u,s).then(function(){a()}).catch(function(){r()})}},m=function(){return function(n,t,e,a){o.a.ConfigManager.getDefault("SnapOSD").then(function(t){var a;n((a=t,{type:r.f,data:a})),e()}).catch(function(){a()})}},C=function(){return function(n,t,e,a){var r=t().TrafficOsd,i=r.Arraycfg,f=r.TrafficImage,l=r.TrafficSnapMosaic2,s=r.TemplatePresetImage,d=r.TemplateTrafficSnapMosaic2,p=r.allClassID,g={},h={};o.a.ConfigManager.getDefault(i).then(function(a){for(var r=0;r<i.length;r++)g[i[r]]=a[r].params.table;var o=t().TrafficOsd,m=o.SnapOSD,C=o.curChannel,S=o.curPreset,v=o.ClassType,b=o.osdType,y=["OSD","MergeOSD"],E=m[C][S].OSDWithClass,T="NormalSnap";if("MergeOSD"===b&&(T="CombinSnap"),g.SnapOSD&&(g.SnapOSD[C][S].OSDWithClass.forEach(function(n,t){if(n.Class===v)for(var e in n)-1!==y.indexOf(e)&&e!==b||(E[t][e]=n[e])}),h.SnapOSD=m),"IntelliCityMgr"!==v){if(g.TrafficImage&&(f[C].PresetImage.forEach(function(n,t){n.PtzPresetId<=1e3&&n.Images.forEach(function(n,t){p.includes(n.RuleId)&&(n[T]=Object(c.g)(s[C].Images[0][T]))})}),h.TrafficImage=f),g.TrafficSnapMosaic2){var M=0;l[C].forEach(function(n,t){n.PresetID<=1e3&&n.MosaicWithRule.forEach(function(t,e){p.includes(t.RuleId)&&t.RuleType&&(M=Object(c.g)(t.RuleId),n.MosaicWithRule[e]=Object(c.g)(d[C][v][t.RuleType].MosaicWithRule[0]),n.MosaicWithRule[e].RuleId=M)})}),h.TrafficSnapMosaic2=l}}else g.TrafficImage&&(g.TrafficImage[C].PresetImage.forEach(function(n,t){n.Class===v&&n.Images.forEach(function(n,e){f[C].PresetImage[t].Images[e][T]=n[T]})}),h.TrafficImage=f),g.TrafficSnapMosaic2&&(g.TrafficSnapMosaic2[C].forEach(function(n,t){n.Class===v&&(l[C][t]=n)}),h.TrafficSnapMosaic2=l);n(u(h)),e()}).catch(function(){a()})}}},kTT7:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,".custom_muti_menu .ant-dropdown-menu-item:hover {\n  background-color: #e6f7ff;\n}\n.mutidropdown-btn {\n  position: relative;\n  width: 126px;\n  text-align: left;\n}\n.mutidropdown-btn .anticon-down {\n  position: absolute;\n  right: 10px;\n  top: 6px;\n}\n.mutidropdown-btn .mutidropdown-btn-ellipsis {\n  display: block;\n  word-wrap: break-word;\n  word-break: normal;\n  overflow: hidden;\n  -o-text-overflow: ellipsis;\n     text-overflow: ellipsis;\n  white-space: nowrap;\n}\n",""])},kupn:function(n,t,e){n.exports=e.p+"static/media/icon_splice_figure.14893bda.png"},kyWw:function(n,t,e){n.exports=e.p+"static/media/time.55448e76.png"},"l3/l":function(n,t,e){var a=e("YjH1");"string"===typeof a&&(a=[[n.i,a,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(a,r);a.locals&&(n.exports=a.locals)},lMdh:function(n,t,e){n.exports=e.p+"static/media/yuntai_bg_2.7427e25b.png"},lfV0:function(n,t,e){"use strict";e.d(t,"e",function(){return c}),e.d(t,"g",function(){return u}),e.d(t,"h",function(){return f}),e.d(t,"c",function(){return l}),e.d(t,"b",function(){return s}),e.d(t,"f",function(){return d}),e.d(t,"d",function(){return p}),e.d(t,"a",function(){return g});var a=e("qRMt"),r=e("tZYx"),o=e("R+FV"),i=e("a61M");function c(n){return{type:a.a,data:n}}function u(n){return{type:a.b,data:n}}function f(n){return{type:a.c,data:n}}var l=function(){return function(n,t,e,a){r.a.Global.getCurrentTime().then(function(t){t&&(n(u({initTime:t})),e(t))}).catch(function(){a(!1)})}},s=function(n){return function(t,e,a,o){r.a.System.multicall(n).then(function(n){if(n.length>0){var e,r,o,u=n[0].params.table.TimeFormat.split(" "),f=u[0];e=!0===/[A-Z]/.test(u[1])?1:2;var l=(o="yMd"===n[0].params.table.DateSeparator?"YYYY\u5e74MM\u6708DD\u65e5":"Mdy"===n[0].params.table.DateSeparator?"MM\u6708DD\u65e5YYYY\u5e74":"dMy"===n[0].params.table.DateSeparator?"DD\u65e5MM\u6708YYYY\u5e74":u[0].toUpperCase()).match(/[^A-Z]/);r=1===e?"HH:mm:ss":"h:mm:ss A",n[0].params.table.Time=f,n[0].params.table.Hour=e,n[0].params.table.moment=o+" "+r,n[0].params.table.DateSeparator=n[0].params.table.DateSeparator?n[0].params.table.DateSeparator:l,n[0].params.table.originalDateSeparator=n[0].params.table.DateSeparator?n[0].params.table.DateSeparator:l;var s=n[1]&&n[1].params.table.TimeZone,d=n[1]&&n[1].params.table.TimeZoneDesc,p="("+i.default.timeZoneKey[s]+") "+d,g=null;if(!i.default.TimeZoneExcel[p]&&"(UTC+00:00) UTC-0"!==p){for(var h in i.default.TimeZoneExcel){var m=h.replace(/\s+/g,"");g||m.indexOf("("+i.default.timeZoneKey[s]+")")>-1&&(g=m)}n[1].params.table.TimeZoneDesc=g.substr(11)}var C=[];0!==n.length&&(C=n.map(function(n){return n.file=n.params.table,n.file}),t(c({initData:C}))),a(C)}}).catch(function(){o(!1)})}},d=function(n){return function(t,e,a,i){r.a.System.multicall(n).then(function(n){Object(o.f)(n)>0?a(!0):a(!1)}).catch(function(){i(!1)})}},p=function(n,t){return function(e,a,o,i){r.a.Global.setCurrentTime(n,t).then(function(n){o(!0)}).catch(function(){i(!1)})}},g=function(n){return function(t,e,a,o){r.a.NetApp.instance().then(function(t){t&&(r.a.NetApp.adjustTimeWithNTP(t.result,n).then(function(n){}).catch(function(n){}),a(!0))}).catch(function(){o(!1)})}}},mE4v:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,"/*\u5b58\u653e\u57fa\u8272*/\n._MutiControl_ {\n  border-left: 1px solid #e8e8e8;\n}\n._MutiControl_ .mode-item,\n._MutiControl_ .mode-title {\n  padding: 10px;\n  width: 110px;\n  float: left;\n  text-align: center;\n  border-right: 1px solid #e8e8e8;\n}\n._MutiControl_ .mode-title {\n  border-left: 1px solid #e8e8e8;\n}\n._MutiControl_ .mode-item-top {\n  border-top: 1px solid #e8e8e8;\n  background: #e8e8e8;\n}\n._MutiControl_ .mode-item-bottom {\n  border-bottom: 1px solid #e8e8e8;\n}\n",""])},o3Ke:function(n,t,e){"use strict";e.d(t,"K",function(){return d}),e.d(t,"I",function(){return p}),e.d(t,"G",function(){return m}),e.d(t,"J",function(){return C}),e.d(t,"H",function(){return S}),e.d(t,"C",function(){return v}),e.d(t,"m",function(){return b}),e.d(t,"o",function(){return y}),e.d(t,"n",function(){return E}),e.d(t,"k",function(){return T}),e.d(t,"r",function(){return M}),e.d(t,"f",function(){return A}),e.d(t,"h",function(){return I}),e.d(t,"q",function(){return O}),e.d(t,"D",function(){return P}),e.d(t,"t",function(){return R}),e.d(t,"g",function(){return L}),e.d(t,"u",function(){return D}),e.d(t,"e",function(){return V}),e.d(t,"c",function(){return F}),e.d(t,"y",function(){return N}),e.d(t,"z",function(){return w}),e.d(t,"A",function(){return x}),e.d(t,"a",function(){return G}),e.d(t,"v",function(){return k}),e.d(t,"i",function(){return _}),e.d(t,"B",function(){return j}),e.d(t,"j",function(){return W}),e.d(t,"b",function(){return B}),e.d(t,"w",function(){return U}),e.d(t,"x",function(){return z}),e.d(t,"s",function(){return H}),e.d(t,"l",function(){return Y}),e.d(t,"E",function(){return Z}),e.d(t,"p",function(){return $}),e.d(t,"d",function(){return K}),e.d(t,"F",function(){return Q});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("a1D8"),i=e("upjz"),c=e("DjBF"),u=e("zvA6"),f=e("tZYx"),l=(e("33yf"),e("a61M")),s=e("rGIM");function d(n){return{type:u.j,data:n}}function p(n){return{type:u.e,data:n}}function g(n){return{type:u.m,data:n}}function h(n){return{type:u.k,data:n}}function m(n){return{type:u.a,data:n}}function C(n){return{type:u.h,data:n}}function S(n){return{type:u.c,data:n}}var v=function(n){var t=n.delayFuncList,e=void 0===t?[]:t;return function(n,t){0!==e.length&&e.forEach(function(n){n()})}},b=function(n){var t=n.error,e={0:"com.Operateingfailure",1:"com.InvalidInput",2:"com.UserExist",3:"com.LoginErrorNo2",4:"com.LoginErrorNo2",5:"com.UserInuse",6:"com.OverRightTip",7:"com.saveFail",8:"com.PasswordNoTureTip",9:"com.PasswordNoTureTip",10:"com.AccountReserveTip",11:"com.ListLimit",12:"com.ListLimit"};return f.a.UserManager.getErrorNo().then(function(n){t&&t(e[n.error]?e[n.error]:e[0])}).catch(function(){t&&t("com.Operateingfailure")})},y=function(){return function(n,t,e){return f.a.UserManager.getGroupInfoAll().then(function(t){var a;n((a=t,{type:u.i,data:a})),e()})}},E=function(n){var t=n.params;return function(n,e,a,r){return f.a.UserManager.getGroupInfo(t.Name).then(function(t){var e;n((e=t,{type:u.d,data:e})),a(t)}).catch(function(){r()})}},T=function(){return function(n,t,e,a){return f.a.UserManager.getGroupInfo("admin").then(function(t){var a;n((a=t.group.AuthorityList,{type:u.g,data:a})),e()}).catch(function(){a()})}},M=function(){return function(n,t,e){return f.a.DockUser.getOnvifInfoAll().then(function(t){var a;n((a=t.users,{type:u.b,data:a})),e()})}},A=function(n){var t=n.params,e=n.success,a=n.error;return function(){var n=t.map(function(n){return f.a.DockUser.deleteOnvif(n)});Promise.all(n).then(function(){e&&e()}).catch(function(){b({error:a})})}},I=function(){return function(n,t,e,a){var r=[];return f.a.UserManager.getActiveUserInfoAll().then(function(t){var a;t.users.forEach(function(n,t){"web5.0"===n.ClientType.toLowerCase()&&r.push(n.Name)}),n((a={onLineUser:r},{type:u.l,data:a})),e()}).catch(function(){a()})}},O=function(){return function(n,t,e,a){return f.a.ConfigManager.getConfig("LoginRestriction").then(function(t){n(h({LoginRestriction:t})),e()}).catch(function(){a()})}},P=function(n){var t=n.loginLimitArr,e=n.success,a=n.error;return function(n,r,o,i){var c=r().UgmSet,u=(c.addLoginLimitData,c.LoginRestriction);return f.a.ConfigManager.setConfig("LoginRestriction",t).then(function(a){n(h({LoginRestriction:t})),e&&e(),o(a)}).catch(function(t){n(h({LoginRestriction:u})),a&&a(),i(t)})}},R=function(){return function(n,t,e,a){var r,o,i,u=t().publicState.userName;l.default.AuthorityList.AuthUserMag?(r=f.a.PasswdFind.getContact(),o=f.a.UserManager.getUserInfoAll()):o=f.a.UserManager.getUserInfo(u),i=[r,o,f.a.DevInit.getStatus()],Promise.all(i).then(function(t){var a=Object(c.a)(t,3),r=a[0],o=a[1],i=a[2];if(o.users&&o.users.length)r.mode||(r.mode=-1!==i.Find.indexOf("A")?1:2),o.users[0].contact=r.contact,o.users[0].mode=r.mode,n(g(o));else{var u={users:[]};r||(o.user.mode=-1!==i.Find.indexOf("A")?1:2),u.users.push(o.user),n(g(u))}e()}).catch(function(n){a(n)})}},L=function(n){var t=n.params,e=n.success,a=n.error;return function(n,r){var o=r().UgmSet.LoginRestriction;if(t.length){var c=(o=Object(i.a)(o)).filter(function(n,e){return n.UserName!==t[t.indexOf(n.UserName)]}),u=t.map(function(n){return f.a.UserManager.deleteUser(n)});Promise.all(u).then(function(){e&&e(),n(P({loginLimitArr:c}))}).catch(function(){b({error:a})})}}},D=function(n){var t=n.params,e=(n.success,n.error);return function(n,a,r,o){return f.a.setContact(t).then(function(){r()}).catch(function(){b({error:e})})}},V=function(n){var t=n.params,e=n.success,a=n.error;return function(){var n=t.map(function(n){return f.a.UserManager.deleteGroup(n)});Promise.all(n).then(function(){e&&e()}).catch(function(n){n&&n.error&&608===n.error.code?a("com.UsemannageErrGroupTip"):b({error:a})})}},F=function(n){var t=n.params,e=n.success,a=n.error;return function(){return f.a.addUser({user:t}).then(function(){e&&e()}).catch(function(n){if(n.error&&285278261===n.error.code)return a("com.PasswordEasyToGuess");n.error&&n.error.message&&268959743!==n.error.code?a("com."+n.error.message):b({error:a})})}},N=function(n){var t=n.params,e=n.success,a=n.error,r=n.$t;return function(n,i,c,u){var l=Object(o.a)({name:t.Name},t.Value);return f.a.modifyUser(l).then(function(){e&&e(),c()}).catch(function(n){if(285278261===n.error.code)return a("com.PasswordEasyToGuess");if(n.error.detail){var t=n.error.detail,e=t.remainLockSeconds,o=t.remainModifyTimes;e?a(r("com.UgmPwdfailedLocked").replace("%d",e)):o&&a(r("com.UgmPwdfailed").replace("%d",o))}else b({error:a});u(n)})}},w=function(n){var t=n.params,e=n.success,a=n.error,r=n.$t;return function(n,o,i,c){var u=[{method:"userManager.modifyPasswordByManager",params:t}];return f.a.multiSec(u).then(function(n){var t=n[0];if(t.error&&285278261===t.error.code)return a("com.PasswordEasyToGuess");if(t.error&&t.error.detail){var o=t.error.detail,c=o.remainLockSeconds,u=o.remainModifyTimes;c?a&&a(r("com.UgmPwdfailedLocked").replace("%d",c)):u&&a&&a(r("com.UgmPwdfailed").replace("%d",u))}else t.error?a&&a("com.PasswordNoTureTip"):e&&e();i(n)}).catch(function(n){b({error:a})})}},x=function(n){var t=n.params,e=n.success,a=n.error;return function(n,r,o,i){return f.a.UserManager.modifyUser(t.Name,t.Value).then(function(){e&&e(),o()}).catch(function(n){n.error&&n.error.message&&268959743!==n.error.code?a("com."+n.error.message):b({error:a}),i(a)})}},G=function(n){var t=n.params,e=n.success,a=n.error;return function(){return f.a.UserManager.addGroup(t).then(function(){e&&e()}).catch(function(n){n.error&&n.error.message?a("com."+n.error.message):b({error:a})})}},k=function(n){var t=n.params,e=n.success,a=n.error;return function(){return f.a.UserManager.modifyGroup(t.Name,t).then(function(){e&&e()}).catch(function(){b({error:a})})}},_=function(n,t){return function(n,e,a,r){return f.a.getUserManager("getAnonymityInfo",{name:"anonymity"}).then(function(t){var e=t&&t.user;n(S({anonymity:e})),a()}).catch(function(){b({error:t}),r()})}},j=function(n,t,e){return function(a,o){var i=o().publicState.$t,c={method:"userManager.modifyUser",params:{name:n.Name,user:n},id:n.Id};return f.a.multiAnonymitySec([c]).then(function(o){o&&o[0].result?(n.Anonymous?r.a.success(i("sys.OpenAnonymLoginSucceedTip")):r.a.success(i("sys.CloseAnonymLoginSucceedTip")),t&&t()):(n.Anonymous?r.a.error(i("sys.OpenAnonymLoginFailedTip")):r.a.error(i("sys.CloseAnonymLoginFailedTip")),e&&e(),n.Anonymous=!n.Anonymous,a(S({anonymity:n})))}).catch(function(){r.a.error(i("com.Operateingfailure")),b({error:e})})}},W=function(){return function(n){}},B=function(n){var t=n.params,e=n.success,a=n.error;return function(){return f.a.addOnvif({user:t}).then(function(){e&&e()}).catch(function(n){if(n.error&&285278261===n.error.code)return a("com.PasswordEasyToGuess");n.error&&n.error.message?a("com."+n.error.message):b({error:a})})}},U=function(n){var t=n.params,e=n.success,a=n.error;return function(n,r){r().publicState.$t;return f.a.multiOnvifSec(t).then(function(n){e&&e()}).catch(function(n){if(n.error&&285278261===n.error.code)return a("com.PasswordEasyToGuess");n.error&&n.error.message?a("com."+n.error.message):b({error:a})})}},z=function(n){var t=n.params,e=n.success,a=n.error;return function(n,r,i,c){var u=r().publicState.$t,l=Object(o.a)({name:t.Name},t.Value);return f.a.modifyOnvifPwd(l).then(function(){e&&e(),i()}).catch(function(n){if(n.error&&285278261===n.error.code)return a("com.PasswordEasyToGuess");if(n.error&&n.error.detail){var t=n.error.detail,e=t.remainLockSeconds,r=t.remainModifyTimes;e?a(u("com.UgmPwdfailedLocked").replace("%d",e)):r&&a(u("com.UgmPwdfailed").replace("%d",r))}else b({error:a})})}},H=function(n){return function(t,e,a,r){var o=[];if(o=[f.a.ConfigManager.getConfig("PwdReset")],n){var i=f.a.PasswdFind.getContact(n);o.push(i)}return Promise.all(o).then(function(n){a(n)}).catch(function(){r()})}},Y=function(){return function(n,t,e,a){return f.a.ConfigManager.getDefault("PwdReset").then(function(n){e(n)}).catch(function(n){a(n)})}},Z=function(n){return function(t,e,a,r){var o=[];if(o=[f.a.ConfigManager.setConfig("PwdReset",n[0])],n[1]){var i=f.a.setContact(n[1]);o.push(i)}return Promise.all(o).then(function(n){a(n)}).catch(function(n){r(n)})}},$=function(){return function(n,t,e,a){Promise.all([s.default.get("PD"),f.a.UserManager.getCaps()]).then(function(t){var e,a=Object(c.a)(t,2),r=a[0],o=a[1];n((e={MaxUsers:r.MaxUsers||o.caps.MaxUsers||20,MaxGroups:r.MaxGroup||o.caps.MaxGroups||20},{type:u.f,data:e}))}).catch(function(n){})}},K=function(n){return function(t,e,a,r){f.a.ConfigManager[n]("PwdUpdatePolicy").then(function(n){a(n)}).catch(function(n){r(n)})}},Q=function(n){return function(t,e,a,r){f.a.ConfigManager.setConfig("PwdUpdatePolicy",n).then(function(n){a(n)}).catch(function(n){r(n)})}}},oI6O:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"clear",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"onDefault",function(){return s});var a=e("tZYx"),r=e("diLT");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(){return function(n,t,e,i){return Promise.all([a.a.ConfigManager.getConfig("DevLocation")]).then(function(t){o(n,r.b.POSITIONSYSTEM_INIT,{DevLocation:t[0]}),e()}).catch(function(){i()})}},c=function(){return function(n){o(n,r.b.POSITIONSYSTEM_CLEAR)}},u=function(n){return function(t){o(t,r.b.POSITIONSYSTEM_CHANGE,n)}},f=function(){return function(n,t,e,i){o(n,r.b.POSITIONSYSTEM_SAVE);var c=t().PositionSystem.rpc.DevLocation;a.a.ConfigManager.setConfig("DevLocation",c).then(function(){e()}).catch(function(){i()})}},l=i,s=function(){return function(n,t,e,i){a.a.ConfigManager.getDefault("DevLocation").then(function(t){o(n,r.b.POSITIONSYSTEM_DEFAULT,{DevLocation:t}),e()}).catch(function(){i()})}}},p1aJ:function(n,t,e){n.exports=e.p+"static/media/icon_toujian_s.9d661489.png"},pWdI:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return d});var a=e("tZYx"),r=e("GUO7"),o=(e("rGIM"),e("a61M")),i="SmokeDetection";function c(n,t,e){n(Object(r.a)(t,e))}var u=function(n){return function(t,e,u,f){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(n,"VideoAnalyseRule"),a.a.VideoInAnalyse.getTemplateRule({channel:0,class:i}),a.a.intelliScheme.getConfig(n,"VideoAnalyseGlobal"),o.default.EventCaps&&a.a.EventManager.getEventLink({code:[i]})]).then(function(n){c(t,r.b.SMOKEDETECTION_RULE_INIT,{VideoAnalyseRule:n[0],TemplateRule:n[1],VideoAnalyseGlobal:n[2],EventLink:n[3]||{}}),u()}).catch(function(){f()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule"),a.a.VideoInAnalyse.getTemplateRule({channel:0,class:i}),a.a.ConfigManager.getConfig("VideoAnalyseGlobal"),o.default.EventCaps&&a.a.EventManager.getEventLink({code:[i]})]).then(function(n){c(t,r.b.SMOKEDETECTION_RULE_INIT,{VideoAnalyseRule:n[0],TemplateRule:n[1],VideoAnalyseGlobal:n[2],EventLink:n[3]||{}}),u()}).catch(function(){f()})}},f=function(n){return function(t){c(t,r.b.SMOKEDETECTION_RULE_CHANGE,n)}},l=function(n){return function(t,e,i,u){var f=e().SmokeDetectRuleConfig.vm.VRule;o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?a.a.intelliScheme.setConfig(n,["VideoAnalyseRule"],[f]).then(function(){c(t,r.b.SMOKEDETECTION_RULE_SAVE),i()}).catch(function(n){u()}):a.a.ConfigManager.setConfig(["VideoAnalyseRule"],[f]).then(function(){c(t,r.b.SMOKEDETECTION_RULE_SAVE),i()}).catch(function(n){u()})}},s=function(n){return function(t,e,i,u){return o.default.DeviceType.indexOf("SD")>-1&&o.default.SupportIntelliScheme?Promise.all([a.a.intelliScheme.getConfig(n,"VideoAnalyseRule")]).then(function(n){c(t,r.b.SMOKEDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0]}),i()}).catch(function(){u()}):Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseRule")]).then(function(n){c(t,r.b.SMOKEDETECTION_RULE_REFRESH,{VideoAnalyseRule:n[0]}),i()}).catch(function(){u()})}},d=function(){return function(n){c(n,r.b.SMOKEDETECTION_RULE_CLEAR)}}},pw66:function(n,t,e){"use strict";e.d(t,"X",function(){return C}),e.d(t,"V",function(){return S}),e.d(t,"U",function(){return v}),e.d(t,"F",function(){return b}),e.d(t,"T",function(){return y}),e.d(t,"a",function(){return E}),e.d(t,"g",function(){return T}),e.d(t,"E",function(){return M}),e.d(t,"f",function(){return A}),e.d(t,"H",function(){return I}),e.d(t,"e",function(){return O}),e.d(t,"c",function(){return P}),e.d(t,"G",function(){return R}),e.d(t,"d",function(){return L}),e.d(t,"b",function(){return D}),e.d(t,"w",function(){return V}),e.d(t,"k",function(){return F}),e.d(t,"L",function(){return N}),e.d(t,"A",function(){return w}),e.d(t,"o",function(){return x}),e.d(t,"P",function(){return G}),e.d(t,"z",function(){return k}),e.d(t,"O",function(){return _}),e.d(t,"n",function(){return j}),e.d(t,"s",function(){return W}),e.d(t,"h",function(){return B}),e.d(t,"I",function(){return U}),e.d(t,"B",function(){return z}),e.d(t,"p",function(){return H}),e.d(t,"Q",function(){return Y}),e.d(t,"t",function(){return Z}),e.d(t,"i",function(){return $}),e.d(t,"J",function(){return K}),e.d(t,"Y",function(){return Q}),e.d(t,"C",function(){return X}),e.d(t,"q",function(){return J}),e.d(t,"R",function(){return q}),e.d(t,"y",function(){return nn}),e.d(t,"m",function(){return tn}),e.d(t,"N",function(){return en}),e.d(t,"v",function(){return an}),e.d(t,"j",function(){return rn}),e.d(t,"K",function(){return on}),e.d(t,"W",function(){return cn}),e.d(t,"x",function(){return un}),e.d(t,"l",function(){return fn}),e.d(t,"M",function(){return ln}),e.d(t,"Z",function(){return sn}),e.d(t,"D",function(){return dn}),e.d(t,"r",function(){return pn}),e.d(t,"S",function(){return gn}),e.d(t,"u",function(){return hn});e("fwXI");var a=e("CC+v"),r=e.n(a),o=(e("tL+A"),e("QpBz")),i=e.n(o),c=e("ljm/"),u=e("tZYx"),f=e("rGIM"),l=e("a61M"),s=function(n){return{type:c.o,data:n}},d=function(n){return{type:c.g,data:n}},p=function(n){return{type:c.k,data:n}},g=function(n){return{type:c.j,data:n}},h=function(n){return{type:c.c,data:n}},m=function(n){return{type:c.l,data:n}},C=function(n){return{type:c.i,data:n}},S=function(n){return{type:c.f,data:n}},v=function(n){return{type:c.d,data:n}},b=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("VSP_GAYS_SERVER").then(function(e){t(s(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},y=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("VSP_GAYS_SERVER",n).then(function(){t(s(n)),i.a.success(r("com.Operateingsuccess")),a()}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},E=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_GAYS_SERVER").then(function(t){n(s(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},T=function(n,t){return function(e,a,r){var o=a().publicState.$t;u.a.DigitalCertificate.getCertsInfo({Offset:n,Count:t}).then(function(n){var t;e((t=n,{type:c.a,data:t})),r(n)}).catch(function(){i.a.error(o("com.Operateingfailure"))})}},M=function(){return function(n,t,e,a){u.a.MagicBox.getSerialNo().then(function(n){e(n)}).catch(function(){a()})}},A=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.DigitalCertificate.getCertReqInfo(n).then(function(n){a(n)}).catch(function(){i.a.error(r("com.DownloadFailedTip"))})}},I=function(n,t){return function(e,a,r,o){var c=a().publicState.$t;u.a.DigitalCertificate.importCert({Type:n,Cert:t}).then(function(){r(!0),i.a.success(c("com.UploadSuccess"))}).catch(function(n){o(n)})}},O=function(n){return function(t,e,a,r){u.a.DigitalCertificate.exportCert({CertSN:n}).then(function(n){a(n)}).catch(function(n){r(n)})}},P=function(n){return function(t,e,a,r){u.a.DigitalCertificate.deleteCert({CertSN:n}).then(function(){a(!0)}).catch(function(){r()})}},R=function(n,t){return function(e,a,r,o){var c=a().publicState.$t;u.a.DigitalCertificate.importCRL({DigitalCertificateType:n,CRL:t}).then(function(){r(!0),i.a.success(c("com.UploadSuccess"))}).catch(function(n){o(n)})}},L=function(n){return function(t,e,a,r){u.a.DigitalCertificate.exportCRL({SN:n}).then(function(n){a(n)}).catch(function(n){r(n)})}},D=function(n){return function(t,e,a,r){u.a.DigitalCertificate.deleteCRLs({SN:n}).then(function(){a(!0)}).catch(function(){r()})}},V=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.getConfig("VSP_PaaS").then(function(e){t(d(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},F=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_PaaS").then(function(t){n(d(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},N=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.setConfig("VSP_PaaS",n).then(function(e){t(d(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},w=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("T2UServer").then(function(e){t(p(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},x=function(){return function(n,t,e){var a=t().publicState.$t;u.a.getSecDefault("T2UServer").then(function(t){n(p(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},G=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("T2UServer",n).then(function(e){t(p(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},k=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.getConfig("UserGlobal").then(function(e){t(g(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},_=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.setConfig("UserGlobal",n).then(function(e){t(g(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},j=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("UserGlobal").then(function(t){n(g(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},W=function(n){return function(t,e,a){var r=e().publicState.$t;f.default.get("PD").then(function(e){var o,f=e.ViewCollectSupport;t((o={ViewCollectSupport:f},{type:c.b,data:o})),u.a.ConfigManager.getConfig("VSP_GAVI").then(function(e){t(h(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})})}},B=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_GAVI").then(function(t){n(h(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},U=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("VSP_GAVI",n).then(function(e){t(h(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},z=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.getConfig("RTMP_NVR").then(function(e){t(m(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},H=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("RTMP_NVR").then(function(t){n(m(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},Y=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.ConfigManager.setConfig("RTMP_NVR",n).then(function(e){t(m(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},Z=function(n){return function(t,e,a){var r=e().publicState.$t;return u.a.ConfigManager.getConfig("VSP_GAYS").then(function(e){t(v(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},$=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_GAYS").then(function(t){n(v(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},K=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("VSP_GAYS",n).then(function(e){t(v(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},Q=function(n){return{type:c.m,data:n}},X=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("VSP_SGCC").then(function(e){t(Q(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},J=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_SGCC").then(function(t){n(Q(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},q=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("VSP_SGCC",n).then(function(e){t(Q(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},nn=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("VSP_NFDW").then(function(e){t(C(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},tn=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_NFDW").then(function(t){n(C(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},en=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.setSecConfig("VSP_NFDW",n).then(function(e){t(C(n)),i.a.success(r("com.Operateingsuccess"))}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},an=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("VSP_GDDW").then(function(e){t(S(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(n){i.a.error(r("com.Operateingfailure"))})}},rn=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_GDDW").then(function(t){n(S(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(n){i.a.error(a("com.Operateingfailure"))})}},on=function(n){return function(t,e,a){var o=e().publicState.$t;u.a.setSecConfig("VSP_GDDW",n).then(function(e){t(S(n)),i.a.success(o("com.Operateingsuccess")),l.default.isNeedReboot(null===e||void 0===e?void 0:e.options)&&l.default.reboot(o("com.ConfEffectRestartTip"),!1,o,r.a)}).catch(function(n){i.a.error(o("com.SaveConfigFailTip"))})}},cn=function(n){return{type:c.h,data:n}},un=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig("VSP_I1").then(function(e){t(cn(e)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(){i.a.error(r("com.Operateingfailure"))})}},fn=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault("VSP_I1").then(function(t){n(cn(t)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(){i.a.error(a("com.Operateingfailure"))})}},ln=function(n){return function(t,e){var a=e().publicState.$t;u.a.setSecConfig("VSP_I1",n).then(function(e){t(cn(n)),i.a.success(a("com.Operateingsuccess")),l.default.isNeedReboot(null===e||void 0===e?void 0:e.options)&&l.default.reboot(a("com.ConfEffectRestartTip"),!1,a,r.a)}).catch(function(){i.a.error(a("com.SaveConfigFailTip"))})}},sn=function(n){return{type:c.n,data:n}},dn=function(n){return function(t,e,a){var r=e().publicState.$t;u.a.getSecConfig(["VSP_SLGY_BASIC","VSP_SLGY_MODULE","VSP_SLGY_CUSTOM"]).then(function(e){var o={BASIC:e[0].params.table,MODULE:e[1].params.table,CUSTOM:e[2].params.table};t(sn(o)),n&&i.a.success(r("com.Operateingsuccess")),a(e)}).catch(function(){i.a.error(r("com.Operateingfailure"))})}},pn=function(){return function(n,t,e){var a=t().publicState.$t;u.a.ConfigManager.getDefault(["VSP_SLGY_BASIC","VSP_SLGY_MODULE","VSP_SLGY_CUSTOM"]).then(function(t){var r={BASIC:t[0].params.table,MODULE:t[1].params.table,CUSTOM:t[2].params.table};n(sn(r)),e(t),i.a.success(a("com.OperateingSuccessTip"))}).catch(function(){i.a.error(a("com.Operateingfailure"))})}},gn=function(n){return function(t,e){var a=e().publicState.$t;u.a.setSecConfig(["VSP_SLGY_BASIC","VSP_SLGY_MODULE","VSP_SLGY_CUSTOM"],[n.BASIC,n.MODULE,n.CUSTOM]).then(function(e){t(sn(n)),i.a.success(a("com.Operateingsuccess")),e.map(function(n){var t;l.default.isNeedReboot(null===(t=n.params)||void 0===t?void 0:t.options)&&l.default.reboot(a("com.ConfEffectRestartTip"),!1,a,r.a)})}).catch(function(){i.a.error(a("com.SaveConfigFailTip"))})}},hn=function(){return function(n,t,e){u.a.ConfigManager.getConfig("GBTLSconfig").then(function(t){var a;n((a=t,{type:c.e,data:a})),e(t)}).catch(function(){})}}},q3S7:function(n,t,e){n.exports=e.p+"static/media/RepeatLeave.6ce8b0f0.png"},qCQ1:function(n,t,e){"use strict";e.d(t,"h",function(){return o}),e.d(t,"c",function(){return i}),e.d(t,"d",function(){return c}),e.d(t,"g",function(){return u}),e.d(t,"a",function(){return f}),e.d(t,"b",function(){return l}),e.d(t,"f",function(){return s}),e.d(t,"e",function(){return d});var a=e("Hj/6"),r=e("tZYx");function o(n){return{type:a.a,data:n}}var i=function(n,t,e){return function(a,i,c,u){r.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(o({data:n})),c(!0))}).catch(function(){u(!1)})}},c=function(n,t,e){return function(a,i,c,u){r.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(o({data:n})),c(!0))}).catch(function(){u(!1)})}},u=function(n,t,e){return function(a,o,i,c){r.a.ConfigManager.setConfig(n,t,e).then(function(n){n&&i(!0)}).catch(function(){c(!1)})}},f=function(){return function(n,t,e,a){r.a.Alarm.getAlarmCaps().then(function(n){e(n)}).catch(function(){a(!1)})}},l=function(){return function(n,t,e,a){r.a.Alarm.getAlarmPortCaps().then(function(n){e(n)}).catch(function(){a(!1)})}},s=function(n){return function(t,e,a,o){r.a.Alarm.setAlarmPortCaps(n).then(function(n){a(n)}).catch(function(){o(!1)})}},d=function(){return function(n,t,e,a){r.a.Alarm.getDefaultAlarmCaps().then(function(n){e(n)}).catch(function(){a(!1)})}}},qcAF:function(n,t,e){"use strict";var a=e("2bPg"),r=e("BRlI"),o=e("PK3Q"),i=e("Q5Ww"),c=e("00an"),u=e("q1tI"),f=e.n(u),l=e("17x9"),s=e.n(l),d=function(n){function t(){var n,e;Object(a.a)(this,t);for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return(e=Object(o.a)(this,(n=Object(i.a)(t)).call.apply(n,[this].concat(c)))).state={options:[],value:[]},e.onChange=function(n){var t=e.state.value,a=t.map(function(n){return n.value}).indexOf(n.value);-1!==a?t.splice(a,1):t.push(n),e.setState({value:t}),e.props.onChange(e.state.value)},e.isCheck=function(n,t){var a=e.state.value;return 0===a.length?"":-1!==a.map(function(n){return n.value}).indexOf(n.value)?t:""},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentWillReceiveProps",value:function(n){this.setState({options:n.options,value:n.value})}},{key:"componentDidMount",value:function(){this.setState(function(n,t){return{options:t.options,value:t.value}})}},{key:"render",value:function(){var n=this,t=this.state.options;return f.a.createElement("div",{className:"_radioComponent_"},f.a.createElement("div",{className:"radio-group"},t.map(function(t){return f.a.createElement("label",{className:"radio-button-wrapper \n                                    ".concat(n.isCheck(t,"radio-button-wrapper-checked"),"\n                                    ").concat(!1===t.enable?"radio-button-wrapper-disabled":"","\n                                    "),key:t.value},f.a.createElement("span",{className:"radio-button ".concat(n.isCheck(t,"radio-button-checked"))},f.a.createElement("input",{type:"checkBox",className:"radio-button-input",disabled:!1===t.enable,onClick:function(){n.onChange(t)}}),f.a.createElement("span",{className:"radio-button-inner"})),f.a.createElement("span",null,t.value))})))}}]),t}(u.Component);d.defaultProps={options:[],value:[]};var p=function(n){function t(){var n,e;Object(a.a)(this,t);for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];return(e=Object(o.a)(this,(n=Object(i.a)(t)).call.apply(n,[this].concat(c)))).state={options:[],value:""},e.onChange=function(n){var t=n.value;n.value===e.state.value&&(t=""),e.setState({value:t}),e.props.onChange(t)},e}return Object(c.a)(t,n),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.setState(function(n,t){return{options:t.options,value:t.value}})}},{key:"render",value:function(){var n=this,t=this.state,e=t.value,a=t.options;return f.a.createElement("div",{className:"_radioComponent_"},f.a.createElement("div",{className:"radio-group"},a.map(function(t){return f.a.createElement("label",{className:"radio-button-wrapper \n                                    ".concat(t.value===e?"radio-button-wrapper-checked":"","\n                                    ").concat(!1===t.enable?"radio-button-wrapper-disabled":"","\n                                    "),key:t.value},f.a.createElement("span",{className:"radio-button ".concat(t.value===e?"radio-button-checked":"")},f.a.createElement("input",{type:"radio",className:"radio-button-input",value:t.value,disabled:!1===t.enable,onClick:function(){n.onChange(t)}}),f.a.createElement("span",{className:"radio-button-inner"})),f.a.createElement("span",null,t.value))})))}}]),t}(u.Component);e("l3/l");e.d(t,"a",function(){return g});var g=function(n){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(c.a)(t,n),Object(r.a)(t,[{key:"render",value:function(){var n=this.props.type;return n&&"checkbox"===String.prototype.toLowerCase.call(n)?f.a.createElement(d,this.props):f.a.createElement(p,this.props)}}]),t}(u.Component);p.propTypes={options:s.a.arrayOf(s.a.shape({ablel:s.a.bool,value:s.a.oneOfType([s.a.string,s.a.number]).isRequired})),value:s.a.oneOfType([s.a.string,s.a.number,s.a.arrayOf()])}},rBxy:function(n,t,e){n.exports=e.p+"static/media/yuntai.8e127947.png"},rDdA:function(n,t,e){"use strict";e.d(t,"a",function(){return o}),e.d(t,"E",function(){return i}),e.d(t,"p",function(){return c}),e.d(t,"G",function(){return u}),e.d(t,"F",function(){return l}),e.d(t,"k",function(){return s}),e.d(t,"bb",function(){return d}),e.d(t,"t",function(){return g}),e.d(t,"g",function(){return h}),e.d(t,"R",function(){return m}),e.d(t,"hb",function(){return C}),e.d(t,"s",function(){return S}),e.d(t,"Q",function(){return v}),e.d(t,"o",function(){return b}),e.d(t,"N",function(){return y}),e.d(t,"jb",function(){return E}),e.d(t,"r",function(){return T}),e.d(t,"P",function(){return M}),e.d(t,"y",function(){return A}),e.d(t,"V",function(){return I}),e.d(t,"v",function(){return O}),e.d(t,"T",function(){return P}),e.d(t,"lb",function(){return R}),e.d(t,"D",function(){return L}),e.d(t,"ab",function(){return D}),e.d(t,"w",function(){return V}),e.d(t,"U",function(){return F}),e.d(t,"B",function(){return N}),e.d(t,"Y",function(){return w}),e.d(t,"ib",function(){return x}),e.d(t,"q",function(){return G}),e.d(t,"f",function(){return k}),e.d(t,"O",function(){return _}),e.d(t,"J",function(){return j}),e.d(t,"cb",function(){return W}),e.d(t,"x",function(){return B}),e.d(t,"u",function(){return z}),e.d(t,"h",function(){return H}),e.d(t,"S",function(){return Y}),e.d(t,"A",function(){return $}),e.d(t,"i",function(){return K}),e.d(t,"X",function(){return Q}),e.d(t,"C",function(){return J}),e.d(t,"j",function(){return q}),e.d(t,"Z",function(){return nn}),e.d(t,"z",function(){return tn}),e.d(t,"W",function(){return en}),e.d(t,"fb",function(){return an}),e.d(t,"l",function(){return rn}),e.d(t,"d",function(){return on}),e.d(t,"I",function(){return cn}),e.d(t,"kb",function(){return un}),e.d(t,"db",function(){return fn}),e.d(t,"eb",function(){return ln}),e.d(t,"L",function(){return sn}),e.d(t,"n",function(){return dn}),e.d(t,"K",function(){return pn}),e.d(t,"H",function(){return gn}),e.d(t,"c",function(){return hn}),e.d(t,"b",function(){return mn}),e.d(t,"gb",function(){return Cn}),e.d(t,"m",function(){return Sn}),e.d(t,"e",function(){return vn}),e.d(t,"M",function(){return bn});var a=e("Gg4U"),r=e("tZYx"),o=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(a,o,i,c){r.a.PTZManager(n,t,e).then(function(n){i(n)}).catch(function(n){c(n)})}};var i=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("PtzMovement").then(function(t){var r;n((r={data:t},{type:a.s,data:r})),e(!0)}).catch(function(){o(!1)})}};var c=function(n){return function(t,e,o,i){r.a.PTZManager("getPresets",n).then(function(n){var e;t((e={presets:n.presets&&n.presets.filter(function(n){return 2!==n.Type}),spcPresets:n.presets&&n.presets.filter(function(n){return 2===n.Type})},{type:a.p,data:e})),o(!0)}).catch(function(n){i(!1)})}},u=function(){return function(n,t,e,a){r.a.PtzFunc.getSpecialPresetCaps().then(function(n){e(n.caps||null)}).catch(function(){e(null)})}};function f(n){return{type:a.t,data:n}}var l=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzTour").then(function(t){n(f({data:t})),e(!0)}).catch(function(){a(!1)})}},s=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("PtzTour").then(function(t){n(f({data:t})),e(!0)}).catch(function(){a(!1)})}},d=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzTour",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function p(n){return{type:a.f,data:n}}var g=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("AutoScan").then(function(t){n(p({data:t})),e(!0)}).catch(function(){a(!1)})}},h=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("AutoScan").then(function(t){n(p({data:t})),e(!0)}).catch(function(){a(!1)})}},m=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("AutoScan",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function C(n){return{type:a.b,data:n}}var S=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("AutoPattern").then(function(t){var r;n((r={data:t},{type:a.e,data:r})),e(!0)}).catch(function(){o(!1)})}},v=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("AutoPattern",n).then(function(){a(!0)}).catch(function(){o(!1)})}},b=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PatternPlayDetail").then(function(t){n(C({data:t})),e(!0)}).catch(function(){a(!1)})}},y=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PatternPlayDetail",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function E(n){return{type:a.d,data:n}}var T=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("AutoPan").then(function(t){n(E({data:t})),e(!0)}).catch(function(){a(!1)})}},M=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("AutoPan",n).then(function(){t(E({data:n})),a(!0)}).catch(function(){o(!1)})}};var A=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("PtzLimit").then(function(t){var r;n((r={data:t},{type:a.k,data:r})),e(!0)}).catch(function(){o(!1)})}},I=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzLimit",n).then(function(){a(!0)}).catch(function(){o(!1)})}};var O=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("PtzElevation").then(function(t){var r;n((r={data:t},{type:a.h,data:r})),e(!0)}).catch(function(){o(!1)})}},P=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzElevation",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function R(n){return{type:a.r,data:n}}var L=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzSpeed").then(function(t){n(R({data:t})),e(!0)}).catch(function(){a(!1)})}},D=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzSpeed",n).then(function(){a(!0)}).catch(function(){o(!1)})}};var V=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("IdleMotion").then(function(t){var r;n((r={data:t},{type:a.i,data:r})),e(!0)}).catch(function(){o(!1)})}},F=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("IdleMotion",n).then(function(){a(!0)}).catch(function(){o(!1)})}};var N=function(){return function(n,t,e,o){r.a.ConfigManager.getConfig("PowerUp").then(function(t){var r;n((r={data:t},{type:a.o,data:r})),e(!0)}).catch(function(){o(!1)})}},w=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PowerUp",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function x(n){return{type:a.c,data:n}}var G=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzAutoMovement").then(function(t){n(x({data:t})),e(!0)}).catch(function(){a(!1)})}},k=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("PtzAutoMovement").then(function(t){n(x({data:t})),e(!0)}).catch(function(){a(!1)})}},_=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzAutoMovement",n).then(function(){t(x({data:n})),a(!0)}).catch(function(){o(!1)})}};var j=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PanoramicTrace",n).then(function(){a(!0)}).catch(function(){o(!1)})}},W=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzIntelliTrack",n).then(function(){a(!0)}).catch(function(){o(!1)})}},B=function(){return function(n,t,e,o){r.a.System.multicall([{method:"configManager.getConfig",params:{name:"PanoramicTrace"}},{method:"configManager.getConfig",params:{name:"PtzIntelliTrack"}}]).then(function(t){if(t){var r=t.map(function(n){return{table:n.params.table}});n((o={data:r},{type:a.j,data:o})),e(!0)}var o}).catch(function(){o(!1)})}};function U(n){return{type:a.g,data:n}}var z=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzDevice").then(function(t){n(U({data:t})),e(!0)}).catch(function(){a(!1)})}},H=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("PtzDevice").then(function(t){n(U({data:t})),e(!0)}).catch(function(){a(!1)})}},Y=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzDevice",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function Z(n){return{type:a.l,data:n}}var $=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("Ptz").then(function(t){n(Z({data:t})),e(!0)}).catch(function(){a(!1)})}},K=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("Ptz").then(function(t){n(Z({data:t})),e(!0)}).catch(function(){a(!1)})}},Q=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("Ptz",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function X(n){return{type:a.q,data:n}}var J=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzSerial").then(function(t){n(X({data:t})),e(!0)}).catch(function(){a(!1)})}},q=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("PtzSerial").then(function(t){n(X({data:t})),e(!0)}).catch(function(){a(!1)})}},nn=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzSerial",n).then(function(){a(!0)}).catch(function(){o(!1)})}},tn=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzDirection").then(function(n){e(n)}).catch(function(){a(!1)})}},en=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzDirection",n).then(function(){a(!0)}).catch(function(){o(!1)})}};function an(n){return{type:a.a,data:n}}var rn=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("EptzLink").then(function(t){n(an({data:t})),e(t)}).catch(function(n){a(n)})}},on=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("EptzLink").then(function(t){n(an({data:t})),e(t)}).catch(function(n){a(n)})}},cn=function(){return function(n,t,e,a){var o=t().PtzSet.EptzLink;r.a.ConfigManager.setConfig("EptzLink",o).then(function(){e(!0)}).catch(function(){a(!1)})}};function un(n){return{type:a.n,data:n}}var fn=function(n,t){return function(e,a,o,i){r.a.PtzFunc.startPatrol(n,t).then(function(){o(!0)}).catch(function(){i(!1)})}},ln=function(n){return function(t,e,a,o){r.a.PtzFunc.stopPatrol(n).then(function(){a(!0)}).catch(function(){o(!1)})}},sn=function(n){return function(t,e,a,o){r.a.PtzFunc.setPatrolPoint(n).then(function(){a(!0)}).catch(function(){o(!1)})}},dn=function(n){return function(t,e,a,o){r.a.PtzFunc.getPatrols(n).then(function(n){t(un({data:n&&n.Patrols})),a(!0)}).catch(function(){o(!1)})}},pn=function(n){return function(t,e,a,o){r.a.PtzFunc.setPatrol(n).then(function(){a(!0)}).catch(function(){o(!1)})}},gn=function(n){return function(t,e,a,o){r.a.PtzFunc.gotoPatrolPoint(n).then(function(){a(!0)}).catch(function(){o(!1)})}},hn=function(n){return function(t,e,a,o){r.a.PtzFunc.clearAllPatrols(n).then(function(){a(!0)}).catch(function(){o(!1)})}},mn=function(n,t){return function(e,a,o,i){r.a.PtzFunc.clearAllPatrolPoints(n,t).then(function(){o(!0)}).catch(function(){i(!1)})}};function Cn(n){return{type:a.m,data:n}}var Sn=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("PtzPatrolStrategy").then(function(t){n(Cn({data:t})),e(!0)}).catch(function(){a(!1)})}},vn=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("PtzPatrolStrategy").then(function(t){n(Cn({data:t})),e(!0)}).catch(function(){a(!1)})}},bn=function(n){return function(t,e,a,o){r.a.ConfigManager.setConfig("PtzPatrolStrategy",n).then(function(){t(Cn({data:n})),a(!0)}).catch(function(){o(!1)})}}},rGWc:function(n,t,e){n.exports=e.p+"static/media/logo_dh.4426a166.png"},rLW0:function(n,t,e){"use strict";e.d(t,"d",function(){return r}),e.d(t,"c",function(){return o}),e.d(t,"b",function(){return i}),e.d(t,"a",function(){return c});var a=e("R+FV");function r(n){var t=new Date,e=t.getTimezoneOffset();return t.setTime(1e3*n+6e4*e),Object(a.j)(t,"yyyy-MM-dd hh:mm:ss")}function o(n,t,e){var a,r,o,i,c;if(!(n<=t))return r=(r=((a=(n-t)/e)/(i=Math.pow(10,parseInt(Math.log(a)/Math.log(10)))===a?Math.pow(10,parseInt(Math.log(a)/Math.log(10))):Math.pow(10,parseInt(Math.log(a)/Math.log(10))+1))).toFixed(6))>=0&&r<=.1?.1:r>=.100001&&r<=.2?.2:r>=.200001&&r<=.25?.25:r>=.250001&&r<=.5?.5:1,r*=i,parseInt(t/r)!==t/r&&(t=t<0?-1*Math.ceil(Math.abs(t/r))*r:parseInt(Math.abs(t/r))*r),parseInt(n/r)!==n/r&&(n=parseInt(n/r+1)*r),(o=(n-t)/r)<e&&(c=e-o,o=e,n+=c%2===0?r*parseInt(c/2):r*parseInt(c/2+1),t-=r*parseInt(c/2)),e=o,t<0?[n+t,0,(n+t)/((n-t)/e)]:[n,t,e]}function i(n){var t=n.toLowerCase();if(/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)){if(4===t.length){for(var e="#",a=1;a<4;a+=1)e+=t.slice(a,a+1).concat(t.slice(a,a+1));t=e}for(var r=[],o=1;o<7;o+=2)r.push(parseInt("0x"+t.slice(o,o+2)));return{red:r[0],green:r[1],blue:r[2],alpha:1}}return t}function c(n,t){var e=[];if(Array.isArray(n)){var a=n.length;if(a<1e12)e=n;else for(var r=parseInt(a/t),o=0;o<n.length;o+=r){var i=n[o];e.push(i)}}else e=n;return e}},raZl:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,"/*\u5b58\u653e\u57fa\u8272*/\n.bottom-pagination {\n  position: absolute;\n  bottom: 0px;\n  width: 100%;\n  height: 50px;\n  line-height: 50px;\n  padding: 0 10px;\n}\n.bottom-pagination div:nth-child(2) {\n  text-align: right;\n  padding-right: 20px;\n}\n.bottom-pagination .ant-table-pagination.ant-pagination {\n  float: right;\n  margin: 9px 0;\n}\n",""])},siIf:function(n,t,e){"use strict";e.d(t,"f",function(){return l}),e.d(t,"b",function(){return s}),e.d(t,"d",function(){return d}),e.d(t,"c",function(){return p}),e.d(t,"e",function(){return g}),e.d(t,"a",function(){return h});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("Ss4X"),u=e("tZYx"),f=(e("LvDl"),e("a61M"));e("rGIM");function l(n){return{type:c.b,data:n}}var s=function(n){return function(t,e,a,r){if(f.default.EventCaps){var o={};u.a.EventManager.getEventLink({code:n}).then(function(e){e.name.forEach(function(t,e){o[n[e]]=Object(i.a)({},f.default.EventCaps,f.default.DefaultEvent),t.forEach(function(t,a){"default"===t?o[n[e]]=f.default.EventCaps:o[n[e]][t]=!0})}),t(l({ruleEventCaps:o})),a(!0)}).catch(function(n){t(l({linkEvent:f.default.EventCaps})),a(!0)})}else a(!1)}},d=function(n){return function(t,e,a,r){u.a.VideoInAnalyse.getTemplateRule(n).then(function(n){var e=n.GenealAttitude;t(l({ruleTemp:e})),a(!0)}).catch(function(n){a(!1)})}},p=function(n,t){return function(){var e=Object(o.a)(r.a.mark(function e(a,o,i,c){var s;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=null,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){e.next=6;break}return e.next=4,u.a.intelliScheme.getConfig(t,n).then(function(n){s=n.map(function(n){return n.params.table})});case 4:e.next=8;break;case 6:return e.next=8,u.a.ConfigManager.getConfig(n).then(function(n){s=n.map(function(n){return n.params.table})});case 8:a(l({cfgData:s})),i(!0);case 10:case"end":return e.stop()}},e)}));return function(n,t,a,r){return e.apply(this,arguments)}}()},g=function(n,t,e){return function(){var a=Object(o.a)(r.a.mark(function a(o,i,c,l){var s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=!1,!(f.default.SupportIntelliScheme&&f.default.DeviceType.indexOf("SD")>-1)){a.next=6;break}return a.next=4,u.a.intelliScheme.setConfig(e,n,t).then(function(){}).catch(function(){s=!0});case 4:a.next=8;break;case 6:return a.next=8,u.a.ConfigManager.setConfig(n,t).then(function(){}).catch(function(){s=!0});case 8:s?l():c(!0);case 9:case"end":return a.stop()}},a)}));return function(n,t,e,r){return a.apply(this,arguments)}}()},h=function(n){return function(t,e,a,r){var o=null;u.a.ConfigManager.getDefault(n).then(function(n){o=n.map(function(n){return n.params.table}),a(o)}).catch(function(){a(!1)})}}},tVHw:function(n,t,e){"use strict";e.d(t,"j",function(){return f}),e.d(t,"l",function(){return l}),e.d(t,"k",function(){return s}),e.d(t,"m",function(){return d}),e.d(t,"c",function(){return p}),e.d(t,"d",function(){return g}),e.d(t,"i",function(){return h}),e.d(t,"a",function(){return m}),e.d(t,"h",function(){return C}),e.d(t,"f",function(){return S}),e.d(t,"e",function(){return v}),e.d(t,"g",function(){return b}),e.d(t,"b",function(){return y});var a=e("g4DW"),r=e("lsbC"),o=e("tZYx"),i=e("rGIM"),c=e("R+FV"),u=e("C+a1");function f(n){return{type:r.c,data:n}}function l(n){return{type:r.d,data:n}}function s(n){return{type:r.a,data:n}}function d(n){return{type:r.e,data:n}}var p=function(n){return function(t,e,a,r){o.a.ConfigManager.getConfig(n).then(function(n){t(l(n)),a()}).catch(function(){r()})}},g=function(n){return function(t,e,a,r){o.a.ConfigManager.getDefault(n).then(function(n){t(l(n)),a()}).catch(function(){r()})}},h=function(n,t,e){return function(a,r,i,u){o.a.ConfigManager.setConfig(n,t).then(function(n){Object(c.f)(n)?(a(l(e)),i()):u(n)}).catch(function(n){u(n)})}},m=function(n){return function(t,e,a,r){o.a.ConfigManager.getConfig(n).then(function(n){t(s(n)),a()}).catch(function(){r()})}},C=function(n,t){return function(e,a,r,i){o.a.ConfigManager.setConfig(n,t).then(function(){e(s(t)),r()}).catch(function(n){i(n)})}},S=function(n){return function(t,e,a,i){o.a.intelliScheme.getSchemeInfo({schemeID:n}).then(function(n){var e;t((e=n.Infos[0].masterSlaveMode,{type:r.b,data:e})),a(n)}).catch(function(){a(!1)})}},v=function(n){return function(t,e,r,i){o.a.ConfigManager.getConfig(n).then(function(e){t(d(Object(a.a)({},n,e))),r()}).catch(function(){i()})}},b=function(){return function(n,t,e,a){var r=Object(u.a)().FaceAnalysisConfig,o=(r=void 0===r?{}:r).currentChannel;i.default.get("SupportPasserBy").then(function(t){if(!Array.isArray(t))return n(f({SupportPasserBy:!1})),void e();t=t.map(function(n){return n&&n.Support}),n(f({SupportPasserBy:!!t[o||0]})),e()}).catch(function(){n(f({SupportPasserBy:!1})),e()})}},y=function(){return function(n,t,e,a){var r=Object(u.a)().FaceAnalysisConfig,i=(r=void 0===r?{}:r).currentChannel,c=0;o.a.ConfigManager.getConfig("VideoAnalyseRule").then(function(t){i=i||0,Array.isArray(t[i])&&t[i].forEach(function(n){"FaceAnalysis"===n.Type&&1===n.Config.FaceAnalysisMode&&(c=1)}),n(f({FaceAnalysisMode:c})),e()}).catch(function(){n(f({FaceAnalysisMode:c})),a()})}}},tZxT:function(n,t,e){"use strict";e.d(t,"a",function(){return r}),e.d(t,"b",function(){return o});var a=e("AVuZ");function r(n){return{type:a.b,data:n}}function o(n){return{type:a.a,data:n}}},tqff:function(n,t,e){n.exports=e.p+"static/media/pk_6.c78f06ac.png"},u0nO:function(n,t,e){n.exports=e.p+"static/media/faceswap.26ea687d.png"},uIFD:function(n,t,e){"use strict";e.d(t,"a",function(){return r});var a=e("Ftql");function r(n){return{type:a.a,data:n}}},uN4C:function(n,t,e){n.exports=e.p+"static/media/pk_12.bac4f8ce.png"},ugpH:function(n,t,e){"use strict";e.d(t,"j",function(){return l}),e.d(t,"e",function(){return s}),e.d(t,"g",function(){return d}),e.d(t,"d",function(){return p}),e.d(t,"f",function(){return g}),e.d(t,"h",function(){return h}),e.d(t,"i",function(){return m}),e.d(t,"c",function(){return S}),e.d(t,"a",function(){return v}),e.d(t,"b",function(){return b});e("tL+A");var a=e("QpBz"),r=e.n(a),o=e("ZOoW"),i=e("tZYx"),c=e("R+FV"),u=e("a61M");function f(n){return{type:o.a,data:n}}function l(n){return{type:o.c,data:n}}function s(n){return{type:o.e,data:n}}function d(n){return{type:o.g,data:n}}function p(n){return{type:o.d,data:n}}function g(n){return{type:o.f,data:n}}function h(n){return{type:o.h,data:n}}function m(n){return{type:o.i,data:n}}function C(n){return{type:o.j,data:n}}var S=function(n){var t=n.Encode;return function(n,e){var a=e(),o=a.publicState.$t,c=a.AudioEncode,f=c.AudioInputVolume,s=c.AudioOutputVolume,d=c.AudioInDenoise,p=c.AudioInput,g=c.AudioTouch,h=c.AudioOutput;n(l(t)),n(C(!0));var m=["Encode","AudioInputVolume","AudioOutputVolume","AudioInDenoise"],S=[t,f,s,d];g&&(m.push("AudioTouch"),S.push(g)),h&&(m.push("AudioOutput"),S.push(h)),0===u.default.AUDIO_IN_NUMBER&&(m=["AudioOutputVolume"],S=[s]),i.a.ConfigManager.setConfig("AudioInput",p).then(function(){i.a.ConfigManager.setConfig(m,S).then(function(n){var t=m.indexOf("AudioOutput");t>-1&&!n[t].result&&285346048===n[t].error.code?r.a.error(o("net.ConnectBluetoothFirst")):r.a.success(o("com.Operateingsuccess"))}).catch(function(){r.a.error(o("com.Operateingfailure"))}).finally(function(){n(C(!1))})}).catch(function(t){n(C(!1)),t.error&&285346048===t.error.code?r.a.error(o("net.ConnectBluetoothFirst")):r.a.error(o("com.Operateingfailure"))})}},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{curChannel:0},t=n.curChannel,e=n.flag;return function(n,a){var c=a().publicState.$t;n(C(!0));i.a.ConfigManager.getConfig(["Encode","AudioInputVolume","AudioOutputVolume","AudioInDenoise","AudioInput","AudioTouch","AudioOutput"]).then(function(a){var l=a[0].result&&a[0].params.table||[],s=a[1].result&&a[1].params.table||[],d=a[2].result&&a[2].params.table||[],p=a[3].result&&a[3].params.table||[],g=a[4].result&&a[4].params.table||[],h=a[5].result&&a[5].params.table||null,m=a[6].result&&a[6].params.table||null;if(n(f({Encode:l,AudioInputVolume:s,AudioOutputVolume:d,AudioInDenoise:p,AudioInput:g,AudioTouch:h,AudioOutput:m})),e&&r.a.success(c("com.Operateingsuccess")),!e){var C={config:l,stream:"All",channel:t||0};-1!==u.default.DeviceType.indexOf("TPC")&&(C={config:l,channel:0});var S=[i.a.getEncode("getConfigCaps",C),i.a.devAudioEncodeManager("getFormatCaps",{},t),i.a.devAudioEncodeManager("getCaps",{},t)];u.default.AudioInputCaps&&u.default.AudioInputCaps.DigitalAudio&&S.push(i.a.devAudioEncodeManager("getDigitalFormatCaps",C,t)),Promise.all(S).then(function(t){var e,a=t[0].caps||[],r=t[1].formats||[],i=t[2].caps||[],c={};if(t[3]&&t[3].formats&&t[3].formats.forEach(function(n){c[n.Compression]||(c[n.Compression]=[]),c[n.Compression].push(n.Frequency)}),u.default.GongAnDetect){r=[];for(var f=["PCM","G.711A","G.711Mu","AAC","G.723","G.726","G.729","MPEG2-Layer2","G.722.1","OPUS"],l=0;l<f.length;l++)for(var s=[8e3,16e3,32e3,64e3,96e3],d=0;d<s.length;d++){var p={Compression:f[l],Depth:16,Frequency:s[d]};r.push(p)}}n((e={EncodeCaps:a,AudioEncodeFormatCaps:r,AudioEncodeCaps:i,DigitalFormatCaps:c},{type:o.b,data:e}))})}}).catch(function(){e&&r.a.error(c("com.Operateingfailure"))}).finally(function(){n(C(!1))})}},b=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{curChannel:0}).curChannel;return function(t,e){var a=e(),o=a.publicState.$t,u=a.AudioEncode.Encode;t(C(!0));i.a.ConfigManager.getDefault(["Encode","AudioInputVolume","AudioOutputVolume","AudioInDenoise","AudioInput","AudioTouch","AudioOutput"]).then(function(e){var a=e[0].result&&e[0].params.table||[],i=e[1].result&&e[1].params.table||[],l=e[2].result&&e[2].params.table||[],s=e[3].result&&e[3].params.table||[],d=e[4].result&&e[4].params.table||[],p=e[5].result&&e[5].params.table||null,g=e[6].result&&e[6].params.table||null,h=Object(c.g)(u);h[n].MainFormat.map(function(t,e){t.Audio=a[n].MainFormat[e].Audio,t.AudioEnable=a[n].MainFormat[e].AudioEnable}),a[n].ExtraFormat.map(function(t,e){h[n].ExtraFormat[e].Audio=t.Audio,h[n].ExtraFormat[e].AudioEnable=t.AudioEnable}),t(f({Encode:h,AudioInputVolume:i,AudioOutputVolume:l,AudioInDenoise:s,AudioInput:d,AudioTouch:p,AudioOutput:g})),r.a.success(o("com.OperateingSuccessTip"))}).catch(function(n){r.a.error(o("com.Operateingfailure"))}).finally(function(){t(C(!1))})}}},uyJ6:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"onDefault",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"gotoPreset",function(){return p});var a=e("tZYx"),r=e("oJA6"),o=e("a61M").default.CHANNEL_NUMBER>1?1:0;function i(n,t,e){n(Object(r.a)(t,e))}var c=function(){return function(n,t,e,c){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseModule"),a.a.PTZManager("getPresets"),a.a.VideoInAnalyse.getTemplateModule({channel:o,class:"BoatDetection"})]).then(function(t){i(n,r.b.BOATCOMPLETECONFIG_INIT,{VideoAnalyseModule:t[0],Presets:t[1],TemplateModule:t[2]}),e()}).catch(function(n){c()})}},u=function(n){return function(t){i(t,r.b.BOATCOMPLETECONFIG_CHANGE,n)}},f=function(){return function(n,t,e,o){var c=t().BoatCompleteConfig.vm.VideoAnalyseModule;a.a.ConfigManager.setConfig("VideoAnalyseModule",c).then(function(t){i(n,r.b.BOATCOMPLETECONFIG_SAVE),e(t)}).catch(function(){o()})}},l=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getConfig("VideoAnalyseModule")]).then(function(t){i(n,r.b.BOATCOMPLETECONFIG_REFRESH,{VideoAnalyseModule:t[0]}),e()}).catch(function(){o()})}},s=function(){return function(n,t,e,a){return Promise.all([]).then(function(){i(n,r.b.BOATCOMPLETECONFIG_DEFAULT,{}),e()}).catch(function(){a()})}},d=function(){return function(n){i(n,r.b.BOATCOMPLETECONFIG_CLEAR)}},p=function(){return function(n,t,e,r){var o=t().BoatCompleteConfig.vm,i=o.channel,c=o.curPreset;a.a.PTZManager("gotoPreset",i,{index:c}).then(function(){e()}).catch(function(){r()})}}},v3wo:function(n,t,e){"use strict";e.d(t,"f",function(){return r}),e.d(t,"e",function(){return o}),e.d(t,"b",function(){return i}),e.d(t,"a",function(){return c}),e.d(t,"d",function(){return u}),e.d(t,"c",function(){return f});var a=e("3xWI");e("tZYx"),e("LvDl");function r(n){return{type:a.f,data:n}}function o(n){return{type:a.e,data:n}}function i(n){return{type:a.b,data:n}}function c(n){return{type:a.a,data:n}}function u(n){return{type:a.d,data:n}}function f(n){return{type:a.c,data:n}}},vFj7:function(n,t,e){"use strict";e.d(t,"v",function(){return i}),e.d(t,"y",function(){return c}),e.d(t,"u",function(){return u}),e.d(t,"A",function(){return f}),e.d(t,"w",function(){return l}),e.d(t,"z",function(){return s}),e.d(t,"t",function(){return d}),e.d(t,"x",function(){return p}),e.d(t,"f",function(){return g}),e.d(t,"g",function(){return h}),e.d(t,"c",function(){return m}),e.d(t,"n",function(){return C}),e.d(t,"e",function(){return S}),e.d(t,"r",function(){return v}),e.d(t,"i",function(){return b}),e.d(t,"p",function(){return y}),e.d(t,"q",function(){return E}),e.d(t,"m",function(){return T}),e.d(t,"d",function(){return M}),e.d(t,"h",function(){return A}),e.d(t,"o",function(){return I}),e.d(t,"j",function(){return O}),e.d(t,"b",function(){return P}),e.d(t,"s",function(){return R}),e.d(t,"a",function(){return L}),e.d(t,"k",function(){return D}),e.d(t,"l",function(){return V});var a=e("g4DW"),r=e("tLxx"),o=e("tZYx");function i(n){return{type:r.c,data:n}}function c(n){return{type:r.g,data:n}}function u(n){return{type:r.b,data:n}}function f(n){return{type:r.h,data:n}}function l(n){return{type:r.d,data:n}}function s(n){return{type:r.i,data:n}}function d(n){return{type:r.a,data:n}}function p(n){return{type:r.f,data:n}}var g=function(n,t,e){return function(a,r,c,u){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(i({data:n})),c(!0))}).catch(function(){u(!1)})}},h=function(n,t,e){return function(a,r,c,u){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(i({data:n})),c(!0))}).catch(function(){u(!1)})}},m=function(n,t){return function(e,r,i,c){o.a.ConfigManager.getDefault(n,t).then(function(t){t&&(e(d(Object(a.a)({},n,t))),i(!0))}).catch(function(){c(!1)})}},C=function(n,t,e){return function(a,r,i,u){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(c({data:n})),i(!0))}).catch(function(){u(!1)})}},S=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(u({data:n})),i(!0))}).catch(function(){c(!1)})}},v=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(f({data:n})),i(!0))}).catch(function(){c(!1)})}},b=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(l({data:n})),i(!0))}).catch(function(){c(!1)})}},y=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getDefault(n,t,e).then(function(n){n&&(a(s({data:n})),i(!0))}).catch(function(){c(!1)})}},E=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(f({data:n})),i(!0))}).catch(function(){c(!1)})}},T=function(n,t,e){return function(a,r,i,u){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(c({data:n})),i(!0))}).catch(function(){u(!1)})}},M=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(u({data:n})),i(!0))}).catch(function(){c(!1)})}},A=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(l({data:n})),i(!0))}).catch(function(){c(!1)})}},I=function(n,t,e){return function(a,r,i,c){o.a.ConfigManager.getConfig(n,t,e).then(function(n){n&&(a(s({data:n})),i(!0))}).catch(function(){c(!1)})}},O=function(n,t,e){return function(n,t,a,i){o.a.Storage.instance().then(function(t){o.a.Storage.getDeviceAllInfo(t.result,e).then(function(t){var e;n((e={data:t},{type:r.e,data:e})),a(t)}).catch(function(){i(!1)})}).catch(function(){i(!1)})}},P=function(n,t){return function(e,r,i,c){o.a.ConfigManager.getConfig(n,t).then(function(t){t&&(e(d(Object(a.a)({},n,t))),i(!0))}).catch(function(){c(!1)})}},R=function(n,t){return function(e,a,r,i){o.a.ConfigManager.setConfig(n,t).then(function(n){n&&r(!0)}).catch(function(){i(!1)})}},L=function(n){return function(t,e,a,r){o.a.PtzFunc.detectPtzAbnormal(n).then(function(n){n&&a(!0)}).catch(function(){r(!1)})}},D=function(n){return function(t,e,a,r){o.a.ConfigManager.getConfig(n).then(function(n){n&&(t(p(n)),a(!0))}).catch(function(){r(!1)})}},V=function(n){return function(t,e,a,r){o.a.ConfigManager.getDefault(n).then(function(n){n&&(t(p(n)),a(!0))}).catch(function(){r(!1)})}}},vJEd:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"onDefault",function(){return p}),e.d(t,"refreshforChannel",function(){return u});var a=e("tZYx"),r=e("jcgZ"),o=(e("rGIM"),e("R+FV"));function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(a,c,u,f){return Promise.all([o.p.getConfig(e,"VideoAnalyseGlobal"),o.p.getConfig(e,"VideoAnalyseCalibrate"),o.p.getConfig(e,"VideoAnalyseRule"),o.p.getConfig(e,"MultiSceneRecord"),o.p.getConfig(e,"SceneSnapShotWithRule2"),o.p.getConfig(e,"TrafficImage"),o.p.getConfig(e,"TrafficSnapMosaic2")]).then(function(e){i(a,r.b.IVSTRAFFICILLEGALREGION_INIT,{VideoAnalyseGlobal:e[0],VideoAnalyseCalibrate:e[1],VideoAnalyseRule:e[2],MultiSceneRecord:e[3],SceneSnapShotWithRule2:e[4],TrafficImage:e[5],TrafficSnapMosaic2:e[6],planType:n,sceneType:t}),u()}).catch(function(){f()})}},u=function(){return function(n,t,e,o){var c=t().IVSTrafficIllegalRegionConfig.vm.CurChannel;return Promise.all([a.a.PTZManager("getPresets",c),a.a.VideoInAnalyse.getTemplateGlobal({channel:c}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:c})]).then(function(t){i(n,r.b.IVSTRAFFICILLEGALREGION_SOMEREF,{presets:t[0].presets||[],TemplateGlobal:t[1],TemplateCalibrate:t[2]}),e()}).catch(function(){o()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){i(t,r.b.IVSTRAFFICILLEGALREGION_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){return function(t,e,a,c){var u=e().IVSTrafficIllegalRegionConfig.vm,f=u.VGlobal,l=u.VideoAnalyseCalibrate,s=u.VRule,d=u.MulSceneRec,p=u.SceneSnapShotWithRule2,g=u.TrafficImage,h=u.TrafficSnapMosaic2;o.p.setConfig(n,["VideoAnalyseGlobal","VideoAnalyseCalibrate","VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","TrafficImage","TrafficSnapMosaic2"],[f,l,s,d,p,g,h]).then(function(){i(t,r.b.IVSTRAFFICILLEGALREGION_SAVE),a()}).catch(function(n){c()})}},s=function(n){return function(t,e,c,u){var f=e().IVSTrafficIllegalRegionConfig.vm.CurChannel;return Promise.all([a.a.PTZManager("getPresets",f),o.p.getConfig(n,"VideoAnalyseGlobal"),o.p.getConfig(n,"VideoAnalyseCalibrate"),o.p.getConfig(n,"VideoAnalyseRule"),o.p.getConfig(n,"MultiSceneRecord"),o.p.getConfig(n,"SceneSnapShotWithRule2"),o.p.getConfig(n,"TrafficImage"),o.p.getConfig(n,"TrafficSnapMosaic2")]).then(function(n){i(t,r.b.IVSTRAFFICILLEGALREGION_REFRESH,{Presets:n[0],VideoAnalyseGlobal:n[1],VideoAnalyseCalibrate:n[2],VideoAnalyseRule:n[3],MultiSceneRecord:n[4],SceneSnapShotWithRule2:n[5],TrafficImage:n[6],TrafficSnapMosaic2:n[7]}),c()}).catch(function(){u()})}},d=function(){return function(n){i(n,r.b.IVSTRAFFICILLEGALREGION_CLEAR)}},p=function(){return function(n,t,e,o){return Promise.all([a.a.ConfigManager.getDefault("VideoAnalyseCalibrate"),a.a.ConfigManager.getDefault("VideoAnalyseGlobal")]).then(function(t){i(n,r.b.IVSTRAFFICILLEGALREGION_DEFAULT,{VideoAnalyseCalibrate:t[0],VideoAnalyseGlobal:t[1]}),e()}).catch(function(n){o()})}}},vop1:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"onDefault",function(){return d});var a=e("DjBF"),r=e("tZYx"),o=e("ckrS"),i=e("rGIM");function c(n,t,e){n(Object(o.a)(t,e))}var u=function(){return function(n,t,e,u){Promise.all([r.a.ConfigManager.getConfig("LEDScreen"),i.default.get("PtzCaps")]).then(function(t){var r,i=Object(a.a)(t,2),u=i[0],f=i[1];c(n,o.b.OffSCREENSETTING_INIT,{config:u}),null!==f&&void 0!==f&&null!==(r=f.BackLightCtl)&&void 0!==r&&r.TimeRange&&c(n,o.b.OffSCREENSETTING_INIT,{backLightTimeRange:f.BackLightCtl.TimeRange}),e()}).catch(function(n){return u(n)})}},f=function(n){return function(t,e,a,r){c(t,o.b.OffSCREENSETTING_CHANGE,n),a()}},l=function(){return function(n,t,e,a){c(n,o.b.OffSCREENSETTING_SAVE);var i=t().OffScreenSetting.rpc.config;r.a.ConfigManager.setConfig("LEDScreen",i).then(function(){return e()}).catch(function(n){return a(n)})}},s=function(){return function(n,t,e,a){r.a.ConfigManager.getConfig("LEDScreen").then(function(t){c(n,o.b.OffSCREENSETTING_REFRESH,{config:t}),e()}).catch(function(n){return a(n)})}},d=function(){return function(n,t,e,a){r.a.ConfigManager.getDefault("LEDScreen").then(function(t){c(n,o.b.OffSCREENSETTING_DEFAULT,{config:t}),e()}).catch(function(n){return a(n)})}}},vyqw:function(n,t,e){"use strict";e.d(t,"i",function(){return u}),e.d(t,"b",function(){return s}),e.d(t,"c",function(){return d}),e.d(t,"f",function(){return p}),e.d(t,"d",function(){return g}),e.d(t,"a",function(){return h}),e.d(t,"e",function(){return m}),e.d(t,"g",function(){return C}),e.d(t,"h",function(){return S});var a=e("upjz"),r=e("a1D8"),o=e("yxkQ"),i=e("tZYx"),c=e("rGIM");function u(n){return{type:o.e,data:n}}function f(n){return{type:o.c,data:n}}function l(n){return{type:o.d,data:n}}var s=function(){return function(n,t,e,a){var o=null;i.a.Speak.getCaps().then(function(t){var e=o=t.caps,a=e.MaxUploadFileSize,r=e.MaxUploadFileTime;n(f({MaxUploadFileSize:a,MaxUploadFileTime:r}))}).catch(function(){}).finally(function(){c.default.get("PD").then(function(a){var i=a.AudioFileManager,c={};o&&o.AudioPlayPath?(o.AudioPlayPath.forEach(function(n){n.SupportUpload&&n.Path?(c.uploadPath=n.Path,c.MaxFileUploadNum=n.MaxFileUploadNum||-1):c.rootPath=n.Path}),o.SupportedAudioFormat&&(c.SupportedAudioFormat=o.SupportedAudioFormat.map(function(n){return n.Format.toLocaleLowerCase()}))):(c.rootPath=i.PlayRootPath,c.uploadPath=i.CustomAudioPath),void 0!==i.SupportRecordAudio&&(c.SupportRecordAudio=i.SupportRecordAudio);var u=t().AudioManage.speakCaps;n(f(Object(r.a)({},u,c))),e()})})}},d=function(){return function(n,t,e,r){var o=t().AudioManage.speakCaps,c=i.a.FileManager.list(o.rootPath,0),f=i.a.FileManager.list(o.uploadPath,0),s=i.a.ConfigManager.getConfig("Sound");Promise.all([c,f,s]).then(function(t){var r,o=[],i=[];t[0].elementInfo&&(o=t[0].elementInfo.map(function(n){return n.file.disable=!0,n.file.type=n.type,n.file})),t[1].elementInfo&&(i=t[1].elementInfo.map(function(n){return n.file.type=n.type,n.file})),r=[].concat(Object(a.a)(i),Object(a.a)(o)).filter(function(n){return"File"===n.type}),n(u(r)),t[2]&&t[2].AlarmSound&&n(l(t[2])),e(i)})}},p=function(n){return function(t,e,a,r){var o=e().AudioManage.SoundConfig;o.AlarmSound=n,i.a.ConfigManager.setConfig("Sound",o).then(function(){t(l(o))})}},g=function(n){return function(t,e,a,r){i.a.getSpeak("startPlay",{path:n}).then(function(n){"OK"===n.Status?a():r()}).catch(function(){r()})}},h=function(n){return function(t,e,a,r){i.a.FileManager.remove(n).then(function(){a()}).catch(function(){r()})}},m=function(n,t){return function(e,a,r,o){i.a.FileManager.rename({oldName:n,newName:t}).then(function(){r()}).catch(function(){o()})}},C=function(n,t,e){return function(a,r,o,c){i.a.AudioRecordManager.startChannel(n,t,e).then(function(){o()}).catch(function(n){c(n)})}},S=function(n,t){return function(e,a,r,o){i.a.AudioRecordManager.stopChannel(n,t).then(function(){r()}).catch(function(n){o(n)})}}},wFlw:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"change",function(){return p}),e.d(t,"save",function(){return g}),e.d(t,"refresh",function(){return h}),e.d(t,"onDefault",function(){return m}),e.d(t,"addPtzAutoPan",function(){return C}),e.d(t,"gotoPanPosition",function(){return S}),e.d(t,"setPanGroupScan",function(){return v}),e.d(t,"setPanGroupLimit",function(){return b}),e.d(t,"startPtzAutoPan",function(){return y}),e.d(t,"stopPtzAutoPan",function(){return E}),e.d(t,"getPanGroupLimitState",function(){return T});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("tZYx"),c=e("ohjf"),u=e("R+FV"),f=e("rGIM");function l(n,t,e){n(Object(c.a)(t,e))}var s=function(){return function(n,t,e,a){return Promise.all([i.a.PtzFunc.getPanGroup(),i.a.ConfigManager.getConfig("PanGroupScan"),f.default.get("PtzCaps"),f.default.get("FireWarning"),i.a.PtzFunc.getPanGroupLimitState(0,1),i.a.ConfigManager.getConfig("PtzMovement")]).then(function(t){l(n,c.b.PTZAUTOPANTPCCONFIG_INIT,{PanGroup:t[0].panGroupInfo,PanGroupScan:t[1],PtzCaps:t[2],FireWarning:t[3],PanGroupLimitState:t[4],PtzMovement:t[5]}),e()}).catch(function(n){a()})}},d=function(){return function(n){l(n,c.b.PTZAUTOPANTPCCONFIG_CLEAR)}},p=function(n){return function(t){l(t,c.b.PTZAUTOPANTPCCONFIG_CHANGE,n)}},g=function(n){return function(t,e,a,r){var o=Object(u.g)(n),f=n.Index;delete o.Index,delete o.isEditingName,delete o.isEditingSpeed,delete o.isEditingInterval,delete o.isEditingSensitivity,i.a.PtzFunc.setPanGroup(0,f,o).then(function(){l(t,c.b.PTZAUTOPANTPCCONFIG_SAVE),a()}).catch(function(){r()})}},h=function(){return function(n,t,e,a){return Promise.all([i.a.PtzFunc.getPanGroup(),i.a.ConfigManager.getConfig("PanGroupScan"),i.a.PtzFunc.getPanGroupLimitState(0,1),i.a.ConfigManager.getConfig("PtzMovement")]).then(function(t){l(n,c.b.PTZAUTOPANTPCCONFIG_REFRESH,{PanGroup:t[0].panGroupInfo,PanGroupScan:t[1],PanGroupLimitState:t[2],PtzMovement:t[3]}),e()}).catch(function(){a()})}},m=function(){return function(n,t,e,a){i.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(t){l(n,c.b.PTZAUTOPANTPCCONFIG_DEFAULT,{VideoAnalyseGlobal:t}),e()}).catch(function(n){a()})}},C=function(){return function(n,t,e,a){var r=t(),o=r.PtzAutoPanTPCConfig,i=o.vm,c=o.caps,u=c.PanGruopMax,f=c.DefaultPanSpeed,l=c.DefalutIntervalTime,s=r.publicState.$t;if(i.panGroup.length<u){var d=0;i.panGroup.sort(function(n,t){return n.Index-t.Index});for(var p=0;p<i.panGroup.length;p++)if(i.panGroup[p].Index!==p+1){d=p+1;break}0===d&&(d=i.panGroup.length+1);var g={Index:d,Enable:!0,Name:s("per.Rotation")+d,Speed:f,Interval:l,isEditingName:!1,isEditingSpeed:!1,isEditingInterval:!1,isEditingSensitivity:!1,BorderEnable:0,FocusEnable:0,Sensitivity:0};i.panGroup.splice(d-1,0,g),i.currentRowData=g,i.currentRowIndex=g.Index,e()}else a()}},S=function(n){return function(t,e,a,r){var o=e().PtzAutoPanTPCConfig,c=o.vm,u=o.caps;i.a.PtzFunc.gotoPanPosition(0,n.Index).then(function(){u.IsSupportSingle&&i.a.PtzFunc.getPanGroupLimitState(0,n.Index).then(function(n){c.currentLimitState=n.info[1],a()}).catch(function(n){r()})}).catch(function(n){r()})}},v=function(n){return function(t,e,a,r){var o=n.panGroupMode,c=n.panGroupGlobalMode,u=n.panGroupSpeed,f=n.panGroupInterval,l=n.panGroupFocus,s=e().PtzAutoPanTPCConfig,d=s.vm,p=s.rpc.PanGroupScan;o=void 0!==o?o:d.panGroupMode,c=void 0!==c?c:d.panGroupGlobalMode,u=void 0!==u?u:d.panGroupSpeed,f=void 0!==f?f:d.panGroupInterval,l=void 0!==l?l:d.panGroupFocus,p[0].LimitEnable=0===o&&c||1===o,p[0].LimitMode=o,p[0].Speed=u,p[0].Interval=f,p[0].FocusEnable=l,i.a.ConfigManager.setConfig("PanGroupScan",p).then(function(){d.panGroupMode=p[0].LimitEnable&&1===p[0].LimitMode?1:0,0===p[0].LimitMode&&(d.panGroupGlobalMode=p[0].LimitEnable),d.panGroupSpeed=p[0].Speed,d.panGroupInterval=p[0].Interval,d.panGroupFocus=p[0].FocusEnable,a()}).catch(function(){r()})}},b=function(n,t,e){return function(a,r,o,c){var u=r().PtzAutoPanTPCConfig.vm;i.a.PtzFunc.setPanGroupLimit(n,t,e).then(function(){i.a.PtzFunc.getPanGroupLimitState(n,0===t?1:t).then(function(n){u.globalLimitState=n.info[0],u.currentLimitState=n.info[1],o()}).catch(function(){c()})}).catch(function(){c()})}},y=function(){return function(n,t,e,a){var c=t().PtzAutoPanTPCConfig.vm;i.a.ConfigManager.getConfig("PtzMovement").then(function(){var n=Object(o.a)(r.a.mark(function n(t){return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("Tour"!==t[0].Function){n.next=5;break}return n.next=3,i.a.PTZManager("stopTour",0,{index:t[0].Index+1});case 3:n.next=13;break;case 5:if("Scan"!==t[0].Function){n.next=10;break}return n.next=8,i.a.PTZManager("stopScan",0,{index:t[0].Index+1});case 8:n.next=13;break;case 10:if("Pattern"!==t[0].Function){n.next=13;break}return n.next=13,i.a.PTZManager("stopPatternReplay",0,{index:t[0].Index+1});case 13:return n.next=15,i.a.PTZManager("start",0,{code:"AutoPanOn",arg1:0,arg2:0,arg3:0}).then(function(){c.PtzAutoPanState=!0,e()}).catch(function(){a()});case 15:case"end":return n.stop()}},n)}));return function(t){return n.apply(this,arguments)}}()).catch(function(){a()})}},E=function(){return function(n,t,e,a){var r=t().PtzAutoPanTPCConfig.vm;i.a.PTZManager("start",0,{code:"AutoPanOff",arg1:0,arg2:0,arg3:0}).then(function(){r.PtzAutoPanState=!1,e()}).catch(function(){a()})}},T=function(n,t){return function(e,a,r,o){var c=a().PtzAutoPanTPCConfig.vm;i.a.PtzFunc.getPanGroupLimitState(n,0===t?1:t).then(function(n){c.globalLimitState=n.info[0],c.currentLimitState=n.info[1],r()}).catch(function(){o()})}}},wJdm:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return c}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"refresh",function(){return s}),e.d(t,"clear",function(){return d}),e.d(t,"getEventLink",function(){return p}),e.d(t,"refreshforChannel",function(){return u});var a=e("tZYx"),r=e("pNrf"),o=e("R+FV");function i(n,t,e){n(Object(r.a)(t,e))}var c=function(n,t,e){return function(a,c,u,f){o.p.getConfig(e,["VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","VideoAnalyseCalibrate","VideoAnalyseGlobal","TrafficImage","TrafficSnapMosaic2"]).then(function(e){i(a,r.b.SDTRAFFICVEHICLERULECONFIGURATION_INIT,{VideoAnalyseRule:e[0].params.table,MultiSceneRecord:e[1].params.table,SceneSnapShotWithRule2:e[2].params.table,VideoAnalyseCalibrate:e[3].params.table,VideoAnalyseGlobal:e[4].params.table,planType:n,TrafficImage:e[5].params.table,TrafficSnapMosaic2:e[6].params.table,sceneType:t}),u()}).catch(function(){f()})}},u=function(){return function(n,t,e,o){var c=t().SDTrafficVehicleRuleConfiguration.vm,u=c.CurChannel,f=c.sceneType;return Promise.all([a.a.VideoInAnalyse.getTemplateRule({channel:u,class:f}),a.a.VideoInAnalyse.getTemplatePresetRecord({Channel:u}),a.a.VideoInAnalyse.getTemplateSceneSnapShotWithRule2({Channel:u,Class:f,RuleType:"All"}),a.a.VideoInAnalyse.getTemplateCalibrate({Channel:u}),a.a.PTZManager("getPresets",u),a.a.VideoInAnalyse.getTemplatePresetImage({Channel:u}),a.a.VideoInAnalyse.getTemplateTrafficSnapMosaic2({Channel:u})]).then(function(t){i(n,r.b.SDTRAFFICVEHICLERULECONFIGURATION_SOMEREF,{TemplateRule:t[0],TemplatePresetRecord:t[1],TemplateSceneSnapShotWithRule2:t[2],TemplateCalibrate:t[3],presets:t[4].presets||[],TemplatePresetImage:t[5],TemplateTrafficSnapMosaic2:t[6]}),e()}).catch(function(){o()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){i(t,r.b.SDTRAFFICVEHICLERULECONFIGURATION_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){return function(t,e,a,c){var u=e().SDTrafficVehicleRuleConfiguration.vm,f=u.VRule,l=u.MulSceneRec,s=u.SceneSnapShotWithRule2,d=u.VideoAnalyseGlobal,p=u.VideoAnalyseCalibrate,g=u.TrafficImage,h=u.TrafficSnapMosaic2;o.p.setConfig(n,["SceneSnapShotWithRule2","MultiSceneRecord","VideoAnalyseRule","VideoAnalyseGlobal","VideoAnalyseCalibrate","TrafficImage","TrafficSnapMosaic2"],[s,l,f,d,p,g,h]).then(function(n){Object(o.f)(n)?(i(t,r.b.SDTRAFFICVEHICLERULECONFIGURATION_SAVE),a()):c()}).catch(function(n){c()})}},s=function(n){return function(t,e,c,u){var f=e().SDTrafficVehicleRuleConfiguration.vm.CurChannel;return Promise.all([o.p.getConfig(n,["VideoAnalyseRule","MultiSceneRecord","SceneSnapShotWithRule2","VideoAnalyseCalibrate","VideoAnalyseGlobal","TrafficImage","TrafficSnapMosaic2"]),a.a.PTZManager("getPresets",f)]).then(function(n){i(t,r.b.SDTRAFFICVEHICLERULECONFIGURATION_REFRESH,{VideoAnalyseRule:n[0][0].params.table,MultiSceneRecord:n[0][1].params.table,SceneSnapShotWithRule2:n[0][2].params.table,VideoAnalyseCalibrate:n[0][3].params.table,VideoAnalyseGlobal:n[0][4].params.table,Presets:n[1],TrafficImage:n[0][5].params.table,TrafficSnapMosaic2:n[0][6].params.table}),c()}).catch(function(){u()})}},d=function(){return function(n){i(n,r.b.SDTRAFFICVEHICLERULECONFIGURATION_CLEAR)}},p=function(n){return function(t,e,o,c){for(var u=Math.ceil(n.length/8),f=[],l=[],s=0;s<u;s++)f[s]=n.slice(8*s,8*(s+1)),l.push(a.a.EventManager.getEventLink({code:f[s]}));return Promise.all(l).then(function(n){i(t,r.b.SDTRAFFICVEHICLERULECONFIGURATION_GETEVENTLINK,{EventLink:n||[]}),o()}).catch(function(){c()})}}},whf6:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return u}),e.d(t,"change",function(){return f}),e.d(t,"save",function(){return l}),e.d(t,"clear",function(){return s}),e.d(t,"onDefault",function(){return d});var a=e("tZYx"),r=e("ea/5"),o=e("R+FV"),i=e("a61M");function c(n,t,e){n(Object(r.a)(t,e))}var u=function(n,t,e){return function(a,u,f,l){var s=u().publicState.$t,d=[];return Promise.all([o.p.getConfig(e,"TrafficIllegalSnapMode")]).then(function(e){n.forEach(function(n,e){(i.default.ChannelCapsInfo[n-0].SupportedScenes[t].SupportRealTimeSnapMode||i.default.ChannelCapsInfo[n-0].SupportedScenes[t].SupportGroupingSnapMode)&&d.push({value:n-0,text:Object(o.w)(s,n-0)})}),c(a,r.b.IVSTRAFFICILLEGALADVANCEDSET_INIT,{TrafficIllegalSnapMode:e[0],PageChannels:d,CurChannel:d.length>0?d[0].value:0,ClassType:t}),f()}).catch(function(){l()})}},f=function(n){return function(t,e,a,o){return Promise.all([]).then(function(){c(t,r.b.IVSTRAFFICILLEGALADVANCEDSET_CHANGE,n),a()}).catch(function(){o()})}},l=function(n){return function(t,e,a,i){var u=e().TrafficIllegalAdvancedSet.vm.TrafficIllegalSnapMode;o.p.setConfig(n,"TrafficIllegalSnapMode",u).then(function(){c(t,r.b.IVSTRAFFICILLEGALADVANCEDSET_SAVE),a()}).catch(function(n){i()})}},s=function(){return function(n){c(n,r.b.IVSTRAFFICILLEGALADVANCEDSET_CLEAR)}},d=function(){return function(n,t,e,o){a.a.ConfigManager.getDefault("TrafficIllegalSnapMode").then(function(t){c(n,r.b.IVSTRAFFICILLEGALADVANCEDSET_DEFAULT,{TrafficIllegalSnapMode:t}),e()}).catch(function(n){o()})}}},wohp:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return i}),e.d(t,"clear",function(){return c}),e.d(t,"change",function(){return u}),e.d(t,"save",function(){return f}),e.d(t,"refresh",function(){return l}),e.d(t,"onDefault",function(){return s});var a=e("tZYx"),r=e("LQAk");function o(n,t,e){n(Object(r.a)(t,e))}var i=function(n){return function(t,e,a,i){o(t,r.b.SPLICE_SETTING_INIT,n)}},c=function(){return function(n){o(n,r.b.SPLICE_SETTING_CLEAR)}},u=function(n){return function(t,e,a,i){o(t,r.b.SPLICE_SETTING_CHANGE,n),a(!0)}},f=function(){return function(n,t,e,i){var c=t().SystemSpliceSetting.vm.mode;o(n,r.b.SPLICE_SETTING_SAVE),a.a.MultiVideo.changeSpliceMode({State:c}).then(function(n){e()}).catch(function(){i()})}},l=i,s=function(){return function(n,t,e,a){}}},wwrT:function(n,t,e){"use strict";e.r(t),e.d(t,"getDescript",function(){return s}),e.d(t,"checkAuthCode",function(){return d}),e.d(t,"userNameChange",function(){return p}),e.d(t,"dynamicVerifyChange",function(){return g}),e.d(t,"getFactoryMode",function(){return m}),e.d(t,"init",function(){return c}),e.d(t,"clear",function(){return f}),e.d(t,"cancel",function(){return l}),e.d(t,"save",function(){return u}),e.d(t,"refresh",function(){return h});var a=e("tZYx"),r=e("mmhC"),o=e("TEr5");function i(n,t,e){n(Object(r.a)(t,e))}e.d(t,"setAdvanceState",function(){return o.c}),e.d(t,"setCurKey",function(){return o.e}),e.d(t,"setPanelArr",function(){return o.r}),e.d(t,"setRouteKeepAlive",function(){return o.s});var c=function(){return function(n,t,e,a){}},u=function(){return function(n,t,e,o){i(n,r.b.ADVANCEVERIFY_SAVE);var c=t().AdvanceVerify.rpc;return Promise.all([a.a.ConfigManager.setConfig("Language",c.Language)]).then(function(){e()}).catch(function(){o()})}},f=function(){return function(n){i(n,r.b.ADVANCEVERIFY_CLEAR)}},l=function(){return function(n){i(n,r.b.ADVANCEVERIFY_CANCEL)}},s=function(n){return function(t,e,o,c){return a.a.ThermographyManager.getDescript(n).then(function(n){i(t,r.b.MACHINESET_GETDESCRIPT,n.QRCode),o()}).catch(function(){c()})}},d=function(n){return function(t,e,o,c){return a.a.ThermographyManager.checkAuthCode(n).then(function(n){i(t,r.b.MACHINESET_CHECKAUTHCODE,n.RetCode),o()}).catch(function(){c()})}},p=function(n){return function(t){i(t,r.b.MACHINESET_USERNAME,n)}},g=function(n){return function(t){i(t,r.b.MACHINESET_DYNAMICVERIFYCODE,n)}},h=c,m=function(){return function(n,t,e,r){a.a.ThermographyManager.getFactoryMode().then(function(n){e(n)}).catch(function(){r(!1)})}}},x2tC:function(n,t,e){"use strict";e.d(t,"c",function(){return r}),e.d(t,"a",function(){return o}),e.d(t,"b",function(){return i});var a=e("3G2E");function r(n){return{type:a.a,data:n}}function o(n){return{type:a.b,data:n}}function i(n){return{type:a.c,data:n}}},xWX4:function(n,t,e){n.exports=e.p+"static/media/icon-splice.9dfac08d.png"},yBp8:function(n,t,e){"use strict";e.d(t,"i",function(){return d}),e.d(t,"j",function(){return p}),e.d(t,"h",function(){return g}),e.d(t,"b",function(){return h}),e.d(t,"k",function(){return m}),e.d(t,"d",function(){return C}),e.d(t,"a",function(){return S}),e.d(t,"f",function(){return v}),e.d(t,"e",function(){return b}),e.d(t,"c",function(){return y}),e.d(t,"g",function(){return E});var a=e("upjz"),r=e("a1D8"),o=e("DjBF"),i=e("vGmG"),c=e("rGIM"),u=e("a61M"),f=e("tZYx"),l=e("LvDl"),s=e.n(l);function d(n){return{type:i.a,data:n}}var p=function(){return function(n,t,e,a){var r=t().IntelliParking.currentChannel;t().IntelliParking.ClassType=u.default.AIConfig_reflect("IntelliParking",r);var i=t().IntelliParking,f=i.ClassType,l=i.cfgName,p=i.supportLocalWord,g=i.supportSnapVehicle,h=i.supportParkingSplice,m=i.supportSnapOsd;Promise.all([c.default.getIVSCaps(u.default.CHANNEL_NUMBER),c.default.get("PD")]).then(function(t){var a=Object(o.a)(t,2),r=a[0],i=a[1],c=r.SupportedScenes[f],u=r.MaxRules,C=Math.floor((c.MaxRules-1)/3),S=Math.min(u,C);p=!!s.a.get(r,["SupportedScenes",f,"SupportedSceneParams","SupportLocalWord"]),g=!!s.a.get(r,["SupportedScenes",f,"ParkingSpaceParam","SnapVehicleEnable"]),h=!!s.a.get(r,["SupportedScenes",f,"ParkingSpaceParam","SupportParkingSplice"]),m=!!i[f].SupportOSDEnable,n(d({ivsCaps:r,maxRules:S,cfgName:l,supportLocalWord:p,supportSnapVehicle:g,supportParkingSplice:h,supportSnapOsd:m})),e(!0)}).catch(function(n){e(!1)})}},g=function(){return function(n,t,e,a){var o=t().IntelliParking,i=o.cfgName,c=o.parkingRules,u=o.eventHandler,l=o.currentChannel,s=o.ClassType,p=o.ruleTemp;f.a.ConfigManager.getConfig(i).then(function(t){var a={};t.forEach(function(n,t){a[i[t]]=n.params.table}),c=[],(u=null)||(u=Object(r.a)({},p.ParkingLimitDetection.EventHandler)),a.VideoAnalyseRule[l].forEach(function(n){n.Class===s&&"ParkingStatusChangeDetection"===n.Type&&c.push(n)}),a.VideoAnalyseRule[l].forEach(function(n){n.Class===s&&("ParkingLimitDetection"===n.Type?c.forEach(function(t){t.Name===n.Name&&(t.ThresholdEnable=n.Enable,t.EventHandler=n.EventHandler,t.Config.ParkingGroup.forEach(function(t){t.ThresholdType=n.Config.ParkingGroup[0].ThresholdType,t.ThresholdVal=n.Config.ParkingGroup[0].ThresholdVal}))}):"ParkingLotStatusDetection"===n.Type&&c.forEach(function(t){t.Name===n.Name&&(t.lotStatusEnable=n.Enable,t.Config.ReportInterval=n.Config.ReportInterval)}))}),n(d({cfgMap:a,parkingRules:c,eventHandler:u,parkingCount:c.length||null,seletedRow:0})),e(!0)}).catch(function(n){e(!1)})}},h=function(){return function(n,t,e,a){var r=t().IntelliParking,o=r.cfgName,i=r.cfgMap,c=r.parkingRules,u=r.eventHandler,l=r.currentChannel,s=r.ClassType,p=r.ruleTemp,g=r.supportLocalWord,h=r.supportSnapVehicle;f.a.ConfigManager.getDefault(o).then(function(t){o.forEach(function(n,e){var a=t[e].params.table;switch(n){case"VideoAnalyseRule":var r=i.VideoAnalyseRule[l].filter(function(n){return n.Class&&n.Class!==s}),o=a[l].filter(function(n){return n.Class===s});i.VideoAnalyseRule[l]=r.concat(o),c=[],u=JSON.parse(JSON.stringify(p.ParkingLimitDetection.EventHandler)),i.VideoAnalyseRule[l].forEach(function(n){n.Class===s&&"ParkingStatusChangeDetection"===n.Type&&c.push(n)}),i.VideoAnalyseRule[l].forEach(function(n){n.Class===s&&("ParkingLimitDetection"===n.Type?c.forEach(function(t){t.Name===n.Name&&(t.ThresholdEnable=n.Enable,t.EventHandler=n.EventHandler,t.Config.ParkingGroup.forEach(function(t){t.ThresholdType=n.Config.ParkingGroup[0].ThresholdType,t.ThresholdVal=n.Config.ParkingGroup[0].ThresholdVal}))}):"ParkingLotStatusDetection"===n.Type&&c.forEach(function(t){t.Name===n.Name&&(t.lotStatusEnable=n.Enable,t.Config.ReportInterval=n.Config.ReportInterval)}))});break;case"VideoAnalyseModule":a[l].some(function(n,t){if(n.Type===s)return i.VideoAnalyseModule[l][t]=n,!0});break;case"VideoAnalyseGlobal":g&&(i.VideoAnalyseGlobal[l].Scene.Detail.PlateHints=a[l].Scene.Detail.PlateHints),h&&(i.VideoAnalyseGlobal[l].Scene.Detail.SnapOverlayObjRect.SnapVehicleEnable=a[l].Scene.Detail.SnapOverlayObjRect.SnapVehicleEnable)}}),n(d({cfgMap:i,parkingRules:c,eventHandler:u,parkingCount:c.length||null,seletedRow:0})),e(!0)}).catch(function(n){e(!1)})}},m=function(){return function(n,t,e,a){var r=t().IntelliParking,o=r.ClassType,i=r.currentChannel;f.a.VideoInAnalyse.getTemplateRule({channel:i,class:o}).then(function(t){var a=t[o];a.ParkingStatusChangeDetection.Config||(a.ParkingStatusChangeDetection.Config={}),n(d({ruleTemp:a})),e(!0)}).catch(function(n){e(!1)})}};function C(n,t,e){var a,r,o,i,c=[],u=[[5120,6144],[3072,6144],[3072,2048],[5120,2048]],f=[[2048,6144],[2048,2048],[6144,2048],[6144,6144]];return 2===n?(e&&(u=e),a=u[0],r=u[1],u[2],o=u[3],i=(o[1]-a[1])/t,c=new Array(t).fill(null).map(function(n,t){return[[a[0],a[1]+Math.round(t*i)],[r[0],r[1]+Math.round(t*i)],[r[0],r[1]+Math.round((t+1)*i)],[a[0],a[1]+Math.round((t+1)*i)]]})):1===n&&(e&&(f=e),a=f[0],r=f[1],f[2],o=f[3],i=(o[0]-a[0])/t,c=new Array(t).fill(null).map(function(n,t){return[[a[0]+Math.round(t*i),a[1]],[r[0]+Math.round(t*i),r[1]],[r[0]+Math.round((t+1)*i),r[1]],[a[0]+Math.round((t+1)*i),a[1]]]})),c}var S=function(){return function(n,t,e,r){var o=t().IntelliParking,i=o.ClassType,c=o.currentChannel,u=o.cfgMap,f=(o.parkingCount,o.parkingRules),l=o.ruleTemp,p=null,g=C(1,1);(p=s.a.cloneDeep(l.ParkingStatusChangeDetection)).Enable=l.ParkingStatusChangeDetection.Enable,p.ThresholdEnable=l.ParkingLimitDetection.Enable,p.lotStatusEnable=l.ParkingLotStatusDetection.Enable,p.Name=function(n,t,e){var a=[],r=new RegExp("(^P)(\\d*)$"),o=0;n.forEach(function(n){n.Class!==e&&(o=r.exec(n.Name))&&void 0!==o[2]&&!a.includes(o[2]-0)&&a.push(o[2]-0)}),t.forEach(function(n){(o=r.exec(n.Name.split("_")[0]))&&void 0!==o[2]&&!a.includes(o[2]-0)&&a.push(o[2]-0)}),a.sort(function(n,t){return n-t});var i=1;return a.length&&(i=a[a.length-1]+1),a.some(function(n,t){if(n-t>1)return i=t+1,!0}),"P"+i}(u.VideoAnalyseRule[c],f,i),p.EventHandler=s.a.cloneDeep(l.ParkingLimitDetection.EventHandler),p.Config.ReportInterval=l.ParkingLotStatusDetection.Config.ReportInterval,p.Config.ParkingGroup.forEach(function(n){var t=l.ParkingLimitDetection.Config.ParkingGroup;n.RealParkingNum=1,n.ThresholdType=t&&t[0]&&t[0].ThresholdType||0,n.ThresholdVal=t&&t[0]&&t[0].ThresholdVal||5,n.ParkingArray=[{ID:0,Name:p.Name+"_1_1",Region:g[0]}]}),p.Id=function(n){for(var t=n.map(function(n){return n.Id}),e=1;t.includes(e);)e++;return e}(f),n(d({parkingRules:f=[].concat(Object(a.a)(f),[p]),seletedRow:f.length-1})),e(!0)}},v=function(){return function(n,t,e,a){if(u.default.EventCaps){var o=t().IntelliParking.linkEvent;f.a.EventManager.getEventLink({code:["ParkingStatusChangeDetection"]}).then(function(t){o=Object(r.a)({},u.default.EventCaps,u.default.DefaultEvent),t.name.forEach(function(n,t){n.forEach(function(n,t){"default"===n?o=u.default.EventCaps:o[n]=!0})}),n(d({linkEvent:o})),e(!0)}).catch(function(t){n(d({linkEvent:u.default.EventCaps})),e(!0)})}else e(!1)}},b=function(){return function(n,t,e,a){f.a.ConfigManager.getConfig("VideoAnalyseGlobal").then(function(t){n(d({VideoAnalyseGlobal:t})),e(!0)}).catch(function(n){e(!1)})}},y=function(){return function(n,t,e,a){f.a.ConfigManager.getDefault("VideoAnalyseGlobal").then(function(a){var o=t().IntelliParking,i=o.VideoAnalyseGlobal,c=o.currentChannel;o.cfgMap,o.parkingCount,o.parkingRules,o.ruleTemp;i[c].Scene.Detail.Confidence=a[c].Scene.Detail.Confidence,n(d({VideoAnalyseGlobal:Object(r.a)({},i)})),e(!0)}).catch(function(n){e(!1)})}},E=function(){return function(n,t,e,a){var r=t().IntelliParking.VideoAnalyseGlobal;f.a.ConfigManager.setConfig("VideoAnalyseGlobal",r).then(function(n){e(!0)}).catch(function(n){e(!1)})}}},zJll:function(n,t,e){"use strict";e.r(t),e.d(t,"init",function(){return d}),e.d(t,"change",function(){return p}),e.d(t,"refresh",function(){return g}),e.d(t,"save",function(){return h}),e.d(t,"clear",function(){return C}),e.d(t,"onDefault",function(){return m}),e.d(t,"getPD",function(){return S});var a=e("jQsN"),r=e.n(a),o=e("butC"),i=e("a1D8"),c=e("tZYx"),u=e("zY3A"),f=e("rGIM"),l=e("a61M");e("R+FV");function s(n,t,e){n(Object(u.a)(t,e))}var d=function(){return function(n,t,e,a){var r,o=t().PowerConsModeConfig.vm.PDSleepingControl,f=[c.a.ConfigManager.getConfig(["SleepingControl","BatteryLowPowerAlarm"]),c.a.EventManager.getEventLink({code:["SleepingControlEvent"]})];null!==o&&void 0!==o&&null!==(r=o.SleepingStatistics)&&void 0!==r&&r.Support&&f.push(c.a.SleepingControl.getStatistics()),Promise.all(f).then(function(t){var a,r=t[0],o=Object(i.a)({},l.default.EventCaps,l.default.DefaultEvent);t[1]&&t[1].name.forEach(function(n,t){n.forEach(function(n,t){"default"===n?o=l.default.EventCaps:o[n]=!0})}),o.PtzLinkRelation="Alarm",s(n,u.b.POWERCONSMODECONFIG_INIT,{SleepingControl:r[0].params.table,BatteryLowPowerAlarm:r[1].result&&r[1].params.table,EventLink:o||{},SleepingStatistics:(null===(a=t[2])||void 0===a?void 0:a.SleepingTimeStatistics)||{}}),e()}).catch(function(){s(n,u.b.POWERCONSMODECONFIG_INIT,{SleepingControl:[],EventLink:{},SleepingStatistics:{}}),a()})}},p=function(n){return function(t,e,a,r){s(t,u.b.POWERCONSMODECONFIG_CHANGE,n)}},g=function(n){return function(){var t=Object(o.a)(r.a.mark(function t(e,a,o,i){var f,l,d,p,g,h,m,C,S;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=a(),d=l.PowerConsModeConfig.vm,p=d.Channel,g=d.SleepingControl,h=d.EventLink,m=d.PDSleepingControl,C=null,null===m||void 0===m||null===(f=m.SleepingStatistics)||void 0===f||!f.Support){t.next=6;break}return t.next=5,c.a.SleepingControl.getStatistics();case 5:C=t.sent;case 6:S=["SleepingControl","BatteryLowPowerAlarm"],c.a.ConfigManager.getConfig(S).then(function(t){var a;"TimeSec"===n?g.TimingWakeUp.TimeSection.AwakeSection=t[0].params.table.TimingWakeUp.TimeSection.AwakeSection:g=t[0].params.table,s(e,u.b.POWERCONSMODECONFIG_INIT,{SleepingControl:g,BatteryLowPowerAlarm:t[1].result&&t[1].params.table,SleepingStatistics:(null===(a=C)||void 0===a?void 0:a.SleepingTimeStatistics)||{},Channel:p,EventLink:h}),o()}).catch(function(){s(e,u.b.POWERCONSMODECONFIG_INIT,{SleepingControl:[],EventLink:h,Channel:p}),i()});case 8:case"end":return t.stop()}},t)}));return function(n,e,a,r){return t.apply(this,arguments)}}()},h=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,a,r,o){1===t&&s(e,u.b.POWERCONSMODECONFIG_SAVE,n);var i=a().PowerConsModeConfig,f=i.rpc.SleepingControl,l=i.vm,d=l.SleepingControl,p=l.supportBatteryLowPower,g=l.BatteryLowPowerAlarm,h=["SleepingControl"],m=[1===t?d:f];p&&(h.push("BatteryLowPowerAlarm"),m.push(g)),c.a.ConfigManager.setConfig(h,m).then(function(n){n.forEach(function(n){!1===n.result&&o()}),r()}).catch(function(n){o()})}},m=function(n){return function(t,e,a,r){var o=e().PowerConsModeConfig.vm,i=o.SleepingControl,f=o.supportBatteryLowPower,l=o.BatteryLowPowerAlarm,d=o.EventLink,p=[c.a.ConfigManager.getDefault("SleepingControl")];return f&&p.push(c.a.ConfigManager.getDefault("BatteryLowPowerAlarm")),Promise.all(p).then(function(e){if(i.Enable=e[0].Enable,"TimeSec"===n)i.Mode=e[0].Mode,i.TimingWakeUp.TimeSection.AwakeSection=e[0].TimingWakeUp.TimeSection.AwakeSection;else if("WakeUp"===n){var r;i.TimingWakeUp.TimePointSchedules=e[0].TimingWakeUp.TimePointSchedules,null!==i&&void 0!==i&&null!==(r=i.TimingWakeUp)&&void 0!==r&&r.KeepAwakeTime&&(i.TimingWakeUp.KeepAwakeTime=e[0].TimingWakeUp.KeepAwakeTime)}else"PowerOther"===n&&(i.ShortMessage=e[0].ShortMessage);f&&(l.Enable=e[1].Enable,l.Percent=e[1].Percent),s(t,u.b.POWERCONSMODECONFIG_INIT,{SleepingControl:i,BatteryLowPowerAlarm:l,EventLink:d}),a()}).catch(function(n){r()})}},C=function(){return function(n){s(n,u.b.POWERCONSMODECONFIG_CLEAR)}},S=function(){return function(n,t,e,a){var r=t().PowerConsModeConfig.vm;f.default.get("PD").then(function(t){var a=[];t&&t.SleepingControl&&t.SleepingControl.WakeUpModeList&&(a=t.SleepingControl.WakeUpModeList),r.wakeUpModeList=a,r.PDSleepingControl=t.SleepingControl,s(n,u.b.POWERCONSMODECONFIG_CHANGE,r),e()}),c.a.FaceBoard.instance().then(function(t){c.a.FaceBoard.getCaps(t.result).then(function(t){var e=t.caps;e&&e.HasBattery&&(r.supportBatteryLowPower=!0),s(n,u.b.POWERCONSMODECONFIG_CHANGE,r)}).catch(function(){})}).catch(function(n){})}}},zb6d:function(n,t,e){n.exports=e.p+"static/media/label_fail.4f48821c.png"}}]);