camera.ui
Version:
NVR like user interface for RTSP capable cameras.
1 lines • 406 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["console"],{"0d3b":function(e,t,r){var i=r("d039"),n=r("b622"),o=r("c430"),s=n("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),r+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},1655:function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"console",attrs:{id:"terminal"}})},n=[],o=r("1da1");r("96cf"),r("ac1f"),r("1276"),r("5319"),r("4de4"),r("d3b7"),r("159b"),r("caad"),r("2532"),r("a15b");function s({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function a(e){if("string"!==typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(s(),"")}var c=r("fcf3"),l=r("47d0"),h=r("56d7"),u=r("ea1b"),f={name:"Console",props:{terminal:{type:Object,default:function(){return{}}},filter:{type:Array,default:function(){return[]}}},data:function(){return{fitAddon:null,term:null,fullLog:[]}},sockets:{clearLog:function(){var e;this.fullLog=[],null===(e=this.term)||void 0===e||e.clear()},logMessage:function(e){this.fullLog.push(e),this.writeMessage(e)}},mounted:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,i,n,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=document.getElementById("log"),e.term=new c["Terminal"](e.terminal),e.fitAddon=new l["FitAddon"],null===(r=e.term)||void 0===r||r.loadAddon(e.fitAddon),null===(i=e.term)||void 0===i||i.open(o),e.term._initialized=!0,null===(n=e.fitAddon)||void 0===n||n.fit(),t.next=9,Object(u["f"])();case 9:s=t.sent,e.fullLog=s.data.replace(/[\n]+/g,"\r\n").split("\r\n"),e.writeMessage(e.fullLog),h["bus"].$on("extendSidebar",e.triggerSidebar),window.addEventListener("orientationchange",e.resizeHandler),window.addEventListener("resize",e.resizeHandler),e.$watch("filter",e.watchFilter,{deep:!0});case 16:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){var e,t;h["bus"].$off("extendSidebar",this.triggerSidebar),window.removeEventListener("orientationchange",this.resizeHandler),window.removeEventListener("resize",this.resizeHandler),null===(e=this.term)||void 0===e||e.dispose(),null===(t=this.fitAddon)||void 0===t||t.dispose(),this.term=null,this.fitAddon=null},methods:{resizeHandler:function(){var e=this;setTimeout((function(){var t;return null===(t=e.fitAddon)||void 0===t?void 0:t.fit()}),500)},triggerSidebar:function(){var e=this;setTimeout((function(){var t;return null===(t=e.fitAddon)||void 0===t?void 0:t.fit()}),500)},writeMessage:function(e){var t=this;Array.isArray(e)||(e=[e+"\r\n"]);var r=function(e){var r,i;null===(r=t.term)||void 0===r||r.write(e),null===(i=t.fitAddon)||void 0===i||i.fit(),setTimeout((function(){var e;null===(e=t.term)||void 0===e||e.scrollToBottom()}),100)};this.filter.length?e.forEach((function(e){var i=a(e);t.filter.some((function(e){return i.toLowerCase().includes(e.toLowerCase())}))&&r(e+"\r\n")})):r(e.join("\r\n"))},watchFilter:function(){var e;null===(e=this.term)||void 0===e||e.clear(),this.writeMessage(this.fullLog)}}},d=f,p=r("2877"),_=Object(p["a"])(d,i,n,!1,null,null,null);t["a"]=_.exports},"2b3d":function(e,t,r){r("4002")},"2b5d":function(e,t,r){"use strict";var i=r("53ca"),n=r("5530"),o=(r("d3b7"),r("25f0"),r("7db0"),r("8a79"),r("fb6a"),r("b0c0"),r("caad"),r("2532"),r("c740"),r("a434"),r("2bfd"),r("b974")),s=(r("d81d"),r("4de4"),r("498a"),r("8654")),a=r("d9f7"),c=r("80d2"),l=Object(n["a"])(Object(n["a"])({},o["b"]),{},{offsetY:!0,offsetOverflow:!0,transition:!1}),h=o["a"].extend({name:"v-autocomplete",props:{allowOverflow:{type:Boolean,default:!0},autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:function(e,t,r){return r.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},hideNoData:Boolean,menuProps:{type:o["a"].options.props.menuProps.type,default:function(){return l}},noFilter:Boolean,searchInput:{type:String}},data:function(){return{lazySearch:this.searchInput}},computed:{classes:function(){return Object(n["a"])(Object(n["a"])({},o["a"].options.computed.classes.call(this)),{},{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var e=this;return this.selectedItems.map((function(t){return e.getValue(t)}))},hasDisplayedItems:function(){var e=this;return this.hideSelected?this.filteredItems.some((function(t){return!e.hasItem(t)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems:function(){var e=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(t){var r=Object(c["s"])(t,e.itemText),i=null!=r?String(r):"";return e.filter(t,String(e.internalSearch),i)}))},internalSearch:{get:function(){return this.lazySearch},set:function(e){this.lazySearch!==e&&(this.lazySearch=e,this.$emit("update:search-input",e))}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var e=o["a"].options.computed.$_menuProps.call(this);return e.contentClass="v-autocomplete__content ".concat(e.contentClass||"").trim(),Object(n["a"])(Object(n["a"])({},l),e)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var e=this;return this.multiple?null:this.selectedItems.find((function(t){return e.valueComparator(e.getValue(t),e.getValue(e.internalValue))}))},listData:function(){var e=o["a"].options.computed.listData.call(this);return e.props=Object(n["a"])(Object(n["a"])({},e.props),{},{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),e}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused:function(e){e?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.blur(),this.updateSelf())},isMenuActive:function(e){!e&&this.hasSlot&&(this.lazySearch=null)},items:function(e,t){t&&t.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!e.length||this.activateMenu()},searchInput:function(e){this.lazySearch=e},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created:function(){this.setSearch()},destroyed:function(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged:function(e,t){var r=this;if(e!==t){if(!this.autoSelectFirst){var i=t[this.$refs.menu.listIndex];i?this.setMenuIndex(e.findIndex((function(e){return e===i}))):this.setMenuIndex(-1),this.$emit("update:list-index",this.$refs.menu.listIndex)}this.$nextTick((function(){r.internalSearch&&(1===e.length||r.autoSelectFirst)&&(r.$refs.menu.getTiles(),r.autoSelectFirst&&e.length&&(r.setMenuIndex(0),r.$emit("update:list-index",r.$refs.menu.listIndex)))}))}},onInternalSearchChanged:function(){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(e){this.searchIsDirty||(this.multiple&&e===c["z"].left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&e===c["z"].right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:e!==c["z"].backspace&&e!==c["z"].delete||this.deleteCurrentItem())},deleteCurrentItem:function(){var e=this.selectedIndex,t=this.selectedItems[e];if(this.isInteractive&&!this.getDisabled(t)){var r=this.selectedItems.length-1;if(-1!==this.selectedIndex||0===r){var i=this.selectedItems.length,n=e!==i-1?e:e-1,o=this.selectedItems[n];o?this.selectItem(t):this.setValue(this.multiple?[]:null),this.selectedIndex=n}else this.selectedIndex=r}},clearableCallback:function(){this.internalSearch=null,o["a"].options.methods.clearableCallback.call(this)},genInput:function(){var e=s["a"].options.methods.genInput.call(this);return e.data=Object(a["a"])(e.data,{attrs:{"aria-activedescendant":Object(c["q"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(c["q"])(e.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),e},genInputSlot:function(){var e=o["a"].options.methods.genInputSlot.call(this);return e.data.attrs.role="combobox",e},genSelections:function(){return this.hasSlot||this.multiple?o["a"].options.methods.genSelections.call(this):[]},onClick:function(e){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(e.target)||this.activateMenu())},onInput:function(e){if(!(this.selectedIndex>-1)&&e.target){var t=e.target,r=t.value;t.value&&this.activateMenu(),this.multiple||""!==r||this.deleteCurrentItem(),this.internalSearch=r,this.badInput=t.validity&&t.validity.badInput}},onKeyDown:function(e){var t=e.keyCode;!e.ctrlKey&&[c["z"].home,c["z"].end].includes(t)||o["a"].options.methods.onKeyDown.call(this,e),this.changeSelectedIndex(t)},onSpaceDown:function(e){},onTabDown:function(e){o["a"].options.methods.onTabDown.call(this,e),this.updateSelf()},onUpDown:function(e){e.preventDefault(),this.activateMenu()},selectItem:function(e){o["a"].options.methods.selectItem.call(this,e),this.setSearch()},setSelectedItems:function(){o["a"].options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var e=this;this.$nextTick((function(){e.multiple&&e.internalSearch&&e.isMenuActive||(e.internalSearch=!e.selectedItems.length||e.multiple||e.hasSlot?null:e.getText(e.selectedItem))}))},updateSelf:function(){(this.searchIsDirty||this.internalValue)&&(this.multiple||this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(e){return this.selectedValues.indexOf(this.getValue(e))>-1},onCopy:function(e){var t,r;if(-1!==this.selectedIndex){var i=this.selectedItems[this.selectedIndex],n=this.getText(i);null==(t=e.clipboardData)||t.setData("text/plain",n),null==(r=e.clipboardData)||r.setData("text/vnd.vuetify.autocomplete.item+plain",n),e.preventDefault()}}}});t["a"]=h.extend({name:"v-combobox",props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return o["a"].options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)},searchIsDirty:function(){return null!=this.internalSearch}},methods:{onInternalSearchChanged:function(e){if(e&&this.multiple&&this.delimiters.length){var t=this.delimiters.find((function(t){return e.endsWith(t)}));null!=t&&(this.internalSearch=e.slice(0,e.length-t.length),this.updateTags())}this.updateMenuDimensions()},genInput:function(){var e=h.options.methods.genInput.call(this);return delete e.data.attrs.name,e.data.on.paste=this.onPaste,e},genChipSelection:function(e,t){var r=this,i=o["a"].options.methods.genChipSelection.call(this,e,t);return this.multiple&&(i.componentOptions.listeners=Object(n["a"])(Object(n["a"])({},i.componentOptions.listeners),{},{dblclick:function(){r.editingIndex=t,r.internalSearch=r.getText(e),r.selectedIndex=-1}})),i},onChipInput:function(e){o["a"].options.methods.onChipInput.call(this,e),this.editingIndex=-1},onEnterDown:function(e){e.preventDefault(),this.getMenuIndex()>-1||this.$nextTick(this.updateSelf)},onKeyDown:function(e){var t=e.keyCode;!e.ctrlKey&&[c["z"].home,c["z"].end].includes(t)||o["a"].options.methods.onKeyDown.call(this,e),this.multiple&&t===c["z"].left&&0===this.$refs.input.selectionStart?this.updateSelf():t===c["z"].enter&&this.onEnterDown(e),this.changeSelectedIndex(t)},onTabDown:function(e){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return e.preventDefault(),e.stopPropagation(),this.updateTags();h.options.methods.onTabDown.call(this,e)},selectItem:function(e){this.editingIndex>-1?this.updateEditing():(h.options.methods.selectItem.call(this,e),this.internalSearch&&this.multiple&&this.getText(e).toLocaleLowerCase().includes(this.internalSearch.toLocaleLowerCase())&&(this.internalSearch=null))},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(e){o["a"].options.methods.setValue.call(this,void 0===e?this.internalSearch:e)},updateEditing:function(){var e=this,t=this.internalValue.slice(),r=this.selectedItems.findIndex((function(t){return e.getText(t)===e.internalSearch}));if(r>-1){var n="object"===Object(i["a"])(t[r])?Object.assign({},t[r]):t[r];t.splice(r,1),t.push(n)}else t[this.editingIndex]=this.internalSearch;this.setValue(t),this.editingIndex=-1,this.internalSearch=null},updateCombobox:function(){if(this.searchIsDirty){this.internalSearch!==this.getText(this.internalValue)&&this.setValue();var e=Boolean(this.$scopedSlots.selection)||this.hasChips;e&&(this.internalSearch=null)}},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var e=this,t=this.getMenuIndex();if(!(t<0&&!this.searchIsDirty||!this.internalSearch)){if(this.editingIndex>-1)return this.updateEditing();var r=this.selectedItems.findIndex((function(t){return e.internalSearch===e.getText(t)})),n=r>-1&&"object"===Object(i["a"])(this.selectedItems[r])?Object.assign({},this.selectedItems[r]):this.internalSearch;if(r>-1){var o=this.internalValue.slice();o.splice(r,1),this.setValue(o)}if(t>-1)return this.internalSearch=null;this.selectItem(n),this.internalSearch=null}},onPaste:function(e){var t;if(this.multiple&&!this.searchIsDirty){var r=null==(t=e.clipboardData)?void 0:t.getData("text/vnd.vuetify.autocomplete.item+plain");r&&-1===this.findExistingIndex(r)&&(e.preventDefault(),o["a"].options.methods.selectItem.call(this,r))}},clearableCallback:function(){this.editingIndex=-1,h.options.methods.clearableCallback.call(this)}}})},"2bfd":function(e,t,r){},4002:function(e,t,r){"use strict";r("3ca3");var i,n=r("23e7"),o=r("83ab"),s=r("0d3b"),a=r("da84"),c=r("0366"),l=r("e330"),h=r("37e8").f,u=r("6eeb"),f=r("19aa"),d=r("1a2d"),p=r("60da"),_=r("4df4"),v=r("4dae"),g=r("6547").codeAt,y=r("5fb2"),m=r("577e"),b=r("d44e"),S=r("d6d6"),C=r("5352"),w=r("69f3"),L=w.set,x=w.getterFor("URL"),E=C.URLSearchParams,k=C.getState,R=a.URL,A=a.TypeError,M=a.parseInt,O=Math.floor,D=Math.pow,T=l("".charAt),B=l(/./.exec),P=l([].join),I=l(1..toString),H=l([].pop),j=l([].push),F=l("".replace),U=l([].shift),W=l("".split),q=l("".slice),N=l("".toLowerCase),z=l([].unshift),K="Invalid authority",V="Invalid scheme",G="Invalid host",X="Invalid port",Y=/[a-z]/i,$=/[\d+-.a-z]/i,Z=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,se=function(e){var t,r,i,n,o,s,a,c=W(e,".");if(c.length&&""==c[c.length-1]&&c.length--,t=c.length,t>4)return e;for(r=[],i=0;i<t;i++){if(n=c[i],""==n)return e;if(o=10,n.length>1&&"0"==T(n,0)&&(o=B(J,n)?16:8,n=q(n,8==o?1:2)),""===n)s=0;else{if(!B(10==o?ee:8==o?Q:te,n))return e;s=M(n,o)}j(r,s)}for(i=0;i<t;i++)if(s=r[i],i==t-1){if(s>=D(256,5-t))return null}else if(s>255)return null;for(a=H(r),i=0;i<r.length;i++)a+=r[i]*D(256,3-i);return a},ae=function(e){var t,r,i,n,o,s,a,c=[0,0,0,0,0,0,0,0],l=0,h=null,u=0,f=function(){return T(e,u)};if(":"==f()){if(":"!=T(e,1))return;u+=2,l++,h=l}while(f()){if(8==l)return;if(":"!=f()){t=r=0;while(r<4&&B(te,f()))t=16*t+M(f(),16),u++,r++;if("."==f()){if(0==r)return;if(u-=r,l>6)return;i=0;while(f()){if(n=null,i>0){if(!("."==f()&&i<4))return;u++}if(!B(Z,f()))return;while(B(Z,f())){if(o=M(f(),10),null===n)n=o;else{if(0==n)return;n=10*n+o}if(n>255)return;u++}c[l]=256*c[l]+n,i++,2!=i&&4!=i||l++}if(4!=i)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;c[l++]=t}else{if(null!==h)return;u++,l++,h=l}}if(null!==h){s=l-h,l=7;while(0!=l&&s>0)a=c[l],c[l--]=c[h+s-1],c[h+--s]=a}else if(8!=l)return;return c},ce=function(e){for(var t=null,r=1,i=null,n=0,o=0;o<8;o++)0!==e[o]?(n>r&&(t=i,r=n),i=null,n=0):(null===i&&(i=o),++n);return n>r&&(t=i,r=n),t},le=function(e){var t,r,i,n;if("number"==typeof e){for(t=[],r=0;r<4;r++)z(t,e%256),e=O(e/256);return P(t,".")}if("object"==typeof e){for(t="",i=ce(e),r=0;r<8;r++)n&&0===e[r]||(n&&(n=!1),i===r?(t+=r?":":"::",n=!0):(t+=I(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},he={},ue=p({},he,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=p({},ue,{"#":1,"?":1,"{":1,"}":1}),de=p({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(e,t){var r=g(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},_e={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var r;return 2==e.length&&B(Y,T(e,0))&&(":"==(r=T(e,1))||!t&&"|"==r)},ge=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2==e.length||"/"===(t=T(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===N(e)},me=function(e){return e=N(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},be={},Se={},Ce={},we={},Le={},xe={},Ee={},ke={},Re={},Ae={},Me={},Oe={},De={},Te={},Be={},Pe={},Ie={},He={},je={},Fe={},Ue={},We=function(e,t,r){var i,n,o,s=m(e);if(t){if(n=this.parse(s),n)throw A(n);this.searchParams=null}else{if(void 0!==r&&(i=new We(r,!0)),n=this.parse(s,null,i),n)throw A(n);o=k(new E),o.bindURL(this),this.searchParams=o}};We.prototype={type:"URL",parse:function(e,t,r){var n,o,s,a,c=this,l=t||be,h=0,u="",f=!1,p=!1,g=!1;e=m(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=F(e,ne,"")),e=F(e,oe,""),n=_(e);while(h<=n.length){switch(o=n[h],l){case be:if(!o||!B(Y,o)){if(t)return V;l=Ce;continue}u+=N(o),l=Se;break;case Se:if(o&&(B($,o)||"+"==o||"-"==o||"."==o))u+=N(o);else{if(":"!=o){if(t)return V;u="",l=Ce,h=0;continue}if(t&&(c.isSpecial()!=d(_e,u)||"file"==u&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=u,t)return void(c.isSpecial()&&_e[c.scheme]==c.port&&(c.port=null));u="","file"==c.scheme?l=Te:c.isSpecial()&&r&&r.scheme==c.scheme?l=we:c.isSpecial()?l=ke:"/"==n[h+1]?(l=Le,h++):(c.cannotBeABaseURL=!0,j(c.path,""),l=je)}break;case Ce:if(!r||r.cannotBeABaseURL&&"#"!=o)return V;if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=v(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ue;break}l="file"==r.scheme?Te:xe;continue;case we:if("/"!=o||"/"!=n[h+1]){l=xe;continue}l=Re,h++;break;case Le:if("/"==o){l=Ae;break}l=He;continue;case xe:if(c.scheme=r.scheme,o==i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=v(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())l=Ee;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=v(r.path),c.query="",l=Fe;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=v(r.path),c.path.length--,l=He;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=v(r.path),c.query=r.query,c.fragment="",l=Ue}break;case Ee:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=He;continue}l=Ae}else l=Re;break;case ke:if(l=Re,"/"!=o||"/"!=T(u,h+1))continue;h++;break;case Re:if("/"!=o&&"\\"!=o){l=Ae;continue}break;case Ae:if("@"==o){f&&(u="%40"+u),f=!0,s=_(u);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var S=pe(b,de);g?c.password+=S:c.username+=S}else g=!0}u=""}else if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(f&&""==u)return K;h-=_(u).length+1,u="",l=Me}else u+=o;break;case Me:case Oe:if(t&&"file"==c.scheme){l=Pe;continue}if(":"!=o||p){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==u)return G;if(t&&""==u&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(u),a)return a;if(u="",l=Ie,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),u+=o}else{if(""==u)return G;if(a=c.parseHost(u),a)return a;if(u="",l=De,t==Oe)return}break;case De:if(!B(Z,o)){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=u){var C=M(u,10);if(C>65535)return X;c.port=c.isSpecial()&&C===_e[c.scheme]?null:C,u=""}if(t)return;l=Ie;continue}return X}u+=o;break;case Te:if(c.scheme="file","/"==o||"\\"==o)l=Be;else{if(!r||"file"!=r.scheme){l=He;continue}if(o==i)c.host=r.host,c.path=v(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=v(r.path),c.query="",l=Fe;else{if("#"!=o){ge(P(v(n,h),""))||(c.host=r.host,c.path=v(r.path),c.shortenPath()),l=He;continue}c.host=r.host,c.path=v(r.path),c.query=r.query,c.fragment="",l=Ue}}break;case Be:if("/"==o||"\\"==o){l=Pe;break}r&&"file"==r.scheme&&!ge(P(v(n,h),""))&&(ve(r.path[0],!0)?j(c.path,r.path[0]):c.host=r.host),l=He;continue;case Pe:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ve(u))l=He;else if(""==u){if(c.host="",t)return;l=Ie}else{if(a=c.parseHost(u),a)return a;if("localhost"==c.host&&(c.host=""),t)return;u="",l=Ie}continue}u+=o;break;case Ie:if(c.isSpecial()){if(l=He,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=i&&(l=He,"/"!=o))continue}else c.fragment="",l=Ue;else c.query="",l=Fe;break;case He:if(o==i||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(me(u)?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||j(c.path,"")):ye(u)?"/"==o||"\\"==o&&c.isSpecial()||j(c.path,""):("file"==c.scheme&&!c.path.length&&ve(u)&&(c.host&&(c.host=""),u=T(u,0)+":"),j(c.path,u)),u="","file"==c.scheme&&(o==i||"?"==o||"#"==o))while(c.path.length>1&&""===c.path[0])U(c.path);"?"==o?(c.query="",l=Fe):"#"==o&&(c.fragment="",l=Ue)}else u+=pe(o,fe);break;case je:"?"==o?(c.query="",l=Fe):"#"==o?(c.fragment="",l=Ue):o!=i&&(c.path[0]+=pe(o,he));break;case Fe:t||"#"!=o?o!=i&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":pe(o,he)):(c.fragment="",l=Ue);break;case Ue:o!=i&&(c.fragment+=pe(o,ue));break}h++}},parseHost:function(e){var t,r,i;if("["==T(e,0)){if("]"!=T(e,e.length-1))return G;if(t=ae(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),B(re,e))return G;if(t=se(e),null===t)return G;this.host=t}else{if(B(ie,e))return G;for(t="",r=_(e),i=0;i<r.length;i++)t+=pe(r[i],he);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(_e,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,i=e.password,n=e.host,o=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==n?(l+="//",e.includesCredentials()&&(l+=r+(i?":"+i:"")+"@"),l+=le(n),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+P(s,"/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new qe(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(m(e)+":",be)},getUsername:function(){return this.username},setUsername:function(e){var t=_(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pe(t[r],de)}},getPassword:function(){return this.password},setPassword:function(e){var t=_(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pe(t[r],de)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Me)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getPort:function(){var e=this.port;return null===e?"":m(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=m(e),""==e?this.port=null:this.parse(e,De))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+P(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=m(e),""==e?this.query=null:("?"==T(e,0)&&(e=q(e,1)),this.query="",this.parse(e,Fe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=m(e),""!=e?("#"==T(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qe=function(e){var t=f(this,Ne),r=S(arguments.length,1)>1?arguments[1]:void 0,i=L(t,new We(e,!1,r));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Ne=qe.prototype,ze=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&h(Ne,{href:ze("serialize","setHref"),origin:ze("getOrigin"),protocol:ze("getProtocol","setProtocol"),username:ze("getUsername","setUsername"),password:ze("getPassword","setPassword"),host:ze("getHost","setHost"),hostname:ze("getHostname","setHostname"),port:ze("getPort","setPort"),pathname:ze("getPathname","setPathname"),search:ze("getSearch","setSearch"),searchParams:ze("getSearchParams"),hash:ze("getHash","setHash")}),u(Ne,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),u(Ne,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),R){var Ke=R.createObjectURL,Ve=R.revokeObjectURL;Ke&&u(qe,"createObjectURL",c(Ke,R)),Ve&&u(qe,"revokeObjectURL",c(Ve,R))}b(qe,"URL"),n({global:!0,forced:!s,sham:!o},{URL:qe})},"47d0":function(e,t,r){!function(t,r){e.exports=r()}(self,(function(){return(()=>{"use strict";var e={775:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0;var r=function(){function e(){}return e.prototype.activate=function(e){this._terminal=e},e.prototype.dispose=function(){},e.prototype.fit=function(){var e=this.proposeDimensions();if(e&&this._terminal){var t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}},e.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var e=this._terminal._core;if(0!==e._renderService.dimensions.actualCellWidth&&0!==e._renderService.dimensions.actualCellHeight){var t=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(t.getPropertyValue("height")),i=Math.max(0,parseInt(t.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),o=r-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),s=i-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-e.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(s/e._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(o/e._renderService.dimensions.actualCellHeight))}}}},e}();t.FitAddon=r}},t={};return function r(i){if(t[i])return t[i].exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}(775)})()}))},"4add":function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return v})),r.d(t,"f",(function(){return g})),r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return b})),r.d(t,"g",(function(){return S})),r.d(t,"i",(function(){return C})),r.d(t,"j",(function(){return w})),r.d(t,"k",(function(){return L})),r.d(t,"l",(function(){return x})),r.d(t,"m",(function(){return E})),r.d(t,"h",(function(){return k}));var i=r("1da1"),n=(r("99af"),r("96cf"),r("365c")),o="/cameras",s="motion/start",a="motion/reset",c="prebuffering/restart",l="prebuffering/stop",h="settings",u="snapshot",f="status",d="videoanalysis/restart",p="videoanalysis/stop",_=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].post(o,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o).concat(t||""));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(t,"/").concat(h));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(t,"/").concat(u).concat(r||""));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),b=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(t,"/").concat(f,"?timeout=").concat(r||1));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),S=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].delete("".concat(o,"/").concat(t,"/"));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(c));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(d));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(s));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(l));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(p));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].put("".concat(o,"/").concat(t,"/").concat(a));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},5352:function(e,t,r){"use strict";r("e260");var i=r("23e7"),n=r("da84"),o=r("c65b"),s=r("e330"),a=r("83ab"),c=r("0d3b"),l=r("6eeb"),h=r("e2cc"),u=r("d44e"),f=r("9ed3"),d=r("69f3"),p=r("19aa"),_=r("1626"),v=r("1a2d"),g=r("0366"),y=r("f5df"),m=r("825a"),b=r("861d"),S=r("577e"),C=r("7c73"),w=r("5c6c"),L=r("9a1f"),x=r("35a1"),E=r("d6d6"),k=r("b622"),R=r("addb"),A=k("iterator"),M="URLSearchParams",O=M+"Iterator",D=d.set,T=d.getterFor(M),B=d.getterFor(O),P=Object.getOwnPropertyDescriptor,I=function(e){if(!a)return n[e];var t=P(n,e);return t&&t.value},H=I("fetch"),j=I("Request"),F=I("Headers"),U=j&&j.prototype,W=F&&F.prototype,q=n.RegExp,N=n.TypeError,z=n.decodeURIComponent,K=n.encodeURIComponent,V=s("".charAt),G=s([].join),X=s([].push),Y=s("".replace),$=s([].shift),Z=s([].splice),J=s("".split),Q=s("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return z(e)}catch(t){return e}},ne=function(e){var t=Y(e,ee," "),r=4;try{return z(t)}catch(i){while(r)t=Y(t,re(r--),ie);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return se[e]},ce=function(e){return Y(K(e),oe,ae)},le=f((function(e,t){D(this,{type:O,iterator:L(T(e).entries),kind:t})}),"Iterator",(function(){var e=B(this),t=e.kind,r=e.iterator.next(),i=r.value;return r.done||(r.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),r}),!0),he=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?Q(e,1):e:S(e)))};he.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,i,n,s,a,c,l=x(e);if(l){t=L(e,l),r=t.next;while(!(i=o(r,t)).done){if(n=L(m(i.value)),s=n.next,(a=o(s,n)).done||(c=o(s,n)).done||!o(s,n).done)throw N("Expected sequence with length 2");X(this.entries,{key:S(a.value),value:S(c.value)})}}else for(var h in e)v(e,h)&&X(this.entries,{key:h,value:S(e[h])})},parseQuery:function(e){if(e){var t,r,i=J(e,"&"),n=0;while(n<i.length)t=i[n++],t.length&&(r=J(t,"="),X(this.entries,{key:ne($(r)),value:ne(G(r,"="))}))}},serialize:function(){var e,t=this.entries,r=[],i=0;while(i<t.length)e=t[i++],X(r,ce(e.key)+"="+ce(e.value));return G(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ue=function(){p(this,fe);var e=arguments.length>0?arguments[0]:void 0;D(this,new he(e))},fe=ue.prototype;if(h(fe,{append:function(e,t){E(arguments.length,2);var r=T(this);X(r.entries,{key:S(e),value:S(t)}),r.updateURL()},delete:function(e){E(arguments.length,1);var t=T(this),r=t.entries,i=S(e),n=0;while(n<r.length)r[n].key===i?Z(r,n,1):n++;t.updateURL()},get:function(e){E(arguments.length,1);for(var t=T(this).entries,r=S(e),i=0;i<t.length;i++)if(t[i].key===r)return t[i].value;return null},getAll:function(e){E(arguments.length,1);for(var t=T(this).entries,r=S(e),i=[],n=0;n<t.length;n++)t[n].key===r&&X(i,t[n].value);return i},has:function(e){E(arguments.length,1);var t=T(this).entries,r=S(e),i=0;while(i<t.length)if(t[i++].key===r)return!0;return!1},set:function(e,t){E(arguments.length,1);for(var r,i=T(this),n=i.entries,o=!1,s=S(e),a=S(t),c=0;c<n.length;c++)r=n[c],r.key===s&&(o?Z(n,c--,1):(o=!0,r.value=a));o||X(n,{key:s,value:a}),i.updateURL()},sort:function(){var e=T(this);R(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,r=T(this).entries,i=g(e,arguments.length>1?arguments[1]:void 0),n=0;while(n<r.length)t=r[n++],i(t.value,t.key,this)},keys:function(){return new le(this,"keys")},values:function(){return new le(this,"values")},entries:function(){return new le(this,"entries")}},{enumerable:!0}),l(fe,A,fe.entries,{name:"entries"}),l(fe,"toString",(function(){return T(this).serialize()}),{enumerable:!0}),u(ue,M),i({global:!0,forced:!c},{URLSearchParams:ue}),!c&&_(F)){var de=s(W.has),pe=s(W.set),_e=function(e){if(b(e)){var t,r=e.body;if(y(r)===M)return t=e.headers?new F(e.headers):new F,de(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(e,{body:w(0,S(r)),headers:w(0,t)})}return e};if(_(H)&&i({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?_e(arguments[1]):{})}}),_(j)){var ve=function(e){return p(this,U),new j(e,arguments.length>1?_e(arguments[1]):{})};U.constructor=ve,ve.prototype=U,i({global:!0,forced:!0,noTargetGet:!0},{Request:ve})}}e.exports={URLSearchParams:ue,getState:T}},"5fb2":function(e,t,r){"use strict";var i=r("da84"),n=r("e330"),o=2147483647,s=36,a=1,c=26,l=38,h=700,u=72,f=128,d="-",p=/[^\0-\u007E]/,_=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",g=s-a,y=i.RangeError,m=n(_.exec),b=Math.floor,S=String.fromCharCode,C=n("".charCodeAt),w=n([].join),L=n([].push),x=n("".replace),E=n("".split),k=n("".toLowerCase),R=function(e){var t=[],r=0,i=e.length;while(r<i){var n=C(e,r++);if(n>=55296&&n<=56319&&r<i){var o=C(e,r++);56320==(64512&o)?L(t,((1023&n)<<10)+(1023&o)+65536):(L(t,n),r--)}else L(t,n)}return t},A=function(e){return e+22+75*(e<26)},M=function(e,t,r){var i=0;e=r?b(e/h):e>>1,e+=b(e/t);while(e>g*c>>1)e=b(e/g),i+=s;return b(i+(g+1)*e/(e+l))},O=function(e){var t=[];e=R(e);var r,i,n=e.length,l=f,h=0,p=u;for(r=0;r<e.length;r++)i=e[r],i<128&&L(t,S(i));var _=t.length,g=_;_&&L(t,d);while(g<n){var m=o;for(r=0;r<e.length;r++)i=e[r],i>=l&&i<m&&(m=i);var C=g+1;if(m-l>b((o-h)/C))throw y(v);for(h+=(m-l)*C,l=m,r=0;r<e.length;r++){if(i=e[r],i<l&&++h>o)throw y(v);if(i==l){var x=h,E=s;while(1){var k=E<=p?a:E>=p+c?c:E-p;if(x<k)break;var O=x-k,D=s-k;L(t,S(A(k+O%D))),x=b(O/D),E+=s}L(t,S(A(x))),p=M(h,C,g==_),h=0,g++}}h++,l++}return w(t,"")};e.exports=function(e){var t,r,i=[],n=E(x(k(e),_,"."),".");for(t=0;t<n.length;t++)r=n[t],L(i,m(p,r)?"xn--"+O(r):r);return w(i,".")}},9861:function(e,t,r){r("5352")},b839:function(e,t,r){},bb23:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.loading?r("div",{staticClass:"tw-flex tw-justify-center tw-items-center page-loading"},[r("v-progress-circular",{attrs:{indeterminate:"",color:"var(--cui-primary)"}})],1):r("div",{staticClass:"tw-relative"},[r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.hideFilter,include:e.include},expression:"{ handler: hideFilter, include: include }"}],ref:"filterButton",staticClass:"filter-button",on:{click:e.toggleFilter}},[r("v-icon",{attrs:{size:"20",color:"white"}},[e._v(e._s(e.filterOpened?e.icons["mdiChevronUp"]:e.icons["mdiChevronDown"]))])],1),r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.hideFilter,include:e.include},expression:"{ handler: hideFilter, include: include }"}],ref:"filter",staticClass:"filter tw-flex tw-items-center tw-p-2"},[r("span",[e._v(e._s(e.$t("filter")))]),r("v-combobox",{staticClass:"tw-ml-3 selector",attrs:{"background-color":"var(--cui-bg-card)","no-data-text":e.$t("no_data_available"),items:e.filterData,"item-value":"key","item-text":"key","search-input":e.search,"prepend-inner-icon":"mdi-filter","hide-selected":"",label:"...",multiple:"","small-chips":"","deletable-chips":"",dense:"","hide-details":"",solo:""},on:{"update:searchInput":function(t){e.search=t},"update:search-input":function(t){e.search=t}},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[r("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiFilter"]))])]},proxy:!0},e.search?{key:"no-data",fn:function(){return[r("v-list-item",[r("v-list-item-content",[r("v-list-item-title",[r("span",[e._v(e._s(e.$t("no_label_matching"))+" ")]),r("strong",[e._v('"'+e._s(e.search)+'"')]),r("span",[e._v(". "+e._s(e.$t("press_enter_to_create").split(" %")[0])+" ")]),r("kbd",[e._v(e._s(e.$t("press_enter_to_create").split(" %")[1].split("% ")[0]))]),r("span",[e._v(" "+e._s(e.$t("press_enter_to_create").split("% ")[1])+" ")])])],1)],1)]},proxy:!0}:null],null,!0),model:{value:e.selectedFilter,callback:function(t){e.selectedFilter=t},expression:"selectedFilter"}})],1),r("div",{staticClass:"console-container tw-relative"},[r("div",{staticClass:"tw-relative tw-h-full",attrs:{id:"log"}},[r("div",{staticClass:"utils tw-flex tw-justify-between tw-items-center"},[r("div",{staticClass:"remove-btn tw-block tw-ml-auto"},[r("v-btn",{staticClass:"tw-text-white tw-mr-1",attrs:{fab:"",height:"40px",width:"40px",color:"rgba(var(--cui-primary-rgb))",loading:e.loadingRemove},on:{click:e.onRemove}},[r("v-icon",{staticClass:"tw-text-white"},[e._v(e._s(e.icons["mdiDeleteEmpty"]))])],1)],1),r("div",{staticClass:"dl-btn tw-block tw-ml-1"},[r("v-btn",{staticClass:"tw-text-white tw-mr-1",attrs:{fab:"",height:"40px",width:"40px",color:"rgba(var(--cui-primary-rgb))",loading:e.loadingDownload},on:{click:e.onDownload}},[r("v-icon",{staticClass:"tw-text-white"},[e._v(e._s(e.icons["mdiDownload"]))])],1)],1),e.showShare?r("div",{staticClass:"share-btn tw-block tw-ml-1"},[r("v-btn",{staticClass:"tw-text-white tw-mr-1",attrs:{fab:"",height:"40px",width:"40px",color:"rgba(var(--cui-primary-rgb))",loading:e.loadingShare},on:{click:e.onShare}},[r("v-icon",{staticClass:"tw-text-white"},[e._v(e._s(e.icons["mdiShareVariant"]))])],1)],1):e._e()]),r("my-terminal",{ref:"xterm",attrs:{terminal:e.terminal,filter:e.selectedFilter}})],1)]),r("LightBox",{ref:"lightboxBanner",attrs:{media:e.notImages,showLightBox:!1,showThumbs:!1,showCaption:"",disableScroll:""}})],1)},n=[],o=r("2909"),s=r("1da1"),a=(r("96cf"),r("d3b7"),r("159b"),r("b0c0"),r("99af"),r("4de4"),r("3ca3"),r("ddb0"),r("2b3d"),r("9861"),r("9c77")),c=r.n(a),l=(r("2363"),r("94ed")),h=r("4add"),u=r("ea1b"),f=r("00c2"),d=r("1655"),p={name:"Console",components:{LightBox:c.a,"my-terminal":d["a"]},mixins:[f["a"]],beforeRouteLeave:function(e,t,r){this.loading=!0,r()},data:function(){return{icons:{mdiChevronDown:l["w"],mdiChevronUp:l["z"],mdiDeleteEmpty:l["M"],mdiDownload:l["Q"],mdiFilter:l["U"],mdiShareVariant:l["Fb"]},filterData:["HTTP","FTP","SMTP","MQTT","Videoanalysis"],search:null,selectedFilter:[],loading:!0,loadingDownload:!1,loadingRemove:!1,loadingShare:!1,showShare:!0,terminal:{pid:1,name:"terminal"},filterOpened:!1}},created:function(){this.showShare=!!navigator.share},mounted:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(h["f"])();case 2:r=t.sent,r.data.result.forEach((function(t){e.filterData.push(t.name)})),e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},methods:{include:function(){return[].concat(Object(o["a"])(document.querySelectorAll(".filter-button")),Object(o["a"])(document.querySelectorAll(".filter")),Object(o["a"])(document.querySelectorAll(".v-menu__content")))},hideFilter:function(){var e,t;this.filterOpened&&(this.filterOpened=!1,null===(e=this.$refs.filter)||void 0===e||e.classList.remove("filter-open"),null===(t=this.$refs.filterButton)||void 0===t||t.classList.remove("filter-button-open"))},onDownload:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loadingDownload=!0,t.prev=1,t.next=4,Object(u["b"])();case 4:r=t.sent,i=window.URL.createObjectURL(new Blob([r.data])),n=document.createElement("a"),n.href=i,n.setAttribute("download","camera.ui.log.txt"),document.body.appendChild(n),n.click(),n.remove(),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](1),console.log(t.t0),e.$toast.error(t.t0.message);case 18:e.loadingDownload=!1;case 19:case"end":return t.stop()}}),t,null,[[1,14]])})))()},onRemove:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loadingRemove=!0,t.prev=1,t.next=4,Object(u["h"])();case 4:t.next=10;break;case 6:t.prev=6,t.t0=t["catch"](1),console.log(t.t0),e.$toast.error(t.t0.message);case 10:e.loadingRemove=!1;case 11:case"end":return t.stop()}}),t,null,[[1,6]])})))()},onShare:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loadingShare=!0,t.prev=1,t.next=4,Object(u["b"])();case 4:r=t.sent,i=new Blob([r.data],{type:"text/plain"}),n={title:e.$t("log"),text:"".concat(e.$t("log")," - ").concat(new Date),files:[new File([i],"camera.ui.log.txt",{type:i.type})]},navigator.share(n).catch((function(t){"Abort due to cancellation of share."!==(null===t||void 0===t?void 0:t.message)&&(console.log(t),e.$toast.error(t.message))})),t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log(t.t0),e.$toast.error(t.t0.message);case 14:e.loadingShare=!1;case 15:case"end":return t.stop()}}),t,null,[[1,10]])})))()},toggleFilter:function(){var e,t,r,i;this.filterOpened?(null===(e=this.$refs.filter)||void 0===e||e.classList.remove("filter-open"),null===(t=this.$refs.filterButton)||void 0===t||t.classList.remove("filter-button-open")):(null===(r=this.$refs.filter)||void 0===r||r.classList.add("filter-open"),null===(i=this.$refs.filterButton)||void 0===i||i.classList.add("filter-button-open"));this.filterOpened=!this.filterOpened}}},_=p,v=(r("e5a6"),r("2877")),g=r("6544"),y=r.n(g),m=r("8336"),b=r("2b5d"),S=r("132d"),C=r("da13"),w=r("5d23"),L=r("490a"),x=r("269a"),E=r.n(x),k=r("a293"),R=Object(v["a"])(_,i,n,!1,null,"11c8648e",null);t["default"]=R.exports;y()(R,{VBtn:m["a"],VCombobox:b["a"],VIcon:S["a"],VListItem:C["a"],VListItemContent:w["a"],VListItemTitle:w["c"],VProgressCircular:L["a"]}),E()(R,{ClickOutside:k["a"]})},e5a6:function(e,t,r){"use strict";r("b839")},ea1b:function(e,t,r){"use strict";r.d(t,"a",(function(){return w})),r.d(t,"b",(function(){return L})),r.d(t,"c",(function(){return x})),r.d(t,"e",(function(){return E})),r.d(t,"d",(function(){return k})),r.d(t,"f",(function(){return R})),r.d(t,"g",(function(){return A})),r.d(t,"h",(function(){return M})),r.d(t,"i",(function(){return O})),r.d(t,"j",(function(){return D})),r.d(t,"k",(function(){return T})),r.d(t,"l",(function(){return B})),r.d(t,"m",(function(){return P})),r.d(t,"n",(function(){return I})),r.d(t,"o",(function(){return H})),r.d(t,"p",(function(){return j})),r.d(t,"q",(function(){return F})),r.d(t,"r",(function(){return U}));var i=r("1da1"),n=(r("99af"),r("96cf"),r("365c")),o="/system",s="changelog",a="disk",c="db",l="db/download",h="ftp/restart",u="ftp/stop",f="http/restart",d="http/stop",p="log",_="log/download",v="mqtt/restart",g="mqtt/stop",y="npm",m="restart",b="smtp/restart",S="smtp/stop",C="update",w=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(l));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(_));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n["a"].get("".concat(o,"/").concat(s).concat(t||""));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=Object(i["a"])(regeneratorRu