@openremote/or-attribute-picker 1.30.0-snapshot.20260902122509 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var ORAttributePicker;(()=>{var __webpack_modules__={3992(d,m,u){"use strict";u.d(m,{O:()=>p});var f=u(9531),p=function(){function d(d,m){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];this.root=d,this.initialize.apply(this,function(){for(var d=[],m=0;m<arguments.length;m++)d=d.concat(function(d,m){var u="function"==typeof Symbol&&d[Symbol.iterator];if(!u)return d;var f,p,h=u.call(d),b=[];try{for(;(void 0===m||m-- >0)&&!(f=h.next()).done;)b.push(f.value)}catch(d){p={error:d}}finally{try{f&&!f.done&&(u=h.return)&&u.call(h)}finally{if(p)throw p.error}}return b}(arguments[m]));return d}(u)),this.foundation=void 0===m?this.getDefaultFoundation():m,this.foundation.init(),this.initialSyncWithDOM()}return d.attachTo=function(m){return new d(m,new f.I({}))},d.prototype.initialize=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m]},d.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},d.prototype.initialSyncWithDOM=function(){},d.prototype.destroy=function(){this.foundation.destroy()},d.prototype.listen=function(d,m,u){this.root.addEventListener(d,m,u)},d.prototype.unlisten=function(d,m,u){this.root.removeEventListener(d,m,u)},d.prototype.emit=function(d,m,u){var f;void 0===u&&(u=!1),"function"==typeof CustomEvent?f=new CustomEvent(d,{bubbles:u,detail:m}):(f=document.createEvent("CustomEvent")).initCustomEvent(d,u,!1,m),this.root.dispatchEvent(f)},d}()},9531(d,m,u){"use strict";var f=function(){function d(d){void 0===d&&(d={}),this.adapter=d}return Object.defineProperty(d,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),d.prototype.init=function(){},d.prototype.destroy=function(){},d}();u.d(m,{I:()=>f})},618(d,m,u){"use strict";var f={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape"},p=new Set;p.add(f.BACKSPACE),p.add(f.ENTER),p.add(f.SPACEBAR),p.add(f.PAGE_UP),p.add(f.PAGE_DOWN),p.add(f.END),p.add(f.HOME),p.add(f.ARROW_LEFT),p.add(f.ARROW_UP),p.add(f.ARROW_RIGHT),p.add(f.ARROW_DOWN),p.add(f.DELETE),p.add(f.ESCAPE);var h=new Map;h.set(8,f.BACKSPACE),h.set(13,f.ENTER),h.set(32,f.SPACEBAR),h.set(33,f.PAGE_UP),h.set(34,f.PAGE_DOWN),h.set(35,f.END),h.set(36,f.HOME),h.set(37,f.ARROW_LEFT),h.set(38,f.ARROW_UP),h.set(39,f.ARROW_RIGHT),h.set(40,f.ARROW_DOWN),h.set(46,f.DELETE),h.set(27,f.ESCAPE);var b=new Set;function g(d){var m=d.key;if(p.has(m))return m;var u=h.get(d.keyCode);return u||f.UNKNOWN}b.add(f.PAGE_UP),b.add(f.PAGE_DOWN),b.add(f.END),b.add(f.HOME),b.add(f.ARROW_LEFT),b.add(f.ARROW_UP),b.add(f.ARROW_RIGHT),b.add(f.ARROW_DOWN),u.d(m,{_:()=>f,l5:()=>g})},9974(d,m,u){"use strict";function f(d,m){if(d.closest)return d.closest(m);for(var u=d;u;){if(p(u,m))return u;u=u.parentElement}return null}function p(d,m){return(d.matches||d.webkitMatchesSelector||d.msMatchesSelector).call(d,m)}function h(d){if(null!==d.offsetParent)return d.scrollWidth;var m=d.cloneNode(!0);m.style.setProperty("position","absolute"),m.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(m);var u=m.scrollWidth;return document.documentElement.removeChild(m),u}u.d(m,{cK:()=>p,et:()=>h,kp:()=>f})},8042(d,m,u){"use strict";var f=u(1387),p=u(3992),h=u(9974),b=u(5448),g=u(6714),v=function(d){function m(){return null!==d&&d.apply(this,arguments)||this}return(0,f.C6)(m,d),Object.defineProperty(m.prototype,"vertical",{set:function(d){this.foundation.setVerticalOrientation(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+b.Y7.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"wrapFocus",{set:function(d){this.foundation.setWrapFocus(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hasTypeahead",{set:function(d){this.foundation.setHasTypeahead(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"singleSelection",{set:function(d){this.foundation.setSingleSelection(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(d){this.foundation.setSelectedIndex(d)},enumerable:!0,configurable:!0}),m.attachTo=function(d){return new m(d)},m.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},m.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},m.prototype.layout=function(){var d=this.root.getAttribute(b.P$.ARIA_ORIENTATION);this.vertical=d!==b.P$.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(d){d.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(b.P$.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(d){return d.setAttribute("tabindex","-1")}),this.foundation.layout()},m.prototype.getPrimaryText=function(d){var m=d.querySelector("."+b.Y7.LIST_ITEM_PRIMARY_TEXT_CLASS);if(m)return m.textContent||"";var u=d.querySelector("."+b.Y7.LIST_ITEM_TEXT_CLASS);return u&&u.textContent||""},m.prototype.initializeListType=function(){var d=this,m=this.root.querySelectorAll(b.P$.ARIA_ROLE_CHECKBOX_SELECTOR),u=this.root.querySelector(b.P$.ARIA_CHECKED_RADIO_SELECTOR);if(m.length){var f=this.root.querySelectorAll(b.P$.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(f,function(m){return d.listElements.indexOf(m)})}else u&&(this.selectedIndex=this.listElements.indexOf(u))},m.prototype.setEnabled=function(d,m){this.foundation.setEnabled(d,m)},m.prototype.typeaheadMatchItem=function(d,m){return this.foundation.typeaheadMatchItem(d,m,!0)},m.prototype.getDefaultFoundation=function(){var d=this;return new g.Y({addClassForElementIndex:function(m,u){var f=d.listElements[m];f&&f.classList.add(u)},focusItemAtIndex:function(m){var u=d.listElements[m];u&&u.focus()},getAttributeForElementIndex:function(m,u){return d.listElements[m].getAttribute(u)},getFocusedElementIndex:function(){return d.listElements.indexOf(document.activeElement)},getListItemCount:function(){return d.listElements.length},getPrimaryTextAtIndex:function(m){return d.getPrimaryText(d.listElements[m])},hasCheckboxAtIndex:function(m){return!!d.listElements[m].querySelector(b.P$.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(m){return!!d.listElements[m].querySelector(b.P$.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(m){return d.listElements[m].querySelector(b.P$.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return d.root!==document.activeElement&&d.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===d.root},listItemAtIndexHasClass:function(m,u){return d.listElements[m].classList.contains(u)},notifyAction:function(m){d.emit(b.P$.ACTION_EVENT,{index:m},!0)},removeClassForElementIndex:function(m,u){var f=d.listElements[m];f&&f.classList.remove(u)},setAttributeForElementIndex:function(m,u,f){var p=d.listElements[m];p&&p.setAttribute(u,f)},setCheckedCheckboxOrRadioAtIndex:function(m,u){var f=d.listElements[m].querySelector(b.P$.CHECKBOX_RADIO_SELECTOR);f.checked=u;var p=document.createEvent("Event");p.initEvent("change",!0,!0),f.dispatchEvent(p)},setTabIndexForListItemChildren:function(m,u){var f=d.listElements[m];[].slice.call(f.querySelectorAll(b.P$.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(d){return d.setAttribute("tabindex",u)})}})},m.prototype.getListItemIndex_=function(d){var m=d.target,u=(0,h.kp)(m,"."+b.Y7.LIST_ITEM_CLASS+", ."+b.Y7.ROOT);return u&&(0,h.cK)(u,"."+b.Y7.LIST_ITEM_CLASS)?this.listElements.indexOf(u):-1},m.prototype.handleFocusInEvent_=function(d){var m=this.getListItemIndex_(d);this.foundation.handleFocusIn(d,m)},m.prototype.handleFocusOutEvent_=function(d){var m=this.getListItemIndex_(d);this.foundation.handleFocusOut(d,m)},m.prototype.handleKeydownEvent_=function(d){var m=this.getListItemIndex_(d),u=d.target;this.foundation.handleKeydown(d,u.classList.contains(b.Y7.LIST_ITEM_CLASS),m)},m.prototype.handleClickEvent_=function(d){var m=this.getListItemIndex_(d),u=d.target,f=!(0,h.cK)(u,b.P$.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(m,f)},m}(p.O);u.d(m,{f:()=>v})},5448(d,m,u){"use strict";var f={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},p={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+f.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+f.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+f.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+f.LIST_ITEM_CLASS+" a,\n ."+f.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+f.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},h={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};u.d(m,{P$:()=>p,Y7:()=>f,nL:()=>h})},6714(d,m,u){"use strict";u.d(m,{Y:()=>w});var f=u(1387),p=u(9531),h=u(618),b=u(5448),g=["input","button","textarea","select"],v=function(d){var m=d.target;if(m){var u=(""+m.tagName).toLowerCase();-1===g.indexOf(u)&&d.preventDefault()}};function _(d,m){var u,f=d.nextChar,p=d.focusItemAtIndex,h=d.sortedIndexByFirstChar,g=d.focusedItemIndex,v=d.skipFocus,_=d.isItemAtIndexDisabled;return clearTimeout(m.bufferClearTimeout),m.bufferClearTimeout=setTimeout(function(){F(m)},b.nL.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),m.typeaheadBuffer=m.typeaheadBuffer+f,-1===(u=1===m.typeaheadBuffer.length?function(d,m,u,f){var p,h=f.typeaheadBuffer[0],b=d.get(h);if(!b)return -1;if(h===f.currentFirstChar&&b[f.sortedIndexCursor].index===m){f.sortedIndexCursor=(f.sortedIndexCursor+1)%b.length;var g=b[f.sortedIndexCursor].index;if(!u(g))return g}f.currentFirstChar=h;var v=-1;for(p=0;p<b.length;p++)if(!u(b[p].index)){v=p;break}for(;p<b.length;p++)if(b[p].index>m&&!u(b[p].index)){v=p;break}return -1!==v?(f.sortedIndexCursor=v,b[f.sortedIndexCursor].index):-1}(h,g,_,m):function(d,m,u){var f=u.typeaheadBuffer[0],p=d.get(f);if(!p)return -1;var h=p[u.sortedIndexCursor];if(0===h.text.lastIndexOf(u.typeaheadBuffer,0)&&!m(h.index))return h.index;for(var b=(u.sortedIndexCursor+1)%p.length,g=-1;b!==u.sortedIndexCursor;){var v=p[b],_=0===v.text.lastIndexOf(u.typeaheadBuffer,0),y=!m(v.index);if(_&&y){g=b;break}b=(b+1)%p.length}return -1!==g?(u.sortedIndexCursor=g,p[u.sortedIndexCursor].index):-1}(h,_,m))||v||p(u),u}function y(d){return d.typeaheadBuffer.length>0}function F(d){d.typeaheadBuffer=""}function x(d,m){var u=d.event,f=d.isTargetListItem,p=d.focusedItemIndex,b=d.focusItemAtIndex,g=d.sortedIndexByFirstChar,F=d.isItemAtIndexDisabled,x="ArrowLeft"===(0,h.l5)(u),w="ArrowUp"===(0,h.l5)(u),E="ArrowRight"===(0,h.l5)(u),k="ArrowDown"===(0,h.l5)(u),A="Home"===(0,h.l5)(u),C="End"===(0,h.l5)(u),T="Enter"===(0,h.l5)(u),S="Spacebar"===(0,h.l5)(u);if(x||w||E||k||A||C||T)return -1;if(!S&&1===u.key.length){v(u);var I={focusItemAtIndex:b,focusedItemIndex:p,nextChar:u.key.toLowerCase(),sortedIndexByFirstChar:g,skipFocus:!1,isItemAtIndexDisabled:F};return _(I,m)}if(!S)return -1;if(f&&v(u),f&&y(m)){var I={focusItemAtIndex:b,focusedItemIndex:p,nextChar:" ",sortedIndexByFirstChar:g,skipFocus:!1,isItemAtIndexDisabled:F};return _(I,m)}return -1}var w=function(d){function m(u){var p=d.call(this,(0,f.Cl)((0,f.Cl)({},m.defaultAdapter),u))||this;return p.wrapFocus_=!1,p.isVertical_=!0,p.isSingleSelectionList_=!1,p.selectedIndex_=b.nL.UNSET_INDEX,p.focusedItemIndex=b.nL.UNSET_INDEX,p.useActivatedClass_=!1,p.useSelectedAttr_=!1,p.ariaCurrentAttrValue_=null,p.isCheckboxList_=!1,p.isRadioList_=!1,p.hasTypeahead=!1,p.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},p.sortedIndexByFirstChar=new Map,p}return(0,f.C6)(m,d),Object.defineProperty(m,"strings",{get:function(){return b.P$},enumerable:!0,configurable:!0}),Object.defineProperty(m,"cssClasses",{get:function(){return b.Y7},enumerable:!0,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return b.nL},enumerable:!0,configurable:!0}),Object.defineProperty(m,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),m.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},m.prototype.setWrapFocus=function(d){this.wrapFocus_=d},m.prototype.setVerticalOrientation=function(d){this.isVertical_=d},m.prototype.setSingleSelection=function(d){this.isSingleSelectionList_=d,d&&this.maybeInitializeSingleSelection()},m.prototype.maybeInitializeSingleSelection=function(){for(var d=0;d<this.adapter.getListItemCount();d++){var m=this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_SELECTED_CLASS),u=this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_ACTIVATED_CLASS);if(m||u){u&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=d;return}}},m.prototype.setHasTypeahead=function(d){this.hasTypeahead=d,d&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},m.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&y(this.typeaheadState)},m.prototype.setUseActivatedClass=function(d){this.useActivatedClass_=d},m.prototype.setUseSelectedAttribute=function(d){this.useSelectedAttr_=d},m.prototype.getSelectedIndex=function(){return this.selectedIndex_},m.prototype.setSelectedIndex=function(d){this.isIndexValid_(d)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(d):this.isRadioList_?this.setRadioAtIndex_(d):this.setSingleSelectionAtIndex_(d))},m.prototype.handleFocusIn=function(d,m){m>=0&&(this.focusedItemIndex=m,this.adapter.setAttributeForElementIndex(m,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(m,"0"))},m.prototype.handleFocusOut=function(d,m){var u=this;m>=0&&(this.adapter.setAttributeForElementIndex(m,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(m,"-1")),setTimeout(function(){u.adapter.isFocusInsideList()||u.setTabindexToFirstSelectedOrFocusedItem()},0)},m.prototype.handleKeydown=function(d,m,u){var f=this,p="ArrowLeft"===(0,h.l5)(d),g="ArrowUp"===(0,h.l5)(d),_="ArrowRight"===(0,h.l5)(d),y="ArrowDown"===(0,h.l5)(d),F="Home"===(0,h.l5)(d),w="End"===(0,h.l5)(d),E="Enter"===(0,h.l5)(d),k="Spacebar"===(0,h.l5)(d),A="A"===d.key||"a"===d.key;if(this.adapter.isRootFocused()){if(g||w?(d.preventDefault(),this.focusLastElement()):(y||F)&&(d.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var C={event:d,focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:-1,isTargetListItem:m,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}};x(C,this.typeaheadState)}return}var T=this.adapter.getFocusedElementIndex();if(-1!==T||!((T=u)<0)){if(this.isVertical_&&y||!this.isVertical_&&_)v(d),this.focusNextElement(T);else if(this.isVertical_&&g||!this.isVertical_&&p)v(d),this.focusPrevElement(T);else if(F)v(d),this.focusFirstElement();else if(w)v(d),this.focusLastElement();else if(A&&d.ctrlKey&&this.isCheckboxList_)d.preventDefault(),this.toggleAll(this.selectedIndex_===b.nL.UNSET_INDEX?[]:this.selectedIndex_);else if((E||k)&&m){var S=d.target;if(S&&"A"===S.tagName&&E||(v(d),this.adapter.listItemAtIndexHasClass(T,b.Y7.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(T),this.adapter.notifyAction(T))}if(this.hasTypeahead){var C={event:d,focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:m,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}};x(C,this.typeaheadState)}}},m.prototype.handleClick=function(d,m){d===b.nL.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(d,m),this.adapter.notifyAction(d))},m.prototype.focusNextElement=function(d){var m=this.adapter.getListItemCount(),u=d+1;if(u>=m)if(!this.wrapFocus_)return d;else u=0;return this.focusItemAtIndex(u),u},m.prototype.focusPrevElement=function(d){var m=d-1;if(m<0)if(!this.wrapFocus_)return d;else m=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(m),m},m.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},m.prototype.focusLastElement=function(){var d=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(d),d},m.prototype.focusInitialElement=function(){var d=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(d),d},m.prototype.setEnabled=function(d,m){this.isIndexValid_(d)&&(m?(this.adapter.removeClassForElementIndex(d,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(d,b.P$.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(d,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(d,b.P$.ARIA_DISABLED,"true")))},m.prototype.setSingleSelectionAtIndex_=function(d){if(this.selectedIndex_!==d){var m=b.Y7.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(m=b.Y7.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,m),this.setAriaForSingleSelectionAtIndex_(d),this.setTabindexAtIndex(d),d!==b.nL.UNSET_INDEX&&this.adapter.addClassForElementIndex(d,m),this.selectedIndex_=d}},m.prototype.setAriaForSingleSelectionAtIndex_=function(d){this.selectedIndex_===b.nL.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(d,b.P$.ARIA_CURRENT));var m=null!==this.ariaCurrentAttrValue_,u=m?b.P$.ARIA_CURRENT:b.P$.ARIA_SELECTED;if(this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,u,"false"),d!==b.nL.UNSET_INDEX){var f=m?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(d,u,f)}},m.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?b.P$.ARIA_SELECTED:b.P$.ARIA_CHECKED},m.prototype.setRadioAtIndex_=function(d){var m=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(d,!0),this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,m,"false"),this.adapter.setAttributeForElementIndex(d,m,"true"),this.selectedIndex_=d},m.prototype.setCheckboxAtIndex_=function(d){for(var m=this.getSelectionAttribute(),u=0;u<this.adapter.getListItemCount();u++){var f=!1;d.indexOf(u)>=0&&(f=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,f),this.adapter.setAttributeForElementIndex(u,m,f?"true":"false")}this.selectedIndex_=d},m.prototype.setTabindexAtIndex=function(d){this.focusedItemIndex===b.nL.UNSET_INDEX&&0!==d?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==d&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===d||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),d!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(d,"tabindex","0")},m.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},m.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var d=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(d)},m.prototype.getFirstSelectedOrFocusedItemIndex=function(){var d=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==b.nL.UNSET_INDEX?d=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(d=this.selectedIndex_.reduce(function(d,m){return Math.min(d,m)}))),d},m.prototype.isIndexValid_=function(d){var m=this;if(d instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===d.length||d.some(function(d){return m.isIndexInRange_(d)})}if("number"!=typeof d)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+d);return this.isIndexInRange_(d)||this.isSingleSelectionList_&&d===b.nL.UNSET_INDEX},m.prototype.isIndexInRange_=function(d){var m=this.adapter.getListItemCount();return d>=0&&d<m},m.prototype.setSelectedIndexOnAction_=function(d,m){void 0===m&&(m=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(d,m):this.setSelectedIndex(d)},m.prototype.toggleCheckboxAtIndex_=function(d,m){var u=this.getSelectionAttribute(),f=this.adapter.isCheckboxCheckedAtIndex(d);m&&(f=!f,this.adapter.setCheckedCheckboxOrRadioAtIndex(d,f)),this.adapter.setAttributeForElementIndex(d,u,f?"true":"false");var p=this.selectedIndex_===b.nL.UNSET_INDEX?[]:this.selectedIndex_.slice();f?p.push(d):p=p.filter(function(m){return m!==d}),this.selectedIndex_=p},m.prototype.focusItemAtIndex=function(d){this.adapter.focusItemAtIndex(d),this.focusedItemIndex=d},m.prototype.toggleAll=function(d){var m=this.adapter.getListItemCount();if(d.length===m)this.setCheckboxAtIndex_([]);else{for(var u=[],f=0;f<m;f++)(!this.adapter.listItemAtIndexHasClass(f,b.Y7.LIST_ITEM_DISABLED_CLASS)||d.indexOf(f)>-1)&&u.push(f);this.setCheckboxAtIndex_(u)}},m.prototype.typeaheadMatchItem=function(d,m,u){var f=this;return void 0===u&&(u=!1),_({focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:m||this.focusedItemIndex,nextChar:d,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:u,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},m.prototype.typeaheadInitSortedIndex=function(){return function(d,m){for(var u=new Map,f=0;f<d;f++){var p=m(f).trim();if(p){var h=p[0].toLowerCase();u.has(h)||u.set(h,[]),u.get(h).push({text:p.toLowerCase(),index:f})}}return u.forEach(function(d){d.sort(function(d,m){return d.index-m.index})}),u}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},m.prototype.clearTypeaheadBuffer=function(){F(this.typeaheadState)},m}(p.I)},1387(d,m,u){"use strict";var f=function(d,m){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var u in m)m.hasOwnProperty(u)&&(d[u]=m[u])})(d,m)};function p(d,m){function u(){this.constructor=d}f(d,m),d.prototype=null===m?Object.create(m):(u.prototype=m.prototype,new u)}var h=function(){return(h=Object.assign||function(d){for(var m,u=1,f=arguments.length;u<f;u++)for(var p in m=arguments[u])Object.prototype.hasOwnProperty.call(m,p)&&(d[p]=m[p]);return d}).apply(this,arguments)};u.d(m,{C6:()=>p,Cl:()=>h})},3260(d){"use strict";let m=(async function(){}).constructor;d.exports=()=>m},7052(d){"use strict";let m=(async function*(){}).constructor;d.exports=()=>m},9630(d,m,u){"use strict";var f=u(469),p=u(24),h=u(1530);d.exports=u(7009)||f.call(h,p)},24(d){"use strict";d.exports=Function.prototype.apply},1530(d){"use strict";d.exports=Function.prototype.call},7196(d,m,u){"use strict";var f=u(469),p=u(6757),h=u(1530),b=u(9630);d.exports=function(d){if(d.length<1||"function"!=typeof d[0])throw new p("a function is required");return b(f,h,d)}},7009(d){"use strict";d.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(d,m,u){"use strict";var f=u(4295),p=u(7196),h=p([f("%String.prototype.indexOf%")]);d.exports=function(d,m){var u=f(d,!!m);return"function"==typeof u&&h(d,".prototype.")>-1?p([u]):u}},714(d,m,u){"use strict";var f,p=u(7196),h=u(1233);try{f=[].__proto__===Array.prototype}catch(d){if(!d||"object"!=typeof d||!("code"in d)||"ERR_PROTO_ACCESS"!==d.code)throw d}var b=!!f&&h&&h(Object.prototype,"__proto__"),g=Object,v=g.getPrototypeOf;d.exports=b&&"function"==typeof b.get?p([b.get]):"function"==typeof v&&function(d){return v(null==d?d:g(d))}},9997(d){"use strict";var m=Object.defineProperty||!1;if(m)try{m({},"a",{value:1})}catch(d){m=!1}d.exports=m},155(d){"use strict";d.exports=EvalError},593(d){"use strict";d.exports=Error},7180(d){"use strict";d.exports=RangeError},9304(d){"use strict";d.exports=ReferenceError},1742(d){"use strict";d.exports=SyntaxError},6757(d){"use strict";d.exports=TypeError},4923(d){"use strict";d.exports=URIError},802(d){"use strict";d.exports=Object},9691(d){"use strict";var m=Object.prototype.toString,u=Math.max,f=function(d,m){for(var u=[],f=0;f<d.length;f+=1)u[f]=d[f];for(var p=0;p<m.length;p+=1)u[p+d.length]=m[p];return u},p=function(d,m){for(var u=[],f=m||0,p=0;f<d.length;f+=1,p+=1)u[p]=d[f];return u},h=function(d,m){for(var u="",f=0;f<d.length;f+=1)u+=d[f],f+1<d.length&&(u+=m);return u};d.exports=function(d){var b,g=this;if("function"!=typeof g||"[object Function]"!==m.apply(g))throw TypeError("Function.prototype.bind called on incompatible "+g);for(var v=p(arguments,1),_=u(0,g.length-v.length),y=[],F=0;F<_;F++)y[F]="$"+F;if(b=Function("binder","return function ("+h(y,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof b){var m=g.apply(this,f(v,arguments));return Object(m)===m?m:this}return g.apply(d,f(v,arguments))}),g.prototype){var x=function(){};x.prototype=g.prototype,b.prototype=new x,x.prototype=null}return b}},469(d,m,u){"use strict";var f=u(9691);d.exports=Function.prototype.bind||f},5175(d){"use strict";let m=(function*(){}).constructor;d.exports=()=>m},4295(d,m,u){"use strict";var f,p=u(802),h=u(593),b=u(155),g=u(7180),v=u(9304),_=u(1742),y=u(6757),F=u(4923),x=u(7256),w=u(5414),E=u(7954),k=u(3452),A=u(1358),C=u(5720),T=u(3515),S=u(1233),I=u(9997),O=function(){throw new y},D=S?function(){try{return arguments.callee,O}catch(d){try{return S(arguments,"callee").get}catch(d){return O}}}():O,R=u(8573)(),N=u(7582),B=u(2170),L=u(9090),P=u(24),M=u(1530),z={},U="u">typeof Uint8Array&&N?N(Uint8Array):f,j={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?f:ArrayBuffer,"%ArrayIteratorPrototype%":R&&N?N([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":"u"<typeof Atomics?f:Atomics,"%BigInt%":"u"<typeof BigInt?f:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?f:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h,"%eval%":eval,"%EvalError%":b,"%Float16Array%":"u"<typeof Float16Array?f:Float16Array,"%Float32Array%":"u"<typeof Float32Array?f:Float32Array,"%Float64Array%":"u"<typeof Float64Array?f:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?f:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":z,"%Int8Array%":"u"<typeof Int8Array?f:Int8Array,"%Int16Array%":"u"<typeof Int16Array?f:Int16Array,"%Int32Array%":"u"<typeof Int32Array?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&N?N(N([][Symbol.iterator]())):f,"%JSON%":"object"==typeof JSON?JSON:f,"%Map%":"u"<typeof Map?f:Map,"%MapIteratorPrototype%":"u">typeof Map&&R&&N?N(new Map()[Symbol.iterator]()):f,"%Math%":Math,"%Number%":Number,"%Object%":p,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?f:Promise,"%Proxy%":"u"<typeof Proxy?f:Proxy,"%RangeError%":g,"%ReferenceError%":v,"%Reflect%":"u"<typeof Reflect?f:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?f:Set,"%SetIteratorPrototype%":"u">typeof Set&&R&&N?N(new Set()[Symbol.iterator]()):f,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&N?N(""[Symbol.iterator]()):f,"%Symbol%":R?Symbol:f,"%SyntaxError%":_,"%ThrowTypeError%":D,"%TypedArray%":U,"%TypeError%":y,"%Uint8Array%":"u"<typeof Uint8Array?f:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?f:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?f:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?f:Uint32Array,"%URIError%":F,"%WeakMap%":"u"<typeof WeakMap?f:WeakMap,"%WeakRef%":"u"<typeof WeakRef?f:WeakRef,"%WeakSet%":"u"<typeof WeakSet?f:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":P,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":B,"%Math.abs%":x,"%Math.floor%":w,"%Math.max%":E,"%Math.min%":k,"%Math.pow%":A,"%Math.round%":C,"%Math.sign%":T,"%Reflect.getPrototypeOf%":L};if(N)try{null.error}catch(d){var V=N(N(d));j["%Error.prototype%"]=V}var $=u(3260),H=u(5175),q=u(7052),G=function d(m){var u;if("%AsyncFunction%"===m)u=$()||void 0;else if("%GeneratorFunction%"===m)u=H()||void 0;else if("%AsyncGeneratorFunction%"===m)u=q()||void 0;else if("%AsyncGenerator%"===m){var f=d("%AsyncGeneratorFunction%");f&&(u=f.prototype)}else if("%AsyncIteratorPrototype%"===m){var p=d("%AsyncGenerator%");p&&N&&(u=N(p.prototype))}return j[m]=u,u},Y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},W=u(469),X=u(9731),K=W.call(M,Array.prototype.concat),J=W.call(P,Array.prototype.splice),Z=W.call(M,String.prototype.replace),Q=W.call(M,String.prototype.slice),ee=W.call(M,RegExp.prototype.exec),et=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,en=/\\(\\)?/g,ei=function(d){var m=Q(d,0,1),u=Q(d,-1);if("%"===m&&"%"!==u)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===u&&"%"!==m)throw new _("invalid intrinsic syntax, expected opening `%`");var f=[];return Z(d,et,function(d,m,u,p){f[f.length]=u?Z(p,en,"$1"):m||d}),f},eo=function(d,m){var u,f=d;if(X(Y,f)&&(f="%"+(u=Y[f])[0]+"%"),X(j,f)){var p=j[f];if(p===z&&(p=G(f)),void 0===p&&!m)throw new y("intrinsic "+d+" exists, but is not available. Please file an issue!");return{alias:u,name:f,value:p}}throw new _("intrinsic "+d+" does not exist!")};d.exports=function(d,m){if("string"!=typeof d||0===d.length)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof m)throw new y('"allowMissing" argument must be a boolean');if(null===ee(/^%?[^%]*%?$/,d))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var u=ei(d),f=u.length>0?u[0]:"",p=eo("%"+f+"%",m),h=p.name,b=p.value,g=!1,v=p.alias;v&&(f=v[0],J(u,K([0,1],v)));for(var F=1,x=!0;F<u.length;F+=1){var w=u[F],E=Q(w,0,1),k=Q(w,-1);if(('"'===E||"'"===E||"`"===E||'"'===k||"'"===k||"`"===k)&&E!==k)throw new _("property names with quotes must have matching quotes");if("constructor"!==w&&x||(g=!0),f+="."+w,X(j,h="%"+f+"%"))b=j[h];else if(null!=b){if(!(w in b)){if(!m)throw new y("base intrinsic for "+d+" exists, but the property is not available.");return}if(S&&F+1>=u.length){var A=S(b,w);b=(x=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:b[w]}else x=X(b,w),b=b[w];x&&!g&&(j[h]=b)}}return b}},2170(d,m,u){"use strict";d.exports=u(802).getPrototypeOf||null},9090(d){"use strict";d.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(d,m,u){"use strict";var f=u(9090),p=u(2170),h=u(714);d.exports=f?function(d){return f(d)}:p?function(d){if(!d||"object"!=typeof d&&"function"!=typeof d)throw TypeError("getProto: not an object");return p(d)}:h?function(d){return h(d)}:null},1067(d){"use strict";d.exports=Object.getOwnPropertyDescriptor},1233(d,m,u){"use strict";var f=u(1067);if(f)try{f([],"length")}catch(d){f=null}d.exports=f},8573(d,m,u){"use strict";var f="u">typeof Symbol&&Symbol,p=u(9535);d.exports=function(){return"function"==typeof f&&"function"==typeof Symbol&&"symbol"==typeof f("foo")&&"symbol"==typeof Symbol("bar")&&p()}},9535(d){"use strict";d.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var d={},m=Symbol("test"),u=Object(m);if("string"==typeof m||"[object Symbol]"!==Object.prototype.toString.call(m)||"[object Symbol]"!==Object.prototype.toString.call(u))return!1;for(var f in d[m]=42,d)return!1;if("function"==typeof Object.keys&&0!==Object.keys(d).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(d).length)return!1;var p=Object.getOwnPropertySymbols(d);if(1!==p.length||p[0]!==m||!Object.prototype.propertyIsEnumerable.call(d,m))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(d,m);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},9731(d,m,u){"use strict";var f=Function.prototype.call,p=Object.prototype.hasOwnProperty;d.exports=u(469).call(f,p)},4954(d,m,u){!function(){"use strict";var m="input is invalid type",f="object"==typeof window,p=f?window:{};p.JS_SHA256_NO_WINDOW&&(f=!1);var h=!f&&"object"==typeof self,b=!p.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;b?p=u.g:h&&(p=self);var g=!p.JS_SHA256_NO_COMMON_JS&&d.exports,v="function"==typeof define&&define.amd,_=!p.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,y="0123456789abcdef".split(""),F=[-0x80000000,8388608,32768,128],x=[24,16,8,0],w=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],E=["hex","array","digest","arrayBuffer"],k=[];(p.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)}),_&&(p.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(d){return"object"==typeof d&&d.buffer&&d.buffer.constructor===ArrayBuffer});var A=function(d,m){return function(u){return new O(m,!0).update(u)[d]()}},C=function(d){var m=A("hex",d);b&&(m=T(m,d)),m.create=function(){return new O(d)},m.update=function(d){return m.create().update(d)};for(var u=0;u<E.length;++u){var f=E[u];m[f]=A(f,d)}return m},T=function(d,f){var h,b=u(7791),g=u(5610).Buffer,v=f?"sha224":"sha256";return h=g.from&&!p.JS_SHA256_NO_BUFFER_FROM?g.from:function(d){return new g(d)},function(u){if("string"==typeof u)return b.createHash(v).update(u,"utf8").digest("hex");if(null==u)throw Error(m);return u.constructor===ArrayBuffer&&(u=new Uint8Array(u)),Array.isArray(u)||ArrayBuffer.isView(u)||u.constructor===g?b.createHash(v).update(h(u)).digest("hex"):d(u)}},S=function(d,m){return function(u,f){return new D(u,m,!0).update(f)[d]()}},I=function(d){var m=S("hex",d);m.create=function(m){return new D(m,d)},m.update=function(d,u){return m.create(d).update(u)};for(var u=0;u<E.length;++u){var f=E[u];m[f]=S(f,d)}return m};function O(d,m){m?(k[0]=k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0,this.blocks=k):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=d}function D(d,u,f){var p,h=typeof d;if("string"===h){var b,g=[],v=d.length,y=0;for(p=0;p<v;++p)(b=d.charCodeAt(p))<128?g[y++]=b:(b<2048?g[y++]=192|b>>>6:(b<55296||b>=57344?g[y++]=224|b>>>12:(b=65536+((1023&b)<<10|1023&d.charCodeAt(++p)),g[y++]=240|b>>>18,g[y++]=128|b>>>12&63),g[y++]=128|b>>>6&63),g[y++]=128|63&b);d=g}else if("object"===h){if(null===d)throw Error(m);else if(_&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!_||!ArrayBuffer.isView(d)))throw Error(m)}else throw Error(m);d.length>64&&(d=new O(u,!0).update(d).array());var F=[],x=[];for(p=0;p<64;++p){var w=d[p]||0;F[p]=92^w,x[p]=54^w}O.call(this,u,f),this.update(x),this.oKeyPad=F,this.inner=!0,this.sharedMemory=f}O.prototype.update=function(d){if(!this.finalized){var u,f=typeof d;if("string"!==f){if("object"===f){if(null===d)throw Error(m);else if(_&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!_||!ArrayBuffer.isView(d)))throw Error(m)}else throw Error(m);u=!0}for(var p,h,b=0,g=d.length,v=this.blocks;b<g;){if(this.hashed&&(this.hashed=!1,v[0]=this.block,this.block=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),u)for(h=this.start;b<g&&h<64;++b)v[h>>>2]|=d[b]<<x[3&h++];else for(h=this.start;b<g&&h<64;++b)(p=d.charCodeAt(b))<128?v[h>>>2]|=p<<x[3&h++]:(p<2048?v[h>>>2]|=(192|p>>>6)<<x[3&h++]:(p<55296||p>=57344?v[h>>>2]|=(224|p>>>12)<<x[3&h++]:(p=65536+((1023&p)<<10|1023&d.charCodeAt(++b)),v[h>>>2]|=(240|p>>>18)<<x[3&h++],v[h>>>2]|=(128|p>>>12&63)<<x[3&h++]),v[h>>>2]|=(128|p>>>6&63)<<x[3&h++]),v[h>>>2]|=(128|63&p)<<x[3&h++]);this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.block=v[16],this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var d=this.blocks,m=this.lastByteIndex;d[16]=this.block,d[m>>>2]|=F[3&m],this.block=d[16],m>=56&&(this.hashed||this.hash(),d[0]=this.block,d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0),d[14]=this.hBytes<<3|this.bytes>>>29,d[15]=this.bytes<<3,this.hash()}},O.prototype.hash=function(){var d,m,u,f,p,h,b,g,v,_,y,F=this.h0,x=this.h1,E=this.h2,k=this.h3,A=this.h4,C=this.h5,T=this.h6,S=this.h7,I=this.blocks;for(d=16;d<64;++d)m=((p=I[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,u=((p=I[d-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,I[d]=I[d-16]+m+I[d-7]+u|0;for(y=x&E,d=0;d<64;d+=4)this.first?(this.is224?(g=300032,S=(p=I[0]-0x543c9a5b)-0x8f1a6c7|0,k=p+0x170e9b5|0):(g=0x2a01a605,S=(p=I[0]-0xc881298)-0x5ab00ac6|0,k=p+0x8909ae5|0),this.first=!1):(m=(F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10),u=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),f=(g=F&x)^F&E^y,p=S+u+(A&C^~A&T)+w[d]+I[d],h=m+f,S=k+p|0,k=p+h|0),m=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),u=(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7),f=(v=k&F)^k&x^g,p=T+u+(S&A^~S&C)+w[d+1]+I[d+1],h=m+f,T=E+p|0,m=((E=p+h|0)>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),u=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),f=(_=E&k)^E&F^v,p=C+u+(T&S^~T&A)+w[d+2]+I[d+2],h=m+f,C=x+p|0,m=((x=p+h|0)>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),u=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),f=(y=x&E)^x&k^_,p=A+u+(C&T^~C&S)+w[d+3]+I[d+3],h=m+f,A=F+p|0,F=p+h|0,this.chromeBugWorkAround=!0;this.h0=this.h0+F|0,this.h1=this.h1+x|0,this.h2=this.h2+E|0,this.h3=this.h3+k|0,this.h4=this.h4+A|0,this.h5=this.h5+C|0,this.h6=this.h6+T|0,this.h7=this.h7+S|0},O.prototype.hex=function(){this.finalize();var d=this.h0,m=this.h1,u=this.h2,f=this.h3,p=this.h4,h=this.h5,b=this.h6,g=this.h7,v=y[d>>>28&15]+y[d>>>24&15]+y[d>>>20&15]+y[d>>>16&15]+y[d>>>12&15]+y[d>>>8&15]+y[d>>>4&15]+y[15&d]+y[m>>>28&15]+y[m>>>24&15]+y[m>>>20&15]+y[m>>>16&15]+y[m>>>12&15]+y[m>>>8&15]+y[m>>>4&15]+y[15&m]+y[u>>>28&15]+y[u>>>24&15]+y[u>>>20&15]+y[u>>>16&15]+y[u>>>12&15]+y[u>>>8&15]+y[u>>>4&15]+y[15&u]+y[f>>>28&15]+y[f>>>24&15]+y[f>>>20&15]+y[f>>>16&15]+y[f>>>12&15]+y[f>>>8&15]+y[f>>>4&15]+y[15&f]+y[p>>>28&15]+y[p>>>24&15]+y[p>>>20&15]+y[p>>>16&15]+y[p>>>12&15]+y[p>>>8&15]+y[p>>>4&15]+y[15&p]+y[h>>>28&15]+y[h>>>24&15]+y[h>>>20&15]+y[h>>>16&15]+y[h>>>12&15]+y[h>>>8&15]+y[h>>>4&15]+y[15&h]+y[b>>>28&15]+y[b>>>24&15]+y[b>>>20&15]+y[b>>>16&15]+y[b>>>12&15]+y[b>>>8&15]+y[b>>>4&15]+y[15&b];return this.is224||(v+=y[g>>>28&15]+y[g>>>24&15]+y[g>>>20&15]+y[g>>>16&15]+y[g>>>12&15]+y[g>>>8&15]+y[g>>>4&15]+y[15&g]),v},O.prototype.toString=O.prototype.hex,O.prototype.digest=function(){this.finalize();var d=this.h0,m=this.h1,u=this.h2,f=this.h3,p=this.h4,h=this.h5,b=this.h6,g=this.h7,v=[d>>>24&255,d>>>16&255,d>>>8&255,255&d,m>>>24&255,m>>>16&255,m>>>8&255,255&m,u>>>24&255,u>>>16&255,u>>>8&255,255&u,f>>>24&255,f>>>16&255,f>>>8&255,255&f,p>>>24&255,p>>>16&255,p>>>8&255,255&p,h>>>24&255,h>>>16&255,h>>>8&255,255&h,b>>>24&255,b>>>16&255,b>>>8&255,255&b];return this.is224||v.push(g>>>24&255,g>>>16&255,g>>>8&255,255&g),v},O.prototype.array=O.prototype.digest,O.prototype.arrayBuffer=function(){this.finalize();var d=new ArrayBuffer(this.is224?28:32),m=new DataView(d);return m.setUint32(0,this.h0),m.setUint32(4,this.h1),m.setUint32(8,this.h2),m.setUint32(12,this.h3),m.setUint32(16,this.h4),m.setUint32(20,this.h5),m.setUint32(24,this.h6),this.is224||m.setUint32(28,this.h7),d},D.prototype=new O,D.prototype.finalize=function(){if(O.prototype.finalize.call(this),this.inner){this.inner=!1;var d=this.array();O.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(d),O.prototype.finalize.call(this)}};var R=C();R.sha256=R,R.sha224=C(!0),R.sha256.hmac=I(),R.sha224.hmac=I(!0),g?d.exports=R:(p.sha256=R.sha256,p.sha224=R.sha224,v&&define(function(){return R}))}()},2051(d,m,u){var f=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,v="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,_="object"==typeof self&&self&&self.Object===Object&&self,y=v||_||Function("return this")(),F=Object.prototype.toString,x=Math.max,w=Math.min,E=function(){return y.Date.now()};function k(d){var m=typeof d;return!!d&&("object"==m||"function"==m)}function A(d){if("number"==typeof d)return d;if("symbol"==typeof(m=d)||m&&"object"==typeof m&&"[object Symbol]"==F.call(m))return 0/0;if(k(d)){var m,u="function"==typeof d.valueOf?d.valueOf():d;d=k(u)?u+"":u}if("string"!=typeof d)return 0===d?d:+d;d=d.replace(f,"");var v=h.test(d);return v||b.test(d)?g(d.slice(2),v?2:8):p.test(d)?0/0:+d}d.exports=function(d,m,u){var f,p,h,b,g,v,_=0,y=!1,F=!1,C=!0;if("function"!=typeof d)throw TypeError("Expected a function");function T(m){var u=f,h=p;return f=p=void 0,_=m,b=d.apply(h,u)}function S(d){var u=d-v,f=d-_;return void 0===v||u>=m||u<0||F&&f>=h}function I(){var d,u,f,p=E();if(S(p))return O(p);g=setTimeout(I,(d=p-v,u=p-_,f=m-d,F?w(f,h-u):f))}function O(d){return(g=void 0,C&&f)?T(d):(f=p=void 0,b)}function D(){var d,u=E(),h=S(u);if(f=arguments,p=this,v=u,h){if(void 0===g)return _=d=v,g=setTimeout(I,m),y?T(d):b;if(F)return g=setTimeout(I,m),T(v)}return void 0===g&&(g=setTimeout(I,m)),b}return m=A(m)||0,k(u)&&(y=!!u.leading,h=(F="maxWait"in u)?x(A(u.maxWait)||0,m):h,C="trailing"in u?!!u.trailing:C),D.cancel=function(){void 0!==g&&clearTimeout(g),_=0,f=v=p=g=void 0},D.flush=function(){return void 0===g?b:O(E())},D}},3472(d,m,u){d=u.nmd(d);var f,p="__lodash_hash_undefined__",h="[object Arguments]",b="[object Array]",g="[object Boolean]",v="[object Date]",_="[object Error]",y="[object Function]",F="[object Map]",x="[object Number]",w="[object Object]",E="[object Promise]",k="[object RegExp]",A="[object Set]",C="[object String]",T="[object Symbol]",S="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,N=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,P=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z[h]=z[b]=z[I]=z[g]=z[O]=z[v]=z[_]=z[y]=z[F]=z[x]=z[w]=z[k]=z[A]=z[C]=z[S]=!1;var U="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,j="object"==typeof self&&self&&self.Object===Object&&self,V=U||j||Function("return this")(),$=m&&!m.nodeType&&m,H=$&&d&&!d.nodeType&&d,q=H&&H.exports===$&&U.process,G=function(){try{return q&&q.binding("util")}catch(d){}}(),Y=G&&G.isTypedArray;function W(d){var m=!1;if(null!=d&&"function"!=typeof d.toString)try{m=!!(d+"")}catch(d){}return m}function X(d){var m=-1,u=Array(d.size);return d.forEach(function(d,f){u[++m]=[f,d]}),u}function K(d,m){return function(u){return d(m(u))}}function J(d){var m=-1,u=Array(d.size);return d.forEach(function(d){u[++m]=d}),u}var Z=Array.prototype,Q=Function.prototype,ee=Object.prototype,et=V["__core-js_shared__"],en=(f=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",ei=Q.toString,eo=ee.hasOwnProperty,er=ee.toString,ea=RegExp("^"+ei.call(eo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),es=V.Symbol,el=V.Uint8Array,ec=K(Object.getPrototypeOf,Object),ed=Object.create,em=ee.propertyIsEnumerable,eu=Z.splice,ef=K(Object.keys,Object),ep=eU(V,"DataView"),eh=eU(V,"Map"),eb=eU(V,"Promise"),eg=eU(V,"Set"),ev=eU(V,"WeakMap"),e_=eU(Object,"create"),ey=eY(ep),eF=eY(eh),ex=eY(eb),ew=eY(eg),eE=eY(ev),ek=es?es.prototype:void 0,eA=ek?ek.valueOf:void 0,eC=ek?ek.toString:void 0;function eT(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eS(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eI(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eO(d){var m=-1,u=d?d.length:0;for(this.__data__=new eI;++m<u;)this.add(d[m])}function eD(d){this.__data__=new eS(d)}function eR(d,m){for(var u=d.length;u--;)if(eX(d[u][0],m))return u;return -1}eT.prototype.clear=function(){this.__data__=e_?e_(null):{}},eT.prototype.delete=function(d){return this.has(d)&&delete this.__data__[d]},eT.prototype.get=function(d){var m=this.__data__;if(e_){var u=m[d];return u===p?void 0:u}return eo.call(m,d)?m[d]:void 0},eT.prototype.has=function(d){var m=this.__data__;return e_?void 0!==m[d]:eo.call(m,d)},eT.prototype.set=function(d,m){return this.__data__[d]=e_&&void 0===m?p:m,this},eS.prototype.clear=function(){this.__data__=[]},eS.prototype.delete=function(d){var m=this.__data__,u=eR(m,d);return!(u<0)&&(u==m.length-1?m.pop():eu.call(m,u,1),!0)},eS.prototype.get=function(d){var m=this.__data__,u=eR(m,d);return u<0?void 0:m[u][1]},eS.prototype.has=function(d){return eR(this.__data__,d)>-1},eS.prototype.set=function(d,m){var u=this.__data__,f=eR(u,d);return f<0?u.push([d,m]):u[f][1]=m,this},eI.prototype.clear=function(){this.__data__={hash:new eT,map:new(eh||eS),string:new eT}},eI.prototype.delete=function(d){return ez(this,d).delete(d)},eI.prototype.get=function(d){return ez(this,d).get(d)},eI.prototype.has=function(d){return ez(this,d).has(d)},eI.prototype.set=function(d,m){return ez(this,d).set(d,m),this},eO.prototype.add=eO.prototype.push=function(d){return this.__data__.set(d,p),this},eO.prototype.has=function(d){return this.__data__.has(d)},eD.prototype.clear=function(){this.__data__=new eS},eD.prototype.delete=function(d){return this.__data__.delete(d)},eD.prototype.get=function(d){return this.__data__.get(d)},eD.prototype.has=function(d){return this.__data__.has(d)},eD.prototype.set=function(d,m){var u=this.__data__;if(u instanceof eS){var f=u.__data__;if(!eh||f.length<199)return f.push([d,m]),this;u=this.__data__=new eI(f)}return u.set(d,m),this};var eN=function(d,m,u){for(var f=-1,p=Object(d),h=u(d),b=h.length;b--;){var g=h[++f];if(!1===m(p[g],g,p))break}return d};function eB(d,m){var u;m=e$(m,d)?[m]:eJ(u=m)?u:eq(u);for(var f=0,p=m.length;null!=d&&f<p;)d=d[eG(m[f++])];return f&&f==p?d:void 0}function eL(d,m){return null!=d&&m in Object(d)}function eP(d,m,u,f,p){return d===m||(null!=d&&null!=m&&(e1(d)||e2(m))?function(d,m,u,f,p,y){var E=eJ(d),S=eJ(m),D=b,R=b;E||(D=(D=ej(d))==h?w:D),S||(R=(R=ej(m))==h?w:R);var N=D==w&&!W(d),B=R==w&&!W(m),L=D==R;if(L&&!N)return y||(y=new eD),E||e4(d)?eM(d,m,u,f,p,y):function(d,m,u,f,p,h,b){switch(u){case O:if(d.byteLength!=m.byteLength||d.byteOffset!=m.byteOffset)break;d=d.buffer,m=m.buffer;case I:if(d.byteLength!=m.byteLength||!f(new el(d),new el(m)))break;return!0;case g:case v:case x:return eX(+d,+m);case _:return d.name==m.name&&d.message==m.message;case k:case C:return d==m+"";case F:var y=X;case A:var w=2&h;if(y||(y=J),d.size!=m.size&&!w)break;var E=b.get(d);if(E)return E==m;h|=1,b.set(d,m);var S=eM(y(d),y(m),f,p,h,b);return b.delete(d),S;case T:if(eA)return eA.call(d)==eA.call(m)}return!1}(d,m,D,u,f,p,y);if(!(2&p)){var P=N&&eo.call(d,"__wrapped__"),M=B&&eo.call(m,"__wrapped__");if(P||M){var z=P?d.value():d,U=M?m.value():m;return y||(y=new eD),u(z,U,f,p,y)}}return!!L&&(y||(y=new eD),function(d,m,u,f,p,h){var b=2&p,g=e3(d),v=g.length;if(v!=e3(m).length&&!b)return!1;for(var _=v;_--;){var y=g[_];if(!(b?y in m:eo.call(m,y)))return!1}var F=h.get(d);if(F&&h.get(m))return F==m;var x=!0;h.set(d,m),h.set(m,d);for(var w=b;++_<v;){var E=d[y=g[_]],k=m[y];if(f)var A=b?f(k,E,y,m,d,h):f(E,k,y,d,m,h);if(!(void 0===A?E===k||u(E,k,f,p,h):A)){x=!1;break}w||(w="constructor"==y)}if(x&&!w){var C=d.constructor,T=m.constructor;C!=T&&"constructor"in d&&"constructor"in m&&!("function"==typeof C&&C instanceof C&&"function"==typeof T&&T instanceof T)&&(x=!1)}return h.delete(d),h.delete(m),x}(d,m,u,f,p,y))}(d,m,eP,u,f,p):d!=d&&m!=m)}function eM(d,m,u,f,p,h){var b=2&p,g=d.length,v=m.length;if(g!=v&&!(b&&v>g))return!1;var _=h.get(d);if(_&&h.get(m))return _==m;var y=-1,F=!0,x=1&p?new eO:void 0;for(h.set(d,m),h.set(m,d);++y<g;){var w=d[y],E=m[y];if(f)var k=b?f(E,w,y,m,d,h):f(w,E,y,d,m,h);if(void 0!==k){if(k)continue;F=!1;break}if(x){if(!function(d,m){for(var u=-1,f=d?d.length:0;++u<f;)if(m(d[u],u,d))return!0;return!1}(m,function(d,m){if(!x.has(m)&&(w===d||u(w,d,f,p,h)))return x.add(m)})){F=!1;break}}else if(!(w===E||u(w,E,f,p,h))){F=!1;break}}return h.delete(d),h.delete(m),F}function ez(d,m){var u,f,p=d.__data__;return("string"==(f=typeof(u=m))||"number"==f||"symbol"==f||"boolean"==f?"__proto__"!==u:null===u)?p["string"==typeof m?"string":"hash"]:p.map}function eU(d,m){var u,f=null==d?void 0:d[m];return!(!e1(f)||(u=f,en&&en in u))&&(eQ(f)||W(f)?ea:P).test(eY(f))?f:void 0}var ej=function(d){return er.call(d)};function eV(d,m){return!!(m=null==m?0x1fffffffffffff:m)&&("number"==typeof d||M.test(d))&&d>-1&&d%1==0&&d<m}function e$(d,m){if(eJ(d))return!1;var u=typeof d;return!!("number"==u||"symbol"==u||"boolean"==u||null==d||e5(d))||R.test(d)||!D.test(d)||null!=m&&d in Object(m)}(ep&&ej(new ep(new ArrayBuffer(1)))!=O||eh&&ej(new eh)!=F||eb&&ej(eb.resolve())!=E||eg&&ej(new eg)!=A||ev&&ej(new ev)!=S)&&(ej=function(d){var m=er.call(d),u=m==w?d.constructor:void 0,f=u?eY(u):void 0;if(f)switch(f){case ey:return O;case eF:return F;case ex:return E;case ew:return A;case eE:return S}return m});function eH(d,m){return function(u){return null!=u&&u[d]===m&&(void 0!==m||d in Object(u))}}var eq=eW(function(d){d=null==(m=d)?"":function(d){if("string"==typeof d)return d;if(e5(d))return eC?eC.call(d):"";var m=d+"";return"0"==m&&1/d==-1/0?"-0":m}(m);var m,u=[];return N.test(d)&&u.push(""),d.replace(B,function(d,m,f,p){u.push(f?p.replace(L,"$1"):m||d)}),u});function eG(d){if("string"==typeof d||e5(d))return d;var m=d+"";return"0"==m&&1/d==-1/0?"-0":m}function eY(d){if(null!=d){try{return ei.call(d)}catch(d){}try{return d+""}catch(d){}}return""}function eW(d,m){if("function"!=typeof d||m&&"function"!=typeof m)throw TypeError("Expected a function");var u=function(){var f=arguments,p=m?m.apply(this,f):f[0],h=u.cache;if(h.has(p))return h.get(p);var b=d.apply(this,f);return u.cache=h.set(p,b),b};return u.cache=new(eW.Cache||eI),u}function eX(d,m){return d===m||d!=d&&m!=m}function eK(d){var m;return e2(m=d)&&eZ(m)&&eo.call(d,"callee")&&(!em.call(d,"callee")||er.call(d)==h)}eW.Cache=eI;var eJ=Array.isArray;function eZ(d){return null!=d&&e0(d.length)&&!eQ(d)}function eQ(d){var m=e1(d)?er.call(d):"";return m==y||"[object GeneratorFunction]"==m}function e0(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=0x1fffffffffffff}function e1(d){var m=typeof d;return!!d&&("object"==m||"function"==m)}function e2(d){return!!d&&"object"==typeof d}function e5(d){return"symbol"==typeof d||e2(d)&&er.call(d)==T}var e4=Y?function(d){return Y(d)}:function(d){return e2(d)&&e0(d.length)&&!!z[er.call(d)]};function e3(d){return eZ(d)?function(d){var m=eJ(d)||eK(d)?function(d,m){for(var u=-1,f=Array(d);++u<d;)f[u]=m(u);return f}(d.length,String):[],u=m.length,f=!!u;for(var p in d)eo.call(d,p)&&!(f&&("length"==p||eV(p,u)))&&m.push(p);return m}(d):function(d){if(u=(m=d)&&m.constructor,m!==("function"==typeof u&&u.prototype||ee))return ef(d);var m,u,f=[];for(var p in Object(d))eo.call(d,p)&&"constructor"!=p&&f.push(p);return f}(d)}function e6(d){return d}d.exports=function(d,m,u){var f=eJ(d)||e4(d);if(m="function"==typeof(_=m)?_:null==_?e6:"object"==typeof _?eJ(_)?(p=_[0],h=_[1],e$(p)&&(b=h)==b&&!e1(b)?eH(eG(p),h):function(d){var m,u,f,b,g,v=(m=d,u=p,void 0===(f=null==m?void 0:eB(m,u))?void 0:f);return void 0===v&&v===h?(b=d,g=p,null!=b&&function(d,m,u){m=e$(m,d)?[m]:eJ(f=m)?f:eq(f);for(var f,p,h=-1,b=m.length;++h<b;){var g=eG(m[h]);if(!(p=null!=d&&u(d,g)))break;d=d[g]}if(p)return p;var b=d?d.length:0;return!!b&&e0(b)&&eV(g,b)&&(eJ(d)||eK(d))}(b,g,eL)):eP(h,v,void 0,3)}):1==(v=function(d){for(var m=e3(d),u=m.length;u--;){var f,p=m[u],h=d[p];m[u]=[p,h,(f=h)==f&&!e1(f)]}return m}(g=_)).length&&v[0][2]?eH(v[0][0],v[0][1]):function(d){return d===g||function(d,m){var u=m.length,f=u;if(null==d)return!f;for(d=Object(d);u--;){var p=m[u];if((0,p[2])?p[1]!==d[p[0]]:!(p[0]in d))return!1}for(;++u<f;){var h=(p=m[u])[0],b=d[h],g=p[1];if(0,p[2]){if(void 0===b&&!(h in d))return!1}else{var v,_=new eD;if(!(void 0===v?eP(g,b,void 0,3,_):v))return!1}}return!0}(d,v)}:function(d){var m;return e$(d)?(m=eG(d),function(d){return null==d?void 0:d[m]}):function(m){return eB(m,d)}}(_),null==u)if(f||e1(d)){var p,h,b,g,v,_,y,F=d.constructor;u=f?eJ(d)?new F:[]:eQ(F)&&e1(y=ec(d))?ed(y):{}}else u={};return(f?function(d,m){for(var u=-1,f=d?d.length:0;++u<f&&!1!==m(d[u],u,d););return d}:function(d,m){return d&&eN(d,m,e3)})(d,function(d,f,p){return m(u,d,f,p)}),u}},7256(d){"use strict";d.exports=Math.abs},5414(d){"use strict";d.exports=Math.floor},981(d){"use strict";d.exports=Number.isNaN||function(d){return d!=d}},7954(d){"use strict";d.exports=Math.max},3452(d){"use strict";d.exports=Math.min},1358(d){"use strict";d.exports=Math.pow},5720(d){"use strict";d.exports=Math.round},3515(d,m,u){"use strict";var f=u(981);d.exports=function(d){return f(d)||0===d?d:d<0?-1:1}},4867(d,m,u){d=u.nmd(d),d.exports=function(){"use strict";function m(){return J.apply(null,arguments)}function f(d){return d instanceof Array||"[object Array]"===Object.prototype.toString.call(d)}function p(d){return null!=d&&"[object Object]"===Object.prototype.toString.call(d)}function h(d,m){return Object.prototype.hasOwnProperty.call(d,m)}function b(d){var m;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(d).length;for(m in d)if(h(d,m))return!1;return!0}function g(d){return void 0===d}function v(d){return"number"==typeof d||"[object Number]"===Object.prototype.toString.call(d)}function _(d){return d instanceof Date||"[object Date]"===Object.prototype.toString.call(d)}function y(d,m){var u,f=[],p=d.length;for(u=0;u<p;++u)f.push(m(d[u],u));return f}function F(d,m){for(var u in m)h(m,u)&&(d[u]=m[u]);return h(m,"toString")&&(d.toString=m.toString),h(m,"valueOf")&&(d.valueOf=m.valueOf),d}function x(d,m,u,f){return th(d,m,u,f,!0).utc()}function w(d){return null==d._pf&&(d._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),d._pf}function E(d){var m=null,u=!1,f=d._d&&!isNaN(d._d.getTime());return(f&&(m=w(d),u=Z.call(m.parsedDateParts,function(d){return null!=d}),f=m.overflow<0&&!m.empty&&!m.invalidEra&&!m.invalidMonth&&!m.invalidWeekday&&!m.weekdayMismatch&&!m.nullInput&&!m.invalidFormat&&!m.userInvalidated&&(!m.meridiem||m.meridiem&&u),d._strict&&(f=f&&0===m.charsLeftOver&&0===m.unusedTokens.length&&void 0===m.bigHour)),null!=Object.isFrozen&&Object.isFrozen(d))?f:(d._isValid=f,d._isValid)}function k(d){var m=x(0/0);return null!=d?F(w(m),d):w(m).userInvalidated=!0,m}Z=Array.prototype.some?Array.prototype.some:function(d){var m,u=Object(this),f=u.length>>>0;for(m=0;m<f;m++)if(m in u&&d.call(this,u[m],m,u))return!0;return!1};var A,C,T=m.momentProperties=[],S=!1;function I(d,m){var u,f,p,h=T.length;if(g(m._isAMomentObject)||(d._isAMomentObject=m._isAMomentObject),g(m._i)||(d._i=m._i),g(m._f)||(d._f=m._f),g(m._l)||(d._l=m._l),g(m._strict)||(d._strict=m._strict),g(m._tzm)||(d._tzm=m._tzm),g(m._isUTC)||(d._isUTC=m._isUTC),g(m._offset)||(d._offset=m._offset),g(m._pf)||(d._pf=w(m)),g(m._locale)||(d._locale=m._locale),h>0)for(u=0;u<h;u++)g(p=m[f=T[u]])||(d[f]=p);return d}function O(d){I(this,d),this._d=new Date(null!=d._d?d._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===S&&(S=!0,m.updateOffset(this),S=!1)}function D(d){return d instanceof O||null!=d&&null!=d._isAMomentObject}function R(d){!1===m.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+d)}function N(d,u){var f=!0;return F(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,d),f){var p,b,g,v=[],_=arguments.length;for(b=0;b<_;b++){if(p="","object"==typeof arguments[b]){for(g in p+="\n["+b+"] ",arguments[0])h(arguments[0],g)&&(p+=g+": "+arguments[0][g]+", ");p=p.slice(0,-2)}else p=arguments[b];v.push(p)}R(d+"\nArguments: "+Array.prototype.slice.call(v).join("")+"\n"+Error().stack),f=!1}return u.apply(this,arguments)},u)}var B={};function L(d,u){null!=m.deprecationHandler&&m.deprecationHandler(d,u),B[d]||(R(u),B[d]=!0)}function P(d){return"u">typeof Function&&d instanceof Function||"[object Function]"===Object.prototype.toString.call(d)}function M(d,m){var u,f=F({},d);for(u in m)h(m,u)&&(p(d[u])&&p(m[u])?(f[u]={},F(f[u],d[u]),F(f[u],m[u])):null!=m[u]?f[u]=m[u]:delete f[u]);for(u in d)h(d,u)&&!h(m,u)&&p(d[u])&&(f[u]=F({},f[u]));return f}function z(d){null!=d&&this.set(d)}function U(d,m,u){var f=""+Math.abs(d);return(d>=0?u?"+":"":"-")+Math.pow(10,Math.max(0,m-f.length)).toString().substr(1)+f}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},H={};function q(d,m,u,f){var p=f;"string"==typeof f&&(p=function(){return this[f]()}),d&&(H[d]=p),m&&(H[m[0]]=function(){return U(p.apply(this,arguments),m[1],m[2])}),u&&(H[u]=function(){return this.localeData().ordinal(p.apply(this,arguments),d)})}function G(d,m){return d.isValid()?($[m=Y(m,d.localeData())]=$[m]||function(d){var m,u,f,p=d.match(j);for(u=0,f=p.length;u<f;u++)H[p[u]]?p[u]=H[p[u]]:p[u]=(m=p[u]).match(/\[[\s\S]/)?m.replace(/^\[|\]$/g,""):m.replace(/\\/g,"");return function(m){var u,h="";for(u=0;u<f;u++)h+=P(p[u])?p[u].call(m,d):p[u];return h}}(m),$[m](d)):d.localeData().invalidDate()}function Y(d,m){var u=5;function f(d){return m.longDateFormat(d)||d}for(V.lastIndex=0;u>=0&&V.test(d);)d=d.replace(V,f),V.lastIndex=0,u-=1;return d}var W={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function X(d){return"string"==typeof d?W[d]||W[d.toLowerCase()]:void 0}function K(d){var m,u,f={};for(u in d)h(d,u)&&(m=X(u))&&(f[m]=d[u]);return f}var J,Z,Q,ee={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},et=Object.keys?Object.keys:function(d){var m,u=[];for(m in d)h(d,m)&&u.push(m);return u},en=/\d/,ei=/\d\d/,eo=/\d{3}/,er=/\d{4}/,ea=/[+-]?\d{6}/,es=/\d\d?/,el=/\d\d\d\d?/,ec=/\d\d\d\d\d\d?/,ed=/\d{1,3}/,em=/\d{1,4}/,eu=/[+-]?\d{1,6}/,ef=/\d+/,ep=/[+-]?\d+/,eh=/Z|[+-]\d\d:?\d\d/gi,eb=/Z|[+-]\d\d(?::?\d\d)?/gi,eg=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ev=/^[1-9]\d?/,e_=/^([1-9]\d|\d)/;function ey(d,m,u){Q[d]=P(m)?m:function(d,f){return d&&u?u:m}}function eF(d){return d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ex(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ew(d){var m=+d,u=0;return 0!==m&&isFinite(m)&&(u=ex(m)),u}Q={};var eE={};function ek(d,m){var u,f,p=m;for("string"==typeof d&&(d=[d]),v(m)&&(p=function(d,u){u[m]=ew(d)}),f=d.length,u=0;u<f;u++)eE[d[u]]=p}function eA(d,m){ek(d,function(d,u,f,p){f._w=f._w||{},m(d,f._w,f,p)})}function eC(d){return d%4==0&&d%100!=0||d%400==0}function eT(d){return eC(d)?366:365}q("Y",0,0,function(){var d=this.year();return d<=9999?U(d,4):"+"+d}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),ey("Y",ep),ey("YY",es,ei),ey("YYYY",em,er),ey("YYYYY",eu,ea),ey("YYYYYY",eu,ea),ek(["YYYYY","YYYYYY"],0),ek("YYYY",function(d,u){u[0]=2===d.length?m.parseTwoDigitYear(d):ew(d)}),ek("YY",function(d,u){u[0]=m.parseTwoDigitYear(d)}),ek("Y",function(d,m){m[0]=parseInt(d,10)}),m.parseTwoDigitYear=function(d){return ew(d)+(ew(d)>68?1900:2e3)};var eS=eI("FullYear",!0);function eI(d,u){return function(f){return null!=f?(eD(this,d,f),m.updateOffset(this,u),this):eO(this,d)}}function eO(d,m){if(!d.isValid())return 0/0;var u=d._d,f=d._isUTC;switch(m){case"Milliseconds":return f?u.getUTCMilliseconds():u.getMilliseconds();case"Seconds":return f?u.getUTCSeconds():u.getSeconds();case"Minutes":return f?u.getUTCMinutes():u.getMinutes();case"Hours":return f?u.getUTCHours():u.getHours();case"Date":return f?u.getUTCDate():u.getDate();case"Day":return f?u.getUTCDay():u.getDay();case"Month":return f?u.getUTCMonth():u.getMonth();case"FullYear":return f?u.getUTCFullYear():u.getFullYear();default:return 0/0}}function eD(d,m,u){var f,p,h,b;if(!(!d.isValid()||isNaN(u))){switch(f=d._d,p=d._isUTC,m){case"Milliseconds":return void(p?f.setUTCMilliseconds(u):f.setMilliseconds(u));case"Seconds":return void(p?f.setUTCSeconds(u):f.setSeconds(u));case"Minutes":return void(p?f.setUTCMinutes(u):f.setMinutes(u));case"Hours":return void(p?f.setUTCHours(u):f.setHours(u));case"Date":return void(p?f.setUTCDate(u):f.setDate(u));case"FullYear":break;default:return}h=d.month(),b=d.date(),b=29!==b||1!==h||eC(u)?b:28,p?f.setUTCFullYear(u,h,b):f.setFullYear(u,h,b)}}function eR(d,m){if(isNaN(d)||isNaN(m))return 0/0;var u=(m%12+12)%12;return d+=(m-u)/12,1===u?eC(d)?29:28:31-u%7%2}eQ=Array.prototype.indexOf?Array.prototype.indexOf:function(d){var m;for(m=0;m<this.length;++m)if(this[m]===d)return m;return -1},q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(d){return this.localeData().monthsShort(this,d)}),q("MMMM",0,0,function(d){return this.localeData().months(this,d)}),ey("M",es,ev),ey("MM",es,ei),ey("MMM",function(d,m){return m.monthsShortRegex(d)}),ey("MMMM",function(d,m){return m.monthsRegex(d)}),ek(["M","MM"],function(d,m){m[1]=ew(d)-1}),ek(["MMM","MMMM"],function(d,m,u,f){var p=u._locale.monthsParse(d,f,u._strict);null!=p?m[1]=p:w(u).invalidMonth=d});var eN="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eB=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eL(d,m,u){var f,p,h,b=d.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],f=0;f<12;++f)h=x([2e3,f]),this._shortMonthsParse[f]=this.monthsShort(h,"").toLocaleLowerCase(),this._longMonthsParse[f]=this.months(h,"").toLocaleLowerCase();if(u)if("MMM"===m)return -1!==(p=eQ.call(this._shortMonthsParse,b))?p:null;else return -1!==(p=eQ.call(this._longMonthsParse,b))?p:null;return"MMM"===m?-1!==(p=eQ.call(this._shortMonthsParse,b))||-1!==(p=eQ.call(this._longMonthsParse,b))?p:null:-1!==(p=eQ.call(this._longMonthsParse,b))||-1!==(p=eQ.call(this._shortMonthsParse,b))?p:null}function eP(d,m){if(!d.isValid())return d;if("string"==typeof m){if(/^\d+$/.test(m))m=ew(m);else if(!v(m=d.localeData().monthsParse(m)))return d}var u=m,f=d.date();return f=f<29?f:Math.min(f,eR(d.year(),u)),d._isUTC?d._d.setUTCMonth(u,f):d._d.setMonth(u,f),d}function eM(d){return null!=d?(eP(this,d),m.updateOffset(this,!0),this):eO(this,"Month")}function ez(){function d(d,m){return m.length-d.length}var m,u,f,p,h=[],b=[],g=[];for(m=0;m<12;m++)u=x([2e3,m]),f=eF(this.monthsShort(u,"")),p=eF(this.months(u,"")),h.push(f),b.push(p),g.push(p),g.push(f);h.sort(d),b.sort(d),g.sort(d),this._monthsRegex=RegExp("^("+g.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+b.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+h.join("|")+")","i")}function eU(d,m,u,f,p,h,b){var g;return d<100&&d>=0?isFinite((g=new Date(d+400,m,u,f,p,h,b)).getFullYear())&&g.setFullYear(d):g=new Date(d,m,u,f,p,h,b),g}function ej(d){var m,u;return d<100&&d>=0?(u=Array.prototype.slice.call(arguments),u[0]=d+400,isFinite((m=new Date(Date.UTC.apply(null,u))).getUTCFullYear())&&m.setUTCFullYear(d)):m=new Date(Date.UTC.apply(null,arguments)),m}function eV(d,m,u){var f=7+m-u;return-((7+ej(d,0,f).getUTCDay()-m)%7)+f-1}function e$(d,m,u,f,p){var h,b,g=1+7*(m-1)+(7+u-f)%7+eV(d,f,p);return g<=0?b=eT(h=d-1)+g:g>eT(d)?(h=d+1,b=g-eT(d)):(h=d,b=g),{year:h,dayOfYear:b}}function eH(d,m,u){var f,p,h=eV(d.year(),m,u),b=Math.floor((d.dayOfYear()-h-1)/7)+1;return b<1?f=b+eq(p=d.year()-1,m,u):b>eq(d.year(),m,u)?(f=b-eq(d.year(),m,u),p=d.year()+1):(p=d.year(),f=b),{week:f,year:p}}function eq(d,m,u){var f=eV(d,m,u),p=eV(d+1,m,u);return(eT(d)-f+p)/7}function eG(d,m){return d.slice(m,7).concat(d.slice(0,m))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),ey("w",es,ev),ey("ww",es,ei),ey("W",es,ev),ey("WW",es,ei),eA(["w","ww","W","WW"],function(d,m,u,f){m[f.substr(0,1)]=ew(d)}),q("d",0,"do","day"),q("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),q("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),q("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),ey("d",es),ey("e",es),ey("E",es),ey("dd",function(d,m){return m.weekdaysMinRegex(d)}),ey("ddd",function(d,m){return m.weekdaysShortRegex(d)}),ey("dddd",function(d,m){return m.weekdaysRegex(d)}),eA(["dd","ddd","dddd"],function(d,m,u,f){var p=u._locale.weekdaysParse(d,f,u._strict);null!=p?m.d=p:w(u).invalidWeekday=d}),eA(["d","e","E"],function(d,m,u,f){m[f]=ew(d)});var eY="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eW(d,m,u){var f,p,h,b=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)h=x([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(h,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(h,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(h,"").toLocaleLowerCase();if(u)if("dddd"===m)return -1!==(p=eQ.call(this._weekdaysParse,b))?p:null;else if("ddd"===m)return -1!==(p=eQ.call(this._shortWeekdaysParse,b))?p:null;else return -1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null;return"dddd"===m?-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._shortWeekdaysParse,b))||-1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null:"ddd"===m?-1!==(p=eQ.call(this._shortWeekdaysParse,b))||-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null:-1!==(p=eQ.call(this._minWeekdaysParse,b))||-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._shortWeekdaysParse,b))?p:null}function eX(){function d(d,m){return m.length-d.length}var m,u,f,p,h,b=[],g=[],v=[],_=[];for(m=0;m<7;m++)u=x([2e3,1]).day(m),f=eF(this.weekdaysMin(u,"")),p=eF(this.weekdaysShort(u,"")),h=eF(this.weekdays(u,"")),b.push(f),g.push(p),v.push(h),_.push(f),_.push(p),_.push(h);b.sort(d),g.sort(d),v.sort(d),_.sort(d),this._weekdaysRegex=RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+v.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+b.join("|")+")","i")}function eK(){return this.hours()%12||12}function eJ(d,m){q(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),m)})}function eZ(d,m){return m._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,eK),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+eK.apply(this)+U(this.minutes(),2)}),q("hmmss",0,0,function(){return""+eK.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),eJ("a",!0),eJ("A",!1),ey("a",eZ),ey("A",eZ),ey("H",es,e_),ey("h",es,ev),ey("k",es,ev),ey("HH",es,ei),ey("hh",es,ei),ey("kk",es,ei),ey("hmm",el),ey("hmmss",ec),ey("Hmm",el),ey("Hmmss",ec),ek(["H","HH"],3),ek(["k","kk"],function(d,m,u){var f=ew(d);m[3]=24===f?0:f}),ek(["a","A"],function(d,m,u){u._isPm=u._locale.isPM(d),u._meridiem=d}),ek(["h","hh"],function(d,m,u){m[3]=ew(d),w(u).bigHour=!0}),ek("hmm",function(d,m,u){var f=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f)),w(u).bigHour=!0}),ek("hmmss",function(d,m,u){var f=d.length-4,p=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f,2)),m[5]=ew(d.substr(p)),w(u).bigHour=!0}),ek("Hmm",function(d,m,u){var f=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f))}),ek("Hmmss",function(d,m,u){var f=d.length-4,p=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f,2)),m[5]=ew(d.substr(p))});var eQ,e0,e1=eI("Hours",!0),e2={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eN,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eY,meridiemParse:/[ap]\.?m?\.?/i},e5={},e4={};function e3(d){return d?d.toLowerCase().replace("_","-"):d}function e6(m){var f=null;if(void 0===e5[m]&&d&&d.exports&&m&&m.match("^[^/\\\\]*$"))try{f=e0._abbr,u(3118)("./locale/"+m),e8(f)}catch(d){e5[m]=null}return e5[m]}function e8(d,m){var u;return d&&((u=g(m)?e9(d):e7(d,m))?e0=u:"u">typeof console&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),e0._abbr}function e7(d,m){if(null===m)return delete e5[d],null;var u,f=e2;if(m.abbr=d,null!=e5[d])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),f=e5[d]._config;else if(null!=m.parentLocale)if(null!=e5[m.parentLocale])f=e5[m.parentLocale]._config;else{if(null==(u=e6(m.parentLocale)))return e4[m.parentLocale]||(e4[m.parentLocale]=[]),e4[m.parentLocale].push({name:d,config:m}),null;f=u._config}return e5[d]=new z(M(f,m)),e4[d]&&e4[d].forEach(function(d){e7(d.name,d.config)}),e8(d),e5[d]}function e9(d){var m;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return e0;if(!f(d)){if(m=e6(d))return m;d=[d]}return function(d){for(var m,u,f,p,h=0;h<d.length;){for(m=(p=e3(d[h]).split("-")).length,u=(u=e3(d[h+1]))?u.split("-"):null;m>0;){if(f=e6(p.slice(0,m).join("-")))return f;if(u&&u.length>=m&&function(d,m){var u,f=Math.min(d.length,m.length);for(u=0;u<f;u+=1)if(d[u]!==m[u])return u;return f}(p,u)>=m-1)break;m--}h++}return e0}(d)}function te(d){var m,u=d._a;return u&&-2===w(d).overflow&&(m=u[1]<0||u[1]>11?1:u[2]<1||u[2]>eR(u[0],u[1])?2:u[3]<0||u[3]>24||24===u[3]&&(0!==u[4]||0!==u[5]||0!==u[6])?3:u[4]<0||u[4]>59?4:u[5]<0||u[5]>59?5:u[6]<0||u[6]>999?6:-1,w(d)._overflowDayOfYear&&(m<0||m>2)&&(m=2),w(d)._overflowWeeks&&-1===m&&(m=7),w(d)._overflowWeekday&&-1===m&&(m=8),w(d).overflow=m),d}var tt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ti=/Z|[+-]\d\d(?::?\d\d)?/,to=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ta=/^\/?Date\((-?\d+)/i,ts=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tc(d){var m,u,f,p,h,b,g=d._i,v=tt.exec(g)||tn.exec(g),_=to.length,y=tr.length;if(v){for(w(d).iso=!0,m=0,u=_;m<u;m++)if(to[m][1].exec(v[1])){p=to[m][0],f=!1!==to[m][2];break}if(null==p){d._isValid=!1;return}if(v[3]){for(m=0,u=y;m<u;m++)if(tr[m][1].exec(v[3])){h=(v[2]||" ")+tr[m][0];break}if(null==h){d._isValid=!1;return}}if(!f&&null!=h){d._isValid=!1;return}if(v[4])if(ti.exec(v[4]))b="Z";else{d._isValid=!1;return}d._f=p+(h||"")+(b||""),tf(d)}else d._isValid=!1}function td(d){var m,u,f,p,h,b,g,v,_,y,F,x=ts.exec(d._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(x){if(h=x[4],b=x[3],g=x[2],v=x[5],_=x[6],y=x[7],F=[(m=parseInt(h,10))<=49?2e3+m:m<=999?1900+m:m,eN.indexOf(b),parseInt(g,10),parseInt(v,10),parseInt(_,10)],y&&F.push(parseInt(y,10)),u=x[1],f=F,p=d,u&&eY.indexOf(u)!==new Date(f[0],f[1],f[2]).getDay()&&(w(p).weekdayMismatch=!0,p._isValid=!1,1))return;d._a=F,d._tzm=function(d,m,u){if(d)return tl[d];if(m)return 0;var f=parseInt(u,10),p=f%100;return(f-p)/100*60+p}(x[8],x[9],x[10]),d._d=ej.apply(null,d._a),d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),w(d).rfc2822=!0}else d._isValid=!1}function tm(d,m,u){return null!=d?d:null!=m?m:u}function tu(d){var u,f,p,h,b,g,v,_,y,F,x,E,k,A,C,T,S=[];if(!d._d){for(x=new Date(m.now()),A=d._useUTC?[x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()]:[x.getFullYear(),x.getMonth(),x.getDate()],d._w&&null==d._a[2]&&null==d._a[1]&&(u=d,null!=(f=u._w).GG||null!=f.W||null!=f.E?(g=1,v=4,p=tm(f.GG,u._a[0],eH(tb(),1,4).year),h=tm(f.W,1),((b=tm(f.E,1))<1||b>7)&&(y=!0)):(g=u._locale._week.dow,v=u._locale._week.doy,F=eH(tb(),g,v),p=tm(f.gg,u._a[0],F.year),h=tm(f.w,F.week),null!=f.d?((b=f.d)<0||b>6)&&(y=!0):null!=f.e?(b=f.e+g,(f.e<0||f.e>6)&&(y=!0)):b=g),h<1||h>eq(p,g,v)?w(u)._overflowWeeks=!0:null!=y?w(u)._overflowWeekday=!0:(_=e$(p,h,b,g,v),u._a[0]=_.year,u._dayOfYear=_.dayOfYear)),null!=d._dayOfYear&&(T=tm(d._a[0],A[0]),(d._dayOfYear>eT(T)||0===d._dayOfYear)&&(w(d)._overflowDayOfYear=!0),k=ej(T,0,d._dayOfYear),d._a[1]=k.getUTCMonth(),d._a[2]=k.getUTCDate()),E=0;E<3&&null==d._a[E];++E)d._a[E]=S[E]=A[E];for(;E<7;E++)d._a[E]=S[E]=null==d._a[E]?+(2===E):d._a[E];24===d._a[3]&&0===d._a[4]&&0===d._a[5]&&0===d._a[6]&&(d._nextDay=!0,d._a[3]=0),d._d=(d._useUTC?ej:eU).apply(null,S),C=d._useUTC?d._d.getUTCDay():d._d.getDay(),null!=d._tzm&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[3]=24),d._w&&void 0!==d._w.d&&d._w.d!==C&&(w(d).weekdayMismatch=!0)}}function tf(d){if(d._f===m.ISO_8601)return void tc(d);if(d._f===m.RFC_2822)return void td(d);d._a=[],w(d).empty=!0;var u,f,p,b,g,v,_,y,F,x,E,k=""+d._i,A=k.length,C=0;for(E=(_=Y(d._f,d._locale).match(j)||[]).length,g=0;g<E;g++)if(y=_[g],(v=(k.match(!h(Q,y)?new RegExp(eF(y.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,m,u,f,p){return m||u||f||p}))):Q[y](d._strict,d._locale))||[])[0])&&((F=k.substr(0,k.indexOf(v))).length>0&&w(d).unusedInput.push(F),k=k.slice(k.indexOf(v)+v.length),C+=v.length),H[y])v?w(d).empty=!1:w(d).unusedTokens.push(y),null!=v&&h(eE,y)&&eE[y](v,d._a,d,y);else d._strict&&!v&&w(d).unusedTokens.push(y);w(d).charsLeftOver=A-C,k.length>0&&w(d).unusedInput.push(k),d._a[3]<=12&&!0===w(d).bigHour&&d._a[3]>0&&(w(d).bigHour=void 0),w(d).parsedDateParts=d._a.slice(0),w(d).meridiem=d._meridiem,d._a[3]=(u=d._locale,f=d._a[3],null==(p=d._meridiem)?f:null!=u.meridiemHour?u.meridiemHour(f,p):(null!=u.isPM&&((b=u.isPM(p))&&f<12&&(f+=12),b||12!==f||(f=0)),f)),null!==(x=w(d).era)&&(d._a[0]=d._locale.erasConvertYear(x,d._a[0])),tu(d),te(d)}function tp(d){var u=d._i,h=d._f;return(d._locale=d._locale||e9(d._l),null===u||void 0===h&&""===u)?k({nullInput:!0}):("string"==typeof u&&(d._i=u=d._locale.preparse(u)),D(u))?new O(te(u)):(_(u)?d._d=u:f(h)?!function(d){var m,u,f,p,h,b,g=!1,v=d._f.length;if(0===v){w(d).invalidFormat=!0,d._d=new Date(0/0);return}for(p=0;p<v;p++)h=0,b=!1,m=I({},d),null!=d._useUTC&&(m._useUTC=d._useUTC),m._f=d._f[p],tf(m),E(m)&&(b=!0),h+=w(m).charsLeftOver,h+=10*w(m).unusedTokens.length,w(m).score=h,g?h<f&&(f=h,u=m):(null==f||h<f||b)&&(f=h,u=m,b&&(g=!0));F(d,u||m)}(d):h?tf(d):function(d){var u=d._i;if(g(u))d._d=new Date(m.now());else if(_(u))d._d=new Date(u.valueOf());else if("string"==typeof u)!function(d){var u=ta.exec(d._i);if(null!==u){d._d=new Date(+u[1]);return}tc(d),!1!==d._isValid||(delete d._isValid,td(d),!1===d._isValid&&(delete d._isValid,d._strict?d._isValid=!1:m.createFromInputFallback(d)))}(d);else if(f(u))d._a=y(u.slice(0),function(d){return parseInt(d,10)}),tu(d);else if(p(u)){if(!d._d){var h=K(d._i),b=void 0===h.day?h.date:h.day;d._a=y([h.year,h.month,b,h.hour,h.minute,h.second,h.millisecond],function(d){return d&&parseInt(d,10)}),tu(d)}}else v(u)?d._d=new Date(u):m.createFromInputFallback(d)}(d),E(d)||(d._d=null),d)}function th(d,m,u,h,g){var v,_={};return(!0===m||!1===m)&&(h=m,m=void 0),(!0===u||!1===u)&&(h=u,u=void 0),(p(d)&&b(d)||f(d)&&0===d.length)&&(d=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=g,_._l=u,_._i=d,_._f=m,_._strict=h,(v=new O(te(tp(_))))._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function tb(d,m,u,f){return th(d,m,u,f,!1)}m.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(d){d._d=new Date(d._i+(d._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var tg=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var d=tb.apply(null,arguments);return this.isValid()&&d.isValid()?d<this?this:d:k()}),tv=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var d=tb.apply(null,arguments);return this.isValid()&&d.isValid()?d>this?this:d:k()});function t_(d,m){var u,p;if(1===m.length&&f(m[0])&&(m=m[0]),!m.length)return tb();for(u=m[0],p=1;p<m.length;++p)(!m[p].isValid()||m[p][d](u))&&(u=m[p]);return u}var ty=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tF(d){var m=K(d),u=m.year||0,f=m.quarter||0,p=m.month||0,b=m.week||m.isoWeek||0,g=m.day||0,v=m.hour||0,_=m.minute||0,y=m.second||0,F=m.millisecond||0;this._isValid=function(d){var m,u,f=!1,p=ty.length;for(m in d)if(h(d,m)&&!(-1!==eQ.call(ty,m)&&(null==d[m]||!isNaN(d[m]))))return!1;for(u=0;u<p;++u)if(d[ty[u]]){if(f)return!1;parseFloat(d[ty[u]])!==ew(d[ty[u]])&&(f=!0)}return!0}(m),this._milliseconds=+F+1e3*y+6e4*_+1e3*v*3600,this._days=+g+7*b,this._months=+p+3*f+12*u,this._data={},this._locale=e9(),this._bubble()}function tx(d){return d instanceof tF}function tw(d){return d<0?-1*Math.round(-1*d):Math.round(d)}function tE(d,m){q(d,0,0,function(){var d=this.utcOffset(),u="+";return d<0&&(d=-d,u="-"),u+U(~~(d/60),2)+m+U(~~d%60,2)})}tE("Z",":"),tE("ZZ",""),ey("Z",eb),ey("ZZ",eb),ek(["Z","ZZ"],function(d,m,u){u._useUTC=!0,u._tzm=tA(eb,d)});var tk=/([\+\-]|\d\d)/gi;function tA(d,m){var u,f,p=(m||"").match(d);return null===p?null:0===(f=+(60*(u=((p[p.length-1]||[])+"").match(tk)||["-",0,0])[1])+ew(u[2]))?0:"+"===u[0]?f:-f}function tC(d,u){var f,p;return u._isUTC?(f=u.clone(),p=(D(d)||_(d)?d.valueOf():tb(d).valueOf())-f.valueOf(),f._d.setTime(f._d.valueOf()+p),m.updateOffset(f,!1),f):tb(d).local()}function tT(d){return-Math.round(d._d.getTimezoneOffset())}function tS(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var tI=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tD(d,m){var u,f,p,b,g,_,y=d,F=null;return tx(d)?y={ms:d._milliseconds,d:d._days,M:d._months}:v(d)||!isNaN(+d)?(y={},m?y[m]=+d:y.milliseconds=+d):(F=tI.exec(d))?(b="-"===F[1]?-1:1,y={y:0,d:ew(F[2])*b,h:ew(F[3])*b,m:ew(F[4])*b,s:ew(F[5])*b,ms:ew(tw(1e3*F[6]))*b}):(F=tO.exec(d))?(b="-"===F[1]?-1:1,y={y:tR(F[2],b),M:tR(F[3],b),w:tR(F[4],b),d:tR(F[5],b),h:tR(F[6],b),m:tR(F[7],b),s:tR(F[8],b)}):null==y?y={}:"object"==typeof y&&("from"in y||"to"in y)&&(u=tb(y.from),f=tb(y.to),_=u.isValid()&&f.isValid()?(f=tC(f,u),u.isBefore(f)?p=tN(u,f):((p=tN(f,u)).milliseconds=-p.milliseconds,p.months=-p.months),p):{milliseconds:0,months:0},(y={}).ms=_.milliseconds,y.M=_.months),g=new tF(y),tx(d)&&h(d,"_locale")&&(g._locale=d._locale),tx(d)&&h(d,"_isValid")&&(g._isValid=d._isValid),g}function tR(d,m){var u=d&&parseFloat(d.replace(",","."));return(isNaN(u)?0:u)*m}function tN(d,m){var u={};return u.months=m.month()-d.month()+(m.year()-d.year())*12,d.clone().add(u.months,"M").isAfter(m)&&--u.months,u.milliseconds=m-d.clone().add(u.months,"M"),u}function tB(d,m){return function(u,f){var p;return null===f||isNaN(+f)||(L(m,"moment()."+m+"(period, number) is deprecated. Please use moment()."+m+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=u,u=f,f=p),tL(this,tD(u,f),d),this}}function tL(d,u,f,p){var h=u._milliseconds,b=tw(u._days),g=tw(u._months);d.isValid()&&(p=null==p||p,g&&eP(d,eO(d,"Month")+g*f),b&&eD(d,"Date",eO(d,"Date")+b*f),h&&d._d.setTime(d._d.valueOf()+h*f),p&&m.updateOffset(d,b||g))}tD.fn=tF.prototype,tD.invalid=function(){return tD(0/0)};var tP=tB(1,"add"),tM=tB(-1,"subtract");function tz(d){return"string"==typeof d||d instanceof String}function tU(d,m){if(d.date()<m.date())return-tU(m,d);var u,f,p=(m.year()-d.year())*12+(m.month()-d.month()),h=d.clone().add(p,"months");return f=m-h<0?(m-h)/(h-d.clone().add(p-1,"months")):(m-h)/(d.clone().add(p+1,"months")-h),-(p+f)||0}function tj(d){var m;return void 0===d?this._locale._abbr:(null!=(m=e9(d))&&(this._locale=m),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tV=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return void 0===d?this.localeData():this.locale(d)});function t$(){return this._locale}function tH(d,m,u){return d<100&&d>=0?new Date(d+400,m,u)-126227808e5:new Date(d,m,u).valueOf()}function tq(d,m,u){return d<100&&d>=0?Date.UTC(d+400,m,u)-126227808e5:Date.UTC(d,m,u)}function tG(d,m){return m.erasAbbrRegex(d)}function tY(){var d,m,u,f,p,h=[],b=[],g=[],v=[],_=this.eras();for(d=0,m=_.length;d<m;++d)u=eF(_[d].name),f=eF(_[d].abbr),p=eF(_[d].narrow),b.push(u),h.push(f),g.push(p),v.push(u),v.push(f),v.push(p);this._erasRegex=RegExp("^("+v.join("|")+")","i"),this._erasNameRegex=RegExp("^("+b.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+h.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+g.join("|")+")","i")}function tW(d,m){q(0,[d,d.length],0,m)}function tX(d,m,u,f,p){var h;return null==d?eH(this,f,p).year:(m>(h=eq(d,f,p))&&(m=h),tK.call(this,d,m,u,f,p))}function tK(d,m,u,f,p){var h=e$(d,m,u,f,p),b=ej(h.year,0,h.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),ey("N",tG),ey("NN",tG),ey("NNN",tG),ey("NNNN",function(d,m){return m.erasNameRegex(d)}),ey("NNNNN",function(d,m){return m.erasNarrowRegex(d)}),ek(["N","NN","NNN","NNNN","NNNNN"],function(d,m,u,f){var p=u._locale.erasParse(d,f,u._strict);p?w(u).era=p:w(u).invalidEra=d}),ey("y",ef),ey("yy",ef),ey("yyy",ef),ey("yyyy",ef),ey("yo",function(d,m){return m._eraYearOrdinalRegex||ef}),ek(["y","yy","yyy","yyyy"],0),ek(["yo"],function(d,m,u,f){var p;u._locale._eraYearOrdinalRegex&&(p=d.match(u._locale._eraYearOrdinalRegex)),u._locale.eraYearOrdinalParse?m[0]=u._locale.eraYearOrdinalParse(d,p):m[0]=parseInt(d,10)}),q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tW("gggg","weekYear"),tW("ggggg","weekYear"),tW("GGGG","isoWeekYear"),tW("GGGGG","isoWeekYear"),ey("G",ep),ey("g",ep),ey("GG",es,ei),ey("gg",es,ei),ey("GGGG",em,er),ey("gggg",em,er),ey("GGGGG",eu,ea),ey("ggggg",eu,ea),eA(["gggg","ggggg","GGGG","GGGGG"],function(d,m,u,f){m[f.substr(0,2)]=ew(d)}),eA(["gg","GG"],function(d,u,f,p){u[p]=m.parseTwoDigitYear(d)}),q("Q",0,"Qo","quarter"),ey("Q",en),ek("Q",function(d,m){m[1]=(ew(d)-1)*3}),q("D",["DD",2],"Do","date"),ey("D",es,ev),ey("DD",es,ei),ey("Do",function(d,m){return d?m._dayOfMonthOrdinalParse||m._ordinalParse:m._dayOfMonthOrdinalParseLenient}),ek(["D","DD"],2),ek("Do",function(d,m){m[2]=ew(d.match(es)[0])});var tJ=eI("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),ey("DDD",ed),ey("DDDD",eo),ek(["DDD","DDDD"],function(d,m,u){u._dayOfYear=ew(d)}),q("m",["mm",2],0,"minute"),ey("m",es,e_),ey("mm",es,ei),ek(["m","mm"],4);var tZ=eI("Minutes",!1);q("s",["ss",2],0,"second"),ey("s",es,e_),ey("ss",es,ei),ek(["s","ss"],5);var tQ=eI("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ey("S",ed,en),ey("SS",ed,ei),ey("SSS",ed,eo),A="SSSS";A.length<=9;A+="S")ey(A,ef);function t0(d,m){m[6]=ew(("0."+d)*1e3)}for(A="S";A.length<=9;A+="S")ek(A,t0);C=eI("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var t1=O.prototype;function t2(d){return d}t1.add=tP,t1.calendar=function(d,u){if(1==arguments.length)if(arguments[0]){var g,y,F,x;if(g=arguments[0],D(g)||_(g)||tz(g)||v(g)||(y=g,F=f(y),x=!1,F&&(x=0===y.filter(function(d){return!v(d)&&tz(y)}).length),F&&x)||function(d){var m,u,f=p(d)&&!b(d),g=!1,v=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],_=v.length;for(m=0;m<_;m+=1)u=v[m],g=g||h(d,u);return f&&g}(g)||null==g)d=arguments[0],u=void 0;else(function(d){var m,u,f=p(d)&&!b(d),g=!1,v=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(m=0;m<v.length;m+=1)u=v[m],g=g||h(d,u);return f&&g})(arguments[0])&&(u=arguments[0],d=void 0)}else d=void 0,u=void 0;var w=d||tb(),E=tC(w,this).startOf("day"),k=m.calendarFormat(this,E)||"sameElse",A=u&&(P(u[k])?u[k].call(this,w):u[k]);return this.format(A||this.localeData().calendar(k,this,tb(w)))},t1.clone=function(){return new O(this)},t1.diff=function(d,m,u){var f,p,h;if(!this.isValid()||!(f=tC(d,this)).isValid())return 0/0;switch(p=(f.utcOffset()-this.utcOffset())*6e4,m=X(m)){case"year":h=tU(this,f)/12;break;case"month":h=tU(this,f);break;case"quarter":h=tU(this,f)/3;break;case"second":h=(this-f)/1e3;break;case"minute":h=(this-f)/6e4;break;case"hour":h=(this-f)/36e5;break;case"day":h=(this-f-p)/864e5;break;case"week":h=(this-f-p)/6048e5;break;default:h=this-f}return u?h:ex(h)},t1.endOf=function(d){var u,f;if(void 0===(d=X(d))||"millisecond"===d||!this.isValid())return this;switch(f=this._isUTC?tq:tH,d){case"year":u=f(this.year()+1,0,1)-1;break;case"quarter":u=f(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=f(this.year(),this.month()+1,1)-1;break;case"week":u=f(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=f(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=36e5-((u+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":u=this._d.valueOf(),u+=6e4-(u%6e4+6e4)%6e4-1;break;case"second":u=this._d.valueOf(),u+=1e3-(u%1e3+1e3)%1e3-1}return this._d.setTime(u),m.updateOffset(this,!0),this},t1.format=function(d){d||(d=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var u=G(this,d);return this.localeData().postformat(u)},t1.from=function(d,m){return this.isValid()&&(D(d)&&d.isValid()||tb(d).isValid())?tD({to:this,from:d}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()},t1.fromNow=function(d){return this.from(tb(),d)},t1.to=function(d,m){return this.isValid()&&(D(d)&&d.isValid()||tb(d).isValid())?tD({from:this,to:d}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()},t1.toNow=function(d){return this.to(tb(),d)},t1.get=function(d){return P(this[d=X(d)])?this[d]():this},t1.invalidAt=function(){return w(this).overflow},t1.isAfter=function(d,m){var u=D(d)?d:tb(d);return!!(this.isValid()&&u.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()>u.valueOf():u.valueOf()<this.clone().startOf(m).valueOf())},t1.isBefore=function(d,m){var u=D(d)?d:tb(d);return!!(this.isValid()&&u.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()<u.valueOf():this.clone().endOf(m).valueOf()<u.valueOf())},t1.isBetween=function(d,m,u,f){var p=D(d)?d:tb(d),h=D(m)?m:tb(m);return!!(this.isValid()&&p.isValid()&&h.isValid())&&("("===(f=f||"()")[0]?this.isAfter(p,u):!this.isBefore(p,u))&&(")"===f[1]?this.isBefore(h,u):!this.isAfter(h,u))},t1.isSame=function(d,m){var u,f=D(d)?d:tb(d);return!!(this.isValid()&&f.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()===f.valueOf():(u=f.valueOf(),this.clone().startOf(m).valueOf()<=u&&u<=this.clone().endOf(m).valueOf()))},t1.isSameOrAfter=function(d,m){return this.isSame(d,m)||this.isAfter(d,m)},t1.isSameOrBefore=function(d,m){return this.isSame(d,m)||this.isBefore(d,m)},t1.isValid=function(){return E(this)},t1.lang=tV,t1.locale=tj,t1.localeData=t$,t1.max=tv,t1.min=tg,t1.parsingFlags=function(){return F({},w(this))},t1.set=function(d,m){if("object"==typeof d){var u,f=function(d){var m,u=[];for(m in d)h(d,m)&&u.push({unit:m,priority:ee[m]});return u.sort(function(d,m){return d.priority-m.priority}),u}(d=K(d)),p=f.length;for(u=0;u<p;u++)this[f[u].unit](d[f[u].unit])}else if(P(this[d=X(d)]))return this[d](m);return this},t1.startOf=function(d){var u,f;if(void 0===(d=X(d))||"millisecond"===d||!this.isValid())return this;switch(f=this._isUTC?tq:tH,d){case"year":u=f(this.year(),0,1);break;case"quarter":u=f(this.year(),this.month()-this.month()%3,1);break;case"month":u=f(this.year(),this.month(),1);break;case"week":u=f(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=f(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=((u+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":u=this._d.valueOf(),u-=(u%6e4+6e4)%6e4;break;case"second":u=this._d.valueOf(),u-=(u%1e3+1e3)%1e3}return this._d.setTime(u),m.updateOffset(this,!0),this},t1.subtract=tM,t1.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},t1.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},t1.toDate=function(){return new Date(this.valueOf())},t1.toISOString=function(d){if(!this.isValid())return null;var m=!0!==d,u=m?this.clone().utc():this;if(0>u.year()||u.year()>9999)return G(u,m?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(P(Date.prototype.toISOString))if(m)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(u,"Z"));return G(u,m?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},t1.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d,m,u,f="moment",p="";return this.isLocal()||(f=0===this.utcOffset()?"moment.utc":"moment.parseZone",p="Z"),d="["+f+'("]',m=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",u=p+'[")]',this.format(d+m+"-MM-DD[T]HH:mm:ss.SSS"+u)},"u">typeof Symbol&&null!=Symbol.for&&(t1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),t1.toJSON=function(){return this.isValid()?this.toISOString():null},t1.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},t1.unix=function(){return Math.floor(this.valueOf()/1e3)},t1.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},t1.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},t1.eraName=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].name;return""},t1.eraNarrow=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].narrow;return""},t1.eraAbbr=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].abbr;return""},t1.eraYear=function(){var d,u,f,p,h=this.localeData().eras();for(d=0,u=h.length;d<u;++d)if(f=h[d].since<=h[d].until?1:-1,p=this.clone().startOf("day").valueOf(),h[d].since<=p&&p<=h[d].until||h[d].until<=p&&p<=h[d].since)return(this.year()-m(h[d].since).year())*f+h[d].offset;return this.year()},t1.year=eS,t1.isLeapYear=function(){return eC(this.year())},t1.weekYear=function(d){return tX.call(this,d,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},t1.isoWeekYear=function(d){return tX.call(this,d,this.isoWeek(),this.isoWeekday(),1,4)},t1.quarter=t1.quarters=function(d){return null==d?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)},t1.month=eM,t1.daysInMonth=function(){return eR(this.year(),this.month())},t1.week=t1.weeks=function(d){var m=this.localeData().week(this);return null==d?m:this.add((d-m)*7,"d")},t1.isoWeek=t1.isoWeeks=function(d){var m=eH(this,1,4).week;return null==d?m:this.add((d-m)*7,"d")},t1.weeksInYear=function(){var d=this.localeData()._week;return eq(this.year(),d.dow,d.doy)},t1.weeksInWeekYear=function(){var d=this.localeData()._week;return eq(this.weekYear(),d.dow,d.doy)},t1.isoWeeksInYear=function(){return eq(this.year(),1,4)},t1.isoWeeksInISOWeekYear=function(){return eq(this.isoWeekYear(),1,4)},t1.date=tJ,t1.day=t1.days=function(d){if(!this.isValid())return null!=d?this:0/0;var m,u,f=eO(this,"Day");return null==d?f:(m=d,u=this.localeData(),d="string"!=typeof m?m:isNaN(m)?"number"==typeof(m=u.weekdaysParse(m))?m:null:parseInt(m,10),this.add(d-f,"d"))},t1.weekday=function(d){if(!this.isValid())return null!=d?this:0/0;var m=(this.day()+7-this.localeData()._week.dow)%7;return null==d?m:this.add(d-m,"d")},t1.isoWeekday=function(d){if(!this.isValid())return null!=d?this:0/0;if(null==d)return this.day()||7;var m,u=(m=this.localeData(),"string"==typeof d?m.weekdaysParse(d)%7||7:isNaN(d)?null:d);return this.day(this.day()%7?u:u-7)},t1.dayOfYear=function(d){var m=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==d?m:this.add(d-m,"d")},t1.hour=t1.hours=e1,t1.minute=t1.minutes=tZ,t1.second=t1.seconds=tQ,t1.millisecond=t1.milliseconds=C,t1.utcOffset=function(d,u,f){var p,h=this._offset||0;if(!this.isValid())return null!=d?this:0/0;if(null==d)return this._isUTC?h:tT(this);if("string"==typeof d){if(null===(d=tA(eb,d)))return this}else 16>Math.abs(d)&&!f&&(d*=60);return!this._isUTC&&u&&(p=tT(this)),this._offset=d,this._isUTC=!0,null!=p&&this.add(p,"m"),h!==d&&(!u||this._changeInProgress?tL(this,tD(d-h,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},t1.utc=function(d){return this.utcOffset(0,d)},t1.local=function(d){return this._isUTC&&(this.utcOffset(0,d),this._isUTC=!1,d&&this.subtract(tT(this),"m")),this},t1.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var d=tA(eh,this._i);null!=d?this.utcOffset(d):this.utcOffset(0,!0)}return this},t1.hasAlignedHourOffset=function(d){return!!this.isValid()&&(d=d?tb(d).utcOffset():0,(this.utcOffset()-d)%60==0)},t1.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},t1.isLocal=function(){return!!this.isValid()&&!this._isUTC},t1.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},t1.isUtc=tS,t1.isUTC=tS,t1.zoneAbbr=function(){return this._isUTC?"UTC":""},t1.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},t1.dates=N("dates accessor is deprecated. Use date instead.",tJ),t1.months=N("months accessor is deprecated. Use month instead",eM),t1.years=N("years accessor is deprecated. Use year instead",eS),t1.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(d,m){return null!=d?("string"!=typeof d&&(d=-d),this.utcOffset(d,m),this):-this.utcOffset()}),t1.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var d,m={};return I(m,this),(m=tp(m))._a?(d=m._isUTC?x(m._a):tb(m._a),this._isDSTShifted=this.isValid()&&function(d,m){var u,f=Math.min(d.length,m.length),p=Math.abs(d.length-m.length),h=0;for(u=0;u<f;u++)ew(d[u])!==ew(m[u])&&h++;return h+p}(m._a,d.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t5=z.prototype;function t4(d,m,u,f){var p=e9(),h=x().set(f,m);return p[u](h,d)}function t3(d,m,u){if(v(d)&&(m=d,d=void 0),d=d||"",null!=m)return t4(d,m,u,"month");var f,p=[];for(f=0;f<12;f++)p[f]=t4(d,f,u,"month");return p}function t6(d,m,u,f){"boolean"==typeof d||(u=m=d,d=!1),v(m)&&(u=m,m=void 0),m=m||"";var p,h=e9(),b=d?h._week.dow:0,g=[];if(null!=u)return t4(m,(u+b)%7,f,"day");for(p=0;p<7;p++)g[p]=t4(m,(p+b)%7,f,"day");return g}t5.calendar=function(d,m,u){var f=this._calendar[d]||this._calendar.sameElse;return P(f)?f.call(m,u):f},t5.longDateFormat=function(d){var m=this._longDateFormat[d],u=this._longDateFormat[d.toUpperCase()];return m||!u?m:(this._longDateFormat[d]=u.match(j).map(function(d){return"MMMM"===d||"MM"===d||"DD"===d||"dddd"===d?d.slice(1):d}).join(""),this._longDateFormat[d])},t5.invalidDate=function(){return this._invalidDate},t5.ordinal=function(d){return this._ordinal.replace("%d",d)},t5.preparse=t2,t5.postformat=t2,t5.relativeTime=function(d,m,u,f){var p=this._relativeTime[u];return P(p)?p(d,m,u,f):p.replace(/%d/i,d)},t5.pastFuture=function(d,m){var u=this._relativeTime[d>0?"future":"past"];return P(u)?u(m):u.replace(/%s/i,m)},t5.set=function(d){var m,u;for(u in d)h(d,u)&&(P(m=d[u])?this[u]=m:this["_"+u]=m);this._config=d,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t5.eras=function(d,u){var f,p,h,b=this._eras||e9("en")._eras;for(f=0,p=b.length;f<p;++f)switch("string"==typeof b[f].since&&(h=m(b[f].since).startOf("day"),b[f].since=h.valueOf()),typeof b[f].until){case"undefined":b[f].until=1/0;break;case"string":h=m(b[f].until).startOf("day").valueOf(),b[f].until=h.valueOf()}return b},t5.erasParse=function(d,m,u){var f,p,h,b,g,v=this.eras();for(d=d.toUpperCase(),f=0,p=v.length;f<p;++f)if(h=v[f].name.toUpperCase(),b=v[f].abbr.toUpperCase(),g=v[f].narrow.toUpperCase(),u)switch(m){case"N":case"NN":case"NNN":if(b===d)return v[f];break;case"NNNN":if(h===d)return v[f];break;case"NNNNN":if(g===d)return v[f]}else if([h,b,g].indexOf(d)>=0)return v[f]},t5.erasConvertYear=function(d,u){var f=d.since<=d.until?1:-1;return void 0===u?m(d.since).year():m(d.since).year()+(u-d.offset)*f},t5.erasAbbrRegex=function(d){return h(this,"_erasAbbrRegex")||tY.call(this),d?this._erasAbbrRegex:this._erasRegex},t5.erasNameRegex=function(d){return h(this,"_erasNameRegex")||tY.call(this),d?this._erasNameRegex:this._erasRegex},t5.erasNarrowRegex=function(d){return h(this,"_erasNarrowRegex")||tY.call(this),d?this._erasNarrowRegex:this._erasRegex},t5.months=function(d,m){return d?f(this._months)?this._months[d.month()]:this._months[(this._months.isFormat||eB).test(m)?"format":"standalone"][d.month()]:f(this._months)?this._months:this._months.standalone},t5.monthsShort=function(d,m){return d?f(this._monthsShort)?this._monthsShort[d.month()]:this._monthsShort[eB.test(m)?"format":"standalone"][d.month()]:f(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t5.monthsParse=function(d,m,u){var f,p,h;if(this._monthsParseExact)return eL.call(this,d,m,u);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),f=0;f<12;f++){if(p=x([2e3,f]),u&&!this._longMonthsParse[f]&&(this._longMonthsParse[f]=RegExp("^"+this.months(p,"").replace(".","")+"$","i"),this._shortMonthsParse[f]=RegExp("^"+this.monthsShort(p,"").replace(".","")+"$","i")),u||this._monthsParse[f]||(h="^"+this.months(p,"")+"|^"+this.monthsShort(p,""),this._monthsParse[f]=RegExp(h.replace(".",""),"i")),u&&"MMMM"===m&&this._longMonthsParse[f].test(d))return f;if(u&&"MMM"===m&&this._shortMonthsParse[f].test(d))return f;if(!u&&this._monthsParse[f].test(d))return f}},t5.monthsRegex=function(d){return this._monthsParseExact?(h(this,"_monthsRegex")||ez.call(this),d)?this._monthsStrictRegex:this._monthsRegex:(h(this,"_monthsRegex")||(this._monthsRegex=eg),this._monthsStrictRegex&&d?this._monthsStrictRegex:this._monthsRegex)},t5.monthsShortRegex=function(d){return this._monthsParseExact?(h(this,"_monthsRegex")||ez.call(this),d)?this._monthsShortStrictRegex:this._monthsShortRegex:(h(this,"_monthsShortRegex")||(this._monthsShortRegex=eg),this._monthsShortStrictRegex&&d?this._monthsShortStrictRegex:this._monthsShortRegex)},t5.week=function(d){return eH(d,this._week.dow,this._week.doy).week},t5.firstDayOfYear=function(){return this._week.doy},t5.firstDayOfWeek=function(){return this._week.dow},t5.weekdays=function(d,m){var u=f(this._weekdays)?this._weekdays:this._weekdays[d&&!0!==d&&this._weekdays.isFormat.test(m)?"format":"standalone"];return!0===d?eG(u,this._week.dow):d?u[d.day()]:u},t5.weekdaysMin=function(d){return!0===d?eG(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin},t5.weekdaysShort=function(d){return!0===d?eG(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort},t5.weekdaysParse=function(d,m,u){var f,p,h;if(this._weekdaysParseExact)return eW.call(this,d,m,u);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(p=x([2e3,1]).day(f),u&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(h="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[f]=RegExp(h.replace(".",""),"i")),u&&"dddd"===m&&this._fullWeekdaysParse[f].test(d))return f;if(u&&"ddd"===m&&this._shortWeekdaysParse[f].test(d))return f;if(u&&"dd"===m&&this._minWeekdaysParse[f].test(d))return f;else if(!u&&this._weekdaysParse[f].test(d))return f}},t5.weekdaysRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysStrictRegex:this._weekdaysRegex:(h(this,"_weekdaysRegex")||(this._weekdaysRegex=eg),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)},t5.weekdaysShortRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eg),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t5.weekdaysMinRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eg),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t5.isPM=function(d){return"p"===(d+"").toLowerCase().charAt(0)},t5.meridiem=function(d,m,u){return d>11?u?"pm":"PM":u?"am":"AM"},e8("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(d){var m=d%10,u=1===ew(d%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th";return d+u}}),m.lang=N("moment.lang is deprecated. Use moment.locale instead.",e8),m.langData=N("moment.langData is deprecated. Use moment.localeData instead.",e9);var t8=Math.abs;function t7(d,m,u,f){var p=tD(m,u);return d._milliseconds+=f*p._milliseconds,d._days+=f*p._days,d._months+=f*p._months,d._bubble()}function t9(d){return d<0?Math.floor(d):Math.ceil(d)}function ne(d){return 4800*d/146097}function nt(d){return 146097*d/4800}function nn(d){return function(){return this.as(d)}}var ni=nn("ms"),no=nn("s"),nr=nn("m"),na=nn("h"),ns=nn("d"),nl=nn("w"),nc=nn("M"),nd=nn("Q"),nm=nn("y");function nu(d){return function(){return this.isValid()?this._data[d]:0/0}}var nf=nu("milliseconds"),np=nu("seconds"),nh=nu("minutes"),nb=nu("hours"),ng=nu("days"),nv=nu("months"),n_=nu("years"),ny=Math.round,nF={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nx(d,m,u,f,p){return p.relativeTime(m||1,!!u,d,f)}var nw=Math.abs;function nE(d){return(d>0)-(d<0)||+d}function nk(){if(!this.isValid())return this.localeData().invalidDate();var d,m,u,f,p,h,b,g,v=nw(this._milliseconds)/1e3,_=nw(this._days),y=nw(this._months),F=this.asSeconds();return F?(d=ex(v/60),m=ex(d/60),v%=60,d%=60,u=ex(y/12),y%=12,f=v?v.toFixed(3).replace(/\.?0+$/,""):"",p=F<0?"-":"",h=nE(this._months)!==nE(F)?"-":"",b=nE(this._days)!==nE(F)?"-":"",g=nE(this._milliseconds)!==nE(F)?"-":"",p+"P"+(u?h+u+"Y":"")+(y?h+y+"M":"")+(_?b+_+"D":"")+(m||d||v?"T":"")+(m?g+m+"H":"")+(d?g+d+"M":"")+(v?g+f+"S":"")):"P0D"}var nA=tF.prototype;return nA.isValid=function(){return this._isValid},nA.abs=function(){var d=this._data;return this._milliseconds=t8(this._milliseconds),this._days=t8(this._days),this._months=t8(this._months),d.milliseconds=t8(d.milliseconds),d.seconds=t8(d.seconds),d.minutes=t8(d.minutes),d.hours=t8(d.hours),d.months=t8(d.months),d.years=t8(d.years),this},nA.add=function(d,m){return t7(this,d,m,1)},nA.subtract=function(d,m){return t7(this,d,m,-1)},nA.as=function(d){if(!this.isValid())return 0/0;var m,u,f=this._milliseconds;if("month"===(d=X(d))||"quarter"===d||"year"===d)switch(m=this._days+f/864e5,u=this._months+ne(m),d){case"month":return u;case"quarter":return u/3;case"year":return u/12}else switch(m=this._days+Math.round(nt(this._months)),d){case"week":return m/7+f/6048e5;case"day":return m+f/864e5;case"hour":return 24*m+f/36e5;case"minute":return 1440*m+f/6e4;case"second":return 86400*m+f/1e3;case"millisecond":return Math.floor(864e5*m)+f;default:throw Error("Unknown unit "+d)}},nA.asMilliseconds=ni,nA.asSeconds=no,nA.asMinutes=nr,nA.asHours=na,nA.asDays=ns,nA.asWeeks=nl,nA.asMonths=nc,nA.asQuarters=nd,nA.asYears=nm,nA.valueOf=ni,nA._bubble=function(){var d,m,u,f,p,h=this._milliseconds,b=this._days,g=this._months,v=this._data;return h>=0&&b>=0&&g>=0||h<=0&&b<=0&&g<=0||(h+=864e5*t9(nt(g)+b),b=0,g=0),v.milliseconds=h%1e3,v.seconds=(d=ex(h/1e3))%60,v.minutes=(m=ex(d/60))%60,v.hours=(u=ex(m/60))%24,b+=ex(u/24),g+=p=ex(ne(b)),b-=t9(nt(p)),f=ex(g/12),g%=12,v.days=b,v.months=g,v.years=f,this},nA.clone=function(){return tD(this)},nA.get=function(d){return d=X(d),this.isValid()?this[d+"s"]():0/0},nA.milliseconds=nf,nA.seconds=np,nA.minutes=nh,nA.hours=nb,nA.days=ng,nA.weeks=function(){return ex(this.days()/7)},nA.months=nv,nA.years=n_,nA.humanize=function(d,m){if(!this.isValid())return this.localeData().invalidDate();var u,f,p,h,b,g,v,_,y,F,x,w,E,k=!1,A=nF;return"object"==typeof d&&(m=d,d=!1),"boolean"==typeof d&&(k=d),"object"==typeof m&&(A=Object.assign({},nF,m),null!=m.s&&null==m.ss&&(A.ss=m.s-1)),w=this.localeData(),u=!k,f=A,p=tD(this).abs(),h=ny(p.as("s")),b=ny(p.as("m")),g=ny(p.as("h")),v=ny(p.as("d")),_=ny(p.as("M")),y=ny(p.as("w")),F=ny(p.as("y")),x=h<=f.ss&&["s",h]||h<f.s&&["ss",h]||b<=1&&["m"]||b<f.m&&["mm",b]||g<=1&&["h"]||g<f.h&&["hh",g]||v<=1&&["d"]||v<f.d&&["dd",v],null!=f.w&&(x=x||y<=1&&["w"]||y<f.w&&["ww",y]),(x=x||_<=1&&["M"]||_<f.M&&["MM",_]||F<=1&&["y"]||["yy",F])[2]=u,x[3]=+this>0,x[4]=w,E=nx.apply(null,x),k&&(E=w.pastFuture(+this,E)),w.postformat(E)},nA.toISOString=nk,nA.toString=nk,nA.toJSON=nk,nA.locale=tj,nA.localeData=t$,nA.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nk),nA.lang=tV,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ey("x",ep),ey("X",/[+-]?\d+(\.\d{1,3})?/),ek("X",function(d,m,u){u._d=new Date(1e3*parseFloat(d))}),ek("x",function(d,m,u){u._d=new Date(ew(d))}),m.version="2.30.1",J=tb,m.fn=t1,m.min=function(){var d=[].slice.call(arguments,0);return t_("isBefore",d)},m.max=function(){var d=[].slice.call(arguments,0);return t_("isAfter",d)},m.now=function(){return Date.now?Date.now():+new Date},m.utc=x,m.unix=function(d){return tb(1e3*d)},m.months=function(d,m){return t3(d,m,"months")},m.isDate=_,m.locale=e8,m.invalid=k,m.duration=tD,m.isMoment=D,m.weekdays=function(d,m,u){return t6(d,m,u,"weekdays")},m.parseZone=function(){return tb.apply(null,arguments).parseZone()},m.localeData=e9,m.isDuration=tx,m.monthsShort=function(d,m){return t3(d,m,"monthsShort")},m.weekdaysMin=function(d,m,u){return t6(d,m,u,"weekdaysMin")},m.defineLocale=e7,m.updateLocale=function(d,m){if(null!=m){var u,f,p=e2;null!=e5[d]&&null!=e5[d].parentLocale?e5[d].set(M(e5[d]._config,m)):(null!=(f=e6(d))&&(p=f._config),m=M(p,m),null==f&&(m.abbr=d),(u=new z(m)).parentLocale=e5[d],e5[d]=u),e8(d)}else null!=e5[d]&&(null!=e5[d].parentLocale?(e5[d]=e5[d].parentLocale,d===e8()&&e8(d)):null!=e5[d]&&delete e5[d]);return e5[d]},m.locales=function(){return et(e5)},m.weekdaysShort=function(d,m,u){return t6(d,m,u,"weekdaysShort")},m.normalizeUnits=X,m.relativeTimeRounding=function(d){return void 0===d?ny:"function"==typeof d&&(ny=d,!0)},m.relativeTimeThreshold=function(d,m){return void 0!==nF[d]&&(void 0===m?nF[d]:(nF[d]=m,"s"===d&&(nF.ss=m-1),!0))},m.calendarFormat=function(d,m){var u=d.diff(m,"days",!0);return u<-6?"sameElse":u<-1?"lastWeek":u<0?"lastDay":u<1?"sameDay":u<2?"nextDay":u<7?"nextWeek":"sameElse"},m.prototype=t1,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}()},3118(d){function m(d){var m=Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}m.keys=()=>[],m.resolve=m,m.id=3118,d.exports=m},3109(d,m,u){var f="function"==typeof Map&&Map.prototype,p=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,h=f&&p&&"function"==typeof p.get?p.get:null,b=f&&Map.prototype.forEach,g="function"==typeof Set&&Set.prototype,v=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_=g&&v&&"function"==typeof v.get?v.get:null,y=g&&Set.prototype.forEach,F="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,x="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,w="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,E=Boolean.prototype.valueOf,k=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,T=String.prototype.slice,S=String.prototype.replace,I=String.prototype.toUpperCase,O=String.prototype.toLowerCase,D=RegExp.prototype.test,R=Array.prototype.concat,N=Array.prototype.join,B=Array.prototype.slice,L=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,U="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===U?"object":"symbol")?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(d){return d.__proto__}:null);function H(d,m){if(1/0===d||-1/0===d||d!=d||d&&d>-1e3&&d<1e3||D.call(/e/,m))return m;var u=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof d){var f=d<0?-L(-d):L(d);if(f!==d){var p=String(f),h=T.call(m,p.length+1);return S.call(p,u,"$&_")+"."+S.call(S.call(h,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,u,"$&_")}var q=u(6550),G=q.custom,Y=ee(G)?G:null,W={__proto__:null,double:'"',single:"'"},X={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function K(d,m,u){var f=W[u.quoteStyle||m];return f+d+f}function J(d){return!j||!("object"==typeof d&&(j in d||void 0!==d[j]))}function Z(d){return"[object Array]"===ei(d)&&J(d)}function Q(d){return"[object RegExp]"===ei(d)&&J(d)}function ee(d){if(U)return d&&"object"==typeof d&&d instanceof Symbol;if("symbol"==typeof d)return!0;if(!d||"object"!=typeof d||!z)return!1;try{return z.call(d),!0}catch(d){}return!1}d.exports=function d(m,f,p,g){var v,k,I,D,L,M=f||{};if(en(M,"quoteStyle")&&!en(W,M.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(en(M,"maxStringLength")&&("number"==typeof M.maxStringLength?M.maxStringLength<0&&1/0!==M.maxStringLength:null!==M.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var G=!en(M,"customInspect")||M.customInspect;if("boolean"!=typeof G&&"symbol"!==G)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(en(M,"indent")&&null!==M.indent&&" "!==M.indent&&!(parseInt(M.indent,10)===M.indent&&M.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(en(M,"numericSeparator")&&"boolean"!=typeof M.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var et=M.numericSeparator;if(void 0===m)return"undefined";if(null===m)return"null";if("boolean"==typeof m)return m?"true":"false";if("string"==typeof m)return function d(m,u){if(m.length>u.maxStringLength){var f=m.length-u.maxStringLength;return d(T.call(m,0,u.maxStringLength),u)+("... "+f)+" more character"+(f>1?"s":"")}var p=X[u.quoteStyle||"single"];return p.lastIndex=0,K(S.call(S.call(m,p,"\\$1"),/[\x00-\x1f]/g,er),"single",u)}(m,M);if("number"==typeof m){if(0===m)return 1/0/m>0?"0":"-0";var em=String(m);return et?H(m,em):em}if("bigint"==typeof m){var eu=String(m)+"n";return et?H(m,eu):eu}var ef=void 0===M.depth?5:M.depth;if(void 0===p&&(p=0),p>=ef&&ef>0&&"object"==typeof m)return Z(m)?"[Array]":"[Object]";var ep=function(d,m){var u;if(" "===d.indent)u=" ";else{if("number"!=typeof d.indent||!(d.indent>0))return null;u=N.call(Array(d.indent+1)," ")}return{base:u,prev:N.call(Array(m+1),u)}}(M,p);if(void 0===g)g=[];else if(eo(g,m)>=0)return"[Circular]";function eh(m,u,f){if(u&&(g=B.call(g)).push(u),f){var h={depth:M.depth};return en(M,"quoteStyle")&&(h.quoteStyle=M.quoteStyle),d(m,h,p+1,g)}return d(m,M,p+1,g)}if("function"==typeof m&&!Q(m)){var eb=function(d){if(d.name)return d.name;var m=C.call(A.call(d),/^function\s*([\w$]+)/);return m?m[1]:null}(m),eg=ed(m,eh);return"[Function"+(eb?": "+eb:" (anonymous)")+"]"+(eg.length>0?" { "+N.call(eg,", ")+" }":"")}if(ee(m)){var ev=U?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(m);return"object"!=typeof m||U?ev:ea(ev)}if((e_=m)&&"object"==typeof e_&&("u">typeof HTMLElement&&e_ instanceof HTMLElement||"string"==typeof e_.nodeName&&"function"==typeof e_.getAttribute)){for(var e_,ey,eF="<"+O.call(String(m.nodeName)),ex=m.attributes||[],ew=0;ew<ex.length;ew++){eF+=" "+ex[ew].name+"="+K((ey=ex[ew].value,S.call(String(ey),/"/g,"&quot;")),"double",M)}return eF+=">",m.childNodes&&m.childNodes.length&&(eF+="..."),eF+="</"+O.call(String(m.nodeName))+">"}if(Z(m)){if(0===m.length)return"[]";var eE=ed(m,eh);return ep&&!function(d){for(var m=0;m<d.length;m++)if(eo(d[m],"\n")>=0)return!1;return!0}(eE)?"["+ec(eE,ep)+"]":"[ "+N.call(eE,", ")+" ]"}if("[object Error]"===ei(v=m)&&J(v)){var ek=ed(m,eh);return"cause"in Error.prototype||!("cause"in m)||V.call(m,"cause")?0===ek.length?"["+String(m)+"]":"{ ["+String(m)+"] "+N.call(ek,", ")+" }":"{ ["+String(m)+"] "+N.call(R.call("[cause]: "+eh(m.cause),ek),", ")+" }"}if("object"==typeof m&&G){if(Y&&"function"==typeof m[Y]&&q)return q(m,{depth:ef-p});else if("symbol"!==G&&"function"==typeof m.inspect)return m.inspect()}if(function(d){if(!h||!d||"object"!=typeof d)return!1;try{h.call(d);try{_.call(d)}catch(d){return!0}return d instanceof Map}catch(d){}return!1}(m)){var eA=[];return b&&b.call(m,function(d,u){eA.push(eh(u,m,!0)+" => "+eh(d,m))}),el("Map",h.call(m),eA,ep)}if(function(d){if(!_||!d||"object"!=typeof d)return!1;try{_.call(d);try{h.call(d)}catch(d){return!0}return d instanceof Set}catch(d){}return!1}(m)){var eC=[];return y&&y.call(m,function(d){eC.push(eh(d,m))}),el("Set",_.call(m),eC,ep)}if(function(d){if(!F||!d||"object"!=typeof d)return!1;try{F.call(d,F);try{x.call(d,x)}catch(d){return!0}return d instanceof WeakMap}catch(d){}return!1}(m))return es("WeakMap");if(function(d){if(!x||!d||"object"!=typeof d)return!1;try{x.call(d,x);try{F.call(d,F)}catch(d){return!0}return d instanceof WeakSet}catch(d){}return!1}(m))return es("WeakSet");if(function(d){if(!w||!d||"object"!=typeof d)return!1;try{return w.call(d),!0}catch(d){}return!1}(m))return es("WeakRef");if("[object Number]"===ei(k=m)&&J(k))return ea(eh(Number(m)));if(function(d){if(!d||"object"!=typeof d||!P)return!1;try{return P.call(d),!0}catch(d){}return!1}(m))return ea(eh(P.call(m)));if("[object Boolean]"===ei(I=m)&&J(I))return ea(E.call(m));if("[object String]"===ei(D=m)&&J(D))return ea(eh(String(m)));if("u">typeof window&&m===window)return"{ [object Window] }";if("u">typeof globalThis&&m===globalThis||void 0!==u.g&&m===u.g)return"{ [object globalThis] }";if(!("[object Date]"===ei(L=m)&&J(L))&&!Q(m)){var eT=ed(m,eh),eS=$?$(m)===Object.prototype:m instanceof Object||m.constructor===Object,eI=m instanceof Object?"":"null prototype",eO=!eS&&j&&Object(m)===m&&j in m?T.call(ei(m),8,-1):eI?"Object":"",eD=(eS||"function"!=typeof m.constructor?"":m.constructor.name?m.constructor.name+" ":"")+(eO||eI?"["+N.call(R.call([],eO||[],eI||[]),": ")+"] ":"");return 0===eT.length?eD+"{}":ep?eD+"{"+ec(eT,ep)+"}":eD+"{ "+N.call(eT,", ")+" }"}return String(m)};var et=Object.prototype.hasOwnProperty||function(d){return d in this};function en(d,m){return et.call(d,m)}function ei(d){return k.call(d)}function eo(d,m){if(d.indexOf)return d.indexOf(m);for(var u=0,f=d.length;u<f;u++)if(d[u]===m)return u;return -1}function er(d){var m=d.charCodeAt(0),u={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return u?"\\"+u:"\\x"+(m<16?"0":"")+I.call(m.toString(16))}function ea(d){return"Object("+d+")"}function es(d){return d+" { ? }"}function el(d,m,u,f){return d+" ("+m+") {"+(f?ec(u,f):N.call(u,", "))+"}"}function ec(d,m){if(0===d.length)return"";var u="\n"+m.prev+m.base;return u+N.call(d,","+u)+"\n"+m.prev}function ed(d,m){var u,f=Z(d),p=[];if(f){p.length=d.length;for(var h=0;h<d.length;h++)p[h]=en(d,h)?m(d[h],d):""}var b="function"==typeof M?M(d):[];if(U){u={};for(var g=0;g<b.length;g++)u["$"+b[g]]=b[g]}for(var v in d)if(en(d,v)&&(!f||String(Number(v))!==v||!(v<d.length)))if(U&&u["$"+v]instanceof Symbol)continue;else D.call(/[^\w$]/,v)?p.push(m(v,d)+": "+m(d[v],d)):p.push(v+": "+m(d[v],d));if("function"==typeof M)for(var _=0;_<b.length;_++)V.call(d,b[_])&&p.push("["+m(b[_])+"]: "+m(d[b[_]],d));return p}},4461(d,m,u){d=u.nmd(d),(function(){"use strict";var f={function:!0,object:!0},p=f[typeof window]&&window||this,h=f[typeof m]&&m,b=f.object&&d&&!d.nodeType&&d,g=h&&b&&"object"==typeof u.g&&u.g;g&&(g.global===g||g.window===g||g.self===g)&&(p=g);var v=/\bOpera/,_=Object.prototype,y=_.hasOwnProperty,F=_.toString;function x(d){return(d=String(d)).charAt(0).toUpperCase()+d.slice(1)}function w(d){return d=T(d),/^(?:webOS|i(?:OS|P))/.test(d)?d:x(d)}function E(d,m){for(var u in d)y.call(d,u)&&m(d[u],u,d)}function k(d){return null==d?x(d):F.call(d).slice(8,-1)}function A(d){return String(d).replace(/([ -])(?!$)/g,"$1?")}function C(d,m){var u=null,f=function(f,p){u=m(u,f,p,d)},p=-1,h=d?d.length:0;if("number"==typeof h&&h>-1&&h<=0x1fffffffffffff)for(;++p<h;)f(d[p],p);else E(d,f);return u}function T(d){return String(d).replace(/^ +| +$/g,"")}function S(d){var m,u,f,h,b,g=p,_=d&&"object"==typeof d&&"String"!=k(d);_&&(g=d,d=null);var y=g.navigator||{},x=y.userAgent||"";d||(d=x);var I=_?!!y.likeChrome:/\bChrome\b/.test(d)&&!/internal|\n/i.test(F.toString()),O="Object",D=_&&g.java?"JavaPackage":k(g.java),R=/\bJava/.test(D)&&g.java,N=R&&k(g.environment)==(_?O:"Environment"),B=R?"a":"α",L=R?"b":"β",P=g.document||{},M=g.operamini||g.opera,z=v.test(z=_&&M?M["[[Class]]"]:k(M))?z:M=null,U=d,j=[],V=null,$=d==x,H=$&&M&&"function"==typeof M.version&&M.version(),q=C([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(m,u){return m||RegExp("\\b"+(u.pattern||A(u))+"\\b","i").exec(d)&&(u.label||u)}),G=C(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(m,u){return m||RegExp("\\b"+(u.pattern||A(u))+"\\b","i").exec(d)&&(u.label||u)}),Y=K([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),W=C({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(m,u,f){return m||(u[Y]||u[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Y)]||RegExp("\\b"+A(f)+"(?:\\b|\\w*\\d)","i").exec(d))&&f}),X=C(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(m,u){var f,p,h,b=u.pattern||A(u);return!m&&(m=RegExp("\\b"+b+"(?:/[\\d.]+|[ \\w.]*)","i").exec(d))&&(f=m,p=u.label||u,h={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},b&&p&&/^Win/i.test(f)&&!/^Windows Phone /i.test(f)&&(h=h[/[\d.]+$/.exec(f)])&&(f="Windows "+h),f=String(f),b&&p&&(f=f.replace(RegExp(b,"i"),p)),m=f=w(f.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),m});function K(m){return C(m,function(m,u){var f=u.pattern||A(u);return!m&&(m=RegExp("\\b"+f+" *\\d+[.\\w_]*","i").exec(d)||RegExp("\\b"+f+" *\\w+-[\\w]*","i").exec(d)||RegExp("\\b"+f+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(d))&&((m=String(u.label&&!RegExp(f,"i").test(u.label)?u.label:m).split("/"))[1]&&!/[\d.]+/.test(m[0])&&(m[0]+=" "+m[1]),u=u.label||u,m=w(m[0].replace(RegExp(f,"i"),u).replace(RegExp("; *(?:"+u+"[_-])?","i")," ").replace(RegExp("("+u+")[-_.]?(\\w)","i"),"$1 $2"))),m})}function J(m){return C(m,function(m,u){return m||(RegExp(u+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(d)||0)[1]||null})}if(q&&(q=[q]),/\bAndroid\b/.test(X)&&!Y&&(h=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(d))&&(Y=T(h[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),W&&!Y?Y=K([W]):W&&Y&&(Y=Y.replace(RegExp("^("+A(W)+")[-_.\\s]","i"),W+" ").replace(RegExp("^("+A(W)+")[-_.]?(\\w)","i"),W+" $2")),(h=/\bGoogle TV\b/.exec(Y))&&(Y=h[0]),/\bSimulator\b/i.test(d)&&(Y=(Y?Y+" ":"")+"Simulator"),"Opera Mini"==G&&/\bOPiOS\b/.test(d)&&j.push("running in Turbo/Uncompressed mode"),"IE"==G&&/\blike iPhone OS\b/.test(d)?(W=(h=S(d.replace(/like iPhone OS/,""))).manufacturer,Y=h.product):/^iP/.test(Y)?(G||(G="Safari"),X="iOS"+((h=/ OS ([\d_]+)/i.exec(d))?" "+h[1].replace(/_/g,"."):"")):"Konqueror"==G&&/^Linux\b/i.test(X)?X="Kubuntu":W&&"Google"!=W&&(/Chrome/.test(G)&&!/\bMobile Safari\b/i.test(d)||/\bVita\b/.test(Y))||/\bAndroid\b/.test(X)&&/^Chrome/.test(G)&&/\bVersion\//i.test(d)?(G="Android Browser",X=/\bAndroid\b/.test(X)?X:"Android"):"Silk"==G?(/\bMobi/i.test(d)||(X="Android",j.unshift("desktop mode")),/Accelerated *= *true/i.test(d)&&j.unshift("accelerated")):"UC Browser"==G&&/\bUCWEB\b/.test(d)?j.push("speed mode"):"PaleMoon"==G&&(h=/\bFirefox\/([\d.]+)\b/.exec(d))?j.push("identifying as Firefox "+h[1]):"Firefox"==G&&(h=/\b(Mobile|Tablet|TV)\b/i.exec(d))?(X||(X="Firefox OS"),Y||(Y=h[1])):!G||(h=!/\bMinefield\b/i.test(d)&&/\b(?:Firefox|Safari)\b/.exec(G))?(G&&!Y&&/[\/,]|^[^(]+?\)/.test(d.slice(d.indexOf(h+"/")+8))&&(G=null),(h=Y||W||X)&&(Y||W||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(X))&&(G=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(X)?X:h)+" Browser")):"Electron"==G&&(h=(/\bChrome\/([\d.]+)\b/.exec(d)||0)[1])&&j.push("Chromium "+h),H||(H=J(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",A(G),"(?:Firefox|Minefield|NetFront)"])),(h="iCab"==q&&parseFloat(H)>3&&"WebKit"||/\bOpera\b/.test(G)&&(/\bOPR\b/.test(d)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(d)&&!/^(?:Trident|EdgeHTML)$/.test(q)&&"WebKit"||!q&&/\bMSIE\b/i.test(d)&&("Mac OS"==X?"Tasman":"Trident")||"WebKit"==q&&/\bPlayStation\b(?! Vita\b)/i.test(G)&&"NetFront")&&(q=[h]),"IE"==G&&(h=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(d)||0)[1])?(G+=" Mobile",X="Windows Phone "+(/\+$/.test(h)?h:h+".x"),j.unshift("desktop mode")):/\bWPDesktop\b/i.test(d)?(G="IE Mobile",X="Windows Phone 8.x",j.unshift("desktop mode"),H||(H=(/\brv:([\d.]+)/.exec(d)||0)[1])):"IE"!=G&&"Trident"==q&&(h=/\brv:([\d.]+)/.exec(d))&&(G&&j.push("identifying as "+G+(H?" "+H:"")),G="IE",H=h[1]),$){if(u="global",f=null!=(m=g)?typeof m[u]:"number",/^(?:boolean|number|string|undefined)$/.test(f)||"object"==f&&!m[u])k(h=g.runtime)==(_?O:"ScriptBridgingProxyObject")?(G="Adobe AIR",X=h.flash.system.Capabilities.os):k(h=g.phantom)==(_?O:"RuntimeObject")?(G="PhantomJS",H=(h=h.version||null)&&h.major+"."+h.minor+"."+h.patch):"number"==typeof P.documentMode&&(h=/\bTrident\/(\d+)/i.exec(d))?(H=[H,P.documentMode],(h=+h[1]+4)!=H[1]&&(j.push("IE "+H[1]+" mode"),q&&(q[1]=""),H[1]=h),H="IE"==G?String(H[1].toFixed(1)):H[0]):"number"==typeof P.documentMode&&/^(?:Chrome|Firefox)\b/.test(G)&&(j.push("masking as "+G+" "+H),G="IE",H="11.0",q=["Trident"],X="Windows");else if(R&&(U=(h=R.lang.System).getProperty("os.arch"),X=X||h.getProperty("os.name")+" "+h.getProperty("os.version")),N){try{H=g.require("ringo/engine").version.join("."),G="RingoJS"}catch(d){(h=g.system)&&h.global.system==g.system&&(G="Narwhal",X||(X=h[0].os||null))}G||(G="Rhino")}else"object"==typeof g.process&&!g.process.browser&&(h=g.process)&&("object"==typeof h.versions&&("string"==typeof h.versions.electron?(j.push("Node "+h.versions.node),G="Electron",H=h.versions.electron):"string"==typeof h.versions.nw&&(j.push("Chromium "+H,"Node "+h.versions.node),G="NW.js",H=h.versions.nw)),G||(G="Node.js",U=h.arch,X=h.platform,H=(H=/[\d.]+/.exec(h.version))?H[0]:null));X=X&&w(X)}if(H&&(h=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(H)||/(?:alpha|beta)(?: ?\d)?/i.exec(d+";"+($&&y.appMinorVersion))||/\bMinefield\b/i.test(d)&&"a")&&(V=/b/i.test(h)?"beta":"alpha",H=H.replace(RegExp(h+"\\+?$"),"")+("beta"==V?L:B)+(/\d+\+?/.exec(h)||"")),"Fennec"==G||"Firefox"==G&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(X))G="Firefox Mobile";else if("Maxthon"==G&&H)H=H.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Y))"Xbox 360"==Y&&(X=null),"Xbox 360"==Y&&/\bIEMobile\b/.test(d)&&j.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(G)||G&&!Y&&!/Browser|Mobi/.test(G))&&("Windows CE"==X||/Mobi/i.test(d)))G+=" Mobile";else if("IE"==G&&$)try{null===g.external&&j.unshift("platform preview")}catch(d){j.unshift("embedded")}else(/\bBlackBerry\b/.test(Y)||/\bBB10\b/.test(d))&&(h=(RegExp(Y.replace(/ +/g," *")+"/([.\\d]+)","i").exec(d)||0)[1]||H)?(X=((h=[h,/BB10/.test(d)])[1]?(Y=null,W="BlackBerry"):"Device Software")+" "+h[0],H=null):this!=E&&"Wii"!=Y&&($&&M||/Opera/.test(G)&&/\b(?:MSIE|Firefox)\b/i.test(d)||"Firefox"==G&&/\bOS X (?:\d+\.){2,}/.test(X)||"IE"==G&&(X&&!/^Win/.test(X)&&H>5.5||/\bWindows XP\b/.test(X)&&H>8||8==H&&!/\bTrident\b/.test(d)))&&!v.test(h=S.call(E,d.replace(v,"")+";"))&&h.name&&(h="ing as "+h.name+((h=h.version)?" "+h:""),v.test(G)?(/\bIE\b/.test(h)&&"Mac OS"==X&&(X=null),h="identify"+h):(h="mask"+h,G=z?w(z.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(h)&&(X=null),$||(H=null)),q=["Presto"],j.push(h));(h=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(d)||0)[1])&&(h=[parseFloat(h.replace(/\.(\d)$/,".0$1")),h],"Safari"==G&&"+"==h[1].slice(-1)?(G="WebKit Nightly",V="alpha",H=h[1].slice(0,-1)):(H==h[1]||H==(h[2]=(/\bSafari\/([\d.]+\+?)/i.exec(d)||0)[1]))&&(H=null),h[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(d)||0)[1],537.36==h[0]&&537.36==h[2]&&parseFloat(h[1])>=28&&"WebKit"==q&&(q=["Blink"]),$&&(I||h[1])?(q&&(q[1]="like Chrome"),h=h[1]||((h=h[0])<530?1:h<532?2:h<532.05?3:h<533?4:h<534.03?5:h<534.07?6:h<534.1?7:h<534.13?8:h<534.16?9:h<534.24?10:h<534.3?11:h<535.01?12:h<535.02?"13+":h<535.07?15:h<535.11?16:h<535.19?17:h<536.05?18:h<536.1?19:h<537.01?20:h<537.11?"21+":h<537.13?23:h<537.18?24:h<537.24?25:h<537.36?26:"Blink"!=q?"27":"28")):(q&&(q[1]="like Safari"),h=(h=h[0])<400?1:h<500?2:h<526?3:h<533?4:h<534?"4+":h<535?5:h<537?6:h<538?7:h<601?8:h<602?9:h<604?10:h<606?11:h<608?12:"12"),q&&(q[1]+=" "+(h+="number"==typeof h?".x":/[.+]/.test(h)?"":"+")),"Safari"==G&&(!H||parseInt(H)>45)?H=h:"Chrome"==G&&/\bHeadlessChrome/i.test(d)&&j.unshift("headless")),"Opera"==G&&(h=/\bzbov|zvav$/.exec(X))?(G+=" ",j.unshift("desktop mode"),"zvav"==h?(G+="Mini",H=null):G+="Mobile",X=X.replace(RegExp(" *"+h+"$"),"")):"Safari"==G&&/\bChrome\b/.exec(q&&q[1])?(j.unshift("desktop mode"),G="Chrome Mobile",H=null,/\bOS X\b/.test(X)?(W="Apple",X="iOS 4.3+"):X=null):/\bSRWare Iron\b/.test(G)&&!H&&(H=J("Chrome")),H&&0==H.indexOf(h=/[\d.]+$/.exec(X))&&d.indexOf("/"+h+"-")>-1&&(X=T(X.replace(h,""))),X&&-1!=X.indexOf(G)&&!RegExp(G+" OS").test(X)&&(X=X.replace(RegExp(" *"+A(G)+" *"),"")),q&&!/\b(?:Avant|Nook)\b/.test(G)&&(/Browser|Lunascape|Maxthon/.test(G)||"Safari"!=G&&/^iOS/.test(X)&&/\bSafari\b/.test(q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(G)&&q[1])&&(h=q[q.length-1])&&j.push(h),j.length&&(j=["("+j.join("; ")+")"]),W&&Y&&0>Y.indexOf(W)&&j.push("on "+W),Y&&j.push((/^on /.test(j[j.length-1])?"":"on ")+Y),X&&(b=(h=/ ([\d.+]+)$/.exec(X))&&"/"==X.charAt(X.length-h[0].length-1),X={architecture:32,family:h&&!b?X.replace(h[0],""):X,version:h?h[1]:null,toString:function(){var d=this.version;return this.family+(d&&!b?" "+d:"")+(64==this.architecture?" 64-bit":"")}}),(h=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(U))&&!/\bi686\b/i.test(U)?(X&&(X.architecture=64,X.family=X.family.replace(RegExp(" *"+h),"")),G&&(/\bWOW64\b/i.test(d)||$&&/\w(?:86|32)$/.test(y.cpuClass||y.platform)&&!/\bWin64; x64\b/i.test(d))&&j.unshift("32-bit")):X&&/^OS X/.test(X.family)&&"Chrome"==G&&parseFloat(H)>=39&&(X.architecture=64),d||(d=null);var Z={};return Z.description=d,Z.layout=q&&q[0],Z.manufacturer=W,Z.name=G,Z.prerelease=V,Z.product=Y,Z.ua=d,Z.version=G&&H,Z.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}},Z.parse=S,Z.toString=function(){return this.description||""},Z.version&&j.unshift(H),Z.name&&j.unshift(G),X&&G&&!(X==String(X).split(" ")[0]&&(X==G.split(" ")[0]||Y))&&j.push(Y?"("+X+")":"on "+X),j.length&&(Z.description=j.join(" ")),Z}var I=S();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(p.platform=I,define(function(){return I})):h&&b?E(I,function(d,m){h[m]=d}):p.platform=I}).call(this)},5539(d){"use strict";var m=String.prototype.replace,u=/%20/g,f="RFC3986";d.exports={default:f,formatters:{RFC1738:function(d){return m.call(d,u,"+")},RFC3986:function(d){return String(d)}},RFC1738:"RFC1738",RFC3986:f}},8183(d,m,u){"use strict";var f=u(6334),p=u(4816);d.exports={formats:u(5539),parse:p,stringify:f}},4816(d,m,u){"use strict";var f=u(1954),p=Object.prototype.hasOwnProperty,h=Array.isArray,b={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:f.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},g=function(d,m,u){if(d&&"string"==typeof d&&m.comma&&d.indexOf(",")>-1)return d.split(",");if(m.throwOnLimitExceeded&&u>=m.arrayLimit)throw RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(1===m.arrayLimit?"":"s")+" allowed in an array.");return d},v=function(d,m){var u={__proto__:null},v=m.ignoreQueryPrefix?d.replace(/^\?/,""):d;v=v.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=1/0===m.parameterLimit?void 0:m.parameterLimit,y=v.split(m.delimiter,m.throwOnLimitExceeded&&void 0!==_?_+1:_);if(m.throwOnLimitExceeded&&void 0!==_&&y.length>_)throw RangeError("Parameter limit exceeded. Only "+_+" parameter"+(1===_?"":"s")+" allowed.");var F=-1,x=m.charset;if(m.charsetSentinel)for(E=0;E<y.length;++E)0===y[E].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[E]?x="utf-8":"utf8=%26%2310003%3B"===y[E]&&(x="iso-8859-1"),F=E,E=y.length);for(E=0;E<y.length;++E)if(E!==F){var w,E,k,A,C=y[E],T=C.indexOf("]="),S=-1===T?C.indexOf("="):T+1;if(-1===S?(k=m.decoder(C,b.decoder,x,"key"),A=m.strictNullHandling?null:""):null!==(k=m.decoder(C.slice(0,S),b.decoder,x,"key"))&&(A=f.maybeMap(g(C.slice(S+1),m,h(u[k])?u[k].length:0),function(d){return m.decoder(d,b.decoder,x,"value")})),A&&m.interpretNumericEntities&&"iso-8859-1"===x&&(w=String(A),A=w.replace(/&#(\d+);/g,function(d,m){return String.fromCharCode(parseInt(m,10))})),C.indexOf("[]=")>-1&&(A=h(A)?[A]:A),m.comma&&h(A)&&A.length>m.arrayLimit){if(m.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(1===m.arrayLimit?"":"s")+" allowed in an array.");A=f.combine([],A,m.arrayLimit,m.plainObjects)}if(null!==k){var I=p.call(u,k);I&&("combine"===m.duplicates||C.indexOf("[]=")>-1)?u[k]=f.combine(u[k],A,m.arrayLimit,m.plainObjects):I&&"last"!==m.duplicates||(u[k]=A)}}return u},_=function(d,m,u,p){var h=0;if(d.length>0&&"[]"===d[d.length-1]){var b=d.slice(0,-1).join("");h=Array.isArray(m)&&m[b]?m[b].length:0}for(var v=p?m:g(m,u,h),_=d.length-1;_>=0;--_){var y,F=d[_];if("[]"===F&&u.parseArrays)y=f.isOverflow(v)?v:u.allowEmptyArrays&&(""===v||u.strictNullHandling&&null===v)?[]:f.combine([],v,u.arrayLimit,u.plainObjects);else{y=u.plainObjects?{__proto__:null}:{};var x="["===F.charAt(0)&&"]"===F.charAt(F.length-1)?F.slice(1,-1):F,w=u.decodeDotInKeys?x.replace(/%2E/g,"."):x,E=parseInt(w,10),k=!isNaN(E)&&F!==w&&String(E)===w&&E>=0&&u.parseArrays;if(u.parseArrays||""!==w)if(k&&E<u.arrayLimit)(y=[])[E]=v;else if(k&&u.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+u.arrayLimit+" element"+(1===u.arrayLimit?"":"s")+" allowed in an array.");else k?(y[E]=v,f.markOverflow(y,E)):"__proto__"!==w&&(y[w]=v);else y={0:v}}v=y}return v},y=function(d,m){var u=m.allowDots?d.replace(/\.([^.[]+)/g,"[$1]"):d;if(m.depth<=0){if(!m.plainObjects&&p.call(Object.prototype,u)&&!m.allowPrototypes)return;return[u]}var f=[],h=u.indexOf("["),b=h>=0?u.slice(0,h):u;if(b){if(!m.plainObjects&&p.call(Object.prototype,b)&&!m.allowPrototypes)return;f[f.length]=b}for(var g=u.length,v=h,_=0;v>=0&&_<m.depth;){for(var y=1,F=v+1,x=-1;F<g&&x<0;){var w=u.charCodeAt(F);91===w?y+=1:93===w&&0==(y-=1)&&(x=F),F+=1}if(x<0)return f[f.length]="["+u.slice(v)+"]",f;var E=u.slice(v,x+1),k=E.slice(1,-1);if(!m.plainObjects&&p.call(Object.prototype,k)&&!m.allowPrototypes)return;f[f.length]=E,_+=1,v=u.indexOf("[",x+1)}if(v>=0){if(!0===m.strictDepth)throw RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");f[f.length]="["+u.slice(v)+"]"}return f},F=function(d,m,u,f){if(d){var p=y(d,u);if(p)return _(p,m,u,f)}},x=function(d){if(!d)return b;if(void 0!==d.allowEmptyArrays&&"boolean"!=typeof d.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==d.decodeDotInKeys&&"boolean"!=typeof d.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==d.decoder&&void 0!==d.decoder&&"function"!=typeof d.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==d.charset&&"utf-8"!==d.charset&&"iso-8859-1"!==d.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==d.throwOnLimitExceeded&&"boolean"!=typeof d.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var m=void 0===d.charset?b.charset:d.charset,u=void 0===d.duplicates?b.duplicates:d.duplicates;if("combine"!==u&&"first"!==u&&"last"!==u)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===d.allowDots?!0===d.decodeDotInKeys||b.allowDots:!!d.allowDots,allowEmptyArrays:"boolean"==typeof d.allowEmptyArrays?!!d.allowEmptyArrays:b.allowEmptyArrays,allowPrototypes:"boolean"==typeof d.allowPrototypes?d.allowPrototypes:b.allowPrototypes,allowSparse:"boolean"==typeof d.allowSparse?d.allowSparse:b.allowSparse,arrayLimit:"number"==typeof d.arrayLimit?d.arrayLimit:b.arrayLimit,charset:m,charsetSentinel:"boolean"==typeof d.charsetSentinel?d.charsetSentinel:b.charsetSentinel,comma:"boolean"==typeof d.comma?d.comma:b.comma,decodeDotInKeys:"boolean"==typeof d.decodeDotInKeys?d.decodeDotInKeys:b.decodeDotInKeys,decoder:"function"==typeof d.decoder?d.decoder:b.decoder,delimiter:"string"==typeof d.delimiter||f.isRegExp(d.delimiter)?d.delimiter:b.delimiter,depth:"number"==typeof d.depth||!1===d.depth?+d.depth:b.depth,duplicates:u,ignoreQueryPrefix:!0===d.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof d.interpretNumericEntities?d.interpretNumericEntities:b.interpretNumericEntities,parameterLimit:"number"==typeof d.parameterLimit?d.parameterLimit:b.parameterLimit,parseArrays:!1!==d.parseArrays,plainObjects:"boolean"==typeof d.plainObjects?d.plainObjects:b.plainObjects,strictDepth:"boolean"==typeof d.strictDepth?!!d.strictDepth:b.strictDepth,strictMerge:"boolean"==typeof d.strictMerge?!!d.strictMerge:b.strictMerge,strictNullHandling:"boolean"==typeof d.strictNullHandling?d.strictNullHandling:b.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof d.throwOnLimitExceeded&&d.throwOnLimitExceeded}};d.exports=function(d,m){var u=x(m);if(""===d||null==d)return u.plainObjects?{__proto__:null}:{};for(var p="string"==typeof d?v(d,u):d,h=u.plainObjects?{__proto__:null}:{},b=Object.keys(p),g=0;g<b.length;++g){var _=b[g],y=F(_,p[_],u,"string"==typeof d);h=f.merge(h,y,u)}return!0===u.allowSparse?h:f.compact(h)}},6334(d,m,u){"use strict";var f=u(6278),p=u(1954),h=u(5539),b=Object.prototype.hasOwnProperty,g={brackets:function(d){return d+"[]"},comma:"comma",indices:function(d,m){return d+"["+m+"]"},repeat:function(d){return d}},v=Array.isArray,_=Array.prototype.push,y=function(d,m){_.apply(d,v(m)?m:[m])},F=Date.prototype.toISOString,x=h.default,w={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:p.encode,encodeValuesOnly:!1,filter:void 0,format:x,formatter:h.formatters[x],indices:!1,serializeDate:function(d){return F.call(d)},skipNulls:!1,strictNullHandling:!1},E={},k=function d(m,u,h,b,g,_,F,x,k,A,C,T,S,I,O,D,R,N){for(var B,L,P=m,M=N,z=0,U=!1;void 0!==(M=M.get(E))&&!U;){var j=M.get(m);if(z+=1,void 0!==j)if(j===z)throw RangeError("Cyclic object value");else U=!0;void 0===M.get(E)&&(z=0)}if("function"==typeof A?P=A(u,P):P instanceof Date?P=S(P):"comma"===h&&v(P)&&(P=p.maybeMap(P,function(d){return d instanceof Date?S(d):d})),null===P){if(_)return O(k&&!D?k(u,w.encoder,R,"key",I):u);P=""}if("string"==typeof(B=P)||"number"==typeof B||"boolean"==typeof B||"symbol"==typeof B||"bigint"==typeof B||p.isBuffer(P))return k?[O(D?u:k(u,w.encoder,R,"key",I))+"="+O(k(P,w.encoder,R,"value",I))]:[O(u)+"="+O(String(P))];var V=[];if(void 0===P)return V;if("comma"===h&&v(P))D&&k&&(P=p.maybeMap(P,function(d){return null==d?d:k(d)})),L=[{value:P.length>0?P.join(",")||null:void 0}];else if(v(A))L=A;else{var $=Object.keys(P);L=C?$.sort(C):$}var H=x?String(u).replace(/\./g,"%2E"):String(u),q=b&&v(P)&&1===P.length?H+"[]":H;if(g&&v(P)&&0===P.length)return q+"[]";for(var G=0;G<L.length;++G){var Y=L[G],W="object"==typeof Y&&Y&&void 0!==Y.value?Y.value:P[Y];if(!F||null!==W){var X=T&&x?String(Y).replace(/\./g,"%2E"):String(Y),K=v(P)?"function"==typeof h?h(q,X):q:q+(T?"."+X:"["+X+"]");N.set(m,z);var J=f();J.set(E,N),y(V,d(W,K,h,b,g,_,F,x,"comma"===h&&D&&v(P)?null:k,A,C,T,S,I,O,D,R,J))}}return V},A=function(d){if(!d)return w;if(void 0!==d.allowEmptyArrays&&"boolean"!=typeof d.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==d.encodeDotInKeys&&"boolean"!=typeof d.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==d.encoder&&void 0!==d.encoder&&"function"!=typeof d.encoder)throw TypeError("Encoder has to be a function.");var m,u=d.charset||w.charset;if(void 0!==d.charset&&"utf-8"!==d.charset&&"iso-8859-1"!==d.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=h.default;if(void 0!==d.format){if(!b.call(h.formatters,d.format))throw TypeError("Unknown format option provided.");f=d.format}var p=h.formatters[f],_=w.filter;if(("function"==typeof d.filter||v(d.filter))&&(_=d.filter),m=d.arrayFormat in g?d.arrayFormat:"indices"in d?d.indices?"indices":"repeat":w.arrayFormat,"commaRoundTrip"in d&&"boolean"!=typeof d.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var y=void 0===d.allowDots?!0===d.encodeDotInKeys||w.allowDots:!!d.allowDots;return{addQueryPrefix:"boolean"==typeof d.addQueryPrefix?d.addQueryPrefix:w.addQueryPrefix,allowDots:y,allowEmptyArrays:"boolean"==typeof d.allowEmptyArrays?!!d.allowEmptyArrays:w.allowEmptyArrays,arrayFormat:m,charset:u,charsetSentinel:"boolean"==typeof d.charsetSentinel?d.charsetSentinel:w.charsetSentinel,commaRoundTrip:!!d.commaRoundTrip,delimiter:void 0===d.delimiter?w.delimiter:d.delimiter,encode:"boolean"==typeof d.encode?d.encode:w.encode,encodeDotInKeys:"boolean"==typeof d.encodeDotInKeys?d.encodeDotInKeys:w.encodeDotInKeys,encoder:"function"==typeof d.encoder?d.encoder:w.encoder,encodeValuesOnly:"boolean"==typeof d.encodeValuesOnly?d.encodeValuesOnly:w.encodeValuesOnly,filter:_,format:f,formatter:p,serializeDate:"function"==typeof d.serializeDate?d.serializeDate:w.serializeDate,skipNulls:"boolean"==typeof d.skipNulls?d.skipNulls:w.skipNulls,sort:"function"==typeof d.sort?d.sort:null,strictNullHandling:"boolean"==typeof d.strictNullHandling?d.strictNullHandling:w.strictNullHandling}};d.exports=function(d,m){var u,p,h=d,b=A(m);"function"==typeof b.filter?h=(0,b.filter)("",h):v(b.filter)&&(u=b.filter);var _=[];if("object"!=typeof h||null===h)return"";var F=g[b.arrayFormat],x="comma"===F&&b.commaRoundTrip;u||(u=Object.keys(h)),b.sort&&u.sort(b.sort);for(var w=f(),E=0;E<u.length;++E){var C=u[E];if(null!=C){var T=h[C];b.skipNulls&&null===T||y(_,k(T,C,F,x,b.allowEmptyArrays,b.strictNullHandling,b.skipNulls,b.encodeDotInKeys,b.encode?b.encoder:null,b.filter,b.sort,b.allowDots,b.serializeDate,b.format,b.formatter,b.encodeValuesOnly,b.charset,w))}}var S=_.join(b.delimiter),I=!0===b.addQueryPrefix?"?":"";return b.charsetSentinel&&("iso-8859-1"===b.charset?I+="utf8=%26%2310003%3B"+b.delimiter:I+="utf8=%E2%9C%93"+b.delimiter),S.length>0?I+S:""}},1954(d,m,u){"use strict";var f=u(5539),p=u(6278),h=Object.prototype.hasOwnProperty,b=Array.isArray,g=p(),v=function(d,m){return g.set(d,m),d},_=function(d){return g.has(d)},y=function(d){return g.get(d)},F=function(d,m){g.set(d,m)},x=function(){for(var d=[],m=0;m<256;++m)d[d.length]="%"+((m<16?"0":"")+m.toString(16)).toUpperCase();return d}(),w=function(d){for(;d.length>1;){var m=d.pop(),u=m.obj[m.prop];if(b(u)){for(var f=[],p=0;p<u.length;++p)void 0!==u[p]&&(f[f.length]=u[p]);m.obj[m.prop]=f}}},E=function(d,m){for(var u=m&&m.plainObjects?{__proto__:null}:{},f=0;f<d.length;++f)void 0!==d[f]&&(u[f]=d[f]);return u};d.exports={arrayToObject:E,assign:function(d,m){return Object.keys(m).reduce(function(d,u){return d[u]=m[u],d},d)},combine:function(d,m,u,f){if(_(d)){var p=y(d)+1;return d[p]=m,F(d,p),d}var h=[].concat(d,m);return h.length>u?v(E(h,{plainObjects:f}),h.length-1):h},compact:function(d){for(var m=[{obj:{o:d},prop:"o"}],u=[],f=0;f<m.length;++f)for(var p=m[f],h=p.obj[p.prop],b=Object.keys(h),g=0;g<b.length;++g){var v=b[g],_=h[v];"object"==typeof _&&null!==_&&-1===u.indexOf(_)&&(m[m.length]={obj:h,prop:v},u[u.length]=_)}return w(m),d},decode:function(d,m,u){var f=d.replace(/\+/g," ");if("iso-8859-1"===u)return f.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(f)}catch(d){return f}},encode:function(d,m,u,p,h){if(0===d.length)return d;var b=d;if("symbol"==typeof d?b=Symbol.prototype.toString.call(d):"string"!=typeof d&&(b=String(d)),"iso-8859-1"===u)return escape(b).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var g="",v=0;v<b.length;v+=1024){for(var _=b.length>=1024?b.slice(v,v+1024):b,y=[],F=0;F<_.length;++F){var w=_.charCodeAt(F);if(45===w||46===w||95===w||126===w||w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||h===f.RFC1738&&(40===w||41===w)){y[y.length]=_.charAt(F);continue}if(w<128){y[y.length]=x[w];continue}if(w<2048){y[y.length]=x[192|w>>6]+x[128|63&w];continue}if(w<55296||w>=57344){y[y.length]=x[224|w>>12]+x[128|w>>6&63]+x[128|63&w];continue}F+=1,w=65536+((1023&w)<<10|1023&_.charCodeAt(F)),y[y.length]=x[240|w>>18]+x[128|w>>12&63]+x[128|w>>6&63]+x[128|63&w]}g+=y.join("")}return g},isBuffer:function(d){return!!d&&"object"==typeof d&&!!(d.constructor&&d.constructor.isBuffer&&d.constructor.isBuffer(d))},isOverflow:_,isRegExp:function(d){return"[object RegExp]"===Object.prototype.toString.call(d)},markOverflow:v,maybeMap:function(d,m){if(b(d)){for(var u=[],f=0;f<d.length;f+=1)u[u.length]=m(d[f]);return u}return m(d)},merge:function d(m,u,f){if(!u)return m;if("object"!=typeof u&&"function"!=typeof u){if(b(m)){var p=m.length;if(f&&"number"==typeof f.arrayLimit&&p>f.arrayLimit)return v(E(m.concat(u),f),p);m[p]=u}else if(!m||"object"!=typeof m)return[m,u];else if(_(m)){var g=y(m)+1;m[g]=u,F(m,g)}else{if(f&&f.strictMerge)return[m,u];(f&&(f.plainObjects||f.allowPrototypes)||!h.call(Object.prototype,u))&&(m[u]=!0)}return m}if(!m||"object"!=typeof m){if(_(u)){for(var x=Object.keys(u),w=f&&f.plainObjects?{__proto__:null,0:m}:{0:m},k=0;k<x.length;k++)w[parseInt(x[k],10)+1]=u[x[k]];return v(w,y(u)+1)}var A=[m].concat(u);return f&&"number"==typeof f.arrayLimit&&A.length>f.arrayLimit?v(E(A,f),A.length-1):A}var C=m;return(b(m)&&!b(u)&&(C=E(m,f)),b(m)&&b(u))?(u.forEach(function(u,p){if(h.call(m,p)){var b=m[p];b&&"object"==typeof b&&u&&"object"==typeof u?m[p]=d(b,u,f):m[m.length]=u}else m[p]=u}),m):Object.keys(u).reduce(function(m,p){var b=u[p];if(h.call(m,p)?m[p]=d(m[p],b,f):m[p]=b,_(u)&&!_(m)&&v(m,y(u)),_(m)){var g=parseInt(p,10);String(g)===p&&g>=0&&g>y(m)&&F(m,g)}return m},C)}}},6521(d,m,u){"use strict";var f=u(3109),p=u(6757),h=function(d,m,u){for(var f,p=d;null!=(f=p.next);p=f)if(f.key===m)return p.next=f.next,u||(f.next=d.next,d.next=f),f},b=function(d,m){if(d){var u=h(d,m);return u&&u.value}},g=function(d,m,u){var f=h(d,m);f?f.value=u:d.next={key:m,next:d.next,value:u}},v=function(d,m){if(d)return h(d,m,!0)};d.exports=function(){var d,m={assert:function(d){if(!m.has(d))throw new p("Side channel does not contain "+f(d))},delete:function(m){var u=d&&d.next,f=v(d,m);return f&&u&&u===f&&(d=void 0),!!f},get:function(m){return b(d,m)},has:function(m){var u;return!!(u=d)&&!!h(u,m)},set:function(m,u){d||(d={next:void 0}),g(d,m,u)}};return m}},3977(d,m,u){"use strict";var f=u(4295),p=u(8682),h=u(3109),b=u(6757),g=f("%Map%",!0),v=p("Map.prototype.get",!0),_=p("Map.prototype.set",!0),y=p("Map.prototype.has",!0),F=p("Map.prototype.delete",!0),x=p("Map.prototype.size",!0);d.exports=!!g&&function(){var d,m={assert:function(d){if(!m.has(d))throw new b("Side channel does not contain "+h(d))},delete:function(m){if(d){var u=F(d,m);return 0===x(d)&&(d=void 0),u}return!1},get:function(m){if(d)return v(d,m)},has:function(m){return!!d&&y(d,m)},set:function(m,u){d||(d=new g),_(d,m,u)}};return m}},8965(d,m,u){"use strict";var f=u(4295),p=u(8682),h=u(3109),b=u(3977),g=u(6757),v=f("%WeakMap%",!0),_=p("WeakMap.prototype.get",!0),y=p("WeakMap.prototype.set",!0),F=p("WeakMap.prototype.has",!0),x=p("WeakMap.prototype.delete",!0);d.exports=v?function(){var d,m,u={assert:function(d){if(!u.has(d))throw new g("Side channel does not contain "+h(d))},delete:function(u){if(v&&u&&("object"==typeof u||"function"==typeof u)){if(d)return x(d,u)}else if(b&&m)return m.delete(u);return!1},get:function(u){return v&&u&&("object"==typeof u||"function"==typeof u)&&d?_(d,u):m&&m.get(u)},has:function(u){return v&&u&&("object"==typeof u||"function"==typeof u)&&d?F(d,u):!!m&&m.has(u)},set:function(u,f){v&&u&&("object"==typeof u||"function"==typeof u)?(d||(d=new v),y(d,u,f)):b&&(m||(m=b()),m.set(u,f))}};return u}:b},6278(d,m,u){"use strict";var f=u(6757),p=u(3109),h=u(6521),b=u(3977),g=u(8965)||b||h;d.exports=function(){var d,m={assert:function(d){if(!m.has(d))throw new f("Side channel does not contain "+p(d))},delete:function(m){return!!d&&d.delete(m)},get:function(m){return d&&d.get(m)},has:function(m){return!!d&&d.has(m)},set:function(m,u){d||(d=g()),d.set(m,u)}};return m}},4532(d,m,u){!function(d){"use strict";var m,u,f=function(){try{if(d.URLSearchParams&&"bar"===new d.URLSearchParams("foo=bar").get("foo"))return d.URLSearchParams}catch(d){}return null}(),p=f&&"a=1"===new f({a:1}).toString(),h=f&&"+"===new f("s=%2B").get("s"),b=f&&"size"in f.prototype,g="__URLSearchParams__",v=!f||((m=new f).append("s"," &"),"s=+%26"===m.toString()),_=w.prototype,y=!!(d.Symbol&&d.Symbol.iterator);if(!f||!p||!h||!v||!b){_.append=function(d,m){T(this[g],d,m)},_.delete=function(d){delete this[g][d]},_.get=function(d){var m=this[g];return this.has(d)?m[d][0]:null},_.getAll=function(d){var m=this[g];return this.has(d)?m[d].slice(0):[]},_.has=function(d){return I(this[g],d)},_.set=function(d,m){this[g][d]=[""+m]},_.toString=function(){var d,m,u,f,p=this[g],h=[];for(m in p)for(u=E(m),d=0,f=p[m];d<f.length;d++)h.push(u+"="+E(f[d]));return h.join("&")};var F=d.Proxy&&f&&(!h||!v||!p||!b);F?(u=new Proxy(f,{construct:function(d,m){return new d(new w(m[0]).toString())}})).toString=Function.prototype.toString.bind(w):u=w,Object.defineProperty(d,"URLSearchParams",{value:u});var x=d.URLSearchParams.prototype;x.polyfill=!0,!F&&d.Symbol&&(x[d.Symbol.toStringTag]="URLSearchParams"),"forEach"in x||(x.forEach=function(d,m){var u=C(this.toString());Object.getOwnPropertyNames(u).forEach(function(f){u[f].forEach(function(u){d.call(m,u,f,this)},this)},this)}),"sort"in x||(x.sort=function(){var d,m,u,f=C(this.toString()),p=[];for(d in f)p.push(d);for(p.sort(),m=0;m<p.length;m++)this.delete(p[m]);for(m=0;m<p.length;m++){var h=p[m],b=f[h];for(u=0;u<b.length;u++)this.append(h,b[u])}}),"keys"in x||(x.keys=function(){var d=[];return this.forEach(function(m,u){d.push(u)}),A(d)}),"values"in x||(x.values=function(){var d=[];return this.forEach(function(m){d.push(m)}),A(d)}),"entries"in x||(x.entries=function(){var d=[];return this.forEach(function(m,u){d.push([u,m])}),A(d)}),y&&(x[d.Symbol.iterator]=x[d.Symbol.iterator]||x.entries),"size"in x||Object.defineProperty(x,"size",{get:function(){var d=C(this.toString());if(x===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(d).reduce(function(m,u){return m+d[u].length},0)}})}function w(d){((d=d||"")instanceof URLSearchParams||d instanceof w)&&(d=d.toString()),this[g]=C(d)}function E(d){var m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'\(\)~]|%20|%00/g,function(d){return m[d]})}function k(d){return d.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(d){return decodeURIComponent(d)})}function A(m){var u={next:function(){var d=m.shift();return{done:void 0===d,value:d}}};return y&&(u[d.Symbol.iterator]=function(){return u}),u}function C(d){var m={};if("object"==typeof d)if(S(d))for(var u=0;u<d.length;u++){var f=d[u];if(S(f)&&2===f.length)T(m,f[0],f[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var p in d)d.hasOwnProperty(p)&&T(m,p,d[p]);else{0===d.indexOf("?")&&(d=d.slice(1));for(var h=d.split("&"),b=0;b<h.length;b++){var g=h[b],v=g.indexOf("=");-1<v?T(m,k(g.slice(0,v)),k(g.slice(v+1))):g&&T(m,k(g),"")}}return m}function T(d,m,u){var f="string"==typeof u?u:null!=u&&"function"==typeof u.toString?u.toString():JSON.stringify(u);I(d,m)?d[m].push(f):d[m]=[f]}function S(d){return!!d&&"[object Array]"===Object.prototype.toString.call(d)}function I(d,m){return Object.prototype.hasOwnProperty.call(d,m)}}(void 0!==u.g?u.g:"u">typeof window?window:this)},7478(d,m,u){"use strict";let f,p,h,b,g;u.d(m,{WO:()=>iv,PR:()=>i_,Iy:()=>ix,BB:()=>ig,Id:()=>iy,BH:()=>iF,J0:()=>T,Ay:()=>iT,B1:()=>ib});var v,_,y,F,x,w,E,k,A,C,T={};u.r(T),u.d(T,{cY:()=>N,C3:()=>L,Ri:()=>M,Th:()=>X,sY:()=>K,F2:()=>j,N0:()=>V,Rk:()=>$,DH:()=>B,jX:()=>P,B8:()=>Y,NM:()=>W,Hh:()=>z});var S={};u.r(S),u.d(S,{hasBrowserEnv:()=>tl,hasStandardBrowserEnv:()=>td,hasStandardBrowserWebWorkerEnv:()=>tm,navigator:()=>tc,origin:()=>tu}),u(4532);var I=u(5144),O=u(3583),D=u(4867),R=u.n(D);u(3472);class N{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((d,m)=>{this._resolve=d,this._reject=m}),Object.freeze(this)}}function B(d,m,u=!0){if(null==d||null==m)return d===m;if(d.constructor!==m.constructor)return!1;if(d instanceof Function||d instanceof RegExp)return d===m;if(d===m||d.valueOf()===m.valueOf())return!0;if(Array.isArray(d)&&d.length!==m.length||d instanceof Date||!(d instanceof Object)||!(m instanceof Object))return!1;if(u){if(Array.isArray(d))return d.every((d,u)=>B(d,m[u]));let u=Object.keys(d);return Object.keys(m).every(d=>-1!==u.indexOf(d))&&u.every(u=>B(d[u],m[u]))}return!1}function L(d,m){if(0===d.length)return;let u=d.indexOf(m);u>=0&&d.splice(u,1)}function P(d){return null==d?"":d.split(" ").map((d,m)=>0===m?d[0].toLowerCase()+d.substring(1):d[0].toUpperCase()+d.substring(1)).join("")}function M(d){if(null==d)return"";let m=!1;return d.split(/([A-Z]|\d)/).map((d,u,f)=>{if(!d)return d;if(!m)return m=!0,d.charAt(0).toUpperCase()+d.slice(1);if("_"===d)return" ";if(1===d.length&&d===d.toUpperCase()){let m=!f[u-1]||"_"===f[u-1],p=u+1<f.length&&f[u+1]&&"_"!==f[u+1],h=u+3>f.length||!f[u+1]&&!f[u+3];(!m||p)&&(d=" "+d),!p&&(m||h)||(d=d.toLowerCase())}return d}).join("").trim()}function z(d,m){if(m===d)return!0;let u=d.endsWith("*"),f=!u&&d.startsWith("*"),p=!u&&!f&&d.startsWith("^")&&d.endsWith("$");if(u&&m.startsWith(d.substr(0,d.length-1))||f&&m.endsWith(d.substr(1)))return!0;if(p)try{return new RegExp(d).test(m)}catch(d){console.error("Failed to compile needle as a RegExp: "+d)}return!1}function U(d,m,u){let f="string"==typeof d?d:d.name;return m&&m.meta&&m.meta.hasOwnProperty(f)?m.meta[f]:u&&u.meta?u.meta[f]:void 0}function j(d){return("string"==typeof d&&(d=I.u0.getAssetDescriptor(d)),d)?O.Ay.t("label.asset."+d.name,{defaultValue:M(d.name)}):""}function V(d,m,u,f,p){return function(d,m,u,f,p,h){let b=G("label",d,m,u,p),g="";if(b||(b=U("label",d,m&&m.meta?m:void 0)),f&&(g=H(q("units",d,m,u,p))),!b){let u=d?d.name:m?"string"==typeof m?m:m.name:void 0;b=h||(u?M(u):void 0)}return b?b+(g?" ("+g+")":""):g}(d,m,u,f,!0,p)}function $(d,m,u,f){let p="";if(null==d)p=f||"";else if("string"==typeof d)p=d;else if("number"==typeof d||"boolean"==typeof d||d instanceof Date){let f=m&&m();if(f&&0!==Object.keys(f).length)switch("number"==typeof d?f.asBoolean?d=!!d:f.asDate&&(d=new Date(d)):"boolean"==typeof d&&f.asNumber&&(d=+!!d),typeof d){case"number":p=new Intl.NumberFormat(u||O.Ay.language,f).format(d);break;case"boolean":f.asOnOff&&(p=d?O.Ay.t("on"):O.Ay.t("off")),f.asOpenClosed&&(p=d?O.Ay.t("open"):O.Ay.t("closed")),f.asPressedReleased&&(p=d?O.Ay.t("pressed"):O.Ay.t("released"));break;case"object":if(f.momentJsFormat)p=R()(d).format(f.momentJsFormat);else if(f.iso8601)p=d.toISOString();else if(f.week){var h;let m,u=((h=new Date(Date.UTC((h=d).getFullYear(),h.getMonth(),h.getDate()))).setUTCDate(h.getUTCDate()+4-(h.getUTCDay()||7)),m=new Date(Date.UTC(h.getUTCFullYear(),0,1)),Math.ceil(((h.getTime()-m.getTime())/864e5+1)/7));p="2-digit"===f.week?String(u).padStart(2,"0"):Number(u).toString(10)}else p=new Intl.DateTimeFormat(u||O.Ay.language,f).format(d)}else p=Object(d).toString()}return p}function H(d,m){if(!d)return"";m||(m="");let u=d.map((d,u)=>{if(3!==d.length||d.toUpperCase()!==d)return O.Ay.t(["units."+d,"or:units."+d]);{let f=new Intl.NumberFormat(O.Ay.language,{currency:d,style:"currency"}).formatToParts();if(0!==u||"currency"!==f[0].type)return"currency"===f[0].type?f[0].value:f[f.length-1].value;if(!m)return f[0].value;m=f[0].value+m}}).join("");return m.length>0?m+" "+u:u}function q(d,m,u,f,p){let h,b=[],g=G(d,m&&"string"==typeof m?m:m?m.name:u?"string"==typeof u?u:u.name:void 0,u,f,p);if(g&&(h=JSON.parse(g)))if("format"!==d)return h;else b.push(h);if(m&&m.meta&&(h=U(d,m,u)))if("format"!==d)return h;else b.push(h);if(u&&"string"!=typeof u&&u.hasOwnProperty(d)){if(h=u[d],"format"!==d)return h;b.push(h)}if(u&&u.type){if(h=I.u0.getValueDescriptor(u.type)[d],"format"!==d)return h;b.push(h)}if("format"!==d||0===b.length)return h;let v={};return b.reverse().forEach(d=>{v=Object.assign(Object.assign({},v),d)}),v}function G(d,m,u,f,p,h){let b;if(m?b="string"==typeof m?m:m.name:u&&(b="string"==typeof u?u:u.name),!b)return;let g=[],v=d+"."+(p?"attribute":"meta")+".";if(f&&g.push(v+f+"."+b),u&&"string"!=typeof u&&(g.push(v+u.type+"."+b),g.push(v+u.type)),g.push(v+b),g.length>0)return O.Ay.t(g,{defaultValue:h||""})}function Y(d){return(m,u)=>{let f=d(m),p=d(u);return f||p?f&&!p?1:!f&&p?-1:f-p:0}}function W(d){return(m,u)=>{let f=d(m),p=d(u);return f||p?f&&!p?1:!f&&p?-1:f.localeCompare(p):0}}function X(d,m){let u=new N;return d.dispatchEvent(m),window.setTimeout(()=>{u.resolve(m.detail)}),u.promise}function K(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,d=>(d^crypto.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16))}class J{constructor(d){d&&Object.assign(this,d)}matches(d){var m,u,f,p,h,b,g;if((null==(m=this.ids)?void 0:m.length)&&(!d.id||!this.ids.includes(d.id))||(null==(u=this.types)?void 0:u.length)&&(!d.type||!this.types.includes(d.type))||(null==(f=this.realm)?void 0:f.name)&&d.realm!==this.realm.name||(null==(p=this.parents)?void 0:p.length)&&!this.parents.some(m=>!m.id||d.parentId===m.id))return!1;if(null==(h=this.paths)?void 0:h.length){let m=null!=(b=d.path)?b:[];if(!this.paths.some(d=>{var u;return(null!=(u=d.path)?u:[]).every((d,u)=>m[u]===d)}))return!1}return(null==(g=this.names)||!g.length||!!this.names.every(m=>J._evalValuePredicate(d.name,m)))&&(!this.attributes||J._evalGroup(d,this.attributes))}static getUnsupportedFields(d){return Object.keys(d).filter(d=>!J._SUPPORTED_FIELDS.has(d))}collectAttributeNames(){return this.attributes?J._collectNames(this.attributes):[]}static _evalValuePredicate(d,m){var u;switch(m.predicateType){case"string":{let f;if(null==d)return!1;let p=!1!==m.caseSensitive?String(d):String(d).toLowerCase(),h=!1!==m.caseSensitive?m.value:null==(u=m.value)?void 0:u.toLowerCase();switch(m.match){case"BEGIN":f=p.startsWith(h);break;case"END":f=p.endsWith(h);break;case"CONTAINS":f=p.includes(h);break;default:f=p===h}return m.negate?!f:f}case"boolean":return d===m.value;case"number":{let u;if("number"!=typeof d)return!1;switch(m.operator){case"GREATER_THAN":u=d>m.value;break;case"GREATER_EQUALS":u=d>=m.value;break;case"LESS_THAN":u=d<m.value;break;case"LESS_EQUALS":u=d<=m.value;break;case"BETWEEN":u=d>=m.value&&d<=m.rangeValue;break;default:u=d===m.value}return m.negate?!u:u}}return!1}static _evalPredicate(d,m){var u,f;let p=null==(u=m.name)?void 0:u.value;if(!p)return!0;let h=null==(f=d.attributes)?void 0:f[p];if(!h)return!!m.negated;let b=!m.value||J._evalValuePredicate(h.value,m.value);return m.negated?!b:b}static _evalGroup(d,m){var u,f,p;let h=null!=(u=m.operator)?u:"AND",b=[...(null!=(f=m.items)?f:[]).map(m=>J._evalPredicate(d,m)),...(null!=(p=m.groups)?p:[]).map(m=>J._evalGroup(d,m))];return!b.length||("OR"===h?b.some(Boolean):b.every(Boolean))}static _collectNames(d){var m,u;return[...(null!=(m=d.items)?m:[]).map(d=>{var m;return null==(m=d.name)?void 0:m.value}).filter(d=>!!d),...(null!=(u=d.groups)?u:[]).flatMap(d=>J._collectNames(d))]}}J._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var Z=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let Q=u(4461);class ee{constructor(d,m,u){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=d,this._autoEnable=m,this._enableCompleteCallback=u,window.OpenRemoteConsole=this;let f=new URLSearchParams(window.location.search),p=f.get("consoleName"),h=f.get("consoleVersion"),b=f.get("consolePlatform"),g=f.get("consoleProviders"),v=f.get("consoleAutoEnable"),_=g&&g.length>0?g.split(" "):["push"];this._pendingProviderEnables=_;let y=ee._createConsoleRegistration(),F=window.localStorage.getItem(this._storageKey);if(F)try{let d=JSON.parse(F);d.id&&(y.id=d.id),d.name&&(y.name=d.name),d.providers&&(y.providers=d.providers),d.apps&&(y.apps=d.apps)}catch(d){console.error("Failed to deserialise console registration")}let x=y.providers;for(let d of(y.providers={},_)){let m=x&&x.hasOwnProperty(d)?x[d]:{enabled:!1,disabled:!1};y.providers[d]=m}let w=iT.getAppName();w.length>0&&0>y.apps.indexOf(w)&&y.apps.push(w),this._registration=y,p&&(y.name=p),h&&(y.version=h),b&&(y.platform=b),v&&(this._autoEnable="TRUE"===v||"true"===v)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let d=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return d&&("iP"===d.substring(0,2)||"Mac"===d.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return Z(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let d of Object.keys(this._registration.providers))yield this._initialiseProvider(d);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(d){console.error(d)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let d=this._pendingProviderEnables.length-1;d>-1;d--){let m=this._pendingProviderEnables[d];yield this.enableProvider(m)}})}enableProvider(d,m){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(d))throw console.debug("Invalid console provider '"+d+"'"),Error("Invalid console provider '"+d+"'");console.debug("Console: enabling provider '"+d+"'");let u={provider:d,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:m},f=yield this.sendProviderMessage(u,!0);this._registration.providers[d].hasPermission=f.hasPermission,this._registration.providers[d].success=f.success,this._registration.providers[d].enabled=f.success,this._registration.providers[d].data=f.data;let p=this._pendingProviderEnables.indexOf(d);return p>=0&&(this._pendingProviderEnables.splice(p,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),f})}disableProvider(d){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(d))throw console.debug("Invalid console provider '"+d+"'"),Error("Invalid console provider '"+d+"'");console.debug("Console: disabling provider '"+d+"'");let m=yield this.sendProviderMessage({provider:d,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[d].disabled=!0,this._registration.providers[d].enabled=!1,m})}getProvider(d){return this._registration&&this._registration.providers?this._registration.providers[d]:void 0}sendProviderMessage(d,m){return Z(this,void 0,void 0,function*(){if("storage"!==d.provider&&!this._registration.providers.hasOwnProperty(d.provider))throw console.debug("Invalid console provider '"+d.provider+"'"),Error("Invalid console provider '"+d.provider+"'");if(!m)return void this._doSendProviderMessage(d);let u=d.provider+d.action;if(this._pendingProviderPromises[u])throw Error("Message already pending for provider '"+d.provider+"' with action '"+d.action+"'");let f=new N,p=()=>{delete this._pendingProviderPromises[u],f.reject("No response from provider")};return this._pendingProviderPromises[u]=[f,window.setTimeout(p,5e3)],this._doSendProviderMessage(d),f.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((d,m)=>{this._registrationTimer=window.setTimeout(()=>Z(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),d()}catch(d){console.error("Failed to register console",d),m(d)}}))})}_sendRegistration(d){return Z(this,void 0,void 0,function*(){this._normaliseRegistration();let m=!!this._registration.id;try{let d=yield iT.rest.api.ConsoleResource.register(this._registration);if(200!==d.status)throw Error("Failed to register console");this._registration=d.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(u){if(d&&m&&ee._isStaleRegistrationResponse(u)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw u}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(d){let m=d&&d.response?d.response.status:void 0;return 403===m||409===m}storeData(d,m){this.sendProviderMessage({provider:"storage",action:"STORE",key:d,value:m},!1)}retrieveData(d){return Z(this,void 0,void 0,function*(){let m=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:d},!0);try{let d=yield Promise.race([m,new Promise((d,m)=>setTimeout(m,2e3))]);if(d&&d.value){let m=d.value;return"null"===m?void 0:m}}catch(d){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(d,m){this._providerMessageListeners[d.provider+d.action]=m}removeProviderMessageListener(d){delete this._providerMessageListeners[d.provider+d.action]}_postNativeShellMessage(d){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(d));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(d)}catch(d){console.error("Failed to send shell message towards console",d)}}_doSendGenericMessage(d,m){let u={type:d,data:m};this.isMobile?this._postNativeShellMessage(u):console.warn("Failed to send generic message to console.",u)}_doSendProviderMessage(d){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:d});else{if(!d.provider||!d.action)return;switch(d.provider.trim().toUpperCase()){case"PUSH":switch(d.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+d.provider+"' and action '"+d.action+"'")}break;case"STORAGE":switch(d.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let m=d.key?d.key.trim():null;if(!m||0===m.length)throw Error("Storage provider 'store' action requires a `key`");null===d.value?window.localStorage.removeItem(m):window.localStorage.setItem(m,JSON.stringify(d.value))}break;case"RETRIEVE":{let m=d.key?d.key.trim():null;if(!m||0===m.length)throw Error("Storage provider 'retrieve' action requires a `key`");let u=window.localStorage.getItem(m);if(null!==u)try{u=JSON.parse(u)}catch(d){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:m,value:u}))}break;default:throw Error("Unsupported provider '"+d.provider+"' and action '"+d.action+"'")}break;default:console.error("Unsupported provider: "+d.provider)}}}_handleProviderResponse(d){if(!d)return;let m=JSON.parse(d),u=m.provider,f=m.action,p=this._pendingProviderPromises[u+f];p&&(window.clearTimeout(p[1]),delete this._pendingProviderPromises[u+f],p[0].resolve(m));let h=this._providerMessageListeners[u+f];h&&h(m)}_callCompletedCallback(){let d=this._enableCompleteCallback;this._enableCompleteCallback=null,d&&window.setTimeout(()=>{d()},0)}static _createConsoleRegistration(){return{name:Q.name,version:Q.version,platform:Q.os.toString(),apps:[],model:((Q.manufacturer?Q.manufacturer+" ":"")+(Q.product?Q.product:"")).trim()}}_initialiseProvider(d){return Z(this,void 0,void 0,function*(){let m;console.debug("Console: initialising provider '"+d+"'");try{m=yield this.sendProviderMessage({provider:d,action:"PROVIDER_INIT"},!0),this._registration.providers[d].version=m.version,this._registration.providers[d].requiresPermission=m.requiresPermission,this._registration.providers[d].hasPermission=m.hasPermission,this._registration.providers[d].success=m.success,this._registration.providers[d].enabled=m.enabled,this._registration.providers[d].disabled=m.disabled,this._registration.providers[d].data=m.data}catch(d){console.error(d),m={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(m.success||(console.debug("Provider initialisation failed: '"+d+"'"),m.disabled=!0,this._registration.providers[d].disabled=!0),m.disabled||m.enabled){let m=this._pendingProviderEnables.indexOf(d);m>=0&&this._pendingProviderEnables.splice(m,1)}})}}function et(d,m){return function(){return d.apply(m,arguments)}}let{toString:en}=Object.prototype,{getPrototypeOf:ei}=Object,{iterator:eo,toStringTag:er}=Symbol,ea=(({hasOwnProperty:d})=>(m,u)=>d.call(m,u))(Object.prototype),es=(d,m)=>{let u=d,f=[];for(;null!=u&&u!==Object.prototype&&-1===f.indexOf(u);){if(f.push(u),ea(u,m))return!0;u=ei(u)}return!1},el=(p=Object.create(null),d=>{let m=en.call(d);return p[m]||(p[m]=m.slice(8,-1).toLowerCase())}),ec=d=>(d=d.toLowerCase(),m=>el(m)===d),ed=d=>m=>typeof m===d,{isArray:em}=Array,eu=ed("undefined");function ef(d){return null!==d&&!eu(d)&&null!==d.constructor&&!eu(d.constructor)&&eb(d.constructor.isBuffer)&&d.constructor.isBuffer(d)}let ep=ec("ArrayBuffer"),eh=ed("string"),eb=ed("function"),eg=ed("number"),ev=d=>null!==d&&"object"==typeof d,e_=d=>{if(!ev(d))return!1;let m=ei(d);return(null===m||m===Object.prototype||null===ei(m))&&!es(d,er)&&!es(d,eo)},ey=ec("Date"),eF=ec("File"),ex=ec("Blob"),ew=ec("FileList"),eE="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ek=void 0!==eE.FormData?eE.FormData:void 0,eA=ec("URLSearchParams"),[eC,eT,eS,eI]=["ReadableStream","Request","Response","Headers"].map(ec);function eO(d,m,{allOwnKeys:u=!1}={}){let f,p;if(null!=d)if("object"!=typeof d&&(d=[d]),em(d))for(f=0,p=d.length;f<p;f++)m.call(null,d[f],f,d);else{let p;if(ef(d))return;let h=u?Object.getOwnPropertyNames(d):Object.keys(d),b=h.length;for(f=0;f<b;f++)p=h[f],m.call(null,d[p],p,d)}}function eD(d,m){let u;if(ef(d))return null;m=m.toLowerCase();let f=Object.keys(d),p=f.length;for(;p-- >0;)if(m===(u=f[p]).toLowerCase())return u;return null}let eR="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,eN=d=>!eu(d)&&d!==eR,eB=(h="u">typeof Uint8Array&&ei(Uint8Array),d=>h&&d instanceof h),eL=ec("HTMLFormElement"),{propertyIsEnumerable:eP}=Object.prototype,eM=ec("RegExp"),ez=(d,m)=>{let u=Object.getOwnPropertyDescriptors(d),f={};eO(u,(u,p)=>{let h;!1!==(h=m(u,p,d))&&(f[p]=h||u)}),Object.defineProperties(d,f)},eU=ec("AsyncFunction"),ej=(v="function"==typeof setImmediate,_=eb(eR.postMessage),v?setImmediate:_?(y=`axios@${Math.random()}`,F=[],eR.addEventListener("message",({source:d,data:m})=>{d===eR&&m===y&&F.length&&F.shift()()},!1),d=>{F.push(d),eR.postMessage(y,"*")}):d=>setTimeout(d)),eV="u">typeof queueMicrotask?queueMicrotask.bind(eR):"u">typeof process&&process.nextTick||ej,e$=d=>null!=d&&eb(d[eo]),eH={isArray:em,isArrayBuffer:ep,isBuffer:ef,isFormData:d=>{if(!d)return!1;if(ek&&d instanceof ek)return!0;let m=ei(d);if(!m||m===Object.prototype||!eb(d.append))return!1;let u=el(d);return"formdata"===u||"object"===u&&eb(d.toString)&&"[object FormData]"===d.toString()},isArrayBufferView:function(d){let m;return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(d):d&&d.buffer&&ep(d.buffer)},isString:eh,isNumber:eg,isBoolean:d=>!0===d||!1===d,isObject:ev,isPlainObject:e_,isEmptyObject:d=>{if(!ev(d)||ef(d))return!1;try{return 0===Object.keys(d).length&&Object.getPrototypeOf(d)===Object.prototype}catch(d){return!1}},isReadableStream:eC,isRequest:eT,isResponse:eS,isHeaders:eI,isUndefined:eu,isDate:ey,isFile:eF,isReactNativeBlob:d=>!!(d&&void 0!==d.uri),isReactNative:d=>d&&void 0!==d.getParts,isBlob:ex,isRegExp:eM,isFunction:eb,isStream:d=>ev(d)&&eb(d.pipe),isURLSearchParams:eA,isTypedArray:eB,isFileList:ew,forEach:eO,merge:function d(...m){let{caseless:u,skipUndefined:f}=eN(this)&&this||{},p={},h=(m,h)=>{if("__proto__"===h||"constructor"===h||"prototype"===h)return;let b=u&&"string"==typeof h&&eD(p,h)||h,g=ea(p,b)?p[b]:void 0;e_(g)&&e_(m)?p[b]=d(g,m):e_(m)?p[b]=d({},m):em(m)?p[b]=m.slice():f&&eu(m)||(p[b]=m)};for(let d=0,u=m.length;d<u;d++){let u=m[d];if(!u||ef(u)||(eO(u,h),"object"!=typeof u||em(u)))continue;let f=Object.getOwnPropertySymbols(u);for(let d=0;d<f.length;d++){let m=f[d];eP.call(u,m)&&h(u[m],m)}}return p},extend:(d,m,u,{allOwnKeys:f}={})=>(eO(m,(m,f)=>{u&&eb(m)?Object.defineProperty(d,f,{__proto__:null,value:et(m,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(d,f,{__proto__:null,value:m,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:f}),d),trim:d=>d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:d=>(65279===d.charCodeAt(0)&&(d=d.slice(1)),d),inherits:(d,m,u,f)=>{d.prototype=Object.create(m.prototype,f),Object.defineProperty(d.prototype,"constructor",{__proto__:null,value:d,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(d,"super",{__proto__:null,value:m.prototype}),u&&Object.assign(d.prototype,u)},toFlatObject:(d,m,u,f)=>{let p,h,b,g={};if(m=m||{},null==d)return m;do{for(h=(p=Object.getOwnPropertyNames(d)).length;h-- >0;)b=p[h],(!f||f(b,d,m))&&!g[b]&&(m[b]=d[b],g[b]=!0);d=!1!==u&&ei(d)}while(d&&(!u||u(d,m))&&d!==Object.prototype);return m},kindOf:el,kindOfTest:ec,endsWith:(d,m,u)=>{d=String(d),(void 0===u||u>d.length)&&(u=d.length),u-=m.length;let f=d.indexOf(m,u);return -1!==f&&f===u},toArray:d=>{if(!d)return null;if(em(d))return d;let m=d.length;if(!eg(m))return null;let u=Array(m);for(;m-- >0;)u[m]=d[m];return u},forEachEntry:(d,m)=>{let u,f=(d&&d[eo]).call(d);for(;(u=f.next())&&!u.done;){let f=u.value;m.call(d,f[0],f[1])}},matchAll:(d,m)=>{let u,f=[];for(;null!==(u=d.exec(m));)f.push(u);return f},isHTMLForm:eL,hasOwnProperty:ea,hasOwnProp:ea,hasOwnInPrototypeChain:es,getSafeProp:(d,m)=>null!=d&&es(d,m)?d[m]:void 0,reduceDescriptors:ez,freezeMethods:d=>{ez(d,(m,u)=>{if(eb(d)&&["arguments","caller","callee"].includes(u))return!1;if(eb(d[u])){if(m.enumerable=!1,"writable"in m){m.writable=!1;return}m.set||(m.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},toObjectSet:(d,m)=>{let u={};return(em(d)?d:String(d).split(m)).forEach(d=>{u[d]=!0}),u},toCamelCase:d=>d.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(d,m,u){return m.toUpperCase()+u}),noop:()=>{},toFiniteNumber:(d,m)=>null!=d&&Number.isFinite(d*=1)?d:m,findKey:eD,global:eR,isContextDefined:eN,isSpecCompliantForm:function(d){return!!(d&&eb(d.append)&&"FormData"===d[er]&&d[eo])},toJSONObject:d=>{let m=new WeakSet,u=d=>{if(ev(d)){if(m.has(d))return;if(ef(d))return d;if(!("toJSON"in d)){m.add(d);let f=em(d)?[]:{};return eO(d,(d,m)=>{let p=u(d);eu(p)||(f[m]=p)}),m.delete(d),f}}return d};return u(d)},isAsyncFn:eU,isThenable:d=>d&&(ev(d)||eb(d))&&eb(d.then)&&eb(d.catch),setImmediate:ej,asap:eV,isIterable:e$,isSafeIterable:d=>null!=d&&es(d,eo)&&e$(d)},eq=eH.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eG=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eY=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eW(d,m){return eH.isArray(d)?d.map(d=>eW(d,m)):function(d){let m=0,u=d.length;for(;m<u;){let u=d.charCodeAt(m);if(9!==u&&32!==u)break;m+=1}for(;u>m;){let m=d.charCodeAt(u-1);if(9!==m&&32!==m)break;u-=1}return 0===m&&u===d.length?d:d.slice(m,u)}(String(d).replace(m,""))}function eX(d){let m=Object.create(null);return eH.forEach(d.toJSON(),(d,u)=>{m[u]=eW(d,eY)}),m}let eK=Symbol("internals");function eJ(d){return d&&String(d).trim().toLowerCase()}function eZ(d){return!1===d||null==d?d:eH.isArray(d)?d.map(eZ):eW(String(d),eG)}function eQ(d,m,u,f,p){if(eH.isFunction(f))return f.call(this,m,u);if(p&&(m=u),eH.isString(m)){if(eH.isString(f))return -1!==m.indexOf(f);if(eH.isRegExp(f))return f.test(m)}}class e0{constructor(d){d&&this.set(d)}set(d,m,u){let f=this;function p(d,m,u){let p=eJ(m);if(!p)return;let h=eH.findKey(f,p);h&&void 0!==f[h]&&!0!==u&&(void 0!==u||!1===f[h])||(f[h||m]=eZ(d))}let h=(d,m)=>eH.forEach(d,(d,u)=>p(d,u,m));if(eH.isPlainObject(d)||d instanceof this.constructor)h(d,m);else{let f;if(eH.isString(d)&&(d=d.trim())&&(f=d,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim()))){var b;let u,f,p,g;h((g={},(b=d)&&b.split("\n").forEach(function(d){p=d.indexOf(":"),u=d.substring(0,p).trim().toLowerCase(),f=d.substring(p+1).trim(),!u||g[u]&&eq[u]||("set-cookie"===u?g[u]?g[u].push(f):g[u]=[f]:g[u]=g[u]?g[u]+", "+f:f)}),g),m)}else if(eH.isObject(d)&&eH.isSafeIterable(d)){let u=Object.create(null),f,p;for(let m of d){if(!eH.isArray(m))throw TypeError("Object iterator must return a key-value pair");p=m[0],eH.hasOwnProp(u,p)?(f=u[p],u[p]=eH.isArray(f)?[...f,m[1]]:[f,m[1]]):u[p]=m[1]}h(u,m)}else null!=d&&p(m,d,u)}return this}get(d,m){if(d=eJ(d)){let u=eH.findKey(this,d);if(u){let d=this[u];if(!m)return d;if(!0===m){let m,u=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;m=f.exec(d);)u[m[1]]=m[2];return u}if(eH.isFunction(m))return m.call(this,d,u);if(eH.isRegExp(m))return m.exec(d);throw TypeError("parser must be boolean|regexp|function")}}}has(d,m){if(d=eJ(d)){let u=eH.findKey(this,d);return!!(u&&void 0!==this[u]&&(!m||eQ(this,this[u],u,m)))}return!1}delete(d,m){let u=this,f=!1;function p(d){if(d=eJ(d)){let p=eH.findKey(u,d);p&&(!m||eQ(u,u[p],p,m))&&(delete u[p],f=!0)}}return eH.isArray(d)?d.forEach(p):p(d),f}clear(d){let m=Object.keys(this),u=m.length,f=!1;for(;u--;){let p=m[u];(!d||eQ(this,this[p],p,d,!0))&&(delete this[p],f=!0)}return f}normalize(d){let m=this,u={};return eH.forEach(this,(f,p)=>{let h=eH.findKey(u,p);if(h){m[h]=eZ(f),delete m[p];return}let b=d?p.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(d,m,u)=>m.toUpperCase()+u):String(p).trim();b!==p&&delete m[p],m[b]=eZ(f),u[b]=!0}),this}concat(...d){return this.constructor.concat(this,...d)}toJSON(d){let m=Object.create(null);return eH.forEach(this,(u,f)=>{null!=u&&!1!==u&&(m[f]=d&&eH.isArray(u)?u.join(", "):u)}),m}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([d,m])=>d+": "+m).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(d){return d instanceof this?d:new this(d)}static concat(d,...m){let u=new this(d);return m.forEach(d=>u.set(d)),u}static accessor(d){let m=(this[eK]=this[eK]={accessors:{}}).accessors,u=this.prototype;function f(d){let f=eJ(d);if(!m[f]){let p;p=eH.toCamelCase(" "+d),["get","set","has"].forEach(m=>{Object.defineProperty(u,m+p,{__proto__:null,value:function(u,f,p){return this[m].call(this,d,u,f,p)},configurable:!0})}),m[f]=!0}}return eH.isArray(d)?d.forEach(f):f(d),this}}e0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eH.reduceDescriptors(e0.prototype,({value:d},m)=>{let u=m[0].toUpperCase()+m.slice(1);return{get:()=>d,set(d){this[u]=d}}}),eH.freezeMethods(e0);class e1 extends Error{static from(d,m,u,f,p,h){let b=new e1(d.message,m||d.code,u,f,p);return Object.defineProperty(b,"cause",{__proto__:null,value:d,writable:!0,enumerable:!1,configurable:!0}),b.name=d.name,null!=d.status&&null==b.status&&(b.status=d.status),h&&Object.assign(b,h),b}constructor(d,m,u,f,p){super(d),Object.defineProperty(this,"message",{__proto__:null,value:d,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,m&&(this.code=m),u&&(this.config=u),f&&(this.request=f),p&&(this.response=p,this.status=p.status)}toJSON(){let d,m,u,f=this.config,p=f&&eH.hasOwnProp(f,"redact")?f.redact:void 0,h=eH.isArray(p)&&p.length>0?(d=new Set(p.map(d=>String(d).toLowerCase())),m=[],(u=f=>{let p;if(null===f||"object"!=typeof f||eH.isBuffer(f))return f;if(-1===m.indexOf(f)){if(f instanceof e0&&(f=f.toJSON()),m.push(f),eH.isArray(f))p=[],f.forEach((d,m)=>{let f=u(d);eH.isUndefined(f)||(p[m]=f)});else{if(!eH.isPlainObject(f)&&function(d){if(eH.hasOwnProp(d,"toJSON"))return!0;let m=Object.getPrototypeOf(d);for(;m&&m!==Object.prototype;){if(eH.hasOwnProp(m,"toJSON"))return!0;m=Object.getPrototypeOf(m)}return!1}(f))return m.pop(),f;for(let[m,h]of(p=Object.create(null),Object.entries(f))){let f=d.has(m.toLowerCase())?"[REDACTED ****]":u(h);eH.isUndefined(f)||(p[m]=f)}}return m.pop(),p}})(f)):eH.toJSONObject(f);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h,code:this.code,status:this.status}}}e1.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e1.ERR_BAD_OPTION="ERR_BAD_OPTION",e1.ECONNABORTED="ECONNABORTED",e1.ETIMEDOUT="ETIMEDOUT",e1.ECONNREFUSED="ECONNREFUSED",e1.ERR_NETWORK="ERR_NETWORK",e1.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e1.ERR_DEPRECATED="ERR_DEPRECATED",e1.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e1.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e1.ERR_CANCELED="ERR_CANCELED",e1.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e1.ERR_INVALID_URL="ERR_INVALID_URL",e1.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let e2=e1;function e5(d){return eH.isPlainObject(d)||eH.isArray(d)}function e4(d){return eH.endsWith(d,"[]")?d.slice(0,-2):d}function e3(d,m,u){return d?d.concat(m).map(function(d,m){return d=e4(d),!u&&m?"["+d+"]":d}).join(u?".":""):m}let e6=eH.toFlatObject(eH,{},null,function(d){return/^is[A-Z]/.test(d)}),e8=function(d,m,u){if(!eH.isObject(d))throw TypeError("target must be an object");m=m||new FormData;let f=(u=eH.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!eH.isUndefined(m[d])})).metaTokens,p=u.visitor||w,h=u.dots,b=u.indexes,g=u.Blob||"u">typeof Blob&&Blob,v=void 0===u.maxDepth?100:u.maxDepth,_=g&&eH.isSpecCompliantForm(m),y=[];if(!eH.isFunction(p))throw TypeError("visitor must be a function");function F(d){if(null===d)return"";if(eH.isDate(d))return d.toISOString();if(eH.isBoolean(d))return d.toString();if(!_&&eH.isBlob(d))throw new e2("Blob is not supported. Use a Buffer instead.");if(eH.isArrayBuffer(d)||eH.isTypedArray(d)){if(_&&"function"==typeof g)return new g([d]);if("u">typeof Buffer)return Buffer.from(d);throw new e2("Blob is not supported. Use a Buffer instead.",e2.ERR_NOT_SUPPORT)}return d}function x(d){if(d>v)throw new e2("Object is too deeply nested ("+d+" levels). Max depth: "+v,e2.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(d,u,p){let g=d;if(eH.isReactNative(m)&&eH.isReactNativeBlob(d))return m.append(e3(p,u,h),F(d)),!1;if(d&&!p&&"object"==typeof d)if(eH.endsWith(u,"{}"))u=f?u:u.slice(0,-2),d=function(d){if(1/0===v)return JSON.stringify(d);let m=[];return JSON.stringify(d,function(d,u){if(!eH.isObject(u))return u;for(;m.length&&m[m.length-1]!==this;)m.pop();return m.push(u),x(1+m.length-1),u})}(d);else{var _;if(eH.isArray(d)&&(_=d,eH.isArray(_)&&!_.some(e5))||(eH.isFileList(d)||eH.endsWith(u,"[]"))&&(g=eH.toArray(d)))return u=e4(u),g.forEach(function(d,f){eH.isUndefined(d)||null===d||m.append(!0===b?e3([u],f,h):null===b?u:u+"[]",F(d))}),!1}return!!e5(d)||(m.append(e3(p,u,h),F(d)),!1)}let E=Object.assign(e6,{defaultVisitor:w,convertValue:F,isVisitable:e5});if(!eH.isObject(d))throw TypeError("data must be an object");return!function d(u,f,h=0){if(!eH.isUndefined(u)){if(x(h),-1!==y.indexOf(u))throw Error("Circular reference detected in "+f.join("."));y.push(u),eH.forEach(u,function(u,b){!0===(!(eH.isUndefined(u)||null===u)&&p.call(m,u,eH.isString(b)?b.trim():b,f,E))&&d(u,f?f.concat(b):[b],h+1)}),y.pop()}}(d),m};function e7(d){let m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(d).replace(/[!'()~]|%20/g,function(d){return m[d]})}function e9(d,m){this._pairs=[],d&&e8(d,this,m)}let te=e9.prototype;function tt(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tn(d,m,u){let f;if(!m)return d;d=d||"";let p=eH.isFunction(u)?{serialize:u}:u,h=eH.getSafeProp(p,"encode")||tt,b=eH.getSafeProp(p,"serialize");if(f=b?b(m,p):eH.isURLSearchParams(m)?m.toString():new e9(m,p).toString(h)){let m=d.indexOf("#");-1!==m&&(d=d.slice(0,m)),d+=(-1===d.indexOf("?")?"?":"&")+f}return d}te.append=function(d,m){this._pairs.push([d,m])},te.toString=function(d){let m=d?m=>d.call(this,m,e7):e7;return this._pairs.map(function(d){return m(d[0])+"="+m(d[1])},"").join("&")};let ti=class{constructor(){this.handlers=[]}use(d,m,u){return this.handlers.push({fulfilled:d,rejected:m,synchronous:!!u&&u.synchronous,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){eH.forEach(this.handlers,function(m){null!==m&&d(m)})}},to={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},tr="u">typeof URLSearchParams?URLSearchParams:e9,ta="u">typeof FormData?FormData:null,ts="u">typeof Blob?Blob:null,tl="u">typeof window&&"u">typeof document,tc="object"==typeof navigator&&navigator||void 0,td=tl&&(!tc||0>["ReactNative","NativeScript","NS"].indexOf(tc.product)),tm="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tu=tl&&window.location.href||"http://localhost",tf={...S,isBrowser:!0,classes:{URLSearchParams:tr,FormData:ta,Blob:ts},protocols:["http","https","file","blob","url","data"]};function tp(d){if(d>100)throw new e2("FormData field is too deeply nested ("+d+" levels). Max depth: 100",e2.ERR_FORM_DATA_DEPTH_EXCEEDED)}let th=function(d){if(eH.isFormData(d)&&eH.isFunction(d.entries)){let m={};return eH.forEachEntry(d,(d,u)=>{!function d(m,u,f,p){tp(p);let h=m[p++];if("__proto__"===h)return!0;let b=Number.isFinite(+h),g=p>=m.length;return(h=!h&&eH.isArray(f)?f.length:h,g)?eH.hasOwnProp(f,h)?f[h]=eH.isArray(f[h])?f[h].concat(u):[f[h],u]:f[h]=u:(eH.hasOwnProp(f,h)&&eH.isObject(f[h])||(f[h]=[]),d(m,u,f[h],p)&&eH.isArray(f[h])&&(f[h]=function(d){let m,u,f={},p=Object.keys(d),h=p.length;for(m=0;m<h;m++)f[u=p[m]]=d[u];return f}(f[h]))),!b}(function(d){let m,u=[],f=/\w+|\[(\w*)]/g;for(;null!==(m=f.exec(d));)tp(u.length),u.push("[]"===m[0]?"":m[1]||m[0]);return u}(d),u,m,0)}),m}return null},tb=(d,m)=>null!=d&&eH.hasOwnProp(d,m)?d[m]:void 0,tg={transitional:to,adapter:["xhr","http","fetch"],transformRequest:[function(d,m){let u,f=m.getContentType()||"",p=f.indexOf("application/json")>-1,h=eH.isObject(d);if(h&&eH.isHTMLForm(d)&&(d=new FormData(d)),eH.isFormData(d))return p?JSON.stringify(th(d)):d;if(eH.isArrayBuffer(d)||eH.isBuffer(d)||eH.isStream(d)||eH.isFile(d)||eH.isBlob(d)||eH.isReadableStream(d))return d;if(eH.isArrayBufferView(d))return d.buffer;if(eH.isURLSearchParams(d))return m.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();if(h){let m=tb(this,"formSerializer");if(f.indexOf("application/x-www-form-urlencoded")>-1){var b;return(b=d,e8(b,new tf.classes.URLSearchParams,{visitor:function(d,m,u,f){return tf.isNode&&eH.isBuffer(d)?(this.append(m,d.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...m})).toString()}if((u=eH.isFileList(d))||f.indexOf("multipart/form-data")>-1){let f=tb(this,"env"),p=f&&f.FormData;return e8(u?{"files[]":d}:d,p&&new p,m)}}if(h||p){m.setContentType("application/json",!1);var g=d;if(eH.isString(g))try{return(0,JSON.parse)(g),eH.trim(g)}catch(d){if("SyntaxError"!==d.name)throw d}return(0,JSON.stringify)(g)}return d}],transformResponse:[function(d){let m=tb(this,"transitional")||tg.transitional,u=m&&m.forcedJSONParsing,f=tb(this,"responseType"),p="json"===f;if(eH.isResponse(d)||eH.isReadableStream(d))return d;if(d&&eH.isString(d)&&(u&&!f||p)){let u=m&&m.silentJSONParsing;try{return JSON.parse(d,tb(this,"parseReviver"))}catch(d){if(!u&&p){if("SyntaxError"===d.name)throw e2.from(d,e2.ERR_BAD_RESPONSE,this,null,tb(this,"response"));throw d}}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tf.classes.FormData,Blob:tf.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tv(d,m){let u=this||tg,f=m||u,p=e0.from(f.headers),h=f.data;return eH.forEach(d,function(d){h=d.call(u,h,p.normalize(),m?m.status:void 0)}),p.normalize(),h}function t_(d){return!!(d&&d.__CANCEL__)}eH.forEach(["delete","get","head","post","put","patch","query"],d=>{tg.headers[d]={}});let ty=class extends e2{constructor(d,m,u){super(null==d?"canceled":d,e2.ERR_CANCELED,m,u),this.name="CanceledError",this.__CANCEL__=!0}};function tF(d,m,u){let f=u.config.validateStatus;!u.status||!f||f(u.status)?d(u):m(new e2("Request failed with status code "+u.status,u.status>=400&&u.status<500?e2.ERR_BAD_REQUEST:e2.ERR_BAD_RESPONSE,u.config,u.request,u))}let tx=function(d,m){let u,f=Array(d=d||10),p=Array(d),h=0,b=0;return m=void 0!==m?m:1e3,function(g){let v=Date.now(),_=p[b];u||(u=v),f[h]=g,p[h]=v;let y=b,F=0;for(;y!==h;)F+=f[y++],y%=d;if((h=(h+1)%d)===b&&(b=(b+1)%d),v-u<m)return;let x=_&&v-_;return x?Math.round(1e3*F/x):void 0}},tw=function(d,m){let u,f,p=0,h=1e3/m,b=(m,h=Date.now())=>{p=h,u=null,f&&(clearTimeout(f),f=null),d(...m)};return[(...d)=>{let m=Date.now(),g=m-p;g>=h?b(d,m):(u=d,f||(f=setTimeout(()=>{f=null,b(u)},h-g)))},()=>u&&b(u)]},tE=(d,m,u=3)=>{let f=0,p=tx(50,250);return tw(u=>{if(!u||"number"!=typeof u.loaded)return;let h=u.loaded,b=u.lengthComputable?u.total:void 0,g=null!=b?Math.min(h,b):h,v=Math.max(0,g-f),_=p(v);f=Math.max(f,g),d({loaded:g,total:b,progress:b?g/b:void 0,bytes:v,rate:_||void 0,estimated:_&&b?(b-g)/_:void 0,event:u,lengthComputable:null!=b,[m?"download":"upload"]:!0})},u)},tk=(d,m)=>{let u=null!=d;return[f=>m[0]({lengthComputable:u,total:d,loaded:f}),m[1]]},tA=d=>(...m)=>eH.asap(()=>d(...m)),tC=tf.hasStandardBrowserEnv?(b=new URL(tf.origin),g=tf.navigator&&/(msie|trident)/i.test(tf.navigator.userAgent),d=>(d=new URL(d,tf.origin),b.protocol===d.protocol&&b.host===d.host&&(g||b.port===d.port))):()=>!0,tT=tf.hasStandardBrowserEnv?{write(d,m,u,f,p,h,b){if("u"<typeof document)return;let g=[`${d}=${encodeURIComponent(m)}`];eH.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),eH.isString(f)&&g.push(`path=${f}`),eH.isString(p)&&g.push(`domain=${p}`),!0===h&&g.push("secure"),eH.isString(b)&&g.push(`SameSite=${b}`),document.cookie=g.join("; ")},read(d){if("u"<typeof document)return null;let m=document.cookie.split(";");for(let u=0;u<m.length;u++){let f=m[u].replace(/^\s+/,""),p=f.indexOf("=");if(-1!==p&&f.slice(0,p)===d)try{return decodeURIComponent(f.slice(p+1))}catch(d){return f.slice(p+1)}}return null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},tS=/^https?:(?!\/\/)/i,tI=/[\t\n\r]/g;function tO(d,m){if("string"==typeof d&&tS.test((function(d){let m=0;for(;m<d.length&&32>=d.charCodeAt(m);)m++;return d.slice(m)})(d).replace(tI,"")))throw new e2('Invalid URL: missing "//" after protocol',e2.ERR_INVALID_URL,m)}function tD(d,m,u,f){tO(m,f);let p=!("string"==typeof m&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(m));return d&&(p||!1===u)?(tO(d,f),m?d.replace(/\/?\/$/,"")+"/"+m.replace(/^\/+/,""):d):m}let tR=d=>d instanceof e0?{...d}:d;function tN(d,m){d=d||{},m=m||{};let u=Object.create(null);function f(d,m,u,f){return eH.isPlainObject(d)&&eH.isPlainObject(m)?eH.merge.call({caseless:f},d,m):eH.isPlainObject(m)?eH.merge({},m):eH.isArray(m)?m.slice():m}function p(d,m,u,p){return eH.isUndefined(m)?eH.isUndefined(d)?void 0:f(void 0,d,u,p):f(d,m,u,p)}function h(d,m){if(!eH.isUndefined(m))return f(void 0,m)}function b(d,m){return eH.isUndefined(m)?eH.isUndefined(d)?void 0:f(void 0,d):f(void 0,m)}function g(u,p,h){return eH.hasOwnProp(m,h)?f(u,p):eH.hasOwnProp(d,h)?f(void 0,u):void 0}Object.defineProperty(u,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let v={url:h,method:h,data:h,baseURL:b,transformRequest:b,transformResponse:b,paramsSerializer:b,timeout:b,timeoutMessage:b,withCredentials:b,withXSRFToken:b,adapter:b,responseType:b,xsrfCookieName:b,xsrfHeaderName:b,onUploadProgress:b,onDownloadProgress:b,decompress:b,maxContentLength:b,maxBodyLength:b,beforeRedirect:b,transport:b,httpAgent:b,httpsAgent:b,cancelToken:b,socketPath:b,allowedSocketPaths:b,responseEncoding:b,validateStatus:g,headers:(d,m,u)=>p(tR(d),tR(m),u,!0)};return eH.forEach(Object.keys({...d,...m}),function(f){if("__proto__"===f||"constructor"===f||"prototype"===f)return;let h=eH.hasOwnProp(v,f)?v[f]:p,b=h(eH.hasOwnProp(d,f)?d[f]:void 0,eH.hasOwnProp(m,f)?m[f]:void 0,f);eH.isUndefined(b)&&h!==g||(u[f]=b)}),eH.hasOwnProp(m,"validateStatus")&&eH.isUndefined(m.validateStatus)&&!1===function(u){let f=eH.hasOwnProp(m,"transitional")?m.transitional:void 0;if(!eH.isUndefined(f)){if(!eH.isPlainObject(f))return;else if(eH.hasOwnProp(f,u))return f[u]}let p=eH.hasOwnProp(d,"transitional")?d.transitional:void 0;if(eH.isPlainObject(p)&&eH.hasOwnProp(p,u))return p[u]}("validateStatusUndefinedResolves")&&(eH.hasOwnProp(d,"validateStatus")?u.validateStatus=f(void 0,d.validateStatus):delete u.validateStatus),u}let tB=["content-type","content-length"],tL=function(d){let m=tN({},d),u=d=>eH.hasOwnProp(m,d)?m[d]:void 0,f=u("data"),p=u("withXSRFToken"),h=u("xsrfHeaderName"),b=u("xsrfCookieName"),g=u("headers"),v=u("auth"),_=u("baseURL"),y=u("allowAbsoluteUrls"),F=u("url");if(m.headers=g=e0.from(g),m.url=tn(tD(_,F,y,m),u("params"),u("paramsSerializer")),v){let m=eH.getSafeProp(v,"username")||"",u=eH.getSafeProp(v,"password")||"";try{g.set("Authorization","Basic "+btoa(m+":"+(u?encodeURIComponent(u).replace(/%([0-9A-F]{2})/gi,(d,m)=>String.fromCharCode(parseInt(m,16))):"")))}catch(m){throw e2.from(m,e2.ERR_BAD_OPTION_VALUE,d)}}if(eH.isFormData(f))if(tf.hasStandardBrowserEnv||tf.hasStandardBrowserWebWorkerEnv||eH.isReactNative(f))g.setContentType(void 0);else{var x,w;eH.isFunction(f.getHeaders)&&(x=g,w=f.getHeaders(),"content-only"!==u("formDataHeaderPolicy")?x.set(w):Object.entries(w||{}).forEach(([d,m])=>{tB.includes(d.toLowerCase())&&x.set(d,m)}))}if(tf.hasStandardBrowserEnv&&(eH.isFunction(p)&&(p=p(m)),!0===p||null==p&&tC(m.url))){let d=h&&b&&tT.read(b);d&&g.set(h,d)}return m},tP="u">typeof XMLHttpRequest&&function(d){return new Promise(function(m,u){var f;let p,h,b,g,v,_,y=tL(d),F=y.data,x=e0.from(y.headers).normalize(),{responseType:w,onUploadProgress:E,onDownloadProgress:k}=y;function A(){g&&g(),v&&v(),y.cancelToken&&y.cancelToken.unsubscribe(p),y.signal&&y.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;function T(){if(!C)return;let f=e0.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders());tF(function(d){m(d),A()},function(d){u(d),A()},{data:w&&"text"!==w&&"json"!==w?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:f,config:d,request:C}),C=null}C.open(y.method.toUpperCase(),y.url,!0),C.timeout=y.timeout,"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||4!==C.readyState||(0!==C.status||C.responseURL&&C.responseURL.startsWith("file:"))&&setTimeout(T)},C.onabort=function(){C&&(u(new e2("Request aborted",e2.ECONNABORTED,d,C)),A(),C=null)},C.onerror=function(m){let f=new e2(m&&m.message?m.message:"Network Error",e2.ERR_NETWORK,d,C);f.event=m||null,u(f),A(),C=null},C.ontimeout=function(){let m=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded",f=y.transitional||to;y.timeoutErrorMessage&&(m=y.timeoutErrorMessage),u(new e2(m,f.clarifyTimeoutError?e2.ETIMEDOUT:e2.ECONNABORTED,d,C)),A(),C=null},void 0===F&&x.setContentType(null),"setRequestHeader"in C&&eH.forEach(eX(x),function(d,m){C.setRequestHeader(m,d)}),eH.isUndefined(y.withCredentials)||(C.withCredentials=!!y.withCredentials),w&&"json"!==w&&(C.responseType=y.responseType),k&&([b,v]=tE(k,!0),C.addEventListener("progress",b)),E&&C.upload&&([h,g]=tE(E),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",g)),(y.cancelToken||y.signal)&&(p=m=>{C&&(u(!m||m.type?new ty(null,d,C):m),C.abort(),A(),C=null)},y.cancelToken&&y.cancelToken.subscribe(p),y.signal&&(y.signal.aborted?p():y.signal.addEventListener("abort",p)));let S=(f=y.url,(_=/^([-+\w]{1,25}):(?:\/\/)?/.exec(f))&&_[1]||"");if(S&&!tf.protocols.includes(S)){u(new e2("Unsupported protocol "+S+":",e2.ERR_BAD_REQUEST,d)),A();return}C.send(F||null)})},tM=function*(d,m){let u,f=d.byteLength;if(!m||f<m)return void(yield d);let p=0;for(;p<f;)u=p+m,yield d.slice(p,u),p=u},tz=async function*(d,m){for await(let u of tU(d))yield*tM(u,m)},tU=async function*(d){if(d[Symbol.asyncIterator])return void(yield*d);let m=d.getReader();try{for(;;){let{done:d,value:u}=await m.read();if(d)break;yield u}}finally{await m.cancel()}},tj=(d,m,u,f)=>{let p,h=tz(d,m),b=0,g=d=>{!p&&(p=!0,f&&f(d))};return new ReadableStream({async pull(d){try{let{done:m,value:f}=await h.next();if(m){g(),d.close();return}let p=f.byteLength;if(u){let d=b+=p;u(d)}d.enqueue(new Uint8Array(f))}catch(d){throw g(d),d}},cancel:d=>(g(d),h.return())},{highWaterMark:2})},tV=d=>d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102,t$=(d,m,u)=>m+2<u&&tV(d.charCodeAt(m+1))&&tV(d.charCodeAt(m+2)),{isFunction:tH}=eH,tq=d=>{if(!eH.isString(d))return d;try{return decodeURIComponent(d)}catch(m){return d}},tG=(d,...m)=>{try{return!!d(...m)}catch(d){return!1}},tY=d=>{let m,u=void 0!==eH.global&&null!==eH.global?eH.global:globalThis,{ReadableStream:f,TextEncoder:p}=u,{fetch:h,Request:b,Response:g}=d=eH.merge.call({skipUndefined:!0},{Request:u.Request,Response:u.Response},d),v=h?tH(h):"function"==typeof fetch,_=tH(b),y=tH(g);if(!v)return!1;let F=v&&tH(f),x=v&&("function"==typeof p?(m=new p,d=>m.encode(d)):async d=>new Uint8Array(await new b(d).arrayBuffer())),w=_&&F&&tG(()=>{let d=!1,m=new b(tf.origin,{body:new f,method:"POST",get duplex(){return d=!0,"half"}}),u=m.headers.has("Content-Type");return null!=m.body&&m.body.cancel(),d&&!u}),E=y&&F&&tG(()=>eH.isReadableStream(new g("").body)),k={stream:E&&(d=>d.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{k[d]||(k[d]=(m,u)=>{let f=m&&m[d];if(f)return f.call(m);throw new e2(`Response type '${d}' is not supported`,e2.ERR_NOT_SUPPORT,u)})});let A=async d=>{if(null==d)return 0;if(eH.isBlob(d))return d.size;if(eH.isSpecCompliantForm(d)){let m=new b(tf.origin,{method:"POST",body:d});return(await m.arrayBuffer()).byteLength}return eH.isArrayBufferView(d)||eH.isArrayBuffer(d)?d.byteLength:(eH.isURLSearchParams(d)&&(d+=""),eH.isString(d))?(await x(d)).byteLength:void 0},C=async(d,m)=>{let u=eH.toFiniteNumber(d.getContentLength());return null==u?A(m):u};return async d=>{let m,{url:u,method:f,data:v,signal:y,cancelToken:x,timeout:T,onDownloadProgress:S,onUploadProgress:I,responseType:O,headers:D,withCredentials:R="same-origin",fetchOptions:N,maxContentLength:B,maxBodyLength:L}=tL(d),P=eH.isNumber(B)&&B>-1,M=eH.isNumber(L)&&L>-1,z=h||fetch;O=O?(O+"").toLowerCase():"text";let U=((d,m)=>{if(d=d?d.filter(Boolean):[],!m&&!d.length)return;let u=new AbortController,f=!1,p=function(d){if(!f){f=!0,b();let m=d instanceof Error?d:this.reason;u.abort(m instanceof e2?m:new ty(m instanceof Error?m.message:m))}},h=m&&setTimeout(()=>{h=null,p(new e2(`timeout of ${m}ms exceeded`,e2.ETIMEDOUT))},m),b=()=>{d&&(h&&clearTimeout(h),h=null,d.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),d=null)};d.forEach(d=>d.addEventListener("abort",p,{once:!0}));let{signal:g}=u;return g.unsubscribe=()=>eH.asap(b),g})([y,x&&x.toAbortSignal()],T),j=null,V=U&&U.unsubscribe&&(()=>{U.unsubscribe()}),$=null,H=()=>new e2("Request body larger than maxBodyLength limit",e2.ERR_BAD_REQUEST,d,j);try{var q;let h,y,x,T,G=(y="auth",eH.hasOwnProp(d,y)?d[y]:void 0);if(G){let d=eH.getSafeProp(G,"username")||"",m=eH.getSafeProp(G,"password")||"";h={username:d,password:m}}if(x=(q=u).indexOf("://"),T=q,-1!==x&&(T=T.slice(x+3)),T.includes("@")||T.includes(":")){let d=new URL(u,tf.origin);if(!h&&(d.username||d.password)){let m=tq(d.username),u=tq(d.password);h={username:m,password:u}}(d.username||d.password)&&(d.username="",d.password="",u=d.href)}if(h){let d;D.delete("authorization"),D.set("Authorization","Basic "+btoa((d=(h.username||"")+":"+(h.password||""),encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(d,m)=>String.fromCharCode(parseInt(m,16))))))}if(P&&"string"==typeof u&&u.startsWith("data:")&&function(d){if(!d||"string"!=typeof d||!d.startsWith("data:"))return 0;let m=d.indexOf(",");if(m<0)return 0;let u=d.slice(5,m),f=d.slice(m+1);if(/;base64/i.test(u)){let d=f.length,m=f.length;for(let u=0;u<m;u++)if(37===f.charCodeAt(u)&&u+2<m){let m=f.charCodeAt(u+1),p=f.charCodeAt(u+2);tV(m)&&tV(p)&&(d-=2,u+=2)}let u=0,p=m-1,h=d=>d>=2&&37===f.charCodeAt(d-2)&&51===f.charCodeAt(d-1)&&(68===f.charCodeAt(d)||100===f.charCodeAt(d));p>=0&&(61===f.charCodeAt(p)?(u++,p--):h(p)&&(u++,p-=3)),1===u&&p>=0&&(61===f.charCodeAt(p)?u++:h(p)&&u++);let b=3*Math.floor(d/4)-(u||0);return b>0?b:0}let p=0;for(let d=0,m=f.length;d<m;d++){let u=f.charCodeAt(d);if(37===u&&t$(f,d,m))p+=1,d+=2;else if(u<128)p+=1;else if(u<2048)p+=2;else if(u>=55296&&u<=56319&&d+1<m){let m=f.charCodeAt(d+1);m>=56320&&m<=57343?(p+=4,d++):p+=3}else p+=3}return p}(u)>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j);if(M&&"get"!==f&&"head"!==f){let d=await A(v);if("number"==typeof d&&isFinite(d)&&(m=d,d>L))throw H()}let Y=M&&(eH.isReadableStream(v)||eH.isStream(v)),W=(d,m,u)=>tj(d,65536,d=>{if(M&&d>L)throw $=H();m&&m(d)},u);if(w&&"get"!==f&&"head"!==f&&(I||Y)){if(m=null==m?await C(D,v):m,0!==m||Y){let d,f=new b(u,{method:"POST",body:v,duplex:"half"});if(eH.isFormData(v)&&(d=f.headers.get("content-type"))&&D.setContentType(d),f.body){let[d,u]=I&&tk(m,tE(tA(I)))||[];v=W(f.body,d,u)}}}else if(Y&&!_&&F&&"get"!==f&&"head"!==f)v=W(v);else if(Y&&_&&!w&&"get"!==f&&"head"!==f)throw new e2("Stream request bodies are not supported by the current fetch implementation",e2.ERR_NOT_SUPPORT,d,j);eH.isString(R)||(R=R?"include":"omit");let X=_&&"credentials"in b.prototype;if(eH.isFormData(v)){let d=D.getContentType();d&&/^multipart\/form-data/i.test(d)&&!/boundary=/i.test(d)&&D.delete("content-type")}D.set("User-Agent","axios/1.18.1",!1);let K={...N,signal:U,method:f.toUpperCase(),headers:eX(D.normalize()),body:v,duplex:"half",credentials:X?R:void 0};j=_&&new b(u,K);let J=await (_?z(j,N):z(u,K)),Z=e0.from(J.headers);if(P){let m=eH.toFiniteNumber(Z.getContentLength());if(null!=m&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j)}let Q=E&&("stream"===O||"response"===O);if(E&&J.body&&(S||P||Q&&V)){let m={};["status","statusText","headers"].forEach(d=>{m[d]=J[d]});let u=eH.toFiniteNumber(Z.getContentLength()),[f,p]=S&&tk(u,tE(tA(S),!0))||[],h=0;J=new g(tj(J.body,65536,m=>{if(P&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j);f&&f(m)},()=>{p&&p(),V&&V()}),m)}O=O||"text";let ee=await k[eH.findKey(k,O)||"text"](J,d);if(P&&!E&&!Q){let m;if(null!=ee&&("number"==typeof ee.byteLength?m=ee.byteLength:"number"==typeof ee.size?m=ee.size:"string"==typeof ee&&(m="function"==typeof p?new p().encode(ee).byteLength:ee.length)),"number"==typeof m&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j)}return!Q&&V&&V(),await new Promise((m,u)=>{tF(m,u,{data:ee,headers:e0.from(J.headers),status:J.status,statusText:J.statusText,config:d,request:j})})}catch(m){if(V&&V(),U&&U.aborted&&U.reason instanceof e2){let u=U.reason;throw u.config=d,j&&(u.request=j),m!==u&&Object.defineProperty(u,"cause",{__proto__:null,value:m,writable:!0,enumerable:!1,configurable:!0}),u}if($)throw j&&!$.request&&($.request=j),$;if(m instanceof e2)throw j&&!m.request&&(m.request=j),m;if(m&&"TypeError"===m.name&&/Load failed|fetch/i.test(m.message)){let u=new e2("Network Error",e2.ERR_NETWORK,d,j,m&&m.response);throw Object.defineProperty(u,"cause",{__proto__:null,value:m.cause||m,writable:!0,enumerable:!1,configurable:!0}),u}throw e2.from(m,m&&m.code,d,j,m&&m.response)}}},tW=new Map,tX=d=>{let m=d&&d.env||{},{fetch:u,Request:f,Response:p}=m,h=[f,p,u],b=h.length,g,v,_=tW;for(;b--;)g=h[b],void 0===(v=_.get(g))&&_.set(g,v=b?new Map:tY(m)),_=v;return v};tX();let tK={http:null,xhr:tP,fetch:{get:tX}};eH.forEach(tK,(d,m)=>{if(d){try{Object.defineProperty(d,"name",{__proto__:null,value:m})}catch(d){}Object.defineProperty(d,"adapterName",{__proto__:null,value:m})}});let tJ=d=>`- ${d}`,tZ=d=>eH.isFunction(d)||null===d||!1===d,tQ=function(d,m){let u,f,{length:p}=d=eH.isArray(d)?d:[d],h={};for(let b=0;b<p;b++){let p;if(f=u=d[b],!tZ(u)&&void 0===(f=tK[(p=String(u)).toLowerCase()]))throw new e2(`Unknown adapter '${p}'`);if(f&&(eH.isFunction(f)||(f=f.get(m))))break;h[p||"#"+b]=f}if(!f){let d=Object.entries(h).map(([d,m])=>`adapter ${d} `+(!1===m?"is not supported by the environment":"is not available in the build"));throw new e2("There is no suitable adapter to dispatch the request "+(p?d.length>1?"since :\n"+d.map(tJ).join("\n"):" "+tJ(d[0]):"as no adapter specified"),e2.ERR_NOT_SUPPORT)}return f};function t0(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new ty(null,d)}function t1(d){return t0(d),d.headers=e0.from(d.headers),d.data=tv.call(d,d.transformRequest),-1!==["post","put","patch"].indexOf(d.method)&&d.headers.setContentType("application/x-www-form-urlencoded",!1),tQ(d.adapter||tg.adapter,d)(d).then(function(m){t0(d),d.response=m;try{m.data=tv.call(d,d.transformResponse,m)}finally{delete d.response}return m.headers=e0.from(m.headers),m},function(m){if(!t_(m)&&(t0(d),m&&m.response)){d.response=m.response;try{m.response.data=tv.call(d,d.transformResponse,m.response)}finally{delete d.response}m.response.headers=e0.from(m.response.headers)}return Promise.reject(m)})}let t2={};["object","boolean","number","function","string","symbol"].forEach((d,m)=>{t2[d]=function(u){return typeof u===d||"a"+(m<1?"n ":" ")+d}});let t5={};t2.transitional=function(d,m,u){function f(d,m){return"[Axios v1.18.1] Transitional option '"+d+"'"+m+(u?". "+u:"")}return(u,p,h)=>{if(!1===d)throw new e2(f(p," has been removed"+(m?" in "+m:"")),e2.ERR_DEPRECATED);return m&&!t5[p]&&(t5[p]=!0,console.warn(f(p," has been deprecated since v"+m+" and will be removed in the near future"))),!d||d(u,p,h)}},t2.spelling=function(d){return(m,u)=>(console.warn(`${u} is likely a misspelling of ${d}`),!0)};let t4=function(d,m,u){if("object"!=typeof d||null===d)throw new e2("options must be an object",e2.ERR_BAD_OPTION_VALUE);let f=Object.keys(d),p=f.length;for(;p-- >0;){let h=f[p],b=Object.prototype.hasOwnProperty.call(m,h)?m[h]:void 0;if(b){let m=d[h],u=void 0===m||b(m,h,d);if(!0!==u)throw new e2("option "+h+" must be "+u,e2.ERR_BAD_OPTION_VALUE);continue}if(!0!==u)throw new e2("Unknown option "+h,e2.ERR_BAD_OPTION)}};class t3{constructor(d){this.defaults=d||{},this.interceptors={request:new ti,response:new ti}}async request(d,m){try{return await this._request(d,m)}catch(d){if(d instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=Error();let u=(()=>{if(!m.stack)return"";let d=m.stack.indexOf("\n");return -1===d?"":m.stack.slice(d+1)})();try{if(d.stack){if(u){let m=u.indexOf("\n"),f=-1===m?-1:u.indexOf("\n",m+1),p=-1===f?"":u.slice(f+1);String(d.stack).endsWith(p)||(d.stack+="\n"+u)}}else d.stack=u}catch(d){}}throw d}}_request(d,m){let u,f;"string"==typeof d?(m=m||{}).url=d:m=d||{};let{transitional:p,paramsSerializer:h,headers:b}=m=tN(this.defaults,m);void 0!==p&&t4(p,{silentJSONParsing:t2.transitional(t2.boolean),forcedJSONParsing:t2.transitional(t2.boolean),clarifyTimeoutError:t2.transitional(t2.boolean),legacyInterceptorReqResOrdering:t2.transitional(t2.boolean),advertiseZstdAcceptEncoding:t2.transitional(t2.boolean),validateStatusUndefinedResolves:t2.transitional(t2.boolean)},!1),null!=h&&(eH.isFunction(h)?m.paramsSerializer={serialize:h}:t4(h,{encode:t2.function,serialize:t2.function},!0)),void 0!==m.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?m.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:m.allowAbsoluteUrls=!0),t4(m,{baseUrl:t2.spelling("baseURL"),withXsrfToken:t2.spelling("withXSRFToken")},!0),m.method=(m.method||this.defaults.method||"get").toLowerCase();let g=b&&eH.merge(b.common,b[m.method]);b&&eH.forEach(["delete","get","head","post","put","patch","query","common"],d=>{delete b[d]}),m.headers=e0.concat(g,b);let v=[],_=!0;this.interceptors.request.forEach(function(d){if("function"==typeof d.runWhen&&!1===d.runWhen(m))return;_=_&&d.synchronous;let u=m.transitional||to;u&&u.legacyInterceptorReqResOrdering?v.unshift(d.fulfilled,d.rejected):v.push(d.fulfilled,d.rejected)});let y=[];this.interceptors.response.forEach(function(d){y.push(d.fulfilled,d.rejected)});let F=0;if(!_){let d=[t1.bind(this),void 0];for(d.unshift(...v),d.push(...y),f=d.length,u=Promise.resolve(m);F<f;)u=u.then(d[F++],d[F++]);return u}f=v.length;let x=m;for(;F<f;){let d=v[F++],m=v[F++];try{x=d(x)}catch(d){m.call(this,d);break}}try{u=t1.call(this,x)}catch(d){return Promise.reject(d)}for(F=0,f=y.length;F<f;)u=u.then(y[F++],y[F++]);return u}getUri(d){return tn(tD((d=tN(this.defaults,d)).baseURL,d.url,d.allowAbsoluteUrls,d),d.params,d.paramsSerializer)}}eH.forEach(["delete","get","head","options"],function(d){t3.prototype[d]=function(m,u){return this.request(tN(u||{},{method:d,url:m,data:u&&eH.hasOwnProp(u,"data")?u.data:void 0}))}}),eH.forEach(["post","put","patch","query"],function(d){function m(m){return function(u,f,p){return this.request(tN(p||{},{method:d,headers:m?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}t3.prototype[d]=m(),"query"!==d&&(t3.prototype[d+"Form"]=m(!0))});let t6=class d{constructor(d){let m;if("function"!=typeof d)throw TypeError("executor must be a function.");this.promise=new Promise(function(d){m=d});const u=this;this.promise.then(d=>{if(!u._listeners)return;let m=u._listeners.length;for(;m-- >0;)u._listeners[m](d);u._listeners=null}),this.promise.then=d=>{let m,f=new Promise(d=>{u.subscribe(d),m=d}).then(d);return f.cancel=function(){u.unsubscribe(m)},f},d(function(d,f,p){u.reason||(u.reason=new ty(d,f,p),m(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(d){this.reason?d(this.reason):this._listeners?this._listeners.push(d):this._listeners=[d]}unsubscribe(d){if(!this._listeners)return;let m=this._listeners.indexOf(d);-1!==m&&this._listeners.splice(m,1)}toAbortSignal(){let d=new AbortController,m=m=>{d.abort(m)};return this.subscribe(m),d.signal.unsubscribe=()=>this.unsubscribe(m),d.signal}static source(){let m;return{token:new d(function(d){m=d}),cancel:m}}},t8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(t8).forEach(([d,m])=>{t8[m]=d});let t7=function d(m){let u=new t3(m),f=et(t3.prototype.request,u);return eH.extend(f,t3.prototype,u,{allOwnKeys:!0}),eH.extend(f,u,null,{allOwnKeys:!0}),f.create=function(u){return d(tN(m,u))},f}(tg);t7.Axios=t3,t7.CanceledError=ty,t7.CancelToken=t6,t7.isCancel=t_,t7.VERSION="1.18.1",t7.toFormData=e8,t7.AxiosError=e2,t7.Cancel=t7.CanceledError,t7.all=function(d){return Promise.all(d)},t7.spread=function(d){return function(m){return d.apply(null,m)}},t7.isAxiosError=function(d){return eH.isObject(d)&&!0===d.isAxiosError},t7.mergeConfig=tN,t7.AxiosHeaders=e0,t7.formToJSON=d=>th(eH.isHTMLForm(d)?new FormData(d):d),t7.getAdapter=tQ,t7.HttpStatusCode=t8,t7.default=t7;class t9{constructor(d){this.httpClient=d}getPredictedDatapoints(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`asset/predicted/${d}/${m}`,data:u,options:f})}writePredictedDatapoints(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`asset/predicted/${d}/${m}`,data:u,options:f})}}class ne{constructor(d){this.httpClient=d}getSettings(d){return this.httpClient.request({method:"GET",url:nF`map`,options:d})}saveSettings(d,m){return this.httpClient.request({method:"PUT",url:nF`map`,data:d,options:m})}deleteMap(d){return this.httpClient.request({method:"DELETE",url:nF`map/deleteMap`,options:d})}getCustomMapInfo(d){return this.httpClient.request({method:"GET",url:nF`map/getCustomMapInfo`,options:d})}getTile(d,m,u,f){return this.httpClient.request({method:"GET",url:nF`map/tile/${d}/${m}/${u}`,options:f})}uploadMap(d,m){return this.httpClient.request({method:"POST",url:nF`map/upload`,queryParams:d,options:m})}}class nt{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`realm`,data:d,options:m})}getAll(d){return this.httpClient.request({method:"GET",url:nF`realm`,options:d})}getAccessible(d){return this.httpClient.request({method:"GET",url:nF`realm/accessible`,options:d})}delete(d,m){return this.httpClient.request({method:"DELETE",url:nF`realm/${d}`,options:m})}get(d,m){return this.httpClient.request({method:"GET",url:nF`realm/${d}`,options:m})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`realm/${d}`,data:m,options:u})}}class nn{constructor(d){this.httpClient=d}getAllNodeDefinitions(d){return this.httpClient.request({method:"GET",url:nF`flow`,options:d})}getNodeDefinition(d,m){return this.httpClient.request({method:"GET",url:nF`flow/${d}`,options:m})}getAllNodeDefinitionsByType(d,m){return this.httpClient.request({method:"GET",url:nF`flow/${d}`,options:m})}}class ni{constructor(d){this.httpClient=d}createGlobalRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules`,data:d,options:m})}getGlobalRulesets(d,m){return this.httpClient.request({method:"GET",url:nF`rules`,queryParams:d,options:m})}createAssetRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules/asset`,data:d,options:m})}getAssetRulesets(d,m,u){return this.httpClient.request({method:"GET",url:nF`rules/asset/for/${d}`,queryParams:m,options:u})}deleteAssetRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/asset/${d}`,options:m})}getAssetRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/asset/${d}`,options:m})}updateAssetRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/asset/${d}`,data:m,options:u})}getAssetGeofences(d,m){return this.httpClient.request({method:"GET",url:nF`rules/geofences/${d}`,options:m})}getAssetEngineInfo(d,m){return this.httpClient.request({method:"GET",url:nF`rules/info/asset/${d}`,options:m})}getGlobalEngineInfo(d){return this.httpClient.request({method:"GET",url:nF`rules/info/global`,options:d})}getRealmEngineInfo(d,m){return this.httpClient.request({method:"GET",url:nF`rules/info/realm/${d}`,options:m})}createRealmRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules/realm`,data:d,options:m})}getRealmRulesets(d,m,u){return this.httpClient.request({method:"GET",url:nF`rules/realm/for/${d}`,queryParams:m,options:u})}deleteRealmRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/realm/${d}`,options:m})}getRealmRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/realm/${d}`,options:m})}updateRealmRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/realm/${d}`,data:m,options:u})}deleteGlobalRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/${d}`,options:m})}getGlobalRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/${d}`,options:m})}updateGlobalRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/${d}`,data:m,options:u})}}class no{constructor(d){this.httpClient=d}getApps(d){return this.httpClient.request({method:"GET",url:nF`apps`,options:d})}getConsoleConfig(d){return this.httpClient.request({method:"GET",url:nF`apps/consoleConfig`,options:d})}getAppInfos(d){return this.httpClient.request({method:"GET",url:nF`apps/info`,options:d})}}class nr{constructor(d){this.httpClient=d}register(d,m){return this.httpClient.request({method:"POST",url:nF`console/register`,data:d,options:m})}}class na{constructor(d){this.httpClient=d}getServices(d,m){return this.httpClient.request({method:"GET",url:nF`service`,queryParams:d,options:m})}registerService(d,m){return this.httpClient.request({method:"POST",url:nF`service`,data:d,options:m})}getGlobalServices(d){return this.httpClient.request({method:"GET",url:nF`service/global`,options:d})}registerGlobalService(d,m){return this.httpClient.request({method:"POST",url:nF`service/global`,data:d,options:m})}deregisterService(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`service/${d}/${m}`,options:u})}getService(d,m,u){return this.httpClient.request({method:"GET",url:nF`service/${d}/${m}`,options:u})}heartbeat(d,m,u){return this.httpClient.request({method:"PUT",url:nF`service/${d}/${m}`,options:u})}}class ns{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`dashboard`,data:d,options:m})}update(d,m){return this.httpClient.request({method:"PUT",url:nF`dashboard`,data:d,options:m})}getAllRealmDashboards(d,m){return this.httpClient.request({method:"GET",url:nF`dashboard/all/${d}`,options:m})}query(d,m){return this.httpClient.request({method:"POST",url:nF`dashboard/query`,data:d,options:m})}delete(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`dashboard/${d}/${m}`,options:u})}get(d,m,u){return this.httpClient.request({method:"GET",url:nF`dashboard/${d}/${m}`,options:u})}}class nl{constructor(d){this.httpClient=d}updateCurrentUserLocale(d,m){return this.httpClient.request({method:"PUT",url:nF`user/locale`,data:d,options:m})}query(d,m){return this.httpClient.request({method:"POST",url:nF`user/query`,data:d,options:m})}requestPasswordResetCurrent(d){return this.httpClient.request({method:"PUT",url:nF`user/request-password-reset`,options:d})}updatePasswordCurrent(d,m){return this.httpClient.request({method:"PUT",url:nF`user/reset-password`,data:d,options:m})}updateCurrent(d,m){return this.httpClient.request({method:"PUT",url:nF`user/update`,data:d,options:m})}getCurrent(d){return this.httpClient.request({method:"GET",url:nF`user/user`,options:d})}getCurrentUserRealmRoles(d){return this.httpClient.request({method:"GET",url:nF`user/userRealmRoles`,options:d})}getCurrentUserClientRoles(d,m){return this.httpClient.request({method:"GET",url:nF`user/userRoles/${d}`,options:m})}disconnectUserSession(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/disconnect/${m}`,options:u})}requestPasswordReset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/request-password-reset/${m}`,options:u})}updatePassword(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/reset-password/${m}`,data:u,options:f})}resetSecret(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/reset-secret/${m}`,options:u})}updateRoles(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/roles`,data:m,options:u})}getUserRealmRoles(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/userRealmRoles/${m}`,options:u})}updateUserRealmRoles(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/userRealmRoles/${m}`,data:u,options:f})}getUserClientRoles(d,m,u,f){return this.httpClient.request({method:"GET",url:nF`user/${d}/userRoles/${m}/${u}`,options:f})}updateUserClientRoles(d,m,u,f,p){return this.httpClient.request({method:"PUT",url:nF`user/${d}/userRoles/${m}/${u}`,data:f,options:p})}getUserSessions(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/userSessions/${m}`,options:u})}create(d,m,u){return this.httpClient.request({method:"POST",url:nF`user/${d}/users`,data:m,options:u})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/users`,data:m,options:u})}delete(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`user/${d}/users/${m}`,options:u})}getClientRoles(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/${m}/roles`,options:u})}updateClientRoles(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/${m}/roles`,data:u,options:f})}get(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/${m}`,options:u})}}class nc{constructor(d){this.httpClient=d}getHealthStatus(d){return this.httpClient.request({method:"GET",url:nF`health`,options:d})}getInfo(d){return this.httpClient.request({method:"GET",url:nF`info`,options:d})}}class nd{constructor(d){this.httpClient=d}deleteConnections(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/connection`,queryParams:d,options:m})}getConnections(d){return this.httpClient.request({method:"GET",url:nF`gateway/connection`,options:d})}deleteConnection(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/connection/${d}`,options:m})}getConnection(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/connection/${d}`,options:m})}setConnection(d,m,u){return this.httpClient.request({method:"PUT",url:nF`gateway/connection/${d}`,data:m,options:u})}getConnectionStatus(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/status/${d}`,options:m})}}class nm{constructor(d){this.httpClient=d}getNotifications(d,m){return this.httpClient.request({method:"GET",url:nF`notification`,queryParams:d,options:m})}removeNotifications(d,m){return this.httpClient.request({method:"DELETE",url:nF`notification`,queryParams:d,options:m})}sendNotification(d,m){return this.httpClient.request({method:"POST",url:nF`notification/alert`,data:d,options:m})}getNotificationsCount(d,m){return this.httpClient.request({method:"GET",url:nF`notification/count`,queryParams:d,options:m})}removeNotification(d,m){return this.httpClient.request({method:"DELETE",url:nF`notification/${d}`,options:m})}notificationAcknowledged(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`notification/${d}/acknowledged`,queryParams:u,data:m,options:f})}notificationDelivered(d,m,u){return this.httpClient.request({method:"PUT",url:nF`notification/${d}/delivered`,queryParams:m,options:u})}}class nu{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`asset`,data:d,options:m})}delete(d,m){return this.httpClient.request({method:"DELETE",url:nF`asset`,queryParams:d,options:m})}writeAttributeValues(d,m){return this.httpClient.request({method:"PUT",url:nF`asset/attributes`,data:d,options:m})}writeAttributeEvents(d,m){return this.httpClient.request({method:"PUT",url:nF`asset/attributes/timestamp`,data:d,options:m})}queryCount(d,m){return this.httpClient.request({method:"POST",url:nF`asset/count`,data:d,options:m})}updateNoneParent(d,m){return this.httpClient.request({method:"DELETE",url:nF`asset/parent`,queryParams:d,options:m})}getPartial(d,m){return this.httpClient.request({method:"GET",url:nF`asset/partial/${d}`,options:m})}queryAssets(d,m){return this.httpClient.request({method:"POST",url:nF`asset/query`,data:d,options:m})}queryAssetTree(d,m){return this.httpClient.request({method:"POST",url:nF`asset/tree`,data:d,options:m})}getCurrentUserAssets(d){return this.httpClient.request({method:"GET",url:nF`asset/user/current`,options:d})}createUserAssetLinks(d,m){return this.httpClient.request({method:"POST",url:nF`asset/user/link`,data:d,options:m})}getUserAssetLinks(d,m){return this.httpClient.request({method:"GET",url:nF`asset/user/link`,queryParams:d,options:m})}deleteUserAssetLinks(d,m){return this.httpClient.request({method:"POST",url:nF`asset/user/link/delete`,data:d,options:m})}deleteAllUserAssetLinks(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`asset/user/link/${d}/${m}`,options:u})}deleteUserAssetLink(d,m,u,f){return this.httpClient.request({method:"DELETE",url:nF`asset/user/link/${d}/${m}/${u}`,options:f})}get(d,m){return this.httpClient.request({method:"GET",url:nF`asset/${d}`,options:m})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`asset/${d}`,data:m,options:u})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/attribute/${m}`,data:u,options:f})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(d,m,u,f,p){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/attribute/${m}/${u}`,data:f,options:p})}updateParent(d,m,u){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/child`,queryParams:m,options:u})}}class nf{constructor(d){this.httpClient=d}getDatapointExport(d,m){return this.httpClient.request({method:"GET",url:nF`asset/datapoint/export`,queryParams:d,options:m})}getDatapointPeriod(d,m){return this.httpClient.request({method:"GET",url:nF`asset/datapoint/periods`,queryParams:d,options:m})}getDatapoints(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`asset/datapoint/${d}/${m}`,data:u,options:f})}}class np{constructor(d){this.httpClient=d}startTunnel(d,m){return this.httpClient.request({method:"POST",url:nF`gateway/tunnel`,data:d,options:m})}stopTunnel(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/tunnel`,data:d,options:m})}getAllActiveTunnelInfos(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}`,options:m})}getGatewayActiveTunnelInfos(d,m,u){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}/${m}`,options:u})}getActiveTunnelInfo(d,m,u,f,p){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}/${m}/${u}/${f}`,options:p})}}class nh{constructor(d){this.httpClient=d}getAssetDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/assetDescriptors`,queryParams:d,options:m})}getAssetInfo(d,m,u){return this.httpClient.request({method:"GET",url:nF`model/assetInfo/${d}`,queryParams:m,options:u})}getAssetInfos(d,m){return this.httpClient.request({method:"GET",url:nF`model/assetInfos`,queryParams:d,options:m})}getValueDescriptorSchema(d,m){return this.httpClient.request({method:"GET",url:nF`model/getValueDescriptorSchema`,queryParams:d,options:m})}getMetaItemDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/metaItemDescriptors`,queryParams:d,options:m})}getValueDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/valueDescriptors`,queryParams:d,options:m})}}class nb{constructor(d){this.httpClient=d}getConfig(d){return this.httpClient.request({method:"GET",url:nF`syslog/config`,options:d})}updateConfig(d,m){return this.httpClient.request({method:"PUT",url:nF`syslog/config`,data:d,options:m})}clearEvents(d){return this.httpClient.request({method:"DELETE",url:nF`syslog/event`,options:d})}getEvents(d,m){return this.httpClient.request({method:"GET",url:nF`syslog/event`,queryParams:d,options:m})}}class ng{constructor(d){this.httpClient=d}createProvisioningConfig(d,m){return this.httpClient.request({method:"POST",url:nF`provisioning`,data:d,options:m})}getProvisioningConfigs(d){return this.httpClient.request({method:"GET",url:nF`provisioning`,options:d})}deleteProvisioningConfig(d,m){return this.httpClient.request({method:"DELETE",url:nF`provisioning/${d}`,options:m})}updateProvisioningConfig(d,m,u){return this.httpClient.request({method:"PUT",url:nF`provisioning/${d}`,data:m,options:u})}}class nv{constructor(d){this.httpClient=d}createAlarm(d,m,u){return this.httpClient.request({method:"POST",url:nF`alarm`,queryParams:m,data:d,options:u})}getAlarms(d,m){return this.httpClient.request({method:"GET",url:nF`alarm`,queryParams:d,options:m})}removeAlarms(d,m){return this.httpClient.request({method:"DELETE",url:nF`alarm`,data:d,options:m})}setAssetLinks(d,m){return this.httpClient.request({method:"PUT",url:nF`alarm/assets`,data:d,options:m})}getAlarm(d,m){return this.httpClient.request({method:"GET",url:nF`alarm/${d}`,options:m})}removeAlarm(d,m){return this.httpClient.request({method:"DELETE",url:nF`alarm/${d}`,options:m})}updateAlarm(d,m,u){return this.httpClient.request({method:"PUT",url:nF`alarm/${d}`,data:m,options:u})}getAssetLinks(d,m,u){return this.httpClient.request({method:"GET",url:nF`alarm/${d}/assets`,queryParams:m,options:u})}}class n_{constructor(d){this.httpClient=d}doProtocolAssetDiscovery(d,m,u){return this.httpClient.request({method:"GET",url:nF`agent/assetDiscovery/${d}`,queryParams:m,options:u})}doProtocolAssetImport(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`agent/assetImport/${d}`,queryParams:u,data:m,options:f})}doProtocolInstanceDiscovery(d,m,u){return this.httpClient.request({method:"GET",url:nF`agent/instanceDiscovery/${d}`,queryParams:m,options:u})}}class ny{constructor(d){this.httpClient=d}getManagerConfig(d){return this.httpClient.request({method:"GET",url:nF`configuration/manager`,options:d})}update(d,m){return this.httpClient.request({method:"PUT",url:nF`configuration/manager`,data:d,options:m})}fileUpload(d,m,u){return this.httpClient.request({method:"POST",url:nF`configuration/manager/file`,queryParams:m,data:d,options:u})}getManagerConfigImage(d,m){return this.httpClient.request({method:"GET",url:nF`configuration/manager/image/${d}`,options:m})}}function nF(d,...m){let u="";for(let f=0;f<m.length;f++)u+=d[f],u+=encodeURIComponent(m[f]);return u+d[d.length-1]}class nx{constructor(d,m=t7.create()){this._assetPredictedDatapointResource=new nE(d,m),this._mapResource=new nk(d,m),this._realmResource=new nA(d,m),this._flowResource=new nC(d,m),this._rulesResource=new nT(d,m),this._appResource=new nS(d,m),this._consoleResource=new nI(d,m),this._externalServiceResource=new nO(d,m),this._dashboardResource=new nD(d,m),this._userResource=new nR(d,m),this._statusResource=new nN(d,m),this._gatewayClientResource=new nB(d,m),this._notificationResource=new nL(d,m),this._assetResource=new nP(d,m),this._assetDatapointResource=new nM(d,m),this._gatewayServiceResource=new nz(d,m),this._assetModelResource=new nU(d,m),this._syslogResource=new nj(d,m),this._provisioningResource=new nV(d,m),this._alarmResource=new n$(d,m),this._agentResource=new nH(d,m),this._configurationResource=new nq(d,m),this._assetResource=new nP(d,m)}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get MapResource(){return this._mapResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get AppResource(){return this._appResource}get ConsoleResource(){return this._consoleResource}get ExternalServiceResource(){return this._externalServiceResource}get DashboardResource(){return this._dashboardResource}get UserResource(){return this._userResource}get StatusResource(){return this._statusResource}get GatewayClientResource(){return this._gatewayClientResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get AssetDatapointResource(){return this._assetDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get SyslogResource(){return this._syslogResource}get ProvisioningResource(){return this._provisioningResource}get AlarmResource(){return this._alarmResource}get AgentResource(){return this._agentResource}get ConfigurationResource(){return this._configurationResource}}class nw{constructor(d){this.axios=d}request(d){let m={};m.method=d.method,m.url=d.url,m.params=d.queryParams,m.data=d.data,function(d,m){if(void 0!=m)for(let u in m)m.hasOwnProperty(u)&&(d[u]=m[u])}(m,d.options);let u=d.copyFn;return this.axios.request(m).then(d=>(u&&d.data&&(d.originalData=d.data,d.data=u(d.data)),d))}}class nE extends t9{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nk extends ne{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nA extends nt{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nC extends nn{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nT extends ni{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nS extends no{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nI extends nr{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nO extends na{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nD extends ns{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nR extends nl{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nN extends nc{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nB extends nd{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nL extends nm{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nP extends nu{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nM extends nf{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nz extends np{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nU extends nh{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nj extends nb{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nV extends ng{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class n$ extends nv{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nH extends n_{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nq extends ny{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}var nG=u(8183),nY=u.n(nG);t7.isAxiosError;let nW=new class{get api(){return this._client}constructor(){this._axiosInstance=t7.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(d=>(d.paramsSerializer=d=>nY().stringify(d,{arrayFormat:"repeat"}),d))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(d){this._axiosInstance.defaults.timeout=d}addRequestInterceptor(d){this._axiosInstance.interceptors.request.use(d)}initialise(d){this._baseUrl=d,this._client=new nx(d,this._axiosInstance)}};var nX=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};(x=k||(k={})).DISCONNECTED="DISCONNECTED",x.CONNECTED="CONNECTED",x.CONNECTING="CONNECTING";let nK="SUBSCRIBED:",nJ="UNAUTHORIZED:",nZ="TRIGGERED:",nQ="EVENT:";class n0{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=n1.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=k.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(d){this._statusCallbacks.push(d)}unsubscribeStatusChange(d){L(this._statusCallbacks,d)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===k.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(k.CONNECTING),this._connectingDeferred=new N,this._doConnect().then(d=>{if(this._connectingDeferred){let m=this._connectingDeferred;d?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=n1.MIN_RECONNECT_DELAY,this._onStatusChanged(k.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),m.resolve(d)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==k.DISCONNECTED&&this._doDisconnect())}subscribe(d,m){let u={eventSubscription:d,callback:m,deferred:new N};return null!=this._pendingSubscription||this._status!==k.CONNECTED?(this._queuedSubscriptions.push(u),u.deferred.promise):(this._pendingSubscription=u,this._doSubscribe(d).then(d=>{if(this._pendingSubscription){let m=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(d,m),this._processNextSubscription();let u=m.deferred;m.deferred=null,u&&u.resolve(d)}},d=>{if(console.error(d),this._pendingSubscription){let m=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let u=m.deferred;m.deferred=null,u&&u.reject(d)}}),this._pendingSubscription.deferred.promise)}unsubscribe(d){return nX(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(d))return void this._doUnsubscribe(d);if(this._assetEventCallbackMap.delete(d)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let d=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(d)}return}if(this._attributeEventCallbackMap.delete(d)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let d=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(d)}})}sendEvent(d){this._status===k.CONNECTED&&this._doSend(d)}sendEventWithReply(d){return this._status!==k.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(d)}subscribeAssetEvents(d,m,u){return nX(this,void 0,void 0,function*(){let f=d&&"string"!=typeof d[0]?d.map(d=>d.id):d,p="AssetEvent"+n0._subscriptionCounter++;if(!this._assetEventPromise){let d;iT.authenticated||(d={filterType:"asset",realm:iT.displayRealm});let m={eventType:"asset",filter:d};this._assetEventPromise=this.subscribe(m,d=>{this._assetEventCallbackMap.forEach(m=>m(d))})}return this._assetEventCallbackMap.set(p,d=>{let m=d.asset.id;f?f.find(d=>m===d)&&u(d):d.asset.realm===iT.displayRealm&&u(d)}),this._assetEventPromise.then(()=>{try{if(f&&m){let d={messageID:"read-assets:"+f.join(",")+":"+p,eventType:"read-assets",assetQuery:{ids:f}};this.sendEventWithReply(d).then(d=>{d.assets&&this._assetEventCallbackMap.has(p)&&d.assets.forEach(d=>{u({eventType:"asset",asset:d,cause:"READ"})})})}}catch(m){throw console.error("Failed to subscribe to asset events for assets: "+d),p&&this.unsubscribe(p),m}return p})})}subscribeAttributeEvents(d,m,u){return nX(this,void 0,void 0,function*(){let f=d&&"string"!=typeof d[0],p=f?d.map(d=>d.id):d,h=f?d:void 0,b="AttributeEvent"+n0._subscriptionCounter++;if(!this._attributeEventPromise){let d;iT.authenticated||(d={filterType:"asset",realm:iT.displayRealm});let m={eventType:"attribute",filter:d};this._attributeEventPromise=this.subscribe(m,d=>{this._attributeEventCallbackMap.forEach(m=>m(d))})}let g=m=>{let h=m.ref;f?d.forEach(d=>{h.id===d.id&&h.name===d.name&&u(m)}):p?p.find(d=>h.id===d)&&u(m):m.realm===iT.displayRealm&&u(m)};return this._attributeEventCallbackMap.set(b,g),this._attributeEventPromise.then(()=>{try{if(m&&p){let d={messageID:"read-assets:"+p.join(",")+":"+b,eventType:"read-assets",assetQuery:{ids:p}};this.sendEventWithReply(d).then(d=>{d.assets&&this._attributeEventCallbackMap.has(b)&&d.assets.forEach(d=>{d.attributes&&Object.entries(d.attributes).forEach(([m,u])=>{(!h||h.find(u=>u.id===d.id&&u.name===m))&&g({eventType:"attribute",timestamp:u.timestamp,value:u.value,ref:{id:d.id,name:m}})})})})}}catch(m){throw console.error("Failed to subscribe to asset events for assets: "+d),b&&this.unsubscribe(b),m}return b})})}_processNextSubscription(){this._status===k.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let d=this._queuedSubscriptions.shift();d&&this.subscribe(d.eventSubscription,d.callback).then(m=>{let u=d.deferred;d.deferred=null,u&&u.resolve(m)},m=>{let u=d.deferred;d.deferred=null,u&&u.reject(m)})},0)}_onStatusChanged(d){d!==this._status&&(console.debug("Event provider status changed: "+d),this._status=d,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(m=>m(d))},0))}_onMessageReceived(d,m){let u=this._subscriptionMap.get(d);u&&u.callback(m)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let d in this._subscriptionMap)this._subscriptionMap.has(d)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(d));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===k.CONNECTED&&this._onStatusChanged(k.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(k.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<n1.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(n1.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}n0.MIN_RECONNECT_DELAY=0,n0.MAX_RECONNECT_DELAY=3e4,n0._subscriptionCounter=0;class n1 extends n0{get endpointUrl(){return this._endpointUrl}constructor(d){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(d.startsWith("https:")?"wss":"ws")+"://"+d.substr(d.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let d=this._endpointUrl+"?Realm="+iT.config.realm;return this._connectDeferred=new N,(iT.authenticated?iT.retrieveAuthorizationHeader().then(m=>{d+="&Authorization="+m}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(d),this._webSocket.onopen=d=>{if(this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!0)}},this._webSocket.onerror=d=>{if(console.error("Event provider error:",d),this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=d=>{let m=d.data;if(m&&m.startsWith(nK)){let d=JSON.parse(m.substring(nK.length)),u=this._subscribeDeferred;this._subscribeDeferred=null,u&&u.resolve(d.subscriptionId)}else if(m.startsWith(nJ)){let d=JSON.parse(m.substring(nJ.length)),u=this._subscribeDeferred;this._subscribeDeferred=null,u&&(console.warn("Unauthorized event subscription: "+JSON.stringify(d,null,2)),u.reject("Unauthorized"))}else if(m.startsWith(nZ)){let d=JSON.parse(m.substring(nZ.length));d.events&&d.events.forEach(m=>{this._onMessageReceived(d.subscriptionId,m)})}else if(m.startsWith(nQ)){let d=JSON.parse(m.substring(nQ.length));if(d.messageID){let m=this._repliesDeferred.get(d.messageID);this._repliesDeferred.delete(d.messageID),m&&m.resolve(d)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var d;null==(d=this._webSocket)||d.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(d){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new N,d.subscriptionId||(d.subscriptionId=n1._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(d)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(d){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:d}))}_doSend(d){let m=nQ+JSON.stringify(d);this._webSocket.send(m)}_doSendWithReply(d){if(d.messageID||(d.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(d.messageID))return Promise.reject("There's already a pending send and reply with this ID");let m=new N;return this._repliesDeferred.set(d.messageID,m),this._webSocket.send(nQ+JSON.stringify(d)),m.promise}}n1._subscriptionCounter=1;let n2=["__proto__","constructor","prototype"];function n5(d){return!("string"!=typeof d||0===d.length||d.length>128||n2.indexOf(d)>-1||d.indexOf("..")>-1||d.indexOf("\\")>-1||/[?#%\s@]/.test(d)||/[\x00-\x1F\x7F]/.test(d))}function n4(d){return!(!n5(d)||d.indexOf("/")>-1)}let n3={lng:n4,ns:function(d){return n5(d)}};function n6(d){return"string"!=typeof d?d:d.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function n8(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let n7=/\{\{(.+?)\}\}/g;function n9(d,m){let u=!1,f=d.replace(n7,(d,f)=>{let p=f.trim();if(n2.indexOf(p)>-1)return d;let h=m[p];if(null==h)return d;let b=n3[p]||n4,g=String(h).split("+");for(let m of g)if(!b(m))return u=!0,d;return g.join("+")});return u?null:f}let ie="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?f=fetch:ie&&"function"==typeof ie.fetch&&(f=ie.fetch);let it=n8()&&ie?ie.XMLHttpRequest:void 0,ii="function"==typeof ActiveXObject&&ie?ie.ActiveXObject:void 0,io=["__proto__","constructor","prototype"],ir=(d,m)=>{if(m&&"object"==typeof m){let u="";for(let d of Object.keys(m))io.indexOf(d)>-1||(u+="&"+encodeURIComponent(d)+"="+encodeURIComponent(m[d]));if(!u)return d;d=d+(-1!==d.indexOf("?")?"&":"?")+u.slice(1)}return d},ia=(d,m,u,p)=>{let h=d=>{if(!d.ok)return u(d.statusText||"Error",{status:d.status});d.text().then(m=>{u(null,{status:d.status,data:m})}).catch(u)};if(p){let f=p(d,m);if(f instanceof Promise)return void f.then(h).catch(u)}"function"==typeof fetch?fetch(d,m).then(h).catch(u):f(d,m).then(h).catch(u)},is=(d,m,u,p)=>{if("function"==typeof u&&(p=u,u=void 0),p=p||(()=>{}),f&&0!==m.indexOf("file:")){var h=m,b=u,g=p;d.queryStringParams&&(h=ir(h,d.queryStringParams));let f={..."function"==typeof d.customHeaders?d.customHeaders():d.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(f["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),b&&(f["Content-Type"]="application/json");let v="function"==typeof d.requestOptions?d.requestOptions(b):d.requestOptions,_={method:b?"POST":"GET",body:b?d.stringify(b):void 0,headers:f,...d._omitFetchOptions?{}:v},y="function"==typeof d.alternateFetch&&d.alternateFetch.length>=1?d.alternateFetch:void 0;try{ia(h,_,g,y)}catch(m){if(!v||0===Object.keys(v).length||!m.message||0>m.message.indexOf("not implemented"))return g(m);try{Object.keys(v).forEach(d=>{delete _[d]}),ia(h,_,g,y),d._omitFetchOptions=!0}catch(d){g(d)}}return}if(n8()||"function"==typeof ActiveXObject){var v=m,_=u,y=p;_&&"object"==typeof _&&(_=ir("",_).slice(1)),d.queryStringParams&&(v=ir(v,d.queryStringParams));try{let m=it?new it:new ii("MSXML2.XMLHTTP.3.0");m.open(_?"POST":"GET",v,1),d.crossDomain||m.setRequestHeader("X-Requested-With","XMLHttpRequest"),m.withCredentials=!!d.withCredentials,_&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.overrideMimeType&&m.overrideMimeType("application/json");let u=d.customHeaders;if(u="function"==typeof u?u():u)for(let d of Object.keys(u))io.indexOf(d)>-1||m.setRequestHeader(d,u[d]);m.onreadystatechange=()=>{m.readyState>3&&y(m.status>=400?m.statusText:null,{status:m.status,data:m.responseText})},m.send(_)}catch(d){console&&console.log(d)}return}p(Error("No fetch and no xhr implementation found!"))};var il=class{constructor(d,m={},u={}){this.services=d,this.options=m,this.allOptions=u,this.type="backend",this.init(d,m,u)}init(d,m={},u={}){if(this.services=d,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:d=>JSON.parse(d),stringify:JSON.stringify,parsePayload:(d,m,u)=>({[m]:u||""}),parseLoadPayload:(d,m)=>void 0,request:is,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...m},this.allOptions=u,this.services&&this.options.reloadInterval){let d=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof d&&"function"==typeof d.unref&&d.unref()}}readMulti(d,m,u){this._readAny(d,d,m,m,u)}read(d,m,u){this._readAny([d],d,[m],m,u)}_readAny(d,m,u,f,p){var h,b;let g=this.options.loadPath;"function"==typeof this.options.loadPath&&(g=this.options.loadPath(d,u)),(g=(b=h=g)&&"function"==typeof b.then?h:Promise.resolve(h)).then(h=>{if(!h)return p(null,{});let b=n9(h,{lng:d.join("+"),ns:u.join("+")});if(null==b)return p(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+d.map(n6).join(", ")+"] namespaces=["+u.map(n6).join(", ")+"]"),!1);this.loadUrl(b,p,m,f)})}loadUrl(d,m,u,f){let p=this.options.parseLoadPayload("string"==typeof u?[u]:u,"string"==typeof f?[f]:f),h=n6(function(d){if("string"!=typeof d||0===d.length)return d;try{let m=new URL(d);if(m.username||m.password)return m.username="",m.password="",m.toString();return d}catch(m){return d.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(d));this.options.request(this.options,d,p,(d,p)=>{let b,g;if(p&&(p.status>=500&&p.status<600||!p.status))return m("failed loading "+h+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return m("failed loading "+h+"; status code: "+p.status,!1);if(!p&&d&&d.message){let u=d.message.toLowerCase();if(["failed","fetch","network","load"].find(d=>u.indexOf(d)>-1))return m("failed loading "+h+": "+n6(d.message),!0)}if(d)return m(d,!1);try{b="string"==typeof p.data?this.options.parse(p.data,u,f):p.data}catch(d){g="failed parsing "+h+" to json"}if(g)return m(g,!1);m(null,b)})}create(d,m,u,f,p){if(!this.options.addPath)return;"string"==typeof d&&(d=[d]);let h=this.options.parsePayload(m,u,f),b=0,g=[],v=[];d.forEach(u=>{let f=this.options.addPath;"function"==typeof this.options.addPath&&(f=this.options.addPath(u,m));let _=n9(f,{lng:u,ns:m});if(null==_){b+=1,p&&b===d.length&&p(g,v);return}this.options.request(this.options,_,h,(m,u)=>{b+=1,g.push(m),v.push(u),b===d.length&&"function"==typeof p&&p(g,v)})})}reload(){let{backendConnector:d,languageUtils:m,logger:u}=this.services,f=d.language;if(f&&"cimode"===f.toLowerCase())return;let p=[],h=d=>{m.toResolveHierarchy(d).forEach(d=>{0>p.indexOf(d)&&p.push(d)})};h(f),this.allOptions.preload&&this.allOptions.preload.forEach(d=>h(d)),p.forEach(m=>{this.allOptions.ns.forEach(f=>{d.read(m,f,"read",null,null,(p,h)=>{p&&u.warn(`loading namespace ${f} for language ${m} failed`,p),!p&&h&&u.log(`loaded namespace ${f} for language ${m}`,h),d.loaded(`${m}|${f}`,p,h)})})})}};il.type="backend";var ic=u(2005),id=u(4954);class im extends Error{}function iu(d,m){let u;if("string"!=typeof d)throw new im("Invalid token specified: must be a string");m||(m={});let f=+(!0!==m.header),p=d.split(".")[f];if("string"!=typeof p)throw new im(`Invalid token specified: missing part #${f+1}`);try{u=function(d){let m=d.replace(/-/g,"+").replace(/_/g,"/");switch(m.length%4){case 0:break;case 2:m+="==";break;case 3:m+="=";break;default:throw Error("base64 string is not of the correct length")}try{var u;return u=m,decodeURIComponent(atob(u).replace(/(.)/g,(d,m)=>{let u=m.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u}))}catch(d){return atob(m)}}(p)}catch(d){throw new im(`Invalid token specified: invalid base64 for part #${f+1} (${d.message})`)}try{return JSON.parse(u)}catch(d){throw new im(`Invalid token specified: invalid json for part #${f+1} (${d.message})`)}}if(im.prototype.name="InvalidTokenError","u"<typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function ip(d){if(!(this instanceof ip))throw Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var m,u,f=this,p=[],h={enable:!0,callbackList:[],interval:5},b=document.getElementsByTagName("script"),g=0;g<b.length;g++)(-1!==b[g].src.indexOf("keycloak.js")||-1!==b[g].src.indexOf("keycloak.min.js"))&&-1!==b[g].src.indexOf("version=")&&(f.iframeVersion=b[g].src.substring(b[g].src.indexOf("version=")+8).split("&")[0]);var v=!0,_=P(console.info),y=P(console.warn);function F(d,m){for(var u=function(d){var m=null,u=window.crypto||window.msCrypto;if(u&&u.getRandomValues&&window.Uint8Array)return m=new Uint8Array(d),u.getRandomValues(m),m;m=Array(d);for(var f=0;f<m.length;f++)m[f]=Math.floor(256*Math.random());return m}(d),f=Array(d),p=0;p<d;p++)f[p]=m.charCodeAt(u[p]%m.length);return String.fromCharCode.apply(null,f)}function x(){return void 0===f.authServerUrl?void 0:"/"==f.authServerUrl.charAt(f.authServerUrl.length-1)?f.authServerUrl+"realms/"+encodeURIComponent(f.realm):f.authServerUrl+"/realms/"+encodeURIComponent(f.realm)}function w(d,m){var u=d.code,p=d.error,h=d.prompt,b=new Date().getTime();if(d.kc_action_status&&f.onActionUpdate&&f.onActionUpdate(d.kc_action_status),p){if("none"!=h)if(d.error_description&&"authentication_expired"===d.error_description)f.login(d.loginOptions);else{var g={error:p,error_description:d.error_description};f.onAuthError&&f.onAuthError(g),m&&m.setError(g)}else m&&m.setSuccess();return}if("standard"!=f.flow&&(d.access_token||d.id_token)&&w(d.access_token,null,d.id_token,!0),"implicit"!=f.flow&&u){var y="code="+u+"&grant_type=authorization_code",F=f.endpoints.token(),x=new XMLHttpRequest;x.open("POST",F,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),y+="&client_id="+encodeURIComponent(f.clientId)+"&redirect_uri="+d.redirectUri,d.pkceCodeVerifier&&(y+="&code_verifier="+d.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(4==x.readyState)if(200==x.status){var d=JSON.parse(x.responseText);w(d.access_token,d.refresh_token,d.id_token,"standard"===f.flow),O()}else f.onAuthError&&f.onAuthError(),m&&m.setError()},x.send(y)}function w(u,p,h,g){k(u,p,h,b=(b+new Date().getTime())/2),v&&f.idTokenParsed&&f.idTokenParsed.nonce!=d.storedNonce?(_("[KEYCLOAK] Invalid nonce, clearing token"),f.clearToken(),m&&m.setError()):g&&(f.onAuthSuccess&&f.onAuthSuccess(),m&&m.setSuccess())}}function E(d){return 0==d.status&&d.responseText&&d.responseURL.startsWith("file:")}function k(d,m,u,p){if(f.tokenTimeoutHandle&&(clearTimeout(f.tokenTimeoutHandle),f.tokenTimeoutHandle=null),m?(f.refreshToken=m,f.refreshTokenParsed=iu(m)):(delete f.refreshToken,delete f.refreshTokenParsed),u?(f.idToken=u,f.idTokenParsed=iu(u)):(delete f.idToken,delete f.idTokenParsed),d){if(f.token=d,f.tokenParsed=iu(d),f.sessionId=f.tokenParsed.sid,f.authenticated=!0,f.subject=f.tokenParsed.sub,f.realmAccess=f.tokenParsed.realm_access,f.resourceAccess=f.tokenParsed.resource_access,p&&(f.timeSkew=Math.floor(p/1e3)-f.tokenParsed.iat),null!=f.timeSkew&&(_("[KEYCLOAK] Estimated time difference between browser and server is "+f.timeSkew+" seconds"),f.onTokenExpired)){var h=(f.tokenParsed.exp-new Date().getTime()/1e3+f.timeSkew)*1e3;_("[KEYCLOAK] Token expires in "+Math.round(h/1e3)+" s"),h<=0?f.onTokenExpired():f.tokenTimeoutHandle=setTimeout(f.onTokenExpired,h)}}else delete f.token,delete f.tokenParsed,delete f.subject,delete f.realmAccess,delete f.resourceAccess,f.authenticated=!1}function A(){var d="0123456789abcdef",m=F(36,d).split("");return m[14]="4",m[19]=d.substr(3&m[19]|8,1),m[8]=m[13]=m[18]=m[23]="-",m.join("")}function C(d){var m=function(d){switch(f.flow){case"standard":m=["code","state","session_state","kc_action_status","iss"];break;case"implicit":m=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":m=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"]}m.push("error"),m.push("error_description"),m.push("error_uri");var m,u,p,h=d.indexOf("?"),b=d.indexOf("#");if("query"===f.responseMode&&-1!==h?(u=d.substring(0,h),""!==(p=T(d.substring(h+1,-1!==b?b:d.length),m)).paramsString&&(u+="?"+p.paramsString),-1!==b&&(u+=d.substring(b))):"fragment"===f.responseMode&&-1!==b&&(u=d.substring(0,b),""!==(p=T(d.substring(b+1),m)).paramsString&&(u+="#"+p.paramsString)),p&&p.oauthParams){if("standard"===f.flow||"hybrid"===f.flow){if((p.oauthParams.code||p.oauthParams.error)&&p.oauthParams.state)return p.oauthParams.newUrl=u,p.oauthParams}else if("implicit"===f.flow&&(p.oauthParams.access_token||p.oauthParams.error)&&p.oauthParams.state)return p.oauthParams.newUrl=u,p.oauthParams}}(d);if(m){var p=u.get(m.state);return p&&(m.valid=!0,m.redirectUri=p.redirectUri,m.storedNonce=p.nonce,m.prompt=p.prompt,m.pkceCodeVerifier=p.pkceCodeVerifier,m.loginOptions=p.loginOptions),m}}function T(d,m){for(var u=d.split("&"),f={paramsString:"",oauthParams:{}},p=0;p<u.length;p++){var h=u[p].indexOf("="),b=u[p].slice(0,h);-1!==m.indexOf(b)?f.oauthParams[b]=u[p].slice(h+1):(""!==f.paramsString&&(f.paramsString+="&"),f.paramsString+=u[p])}return f}function S(){var d={setSuccess:function(m){d.resolve(m)},setError:function(m){d.reject(m)}};return d.promise=new Promise(function(m,u){d.resolve=m,d.reject=u}),d}function I(){var d=S();if(!h.enable||h.iframe)return d.setSuccess(),d.promise;var m=document.createElement("iframe");h.iframe=m,m.onload=function(){var m=f.endpoints.authorize();"/"===m.charAt(0)?h.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):h.iframeOrigin=m.substring(0,m.indexOf("/",8)),d.setSuccess()};var u=f.endpoints.checkSessionIframe();return m.setAttribute("src",u),m.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),m.setAttribute("title","keycloak-session-iframe"),m.style.display="none",document.body.appendChild(m),window.addEventListener("message",function(d){if(d.origin===h.iframeOrigin&&h.iframe.contentWindow===d.source&&("unchanged"==d.data||"changed"==d.data||"error"==d.data)){"unchanged"!=d.data&&f.clearToken();for(var m=h.callbackList.splice(0,h.callbackList.length),u=m.length-1;u>=0;--u){var p=m[u];"error"==d.data?p.setError():p.setSuccess("unchanged"==d.data)}}},!1),d.promise}function O(){h.enable&&f.token&&setTimeout(function(){D().then(function(d){d&&O()})},1e3*h.interval)}function D(){var d=S();if(h.iframe&&h.iframeOrigin){var m=f.clientId+" "+(f.sessionId?f.sessionId:"");h.callbackList.push(d);var u=h.iframeOrigin;1==h.callbackList.length&&h.iframe.contentWindow.postMessage(m,u)}else d.setSuccess();return d.promise}function R(){var d,m,u,p=S();if(h.enable||f.silentCheckSsoRedirectUri){var b=document.createElement("iframe");b.setAttribute("src",f.endpoints.thirdPartyCookiesIframe()),b.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),b.setAttribute("title","keycloak-3p-check-iframe"),b.style.display="none",document.body.appendChild(b);var g=function(d){b.contentWindow===d.source&&("supported"===d.data||"unsupported"===d.data)&&("unsupported"===d.data&&(y("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),h.enable=!1,f.silentCheckSsoFallback&&(f.silentCheckSsoRedirectUri=!1)),document.body.removeChild(b),window.removeEventListener("message",g),p.setSuccess())};window.addEventListener("message",g,!1)}else p.setSuccess();return d=p.promise,m=f.messageReceiveTimeout,u=null,Promise.race([d,new Promise(function(d,f){u=setTimeout(function(){f({error:"Timeout when waiting for 3rd party check iframe message."})},m)})]).finally(function(){clearTimeout(u)})}function N(d){if(!d||"default"==d)return{login:function(d){return window.location.assign(f.createLoginUrl(d)),S().promise},logout:async function(d){if("GET"===(d?.logoutMethod??f.logoutMethod))return void window.location.replace(f.createLogoutUrl(d));let u=f.createLogoutUrl(d),p=await fetch(u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:f.idToken,client_id:f.clientId,post_logout_redirect_uri:m.redirectUri(d,!1)})});if(p.redirected){window.location.href=p.url;return}if(p.ok)return void window.location.reload();throw Error("Logout failed, request returned an error code.")},register:function(d){return window.location.assign(f.createRegisterUrl(d)),S().promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d)window.location.href=d;else throw"Not supported by the OIDC server";return S().promise},redirectUri:function(d,m){return d&&d.redirectUri?d.redirectUri:f.redirectUri?f.redirectUri:location.href}};if("cordova"==d){h.enable=!1;var u=function(d,m,u){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(d,m,u):window.open(d,m,u)},p=function(d){var m=d&&d.cordovaOptions?Object.keys(d.cordovaOptions).reduce(function(m,u){return m[u]=d.cordovaOptions[u],m},{}):{};return m.location="no",d&&"none"==d.prompt&&(m.hidden="yes"),Object.keys(m).reduce(function(d,u){return d.push(u+"="+m[u]),d},[]).join(",")},b=function(){return f.redirectUri||"http://localhost"};return{login:function(d){var m=S(),h=p(d),g=u(f.createLoginUrl(d),"_blank",h),v=!1,_=!1,y=function(){_=!0,g.close()};return g.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&(w(C(d.url),m),y(),v=!0)}),g.addEventListener("loaderror",function(d){v||(0==d.url.indexOf(b())?(w(C(d.url),m),y(),v=!0):(m.setError(),y()))}),g.addEventListener("exit",function(d){_||m.setError({reason:"closed_by_user"})}),m.promise},logout:function(d){var m,p=S(),h=u(f.createLogoutUrl(d),"_blank","location=no,hidden=yes,clearcache=yes");return h.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&h.close()}),h.addEventListener("loaderror",function(d){0==d.url.indexOf(b())||(m=!0),h.close()}),h.addEventListener("exit",function(d){m?p.setError():(f.clearToken(),p.setSuccess())}),p.promise},register:function(d){var m=S(),h=u(f.createRegisterUrl(),"_blank",p(d));return h.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&(h.close(),w(C(d.url),m))}),m.promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d){var m=u(d,"_blank","location=no");m.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&m.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(d){return b()}}}if("cordova-native"==d)return h.enable=!1,{login:function(d){var m=S(),u=f.createLoginUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),w(C(d.url),m)}),window.cordova.plugins.browsertab.openUrl(u),m.promise},logout:function(d){var m=S(),u=f.createLogoutUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),f.clearToken(),m.setSuccess()}),window.cordova.plugins.browsertab.openUrl(u),m.promise},register:function(d){var m=S(),u=f.createRegisterUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),w(C(d.url),m)}),window.cordova.plugins.browsertab.openUrl(u),m.promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d)window.cordova.plugins.browsertab.openUrl(d);else throw"Not supported by the OIDC server"},redirectUri:function(d){return d&&d.redirectUri?d.redirectUri:f.redirectUri?f.redirectUri:"http://localhost"}};throw"invalid adapter type: "+d}f.init=function(p){if(f.didInitialize)throw Error("A 'Keycloak' instance can only be initialized once.");if(f.didInitialize=!0,f.authenticated=!1,u=function(){try{return new B}catch(d){}return new L}(),m=p&&["default","cordova","cordova-native"].indexOf(p.adapter)>-1?N(p.adapter):p&&"object"==typeof p.adapter?p.adapter:window.Cordova||window.cordova?N("cordova"):N(),p){if(void 0!==p.useNonce&&(v=p.useNonce),void 0!==p.checkLoginIframe&&(h.enable=p.checkLoginIframe),p.checkLoginIframeInterval&&(h.interval=p.checkLoginIframeInterval),"login-required"===p.onLoad&&(f.loginRequired=!0),p.responseMode)if("query"===p.responseMode||"fragment"===p.responseMode)f.responseMode=p.responseMode;else throw"Invalid value for responseMode";if(p.flow){switch(p.flow){case"standard":f.responseType="code";break;case"implicit":f.responseType="id_token token";break;case"hybrid":f.responseType="code id_token token";break;default:throw"Invalid value for flow"}f.flow=p.flow}if(null!=p.timeSkew&&(f.timeSkew=p.timeSkew),p.redirectUri&&(f.redirectUri=p.redirectUri),p.silentCheckSsoRedirectUri&&(f.silentCheckSsoRedirectUri=p.silentCheckSsoRedirectUri),"boolean"==typeof p.silentCheckSsoFallback?f.silentCheckSsoFallback=p.silentCheckSsoFallback:f.silentCheckSsoFallback=!0,void 0!==p.pkceMethod){if("S256"!==p.pkceMethod&&!1!==p.pkceMethod)throw TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${p.pkceMethod}.`);f.pkceMethod=p.pkceMethod}else f.pkceMethod="S256";"boolean"==typeof p.enableLogging?f.enableLogging=p.enableLogging:f.enableLogging=!1,"POST"===p.logoutMethod?f.logoutMethod="POST":f.logoutMethod="GET","string"==typeof p.scope&&(f.scope=p.scope),"string"==typeof p.acrValues&&(f.acrValues=p.acrValues),"number"==typeof p.messageReceiveTimeout&&p.messageReceiveTimeout>0?f.messageReceiveTimeout=p.messageReceiveTimeout:f.messageReceiveTimeout=1e4}f.responseMode||(f.responseMode="fragment"),f.responseType||(f.responseType="code",f.flow="standard");var b=S(),g=S();g.promise.then(function(){f.onReady&&f.onReady(f.authenticated),b.setSuccess(f.authenticated)}).catch(function(d){b.setError(d)});var _=function(){var m=S();function u(d){d?f.endpoints={authorize:function(){return d.authorization_endpoint},token:function(){return d.token_endpoint},logout:function(){if(!d.end_session_endpoint)throw"Not supported by the OIDC server";return d.end_session_endpoint},checkSessionIframe:function(){if(!d.check_session_iframe)throw"Not supported by the OIDC server";return d.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!d.userinfo_endpoint)throw"Not supported by the OIDC server";return d.userinfo_endpoint}}:f.endpoints={authorize:function(){return x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var d=x()+"/protocol/openid-connect/login-status-iframe.html";return f.iframeVersion&&(d=d+"?version="+f.iframeVersion),d},thirdPartyCookiesIframe:function(){var d=x()+"/protocol/openid-connect/3p-cookies/step1.html";return f.iframeVersion&&(d=d+"?version="+f.iframeVersion),d},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(d?"string"==typeof d&&(b=d):b="keycloak.json",b){var p=new XMLHttpRequest;p.open("GET",b,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){if(4==p.readyState)if(200==p.status||E(p)){var d=JSON.parse(p.responseText);f.authServerUrl=d["auth-server-url"],f.realm=d.realm,f.clientId=d.resource,u(null),m.setSuccess()}else m.setError()},p.send()}else{if(!d.clientId)throw"clientId missing";f.clientId=d.clientId;var h=d.oidcProvider;if(h)if("string"==typeof h){var b,g="/"==h.charAt(h.length-1)?h+".well-known/openid-configuration":h+"/.well-known/openid-configuration",p=new XMLHttpRequest;p.open("GET",g,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){4==p.readyState&&(200==p.status||E(p)?(u(JSON.parse(p.responseText)),m.setSuccess()):m.setError())},p.send()}else u(h),m.setSuccess();else{if(!d.url){for(var v=document.getElementsByTagName("script"),_=0;_<v.length;_++)if(v[_].src.match(/.*keycloak\.js/)){d.url=v[_].src.substr(0,v[_].src.indexOf("/js/keycloak.js"));break}}if(!d.realm)throw"realm missing";f.authServerUrl=d.url,f.realm=d.realm,u(null),m.setSuccess()}}return m.promise}();function y(){var d=function(d){d||(u.prompt="none"),p&&p.locale&&(u.locale=p.locale),f.login(u).then(function(){g.setSuccess()}).catch(function(d){g.setError(d)})},m=function(){var d=document.createElement("iframe"),m=f.createLoginUrl({prompt:"none",redirectUri:f.silentCheckSsoRedirectUri});d.setAttribute("src",m),d.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),d.setAttribute("title","keycloak-silent-check-sso"),d.style.display="none",document.body.appendChild(d);var u=function(m){if(m.origin===window.location.origin&&d.contentWindow===m.source){var f=C(m.data);w(f,g),document.body.removeChild(d),window.removeEventListener("message",u)}};window.addEventListener("message",u)},u={};switch(p.onLoad){case"check-sso":h.enable?I().then(function(){D().then(function(u){u?g.setSuccess():f.silentCheckSsoRedirectUri?m():d(!1)}).catch(function(d){g.setError(d)})}):f.silentCheckSsoRedirectUri?m():d(!1);break;case"login-required":d(!0);break;default:throw"Invalid value for onLoad"}}function F(){var d=C(window.location.href);if(d&&window.history.replaceState(window.history.state,null,d.newUrl),d&&d.valid)return I().then(function(){w(d,g)}).catch(function(d){g.setError(d)});p?p.token&&p.refreshToken?(k(p.token,p.refreshToken,p.idToken),h.enable?I().then(function(){D().then(function(d){d?(f.onAuthSuccess&&f.onAuthSuccess(),g.setSuccess(),O()):g.setSuccess()}).catch(function(d){g.setError(d)})}):f.updateToken(-1).then(function(){f.onAuthSuccess&&f.onAuthSuccess(),g.setSuccess()}).catch(function(d){f.onAuthError&&f.onAuthError(),p.onLoad?y():g.setError(d)})):p.onLoad?y():g.setSuccess():g.setSuccess()}return _.then(function(){var d,m;(d=S(),m=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",m),d.setSuccess())},document.addEventListener("readystatechange",m),m(),d.promise).then(R).then(F).catch(function(d){b.setError(d)})}),_.catch(function(d){b.setError(d)}),b.promise},f.login=function(d){return m.login(d)},f.createLoginUrl=function(d){var p,h=A(),b=A(),g=m.redirectUri(d),_={state:h,nonce:b,redirectUri:encodeURIComponent(g),loginOptions:d};d&&d.prompt&&(_.prompt=d.prompt),p=d&&"register"==d.action?f.endpoints.register():f.endpoints.authorize();var y=d&&d.scope||f.scope;y?-1===y.indexOf("openid")&&(y="openid "+y):y="openid";var x=p+"?client_id="+encodeURIComponent(f.clientId)+"&redirect_uri="+encodeURIComponent(g)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(f.responseMode)+"&response_type="+encodeURIComponent(f.responseType)+"&scope="+encodeURIComponent(y);if(v&&(x=x+"&nonce="+encodeURIComponent(b)),d&&d.prompt&&(x+="&prompt="+encodeURIComponent(d.prompt)),d&&d.maxAge&&(x+="&max_age="+encodeURIComponent(d.maxAge)),d&&d.loginHint&&(x+="&login_hint="+encodeURIComponent(d.loginHint)),d&&d.idpHint&&(x+="&kc_idp_hint="+encodeURIComponent(d.idpHint)),d&&d.action&&"register"!=d.action&&(x+="&kc_action="+encodeURIComponent(d.action)),d&&d.locale&&(x+="&ui_locales="+encodeURIComponent(d.locale)),d&&d.acr&&(x+="&claims="+encodeURIComponent(JSON.stringify({id_token:{acr:d.acr}}))),(d&&d.acrValues||f.acrValues)&&(x+="&acr_values="+encodeURIComponent(d.acrValues||f.acrValues)),f.pkceMethod){var w=F(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");_.pkceCodeVerifier=w,x+="&code_challenge="+function(d,m){if("S256"!==d)throw TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${d}'.`);return btoa(String.fromCodePoint(...new Uint8Array(id.arrayBuffer(m)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(f.pkceMethod,w)+"&code_challenge_method="+f.pkceMethod}return u.add(_),x},f.logout=function(d){return m.logout(d)},f.createLogoutUrl=function(d){if("POST"===(d?.logoutMethod??f.logoutMethod))return f.endpoints.logout();var u=f.endpoints.logout()+"?client_id="+encodeURIComponent(f.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(m.redirectUri(d,!1));return f.idToken&&(u+="&id_token_hint="+encodeURIComponent(f.idToken)),u},f.register=function(d){return m.register(d)},f.createRegisterUrl=function(d){return d||(d={}),d.action="register",f.createLoginUrl(d)},f.createAccountUrl=function(d){var u=x(),p=void 0;return void 0!==u&&(p=u+"/account?referrer="+encodeURIComponent(f.clientId)+"&referrer_uri="+encodeURIComponent(m.redirectUri(d))),p},f.accountManagement=function(){return m.accountManagement()},f.hasRealmRole=function(d){var m=f.realmAccess;return!!m&&m.roles.indexOf(d)>=0},f.hasResourceRole=function(d,m){if(!f.resourceAccess)return!1;var u=f.resourceAccess[m||f.clientId];return!!u&&u.roles.indexOf(d)>=0},f.loadUserProfile=function(){var d=x()+"/account",m=new XMLHttpRequest;m.open("GET",d,!0),m.setRequestHeader("Accept","application/json"),m.setRequestHeader("Authorization","bearer "+f.token);var u=S();return m.onreadystatechange=function(){4==m.readyState&&(200==m.status?(f.profile=JSON.parse(m.responseText),u.setSuccess(f.profile)):u.setError())},m.send(),u.promise},f.loadUserInfo=function(){var d=f.endpoints.userinfo(),m=new XMLHttpRequest;m.open("GET",d,!0),m.setRequestHeader("Accept","application/json"),m.setRequestHeader("Authorization","bearer "+f.token);var u=S();return m.onreadystatechange=function(){4==m.readyState&&(200==m.status?(f.userInfo=JSON.parse(m.responseText),u.setSuccess(f.userInfo)):u.setError())},m.send(),u.promise},f.isTokenExpired=function(d){if(!f.tokenParsed||!f.refreshToken&&"implicit"!=f.flow)throw"Not authenticated";if(null==f.timeSkew)return _("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var m=f.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+f.timeSkew;if(d){if(isNaN(d))throw"Invalid minValidity";m-=d}return m<0},f.updateToken=function(d){var m=S();if(!f.refreshToken)return m.setError(),m.promise;d=d||5;var u=function(){var u=!1;if(-1==d?(u=!0,_("[KEYCLOAK] Refreshing token: forced refresh")):(!f.tokenParsed||f.isTokenExpired(d))&&(u=!0,_("[KEYCLOAK] Refreshing token: token expired")),u){var h="grant_type=refresh_token&refresh_token="+f.refreshToken,b=f.endpoints.token();if(p.push(m),1==p.length){var g=new XMLHttpRequest;g.open("POST",b,!0),g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),g.withCredentials=!0,h+="&client_id="+encodeURIComponent(f.clientId);var v=new Date().getTime();g.onreadystatechange=function(){if(4==g.readyState)if(200==g.status){_("[KEYCLOAK] Token refreshed"),v=(v+new Date().getTime())/2;var d=JSON.parse(g.responseText);k(d.access_token,d.refresh_token,d.id_token,v),f.onAuthRefreshSuccess&&f.onAuthRefreshSuccess();for(var m=p.pop();null!=m;m=p.pop())m.setSuccess(!0)}else{y("[KEYCLOAK] Failed to refresh token"),400==g.status&&f.clearToken(),f.onAuthRefreshError&&f.onAuthRefreshError();for(var m=p.pop();null!=m;m=p.pop())m.setError(!0)}},g.send(h)}}else m.setSuccess(!1)};return h.enable?D().then(function(){u()}).catch(function(d){m.setError(d)}):u(),m.promise},f.clearToken=function(){f.token&&(k(null,null,null),f.onAuthLogout&&f.onAuthLogout(),f.loginRequired&&f.login())};var B=function(){if(!(this instanceof B))return new B;function d(){for(var d=new Date().getTime(),m=0;m<localStorage.length;m++){var u=localStorage.key(m);if(u&&0==u.indexOf("kc-callback-")){var f=localStorage.getItem(u);if(f)try{var p=JSON.parse(f).expires;(!p||p<d)&&localStorage.removeItem(u)}catch(d){localStorage.removeItem(u)}}}}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(m){if(m){var u="kc-callback-"+m,f=localStorage.getItem(u);return f&&(localStorage.removeItem(u),f=JSON.parse(f)),d(),f}},this.add=function(m){d();var u="kc-callback-"+m.state;m.expires=new Date().getTime()+36e5,localStorage.setItem(u,JSON.stringify(m))}},L=function(){if(!(this instanceof L))return new L;this.get=function(f){if(f){var p=m("kc-callback-"+f);if(u("kc-callback-"+f,"",d(-100)),p)return JSON.parse(p)}},this.add=function(m){u("kc-callback-"+m.state,JSON.stringify(m),d(60))},this.removeItem=function(m){u(m,"",d(-100))};var d=function(d){var m=new Date;return m.setTime(m.getTime()+60*d*1e3),m},m=function(d){for(var m=d+"=",u=document.cookie.split(";"),f=0;f<u.length;f++){for(var p=u[f];" "==p.charAt(0);)p=p.substring(1);if(0==p.indexOf(m))return p.substring(m.length,p.length)}return""},u=function(d,m,u){var f=d+"="+m+"; expires="+u.toUTCString()+"; ";document.cookie=f}};function P(d){return function(){f.enableLogging&&d.apply(console,Array.prototype.slice.call(arguments))}}}var ih=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let ib=d=>m=>class extends m{constructor(){super(...arguments),this._connectRequested=!1,this._status=k.DISCONNECTED,this._statusCallback=d=>this._onEventProviderStatusChanged(d)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.connectEvents()}disconnectedCallback(){this.disconnectEvents(),super.disconnectedCallback&&super.disconnectedCallback()}connectEvents(){d.getEventProvider()?this._connectRequested||(this._connectRequested=!0,d.getEventProvider().subscribeStatusChange(this._statusCallback),this._doConnect()):console.log("No event provider available so cannot subscribe")}disconnectEvents(){this._connectRequested&&(this._connectRequested=!1,d.getEventProvider().unsubscribeStatusChange(this._statusCallback),this._onEventsDisconnect())}_doConnect(){return ih(this,void 0,void 0,function*(){this.eventsConnected&&this._onEventsConnect()})}get eventsConnected(){return this._connectRequested&&d.getEventProvider().status===k.CONNECTED}_onEventProviderStatusChanged(d){switch(d){case k.DISCONNECTED:this._onEventsDisconnect();break;case k.CONNECTED:this._doConnect()}}_onEventsConnect(){this._addEventSubscriptions(),this.onEventsConnect()}_onEventsDisconnect(){this._removeEventSubscriptions(),this.onEventsDisconnect()}_addEventSubscriptions(){return ih(this,void 0,void 0,function*(){let m=!!this._attributeRefs,u=!!this._assetIds,f=this._attributeRefs?this._attributeRefs:this._assetIds;if(f&&f.length>0){if(this._subscriptionIds=[],u){let m=yield d.getEventProvider().subscribeAssetEvents(f,!0,d=>this._onEvent(d)),u=this._attributeRefs?this._attributeRefs:this._assetIds;if(!this._subscriptionIds||!B(f,u))return void d.getEventProvider().unsubscribe(m);this._subscriptionIds.push(m)}let p=yield d.getEventProvider().subscribeAttributeEvents(f,m,d=>this._onEvent(d)),h=this._attributeRefs?this._attributeRefs:this._assetIds;if(!this._subscriptionIds||!B(f,h))return void d.getEventProvider().unsubscribe(p);this._subscriptionIds.push(p)}})}_removeEventSubscriptions(){this._subscriptionIds&&(this._subscriptionIds.forEach(m=>{d.getEventProvider().unsubscribe(m)}),this._subscriptionIds=void 0)}_refreshEventSubscriptions(){this._removeEventSubscriptions(),this._addEventSubscriptions()}set assetIds(d){B(this._assetIds,d)||(this._assetIds=d,this._refreshEventSubscriptions(),this.requestUpdate("assetIds"))}get assetIds(){return this._assetIds}set attributeRefs(d){B(this._attributeRefs,d)||(this._attributeRefs=d,this._refreshEventSubscriptions())}get attributeRefs(){return this._attributeRefs}_sendEvent(m){d.getEventProvider().sendEvent(m)}_sendEventWithReply(m){return d.getEventProvider().sendEventWithReply(m)}onEventsConnect(){}onEventsDisconnect(){}_onEvent(d){}},ig="#4d9d2a",iv="#FFFFFF",i_="#F9F9F9",iy="#CCCCCC",iF="#FFFFFF",ix="#4c4c4c";var iw=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let iE="openremote";(w=A||(A={})).MANAGER_FAILED_TO_LOAD="MANAGER_FAILED_TO_LOAD",w.AUTH_FAILED="AUTH_FAILED",w.AUTH_TYPE_UNSUPPORTED="AUTH_TYPE_UNSUPPORTED",w.CONSOLE_ERROR="CONSOLE_INIT_ERROR",w.EVENTS_CONNECTION_ERROR="EVENTS_CONNECTION_ERROR",w.TRANSLATION_ERROR="TRANSLATION_ERROR",(E=C||(C={})).ERROR="ERROR",E.READY="READY",E.ONLINE="ONLINE",E.OFFLINE="OFFLINE",E.CONNECTING="CONNECTING",E.CONSOLE_INIT="CONSOLE_INIT",E.CONSOLE_READY="CONSOLE_READY",E.TRANSLATE_INIT="TRANSLATE_INIT",E.TRANSLATE_LANGUAGE_CHANGED="TRANSLATE_LANGUAGE_CHANGED",E.DISPLAY_REALM_CHANGED="DISPLAY_REALM_CHANGED",E.LOGIN="LOGIN";let ik={cn:"zh-cn"};class iA{constructor(){this._authenticated=!1,this._ready=!1,this._name="",this._username="",this._keycloakUpdateTokenInterval=void 0,this._managerVersion="",this._authServerUrl="",this._listeners=[],this._disconnected=!1}get username(){return this._username}get error(){return this._error}get authenticated(){return this._authenticated}get ready(){return this._ready}get config(){return this._config}get roles(){let d=new Map;return this._keycloak&&this._keycloak.resourceAccess&&this._config.clientId&&this._keycloak.resourceAccess&&Object.entries(this._keycloak.resourceAccess).forEach(([m,u])=>{let f=u.roles;d.set(m,f)}),d}get managerVersion(){return this._managerVersion}get isManagerAvailable(){return this._managerVersion&&""!==this._managerVersion}get managerUrl(){var d;return null==(d=this._config)?void 0:d.managerUrl}get keycloakUrl(){var d;return null==(d=this._config)?void 0:d.keycloakUrl}get isError(){return!!this._error}get connectionStatus(){return this._events&&this._events.status}get console(){return this._console}get consoleAppConfig(){return this._consoleAppConfig}get events(){return this._events}get rest(){return nW}get language(){return O.Ay.language}set language(d){console.debug(`Changing language to ${d}.`),d&&(O.Ay.changeLanguage(d),this.console.storeData("LANGUAGE",d),this.authenticated&&this.updateKeycloakUserLanguage(d).catch(d=>console.error(d)))}get displayRealm(){return this._displayRealm||this._config.realm}set displayRealm(d){this.isSuperUser()&&this._displayRealm!==d&&(this._displayRealm=d,this._emitEvent(C.DISPLAY_REALM_CHANGED))}get clientId(){return this._config.clientId||iE}getEventProvider(){return this.events}isManagerSameOrigin(){if(!this.ready)return!1;let d=new URL(this._config.managerUrl),m=window.location;return d.protocol===m.protocol&&d.hostname===m.hostname&&d.port===m.port}addListener(d){0>this._listeners.indexOf(d)&&this._listeners.push(d)}removeListener(d){let m=this._listeners.indexOf(d);m>=0&&this._listeners.splice(m,1)}init(d){return iw(this,void 0,void 0,function*(){let m;this._config&&console.debug("Already initialised"),this._config=((m=d?Object.assign({},d):{}).managerUrl&&""!==m.managerUrl?m.managerUrl=m.managerUrl.replace(/\/+$/,""):m.managerUrl=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname.replace(/\/[^/]+\/?$/,""),m.realm&&""!==m.realm||(m.realm="master"),m.auth||(m.auth="KEYCLOAK"),void 0===m.consoleAutoEnable&&(m.consoleAutoEnable=!0),void 0===m.applyConfigToAdmin&&(m.applyConfigToAdmin=!0),m.eventProviderType||(m.eventProviderType="WEBSOCKET"),(!m.pollingIntervalMillis||m.pollingIntervalMillis<5e3)&&(m.pollingIntervalMillis=1e4),void 0===m.loadIcons&&(m.loadIcons=!0),void 0===m.loadTranslations&&(m.loadTranslations=["or"]),void 0===m.translationsLoadPath&&(m.translationsLoadPath="locales/{{lng}}/{{ns}}.json"),void 0===m.loadDescriptors&&(m.loadDescriptors=!0),void 0===m.clientId&&(m.clientId=iE),m);let u=yield this.loadManagerInfo(),f=new ee(this._config.realm,this._config.consoleAutoEnable,()=>{this._emitEvent(C.CONSOLE_READY)});if(this._console=f,"KEYCLOAK"===this._config.auth){if(!this._config.keycloakUrl&&this._authServerUrl){let d,m=new URL(this._config.managerUrl);this._authServerUrl.startsWith("//")?(this._authServerUrl=m.protocol+this._authServerUrl,this._config.keycloakUrl=this._authServerUrl):this._authServerUrl.startsWith("http")?this._config.keycloakUrl=this._authServerUrl:((d=new URL(m)).pathname=this._authServerUrl,d.protocol||(d.protocol=m.protocol),d.hostname||(d.hostname=m.hostname),d.port||(d.port=m.port),this._config.keycloakUrl=d.toString())}this._config.keycloakUrl||(this._config.keycloakUrl=this._config.managerUrl+"/auth"),this._config.keycloakUrl=this._config.keycloakUrl.replace(/\/+$/,""),u=yield this.doAuthInit()}return!!u&&(u&&(u=this.doRestApiInit()),(yield this.doConsoleInit())&&this._clearWebHistory(),(u=(yield this.doTranslateInit())&&u)&&(u=yield this.doDescriptorsInit(),u=yield this.getConsoleAppConfig()),this.doIconInit(),u?(u=yield this.doEventsSubscriptionInit(),this._ready=!0,this._emitEvent(C.READY)):(this._config=void 0,console.warn("Failed to initialise the manager")),this.displayRealm=d.realm||"master",u)})}loadManagerInfo(){return iw(this,void 0,void 0,function*(){try{let d=yield new Promise((d,m)=>{let u=new XMLHttpRequest;u.addEventListener("load",()=>{d(JSON.parse(u.responseText))}),u.addEventListener("error",()=>{m(Error("Failed to contact the manager"))}),u.open("GET",this._config.managerUrl+"/api/master/info"),u.send()});return this._managerVersion=d&&d.version?d.version:"",this._authServerUrl=d&&d.authServerUrl?d.authServerUrl:"",!0}catch(d){return console.error("Failed to contact the manager",d),this._setError(A.MANAGER_FAILED_TO_LOAD),!1}})}doTranslateInit(){return iw(this,void 0,void 0,function*(){if(O.Ay.isInitialized)return!0;O.Ay.on("initialized",d=>{this._emitEvent(C.TRANSLATE_INIT)}),O.Ay.on("languageChanged",d=>{var m;R().locale(null!=(m=ik[d])?m:d),this._emitEvent(C.TRANSLATE_LANGUAGE_CHANGED)});let d={lng:(yield this.getConsolePreferredLanguage())||(yield this.getUserPreferredLanguage())||this.config.defaultLanguage||"en",fallbackLng:"en",defaultNS:"app",fallbackNS:"or",ns:this.config.loadTranslations,interpolation:{format:(d,m,u)=>"uppercase"===m?d.toUpperCase():d instanceof Date?R()(d).format(m):d},backend:{loadPath:(d,m)=>1===m.length&&"or"===m[0]?this.config.managerUrl+"/shared/locales/{{lng}}/{{ns}}.json":this.config.translationsLoadPath?this.config.translationsLoadPath:"locales/{{lng}}/{{ns}}.json"}};this.config.configureTranslationsOptions&&this.config.configureTranslationsOptions(d);try{yield O.Ay.use(il).init(d)}catch(d){return console.error(d),this._setError(A.TRANSLATION_ERROR),!1}return!0})}doDescriptorsInit(){return iw(this,void 0,void 0,function*(){if(!this.config.loadDescriptors)return!0;try{let d=yield nW.api.AssetModelResource.getAssetInfos(),m=yield nW.api.AssetModelResource.getMetaItemDescriptors(),u=yield nW.api.AssetModelResource.getValueDescriptors();I.u0._assetTypeInfos=d.data,I.u0._metaItemDescriptors=Object.values(m.data),I.u0._valueDescriptors=Object.values(u.data)}catch(d){return console.error(d),!1}return!0})}doAuthInit(){return iw(this,void 0,void 0,function*(){let d=!0;switch(this._config.auth){case"KEYCLOAK":d=yield this.loadAndInitialiseKeycloak();break;case"NONE":return!0;default:return this._setError(A.AUTH_TYPE_UNSUPPORTED),!1}return!!d&&(nW.addRequestInterceptor(d=>{if(!d.headers.Authorization){let m=this.getAuthorizationHeader();m&&(d.headers.Authorization=m)}return d}),d)})}doRestApiInit(){return nW.setTimeout(2e4),nW.initialise(this.getApiBaseUrl()),!0}doEventsSubscriptionInit(){return iw(this,void 0,void 0,function*(){let d=!1;return"WEBSOCKET"===this._config.eventProviderType&&(this._events=new n1(this._config.managerUrl),this._events.subscribeStatusChange(d=>this._onEventProviderStatusChanged(d)),d=yield this._events.connect()),d||this._setError(A.EVENTS_CONNECTION_ERROR),d})}_connectEvents(){var d;(null==(d=this.events)?void 0:d.status)===k.DISCONNECTED?this.events.connect().catch(d=>{console.error("Failed to connect EventProvider."),console.error(d)}):console.warn("Tried to connect EventProvider, but it wasn't disconnected!")}_onEventProviderStatusChanged(d){switch(d){case k.DISCONNECTED:this._onDisconnect();break;case k.CONNECTED:break;case k.CONNECTING:this._emitEvent(C.CONNECTING)}}doConsoleInit(){return iw(this,void 0,void 0,function*(){try{return yield this.console.initialise(),this._emitEvent(C.CONSOLE_INIT),!0}catch(d){return this._setError(A.CONSOLE_ERROR),!1}})}doIconInit(){this._config.loadIcons&&(ic.Ri.addIconSet("mdi",(0,ic.mb)(iC.managerUrl)),ic.Ri.addIconSet("or",(0,ic.e4)(ic.Bv.size,ic.Bv.icons)))}getConsoleAppConfig(){return iw(this,void 0,void 0,function*(){var d;try{let m=yield fetch((null!=(d=iC.managerUrl)?d:"")+"/consoleappconfig/"+iC.displayRealm+".json");return this._consoleAppConfig=yield m.json(),!0}catch(d){return!0}})}getConsolePreferredLanguage(){return iw(this,arguments,void 0,function*(d=this.console){return d.retrieveData("LANGUAGE")})}getUserPreferredLanguage(){return iw(this,arguments,void 0,function*(d=this._keycloak){if(d&&d.authenticated){let m=(null==d?void 0:d.profile)||(yield null==d?void 0:d.loadUserProfile());if(null==m?void 0:m.attributes){let d=new Map(Object.entries(m.attributes));if(d.has("locale")){let m=d.get("locale");if("string"==typeof m[0])return m[0]}console.warn("Could not get user language from keycloak: no user attributes were found.")}else console.warn("Could not get user language from keycloak: no valid keycloak user profile was found.")}})}updateKeycloakUserLanguage(d){return iw(this,arguments,void 0,function*(d,m=this.rest){this.authenticated?m?yield m.api.UserResource.updateCurrentUserLocale(d,{headers:{"Content-Type":"application/json"}}):console.warn("Tried updating user language, but the REST API is not initialized yet."):console.warn("Tried updating user language, but the user is not authenticated.")})}logout(d){this._authenticated&&(this._authenticated=!0,this._keycloak&&(this.isMobile()&&this.console.storeData("REFRESH_TOKEN",null),this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._keycloak.logout(d&&""!==d?{redirectUri:d}:void 0)))}login(d){if("KEYCLOAK"===this._config.auth&&this._keycloak){let m={};d&&d.redirectUrl&&""!==d.redirectUrl&&(m.redirectUri=d.redirectUrl),(null==d?void 0:d.action)&&""!==d.action&&(m.action=d.action),this.isMobile()&&(m.scope="offline_access"),this._keycloak.login(m)}}isSuperUser(){return!!(this.getRealm()&&"master"===this.getRealm()&&this.hasRealmRole("admin"))}isRestrictedUser(){return!!this.hasRealmRole("restricted_user")}getApiBaseUrl(){return this._config.managerUrl+"/api/"+this._config.realm+"/"}getAppName(){let d=location.pathname.split("/");return d.length>=1?d[1]:""}hasRealmRole(d){return this.isKeycloak()&&this._keycloak.hasRealmRole(d)}hasRole(d,m=this._config.clientId){let u=this.roles;return u&&u.has(m)&&u.get(m).indexOf(d)>=0}getAuthorizationHeader(){if(this.getKeycloakToken())return"Bearer "+this.getKeycloakToken()}retrieveAuthorizationHeader(){return iw(this,void 0,void 0,function*(){let d=yield this.retrieveKeycloakToken();if(d)return"Bearer "+d})}getKeycloakToken(){if(this.isKeycloak())return this._keycloak.token}retrieveKeycloakToken(){return iw(this,void 0,void 0,function*(){if(this.isKeycloak())return yield this._updateKeycloakAccessToken(),this._keycloak.token})}getRealm(){if(this._config)return this._config.realm}isMobile(){return this.console&&this.console.isMobile}isKeycloak(){return!!this._keycloak}_onAuthenticated(){this._authenticated=!0}loadAndInitialiseKeycloak(){return iw(this,void 0,void 0,function*(){var d,m,u,f,p;try{this._keycloak=new ip({clientId:this._config.clientId,realm:this._config.realm,url:this._config.keycloakUrl});let h=yield this._getNativeOfflineRefreshToken(),b=yield this._keycloak.init({checkLoginIframe:!1,onLoad:"check-sso"});if(!b&&h)try{console.error("SETTING OFFLINE TOKEN"),this._keycloak.refreshToken=h,b=yield this._updateKeycloakAccessToken()}catch(d){console.error("Failed to authenticate using offline token")}if(b){this._name=null==(d=this._keycloak.tokenParsed)?void 0:d.name,this._username=null==(m=this._keycloak.tokenParsed)?void 0:m.preferred_username,this.isMobile()&&(null==(f=null==(u=this._keycloak)?void 0:u.refreshTokenParsed)?void 0:f.typ)==="Offline"&&(console.debug("Storing offline refresh token"),this.console.storeData("REFRESH_TOKEN",this._keycloak.refreshToken)),this._onAuthenticated(),this._createTokenUpdateInterval();let h=null==(p=this._keycloak.tokenParsed)?void 0:p.session_state;h&&sessionStorage.getItem("or-session")!==h&&(sessionStorage.setItem("or-session",h),this._emitEvent(C.LOGIN))}else if(this.config.autoLogin)return this.login(),!1;return!0}catch(d){return this._authenticated=!1,this._setError(A.AUTH_FAILED),console.error("Failed to initialise Keycloak: "+d),!1}})}_createTokenUpdateInterval(){this._authenticated?this._keycloakUpdateTokenInterval||(this._keycloakUpdateTokenInterval=window.setInterval(()=>iw(this,void 0,void 0,function*(){yield this._updateKeycloakAccessToken().catch(()=>{console.debug("Keycloak failed to refresh the access token"),this._onDisconnect()})}),1e4)):console.warn("User is not authenticated; skipping token update interval creation.")}_updateKeycloakAccessToken(){return iw(this,void 0,void 0,function*(){let d=yield this._keycloak.updateToken(20);return console.debug("Access token update success, refreshed from server: "+d),d&&this._onAuthenticated(),d})}_getNativeOfflineRefreshToken(){return iw(this,void 0,void 0,function*(){if(this.isMobile())return yield this.console.retrieveData("REFRESH_TOKEN")})}_emitEvent(d){window.setTimeout(()=>{for(let m of this._listeners)m(d)},0)}_setError(d){this._error=d,this._emitEvent(C.ERROR),console.warn("Error set: "+d)}_clearWebHistory(){var d;this.isMobile()&&(null==(d=this.console)||d._doSendGenericMessage("CLEAR_WEB_HISTORY",void 0))}_onDisconnect(){return iw(this,void 0,void 0,function*(){this._disconnected||(console.debug("Disconnected"),this._disconnected=!0,this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._emitEvent(C.OFFLINE),this.reconnect())})}_onReconnected(){console.debug("Reconnected to the Manager."),this._disconnected=!1,this._createTokenUpdateInterval(),this._emitEvent(C.ONLINE)}reconnect(){return iw(this,arguments,void 0,function*(d=3e3){if(console.debug("Checking connection to the Manager..."),!this._disconnected)return void console.debug("Manager is still connected. No action necessary.");console.debug("Manager is disconnected!"),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0);let m=()=>iw(this,void 0,void 0,function*(){var d,m;if(console.debug("Reconnecting to the Manager..."),!this._authenticated){console.debug("User is not authenticated, skipping token refresh");let m=()=>{var d;return(null==(d=this.events)?void 0:d.status)===k.CONNECTED};return m()||(yield null==(d=this.events)?void 0:d.connect()),m()}if(!(yield this.isKeycloakReachable()))return console.error("Keycloak is not reachable. Reconnect attempt failed."),!1;try{yield this._updateKeycloakAccessToken()}catch(m){console.error("Could not update Keycloak access token, attempting again using offline token...",m);let d=yield this._getNativeOfflineRefreshToken();this._keycloak.refreshToken=d,d||console.warn("No offline token was found on this device.");try{yield this._updateKeycloakAccessToken()}catch(d){throw this.login(),Error("Cannot update access token so sending to login")}console.debug("Keycloak access token is valid")}let u=()=>{var d;return(null==(d=this.events)?void 0:d.status)===k.CONNECTED};return u()||(console.debug("Event provider offline, attempting to reconnect using latest auth token."),yield null==(m=this.events)?void 0:m.connect()),u()}),u=yield m();if(void 0!==u){if(!u){d=Math.min(iA.MAX_RECONNECT_DELAY,d+3e3),console.error(`Failed to reconnect to the Manager. Attempting again in ${d}...`),this._reconnectTimer=window.setTimeout(()=>this.reconnect(d),d);return}this._onReconnected()}})}isKeycloakReachable(){return iw(this,arguments,void 0,function*(d=2e3){let m=new AbortController,u=setTimeout(()=>m.abort(),d);try{let d=this._keycloak.endpoints.token(),u=yield fetch(d,{method:"OPTIONS",signal:m.signal});return 200===u.status}catch(d){return!1}finally{clearTimeout(u)}})}}iA.MAX_RECONNECT_DELAY=45e3;let iC=new iA,iT=iC},5144(d,m,u){"use strict";var f,p,h,b,g,v,_,y,F,x,w,E,k,A,C,T,S,I,O,D,R,N,B,L,P,M,z,U,j,V,$,H,q,G,Y,W,X,K,J,Z,Q,ee,et,en,ei,eo,er,ea,es,el,ec,ed,em,eu,ef,ep,eh,eb,eg,ev,e_,ey,eF,ex,ew,eE,ek,eA,eC,eT,eS,eI,eO,eD,eR,eN,eB,eL,eP,eM,ez,eU,ej,eV,e$,eH,eq,eG,eY,eW,eX,eK,eJ,eZ,eQ,e0,e1,e2,e5,e4,e3,e6,e8,e7,e9,te,tt,tn,ti,to,tr,ta,ts,tl,tc,td,tm,tu,tf,tp,th,tb,tg,tv,t_;u.d(m,{u0:()=>ty}),(ex=f||(f={})).CREATE="CREATE",ex.UPDATE="UPDATE",ex.DELETE="DELETE",(ew=p||(p={})).LOW="LOW",ew.MEDIUM="MEDIUM",ew.HIGH="HIGH",(eE=h||(h={})).MANUAL="MANUAL",eE.CLIENT="CLIENT",eE.GLOBAL_RULESET="GLOBAL_RULESET",eE.REALM_RULESET="REALM_RULESET",eE.ASSET_RULESET="ASSET_RULESET",eE.AGENT="AGENT",(ek=b||(b={})).OPEN="OPEN",ek.ACKNOWLEDGED="ACKNOWLEDGED",ek.IN_PROGRESS="IN_PROGRESS",ek.RESOLVED="RESOLVED",ek.CLOSED="CLOSED",(eA=g||(g={})).BOTTOM_LEFT="BOTTOM_LEFT",eA.BOTTOM_RIGHT="BOTTOM_RIGHT",eA.TOP_LEFT="TOP_LEFT",eA.TOP_RIGHT="TOP_RIGHT",(eC=v||(v={})).CREATE="CREATE",eC.READ="READ",eC.UPDATE="UPDATE",eC.DELETE="DELETE",(eT=_||(_={})).NONE="NONE",eT.FORECAST="FORECAST",eT.SETPOINT="SETPOINT",(eS=y||(y={})).DISCONNECTED="DISCONNECTED",eS.CONNECTING="CONNECTING",eS.DISCONNECTING="DISCONNECTING",eS.CONNECTED="CONNECTED",eS.DISABLED="DISABLED",eS.WAITING="WAITING",eS.ERROR="ERROR",eS.STOPPED="STOPPED",(eI=F||(F={})).REQUEST_START="REQUEST_START",eI.REQUEST_REPEATING="REQUEST_REPEATING",eI.REQUEST_CANCEL="REQUEST_CANCEL",eI.READY="READY",eI.COMPLETED="COMPLETED",eI.RUNNING="RUNNING",eI.CANCELLED="CANCELLED",(eO=x||(x={})).TOGGLE="TOGGLE",eO.INCREMENT="INCREMENT",eO.DECREMENT="DECREMENT",eO.NEGATE="NEGATE",(eD=w||(w={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",eD.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",eD.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",eD.INVALID_VALUE="INVALID_VALUE",eD.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",eD.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",eD.CANNOT_PROCESS="CANNOT_PROCESS",eD.QUEUE_FULL="QUEUE_FULL",eD.UNKNOWN="UNKNOWN",eD.ASSET_ID_MISSING="ASSET_ID_MISSING",eD.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(eR=E||(E={})).PUBLIC="PUBLIC",eR.SHARED="SHARED",eR.PRIVATE="PRIVATE",(eN=k||(k={})).OFF="OFF",eN.ONE_MIN="ONE_MIN",eN.FIVE_MIN="FIVE_MIN",eN.QUARTER="QUARTER",eN.ONE_HOUR="ONE_HOUR",(eB=A||(A={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",eB.KEEP_LAYOUT="KEEP_LAYOUT",eB.REDIRECT="REDIRECT",eB.BLOCK_DEVICE="BLOCK_DEVICE",(eL=C||(C={})).CSV="CSV",eL.CSV_CROSSTAB="CSV_CROSSTAB",eL.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(eP=T||(T={})).MINUTE="MINUTE",eP.HOUR="HOUR",eP.DAY="DAY",eP.WEEK="WEEK",eP.MONTH="MONTH",eP.YEAR="YEAR",(eM=S||(S={})).MIN="MIN",eM.AVG="AVG",eM.MAX="MAX",eM.DIFFERENCE="DIFFERENCE",eM.COUNT="COUNT",eM.SUM="SUM",eM.MODE="MODE",eM.MEDIAN="MEDIAN",(ez=I||(I={})).TERMINATING="TERMINATING",ez.DISABLED="DISABLED",ez.ALREADY_CONNECTED="ALREADY_CONNECTED",ez.UNRECOGNISED="UNRECOGNISED",ez.PERMANENT_ERROR="PERMANENT_ERROR",ez.SYNC_ERROR="SYNC_ERROR",(eU=O||(O={})).HTTPS="HTTPS",eU.HTTP="HTTP",eU.TCP="TCP",(ej=D||(D={})).GET="GET",ej.POST="POST",ej.PUT="PUT",ej.DELETE="DELETE",ej.OPTIONS="OPTIONS",ej.PATCH="PATCH",(eV=R||(R={})).KEYCLOAK="KEYCLOAK",eV.NONE="NONE",(e$=N||(N={})).WEBSOCKET="WEBSOCKET",e$.POLLING="POLLING",(eH=B||(B={})).INTERNAL="INTERNAL",eH.CLIENT="CLIENT",eH.GLOBAL_RULESET="GLOBAL_RULESET",eH.REALM_RULESET="REALM_RULESET",eH.ASSET_RULESET="ASSET_RULESET",(eq=L||(L={})).REALM="REALM",eq.USER="USER",eq.ASSET="ASSET",eq.CUSTOM="CUSTOM",(eG=P||(P={})).NORMAL="NORMAL",eG.HIGH="HIGH",(eY=M||(M={})).DEVICE="DEVICE",eY.TOPIC="TOPIC",eY.CONDITION="CONDITION",(eW=z||(z={})).ALWAYS="ALWAYS",eW.ONCE="ONCE",eW.HOURLY="HOURLY",eW.DAILY="DAILY",eW.WEEKLY="WEEKLY",eW.MONTHLY="MONTHLY",eW.ANNUALLY="ANNUALLY",(eX=U||(U={})).TITLE="TITLE",eX.SOURCE="SOURCE",eX.STATUS="STATUS",eX.SENT_ON="SENT_ON",eX.DELIVERED_ON="DELIVERED_ON",(eK=j||(j={})).MESSAGE_INVALID="MESSAGE_INVALID",eK.CERTIFICATE_INVALID="CERTIFICATE_INVALID",eK.UNAUTHORIZED="UNAUTHORIZED",eK.FORBIDDEN="FORBIDDEN",eK.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",eK.CONFIG_DISABLED="CONFIG_DISABLED",eK.USER_DISABLED="USER_DISABLED",eK.SERVER_ERROR="SERVER_ERROR",eK.ASSET_ERROR="ASSET_ERROR",eK.SERVER_BUSY="SERVER_BUSY",(eJ=V||(V={})).PRIVATE="PRIVATE",eJ.PROTECTED="PROTECTED",eJ.PUBLIC="PUBLIC",(eZ=$||($={})).EXACT="EXACT",eZ.BEGIN="BEGIN",eZ.END="END",eZ.CONTAINS="CONTAINS",(eQ=H||(H={})).EQUALS="EQUALS",eQ.GREATER_THAN="GREATER_THAN",eQ.GREATER_EQUALS="GREATER_EQUALS",eQ.LESS_THAN="LESS_THAN",eQ.LESS_EQUALS="LESS_EQUALS",eQ.BETWEEN="BETWEEN",(e0=q||(q={})).CREATED_ON="CREATED_ON",e0.NAME="NAME",e0.ASSET_TYPE="ASSET_TYPE",e0.PARENT_ID="PARENT_ID",e0.REALM="REALM",(e1=G||(G={})).RESTRICTED="RESTRICTED",e1.LINKED="LINKED",e1.REALM="REALM",(e2=Y||(Y={})).AT_LEAST_ONE="AT_LEAST_ONE",e2.ALL="ALL",e2.NONE="NONE",(e5=W||(W={})).AND="AND",e5.OR="OR",(e4=X||(X={})).CREATED_ON="CREATED_ON",e4.FIRST_NAME="FIRST_NAME",e4.LAST_NAME="LAST_NAME",e4.USERNAME="USERNAME",e4.EMAIL="EMAIL",(e3=K||(K={})).STOPPED="STOPPED",e3.RUNNING="RUNNING",e3.ERROR="ERROR",(e6=J||(J={})).JAVASCRIPT="JAVASCRIPT",e6.GROOVY="GROOVY",e6.JSON="JSON",e6.FLOW="FLOW",(e8=Z||(Z={})).READY="READY",e8.DEPLOYED="DEPLOYED",e8.COMPILATION_ERROR="COMPILATION_ERROR",e8.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",e8.EXECUTION_ERROR="EXECUTION_ERROR",e8.LOOP_ERROR="LOOP_ERROR",e8.DISABLED="DISABLED",e8.PAUSED="PAUSED",e8.EXPIRED="EXPIRED",e8.REMOVED="REMOVED",e8.EMPTY="EMPTY",(e7=Q||(Q={})).SUNRISE="SUNRISE",e7.SUNSET="SUNSET",e7.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",e7.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",e7.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",e7.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",e7.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",e7.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",e7.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",e7.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",e7.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",e7.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",e7.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",e7.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",e7.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",e7.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",e7.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",e7.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",e7.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",e7.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(e9=ee||(ee={})).NUMBER="NUMBER",e9.NUMBER_ARRAY="NUMBER_ARRAY",e9.STRING="STRING",e9.BOOLEAN="BOOLEAN",e9.TRIGGER="TRIGGER",e9.COLOR="COLOR",e9.ANY="ANY",(te=et||(et={})).NEW_LINE="NEW_LINE",te.SPACER="SPACER",(tt=en||(en={})).INPUT="INPUT",tt.PROCESSOR="PROCESSOR",tt.OUTPUT="OUTPUT",tt.THEN="THEN",(tn=ei||(ei={})).TEXT="TEXT",tn.MULTILINE="MULTILINE",tn.NUMBER="NUMBER",tn.DROPDOWN="DROPDOWN",tn.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",tn.CHECKBOX="CHECKBOX",tn.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",tn.COLOR="COLOR",tn.DATE="DATE",(ti=eo||(eo={})).ADD="ADD",ti.ADD_OR_REPLACE="ADD_OR_REPLACE",ti.REPLACE="REPLACE",ti.DELETE="DELETE",ti.CLEAR="CLEAR",(to=er||(er={})).PER_ASSET="PER_ASSET",to.GLOBAL="GLOBAL",(tr=ea||(ea={})).READ_ADMIN="read:admin",tr.READ_LOGS="read:logs",tr.READ_USERS="read:users",tr.READ_MAP="read:map",tr.READ_ASSETS="read:assets",tr.READ_RULES="read:rules",tr.READ_INSIGHTS="read:insights",tr.READ_ALARMS="read:alarms",tr.READ_NOTIFICATIONS="read:notifications",tr.READ_SERVICES="read:services",tr.WRITE_SERVICES="write:services",tr.WRITE_USER="write:user",tr.WRITE_ADMIN="write:admin",tr.WRITE_LOGS="write:logs",tr.WRITE_ASSETS="write:assets",tr.WRITE_ATTRIBUTES="write:attributes",tr.WRITE_RULES="write:rules",tr.WRITE_INSIGHTS="write:insights",tr.WRITE_ALARMS="write:alarms",tr.WRITE_NOTIFICATIONS="write:notifications",tr.READ="read",tr.WRITE="write",(ta=es||(es={})).REGISTER="REGISTER",ta.UPDATE="UPDATE",ta.DEREGISTER="DEREGISTER",(ts=el||(el={})).AVAILABLE="AVAILABLE",ts.UNAVAILABLE="UNAVAILABLE",(tl=ec||(ec={})).ASSET="ASSET",tl.AGENT="AGENT",tl.NOTIFICATION="NOTIFICATION",tl.ALARM="ALARM",tl.RULES="RULES",tl.PROTOCOL="PROTOCOL",tl.GATEWAY="GATEWAY",tl.MODEL_AND_VALUES="MODEL_AND_VALUES",tl.API="API",tl.DATA="DATA",(tc=ed||(ed={})).INFO="INFO",tc.WARN="WARN",tc.ERROR="ERROR",(td=em||(em={})).NUMERIC="numeric",td.DIGIT_2="2-digit",td.FULL="full",td.LONG="long",td.MEDIUM="medium",td.SHORT="short",td.NARROW="narrow",(tm=eu||(eu={})).SECONDLY="SECONDLY",tm.MINUTELY="MINUTELY",tm.HOURLY="HOURLY",tm.DAILY="DAILY",tm.WEEKLY="WEEKLY",tm.MONTHLY="MONTHLY",tm.YEARLY="YEARLY",(tu=ef||(ef={})).OMIT="OMIT",tu.BACKWARD="BACKWARD",tu.FORWARD="FORWARD",(tf=ep||(ep={})).JAPANESE="JAPANESE",tf.BUDDHIST="BUDDHIST",tf.ROC="ROC",tf.ISLAMIC="ISLAMIC",tf.ISO8601="ISO8601",tf.CHINESE="CHINESE",tf.ETHIOPIC="ETHIOPIC",tf.HEBREW="HEBREW",tf.GREGORIAN="GREGORIAN",(tp=eh||(eh={})).SU="SU",tp.MO="MO",tp.TU="TU",tp.WE="WE",tp.TH="TH",tp.FR="FR",tp.SA="SA",(th=eb||(eb={})).PEOPLECOUNTERASSET="PeopleCounterAsset",th.MAILAGENT="MailAgent",th.UDPAGENT="UDPAgent",th.ROOMASSET="RoomAsset",th.CITYASSET="CityAsset",th.VENTILATIONASSET="VentilationAsset",th.TRADFRILIGHTASSET="TradfriLightAsset",th.CONSOLEASSET="ConsoleAsset",th.PRESENCESENSORASSET="PresenceSensorAsset",th.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",th.LIGHTASSET="LightAsset",th.KNXAGENT="KNXAgent",th.THETHINGSSTACKAGENT="TheThingsStackAgent",th.PLUGASSET="PlugAsset",th.CHIRPSTACKAGENT="ChirpStackAgent",th.WEATHERASSET="WeatherAsset",th.THINGASSET="ThingAsset",th.WEBSOCKETAGENT="WebsocketAgent",th.TCPAGENT="TCPAgent",th.GATEWAYASSET="GatewayAsset",th.SERIALAGENT="SerialAgent",th.BLUETOOTHMESHAGENT="BluetoothMeshAgent",th.PARKINGASSET="ParkingAsset",th.TRADFRIPLUGASSET="TradfriPlugAsset",th.SIMULATORAGENT="SimulatorAgent",th.SNMPAGENT="SNMPAgent",th.GROUPASSET="GroupAsset",th.BUILDINGASSET="BuildingAsset",th.MODBUSSERIALAGENT="ModbusSerialAgent",th.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",th.MQTTAGENT="MQTTAgent",th.VELBUSTCPAGENT="VelbusTCPAgent",th.ARTNETLIGHTASSET="ArtnetLightAsset",th.VELBUSSERIALAGENT="VelbusSerialAgent",th.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",th.MICROPHONEASSET="MicrophoneAsset",th.MODBUSTCPAGENT="ModbusTcpAgent",th.ZWAVEAGENT="ZWaveAgent",th.HTTPAGENT="HTTPAgent",th.DOORASSET="DoorAsset",th.THERMOSTATASSET="ThermostatAsset",th.SHIPASSET="ShipAsset",(tb=eg||(eg={})).COLOURRGB="colourRGB",tb.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",tb.PRICEHOURLY="priceHourly",tb.MQTTPORT="MQTTPort",tb.PINGDISABLED="pingDisabled",tb.FLOW="flow",tb.CHILDASSETTYPE="childAssetType",tb.LASTACCESS="lastAccess",tb.POSITION="position",tb.NETWORKKEY="networkKey",tb.UNIVERSE="universe",tb.ROUTINGMODE="routingMode",tb.MSSINUMBER="MSSINumber",tb.LASTWILLRETAIN="lastWillRetain",tb.LASTWILLTOPIC="lastWillTopic",tb.SERIALBAUDRATE="serialBaudrate",tb.SUBSCRIBEQOS="subscribeQos",tb.LEDCOUNT="lEDCount",tb.LOCKED="locked",tb.CLOUDCOVERAGE="cloudCoverage",tb.BASEURL="baseURL",tb.PROTOCOL="protocol",tb.REQUIREDVALUES="requiredValues",tb.REGION="region",tb.CONSOLEPLATFORM="consolePlatform",tb.GATEWAYSTATUS="gatewayStatus",tb.NO2LEVEL="NO2Level",tb.ATMOSPHERICPRESSURE="atmosphericPressure",tb.SERIALPORT="serialPort",tb.APPLICATIONID="applicationId",tb.TAGS="tags",tb.UNLOCK="unlock",tb.CHECKINTERVALSECONDS="checkIntervalSeconds",tb.LOCATION="location",tb.CLIENTSECRET="clientSecret",tb.WINDDIRECTION="windDirection",tb.WINDSPEED="windSpeed",tb.PARTICLESPM10="particlesPM10",tb.APPLICATIONKEY="applicationKey",tb.LENGTH="length",tb.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",tb.USERNAMEPASSWORD="usernamePassword",tb.WATERLEVEL="waterLevel",tb.CONNECTHEADERS="connectHeaders",tb.CONSOLENAME="consoleName",tb.WEBSOCKETQUERY="websocketQuery",tb.PREFERHTML="preferHTML",tb.PARITY="parity",tb.COOLING="cooling",tb.POLLINGMILLIS="pollingMillis",tb.SOILTEMPERATURE="soilTemperature",tb.SUNIRRADIANCE="sunIrradiance",tb.MESSAGEMAXLENGTH="messageMaxLength",tb.WINDGUSTSPEED="windGustSpeed",tb.LIGHTID="lightId",tb.PROXYADDRESS="proxyAddress",tb.REQUESTQUERYPARAMETERS="requestQueryParameters",tb.MQTTHOST="MQTTHost",tb.SECUREGRPC="secureGRPC",tb.MODEL="model",tb.STREET="street",tb.MANUFACTURER="manufacturer",tb.DELETEPROCESSEDMAIL="deleteProcessedMail",tb.RESUMESESSION="resumeSession",tb.ONOFF="onOff",tb.APIKEY="ApiKey",tb.CITY="city",tb.PRESENCE="presence",tb.SPACESOCCUPIED="spacesOccupied",tb.STARTTLS="startTLS",tb.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",tb.WEBSOCKETPATH="websocketPath",tb.AGENTSTATUS="agentStatus",tb.PRICEDAILY="priceDaily",tb.COUNTGROWTHMINUTE="countGrowthMinute",tb.IMONUMBER="IMONumber",tb.ATTRIBUTION="Attribution",tb.TENANTID="tenantId",tb.REQUESTHEADERS="requestHeaders",tb.HOST="host",tb.COUNTOUTMINUTE="countOutMinute",tb.MESSAGECHARSET="messageCharset",tb.CERTIFICATEALIAS="certificateAlias",tb.EMAIL="email",tb.BINDPORT="bindPort",tb.CONSOLEVERSION="consoleVersion",tb.PARTICLESPM1="particlesPM1",tb.MTU="mtu",tb.SPEED="speed",tb.MESSAGESTRIPDELIMITER="messageStripDelimiter",tb.AREA="area",tb.COUNTRY="country",tb.SHIPTYPE="shipType",tb.CONNECTSUBSCRIPTIONS="connectSubscriptions",tb.RELATIVEHUMIDITY="relativeHumidity",tb.SOURCEADDRESS="sourceAddress",tb.RAINFALL="rainfall",tb.OAUTHGRANT="oAuthGrant",tb.OZONELEVEL="ozoneLevel",tb.SEQUENCENUMBER="sequenceNumber",tb.COUNTINMINUTE="countInMinute",tb.PORT="port",tb.SUNALTITUDE="sunAltitude",tb.COUNTOUT="countOut",tb.ROOMNUMBER="roomNumber",tb.TUNNELINGSUPPORTED="tunnelingSupported",tb.ENINUMBER="ENINumber",tb.PARTICLESPM2_5="particlesPM2_5",tb.AGENTDISABLED="agentDisabled",tb.DISABLED="disabled",tb.COUNTIN="countIn",tb.MESSAGESOURCEADDRESS="messageSourceAddress",tb.PROVISIONWEATHERASSET="ProvisionWeatherAsset",tb.TIMEINJECTIONINTERVAL="timeInjectionInterval",tb.TEMPERATURESETPOINT="temperatureSetpoint",tb.CONSOLEPROVIDERS="consoleProviders",tb.COUNTTOTAL="countTotal",tb.SPACESBUFFER="spacesBuffer",tb.DEVICECONFIG="deviceConfig",tb.SPACESTOTAL="spacesTotal",tb.BINDHOST="bindHost",tb.FANSPEED="fanSpeed",tb.MESSAGECONVERTBINARY="messageConvertBinary",tb.NOTES="notes",tb.MAILFOLDERNAME="mailFolderName",tb.MESSAGEDELIMITERS="messageDelimiters",tb.TEMPERATURE="temperature",tb.SUNZENITH="sunZenith",tb.SNMPVERSIONVALUE="SNMPVersionValue",tb.BRIGHTNESS="brightness",tb.POSTALCODE="postalCode",tb.SPACESOPEN="spacesOpen",tb.HUMIDITY="humidity",tb.SOUNDLEVEL="soundLevel",tb.SECUREMODE="secureMode",tb.DIRECTION="direction",tb.STOPBITS="stopbits",tb.UVINDEX="uVIndex",tb.CONNECTURL="connectURL",tb.CLIENTID="clientId",tb.NATMODE="NATMode",tb.UPDATEONWRITE="updateOnWrite",tb.LASTWILLPAYLOAD="lastWillPayload",tb.GROUPID="groupId",tb.FOLLOWREDIRECTS="followRedirects",tb.SUNAZIMUTH="sunAzimuth",tb.MESSAGECONVERTHEX="messageConvertHex",tb.WEBSOCKETMODE="websocketMode",tb.COLOURTEMPERATURE="colourTemperature",tb.PUBLISHQOS="publishQos",tb.DATABITS="dataBits",(tg=ev||(ev={})).FORMAT="format",tg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",tg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",tg.SECRET="secret",tg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",tg.ATTRIBUTELINKS="attributeLinks",tg.RULERESETIMMEDIATE="ruleResetImmediate",tg.RULESTATE="ruleState",tg.AGENTLINKCONFIG="agentLinkConfig",tg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",tg.FORECAST="forecast",tg.STOREDATAPOINTS="storeDataPoints",tg.LABEL="label",tg.CONSTRAINTS="constraints",tg.UNITS="units",tg.USERCONNECTED="userConnected",tg.SHOWONDASHBOARD="showOnDashboard",tg.READONLY="readOnly",tg.MULTILINE="multiline",tg.ACCESSPUBLICWRITE="accessPublicWrite",tg.MOMENTARY="momentary",tg.AGENTLINK="agentLink",tg.ACCESSRESTRICTEDREAD="accessRestrictedRead",tg.ACCESSPUBLICREAD="accessPublicRead",(tv=e_||(e_={})).ASSETQUERY="assetQuery",tv.WSURL="WS_URL",tv.COLOURRGB="colourRGB",tv.VALUEFORMAT="valueFormat",tv.TEXT="text",tv.BYTE="byte",tv.USERNAMEANDPASSWORD="usernameAndPassword",tv.HTTPURL="HTTP_URL",tv.ATTRIBUTELINK="attributeLink",tv.ASSETID="assetID",tv.NUMBERMAP="numberMap",tv.HTTPMETHOD="HTTPMethod",tv.ATTRIBUTESTATE="attributeState",tv.POSITIVENUMBER="positiveNumber",tv.POSITIVEINTEGER="positiveInteger",tv.EXECUTIONSTATUS="executionStatus",tv.BIGINTEGER="bigInteger",tv.VALUEDESCRIPTOR="valueDescriptor",tv.PERIODDURATIONISO8601="periodDurationISO8601",tv.LONG="long",tv.DATEANDTIME="dateAndTime",tv.BOOLEANMAP="booleanMap",tv.MQTTQOS="MQTTQos",tv.NEGATIVEINTEGER="negativeInteger",tv.TCPIPPORTNUMBER="TCP_IPPortNumber",tv.GEOJSONPOINT="GEO_JSONPoint",tv.SNMPVERSION="SNMPVersion",tv.ASSETTYPE="assetType",tv.JSONOBJECT="JSONObject",tv.INTEGERMAP="integerMap",tv.BIGNUMBER="bigNumber",tv.IPADDRESS="IPAddress",tv.EMAIL="email",tv.TIMESTAMP="timestamp",tv.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",tv.ATTRIBUTEREFERENCE="attributeReference",tv.UUID="UUID",tv.INTEGER="integer",tv.OAUTHGRANT="oAuthGrant",tv.NUMBER="number",tv.DEVICECONFIGMAP="DeviceConfigMap",tv.TEXTMAP="textMap",tv.WEBSOCKETSUBSCRIPTION="websocketSubscription",tv.BOOLEAN="boolean",tv.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",tv.FORECASTCONFIGURATION="forecastConfiguration",tv.TIMEDURATIONISO8601="timeDurationISO8601",tv.TIMESTAMPISO8601="timestampISO8601",tv.CONSOLEPROVIDERS="consoleProviders",tv.MULTIVALUEDTEXTMAP="multivaluedTextMap",tv.NEGATIVENUMBER="negativeNumber",tv.PARITYBIT="Paritybit",tv.JSON="JSON",tv.CRONEXPRESSION="CRONExpression",tv.INTEGERBYTE="integerByte",tv.AGENTLINK="agentLink",tv.DIRECTION="direction",tv.HOSTORIPADDRESS="hostOrIPAddress",tv.STOPBITS="Stopbits",tv.CALENDAREVENT="calendarEvent",tv.CONNECTIONSTATUS="connectionStatus",tv.VALUECONSTRAINT="valueConstraint",(t_=ey||(ey={})).MONTH="month",t_.MILE_SCANDINAVIAN="mile_scandinavian",t_.VAR="var",t_.OUNCE="ounce",t_.HECTARE="hectare",t_.YARD="yard",t_.YEAR="year",t_.GIGA="giga",t_.JOULE="joule",t_.VOLT="volt",t_.HERTZ="hertz",t_.MILE="mile",t_.DEGREE="degree",t_.KILO="kilo",t_.BTU="btu",t_.TERA="tera",t_.FOOT="foot",t_.MEGA="mega",t_.KELVIN="kelvin",t_.CARBON="carbon",t_.DECIBEL_ATTENUATED="decibel_attenuated",t_.INCH="inch",t_.SQUARED="squared",t_.PERCENTAGE="percentage",t_.IN_HG="inch_mercury",t_.CENTI="centi",t_.GRAM="gram",t_.CUBED="cubed",t_.DAY="day",t_.RADIAN="radian",t_.OHM="ohm",t_.MINUTE="minute",t_.PART_PER_MILLION="ppm",t_.AMP="amp",t_.MASS_POUND="pound",t_.KNOT="knot",t_.METRE="metre",t_.LITRE="litre",t_.FLUID_OUNCE="fluid_ounce",t_.HOUR="hour",t_.ACRE="acre",t_.CELSIUS="celsius",t_.RPM="rpm",t_.PASCAL="pascal",t_.DECIBEL="decibel",t_.LUMEN="lumen",t_.WEEK="week",t_.FAHRENHEIT="fahrenheit",t_.WATT="watt",t_.GALLON="gallon",t_.LUX="lux",t_.MILLI="milli",t_.BAR="bar",t_.HECTO="hecto",t_.PEAK="peak",t_.SECOND="second",t_.MICRO="micro",t_.PER="per",t_.STONE="stone",eF||(eF={});class ty{static getAssetDescriptors(){return ty._assetTypeInfos.map(d=>d.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(d){if(d)return d.assetDescriptor?d:("string"!=typeof d&&(d=d.name),this._assetTypeInfos.find(m=>m.assetDescriptor.name===d))}static getAssetDescriptor(d){if(!d)return;if(d.assetDescriptor)return d.assetDescriptor;if("string"!=typeof d)return d;let m=this._assetTypeInfos.find(m=>m.assetDescriptor.name===d);return m?m.assetDescriptor:void 0}static getAttributeDescriptor(d,m){if(!d)return;let u=this.getAssetTypeInfo(m||"ThingAsset");if(u&&u.attributeDescriptors)return u.attributeDescriptors.find(m=>m.name===d)}static getValueDescriptor(d){let m;if(!d)return;if(d.endsWith("[]"))for(m=0;d.endsWith("[]");)d=d.substring(0,d.length-2),m++;let u=this._valueDescriptors.find(m=>m.name===d);return u&&m&&(u=Object.assign(Object.assign({},u),{arrayDimensions:m})),u}static resolveValueDescriptor(d,m){let u;return m&&("string"==typeof m&&(u=ty.getValueDescriptor(m)),u=m.jsonType?m:ty.getValueDescriptor(m.type)),!u&&d&&(u=ty.getValueDescriptor("JSON")),u}static resolveValueTypeFromValue(d){if(null!=d){if("number"==typeof d)return"number";if("string"==typeof d)return"text";if("boolean"==typeof d)return"boolean";if(Array.isArray(d)){let m=1,u=d.find(d=>null!=d);for(;Array.isArray(u);)u=u.find(d=>null!=d),m++;let f=this.resolveValueTypeFromValue(u);if(!f)return;for(;m>0;)f+="[]",m--;return f}if(d instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(d,m,u){let f,p;if(m&&"string"!=typeof m)f=m;else{let p=this.getAssetTypeInfo(d||"ThingAsset");if(!p)return[void 0,void 0];"string"==typeof m&&(f=this.getAttributeDescriptor(m,p)),!f&&u&&(f={type:u.type,name:u.name,meta:u.meta})}return f&&(p=this.getValueDescriptor(f.type)),[f,p]}static getMetaItemDescriptor(d){if(d)return this._metaItemDescriptors.find(m=>m.name===d)}static getAssetDescriptorColour(d,m){let u=this.getAssetDescriptor(d);return u&&u.colour?u.colour:m}static getAssetDescriptorIcon(d,m){let u=this.getAssetDescriptor(d);return u&&u.icon?u.icon:m}}ty._assetTypeInfos=[],ty._metaItemDescriptors=[],ty._valueDescriptors=[]},8789(__unused_rspack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ym:()=>OrAssetTreeSelectionEvent});var OrAssetTree_1,FilterElementType,lit__rspack_import_0=__webpack_require__(7364),_openremote_or_element__rspack_import_1=__webpack_require__(7286),lit_decorators_js__rspack_import_2=__webpack_require__(3026),_openremote_or_vaadin_components_or_vaadin_combo_box__rspack_import_3=__webpack_require__(9542),_openremote_or_vaadin_components_or_vaadin_menu_bar__rspack_import_4=__webpack_require__(9180),_openremote_or_vaadin_components_or_vaadin_confirm_dialog__rspack_import_5=__webpack_require__(3946),_openremote_or_icon__rspack_import_6=__webpack_require__(2005),_openremote_model__rspack_import_7=__webpack_require__(5144),_openremote_or_translate__rspack_import_8=__webpack_require__(7853),_style__rspack_import_9=__webpack_require__(322),_openremote_core__rspack_import_10=__webpack_require__(7478),qs__rspack_import_17=__webpack_require__(8183),qs__rspack_import_17_default=__webpack_require__.n(qs__rspack_import_17),_openremote_or_mwc_components_or_mwc_list__rspack_import_11=__webpack_require__(3638),_openremote_or_mwc_components_or_mwc_dialog__rspack_import_12=__webpack_require__(6669),_or_add_asset_dialog__rspack_import_13=__webpack_require__(7663),_openremote_or_mwc_components_or_mwc_snackbar__rspack_import_14=__webpack_require__(9566),lit_directives_when_js__rspack_import_16=__webpack_require__(8114),lodash_debounce__rspack_import_15=__webpack_require__(2051),lodash_debounce__rspack_import_15_default=__webpack_require__.n(lodash_debounce__rspack_import_15),__decorate=function(d,m,u,f){var p,h=arguments.length,b=h<3?m:null===f?f=Object.getOwnPropertyDescriptor(m,u):f;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(d,m,u,f);else for(var g=d.length-1;g>=0;g--)(p=d[g])&&(b=(h<3?p(b):h>3?p(m,u,b):p(m,u))||b);return h>3&&b&&Object.defineProperty(m,u,b),b},__awaiter=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};class OrAssetTreeRequestSelectionEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestSelectionEvent.NAME="or-asset-tree-request-selection";class OrAssetTreeSelectionEvent extends CustomEvent{constructor(d){super(OrAssetTreeSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeSelectionEvent.NAME="or-asset-tree-selection";class OrAssetTreeChangeParentEvent extends CustomEvent{constructor(d,m){super(OrAssetTreeChangeParentEvent.NAME,{bubbles:!0,composed:!0,detail:{parentId:d,assetIds:m}})}}OrAssetTreeChangeParentEvent.NAME="or-asset-tree-change-parent";class OrAssetTreeToggleExpandEvent extends CustomEvent{constructor(d){super(OrAssetTreeToggleExpandEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeToggleExpandEvent.NAME="or-asset-tree-expand",function(d){d[d.SEARCH_FILTER=0]="SEARCH_FILTER",d[d.ASSET_TYPE=1]="ASSET_TYPE",d[d.ATTRIBUTE_NAME=2]="ATTRIBUTE_NAME",d[d.ATTRIBUTE_VALUE=3]="ATTRIBUTE_VALUE"}(FilterElementType||(FilterElementType={}));class OrAssetTreeRequestAddEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestAddEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestAddEvent.NAME="or-asset-tree-request-add";class OrAssetTreeAddEvent extends CustomEvent{constructor(d){super(OrAssetTreeAddEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeAddEvent.NAME="or-asset-tree-add";class OrAssetTreeRequestDeleteEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestDeleteEvent.NAME="or-asset-tree-request-delete";class OrAssetTreeAssetEvent extends CustomEvent{constructor(d){super(OrAssetTreeAssetEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeAssetEvent.NAME="or-asset-tree-asset-event";class OrAssetTreeFilter{constructor(d){this.asset=d,this.assetType=[],this.attribute=[],this.attributeValue=[]}}let OrAssetTree=OrAssetTree_1=class OrAssetTree extends(0,_openremote_core__rspack_import_10.B1)(_openremote_core__rspack_import_10.Ay)(_openremote_or_element__rspack_import_1.y){constructor(){super(...arguments),this.readonly=!1,this.disabled=!1,this.disableSubscribe=!1,this.showDeselectBtn=!0,this.showSortBtn=!0,this.showFilter=!0,this.showFilterIcon=!0,this.sortBy="name",this.expandAllNodes=!1,this.checkboxes=!1,this.queryLimit=100,this.paginationThreshold=1e3,this._loading=!1,this._connected=!1,this._selectedNodes=[],this._expandedNodes=[],this._filter=new OrAssetTreeFilter,this._filterSettingOpen=!1,this._assetTypes=[],this._uniqueAssetTypes=[],this._hasMoreParents=!1,this._incompleteParentIds=[],this._dragDropParentId=null,this._expandTimer=void 0,this._latestSelected=void 0,this.assetsChildren={}}static get styles(){return[_style__rspack_import_9.i]}get selectedNodes(){return this._selectedNodes?[...this._selectedNodes]:[]}set selectedNodes(d){this.selectedIds=d.map(d=>d.asset.id)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.requestUpdate()}refresh(){this._nodes=void 0}isAncestorSelected(d){if(!this.selectedIds||!d.parent)return!1;for(;d.parent;)if(d=d.parent,this.selectedIds.includes(d.asset.id))return!0;return!1}applyFilter(d,m=!1){(d&&"string"!=typeof d||(d=this.parseFromInputFilter(d)),_openremote_core__rspack_import_10.J0.DH(this._filter,d))?console.debug("Tried to apply filter to the asset tree, but it was the same.",d):(console.debug("Applying filter to the asset tree:",d),this._filter=d,m&&this.updateComplete.finally(()=>this._filterInput.value=this.formatFilter(d)))}mapDescriptors(d,m){let u=d.map(d=>({styleMap:{"--or-icon-fill":d.colour?"#"+d.colour:"unset"},icon:d.icon,text:_openremote_core__rspack_import_10.J0.F2(d),value:d.name,data:d})).sort(_openremote_core__rspack_import_10.J0.NM(d=>d.text));return m&&u.splice(0,0,m),u}_getSelectHeader(d,m=[],u=this._loading){var f,p;return(0,lit__rspack_import_0.qy)`
1
+ var ORAttributePicker;(()=>{var __webpack_modules__={3992(d,m,u){"use strict";u.d(m,{O:()=>p});var f=u(9531),p=function(){function d(d,m){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];this.root=d,this.initialize.apply(this,function(){for(var d=[],m=0;m<arguments.length;m++)d=d.concat(function(d,m){var u="function"==typeof Symbol&&d[Symbol.iterator];if(!u)return d;var f,p,h=u.call(d),b=[];try{for(;(void 0===m||m-- >0)&&!(f=h.next()).done;)b.push(f.value)}catch(d){p={error:d}}finally{try{f&&!f.done&&(u=h.return)&&u.call(h)}finally{if(p)throw p.error}}return b}(arguments[m]));return d}(u)),this.foundation=void 0===m?this.getDefaultFoundation():m,this.foundation.init(),this.initialSyncWithDOM()}return d.attachTo=function(m){return new d(m,new f.I({}))},d.prototype.initialize=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m]},d.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},d.prototype.initialSyncWithDOM=function(){},d.prototype.destroy=function(){this.foundation.destroy()},d.prototype.listen=function(d,m,u){this.root.addEventListener(d,m,u)},d.prototype.unlisten=function(d,m,u){this.root.removeEventListener(d,m,u)},d.prototype.emit=function(d,m,u){var f;void 0===u&&(u=!1),"function"==typeof CustomEvent?f=new CustomEvent(d,{bubbles:u,detail:m}):(f=document.createEvent("CustomEvent")).initCustomEvent(d,u,!1,m),this.root.dispatchEvent(f)},d}()},9531(d,m,u){"use strict";var f=function(){function d(d){void 0===d&&(d={}),this.adapter=d}return Object.defineProperty(d,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(d,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),d.prototype.init=function(){},d.prototype.destroy=function(){},d}();u.d(m,{I:()=>f})},618(d,m,u){"use strict";var f={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape"},p=new Set;p.add(f.BACKSPACE),p.add(f.ENTER),p.add(f.SPACEBAR),p.add(f.PAGE_UP),p.add(f.PAGE_DOWN),p.add(f.END),p.add(f.HOME),p.add(f.ARROW_LEFT),p.add(f.ARROW_UP),p.add(f.ARROW_RIGHT),p.add(f.ARROW_DOWN),p.add(f.DELETE),p.add(f.ESCAPE);var h=new Map;h.set(8,f.BACKSPACE),h.set(13,f.ENTER),h.set(32,f.SPACEBAR),h.set(33,f.PAGE_UP),h.set(34,f.PAGE_DOWN),h.set(35,f.END),h.set(36,f.HOME),h.set(37,f.ARROW_LEFT),h.set(38,f.ARROW_UP),h.set(39,f.ARROW_RIGHT),h.set(40,f.ARROW_DOWN),h.set(46,f.DELETE),h.set(27,f.ESCAPE);var b=new Set;function g(d){var m=d.key;if(p.has(m))return m;var u=h.get(d.keyCode);return u||f.UNKNOWN}b.add(f.PAGE_UP),b.add(f.PAGE_DOWN),b.add(f.END),b.add(f.HOME),b.add(f.ARROW_LEFT),b.add(f.ARROW_UP),b.add(f.ARROW_RIGHT),b.add(f.ARROW_DOWN),u.d(m,{_:()=>f,l5:()=>g})},9974(d,m,u){"use strict";function f(d,m){if(d.closest)return d.closest(m);for(var u=d;u;){if(p(u,m))return u;u=u.parentElement}return null}function p(d,m){return(d.matches||d.webkitMatchesSelector||d.msMatchesSelector).call(d,m)}function h(d){if(null!==d.offsetParent)return d.scrollWidth;var m=d.cloneNode(!0);m.style.setProperty("position","absolute"),m.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(m);var u=m.scrollWidth;return document.documentElement.removeChild(m),u}u.d(m,{cK:()=>p,et:()=>h,kp:()=>f})},8042(d,m,u){"use strict";var f=u(1387),p=u(3992),h=u(9974),b=u(5448),g=u(6714),v=function(d){function m(){return null!==d&&d.apply(this,arguments)||this}return(0,f.C6)(m,d),Object.defineProperty(m.prototype,"vertical",{set:function(d){this.foundation.setVerticalOrientation(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+b.Y7.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"wrapFocus",{set:function(d){this.foundation.setWrapFocus(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hasTypeahead",{set:function(d){this.foundation.setHasTypeahead(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"singleSelection",{set:function(d){this.foundation.setSingleSelection(d)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(d){this.foundation.setSelectedIndex(d)},enumerable:!0,configurable:!0}),m.attachTo=function(d){return new m(d)},m.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},m.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},m.prototype.layout=function(){var d=this.root.getAttribute(b.P$.ARIA_ORIENTATION);this.vertical=d!==b.P$.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(d){d.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(b.P$.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(d){return d.setAttribute("tabindex","-1")}),this.foundation.layout()},m.prototype.getPrimaryText=function(d){var m=d.querySelector("."+b.Y7.LIST_ITEM_PRIMARY_TEXT_CLASS);if(m)return m.textContent||"";var u=d.querySelector("."+b.Y7.LIST_ITEM_TEXT_CLASS);return u&&u.textContent||""},m.prototype.initializeListType=function(){var d=this,m=this.root.querySelectorAll(b.P$.ARIA_ROLE_CHECKBOX_SELECTOR),u=this.root.querySelector(b.P$.ARIA_CHECKED_RADIO_SELECTOR);if(m.length){var f=this.root.querySelectorAll(b.P$.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(f,function(m){return d.listElements.indexOf(m)})}else u&&(this.selectedIndex=this.listElements.indexOf(u))},m.prototype.setEnabled=function(d,m){this.foundation.setEnabled(d,m)},m.prototype.typeaheadMatchItem=function(d,m){return this.foundation.typeaheadMatchItem(d,m,!0)},m.prototype.getDefaultFoundation=function(){var d=this;return new g.Y({addClassForElementIndex:function(m,u){var f=d.listElements[m];f&&f.classList.add(u)},focusItemAtIndex:function(m){var u=d.listElements[m];u&&u.focus()},getAttributeForElementIndex:function(m,u){return d.listElements[m].getAttribute(u)},getFocusedElementIndex:function(){return d.listElements.indexOf(document.activeElement)},getListItemCount:function(){return d.listElements.length},getPrimaryTextAtIndex:function(m){return d.getPrimaryText(d.listElements[m])},hasCheckboxAtIndex:function(m){return!!d.listElements[m].querySelector(b.P$.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(m){return!!d.listElements[m].querySelector(b.P$.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(m){return d.listElements[m].querySelector(b.P$.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return d.root!==document.activeElement&&d.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===d.root},listItemAtIndexHasClass:function(m,u){return d.listElements[m].classList.contains(u)},notifyAction:function(m){d.emit(b.P$.ACTION_EVENT,{index:m},!0)},removeClassForElementIndex:function(m,u){var f=d.listElements[m];f&&f.classList.remove(u)},setAttributeForElementIndex:function(m,u,f){var p=d.listElements[m];p&&p.setAttribute(u,f)},setCheckedCheckboxOrRadioAtIndex:function(m,u){var f=d.listElements[m].querySelector(b.P$.CHECKBOX_RADIO_SELECTOR);f.checked=u;var p=document.createEvent("Event");p.initEvent("change",!0,!0),f.dispatchEvent(p)},setTabIndexForListItemChildren:function(m,u){var f=d.listElements[m];[].slice.call(f.querySelectorAll(b.P$.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(d){return d.setAttribute("tabindex",u)})}})},m.prototype.getListItemIndex_=function(d){var m=d.target,u=(0,h.kp)(m,"."+b.Y7.LIST_ITEM_CLASS+", ."+b.Y7.ROOT);return u&&(0,h.cK)(u,"."+b.Y7.LIST_ITEM_CLASS)?this.listElements.indexOf(u):-1},m.prototype.handleFocusInEvent_=function(d){var m=this.getListItemIndex_(d);this.foundation.handleFocusIn(d,m)},m.prototype.handleFocusOutEvent_=function(d){var m=this.getListItemIndex_(d);this.foundation.handleFocusOut(d,m)},m.prototype.handleKeydownEvent_=function(d){var m=this.getListItemIndex_(d),u=d.target;this.foundation.handleKeydown(d,u.classList.contains(b.Y7.LIST_ITEM_CLASS),m)},m.prototype.handleClickEvent_=function(d){var m=this.getListItemIndex_(d),u=d.target,f=!(0,h.cK)(u,b.P$.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(m,f)},m}(p.O);u.d(m,{f:()=>v})},5448(d,m,u){"use strict";var f={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},p={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+f.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+f.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+f.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+f.LIST_ITEM_CLASS+" a,\n ."+f.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+f.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},h={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};u.d(m,{P$:()=>p,Y7:()=>f,nL:()=>h})},6714(d,m,u){"use strict";u.d(m,{Y:()=>w});var f=u(1387),p=u(9531),h=u(618),b=u(5448),g=["input","button","textarea","select"],v=function(d){var m=d.target;if(m){var u=(""+m.tagName).toLowerCase();-1===g.indexOf(u)&&d.preventDefault()}};function _(d,m){var u,f=d.nextChar,p=d.focusItemAtIndex,h=d.sortedIndexByFirstChar,g=d.focusedItemIndex,v=d.skipFocus,_=d.isItemAtIndexDisabled;return clearTimeout(m.bufferClearTimeout),m.bufferClearTimeout=setTimeout(function(){F(m)},b.nL.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),m.typeaheadBuffer=m.typeaheadBuffer+f,-1===(u=1===m.typeaheadBuffer.length?function(d,m,u,f){var p,h=f.typeaheadBuffer[0],b=d.get(h);if(!b)return -1;if(h===f.currentFirstChar&&b[f.sortedIndexCursor].index===m){f.sortedIndexCursor=(f.sortedIndexCursor+1)%b.length;var g=b[f.sortedIndexCursor].index;if(!u(g))return g}f.currentFirstChar=h;var v=-1;for(p=0;p<b.length;p++)if(!u(b[p].index)){v=p;break}for(;p<b.length;p++)if(b[p].index>m&&!u(b[p].index)){v=p;break}return -1!==v?(f.sortedIndexCursor=v,b[f.sortedIndexCursor].index):-1}(h,g,_,m):function(d,m,u){var f=u.typeaheadBuffer[0],p=d.get(f);if(!p)return -1;var h=p[u.sortedIndexCursor];if(0===h.text.lastIndexOf(u.typeaheadBuffer,0)&&!m(h.index))return h.index;for(var b=(u.sortedIndexCursor+1)%p.length,g=-1;b!==u.sortedIndexCursor;){var v=p[b],_=0===v.text.lastIndexOf(u.typeaheadBuffer,0),y=!m(v.index);if(_&&y){g=b;break}b=(b+1)%p.length}return -1!==g?(u.sortedIndexCursor=g,p[u.sortedIndexCursor].index):-1}(h,_,m))||v||p(u),u}function y(d){return d.typeaheadBuffer.length>0}function F(d){d.typeaheadBuffer=""}function x(d,m){var u=d.event,f=d.isTargetListItem,p=d.focusedItemIndex,b=d.focusItemAtIndex,g=d.sortedIndexByFirstChar,F=d.isItemAtIndexDisabled,x="ArrowLeft"===(0,h.l5)(u),w="ArrowUp"===(0,h.l5)(u),E="ArrowRight"===(0,h.l5)(u),k="ArrowDown"===(0,h.l5)(u),A="Home"===(0,h.l5)(u),C="End"===(0,h.l5)(u),T="Enter"===(0,h.l5)(u),S="Spacebar"===(0,h.l5)(u);if(x||w||E||k||A||C||T)return -1;if(!S&&1===u.key.length){v(u);var I={focusItemAtIndex:b,focusedItemIndex:p,nextChar:u.key.toLowerCase(),sortedIndexByFirstChar:g,skipFocus:!1,isItemAtIndexDisabled:F};return _(I,m)}if(!S)return -1;if(f&&v(u),f&&y(m)){var I={focusItemAtIndex:b,focusedItemIndex:p,nextChar:" ",sortedIndexByFirstChar:g,skipFocus:!1,isItemAtIndexDisabled:F};return _(I,m)}return -1}var w=function(d){function m(u){var p=d.call(this,(0,f.Cl)((0,f.Cl)({},m.defaultAdapter),u))||this;return p.wrapFocus_=!1,p.isVertical_=!0,p.isSingleSelectionList_=!1,p.selectedIndex_=b.nL.UNSET_INDEX,p.focusedItemIndex=b.nL.UNSET_INDEX,p.useActivatedClass_=!1,p.useSelectedAttr_=!1,p.ariaCurrentAttrValue_=null,p.isCheckboxList_=!1,p.isRadioList_=!1,p.hasTypeahead=!1,p.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},p.sortedIndexByFirstChar=new Map,p}return(0,f.C6)(m,d),Object.defineProperty(m,"strings",{get:function(){return b.P$},enumerable:!0,configurable:!0}),Object.defineProperty(m,"cssClasses",{get:function(){return b.Y7},enumerable:!0,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return b.nL},enumerable:!0,configurable:!0}),Object.defineProperty(m,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),m.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},m.prototype.setWrapFocus=function(d){this.wrapFocus_=d},m.prototype.setVerticalOrientation=function(d){this.isVertical_=d},m.prototype.setSingleSelection=function(d){this.isSingleSelectionList_=d,d&&this.maybeInitializeSingleSelection()},m.prototype.maybeInitializeSingleSelection=function(){for(var d=0;d<this.adapter.getListItemCount();d++){var m=this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_SELECTED_CLASS),u=this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_ACTIVATED_CLASS);if(m||u){u&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=d;return}}},m.prototype.setHasTypeahead=function(d){this.hasTypeahead=d,d&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},m.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&y(this.typeaheadState)},m.prototype.setUseActivatedClass=function(d){this.useActivatedClass_=d},m.prototype.setUseSelectedAttribute=function(d){this.useSelectedAttr_=d},m.prototype.getSelectedIndex=function(){return this.selectedIndex_},m.prototype.setSelectedIndex=function(d){this.isIndexValid_(d)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(d):this.isRadioList_?this.setRadioAtIndex_(d):this.setSingleSelectionAtIndex_(d))},m.prototype.handleFocusIn=function(d,m){m>=0&&(this.focusedItemIndex=m,this.adapter.setAttributeForElementIndex(m,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(m,"0"))},m.prototype.handleFocusOut=function(d,m){var u=this;m>=0&&(this.adapter.setAttributeForElementIndex(m,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(m,"-1")),setTimeout(function(){u.adapter.isFocusInsideList()||u.setTabindexToFirstSelectedOrFocusedItem()},0)},m.prototype.handleKeydown=function(d,m,u){var f=this,p="ArrowLeft"===(0,h.l5)(d),g="ArrowUp"===(0,h.l5)(d),_="ArrowRight"===(0,h.l5)(d),y="ArrowDown"===(0,h.l5)(d),F="Home"===(0,h.l5)(d),w="End"===(0,h.l5)(d),E="Enter"===(0,h.l5)(d),k="Spacebar"===(0,h.l5)(d),A="A"===d.key||"a"===d.key;if(this.adapter.isRootFocused()){if(g||w?(d.preventDefault(),this.focusLastElement()):(y||F)&&(d.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var C={event:d,focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:-1,isTargetListItem:m,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}};x(C,this.typeaheadState)}return}var T=this.adapter.getFocusedElementIndex();if(-1!==T||!((T=u)<0)){if(this.isVertical_&&y||!this.isVertical_&&_)v(d),this.focusNextElement(T);else if(this.isVertical_&&g||!this.isVertical_&&p)v(d),this.focusPrevElement(T);else if(F)v(d),this.focusFirstElement();else if(w)v(d),this.focusLastElement();else if(A&&d.ctrlKey&&this.isCheckboxList_)d.preventDefault(),this.toggleAll(this.selectedIndex_===b.nL.UNSET_INDEX?[]:this.selectedIndex_);else if((E||k)&&m){var S=d.target;if(S&&"A"===S.tagName&&E||(v(d),this.adapter.listItemAtIndexHasClass(T,b.Y7.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(T),this.adapter.notifyAction(T))}if(this.hasTypeahead){var C={event:d,focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:m,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}};x(C,this.typeaheadState)}}},m.prototype.handleClick=function(d,m){d===b.nL.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(d,m),this.adapter.notifyAction(d))},m.prototype.focusNextElement=function(d){var m=this.adapter.getListItemCount(),u=d+1;if(u>=m)if(!this.wrapFocus_)return d;else u=0;return this.focusItemAtIndex(u),u},m.prototype.focusPrevElement=function(d){var m=d-1;if(m<0)if(!this.wrapFocus_)return d;else m=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(m),m},m.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},m.prototype.focusLastElement=function(){var d=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(d),d},m.prototype.focusInitialElement=function(){var d=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(d),d},m.prototype.setEnabled=function(d,m){this.isIndexValid_(d)&&(m?(this.adapter.removeClassForElementIndex(d,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(d,b.P$.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(d,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(d,b.P$.ARIA_DISABLED,"true")))},m.prototype.setSingleSelectionAtIndex_=function(d){if(this.selectedIndex_!==d){var m=b.Y7.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(m=b.Y7.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,m),this.setAriaForSingleSelectionAtIndex_(d),this.setTabindexAtIndex(d),d!==b.nL.UNSET_INDEX&&this.adapter.addClassForElementIndex(d,m),this.selectedIndex_=d}},m.prototype.setAriaForSingleSelectionAtIndex_=function(d){this.selectedIndex_===b.nL.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(d,b.P$.ARIA_CURRENT));var m=null!==this.ariaCurrentAttrValue_,u=m?b.P$.ARIA_CURRENT:b.P$.ARIA_SELECTED;if(this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,u,"false"),d!==b.nL.UNSET_INDEX){var f=m?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(d,u,f)}},m.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?b.P$.ARIA_SELECTED:b.P$.ARIA_CHECKED},m.prototype.setRadioAtIndex_=function(d){var m=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(d,!0),this.selectedIndex_!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,m,"false"),this.adapter.setAttributeForElementIndex(d,m,"true"),this.selectedIndex_=d},m.prototype.setCheckboxAtIndex_=function(d){for(var m=this.getSelectionAttribute(),u=0;u<this.adapter.getListItemCount();u++){var f=!1;d.indexOf(u)>=0&&(f=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,f),this.adapter.setAttributeForElementIndex(u,m,f?"true":"false")}this.selectedIndex_=d},m.prototype.setTabindexAtIndex=function(d){this.focusedItemIndex===b.nL.UNSET_INDEX&&0!==d?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==d&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===d||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),d!==b.nL.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(d,"tabindex","0")},m.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},m.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var d=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(d)},m.prototype.getFirstSelectedOrFocusedItemIndex=function(){var d=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==b.nL.UNSET_INDEX?d=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(d=this.selectedIndex_.reduce(function(d,m){return Math.min(d,m)}))),d},m.prototype.isIndexValid_=function(d){var m=this;if(d instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===d.length||d.some(function(d){return m.isIndexInRange_(d)})}if("number"!=typeof d)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+d);return this.isIndexInRange_(d)||this.isSingleSelectionList_&&d===b.nL.UNSET_INDEX},m.prototype.isIndexInRange_=function(d){var m=this.adapter.getListItemCount();return d>=0&&d<m},m.prototype.setSelectedIndexOnAction_=function(d,m){void 0===m&&(m=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(d,m):this.setSelectedIndex(d)},m.prototype.toggleCheckboxAtIndex_=function(d,m){var u=this.getSelectionAttribute(),f=this.adapter.isCheckboxCheckedAtIndex(d);m&&(f=!f,this.adapter.setCheckedCheckboxOrRadioAtIndex(d,f)),this.adapter.setAttributeForElementIndex(d,u,f?"true":"false");var p=this.selectedIndex_===b.nL.UNSET_INDEX?[]:this.selectedIndex_.slice();f?p.push(d):p=p.filter(function(m){return m!==d}),this.selectedIndex_=p},m.prototype.focusItemAtIndex=function(d){this.adapter.focusItemAtIndex(d),this.focusedItemIndex=d},m.prototype.toggleAll=function(d){var m=this.adapter.getListItemCount();if(d.length===m)this.setCheckboxAtIndex_([]);else{for(var u=[],f=0;f<m;f++)(!this.adapter.listItemAtIndexHasClass(f,b.Y7.LIST_ITEM_DISABLED_CLASS)||d.indexOf(f)>-1)&&u.push(f);this.setCheckboxAtIndex_(u)}},m.prototype.typeaheadMatchItem=function(d,m,u){var f=this;return void 0===u&&(u=!1),_({focusItemAtIndex:function(d){f.focusItemAtIndex(d)},focusedItemIndex:m||this.focusedItemIndex,nextChar:d,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:u,isItemAtIndexDisabled:function(d){return f.adapter.listItemAtIndexHasClass(d,b.Y7.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},m.prototype.typeaheadInitSortedIndex=function(){return function(d,m){for(var u=new Map,f=0;f<d;f++){var p=m(f).trim();if(p){var h=p[0].toLowerCase();u.has(h)||u.set(h,[]),u.get(h).push({text:p.toLowerCase(),index:f})}}return u.forEach(function(d){d.sort(function(d,m){return d.index-m.index})}),u}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},m.prototype.clearTypeaheadBuffer=function(){F(this.typeaheadState)},m}(p.I)},1387(d,m,u){"use strict";var f=function(d,m){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var u in m)m.hasOwnProperty(u)&&(d[u]=m[u])})(d,m)};function p(d,m){function u(){this.constructor=d}f(d,m),d.prototype=null===m?Object.create(m):(u.prototype=m.prototype,new u)}var h=function(){return(h=Object.assign||function(d){for(var m,u=1,f=arguments.length;u<f;u++)for(var p in m=arguments[u])Object.prototype.hasOwnProperty.call(m,p)&&(d[p]=m[p]);return d}).apply(this,arguments)};u.d(m,{C6:()=>p,Cl:()=>h})},3260(d){"use strict";let m=(async function(){}).constructor;d.exports=()=>m},7052(d){"use strict";let m=(async function*(){}).constructor;d.exports=()=>m},9630(d,m,u){"use strict";var f=u(469),p=u(24),h=u(1530);d.exports=u(7009)||f.call(h,p)},24(d){"use strict";d.exports=Function.prototype.apply},1530(d){"use strict";d.exports=Function.prototype.call},7196(d,m,u){"use strict";var f=u(469),p=u(6757),h=u(1530),b=u(9630);d.exports=function(d){if(d.length<1||"function"!=typeof d[0])throw new p("a function is required");return b(f,h,d)}},7009(d){"use strict";d.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8682(d,m,u){"use strict";var f=u(4295),p=u(7196),h=p([f("%String.prototype.indexOf%")]);d.exports=function(d,m){var u=f(d,!!m);return"function"==typeof u&&h(d,".prototype.")>-1?p([u]):u}},714(d,m,u){"use strict";var f,p=u(7196),h=u(1233);try{f=[].__proto__===Array.prototype}catch(d){if(!d||"object"!=typeof d||!("code"in d)||"ERR_PROTO_ACCESS"!==d.code)throw d}var b=!!f&&h&&h(Object.prototype,"__proto__"),g=Object,v=g.getPrototypeOf;d.exports=b&&"function"==typeof b.get?p([b.get]):"function"==typeof v&&function(d){return v(null==d?d:g(d))}},9997(d){"use strict";var m=Object.defineProperty||!1;if(m)try{m({},"a",{value:1})}catch(d){m=!1}d.exports=m},155(d){"use strict";d.exports=EvalError},593(d){"use strict";d.exports=Error},7180(d){"use strict";d.exports=RangeError},9304(d){"use strict";d.exports=ReferenceError},1742(d){"use strict";d.exports=SyntaxError},6757(d){"use strict";d.exports=TypeError},4923(d){"use strict";d.exports=URIError},802(d){"use strict";d.exports=Object},9691(d){"use strict";var m=Object.prototype.toString,u=Math.max,f=function(d,m){for(var u=[],f=0;f<d.length;f+=1)u[f]=d[f];for(var p=0;p<m.length;p+=1)u[p+d.length]=m[p];return u},p=function(d,m){for(var u=[],f=m||0,p=0;f<d.length;f+=1,p+=1)u[p]=d[f];return u},h=function(d,m){for(var u="",f=0;f<d.length;f+=1)u+=d[f],f+1<d.length&&(u+=m);return u};d.exports=function(d){var b,g=this;if("function"!=typeof g||"[object Function]"!==m.apply(g))throw TypeError("Function.prototype.bind called on incompatible "+g);for(var v=p(arguments,1),_=u(0,g.length-v.length),y=[],F=0;F<_;F++)y[F]="$"+F;if(b=Function("binder","return function ("+h(y,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof b){var m=g.apply(this,f(v,arguments));return Object(m)===m?m:this}return g.apply(d,f(v,arguments))}),g.prototype){var x=function(){};x.prototype=g.prototype,b.prototype=new x,x.prototype=null}return b}},469(d,m,u){"use strict";var f=u(9691);d.exports=Function.prototype.bind||f},5175(d){"use strict";let m=(function*(){}).constructor;d.exports=()=>m},4295(d,m,u){"use strict";var f,p=u(802),h=u(593),b=u(155),g=u(7180),v=u(9304),_=u(1742),y=u(6757),F=u(4923),x=u(7256),w=u(5414),E=u(7954),k=u(3452),A=u(1358),C=u(5720),T=u(3515),S=u(1233),I=u(9997),O=function(){throw new y},D=S?function(){try{return arguments.callee,O}catch(d){try{return S(arguments,"callee").get}catch(d){return O}}}():O,R=u(8573)(),N=u(7582),B=u(2170),L=u(9090),P=u(24),M=u(1530),z={},U="u">typeof Uint8Array&&N?N(Uint8Array):f,j={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?f:ArrayBuffer,"%ArrayIteratorPrototype%":R&&N?N([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":"u"<typeof Atomics?f:Atomics,"%BigInt%":"u"<typeof BigInt?f:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?f:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h,"%eval%":eval,"%EvalError%":b,"%Float16Array%":"u"<typeof Float16Array?f:Float16Array,"%Float32Array%":"u"<typeof Float32Array?f:Float32Array,"%Float64Array%":"u"<typeof Float64Array?f:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?f:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":z,"%Int8Array%":"u"<typeof Int8Array?f:Int8Array,"%Int16Array%":"u"<typeof Int16Array?f:Int16Array,"%Int32Array%":"u"<typeof Int32Array?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&N?N(N([][Symbol.iterator]())):f,"%JSON%":"object"==typeof JSON?JSON:f,"%Map%":"u"<typeof Map?f:Map,"%MapIteratorPrototype%":"u">typeof Map&&R&&N?N(new Map()[Symbol.iterator]()):f,"%Math%":Math,"%Number%":Number,"%Object%":p,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?f:Promise,"%Proxy%":"u"<typeof Proxy?f:Proxy,"%RangeError%":g,"%ReferenceError%":v,"%Reflect%":"u"<typeof Reflect?f:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?f:Set,"%SetIteratorPrototype%":"u">typeof Set&&R&&N?N(new Set()[Symbol.iterator]()):f,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&N?N(""[Symbol.iterator]()):f,"%Symbol%":R?Symbol:f,"%SyntaxError%":_,"%ThrowTypeError%":D,"%TypedArray%":U,"%TypeError%":y,"%Uint8Array%":"u"<typeof Uint8Array?f:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?f:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?f:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?f:Uint32Array,"%URIError%":F,"%WeakMap%":"u"<typeof WeakMap?f:WeakMap,"%WeakRef%":"u"<typeof WeakRef?f:WeakRef,"%WeakSet%":"u"<typeof WeakSet?f:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":P,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":B,"%Math.abs%":x,"%Math.floor%":w,"%Math.max%":E,"%Math.min%":k,"%Math.pow%":A,"%Math.round%":C,"%Math.sign%":T,"%Reflect.getPrototypeOf%":L};if(N)try{null.error}catch(d){var V=N(N(d));j["%Error.prototype%"]=V}var $=u(3260),H=u(5175),q=u(7052),G=function d(m){var u;if("%AsyncFunction%"===m)u=$()||void 0;else if("%GeneratorFunction%"===m)u=H()||void 0;else if("%AsyncGeneratorFunction%"===m)u=q()||void 0;else if("%AsyncGenerator%"===m){var f=d("%AsyncGeneratorFunction%");f&&(u=f.prototype)}else if("%AsyncIteratorPrototype%"===m){var p=d("%AsyncGenerator%");p&&N&&(u=N(p.prototype))}return j[m]=u,u},Y={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},W=u(469),X=u(9731),K=W.call(M,Array.prototype.concat),J=W.call(P,Array.prototype.splice),Z=W.call(M,String.prototype.replace),Q=W.call(M,String.prototype.slice),ee=W.call(M,RegExp.prototype.exec),et=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,en=/\\(\\)?/g,ei=function(d){var m=Q(d,0,1),u=Q(d,-1);if("%"===m&&"%"!==u)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===u&&"%"!==m)throw new _("invalid intrinsic syntax, expected opening `%`");var f=[];return Z(d,et,function(d,m,u,p){f[f.length]=u?Z(p,en,"$1"):m||d}),f},eo=function(d,m){var u,f=d;if(X(Y,f)&&(f="%"+(u=Y[f])[0]+"%"),X(j,f)){var p=j[f];if(p===z&&(p=G(f)),void 0===p&&!m)throw new y("intrinsic "+d+" exists, but is not available. Please file an issue!");return{alias:u,name:f,value:p}}throw new _("intrinsic "+d+" does not exist!")};d.exports=function(d,m){if("string"!=typeof d||0===d.length)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof m)throw new y('"allowMissing" argument must be a boolean');if(null===ee(/^%?[^%]*%?$/,d))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var u=ei(d),f=u.length>0?u[0]:"",p=eo("%"+f+"%",m),h=p.name,b=p.value,g=!1,v=p.alias;v&&(f=v[0],J(u,K([0,1],v)));for(var F=1,x=!0;F<u.length;F+=1){var w=u[F],E=Q(w,0,1),k=Q(w,-1);if(('"'===E||"'"===E||"`"===E||'"'===k||"'"===k||"`"===k)&&E!==k)throw new _("property names with quotes must have matching quotes");if("constructor"!==w&&x||(g=!0),f+="."+w,X(j,h="%"+f+"%"))b=j[h];else if(null!=b){if(!(w in b)){if(!m)throw new y("base intrinsic for "+d+" exists, but the property is not available.");return}if(S&&F+1>=u.length){var A=S(b,w);b=(x=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:b[w]}else x=X(b,w),b=b[w];x&&!g&&(j[h]=b)}}return b}},2170(d,m,u){"use strict";d.exports=u(802).getPrototypeOf||null},9090(d){"use strict";d.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},7582(d,m,u){"use strict";var f=u(9090),p=u(2170),h=u(714);d.exports=f?function(d){return f(d)}:p?function(d){if(!d||"object"!=typeof d&&"function"!=typeof d)throw TypeError("getProto: not an object");return p(d)}:h?function(d){return h(d)}:null},1067(d){"use strict";d.exports=Object.getOwnPropertyDescriptor},1233(d,m,u){"use strict";var f=u(1067);if(f)try{f([],"length")}catch(d){f=null}d.exports=f},8573(d,m,u){"use strict";var f="u">typeof Symbol&&Symbol,p=u(9535);d.exports=function(){return"function"==typeof f&&"function"==typeof Symbol&&"symbol"==typeof f("foo")&&"symbol"==typeof Symbol("bar")&&p()}},9535(d){"use strict";d.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var d={},m=Symbol("test"),u=Object(m);if("string"==typeof m||"[object Symbol]"!==Object.prototype.toString.call(m)||"[object Symbol]"!==Object.prototype.toString.call(u))return!1;for(var f in d[m]=42,d)return!1;if("function"==typeof Object.keys&&0!==Object.keys(d).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(d).length)return!1;var p=Object.getOwnPropertySymbols(d);if(1!==p.length||p[0]!==m||!Object.prototype.propertyIsEnumerable.call(d,m))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(d,m);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},9731(d,m,u){"use strict";var f=Function.prototype.call,p=Object.prototype.hasOwnProperty;d.exports=u(469).call(f,p)},4954(d,m,u){!function(){"use strict";var m="input is invalid type",f="object"==typeof window,p=f?window:{};p.JS_SHA256_NO_WINDOW&&(f=!1);var h=!f&&"object"==typeof self,b=!p.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;b?p=u.g:h&&(p=self);var g=!p.JS_SHA256_NO_COMMON_JS&&d.exports,v="function"==typeof define&&define.amd,_=!p.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,y="0123456789abcdef".split(""),F=[-0x80000000,8388608,32768,128],x=[24,16,8,0],w=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],E=["hex","array","digest","arrayBuffer"],k=[];(p.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)}),_&&(p.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(d){return"object"==typeof d&&d.buffer&&d.buffer.constructor===ArrayBuffer});var A=function(d,m){return function(u){return new O(m,!0).update(u)[d]()}},C=function(d){var m=A("hex",d);b&&(m=T(m,d)),m.create=function(){return new O(d)},m.update=function(d){return m.create().update(d)};for(var u=0;u<E.length;++u){var f=E[u];m[f]=A(f,d)}return m},T=function(d,f){var h,b=u(7791),g=u(5610).Buffer,v=f?"sha224":"sha256";return h=g.from&&!p.JS_SHA256_NO_BUFFER_FROM?g.from:function(d){return new g(d)},function(u){if("string"==typeof u)return b.createHash(v).update(u,"utf8").digest("hex");if(null==u)throw Error(m);return u.constructor===ArrayBuffer&&(u=new Uint8Array(u)),Array.isArray(u)||ArrayBuffer.isView(u)||u.constructor===g?b.createHash(v).update(h(u)).digest("hex"):d(u)}},S=function(d,m){return function(u,f){return new D(u,m,!0).update(f)[d]()}},I=function(d){var m=S("hex",d);m.create=function(m){return new D(m,d)},m.update=function(d,u){return m.create(d).update(u)};for(var u=0;u<E.length;++u){var f=E[u];m[f]=S(f,d)}return m};function O(d,m){m?(k[0]=k[16]=k[1]=k[2]=k[3]=k[4]=k[5]=k[6]=k[7]=k[8]=k[9]=k[10]=k[11]=k[12]=k[13]=k[14]=k[15]=0,this.blocks=k):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=d}function D(d,u,f){var p,h=typeof d;if("string"===h){var b,g=[],v=d.length,y=0;for(p=0;p<v;++p)(b=d.charCodeAt(p))<128?g[y++]=b:(b<2048?g[y++]=192|b>>>6:(b<55296||b>=57344?g[y++]=224|b>>>12:(b=65536+((1023&b)<<10|1023&d.charCodeAt(++p)),g[y++]=240|b>>>18,g[y++]=128|b>>>12&63),g[y++]=128|b>>>6&63),g[y++]=128|63&b);d=g}else if("object"===h){if(null===d)throw Error(m);else if(_&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!_||!ArrayBuffer.isView(d)))throw Error(m)}else throw Error(m);d.length>64&&(d=new O(u,!0).update(d).array());var F=[],x=[];for(p=0;p<64;++p){var w=d[p]||0;F[p]=92^w,x[p]=54^w}O.call(this,u,f),this.update(x),this.oKeyPad=F,this.inner=!0,this.sharedMemory=f}O.prototype.update=function(d){if(!this.finalized){var u,f=typeof d;if("string"!==f){if("object"===f){if(null===d)throw Error(m);else if(_&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!_||!ArrayBuffer.isView(d)))throw Error(m)}else throw Error(m);u=!0}for(var p,h,b=0,g=d.length,v=this.blocks;b<g;){if(this.hashed&&(this.hashed=!1,v[0]=this.block,this.block=v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),u)for(h=this.start;b<g&&h<64;++b)v[h>>>2]|=d[b]<<x[3&h++];else for(h=this.start;b<g&&h<64;++b)(p=d.charCodeAt(b))<128?v[h>>>2]|=p<<x[3&h++]:(p<2048?v[h>>>2]|=(192|p>>>6)<<x[3&h++]:(p<55296||p>=57344?v[h>>>2]|=(224|p>>>12)<<x[3&h++]:(p=65536+((1023&p)<<10|1023&d.charCodeAt(++b)),v[h>>>2]|=(240|p>>>18)<<x[3&h++],v[h>>>2]|=(128|p>>>12&63)<<x[3&h++]),v[h>>>2]|=(128|p>>>6&63)<<x[3&h++]),v[h>>>2]|=(128|63&p)<<x[3&h++]);this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.block=v[16],this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var d=this.blocks,m=this.lastByteIndex;d[16]=this.block,d[m>>>2]|=F[3&m],this.block=d[16],m>=56&&(this.hashed||this.hash(),d[0]=this.block,d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0),d[14]=this.hBytes<<3|this.bytes>>>29,d[15]=this.bytes<<3,this.hash()}},O.prototype.hash=function(){var d,m,u,f,p,h,b,g,v,_,y,F=this.h0,x=this.h1,E=this.h2,k=this.h3,A=this.h4,C=this.h5,T=this.h6,S=this.h7,I=this.blocks;for(d=16;d<64;++d)m=((p=I[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,u=((p=I[d-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,I[d]=I[d-16]+m+I[d-7]+u|0;for(y=x&E,d=0;d<64;d+=4)this.first?(this.is224?(g=300032,S=(p=I[0]-0x543c9a5b)-0x8f1a6c7|0,k=p+0x170e9b5|0):(g=0x2a01a605,S=(p=I[0]-0xc881298)-0x5ab00ac6|0,k=p+0x8909ae5|0),this.first=!1):(m=(F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10),u=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),f=(g=F&x)^F&E^y,p=S+u+(A&C^~A&T)+w[d]+I[d],h=m+f,S=k+p|0,k=p+h|0),m=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),u=(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7),f=(v=k&F)^k&x^g,p=T+u+(S&A^~S&C)+w[d+1]+I[d+1],h=m+f,T=E+p|0,m=((E=p+h|0)>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),u=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),f=(_=E&k)^E&F^v,p=C+u+(T&S^~T&A)+w[d+2]+I[d+2],h=m+f,C=x+p|0,m=((x=p+h|0)>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),u=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),f=(y=x&E)^x&k^_,p=A+u+(C&T^~C&S)+w[d+3]+I[d+3],h=m+f,A=F+p|0,F=p+h|0,this.chromeBugWorkAround=!0;this.h0=this.h0+F|0,this.h1=this.h1+x|0,this.h2=this.h2+E|0,this.h3=this.h3+k|0,this.h4=this.h4+A|0,this.h5=this.h5+C|0,this.h6=this.h6+T|0,this.h7=this.h7+S|0},O.prototype.hex=function(){this.finalize();var d=this.h0,m=this.h1,u=this.h2,f=this.h3,p=this.h4,h=this.h5,b=this.h6,g=this.h7,v=y[d>>>28&15]+y[d>>>24&15]+y[d>>>20&15]+y[d>>>16&15]+y[d>>>12&15]+y[d>>>8&15]+y[d>>>4&15]+y[15&d]+y[m>>>28&15]+y[m>>>24&15]+y[m>>>20&15]+y[m>>>16&15]+y[m>>>12&15]+y[m>>>8&15]+y[m>>>4&15]+y[15&m]+y[u>>>28&15]+y[u>>>24&15]+y[u>>>20&15]+y[u>>>16&15]+y[u>>>12&15]+y[u>>>8&15]+y[u>>>4&15]+y[15&u]+y[f>>>28&15]+y[f>>>24&15]+y[f>>>20&15]+y[f>>>16&15]+y[f>>>12&15]+y[f>>>8&15]+y[f>>>4&15]+y[15&f]+y[p>>>28&15]+y[p>>>24&15]+y[p>>>20&15]+y[p>>>16&15]+y[p>>>12&15]+y[p>>>8&15]+y[p>>>4&15]+y[15&p]+y[h>>>28&15]+y[h>>>24&15]+y[h>>>20&15]+y[h>>>16&15]+y[h>>>12&15]+y[h>>>8&15]+y[h>>>4&15]+y[15&h]+y[b>>>28&15]+y[b>>>24&15]+y[b>>>20&15]+y[b>>>16&15]+y[b>>>12&15]+y[b>>>8&15]+y[b>>>4&15]+y[15&b];return this.is224||(v+=y[g>>>28&15]+y[g>>>24&15]+y[g>>>20&15]+y[g>>>16&15]+y[g>>>12&15]+y[g>>>8&15]+y[g>>>4&15]+y[15&g]),v},O.prototype.toString=O.prototype.hex,O.prototype.digest=function(){this.finalize();var d=this.h0,m=this.h1,u=this.h2,f=this.h3,p=this.h4,h=this.h5,b=this.h6,g=this.h7,v=[d>>>24&255,d>>>16&255,d>>>8&255,255&d,m>>>24&255,m>>>16&255,m>>>8&255,255&m,u>>>24&255,u>>>16&255,u>>>8&255,255&u,f>>>24&255,f>>>16&255,f>>>8&255,255&f,p>>>24&255,p>>>16&255,p>>>8&255,255&p,h>>>24&255,h>>>16&255,h>>>8&255,255&h,b>>>24&255,b>>>16&255,b>>>8&255,255&b];return this.is224||v.push(g>>>24&255,g>>>16&255,g>>>8&255,255&g),v},O.prototype.array=O.prototype.digest,O.prototype.arrayBuffer=function(){this.finalize();var d=new ArrayBuffer(this.is224?28:32),m=new DataView(d);return m.setUint32(0,this.h0),m.setUint32(4,this.h1),m.setUint32(8,this.h2),m.setUint32(12,this.h3),m.setUint32(16,this.h4),m.setUint32(20,this.h5),m.setUint32(24,this.h6),this.is224||m.setUint32(28,this.h7),d},D.prototype=new O,D.prototype.finalize=function(){if(O.prototype.finalize.call(this),this.inner){this.inner=!1;var d=this.array();O.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(d),O.prototype.finalize.call(this)}};var R=C();R.sha256=R,R.sha224=C(!0),R.sha256.hmac=I(),R.sha224.hmac=I(!0),g?d.exports=R:(p.sha256=R.sha256,p.sha224=R.sha224,v&&define(function(){return R}))}()},2051(d,m,u){var f=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,v="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,_="object"==typeof self&&self&&self.Object===Object&&self,y=v||_||Function("return this")(),F=Object.prototype.toString,x=Math.max,w=Math.min,E=function(){return y.Date.now()};function k(d){var m=typeof d;return!!d&&("object"==m||"function"==m)}function A(d){if("number"==typeof d)return d;if("symbol"==typeof(m=d)||m&&"object"==typeof m&&"[object Symbol]"==F.call(m))return 0/0;if(k(d)){var m,u="function"==typeof d.valueOf?d.valueOf():d;d=k(u)?u+"":u}if("string"!=typeof d)return 0===d?d:+d;d=d.replace(f,"");var v=h.test(d);return v||b.test(d)?g(d.slice(2),v?2:8):p.test(d)?0/0:+d}d.exports=function(d,m,u){var f,p,h,b,g,v,_=0,y=!1,F=!1,C=!0;if("function"!=typeof d)throw TypeError("Expected a function");function T(m){var u=f,h=p;return f=p=void 0,_=m,b=d.apply(h,u)}function S(d){var u=d-v,f=d-_;return void 0===v||u>=m||u<0||F&&f>=h}function I(){var d,u,f,p=E();if(S(p))return O(p);g=setTimeout(I,(d=p-v,u=p-_,f=m-d,F?w(f,h-u):f))}function O(d){return(g=void 0,C&&f)?T(d):(f=p=void 0,b)}function D(){var d,u=E(),h=S(u);if(f=arguments,p=this,v=u,h){if(void 0===g)return _=d=v,g=setTimeout(I,m),y?T(d):b;if(F)return g=setTimeout(I,m),T(v)}return void 0===g&&(g=setTimeout(I,m)),b}return m=A(m)||0,k(u)&&(y=!!u.leading,h=(F="maxWait"in u)?x(A(u.maxWait)||0,m):h,C="trailing"in u?!!u.trailing:C),D.cancel=function(){void 0!==g&&clearTimeout(g),_=0,f=v=p=g=void 0},D.flush=function(){return void 0===g?b:O(E())},D}},3472(d,m,u){d=u.nmd(d);var f,p="__lodash_hash_undefined__",h="[object Arguments]",b="[object Array]",g="[object Boolean]",v="[object Date]",_="[object Error]",y="[object Function]",F="[object Map]",x="[object Number]",w="[object Object]",E="[object Promise]",k="[object RegExp]",A="[object Set]",C="[object String]",T="[object Symbol]",S="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,N=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,P=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z[h]=z[b]=z[I]=z[g]=z[O]=z[v]=z[_]=z[y]=z[F]=z[x]=z[w]=z[k]=z[A]=z[C]=z[S]=!1;var U="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,j="object"==typeof self&&self&&self.Object===Object&&self,V=U||j||Function("return this")(),$=m&&!m.nodeType&&m,H=$&&d&&!d.nodeType&&d,q=H&&H.exports===$&&U.process,G=function(){try{return q&&q.binding("util")}catch(d){}}(),Y=G&&G.isTypedArray;function W(d){var m=!1;if(null!=d&&"function"!=typeof d.toString)try{m=!!(d+"")}catch(d){}return m}function X(d){var m=-1,u=Array(d.size);return d.forEach(function(d,f){u[++m]=[f,d]}),u}function K(d,m){return function(u){return d(m(u))}}function J(d){var m=-1,u=Array(d.size);return d.forEach(function(d){u[++m]=d}),u}var Z=Array.prototype,Q=Function.prototype,ee=Object.prototype,et=V["__core-js_shared__"],en=(f=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",ei=Q.toString,eo=ee.hasOwnProperty,er=ee.toString,ea=RegExp("^"+ei.call(eo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),es=V.Symbol,el=V.Uint8Array,ec=K(Object.getPrototypeOf,Object),ed=Object.create,em=ee.propertyIsEnumerable,eu=Z.splice,ef=K(Object.keys,Object),ep=eU(V,"DataView"),eh=eU(V,"Map"),eb=eU(V,"Promise"),eg=eU(V,"Set"),ev=eU(V,"WeakMap"),e_=eU(Object,"create"),ey=eY(ep),eF=eY(eh),ex=eY(eb),ew=eY(eg),eE=eY(ev),ek=es?es.prototype:void 0,eA=ek?ek.valueOf:void 0,eC=ek?ek.toString:void 0;function eT(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eS(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eI(d){var m=-1,u=d?d.length:0;for(this.clear();++m<u;){var f=d[m];this.set(f[0],f[1])}}function eO(d){var m=-1,u=d?d.length:0;for(this.__data__=new eI;++m<u;)this.add(d[m])}function eD(d){this.__data__=new eS(d)}function eR(d,m){for(var u=d.length;u--;)if(eX(d[u][0],m))return u;return -1}eT.prototype.clear=function(){this.__data__=e_?e_(null):{}},eT.prototype.delete=function(d){return this.has(d)&&delete this.__data__[d]},eT.prototype.get=function(d){var m=this.__data__;if(e_){var u=m[d];return u===p?void 0:u}return eo.call(m,d)?m[d]:void 0},eT.prototype.has=function(d){var m=this.__data__;return e_?void 0!==m[d]:eo.call(m,d)},eT.prototype.set=function(d,m){return this.__data__[d]=e_&&void 0===m?p:m,this},eS.prototype.clear=function(){this.__data__=[]},eS.prototype.delete=function(d){var m=this.__data__,u=eR(m,d);return!(u<0)&&(u==m.length-1?m.pop():eu.call(m,u,1),!0)},eS.prototype.get=function(d){var m=this.__data__,u=eR(m,d);return u<0?void 0:m[u][1]},eS.prototype.has=function(d){return eR(this.__data__,d)>-1},eS.prototype.set=function(d,m){var u=this.__data__,f=eR(u,d);return f<0?u.push([d,m]):u[f][1]=m,this},eI.prototype.clear=function(){this.__data__={hash:new eT,map:new(eh||eS),string:new eT}},eI.prototype.delete=function(d){return ez(this,d).delete(d)},eI.prototype.get=function(d){return ez(this,d).get(d)},eI.prototype.has=function(d){return ez(this,d).has(d)},eI.prototype.set=function(d,m){return ez(this,d).set(d,m),this},eO.prototype.add=eO.prototype.push=function(d){return this.__data__.set(d,p),this},eO.prototype.has=function(d){return this.__data__.has(d)},eD.prototype.clear=function(){this.__data__=new eS},eD.prototype.delete=function(d){return this.__data__.delete(d)},eD.prototype.get=function(d){return this.__data__.get(d)},eD.prototype.has=function(d){return this.__data__.has(d)},eD.prototype.set=function(d,m){var u=this.__data__;if(u instanceof eS){var f=u.__data__;if(!eh||f.length<199)return f.push([d,m]),this;u=this.__data__=new eI(f)}return u.set(d,m),this};var eN=function(d,m,u){for(var f=-1,p=Object(d),h=u(d),b=h.length;b--;){var g=h[++f];if(!1===m(p[g],g,p))break}return d};function eB(d,m){var u;m=e$(m,d)?[m]:eJ(u=m)?u:eq(u);for(var f=0,p=m.length;null!=d&&f<p;)d=d[eG(m[f++])];return f&&f==p?d:void 0}function eL(d,m){return null!=d&&m in Object(d)}function eP(d,m,u,f,p){return d===m||(null!=d&&null!=m&&(e1(d)||e2(m))?function(d,m,u,f,p,y){var E=eJ(d),S=eJ(m),D=b,R=b;E||(D=(D=ej(d))==h?w:D),S||(R=(R=ej(m))==h?w:R);var N=D==w&&!W(d),B=R==w&&!W(m),L=D==R;if(L&&!N)return y||(y=new eD),E||e4(d)?eM(d,m,u,f,p,y):function(d,m,u,f,p,h,b){switch(u){case O:if(d.byteLength!=m.byteLength||d.byteOffset!=m.byteOffset)break;d=d.buffer,m=m.buffer;case I:if(d.byteLength!=m.byteLength||!f(new el(d),new el(m)))break;return!0;case g:case v:case x:return eX(+d,+m);case _:return d.name==m.name&&d.message==m.message;case k:case C:return d==m+"";case F:var y=X;case A:var w=2&h;if(y||(y=J),d.size!=m.size&&!w)break;var E=b.get(d);if(E)return E==m;h|=1,b.set(d,m);var S=eM(y(d),y(m),f,p,h,b);return b.delete(d),S;case T:if(eA)return eA.call(d)==eA.call(m)}return!1}(d,m,D,u,f,p,y);if(!(2&p)){var P=N&&eo.call(d,"__wrapped__"),M=B&&eo.call(m,"__wrapped__");if(P||M){var z=P?d.value():d,U=M?m.value():m;return y||(y=new eD),u(z,U,f,p,y)}}return!!L&&(y||(y=new eD),function(d,m,u,f,p,h){var b=2&p,g=e3(d),v=g.length;if(v!=e3(m).length&&!b)return!1;for(var _=v;_--;){var y=g[_];if(!(b?y in m:eo.call(m,y)))return!1}var F=h.get(d);if(F&&h.get(m))return F==m;var x=!0;h.set(d,m),h.set(m,d);for(var w=b;++_<v;){var E=d[y=g[_]],k=m[y];if(f)var A=b?f(k,E,y,m,d,h):f(E,k,y,d,m,h);if(!(void 0===A?E===k||u(E,k,f,p,h):A)){x=!1;break}w||(w="constructor"==y)}if(x&&!w){var C=d.constructor,T=m.constructor;C!=T&&"constructor"in d&&"constructor"in m&&!("function"==typeof C&&C instanceof C&&"function"==typeof T&&T instanceof T)&&(x=!1)}return h.delete(d),h.delete(m),x}(d,m,u,f,p,y))}(d,m,eP,u,f,p):d!=d&&m!=m)}function eM(d,m,u,f,p,h){var b=2&p,g=d.length,v=m.length;if(g!=v&&!(b&&v>g))return!1;var _=h.get(d);if(_&&h.get(m))return _==m;var y=-1,F=!0,x=1&p?new eO:void 0;for(h.set(d,m),h.set(m,d);++y<g;){var w=d[y],E=m[y];if(f)var k=b?f(E,w,y,m,d,h):f(w,E,y,d,m,h);if(void 0!==k){if(k)continue;F=!1;break}if(x){if(!function(d,m){for(var u=-1,f=d?d.length:0;++u<f;)if(m(d[u],u,d))return!0;return!1}(m,function(d,m){if(!x.has(m)&&(w===d||u(w,d,f,p,h)))return x.add(m)})){F=!1;break}}else if(!(w===E||u(w,E,f,p,h))){F=!1;break}}return h.delete(d),h.delete(m),F}function ez(d,m){var u,f,p=d.__data__;return("string"==(f=typeof(u=m))||"number"==f||"symbol"==f||"boolean"==f?"__proto__"!==u:null===u)?p["string"==typeof m?"string":"hash"]:p.map}function eU(d,m){var u,f=null==d?void 0:d[m];return!(!e1(f)||(u=f,en&&en in u))&&(eQ(f)||W(f)?ea:P).test(eY(f))?f:void 0}var ej=function(d){return er.call(d)};function eV(d,m){return!!(m=null==m?0x1fffffffffffff:m)&&("number"==typeof d||M.test(d))&&d>-1&&d%1==0&&d<m}function e$(d,m){if(eJ(d))return!1;var u=typeof d;return!!("number"==u||"symbol"==u||"boolean"==u||null==d||e5(d))||R.test(d)||!D.test(d)||null!=m&&d in Object(m)}(ep&&ej(new ep(new ArrayBuffer(1)))!=O||eh&&ej(new eh)!=F||eb&&ej(eb.resolve())!=E||eg&&ej(new eg)!=A||ev&&ej(new ev)!=S)&&(ej=function(d){var m=er.call(d),u=m==w?d.constructor:void 0,f=u?eY(u):void 0;if(f)switch(f){case ey:return O;case eF:return F;case ex:return E;case ew:return A;case eE:return S}return m});function eH(d,m){return function(u){return null!=u&&u[d]===m&&(void 0!==m||d in Object(u))}}var eq=eW(function(d){d=null==(m=d)?"":function(d){if("string"==typeof d)return d;if(e5(d))return eC?eC.call(d):"";var m=d+"";return"0"==m&&1/d==-1/0?"-0":m}(m);var m,u=[];return N.test(d)&&u.push(""),d.replace(B,function(d,m,f,p){u.push(f?p.replace(L,"$1"):m||d)}),u});function eG(d){if("string"==typeof d||e5(d))return d;var m=d+"";return"0"==m&&1/d==-1/0?"-0":m}function eY(d){if(null!=d){try{return ei.call(d)}catch(d){}try{return d+""}catch(d){}}return""}function eW(d,m){if("function"!=typeof d||m&&"function"!=typeof m)throw TypeError("Expected a function");var u=function(){var f=arguments,p=m?m.apply(this,f):f[0],h=u.cache;if(h.has(p))return h.get(p);var b=d.apply(this,f);return u.cache=h.set(p,b),b};return u.cache=new(eW.Cache||eI),u}function eX(d,m){return d===m||d!=d&&m!=m}function eK(d){var m;return e2(m=d)&&eZ(m)&&eo.call(d,"callee")&&(!em.call(d,"callee")||er.call(d)==h)}eW.Cache=eI;var eJ=Array.isArray;function eZ(d){return null!=d&&e0(d.length)&&!eQ(d)}function eQ(d){var m=e1(d)?er.call(d):"";return m==y||"[object GeneratorFunction]"==m}function e0(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=0x1fffffffffffff}function e1(d){var m=typeof d;return!!d&&("object"==m||"function"==m)}function e2(d){return!!d&&"object"==typeof d}function e5(d){return"symbol"==typeof d||e2(d)&&er.call(d)==T}var e4=Y?function(d){return Y(d)}:function(d){return e2(d)&&e0(d.length)&&!!z[er.call(d)]};function e3(d){return eZ(d)?function(d){var m=eJ(d)||eK(d)?function(d,m){for(var u=-1,f=Array(d);++u<d;)f[u]=m(u);return f}(d.length,String):[],u=m.length,f=!!u;for(var p in d)eo.call(d,p)&&!(f&&("length"==p||eV(p,u)))&&m.push(p);return m}(d):function(d){if(u=(m=d)&&m.constructor,m!==("function"==typeof u&&u.prototype||ee))return ef(d);var m,u,f=[];for(var p in Object(d))eo.call(d,p)&&"constructor"!=p&&f.push(p);return f}(d)}function e6(d){return d}d.exports=function(d,m,u){var f=eJ(d)||e4(d);if(m="function"==typeof(_=m)?_:null==_?e6:"object"==typeof _?eJ(_)?(p=_[0],h=_[1],e$(p)&&(b=h)==b&&!e1(b)?eH(eG(p),h):function(d){var m,u,f,b,g,v=(m=d,u=p,void 0===(f=null==m?void 0:eB(m,u))?void 0:f);return void 0===v&&v===h?(b=d,g=p,null!=b&&function(d,m,u){m=e$(m,d)?[m]:eJ(f=m)?f:eq(f);for(var f,p,h=-1,b=m.length;++h<b;){var g=eG(m[h]);if(!(p=null!=d&&u(d,g)))break;d=d[g]}if(p)return p;var b=d?d.length:0;return!!b&&e0(b)&&eV(g,b)&&(eJ(d)||eK(d))}(b,g,eL)):eP(h,v,void 0,3)}):1==(v=function(d){for(var m=e3(d),u=m.length;u--;){var f,p=m[u],h=d[p];m[u]=[p,h,(f=h)==f&&!e1(f)]}return m}(g=_)).length&&v[0][2]?eH(v[0][0],v[0][1]):function(d){return d===g||function(d,m){var u=m.length,f=u;if(null==d)return!f;for(d=Object(d);u--;){var p=m[u];if((0,p[2])?p[1]!==d[p[0]]:!(p[0]in d))return!1}for(;++u<f;){var h=(p=m[u])[0],b=d[h],g=p[1];if(0,p[2]){if(void 0===b&&!(h in d))return!1}else{var v,_=new eD;if(!(void 0===v?eP(g,b,void 0,3,_):v))return!1}}return!0}(d,v)}:function(d){var m;return e$(d)?(m=eG(d),function(d){return null==d?void 0:d[m]}):function(m){return eB(m,d)}}(_),null==u)if(f||e1(d)){var p,h,b,g,v,_,y,F=d.constructor;u=f?eJ(d)?new F:[]:eQ(F)&&e1(y=ec(d))?ed(y):{}}else u={};return(f?function(d,m){for(var u=-1,f=d?d.length:0;++u<f&&!1!==m(d[u],u,d););return d}:function(d,m){return d&&eN(d,m,e3)})(d,function(d,f,p){return m(u,d,f,p)}),u}},7256(d){"use strict";d.exports=Math.abs},5414(d){"use strict";d.exports=Math.floor},981(d){"use strict";d.exports=Number.isNaN||function(d){return d!=d}},7954(d){"use strict";d.exports=Math.max},3452(d){"use strict";d.exports=Math.min},1358(d){"use strict";d.exports=Math.pow},5720(d){"use strict";d.exports=Math.round},3515(d,m,u){"use strict";var f=u(981);d.exports=function(d){return f(d)||0===d?d:d<0?-1:1}},4867(d,m,u){d=u.nmd(d),d.exports=function(){"use strict";function m(){return J.apply(null,arguments)}function f(d){return d instanceof Array||"[object Array]"===Object.prototype.toString.call(d)}function p(d){return null!=d&&"[object Object]"===Object.prototype.toString.call(d)}function h(d,m){return Object.prototype.hasOwnProperty.call(d,m)}function b(d){var m;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(d).length;for(m in d)if(h(d,m))return!1;return!0}function g(d){return void 0===d}function v(d){return"number"==typeof d||"[object Number]"===Object.prototype.toString.call(d)}function _(d){return d instanceof Date||"[object Date]"===Object.prototype.toString.call(d)}function y(d,m){var u,f=[],p=d.length;for(u=0;u<p;++u)f.push(m(d[u],u));return f}function F(d,m){for(var u in m)h(m,u)&&(d[u]=m[u]);return h(m,"toString")&&(d.toString=m.toString),h(m,"valueOf")&&(d.valueOf=m.valueOf),d}function x(d,m,u,f){return th(d,m,u,f,!0).utc()}function w(d){return null==d._pf&&(d._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),d._pf}function E(d){var m=null,u=!1,f=d._d&&!isNaN(d._d.getTime());return(f&&(m=w(d),u=Z.call(m.parsedDateParts,function(d){return null!=d}),f=m.overflow<0&&!m.empty&&!m.invalidEra&&!m.invalidMonth&&!m.invalidWeekday&&!m.weekdayMismatch&&!m.nullInput&&!m.invalidFormat&&!m.userInvalidated&&(!m.meridiem||m.meridiem&&u),d._strict&&(f=f&&0===m.charsLeftOver&&0===m.unusedTokens.length&&void 0===m.bigHour)),null!=Object.isFrozen&&Object.isFrozen(d))?f:(d._isValid=f,d._isValid)}function k(d){var m=x(0/0);return null!=d?F(w(m),d):w(m).userInvalidated=!0,m}Z=Array.prototype.some?Array.prototype.some:function(d){var m,u=Object(this),f=u.length>>>0;for(m=0;m<f;m++)if(m in u&&d.call(this,u[m],m,u))return!0;return!1};var A,C,T=m.momentProperties=[],S=!1;function I(d,m){var u,f,p,h=T.length;if(g(m._isAMomentObject)||(d._isAMomentObject=m._isAMomentObject),g(m._i)||(d._i=m._i),g(m._f)||(d._f=m._f),g(m._l)||(d._l=m._l),g(m._strict)||(d._strict=m._strict),g(m._tzm)||(d._tzm=m._tzm),g(m._isUTC)||(d._isUTC=m._isUTC),g(m._offset)||(d._offset=m._offset),g(m._pf)||(d._pf=w(m)),g(m._locale)||(d._locale=m._locale),h>0)for(u=0;u<h;u++)g(p=m[f=T[u]])||(d[f]=p);return d}function O(d){I(this,d),this._d=new Date(null!=d._d?d._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===S&&(S=!0,m.updateOffset(this),S=!1)}function D(d){return d instanceof O||null!=d&&null!=d._isAMomentObject}function R(d){!1===m.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+d)}function N(d,u){var f=!0;return F(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,d),f){var p,b,g,v=[],_=arguments.length;for(b=0;b<_;b++){if(p="","object"==typeof arguments[b]){for(g in p+="\n["+b+"] ",arguments[0])h(arguments[0],g)&&(p+=g+": "+arguments[0][g]+", ");p=p.slice(0,-2)}else p=arguments[b];v.push(p)}R(d+"\nArguments: "+Array.prototype.slice.call(v).join("")+"\n"+Error().stack),f=!1}return u.apply(this,arguments)},u)}var B={};function L(d,u){null!=m.deprecationHandler&&m.deprecationHandler(d,u),B[d]||(R(u),B[d]=!0)}function P(d){return"u">typeof Function&&d instanceof Function||"[object Function]"===Object.prototype.toString.call(d)}function M(d,m){var u,f=F({},d);for(u in m)h(m,u)&&(p(d[u])&&p(m[u])?(f[u]={},F(f[u],d[u]),F(f[u],m[u])):null!=m[u]?f[u]=m[u]:delete f[u]);for(u in d)h(d,u)&&!h(m,u)&&p(d[u])&&(f[u]=F({},f[u]));return f}function z(d){null!=d&&this.set(d)}function U(d,m,u){var f=""+Math.abs(d);return(d>=0?u?"+":"":"-")+Math.pow(10,Math.max(0,m-f.length)).toString().substr(1)+f}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},H={};function q(d,m,u,f){var p=f;"string"==typeof f&&(p=function(){return this[f]()}),d&&(H[d]=p),m&&(H[m[0]]=function(){return U(p.apply(this,arguments),m[1],m[2])}),u&&(H[u]=function(){return this.localeData().ordinal(p.apply(this,arguments),d)})}function G(d,m){return d.isValid()?($[m=Y(m,d.localeData())]=$[m]||function(d){var m,u,f,p=d.match(j);for(u=0,f=p.length;u<f;u++)H[p[u]]?p[u]=H[p[u]]:p[u]=(m=p[u]).match(/\[[\s\S]/)?m.replace(/^\[|\]$/g,""):m.replace(/\\/g,"");return function(m){var u,h="";for(u=0;u<f;u++)h+=P(p[u])?p[u].call(m,d):p[u];return h}}(m),$[m](d)):d.localeData().invalidDate()}function Y(d,m){var u=5;function f(d){return m.longDateFormat(d)||d}for(V.lastIndex=0;u>=0&&V.test(d);)d=d.replace(V,f),V.lastIndex=0,u-=1;return d}var W={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function X(d){return"string"==typeof d?W[d]||W[d.toLowerCase()]:void 0}function K(d){var m,u,f={};for(u in d)h(d,u)&&(m=X(u))&&(f[m]=d[u]);return f}var J,Z,Q,ee={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},et=Object.keys?Object.keys:function(d){var m,u=[];for(m in d)h(d,m)&&u.push(m);return u},en=/\d/,ei=/\d\d/,eo=/\d{3}/,er=/\d{4}/,ea=/[+-]?\d{6}/,es=/\d\d?/,el=/\d\d\d\d?/,ec=/\d\d\d\d\d\d?/,ed=/\d{1,3}/,em=/\d{1,4}/,eu=/[+-]?\d{1,6}/,ef=/\d+/,ep=/[+-]?\d+/,eh=/Z|[+-]\d\d:?\d\d/gi,eb=/Z|[+-]\d\d(?::?\d\d)?/gi,eg=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ev=/^[1-9]\d?/,e_=/^([1-9]\d|\d)/;function ey(d,m,u){Q[d]=P(m)?m:function(d,f){return d&&u?u:m}}function eF(d){return d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ex(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ew(d){var m=+d,u=0;return 0!==m&&isFinite(m)&&(u=ex(m)),u}Q={};var eE={};function ek(d,m){var u,f,p=m;for("string"==typeof d&&(d=[d]),v(m)&&(p=function(d,u){u[m]=ew(d)}),f=d.length,u=0;u<f;u++)eE[d[u]]=p}function eA(d,m){ek(d,function(d,u,f,p){f._w=f._w||{},m(d,f._w,f,p)})}function eC(d){return d%4==0&&d%100!=0||d%400==0}function eT(d){return eC(d)?366:365}q("Y",0,0,function(){var d=this.year();return d<=9999?U(d,4):"+"+d}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),ey("Y",ep),ey("YY",es,ei),ey("YYYY",em,er),ey("YYYYY",eu,ea),ey("YYYYYY",eu,ea),ek(["YYYYY","YYYYYY"],0),ek("YYYY",function(d,u){u[0]=2===d.length?m.parseTwoDigitYear(d):ew(d)}),ek("YY",function(d,u){u[0]=m.parseTwoDigitYear(d)}),ek("Y",function(d,m){m[0]=parseInt(d,10)}),m.parseTwoDigitYear=function(d){return ew(d)+(ew(d)>68?1900:2e3)};var eS=eI("FullYear",!0);function eI(d,u){return function(f){return null!=f?(eD(this,d,f),m.updateOffset(this,u),this):eO(this,d)}}function eO(d,m){if(!d.isValid())return 0/0;var u=d._d,f=d._isUTC;switch(m){case"Milliseconds":return f?u.getUTCMilliseconds():u.getMilliseconds();case"Seconds":return f?u.getUTCSeconds():u.getSeconds();case"Minutes":return f?u.getUTCMinutes():u.getMinutes();case"Hours":return f?u.getUTCHours():u.getHours();case"Date":return f?u.getUTCDate():u.getDate();case"Day":return f?u.getUTCDay():u.getDay();case"Month":return f?u.getUTCMonth():u.getMonth();case"FullYear":return f?u.getUTCFullYear():u.getFullYear();default:return 0/0}}function eD(d,m,u){var f,p,h,b;if(!(!d.isValid()||isNaN(u))){switch(f=d._d,p=d._isUTC,m){case"Milliseconds":return void(p?f.setUTCMilliseconds(u):f.setMilliseconds(u));case"Seconds":return void(p?f.setUTCSeconds(u):f.setSeconds(u));case"Minutes":return void(p?f.setUTCMinutes(u):f.setMinutes(u));case"Hours":return void(p?f.setUTCHours(u):f.setHours(u));case"Date":return void(p?f.setUTCDate(u):f.setDate(u));case"FullYear":break;default:return}h=d.month(),b=d.date(),b=29!==b||1!==h||eC(u)?b:28,p?f.setUTCFullYear(u,h,b):f.setFullYear(u,h,b)}}function eR(d,m){if(isNaN(d)||isNaN(m))return 0/0;var u=(m%12+12)%12;return d+=(m-u)/12,1===u?eC(d)?29:28:31-u%7%2}eQ=Array.prototype.indexOf?Array.prototype.indexOf:function(d){var m;for(m=0;m<this.length;++m)if(this[m]===d)return m;return -1},q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(d){return this.localeData().monthsShort(this,d)}),q("MMMM",0,0,function(d){return this.localeData().months(this,d)}),ey("M",es,ev),ey("MM",es,ei),ey("MMM",function(d,m){return m.monthsShortRegex(d)}),ey("MMMM",function(d,m){return m.monthsRegex(d)}),ek(["M","MM"],function(d,m){m[1]=ew(d)-1}),ek(["MMM","MMMM"],function(d,m,u,f){var p=u._locale.monthsParse(d,f,u._strict);null!=p?m[1]=p:w(u).invalidMonth=d});var eN="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eB=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eL(d,m,u){var f,p,h,b=d.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],f=0;f<12;++f)h=x([2e3,f]),this._shortMonthsParse[f]=this.monthsShort(h,"").toLocaleLowerCase(),this._longMonthsParse[f]=this.months(h,"").toLocaleLowerCase();if(u)if("MMM"===m)return -1!==(p=eQ.call(this._shortMonthsParse,b))?p:null;else return -1!==(p=eQ.call(this._longMonthsParse,b))?p:null;return"MMM"===m?-1!==(p=eQ.call(this._shortMonthsParse,b))||-1!==(p=eQ.call(this._longMonthsParse,b))?p:null:-1!==(p=eQ.call(this._longMonthsParse,b))||-1!==(p=eQ.call(this._shortMonthsParse,b))?p:null}function eP(d,m){if(!d.isValid())return d;if("string"==typeof m){if(/^\d+$/.test(m))m=ew(m);else if(!v(m=d.localeData().monthsParse(m)))return d}var u=m,f=d.date();return f=f<29?f:Math.min(f,eR(d.year(),u)),d._isUTC?d._d.setUTCMonth(u,f):d._d.setMonth(u,f),d}function eM(d){return null!=d?(eP(this,d),m.updateOffset(this,!0),this):eO(this,"Month")}function ez(){function d(d,m){return m.length-d.length}var m,u,f,p,h=[],b=[],g=[];for(m=0;m<12;m++)u=x([2e3,m]),f=eF(this.monthsShort(u,"")),p=eF(this.months(u,"")),h.push(f),b.push(p),g.push(p),g.push(f);h.sort(d),b.sort(d),g.sort(d),this._monthsRegex=RegExp("^("+g.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+b.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+h.join("|")+")","i")}function eU(d,m,u,f,p,h,b){var g;return d<100&&d>=0?isFinite((g=new Date(d+400,m,u,f,p,h,b)).getFullYear())&&g.setFullYear(d):g=new Date(d,m,u,f,p,h,b),g}function ej(d){var m,u;return d<100&&d>=0?(u=Array.prototype.slice.call(arguments),u[0]=d+400,isFinite((m=new Date(Date.UTC.apply(null,u))).getUTCFullYear())&&m.setUTCFullYear(d)):m=new Date(Date.UTC.apply(null,arguments)),m}function eV(d,m,u){var f=7+m-u;return-((7+ej(d,0,f).getUTCDay()-m)%7)+f-1}function e$(d,m,u,f,p){var h,b,g=1+7*(m-1)+(7+u-f)%7+eV(d,f,p);return g<=0?b=eT(h=d-1)+g:g>eT(d)?(h=d+1,b=g-eT(d)):(h=d,b=g),{year:h,dayOfYear:b}}function eH(d,m,u){var f,p,h=eV(d.year(),m,u),b=Math.floor((d.dayOfYear()-h-1)/7)+1;return b<1?f=b+eq(p=d.year()-1,m,u):b>eq(d.year(),m,u)?(f=b-eq(d.year(),m,u),p=d.year()+1):(p=d.year(),f=b),{week:f,year:p}}function eq(d,m,u){var f=eV(d,m,u),p=eV(d+1,m,u);return(eT(d)-f+p)/7}function eG(d,m){return d.slice(m,7).concat(d.slice(0,m))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),ey("w",es,ev),ey("ww",es,ei),ey("W",es,ev),ey("WW",es,ei),eA(["w","ww","W","WW"],function(d,m,u,f){m[f.substr(0,1)]=ew(d)}),q("d",0,"do","day"),q("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),q("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),q("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),ey("d",es),ey("e",es),ey("E",es),ey("dd",function(d,m){return m.weekdaysMinRegex(d)}),ey("ddd",function(d,m){return m.weekdaysShortRegex(d)}),ey("dddd",function(d,m){return m.weekdaysRegex(d)}),eA(["dd","ddd","dddd"],function(d,m,u,f){var p=u._locale.weekdaysParse(d,f,u._strict);null!=p?m.d=p:w(u).invalidWeekday=d}),eA(["d","e","E"],function(d,m,u,f){m[f]=ew(d)});var eY="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eW(d,m,u){var f,p,h,b=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)h=x([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(h,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(h,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(h,"").toLocaleLowerCase();if(u)if("dddd"===m)return -1!==(p=eQ.call(this._weekdaysParse,b))?p:null;else if("ddd"===m)return -1!==(p=eQ.call(this._shortWeekdaysParse,b))?p:null;else return -1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null;return"dddd"===m?-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._shortWeekdaysParse,b))||-1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null:"ddd"===m?-1!==(p=eQ.call(this._shortWeekdaysParse,b))||-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._minWeekdaysParse,b))?p:null:-1!==(p=eQ.call(this._minWeekdaysParse,b))||-1!==(p=eQ.call(this._weekdaysParse,b))||-1!==(p=eQ.call(this._shortWeekdaysParse,b))?p:null}function eX(){function d(d,m){return m.length-d.length}var m,u,f,p,h,b=[],g=[],v=[],_=[];for(m=0;m<7;m++)u=x([2e3,1]).day(m),f=eF(this.weekdaysMin(u,"")),p=eF(this.weekdaysShort(u,"")),h=eF(this.weekdays(u,"")),b.push(f),g.push(p),v.push(h),_.push(f),_.push(p),_.push(h);b.sort(d),g.sort(d),v.sort(d),_.sort(d),this._weekdaysRegex=RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+v.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+b.join("|")+")","i")}function eK(){return this.hours()%12||12}function eJ(d,m){q(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),m)})}function eZ(d,m){return m._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,eK),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+eK.apply(this)+U(this.minutes(),2)}),q("hmmss",0,0,function(){return""+eK.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),eJ("a",!0),eJ("A",!1),ey("a",eZ),ey("A",eZ),ey("H",es,e_),ey("h",es,ev),ey("k",es,ev),ey("HH",es,ei),ey("hh",es,ei),ey("kk",es,ei),ey("hmm",el),ey("hmmss",ec),ey("Hmm",el),ey("Hmmss",ec),ek(["H","HH"],3),ek(["k","kk"],function(d,m,u){var f=ew(d);m[3]=24===f?0:f}),ek(["a","A"],function(d,m,u){u._isPm=u._locale.isPM(d),u._meridiem=d}),ek(["h","hh"],function(d,m,u){m[3]=ew(d),w(u).bigHour=!0}),ek("hmm",function(d,m,u){var f=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f)),w(u).bigHour=!0}),ek("hmmss",function(d,m,u){var f=d.length-4,p=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f,2)),m[5]=ew(d.substr(p)),w(u).bigHour=!0}),ek("Hmm",function(d,m,u){var f=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f))}),ek("Hmmss",function(d,m,u){var f=d.length-4,p=d.length-2;m[3]=ew(d.substr(0,f)),m[4]=ew(d.substr(f,2)),m[5]=ew(d.substr(p))});var eQ,e0,e1=eI("Hours",!0),e2={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eN,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eY,meridiemParse:/[ap]\.?m?\.?/i},e5={},e4={};function e3(d){return d?d.toLowerCase().replace("_","-"):d}function e6(m){var f=null;if(void 0===e5[m]&&d&&d.exports&&m&&m.match("^[^/\\\\]*$"))try{f=e0._abbr,u(3118)("./locale/"+m),e8(f)}catch(d){e5[m]=null}return e5[m]}function e8(d,m){var u;return d&&((u=g(m)?e9(d):e7(d,m))?e0=u:"u">typeof console&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),e0._abbr}function e7(d,m){if(null===m)return delete e5[d],null;var u,f=e2;if(m.abbr=d,null!=e5[d])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),f=e5[d]._config;else if(null!=m.parentLocale)if(null!=e5[m.parentLocale])f=e5[m.parentLocale]._config;else{if(null==(u=e6(m.parentLocale)))return e4[m.parentLocale]||(e4[m.parentLocale]=[]),e4[m.parentLocale].push({name:d,config:m}),null;f=u._config}return e5[d]=new z(M(f,m)),e4[d]&&e4[d].forEach(function(d){e7(d.name,d.config)}),e8(d),e5[d]}function e9(d){var m;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return e0;if(!f(d)){if(m=e6(d))return m;d=[d]}return function(d){for(var m,u,f,p,h=0;h<d.length;){for(m=(p=e3(d[h]).split("-")).length,u=(u=e3(d[h+1]))?u.split("-"):null;m>0;){if(f=e6(p.slice(0,m).join("-")))return f;if(u&&u.length>=m&&function(d,m){var u,f=Math.min(d.length,m.length);for(u=0;u<f;u+=1)if(d[u]!==m[u])return u;return f}(p,u)>=m-1)break;m--}h++}return e0}(d)}function te(d){var m,u=d._a;return u&&-2===w(d).overflow&&(m=u[1]<0||u[1]>11?1:u[2]<1||u[2]>eR(u[0],u[1])?2:u[3]<0||u[3]>24||24===u[3]&&(0!==u[4]||0!==u[5]||0!==u[6])?3:u[4]<0||u[4]>59?4:u[5]<0||u[5]>59?5:u[6]<0||u[6]>999?6:-1,w(d)._overflowDayOfYear&&(m<0||m>2)&&(m=2),w(d)._overflowWeeks&&-1===m&&(m=7),w(d)._overflowWeekday&&-1===m&&(m=8),w(d).overflow=m),d}var tt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ti=/Z|[+-]\d\d(?::?\d\d)?/,to=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ta=/^\/?Date\((-?\d+)/i,ts=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tc(d){var m,u,f,p,h,b,g=d._i,v=tt.exec(g)||tn.exec(g),_=to.length,y=tr.length;if(v){for(w(d).iso=!0,m=0,u=_;m<u;m++)if(to[m][1].exec(v[1])){p=to[m][0],f=!1!==to[m][2];break}if(null==p){d._isValid=!1;return}if(v[3]){for(m=0,u=y;m<u;m++)if(tr[m][1].exec(v[3])){h=(v[2]||" ")+tr[m][0];break}if(null==h){d._isValid=!1;return}}if(!f&&null!=h){d._isValid=!1;return}if(v[4])if(ti.exec(v[4]))b="Z";else{d._isValid=!1;return}d._f=p+(h||"")+(b||""),tf(d)}else d._isValid=!1}function td(d){var m,u,f,p,h,b,g,v,_,y,F,x=ts.exec(d._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(x){if(h=x[4],b=x[3],g=x[2],v=x[5],_=x[6],y=x[7],F=[(m=parseInt(h,10))<=49?2e3+m:m<=999?1900+m:m,eN.indexOf(b),parseInt(g,10),parseInt(v,10),parseInt(_,10)],y&&F.push(parseInt(y,10)),u=x[1],f=F,p=d,u&&eY.indexOf(u)!==new Date(f[0],f[1],f[2]).getDay()&&(w(p).weekdayMismatch=!0,p._isValid=!1,1))return;d._a=F,d._tzm=function(d,m,u){if(d)return tl[d];if(m)return 0;var f=parseInt(u,10),p=f%100;return(f-p)/100*60+p}(x[8],x[9],x[10]),d._d=ej.apply(null,d._a),d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),w(d).rfc2822=!0}else d._isValid=!1}function tm(d,m,u){return null!=d?d:null!=m?m:u}function tu(d){var u,f,p,h,b,g,v,_,y,F,x,E,k,A,C,T,S=[];if(!d._d){for(x=new Date(m.now()),A=d._useUTC?[x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()]:[x.getFullYear(),x.getMonth(),x.getDate()],d._w&&null==d._a[2]&&null==d._a[1]&&(u=d,null!=(f=u._w).GG||null!=f.W||null!=f.E?(g=1,v=4,p=tm(f.GG,u._a[0],eH(tb(),1,4).year),h=tm(f.W,1),((b=tm(f.E,1))<1||b>7)&&(y=!0)):(g=u._locale._week.dow,v=u._locale._week.doy,F=eH(tb(),g,v),p=tm(f.gg,u._a[0],F.year),h=tm(f.w,F.week),null!=f.d?((b=f.d)<0||b>6)&&(y=!0):null!=f.e?(b=f.e+g,(f.e<0||f.e>6)&&(y=!0)):b=g),h<1||h>eq(p,g,v)?w(u)._overflowWeeks=!0:null!=y?w(u)._overflowWeekday=!0:(_=e$(p,h,b,g,v),u._a[0]=_.year,u._dayOfYear=_.dayOfYear)),null!=d._dayOfYear&&(T=tm(d._a[0],A[0]),(d._dayOfYear>eT(T)||0===d._dayOfYear)&&(w(d)._overflowDayOfYear=!0),k=ej(T,0,d._dayOfYear),d._a[1]=k.getUTCMonth(),d._a[2]=k.getUTCDate()),E=0;E<3&&null==d._a[E];++E)d._a[E]=S[E]=A[E];for(;E<7;E++)d._a[E]=S[E]=null==d._a[E]?+(2===E):d._a[E];24===d._a[3]&&0===d._a[4]&&0===d._a[5]&&0===d._a[6]&&(d._nextDay=!0,d._a[3]=0),d._d=(d._useUTC?ej:eU).apply(null,S),C=d._useUTC?d._d.getUTCDay():d._d.getDay(),null!=d._tzm&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[3]=24),d._w&&void 0!==d._w.d&&d._w.d!==C&&(w(d).weekdayMismatch=!0)}}function tf(d){if(d._f===m.ISO_8601)return void tc(d);if(d._f===m.RFC_2822)return void td(d);d._a=[],w(d).empty=!0;var u,f,p,b,g,v,_,y,F,x,E,k=""+d._i,A=k.length,C=0;for(E=(_=Y(d._f,d._locale).match(j)||[]).length,g=0;g<E;g++)if(y=_[g],(v=(k.match(!h(Q,y)?new RegExp(eF(y.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,m,u,f,p){return m||u||f||p}))):Q[y](d._strict,d._locale))||[])[0])&&((F=k.substr(0,k.indexOf(v))).length>0&&w(d).unusedInput.push(F),k=k.slice(k.indexOf(v)+v.length),C+=v.length),H[y])v?w(d).empty=!1:w(d).unusedTokens.push(y),null!=v&&h(eE,y)&&eE[y](v,d._a,d,y);else d._strict&&!v&&w(d).unusedTokens.push(y);w(d).charsLeftOver=A-C,k.length>0&&w(d).unusedInput.push(k),d._a[3]<=12&&!0===w(d).bigHour&&d._a[3]>0&&(w(d).bigHour=void 0),w(d).parsedDateParts=d._a.slice(0),w(d).meridiem=d._meridiem,d._a[3]=(u=d._locale,f=d._a[3],null==(p=d._meridiem)?f:null!=u.meridiemHour?u.meridiemHour(f,p):(null!=u.isPM&&((b=u.isPM(p))&&f<12&&(f+=12),b||12!==f||(f=0)),f)),null!==(x=w(d).era)&&(d._a[0]=d._locale.erasConvertYear(x,d._a[0])),tu(d),te(d)}function tp(d){var u=d._i,h=d._f;return(d._locale=d._locale||e9(d._l),null===u||void 0===h&&""===u)?k({nullInput:!0}):("string"==typeof u&&(d._i=u=d._locale.preparse(u)),D(u))?new O(te(u)):(_(u)?d._d=u:f(h)?!function(d){var m,u,f,p,h,b,g=!1,v=d._f.length;if(0===v){w(d).invalidFormat=!0,d._d=new Date(0/0);return}for(p=0;p<v;p++)h=0,b=!1,m=I({},d),null!=d._useUTC&&(m._useUTC=d._useUTC),m._f=d._f[p],tf(m),E(m)&&(b=!0),h+=w(m).charsLeftOver,h+=10*w(m).unusedTokens.length,w(m).score=h,g?h<f&&(f=h,u=m):(null==f||h<f||b)&&(f=h,u=m,b&&(g=!0));F(d,u||m)}(d):h?tf(d):function(d){var u=d._i;if(g(u))d._d=new Date(m.now());else if(_(u))d._d=new Date(u.valueOf());else if("string"==typeof u)!function(d){var u=ta.exec(d._i);if(null!==u){d._d=new Date(+u[1]);return}tc(d),!1!==d._isValid||(delete d._isValid,td(d),!1===d._isValid&&(delete d._isValid,d._strict?d._isValid=!1:m.createFromInputFallback(d)))}(d);else if(f(u))d._a=y(u.slice(0),function(d){return parseInt(d,10)}),tu(d);else if(p(u)){if(!d._d){var h=K(d._i),b=void 0===h.day?h.date:h.day;d._a=y([h.year,h.month,b,h.hour,h.minute,h.second,h.millisecond],function(d){return d&&parseInt(d,10)}),tu(d)}}else v(u)?d._d=new Date(u):m.createFromInputFallback(d)}(d),E(d)||(d._d=null),d)}function th(d,m,u,h,g){var v,_={};return(!0===m||!1===m)&&(h=m,m=void 0),(!0===u||!1===u)&&(h=u,u=void 0),(p(d)&&b(d)||f(d)&&0===d.length)&&(d=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=g,_._l=u,_._i=d,_._f=m,_._strict=h,(v=new O(te(tp(_))))._nextDay&&(v.add(1,"d"),v._nextDay=void 0),v}function tb(d,m,u,f){return th(d,m,u,f,!1)}m.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(d){d._d=new Date(d._i+(d._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var tg=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var d=tb.apply(null,arguments);return this.isValid()&&d.isValid()?d<this?this:d:k()}),tv=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var d=tb.apply(null,arguments);return this.isValid()&&d.isValid()?d>this?this:d:k()});function t_(d,m){var u,p;if(1===m.length&&f(m[0])&&(m=m[0]),!m.length)return tb();for(u=m[0],p=1;p<m.length;++p)(!m[p].isValid()||m[p][d](u))&&(u=m[p]);return u}var ty=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tF(d){var m=K(d),u=m.year||0,f=m.quarter||0,p=m.month||0,b=m.week||m.isoWeek||0,g=m.day||0,v=m.hour||0,_=m.minute||0,y=m.second||0,F=m.millisecond||0;this._isValid=function(d){var m,u,f=!1,p=ty.length;for(m in d)if(h(d,m)&&!(-1!==eQ.call(ty,m)&&(null==d[m]||!isNaN(d[m]))))return!1;for(u=0;u<p;++u)if(d[ty[u]]){if(f)return!1;parseFloat(d[ty[u]])!==ew(d[ty[u]])&&(f=!0)}return!0}(m),this._milliseconds=+F+1e3*y+6e4*_+1e3*v*3600,this._days=+g+7*b,this._months=+p+3*f+12*u,this._data={},this._locale=e9(),this._bubble()}function tx(d){return d instanceof tF}function tw(d){return d<0?-1*Math.round(-1*d):Math.round(d)}function tE(d,m){q(d,0,0,function(){var d=this.utcOffset(),u="+";return d<0&&(d=-d,u="-"),u+U(~~(d/60),2)+m+U(~~d%60,2)})}tE("Z",":"),tE("ZZ",""),ey("Z",eb),ey("ZZ",eb),ek(["Z","ZZ"],function(d,m,u){u._useUTC=!0,u._tzm=tA(eb,d)});var tk=/([\+\-]|\d\d)/gi;function tA(d,m){var u,f,p=(m||"").match(d);return null===p?null:0===(f=+(60*(u=((p[p.length-1]||[])+"").match(tk)||["-",0,0])[1])+ew(u[2]))?0:"+"===u[0]?f:-f}function tC(d,u){var f,p;return u._isUTC?(f=u.clone(),p=(D(d)||_(d)?d.valueOf():tb(d).valueOf())-f.valueOf(),f._d.setTime(f._d.valueOf()+p),m.updateOffset(f,!1),f):tb(d).local()}function tT(d){return-Math.round(d._d.getTimezoneOffset())}function tS(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var tI=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tD(d,m){var u,f,p,b,g,_,y=d,F=null;return tx(d)?y={ms:d._milliseconds,d:d._days,M:d._months}:v(d)||!isNaN(+d)?(y={},m?y[m]=+d:y.milliseconds=+d):(F=tI.exec(d))?(b="-"===F[1]?-1:1,y={y:0,d:ew(F[2])*b,h:ew(F[3])*b,m:ew(F[4])*b,s:ew(F[5])*b,ms:ew(tw(1e3*F[6]))*b}):(F=tO.exec(d))?(b="-"===F[1]?-1:1,y={y:tR(F[2],b),M:tR(F[3],b),w:tR(F[4],b),d:tR(F[5],b),h:tR(F[6],b),m:tR(F[7],b),s:tR(F[8],b)}):null==y?y={}:"object"==typeof y&&("from"in y||"to"in y)&&(u=tb(y.from),f=tb(y.to),_=u.isValid()&&f.isValid()?(f=tC(f,u),u.isBefore(f)?p=tN(u,f):((p=tN(f,u)).milliseconds=-p.milliseconds,p.months=-p.months),p):{milliseconds:0,months:0},(y={}).ms=_.milliseconds,y.M=_.months),g=new tF(y),tx(d)&&h(d,"_locale")&&(g._locale=d._locale),tx(d)&&h(d,"_isValid")&&(g._isValid=d._isValid),g}function tR(d,m){var u=d&&parseFloat(d.replace(",","."));return(isNaN(u)?0:u)*m}function tN(d,m){var u={};return u.months=m.month()-d.month()+(m.year()-d.year())*12,d.clone().add(u.months,"M").isAfter(m)&&--u.months,u.milliseconds=m-d.clone().add(u.months,"M"),u}function tB(d,m){return function(u,f){var p;return null===f||isNaN(+f)||(L(m,"moment()."+m+"(period, number) is deprecated. Please use moment()."+m+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=u,u=f,f=p),tL(this,tD(u,f),d),this}}function tL(d,u,f,p){var h=u._milliseconds,b=tw(u._days),g=tw(u._months);d.isValid()&&(p=null==p||p,g&&eP(d,eO(d,"Month")+g*f),b&&eD(d,"Date",eO(d,"Date")+b*f),h&&d._d.setTime(d._d.valueOf()+h*f),p&&m.updateOffset(d,b||g))}tD.fn=tF.prototype,tD.invalid=function(){return tD(0/0)};var tP=tB(1,"add"),tM=tB(-1,"subtract");function tz(d){return"string"==typeof d||d instanceof String}function tU(d,m){if(d.date()<m.date())return-tU(m,d);var u,f,p=(m.year()-d.year())*12+(m.month()-d.month()),h=d.clone().add(p,"months");return f=m-h<0?(m-h)/(h-d.clone().add(p-1,"months")):(m-h)/(d.clone().add(p+1,"months")-h),-(p+f)||0}function tj(d){var m;return void 0===d?this._locale._abbr:(null!=(m=e9(d))&&(this._locale=m),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tV=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return void 0===d?this.localeData():this.locale(d)});function t$(){return this._locale}function tH(d,m,u){return d<100&&d>=0?new Date(d+400,m,u)-126227808e5:new Date(d,m,u).valueOf()}function tq(d,m,u){return d<100&&d>=0?Date.UTC(d+400,m,u)-126227808e5:Date.UTC(d,m,u)}function tG(d,m){return m.erasAbbrRegex(d)}function tY(){var d,m,u,f,p,h=[],b=[],g=[],v=[],_=this.eras();for(d=0,m=_.length;d<m;++d)u=eF(_[d].name),f=eF(_[d].abbr),p=eF(_[d].narrow),b.push(u),h.push(f),g.push(p),v.push(u),v.push(f),v.push(p);this._erasRegex=RegExp("^("+v.join("|")+")","i"),this._erasNameRegex=RegExp("^("+b.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+h.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+g.join("|")+")","i")}function tW(d,m){q(0,[d,d.length],0,m)}function tX(d,m,u,f,p){var h;return null==d?eH(this,f,p).year:(m>(h=eq(d,f,p))&&(m=h),tK.call(this,d,m,u,f,p))}function tK(d,m,u,f,p){var h=e$(d,m,u,f,p),b=ej(h.year,0,h.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),ey("N",tG),ey("NN",tG),ey("NNN",tG),ey("NNNN",function(d,m){return m.erasNameRegex(d)}),ey("NNNNN",function(d,m){return m.erasNarrowRegex(d)}),ek(["N","NN","NNN","NNNN","NNNNN"],function(d,m,u,f){var p=u._locale.erasParse(d,f,u._strict);p?w(u).era=p:w(u).invalidEra=d}),ey("y",ef),ey("yy",ef),ey("yyy",ef),ey("yyyy",ef),ey("yo",function(d,m){return m._eraYearOrdinalRegex||ef}),ek(["y","yy","yyy","yyyy"],0),ek(["yo"],function(d,m,u,f){var p;u._locale._eraYearOrdinalRegex&&(p=d.match(u._locale._eraYearOrdinalRegex)),u._locale.eraYearOrdinalParse?m[0]=u._locale.eraYearOrdinalParse(d,p):m[0]=parseInt(d,10)}),q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tW("gggg","weekYear"),tW("ggggg","weekYear"),tW("GGGG","isoWeekYear"),tW("GGGGG","isoWeekYear"),ey("G",ep),ey("g",ep),ey("GG",es,ei),ey("gg",es,ei),ey("GGGG",em,er),ey("gggg",em,er),ey("GGGGG",eu,ea),ey("ggggg",eu,ea),eA(["gggg","ggggg","GGGG","GGGGG"],function(d,m,u,f){m[f.substr(0,2)]=ew(d)}),eA(["gg","GG"],function(d,u,f,p){u[p]=m.parseTwoDigitYear(d)}),q("Q",0,"Qo","quarter"),ey("Q",en),ek("Q",function(d,m){m[1]=(ew(d)-1)*3}),q("D",["DD",2],"Do","date"),ey("D",es,ev),ey("DD",es,ei),ey("Do",function(d,m){return d?m._dayOfMonthOrdinalParse||m._ordinalParse:m._dayOfMonthOrdinalParseLenient}),ek(["D","DD"],2),ek("Do",function(d,m){m[2]=ew(d.match(es)[0])});var tJ=eI("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),ey("DDD",ed),ey("DDDD",eo),ek(["DDD","DDDD"],function(d,m,u){u._dayOfYear=ew(d)}),q("m",["mm",2],0,"minute"),ey("m",es,e_),ey("mm",es,ei),ek(["m","mm"],4);var tZ=eI("Minutes",!1);q("s",["ss",2],0,"second"),ey("s",es,e_),ey("ss",es,ei),ek(["s","ss"],5);var tQ=eI("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ey("S",ed,en),ey("SS",ed,ei),ey("SSS",ed,eo),A="SSSS";A.length<=9;A+="S")ey(A,ef);function t0(d,m){m[6]=ew(("0."+d)*1e3)}for(A="S";A.length<=9;A+="S")ek(A,t0);C=eI("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var t1=O.prototype;function t2(d){return d}t1.add=tP,t1.calendar=function(d,u){if(1==arguments.length)if(arguments[0]){var g,y,F,x;if(g=arguments[0],D(g)||_(g)||tz(g)||v(g)||(y=g,F=f(y),x=!1,F&&(x=0===y.filter(function(d){return!v(d)&&tz(y)}).length),F&&x)||function(d){var m,u,f=p(d)&&!b(d),g=!1,v=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],_=v.length;for(m=0;m<_;m+=1)u=v[m],g=g||h(d,u);return f&&g}(g)||null==g)d=arguments[0],u=void 0;else(function(d){var m,u,f=p(d)&&!b(d),g=!1,v=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(m=0;m<v.length;m+=1)u=v[m],g=g||h(d,u);return f&&g})(arguments[0])&&(u=arguments[0],d=void 0)}else d=void 0,u=void 0;var w=d||tb(),E=tC(w,this).startOf("day"),k=m.calendarFormat(this,E)||"sameElse",A=u&&(P(u[k])?u[k].call(this,w):u[k]);return this.format(A||this.localeData().calendar(k,this,tb(w)))},t1.clone=function(){return new O(this)},t1.diff=function(d,m,u){var f,p,h;if(!this.isValid()||!(f=tC(d,this)).isValid())return 0/0;switch(p=(f.utcOffset()-this.utcOffset())*6e4,m=X(m)){case"year":h=tU(this,f)/12;break;case"month":h=tU(this,f);break;case"quarter":h=tU(this,f)/3;break;case"second":h=(this-f)/1e3;break;case"minute":h=(this-f)/6e4;break;case"hour":h=(this-f)/36e5;break;case"day":h=(this-f-p)/864e5;break;case"week":h=(this-f-p)/6048e5;break;default:h=this-f}return u?h:ex(h)},t1.endOf=function(d){var u,f;if(void 0===(d=X(d))||"millisecond"===d||!this.isValid())return this;switch(f=this._isUTC?tq:tH,d){case"year":u=f(this.year()+1,0,1)-1;break;case"quarter":u=f(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=f(this.year(),this.month()+1,1)-1;break;case"week":u=f(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=f(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=36e5-((u+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":u=this._d.valueOf(),u+=6e4-(u%6e4+6e4)%6e4-1;break;case"second":u=this._d.valueOf(),u+=1e3-(u%1e3+1e3)%1e3-1}return this._d.setTime(u),m.updateOffset(this,!0),this},t1.format=function(d){d||(d=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var u=G(this,d);return this.localeData().postformat(u)},t1.from=function(d,m){return this.isValid()&&(D(d)&&d.isValid()||tb(d).isValid())?tD({to:this,from:d}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()},t1.fromNow=function(d){return this.from(tb(),d)},t1.to=function(d,m){return this.isValid()&&(D(d)&&d.isValid()||tb(d).isValid())?tD({from:this,to:d}).locale(this.locale()).humanize(!m):this.localeData().invalidDate()},t1.toNow=function(d){return this.to(tb(),d)},t1.get=function(d){return P(this[d=X(d)])?this[d]():this},t1.invalidAt=function(){return w(this).overflow},t1.isAfter=function(d,m){var u=D(d)?d:tb(d);return!!(this.isValid()&&u.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()>u.valueOf():u.valueOf()<this.clone().startOf(m).valueOf())},t1.isBefore=function(d,m){var u=D(d)?d:tb(d);return!!(this.isValid()&&u.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()<u.valueOf():this.clone().endOf(m).valueOf()<u.valueOf())},t1.isBetween=function(d,m,u,f){var p=D(d)?d:tb(d),h=D(m)?m:tb(m);return!!(this.isValid()&&p.isValid()&&h.isValid())&&("("===(f=f||"()")[0]?this.isAfter(p,u):!this.isBefore(p,u))&&(")"===f[1]?this.isBefore(h,u):!this.isAfter(h,u))},t1.isSame=function(d,m){var u,f=D(d)?d:tb(d);return!!(this.isValid()&&f.isValid())&&("millisecond"===(m=X(m)||"millisecond")?this.valueOf()===f.valueOf():(u=f.valueOf(),this.clone().startOf(m).valueOf()<=u&&u<=this.clone().endOf(m).valueOf()))},t1.isSameOrAfter=function(d,m){return this.isSame(d,m)||this.isAfter(d,m)},t1.isSameOrBefore=function(d,m){return this.isSame(d,m)||this.isBefore(d,m)},t1.isValid=function(){return E(this)},t1.lang=tV,t1.locale=tj,t1.localeData=t$,t1.max=tv,t1.min=tg,t1.parsingFlags=function(){return F({},w(this))},t1.set=function(d,m){if("object"==typeof d){var u,f=function(d){var m,u=[];for(m in d)h(d,m)&&u.push({unit:m,priority:ee[m]});return u.sort(function(d,m){return d.priority-m.priority}),u}(d=K(d)),p=f.length;for(u=0;u<p;u++)this[f[u].unit](d[f[u].unit])}else if(P(this[d=X(d)]))return this[d](m);return this},t1.startOf=function(d){var u,f;if(void 0===(d=X(d))||"millisecond"===d||!this.isValid())return this;switch(f=this._isUTC?tq:tH,d){case"year":u=f(this.year(),0,1);break;case"quarter":u=f(this.year(),this.month()-this.month()%3,1);break;case"month":u=f(this.year(),this.month(),1);break;case"week":u=f(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=f(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=f(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=((u+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":u=this._d.valueOf(),u-=(u%6e4+6e4)%6e4;break;case"second":u=this._d.valueOf(),u-=(u%1e3+1e3)%1e3}return this._d.setTime(u),m.updateOffset(this,!0),this},t1.subtract=tM,t1.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},t1.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},t1.toDate=function(){return new Date(this.valueOf())},t1.toISOString=function(d){if(!this.isValid())return null;var m=!0!==d,u=m?this.clone().utc():this;if(0>u.year()||u.year()>9999)return G(u,m?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(P(Date.prototype.toISOString))if(m)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(u,"Z"));return G(u,m?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},t1.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d,m,u,f="moment",p="";return this.isLocal()||(f=0===this.utcOffset()?"moment.utc":"moment.parseZone",p="Z"),d="["+f+'("]',m=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",u=p+'[")]',this.format(d+m+"-MM-DD[T]HH:mm:ss.SSS"+u)},"u">typeof Symbol&&null!=Symbol.for&&(t1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),t1.toJSON=function(){return this.isValid()?this.toISOString():null},t1.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},t1.unix=function(){return Math.floor(this.valueOf()/1e3)},t1.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},t1.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},t1.eraName=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].name;return""},t1.eraNarrow=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].narrow;return""},t1.eraAbbr=function(){var d,m,u,f=this.localeData().eras();for(d=0,m=f.length;d<m;++d)if(u=this.clone().startOf("day").valueOf(),f[d].since<=u&&u<=f[d].until||f[d].until<=u&&u<=f[d].since)return f[d].abbr;return""},t1.eraYear=function(){var d,u,f,p,h=this.localeData().eras();for(d=0,u=h.length;d<u;++d)if(f=h[d].since<=h[d].until?1:-1,p=this.clone().startOf("day").valueOf(),h[d].since<=p&&p<=h[d].until||h[d].until<=p&&p<=h[d].since)return(this.year()-m(h[d].since).year())*f+h[d].offset;return this.year()},t1.year=eS,t1.isLeapYear=function(){return eC(this.year())},t1.weekYear=function(d){return tX.call(this,d,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},t1.isoWeekYear=function(d){return tX.call(this,d,this.isoWeek(),this.isoWeekday(),1,4)},t1.quarter=t1.quarters=function(d){return null==d?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)},t1.month=eM,t1.daysInMonth=function(){return eR(this.year(),this.month())},t1.week=t1.weeks=function(d){var m=this.localeData().week(this);return null==d?m:this.add((d-m)*7,"d")},t1.isoWeek=t1.isoWeeks=function(d){var m=eH(this,1,4).week;return null==d?m:this.add((d-m)*7,"d")},t1.weeksInYear=function(){var d=this.localeData()._week;return eq(this.year(),d.dow,d.doy)},t1.weeksInWeekYear=function(){var d=this.localeData()._week;return eq(this.weekYear(),d.dow,d.doy)},t1.isoWeeksInYear=function(){return eq(this.year(),1,4)},t1.isoWeeksInISOWeekYear=function(){return eq(this.isoWeekYear(),1,4)},t1.date=tJ,t1.day=t1.days=function(d){if(!this.isValid())return null!=d?this:0/0;var m,u,f=eO(this,"Day");return null==d?f:(m=d,u=this.localeData(),d="string"!=typeof m?m:isNaN(m)?"number"==typeof(m=u.weekdaysParse(m))?m:null:parseInt(m,10),this.add(d-f,"d"))},t1.weekday=function(d){if(!this.isValid())return null!=d?this:0/0;var m=(this.day()+7-this.localeData()._week.dow)%7;return null==d?m:this.add(d-m,"d")},t1.isoWeekday=function(d){if(!this.isValid())return null!=d?this:0/0;if(null==d)return this.day()||7;var m,u=(m=this.localeData(),"string"==typeof d?m.weekdaysParse(d)%7||7:isNaN(d)?null:d);return this.day(this.day()%7?u:u-7)},t1.dayOfYear=function(d){var m=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==d?m:this.add(d-m,"d")},t1.hour=t1.hours=e1,t1.minute=t1.minutes=tZ,t1.second=t1.seconds=tQ,t1.millisecond=t1.milliseconds=C,t1.utcOffset=function(d,u,f){var p,h=this._offset||0;if(!this.isValid())return null!=d?this:0/0;if(null==d)return this._isUTC?h:tT(this);if("string"==typeof d){if(null===(d=tA(eb,d)))return this}else 16>Math.abs(d)&&!f&&(d*=60);return!this._isUTC&&u&&(p=tT(this)),this._offset=d,this._isUTC=!0,null!=p&&this.add(p,"m"),h!==d&&(!u||this._changeInProgress?tL(this,tD(d-h,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},t1.utc=function(d){return this.utcOffset(0,d)},t1.local=function(d){return this._isUTC&&(this.utcOffset(0,d),this._isUTC=!1,d&&this.subtract(tT(this),"m")),this},t1.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var d=tA(eh,this._i);null!=d?this.utcOffset(d):this.utcOffset(0,!0)}return this},t1.hasAlignedHourOffset=function(d){return!!this.isValid()&&(d=d?tb(d).utcOffset():0,(this.utcOffset()-d)%60==0)},t1.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},t1.isLocal=function(){return!!this.isValid()&&!this._isUTC},t1.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},t1.isUtc=tS,t1.isUTC=tS,t1.zoneAbbr=function(){return this._isUTC?"UTC":""},t1.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},t1.dates=N("dates accessor is deprecated. Use date instead.",tJ),t1.months=N("months accessor is deprecated. Use month instead",eM),t1.years=N("years accessor is deprecated. Use year instead",eS),t1.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(d,m){return null!=d?("string"!=typeof d&&(d=-d),this.utcOffset(d,m),this):-this.utcOffset()}),t1.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var d,m={};return I(m,this),(m=tp(m))._a?(d=m._isUTC?x(m._a):tb(m._a),this._isDSTShifted=this.isValid()&&function(d,m){var u,f=Math.min(d.length,m.length),p=Math.abs(d.length-m.length),h=0;for(u=0;u<f;u++)ew(d[u])!==ew(m[u])&&h++;return h+p}(m._a,d.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t5=z.prototype;function t4(d,m,u,f){var p=e9(),h=x().set(f,m);return p[u](h,d)}function t3(d,m,u){if(v(d)&&(m=d,d=void 0),d=d||"",null!=m)return t4(d,m,u,"month");var f,p=[];for(f=0;f<12;f++)p[f]=t4(d,f,u,"month");return p}function t6(d,m,u,f){"boolean"==typeof d||(u=m=d,d=!1),v(m)&&(u=m,m=void 0),m=m||"";var p,h=e9(),b=d?h._week.dow:0,g=[];if(null!=u)return t4(m,(u+b)%7,f,"day");for(p=0;p<7;p++)g[p]=t4(m,(p+b)%7,f,"day");return g}t5.calendar=function(d,m,u){var f=this._calendar[d]||this._calendar.sameElse;return P(f)?f.call(m,u):f},t5.longDateFormat=function(d){var m=this._longDateFormat[d],u=this._longDateFormat[d.toUpperCase()];return m||!u?m:(this._longDateFormat[d]=u.match(j).map(function(d){return"MMMM"===d||"MM"===d||"DD"===d||"dddd"===d?d.slice(1):d}).join(""),this._longDateFormat[d])},t5.invalidDate=function(){return this._invalidDate},t5.ordinal=function(d){return this._ordinal.replace("%d",d)},t5.preparse=t2,t5.postformat=t2,t5.relativeTime=function(d,m,u,f){var p=this._relativeTime[u];return P(p)?p(d,m,u,f):p.replace(/%d/i,d)},t5.pastFuture=function(d,m){var u=this._relativeTime[d>0?"future":"past"];return P(u)?u(m):u.replace(/%s/i,m)},t5.set=function(d){var m,u;for(u in d)h(d,u)&&(P(m=d[u])?this[u]=m:this["_"+u]=m);this._config=d,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t5.eras=function(d,u){var f,p,h,b=this._eras||e9("en")._eras;for(f=0,p=b.length;f<p;++f)switch("string"==typeof b[f].since&&(h=m(b[f].since).startOf("day"),b[f].since=h.valueOf()),typeof b[f].until){case"undefined":b[f].until=1/0;break;case"string":h=m(b[f].until).startOf("day").valueOf(),b[f].until=h.valueOf()}return b},t5.erasParse=function(d,m,u){var f,p,h,b,g,v=this.eras();for(d=d.toUpperCase(),f=0,p=v.length;f<p;++f)if(h=v[f].name.toUpperCase(),b=v[f].abbr.toUpperCase(),g=v[f].narrow.toUpperCase(),u)switch(m){case"N":case"NN":case"NNN":if(b===d)return v[f];break;case"NNNN":if(h===d)return v[f];break;case"NNNNN":if(g===d)return v[f]}else if([h,b,g].indexOf(d)>=0)return v[f]},t5.erasConvertYear=function(d,u){var f=d.since<=d.until?1:-1;return void 0===u?m(d.since).year():m(d.since).year()+(u-d.offset)*f},t5.erasAbbrRegex=function(d){return h(this,"_erasAbbrRegex")||tY.call(this),d?this._erasAbbrRegex:this._erasRegex},t5.erasNameRegex=function(d){return h(this,"_erasNameRegex")||tY.call(this),d?this._erasNameRegex:this._erasRegex},t5.erasNarrowRegex=function(d){return h(this,"_erasNarrowRegex")||tY.call(this),d?this._erasNarrowRegex:this._erasRegex},t5.months=function(d,m){return d?f(this._months)?this._months[d.month()]:this._months[(this._months.isFormat||eB).test(m)?"format":"standalone"][d.month()]:f(this._months)?this._months:this._months.standalone},t5.monthsShort=function(d,m){return d?f(this._monthsShort)?this._monthsShort[d.month()]:this._monthsShort[eB.test(m)?"format":"standalone"][d.month()]:f(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t5.monthsParse=function(d,m,u){var f,p,h;if(this._monthsParseExact)return eL.call(this,d,m,u);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),f=0;f<12;f++){if(p=x([2e3,f]),u&&!this._longMonthsParse[f]&&(this._longMonthsParse[f]=RegExp("^"+this.months(p,"").replace(".","")+"$","i"),this._shortMonthsParse[f]=RegExp("^"+this.monthsShort(p,"").replace(".","")+"$","i")),u||this._monthsParse[f]||(h="^"+this.months(p,"")+"|^"+this.monthsShort(p,""),this._monthsParse[f]=RegExp(h.replace(".",""),"i")),u&&"MMMM"===m&&this._longMonthsParse[f].test(d))return f;if(u&&"MMM"===m&&this._shortMonthsParse[f].test(d))return f;if(!u&&this._monthsParse[f].test(d))return f}},t5.monthsRegex=function(d){return this._monthsParseExact?(h(this,"_monthsRegex")||ez.call(this),d)?this._monthsStrictRegex:this._monthsRegex:(h(this,"_monthsRegex")||(this._monthsRegex=eg),this._monthsStrictRegex&&d?this._monthsStrictRegex:this._monthsRegex)},t5.monthsShortRegex=function(d){return this._monthsParseExact?(h(this,"_monthsRegex")||ez.call(this),d)?this._monthsShortStrictRegex:this._monthsShortRegex:(h(this,"_monthsShortRegex")||(this._monthsShortRegex=eg),this._monthsShortStrictRegex&&d?this._monthsShortStrictRegex:this._monthsShortRegex)},t5.week=function(d){return eH(d,this._week.dow,this._week.doy).week},t5.firstDayOfYear=function(){return this._week.doy},t5.firstDayOfWeek=function(){return this._week.dow},t5.weekdays=function(d,m){var u=f(this._weekdays)?this._weekdays:this._weekdays[d&&!0!==d&&this._weekdays.isFormat.test(m)?"format":"standalone"];return!0===d?eG(u,this._week.dow):d?u[d.day()]:u},t5.weekdaysMin=function(d){return!0===d?eG(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin},t5.weekdaysShort=function(d){return!0===d?eG(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort},t5.weekdaysParse=function(d,m,u){var f,p,h;if(this._weekdaysParseExact)return eW.call(this,d,m,u);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(p=x([2e3,1]).day(f),u&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=RegExp("^"+this.weekdays(p,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=RegExp("^"+this.weekdaysShort(p,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=RegExp("^"+this.weekdaysMin(p,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(h="^"+this.weekdays(p,"")+"|^"+this.weekdaysShort(p,"")+"|^"+this.weekdaysMin(p,""),this._weekdaysParse[f]=RegExp(h.replace(".",""),"i")),u&&"dddd"===m&&this._fullWeekdaysParse[f].test(d))return f;if(u&&"ddd"===m&&this._shortWeekdaysParse[f].test(d))return f;if(u&&"dd"===m&&this._minWeekdaysParse[f].test(d))return f;else if(!u&&this._weekdaysParse[f].test(d))return f}},t5.weekdaysRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysStrictRegex:this._weekdaysRegex:(h(this,"_weekdaysRegex")||(this._weekdaysRegex=eg),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)},t5.weekdaysShortRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eg),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t5.weekdaysMinRegex=function(d){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||eX.call(this),d)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eg),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t5.isPM=function(d){return"p"===(d+"").toLowerCase().charAt(0)},t5.meridiem=function(d,m,u){return d>11?u?"pm":"PM":u?"am":"AM"},e8("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(d){var m=d%10,u=1===ew(d%100/10)?"th":1===m?"st":2===m?"nd":3===m?"rd":"th";return d+u}}),m.lang=N("moment.lang is deprecated. Use moment.locale instead.",e8),m.langData=N("moment.langData is deprecated. Use moment.localeData instead.",e9);var t8=Math.abs;function t7(d,m,u,f){var p=tD(m,u);return d._milliseconds+=f*p._milliseconds,d._days+=f*p._days,d._months+=f*p._months,d._bubble()}function t9(d){return d<0?Math.floor(d):Math.ceil(d)}function ne(d){return 4800*d/146097}function nt(d){return 146097*d/4800}function nn(d){return function(){return this.as(d)}}var ni=nn("ms"),no=nn("s"),nr=nn("m"),na=nn("h"),ns=nn("d"),nl=nn("w"),nc=nn("M"),nd=nn("Q"),nm=nn("y");function nu(d){return function(){return this.isValid()?this._data[d]:0/0}}var nf=nu("milliseconds"),np=nu("seconds"),nh=nu("minutes"),nb=nu("hours"),ng=nu("days"),nv=nu("months"),n_=nu("years"),ny=Math.round,nF={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nx(d,m,u,f,p){return p.relativeTime(m||1,!!u,d,f)}var nw=Math.abs;function nE(d){return(d>0)-(d<0)||+d}function nk(){if(!this.isValid())return this.localeData().invalidDate();var d,m,u,f,p,h,b,g,v=nw(this._milliseconds)/1e3,_=nw(this._days),y=nw(this._months),F=this.asSeconds();return F?(d=ex(v/60),m=ex(d/60),v%=60,d%=60,u=ex(y/12),y%=12,f=v?v.toFixed(3).replace(/\.?0+$/,""):"",p=F<0?"-":"",h=nE(this._months)!==nE(F)?"-":"",b=nE(this._days)!==nE(F)?"-":"",g=nE(this._milliseconds)!==nE(F)?"-":"",p+"P"+(u?h+u+"Y":"")+(y?h+y+"M":"")+(_?b+_+"D":"")+(m||d||v?"T":"")+(m?g+m+"H":"")+(d?g+d+"M":"")+(v?g+f+"S":"")):"P0D"}var nA=tF.prototype;return nA.isValid=function(){return this._isValid},nA.abs=function(){var d=this._data;return this._milliseconds=t8(this._milliseconds),this._days=t8(this._days),this._months=t8(this._months),d.milliseconds=t8(d.milliseconds),d.seconds=t8(d.seconds),d.minutes=t8(d.minutes),d.hours=t8(d.hours),d.months=t8(d.months),d.years=t8(d.years),this},nA.add=function(d,m){return t7(this,d,m,1)},nA.subtract=function(d,m){return t7(this,d,m,-1)},nA.as=function(d){if(!this.isValid())return 0/0;var m,u,f=this._milliseconds;if("month"===(d=X(d))||"quarter"===d||"year"===d)switch(m=this._days+f/864e5,u=this._months+ne(m),d){case"month":return u;case"quarter":return u/3;case"year":return u/12}else switch(m=this._days+Math.round(nt(this._months)),d){case"week":return m/7+f/6048e5;case"day":return m+f/864e5;case"hour":return 24*m+f/36e5;case"minute":return 1440*m+f/6e4;case"second":return 86400*m+f/1e3;case"millisecond":return Math.floor(864e5*m)+f;default:throw Error("Unknown unit "+d)}},nA.asMilliseconds=ni,nA.asSeconds=no,nA.asMinutes=nr,nA.asHours=na,nA.asDays=ns,nA.asWeeks=nl,nA.asMonths=nc,nA.asQuarters=nd,nA.asYears=nm,nA.valueOf=ni,nA._bubble=function(){var d,m,u,f,p,h=this._milliseconds,b=this._days,g=this._months,v=this._data;return h>=0&&b>=0&&g>=0||h<=0&&b<=0&&g<=0||(h+=864e5*t9(nt(g)+b),b=0,g=0),v.milliseconds=h%1e3,v.seconds=(d=ex(h/1e3))%60,v.minutes=(m=ex(d/60))%60,v.hours=(u=ex(m/60))%24,b+=ex(u/24),g+=p=ex(ne(b)),b-=t9(nt(p)),f=ex(g/12),g%=12,v.days=b,v.months=g,v.years=f,this},nA.clone=function(){return tD(this)},nA.get=function(d){return d=X(d),this.isValid()?this[d+"s"]():0/0},nA.milliseconds=nf,nA.seconds=np,nA.minutes=nh,nA.hours=nb,nA.days=ng,nA.weeks=function(){return ex(this.days()/7)},nA.months=nv,nA.years=n_,nA.humanize=function(d,m){if(!this.isValid())return this.localeData().invalidDate();var u,f,p,h,b,g,v,_,y,F,x,w,E,k=!1,A=nF;return"object"==typeof d&&(m=d,d=!1),"boolean"==typeof d&&(k=d),"object"==typeof m&&(A=Object.assign({},nF,m),null!=m.s&&null==m.ss&&(A.ss=m.s-1)),w=this.localeData(),u=!k,f=A,p=tD(this).abs(),h=ny(p.as("s")),b=ny(p.as("m")),g=ny(p.as("h")),v=ny(p.as("d")),_=ny(p.as("M")),y=ny(p.as("w")),F=ny(p.as("y")),x=h<=f.ss&&["s",h]||h<f.s&&["ss",h]||b<=1&&["m"]||b<f.m&&["mm",b]||g<=1&&["h"]||g<f.h&&["hh",g]||v<=1&&["d"]||v<f.d&&["dd",v],null!=f.w&&(x=x||y<=1&&["w"]||y<f.w&&["ww",y]),(x=x||_<=1&&["M"]||_<f.M&&["MM",_]||F<=1&&["y"]||["yy",F])[2]=u,x[3]=+this>0,x[4]=w,E=nx.apply(null,x),k&&(E=w.pastFuture(+this,E)),w.postformat(E)},nA.toISOString=nk,nA.toString=nk,nA.toJSON=nk,nA.locale=tj,nA.localeData=t$,nA.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nk),nA.lang=tV,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ey("x",ep),ey("X",/[+-]?\d+(\.\d{1,3})?/),ek("X",function(d,m,u){u._d=new Date(1e3*parseFloat(d))}),ek("x",function(d,m,u){u._d=new Date(ew(d))}),m.version="2.30.1",J=tb,m.fn=t1,m.min=function(){var d=[].slice.call(arguments,0);return t_("isBefore",d)},m.max=function(){var d=[].slice.call(arguments,0);return t_("isAfter",d)},m.now=function(){return Date.now?Date.now():+new Date},m.utc=x,m.unix=function(d){return tb(1e3*d)},m.months=function(d,m){return t3(d,m,"months")},m.isDate=_,m.locale=e8,m.invalid=k,m.duration=tD,m.isMoment=D,m.weekdays=function(d,m,u){return t6(d,m,u,"weekdays")},m.parseZone=function(){return tb.apply(null,arguments).parseZone()},m.localeData=e9,m.isDuration=tx,m.monthsShort=function(d,m){return t3(d,m,"monthsShort")},m.weekdaysMin=function(d,m,u){return t6(d,m,u,"weekdaysMin")},m.defineLocale=e7,m.updateLocale=function(d,m){if(null!=m){var u,f,p=e2;null!=e5[d]&&null!=e5[d].parentLocale?e5[d].set(M(e5[d]._config,m)):(null!=(f=e6(d))&&(p=f._config),m=M(p,m),null==f&&(m.abbr=d),(u=new z(m)).parentLocale=e5[d],e5[d]=u),e8(d)}else null!=e5[d]&&(null!=e5[d].parentLocale?(e5[d]=e5[d].parentLocale,d===e8()&&e8(d)):null!=e5[d]&&delete e5[d]);return e5[d]},m.locales=function(){return et(e5)},m.weekdaysShort=function(d,m,u){return t6(d,m,u,"weekdaysShort")},m.normalizeUnits=X,m.relativeTimeRounding=function(d){return void 0===d?ny:"function"==typeof d&&(ny=d,!0)},m.relativeTimeThreshold=function(d,m){return void 0!==nF[d]&&(void 0===m?nF[d]:(nF[d]=m,"s"===d&&(nF.ss=m-1),!0))},m.calendarFormat=function(d,m){var u=d.diff(m,"days",!0);return u<-6?"sameElse":u<-1?"lastWeek":u<0?"lastDay":u<1?"sameDay":u<2?"nextDay":u<7?"nextWeek":"sameElse"},m.prototype=t1,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}()},3118(d){function m(d){var m=Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}m.keys=()=>[],m.resolve=m,m.id=3118,d.exports=m},3109(d,m,u){var f="function"==typeof Map&&Map.prototype,p=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,h=f&&p&&"function"==typeof p.get?p.get:null,b=f&&Map.prototype.forEach,g="function"==typeof Set&&Set.prototype,v=Object.getOwnPropertyDescriptor&&g?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_=g&&v&&"function"==typeof v.get?v.get:null,y=g&&Set.prototype.forEach,F="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,x="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,w="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,E=Boolean.prototype.valueOf,k=Object.prototype.toString,A=Function.prototype.toString,C=String.prototype.match,T=String.prototype.slice,S=String.prototype.replace,I=String.prototype.toUpperCase,O=String.prototype.toLowerCase,D=RegExp.prototype.test,R=Array.prototype.concat,N=Array.prototype.join,B=Array.prototype.slice,L=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,U="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===U?"object":"symbol")?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(d){return d.__proto__}:null);function H(d,m){if(1/0===d||-1/0===d||d!=d||d&&d>-1e3&&d<1e3||D.call(/e/,m))return m;var u=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof d){var f=d<0?-L(-d):L(d);if(f!==d){var p=String(f),h=T.call(m,p.length+1);return S.call(p,u,"$&_")+"."+S.call(S.call(h,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,u,"$&_")}var q=u(6550),G=q.custom,Y=ee(G)?G:null,W={__proto__:null,double:'"',single:"'"},X={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function K(d,m,u){var f=W[u.quoteStyle||m];return f+d+f}function J(d){return!j||!("object"==typeof d&&(j in d||void 0!==d[j]))}function Z(d){return"[object Array]"===ei(d)&&J(d)}function Q(d){return"[object RegExp]"===ei(d)&&J(d)}function ee(d){if(U)return d&&"object"==typeof d&&d instanceof Symbol;if("symbol"==typeof d)return!0;if(!d||"object"!=typeof d||!z)return!1;try{return z.call(d),!0}catch(d){}return!1}d.exports=function d(m,f,p,g){var v,k,I,D,L,M=f||{};if(en(M,"quoteStyle")&&!en(W,M.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(en(M,"maxStringLength")&&("number"==typeof M.maxStringLength?M.maxStringLength<0&&1/0!==M.maxStringLength:null!==M.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var G=!en(M,"customInspect")||M.customInspect;if("boolean"!=typeof G&&"symbol"!==G)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(en(M,"indent")&&null!==M.indent&&" "!==M.indent&&!(parseInt(M.indent,10)===M.indent&&M.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(en(M,"numericSeparator")&&"boolean"!=typeof M.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var et=M.numericSeparator;if(void 0===m)return"undefined";if(null===m)return"null";if("boolean"==typeof m)return m?"true":"false";if("string"==typeof m)return function d(m,u){if(m.length>u.maxStringLength){var f=m.length-u.maxStringLength;return d(T.call(m,0,u.maxStringLength),u)+("... "+f)+" more character"+(f>1?"s":"")}var p=X[u.quoteStyle||"single"];return p.lastIndex=0,K(S.call(S.call(m,p,"\\$1"),/[\x00-\x1f]/g,er),"single",u)}(m,M);if("number"==typeof m){if(0===m)return 1/0/m>0?"0":"-0";var em=String(m);return et?H(m,em):em}if("bigint"==typeof m){var eu=String(m)+"n";return et?H(m,eu):eu}var ef=void 0===M.depth?5:M.depth;if(void 0===p&&(p=0),p>=ef&&ef>0&&"object"==typeof m)return Z(m)?"[Array]":"[Object]";var ep=function(d,m){var u;if(" "===d.indent)u=" ";else{if("number"!=typeof d.indent||!(d.indent>0))return null;u=N.call(Array(d.indent+1)," ")}return{base:u,prev:N.call(Array(m+1),u)}}(M,p);if(void 0===g)g=[];else if(eo(g,m)>=0)return"[Circular]";function eh(m,u,f){if(u&&(g=B.call(g)).push(u),f){var h={depth:M.depth};return en(M,"quoteStyle")&&(h.quoteStyle=M.quoteStyle),d(m,h,p+1,g)}return d(m,M,p+1,g)}if("function"==typeof m&&!Q(m)){var eb=function(d){if(d.name)return d.name;var m=C.call(A.call(d),/^function\s*([\w$]+)/);return m?m[1]:null}(m),eg=ed(m,eh);return"[Function"+(eb?": "+eb:" (anonymous)")+"]"+(eg.length>0?" { "+N.call(eg,", ")+" }":"")}if(ee(m)){var ev=U?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(m);return"object"!=typeof m||U?ev:ea(ev)}if((e_=m)&&"object"==typeof e_&&("u">typeof HTMLElement&&e_ instanceof HTMLElement||"string"==typeof e_.nodeName&&"function"==typeof e_.getAttribute)){for(var e_,ey,eF="<"+O.call(String(m.nodeName)),ex=m.attributes||[],ew=0;ew<ex.length;ew++){eF+=" "+ex[ew].name+"="+K((ey=ex[ew].value,S.call(String(ey),/"/g,"&quot;")),"double",M)}return eF+=">",m.childNodes&&m.childNodes.length&&(eF+="..."),eF+="</"+O.call(String(m.nodeName))+">"}if(Z(m)){if(0===m.length)return"[]";var eE=ed(m,eh);return ep&&!function(d){for(var m=0;m<d.length;m++)if(eo(d[m],"\n")>=0)return!1;return!0}(eE)?"["+ec(eE,ep)+"]":"[ "+N.call(eE,", ")+" ]"}if("[object Error]"===ei(v=m)&&J(v)){var ek=ed(m,eh);return"cause"in Error.prototype||!("cause"in m)||V.call(m,"cause")?0===ek.length?"["+String(m)+"]":"{ ["+String(m)+"] "+N.call(ek,", ")+" }":"{ ["+String(m)+"] "+N.call(R.call("[cause]: "+eh(m.cause),ek),", ")+" }"}if("object"==typeof m&&G){if(Y&&"function"==typeof m[Y]&&q)return q(m,{depth:ef-p});else if("symbol"!==G&&"function"==typeof m.inspect)return m.inspect()}if(function(d){if(!h||!d||"object"!=typeof d)return!1;try{h.call(d);try{_.call(d)}catch(d){return!0}return d instanceof Map}catch(d){}return!1}(m)){var eA=[];return b&&b.call(m,function(d,u){eA.push(eh(u,m,!0)+" => "+eh(d,m))}),el("Map",h.call(m),eA,ep)}if(function(d){if(!_||!d||"object"!=typeof d)return!1;try{_.call(d);try{h.call(d)}catch(d){return!0}return d instanceof Set}catch(d){}return!1}(m)){var eC=[];return y&&y.call(m,function(d){eC.push(eh(d,m))}),el("Set",_.call(m),eC,ep)}if(function(d){if(!F||!d||"object"!=typeof d)return!1;try{F.call(d,F);try{x.call(d,x)}catch(d){return!0}return d instanceof WeakMap}catch(d){}return!1}(m))return es("WeakMap");if(function(d){if(!x||!d||"object"!=typeof d)return!1;try{x.call(d,x);try{F.call(d,F)}catch(d){return!0}return d instanceof WeakSet}catch(d){}return!1}(m))return es("WeakSet");if(function(d){if(!w||!d||"object"!=typeof d)return!1;try{return w.call(d),!0}catch(d){}return!1}(m))return es("WeakRef");if("[object Number]"===ei(k=m)&&J(k))return ea(eh(Number(m)));if(function(d){if(!d||"object"!=typeof d||!P)return!1;try{return P.call(d),!0}catch(d){}return!1}(m))return ea(eh(P.call(m)));if("[object Boolean]"===ei(I=m)&&J(I))return ea(E.call(m));if("[object String]"===ei(D=m)&&J(D))return ea(eh(String(m)));if("u">typeof window&&m===window)return"{ [object Window] }";if("u">typeof globalThis&&m===globalThis||void 0!==u.g&&m===u.g)return"{ [object globalThis] }";if(!("[object Date]"===ei(L=m)&&J(L))&&!Q(m)){var eT=ed(m,eh),eS=$?$(m)===Object.prototype:m instanceof Object||m.constructor===Object,eI=m instanceof Object?"":"null prototype",eO=!eS&&j&&Object(m)===m&&j in m?T.call(ei(m),8,-1):eI?"Object":"",eD=(eS||"function"!=typeof m.constructor?"":m.constructor.name?m.constructor.name+" ":"")+(eO||eI?"["+N.call(R.call([],eO||[],eI||[]),": ")+"] ":"");return 0===eT.length?eD+"{}":ep?eD+"{"+ec(eT,ep)+"}":eD+"{ "+N.call(eT,", ")+" }"}return String(m)};var et=Object.prototype.hasOwnProperty||function(d){return d in this};function en(d,m){return et.call(d,m)}function ei(d){return k.call(d)}function eo(d,m){if(d.indexOf)return d.indexOf(m);for(var u=0,f=d.length;u<f;u++)if(d[u]===m)return u;return -1}function er(d){var m=d.charCodeAt(0),u={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return u?"\\"+u:"\\x"+(m<16?"0":"")+I.call(m.toString(16))}function ea(d){return"Object("+d+")"}function es(d){return d+" { ? }"}function el(d,m,u,f){return d+" ("+m+") {"+(f?ec(u,f):N.call(u,", "))+"}"}function ec(d,m){if(0===d.length)return"";var u="\n"+m.prev+m.base;return u+N.call(d,","+u)+"\n"+m.prev}function ed(d,m){var u,f=Z(d),p=[];if(f){p.length=d.length;for(var h=0;h<d.length;h++)p[h]=en(d,h)?m(d[h],d):""}var b="function"==typeof M?M(d):[];if(U){u={};for(var g=0;g<b.length;g++)u["$"+b[g]]=b[g]}for(var v in d)if(en(d,v)&&(!f||String(Number(v))!==v||!(v<d.length)))if(U&&u["$"+v]instanceof Symbol)continue;else D.call(/[^\w$]/,v)?p.push(m(v,d)+": "+m(d[v],d)):p.push(v+": "+m(d[v],d));if("function"==typeof M)for(var _=0;_<b.length;_++)V.call(d,b[_])&&p.push("["+m(b[_])+"]: "+m(d[b[_]],d));return p}},4461(d,m,u){d=u.nmd(d),(function(){"use strict";var f={function:!0,object:!0},p=f[typeof window]&&window||this,h=f[typeof m]&&m,b=f.object&&d&&!d.nodeType&&d,g=h&&b&&"object"==typeof u.g&&u.g;g&&(g.global===g||g.window===g||g.self===g)&&(p=g);var v=/\bOpera/,_=Object.prototype,y=_.hasOwnProperty,F=_.toString;function x(d){return(d=String(d)).charAt(0).toUpperCase()+d.slice(1)}function w(d){return d=T(d),/^(?:webOS|i(?:OS|P))/.test(d)?d:x(d)}function E(d,m){for(var u in d)y.call(d,u)&&m(d[u],u,d)}function k(d){return null==d?x(d):F.call(d).slice(8,-1)}function A(d){return String(d).replace(/([ -])(?!$)/g,"$1?")}function C(d,m){var u=null,f=function(f,p){u=m(u,f,p,d)},p=-1,h=d?d.length:0;if("number"==typeof h&&h>-1&&h<=0x1fffffffffffff)for(;++p<h;)f(d[p],p);else E(d,f);return u}function T(d){return String(d).replace(/^ +| +$/g,"")}function S(d){var m,u,f,h,b,g=p,_=d&&"object"==typeof d&&"String"!=k(d);_&&(g=d,d=null);var y=g.navigator||{},x=y.userAgent||"";d||(d=x);var I=_?!!y.likeChrome:/\bChrome\b/.test(d)&&!/internal|\n/i.test(F.toString()),O="Object",D=_&&g.java?"JavaPackage":k(g.java),R=/\bJava/.test(D)&&g.java,N=R&&k(g.environment)==(_?O:"Environment"),B=R?"a":"α",L=R?"b":"β",P=g.document||{},M=g.operamini||g.opera,z=v.test(z=_&&M?M["[[Class]]"]:k(M))?z:M=null,U=d,j=[],V=null,$=d==x,H=$&&M&&"function"==typeof M.version&&M.version(),q=C([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(m,u){return m||RegExp("\\b"+(u.pattern||A(u))+"\\b","i").exec(d)&&(u.label||u)}),G=C(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(m,u){return m||RegExp("\\b"+(u.pattern||A(u))+"\\b","i").exec(d)&&(u.label||u)}),Y=K([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),W=C({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(m,u,f){return m||(u[Y]||u[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Y)]||RegExp("\\b"+A(f)+"(?:\\b|\\w*\\d)","i").exec(d))&&f}),X=C(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(m,u){var f,p,h,b=u.pattern||A(u);return!m&&(m=RegExp("\\b"+b+"(?:/[\\d.]+|[ \\w.]*)","i").exec(d))&&(f=m,p=u.label||u,h={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"},b&&p&&/^Win/i.test(f)&&!/^Windows Phone /i.test(f)&&(h=h[/[\d.]+$/.exec(f)])&&(f="Windows "+h),f=String(f),b&&p&&(f=f.replace(RegExp(b,"i"),p)),m=f=w(f.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])),m});function K(m){return C(m,function(m,u){var f=u.pattern||A(u);return!m&&(m=RegExp("\\b"+f+" *\\d+[.\\w_]*","i").exec(d)||RegExp("\\b"+f+" *\\w+-[\\w]*","i").exec(d)||RegExp("\\b"+f+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(d))&&((m=String(u.label&&!RegExp(f,"i").test(u.label)?u.label:m).split("/"))[1]&&!/[\d.]+/.test(m[0])&&(m[0]+=" "+m[1]),u=u.label||u,m=w(m[0].replace(RegExp(f,"i"),u).replace(RegExp("; *(?:"+u+"[_-])?","i")," ").replace(RegExp("("+u+")[-_.]?(\\w)","i"),"$1 $2"))),m})}function J(m){return C(m,function(m,u){return m||(RegExp(u+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(d)||0)[1]||null})}if(q&&(q=[q]),/\bAndroid\b/.test(X)&&!Y&&(h=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(d))&&(Y=T(h[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),W&&!Y?Y=K([W]):W&&Y&&(Y=Y.replace(RegExp("^("+A(W)+")[-_.\\s]","i"),W+" ").replace(RegExp("^("+A(W)+")[-_.]?(\\w)","i"),W+" $2")),(h=/\bGoogle TV\b/.exec(Y))&&(Y=h[0]),/\bSimulator\b/i.test(d)&&(Y=(Y?Y+" ":"")+"Simulator"),"Opera Mini"==G&&/\bOPiOS\b/.test(d)&&j.push("running in Turbo/Uncompressed mode"),"IE"==G&&/\blike iPhone OS\b/.test(d)?(W=(h=S(d.replace(/like iPhone OS/,""))).manufacturer,Y=h.product):/^iP/.test(Y)?(G||(G="Safari"),X="iOS"+((h=/ OS ([\d_]+)/i.exec(d))?" "+h[1].replace(/_/g,"."):"")):"Konqueror"==G&&/^Linux\b/i.test(X)?X="Kubuntu":W&&"Google"!=W&&(/Chrome/.test(G)&&!/\bMobile Safari\b/i.test(d)||/\bVita\b/.test(Y))||/\bAndroid\b/.test(X)&&/^Chrome/.test(G)&&/\bVersion\//i.test(d)?(G="Android Browser",X=/\bAndroid\b/.test(X)?X:"Android"):"Silk"==G?(/\bMobi/i.test(d)||(X="Android",j.unshift("desktop mode")),/Accelerated *= *true/i.test(d)&&j.unshift("accelerated")):"UC Browser"==G&&/\bUCWEB\b/.test(d)?j.push("speed mode"):"PaleMoon"==G&&(h=/\bFirefox\/([\d.]+)\b/.exec(d))?j.push("identifying as Firefox "+h[1]):"Firefox"==G&&(h=/\b(Mobile|Tablet|TV)\b/i.exec(d))?(X||(X="Firefox OS"),Y||(Y=h[1])):!G||(h=!/\bMinefield\b/i.test(d)&&/\b(?:Firefox|Safari)\b/.exec(G))?(G&&!Y&&/[\/,]|^[^(]+?\)/.test(d.slice(d.indexOf(h+"/")+8))&&(G=null),(h=Y||W||X)&&(Y||W||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(X))&&(G=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(X)?X:h)+" Browser")):"Electron"==G&&(h=(/\bChrome\/([\d.]+)\b/.exec(d)||0)[1])&&j.push("Chromium "+h),H||(H=J(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",A(G),"(?:Firefox|Minefield|NetFront)"])),(h="iCab"==q&&parseFloat(H)>3&&"WebKit"||/\bOpera\b/.test(G)&&(/\bOPR\b/.test(d)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(d)&&!/^(?:Trident|EdgeHTML)$/.test(q)&&"WebKit"||!q&&/\bMSIE\b/i.test(d)&&("Mac OS"==X?"Tasman":"Trident")||"WebKit"==q&&/\bPlayStation\b(?! Vita\b)/i.test(G)&&"NetFront")&&(q=[h]),"IE"==G&&(h=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(d)||0)[1])?(G+=" Mobile",X="Windows Phone "+(/\+$/.test(h)?h:h+".x"),j.unshift("desktop mode")):/\bWPDesktop\b/i.test(d)?(G="IE Mobile",X="Windows Phone 8.x",j.unshift("desktop mode"),H||(H=(/\brv:([\d.]+)/.exec(d)||0)[1])):"IE"!=G&&"Trident"==q&&(h=/\brv:([\d.]+)/.exec(d))&&(G&&j.push("identifying as "+G+(H?" "+H:"")),G="IE",H=h[1]),$){if(u="global",f=null!=(m=g)?typeof m[u]:"number",/^(?:boolean|number|string|undefined)$/.test(f)||"object"==f&&!m[u])k(h=g.runtime)==(_?O:"ScriptBridgingProxyObject")?(G="Adobe AIR",X=h.flash.system.Capabilities.os):k(h=g.phantom)==(_?O:"RuntimeObject")?(G="PhantomJS",H=(h=h.version||null)&&h.major+"."+h.minor+"."+h.patch):"number"==typeof P.documentMode&&(h=/\bTrident\/(\d+)/i.exec(d))?(H=[H,P.documentMode],(h=+h[1]+4)!=H[1]&&(j.push("IE "+H[1]+" mode"),q&&(q[1]=""),H[1]=h),H="IE"==G?String(H[1].toFixed(1)):H[0]):"number"==typeof P.documentMode&&/^(?:Chrome|Firefox)\b/.test(G)&&(j.push("masking as "+G+" "+H),G="IE",H="11.0",q=["Trident"],X="Windows");else if(R&&(U=(h=R.lang.System).getProperty("os.arch"),X=X||h.getProperty("os.name")+" "+h.getProperty("os.version")),N){try{H=g.require("ringo/engine").version.join("."),G="RingoJS"}catch(d){(h=g.system)&&h.global.system==g.system&&(G="Narwhal",X||(X=h[0].os||null))}G||(G="Rhino")}else"object"==typeof g.process&&!g.process.browser&&(h=g.process)&&("object"==typeof h.versions&&("string"==typeof h.versions.electron?(j.push("Node "+h.versions.node),G="Electron",H=h.versions.electron):"string"==typeof h.versions.nw&&(j.push("Chromium "+H,"Node "+h.versions.node),G="NW.js",H=h.versions.nw)),G||(G="Node.js",U=h.arch,X=h.platform,H=(H=/[\d.]+/.exec(h.version))?H[0]:null));X=X&&w(X)}if(H&&(h=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(H)||/(?:alpha|beta)(?: ?\d)?/i.exec(d+";"+($&&y.appMinorVersion))||/\bMinefield\b/i.test(d)&&"a")&&(V=/b/i.test(h)?"beta":"alpha",H=H.replace(RegExp(h+"\\+?$"),"")+("beta"==V?L:B)+(/\d+\+?/.exec(h)||"")),"Fennec"==G||"Firefox"==G&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(X))G="Firefox Mobile";else if("Maxthon"==G&&H)H=H.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Y))"Xbox 360"==Y&&(X=null),"Xbox 360"==Y&&/\bIEMobile\b/.test(d)&&j.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(G)||G&&!Y&&!/Browser|Mobi/.test(G))&&("Windows CE"==X||/Mobi/i.test(d)))G+=" Mobile";else if("IE"==G&&$)try{null===g.external&&j.unshift("platform preview")}catch(d){j.unshift("embedded")}else(/\bBlackBerry\b/.test(Y)||/\bBB10\b/.test(d))&&(h=(RegExp(Y.replace(/ +/g," *")+"/([.\\d]+)","i").exec(d)||0)[1]||H)?(X=((h=[h,/BB10/.test(d)])[1]?(Y=null,W="BlackBerry"):"Device Software")+" "+h[0],H=null):this!=E&&"Wii"!=Y&&($&&M||/Opera/.test(G)&&/\b(?:MSIE|Firefox)\b/i.test(d)||"Firefox"==G&&/\bOS X (?:\d+\.){2,}/.test(X)||"IE"==G&&(X&&!/^Win/.test(X)&&H>5.5||/\bWindows XP\b/.test(X)&&H>8||8==H&&!/\bTrident\b/.test(d)))&&!v.test(h=S.call(E,d.replace(v,"")+";"))&&h.name&&(h="ing as "+h.name+((h=h.version)?" "+h:""),v.test(G)?(/\bIE\b/.test(h)&&"Mac OS"==X&&(X=null),h="identify"+h):(h="mask"+h,G=z?w(z.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(h)&&(X=null),$||(H=null)),q=["Presto"],j.push(h));(h=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(d)||0)[1])&&(h=[parseFloat(h.replace(/\.(\d)$/,".0$1")),h],"Safari"==G&&"+"==h[1].slice(-1)?(G="WebKit Nightly",V="alpha",H=h[1].slice(0,-1)):(H==h[1]||H==(h[2]=(/\bSafari\/([\d.]+\+?)/i.exec(d)||0)[1]))&&(H=null),h[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(d)||0)[1],537.36==h[0]&&537.36==h[2]&&parseFloat(h[1])>=28&&"WebKit"==q&&(q=["Blink"]),$&&(I||h[1])?(q&&(q[1]="like Chrome"),h=h[1]||((h=h[0])<530?1:h<532?2:h<532.05?3:h<533?4:h<534.03?5:h<534.07?6:h<534.1?7:h<534.13?8:h<534.16?9:h<534.24?10:h<534.3?11:h<535.01?12:h<535.02?"13+":h<535.07?15:h<535.11?16:h<535.19?17:h<536.05?18:h<536.1?19:h<537.01?20:h<537.11?"21+":h<537.13?23:h<537.18?24:h<537.24?25:h<537.36?26:"Blink"!=q?"27":"28")):(q&&(q[1]="like Safari"),h=(h=h[0])<400?1:h<500?2:h<526?3:h<533?4:h<534?"4+":h<535?5:h<537?6:h<538?7:h<601?8:h<602?9:h<604?10:h<606?11:h<608?12:"12"),q&&(q[1]+=" "+(h+="number"==typeof h?".x":/[.+]/.test(h)?"":"+")),"Safari"==G&&(!H||parseInt(H)>45)?H=h:"Chrome"==G&&/\bHeadlessChrome/i.test(d)&&j.unshift("headless")),"Opera"==G&&(h=/\bzbov|zvav$/.exec(X))?(G+=" ",j.unshift("desktop mode"),"zvav"==h?(G+="Mini",H=null):G+="Mobile",X=X.replace(RegExp(" *"+h+"$"),"")):"Safari"==G&&/\bChrome\b/.exec(q&&q[1])?(j.unshift("desktop mode"),G="Chrome Mobile",H=null,/\bOS X\b/.test(X)?(W="Apple",X="iOS 4.3+"):X=null):/\bSRWare Iron\b/.test(G)&&!H&&(H=J("Chrome")),H&&0==H.indexOf(h=/[\d.]+$/.exec(X))&&d.indexOf("/"+h+"-")>-1&&(X=T(X.replace(h,""))),X&&-1!=X.indexOf(G)&&!RegExp(G+" OS").test(X)&&(X=X.replace(RegExp(" *"+A(G)+" *"),"")),q&&!/\b(?:Avant|Nook)\b/.test(G)&&(/Browser|Lunascape|Maxthon/.test(G)||"Safari"!=G&&/^iOS/.test(X)&&/\bSafari\b/.test(q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(G)&&q[1])&&(h=q[q.length-1])&&j.push(h),j.length&&(j=["("+j.join("; ")+")"]),W&&Y&&0>Y.indexOf(W)&&j.push("on "+W),Y&&j.push((/^on /.test(j[j.length-1])?"":"on ")+Y),X&&(b=(h=/ ([\d.+]+)$/.exec(X))&&"/"==X.charAt(X.length-h[0].length-1),X={architecture:32,family:h&&!b?X.replace(h[0],""):X,version:h?h[1]:null,toString:function(){var d=this.version;return this.family+(d&&!b?" "+d:"")+(64==this.architecture?" 64-bit":"")}}),(h=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(U))&&!/\bi686\b/i.test(U)?(X&&(X.architecture=64,X.family=X.family.replace(RegExp(" *"+h),"")),G&&(/\bWOW64\b/i.test(d)||$&&/\w(?:86|32)$/.test(y.cpuClass||y.platform)&&!/\bWin64; x64\b/i.test(d))&&j.unshift("32-bit")):X&&/^OS X/.test(X.family)&&"Chrome"==G&&parseFloat(H)>=39&&(X.architecture=64),d||(d=null);var Z={};return Z.description=d,Z.layout=q&&q[0],Z.manufacturer=W,Z.name=G,Z.prerelease=V,Z.product=Y,Z.ua=d,Z.version=G&&H,Z.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}},Z.parse=S,Z.toString=function(){return this.description||""},Z.version&&j.unshift(H),Z.name&&j.unshift(G),X&&G&&!(X==String(X).split(" ")[0]&&(X==G.split(" ")[0]||Y))&&j.push(Y?"("+X+")":"on "+X),j.length&&(Z.description=j.join(" ")),Z}var I=S();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(p.platform=I,define(function(){return I})):h&&b?E(I,function(d,m){h[m]=d}):p.platform=I}).call(this)},5539(d){"use strict";var m=String.prototype.replace,u=/%20/g,f="RFC3986";d.exports={default:f,formatters:{RFC1738:function(d){return m.call(d,u,"+")},RFC3986:function(d){return String(d)}},RFC1738:"RFC1738",RFC3986:f}},8183(d,m,u){"use strict";var f=u(6334),p=u(4816);d.exports={formats:u(5539),parse:p,stringify:f}},4816(d,m,u){"use strict";var f=u(1954),p=Object.prototype.hasOwnProperty,h=Array.isArray,b={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:f.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},g=function(d,m,u){if(d&&"string"==typeof d&&m.comma&&d.indexOf(",")>-1)return d.split(",");if(m.throwOnLimitExceeded&&u>=m.arrayLimit)throw RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(1===m.arrayLimit?"":"s")+" allowed in an array.");return d},v=function(d,m){var u={__proto__:null},v=m.ignoreQueryPrefix?d.replace(/^\?/,""):d;v=v.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=1/0===m.parameterLimit?void 0:m.parameterLimit,y=v.split(m.delimiter,m.throwOnLimitExceeded&&void 0!==_?_+1:_);if(m.throwOnLimitExceeded&&void 0!==_&&y.length>_)throw RangeError("Parameter limit exceeded. Only "+_+" parameter"+(1===_?"":"s")+" allowed.");var F=-1,x=m.charset;if(m.charsetSentinel)for(E=0;E<y.length;++E)0===y[E].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[E]?x="utf-8":"utf8=%26%2310003%3B"===y[E]&&(x="iso-8859-1"),F=E,E=y.length);for(E=0;E<y.length;++E)if(E!==F){var w,E,k,A,C=y[E],T=C.indexOf("]="),S=-1===T?C.indexOf("="):T+1;if(-1===S?(k=m.decoder(C,b.decoder,x,"key"),A=m.strictNullHandling?null:""):null!==(k=m.decoder(C.slice(0,S),b.decoder,x,"key"))&&(A=f.maybeMap(g(C.slice(S+1),m,h(u[k])?u[k].length:0),function(d){return m.decoder(d,b.decoder,x,"value")})),A&&m.interpretNumericEntities&&"iso-8859-1"===x&&(w=String(A),A=w.replace(/&#(\d+);/g,function(d,m){return String.fromCharCode(parseInt(m,10))})),C.indexOf("[]=")>-1&&(A=h(A)?[A]:A),m.comma&&h(A)&&A.length>m.arrayLimit){if(m.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(1===m.arrayLimit?"":"s")+" allowed in an array.");A=f.combine([],A,m.arrayLimit,m.plainObjects)}if(null!==k){var I=p.call(u,k);I&&("combine"===m.duplicates||C.indexOf("[]=")>-1)?u[k]=f.combine(u[k],A,m.arrayLimit,m.plainObjects):I&&"last"!==m.duplicates||(u[k]=A)}}return u},_=function(d,m,u,p){var h=0;if(d.length>0&&"[]"===d[d.length-1]){var b=d.slice(0,-1).join("");h=Array.isArray(m)&&m[b]?m[b].length:0}for(var v=p?m:g(m,u,h),_=d.length-1;_>=0;--_){var y,F=d[_];if("[]"===F&&u.parseArrays)y=f.isOverflow(v)?v:u.allowEmptyArrays&&(""===v||u.strictNullHandling&&null===v)?[]:f.combine([],v,u.arrayLimit,u.plainObjects);else{y=u.plainObjects?{__proto__:null}:{};var x="["===F.charAt(0)&&"]"===F.charAt(F.length-1)?F.slice(1,-1):F,w=u.decodeDotInKeys?x.replace(/%2E/g,"."):x,E=parseInt(w,10),k=!isNaN(E)&&F!==w&&String(E)===w&&E>=0&&u.parseArrays;if(u.parseArrays||""!==w)if(k&&E<u.arrayLimit)(y=[])[E]=v;else if(k&&u.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+u.arrayLimit+" element"+(1===u.arrayLimit?"":"s")+" allowed in an array.");else k?(y[E]=v,f.markOverflow(y,E)):"__proto__"!==w&&(y[w]=v);else y={0:v}}v=y}return v},y=function(d,m){var u=m.allowDots?d.replace(/\.([^.[]+)/g,"[$1]"):d;if(m.depth<=0){if(!m.plainObjects&&p.call(Object.prototype,u)&&!m.allowPrototypes)return;return[u]}var f=[],h=u.indexOf("["),b=h>=0?u.slice(0,h):u;if(b){if(!m.plainObjects&&p.call(Object.prototype,b)&&!m.allowPrototypes)return;f[f.length]=b}for(var g=u.length,v=h,_=0;v>=0&&_<m.depth;){for(var y=1,F=v+1,x=-1;F<g&&x<0;){var w=u.charCodeAt(F);91===w?y+=1:93===w&&0==(y-=1)&&(x=F),F+=1}if(x<0)return f[f.length]="["+u.slice(v)+"]",f;var E=u.slice(v,x+1),k=E.slice(1,-1);if(!m.plainObjects&&p.call(Object.prototype,k)&&!m.allowPrototypes)return;f[f.length]=E,_+=1,v=u.indexOf("[",x+1)}if(v>=0){if(!0===m.strictDepth)throw RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");f[f.length]="["+u.slice(v)+"]"}return f},F=function(d,m,u,f){if(d){var p=y(d,u);if(p)return _(p,m,u,f)}},x=function(d){if(!d)return b;if(void 0!==d.allowEmptyArrays&&"boolean"!=typeof d.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==d.decodeDotInKeys&&"boolean"!=typeof d.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==d.decoder&&void 0!==d.decoder&&"function"!=typeof d.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==d.charset&&"utf-8"!==d.charset&&"iso-8859-1"!==d.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==d.throwOnLimitExceeded&&"boolean"!=typeof d.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var m=void 0===d.charset?b.charset:d.charset,u=void 0===d.duplicates?b.duplicates:d.duplicates;if("combine"!==u&&"first"!==u&&"last"!==u)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===d.allowDots?!0===d.decodeDotInKeys||b.allowDots:!!d.allowDots,allowEmptyArrays:"boolean"==typeof d.allowEmptyArrays?!!d.allowEmptyArrays:b.allowEmptyArrays,allowPrototypes:"boolean"==typeof d.allowPrototypes?d.allowPrototypes:b.allowPrototypes,allowSparse:"boolean"==typeof d.allowSparse?d.allowSparse:b.allowSparse,arrayLimit:"number"==typeof d.arrayLimit?d.arrayLimit:b.arrayLimit,charset:m,charsetSentinel:"boolean"==typeof d.charsetSentinel?d.charsetSentinel:b.charsetSentinel,comma:"boolean"==typeof d.comma?d.comma:b.comma,decodeDotInKeys:"boolean"==typeof d.decodeDotInKeys?d.decodeDotInKeys:b.decodeDotInKeys,decoder:"function"==typeof d.decoder?d.decoder:b.decoder,delimiter:"string"==typeof d.delimiter||f.isRegExp(d.delimiter)?d.delimiter:b.delimiter,depth:"number"==typeof d.depth||!1===d.depth?+d.depth:b.depth,duplicates:u,ignoreQueryPrefix:!0===d.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof d.interpretNumericEntities?d.interpretNumericEntities:b.interpretNumericEntities,parameterLimit:"number"==typeof d.parameterLimit?d.parameterLimit:b.parameterLimit,parseArrays:!1!==d.parseArrays,plainObjects:"boolean"==typeof d.plainObjects?d.plainObjects:b.plainObjects,strictDepth:"boolean"==typeof d.strictDepth?!!d.strictDepth:b.strictDepth,strictMerge:"boolean"==typeof d.strictMerge?!!d.strictMerge:b.strictMerge,strictNullHandling:"boolean"==typeof d.strictNullHandling?d.strictNullHandling:b.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof d.throwOnLimitExceeded&&d.throwOnLimitExceeded}};d.exports=function(d,m){var u=x(m);if(""===d||null==d)return u.plainObjects?{__proto__:null}:{};for(var p="string"==typeof d?v(d,u):d,h=u.plainObjects?{__proto__:null}:{},b=Object.keys(p),g=0;g<b.length;++g){var _=b[g],y=F(_,p[_],u,"string"==typeof d);h=f.merge(h,y,u)}return!0===u.allowSparse?h:f.compact(h)}},6334(d,m,u){"use strict";var f=u(6278),p=u(1954),h=u(5539),b=Object.prototype.hasOwnProperty,g={brackets:function(d){return d+"[]"},comma:"comma",indices:function(d,m){return d+"["+m+"]"},repeat:function(d){return d}},v=Array.isArray,_=Array.prototype.push,y=function(d,m){_.apply(d,v(m)?m:[m])},F=Date.prototype.toISOString,x=h.default,w={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:p.encode,encodeValuesOnly:!1,filter:void 0,format:x,formatter:h.formatters[x],indices:!1,serializeDate:function(d){return F.call(d)},skipNulls:!1,strictNullHandling:!1},E={},k=function d(m,u,h,b,g,_,F,x,k,A,C,T,S,I,O,D,R,N){for(var B,L,P=m,M=N,z=0,U=!1;void 0!==(M=M.get(E))&&!U;){var j=M.get(m);if(z+=1,void 0!==j)if(j===z)throw RangeError("Cyclic object value");else U=!0;void 0===M.get(E)&&(z=0)}if("function"==typeof A?P=A(u,P):P instanceof Date?P=S(P):"comma"===h&&v(P)&&(P=p.maybeMap(P,function(d){return d instanceof Date?S(d):d})),null===P){if(_)return O(k&&!D?k(u,w.encoder,R,"key",I):u);P=""}if("string"==typeof(B=P)||"number"==typeof B||"boolean"==typeof B||"symbol"==typeof B||"bigint"==typeof B||p.isBuffer(P))return k?[O(D?u:k(u,w.encoder,R,"key",I))+"="+O(k(P,w.encoder,R,"value",I))]:[O(u)+"="+O(String(P))];var V=[];if(void 0===P)return V;if("comma"===h&&v(P))D&&k&&(P=p.maybeMap(P,function(d){return null==d?d:k(d)})),L=[{value:P.length>0?P.join(",")||null:void 0}];else if(v(A))L=A;else{var $=Object.keys(P);L=C?$.sort(C):$}var H=x?String(u).replace(/\./g,"%2E"):String(u),q=b&&v(P)&&1===P.length?H+"[]":H;if(g&&v(P)&&0===P.length)return q+"[]";for(var G=0;G<L.length;++G){var Y=L[G],W="object"==typeof Y&&Y&&void 0!==Y.value?Y.value:P[Y];if(!F||null!==W){var X=T&&x?String(Y).replace(/\./g,"%2E"):String(Y),K=v(P)?"function"==typeof h?h(q,X):q:q+(T?"."+X:"["+X+"]");N.set(m,z);var J=f();J.set(E,N),y(V,d(W,K,h,b,g,_,F,x,"comma"===h&&D&&v(P)?null:k,A,C,T,S,I,O,D,R,J))}}return V},A=function(d){if(!d)return w;if(void 0!==d.allowEmptyArrays&&"boolean"!=typeof d.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==d.encodeDotInKeys&&"boolean"!=typeof d.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==d.encoder&&void 0!==d.encoder&&"function"!=typeof d.encoder)throw TypeError("Encoder has to be a function.");var m,u=d.charset||w.charset;if(void 0!==d.charset&&"utf-8"!==d.charset&&"iso-8859-1"!==d.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=h.default;if(void 0!==d.format){if(!b.call(h.formatters,d.format))throw TypeError("Unknown format option provided.");f=d.format}var p=h.formatters[f],_=w.filter;if(("function"==typeof d.filter||v(d.filter))&&(_=d.filter),m=d.arrayFormat in g?d.arrayFormat:"indices"in d?d.indices?"indices":"repeat":w.arrayFormat,"commaRoundTrip"in d&&"boolean"!=typeof d.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var y=void 0===d.allowDots?!0===d.encodeDotInKeys||w.allowDots:!!d.allowDots;return{addQueryPrefix:"boolean"==typeof d.addQueryPrefix?d.addQueryPrefix:w.addQueryPrefix,allowDots:y,allowEmptyArrays:"boolean"==typeof d.allowEmptyArrays?!!d.allowEmptyArrays:w.allowEmptyArrays,arrayFormat:m,charset:u,charsetSentinel:"boolean"==typeof d.charsetSentinel?d.charsetSentinel:w.charsetSentinel,commaRoundTrip:!!d.commaRoundTrip,delimiter:void 0===d.delimiter?w.delimiter:d.delimiter,encode:"boolean"==typeof d.encode?d.encode:w.encode,encodeDotInKeys:"boolean"==typeof d.encodeDotInKeys?d.encodeDotInKeys:w.encodeDotInKeys,encoder:"function"==typeof d.encoder?d.encoder:w.encoder,encodeValuesOnly:"boolean"==typeof d.encodeValuesOnly?d.encodeValuesOnly:w.encodeValuesOnly,filter:_,format:f,formatter:p,serializeDate:"function"==typeof d.serializeDate?d.serializeDate:w.serializeDate,skipNulls:"boolean"==typeof d.skipNulls?d.skipNulls:w.skipNulls,sort:"function"==typeof d.sort?d.sort:null,strictNullHandling:"boolean"==typeof d.strictNullHandling?d.strictNullHandling:w.strictNullHandling}};d.exports=function(d,m){var u,p,h=d,b=A(m);"function"==typeof b.filter?h=(0,b.filter)("",h):v(b.filter)&&(u=b.filter);var _=[];if("object"!=typeof h||null===h)return"";var F=g[b.arrayFormat],x="comma"===F&&b.commaRoundTrip;u||(u=Object.keys(h)),b.sort&&u.sort(b.sort);for(var w=f(),E=0;E<u.length;++E){var C=u[E];if(null!=C){var T=h[C];b.skipNulls&&null===T||y(_,k(T,C,F,x,b.allowEmptyArrays,b.strictNullHandling,b.skipNulls,b.encodeDotInKeys,b.encode?b.encoder:null,b.filter,b.sort,b.allowDots,b.serializeDate,b.format,b.formatter,b.encodeValuesOnly,b.charset,w))}}var S=_.join(b.delimiter),I=!0===b.addQueryPrefix?"?":"";return b.charsetSentinel&&("iso-8859-1"===b.charset?I+="utf8=%26%2310003%3B"+b.delimiter:I+="utf8=%E2%9C%93"+b.delimiter),S.length>0?I+S:""}},1954(d,m,u){"use strict";var f=u(5539),p=u(6278),h=Object.prototype.hasOwnProperty,b=Array.isArray,g=p(),v=function(d,m){return g.set(d,m),d},_=function(d){return g.has(d)},y=function(d){return g.get(d)},F=function(d,m){g.set(d,m)},x=function(){for(var d=[],m=0;m<256;++m)d[d.length]="%"+((m<16?"0":"")+m.toString(16)).toUpperCase();return d}(),w=function(d){for(;d.length>1;){var m=d.pop(),u=m.obj[m.prop];if(b(u)){for(var f=[],p=0;p<u.length;++p)void 0!==u[p]&&(f[f.length]=u[p]);m.obj[m.prop]=f}}},E=function(d,m){for(var u=m&&m.plainObjects?{__proto__:null}:{},f=0;f<d.length;++f)void 0!==d[f]&&(u[f]=d[f]);return u};d.exports={arrayToObject:E,assign:function(d,m){return Object.keys(m).reduce(function(d,u){return d[u]=m[u],d},d)},combine:function(d,m,u,f){if(_(d)){var p=y(d)+1;return d[p]=m,F(d,p),d}var h=[].concat(d,m);return h.length>u?v(E(h,{plainObjects:f}),h.length-1):h},compact:function(d){for(var m=[{obj:{o:d},prop:"o"}],u=[],f=0;f<m.length;++f)for(var p=m[f],h=p.obj[p.prop],b=Object.keys(h),g=0;g<b.length;++g){var v=b[g],_=h[v];"object"==typeof _&&null!==_&&-1===u.indexOf(_)&&(m[m.length]={obj:h,prop:v},u[u.length]=_)}return w(m),d},decode:function(d,m,u){var f=d.replace(/\+/g," ");if("iso-8859-1"===u)return f.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(f)}catch(d){return f}},encode:function(d,m,u,p,h){if(0===d.length)return d;var b=d;if("symbol"==typeof d?b=Symbol.prototype.toString.call(d):"string"!=typeof d&&(b=String(d)),"iso-8859-1"===u)return escape(b).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var g="",v=0;v<b.length;v+=1024){for(var _=b.length>=1024?b.slice(v,v+1024):b,y=[],F=0;F<_.length;++F){var w=_.charCodeAt(F);if(45===w||46===w||95===w||126===w||w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||h===f.RFC1738&&(40===w||41===w)){y[y.length]=_.charAt(F);continue}if(w<128){y[y.length]=x[w];continue}if(w<2048){y[y.length]=x[192|w>>6]+x[128|63&w];continue}if(w<55296||w>=57344){y[y.length]=x[224|w>>12]+x[128|w>>6&63]+x[128|63&w];continue}F+=1,w=65536+((1023&w)<<10|1023&_.charCodeAt(F)),y[y.length]=x[240|w>>18]+x[128|w>>12&63]+x[128|w>>6&63]+x[128|63&w]}g+=y.join("")}return g},isBuffer:function(d){return!!d&&"object"==typeof d&&!!(d.constructor&&d.constructor.isBuffer&&d.constructor.isBuffer(d))},isOverflow:_,isRegExp:function(d){return"[object RegExp]"===Object.prototype.toString.call(d)},markOverflow:v,maybeMap:function(d,m){if(b(d)){for(var u=[],f=0;f<d.length;f+=1)u[u.length]=m(d[f]);return u}return m(d)},merge:function d(m,u,f){if(!u)return m;if("object"!=typeof u&&"function"!=typeof u){if(b(m)){var p=m.length;if(f&&"number"==typeof f.arrayLimit&&p>f.arrayLimit)return v(E(m.concat(u),f),p);m[p]=u}else if(!m||"object"!=typeof m)return[m,u];else if(_(m)){var g=y(m)+1;m[g]=u,F(m,g)}else{if(f&&f.strictMerge)return[m,u];(f&&(f.plainObjects||f.allowPrototypes)||!h.call(Object.prototype,u))&&(m[u]=!0)}return m}if(!m||"object"!=typeof m){if(_(u)){for(var x=Object.keys(u),w=f&&f.plainObjects?{__proto__:null,0:m}:{0:m},k=0;k<x.length;k++)w[parseInt(x[k],10)+1]=u[x[k]];return v(w,y(u)+1)}var A=[m].concat(u);return f&&"number"==typeof f.arrayLimit&&A.length>f.arrayLimit?v(E(A,f),A.length-1):A}var C=m;return(b(m)&&!b(u)&&(C=E(m,f)),b(m)&&b(u))?(u.forEach(function(u,p){if(h.call(m,p)){var b=m[p];b&&"object"==typeof b&&u&&"object"==typeof u?m[p]=d(b,u,f):m[m.length]=u}else m[p]=u}),m):Object.keys(u).reduce(function(m,p){var b=u[p];if(h.call(m,p)?m[p]=d(m[p],b,f):m[p]=b,_(u)&&!_(m)&&v(m,y(u)),_(m)){var g=parseInt(p,10);String(g)===p&&g>=0&&g>y(m)&&F(m,g)}return m},C)}}},6521(d,m,u){"use strict";var f=u(3109),p=u(6757),h=function(d,m,u){for(var f,p=d;null!=(f=p.next);p=f)if(f.key===m)return p.next=f.next,u||(f.next=d.next,d.next=f),f},b=function(d,m){if(d){var u=h(d,m);return u&&u.value}},g=function(d,m,u){var f=h(d,m);f?f.value=u:d.next={key:m,next:d.next,value:u}},v=function(d,m){if(d)return h(d,m,!0)};d.exports=function(){var d,m={assert:function(d){if(!m.has(d))throw new p("Side channel does not contain "+f(d))},delete:function(m){var u=d&&d.next,f=v(d,m);return f&&u&&u===f&&(d=void 0),!!f},get:function(m){return b(d,m)},has:function(m){var u;return!!(u=d)&&!!h(u,m)},set:function(m,u){d||(d={next:void 0}),g(d,m,u)}};return m}},3977(d,m,u){"use strict";var f=u(4295),p=u(8682),h=u(3109),b=u(6757),g=f("%Map%",!0),v=p("Map.prototype.get",!0),_=p("Map.prototype.set",!0),y=p("Map.prototype.has",!0),F=p("Map.prototype.delete",!0),x=p("Map.prototype.size",!0);d.exports=!!g&&function(){var d,m={assert:function(d){if(!m.has(d))throw new b("Side channel does not contain "+h(d))},delete:function(m){if(d){var u=F(d,m);return 0===x(d)&&(d=void 0),u}return!1},get:function(m){if(d)return v(d,m)},has:function(m){return!!d&&y(d,m)},set:function(m,u){d||(d=new g),_(d,m,u)}};return m}},8965(d,m,u){"use strict";var f=u(4295),p=u(8682),h=u(3109),b=u(3977),g=u(6757),v=f("%WeakMap%",!0),_=p("WeakMap.prototype.get",!0),y=p("WeakMap.prototype.set",!0),F=p("WeakMap.prototype.has",!0),x=p("WeakMap.prototype.delete",!0);d.exports=v?function(){var d,m,u={assert:function(d){if(!u.has(d))throw new g("Side channel does not contain "+h(d))},delete:function(u){if(v&&u&&("object"==typeof u||"function"==typeof u)){if(d)return x(d,u)}else if(b&&m)return m.delete(u);return!1},get:function(u){return v&&u&&("object"==typeof u||"function"==typeof u)&&d?_(d,u):m&&m.get(u)},has:function(u){return v&&u&&("object"==typeof u||"function"==typeof u)&&d?F(d,u):!!m&&m.has(u)},set:function(u,f){v&&u&&("object"==typeof u||"function"==typeof u)?(d||(d=new v),y(d,u,f)):b&&(m||(m=b()),m.set(u,f))}};return u}:b},6278(d,m,u){"use strict";var f=u(6757),p=u(3109),h=u(6521),b=u(3977),g=u(8965)||b||h;d.exports=function(){var d,m={assert:function(d){if(!m.has(d))throw new f("Side channel does not contain "+p(d))},delete:function(m){return!!d&&d.delete(m)},get:function(m){return d&&d.get(m)},has:function(m){return!!d&&d.has(m)},set:function(m,u){d||(d=g()),d.set(m,u)}};return m}},4532(d,m,u){!function(d){"use strict";var m,u,f=function(){try{if(d.URLSearchParams&&"bar"===new d.URLSearchParams("foo=bar").get("foo"))return d.URLSearchParams}catch(d){}return null}(),p=f&&"a=1"===new f({a:1}).toString(),h=f&&"+"===new f("s=%2B").get("s"),b=f&&"size"in f.prototype,g="__URLSearchParams__",v=!f||((m=new f).append("s"," &"),"s=+%26"===m.toString()),_=w.prototype,y=!!(d.Symbol&&d.Symbol.iterator);if(!f||!p||!h||!v||!b){_.append=function(d,m){T(this[g],d,m)},_.delete=function(d){delete this[g][d]},_.get=function(d){var m=this[g];return this.has(d)?m[d][0]:null},_.getAll=function(d){var m=this[g];return this.has(d)?m[d].slice(0):[]},_.has=function(d){return I(this[g],d)},_.set=function(d,m){this[g][d]=[""+m]},_.toString=function(){var d,m,u,f,p=this[g],h=[];for(m in p)for(u=E(m),d=0,f=p[m];d<f.length;d++)h.push(u+"="+E(f[d]));return h.join("&")};var F=d.Proxy&&f&&(!h||!v||!p||!b);F?(u=new Proxy(f,{construct:function(d,m){return new d(new w(m[0]).toString())}})).toString=Function.prototype.toString.bind(w):u=w,Object.defineProperty(d,"URLSearchParams",{value:u});var x=d.URLSearchParams.prototype;x.polyfill=!0,!F&&d.Symbol&&(x[d.Symbol.toStringTag]="URLSearchParams"),"forEach"in x||(x.forEach=function(d,m){var u=C(this.toString());Object.getOwnPropertyNames(u).forEach(function(f){u[f].forEach(function(u){d.call(m,u,f,this)},this)},this)}),"sort"in x||(x.sort=function(){var d,m,u,f=C(this.toString()),p=[];for(d in f)p.push(d);for(p.sort(),m=0;m<p.length;m++)this.delete(p[m]);for(m=0;m<p.length;m++){var h=p[m],b=f[h];for(u=0;u<b.length;u++)this.append(h,b[u])}}),"keys"in x||(x.keys=function(){var d=[];return this.forEach(function(m,u){d.push(u)}),A(d)}),"values"in x||(x.values=function(){var d=[];return this.forEach(function(m){d.push(m)}),A(d)}),"entries"in x||(x.entries=function(){var d=[];return this.forEach(function(m,u){d.push([u,m])}),A(d)}),y&&(x[d.Symbol.iterator]=x[d.Symbol.iterator]||x.entries),"size"in x||Object.defineProperty(x,"size",{get:function(){var d=C(this.toString());if(x===this)throw TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(d).reduce(function(m,u){return m+d[u].length},0)}})}function w(d){((d=d||"")instanceof URLSearchParams||d instanceof w)&&(d=d.toString()),this[g]=C(d)}function E(d){var m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'\(\)~]|%20|%00/g,function(d){return m[d]})}function k(d){return d.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(d){return decodeURIComponent(d)})}function A(m){var u={next:function(){var d=m.shift();return{done:void 0===d,value:d}}};return y&&(u[d.Symbol.iterator]=function(){return u}),u}function C(d){var m={};if("object"==typeof d)if(S(d))for(var u=0;u<d.length;u++){var f=d[u];if(S(f)&&2===f.length)T(m,f[0],f[1]);else throw TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var p in d)d.hasOwnProperty(p)&&T(m,p,d[p]);else{0===d.indexOf("?")&&(d=d.slice(1));for(var h=d.split("&"),b=0;b<h.length;b++){var g=h[b],v=g.indexOf("=");-1<v?T(m,k(g.slice(0,v)),k(g.slice(v+1))):g&&T(m,k(g),"")}}return m}function T(d,m,u){var f="string"==typeof u?u:null!=u&&"function"==typeof u.toString?u.toString():JSON.stringify(u);I(d,m)?d[m].push(f):d[m]=[f]}function S(d){return!!d&&"[object Array]"===Object.prototype.toString.call(d)}function I(d,m){return Object.prototype.hasOwnProperty.call(d,m)}}(void 0!==u.g?u.g:"u">typeof window?window:this)},7478(d,m,u){"use strict";let f,p,h,b,g;u.d(m,{WO:()=>iv,PR:()=>i_,Iy:()=>ix,BB:()=>ig,Id:()=>iy,BH:()=>iF,J0:()=>T,Ay:()=>iT,B1:()=>ib});var v,_,y,F,x,w,E,k,A,C,T={};u.r(T),u.d(T,{cY:()=>N,C3:()=>L,Ri:()=>M,Th:()=>X,sY:()=>K,F2:()=>j,N0:()=>V,Rk:()=>$,DH:()=>B,jX:()=>P,B8:()=>Y,NM:()=>W,Hh:()=>z});var S={};u.r(S),u.d(S,{hasBrowserEnv:()=>tl,hasStandardBrowserEnv:()=>td,hasStandardBrowserWebWorkerEnv:()=>tm,navigator:()=>tc,origin:()=>tu}),u(4532);var I=u(5144),O=u(3583),D=u(4867),R=u.n(D);u(3472);class N{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((d,m)=>{this._resolve=d,this._reject=m}),Object.freeze(this)}}function B(d,m,u=!0){if(null==d||null==m)return d===m;if(d.constructor!==m.constructor)return!1;if(d instanceof Function||d instanceof RegExp)return d===m;if(d===m||d.valueOf()===m.valueOf())return!0;if(Array.isArray(d)&&d.length!==m.length||d instanceof Date||!(d instanceof Object)||!(m instanceof Object))return!1;if(u){if(Array.isArray(d))return d.every((d,u)=>B(d,m[u]));let u=Object.keys(d);return Object.keys(m).every(d=>-1!==u.indexOf(d))&&u.every(u=>B(d[u],m[u]))}return!1}function L(d,m){if(0===d.length)return;let u=d.indexOf(m);u>=0&&d.splice(u,1)}function P(d){return null==d?"":d.split(" ").map((d,m)=>0===m?d[0].toLowerCase()+d.substring(1):d[0].toUpperCase()+d.substring(1)).join("")}function M(d){if(null==d)return"";let m=!1;return d.split(/([A-Z]|\d)/).map((d,u,f)=>{if(!d)return d;if(!m)return m=!0,d.charAt(0).toUpperCase()+d.slice(1);if("_"===d)return" ";if(1===d.length&&d===d.toUpperCase()){let m=!f[u-1]||"_"===f[u-1],p=u+1<f.length&&f[u+1]&&"_"!==f[u+1],h=u+3>f.length||!f[u+1]&&!f[u+3];(!m||p)&&(d=" "+d),!p&&(m||h)||(d=d.toLowerCase())}return d}).join("").trim()}function z(d,m){if(m===d)return!0;let u=d.endsWith("*"),f=!u&&d.startsWith("*"),p=!u&&!f&&d.startsWith("^")&&d.endsWith("$");if(u&&m.startsWith(d.substr(0,d.length-1))||f&&m.endsWith(d.substr(1)))return!0;if(p)try{return new RegExp(d).test(m)}catch(d){console.error("Failed to compile needle as a RegExp: "+d)}return!1}function U(d,m,u){let f="string"==typeof d?d:d.name;return m&&m.meta&&m.meta.hasOwnProperty(f)?m.meta[f]:u&&u.meta?u.meta[f]:void 0}function j(d){return("string"==typeof d&&(d=I.u0.getAssetDescriptor(d)),d)?O.Ay.t("label.asset."+d.name,{defaultValue:M(d.name)}):""}function V(d,m,u,f,p){return function(d,m,u,f,p,h){let b=G("label",d,m,u,p),g="";if(b||(b=U("label",d,m&&m.meta?m:void 0)),f&&(g=H(q("units",d,m,u,p))),!b){let u=d?d.name:m?"string"==typeof m?m:m.name:void 0;b=h||(u?M(u):void 0)}return b?b+(g?" ("+g+")":""):g}(d,m,u,f,!0,p)}function $(d,m,u,f){let p="";if(null==d)p=f||"";else if("string"==typeof d)p=d;else if("number"==typeof d||"boolean"==typeof d||d instanceof Date){let f=m&&m();if(f&&0!==Object.keys(f).length)switch("number"==typeof d?f.asBoolean?d=!!d:f.asDate&&(d=new Date(d)):"boolean"==typeof d&&f.asNumber&&(d=+!!d),typeof d){case"number":p=new Intl.NumberFormat(u||O.Ay.language,f).format(d);break;case"boolean":f.asOnOff&&(p=d?O.Ay.t("on"):O.Ay.t("off")),f.asOpenClosed&&(p=d?O.Ay.t("open"):O.Ay.t("closed")),f.asPressedReleased&&(p=d?O.Ay.t("pressed"):O.Ay.t("released"));break;case"object":if(f.momentJsFormat)p=R()(d).format(f.momentJsFormat);else if(f.iso8601)p=d.toISOString();else if(f.week){var h;let m,u=((h=new Date(Date.UTC((h=d).getFullYear(),h.getMonth(),h.getDate()))).setUTCDate(h.getUTCDate()+4-(h.getUTCDay()||7)),m=new Date(Date.UTC(h.getUTCFullYear(),0,1)),Math.ceil(((h.getTime()-m.getTime())/864e5+1)/7));p="2-digit"===f.week?String(u).padStart(2,"0"):Number(u).toString(10)}else p=new Intl.DateTimeFormat(u||O.Ay.language,f).format(d)}else p=Object(d).toString()}return p}function H(d,m){if(!d)return"";m||(m="");let u=d.map((d,u)=>{if(3!==d.length||d.toUpperCase()!==d)return O.Ay.t(["units."+d,"or:units."+d]);{let f=new Intl.NumberFormat(O.Ay.language,{currency:d,style:"currency"}).formatToParts();if(0!==u||"currency"!==f[0].type)return"currency"===f[0].type?f[0].value:f[f.length-1].value;if(!m)return f[0].value;m=f[0].value+m}}).join("");return m.length>0?m+" "+u:u}function q(d,m,u,f,p){let h,b=[],g=G(d,m&&"string"==typeof m?m:m?m.name:u?"string"==typeof u?u:u.name:void 0,u,f,p);if(g&&(h=JSON.parse(g)))if("format"!==d)return h;else b.push(h);if(m&&m.meta&&(h=U(d,m,u)))if("format"!==d)return h;else b.push(h);if(u&&"string"!=typeof u&&u.hasOwnProperty(d)){if(h=u[d],"format"!==d)return h;b.push(h)}if(u&&u.type){if(h=I.u0.getValueDescriptor(u.type)[d],"format"!==d)return h;b.push(h)}if("format"!==d||0===b.length)return h;let v={};return b.reverse().forEach(d=>{v=Object.assign(Object.assign({},v),d)}),v}function G(d,m,u,f,p,h){let b;if(m?b="string"==typeof m?m:m.name:u&&(b="string"==typeof u?u:u.name),!b)return;let g=[],v=d+"."+(p?"attribute":"meta")+".";if(f&&g.push(v+f+"."+b),u&&"string"!=typeof u&&(g.push(v+u.type+"."+b),g.push(v+u.type)),g.push(v+b),g.length>0)return O.Ay.t(g,{defaultValue:h||""})}function Y(d){return(m,u)=>{let f=d(m),p=d(u);return f||p?f&&!p?1:!f&&p?-1:f-p:0}}function W(d){return(m,u)=>{let f=d(m),p=d(u);return f||p?f&&!p?1:!f&&p?-1:f.localeCompare(p):0}}function X(d,m){let u=new N;return d.dispatchEvent(m),window.setTimeout(()=>{u.resolve(m.detail)}),u.promise}function K(){return"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,d=>(d^crypto.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16))}class J{constructor(d){d&&Object.assign(this,d)}matches(d){var m,u,f,p,h,b,g;if((null==(m=this.ids)?void 0:m.length)&&(!d.id||!this.ids.includes(d.id))||(null==(u=this.types)?void 0:u.length)&&(!d.type||!this.types.includes(d.type))||(null==(f=this.realm)?void 0:f.name)&&d.realm!==this.realm.name||(null==(p=this.parents)?void 0:p.length)&&!this.parents.some(m=>!m.id||d.parentId===m.id))return!1;if(null==(h=this.paths)?void 0:h.length){let m=null!=(b=d.path)?b:[];if(!this.paths.some(d=>{var u;return(null!=(u=d.path)?u:[]).every((d,u)=>m[u]===d)}))return!1}return(null==(g=this.names)||!g.length||!!this.names.every(m=>J._evalValuePredicate(d.name,m)))&&(!this.attributes||J._evalGroup(d,this.attributes))}static getUnsupportedFields(d){return Object.keys(d).filter(d=>!J._SUPPORTED_FIELDS.has(d))}collectAttributeNames(){return this.attributes?J._collectNames(this.attributes):[]}static _evalValuePredicate(d,m){var u;switch(m.predicateType){case"string":{let f;if(null==d)return!1;let p=!1!==m.caseSensitive?String(d):String(d).toLowerCase(),h=!1!==m.caseSensitive?m.value:null==(u=m.value)?void 0:u.toLowerCase();switch(m.match){case"BEGIN":f=p.startsWith(h);break;case"END":f=p.endsWith(h);break;case"CONTAINS":f=p.includes(h);break;default:f=p===h}return m.negate?!f:f}case"boolean":return d===m.value;case"number":{let u;if("number"!=typeof d)return!1;switch(m.operator){case"GREATER_THAN":u=d>m.value;break;case"GREATER_EQUALS":u=d>=m.value;break;case"LESS_THAN":u=d<m.value;break;case"LESS_EQUALS":u=d<=m.value;break;case"BETWEEN":u=d>=m.value&&d<=m.rangeValue;break;default:u=d===m.value}return m.negate?!u:u}}return!1}static _evalPredicate(d,m){var u,f;let p=null==(u=m.name)?void 0:u.value;if(!p)return!0;let h=null==(f=d.attributes)?void 0:f[p];if(!h)return!!m.negated;let b=!m.value||J._evalValuePredicate(h.value,m.value);return m.negated?!b:b}static _evalGroup(d,m){var u,f,p;let h=null!=(u=m.operator)?u:"AND",b=[...(null!=(f=m.items)?f:[]).map(m=>J._evalPredicate(d,m)),...(null!=(p=m.groups)?p:[]).map(m=>J._evalGroup(d,m))];return!b.length||("OR"===h?b.some(Boolean):b.every(Boolean))}static _collectNames(d){var m,u;return[...(null!=(m=d.items)?m:[]).map(d=>{var m;return null==(m=d.name)?void 0:m.value}).filter(d=>!!d),...(null!=(u=d.groups)?u:[]).flatMap(d=>J._collectNames(d))]}}J._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var Z=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let Q=u(4461);class ee{constructor(d,m,u){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=d,this._autoEnable=m,this._enableCompleteCallback=u,window.OpenRemoteConsole=this;let f=new URLSearchParams(window.location.search),p=f.get("consoleName"),h=f.get("consoleVersion"),b=f.get("consolePlatform"),g=f.get("consoleProviders"),v=f.get("consoleAutoEnable"),_=g&&g.length>0?g.split(" "):["push"];this._pendingProviderEnables=_;let y=ee._createConsoleRegistration(),F=window.localStorage.getItem(this._storageKey);if(F)try{let d=JSON.parse(F);d.id&&(y.id=d.id),d.name&&(y.name=d.name),d.providers&&(y.providers=d.providers),d.apps&&(y.apps=d.apps)}catch(d){console.error("Failed to deserialise console registration")}let x=y.providers;for(let d of(y.providers={},_)){let m=x&&x.hasOwnProperty(d)?x[d]:{enabled:!1,disabled:!1};y.providers[d]=m}let w=iT.getAppName();w.length>0&&0>y.apps.indexOf(w)&&y.apps.push(w),this._registration=y,p&&(y.name=p),h&&(y.version=h),b&&(y.platform=b),v&&(this._autoEnable="TRUE"===v||"true"===v)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let d=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return d&&("iP"===d.substring(0,2)||"Mac"===d.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return Z(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let d of Object.keys(this._registration.providers))yield this._initialiseProvider(d);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(d){console.error(d)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let d=this._pendingProviderEnables.length-1;d>-1;d--){let m=this._pendingProviderEnables[d];yield this.enableProvider(m)}})}enableProvider(d,m){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(d))throw console.debug("Invalid console provider '"+d+"'"),Error("Invalid console provider '"+d+"'");console.debug("Console: enabling provider '"+d+"'");let u={provider:d,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:m},f=yield this.sendProviderMessage(u,!0);this._registration.providers[d].hasPermission=f.hasPermission,this._registration.providers[d].success=f.success,this._registration.providers[d].enabled=f.success,this._registration.providers[d].data=f.data;let p=this._pendingProviderEnables.indexOf(d);return p>=0&&(this._pendingProviderEnables.splice(p,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),f})}disableProvider(d){return Z(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(d))throw console.debug("Invalid console provider '"+d+"'"),Error("Invalid console provider '"+d+"'");console.debug("Console: disabling provider '"+d+"'");let m=yield this.sendProviderMessage({provider:d,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[d].disabled=!0,this._registration.providers[d].enabled=!1,m})}getProvider(d){return this._registration&&this._registration.providers?this._registration.providers[d]:void 0}sendProviderMessage(d,m){return Z(this,void 0,void 0,function*(){if("storage"!==d.provider&&!this._registration.providers.hasOwnProperty(d.provider))throw console.debug("Invalid console provider '"+d.provider+"'"),Error("Invalid console provider '"+d.provider+"'");if(!m)return void this._doSendProviderMessage(d);let u=d.provider+d.action;if(this._pendingProviderPromises[u])throw Error("Message already pending for provider '"+d.provider+"' with action '"+d.action+"'");let f=new N,p=()=>{delete this._pendingProviderPromises[u],f.reject("No response from provider")};return this._pendingProviderPromises[u]=[f,window.setTimeout(p,5e3)],this._doSendProviderMessage(d),f.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((d,m)=>{this._registrationTimer=window.setTimeout(()=>Z(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),d()}catch(d){console.error("Failed to register console",d),m(d)}}))})}_sendRegistration(d){return Z(this,void 0,void 0,function*(){this._normaliseRegistration();let m=!!this._registration.id;try{let d=yield iT.rest.api.ConsoleResource.register(this._registration);if(200!==d.status)throw Error("Failed to register console");this._registration=d.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(u){if(d&&m&&ee._isStaleRegistrationResponse(u)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw u}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(d){let m=d&&d.response?d.response.status:void 0;return 403===m||409===m}storeData(d,m){this.sendProviderMessage({provider:"storage",action:"STORE",key:d,value:m},!1)}retrieveData(d){return Z(this,void 0,void 0,function*(){let m=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:d},!0);try{let d=yield Promise.race([m,new Promise((d,m)=>setTimeout(m,2e3))]);if(d&&d.value){let m=d.value;return"null"===m?void 0:m}}catch(d){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(d,m){this._providerMessageListeners[d.provider+d.action]=m}removeProviderMessageListener(d){delete this._providerMessageListeners[d.provider+d.action]}_postNativeShellMessage(d){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(d));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(d)}catch(d){console.error("Failed to send shell message towards console",d)}}_doSendGenericMessage(d,m){let u={type:d,data:m};this.isMobile?this._postNativeShellMessage(u):console.warn("Failed to send generic message to console.",u)}_doSendProviderMessage(d){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:d});else{if(!d.provider||!d.action)return;switch(d.provider.trim().toUpperCase()){case"PUSH":switch(d.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+d.provider+"' and action '"+d.action+"'")}break;case"STORAGE":switch(d.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let m=d.key?d.key.trim():null;if(!m||0===m.length)throw Error("Storage provider 'store' action requires a `key`");null===d.value?window.localStorage.removeItem(m):window.localStorage.setItem(m,JSON.stringify(d.value))}break;case"RETRIEVE":{let m=d.key?d.key.trim():null;if(!m||0===m.length)throw Error("Storage provider 'retrieve' action requires a `key`");let u=window.localStorage.getItem(m);if(null!==u)try{u=JSON.parse(u)}catch(d){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:m,value:u}))}break;default:throw Error("Unsupported provider '"+d.provider+"' and action '"+d.action+"'")}break;default:console.error("Unsupported provider: "+d.provider)}}}_handleProviderResponse(d){if(!d)return;let m=JSON.parse(d),u=m.provider,f=m.action,p=this._pendingProviderPromises[u+f];p&&(window.clearTimeout(p[1]),delete this._pendingProviderPromises[u+f],p[0].resolve(m));let h=this._providerMessageListeners[u+f];h&&h(m)}_callCompletedCallback(){let d=this._enableCompleteCallback;this._enableCompleteCallback=null,d&&window.setTimeout(()=>{d()},0)}static _createConsoleRegistration(){return{name:Q.name,version:Q.version,platform:Q.os.toString(),apps:[],model:((Q.manufacturer?Q.manufacturer+" ":"")+(Q.product?Q.product:"")).trim()}}_initialiseProvider(d){return Z(this,void 0,void 0,function*(){let m;console.debug("Console: initialising provider '"+d+"'");try{m=yield this.sendProviderMessage({provider:d,action:"PROVIDER_INIT"},!0),this._registration.providers[d].version=m.version,this._registration.providers[d].requiresPermission=m.requiresPermission,this._registration.providers[d].hasPermission=m.hasPermission,this._registration.providers[d].success=m.success,this._registration.providers[d].enabled=m.enabled,this._registration.providers[d].disabled=m.disabled,this._registration.providers[d].data=m.data}catch(d){console.error(d),m={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(m.success||(console.debug("Provider initialisation failed: '"+d+"'"),m.disabled=!0,this._registration.providers[d].disabled=!0),m.disabled||m.enabled){let m=this._pendingProviderEnables.indexOf(d);m>=0&&this._pendingProviderEnables.splice(m,1)}})}}function et(d,m){return function(){return d.apply(m,arguments)}}let{toString:en}=Object.prototype,{getPrototypeOf:ei}=Object,{iterator:eo,toStringTag:er}=Symbol,ea=(({hasOwnProperty:d})=>(m,u)=>d.call(m,u))(Object.prototype),es=(d,m)=>{let u=d,f=[];for(;null!=u&&u!==Object.prototype&&-1===f.indexOf(u);){if(f.push(u),ea(u,m))return!0;u=ei(u)}return!1},el=(p=Object.create(null),d=>{let m=en.call(d);return p[m]||(p[m]=m.slice(8,-1).toLowerCase())}),ec=d=>(d=d.toLowerCase(),m=>el(m)===d),ed=d=>m=>typeof m===d,{isArray:em}=Array,eu=ed("undefined");function ef(d){return null!==d&&!eu(d)&&null!==d.constructor&&!eu(d.constructor)&&eb(d.constructor.isBuffer)&&d.constructor.isBuffer(d)}let ep=ec("ArrayBuffer"),eh=ed("string"),eb=ed("function"),eg=ed("number"),ev=d=>null!==d&&"object"==typeof d,e_=d=>{if(!ev(d))return!1;let m=ei(d);return(null===m||m===Object.prototype||null===ei(m))&&!es(d,er)&&!es(d,eo)},ey=ec("Date"),eF=ec("File"),ex=ec("Blob"),ew=ec("FileList"),eE="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ek=void 0!==eE.FormData?eE.FormData:void 0,eA=ec("URLSearchParams"),[eC,eT,eS,eI]=["ReadableStream","Request","Response","Headers"].map(ec);function eO(d,m,{allOwnKeys:u=!1}={}){let f,p;if(null!=d)if("object"!=typeof d&&(d=[d]),em(d))for(f=0,p=d.length;f<p;f++)m.call(null,d[f],f,d);else{let p;if(ef(d))return;let h=u?Object.getOwnPropertyNames(d):Object.keys(d),b=h.length;for(f=0;f<b;f++)p=h[f],m.call(null,d[p],p,d)}}function eD(d,m){let u;if(ef(d))return null;m=m.toLowerCase();let f=Object.keys(d),p=f.length;for(;p-- >0;)if(m===(u=f[p]).toLowerCase())return u;return null}let eR="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,eN=d=>!eu(d)&&d!==eR,eB=(h="u">typeof Uint8Array&&ei(Uint8Array),d=>h&&d instanceof h),eL=ec("HTMLFormElement"),{propertyIsEnumerable:eP}=Object.prototype,eM=ec("RegExp"),ez=(d,m)=>{let u=Object.getOwnPropertyDescriptors(d),f={};eO(u,(u,p)=>{let h;!1!==(h=m(u,p,d))&&(f[p]=h||u)}),Object.defineProperties(d,f)},eU=ec("AsyncFunction"),ej=(v="function"==typeof setImmediate,_=eb(eR.postMessage),v?setImmediate:_?(y=`axios@${Math.random()}`,F=[],eR.addEventListener("message",({source:d,data:m})=>{d===eR&&m===y&&F.length&&F.shift()()},!1),d=>{F.push(d),eR.postMessage(y,"*")}):d=>setTimeout(d)),eV="u">typeof queueMicrotask?queueMicrotask.bind(eR):"u">typeof process&&process.nextTick||ej,e$=d=>null!=d&&eb(d[eo]),eH={isArray:em,isArrayBuffer:ep,isBuffer:ef,isFormData:d=>{if(!d)return!1;if(ek&&d instanceof ek)return!0;let m=ei(d);if(!m||m===Object.prototype||!eb(d.append))return!1;let u=el(d);return"formdata"===u||"object"===u&&eb(d.toString)&&"[object FormData]"===d.toString()},isArrayBufferView:function(d){let m;return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(d):d&&d.buffer&&ep(d.buffer)},isString:eh,isNumber:eg,isBoolean:d=>!0===d||!1===d,isObject:ev,isPlainObject:e_,isEmptyObject:d=>{if(!ev(d)||ef(d))return!1;try{return 0===Object.keys(d).length&&Object.getPrototypeOf(d)===Object.prototype}catch(d){return!1}},isReadableStream:eC,isRequest:eT,isResponse:eS,isHeaders:eI,isUndefined:eu,isDate:ey,isFile:eF,isReactNativeBlob:d=>!!(d&&void 0!==d.uri),isReactNative:d=>d&&void 0!==d.getParts,isBlob:ex,isRegExp:eM,isFunction:eb,isStream:d=>ev(d)&&eb(d.pipe),isURLSearchParams:eA,isTypedArray:eB,isFileList:ew,forEach:eO,merge:function d(...m){let{caseless:u,skipUndefined:f}=eN(this)&&this||{},p={},h=(m,h)=>{if("__proto__"===h||"constructor"===h||"prototype"===h)return;let b=u&&"string"==typeof h&&eD(p,h)||h,g=ea(p,b)?p[b]:void 0;e_(g)&&e_(m)?p[b]=d(g,m):e_(m)?p[b]=d({},m):em(m)?p[b]=m.slice():f&&eu(m)||(p[b]=m)};for(let d=0,u=m.length;d<u;d++){let u=m[d];if(!u||ef(u)||(eO(u,h),"object"!=typeof u||em(u)))continue;let f=Object.getOwnPropertySymbols(u);for(let d=0;d<f.length;d++){let m=f[d];eP.call(u,m)&&h(u[m],m)}}return p},extend:(d,m,u,{allOwnKeys:f}={})=>(eO(m,(m,f)=>{u&&eb(m)?Object.defineProperty(d,f,{__proto__:null,value:et(m,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(d,f,{__proto__:null,value:m,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:f}),d),trim:d=>d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:d=>(65279===d.charCodeAt(0)&&(d=d.slice(1)),d),inherits:(d,m,u,f)=>{d.prototype=Object.create(m.prototype,f),Object.defineProperty(d.prototype,"constructor",{__proto__:null,value:d,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(d,"super",{__proto__:null,value:m.prototype}),u&&Object.assign(d.prototype,u)},toFlatObject:(d,m,u,f)=>{let p,h,b,g={};if(m=m||{},null==d)return m;do{for(h=(p=Object.getOwnPropertyNames(d)).length;h-- >0;)b=p[h],(!f||f(b,d,m))&&!g[b]&&(m[b]=d[b],g[b]=!0);d=!1!==u&&ei(d)}while(d&&(!u||u(d,m))&&d!==Object.prototype);return m},kindOf:el,kindOfTest:ec,endsWith:(d,m,u)=>{d=String(d),(void 0===u||u>d.length)&&(u=d.length),u-=m.length;let f=d.indexOf(m,u);return -1!==f&&f===u},toArray:d=>{if(!d)return null;if(em(d))return d;let m=d.length;if(!eg(m))return null;let u=Array(m);for(;m-- >0;)u[m]=d[m];return u},forEachEntry:(d,m)=>{let u,f=(d&&d[eo]).call(d);for(;(u=f.next())&&!u.done;){let f=u.value;m.call(d,f[0],f[1])}},matchAll:(d,m)=>{let u,f=[];for(;null!==(u=d.exec(m));)f.push(u);return f},isHTMLForm:eL,hasOwnProperty:ea,hasOwnProp:ea,hasOwnInPrototypeChain:es,getSafeProp:(d,m)=>null!=d&&es(d,m)?d[m]:void 0,reduceDescriptors:ez,freezeMethods:d=>{ez(d,(m,u)=>{if(eb(d)&&["arguments","caller","callee"].includes(u))return!1;if(eb(d[u])){if(m.enumerable=!1,"writable"in m){m.writable=!1;return}m.set||(m.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},toObjectSet:(d,m)=>{let u={};return(em(d)?d:String(d).split(m)).forEach(d=>{u[d]=!0}),u},toCamelCase:d=>d.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(d,m,u){return m.toUpperCase()+u}),noop:()=>{},toFiniteNumber:(d,m)=>null!=d&&Number.isFinite(d*=1)?d:m,findKey:eD,global:eR,isContextDefined:eN,isSpecCompliantForm:function(d){return!!(d&&eb(d.append)&&"FormData"===d[er]&&d[eo])},toJSONObject:d=>{let m=new WeakSet,u=d=>{if(ev(d)){if(m.has(d))return;if(ef(d))return d;if(!("toJSON"in d)){m.add(d);let f=em(d)?[]:{};return eO(d,(d,m)=>{let p=u(d);eu(p)||(f[m]=p)}),m.delete(d),f}}return d};return u(d)},isAsyncFn:eU,isThenable:d=>d&&(ev(d)||eb(d))&&eb(d.then)&&eb(d.catch),setImmediate:ej,asap:eV,isIterable:e$,isSafeIterable:d=>null!=d&&es(d,eo)&&e$(d)},eq=eH.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eG=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eY=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function eW(d,m){return eH.isArray(d)?d.map(d=>eW(d,m)):function(d){let m=0,u=d.length;for(;m<u;){let u=d.charCodeAt(m);if(9!==u&&32!==u)break;m+=1}for(;u>m;){let m=d.charCodeAt(u-1);if(9!==m&&32!==m)break;u-=1}return 0===m&&u===d.length?d:d.slice(m,u)}(String(d).replace(m,""))}function eX(d){let m=Object.create(null);return eH.forEach(d.toJSON(),(d,u)=>{m[u]=eW(d,eY)}),m}let eK=Symbol("internals");function eJ(d){return d&&String(d).trim().toLowerCase()}function eZ(d){return!1===d||null==d?d:eH.isArray(d)?d.map(eZ):eW(String(d),eG)}function eQ(d,m,u,f,p){if(eH.isFunction(f))return f.call(this,m,u);if(p&&(m=u),eH.isString(m)){if(eH.isString(f))return -1!==m.indexOf(f);if(eH.isRegExp(f))return f.test(m)}}class e0{constructor(d){d&&this.set(d)}set(d,m,u){let f=this;function p(d,m,u){let p=eJ(m);if(!p)return;let h=eH.findKey(f,p);h&&void 0!==f[h]&&!0!==u&&(void 0!==u||!1===f[h])||(f[h||m]=eZ(d))}let h=(d,m)=>eH.forEach(d,(d,u)=>p(d,u,m));if(eH.isPlainObject(d)||d instanceof this.constructor)h(d,m);else{let f;if(eH.isString(d)&&(d=d.trim())&&(f=d,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim()))){var b;let u,f,p,g;h((g={},(b=d)&&b.split("\n").forEach(function(d){p=d.indexOf(":"),u=d.substring(0,p).trim().toLowerCase(),f=d.substring(p+1).trim(),!u||g[u]&&eq[u]||("set-cookie"===u?g[u]?g[u].push(f):g[u]=[f]:g[u]=g[u]?g[u]+", "+f:f)}),g),m)}else if(eH.isObject(d)&&eH.isSafeIterable(d)){let u=Object.create(null),f,p;for(let m of d){if(!eH.isArray(m))throw TypeError("Object iterator must return a key-value pair");p=m[0],eH.hasOwnProp(u,p)?(f=u[p],u[p]=eH.isArray(f)?[...f,m[1]]:[f,m[1]]):u[p]=m[1]}h(u,m)}else null!=d&&p(m,d,u)}return this}get(d,m){if(d=eJ(d)){let u=eH.findKey(this,d);if(u){let d=this[u];if(!m)return d;if(!0===m){let m,u=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;m=f.exec(d);)u[m[1]]=m[2];return u}if(eH.isFunction(m))return m.call(this,d,u);if(eH.isRegExp(m))return m.exec(d);throw TypeError("parser must be boolean|regexp|function")}}}has(d,m){if(d=eJ(d)){let u=eH.findKey(this,d);return!!(u&&void 0!==this[u]&&(!m||eQ(this,this[u],u,m)))}return!1}delete(d,m){let u=this,f=!1;function p(d){if(d=eJ(d)){let p=eH.findKey(u,d);p&&(!m||eQ(u,u[p],p,m))&&(delete u[p],f=!0)}}return eH.isArray(d)?d.forEach(p):p(d),f}clear(d){let m=Object.keys(this),u=m.length,f=!1;for(;u--;){let p=m[u];(!d||eQ(this,this[p],p,d,!0))&&(delete this[p],f=!0)}return f}normalize(d){let m=this,u={};return eH.forEach(this,(f,p)=>{let h=eH.findKey(u,p);if(h){m[h]=eZ(f),delete m[p];return}let b=d?p.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(d,m,u)=>m.toUpperCase()+u):String(p).trim();b!==p&&delete m[p],m[b]=eZ(f),u[b]=!0}),this}concat(...d){return this.constructor.concat(this,...d)}toJSON(d){let m=Object.create(null);return eH.forEach(this,(u,f)=>{null!=u&&!1!==u&&(m[f]=d&&eH.isArray(u)?u.join(", "):u)}),m}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([d,m])=>d+": "+m).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(d){return d instanceof this?d:new this(d)}static concat(d,...m){let u=new this(d);return m.forEach(d=>u.set(d)),u}static accessor(d){let m=(this[eK]=this[eK]={accessors:{}}).accessors,u=this.prototype;function f(d){let f=eJ(d);if(!m[f]){let p;p=eH.toCamelCase(" "+d),["get","set","has"].forEach(m=>{Object.defineProperty(u,m+p,{__proto__:null,value:function(u,f,p){return this[m].call(this,d,u,f,p)},configurable:!0})}),m[f]=!0}}return eH.isArray(d)?d.forEach(f):f(d),this}}e0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eH.reduceDescriptors(e0.prototype,({value:d},m)=>{let u=m[0].toUpperCase()+m.slice(1);return{get:()=>d,set(d){this[u]=d}}}),eH.freezeMethods(e0);class e1 extends Error{static from(d,m,u,f,p,h){let b=new e1(d.message,m||d.code,u,f,p);return Object.defineProperty(b,"cause",{__proto__:null,value:d,writable:!0,enumerable:!1,configurable:!0}),b.name=d.name,null!=d.status&&null==b.status&&(b.status=d.status),h&&Object.assign(b,h),b}constructor(d,m,u,f,p){super(d),Object.defineProperty(this,"message",{__proto__:null,value:d,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,m&&(this.code=m),u&&(this.config=u),f&&(this.request=f),p&&(this.response=p,this.status=p.status)}toJSON(){let d,m,u,f=this.config,p=f&&eH.hasOwnProp(f,"redact")?f.redact:void 0,h=eH.isArray(p)&&p.length>0?(d=new Set(p.map(d=>String(d).toLowerCase())),m=[],(u=f=>{let p;if(null===f||"object"!=typeof f||eH.isBuffer(f))return f;if(-1===m.indexOf(f)){if(f instanceof e0&&(f=f.toJSON()),m.push(f),eH.isArray(f))p=[],f.forEach((d,m)=>{let f=u(d);eH.isUndefined(f)||(p[m]=f)});else{if(!eH.isPlainObject(f)&&function(d){if(eH.hasOwnProp(d,"toJSON"))return!0;let m=Object.getPrototypeOf(d);for(;m&&m!==Object.prototype;){if(eH.hasOwnProp(m,"toJSON"))return!0;m=Object.getPrototypeOf(m)}return!1}(f))return m.pop(),f;for(let[m,h]of(p=Object.create(null),Object.entries(f))){let f=d.has(m.toLowerCase())?"[REDACTED ****]":u(h);eH.isUndefined(f)||(p[m]=f)}}return m.pop(),p}})(f)):eH.toJSONObject(f);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h,code:this.code,status:this.status}}}e1.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e1.ERR_BAD_OPTION="ERR_BAD_OPTION",e1.ECONNABORTED="ECONNABORTED",e1.ETIMEDOUT="ETIMEDOUT",e1.ECONNREFUSED="ECONNREFUSED",e1.ERR_NETWORK="ERR_NETWORK",e1.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e1.ERR_DEPRECATED="ERR_DEPRECATED",e1.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e1.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e1.ERR_CANCELED="ERR_CANCELED",e1.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e1.ERR_INVALID_URL="ERR_INVALID_URL",e1.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let e2=e1;function e5(d){return eH.isPlainObject(d)||eH.isArray(d)}function e4(d){return eH.endsWith(d,"[]")?d.slice(0,-2):d}function e3(d,m,u){return d?d.concat(m).map(function(d,m){return d=e4(d),!u&&m?"["+d+"]":d}).join(u?".":""):m}let e6=eH.toFlatObject(eH,{},null,function(d){return/^is[A-Z]/.test(d)}),e8=function(d,m,u){if(!eH.isObject(d))throw TypeError("target must be an object");m=m||new FormData;let f=(u=eH.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!eH.isUndefined(m[d])})).metaTokens,p=u.visitor||w,h=u.dots,b=u.indexes,g=u.Blob||"u">typeof Blob&&Blob,v=void 0===u.maxDepth?100:u.maxDepth,_=g&&eH.isSpecCompliantForm(m),y=[];if(!eH.isFunction(p))throw TypeError("visitor must be a function");function F(d){if(null===d)return"";if(eH.isDate(d))return d.toISOString();if(eH.isBoolean(d))return d.toString();if(!_&&eH.isBlob(d))throw new e2("Blob is not supported. Use a Buffer instead.");if(eH.isArrayBuffer(d)||eH.isTypedArray(d)){if(_&&"function"==typeof g)return new g([d]);if("u">typeof Buffer)return Buffer.from(d);throw new e2("Blob is not supported. Use a Buffer instead.",e2.ERR_NOT_SUPPORT)}return d}function x(d){if(d>v)throw new e2("Object is too deeply nested ("+d+" levels). Max depth: "+v,e2.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(d,u,p){let g=d;if(eH.isReactNative(m)&&eH.isReactNativeBlob(d))return m.append(e3(p,u,h),F(d)),!1;if(d&&!p&&"object"==typeof d)if(eH.endsWith(u,"{}"))u=f?u:u.slice(0,-2),d=function(d){if(1/0===v)return JSON.stringify(d);let m=[];return JSON.stringify(d,function(d,u){if(!eH.isObject(u))return u;for(;m.length&&m[m.length-1]!==this;)m.pop();return m.push(u),x(1+m.length-1),u})}(d);else{var _;if(eH.isArray(d)&&(_=d,eH.isArray(_)&&!_.some(e5))||(eH.isFileList(d)||eH.endsWith(u,"[]"))&&(g=eH.toArray(d)))return u=e4(u),g.forEach(function(d,f){eH.isUndefined(d)||null===d||m.append(!0===b?e3([u],f,h):null===b?u:u+"[]",F(d))}),!1}return!!e5(d)||(m.append(e3(p,u,h),F(d)),!1)}let E=Object.assign(e6,{defaultVisitor:w,convertValue:F,isVisitable:e5});if(!eH.isObject(d))throw TypeError("data must be an object");return!function d(u,f,h=0){if(!eH.isUndefined(u)){if(x(h),-1!==y.indexOf(u))throw Error("Circular reference detected in "+f.join("."));y.push(u),eH.forEach(u,function(u,b){!0===(!(eH.isUndefined(u)||null===u)&&p.call(m,u,eH.isString(b)?b.trim():b,f,E))&&d(u,f?f.concat(b):[b],h+1)}),y.pop()}}(d),m};function e7(d){let m={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(d).replace(/[!'()~]|%20/g,function(d){return m[d]})}function e9(d,m){this._pairs=[],d&&e8(d,this,m)}let te=e9.prototype;function tt(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tn(d,m,u){let f;if(!m)return d;d=d||"";let p=eH.isFunction(u)?{serialize:u}:u,h=eH.getSafeProp(p,"encode")||tt,b=eH.getSafeProp(p,"serialize");if(f=b?b(m,p):eH.isURLSearchParams(m)?m.toString():new e9(m,p).toString(h)){let m=d.indexOf("#");-1!==m&&(d=d.slice(0,m)),d+=(-1===d.indexOf("?")?"?":"&")+f}return d}te.append=function(d,m){this._pairs.push([d,m])},te.toString=function(d){let m=d?m=>d.call(this,m,e7):e7;return this._pairs.map(function(d){return m(d[0])+"="+m(d[1])},"").join("&")};let ti=class{constructor(){this.handlers=[]}use(d,m,u){return this.handlers.push({fulfilled:d,rejected:m,synchronous:!!u&&u.synchronous,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){eH.forEach(this.handlers,function(m){null!==m&&d(m)})}},to={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},tr="u">typeof URLSearchParams?URLSearchParams:e9,ta="u">typeof FormData?FormData:null,ts="u">typeof Blob?Blob:null,tl="u">typeof window&&"u">typeof document,tc="object"==typeof navigator&&navigator||void 0,td=tl&&(!tc||0>["ReactNative","NativeScript","NS"].indexOf(tc.product)),tm="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tu=tl&&window.location.href||"http://localhost",tf={...S,isBrowser:!0,classes:{URLSearchParams:tr,FormData:ta,Blob:ts},protocols:["http","https","file","blob","url","data"]};function tp(d){if(d>100)throw new e2("FormData field is too deeply nested ("+d+" levels). Max depth: 100",e2.ERR_FORM_DATA_DEPTH_EXCEEDED)}let th=function(d){if(eH.isFormData(d)&&eH.isFunction(d.entries)){let m={};return eH.forEachEntry(d,(d,u)=>{!function d(m,u,f,p){tp(p);let h=m[p++];if("__proto__"===h)return!0;let b=Number.isFinite(+h),g=p>=m.length;return(h=!h&&eH.isArray(f)?f.length:h,g)?eH.hasOwnProp(f,h)?f[h]=eH.isArray(f[h])?f[h].concat(u):[f[h],u]:f[h]=u:(eH.hasOwnProp(f,h)&&eH.isObject(f[h])||(f[h]=[]),d(m,u,f[h],p)&&eH.isArray(f[h])&&(f[h]=function(d){let m,u,f={},p=Object.keys(d),h=p.length;for(m=0;m<h;m++)f[u=p[m]]=d[u];return f}(f[h]))),!b}(function(d){let m,u=[],f=/\w+|\[(\w*)]/g;for(;null!==(m=f.exec(d));)tp(u.length),u.push("[]"===m[0]?"":m[1]||m[0]);return u}(d),u,m,0)}),m}return null},tb=(d,m)=>null!=d&&eH.hasOwnProp(d,m)?d[m]:void 0,tg={transitional:to,adapter:["xhr","http","fetch"],transformRequest:[function(d,m){let u,f=m.getContentType()||"",p=f.indexOf("application/json")>-1,h=eH.isObject(d);if(h&&eH.isHTMLForm(d)&&(d=new FormData(d)),eH.isFormData(d))return p?JSON.stringify(th(d)):d;if(eH.isArrayBuffer(d)||eH.isBuffer(d)||eH.isStream(d)||eH.isFile(d)||eH.isBlob(d)||eH.isReadableStream(d))return d;if(eH.isArrayBufferView(d))return d.buffer;if(eH.isURLSearchParams(d))return m.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();if(h){let m=tb(this,"formSerializer");if(f.indexOf("application/x-www-form-urlencoded")>-1){var b;return(b=d,e8(b,new tf.classes.URLSearchParams,{visitor:function(d,m,u,f){return tf.isNode&&eH.isBuffer(d)?(this.append(m,d.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...m})).toString()}if((u=eH.isFileList(d))||f.indexOf("multipart/form-data")>-1){let f=tb(this,"env"),p=f&&f.FormData;return e8(u?{"files[]":d}:d,p&&new p,m)}}if(h||p){m.setContentType("application/json",!1);var g=d;if(eH.isString(g))try{return(0,JSON.parse)(g),eH.trim(g)}catch(d){if("SyntaxError"!==d.name)throw d}return(0,JSON.stringify)(g)}return d}],transformResponse:[function(d){let m=tb(this,"transitional")||tg.transitional,u=m&&m.forcedJSONParsing,f=tb(this,"responseType"),p="json"===f;if(eH.isResponse(d)||eH.isReadableStream(d))return d;if(d&&eH.isString(d)&&(u&&!f||p)){let u=m&&m.silentJSONParsing;try{return JSON.parse(d,tb(this,"parseReviver"))}catch(d){if(!u&&p){if("SyntaxError"===d.name)throw e2.from(d,e2.ERR_BAD_RESPONSE,this,null,tb(this,"response"));throw d}}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tf.classes.FormData,Blob:tf.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tv(d,m){let u=this||tg,f=m||u,p=e0.from(f.headers),h=f.data;return eH.forEach(d,function(d){h=d.call(u,h,p.normalize(),m?m.status:void 0)}),p.normalize(),h}function t_(d){return!!(d&&d.__CANCEL__)}eH.forEach(["delete","get","head","post","put","patch","query"],d=>{tg.headers[d]={}});let ty=class extends e2{constructor(d,m,u){super(null==d?"canceled":d,e2.ERR_CANCELED,m,u),this.name="CanceledError",this.__CANCEL__=!0}};function tF(d,m,u){let f=u.config.validateStatus;!u.status||!f||f(u.status)?d(u):m(new e2("Request failed with status code "+u.status,u.status>=400&&u.status<500?e2.ERR_BAD_REQUEST:e2.ERR_BAD_RESPONSE,u.config,u.request,u))}let tx=function(d,m){let u,f=Array(d=d||10),p=Array(d),h=0,b=0;return m=void 0!==m?m:1e3,function(g){let v=Date.now(),_=p[b];u||(u=v),f[h]=g,p[h]=v;let y=b,F=0;for(;y!==h;)F+=f[y++],y%=d;if((h=(h+1)%d)===b&&(b=(b+1)%d),v-u<m)return;let x=_&&v-_;return x?Math.round(1e3*F/x):void 0}},tw=function(d,m){let u,f,p=0,h=1e3/m,b=(m,h=Date.now())=>{p=h,u=null,f&&(clearTimeout(f),f=null),d(...m)};return[(...d)=>{let m=Date.now(),g=m-p;g>=h?b(d,m):(u=d,f||(f=setTimeout(()=>{f=null,b(u)},h-g)))},()=>u&&b(u)]},tE=(d,m,u=3)=>{let f=0,p=tx(50,250);return tw(u=>{if(!u||"number"!=typeof u.loaded)return;let h=u.loaded,b=u.lengthComputable?u.total:void 0,g=null!=b?Math.min(h,b):h,v=Math.max(0,g-f),_=p(v);f=Math.max(f,g),d({loaded:g,total:b,progress:b?g/b:void 0,bytes:v,rate:_||void 0,estimated:_&&b?(b-g)/_:void 0,event:u,lengthComputable:null!=b,[m?"download":"upload"]:!0})},u)},tk=(d,m)=>{let u=null!=d;return[f=>m[0]({lengthComputable:u,total:d,loaded:f}),m[1]]},tA=d=>(...m)=>eH.asap(()=>d(...m)),tC=tf.hasStandardBrowserEnv?(b=new URL(tf.origin),g=tf.navigator&&/(msie|trident)/i.test(tf.navigator.userAgent),d=>(d=new URL(d,tf.origin),b.protocol===d.protocol&&b.host===d.host&&(g||b.port===d.port))):()=>!0,tT=tf.hasStandardBrowserEnv?{write(d,m,u,f,p,h,b){if("u"<typeof document)return;let g=[`${d}=${encodeURIComponent(m)}`];eH.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),eH.isString(f)&&g.push(`path=${f}`),eH.isString(p)&&g.push(`domain=${p}`),!0===h&&g.push("secure"),eH.isString(b)&&g.push(`SameSite=${b}`),document.cookie=g.join("; ")},read(d){if("u"<typeof document)return null;let m=document.cookie.split(";");for(let u=0;u<m.length;u++){let f=m[u].replace(/^\s+/,""),p=f.indexOf("=");if(-1!==p&&f.slice(0,p)===d)try{return decodeURIComponent(f.slice(p+1))}catch(d){return f.slice(p+1)}}return null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},tS=/^https?:(?!\/\/)/i,tI=/[\t\n\r]/g;function tO(d,m){if("string"==typeof d&&tS.test((function(d){let m=0;for(;m<d.length&&32>=d.charCodeAt(m);)m++;return d.slice(m)})(d).replace(tI,"")))throw new e2('Invalid URL: missing "//" after protocol',e2.ERR_INVALID_URL,m)}function tD(d,m,u,f){tO(m,f);let p=!("string"==typeof m&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(m));return d&&(p||!1===u)?(tO(d,f),m?d.replace(/\/?\/$/,"")+"/"+m.replace(/^\/+/,""):d):m}let tR=d=>d instanceof e0?{...d}:d;function tN(d,m){d=d||{},m=m||{};let u=Object.create(null);function f(d,m,u,f){return eH.isPlainObject(d)&&eH.isPlainObject(m)?eH.merge.call({caseless:f},d,m):eH.isPlainObject(m)?eH.merge({},m):eH.isArray(m)?m.slice():m}function p(d,m,u,p){return eH.isUndefined(m)?eH.isUndefined(d)?void 0:f(void 0,d,u,p):f(d,m,u,p)}function h(d,m){if(!eH.isUndefined(m))return f(void 0,m)}function b(d,m){return eH.isUndefined(m)?eH.isUndefined(d)?void 0:f(void 0,d):f(void 0,m)}function g(u,p,h){return eH.hasOwnProp(m,h)?f(u,p):eH.hasOwnProp(d,h)?f(void 0,u):void 0}Object.defineProperty(u,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let v={url:h,method:h,data:h,baseURL:b,transformRequest:b,transformResponse:b,paramsSerializer:b,timeout:b,timeoutMessage:b,withCredentials:b,withXSRFToken:b,adapter:b,responseType:b,xsrfCookieName:b,xsrfHeaderName:b,onUploadProgress:b,onDownloadProgress:b,decompress:b,maxContentLength:b,maxBodyLength:b,beforeRedirect:b,transport:b,httpAgent:b,httpsAgent:b,cancelToken:b,socketPath:b,allowedSocketPaths:b,responseEncoding:b,validateStatus:g,headers:(d,m,u)=>p(tR(d),tR(m),u,!0)};return eH.forEach(Object.keys({...d,...m}),function(f){if("__proto__"===f||"constructor"===f||"prototype"===f)return;let h=eH.hasOwnProp(v,f)?v[f]:p,b=h(eH.hasOwnProp(d,f)?d[f]:void 0,eH.hasOwnProp(m,f)?m[f]:void 0,f);eH.isUndefined(b)&&h!==g||(u[f]=b)}),eH.hasOwnProp(m,"validateStatus")&&eH.isUndefined(m.validateStatus)&&!1===function(u){let f=eH.hasOwnProp(m,"transitional")?m.transitional:void 0;if(!eH.isUndefined(f)){if(!eH.isPlainObject(f))return;else if(eH.hasOwnProp(f,u))return f[u]}let p=eH.hasOwnProp(d,"transitional")?d.transitional:void 0;if(eH.isPlainObject(p)&&eH.hasOwnProp(p,u))return p[u]}("validateStatusUndefinedResolves")&&(eH.hasOwnProp(d,"validateStatus")?u.validateStatus=f(void 0,d.validateStatus):delete u.validateStatus),u}let tB=["content-type","content-length"],tL=function(d){let m=tN({},d),u=d=>eH.hasOwnProp(m,d)?m[d]:void 0,f=u("data"),p=u("withXSRFToken"),h=u("xsrfHeaderName"),b=u("xsrfCookieName"),g=u("headers"),v=u("auth"),_=u("baseURL"),y=u("allowAbsoluteUrls"),F=u("url");if(m.headers=g=e0.from(g),m.url=tn(tD(_,F,y,m),u("params"),u("paramsSerializer")),v){let m=eH.getSafeProp(v,"username")||"",u=eH.getSafeProp(v,"password")||"";try{g.set("Authorization","Basic "+btoa(m+":"+(u?encodeURIComponent(u).replace(/%([0-9A-F]{2})/gi,(d,m)=>String.fromCharCode(parseInt(m,16))):"")))}catch(m){throw e2.from(m,e2.ERR_BAD_OPTION_VALUE,d)}}if(eH.isFormData(f))if(tf.hasStandardBrowserEnv||tf.hasStandardBrowserWebWorkerEnv||eH.isReactNative(f))g.setContentType(void 0);else{var x,w;eH.isFunction(f.getHeaders)&&(x=g,w=f.getHeaders(),"content-only"!==u("formDataHeaderPolicy")?x.set(w):Object.entries(w||{}).forEach(([d,m])=>{tB.includes(d.toLowerCase())&&x.set(d,m)}))}if(tf.hasStandardBrowserEnv&&(eH.isFunction(p)&&(p=p(m)),!0===p||null==p&&tC(m.url))){let d=h&&b&&tT.read(b);d&&g.set(h,d)}return m},tP="u">typeof XMLHttpRequest&&function(d){return new Promise(function(m,u){var f;let p,h,b,g,v,_,y=tL(d),F=y.data,x=e0.from(y.headers).normalize(),{responseType:w,onUploadProgress:E,onDownloadProgress:k}=y;function A(){g&&g(),v&&v(),y.cancelToken&&y.cancelToken.unsubscribe(p),y.signal&&y.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;function T(){if(!C)return;let f=e0.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders());tF(function(d){m(d),A()},function(d){u(d),A()},{data:w&&"text"!==w&&"json"!==w?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:f,config:d,request:C}),C=null}C.open(y.method.toUpperCase(),y.url,!0),C.timeout=y.timeout,"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||4!==C.readyState||(0!==C.status||C.responseURL&&C.responseURL.startsWith("file:"))&&setTimeout(T)},C.onabort=function(){C&&(u(new e2("Request aborted",e2.ECONNABORTED,d,C)),A(),C=null)},C.onerror=function(m){let f=new e2(m&&m.message?m.message:"Network Error",e2.ERR_NETWORK,d,C);f.event=m||null,u(f),A(),C=null},C.ontimeout=function(){let m=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded",f=y.transitional||to;y.timeoutErrorMessage&&(m=y.timeoutErrorMessage),u(new e2(m,f.clarifyTimeoutError?e2.ETIMEDOUT:e2.ECONNABORTED,d,C)),A(),C=null},void 0===F&&x.setContentType(null),"setRequestHeader"in C&&eH.forEach(eX(x),function(d,m){C.setRequestHeader(m,d)}),eH.isUndefined(y.withCredentials)||(C.withCredentials=!!y.withCredentials),w&&"json"!==w&&(C.responseType=y.responseType),k&&([b,v]=tE(k,!0),C.addEventListener("progress",b)),E&&C.upload&&([h,g]=tE(E),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",g)),(y.cancelToken||y.signal)&&(p=m=>{C&&(u(!m||m.type?new ty(null,d,C):m),C.abort(),A(),C=null)},y.cancelToken&&y.cancelToken.subscribe(p),y.signal&&(y.signal.aborted?p():y.signal.addEventListener("abort",p)));let S=(f=y.url,(_=/^([-+\w]{1,25}):(?:\/\/)?/.exec(f))&&_[1]||"");if(S&&!tf.protocols.includes(S)){u(new e2("Unsupported protocol "+S+":",e2.ERR_BAD_REQUEST,d)),A();return}C.send(F||null)})},tM=function*(d,m){let u,f=d.byteLength;if(!m||f<m)return void(yield d);let p=0;for(;p<f;)u=p+m,yield d.slice(p,u),p=u},tz=async function*(d,m){for await(let u of tU(d))yield*tM(u,m)},tU=async function*(d){if(d[Symbol.asyncIterator])return void(yield*d);let m=d.getReader();try{for(;;){let{done:d,value:u}=await m.read();if(d)break;yield u}}finally{await m.cancel()}},tj=(d,m,u,f)=>{let p,h=tz(d,m),b=0,g=d=>{!p&&(p=!0,f&&f(d))};return new ReadableStream({async pull(d){try{let{done:m,value:f}=await h.next();if(m){g(),d.close();return}let p=f.byteLength;if(u){let d=b+=p;u(d)}d.enqueue(new Uint8Array(f))}catch(d){throw g(d),d}},cancel:d=>(g(d),h.return())},{highWaterMark:2})},tV=d=>d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102,t$=(d,m,u)=>m+2<u&&tV(d.charCodeAt(m+1))&&tV(d.charCodeAt(m+2)),{isFunction:tH}=eH,tq=d=>{if(!eH.isString(d))return d;try{return decodeURIComponent(d)}catch(m){return d}},tG=(d,...m)=>{try{return!!d(...m)}catch(d){return!1}},tY=d=>{let m,u=void 0!==eH.global&&null!==eH.global?eH.global:globalThis,{ReadableStream:f,TextEncoder:p}=u,{fetch:h,Request:b,Response:g}=d=eH.merge.call({skipUndefined:!0},{Request:u.Request,Response:u.Response},d),v=h?tH(h):"function"==typeof fetch,_=tH(b),y=tH(g);if(!v)return!1;let F=v&&tH(f),x=v&&("function"==typeof p?(m=new p,d=>m.encode(d)):async d=>new Uint8Array(await new b(d).arrayBuffer())),w=_&&F&&tG(()=>{let d=!1,m=new b(tf.origin,{body:new f,method:"POST",get duplex(){return d=!0,"half"}}),u=m.headers.has("Content-Type");return null!=m.body&&m.body.cancel(),d&&!u}),E=y&&F&&tG(()=>eH.isReadableStream(new g("").body)),k={stream:E&&(d=>d.body)};v&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{k[d]||(k[d]=(m,u)=>{let f=m&&m[d];if(f)return f.call(m);throw new e2(`Response type '${d}' is not supported`,e2.ERR_NOT_SUPPORT,u)})});let A=async d=>{if(null==d)return 0;if(eH.isBlob(d))return d.size;if(eH.isSpecCompliantForm(d)){let m=new b(tf.origin,{method:"POST",body:d});return(await m.arrayBuffer()).byteLength}return eH.isArrayBufferView(d)||eH.isArrayBuffer(d)?d.byteLength:(eH.isURLSearchParams(d)&&(d+=""),eH.isString(d))?(await x(d)).byteLength:void 0},C=async(d,m)=>{let u=eH.toFiniteNumber(d.getContentLength());return null==u?A(m):u};return async d=>{let m,{url:u,method:f,data:v,signal:y,cancelToken:x,timeout:T,onDownloadProgress:S,onUploadProgress:I,responseType:O,headers:D,withCredentials:R="same-origin",fetchOptions:N,maxContentLength:B,maxBodyLength:L}=tL(d),P=eH.isNumber(B)&&B>-1,M=eH.isNumber(L)&&L>-1,z=h||fetch;O=O?(O+"").toLowerCase():"text";let U=((d,m)=>{if(d=d?d.filter(Boolean):[],!m&&!d.length)return;let u=new AbortController,f=!1,p=function(d){if(!f){f=!0,b();let m=d instanceof Error?d:this.reason;u.abort(m instanceof e2?m:new ty(m instanceof Error?m.message:m))}},h=m&&setTimeout(()=>{h=null,p(new e2(`timeout of ${m}ms exceeded`,e2.ETIMEDOUT))},m),b=()=>{d&&(h&&clearTimeout(h),h=null,d.forEach(d=>{d.unsubscribe?d.unsubscribe(p):d.removeEventListener("abort",p)}),d=null)};d.forEach(d=>d.addEventListener("abort",p,{once:!0}));let{signal:g}=u;return g.unsubscribe=()=>eH.asap(b),g})([y,x&&x.toAbortSignal()],T),j=null,V=U&&U.unsubscribe&&(()=>{U.unsubscribe()}),$=null,H=()=>new e2("Request body larger than maxBodyLength limit",e2.ERR_BAD_REQUEST,d,j);try{var q;let h,y,x,T,G=(y="auth",eH.hasOwnProp(d,y)?d[y]:void 0);if(G){let d=eH.getSafeProp(G,"username")||"",m=eH.getSafeProp(G,"password")||"";h={username:d,password:m}}if(x=(q=u).indexOf("://"),T=q,-1!==x&&(T=T.slice(x+3)),T.includes("@")||T.includes(":")){let d=new URL(u,tf.origin);if(!h&&(d.username||d.password)){let m=tq(d.username),u=tq(d.password);h={username:m,password:u}}(d.username||d.password)&&(d.username="",d.password="",u=d.href)}if(h){let d;D.delete("authorization"),D.set("Authorization","Basic "+btoa((d=(h.username||"")+":"+(h.password||""),encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(d,m)=>String.fromCharCode(parseInt(m,16))))))}if(P&&"string"==typeof u&&u.startsWith("data:")&&function(d){if(!d||"string"!=typeof d||!d.startsWith("data:"))return 0;let m=d.indexOf(",");if(m<0)return 0;let u=d.slice(5,m),f=d.slice(m+1);if(/;base64/i.test(u)){let d=f.length,m=f.length;for(let u=0;u<m;u++)if(37===f.charCodeAt(u)&&u+2<m){let m=f.charCodeAt(u+1),p=f.charCodeAt(u+2);tV(m)&&tV(p)&&(d-=2,u+=2)}let u=0,p=m-1,h=d=>d>=2&&37===f.charCodeAt(d-2)&&51===f.charCodeAt(d-1)&&(68===f.charCodeAt(d)||100===f.charCodeAt(d));p>=0&&(61===f.charCodeAt(p)?(u++,p--):h(p)&&(u++,p-=3)),1===u&&p>=0&&(61===f.charCodeAt(p)?u++:h(p)&&u++);let b=3*Math.floor(d/4)-(u||0);return b>0?b:0}let p=0;for(let d=0,m=f.length;d<m;d++){let u=f.charCodeAt(d);if(37===u&&t$(f,d,m))p+=1,d+=2;else if(u<128)p+=1;else if(u<2048)p+=2;else if(u>=55296&&u<=56319&&d+1<m){let m=f.charCodeAt(d+1);m>=56320&&m<=57343?(p+=4,d++):p+=3}else p+=3}return p}(u)>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j);if(M&&"get"!==f&&"head"!==f){let d=await A(v);if("number"==typeof d&&isFinite(d)&&(m=d,d>L))throw H()}let Y=M&&(eH.isReadableStream(v)||eH.isStream(v)),W=(d,m,u)=>tj(d,65536,d=>{if(M&&d>L)throw $=H();m&&m(d)},u);if(w&&"get"!==f&&"head"!==f&&(I||Y)){if(m=null==m?await C(D,v):m,0!==m||Y){let d,f=new b(u,{method:"POST",body:v,duplex:"half"});if(eH.isFormData(v)&&(d=f.headers.get("content-type"))&&D.setContentType(d),f.body){let[d,u]=I&&tk(m,tE(tA(I)))||[];v=W(f.body,d,u)}}}else if(Y&&!_&&F&&"get"!==f&&"head"!==f)v=W(v);else if(Y&&_&&!w&&"get"!==f&&"head"!==f)throw new e2("Stream request bodies are not supported by the current fetch implementation",e2.ERR_NOT_SUPPORT,d,j);eH.isString(R)||(R=R?"include":"omit");let X=_&&"credentials"in b.prototype;if(eH.isFormData(v)){let d=D.getContentType();d&&/^multipart\/form-data/i.test(d)&&!/boundary=/i.test(d)&&D.delete("content-type")}D.set("User-Agent","axios/1.18.1",!1);let K={...N,signal:U,method:f.toUpperCase(),headers:eX(D.normalize()),body:v,duplex:"half",credentials:X?R:void 0};j=_&&new b(u,K);let J=await (_?z(j,N):z(u,K)),Z=e0.from(J.headers);if(P){let m=eH.toFiniteNumber(Z.getContentLength());if(null!=m&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j)}let Q=E&&("stream"===O||"response"===O);if(E&&J.body&&(S||P||Q&&V)){let m={};["status","statusText","headers"].forEach(d=>{m[d]=J[d]});let u=eH.toFiniteNumber(Z.getContentLength()),[f,p]=S&&tk(u,tE(tA(S),!0))||[],h=0;J=new g(tj(J.body,65536,m=>{if(P&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j);f&&f(m)},()=>{p&&p(),V&&V()}),m)}O=O||"text";let ee=await k[eH.findKey(k,O)||"text"](J,d);if(P&&!E&&!Q){let m;if(null!=ee&&("number"==typeof ee.byteLength?m=ee.byteLength:"number"==typeof ee.size?m=ee.size:"string"==typeof ee&&(m="function"==typeof p?new p().encode(ee).byteLength:ee.length)),"number"==typeof m&&m>B)throw new e2("maxContentLength size of "+B+" exceeded",e2.ERR_BAD_RESPONSE,d,j)}return!Q&&V&&V(),await new Promise((m,u)=>{tF(m,u,{data:ee,headers:e0.from(J.headers),status:J.status,statusText:J.statusText,config:d,request:j})})}catch(m){if(V&&V(),U&&U.aborted&&U.reason instanceof e2){let u=U.reason;throw u.config=d,j&&(u.request=j),m!==u&&Object.defineProperty(u,"cause",{__proto__:null,value:m,writable:!0,enumerable:!1,configurable:!0}),u}if($)throw j&&!$.request&&($.request=j),$;if(m instanceof e2)throw j&&!m.request&&(m.request=j),m;if(m&&"TypeError"===m.name&&/Load failed|fetch/i.test(m.message)){let u=new e2("Network Error",e2.ERR_NETWORK,d,j,m&&m.response);throw Object.defineProperty(u,"cause",{__proto__:null,value:m.cause||m,writable:!0,enumerable:!1,configurable:!0}),u}throw e2.from(m,m&&m.code,d,j,m&&m.response)}}},tW=new Map,tX=d=>{let m=d&&d.env||{},{fetch:u,Request:f,Response:p}=m,h=[f,p,u],b=h.length,g,v,_=tW;for(;b--;)g=h[b],void 0===(v=_.get(g))&&_.set(g,v=b?new Map:tY(m)),_=v;return v};tX();let tK={http:null,xhr:tP,fetch:{get:tX}};eH.forEach(tK,(d,m)=>{if(d){try{Object.defineProperty(d,"name",{__proto__:null,value:m})}catch(d){}Object.defineProperty(d,"adapterName",{__proto__:null,value:m})}});let tJ=d=>`- ${d}`,tZ=d=>eH.isFunction(d)||null===d||!1===d,tQ=function(d,m){let u,f,{length:p}=d=eH.isArray(d)?d:[d],h={};for(let b=0;b<p;b++){let p;if(f=u=d[b],!tZ(u)&&void 0===(f=tK[(p=String(u)).toLowerCase()]))throw new e2(`Unknown adapter '${p}'`);if(f&&(eH.isFunction(f)||(f=f.get(m))))break;h[p||"#"+b]=f}if(!f){let d=Object.entries(h).map(([d,m])=>`adapter ${d} `+(!1===m?"is not supported by the environment":"is not available in the build"));throw new e2("There is no suitable adapter to dispatch the request "+(p?d.length>1?"since :\n"+d.map(tJ).join("\n"):" "+tJ(d[0]):"as no adapter specified"),e2.ERR_NOT_SUPPORT)}return f};function t0(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new ty(null,d)}function t1(d){return t0(d),d.headers=e0.from(d.headers),d.data=tv.call(d,d.transformRequest),-1!==["post","put","patch"].indexOf(d.method)&&d.headers.setContentType("application/x-www-form-urlencoded",!1),tQ(d.adapter||tg.adapter,d)(d).then(function(m){t0(d),d.response=m;try{m.data=tv.call(d,d.transformResponse,m)}finally{delete d.response}return m.headers=e0.from(m.headers),m},function(m){if(!t_(m)&&(t0(d),m&&m.response)){d.response=m.response;try{m.response.data=tv.call(d,d.transformResponse,m.response)}finally{delete d.response}m.response.headers=e0.from(m.response.headers)}return Promise.reject(m)})}let t2={};["object","boolean","number","function","string","symbol"].forEach((d,m)=>{t2[d]=function(u){return typeof u===d||"a"+(m<1?"n ":" ")+d}});let t5={};t2.transitional=function(d,m,u){function f(d,m){return"[Axios v1.18.1] Transitional option '"+d+"'"+m+(u?". "+u:"")}return(u,p,h)=>{if(!1===d)throw new e2(f(p," has been removed"+(m?" in "+m:"")),e2.ERR_DEPRECATED);return m&&!t5[p]&&(t5[p]=!0,console.warn(f(p," has been deprecated since v"+m+" and will be removed in the near future"))),!d||d(u,p,h)}},t2.spelling=function(d){return(m,u)=>(console.warn(`${u} is likely a misspelling of ${d}`),!0)};let t4=function(d,m,u){if("object"!=typeof d||null===d)throw new e2("options must be an object",e2.ERR_BAD_OPTION_VALUE);let f=Object.keys(d),p=f.length;for(;p-- >0;){let h=f[p],b=Object.prototype.hasOwnProperty.call(m,h)?m[h]:void 0;if(b){let m=d[h],u=void 0===m||b(m,h,d);if(!0!==u)throw new e2("option "+h+" must be "+u,e2.ERR_BAD_OPTION_VALUE);continue}if(!0!==u)throw new e2("Unknown option "+h,e2.ERR_BAD_OPTION)}};class t3{constructor(d){this.defaults=d||{},this.interceptors={request:new ti,response:new ti}}async request(d,m){try{return await this._request(d,m)}catch(d){if(d instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=Error();let u=(()=>{if(!m.stack)return"";let d=m.stack.indexOf("\n");return -1===d?"":m.stack.slice(d+1)})();try{if(d.stack){if(u){let m=u.indexOf("\n"),f=-1===m?-1:u.indexOf("\n",m+1),p=-1===f?"":u.slice(f+1);String(d.stack).endsWith(p)||(d.stack+="\n"+u)}}else d.stack=u}catch(d){}}throw d}}_request(d,m){let u,f;"string"==typeof d?(m=m||{}).url=d:m=d||{};let{transitional:p,paramsSerializer:h,headers:b}=m=tN(this.defaults,m);void 0!==p&&t4(p,{silentJSONParsing:t2.transitional(t2.boolean),forcedJSONParsing:t2.transitional(t2.boolean),clarifyTimeoutError:t2.transitional(t2.boolean),legacyInterceptorReqResOrdering:t2.transitional(t2.boolean),advertiseZstdAcceptEncoding:t2.transitional(t2.boolean),validateStatusUndefinedResolves:t2.transitional(t2.boolean)},!1),null!=h&&(eH.isFunction(h)?m.paramsSerializer={serialize:h}:t4(h,{encode:t2.function,serialize:t2.function},!0)),void 0!==m.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?m.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:m.allowAbsoluteUrls=!0),t4(m,{baseUrl:t2.spelling("baseURL"),withXsrfToken:t2.spelling("withXSRFToken")},!0),m.method=(m.method||this.defaults.method||"get").toLowerCase();let g=b&&eH.merge(b.common,b[m.method]);b&&eH.forEach(["delete","get","head","post","put","patch","query","common"],d=>{delete b[d]}),m.headers=e0.concat(g,b);let v=[],_=!0;this.interceptors.request.forEach(function(d){if("function"==typeof d.runWhen&&!1===d.runWhen(m))return;_=_&&d.synchronous;let u=m.transitional||to;u&&u.legacyInterceptorReqResOrdering?v.unshift(d.fulfilled,d.rejected):v.push(d.fulfilled,d.rejected)});let y=[];this.interceptors.response.forEach(function(d){y.push(d.fulfilled,d.rejected)});let F=0;if(!_){let d=[t1.bind(this),void 0];for(d.unshift(...v),d.push(...y),f=d.length,u=Promise.resolve(m);F<f;)u=u.then(d[F++],d[F++]);return u}f=v.length;let x=m;for(;F<f;){let d=v[F++],m=v[F++];try{x=d(x)}catch(d){m.call(this,d);break}}try{u=t1.call(this,x)}catch(d){return Promise.reject(d)}for(F=0,f=y.length;F<f;)u=u.then(y[F++],y[F++]);return u}getUri(d){return tn(tD((d=tN(this.defaults,d)).baseURL,d.url,d.allowAbsoluteUrls,d),d.params,d.paramsSerializer)}}eH.forEach(["delete","get","head","options"],function(d){t3.prototype[d]=function(m,u){return this.request(tN(u||{},{method:d,url:m,data:u&&eH.hasOwnProp(u,"data")?u.data:void 0}))}}),eH.forEach(["post","put","patch","query"],function(d){function m(m){return function(u,f,p){return this.request(tN(p||{},{method:d,headers:m?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}t3.prototype[d]=m(),"query"!==d&&(t3.prototype[d+"Form"]=m(!0))});let t6=class d{constructor(d){let m;if("function"!=typeof d)throw TypeError("executor must be a function.");this.promise=new Promise(function(d){m=d});const u=this;this.promise.then(d=>{if(!u._listeners)return;let m=u._listeners.length;for(;m-- >0;)u._listeners[m](d);u._listeners=null}),this.promise.then=d=>{let m,f=new Promise(d=>{u.subscribe(d),m=d}).then(d);return f.cancel=function(){u.unsubscribe(m)},f},d(function(d,f,p){u.reason||(u.reason=new ty(d,f,p),m(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(d){this.reason?d(this.reason):this._listeners?this._listeners.push(d):this._listeners=[d]}unsubscribe(d){if(!this._listeners)return;let m=this._listeners.indexOf(d);-1!==m&&this._listeners.splice(m,1)}toAbortSignal(){let d=new AbortController,m=m=>{d.abort(m)};return this.subscribe(m),d.signal.unsubscribe=()=>this.unsubscribe(m),d.signal}static source(){let m;return{token:new d(function(d){m=d}),cancel:m}}},t8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(t8).forEach(([d,m])=>{t8[m]=d});let t7=function d(m){let u=new t3(m),f=et(t3.prototype.request,u);return eH.extend(f,t3.prototype,u,{allOwnKeys:!0}),eH.extend(f,u,null,{allOwnKeys:!0}),f.create=function(u){return d(tN(m,u))},f}(tg);t7.Axios=t3,t7.CanceledError=ty,t7.CancelToken=t6,t7.isCancel=t_,t7.VERSION="1.18.1",t7.toFormData=e8,t7.AxiosError=e2,t7.Cancel=t7.CanceledError,t7.all=function(d){return Promise.all(d)},t7.spread=function(d){return function(m){return d.apply(null,m)}},t7.isAxiosError=function(d){return eH.isObject(d)&&!0===d.isAxiosError},t7.mergeConfig=tN,t7.AxiosHeaders=e0,t7.formToJSON=d=>th(eH.isHTMLForm(d)?new FormData(d):d),t7.getAdapter=tQ,t7.HttpStatusCode=t8,t7.default=t7;class t9{constructor(d){this.httpClient=d}createAlarm(d,m,u){return this.httpClient.request({method:"POST",url:nF`alarm`,queryParams:m,data:d,options:u})}getAlarms(d,m){return this.httpClient.request({method:"GET",url:nF`alarm`,queryParams:d,options:m})}removeAlarms(d,m){return this.httpClient.request({method:"DELETE",url:nF`alarm`,data:d,options:m})}setAssetLinks(d,m){return this.httpClient.request({method:"PUT",url:nF`alarm/assets`,data:d,options:m})}getAlarm(d,m){return this.httpClient.request({method:"GET",url:nF`alarm/${d}`,options:m})}removeAlarm(d,m){return this.httpClient.request({method:"DELETE",url:nF`alarm/${d}`,options:m})}updateAlarm(d,m,u){return this.httpClient.request({method:"PUT",url:nF`alarm/${d}`,data:m,options:u})}getAssetLinks(d,m,u){return this.httpClient.request({method:"GET",url:nF`alarm/${d}/assets`,queryParams:m,options:u})}}class ne{constructor(d){this.httpClient=d}getApps(d){return this.httpClient.request({method:"GET",url:nF`apps`,options:d})}getConsoleConfig(d){return this.httpClient.request({method:"GET",url:nF`apps/consoleConfig`,options:d})}getAppInfos(d){return this.httpClient.request({method:"GET",url:nF`apps/info`,options:d})}}class nt{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`dashboard`,data:d,options:m})}update(d,m){return this.httpClient.request({method:"PUT",url:nF`dashboard`,data:d,options:m})}getAllRealmDashboards(d,m){return this.httpClient.request({method:"GET",url:nF`dashboard/all/${d}`,options:m})}query(d,m){return this.httpClient.request({method:"POST",url:nF`dashboard/query`,data:d,options:m})}delete(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`dashboard/${d}/${m}`,options:u})}get(d,m,u){return this.httpClient.request({method:"GET",url:nF`dashboard/${d}/${m}`,options:u})}}class nn{constructor(d){this.httpClient=d}getConfig(d){return this.httpClient.request({method:"GET",url:nF`syslog/config`,options:d})}updateConfig(d,m){return this.httpClient.request({method:"PUT",url:nF`syslog/config`,data:d,options:m})}clearEvents(d){return this.httpClient.request({method:"DELETE",url:nF`syslog/event`,options:d})}getEvents(d,m){return this.httpClient.request({method:"GET",url:nF`syslog/event`,queryParams:d,options:m})}}class ni{constructor(d){this.httpClient=d}deleteConnections(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/connection`,queryParams:d,options:m})}getConnections(d){return this.httpClient.request({method:"GET",url:nF`gateway/connection`,options:d})}deleteConnection(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/connection/${d}`,options:m})}getConnection(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/connection/${d}`,options:m})}setConnection(d,m,u){return this.httpClient.request({method:"PUT",url:nF`gateway/connection/${d}`,data:m,options:u})}getConnectionStatus(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/status/${d}`,options:m})}}class no{constructor(d){this.httpClient=d}updateCurrentUserLocale(d,m){return this.httpClient.request({method:"PUT",url:nF`user/locale`,data:d,options:m})}query(d,m){return this.httpClient.request({method:"POST",url:nF`user/query`,data:d,options:m})}requestPasswordResetCurrent(d){return this.httpClient.request({method:"PUT",url:nF`user/request-password-reset`,options:d})}updatePasswordCurrent(d,m){return this.httpClient.request({method:"PUT",url:nF`user/reset-password`,data:d,options:m})}updateCurrent(d,m){return this.httpClient.request({method:"PUT",url:nF`user/update`,data:d,options:m})}getCurrent(d){return this.httpClient.request({method:"GET",url:nF`user/user`,options:d})}getCurrentUserRealmRoles(d){return this.httpClient.request({method:"GET",url:nF`user/userRealmRoles`,options:d})}getCurrentUserClientRoles(d,m){return this.httpClient.request({method:"GET",url:nF`user/userRoles/${d}`,options:m})}disconnectUserSession(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/disconnect/${m}`,options:u})}requestPasswordReset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/request-password-reset/${m}`,options:u})}updatePassword(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/reset-password/${m}`,data:u,options:f})}resetSecret(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/reset-secret/${m}`,options:u})}updateRoles(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/roles`,data:m,options:u})}getUserRealmRoles(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/userRealmRoles/${m}`,options:u})}updateUserRealmRoles(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/userRealmRoles/${m}`,data:u,options:f})}getUserClientRoles(d,m,u,f){return this.httpClient.request({method:"GET",url:nF`user/${d}/userRoles/${m}/${u}`,options:f})}updateUserClientRoles(d,m,u,f,p){return this.httpClient.request({method:"PUT",url:nF`user/${d}/userRoles/${m}/${u}`,data:f,options:p})}getUserSessions(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/userSessions/${m}`,options:u})}create(d,m,u){return this.httpClient.request({method:"POST",url:nF`user/${d}/users`,data:m,options:u})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`user/${d}/users`,data:m,options:u})}delete(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`user/${d}/users/${m}`,options:u})}getClientRoles(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/${m}/roles`,options:u})}updateClientRoles(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`user/${d}/${m}/roles`,data:u,options:f})}get(d,m,u){return this.httpClient.request({method:"GET",url:nF`user/${d}/${m}`,options:u})}}class nr{constructor(d){this.httpClient=d}doProtocolAssetDiscovery(d,m,u){return this.httpClient.request({method:"GET",url:nF`agent/assetDiscovery/${d}`,queryParams:m,options:u})}doProtocolAssetImport(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`agent/assetImport/${d}`,queryParams:u,data:m,options:f})}doProtocolInstanceDiscovery(d,m,u){return this.httpClient.request({method:"GET",url:nF`agent/instanceDiscovery/${d}`,queryParams:m,options:u})}}class na{constructor(d){this.httpClient=d}getHealthStatus(d){return this.httpClient.request({method:"GET",url:nF`health`,options:d})}getInfo(d){return this.httpClient.request({method:"GET",url:nF`info`,options:d})}}class ns{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`realm`,data:d,options:m})}getAll(d){return this.httpClient.request({method:"GET",url:nF`realm`,options:d})}getAccessible(d){return this.httpClient.request({method:"GET",url:nF`realm/accessible`,options:d})}delete(d,m){return this.httpClient.request({method:"DELETE",url:nF`realm/${d}`,options:m})}get(d,m){return this.httpClient.request({method:"GET",url:nF`realm/${d}`,options:m})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`realm/${d}`,data:m,options:u})}}class nl{constructor(d){this.httpClient=d}getAllNodeDefinitions(d){return this.httpClient.request({method:"GET",url:nF`flow`,options:d})}getNodeDefinition(d,m){return this.httpClient.request({method:"GET",url:nF`flow/${d}`,options:m})}getAllNodeDefinitionsByType(d,m){return this.httpClient.request({method:"GET",url:nF`flow/${d}`,options:m})}}class nc{constructor(d){this.httpClient=d}createGlobalRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules`,data:d,options:m})}getGlobalRulesets(d,m){return this.httpClient.request({method:"GET",url:nF`rules`,queryParams:d,options:m})}createAssetRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules/asset`,data:d,options:m})}getAssetRulesets(d,m,u){return this.httpClient.request({method:"GET",url:nF`rules/asset/for/${d}`,queryParams:m,options:u})}deleteAssetRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/asset/${d}`,options:m})}getAssetRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/asset/${d}`,options:m})}updateAssetRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/asset/${d}`,data:m,options:u})}getAssetGeofences(d,m){return this.httpClient.request({method:"GET",url:nF`rules/geofences/${d}`,options:m})}getAssetEngineInfo(d,m){return this.httpClient.request({method:"GET",url:nF`rules/info/asset/${d}`,options:m})}getGlobalEngineInfo(d){return this.httpClient.request({method:"GET",url:nF`rules/info/global`,options:d})}getRealmEngineInfo(d,m){return this.httpClient.request({method:"GET",url:nF`rules/info/realm/${d}`,options:m})}createRealmRuleset(d,m){return this.httpClient.request({method:"POST",url:nF`rules/realm`,data:d,options:m})}getRealmRulesets(d,m,u){return this.httpClient.request({method:"GET",url:nF`rules/realm/for/${d}`,queryParams:m,options:u})}deleteRealmRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/realm/${d}`,options:m})}getRealmRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/realm/${d}`,options:m})}updateRealmRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/realm/${d}`,data:m,options:u})}deleteGlobalRuleset(d,m){return this.httpClient.request({method:"DELETE",url:nF`rules/${d}`,options:m})}getGlobalRuleset(d,m){return this.httpClient.request({method:"GET",url:nF`rules/${d}`,options:m})}updateGlobalRuleset(d,m,u){return this.httpClient.request({method:"PUT",url:nF`rules/${d}`,data:m,options:u})}}class nd{constructor(d){this.httpClient=d}register(d,m){return this.httpClient.request({method:"POST",url:nF`console/register`,data:d,options:m})}}class nm{constructor(d){this.httpClient=d}createProvisioningConfig(d,m){return this.httpClient.request({method:"POST",url:nF`provisioning`,data:d,options:m})}getProvisioningConfigs(d){return this.httpClient.request({method:"GET",url:nF`provisioning`,options:d})}deleteProvisioningConfig(d,m){return this.httpClient.request({method:"DELETE",url:nF`provisioning/${d}`,options:m})}updateProvisioningConfig(d,m,u){return this.httpClient.request({method:"PUT",url:nF`provisioning/${d}`,data:m,options:u})}}class nu{constructor(d){this.httpClient=d}getSettings(d){return this.httpClient.request({method:"GET",url:nF`map`,options:d})}saveSettings(d,m){return this.httpClient.request({method:"PUT",url:nF`map`,data:d,options:m})}deleteMap(d){return this.httpClient.request({method:"DELETE",url:nF`map/deleteMap`,options:d})}getCustomMapInfo(d){return this.httpClient.request({method:"GET",url:nF`map/getCustomMapInfo`,options:d})}getTile(d,m,u,f){return this.httpClient.request({method:"GET",url:nF`map/tile/${d}/${m}/${u}`,options:f})}uploadMap(d,m){return this.httpClient.request({method:"POST",url:nF`map/upload`,queryParams:d,options:m})}}class nf{constructor(d){this.httpClient=d}getPredictedDatapoints(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`asset/predicted/${d}/${m}`,data:u,options:f})}writePredictedDatapoints(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`asset/predicted/${d}/${m}`,data:u,options:f})}}class np{constructor(d){this.httpClient=d}getManagerConfig(d){return this.httpClient.request({method:"GET",url:nF`configuration/manager`,options:d})}update(d,m){return this.httpClient.request({method:"PUT",url:nF`configuration/manager`,data:d,options:m})}fileUpload(d,m,u){return this.httpClient.request({method:"POST",url:nF`configuration/manager/file`,queryParams:m,data:d,options:u})}getManagerConfigImage(d,m){return this.httpClient.request({method:"GET",url:nF`configuration/manager/image/${d}`,options:m})}}class nh{constructor(d){this.httpClient=d}getDatapointExport(d,m){return this.httpClient.request({method:"GET",url:nF`asset/datapoint/export`,queryParams:d,options:m})}getDatapointPeriod(d,m){return this.httpClient.request({method:"GET",url:nF`asset/datapoint/periods`,queryParams:d,options:m})}getDatapoints(d,m,u,f){return this.httpClient.request({method:"POST",url:nF`asset/datapoint/${d}/${m}`,data:u,options:f})}}class nb{constructor(d){this.httpClient=d}getNotifications(d,m){return this.httpClient.request({method:"GET",url:nF`notification`,queryParams:d,options:m})}removeNotifications(d,m){return this.httpClient.request({method:"DELETE",url:nF`notification`,queryParams:d,options:m})}sendNotification(d,m){return this.httpClient.request({method:"POST",url:nF`notification/alert`,data:d,options:m})}getNotificationsCount(d,m){return this.httpClient.request({method:"GET",url:nF`notification/count`,queryParams:d,options:m})}removeNotification(d,m){return this.httpClient.request({method:"DELETE",url:nF`notification/${d}`,options:m})}notificationAcknowledged(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`notification/${d}/acknowledged`,queryParams:u,data:m,options:f})}notificationDelivered(d,m,u){return this.httpClient.request({method:"PUT",url:nF`notification/${d}/delivered`,queryParams:m,options:u})}}class ng{constructor(d){this.httpClient=d}create(d,m){return this.httpClient.request({method:"POST",url:nF`asset`,data:d,options:m})}delete(d,m){return this.httpClient.request({method:"DELETE",url:nF`asset`,queryParams:d,options:m})}writeAttributeValues(d,m){return this.httpClient.request({method:"PUT",url:nF`asset/attributes`,data:d,options:m})}writeAttributeEvents(d,m){return this.httpClient.request({method:"PUT",url:nF`asset/attributes/timestamp`,data:d,options:m})}queryCount(d,m){return this.httpClient.request({method:"POST",url:nF`asset/count`,data:d,options:m})}updateNoneParent(d,m){return this.httpClient.request({method:"DELETE",url:nF`asset/parent`,queryParams:d,options:m})}getPartial(d,m){return this.httpClient.request({method:"GET",url:nF`asset/partial/${d}`,options:m})}queryAssets(d,m){return this.httpClient.request({method:"POST",url:nF`asset/query`,data:d,options:m})}queryAssetTree(d,m){return this.httpClient.request({method:"POST",url:nF`asset/tree`,data:d,options:m})}getCurrentUserAssets(d){return this.httpClient.request({method:"GET",url:nF`asset/user/current`,options:d})}createUserAssetLinks(d,m){return this.httpClient.request({method:"POST",url:nF`asset/user/link`,data:d,options:m})}getUserAssetLinks(d,m){return this.httpClient.request({method:"GET",url:nF`asset/user/link`,queryParams:d,options:m})}deleteUserAssetLinks(d,m){return this.httpClient.request({method:"POST",url:nF`asset/user/link/delete`,data:d,options:m})}deleteAllUserAssetLinks(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`asset/user/link/${d}/${m}`,options:u})}deleteUserAssetLink(d,m,u,f){return this.httpClient.request({method:"DELETE",url:nF`asset/user/link/${d}/${m}/${u}`,options:f})}get(d,m){return this.httpClient.request({method:"GET",url:nF`asset/${d}`,options:m})}update(d,m,u){return this.httpClient.request({method:"PUT",url:nF`asset/${d}`,data:m,options:u})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(d,m,u,f){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/attribute/${m}`,data:u,options:f})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(d,m,u,f,p){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/attribute/${m}/${u}`,data:f,options:p})}updateParent(d,m,u){return this.httpClient.request({method:"PUT",url:nF`asset/${d}/child`,queryParams:m,options:u})}}class nv{constructor(d){this.httpClient=d}getServices(d,m){return this.httpClient.request({method:"GET",url:nF`service`,queryParams:d,options:m})}registerService(d,m){return this.httpClient.request({method:"POST",url:nF`service`,data:d,options:m})}getGlobalServices(d){return this.httpClient.request({method:"GET",url:nF`service/global`,options:d})}registerGlobalService(d,m){return this.httpClient.request({method:"POST",url:nF`service/global`,data:d,options:m})}deregisterService(d,m,u){return this.httpClient.request({method:"DELETE",url:nF`service/${d}/${m}`,options:u})}getService(d,m,u){return this.httpClient.request({method:"GET",url:nF`service/${d}/${m}`,options:u})}heartbeat(d,m,u){return this.httpClient.request({method:"PUT",url:nF`service/${d}/${m}`,options:u})}}class n_{constructor(d){this.httpClient=d}startTunnel(d,m){return this.httpClient.request({method:"POST",url:nF`gateway/tunnel`,data:d,options:m})}stopTunnel(d,m){return this.httpClient.request({method:"DELETE",url:nF`gateway/tunnel`,data:d,options:m})}getAllActiveTunnelInfos(d,m){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}`,options:m})}getGatewayActiveTunnelInfos(d,m,u){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}/${m}`,options:u})}getActiveTunnelInfo(d,m,u,f,p){return this.httpClient.request({method:"GET",url:nF`gateway/tunnel/${d}/${m}/${u}/${f}`,options:p})}}class ny{constructor(d){this.httpClient=d}getAssetDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/assetDescriptors`,queryParams:d,options:m})}getAssetInfo(d,m,u){return this.httpClient.request({method:"GET",url:nF`model/assetInfo/${d}`,queryParams:m,options:u})}getAssetInfos(d,m){return this.httpClient.request({method:"GET",url:nF`model/assetInfos`,queryParams:d,options:m})}getValueDescriptorSchema(d,m){return this.httpClient.request({method:"GET",url:nF`model/getValueDescriptorSchema`,queryParams:d,options:m})}getMetaItemDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/metaItemDescriptors`,queryParams:d,options:m})}getValueDescriptors(d,m){return this.httpClient.request({method:"GET",url:nF`model/valueDescriptors`,queryParams:d,options:m})}}function nF(d,...m){let u="";for(let f=0;f<m.length;f++)u+=d[f],u+=encodeURIComponent(m[f]);return u+d[d.length-1]}class nx{constructor(d,m=t7.create()){this._alarmResource=new nE(d,m),this._appResource=new nk(d,m),this._dashboardResource=new nA(d,m),this._syslogResource=new nC(d,m),this._gatewayClientResource=new nT(d,m),this._userResource=new nS(d,m),this._agentResource=new nI(d,m),this._statusResource=new nO(d,m),this._realmResource=new nD(d,m),this._flowResource=new nR(d,m),this._rulesResource=new nN(d,m),this._consoleResource=new nB(d,m),this._provisioningResource=new nL(d,m),this._mapResource=new nP(d,m),this._assetPredictedDatapointResource=new nM(d,m),this._configurationResource=new nz(d,m),this._assetDatapointResource=new nU(d,m),this._notificationResource=new nj(d,m),this._assetResource=new nV(d,m),this._externalServiceResource=new n$(d,m),this._gatewayServiceResource=new nH(d,m),this._assetModelResource=new nq(d,m),this._assetResource=new nV(d,m)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class nw{constructor(d){this.axios=d}request(d){let m={};m.method=d.method,m.url=d.url,m.params=d.queryParams,m.data=d.data,function(d,m){if(void 0!=m)for(let u in m)m.hasOwnProperty(u)&&(d[u]=m[u])}(m,d.options);let u=d.copyFn;return this.axios.request(m).then(d=>(u&&d.data&&(d.originalData=d.data,d.data=u(d.data)),d))}}class nE extends t9{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nk extends ne{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nA extends nt{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nC extends nn{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nT extends ni{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nS extends no{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nI extends nr{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nO extends na{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nD extends ns{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nR extends nl{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nN extends nc{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nB extends nd{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nL extends nm{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nP extends nu{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nM extends nf{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nz extends np{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nU extends nh{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nj extends nb{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nV extends ng{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class n$ extends nv{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nH extends n_{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}class nq extends ny{constructor(d,m=t7.create()){m.defaults.baseURL=d,super(new nw(m))}}var nG=u(8183),nY=u.n(nG);t7.isAxiosError;let nW=new class{get api(){return this._client}constructor(){this._axiosInstance=t7.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(d=>(d.paramsSerializer=d=>nY().stringify(d,{arrayFormat:"repeat"}),d))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(d){this._axiosInstance.defaults.timeout=d}addRequestInterceptor(d){this._axiosInstance.interceptors.request.use(d)}initialise(d){this._baseUrl=d,this._client=new nx(d,this._axiosInstance)}};var nX=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};(x=k||(k={})).DISCONNECTED="DISCONNECTED",x.CONNECTED="CONNECTED",x.CONNECTING="CONNECTING";let nK="SUBSCRIBED:",nJ="UNAUTHORIZED:",nZ="TRIGGERED:",nQ="EVENT:";class n0{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=n1.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=k.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(d){this._statusCallbacks.push(d)}unsubscribeStatusChange(d){L(this._statusCallbacks,d)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===k.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(k.CONNECTING),this._connectingDeferred=new N,this._doConnect().then(d=>{if(this._connectingDeferred){let m=this._connectingDeferred;d?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=n1.MIN_RECONNECT_DELAY,this._onStatusChanged(k.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),m.resolve(d)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==k.DISCONNECTED&&this._doDisconnect())}subscribe(d,m){let u={eventSubscription:d,callback:m,deferred:new N};return null!=this._pendingSubscription||this._status!==k.CONNECTED?(this._queuedSubscriptions.push(u),u.deferred.promise):(this._pendingSubscription=u,this._doSubscribe(d).then(d=>{if(this._pendingSubscription){let m=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(d,m),this._processNextSubscription();let u=m.deferred;m.deferred=null,u&&u.resolve(d)}},d=>{if(console.error(d),this._pendingSubscription){let m=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let u=m.deferred;m.deferred=null,u&&u.reject(d)}}),this._pendingSubscription.deferred.promise)}unsubscribe(d){return nX(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(d))return void this._doUnsubscribe(d);if(this._assetEventCallbackMap.delete(d)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let d=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(d)}return}if(this._attributeEventCallbackMap.delete(d)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let d=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(d)}})}sendEvent(d){this._status===k.CONNECTED&&this._doSend(d)}sendEventWithReply(d){return this._status!==k.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(d)}subscribeAssetEvents(d,m,u){return nX(this,void 0,void 0,function*(){let f=d&&"string"!=typeof d[0]?d.map(d=>d.id):d,p="AssetEvent"+n0._subscriptionCounter++;if(!this._assetEventPromise){let d;iT.authenticated||(d={filterType:"asset",realm:iT.displayRealm});let m={eventType:"asset",filter:d};this._assetEventPromise=this.subscribe(m,d=>{this._assetEventCallbackMap.forEach(m=>m(d))})}return this._assetEventCallbackMap.set(p,d=>{let m=d.asset.id;f?f.find(d=>m===d)&&u(d):d.asset.realm===iT.displayRealm&&u(d)}),this._assetEventPromise.then(()=>{try{if(f&&m){let d={messageID:"read-assets:"+f.join(",")+":"+p,eventType:"read-assets",assetQuery:{ids:f}};this.sendEventWithReply(d).then(d=>{d.assets&&this._assetEventCallbackMap.has(p)&&d.assets.forEach(d=>{u({eventType:"asset",asset:d,cause:"READ"})})})}}catch(m){throw console.error("Failed to subscribe to asset events for assets: "+d),p&&this.unsubscribe(p),m}return p})})}subscribeAttributeEvents(d,m,u){return nX(this,void 0,void 0,function*(){let f=d&&"string"!=typeof d[0],p=f?d.map(d=>d.id):d,h=f?d:void 0,b="AttributeEvent"+n0._subscriptionCounter++;if(!this._attributeEventPromise){let d;iT.authenticated||(d={filterType:"asset",realm:iT.displayRealm});let m={eventType:"attribute",filter:d};this._attributeEventPromise=this.subscribe(m,d=>{this._attributeEventCallbackMap.forEach(m=>m(d))})}let g=m=>{let h=m.ref;f?d.forEach(d=>{h.id===d.id&&h.name===d.name&&u(m)}):p?p.find(d=>h.id===d)&&u(m):m.realm===iT.displayRealm&&u(m)};return this._attributeEventCallbackMap.set(b,g),this._attributeEventPromise.then(()=>{try{if(m&&p){let d={messageID:"read-assets:"+p.join(",")+":"+b,eventType:"read-assets",assetQuery:{ids:p}};this.sendEventWithReply(d).then(d=>{d.assets&&this._attributeEventCallbackMap.has(b)&&d.assets.forEach(d=>{d.attributes&&Object.entries(d.attributes).forEach(([m,u])=>{(!h||h.find(u=>u.id===d.id&&u.name===m))&&g({eventType:"attribute",timestamp:u.timestamp,value:u.value,ref:{id:d.id,name:m}})})})})}}catch(m){throw console.error("Failed to subscribe to asset events for assets: "+d),b&&this.unsubscribe(b),m}return b})})}_processNextSubscription(){this._status===k.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let d=this._queuedSubscriptions.shift();d&&this.subscribe(d.eventSubscription,d.callback).then(m=>{let u=d.deferred;d.deferred=null,u&&u.resolve(m)},m=>{let u=d.deferred;d.deferred=null,u&&u.reject(m)})},0)}_onStatusChanged(d){d!==this._status&&(console.debug("Event provider status changed: "+d),this._status=d,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(m=>m(d))},0))}_onMessageReceived(d,m){let u=this._subscriptionMap.get(d);u&&u.callback(m)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let d in this._subscriptionMap)this._subscriptionMap.has(d)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(d));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===k.CONNECTED&&this._onStatusChanged(k.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(k.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<n1.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(n1.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}n0.MIN_RECONNECT_DELAY=0,n0.MAX_RECONNECT_DELAY=3e4,n0._subscriptionCounter=0;class n1 extends n0{get endpointUrl(){return this._endpointUrl}constructor(d){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(d.startsWith("https:")?"wss":"ws")+"://"+d.substr(d.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let d=this._endpointUrl+"?Realm="+iT.config.realm;return this._connectDeferred=new N,(iT.authenticated?iT.retrieveAuthorizationHeader().then(m=>{d+="&Authorization="+m}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(d),this._webSocket.onopen=d=>{if(this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!0)}},this._webSocket.onerror=d=>{if(console.error("Event provider error:",d),this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let d=this._connectDeferred;this._connectDeferred=null,d.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=d=>{let m=d.data;if(m&&m.startsWith(nK)){let d=JSON.parse(m.substring(nK.length)),u=this._subscribeDeferred;this._subscribeDeferred=null,u&&u.resolve(d.subscriptionId)}else if(m.startsWith(nJ)){let d=JSON.parse(m.substring(nJ.length)),u=this._subscribeDeferred;this._subscribeDeferred=null,u&&(console.warn("Unauthorized event subscription: "+JSON.stringify(d,null,2)),u.reject("Unauthorized"))}else if(m.startsWith(nZ)){let d=JSON.parse(m.substring(nZ.length));d.events&&d.events.forEach(m=>{this._onMessageReceived(d.subscriptionId,m)})}else if(m.startsWith(nQ)){let d=JSON.parse(m.substring(nQ.length));if(d.messageID){let m=this._repliesDeferred.get(d.messageID);this._repliesDeferred.delete(d.messageID),m&&m.resolve(d)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var d;null==(d=this._webSocket)||d.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(d){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new N,d.subscriptionId||(d.subscriptionId=n1._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(d)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(d){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:d}))}_doSend(d){let m=nQ+JSON.stringify(d);this._webSocket.send(m)}_doSendWithReply(d){if(d.messageID||(d.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(d.messageID))return Promise.reject("There's already a pending send and reply with this ID");let m=new N;return this._repliesDeferred.set(d.messageID,m),this._webSocket.send(nQ+JSON.stringify(d)),m.promise}}n1._subscriptionCounter=1;let n2=["__proto__","constructor","prototype"];function n5(d){return!("string"!=typeof d||0===d.length||d.length>128||n2.indexOf(d)>-1||d.indexOf("..")>-1||d.indexOf("\\")>-1||/[?#%\s@]/.test(d)||/[\x00-\x1F\x7F]/.test(d))}function n4(d){return!(!n5(d)||d.indexOf("/")>-1)}let n3={lng:n4,ns:function(d){return n5(d)}};function n6(d){return"string"!=typeof d?d:d.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function n8(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let n7=/\{\{(.+?)\}\}/g;function n9(d,m){let u=!1,f=d.replace(n7,(d,f)=>{let p=f.trim();if(n2.indexOf(p)>-1)return d;let h=m[p];if(null==h)return d;let b=n3[p]||n4,g=String(h).split("+");for(let m of g)if(!b(m))return u=!0,d;return g.join("+")});return u?null:f}let ie="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?f=fetch:ie&&"function"==typeof ie.fetch&&(f=ie.fetch);let it=n8()&&ie?ie.XMLHttpRequest:void 0,ii="function"==typeof ActiveXObject&&ie?ie.ActiveXObject:void 0,io=["__proto__","constructor","prototype"],ir=(d,m)=>{if(m&&"object"==typeof m){let u="";for(let d of Object.keys(m))io.indexOf(d)>-1||(u+="&"+encodeURIComponent(d)+"="+encodeURIComponent(m[d]));if(!u)return d;d=d+(-1!==d.indexOf("?")?"&":"?")+u.slice(1)}return d},ia=(d,m,u,p)=>{let h=d=>{if(!d.ok)return u(d.statusText||"Error",{status:d.status});d.text().then(m=>{u(null,{status:d.status,data:m})}).catch(u)};if(p){let f=p(d,m);if(f instanceof Promise)return void f.then(h).catch(u)}"function"==typeof fetch?fetch(d,m).then(h).catch(u):f(d,m).then(h).catch(u)},is=(d,m,u,p)=>{if("function"==typeof u&&(p=u,u=void 0),p=p||(()=>{}),f&&0!==m.indexOf("file:")){var h=m,b=u,g=p;d.queryStringParams&&(h=ir(h,d.queryStringParams));let f={..."function"==typeof d.customHeaders?d.customHeaders():d.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(f["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),b&&(f["Content-Type"]="application/json");let v="function"==typeof d.requestOptions?d.requestOptions(b):d.requestOptions,_={method:b?"POST":"GET",body:b?d.stringify(b):void 0,headers:f,...d._omitFetchOptions?{}:v},y="function"==typeof d.alternateFetch&&d.alternateFetch.length>=1?d.alternateFetch:void 0;try{ia(h,_,g,y)}catch(m){if(!v||0===Object.keys(v).length||!m.message||0>m.message.indexOf("not implemented"))return g(m);try{Object.keys(v).forEach(d=>{delete _[d]}),ia(h,_,g,y),d._omitFetchOptions=!0}catch(d){g(d)}}return}if(n8()||"function"==typeof ActiveXObject){var v=m,_=u,y=p;_&&"object"==typeof _&&(_=ir("",_).slice(1)),d.queryStringParams&&(v=ir(v,d.queryStringParams));try{let m=it?new it:new ii("MSXML2.XMLHTTP.3.0");m.open(_?"POST":"GET",v,1),d.crossDomain||m.setRequestHeader("X-Requested-With","XMLHttpRequest"),m.withCredentials=!!d.withCredentials,_&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),m.overrideMimeType&&m.overrideMimeType("application/json");let u=d.customHeaders;if(u="function"==typeof u?u():u)for(let d of Object.keys(u))io.indexOf(d)>-1||m.setRequestHeader(d,u[d]);m.onreadystatechange=()=>{m.readyState>3&&y(m.status>=400?m.statusText:null,{status:m.status,data:m.responseText})},m.send(_)}catch(d){console&&console.log(d)}return}p(Error("No fetch and no xhr implementation found!"))};var il=class{constructor(d,m={},u={}){this.services=d,this.options=m,this.allOptions=u,this.type="backend",this.init(d,m,u)}init(d,m={},u={}){if(this.services=d,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:d=>JSON.parse(d),stringify:JSON.stringify,parsePayload:(d,m,u)=>({[m]:u||""}),parseLoadPayload:(d,m)=>void 0,request:is,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...m},this.allOptions=u,this.services&&this.options.reloadInterval){let d=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof d&&"function"==typeof d.unref&&d.unref()}}readMulti(d,m,u){this._readAny(d,d,m,m,u)}read(d,m,u){this._readAny([d],d,[m],m,u)}_readAny(d,m,u,f,p){var h,b;let g=this.options.loadPath;"function"==typeof this.options.loadPath&&(g=this.options.loadPath(d,u)),(g=(b=h=g)&&"function"==typeof b.then?h:Promise.resolve(h)).then(h=>{if(!h)return p(null,{});let b=n9(h,{lng:d.join("+"),ns:u.join("+")});if(null==b)return p(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+d.map(n6).join(", ")+"] namespaces=["+u.map(n6).join(", ")+"]"),!1);this.loadUrl(b,p,m,f)})}loadUrl(d,m,u,f){let p=this.options.parseLoadPayload("string"==typeof u?[u]:u,"string"==typeof f?[f]:f),h=n6(function(d){if("string"!=typeof d||0===d.length)return d;try{let m=new URL(d);if(m.username||m.password)return m.username="",m.password="",m.toString();return d}catch(m){return d.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(d));this.options.request(this.options,d,p,(d,p)=>{let b,g;if(p&&(p.status>=500&&p.status<600||!p.status))return m("failed loading "+h+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return m("failed loading "+h+"; status code: "+p.status,!1);if(!p&&d&&d.message){let u=d.message.toLowerCase();if(["failed","fetch","network","load"].find(d=>u.indexOf(d)>-1))return m("failed loading "+h+": "+n6(d.message),!0)}if(d)return m(d,!1);try{b="string"==typeof p.data?this.options.parse(p.data,u,f):p.data}catch(d){g="failed parsing "+h+" to json"}if(g)return m(g,!1);m(null,b)})}create(d,m,u,f,p){if(!this.options.addPath)return;"string"==typeof d&&(d=[d]);let h=this.options.parsePayload(m,u,f),b=0,g=[],v=[];d.forEach(u=>{let f=this.options.addPath;"function"==typeof this.options.addPath&&(f=this.options.addPath(u,m));let _=n9(f,{lng:u,ns:m});if(null==_){b+=1,p&&b===d.length&&p(g,v);return}this.options.request(this.options,_,h,(m,u)=>{b+=1,g.push(m),v.push(u),b===d.length&&"function"==typeof p&&p(g,v)})})}reload(){let{backendConnector:d,languageUtils:m,logger:u}=this.services,f=d.language;if(f&&"cimode"===f.toLowerCase())return;let p=[],h=d=>{m.toResolveHierarchy(d).forEach(d=>{0>p.indexOf(d)&&p.push(d)})};h(f),this.allOptions.preload&&this.allOptions.preload.forEach(d=>h(d)),p.forEach(m=>{this.allOptions.ns.forEach(f=>{d.read(m,f,"read",null,null,(p,h)=>{p&&u.warn(`loading namespace ${f} for language ${m} failed`,p),!p&&h&&u.log(`loaded namespace ${f} for language ${m}`,h),d.loaded(`${m}|${f}`,p,h)})})})}};il.type="backend";var ic=u(2005),id=u(4954);class im extends Error{}function iu(d,m){let u;if("string"!=typeof d)throw new im("Invalid token specified: must be a string");m||(m={});let f=+(!0!==m.header),p=d.split(".")[f];if("string"!=typeof p)throw new im(`Invalid token specified: missing part #${f+1}`);try{u=function(d){let m=d.replace(/-/g,"+").replace(/_/g,"/");switch(m.length%4){case 0:break;case 2:m+="==";break;case 3:m+="=";break;default:throw Error("base64 string is not of the correct length")}try{var u;return u=m,decodeURIComponent(atob(u).replace(/(.)/g,(d,m)=>{let u=m.charCodeAt(0).toString(16).toUpperCase();return u.length<2&&(u="0"+u),"%"+u}))}catch(d){return atob(m)}}(p)}catch(d){throw new im(`Invalid token specified: invalid base64 for part #${f+1} (${d.message})`)}try{return JSON.parse(u)}catch(d){throw new im(`Invalid token specified: invalid json for part #${f+1} (${d.message})`)}}if(im.prototype.name="InvalidTokenError","u"<typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function ip(d){if(!(this instanceof ip))throw Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var m,u,f=this,p=[],h={enable:!0,callbackList:[],interval:5},b=document.getElementsByTagName("script"),g=0;g<b.length;g++)(-1!==b[g].src.indexOf("keycloak.js")||-1!==b[g].src.indexOf("keycloak.min.js"))&&-1!==b[g].src.indexOf("version=")&&(f.iframeVersion=b[g].src.substring(b[g].src.indexOf("version=")+8).split("&")[0]);var v=!0,_=P(console.info),y=P(console.warn);function F(d,m){for(var u=function(d){var m=null,u=window.crypto||window.msCrypto;if(u&&u.getRandomValues&&window.Uint8Array)return m=new Uint8Array(d),u.getRandomValues(m),m;m=Array(d);for(var f=0;f<m.length;f++)m[f]=Math.floor(256*Math.random());return m}(d),f=Array(d),p=0;p<d;p++)f[p]=m.charCodeAt(u[p]%m.length);return String.fromCharCode.apply(null,f)}function x(){return void 0===f.authServerUrl?void 0:"/"==f.authServerUrl.charAt(f.authServerUrl.length-1)?f.authServerUrl+"realms/"+encodeURIComponent(f.realm):f.authServerUrl+"/realms/"+encodeURIComponent(f.realm)}function w(d,m){var u=d.code,p=d.error,h=d.prompt,b=new Date().getTime();if(d.kc_action_status&&f.onActionUpdate&&f.onActionUpdate(d.kc_action_status),p){if("none"!=h)if(d.error_description&&"authentication_expired"===d.error_description)f.login(d.loginOptions);else{var g={error:p,error_description:d.error_description};f.onAuthError&&f.onAuthError(g),m&&m.setError(g)}else m&&m.setSuccess();return}if("standard"!=f.flow&&(d.access_token||d.id_token)&&w(d.access_token,null,d.id_token,!0),"implicit"!=f.flow&&u){var y="code="+u+"&grant_type=authorization_code",F=f.endpoints.token(),x=new XMLHttpRequest;x.open("POST",F,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),y+="&client_id="+encodeURIComponent(f.clientId)+"&redirect_uri="+d.redirectUri,d.pkceCodeVerifier&&(y+="&code_verifier="+d.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(4==x.readyState)if(200==x.status){var d=JSON.parse(x.responseText);w(d.access_token,d.refresh_token,d.id_token,"standard"===f.flow),O()}else f.onAuthError&&f.onAuthError(),m&&m.setError()},x.send(y)}function w(u,p,h,g){k(u,p,h,b=(b+new Date().getTime())/2),v&&f.idTokenParsed&&f.idTokenParsed.nonce!=d.storedNonce?(_("[KEYCLOAK] Invalid nonce, clearing token"),f.clearToken(),m&&m.setError()):g&&(f.onAuthSuccess&&f.onAuthSuccess(),m&&m.setSuccess())}}function E(d){return 0==d.status&&d.responseText&&d.responseURL.startsWith("file:")}function k(d,m,u,p){if(f.tokenTimeoutHandle&&(clearTimeout(f.tokenTimeoutHandle),f.tokenTimeoutHandle=null),m?(f.refreshToken=m,f.refreshTokenParsed=iu(m)):(delete f.refreshToken,delete f.refreshTokenParsed),u?(f.idToken=u,f.idTokenParsed=iu(u)):(delete f.idToken,delete f.idTokenParsed),d){if(f.token=d,f.tokenParsed=iu(d),f.sessionId=f.tokenParsed.sid,f.authenticated=!0,f.subject=f.tokenParsed.sub,f.realmAccess=f.tokenParsed.realm_access,f.resourceAccess=f.tokenParsed.resource_access,p&&(f.timeSkew=Math.floor(p/1e3)-f.tokenParsed.iat),null!=f.timeSkew&&(_("[KEYCLOAK] Estimated time difference between browser and server is "+f.timeSkew+" seconds"),f.onTokenExpired)){var h=(f.tokenParsed.exp-new Date().getTime()/1e3+f.timeSkew)*1e3;_("[KEYCLOAK] Token expires in "+Math.round(h/1e3)+" s"),h<=0?f.onTokenExpired():f.tokenTimeoutHandle=setTimeout(f.onTokenExpired,h)}}else delete f.token,delete f.tokenParsed,delete f.subject,delete f.realmAccess,delete f.resourceAccess,f.authenticated=!1}function A(){var d="0123456789abcdef",m=F(36,d).split("");return m[14]="4",m[19]=d.substr(3&m[19]|8,1),m[8]=m[13]=m[18]=m[23]="-",m.join("")}function C(d){var m=function(d){switch(f.flow){case"standard":m=["code","state","session_state","kc_action_status","iss"];break;case"implicit":m=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":m=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"]}m.push("error"),m.push("error_description"),m.push("error_uri");var m,u,p,h=d.indexOf("?"),b=d.indexOf("#");if("query"===f.responseMode&&-1!==h?(u=d.substring(0,h),""!==(p=T(d.substring(h+1,-1!==b?b:d.length),m)).paramsString&&(u+="?"+p.paramsString),-1!==b&&(u+=d.substring(b))):"fragment"===f.responseMode&&-1!==b&&(u=d.substring(0,b),""!==(p=T(d.substring(b+1),m)).paramsString&&(u+="#"+p.paramsString)),p&&p.oauthParams){if("standard"===f.flow||"hybrid"===f.flow){if((p.oauthParams.code||p.oauthParams.error)&&p.oauthParams.state)return p.oauthParams.newUrl=u,p.oauthParams}else if("implicit"===f.flow&&(p.oauthParams.access_token||p.oauthParams.error)&&p.oauthParams.state)return p.oauthParams.newUrl=u,p.oauthParams}}(d);if(m){var p=u.get(m.state);return p&&(m.valid=!0,m.redirectUri=p.redirectUri,m.storedNonce=p.nonce,m.prompt=p.prompt,m.pkceCodeVerifier=p.pkceCodeVerifier,m.loginOptions=p.loginOptions),m}}function T(d,m){for(var u=d.split("&"),f={paramsString:"",oauthParams:{}},p=0;p<u.length;p++){var h=u[p].indexOf("="),b=u[p].slice(0,h);-1!==m.indexOf(b)?f.oauthParams[b]=u[p].slice(h+1):(""!==f.paramsString&&(f.paramsString+="&"),f.paramsString+=u[p])}return f}function S(){var d={setSuccess:function(m){d.resolve(m)},setError:function(m){d.reject(m)}};return d.promise=new Promise(function(m,u){d.resolve=m,d.reject=u}),d}function I(){var d=S();if(!h.enable||h.iframe)return d.setSuccess(),d.promise;var m=document.createElement("iframe");h.iframe=m,m.onload=function(){var m=f.endpoints.authorize();"/"===m.charAt(0)?h.iframeOrigin=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):h.iframeOrigin=m.substring(0,m.indexOf("/",8)),d.setSuccess()};var u=f.endpoints.checkSessionIframe();return m.setAttribute("src",u),m.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),m.setAttribute("title","keycloak-session-iframe"),m.style.display="none",document.body.appendChild(m),window.addEventListener("message",function(d){if(d.origin===h.iframeOrigin&&h.iframe.contentWindow===d.source&&("unchanged"==d.data||"changed"==d.data||"error"==d.data)){"unchanged"!=d.data&&f.clearToken();for(var m=h.callbackList.splice(0,h.callbackList.length),u=m.length-1;u>=0;--u){var p=m[u];"error"==d.data?p.setError():p.setSuccess("unchanged"==d.data)}}},!1),d.promise}function O(){h.enable&&f.token&&setTimeout(function(){D().then(function(d){d&&O()})},1e3*h.interval)}function D(){var d=S();if(h.iframe&&h.iframeOrigin){var m=f.clientId+" "+(f.sessionId?f.sessionId:"");h.callbackList.push(d);var u=h.iframeOrigin;1==h.callbackList.length&&h.iframe.contentWindow.postMessage(m,u)}else d.setSuccess();return d.promise}function R(){var d,m,u,p=S();if(h.enable||f.silentCheckSsoRedirectUri){var b=document.createElement("iframe");b.setAttribute("src",f.endpoints.thirdPartyCookiesIframe()),b.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),b.setAttribute("title","keycloak-3p-check-iframe"),b.style.display="none",document.body.appendChild(b);var g=function(d){b.contentWindow===d.source&&("supported"===d.data||"unsupported"===d.data)&&("unsupported"===d.data&&(y("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"),h.enable=!1,f.silentCheckSsoFallback&&(f.silentCheckSsoRedirectUri=!1)),document.body.removeChild(b),window.removeEventListener("message",g),p.setSuccess())};window.addEventListener("message",g,!1)}else p.setSuccess();return d=p.promise,m=f.messageReceiveTimeout,u=null,Promise.race([d,new Promise(function(d,f){u=setTimeout(function(){f({error:"Timeout when waiting for 3rd party check iframe message."})},m)})]).finally(function(){clearTimeout(u)})}function N(d){if(!d||"default"==d)return{login:function(d){return window.location.assign(f.createLoginUrl(d)),S().promise},logout:async function(d){if("GET"===(d?.logoutMethod??f.logoutMethod))return void window.location.replace(f.createLogoutUrl(d));let u=f.createLogoutUrl(d),p=await fetch(u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:f.idToken,client_id:f.clientId,post_logout_redirect_uri:m.redirectUri(d,!1)})});if(p.redirected){window.location.href=p.url;return}if(p.ok)return void window.location.reload();throw Error("Logout failed, request returned an error code.")},register:function(d){return window.location.assign(f.createRegisterUrl(d)),S().promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d)window.location.href=d;else throw"Not supported by the OIDC server";return S().promise},redirectUri:function(d,m){return d&&d.redirectUri?d.redirectUri:f.redirectUri?f.redirectUri:location.href}};if("cordova"==d){h.enable=!1;var u=function(d,m,u){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(d,m,u):window.open(d,m,u)},p=function(d){var m=d&&d.cordovaOptions?Object.keys(d.cordovaOptions).reduce(function(m,u){return m[u]=d.cordovaOptions[u],m},{}):{};return m.location="no",d&&"none"==d.prompt&&(m.hidden="yes"),Object.keys(m).reduce(function(d,u){return d.push(u+"="+m[u]),d},[]).join(",")},b=function(){return f.redirectUri||"http://localhost"};return{login:function(d){var m=S(),h=p(d),g=u(f.createLoginUrl(d),"_blank",h),v=!1,_=!1,y=function(){_=!0,g.close()};return g.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&(w(C(d.url),m),y(),v=!0)}),g.addEventListener("loaderror",function(d){v||(0==d.url.indexOf(b())?(w(C(d.url),m),y(),v=!0):(m.setError(),y()))}),g.addEventListener("exit",function(d){_||m.setError({reason:"closed_by_user"})}),m.promise},logout:function(d){var m,p=S(),h=u(f.createLogoutUrl(d),"_blank","location=no,hidden=yes,clearcache=yes");return h.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&h.close()}),h.addEventListener("loaderror",function(d){0==d.url.indexOf(b())||(m=!0),h.close()}),h.addEventListener("exit",function(d){m?p.setError():(f.clearToken(),p.setSuccess())}),p.promise},register:function(d){var m=S(),h=u(f.createRegisterUrl(),"_blank",p(d));return h.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&(h.close(),w(C(d.url),m))}),m.promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d){var m=u(d,"_blank","location=no");m.addEventListener("loadstart",function(d){0==d.url.indexOf(b())&&m.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(d){return b()}}}if("cordova-native"==d)return h.enable=!1,{login:function(d){var m=S(),u=f.createLoginUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),w(C(d.url),m)}),window.cordova.plugins.browsertab.openUrl(u),m.promise},logout:function(d){var m=S(),u=f.createLogoutUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),f.clearToken(),m.setSuccess()}),window.cordova.plugins.browsertab.openUrl(u),m.promise},register:function(d){var m=S(),u=f.createRegisterUrl(d);return universalLinks.subscribe("keycloak",function(d){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),w(C(d.url),m)}),window.cordova.plugins.browsertab.openUrl(u),m.promise},accountManagement:function(){var d=f.createAccountUrl();if(void 0!==d)window.cordova.plugins.browsertab.openUrl(d);else throw"Not supported by the OIDC server"},redirectUri:function(d){return d&&d.redirectUri?d.redirectUri:f.redirectUri?f.redirectUri:"http://localhost"}};throw"invalid adapter type: "+d}f.init=function(p){if(f.didInitialize)throw Error("A 'Keycloak' instance can only be initialized once.");if(f.didInitialize=!0,f.authenticated=!1,u=function(){try{return new B}catch(d){}return new L}(),m=p&&["default","cordova","cordova-native"].indexOf(p.adapter)>-1?N(p.adapter):p&&"object"==typeof p.adapter?p.adapter:window.Cordova||window.cordova?N("cordova"):N(),p){if(void 0!==p.useNonce&&(v=p.useNonce),void 0!==p.checkLoginIframe&&(h.enable=p.checkLoginIframe),p.checkLoginIframeInterval&&(h.interval=p.checkLoginIframeInterval),"login-required"===p.onLoad&&(f.loginRequired=!0),p.responseMode)if("query"===p.responseMode||"fragment"===p.responseMode)f.responseMode=p.responseMode;else throw"Invalid value for responseMode";if(p.flow){switch(p.flow){case"standard":f.responseType="code";break;case"implicit":f.responseType="id_token token";break;case"hybrid":f.responseType="code id_token token";break;default:throw"Invalid value for flow"}f.flow=p.flow}if(null!=p.timeSkew&&(f.timeSkew=p.timeSkew),p.redirectUri&&(f.redirectUri=p.redirectUri),p.silentCheckSsoRedirectUri&&(f.silentCheckSsoRedirectUri=p.silentCheckSsoRedirectUri),"boolean"==typeof p.silentCheckSsoFallback?f.silentCheckSsoFallback=p.silentCheckSsoFallback:f.silentCheckSsoFallback=!0,void 0!==p.pkceMethod){if("S256"!==p.pkceMethod&&!1!==p.pkceMethod)throw TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${p.pkceMethod}.`);f.pkceMethod=p.pkceMethod}else f.pkceMethod="S256";"boolean"==typeof p.enableLogging?f.enableLogging=p.enableLogging:f.enableLogging=!1,"POST"===p.logoutMethod?f.logoutMethod="POST":f.logoutMethod="GET","string"==typeof p.scope&&(f.scope=p.scope),"string"==typeof p.acrValues&&(f.acrValues=p.acrValues),"number"==typeof p.messageReceiveTimeout&&p.messageReceiveTimeout>0?f.messageReceiveTimeout=p.messageReceiveTimeout:f.messageReceiveTimeout=1e4}f.responseMode||(f.responseMode="fragment"),f.responseType||(f.responseType="code",f.flow="standard");var b=S(),g=S();g.promise.then(function(){f.onReady&&f.onReady(f.authenticated),b.setSuccess(f.authenticated)}).catch(function(d){b.setError(d)});var _=function(){var m=S();function u(d){d?f.endpoints={authorize:function(){return d.authorization_endpoint},token:function(){return d.token_endpoint},logout:function(){if(!d.end_session_endpoint)throw"Not supported by the OIDC server";return d.end_session_endpoint},checkSessionIframe:function(){if(!d.check_session_iframe)throw"Not supported by the OIDC server";return d.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!d.userinfo_endpoint)throw"Not supported by the OIDC server";return d.userinfo_endpoint}}:f.endpoints={authorize:function(){return x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var d=x()+"/protocol/openid-connect/login-status-iframe.html";return f.iframeVersion&&(d=d+"?version="+f.iframeVersion),d},thirdPartyCookiesIframe:function(){var d=x()+"/protocol/openid-connect/3p-cookies/step1.html";return f.iframeVersion&&(d=d+"?version="+f.iframeVersion),d},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(d?"string"==typeof d&&(b=d):b="keycloak.json",b){var p=new XMLHttpRequest;p.open("GET",b,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){if(4==p.readyState)if(200==p.status||E(p)){var d=JSON.parse(p.responseText);f.authServerUrl=d["auth-server-url"],f.realm=d.realm,f.clientId=d.resource,u(null),m.setSuccess()}else m.setError()},p.send()}else{if(!d.clientId)throw"clientId missing";f.clientId=d.clientId;var h=d.oidcProvider;if(h)if("string"==typeof h){var b,g="/"==h.charAt(h.length-1)?h+".well-known/openid-configuration":h+"/.well-known/openid-configuration",p=new XMLHttpRequest;p.open("GET",g,!0),p.setRequestHeader("Accept","application/json"),p.onreadystatechange=function(){4==p.readyState&&(200==p.status||E(p)?(u(JSON.parse(p.responseText)),m.setSuccess()):m.setError())},p.send()}else u(h),m.setSuccess();else{if(!d.url){for(var v=document.getElementsByTagName("script"),_=0;_<v.length;_++)if(v[_].src.match(/.*keycloak\.js/)){d.url=v[_].src.substr(0,v[_].src.indexOf("/js/keycloak.js"));break}}if(!d.realm)throw"realm missing";f.authServerUrl=d.url,f.realm=d.realm,u(null),m.setSuccess()}}return m.promise}();function y(){var d=function(d){d||(u.prompt="none"),p&&p.locale&&(u.locale=p.locale),f.login(u).then(function(){g.setSuccess()}).catch(function(d){g.setError(d)})},m=function(){var d=document.createElement("iframe"),m=f.createLoginUrl({prompt:"none",redirectUri:f.silentCheckSsoRedirectUri});d.setAttribute("src",m),d.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),d.setAttribute("title","keycloak-silent-check-sso"),d.style.display="none",document.body.appendChild(d);var u=function(m){if(m.origin===window.location.origin&&d.contentWindow===m.source){var f=C(m.data);w(f,g),document.body.removeChild(d),window.removeEventListener("message",u)}};window.addEventListener("message",u)},u={};switch(p.onLoad){case"check-sso":h.enable?I().then(function(){D().then(function(u){u?g.setSuccess():f.silentCheckSsoRedirectUri?m():d(!1)}).catch(function(d){g.setError(d)})}):f.silentCheckSsoRedirectUri?m():d(!1);break;case"login-required":d(!0);break;default:throw"Invalid value for onLoad"}}function F(){var d=C(window.location.href);if(d&&window.history.replaceState(window.history.state,null,d.newUrl),d&&d.valid)return I().then(function(){w(d,g)}).catch(function(d){g.setError(d)});p?p.token&&p.refreshToken?(k(p.token,p.refreshToken,p.idToken),h.enable?I().then(function(){D().then(function(d){d?(f.onAuthSuccess&&f.onAuthSuccess(),g.setSuccess(),O()):g.setSuccess()}).catch(function(d){g.setError(d)})}):f.updateToken(-1).then(function(){f.onAuthSuccess&&f.onAuthSuccess(),g.setSuccess()}).catch(function(d){f.onAuthError&&f.onAuthError(),p.onLoad?y():g.setError(d)})):p.onLoad?y():g.setSuccess():g.setSuccess()}return _.then(function(){var d,m;(d=S(),m=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",m),d.setSuccess())},document.addEventListener("readystatechange",m),m(),d.promise).then(R).then(F).catch(function(d){b.setError(d)})}),_.catch(function(d){b.setError(d)}),b.promise},f.login=function(d){return m.login(d)},f.createLoginUrl=function(d){var p,h=A(),b=A(),g=m.redirectUri(d),_={state:h,nonce:b,redirectUri:encodeURIComponent(g),loginOptions:d};d&&d.prompt&&(_.prompt=d.prompt),p=d&&"register"==d.action?f.endpoints.register():f.endpoints.authorize();var y=d&&d.scope||f.scope;y?-1===y.indexOf("openid")&&(y="openid "+y):y="openid";var x=p+"?client_id="+encodeURIComponent(f.clientId)+"&redirect_uri="+encodeURIComponent(g)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(f.responseMode)+"&response_type="+encodeURIComponent(f.responseType)+"&scope="+encodeURIComponent(y);if(v&&(x=x+"&nonce="+encodeURIComponent(b)),d&&d.prompt&&(x+="&prompt="+encodeURIComponent(d.prompt)),d&&d.maxAge&&(x+="&max_age="+encodeURIComponent(d.maxAge)),d&&d.loginHint&&(x+="&login_hint="+encodeURIComponent(d.loginHint)),d&&d.idpHint&&(x+="&kc_idp_hint="+encodeURIComponent(d.idpHint)),d&&d.action&&"register"!=d.action&&(x+="&kc_action="+encodeURIComponent(d.action)),d&&d.locale&&(x+="&ui_locales="+encodeURIComponent(d.locale)),d&&d.acr&&(x+="&claims="+encodeURIComponent(JSON.stringify({id_token:{acr:d.acr}}))),(d&&d.acrValues||f.acrValues)&&(x+="&acr_values="+encodeURIComponent(d.acrValues||f.acrValues)),f.pkceMethod){var w=F(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");_.pkceCodeVerifier=w,x+="&code_challenge="+function(d,m){if("S256"!==d)throw TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${d}'.`);return btoa(String.fromCodePoint(...new Uint8Array(id.arrayBuffer(m)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(f.pkceMethod,w)+"&code_challenge_method="+f.pkceMethod}return u.add(_),x},f.logout=function(d){return m.logout(d)},f.createLogoutUrl=function(d){if("POST"===(d?.logoutMethod??f.logoutMethod))return f.endpoints.logout();var u=f.endpoints.logout()+"?client_id="+encodeURIComponent(f.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(m.redirectUri(d,!1));return f.idToken&&(u+="&id_token_hint="+encodeURIComponent(f.idToken)),u},f.register=function(d){return m.register(d)},f.createRegisterUrl=function(d){return d||(d={}),d.action="register",f.createLoginUrl(d)},f.createAccountUrl=function(d){var u=x(),p=void 0;return void 0!==u&&(p=u+"/account?referrer="+encodeURIComponent(f.clientId)+"&referrer_uri="+encodeURIComponent(m.redirectUri(d))),p},f.accountManagement=function(){return m.accountManagement()},f.hasRealmRole=function(d){var m=f.realmAccess;return!!m&&m.roles.indexOf(d)>=0},f.hasResourceRole=function(d,m){if(!f.resourceAccess)return!1;var u=f.resourceAccess[m||f.clientId];return!!u&&u.roles.indexOf(d)>=0},f.loadUserProfile=function(){var d=x()+"/account",m=new XMLHttpRequest;m.open("GET",d,!0),m.setRequestHeader("Accept","application/json"),m.setRequestHeader("Authorization","bearer "+f.token);var u=S();return m.onreadystatechange=function(){4==m.readyState&&(200==m.status?(f.profile=JSON.parse(m.responseText),u.setSuccess(f.profile)):u.setError())},m.send(),u.promise},f.loadUserInfo=function(){var d=f.endpoints.userinfo(),m=new XMLHttpRequest;m.open("GET",d,!0),m.setRequestHeader("Accept","application/json"),m.setRequestHeader("Authorization","bearer "+f.token);var u=S();return m.onreadystatechange=function(){4==m.readyState&&(200==m.status?(f.userInfo=JSON.parse(m.responseText),u.setSuccess(f.userInfo)):u.setError())},m.send(),u.promise},f.isTokenExpired=function(d){if(!f.tokenParsed||!f.refreshToken&&"implicit"!=f.flow)throw"Not authenticated";if(null==f.timeSkew)return _("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var m=f.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+f.timeSkew;if(d){if(isNaN(d))throw"Invalid minValidity";m-=d}return m<0},f.updateToken=function(d){var m=S();if(!f.refreshToken)return m.setError(),m.promise;d=d||5;var u=function(){var u=!1;if(-1==d?(u=!0,_("[KEYCLOAK] Refreshing token: forced refresh")):(!f.tokenParsed||f.isTokenExpired(d))&&(u=!0,_("[KEYCLOAK] Refreshing token: token expired")),u){var h="grant_type=refresh_token&refresh_token="+f.refreshToken,b=f.endpoints.token();if(p.push(m),1==p.length){var g=new XMLHttpRequest;g.open("POST",b,!0),g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),g.withCredentials=!0,h+="&client_id="+encodeURIComponent(f.clientId);var v=new Date().getTime();g.onreadystatechange=function(){if(4==g.readyState)if(200==g.status){_("[KEYCLOAK] Token refreshed"),v=(v+new Date().getTime())/2;var d=JSON.parse(g.responseText);k(d.access_token,d.refresh_token,d.id_token,v),f.onAuthRefreshSuccess&&f.onAuthRefreshSuccess();for(var m=p.pop();null!=m;m=p.pop())m.setSuccess(!0)}else{y("[KEYCLOAK] Failed to refresh token"),400==g.status&&f.clearToken(),f.onAuthRefreshError&&f.onAuthRefreshError();for(var m=p.pop();null!=m;m=p.pop())m.setError(!0)}},g.send(h)}}else m.setSuccess(!1)};return h.enable?D().then(function(){u()}).catch(function(d){m.setError(d)}):u(),m.promise},f.clearToken=function(){f.token&&(k(null,null,null),f.onAuthLogout&&f.onAuthLogout(),f.loginRequired&&f.login())};var B=function(){if(!(this instanceof B))return new B;function d(){for(var d=new Date().getTime(),m=0;m<localStorage.length;m++){var u=localStorage.key(m);if(u&&0==u.indexOf("kc-callback-")){var f=localStorage.getItem(u);if(f)try{var p=JSON.parse(f).expires;(!p||p<d)&&localStorage.removeItem(u)}catch(d){localStorage.removeItem(u)}}}}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(m){if(m){var u="kc-callback-"+m,f=localStorage.getItem(u);return f&&(localStorage.removeItem(u),f=JSON.parse(f)),d(),f}},this.add=function(m){d();var u="kc-callback-"+m.state;m.expires=new Date().getTime()+36e5,localStorage.setItem(u,JSON.stringify(m))}},L=function(){if(!(this instanceof L))return new L;this.get=function(f){if(f){var p=m("kc-callback-"+f);if(u("kc-callback-"+f,"",d(-100)),p)return JSON.parse(p)}},this.add=function(m){u("kc-callback-"+m.state,JSON.stringify(m),d(60))},this.removeItem=function(m){u(m,"",d(-100))};var d=function(d){var m=new Date;return m.setTime(m.getTime()+60*d*1e3),m},m=function(d){for(var m=d+"=",u=document.cookie.split(";"),f=0;f<u.length;f++){for(var p=u[f];" "==p.charAt(0);)p=p.substring(1);if(0==p.indexOf(m))return p.substring(m.length,p.length)}return""},u=function(d,m,u){var f=d+"="+m+"; expires="+u.toUTCString()+"; ";document.cookie=f}};function P(d){return function(){f.enableLogging&&d.apply(console,Array.prototype.slice.call(arguments))}}}var ih=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let ib=d=>m=>class extends m{constructor(){super(...arguments),this._connectRequested=!1,this._status=k.DISCONNECTED,this._statusCallback=d=>this._onEventProviderStatusChanged(d)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.connectEvents()}disconnectedCallback(){this.disconnectEvents(),super.disconnectedCallback&&super.disconnectedCallback()}connectEvents(){d.getEventProvider()?this._connectRequested||(this._connectRequested=!0,d.getEventProvider().subscribeStatusChange(this._statusCallback),this._doConnect()):console.log("No event provider available so cannot subscribe")}disconnectEvents(){this._connectRequested&&(this._connectRequested=!1,d.getEventProvider().unsubscribeStatusChange(this._statusCallback),this._onEventsDisconnect())}_doConnect(){return ih(this,void 0,void 0,function*(){this.eventsConnected&&this._onEventsConnect()})}get eventsConnected(){return this._connectRequested&&d.getEventProvider().status===k.CONNECTED}_onEventProviderStatusChanged(d){switch(d){case k.DISCONNECTED:this._onEventsDisconnect();break;case k.CONNECTED:this._doConnect()}}_onEventsConnect(){this._addEventSubscriptions(),this.onEventsConnect()}_onEventsDisconnect(){this._removeEventSubscriptions(),this.onEventsDisconnect()}_addEventSubscriptions(){return ih(this,void 0,void 0,function*(){let m=!!this._attributeRefs,u=!!this._assetIds,f=this._attributeRefs?this._attributeRefs:this._assetIds;if(f&&f.length>0){if(this._subscriptionIds=[],u){let m=yield d.getEventProvider().subscribeAssetEvents(f,!0,d=>this._onEvent(d)),u=this._attributeRefs?this._attributeRefs:this._assetIds;if(!this._subscriptionIds||!B(f,u))return void d.getEventProvider().unsubscribe(m);this._subscriptionIds.push(m)}let p=yield d.getEventProvider().subscribeAttributeEvents(f,m,d=>this._onEvent(d)),h=this._attributeRefs?this._attributeRefs:this._assetIds;if(!this._subscriptionIds||!B(f,h))return void d.getEventProvider().unsubscribe(p);this._subscriptionIds.push(p)}})}_removeEventSubscriptions(){this._subscriptionIds&&(this._subscriptionIds.forEach(m=>{d.getEventProvider().unsubscribe(m)}),this._subscriptionIds=void 0)}_refreshEventSubscriptions(){this._removeEventSubscriptions(),this._addEventSubscriptions()}set assetIds(d){B(this._assetIds,d)||(this._assetIds=d,this._refreshEventSubscriptions(),this.requestUpdate("assetIds"))}get assetIds(){return this._assetIds}set attributeRefs(d){B(this._attributeRefs,d)||(this._attributeRefs=d,this._refreshEventSubscriptions())}get attributeRefs(){return this._attributeRefs}_sendEvent(m){d.getEventProvider().sendEvent(m)}_sendEventWithReply(m){return d.getEventProvider().sendEventWithReply(m)}onEventsConnect(){}onEventsDisconnect(){}_onEvent(d){}},ig="#4d9d2a",iv="#FFFFFF",i_="#F9F9F9",iy="#CCCCCC",iF="#FFFFFF",ix="#4c4c4c";var iw=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};let iE="openremote";(w=A||(A={})).MANAGER_FAILED_TO_LOAD="MANAGER_FAILED_TO_LOAD",w.AUTH_FAILED="AUTH_FAILED",w.AUTH_TYPE_UNSUPPORTED="AUTH_TYPE_UNSUPPORTED",w.CONSOLE_ERROR="CONSOLE_INIT_ERROR",w.EVENTS_CONNECTION_ERROR="EVENTS_CONNECTION_ERROR",w.TRANSLATION_ERROR="TRANSLATION_ERROR",(E=C||(C={})).ERROR="ERROR",E.READY="READY",E.ONLINE="ONLINE",E.OFFLINE="OFFLINE",E.CONNECTING="CONNECTING",E.CONSOLE_INIT="CONSOLE_INIT",E.CONSOLE_READY="CONSOLE_READY",E.TRANSLATE_INIT="TRANSLATE_INIT",E.TRANSLATE_LANGUAGE_CHANGED="TRANSLATE_LANGUAGE_CHANGED",E.DISPLAY_REALM_CHANGED="DISPLAY_REALM_CHANGED",E.LOGIN="LOGIN";let ik={cn:"zh-cn"};class iA{constructor(){this._authenticated=!1,this._ready=!1,this._name="",this._username="",this._keycloakUpdateTokenInterval=void 0,this._managerVersion="",this._authServerUrl="",this._listeners=[],this._disconnected=!1}get username(){return this._username}get error(){return this._error}get authenticated(){return this._authenticated}get ready(){return this._ready}get config(){return this._config}get roles(){let d=new Map;return this._keycloak&&this._keycloak.resourceAccess&&this._config.clientId&&this._keycloak.resourceAccess&&Object.entries(this._keycloak.resourceAccess).forEach(([m,u])=>{let f=u.roles;d.set(m,f)}),d}get managerVersion(){return this._managerVersion}get isManagerAvailable(){return this._managerVersion&&""!==this._managerVersion}get managerUrl(){var d;return null==(d=this._config)?void 0:d.managerUrl}get keycloakUrl(){var d;return null==(d=this._config)?void 0:d.keycloakUrl}get isError(){return!!this._error}get connectionStatus(){return this._events&&this._events.status}get console(){return this._console}get consoleAppConfig(){return this._consoleAppConfig}get events(){return this._events}get rest(){return nW}get language(){return O.Ay.language}set language(d){console.debug(`Changing language to ${d}.`),d&&(O.Ay.changeLanguage(d),this.console.storeData("LANGUAGE",d),this.authenticated&&this.updateKeycloakUserLanguage(d).catch(d=>console.error(d)))}get displayRealm(){return this._displayRealm||this._config.realm}set displayRealm(d){this.isSuperUser()&&this._displayRealm!==d&&(this._displayRealm=d,this._emitEvent(C.DISPLAY_REALM_CHANGED))}get clientId(){return this._config.clientId||iE}getEventProvider(){return this.events}isManagerSameOrigin(){if(!this.ready)return!1;let d=new URL(this._config.managerUrl),m=window.location;return d.protocol===m.protocol&&d.hostname===m.hostname&&d.port===m.port}addListener(d){0>this._listeners.indexOf(d)&&this._listeners.push(d)}removeListener(d){let m=this._listeners.indexOf(d);m>=0&&this._listeners.splice(m,1)}init(d){return iw(this,void 0,void 0,function*(){let m;this._config&&console.debug("Already initialised"),this._config=((m=d?Object.assign({},d):{}).managerUrl&&""!==m.managerUrl?m.managerUrl=m.managerUrl.replace(/\/+$/,""):m.managerUrl=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname.replace(/\/[^/]+\/?$/,""),m.realm&&""!==m.realm||(m.realm="master"),m.auth||(m.auth="KEYCLOAK"),void 0===m.consoleAutoEnable&&(m.consoleAutoEnable=!0),void 0===m.applyConfigToAdmin&&(m.applyConfigToAdmin=!0),m.eventProviderType||(m.eventProviderType="WEBSOCKET"),(!m.pollingIntervalMillis||m.pollingIntervalMillis<5e3)&&(m.pollingIntervalMillis=1e4),void 0===m.loadIcons&&(m.loadIcons=!0),void 0===m.loadTranslations&&(m.loadTranslations=["or"]),void 0===m.translationsLoadPath&&(m.translationsLoadPath="locales/{{lng}}/{{ns}}.json"),void 0===m.loadDescriptors&&(m.loadDescriptors=!0),void 0===m.clientId&&(m.clientId=iE),m);let u=yield this.loadManagerInfo(),f=new ee(this._config.realm,this._config.consoleAutoEnable,()=>{this._emitEvent(C.CONSOLE_READY)});if(this._console=f,"KEYCLOAK"===this._config.auth){if(!this._config.keycloakUrl&&this._authServerUrl){let d,m=new URL(this._config.managerUrl);this._authServerUrl.startsWith("//")?(this._authServerUrl=m.protocol+this._authServerUrl,this._config.keycloakUrl=this._authServerUrl):this._authServerUrl.startsWith("http")?this._config.keycloakUrl=this._authServerUrl:((d=new URL(m)).pathname=this._authServerUrl,d.protocol||(d.protocol=m.protocol),d.hostname||(d.hostname=m.hostname),d.port||(d.port=m.port),this._config.keycloakUrl=d.toString())}this._config.keycloakUrl||(this._config.keycloakUrl=this._config.managerUrl+"/auth"),this._config.keycloakUrl=this._config.keycloakUrl.replace(/\/+$/,""),u=yield this.doAuthInit()}return!!u&&(u&&(u=this.doRestApiInit()),(yield this.doConsoleInit())&&this._clearWebHistory(),(u=(yield this.doTranslateInit())&&u)&&(u=yield this.doDescriptorsInit(),u=yield this.getConsoleAppConfig()),this.doIconInit(),u?(u=yield this.doEventsSubscriptionInit(),this._ready=!0,this._emitEvent(C.READY)):(this._config=void 0,console.warn("Failed to initialise the manager")),this.displayRealm=d.realm||"master",u)})}loadManagerInfo(){return iw(this,void 0,void 0,function*(){try{let d=yield new Promise((d,m)=>{let u=new XMLHttpRequest;u.addEventListener("load",()=>{d(JSON.parse(u.responseText))}),u.addEventListener("error",()=>{m(Error("Failed to contact the manager"))}),u.open("GET",this._config.managerUrl+"/api/master/info"),u.send()});return this._managerVersion=d&&d.version?d.version:"",this._authServerUrl=d&&d.authServerUrl?d.authServerUrl:"",!0}catch(d){return console.error("Failed to contact the manager",d),this._setError(A.MANAGER_FAILED_TO_LOAD),!1}})}doTranslateInit(){return iw(this,void 0,void 0,function*(){if(O.Ay.isInitialized)return!0;O.Ay.on("initialized",d=>{this._emitEvent(C.TRANSLATE_INIT)}),O.Ay.on("languageChanged",d=>{var m;R().locale(null!=(m=ik[d])?m:d),this._emitEvent(C.TRANSLATE_LANGUAGE_CHANGED)});let d={lng:(yield this.getConsolePreferredLanguage())||(yield this.getUserPreferredLanguage())||this.config.defaultLanguage||"en",fallbackLng:"en",defaultNS:"app",fallbackNS:"or",ns:this.config.loadTranslations,interpolation:{format:(d,m,u)=>"uppercase"===m?d.toUpperCase():d instanceof Date?R()(d).format(m):d},backend:{loadPath:(d,m)=>1===m.length&&"or"===m[0]?this.config.managerUrl+"/shared/locales/{{lng}}/{{ns}}.json":this.config.translationsLoadPath?this.config.translationsLoadPath:"locales/{{lng}}/{{ns}}.json"}};this.config.configureTranslationsOptions&&this.config.configureTranslationsOptions(d);try{yield O.Ay.use(il).init(d)}catch(d){return console.error(d),this._setError(A.TRANSLATION_ERROR),!1}return!0})}doDescriptorsInit(){return iw(this,void 0,void 0,function*(){if(!this.config.loadDescriptors)return!0;try{let d=yield nW.api.AssetModelResource.getAssetInfos(),m=yield nW.api.AssetModelResource.getMetaItemDescriptors(),u=yield nW.api.AssetModelResource.getValueDescriptors();I.u0._assetTypeInfos=d.data,I.u0._metaItemDescriptors=Object.values(m.data),I.u0._valueDescriptors=Object.values(u.data)}catch(d){return console.error(d),!1}return!0})}doAuthInit(){return iw(this,void 0,void 0,function*(){let d=!0;switch(this._config.auth){case"KEYCLOAK":d=yield this.loadAndInitialiseKeycloak();break;case"NONE":return!0;default:return this._setError(A.AUTH_TYPE_UNSUPPORTED),!1}return!!d&&(nW.addRequestInterceptor(d=>{if(!d.headers.Authorization){let m=this.getAuthorizationHeader();m&&(d.headers.Authorization=m)}return d}),d)})}doRestApiInit(){return nW.setTimeout(2e4),nW.initialise(this.getApiBaseUrl()),!0}doEventsSubscriptionInit(){return iw(this,void 0,void 0,function*(){let d=!1;return"WEBSOCKET"===this._config.eventProviderType&&(this._events=new n1(this._config.managerUrl),this._events.subscribeStatusChange(d=>this._onEventProviderStatusChanged(d)),d=yield this._events.connect()),d||this._setError(A.EVENTS_CONNECTION_ERROR),d})}_connectEvents(){var d;(null==(d=this.events)?void 0:d.status)===k.DISCONNECTED?this.events.connect().catch(d=>{console.error("Failed to connect EventProvider."),console.error(d)}):console.warn("Tried to connect EventProvider, but it wasn't disconnected!")}_onEventProviderStatusChanged(d){switch(d){case k.DISCONNECTED:this._onDisconnect();break;case k.CONNECTED:break;case k.CONNECTING:this._emitEvent(C.CONNECTING)}}doConsoleInit(){return iw(this,void 0,void 0,function*(){try{return yield this.console.initialise(),this._emitEvent(C.CONSOLE_INIT),!0}catch(d){return this._setError(A.CONSOLE_ERROR),!1}})}doIconInit(){this._config.loadIcons&&(ic.Ri.addIconSet("mdi",(0,ic.mb)(iC.managerUrl)),ic.Ri.addIconSet("or",(0,ic.e4)(ic.Bv.size,ic.Bv.icons)))}getConsoleAppConfig(){return iw(this,void 0,void 0,function*(){var d;try{let m=yield fetch((null!=(d=iC.managerUrl)?d:"")+"/consoleappconfig/"+iC.displayRealm+".json");return this._consoleAppConfig=yield m.json(),!0}catch(d){return!0}})}getConsolePreferredLanguage(){return iw(this,arguments,void 0,function*(d=this.console){return d.retrieveData("LANGUAGE")})}getUserPreferredLanguage(){return iw(this,arguments,void 0,function*(d=this._keycloak){if(d&&d.authenticated){let m=(null==d?void 0:d.profile)||(yield null==d?void 0:d.loadUserProfile());if(null==m?void 0:m.attributes){let d=new Map(Object.entries(m.attributes));if(d.has("locale")){let m=d.get("locale");if("string"==typeof m[0])return m[0]}console.warn("Could not get user language from keycloak: no user attributes were found.")}else console.warn("Could not get user language from keycloak: no valid keycloak user profile was found.")}})}updateKeycloakUserLanguage(d){return iw(this,arguments,void 0,function*(d,m=this.rest){this.authenticated?m?yield m.api.UserResource.updateCurrentUserLocale(d,{headers:{"Content-Type":"application/json"}}):console.warn("Tried updating user language, but the REST API is not initialized yet."):console.warn("Tried updating user language, but the user is not authenticated.")})}logout(d){this._authenticated&&(this._authenticated=!0,this._keycloak&&(this.isMobile()&&this.console.storeData("REFRESH_TOKEN",null),this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._keycloak.logout(d&&""!==d?{redirectUri:d}:void 0)))}login(d){if("KEYCLOAK"===this._config.auth&&this._keycloak){let m={};d&&d.redirectUrl&&""!==d.redirectUrl&&(m.redirectUri=d.redirectUrl),(null==d?void 0:d.action)&&""!==d.action&&(m.action=d.action),this.isMobile()&&(m.scope="offline_access"),this._keycloak.login(m)}}isSuperUser(){return!!(this.getRealm()&&"master"===this.getRealm()&&this.hasRealmRole("admin"))}isRestrictedUser(){return!!this.hasRealmRole("restricted_user")}getApiBaseUrl(){return this._config.managerUrl+"/api/"+this._config.realm+"/"}getAppName(){let d=location.pathname.split("/");return d.length>=1?d[1]:""}hasRealmRole(d){return this.isKeycloak()&&this._keycloak.hasRealmRole(d)}hasRole(d,m=this._config.clientId){let u=this.roles;return u&&u.has(m)&&u.get(m).indexOf(d)>=0}getAuthorizationHeader(){if(this.getKeycloakToken())return"Bearer "+this.getKeycloakToken()}retrieveAuthorizationHeader(){return iw(this,void 0,void 0,function*(){let d=yield this.retrieveKeycloakToken();if(d)return"Bearer "+d})}getKeycloakToken(){if(this.isKeycloak())return this._keycloak.token}retrieveKeycloakToken(){return iw(this,void 0,void 0,function*(){if(this.isKeycloak())return yield this._updateKeycloakAccessToken(),this._keycloak.token})}getRealm(){if(this._config)return this._config.realm}isMobile(){return this.console&&this.console.isMobile}isKeycloak(){return!!this._keycloak}_onAuthenticated(){this._authenticated=!0}loadAndInitialiseKeycloak(){return iw(this,void 0,void 0,function*(){var d,m,u,f,p;try{this._keycloak=new ip({clientId:this._config.clientId,realm:this._config.realm,url:this._config.keycloakUrl});let h=yield this._getNativeOfflineRefreshToken(),b=yield this._keycloak.init({checkLoginIframe:!1,onLoad:"check-sso"});if(!b&&h)try{console.error("SETTING OFFLINE TOKEN"),this._keycloak.refreshToken=h,b=yield this._updateKeycloakAccessToken()}catch(d){console.error("Failed to authenticate using offline token")}if(b){this._name=null==(d=this._keycloak.tokenParsed)?void 0:d.name,this._username=null==(m=this._keycloak.tokenParsed)?void 0:m.preferred_username,this.isMobile()&&(null==(f=null==(u=this._keycloak)?void 0:u.refreshTokenParsed)?void 0:f.typ)==="Offline"&&(console.debug("Storing offline refresh token"),this.console.storeData("REFRESH_TOKEN",this._keycloak.refreshToken)),this._onAuthenticated(),this._createTokenUpdateInterval();let h=null==(p=this._keycloak.tokenParsed)?void 0:p.session_state;h&&sessionStorage.getItem("or-session")!==h&&(sessionStorage.setItem("or-session",h),this._emitEvent(C.LOGIN))}else if(this.config.autoLogin)return this.login(),!1;return!0}catch(d){return this._authenticated=!1,this._setError(A.AUTH_FAILED),console.error("Failed to initialise Keycloak: "+d),!1}})}_createTokenUpdateInterval(){this._authenticated?this._keycloakUpdateTokenInterval||(this._keycloakUpdateTokenInterval=window.setInterval(()=>iw(this,void 0,void 0,function*(){yield this._updateKeycloakAccessToken().catch(()=>{console.debug("Keycloak failed to refresh the access token"),this._onDisconnect()})}),1e4)):console.warn("User is not authenticated; skipping token update interval creation.")}_updateKeycloakAccessToken(){return iw(this,void 0,void 0,function*(){let d=yield this._keycloak.updateToken(20);return console.debug("Access token update success, refreshed from server: "+d),d&&this._onAuthenticated(),d})}_getNativeOfflineRefreshToken(){return iw(this,void 0,void 0,function*(){if(this.isMobile())return yield this.console.retrieveData("REFRESH_TOKEN")})}_emitEvent(d){window.setTimeout(()=>{for(let m of this._listeners)m(d)},0)}_setError(d){this._error=d,this._emitEvent(C.ERROR),console.warn("Error set: "+d)}_clearWebHistory(){var d;this.isMobile()&&(null==(d=this.console)||d._doSendGenericMessage("CLEAR_WEB_HISTORY",void 0))}_onDisconnect(){return iw(this,void 0,void 0,function*(){this._disconnected||(console.debug("Disconnected"),this._disconnected=!0,this._keycloakUpdateTokenInterval&&(window.clearTimeout(this._keycloakUpdateTokenInterval),this._keycloakUpdateTokenInterval=void 0),this._emitEvent(C.OFFLINE),this.reconnect())})}_onReconnected(){console.debug("Reconnected to the Manager."),this._disconnected=!1,this._createTokenUpdateInterval(),this._emitEvent(C.ONLINE)}reconnect(){return iw(this,arguments,void 0,function*(d=3e3){if(console.debug("Checking connection to the Manager..."),!this._disconnected)return void console.debug("Manager is still connected. No action necessary.");console.debug("Manager is disconnected!"),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0);let m=()=>iw(this,void 0,void 0,function*(){var d,m;if(console.debug("Reconnecting to the Manager..."),!this._authenticated){console.debug("User is not authenticated, skipping token refresh");let m=()=>{var d;return(null==(d=this.events)?void 0:d.status)===k.CONNECTED};return m()||(yield null==(d=this.events)?void 0:d.connect()),m()}if(!(yield this.isKeycloakReachable()))return console.error("Keycloak is not reachable. Reconnect attempt failed."),!1;try{yield this._updateKeycloakAccessToken()}catch(m){console.error("Could not update Keycloak access token, attempting again using offline token...",m);let d=yield this._getNativeOfflineRefreshToken();this._keycloak.refreshToken=d,d||console.warn("No offline token was found on this device.");try{yield this._updateKeycloakAccessToken()}catch(d){throw this.login(),Error("Cannot update access token so sending to login")}console.debug("Keycloak access token is valid")}let u=()=>{var d;return(null==(d=this.events)?void 0:d.status)===k.CONNECTED};return u()||(console.debug("Event provider offline, attempting to reconnect using latest auth token."),yield null==(m=this.events)?void 0:m.connect()),u()}),u=yield m();if(void 0!==u){if(!u){d=Math.min(iA.MAX_RECONNECT_DELAY,d+3e3),console.error(`Failed to reconnect to the Manager. Attempting again in ${d}...`),this._reconnectTimer=window.setTimeout(()=>this.reconnect(d),d);return}this._onReconnected()}})}isKeycloakReachable(){return iw(this,arguments,void 0,function*(d=2e3){let m=new AbortController,u=setTimeout(()=>m.abort(),d);try{let d=this._keycloak.endpoints.token(),u=yield fetch(d,{method:"OPTIONS",signal:m.signal});return 200===u.status}catch(d){return!1}finally{clearTimeout(u)}})}}iA.MAX_RECONNECT_DELAY=45e3;let iC=new iA,iT=iC},5144(d,m,u){"use strict";var f,p,h,b,g,v,_,y,F,x,w,E,k,A,C,T,S,I,O,D,R,N,B,L,P,M,z,U,j,V,$,H,q,G,Y,W,X,K,J,Z,Q,ee,et,en,ei,eo,er,ea,es,el,ec,ed,em,eu,ef,ep,eh,eb,eg,ev,e_,ey,eF,ex,ew,eE,ek,eA,eC,eT,eS,eI,eO,eD,eR,eN,eB,eL,eP,eM,ez,eU,ej,eV,e$,eH,eq,eG,eY,eW,eX,eK,eJ,eZ,eQ,e0,e1,e2,e5,e4,e3,e6,e8,e7,e9,te,tt,tn,ti,to,tr,ta,ts,tl,tc,td,tm,tu,tf,tp,th,tb,tg,tv,t_;u.d(m,{u0:()=>ty}),(ex=f||(f={})).CREATE="CREATE",ex.UPDATE="UPDATE",ex.DELETE="DELETE",(ew=p||(p={})).LOW="LOW",ew.MEDIUM="MEDIUM",ew.HIGH="HIGH",(eE=h||(h={})).MANUAL="MANUAL",eE.CLIENT="CLIENT",eE.GLOBAL_RULESET="GLOBAL_RULESET",eE.REALM_RULESET="REALM_RULESET",eE.ASSET_RULESET="ASSET_RULESET",eE.AGENT="AGENT",(ek=b||(b={})).OPEN="OPEN",ek.ACKNOWLEDGED="ACKNOWLEDGED",ek.IN_PROGRESS="IN_PROGRESS",ek.RESOLVED="RESOLVED",ek.CLOSED="CLOSED",(eA=g||(g={})).BOTTOM_LEFT="BOTTOM_LEFT",eA.BOTTOM_RIGHT="BOTTOM_RIGHT",eA.TOP_LEFT="TOP_LEFT",eA.TOP_RIGHT="TOP_RIGHT",(eC=v||(v={})).CREATE="CREATE",eC.READ="READ",eC.UPDATE="UPDATE",eC.DELETE="DELETE",(eT=_||(_={})).NONE="NONE",eT.FORECAST="FORECAST",eT.SETPOINT="SETPOINT",(eS=y||(y={})).DISCONNECTED="DISCONNECTED",eS.CONNECTING="CONNECTING",eS.DISCONNECTING="DISCONNECTING",eS.CONNECTED="CONNECTED",eS.DISABLED="DISABLED",eS.WAITING="WAITING",eS.ERROR="ERROR",eS.STOPPED="STOPPED",(eI=F||(F={})).REQUEST_START="REQUEST_START",eI.REQUEST_REPEATING="REQUEST_REPEATING",eI.REQUEST_CANCEL="REQUEST_CANCEL",eI.READY="READY",eI.COMPLETED="COMPLETED",eI.RUNNING="RUNNING",eI.CANCELLED="CANCELLED",(eO=x||(x={})).TOGGLE="TOGGLE",eO.INCREMENT="INCREMENT",eO.DECREMENT="DECREMENT",eO.NEGATE="NEGATE",(eD=w||(w={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",eD.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",eD.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",eD.INVALID_VALUE="INVALID_VALUE",eD.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",eD.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",eD.CANNOT_PROCESS="CANNOT_PROCESS",eD.QUEUE_FULL="QUEUE_FULL",eD.UNKNOWN="UNKNOWN",eD.ASSET_ID_MISSING="ASSET_ID_MISSING",eD.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(eR=E||(E={})).PUBLIC="PUBLIC",eR.SHARED="SHARED",eR.PRIVATE="PRIVATE",(eN=k||(k={})).OFF="OFF",eN.ONE_MIN="ONE_MIN",eN.FIVE_MIN="FIVE_MIN",eN.QUARTER="QUARTER",eN.ONE_HOUR="ONE_HOUR",(eB=A||(A={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",eB.KEEP_LAYOUT="KEEP_LAYOUT",eB.REDIRECT="REDIRECT",eB.BLOCK_DEVICE="BLOCK_DEVICE",(eL=C||(C={})).CSV="CSV",eL.CSV_CROSSTAB="CSV_CROSSTAB",eL.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(eP=T||(T={})).MINUTE="MINUTE",eP.HOUR="HOUR",eP.DAY="DAY",eP.WEEK="WEEK",eP.MONTH="MONTH",eP.YEAR="YEAR",(eM=S||(S={})).MIN="MIN",eM.AVG="AVG",eM.MAX="MAX",eM.DIFFERENCE="DIFFERENCE",eM.COUNT="COUNT",eM.SUM="SUM",eM.MODE="MODE",eM.MEDIAN="MEDIAN",(ez=I||(I={})).TERMINATING="TERMINATING",ez.DISABLED="DISABLED",ez.ALREADY_CONNECTED="ALREADY_CONNECTED",ez.UNRECOGNISED="UNRECOGNISED",ez.PERMANENT_ERROR="PERMANENT_ERROR",ez.SYNC_ERROR="SYNC_ERROR",(eU=O||(O={})).HTTPS="HTTPS",eU.HTTP="HTTP",eU.TCP="TCP",(ej=D||(D={})).GET="GET",ej.POST="POST",ej.PUT="PUT",ej.DELETE="DELETE",ej.OPTIONS="OPTIONS",ej.PATCH="PATCH",(eV=R||(R={})).KEYCLOAK="KEYCLOAK",eV.NONE="NONE",(e$=N||(N={})).WEBSOCKET="WEBSOCKET",e$.POLLING="POLLING",(eH=B||(B={})).INTERNAL="INTERNAL",eH.CLIENT="CLIENT",eH.GLOBAL_RULESET="GLOBAL_RULESET",eH.REALM_RULESET="REALM_RULESET",eH.ASSET_RULESET="ASSET_RULESET",(eq=L||(L={})).REALM="REALM",eq.USER="USER",eq.ASSET="ASSET",eq.CUSTOM="CUSTOM",(eG=P||(P={})).NORMAL="NORMAL",eG.HIGH="HIGH",(eY=M||(M={})).DEVICE="DEVICE",eY.TOPIC="TOPIC",eY.CONDITION="CONDITION",(eW=z||(z={})).ALWAYS="ALWAYS",eW.ONCE="ONCE",eW.HOURLY="HOURLY",eW.DAILY="DAILY",eW.WEEKLY="WEEKLY",eW.MONTHLY="MONTHLY",eW.ANNUALLY="ANNUALLY",(eX=U||(U={})).TITLE="TITLE",eX.SOURCE="SOURCE",eX.STATUS="STATUS",eX.SENT_ON="SENT_ON",eX.DELIVERED_ON="DELIVERED_ON",(eK=j||(j={})).MESSAGE_INVALID="MESSAGE_INVALID",eK.CERTIFICATE_INVALID="CERTIFICATE_INVALID",eK.UNAUTHORIZED="UNAUTHORIZED",eK.FORBIDDEN="FORBIDDEN",eK.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",eK.CONFIG_DISABLED="CONFIG_DISABLED",eK.USER_DISABLED="USER_DISABLED",eK.SERVER_ERROR="SERVER_ERROR",eK.ASSET_ERROR="ASSET_ERROR",eK.SERVER_BUSY="SERVER_BUSY",(eJ=V||(V={})).PRIVATE="PRIVATE",eJ.PROTECTED="PROTECTED",eJ.PUBLIC="PUBLIC",(eZ=$||($={})).EXACT="EXACT",eZ.BEGIN="BEGIN",eZ.END="END",eZ.CONTAINS="CONTAINS",(eQ=H||(H={})).EQUALS="EQUALS",eQ.GREATER_THAN="GREATER_THAN",eQ.GREATER_EQUALS="GREATER_EQUALS",eQ.LESS_THAN="LESS_THAN",eQ.LESS_EQUALS="LESS_EQUALS",eQ.BETWEEN="BETWEEN",(e0=q||(q={})).CREATED_ON="CREATED_ON",e0.NAME="NAME",e0.ASSET_TYPE="ASSET_TYPE",e0.PARENT_ID="PARENT_ID",e0.REALM="REALM",(e1=G||(G={})).RESTRICTED="RESTRICTED",e1.LINKED="LINKED",e1.REALM="REALM",(e2=Y||(Y={})).AT_LEAST_ONE="AT_LEAST_ONE",e2.ALL="ALL",e2.NONE="NONE",(e5=W||(W={})).AND="AND",e5.OR="OR",(e4=X||(X={})).CREATED_ON="CREATED_ON",e4.FIRST_NAME="FIRST_NAME",e4.LAST_NAME="LAST_NAME",e4.USERNAME="USERNAME",e4.EMAIL="EMAIL",(e3=K||(K={})).STOPPED="STOPPED",e3.RUNNING="RUNNING",e3.ERROR="ERROR",(e6=J||(J={})).JAVASCRIPT="JAVASCRIPT",e6.GROOVY="GROOVY",e6.JSON="JSON",e6.FLOW="FLOW",(e8=Z||(Z={})).READY="READY",e8.DEPLOYED="DEPLOYED",e8.COMPILATION_ERROR="COMPILATION_ERROR",e8.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",e8.EXECUTION_ERROR="EXECUTION_ERROR",e8.LOOP_ERROR="LOOP_ERROR",e8.DISABLED="DISABLED",e8.PAUSED="PAUSED",e8.EXPIRED="EXPIRED",e8.REMOVED="REMOVED",e8.EMPTY="EMPTY",(e7=Q||(Q={})).SUNRISE="SUNRISE",e7.SUNSET="SUNSET",e7.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",e7.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",e7.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",e7.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",e7.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",e7.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",e7.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",e7.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",e7.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",e7.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",e7.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",e7.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",e7.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",e7.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",e7.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",e7.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",e7.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",e7.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(e9=ee||(ee={})).NUMBER="NUMBER",e9.NUMBER_ARRAY="NUMBER_ARRAY",e9.STRING="STRING",e9.BOOLEAN="BOOLEAN",e9.TRIGGER="TRIGGER",e9.COLOR="COLOR",e9.ANY="ANY",(te=et||(et={})).NEW_LINE="NEW_LINE",te.SPACER="SPACER",(tt=en||(en={})).INPUT="INPUT",tt.PROCESSOR="PROCESSOR",tt.OUTPUT="OUTPUT",tt.THEN="THEN",(tn=ei||(ei={})).TEXT="TEXT",tn.MULTILINE="MULTILINE",tn.NUMBER="NUMBER",tn.DROPDOWN="DROPDOWN",tn.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",tn.CHECKBOX="CHECKBOX",tn.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",tn.COLOR="COLOR",tn.DATE="DATE",(ti=eo||(eo={})).ADD="ADD",ti.ADD_OR_REPLACE="ADD_OR_REPLACE",ti.REPLACE="REPLACE",ti.DELETE="DELETE",ti.CLEAR="CLEAR",(to=er||(er={})).PER_ASSET="PER_ASSET",to.GLOBAL="GLOBAL",(tr=ea||(ea={})).READ_ADMIN="read:admin",tr.READ_LOGS="read:logs",tr.READ_USERS="read:users",tr.READ_MAP="read:map",tr.READ_ASSETS="read:assets",tr.READ_RULES="read:rules",tr.READ_INSIGHTS="read:insights",tr.READ_ALARMS="read:alarms",tr.READ_NOTIFICATIONS="read:notifications",tr.READ_SERVICES="read:services",tr.WRITE_SERVICES="write:services",tr.WRITE_USER="write:user",tr.WRITE_ADMIN="write:admin",tr.WRITE_LOGS="write:logs",tr.WRITE_ASSETS="write:assets",tr.WRITE_ATTRIBUTES="write:attributes",tr.WRITE_RULES="write:rules",tr.WRITE_INSIGHTS="write:insights",tr.WRITE_ALARMS="write:alarms",tr.WRITE_NOTIFICATIONS="write:notifications",tr.READ="read",tr.WRITE="write",(ta=es||(es={})).REGISTER="REGISTER",ta.UPDATE="UPDATE",ta.DEREGISTER="DEREGISTER",(ts=el||(el={})).AVAILABLE="AVAILABLE",ts.UNAVAILABLE="UNAVAILABLE",(tl=ec||(ec={})).ASSET="ASSET",tl.AGENT="AGENT",tl.NOTIFICATION="NOTIFICATION",tl.ALARM="ALARM",tl.RULES="RULES",tl.PROTOCOL="PROTOCOL",tl.GATEWAY="GATEWAY",tl.MODEL_AND_VALUES="MODEL_AND_VALUES",tl.API="API",tl.DATA="DATA",(tc=ed||(ed={})).INFO="INFO",tc.WARN="WARN",tc.ERROR="ERROR",(td=em||(em={})).NUMERIC="numeric",td.DIGIT_2="2-digit",td.FULL="full",td.LONG="long",td.MEDIUM="medium",td.SHORT="short",td.NARROW="narrow",(tm=eu||(eu={})).SECONDLY="SECONDLY",tm.MINUTELY="MINUTELY",tm.HOURLY="HOURLY",tm.DAILY="DAILY",tm.WEEKLY="WEEKLY",tm.MONTHLY="MONTHLY",tm.YEARLY="YEARLY",(tu=ef||(ef={})).OMIT="OMIT",tu.BACKWARD="BACKWARD",tu.FORWARD="FORWARD",(tf=ep||(ep={})).JAPANESE="JAPANESE",tf.BUDDHIST="BUDDHIST",tf.ROC="ROC",tf.ISLAMIC="ISLAMIC",tf.ISO8601="ISO8601",tf.CHINESE="CHINESE",tf.ETHIOPIC="ETHIOPIC",tf.HEBREW="HEBREW",tf.GREGORIAN="GREGORIAN",(tp=eh||(eh={})).SU="SU",tp.MO="MO",tp.TU="TU",tp.WE="WE",tp.TH="TH",tp.FR="FR",tp.SA="SA",(th=eb||(eb={})).PEOPLECOUNTERASSET="PeopleCounterAsset",th.MAILAGENT="MailAgent",th.UDPAGENT="UDPAgent",th.ROOMASSET="RoomAsset",th.CITYASSET="CityAsset",th.VENTILATIONASSET="VentilationAsset",th.TRADFRILIGHTASSET="TradfriLightAsset",th.CONSOLEASSET="ConsoleAsset",th.PRESENCESENSORASSET="PresenceSensorAsset",th.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",th.LIGHTASSET="LightAsset",th.KNXAGENT="KNXAgent",th.THETHINGSSTACKAGENT="TheThingsStackAgent",th.PLUGASSET="PlugAsset",th.CHIRPSTACKAGENT="ChirpStackAgent",th.WEATHERASSET="WeatherAsset",th.THINGASSET="ThingAsset",th.WEBSOCKETAGENT="WebsocketAgent",th.TCPAGENT="TCPAgent",th.GATEWAYASSET="GatewayAsset",th.SERIALAGENT="SerialAgent",th.BLUETOOTHMESHAGENT="BluetoothMeshAgent",th.PARKINGASSET="ParkingAsset",th.TRADFRIPLUGASSET="TradfriPlugAsset",th.SIMULATORAGENT="SimulatorAgent",th.SNMPAGENT="SNMPAgent",th.GROUPASSET="GroupAsset",th.BUILDINGASSET="BuildingAsset",th.MODBUSSERIALAGENT="ModbusSerialAgent",th.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",th.MQTTAGENT="MQTTAgent",th.VELBUSTCPAGENT="VelbusTCPAgent",th.ARTNETLIGHTASSET="ArtnetLightAsset",th.VELBUSSERIALAGENT="VelbusSerialAgent",th.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",th.MICROPHONEASSET="MicrophoneAsset",th.MODBUSTCPAGENT="ModbusTcpAgent",th.ZWAVEAGENT="ZWaveAgent",th.HTTPAGENT="HTTPAgent",th.DOORASSET="DoorAsset",th.THERMOSTATASSET="ThermostatAsset",th.SHIPASSET="ShipAsset",(tb=eg||(eg={})).COLOURRGB="colourRGB",tb.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",tb.PRICEHOURLY="priceHourly",tb.MQTTPORT="MQTTPort",tb.PINGDISABLED="pingDisabled",tb.FLOW="flow",tb.CHILDASSETTYPE="childAssetType",tb.LASTACCESS="lastAccess",tb.POSITION="position",tb.NETWORKKEY="networkKey",tb.UNIVERSE="universe",tb.ROUTINGMODE="routingMode",tb.MSSINUMBER="MSSINumber",tb.LASTWILLRETAIN="lastWillRetain",tb.LASTWILLTOPIC="lastWillTopic",tb.SERIALBAUDRATE="serialBaudrate",tb.SUBSCRIBEQOS="subscribeQos",tb.LEDCOUNT="lEDCount",tb.LOCKED="locked",tb.CLOUDCOVERAGE="cloudCoverage",tb.BASEURL="baseURL",tb.PROTOCOL="protocol",tb.REQUIREDVALUES="requiredValues",tb.REGION="region",tb.CONSOLEPLATFORM="consolePlatform",tb.GATEWAYSTATUS="gatewayStatus",tb.NO2LEVEL="NO2Level",tb.ATMOSPHERICPRESSURE="atmosphericPressure",tb.SERIALPORT="serialPort",tb.APPLICATIONID="applicationId",tb.TAGS="tags",tb.UNLOCK="unlock",tb.CHECKINTERVALSECONDS="checkIntervalSeconds",tb.LOCATION="location",tb.CLIENTSECRET="clientSecret",tb.WINDDIRECTION="windDirection",tb.WINDSPEED="windSpeed",tb.PARTICLESPM10="particlesPM10",tb.APPLICATIONKEY="applicationKey",tb.LENGTH="length",tb.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",tb.USERNAMEPASSWORD="usernamePassword",tb.WATERLEVEL="waterLevel",tb.CONNECTHEADERS="connectHeaders",tb.CONSOLENAME="consoleName",tb.WEBSOCKETQUERY="websocketQuery",tb.PREFERHTML="preferHTML",tb.PARITY="parity",tb.COOLING="cooling",tb.POLLINGMILLIS="pollingMillis",tb.SOILTEMPERATURE="soilTemperature",tb.SUNIRRADIANCE="sunIrradiance",tb.MESSAGEMAXLENGTH="messageMaxLength",tb.WINDGUSTSPEED="windGustSpeed",tb.LIGHTID="lightId",tb.PROXYADDRESS="proxyAddress",tb.REQUESTQUERYPARAMETERS="requestQueryParameters",tb.MQTTHOST="MQTTHost",tb.SECUREGRPC="secureGRPC",tb.MODEL="model",tb.STREET="street",tb.MANUFACTURER="manufacturer",tb.DELETEPROCESSEDMAIL="deleteProcessedMail",tb.RESUMESESSION="resumeSession",tb.ONOFF="onOff",tb.APIKEY="ApiKey",tb.CITY="city",tb.PRESENCE="presence",tb.SPACESOCCUPIED="spacesOccupied",tb.STARTTLS="startTLS",tb.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",tb.WEBSOCKETPATH="websocketPath",tb.AGENTSTATUS="agentStatus",tb.PRICEDAILY="priceDaily",tb.COUNTGROWTHMINUTE="countGrowthMinute",tb.IMONUMBER="IMONumber",tb.ATTRIBUTION="Attribution",tb.TENANTID="tenantId",tb.REQUESTHEADERS="requestHeaders",tb.HOST="host",tb.COUNTOUTMINUTE="countOutMinute",tb.MESSAGECHARSET="messageCharset",tb.CERTIFICATEALIAS="certificateAlias",tb.EMAIL="email",tb.BINDPORT="bindPort",tb.CONSOLEVERSION="consoleVersion",tb.PARTICLESPM1="particlesPM1",tb.MTU="mtu",tb.SPEED="speed",tb.MESSAGESTRIPDELIMITER="messageStripDelimiter",tb.AREA="area",tb.COUNTRY="country",tb.SHIPTYPE="shipType",tb.CONNECTSUBSCRIPTIONS="connectSubscriptions",tb.RELATIVEHUMIDITY="relativeHumidity",tb.SOURCEADDRESS="sourceAddress",tb.RAINFALL="rainfall",tb.OAUTHGRANT="oAuthGrant",tb.OZONELEVEL="ozoneLevel",tb.SEQUENCENUMBER="sequenceNumber",tb.COUNTINMINUTE="countInMinute",tb.PORT="port",tb.SUNALTITUDE="sunAltitude",tb.COUNTOUT="countOut",tb.ROOMNUMBER="roomNumber",tb.TUNNELINGSUPPORTED="tunnelingSupported",tb.ENINUMBER="ENINumber",tb.PARTICLESPM2_5="particlesPM2_5",tb.AGENTDISABLED="agentDisabled",tb.DISABLED="disabled",tb.COUNTIN="countIn",tb.MESSAGESOURCEADDRESS="messageSourceAddress",tb.PROVISIONWEATHERASSET="ProvisionWeatherAsset",tb.TIMEINJECTIONINTERVAL="timeInjectionInterval",tb.TEMPERATURESETPOINT="temperatureSetpoint",tb.CONSOLEPROVIDERS="consoleProviders",tb.COUNTTOTAL="countTotal",tb.SPACESBUFFER="spacesBuffer",tb.DEVICECONFIG="deviceConfig",tb.SPACESTOTAL="spacesTotal",tb.BINDHOST="bindHost",tb.FANSPEED="fanSpeed",tb.MESSAGECONVERTBINARY="messageConvertBinary",tb.NOTES="notes",tb.MAILFOLDERNAME="mailFolderName",tb.MESSAGEDELIMITERS="messageDelimiters",tb.TEMPERATURE="temperature",tb.SUNZENITH="sunZenith",tb.SNMPVERSIONVALUE="SNMPVersionValue",tb.BRIGHTNESS="brightness",tb.POSTALCODE="postalCode",tb.SPACESOPEN="spacesOpen",tb.HUMIDITY="humidity",tb.SOUNDLEVEL="soundLevel",tb.SECUREMODE="secureMode",tb.DIRECTION="direction",tb.STOPBITS="stopbits",tb.UVINDEX="uVIndex",tb.CONNECTURL="connectURL",tb.CLIENTID="clientId",tb.NATMODE="NATMode",tb.UPDATEONWRITE="updateOnWrite",tb.LASTWILLPAYLOAD="lastWillPayload",tb.GROUPID="groupId",tb.FOLLOWREDIRECTS="followRedirects",tb.SUNAZIMUTH="sunAzimuth",tb.MESSAGECONVERTHEX="messageConvertHex",tb.WEBSOCKETMODE="websocketMode",tb.COLOURTEMPERATURE="colourTemperature",tb.PUBLISHQOS="publishQos",tb.DATABITS="dataBits",(tg=ev||(ev={})).FORMAT="format",tg.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",tg.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",tg.SECRET="secret",tg.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",tg.ATTRIBUTELINKS="attributeLinks",tg.RULERESETIMMEDIATE="ruleResetImmediate",tg.RULESTATE="ruleState",tg.AGENTLINKCONFIG="agentLinkConfig",tg.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",tg.FORECAST="forecast",tg.STOREDATAPOINTS="storeDataPoints",tg.LABEL="label",tg.CONSTRAINTS="constraints",tg.UNITS="units",tg.USERCONNECTED="userConnected",tg.SHOWONDASHBOARD="showOnDashboard",tg.READONLY="readOnly",tg.MULTILINE="multiline",tg.ACCESSPUBLICWRITE="accessPublicWrite",tg.MOMENTARY="momentary",tg.AGENTLINK="agentLink",tg.ACCESSRESTRICTEDREAD="accessRestrictedRead",tg.ACCESSPUBLICREAD="accessPublicRead",(tv=e_||(e_={})).ASSETQUERY="assetQuery",tv.WSURL="WS_URL",tv.COLOURRGB="colourRGB",tv.VALUEFORMAT="valueFormat",tv.TEXT="text",tv.BYTE="byte",tv.USERNAMEANDPASSWORD="usernameAndPassword",tv.HTTPURL="HTTP_URL",tv.ATTRIBUTELINK="attributeLink",tv.ASSETID="assetID",tv.NUMBERMAP="numberMap",tv.HTTPMETHOD="HTTPMethod",tv.ATTRIBUTESTATE="attributeState",tv.POSITIVENUMBER="positiveNumber",tv.POSITIVEINTEGER="positiveInteger",tv.EXECUTIONSTATUS="executionStatus",tv.BIGINTEGER="bigInteger",tv.VALUEDESCRIPTOR="valueDescriptor",tv.PERIODDURATIONISO8601="periodDurationISO8601",tv.LONG="long",tv.DATEANDTIME="dateAndTime",tv.BOOLEANMAP="booleanMap",tv.MQTTQOS="MQTTQos",tv.NEGATIVEINTEGER="negativeInteger",tv.TCPIPPORTNUMBER="TCP_IPPortNumber",tv.GEOJSONPOINT="GEO_JSONPoint",tv.SNMPVERSION="SNMPVersion",tv.ASSETTYPE="assetType",tv.JSONOBJECT="JSONObject",tv.INTEGERMAP="integerMap",tv.BIGNUMBER="bigNumber",tv.IPADDRESS="IPAddress",tv.EMAIL="email",tv.TIMESTAMP="timestamp",tv.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",tv.ATTRIBUTEREFERENCE="attributeReference",tv.UUID="UUID",tv.INTEGER="integer",tv.OAUTHGRANT="oAuthGrant",tv.NUMBER="number",tv.DEVICECONFIGMAP="DeviceConfigMap",tv.TEXTMAP="textMap",tv.WEBSOCKETSUBSCRIPTION="websocketSubscription",tv.BOOLEAN="boolean",tv.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",tv.FORECASTCONFIGURATION="forecastConfiguration",tv.TIMEDURATIONISO8601="timeDurationISO8601",tv.TIMESTAMPISO8601="timestampISO8601",tv.CONSOLEPROVIDERS="consoleProviders",tv.MULTIVALUEDTEXTMAP="multivaluedTextMap",tv.NEGATIVENUMBER="negativeNumber",tv.PARITYBIT="Paritybit",tv.JSON="JSON",tv.CRONEXPRESSION="CRONExpression",tv.INTEGERBYTE="integerByte",tv.AGENTLINK="agentLink",tv.DIRECTION="direction",tv.HOSTORIPADDRESS="hostOrIPAddress",tv.STOPBITS="Stopbits",tv.CALENDAREVENT="calendarEvent",tv.CONNECTIONSTATUS="connectionStatus",tv.VALUECONSTRAINT="valueConstraint",(t_=ey||(ey={})).MONTH="month",t_.MILE_SCANDINAVIAN="mile_scandinavian",t_.VAR="var",t_.OUNCE="ounce",t_.HECTARE="hectare",t_.YARD="yard",t_.YEAR="year",t_.GIGA="giga",t_.JOULE="joule",t_.VOLT="volt",t_.HERTZ="hertz",t_.MILE="mile",t_.DEGREE="degree",t_.KILO="kilo",t_.BTU="btu",t_.TERA="tera",t_.FOOT="foot",t_.MEGA="mega",t_.KELVIN="kelvin",t_.CARBON="carbon",t_.DECIBEL_ATTENUATED="decibel_attenuated",t_.INCH="inch",t_.SQUARED="squared",t_.PERCENTAGE="percentage",t_.IN_HG="inch_mercury",t_.CENTI="centi",t_.GRAM="gram",t_.CUBED="cubed",t_.DAY="day",t_.RADIAN="radian",t_.OHM="ohm",t_.MINUTE="minute",t_.PART_PER_MILLION="ppm",t_.AMP="amp",t_.MASS_POUND="pound",t_.KNOT="knot",t_.METRE="metre",t_.LITRE="litre",t_.FLUID_OUNCE="fluid_ounce",t_.HOUR="hour",t_.ACRE="acre",t_.CELSIUS="celsius",t_.RPM="rpm",t_.PASCAL="pascal",t_.DECIBEL="decibel",t_.LUMEN="lumen",t_.WEEK="week",t_.FAHRENHEIT="fahrenheit",t_.WATT="watt",t_.GALLON="gallon",t_.LUX="lux",t_.MILLI="milli",t_.BAR="bar",t_.HECTO="hecto",t_.PEAK="peak",t_.SECOND="second",t_.MICRO="micro",t_.PER="per",t_.STONE="stone",eF||(eF={});class ty{static getAssetDescriptors(){return ty._assetTypeInfos.map(d=>d.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(d){if(d)return d.assetDescriptor?d:("string"!=typeof d&&(d=d.name),this._assetTypeInfos.find(m=>m.assetDescriptor.name===d))}static getAssetDescriptor(d){if(!d)return;if(d.assetDescriptor)return d.assetDescriptor;if("string"!=typeof d)return d;let m=this._assetTypeInfos.find(m=>m.assetDescriptor.name===d);return m?m.assetDescriptor:void 0}static getAttributeDescriptor(d,m){if(!d)return;let u=this.getAssetTypeInfo(m||"ThingAsset");if(u&&u.attributeDescriptors)return u.attributeDescriptors.find(m=>m.name===d)}static getValueDescriptor(d){let m;if(!d)return;if(d.endsWith("[]"))for(m=0;d.endsWith("[]");)d=d.substring(0,d.length-2),m++;let u=this._valueDescriptors.find(m=>m.name===d);return u&&m&&(u=Object.assign(Object.assign({},u),{arrayDimensions:m})),u}static resolveValueDescriptor(d,m){let u;return m&&("string"==typeof m&&(u=ty.getValueDescriptor(m)),u=m.jsonType?m:ty.getValueDescriptor(m.type)),!u&&d&&(u=ty.getValueDescriptor("JSON")),u}static resolveValueTypeFromValue(d){if(null!=d){if("number"==typeof d)return"number";if("string"==typeof d)return"text";if("boolean"==typeof d)return"boolean";if(Array.isArray(d)){let m=1,u=d.find(d=>null!=d);for(;Array.isArray(u);)u=u.find(d=>null!=d),m++;let f=this.resolveValueTypeFromValue(u);if(!f)return;for(;m>0;)f+="[]",m--;return f}if(d instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(d,m,u){let f,p;if(m&&"string"!=typeof m)f=m;else{let p=this.getAssetTypeInfo(d||"ThingAsset");if(!p)return[void 0,void 0];"string"==typeof m&&(f=this.getAttributeDescriptor(m,p)),!f&&u&&(f={type:u.type,name:u.name,meta:u.meta})}return f&&(p=this.getValueDescriptor(f.type)),[f,p]}static getMetaItemDescriptor(d){if(d)return this._metaItemDescriptors.find(m=>m.name===d)}static getAssetDescriptorColour(d,m){let u=this.getAssetDescriptor(d);return u&&u.colour?u.colour:m}static getAssetDescriptorIcon(d,m){let u=this.getAssetDescriptor(d);return u&&u.icon?u.icon:m}}ty._assetTypeInfos=[],ty._metaItemDescriptors=[],ty._valueDescriptors=[]},8789(__unused_rspack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ym:()=>OrAssetTreeSelectionEvent});var OrAssetTree_1,FilterElementType,lit__rspack_import_0=__webpack_require__(7364),_openremote_or_element__rspack_import_1=__webpack_require__(7286),lit_decorators_js__rspack_import_2=__webpack_require__(3026),_openremote_or_vaadin_components_or_vaadin_combo_box__rspack_import_3=__webpack_require__(9542),_openremote_or_vaadin_components_or_vaadin_menu_bar__rspack_import_4=__webpack_require__(9180),_openremote_or_vaadin_components_or_vaadin_confirm_dialog__rspack_import_5=__webpack_require__(3946),_openremote_or_icon__rspack_import_6=__webpack_require__(2005),_openremote_model__rspack_import_7=__webpack_require__(5144),_openremote_or_translate__rspack_import_8=__webpack_require__(7853),_style__rspack_import_9=__webpack_require__(322),_openremote_core__rspack_import_10=__webpack_require__(7478),qs__rspack_import_17=__webpack_require__(8183),qs__rspack_import_17_default=__webpack_require__.n(qs__rspack_import_17),_openremote_or_mwc_components_or_mwc_list__rspack_import_11=__webpack_require__(3638),_openremote_or_mwc_components_or_mwc_dialog__rspack_import_12=__webpack_require__(6669),_or_add_asset_dialog__rspack_import_13=__webpack_require__(7663),_openremote_or_mwc_components_or_mwc_snackbar__rspack_import_14=__webpack_require__(9566),lit_directives_when_js__rspack_import_16=__webpack_require__(8114),lodash_debounce__rspack_import_15=__webpack_require__(2051),lodash_debounce__rspack_import_15_default=__webpack_require__.n(lodash_debounce__rspack_import_15),__decorate=function(d,m,u,f){var p,h=arguments.length,b=h<3?m:null===f?f=Object.getOwnPropertyDescriptor(m,u):f;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(d,m,u,f);else for(var g=d.length-1;g>=0;g--)(p=d[g])&&(b=(h<3?p(b):h>3?p(m,u,b):p(m,u))||b);return h>3&&b&&Object.defineProperty(m,u,b),b},__awaiter=function(d,m,u,f){return new(u||(u=Promise))(function(p,h){function b(d){try{v(f.next(d))}catch(d){h(d)}}function g(d){try{v(f.throw(d))}catch(d){h(d)}}function v(d){var m;d.done?p(d.value):((m=d.value)instanceof u?m:new u(function(d){d(m)})).then(b,g)}v((f=f.apply(d,m||[])).next())})};class OrAssetTreeRequestSelectionEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestSelectionEvent.NAME="or-asset-tree-request-selection";class OrAssetTreeSelectionEvent extends CustomEvent{constructor(d){super(OrAssetTreeSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeSelectionEvent.NAME="or-asset-tree-selection";class OrAssetTreeChangeParentEvent extends CustomEvent{constructor(d,m){super(OrAssetTreeChangeParentEvent.NAME,{bubbles:!0,composed:!0,detail:{parentId:d,assetIds:m}})}}OrAssetTreeChangeParentEvent.NAME="or-asset-tree-change-parent";class OrAssetTreeToggleExpandEvent extends CustomEvent{constructor(d){super(OrAssetTreeToggleExpandEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeToggleExpandEvent.NAME="or-asset-tree-expand",function(d){d[d.SEARCH_FILTER=0]="SEARCH_FILTER",d[d.ASSET_TYPE=1]="ASSET_TYPE",d[d.ATTRIBUTE_NAME=2]="ATTRIBUTE_NAME",d[d.ATTRIBUTE_VALUE=3]="ATTRIBUTE_VALUE"}(FilterElementType||(FilterElementType={}));class OrAssetTreeRequestAddEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestAddEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestAddEvent.NAME="or-asset-tree-request-add";class OrAssetTreeAddEvent extends CustomEvent{constructor(d){super(OrAssetTreeAddEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeAddEvent.NAME="or-asset-tree-add";class OrAssetTreeRequestDeleteEvent extends CustomEvent{constructor(d){super(OrAssetTreeRequestDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:d}})}}OrAssetTreeRequestDeleteEvent.NAME="or-asset-tree-request-delete";class OrAssetTreeAssetEvent extends CustomEvent{constructor(d){super(OrAssetTreeAssetEvent.NAME,{bubbles:!0,composed:!0,detail:d})}}OrAssetTreeAssetEvent.NAME="or-asset-tree-asset-event";class OrAssetTreeFilter{constructor(d){this.asset=d,this.assetType=[],this.attribute=[],this.attributeValue=[]}}let OrAssetTree=OrAssetTree_1=class OrAssetTree extends(0,_openremote_core__rspack_import_10.B1)(_openremote_core__rspack_import_10.Ay)(_openremote_or_element__rspack_import_1.y){constructor(){super(...arguments),this.readonly=!1,this.disabled=!1,this.disableSubscribe=!1,this.showDeselectBtn=!0,this.showSortBtn=!0,this.showFilter=!0,this.showFilterIcon=!0,this.sortBy="name",this.expandAllNodes=!1,this.checkboxes=!1,this.queryLimit=100,this.paginationThreshold=1e3,this._loading=!1,this._connected=!1,this._selectedNodes=[],this._expandedNodes=[],this._filter=new OrAssetTreeFilter,this._filterSettingOpen=!1,this._assetTypes=[],this._uniqueAssetTypes=[],this._hasMoreParents=!1,this._incompleteParentIds=[],this._dragDropParentId=null,this._expandTimer=void 0,this._latestSelected=void 0,this.assetsChildren={}}static get styles(){return[_style__rspack_import_9.i]}get selectedNodes(){return this._selectedNodes?[...this._selectedNodes]:[]}set selectedNodes(d){this.selectedIds=d.map(d=>d.asset.id)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.requestUpdate()}refresh(){this._nodes=void 0}isAncestorSelected(d){if(!this.selectedIds||!d.parent)return!1;for(;d.parent;)if(d=d.parent,this.selectedIds.includes(d.asset.id))return!0;return!1}applyFilter(d,m=!1){(d&&"string"!=typeof d||(d=this.parseFromInputFilter(d)),_openremote_core__rspack_import_10.J0.DH(this._filter,d))?console.debug("Tried to apply filter to the asset tree, but it was the same.",d):(console.debug("Applying filter to the asset tree:",d),this._filter=d,m&&this.updateComplete.finally(()=>this._filterInput.value=this.formatFilter(d)))}mapDescriptors(d,m){let u=d.map(d=>({styleMap:{"--or-icon-fill":d.colour?"#"+d.colour:"unset"},icon:d.icon,text:_openremote_core__rspack_import_10.J0.F2(d),value:d.name,data:d})).sort(_openremote_core__rspack_import_10.J0.NM(d=>d.text));return m&&u.splice(0,0,m),u}_getSelectHeader(d,m=[],u=this._loading){var f,p;return(0,lit__rspack_import_0.qy)`
2
2
  <or-vaadin-combo-box
3
3
  id="attributeTypeFilter"
4
4
  ?disabled=${u}