!function(){"use strict";var r,n={},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var u=e[r]={id:r,loaded:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}t.m=n,r=[],t.O=function(n,e,o,u){if(!e){var i=1/0;for(l=0;l<r.length;l++){e=r[l][0],o=r[l][1],u=r[l][2];for(var f=!0,a=0;a<e.length;a++)(!1&u||i>=u)&&Object.keys(t.O).every(function(r){return t.O[r](e[a])})?e.splice(a--,1):(f=!1,u<i&&(i=u));if(f){r.splice(l--,1);var c=o();void 0!==c&&(n=c)}}return n}u=u||0;for(var l=r.length;l>0&&r[l-1][2]>u;l--)r[l]=r[l-1];r[l]=[e,o,u]},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,{a:n}),n},t.d=function(r,n){for(var e in n)t.o(n,e)&&!t.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:n[e]})},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},t.nmd=function(r){return r.paths=[],r.children||(r.children=[]),r},function(){var r={666:0};t.O.j=function(n){return 0===r[n]};var n=function(n,e){var o,u,i=e[0],f=e[1],a=e[2],c=0;for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(a)var l=a(t);for(n&&n(e);c<i.length;c++)t.o(r,u=i[c])&&r[u]&&r[u][0](),r[i[c]]=0;return t.O(l)},e=self.webpackChunkeureka=self.webpackChunkeureka||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}()}();(self.webpackChunkeureka=self.webpackChunkeureka||[]).push([[429],{3907:function(){(function(){"use strict";var e=window.Document.prototype.createElement,t=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,r=window.Document.prototype.prepend,o=window.Document.prototype.append,i=window.DocumentFragment.prototype.prepend,a=window.DocumentFragment.prototype.append,c=window.Node.prototype.cloneNode,s=window.Node.prototype.appendChild,l=window.Node.prototype.insertBefore,u=window.Node.prototype.removeChild,f=window.Node.prototype.replaceChild,p=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),h=window.Element.prototype.attachShadow,d=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),v=window.Element.prototype.getAttribute,m=window.Element.prototype.setAttribute,g=window.Element.prototype.removeAttribute,y=window.Element.prototype.getAttributeNS,_=window.Element.prototype.setAttributeNS,b=window.Element.prototype.removeAttributeNS,k=window.Element.prototype.insertAdjacentElement,E=window.Element.prototype.insertAdjacentHTML,w=window.Element.prototype.prepend,T=window.Element.prototype.append,C=window.Element.prototype.before,S=window.Element.prototype.after,O=window.Element.prototype.replaceWith,D=window.Element.prototype.remove,P=window.HTMLElement,j=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,N=window.HTMLElement.prototype.insertAdjacentHTML,M=new Set;function L(e){var t=M.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(e){return M.add(e)});var z=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function I(e){var t=e.isConnected;if(void 0!==t)return t;if(z(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function R(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function F(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function x(e,t,n){for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var o=r;t(o);var i=o.localName;if("link"===i&&"import"===o.getAttribute("rel")){if(r=o.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)x(r,t,n);r=F(e,o);continue}if("template"===i){r=F(e,o);continue}if(o=o.__CE_shadowRoot)for(o=o.firstChild;o;o=o.nextSibling)x(o,t,n)}r=r.firstChild?r.firstChild:F(e,r)}}function A(){var e=!(null==ae||!ae.noDocumentConstructionObserver),t=!(null==ae||!ae.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=t,this.I=!e}function H(e,t,n,r){var o=window.ShadyDOM;if(e.shadyDomFastWalk&&o&&o.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=o.nativeMethods.querySelectorAll.call(t,"*"),t=0;t<e.length;t++)n(e[t])}else x(t,n,r)}function B(e,t){e.j&&H(e,t,function(t){return W(e,t)})}function W(e,t){if(e.j&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.m.length;n++)e.m[n](t);for(n=0;n<e.g.length;n++)e.g[n](t)}}function G(e,t){var n=[];for(H(e,t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):V(e,r)}}function q(e,t){var n=[];for(H(e,t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function U(e,t,n){var r=(n=void 0===n?{}:n).J,o=n.upgrade||function(t){return V(e,t)},i=[];for(H(e,t,function(t){if(e.j&&W(e,t),"link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set;r&&(r.forEach(function(e){return i.add(e)}),i.delete(n)),U(e,n,{J:i,upgrade:o})}})}else i.push(t)},r),t=0;t<i.length;t++)o(i[t])}function V(e,t){try{var n=t.ownerDocument,r=n.__CE_registry,o=r&&(n.defaultView||n.__CE_isImportDocument)?re(r,t.localName):void 0;if(o&&void 0===t.__CE_state){o.constructionStack.push(t);try{try{if(new o.constructorFunction!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(s){throw t.__CE_state=2,s}if(t.__CE_state=1,t.__CE_definition=o,o.attributeChangedCallback&&t.hasAttributes()){var i=o.observedAttributes;for(o=0;o<i.length;o++){var a=i[o],c=t.getAttribute(a);null!==c&&e.attributeChangedCallback(t,a,null,c,null)}}I(t)&&e.connectedCallback(t)}}catch(s){Y(s)}}function X(n,r,o,i){var a=r.__CE_registry;if(a&&(null===i||"http://www.w3.org/1999/xhtml"===i)&&(a=re(a,o)))try{var c=new a.constructorFunction;if(void 0===c.__CE_state||void 0===c.__CE_definition)throw Error("Failed to construct '"+o+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==c.namespaceURI)throw Error("Failed to construct '"+o+"': The constructed element's namespace must be the HTML namespace.");if(c.hasAttributes())throw Error("Failed to construct '"+o+"': The constructed element must not have any attributes.");if(null!==c.firstChild)throw Error("Failed to construct '"+o+"': The constructed element must not have any children.");if(null!==c.parentNode)throw Error("Failed to construct '"+o+"': The constructed element must not have a parent node.");if(c.ownerDocument!==r)throw Error("Failed to construct '"+o+"': The constructed element's owner document is incorrect.");if(c.localName!==o)throw Error("Failed to construct '"+o+"': The constructed element's local name is incorrect.");return c}catch(s){return Y(s),r=null===i?e.call(r,o):t.call(r,i,o),Object.setPrototypeOf(r,HTMLUnknownElement.prototype),r.__CE_state=2,r.__CE_definition=void 0,W(n,r),r}return W(n,r=null===i?e.call(r,o):t.call(r,i,o)),r}function Y(e){var t=e.message,n=e.sourceURL||e.fileName||"",r=e.line||e.lineNumber||0,o=void 0;void 0===ErrorEvent.prototype.initErrorEvent?o=new ErrorEvent("error",{cancelable:!0,message:t,filename:n,lineno:r,colno:e.column||e.columnNumber||0,error:e}):((o=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,t,n,r),o.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===o.error&&Object.defineProperty(o,"error",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(o),o.defaultPrevented||console.error(e)}function J(){var e=this;this.g=void 0,this.F=new Promise(function(t){e.l=t})}function K(e){var t=document;this.l=void 0,this.h=e,this.g=t,U(this.h,this.g),"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function $(e){e.l&&e.l.disconnect()}function Q(e){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(e){return e()},this.i=!1,this.v=[],this.h=e,this.D=e.I?new K(e):void 0}function ee(e,t){if(!L(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(re(e,t))throw Error("A custom element with name '"+t+"' has already been defined.");if(e.A)throw Error("A custom element is already being defined.")}function te(e,t,n){var r;e.A=!0;try{var o=n.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=function(e){var t=o[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},a=i("connectedCallback"),c=i("disconnectedCallback"),s=i("adoptedCallback"),l=(r=i("attributeChangedCallback"))&&n.observedAttributes||[]}catch(u){throw u}finally{e.A=!1}return e.u.set(t,n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:c,adoptedCallback:s,attributeChangedCallback:r,observedAttributes:l,constructionStack:[]}),e.C.set(n.constructorFunction,n),n}function ne(e){if(!1!==e.i){e.i=!1;for(var t=[],n=e.v,r=new Map,o=0;o<n.length;o++)r.set(n[o],[]);for(U(e.h,document,{upgrade:function(n){if(void 0===n.__CE_state){var o=n.localName,i=r.get(o);i?i.push(n):e.u.has(o)&&t.push(n)}}}),o=0;o<t.length;o++)V(e.h,t[o]);for(o=0;o<n.length;o++){for(var i=n[o],a=r.get(i),c=0;c<a.length;c++)V(e.h,a[c]);(i=e.B.get(i))&&i.resolve(void 0)}n.length=0}}function re(e,t){var n=e.u.get(t);if(n)return n;if(n=e.s.get(t)){e.s.delete(t);try{return te(e,t,n())}catch(r){Y(r)}}}function oe(e,t,n){function r(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var c=r[a];if(c instanceof Element&&I(c)&&i.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)o.push(c);else o.push(c)}for(t.apply(this,r),r=0;r<i.length;r++)q(e,i[r]);if(I(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&G(e,i)}}void 0!==n.prepend&&(t.prepend=r(n.prepend)),void 0!==n.append&&(t.append=r(n.append))}A.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(n){Y(n)}},A.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(n){Y(n)}},A.prototype.attributeChangedCallback=function(e,t,n,r,o){var i=e.__CE_definition;if(i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(t))try{i.attributeChangedCallback.call(e,t,n,r,o)}catch(a){Y(a)}},J.prototype.resolve=function(e){if(this.g)throw Error("Already resolved.");this.g=e,this.l(e)},K.prototype.G=function(e){var t=this.g.readyState;for("interactive"!==t&&"complete"!==t||$(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)U(this.h,n[r])},Q.prototype.H=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");ee(this,e),this.s.set(e,t),this.v.push(e),this.i||(this.i=!0,this.o(function(){return ne(n)}))},Q.prototype.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");ee(this,e),te(this,e,t),this.v.push(e),this.i||(this.i=!0,this.o(function(){return ne(n)}))},Q.prototype.upgrade=function(e){U(this.h,e)},Q.prototype.get=function(e){if(e=re(this,e))return e.constructorFunction},Q.prototype.whenDefined=function(e){if(!L(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.B.get(e);if(t)return t.F;t=new J,this.B.set(e,t);var n=this.u.has(e)||this.s.has(e);return e=-1===this.v.indexOf(e),n&&e&&t.resolve(void 0),t.F},Q.prototype.polyfillWrapFlushCallback=function(e){this.D&&$(this.D);var t=this.o;this.o=function(n){return e(function(){return t(n)})}},window.CustomElementRegistry=Q,Q.prototype.define=Q.prototype.define,Q.prototype.upgrade=Q.prototype.upgrade,Q.prototype.get=Q.prototype.get,Q.prototype.whenDefined=Q.prototype.whenDefined,Q.prototype.polyfillDefineLazy=Q.prototype.H,Q.prototype.polyfillWrapFlushCallback=Q.prototype.polyfillWrapFlushCallback;var ie={},ae=window.customElements;function ce(){var M=new A;(function(t){function n(){var n=this.constructor,r=document.__CE_registry.C.get(n);if(!r)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var o=r.constructionStack;if(0===o.length)return o=e.call(document,r.localName),Object.setPrototypeOf(o,n.prototype),o.__CE_state=1,o.__CE_definition=r,W(t,o),o;var i=o.length-1,a=o[i];if(a===ie)throw Error("Failed to construct '"+r.localName+"': This element was already constructed.");return o[i]=ie,Object.setPrototypeOf(a,n.prototype),W(t,a),a}n.prototype=P.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n}),window.HTMLElement=n})(M),function(e){Document.prototype.createElement=function(t){return X(e,this,t,null)},Document.prototype.importNode=function(t,r){return t=n.call(this,t,!!r),this.__CE_registry?U(e,t):B(e,t),t},Document.prototype.createElementNS=function(t,n){return X(e,this,n,t)},oe(e,Document.prototype,{prepend:r,append:o})}(M),oe(M,DocumentFragment.prototype,{prepend:i,append:a}),function(e){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&I(this)){r=Array(i);for(var a=0;a<i;a++)r[a]=o[a]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)q(e,r[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var r=R(t);if(t=l.call(this,t,n),I(this))for(n=0;n<r.length;n++)G(e,r[n]);return t}return r=t instanceof Element&&I(t),n=l.call(this,t,n),r&&q(e,t),I(this)&&G(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=R(t);if(t=s.call(this,t),I(this))for(var r=0;r<n.length;r++)G(e,n[r]);return t}return n=t instanceof Element&&I(t),r=s.call(this,t),n&&q(e,t),I(this)&&G(e,t),r},Node.prototype.cloneNode=function(t){return t=c.call(this,!!t),this.ownerDocument.__CE_registry?U(e,t):B(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&I(t),r=u.call(this,t);return n&&q(e,t),r},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var r=R(t);if(t=f.call(this,t,n),I(this))for(q(e,n),n=0;n<r.length;n++)G(e,r[n]);return t}r=t instanceof Element&&I(t);var o=f.call(this,t,n),i=I(this);return i&&q(e,n),r&&q(e,t),i&&G(e,t),o},p&&p.get?t(Node.prototype,p):function(e,t){e.j=!0,e.m.push(t)}(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)u.call(this,this.firstChild);null!=e&&""!==e&&s.call(this,document.createTextNode(e))}})})}(M),function(e){function n(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,o=void 0;if(I(this)&&(o=[],H(e,this,function(e){e!==r&&o.push(e)})),n.set.call(this,t),o)for(var i=0;i<o.length;i++){var a=o[i];1===a.__CE_state&&e.disconnectedCallback(a)}return this.ownerDocument.__CE_registry?U(e,this):B(e,this),t}})}function r(t,n){t.insertAdjacentElement=function(t,r){var o=I(r);return t=n.call(this,t,r),o&&q(e,r),I(t)&&G(e,r),t}}function o(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)U(e,r[n])}t.insertAdjacentHTML=function(e,t){if("beforebegin"===(e=e.toLowerCase())){var o=this.previousSibling;n.call(this,e,t),r(o||this.parentNode.firstChild,this)}else if("afterbegin"===e)o=this.firstChild,n.call(this,e,t),r(this.firstChild,o);else if("beforeend"===e)o=this.lastChild,n.call(this,e,t),r(o||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,e,t),r(this.nextSibling,o)}}}h&&(Element.prototype.attachShadow=function(t){if(t=h.call(this,t),e.j&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.m.length;n++)e.m[n](t)}return this.__CE_shadowRoot=t}),d&&d.get?n(Element.prototype,d):j&&j.get?n(HTMLElement.prototype,j):function(e,t){e.j=!0,e.g.push(t)}(e,function(e){n(e,{enumerable:!0,configurable:!0,get:function(){return c.call(this,!0).innerHTML},set:function(e){var n="template"===this.localName,r=n?this.content:this,o=t.call(document,this.namespaceURI,this.localName);for(o.innerHTML=e;0<r.childNodes.length;)u.call(r,r.childNodes[0]);for(e=n?o.content:o;0<e.childNodes.length;)s.call(r,e.childNodes[0])}})}),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return m.call(this,t,n);var r=v.call(this,t);m.call(this,t,n),n=v.call(this,t),e.attributeChangedCallback(this,t,r,n,null)},Element.prototype.setAttributeNS=function(t,n,r){if(1!==this.__CE_state)return _.call(this,t,n,r);var o=y.call(this,t,n);_.call(this,t,n,r),r=y.call(this,t,n),e.attributeChangedCallback(this,n,o,r,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return g.call(this,t);var n=v.call(this,t);g.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return b.call(this,t,n);var r=y.call(this,t,n);b.call(this,t,n);var o=y.call(this,t,n);r!==o&&e.attributeChangedCallback(this,n,r,o,t)},Z?r(HTMLElement.prototype,Z):k&&r(Element.prototype,k),N?o(HTMLElement.prototype,N):E&&o(Element.prototype,E),oe(e,Element.prototype,{prepend:w,append:T}),function(e){function t(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var c=r[a];if(c instanceof Element&&I(c)&&i.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)o.push(c);else o.push(c)}for(t.apply(this,r),r=0;r<i.length;r++)q(e,i[r]);if(I(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&G(e,i)}}var n=Element.prototype;void 0!==C&&(n.before=t(C)),void 0!==S&&(n.after=t(S)),void 0!==O&&(n.replaceWith=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var a=n[i];if(a instanceof Element&&I(a)&&o.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(i=I(this),O.apply(this,n),n=0;n<o.length;n++)q(e,o[n]);if(i)for(q(e,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&G(e,o)}),void 0!==D&&(n.remove=function(){var t=I(this);D.call(this),t&&q(e,this)})}(e)}(M),M=new Q(M),document.__CE_registry=M,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:M})}ae&&!ae.forcePolyfill&&"function"==typeof ae.define&&"function"==typeof ae.get||ce(),window.__CE_installPolyfill=ce}).call(self)},6210:function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()},9140:function(e,t,n){"use strict";var r,o;void 0!==(o="function"==typeof(r=function(){!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var c=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return Z.zone},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return N},enumerable:!1,configurable:!0}),t.__load_patch=function(o,i,c){if(void 0===c&&(c=!1),P.hasOwnProperty(o)){if(!c&&a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var s="Zone:"+o;n(s),P[o]=i(e,t,j),r(s,s)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){Z={parent:Z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{Z=Z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),Z={parent:Z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{Z=Z.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||_).name+"; Execution: "+this.name+")");if(e.state!==b||e.type!==D&&e.type!==O){var r=e.state!=w;r&&e._transitionTo(w,E),e.runCount++;var o=N;N=e,Z={parent:Z,zone:this};try{e.type==O&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==b&&e.state!==C&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(E,w):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(b,w,b))),Z=Z.parent,N=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(k,b);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(C,k,b),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(E,k),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new f(S,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new f(O,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new f(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||_).name+"; Execution: "+this.name+")");e._transitionTo(T,E,w);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(C,T),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(b,T),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t}();c.__symbol__=i;var s,l={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},u=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new c(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");g(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),f=function(){function t(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var s=this;this.invoke=n===D&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,s,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),M++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==M&&y(),M--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(b,k)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==b&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),p=i("setTimeout"),h=i("Promise"),d=i("then"),v=[],m=!1;function g(t){if(0===M&&0===v.length)if(s||e[h]&&(s=e[h].resolve(0)),s){var n=s[d];n||(n=s.then),n.call(s,y)}else e[p](y,0);t&&v.push(t)}function y(){if(!m){for(m=!0;v.length;){var e=v;v=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){j.onUnhandledError(r)}}}j.microtaskDrainDone(),m=!1}}var _={name:"NO ZONE"},b="notScheduled",k="scheduling",E="scheduled",w="running",T="canceling",C="unknown",S="microTask",O="macroTask",D="eventTask",P={},j={symbol:i,currentZoneFrame:function(){return Z},onUnhandledError:L,microtaskDrainDone:L,scheduleMicroTask:g,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:L,patchMethod:function(){return L},bindArguments:function(){return[]},patchThen:function(){return L},patchMacroTask:function(){return L},patchEventPrototype:function(){return L},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return L},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return L},wrapWithCurrentZone:function(){return L},filterProperties:function(){return[]},attachOriginToPatched:function(){return L},_redefineProperty:function(){return L},patchCallbacks:function(){return L}},Z={parent:null,zone:new c(null,null)},N=null,M=0;function L(){}r("Zone","Zone"),e.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",c=Zone.__symbol__(i),s=Zone.__symbol__(a),l="true",u="false",f=Zone.__symbol__("");function p(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var d=Zone.__symbol__,v="undefined"!=typeof window,m=v?window:void 0,g=v&&m||"object"==typeof self&&self||global,y=[null];function _(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in g)&&void 0!==g.process&&"[object process]"==={}.toString.call(g.process),w=!E&&!k&&!(!v||!m.HTMLElement),T=void 0!==g.process&&"[object process]"==={}.toString.call(g.process)&&!k&&!(!v||!m.HTMLElement),C={},S=function(e){if(e=e||g.event){var t=C[e.type];t||(t=C[e.type]=d("ON_PROPERTY"+e.type));var n,r=this||e.target||g,o=r[t];return w&&r===m&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(n=o&&o.apply(this,arguments))&&!n&&e.preventDefault(),n}};function O(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=d("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,s=i.set,l=r.substr(2),u=C[l];u||(u=C[l]=d("ON_PROPERTY"+l)),i.set=function(e){var t=this;!t&&n===g&&(t=g),t&&(t[u]&&t.removeEventListener(l,S),s&&s.apply(t,y),"function"==typeof e?(t[u]=e,t.addEventListener(l,S,!1)):t[u]=null)},i.get=function(){var e=this;if(!e&&n===g&&(e=g),!e)return null;var t=e[u];if(t)return t;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,i),n[a]=!0}}}function D(e,t,n){if(t)for(var r=0;r<t.length;r++)O(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)O(e,o[a],n)}}var P=d("originalInstance");function j(e){var n=g[e];if(n){g[d(e)]=n,g[e]=function(){var t=_(arguments,e);switch(t.length){case 0:this[P]=new n;break;case 1:this[P]=new n(t[0]);break;case 2:this[P]=new n(t[0],t[1]);break;case 3:this[P]=new n(t[0],t[1],t[2]);break;case 4:this[P]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},M(g[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?g[e].prototype[n]=function(){return this[P][n].apply(this[P],arguments)}:t(g[e].prototype,n,{set:function(t){"function"==typeof t?(this[P][n]=p(t,e+"."+n),M(this[P][n],t)):this[P][n]=t},get:function(){return this[P][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(g[e][r]=n[r])}}function Z(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=d(r),c=null;if(i&&(!(c=i[a])||!i.hasOwnProperty(a))&&(c=i[a]=i[r],b(i&&e(i,r)))){var s=o(c,a,r);i[r]=function(){return s(this,arguments)},M(i[r],c)}return c}function N(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=Z(e,t,function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?h(i.name,r[i.cbIdx],i,o):e.apply(t,r)}})}function M(e,t){e[d("OriginalDelegate")]=t}var L=!1,z=!1;function I(){if(L)return z;L=!0;try{var e=m.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(z=!0)}catch(t){}return z}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty;var i=n.symbol,a=[],c=!0===e[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],s=i("Promise"),l=i("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e.throwOriginal?e.rejection:e})}catch(r){!function(e){n.onUnhandledError(e);try{var o=t[u];"function"==typeof o&&o.call(this,e)}catch(r){}}(r)}};a.length;)e()};var u=i("unhandledPromiseRejectionHandler");function f(e){return e&&e.then}function p(e){return e}function h(e){return D.reject(e)}var d=i("state"),v=i("value"),m=i("finally"),g=i("parentPromiseValue"),y=i("parentPromiseState"),_=null,b=!1;function k(e,t){return function(n){try{w(e,t,n)}catch(r){w(e,!1,r)}}}var E=i("currentTaskTrace");function w(e,r,i){var s=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===i)throw new TypeError("Promise resolved with itself");if(e[d]===_){var l=null;try{("object"==typeof i||"function"==typeof i)&&(l=i&&i.then)}catch(T){return s(function(){w(e,!1,T)})(),e}if(r!==b&&i instanceof D&&i.hasOwnProperty(d)&&i.hasOwnProperty(v)&&i[d]!==_)C(i),w(e,i[d],i[v]);else if(r!==b&&"function"==typeof l)try{l.call(i,s(k(e,r)),s(k(e,!1)))}catch(T){s(function(){w(e,!1,T)})()}else{e[d]=r;var u=e[v];if(e[v]=i,e[m]===m&&!0===r&&(e[d]=e[y],e[v]=e[g]),r===b&&i instanceof Error){var f=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;f&&o(i,E,{configurable:!0,enumerable:!1,writable:!0,value:f})}for(var p=0;p<u.length;)S(e,u[p++],u[p++],u[p++],u[p++]);if(0==u.length&&r==b){e[d]=0;var h=i;try{throw new Error("Uncaught (in promise): "+function(e){return e&&e.toString===Object.prototype.toString?(e.constructor&&e.constructor.name||"")+": "+JSON.stringify(e):e?e.toString():Object.prototype.toString.call(e)}(i)+(i&&i.stack?"\n"+i.stack:""))}catch(T){h=T}c&&(h.throwOriginal=!0),h.rejection=i,h.promise=e,h.zone=t.current,h.task=t.currentTask,a.push(h),n.scheduleMicroTask()}}}return e}var T=i("rejectionHandledHandler");function C(e){if(0===e[d]){try{var n=t[T];n&&"function"==typeof n&&n.call(this,{rejection:e[v],promise:e})}catch(o){}e[d]=b;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function S(e,t,n,r,o){C(e);var i=e[d],a=i?"function"==typeof r?r:p:"function"==typeof o?o:h;t.scheduleMicroTask("Promise.then",function(){try{var r=e[v],o=!!n&&m===n[m];o&&(n[g]=r,n[y]=i);var c=t.run(a,void 0,o&&a!==h&&a!==p?[]:[r]);w(n,!0,c)}catch(s){w(n,!1,s)}},n)}var O=function(){},D=function(){function e(t){var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[d]=_,n[v]=[];try{t&&t(k(n,!0),k(n,b))}catch(r){w(n,!1,r)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return w(new this(null),!0,e)},e.reject=function(e){return w(new this(null),b,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){t(e)}function i(e){n(e)}for(var a=0,c=e;a<c.length;a++){var s=c[a];f(s)||(s=this.resolve(s)),s.then(o,i)}return r},e.all=function(t){return e.allWithCallback(t)},e.allSettled=function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})},e.allWithCallback=function(e,t){for(var n,r,o=new this(function(e,t){n=e,r=t}),i=2,a=0,c=[],s=function(e){f(e)||(e=l.resolve(e));var o=a;try{e.then(function(e){c[o]=t?t.thenCallback(e):e,0==--i&&n(c)},function(e){t?(c[o]=t.errorCallback(e),0==--i&&n(c)):r(e)})}catch(s){r(s)}i++,a++},l=this,u=0,p=e;u<p.length;u++)s(p[u]);return 0==(i-=2)&&n(c),o},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.then=function(n,r){var o=this.constructor[Symbol.species];(!o||"function"!=typeof o)&&(o=this.constructor||e);var i=new o(O),a=t.current;return this[d]==_?this[v].push(a,i,n,r):S(this,a,i,n,r),i},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(n){var r=this.constructor[Symbol.species];(!r||"function"!=typeof r)&&(r=e);var o=new r(O);o[m]=m;var i=t.current;return this[d]==_?this[v].push(i,o,n,n):S(this,i,o,n,n),o},e}();D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;var P=e[s]=e.Promise;e.Promise=D;var j=i("thenPatched");function N(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[l]=o,e.prototype.then=function(e,t){var n=this;return new D(function(e,t){o.call(n,e,t)}).then(e,t)},e[j]=!0}}return n.patchThen=N,P&&(N(P),Z(e,"fetch",function(e){return function(e){return function(t,n){var r=e.apply(t,n);if(r instanceof D)return r;var o=r.constructor;return o[j]||N(o),r}}(e)})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D}),Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});var R=!1;if("undefined"!=typeof window)try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",F,F),window.removeEventListener("test",F,F)}catch(ee){R=!1}var x={useG:!0},A={},H={},B=new RegExp("^"+f+"(\\w+)(true|false)$"),W=d("propagationStopped");function G(e,t){var n=(t?t(e):e)+u,r=(t?t(e):e)+l,o=f+n,i=f+r;A[e]={},A[e][u]=o,A[e][l]=i}function q(e,t,r){var o=r&&r.add||i,c=r&&r.rm||a,s=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=d(o),v="."+o+":",m="prependListener",g=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[c].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},y=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[A[t.type][u]];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[W]);i++)g(o[i],n,t)}},_=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[A[t.type][l]];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[W]);i++)g(o[i],n,t)}};function b(t,r){if(!t)return!1;var i=!0;r&&void 0!==r.useG&&(i=r.useG);var a=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var b=!1;r&&void 0!==r.rt&&(b=r.rt);for(var k=t;k&&!k.hasOwnProperty(o);)k=n(k);if(!k&&t[o]&&(k=t),!k||k[h])return!1;var w,T=r&&r.eventNameToString,C={},S=k[h]=k[o],O=k[d(c)]=k[c],D=k[d(s)]=k[s],P=k[d(p)]=k[p];function j(e,t){return!R&&"object"==typeof e&&e?!!e.capture:R&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}r&&r.prepend&&(w=k[d(r.prepend)]=k[r.prepend]);var Z=i?function(e){if(!C.isExisting)return S.call(C.target,C.eventName,C.capture?_:y,C.options)}:function(e){return S.call(C.target,C.eventName,e.invoke,C.options)},N=i?function(e){if(!e.isRemoved){var t=A[e.eventName],n=void 0;t&&(n=t[e.capture?l:u]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return O.call(e.target,e.eventName,e.capture?_:y,e.options)}:function(e){return O.call(e.target,e.eventName,e.invoke,e.options)},L=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},z=Zone[d("UNPATCHED_EVENTS")],I=e[d("PASSIVE_EVENTS")],F=function(t,n,o,c,s,f){return void 0===s&&(s=!1),void 0===f&&(f=!1),function(){var p=this||e,h=arguments[0];r&&r.transferEventName&&(h=r.transferEventName(h));var d=arguments[1];if(!d)return t.apply(this,arguments);if(E&&"uncaughtException"===h)return t.apply(this,arguments);var v=!1;if("function"!=typeof d){if(!d.handleEvent)return t.apply(this,arguments);v=!0}if(!a||a(t,d,p,arguments)){var m=R&&!!I&&-1!==I.indexOf(h),y=j(arguments[2],m);if(z)for(var _=0;_<z.length;_++)if(h===z[_])return m?t.call(p,h,d,y):t.apply(this,arguments);var b=!!y&&("boolean"==typeof y||y.capture),k=!(!y||"object"!=typeof y)&&y.once,w=Zone.current,S=A[h];S||(G(h,T),S=A[h]);var O=S[b?l:u],D=p[O],P=!1;if(D){if(P=!0,g)for(_=0;_<D.length;_++)if(L(D[_],d))return}else D=p[O]=[];var Z,N=p.constructor.name,M=H[N];M&&(Z=M[h]),Z||(Z=N+n+(T?T(h):h)),C.options=y,k&&(C.options.once=!1),C.target=p,C.capture=b,C.eventName=h,C.isExisting=P;var F=i?x:void 0;F&&(F.taskData=C);var B=w.scheduleEventTask(Z,d,F,o,c);if(C.target=null,F&&(F.taskData=null),k&&(y.once=!0),!R&&"boolean"==typeof B.options||(B.options=y),B.target=p,B.capture=b,B.eventName=h,v&&(B.originalDelegate=d),f?D.unshift(B):D.push(B),s)return p}}};return k[o]=F(S,v,Z,N,b),w&&(k[m]=F(w,".prependListener:",function(e){return w.call(C.target,C.eventName,e.invoke,C.options)},N,b,!0)),k[c]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),c=arguments[1];if(!c)return O.apply(this,arguments);if(!a||a(O,c,t,arguments)){var s,p=A[n];p&&(s=p[i?l:u]);var h=s&&t[s];if(h)for(var d=0;d<h.length;d++){var v=h[d];if(L(v,c))return h.splice(d,1),v.isRemoved=!0,0===h.length&&(v.allRemoved=!0,t[s]=null,"string"==typeof n)&&(t[f+"ON_PROPERTY"+n]=null),v.zone.cancelTask(v),b?t:void 0}return O.apply(this,arguments)}},k[s]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=U(t,T?T(n):n),a=0;a<i.length;a++){var c=i[a];o.push(c.originalDelegate?c.originalDelegate:c.callback)}return o},k[p]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=A[n];if(o){var i=t[o[u]],a=t[o[l]];if(i)for(var s=i.slice(),f=0;f<s.length;f++)this[c].call(this,n,(h=s[f]).originalDelegate?h.originalDelegate:h.callback,h.options);if(a)for(s=a.slice(),f=0;f<s.length;f++){var h;this[c].call(this,n,(h=s[f]).originalDelegate?h.originalDelegate:h.callback,h.options)}}}else{var d=Object.keys(t);for(f=0;f<d.length;f++){var v=B.exec(d[f]),m=v&&v[1];m&&"removeListener"!==m&&this[p].call(this,m)}this[p].call(this,"removeListener")}if(b)return this},M(k[o],S),M(k[c],O),P&&M(k[p],P),D&&M(k[s],D),!0}for(var k=[],w=0;w<t.length;w++)k[w]=b(t[w],r);return k}function U(e,t){if(!t){var n=[];for(var r in e){var o=B.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}var s=A[t];s||(G(t),s=A[t]);var f=e[s[u]],p=e[s[l]];return f?p?f.concat(p):f.slice():p?p.slice():[]}function V(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[W]=!0,e&&e.apply(t,n)}})}function X(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,s){return c&&c.prototype&&o.forEach(function(t){var o=n+"."+r+"::"+t,i=c.prototype;if(i.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(i,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,o),e._redefineProperty(c.prototype,t,a)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}),a.call(t,i,c,s)},e.attachOriginToPatched(t[r],a)}}var Y,J,K,$,Q,ee,te,ne=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],re=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],oe=["load"],ie=["blur","error","focus","load","resize","scroll","messageerror"],ae=["bounce","finish","start"],ce=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],se=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],le=["close","error","open","message"],ue=["error","message"],fe=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],ne,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function pe(e,t,n){if(!n||0===n.length)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter(function(e){return-1===o.indexOf(e)})}function he(e,t,n,r){e&&D(e,pe(e,t,n),r)}function de(e,t){if((!E||T)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(w){var i=window,a=function(){try{var e=m.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];he(i,fe.concat(["messageerror"]),o&&o.concat(a),n(i)),he(Document.prototype,fe,o),void 0!==i.SVGElement&&he(i.SVGElement.prototype,fe,o),he(Element.prototype,fe,o),he(HTMLElement.prototype,fe,o),he(HTMLMediaElement.prototype,re,o),he(HTMLFrameSetElement.prototype,ne.concat(ie),o),he(HTMLBodyElement.prototype,ne.concat(ie),o),he(HTMLFrameElement.prototype,oe,o),he(HTMLIFrameElement.prototype,oe,o);var c=i.HTMLMarqueeElement;c&&he(c.prototype,ae,o);var s=i.Worker;s&&he(s.prototype,ue,o)}var l=t.XMLHttpRequest;l&&he(l.prototype,ce,o);var u=t.XMLHttpRequestEventTarget;u&&he(u&&u.prototype,ce,o),"undefined"!=typeof IDBIndex&&(he(IDBIndex.prototype,se,o),he(IDBRequest.prototype,se,o),he(IDBOpenDBRequest.prototype,se,o),he(IDBDatabase.prototype,se,o),he(IDBTransaction.prototype,se,o),he(IDBCursor.prototype,se,o)),r&&he(WebSocket.prototype,le,o)}}function ve(e,t,n){var r=n.configurable;return ye(e,t,n=ge(e,t,n),r)}function me(e,t){return e&&e[Q]&&e[Q][t]}function ge(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(!e[Q]&&!Object.isFrozen(e)&&J(e,Q,{writable:!0,value:{}}),e[Q]&&(e[Q][t]=!0)),n}function ye(e,t,n,r){try{return J(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return J(e,t,n)}catch(c){var o=!1;if(("createdCallback"===t||"attachedCallback"===t||"detachedCallback"===t||"attributeChangedCallback"===t)&&(o=!0),!o)throw c;var i=null;try{i=JSON.stringify(n)}catch(s){i=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+i+"' on object '"+e+"' and got error, giving up: "+c)}}}function _e(e,t){var n=e.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(e,t){var n=e.getGlobalObjects();if((n.isBrowser||n.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var i=t.XMLHttpRequest;if(!i)return!1;var a="onreadystatechange",c=i.prototype,s=e.ObjectGetOwnPropertyDescriptor(c,a);if(s)return e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(u=new i).onreadystatechange,e.ObjectDefineProperty(c,a,s||{}),o;var l=e.symbol("fake");e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return this[l]},set:function(e){this[l]=e}});var u,f=function(){};return(u=new i).onreadystatechange=f,o=u[l]===f,u.onreadystatechange=null,o}(e,t)){var r="undefined"!=typeof WebSocket;(function(e){for(var t=e.getGlobalObjects().eventNames,n=e.symbol("unbound"),r=function(r){var o=t[r],i="on"+o;self.addEventListener(o,function(t){var r,o,a=t.target;for(o=a?a.constructor.name+"."+i:"unknown."+i;a;)a[i]&&!a[i][n]&&((r=e.wrapWithCurrentZone(a[i],o))[n]=a[i],a[i]=r),a=a.parentElement},!0)},o=0;o<t.length;o++)r(o)})(e),e.patchClass("XMLHttpRequest"),r&&function(e,t){var n=e.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,i=t.WebSocket;t.EventTarget||e.patchEventTarget(t,[i.prototype]),t.WebSocket=function(t,n){var a,c,s=arguments.length>1?new i(t,n):new i(t),l=e.ObjectGetOwnPropertyDescriptor(s,"onmessage");return l&&!1===l.configurable?(a=e.ObjectCreate(s),c=s,[r,o,"send","close"].forEach(function(t){a[t]=function(){var n=e.ArraySlice.call(arguments);if(t===r||t===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);s[c]=a[c]}}return s[t].apply(s,n)}})):a=s,e.patchOnProperties(a,["close","error","message","open"],c),a};var a=t.WebSocket;for(var c in i)a[c]=i[c]}(e,t),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(n,c,s){s.patchOnProperties=D,s.patchMethod=Z,s.bindArguments=_,s.patchMacroTask=N;var h=c.__symbol__("BLACK_LISTED_EVENTS"),d=c.__symbol__("UNPATCHED_EVENTS");n[d]&&(n[h]=n[d]),n[h]&&(c[h]=c[d]=n[h]),s.patchEventPrototype=V,s.patchEventTarget=q,s.isIEOrEdge=I,s.ObjectDefineProperty=t,s.ObjectGetOwnPropertyDescriptor=e,s.ObjectCreate=r,s.ArraySlice=o,s.patchClass=j,s.wrapWithCurrentZone=p,s.filterProperties=pe,s.attachOriginToPatched=M,s._redefineProperty=Object.defineProperty,s.patchCallbacks=X,s.getGlobalObjects=function(){return{globalSources:H,zoneSymbolEventNames:A,eventNames:fe,isBrowser:w,isMix:T,isNode:E,TRUE_STR:l,FALSE_STR:u,ZONE_SYMBOL_PREFIX:f,ADD_EVENT_LISTENER_STR:i,REMOVE_EVENT_LISTENER_STR:a}}}),(ee="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(te="legacyPatch",(ee.__Zone_symbol_prefix||"__zone_symbol__")+te)]=function(){var e=ee.Zone;e.__load_patch("defineProperty",function(e,t,n){n._redefineProperty=ve,Y=Zone.__symbol__,J=Object[Y("defineProperty")]=Object.defineProperty,K=Object[Y("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,$=Object.create,Q=Y("unconfigurables"),Object.defineProperty=function(e,t,n){if(me(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=ge(e,t,n)),ye(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&!Object.isFrozen(t)&&Object.keys(t).forEach(function(n){t[n]=ge(e,n,t[n])}),$(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=K(e,t);return n&&me(e,t)&&(n.configurable=!1),n}}),e.__load_patch("registerElement",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in e.document&&t.patchCallbacks(t,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,n)}),e.__load_patch("EventTargetLegacy",function(e,t,n){(function(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,s=n.ZONE_SYMBOL_PREFIX,l="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),u="EventTarget",f=[],p=e.wtf,h="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");p?f=h.map(function(e){return"HTML"+e+"Element"}).concat(l):e[u]?f.push(u):f=l;for(var d=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,m=t.isIEOrEdge(),g="[object FunctionWrapper]",y="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",_={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},b=0;b<r.length;b++){var k=s+((S=r[b])+c),E=s+(S+a);i[S]={},i[S][c]=k,i[S][a]=E}for(b=0;b<h.length;b++)for(var w=h[b],T=o[w]={},C=0;C<r.length;C++){var S;T[S=r[C]]=w+".addEventListener:"+S}var O=[];for(b=0;b<f.length;b++){var D=e[f[b]];O.push(D&&D.prototype)}t.patchEventTarget(e,O,{vh:function(e,t,n,r){if(!d&&m)if(v)try{if((o=t.toString())===g||o==y)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else{var o;if((o=t.toString())===g||o==y)return e.apply(n,r),!1}else if(v)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0},transferEventName:function(e){return _[e]||e}}),Zone[t.symbol("patchEventTarget")]=!!e[u]})(e,n),_e(n,e)})};var be=d("zoneTask");function ke(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=o.apply(e,n.args),t}function s(t){return i.call(e,t.data.handleId)}o=Z(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var l={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},u=i[0];i[0]=function(){try{return u.apply(this,arguments)}finally{l.isPeriodic||("number"==typeof l.handleId?delete a[l.handleId]:l.handleId&&(l.handleId[be]=null))}};var f=h(t,i[0],l,c,s);if(!f)return f;var p=f.data.handleId;return"number"==typeof p?a[p]=f:p&&(p[be]=f),p&&p.ref&&p.unref&&"function"==typeof p.ref&&"function"==typeof p.unref&&(f.ref=p.ref.bind(p),f.unref=p.unref.bind(p)),"number"==typeof p||p?p:f}return n.apply(e,i)}}),i=Z(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[be])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[be]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="set",n="clear";ke(e,t,n,"Timeout"),ke(e,t,n,"Interval"),ke(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)Z(e,n[r],function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}})}),Zone.__load_patch("EventTarget",function(e,t,n){(function(e,t){t.patchEventPrototype(e,t)})(e,n),function(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,s=0;s<r.length;s++){var l=r[s],u=c+(l+a),f=c+(l+i);o[l]={},o[l][a]=u,o[l][i]=f}var p=e.EventTarget;if(p&&p.prototype)t.patchEventTarget(e,[p&&p.prototype])}}(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype])}),Zone.__load_patch("MutationObserver",function(e,t,n){j("MutationObserver"),j("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,n){j("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,n){j("FileReader")}),Zone.__load_patch("on_property",function(e,t,n){de(n,e)}),Zone.__load_patch("customElements",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",function(e,t){!function(e){var u=e.XMLHttpRequest;if(u){var f=u.prototype,p=f[c],v=f[s];if(!p){var m=e.XMLHttpRequestEventTarget;if(m){var g=m.prototype;p=g[c],v=g[s]}}var y="readystatechange",_="scheduled",b=Z(f,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],b.apply(e,t)}}),k=d("fetchTaskAborting"),E=d("fetchTaskScheduling"),w=Z(f,"send",function(){return function(e,n){if(!0===t.current[E]||e[r])return w.apply(e,n);var o={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},i=h("XMLHttpRequest.send",S,o,C,O);e&&!0===e[l]&&!o.aborted&&i.state===_&&i.invoke()}}),T=Z(f,"abort",function(){return function(e,r){var o=function(e){return e[n]}(e);if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[k])return T.apply(e,r)}})}function C(e){var r=e.data,a=r.target;a[i]=!1,a[l]=!1;var u=a[o];p||(p=a[c],v=a[s]),u&&v.call(a,y,u);var f=a[o]=function(){if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&e.state===_){var n=a[t.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);!r.aborted&&e.state===_&&o.call(e)},n.push(e)}else e.invoke()}else!r.aborted&&!1===a[i]&&(a[l]=!0)};return p.call(a,y,f),a[n]||(a[n]=e),w.apply(a,r.args),a[i]=!0,e}function S(){}function O(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}}(e);var n=d("xhrTask"),r=d("xhrSync"),o=d("xhrListener"),i=d("xhrScheduled"),a=d("xhrURL"),l=d("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i,a,c=n[o],s=t[c];if(s){if(!b(e(t,c)))return"continue";t[c]=(M(a=function(){return i.apply(this,_(arguments,r+"."+c))},i=s),a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){U(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}})}}e.PromiseRejectionEvent&&(t[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[d("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)&&(e.exports=o)},7435:function(e,t,n){"use strict";n(9140),n(6210),n(3907)}},function(e){e(e.s=7435)}]);"use strict";(self.webpackChunkeureka=self.webpackChunkeureka||[]).push([[532],{8774:function(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var r=e(n);return n[2]?"@media ".concat(n[2]," {").concat(r,"}"):r}).join("")},n.i=function(e,r,a){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(a)for(var t=0;t<this.length;t++){var o=this[t][0];null!=o&&(i[o]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);a&&i[u[0]]||(r&&(u[2]=u[2]?"".concat(r," and ").concat(u[2]):r),n.push(u))}},n}},5287:function(e,n,r){var a=r(8774),i=r.n(a)()(function(e){return e[1]});i.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Roboto);"]),i.push([e.id,'@charset "UTF-8";\n.ihf-eureka-stylesheet{\n display:none!important;\n}\n/*!\n *  Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */\n\n@font-face{\n font-family:"FontAwesome";\n src:url("https:
/*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */
!function(e,t){"use strict";function n(){var e=C.splice(0,C.length);for(We=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)p(e[n],t)}function o(e){return function(t){Re(t)&&(p(t,e),le.length&&r(t.querySelectorAll(le),e))}}function l(e){var t=Be.call(e,"is"),n=e.nodeName.toUpperCase(),r=ie.call(re,t?ee+t.toUpperCase():J+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<le.indexOf(e+'[is="'+t+'"]')}function i(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[X]||2,a=e[$]||3;!rt||o&&o!==t||!t[B]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==l&&n!==a)||t[B](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){C.push(t,e.target),We&&clearTimeout(We),We=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(W,c)),le.length&&r((e.target||g).querySelectorAll(le),e.detail===x?x:_),Ve&&function(){for(var e,t=0,n=Ue.length;t<n;t++)e=Ue[t],ae.contains(e)||(n--,Ue.splice(t--,1),p(e,x))}()}function s(e,t){var n=this;Ge.call(n,e,t),w.call(n,{target:n})}function m(e,t,n){var r=t.apply(e,n),o=l(r);return-1<o&&F(r,oe[o]),n.pop()&&le.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)t=e[n],F(t,oe[l(t)])}(r.querySelectorAll(le)),r}function f(e,t){De(e,t),N?N.observe(e,$e):(tt&&(e.setAttribute=s,e[R]=O(e),e[U](Y,w)),e[U](Q,i)),e[z]&&rt&&(e.created=!0,e[z](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function p(e,t){var n,r,o=l(e);-1<o&&!xe.call(e,"TEMPLATE")&&(I(e,oe[o]),o=0,t!==_||e[_]?t!==x||e[x]||(e[_]=!1,e[x]=!0,r="disconnected",o=1):(e[x]=!1,e[_]=!0,r="connected",o=1,Ve&&ie.call(Ue,e)<0&&Ue.push(e)),o&&(n=e[t+k]||e[r+k])&&n.call(e))}function h(){}function T(e,t,n){var r=n&&n[q]||"",o=t.prototype,l=Ne(o),a=t.observedAttributes||fe,i={prototype:l};Pe(l,z,{value:function(){if(ye)ye=!1;else if(!this[Me]){this[Me]=!0,new t(this),o[z]&&o[z].call(this);var e=Ce[Ae.get(t)];(!ve||e.create.length>1)&&E(this)}}}),Pe(l,B,{value:function(e){-1<ie.call(a,e)&&o[B]&&o[B].apply(this,arguments)}}),o[j]&&Pe(l,Z,{value:o[j]}),o[G]&&Pe(l,K,{value:o[G]}),r&&(i[q]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,Oe(e)]:[e]},Ae.set(t,e),g[V](e.toLowerCase(),i),v(e),we[e].r()}function L(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function M(e){return"string"==typeof e?e:e&&e.is||""}function E(e){for(var t,n=e[B],r=n?e.attributes:fe,o=r.length;o--;)t=r[o],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function v(e){return(e=e.toUpperCase())in we||(we[e]={},we[e].p=new be(function(t){we[e].r=t})),we[e].p}function H(){Ee&&delete e.customElements,me(e,"customElements",{configurable:!0,value:new h}),me(e,"CustomElementRegistry",{configurable:!0,value:h});for(var t=y.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[Me]||(ye=!0,t=Ce[Ae.get(e.constructor)],(e=(r=ve&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):g.createElement.apply(g,t.create))[Me]=!0,ye=!1,r||E(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){!0,me(n,Me,{value:e[t]})}}}(t[n]));g.createElement=function(e,t){var n=M(t);return n?Xe.call(this,e,Oe(n)):Xe.call(this,e)},Ye||(et=!0,g[V](""))}var g=e.document,b=e.Object,y=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in i||(i[e]=(i[e]||[]).concat(t),i[t]=i[t.toUpperCase()]=e)},i=(b.create||b)(null),u={};for(n in e)for(o in e[n])for(r=e[n][o],i[o]=r,t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?i[e]||(l.test(e)?[]:""):function(e){var t,n=[];for(t in i)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return l.test(e)?a(e,t):a(t,e),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var C,w,A,O,N,D,I,F,S,V="registerElement",P=1e5*e.Math.random()>>0,R="__"+V+P,U="addEventListener",_="attached",k="Callback",x="detached",q="extends",B="attributeChanged"+k,Z=_+k,j="connected"+k,G="disconnected"+k,z="created"+k,K=x+k,X="ADDITION",$="REMOVAL",Q="DOMAttrModified",W="DOMContentLoaded",Y="DOMSubtreeModified",J="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],oe=[],le="",ae=g.documentElement,ie=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=b.prototype,ce=ue.hasOwnProperty,se=ue.isPrototypeOf,me=b.defineProperty,fe=[],de=b.getOwnPropertyDescriptor,pe=b.getOwnPropertyNames,he=b.getPrototypeOf,Te=b.setPrototypeOf,Le=!!b.__proto__,Me="__dreCEv1",Ee=e.customElements,ve=!/^force/.test(t.type)&&!!(Ee&&Ee.define&&Ee.get&&Ee.whenDefined),He=b.create||b,ge=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ie.call(t,e)]},set:function(r,o){(e=ie.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},be=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},ye=!1,Ce=He(null),we=He(null),Ae=new ge,Oe=function(e){return e.toLowerCase()},Ne=b.create||function e(t){return t?(e.prototype=t,new e):this},De=Te||(Le?function(e,t){return e.__proto__=t,e}:pe&&de?function(){function e(e,t){for(var n,r=pe(t),o=0,l=r.length;o<l;o++)n=r[o],ce.call(e,n)||me(e,n,de(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!se.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Ie=e.MutationObserver||e.WebKitMutationObserver,Fe=e.HTMLAnchorElement,Se=(e.HTMLElement||e.Element||e.Node).prototype,Ve=!se.call(Se,ae),Pe=Ve?function(e,t,n){return e[t]=n.value,e}:me,Re=Ve?function(e){return 1===e.nodeType}:function(e){return se.call(Se,e)},Ue=Ve&&[],_e=Se.attachShadow,ke=Se.cloneNode,xe=Se.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},qe=Se.dispatchEvent,Be=Se.getAttribute,Ze=Se.hasAttribute,je=Se.removeAttribute,Ge=Se.setAttribute,ze=g.createElement,Ke=g.importNode,Xe=ze,$e=Ie&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=Ie||function(e){tt=!1,ae.removeEventListener(Q,Qe)},We=0,Ye=V in g&&!/^force-all/.test(t.type),Je=!0,et=!1,tt=!0,nt=!0,rt=!0;if(Ie&&((S=g.createElement("div")).innerHTML="<div><div></div></div>",new Ie(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(S=de(Se,"innerHTML"))&&S.set;n&&me(Se,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),S=null}).observe(S,{childList:!0,subtree:!0}),S.innerHTML=""),Ye||(Te||Le?(I=function(e,t){se.call(t,e)||f(e,t)},F=f):F=I=function(e,t){e[R]||(e[R]=b(!0),f(e,t))},Ve?(tt=!1,function(){var e=de(Se,U),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=Be.call(this,e),t.newValue=null,t[$]=t.attrChange=2,je.call(this,e),qe.call(this,t)},r=function(e,t){var n=Ze.call(this,e),r=n&&Be.call(this,e),o=new CustomEvent(Q,{bubbles:!0});Ge.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[X]=o.attrChange=0,qe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[R],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Q,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[X]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,qe.call(n,t))};e.value=function(e,l,a){e===Q&&this[B]&&this.setAttribute!==r&&(this[R]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,l,a)},me(Se,U,e)}()):Ie||(ae[U](Q,Qe),ae.setAttribute(R,1),ae.removeAttribute(R),tt&&(w=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[R],o[R]=n=O(o),n){if(!(r in t))return A(0,o,r,t[r],n[r],X);if(n[r]!==t[r])return A(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return A(2,o,r,t[r],n[r],$)}},A=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,i(a)},O=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)"setAttribute"!==(n=(t=o[l]).name)&&(r[n]=t.value);return r})),g[V]=function(e,t){if(n=e.toUpperCase(),Je&&(Je=!1,Ie?(N=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Ie(function(r){for(var o,l,a,i=0,u=r.length;i<u;i++)"childList"===(o=r[i]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(l=o.target,rt&&l[B]&&"style"!==o.attributeName&&(a=Be.call(l,o.attributeName))!==o.oldValue&&l[B](o.attributeName,o.oldValue,a))})}(o(_),o(x)),(D=function(e){return N.observe(e,{childList:!0,subtree:!0}),e})(g),_e&&(Se.attachShadow=function(){return D(_e.apply(this,arguments))})):(C=[],g[U]("DOMNodeInserted",u(_)),g[U]("DOMNodeRemoved",u(x))),g[U](W,c),g[U]("readystatechange",c),g.importNode=function(e,t){switch(e.nodeType){case 1:return m(g,Ke,[e,!!t]);case 11:for(var n=g.createDocumentFragment(),r=e.childNodes,o=r.length,l=0;l<o;l++)n.appendChild(g.importNode(r[l],!!t));return n;default:return ke.call(e,!!t)}},Se.cloneNode=function(e){return m(this,ke,[!!e])}),et)return et=!1;if(-2<ie.call(re,ee+n)+ie.call(re,J+n)&&d(e),!te.test(n)||-1<ie.call(ne,n))throw new Error("The type "+e+" is invalid");var n,l,a=function(){return s?g.createElement(f,n):g.createElement(f)},i=t||ue,s=ce.call(i,q),f=s?t[q].toUpperCase():n;return s&&-1<ie.call(re,J+f)&&d(f),l=re.push((s?ee:J)+n)-1,le=le.concat(le.length?",":"",s?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=oe[l]=ce.call(i,"prototype")?i.prototype:Ne(Se),le.length&&r(g.querySelectorAll(le),_),a},g.createElement=Xe=function(e,t){var n=M(t),r=n?ze.call(g,e,Oe(n)):ze.call(g,e),o=""+e,l=ie.call(re,(n?ee:J)+(n||o).toUpperCase()),i=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),i&&(i=a(o.toUpperCase(),n))),rt=!g.createElement.innerHTMLHelper,i&&F(r,oe[l]),r}),addEventListener("beforeunload",function(){delete g.createElement,delete g.importNode,delete g[V]},!1),h.prototype={constructor:h,define:ve?function(e,t,n){if(n)T(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ae.set(t,r),Ee.define(e,t)}}:T,get:ve?function(e){return Ee.get(e)||L(e)}:L,whenDefined:ve?function(e){return be.race([Ee.whenDefined(e),v(e)])}:v},!Ee||/^force/.test(t.type))H();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[q]="a",(t.prototype=Ne(Fe.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(g.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}(function e(){return Reflect.construct(Fe,[],e)},{},"document-register-element-a"+P)}catch(e){H()}if(!t.noBuiltIn)try{if(ze.call(g,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(e){Oe=function(e){return{is:e.toLowerCase()}}}}(window);var CU=Object.defineProperty,DC=Object.getOwnPropertySymbols,TU=Object.prototype.hasOwnProperty,SU=Object.prototype.propertyIsEnumerable,EC=(e,t,n)=>t in e?CU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,id=(e,t)=>{for(var n in t||(t={}))TU.call(t,n)&&EC(e,n,t[n]);if(DC)for(var n of DC(t))SU.call(t,n)&&EC(e,n,t[n]);return e};(self.webpackChunkeureka=self.webpackChunkeureka||[]).push([[179],{8255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=8255,e.exports=t},3245:function(e){e.exports=function(){"use strict";var e=function(e,t){var n={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},i={on:function(e,t,i){if(void 0===n[e])throw new Error("Invalid event type:"+e);n[e].push({selector:t,fn:i})},render:function(e){t.store.featureChanged(e)}},r=function(e,r){for(var l=n[e],s=l.length;s--;){var o=l[s];if(o.selector(r)){o.fn.call(i,r)||t.store.render(),t.ui.updateMapClasses();break}}};return e.start.call(i),{render:e.render,stop:function(){e.stop&&e.stop()},trash:function(){e.trash&&(e.trash(),t.store.render())},combineFeatures:function(){e.combineFeatures&&e.combineFeatures()},uncombineFeatures:function(){e.uncombineFeatures&&e.uncombineFeatures()},drag:function(e){r("drag",e)},click:function(e){r("click",e)},mousemove:function(e){r("mousemove",e)},mousedown:function(e){r("mousedown",e)},mouseup:function(e){r("mouseup",e)},mouseout:function(e){r("mouseout",e)},keydown:function(e){r("keydown",e)},keyup:function(e){r("keyup",e)},touchstart:function(e){r("touchstart",e)},touchmove:function(e){r("touchmove",e)},touchend:function(e){r("touchend",e)},tap:function(e){r("tap",e)}}};function t(e){var t=0;if(e&&e.length>0){t+=Math.abs(n(e[0]));for(var i=1;i<e.length;i++)t-=Math.abs(n(e[i]))}return t}function n(e){var t,n,r,l,s,o,a=0,u=e.length;if(u>2){for(o=0;o<u;o++)o===u-2?(r=u-2,l=u-1,s=0):o===u-1?(r=u-1,l=0,s=1):(r=o,l=o+1,s=o+2),t=e[r],n=e[l],a+=(i(e[s][0])-i(t[0]))*Math.sin(i(n[1]));a=6378137*a*6378137/2}return a}function i(e){return e*Math.PI/180}var r=function e(n){var i,r=0;switch(n.type){case"Polygon":return t(n.coordinates);case"MultiPolygon":for(i=0;i<n.coordinates.length;i++)r+=t(n.coordinates[i]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(i=0;i<n.geometries.length;i++)r+=e(n.geometries[i]);return r}},l="mapbox-gl-draw-hot",s="mapbox-gl-draw-cold",o="add",a="move",u="pointer",c="none",h={POLYGON:"polygon",LINE:"line_string",POINT:"point"},d="Feature",p="Polygon",f="LineString",m="Point",_="FeatureCollection",g={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},y="draw.create",v="draw.update",b="feature",x="midpoint",w="vertex",M="!0",T="!1",S=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],k={Point:0,LineString:1,Polygon:2};function C(e,t){var n=k[e.geometry.type]-k[t.geometry.type];return 0===n&&e.geometry.type===p?e.area-t.area:n}function L(e){if(this._items={},this._nums={},this._length=e?e.length:0,e)for(var t=0,n=e.length;t<n;t++)this.add(e[t]),void 0!==e[t]&&("string"==typeof e[t]?this._items[e[t]]=t:this._nums[e[t]]=t)}L.prototype.add=function(e){return this.has(e)||(this._length++,"string"==typeof e?this._items[e]=this._length:this._nums[e]=this._length),this},L.prototype.delete=function(e){return!1===this.has(e)||(this._length--,delete this._items[e],delete this._nums[e]),this},L.prototype.has=function(e){return!("string"!=typeof e&&"number"!=typeof e||void 0===this._items[e]&&void 0===this._nums[e])},L.prototype.values=function(){var e=this,t=[];return Object.keys(this._items).forEach(function(n){t.push({k:n,v:e._items[n]})}),Object.keys(this._nums).forEach(function(n){t.push({k:JSON.parse(n),v:e._nums[n]})}),t.sort(function(e,t){return e.v-t.v}).map(function(e){return e.k})},L.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var E=[b,x,w],P={click:function(e,t,n){return D(e,t,n,n.options.clickBuffer)},touch:function(e,t,n){return D(e,t,n,n.options.touchBuffer)}};function D(e,t,n,i){if(null===n.map)return[];var l,s,o=e?(void 0===(s=i)&&(s=0),[[(l=e).point.x-s,l.point.y-s],[l.point.x+s,l.point.y+s]]):t,a={};n.options.styles&&(a.layers=n.options.styles.map(function(e){return e.id}));var u=n.map.queryRenderedFeatures(o,a).filter(function(e){return-1!==E.indexOf(e.properties.meta)}),c=new L,h=[];return u.forEach(function(e){var t=e.properties.id;c.has(t)||(c.add(t),h.push(e))}),function(e){return e.map(function(e){return e.geometry.type===p&&(e.area=r({type:d,property:{},geometry:e.geometry})),e}).sort(C).map(function(e){return delete e.area,e})}(h)}function O(e,t){var n=P.click(e,null,t),i={mouse:c};return n[0]&&(i.mouse=n[0].properties.active===M?a:u,i.feature=n[0].properties.meta),-1!==t.events.currentModeName().indexOf("draw")&&(i.mouse=o),t.ui.queueMapClasses(i),t.ui.updateMapClasses(),n[0]}function A(e,t){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function I(e,t,n){void 0===n&&(n={});var i=null!=n.fineTolerance?n.fineTolerance:4,r=null!=n.grossTolerance?n.grossTolerance:12,l=null!=n.interval?n.interval:500;e.point=e.point||t.point,e.time=e.time||t.time;var s=A(e.point,t.point);return s<i||s<r&&t.time-e.time<l}function F(e,t,n){void 0===n&&(n={});var i=null!=n.tolerance?n.tolerance:25,r=null!=n.interval?n.interval:250;return e.point=e.point||t.point,e.time=e.time||t.time,A(e.point,t.point)<i&&t.time-e.time<r}function Y(e,t){return e(t={exports:{}},t.exports),t.exports}var z=Y(function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"use strict";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var l=i-Math.floor(i),s="";for(r=0;r<Math.floor(i);r++)s=Math.floor(Math.random()*n).toString(n)+s;if(l){var o=Math.pow(n,l);s=Math.floor(Math.random()*o).toString(n)+s}var a=parseInt(s,n);return a!==1/0&&a>=Math.pow(2,e)?t(e,n):s};t.rack=function(e,n,i){var r=function(r){var s=0;do{if(s++>10){if(!i)throw new Error("too many ID collisions,use more bits");e+=i}var o=t(e,n)}while(Object.hasOwnProperty.call(l,o));return l[o]=r,o},l=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}),R=function(e,t){this.ctx=e,this.properties=t.properties||{},this.coordinates=t.geometry.coordinates,this.id=t.id||z(),this.type=t.geometry.type};R.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},R.prototype.incomingCoords=function(e){this.setCoordinates(e)},R.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},R.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},R.prototype.setProperty=function(e,t){this.properties[e]=t},R.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:d,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},R.prototype.internal=function(e){var t={id:this.id,meta:b,"meta:type":this.type,active:T,mode:e};if(this.ctx.options.userProperties)for(var n in this.properties)t["user_"+n]=this.properties[n];return{type:d,properties:t,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var B=function(e,t){R.call(this,e,t)};(B.prototype=Object.create(R.prototype)).isValid=function(){return"number"==typeof this.coordinates[0]&&"number"==typeof this.coordinates[1]},B.prototype.updateCoordinate=function(e,t,n){this.coordinates=3===arguments.length?[t,n]:[e,t],this.changed()},B.prototype.getCoordinate=function(){return this.getCoordinates()};var j=function(e,t){R.call(this,e,t)};(j.prototype=Object.create(R.prototype)).isValid=function(){return this.coordinates.length>1},j.prototype.addCoordinate=function(e,t,n){this.changed();var i=parseInt(e,10);this.coordinates.splice(i,0,[t,n])},j.prototype.getCoordinate=function(e){var t=parseInt(e,10);return JSON.parse(JSON.stringify(this.coordinates[t]))},j.prototype.removeCoordinate=function(e){this.changed(),this.coordinates.splice(parseInt(e,10),1)},j.prototype.updateCoordinate=function(e,t,n){var i=parseInt(e,10);this.coordinates[i]=[t,n],this.changed()};var N=function(e,t){R.call(this,e,t),this.coordinates=this.coordinates.map(function(e){return e.slice(0,-1)})};(N.prototype=Object.create(R.prototype)).isValid=function(){return 0!==this.coordinates.length&&this.coordinates.every(function(e){return e.length>2})},N.prototype.incomingCoords=function(e){this.coordinates=e.map(function(e){return e.slice(0,-1)}),this.changed()},N.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},N.prototype.addCoordinate=function(e,t,n){this.changed();var i=e.split(".").map(function(e){return parseInt(e,10)});this.coordinates[i[0]].splice(i[1],0,[t,n])},N.prototype.removeCoordinate=function(e){this.changed();var t=e.split(".").map(function(e){return parseInt(e,10)}),n=this.coordinates[t[0]];n&&(n.splice(t[1],1),n.length<3&&this.coordinates.splice(t[0],1))},N.prototype.getCoordinate=function(e){var t=e.split(".").map(function(e){return parseInt(e,10)});return JSON.parse(JSON.stringify(this.coordinates[t[0]][t[1]]))},N.prototype.getCoordinates=function(){return this.coordinates.map(function(e){return e.concat([e[0]])})},N.prototype.updateCoordinate=function(e,t,n){this.changed();var i=e.split("."),r=parseInt(i[0],10),l=parseInt(i[1],10);void 0===this.coordinates[r]&&(this.coordinates[r]=[]),this.coordinates[r][l]=[t,n]};var H={MultiPoint:B,MultiLineString:j,MultiPolygon:N},V=function(e,t,n,i,r){var l=n.split("."),s=parseInt(l[0],10),o=l[1]?l.slice(1).join("."):null;return e[s][t](o,i,r)},U=function(e,t){if(R.call(this,e,t),delete this.coordinates,this.model=H[t.geometry.type],void 0===this.model)throw new TypeError(t.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(t.geometry.coordinates)};function W(e){this.map=e.map,this.drawConfig=JSON.parse(JSON.stringify(e.options||{})),this._ctx=e}(U.prototype=Object.create(R.prototype))._coordinatesToFeatures=function(e){var t=this,n=this.model.bind(this);return e.map(function(e){return new n(t.ctx,{id:z(),type:d,properties:{},geometry:{coordinates:e,type:t.type.replace("Multi","")}})})},U.prototype.isValid=function(){return this.features.every(function(e){return e.isValid()})},U.prototype.setCoordinates=function(e){this.features=this._coordinatesToFeatures(e),this.changed()},U.prototype.getCoordinate=function(e){return V(this.features,"getCoordinate",e)},U.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(e){return e.type===p?e.getCoordinates():e.coordinates})))},U.prototype.updateCoordinate=function(e,t,n){V(this.features,"updateCoordinate",e,t,n),this.changed()},U.prototype.addCoordinate=function(e,t,n){V(this.features,"addCoordinate",e,t,n),this.changed()},U.prototype.removeCoordinate=function(e){V(this.features,"removeCoordinate",e),this.changed()},U.prototype.getFeatures=function(){return this.features},W.prototype.setSelected=function(e){return this._ctx.store.setSelected(e)},W.prototype.setSelectedCoordinates=function(e){var t=this;this._ctx.store.setSelectedCoordinates(e),e.reduce(function(e,n){return void 0===e[n.feature_id]&&(e[n.feature_id]=!0,t._ctx.store.get(n.feature_id).changed()),e},{})},W.prototype.getSelected=function(){return this._ctx.store.getSelected()},W.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},W.prototype.isSelected=function(e){return this._ctx.store.isSelected(e)},W.prototype.getFeature=function(e){return this._ctx.store.get(e)},W.prototype.select=function(e){return this._ctx.store.select(e)},W.prototype.deselect=function(e){return this._ctx.store.deselect(e)},W.prototype.deleteFeature=function(e,t){return void 0===t&&(t={}),this._ctx.store.delete(e,t)},W.prototype.addFeature=function(e){return this._ctx.store.add(e)},W.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},W.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},W.prototype.setActionableState=function(e){return void 0===e&&(e={}),this._ctx.events.actionable({trash:e.trash||!1,combineFeatures:e.combineFeatures||!1,uncombineFeatures:e.uncombineFeatures||!1})},W.prototype.changeMode=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this._ctx.events.changeMode(e,t,n)},W.prototype.updateUIClasses=function(e){return this._ctx.ui.queueMapClasses(e)},W.prototype.activateUIButton=function(e){return this._ctx.ui.setActiveButton(e)},W.prototype.featuresAt=function(e,t,n){if(void 0===n&&(n="click"),"click"!==n&&"touch"!==n)throw new Error("invalid buffer type");return P[n](e,t,this._ctx)},W.prototype.newFeature=function(e){var t=e.geometry.type;return t===m?new B(this._ctx,e):t===f?new j(this._ctx,e):t===p?new N(this._ctx,e):new U(this._ctx,e)},W.prototype.isInstanceOf=function(e,t){if(e===m)return t instanceof B;if(e===f)return t instanceof j;if(e===p)return t instanceof N;if("MultiFeature"===e)return t instanceof U;throw new Error("Unknown feature class:"+e)},W.prototype.doRender=function(e){return this._ctx.store.featureChanged(e)},W.prototype.onSetup=function(){},W.prototype.onDrag=function(){},W.prototype.onClick=function(){},W.prototype.onMouseMove=function(){},W.prototype.onMouseDown=function(){},W.prototype.onMouseUp=function(){},W.prototype.onMouseOut=function(){},W.prototype.onKeyUp=function(){},W.prototype.onKeyDown=function(){},W.prototype.onTouchStart=function(){},W.prototype.onTouchMove=function(){},W.prototype.onTouchEnd=function(){},W.prototype.onTap=function(){},W.prototype.onStop=function(){},W.prototype.onTrash=function(){},W.prototype.onCombineFeature=function(){},W.prototype.onUncombineFeature=function(){},W.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var $={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},G=Object.keys($);function q(e){return[].concat(e).filter(function(e){return void 0!==e})}function Z(){var e=this;if(!e.ctx.map||void 0===e.ctx.map.getSource(l))return c();var t=e.ctx.events.currentModeName();e.ctx.ui.queueMapClasses({mode:t});var n=[],i=[];e.isDirty?i=e.getAllIds():(n=e.getChangedIds().filter(function(t){return void 0!==e.get(t)}),i=e.sources.hot.filter(function(t){return t.properties.id&&-1===n.indexOf(t.properties.id)&&void 0!==e.get(t.properties.id)}).map(function(e){return e.properties.id})),e.sources.hot=[];var r=e.sources.cold.length;e.sources.cold=e.isDirty?[]:e.sources.cold.filter(function(e){return-1===n.indexOf(e.properties.id||e.properties.parent)});var o=r!==e.sources.cold.length||i.length>0;function a(n,i){var r=e.get(n).internal(t);e.ctx.events.currentModeRender(r,function(t){e.sources[i].push(t)})}if(n.forEach(function(e){return a(e,"hot")}),i.forEach(function(e){return a(e,"cold")}),o&&e.ctx.map.getSource(s).setData({type:_,features:e.sources.cold}),e.ctx.map.getSource(l).setData({type:_,features:e.sources.hot}),e._emitSelectionChange&&(e.ctx.map.fire("draw.selectionchange",{features:e.getSelected().map(function(e){return e.toGeoJSON()}),points:e.getSelectedCoordinates().map(function(e){return{type:d,properties:{},geometry:{type:m,coordinates:e.coordinates}}})}),e._emitSelectionChange=!1),e._deletedFeaturesToEmit.length){var u=e._deletedFeaturesToEmit.map(function(e){return e.toGeoJSON()});e._deletedFeaturesToEmit=[],e.ctx.map.fire("draw.delete",{features:u})}function c(){e.isDirty=!1,e.clearChangedIds()}c(),e.ctx.map.fire("draw.render",{})}function X(e){var t,n=this;this._features={},this._featureIds=new L,this._selectedFeatureIds=new L,this._selectedCoordinates=[],this._changedFeatureIds=new L,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=e,this.sources={hot:[],cold:[]},this.render=function(){t||(t=requestAnimationFrame(function(){t=null,Z.call(n)}))},this.isDirty=!1}function J(e,t){var n=e._selectedCoordinates.filter(function(t){return e._selectedFeatureIds.has(t.feature_id)});e._selectedCoordinates.length===n.length||t.silent||(e._emitSelectionChange=!0),e._selectedCoordinates=n}X.prototype.createRenderBatch=function(){var e=this,t=this.render,n=0;return this.render=function(){n++},function(){e.render=t,n>0&&e.render()}},X.prototype.setDirty=function(){return this.isDirty=!0,this},X.prototype.featureChanged=function(e){return this._changedFeatureIds.add(e),this},X.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},X.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},X.prototype.getAllIds=function(){return this._featureIds.values()},X.prototype.add=function(e){return this.featureChanged(e.id),this._features[e.id]=e,this._featureIds.add(e.id),this},X.prototype.delete=function(e,t){var n=this;return void 0===t&&(t={}),q(e).forEach(function(e){n._featureIds.has(e)&&(n._featureIds.delete(e),n._selectedFeatureIds.delete(e),t.silent||-1===n._deletedFeaturesToEmit.indexOf(n._features[e])&&n._deletedFeaturesToEmit.push(n._features[e]),delete n._features[e],n.isDirty=!0)}),J(this,t),this},X.prototype.get=function(e){return this._features[e]},X.prototype.getAll=function(){var e=this;return Object.keys(this._features).map(function(t){return e._features[t]})},X.prototype.select=function(e,t){var n=this;return void 0===t&&(t={}),q(e).forEach(function(e){n._selectedFeatureIds.has(e)||(n._selectedFeatureIds.add(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))}),this},X.prototype.deselect=function(e,t){var n=this;return void 0===t&&(t={}),q(e).forEach(function(e){n._selectedFeatureIds.has(e)&&(n._selectedFeatureIds.delete(e),n._changedFeatureIds.add(e),t.silent||(n._emitSelectionChange=!0))}),J(this,t),this},X.prototype.clearSelected=function(e){return void 0===e&&(e={}),this.deselect(this._selectedFeatureIds.values(),{silent:e.silent}),this},X.prototype.setSelected=function(e,t){var n=this;return void 0===t&&(t={}),e=q(e),this.deselect(this._selectedFeatureIds.values().filter(function(t){return-1===e.indexOf(t)}),{silent:t.silent}),this.select(e.filter(function(e){return!n._selectedFeatureIds.has(e)}),{silent:t.silent}),this},X.prototype.setSelectedCoordinates=function(e){return this._selectedCoordinates=e,this._emitSelectionChange=!0,this},X.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},X.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},X.prototype.getSelected=function(){var e=this;return this._selectedFeatureIds.values().map(function(t){return e.get(t)})},X.prototype.getSelectedCoordinates=function(){var e=this;return this._selectedCoordinates.map(function(t){return{coordinates:e.get(t.feature_id).getCoordinate(t.coord_path)}})},X.prototype.isSelected=function(e){return this._selectedFeatureIds.has(e)},X.prototype.setFeatureProperty=function(e,t,n){this.get(e).setProperty(t,n),this.featureChanged(e)},X.prototype.storeMapConfig=function(){var e=this;S.forEach(function(t){e.ctx.map[t]&&(e._mapInitialConfig[t]=e.ctx.map[t].isEnabled())})},X.prototype.restoreMapConfig=function(){var e=this;Object.keys(this._mapInitialConfig).forEach(function(t){e._mapInitialConfig[t]?e.ctx.map[t].enable():e.ctx.map[t].disable()})},X.prototype.getInitialConfigValue=function(e){return void 0===this._mapInitialConfig[e]||this._mapInitialConfig[e]};var K=function(){for(var e=arguments,t={},n=0;n<arguments.length;n++){var i=e[n];for(var r in i)Q.call(i,r)&&(t[r]=i[r])}return t},Q=Object.prototype.hasOwnProperty,ee=["mode","feature","mouse"];function te(t){var n=null,i=null,r={onRemove:function(){return t.map.off("load",r.connect),clearInterval(i),r.removeLayers(),t.store.restoreMapConfig(),t.ui.removeButtons(),t.events.removeEventListeners(),t.ui.clearMapClasses(),t.map=null,t.container=null,t.store=null,n&&n.parentNode&&n.parentNode.removeChild(n),n=null,this},connect:function(){t.map.off("load",r.connect),clearInterval(i),r.addLayers(),t.store.storeMapConfig(),t.events.addEventListeners()},onAdd:function(l){var s=l.fire;return l.fire=function(e,t){var n=arguments;return 1===s.length&&1!==arguments.length&&(n=[K({},{type:e},t)]),s.apply(l,n)},t.map=l,t.events=function(t){var n=Object.keys(t.options.modes).reduce(function(e,n){return e[n]=function(e){var t=Object.keys(e);return function(n,i){void 0===i&&(i={});var r={},l=t.reduce(function(t,n){return t[n]=e[n],t},new W(n));return{start:function(){var t=this;r=l.onSetup(i),G.forEach(function(n){var i,s=$[n],o=function(){return!1};e[s]&&(o=function(){return!0}),t.on(n,o,(i=s,function(e){return l[i](r,e)}))})},stop:function(){l.onStop(r)},trash:function(){l.onTrash(r)},combineFeatures:function(){l.onCombineFeatures(r)},uncombineFeatures:function(){l.onUncombineFeatures(r)},render:function(e,t){l.toDisplayFeatures(r,e,t)}}}}(t.options.modes[n]),e},{}),i={},r={},l={},s=null,o=null;l.drag=function(e,n){n({point:e.point,time:(new Date).getTime()})?(t.ui.queueMapClasses({mouse:"drag"}),o.drag(e)):e.originalEvent.stopPropagation()},l.mousedrag=function(e){l.drag(e,function(e){return!I(i,e)})},l.touchdrag=function(e){l.drag(e,function(e){return!F(r,e)})},l.mousemove=function(e){if(1===(void 0!==e.originalEvent.buttons?e.originalEvent.buttons:e.originalEvent.which))return l.mousedrag(e);var n=O(e,t);e.featureTarget=n,o.mousemove(e)},l.mousedown=function(e){i={time:(new Date).getTime(),point:e.point};var n=O(e,t);e.featureTarget=n,o.mousedown(e)},l.mouseup=function(e){var n=O(e,t);e.featureTarget=n,I(i,{point:e.point,time:(new Date).getTime()})?o.click(e):o.mouseup(e)},l.mouseout=function(e){o.mouseout(e)},l.touchstart=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){r={time:(new Date).getTime(),point:e.point};var n=P.touch(e,null,t)[0];e.featureTarget=n,o.touchstart(e)}},l.touchmove=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled)return o.touchmove(e),l.touchdrag(e)},l.touchend=function(e){if(e.originalEvent.preventDefault(),t.options.touchEnabled){var n=P.touch(e,null,t)[0];e.featureTarget=n,F(r,{time:(new Date).getTime(),point:e.point})?o.tap(e):o.touchend(e)}};var a=function(e){return!(8===e||46===e||e>=48&&e<=57)};function u(i,r,l){void 0===l&&(l={}),o.stop();var a=n[i];if(void 0===a)throw new Error(i+" is not valid");s=i;var u=a(t,r);o=e(u,t),l.silent||t.map.fire("draw.modechange",{mode:i}),t.store.setDirty(),t.store.render()}l.keydown=function(e){"mapboxgl-canvas"===(e.srcElement||e.target).classList[0]&&(8!==e.keyCode&&46!==e.keyCode||!t.options.controls.trash?a(e.keyCode)?o.keydown(e):49===e.keyCode&&t.options.controls.point?u(g.DRAW_POINT):50===e.keyCode&&t.options.controls.line_string?u(g.DRAW_LINE_STRING):51===e.keyCode&&t.options.controls.polygon&&u(g.DRAW_POLYGON):(e.preventDefault(),o.trash()))},l.keyup=function(e){a(e.keyCode)&&o.keyup(e)},l.zoomend=function(){t.store.changeZoom()},l.data=function(e){if("style"===e.dataType){var n=t.setup,i=t.map,r=t.store;t.options.styles.some(function(e){return i.getLayer(e.id)})||(n.addLayers(),r.setDirty(),r.render())}};var c={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){o=e(n[s=t.options.defaultMode](t),t)},changeMode:u,actionable:function(e){var n=!1;Object.keys(e).forEach(function(t){if(void 0===c[t])throw new Error("Invalid action type");c[t]!==e[t]&&(n=!0),c[t]=e[t]}),n&&t.map.fire("draw.actionable",{actions:c})},currentModeName:function(){return s},currentModeRender:function(e,t){return o.render(e,t)},fire:function(e,t){l[e]&&l[e](t)},addEventListeners:function(){t.map.on("mousemove",l.mousemove),t.map.on("mousedown",l.mousedown),t.map.on("mouseup",l.mouseup),t.map.on("data",l.data),t.map.on("touchmove",l.touchmove),t.map.on("touchstart",l.touchstart),t.map.on("touchend",l.touchend),t.container.addEventListener("mouseout",l.mouseout),t.options.keybindings&&(t.container.addEventListener("keydown",l.keydown),t.container.addEventListener("keyup",l.keyup))},removeEventListeners:function(){t.map.off("mousemove",l.mousemove),t.map.off("mousedown",l.mousedown),t.map.off("mouseup",l.mouseup),t.map.off("data",l.data),t.map.off("touchmove",l.touchmove),t.map.off("touchstart",l.touchstart),t.map.off("touchend",l.touchend),t.container.removeEventListener("mouseout",l.mouseout),t.options.keybindings&&(t.container.removeEventListener("keydown",l.keydown),t.container.removeEventListener("keyup",l.keyup))},trash:function(e){o.trash(e)},combineFeatures:function(){o.combineFeatures()},uncombineFeatures:function(){o.uncombineFeatures()},getMode:function(){return s}}}(t),t.ui=function(e){var t={},n=null,i={mode:null,feature:null,mouse:null},r={mode:null,feature:null,mouse:null};function l(e){r=K(r,e)}function s(){var t,n;if(e.container){var l=[],s=[];ee.forEach(function(e){r[e]!==i[e]&&(l.push(e+"-"+i[e]),null!==r[e]&&s.push(e+"-"+r[e]))}),l.length>0&&(t=e.container.classList).remove.apply(t,l),s.length>0&&(n=e.container.classList).add.apply(n,s),i=K(i,r)}}function o(e,t){void 0===t&&(t={});var i=document.createElement("button");return i.className="mapbox-gl-draw_ctrl-draw-btn "+t.className,i.setAttribute("title",t.title),t.container.appendChild(i),i.addEventListener("click",function(i){if(i.preventDefault(),i.stopPropagation(),i.target===n)return a(),void t.onDeactivate();u(e),t.onActivate()},!0),i}function a(){n&&(n.classList.remove("active"),n=null)}function u(e){a();var i=t[e];i&&i&&"trash"!==e&&(i.classList.add("active"),n=i)}return{setActiveButton:u,queueMapClasses:l,updateMapClasses:s,clearMapClasses:function(){l({mode:null,feature:null,mouse:null}),s()},addButtons:function(){var n=e.options.controls,i=document.createElement("div");return i.className="mapboxgl-ctrl-group mapboxgl-ctrl",n&&(n[h.LINE]&&(t[h.LINE]=o(h.LINE,{container:i,className:"mapbox-gl-draw_line",title:"LineString tool "+(e.options.keybindings?"(l)":""),onActivate:function(){return e.events.changeMode(g.DRAW_LINE_STRING)},onDeactivate:function(){return e.events.trash()}})),n[h.POLYGON]&&(t[h.POLYGON]=o(h.POLYGON,{container:i,className:"mapbox-gl-draw_polygon",title:"Polygon tool "+(e.options.keybindings?"(p)":""),onActivate:function(){return e.events.changeMode(g.DRAW_POLYGON)},onDeactivate:function(){return e.events.trash()}})),n[h.POINT]&&(t[h.POINT]=o(h.POINT,{container:i,className:"mapbox-gl-draw_point",title:"Marker tool "+(e.options.keybindings?"(m)":""),onActivate:function(){return e.events.changeMode(g.DRAW_POINT)},onDeactivate:function(){return e.events.trash()}})),n.trash&&(t.trash=o("trash",{container:i,className:"mapbox-gl-draw_trash",title:"Delete",onActivate:function(){e.events.trash()}})),n.combine_features&&(t.combine_features=o("combineFeatures",{container:i,className:"mapbox-gl-draw_combine",title:"Combine",onActivate:function(){e.events.combineFeatures()}})),n.uncombine_features&&(t.uncombine_features=o("uncombineFeatures",{container:i,className:"mapbox-gl-draw_uncombine",title:"Uncombine",onActivate:function(){e.events.uncombineFeatures()}}))),i},removeButtons:function(){Object.keys(t).forEach(function(e){var n=t[e];n.parentNode&&n.parentNode.removeChild(n),delete t[e]})}}}(t),t.container=l.getContainer(),t.store=new X(t),n=t.ui.addButtons(),t.options.boxSelect&&(l.boxZoom.disable(),l.dragPan.disable(),l.dragPan.enable()),l.loaded()?r.connect():(l.on("load",r.connect),i=setInterval(function(){l.loaded()&&r.connect()},16)),t.events.start(),n},addLayers:function(){t.map.addSource(s,{data:{type:_,features:[]},type:"geojson"}),t.map.addSource(l,{data:{type:_,features:[]},type:"geojson"}),t.options.styles.forEach(function(e){t.map.addLayer(e)}),t.store.setDirty(!0),t.store.render()},removeLayers:function(){t.options.styles.forEach(function(e){t.map.getLayer(e.id)&&t.map.removeLayer(e.id)}),t.map.getSource(s)&&t.map.removeSource(s),t.map.getSource(l)&&t.map.removeSource(l)}};return t.setup=r,r}function ne(e){return function(t){var n=t.featureTarget;return!!n&&!!n.properties&&n.properties.meta===e}}function ie(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===M&&e.featureTarget.properties.meta===b}function re(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===T&&e.featureTarget.properties.meta===b}function le(e){return void 0===e.featureTarget}function se(e){var t=e.featureTarget;return!!t&&!!t.properties&&t.properties.meta===w}function oe(e){return!!e.originalEvent&&!0===e.originalEvent.shiftKey}function ae(e){return 27===e.keyCode}function ue(e){return 13===e.keyCode}var ce=he;function he(e,t){this.x=e,this.y=t}function de(e,t){var n=t.getBoundingClientRect();return new ce(e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0))}function pe(e,t,n,i){return{type:d,properties:{meta:w,parent:e,coord_path:n,active:i?M:T},geometry:{type:m,coordinates:t}}}function fe(e,t,n){void 0===t&&(t={}),void 0===n&&(n=null);var i,r=e.geometry,l=r.type,s=r.coordinates,o=e.properties&&e.properties.id,a=[];function u(e,n){var i="",r=null;e.forEach(function(e,l){var s=null!=n?n+"."+l:String(l),u=pe(o,e,s,c(s));if(t.midpoints&&r){var h=function(e,t,n){var i=t.geometry.coordinates,r=n.geometry.coordinates;if(i[1]>85||i[1]<-85||r[1]>85||r[1]<-85)return null;var l={lng:(i[0]+r[0])/2,lat:(i[1]+r[1])/2};return{type:d,properties:{meta:x,parent:e,lng:l.lng,lat:l.lat,coord_path:n.properties.coord_path},geometry:{type:m,coordinates:[l.lng,l.lat]}}}(o,r,u);h&&a.push(h)}r=u;var p=JSON.stringify(e);i!==p&&a.push(u),0===l&&(i=p)})}function c(e){return!!t.selectedPaths&&-1!==t.selectedPaths.indexOf(e)}return l===m?a.push(pe(o,s,n,c(n))):l===p?s.forEach(function(e,t){u(e,null!==n?n+"."+t:String(t))}):l===f?u(s,n):0===l.indexOf("Multi")&&(i=l.replace("Multi",""),s.forEach(function(n,r){a=a.concat(fe({type:d,properties:e.properties,geometry:{type:i,coordinates:n}},t,r))})),a}he.prototype={clone:function(){return new he(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),i=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),i=Math.sin(e),r=t.y+i*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-i*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},he.convert=function(e){return e instanceof he?e:Array.isArray(e)?new he(e[0],e[1]):e};var me=function(e){setTimeout(function(){e.map&&e.map.doubleClickZoom&&e._ctx&&e._ctx.store&&e._ctx.store.getInitialConfigValue&&e._ctx.store.getInitialConfigValue("doubleClickZoom")&&e.map.doubleClickZoom.enable()},0)},_e=function(e){setTimeout(function(){e.map&&e.map.doubleClickZoom&&e.map.doubleClickZoom.disable()},0)},ge=function(e){if(!e||!e.type)return null;var t=ye[e.type];return t?"geometry"===t?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===t?{type:"FeatureCollection",features:[e]}:"featurecollection"===t?e:void 0:null},ye={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function ve(e){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.reduce(function(e,t){return e.concat(ve(t))},[]),e;case"Feature":return e.geometry?ve(e.geometry).map(function(t){var n={type:"Feature",properties:JSON.parse(JSON.stringify(e.properties)),geometry:t};return void 0!==e.id&&(n.id=e.id),n}):[e];case"MultiPoint":return e.coordinates.map(function(e){return{type:"Point",coordinates:e}});case"MultiPolygon":return e.coordinates.map(function(e){return{type:"Polygon",coordinates:e}});case"MultiLineString":return e.coordinates.map(function(e){return{type:"LineString",coordinates:e}});case"GeometryCollection":return e.geometries.map(ve).reduce(function(e,t){return e.concat(t)},[]);case"Point":case"Polygon":case"LineString":return[e]}}var be=Y(function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function i(e,t,n){var i=[],s=[],c=!0;return function e(h){var d=n?r(h):h,p={},f=!0,m={node:d,node_:h,path:[].concat(i),parent:s[s.length-1],parents:s,key:i.slice(-1)[0],isRoot:0===i.length,level:i.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(f=!1)},delete:function(e){delete m.parent.node[m.key],e&&(f=!1)},remove:function(e){o(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(f=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){c=!1},block:function(){f=!1}};if(!c)return m;function _(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=l(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<s.length;e++)if(s[e].node_===h){m.circular=s[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}_();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),p.before&&p.before.call(m,m.node),f&&("object"!=typeof m.node||null===m.node||m.circular||(s.push(m),_(),a(m.keys,function(t,r){i.push(t),p.pre&&p.pre.call(m,m.node[t],t);var l=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=l.node),l.isLast=r==m.keys.length-1,l.isFirst=0==r,p.post&&p.post.call(m,l),i.pop()}),s.pop()),p.after&&p.after.call(m,m.node)),m}(e).node}function r(e){if("object"==typeof e&&null!==e){var t;if(o(e))t=[];else if("[object Date]"===s(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===s(e))t=new RegExp(e);else if("[object Error]"===s(e))t={message:e.message};else if(function(e){return"[object Boolean]"===s(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===s(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===s(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=function(){};n.prototype=e.constructor&&e.constructor.prototype||e.__proto__||{},t=new n}return a(l(e),function(n){t[n]=e[n]}),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var i=e[n];if(!t||!u.call(t,i)){t=void 0;break}t=t[i]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var i=e[n];if(!t||!u.call(t,i))return!1;t=t[i]}return!0},n.prototype.set=function(e,t){for(var n=this.value,i=0;i<e.length-1;i++){var r=e[i];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[i]]=t,t},n.prototype.map=function(e){return i(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=i(this.value,e,!1),this.value},n.prototype.reduce=function(e,t){var n=1===arguments.length,i=n?this.value:t;return this.forEach(function(t){this.isRoot&&n||(i=e.call(this,i,t))}),i},n.prototype.paths=function(){var e=[];return this.forEach(function(t){e.push(this.path)}),e},n.prototype.nodes=function(){var e=[];return this.forEach(function(t){e.push(this.node)}),e},n.prototype.clone=function(){var e=[],t=[];return function n(i){for(var s=0;s<e.length;s++)if(e[s]===i)return t[s];if("object"==typeof i&&null!==i){var o=r(i);return e.push(i),t.push(o),a(l(i),function(e){o[e]=n(i[e])}),e.pop(),t.pop(),o}return i}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function s(e){return Object.prototype.toString.call(e)}var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};a(l(n.prototype),function(e){t[e]=function(t){var i=[].slice.call(arguments,1),r=new n(t);return r[e].apply(r,i)}});var u=Object.hasOwnProperty||function(e,t){return t in e}}),xe=we;function we(e){if(!(this instanceof we))return new we(e);this._bbox=e||[1/0,1/0,-1/0,-1/0],this._valid=!!e}we.prototype.include=function(e){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[0]),this._bbox[3]=Math.max(this._bbox[3],e[1]),this},we.prototype.equals=function(e){var t;return t=e instanceof we?e.bbox():e,this._bbox[0]==t[0]&&this._bbox[1]==t[1]&&this._bbox[2]==t[2]&&this._bbox[3]==t[3]},we.prototype.center=function(e){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},we.prototype.union=function(e){var t;return this._valid=!0,t=e instanceof we?e.bbox():e,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[2]),this._bbox[3]=Math.max(this._bbox[3],t[3]),this},we.prototype.bbox=function(){return this._valid?this._bbox:null},we.prototype.contains=function(e){if(!e)return this._fastContains();if(!this._valid)return null;var t=e[0],n=e[1];return this._bbox[0]<=t&&this._bbox[1]<=n&&this._bbox[2]>=t&&this._bbox[3]>=n},we.prototype.intersect=function(e){return this._valid?(t=e instanceof we?e.bbox():e,!(this._bbox[0]>t[2]||this._bbox[2]<t[0]||this._bbox[3]<t[1]||this._bbox[1]>t[3])):null;var t},we.prototype._fastContains=function(){return this._valid?new Function("ll","return"+this._bbox[0]+"<=ll[0]&&"+this._bbox[1]+"<=ll[1]&&"+this._bbox[2]+">=ll[0]&&"+this._bbox[3]+">=ll[1]"):new Function("return null;")},we.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Me={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Te=Object.keys(Me),Se=function(e){return ke(e).bbox()};function ke(e){for(var t=xe(),n=function(e){if(!e)return[];var t=ve(ge(e)),n=[];return t.features.forEach(function(e){e.geometry&&(n=n.concat(function e(t){return Array.isArray(t)&&t.length&&"number"==typeof t[0]?[t]:t.reduce(function(t,n){return Array.isArray(n)&&Array.isArray(n[0])?t.concat(e(n)):(t.push(n),t)},[])}(e.geometry.coordinates)))}),n}(e),i=0;i<n.length;i++)t.include(n[i]);return t}function Ce(e,t){var n=-90,i=90,r=-90,l=90,s=270,o=-270;e.forEach(function(e){var t=Se(e),a=t[1],u=t[3],c=t[0],h=t[2];a>n&&(n=a),u<i&&(i=u),u>r&&(r=u),a<l&&(l=a),c<s&&(s=c),h>o&&(o=h)});var a=t;return n+a.lat>85&&(a.lat=85-n),r+a.lat>90&&(a.lat=90-r),i+a.lat<-85&&(a.lat=-85-i),l+a.lat<-90&&(a.lat=-90-l),s+a.lng<=-270&&(a.lng+=360*Math.ceil(Math.abs(a.lng)/360)),o+a.lng>=270&&(a.lng-=360*Math.ceil(Math.abs(a.lng)/360)),a}function Le(e,t){var n=Ce(e.map(function(e){return e.toGeoJSON()}),t);e.forEach(function(e){var t,i=e.getCoordinates(),r=function(e){var t={lng:e[0]+n.lng,lat:e[1]+n.lat};return[t.lng,t.lat]},l=function(e){return e.map(function(e){return r(e)})};e.type===m?t=r(i):e.type===f||"MultiPoint"===e.type?t=i.map(r):e.type===p||"MultiLineString"===e.type?t=i.map(l):"MultiPolygon"===e.type&&(t=i.map(function(e){return e.map(function(e){return l(e)})})),e.incomingCoords(t)})}Se.polygon=function(e){return ke(e).polygon()},Se.bboxify=function(e){return be(e).map(function(e){e&&Te.some(function(t){return!!e[t]&&-1!==Me[t].indexOf(e.type)})&&(e.bbox=ke(e).bbox(),this.update(e))})};var Ee={onSetup:function(e){var t=this,n={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:e.featureIds||[]};return this.setSelected(n.initiallySelectedFeatureIds.filter(function(e){return void 0!==t.getFeature(e)})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),n},fireUpdate:function(){this.map.fire(v,{action:"move",features:this.getSelected().map(function(e){return e.toGeoJSON()})})},fireActionable:function(){var e=this,t=this.getSelected(),n=t.filter(function(t){return e.isInstanceOf("MultiFeature",t)}),i=!1;if(t.length>1){i=!0;var r=t[0].type.replace("Multi","");t.forEach(function(e){e.type.replace("Multi","")!==r&&(i=!1)})}this.setActionableState({combineFeatures:i,uncombineFeatures:n.length>0,trash:t.length>0})},getUniqueIds:function(e){return e.length?e.map(function(e){return e.properties.id}).filter(function(e){return void 0!==e}).reduce(function(e,t){return e.add(t),e},new L).values():[]},stopExtendedInteractions:function(e){e.boxSelectElement&&(e.boxSelectElement.parentNode&&e.boxSelectElement.parentNode.removeChild(e.boxSelectElement),e.boxSelectElement=null),this.map.dragPan.enable(),e.boxSelecting=!1,e.canBoxSelect=!1,e.dragMoving=!1,e.canDragMove=!1},onStop:function(){me(this)},onMouseMove:function(e){return this.stopExtendedInteractions(e),!0},onMouseOut:function(e){return!e.dragMoving||this.fireUpdate()}};Ee.onTap=Ee.onClick=function(e,t){return le(t)?this.clickAnywhere(e,t):ne(w)(t)?this.clickOnVertex(e,t):(n=t).featureTarget&&n.featureTarget.properties&&n.featureTarget.properties.meta===b?this.clickOnFeature(e,t):void 0;var n},Ee.clickAnywhere=function(e){var t=this,n=this.getSelectedIds();n.length&&(this.clearSelectedFeatures(),n.forEach(function(e){return t.doRender(e)})),me(this),this.stopExtendedInteractions(e)},Ee.clickOnVertex=function(e,t){this.changeMode(g.DIRECT_SELECT,{featureId:t.featureTarget.properties.parent,coordPath:t.featureTarget.properties.coord_path,startPos:t.lngLat}),this.updateUIClasses({mouse:a})},Ee.startOnActiveFeature=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),this.doRender(t.featureTarget.properties.id),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},Ee.clickOnFeature=function(e,t){var n=this;_e(this),this.stopExtendedInteractions(e);var i=oe(t),r=this.getSelectedIds(),l=t.featureTarget.properties.id,s=this.isSelected(l);if(!i&&s&&this.getFeature(l).type!==m)return this.changeMode(g.DIRECT_SELECT,{featureId:l});s&&i?(this.deselect(l),this.updateUIClasses({mouse:u}),1===r.length&&me(this)):!s&&i?(this.select(l),this.updateUIClasses({mouse:a})):s||i||(r.forEach(function(e){return n.doRender(e)}),this.setSelected(l),this.updateUIClasses({mouse:a})),this.doRender(l)},Ee.onMouseDown=function(e,t){return ie(t)?this.startOnActiveFeature(e,t):this.drawConfig.boxSelect&&(n=t).originalEvent&&n.originalEvent.shiftKey&&0===n.originalEvent.button?this.startBoxSelect(e,t):void 0;var n},Ee.startBoxSelect=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),e.boxSelectStartLocation=de(t.originalEvent,this.map.getContainer()),e.canBoxSelect=!0},Ee.onTouchStart=function(e,t){if(ie(t))return this.startOnActiveFeature(e,t)},Ee.onDrag=function(e,t){return e.canDragMove?this.dragMove(e,t):this.drawConfig.boxSelect&&e.canBoxSelect?this.whileBoxSelect(e,t):void 0},Ee.whileBoxSelect=function(e,t){e.boxSelecting=!0,this.updateUIClasses({mouse:o}),e.boxSelectElement||(e.boxSelectElement=document.createElement("div"),e.boxSelectElement.classList.add("mapbox-gl-draw_boxselect"),this.map.getContainer().appendChild(e.boxSelectElement));var n=de(t.originalEvent,this.map.getContainer()),i=Math.min(e.boxSelectStartLocation.x,n.x),r=Math.max(e.boxSelectStartLocation.x,n.x),l=Math.min(e.boxSelectStartLocation.y,n.y),s=Math.max(e.boxSelectStartLocation.y,n.y),a="translate("+i+"px,"+l+"px)";e.boxSelectElement.style.transform=a,e.boxSelectElement.style.WebkitTransform=a,e.boxSelectElement.style.width=r-i+"px",e.boxSelectElement.style.height=s-l+"px"},Ee.dragMove=function(e,t){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};Le(this.getSelected(),n),e.dragMoveLocation=t.lngLat},Ee.onMouseUp=function(e,t){var n=this;if(e.dragMoving)this.fireUpdate();else if(e.boxSelecting){var i=[e.boxSelectStartLocation,de(t.originalEvent,this.map.getContainer())],r=this.featuresAt(null,i,"click"),l=this.getUniqueIds(r).filter(function(e){return!n.isSelected(e)});l.length&&(this.select(l),l.forEach(function(e){return n.doRender(e)}),this.updateUIClasses({mouse:a}))}this.stopExtendedInteractions(e)},Ee.toDisplayFeatures=function(e,t,n){t.properties.active=this.isSelected(t.properties.id)?M:T,n(t),this.fireActionable(),t.properties.active===M&&t.geometry.type!==m&&fe(t).forEach(n)},Ee.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},Ee.onCombineFeatures=function(){var e=this.getSelected();if(!(0===e.length||e.length<2)){for(var t=[],n=[],i=e[0].type.replace("Multi",""),r=0;r<e.length;r++){var l=e[r];if(l.type.replace("Multi","")!==i)return;l.type.includes("Multi")?l.getCoordinates().forEach(function(e){t.push(e)}):t.push(l.getCoordinates()),n.push(l.toGeoJSON())}if(n.length>1){var s=this.newFeature({type:d,properties:n[0].properties,geometry:{type:"Multi"+i,coordinates:t}});this.addFeature(s),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([s.id]),this.map.fire("draw.combine",{createdFeatures:[s.toGeoJSON()],deletedFeatures:n})}this.fireActionable()}},Ee.onUncombineFeatures=function(){var e=this,t=this.getSelected();if(0!==t.length){for(var n=[],i=[],r=function(r){var l=t[r];e.isInstanceOf("MultiFeature",l)&&(l.getFeatures().forEach(function(t){e.addFeature(t),t.properties=l.properties,n.push(t.toGeoJSON()),e.select([t.id])}),e.deleteFeature(l.id,{silent:!0}),i.push(l.toGeoJSON()))},l=0;l<t.length;l++)r(l);n.length>1&&this.map.fire("draw.uncombine",{createdFeatures:n,deletedFeatures:i}),this.fireActionable()}};var Pe=ne(w),De=ne(x),Oe={fireUpdate:function(){this.map.fire(v,{action:"change_coordinates",features:this.getSelected().map(function(e){return e.toGeoJSON()})})},fireActionable:function(e){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:e.selectedCoordPaths.length>0})},startDragging:function(e,t){this.map.dragPan.disable(),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},stopDragging:function(e){this.map.dragPan.enable(),e.dragMoving=!1,e.canDragMove=!1,e.dragMoveLocation=null},onVertex:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties,i=e.selectedCoordPaths.indexOf(n.coord_path);oe(t)||-1!==i?oe(t)&&-1===i&&e.selectedCoordPaths.push(n.coord_path):e.selectedCoordPaths=[n.coord_path];var r=this.pathsToCoordinates(e.featureId,e.selectedCoordPaths);this.setSelectedCoordinates(r)},onMidpoint:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties;e.feature.addCoordinate(n.coord_path,n.lng,n.lat),this.fireUpdate(),e.selectedCoordPaths=[n.coord_path]},pathsToCoordinates:function(e,t){return t.map(function(t){return{feature_id:e,coord_path:t}})},onFeature:function(e,t){0===e.selectedCoordPaths.length?this.startDragging(e,t):this.stopDragging(e)},dragFeature:function(e,t,n){Le(this.getSelected(),n),e.dragMoveLocation=t.lngLat},dragVertex:function(e,t,n){for(var i=e.selectedCoordPaths.map(function(t){return e.feature.getCoordinate(t)}),r=Ce(i.map(function(e){return{type:d,properties:{},geometry:{type:m,coordinates:e}}}),n),l=0;l<i.length;l++){var s=i[l];e.feature.updateCoordinate(e.selectedCoordPaths[l],s[0]+r.lng,s[1]+r.lat)}},clickNoTarget:function(){this.changeMode(g.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(g.SIMPLE_SELECT)},clickActiveFeature:function(e){e.selectedCoordPaths=[],this.clearSelectedCoordinates(),e.feature.changed()},onSetup:function(e){var t=e.featureId,n=this.getFeature(t);if(!n)throw new Error("You must provide a featureId to enter direct_select mode");if(n.type===m)throw new TypeError("direct_select mode doesn't handle point features");var i={featureId:t,feature:n,dragMoveLocation:e.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:e.coordPath?[e.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(t,i.selectedCoordPaths)),this.setSelected(t),_e(this),this.setActionableState({trash:!0}),i},onStop:function(){me(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(e,t,n){e.featureId===t.properties.id?(t.properties.active=M,n(t),fe(t,{map:this.map,midpoints:!0,selectedPaths:e.selectedCoordPaths}).forEach(n)):(t.properties.active=T,n(t)),this.fireActionable(e)},onTrash:function(e){e.selectedCoordPaths.sort(function(e,t){return t.localeCompare(e,"en",{numeric:!0})}).forEach(function(t){return e.feature.removeCoordinate(t)}),this.fireUpdate(),e.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(e),!1===e.feature.isValid()&&(this.deleteFeature([e.featureId]),this.changeMode(g.SIMPLE_SELECT,{}))},onMouseMove:function(e,t){var n=ie(t),i=Pe(t),r=0===e.selectedCoordPaths.length;return this.updateUIClasses(n&&r||i&&!r?{mouse:a}:{mouse:c}),this.stopDragging(e),!0},onMouseOut:function(e){return e.dragMoving&&this.fireUpdate(),!0}};Oe.onTouchStart=Oe.onMouseDown=function(e,t){return Pe(t)?this.onVertex(e,t):ie(t)?this.onFeature(e,t):De(t)?this.onMidpoint(e,t):void 0},Oe.onDrag=function(e,t){if(!0===e.canDragMove){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};e.selectedCoordPaths.length>0?this.dragVertex(e,t,n):this.dragFeature(e,t,n),e.dragMoveLocation=t.lngLat}},Oe.onClick=function(e,t){return le(t)?this.clickNoTarget(e,t):ie(t)?this.clickActiveFeature(e,t):re(t)?this.clickInactive(e,t):void this.stopDragging(e)},Oe.onTap=function(e,t){return le(t)?this.clickNoTarget(e,t):ie(t)?this.clickActiveFeature(e,t):re(t)?this.clickInactive(e,t):void 0},Oe.onTouchEnd=Oe.onMouseUp=function(e){e.dragMoving&&this.fireUpdate(),this.stopDragging(e)};var Ae={};function Ie(e,t){return!!e.lngLat&&e.lngLat.lng===t[0]&&e.lngLat.lat===t[1]}Ae.onSetup=function(){var e=this.newFeature({type:d,properties:{},geometry:{type:m,coordinates:[]}});return this.addFeature(e),this.clearSelectedFeatures(),this.updateUIClasses({mouse:o}),this.activateUIButton(h.POINT),this.setActionableState({trash:!0}),{point:e}},Ae.stopDrawingAndRemove=function(e){this.deleteFeature([e.point.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT)},Ae.onTap=Ae.onClick=function(e,t){this.updateUIClasses({mouse:a}),e.point.updateCoordinate("",t.lngLat.lng,t.lngLat.lat),this.map.fire(y,{features:[e.point.toGeoJSON()]}),this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.point.id]})},Ae.onStop=function(e){this.activateUIButton(),e.point.getCoordinate().length||this.deleteFeature([e.point.id],{silent:!0})},Ae.toDisplayFeatures=function(e,t,n){var i=t.properties.id===e.point.id;if(t.properties.active=i?M:T,!i)return n(t)},Ae.onTrash=Ae.stopDrawingAndRemove,Ae.onKeyUp=function(e,t){if(ae(t)||ue(t))return this.stopDrawingAndRemove(e,t)};var Fe={onSetup:function(){var e=this.newFeature({type:d,properties:{},geometry:{type:p,coordinates:[[]]}});return this.addFeature(e),this.clearSelectedFeatures(),_e(this),this.updateUIClasses({mouse:o}),this.activateUIButton(h.POLYGON),this.setActionableState({trash:!0}),{polygon:e,currentVertexPosition:0}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&Ie(t,e.polygon.coordinates[0][e.currentVertexPosition-1]))return this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.polygon.id]});this.updateUIClasses({mouse:o}),e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),e.currentVertexPosition++,e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},onMouseMove:function(e,t){e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),se(t)&&this.updateUIClasses({mouse:u})}};Fe.onTap=Fe.onClick=function(e,t){return se(t)?this.clickOnVertex(e,t):this.clickAnywhere(e,t)},Fe.onKeyUp=function(e,t){ae(t)?(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT)):ue(t)&&this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},Fe.onStop=function(e){this.updateUIClasses({mouse:c}),me(this),this.activateUIButton(),void 0!==this.getFeature(e.polygon.id)&&(e.polygon.removeCoordinate("0."+e.currentVertexPosition),e.polygon.isValid()?this.map.fire(y,{features:[e.polygon.toGeoJSON()]}):(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT,{},{silent:!0})))},Fe.toDisplayFeatures=function(e,t,n){var i=t.properties.id===e.polygon.id;if(t.properties.active=i?M:T,!i)return n(t);if(0!==t.geometry.coordinates.length){var r=t.geometry.coordinates[0].length;if(!(r<3)){if(t.properties.meta=b,n(pe(e.polygon.id,t.geometry.coordinates[0][0],"0.0",!1)),r>3){var l=t.geometry.coordinates[0].length-3;n(pe(e.polygon.id,t.geometry.coordinates[0][l],"0."+l,!1))}if(r<=4&&(n({type:d,properties:t.properties,geometry:{coordinates:[[t.geometry.coordinates[0][0][0],t.geometry.coordinates[0][0][1]],[t.geometry.coordinates[0][1][0],t.geometry.coordinates[0][1][1]]],type:f}}),3===r))return;return n(t)}}},Fe.onTrash=function(e){this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT)};var Ye={onSetup:function(e){var t,n,i=(e=e||{}).featureId,r="forward";if(i){if(!(t=this.getFeature(i)))throw new Error("Could not find a feature with the provided featureId");var l=e.from;if(l&&"Feature"===l.type&&l.geometry&&"Point"===l.geometry.type&&(l=l.geometry),l&&"Point"===l.type&&l.coordinates&&2===l.coordinates.length&&(l=l.coordinates),!l||!Array.isArray(l))throw new Error("Please use the `from` property to indicate which point to continue the line from");var s=t.coordinates.length-1;if(t.coordinates[s][0]===l[0]&&t.coordinates[s][1]===l[1])t.addCoordinate.apply(t,[n=s+1].concat(t.coordinates[s]));else{if(t.coordinates[0][0]!==l[0]||t.coordinates[0][1]!==l[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");r="backwards",t.addCoordinate.apply(t,[n=0].concat(t.coordinates[0]))}}else t=this.newFeature({type:d,properties:{},geometry:{type:f,coordinates:[]}}),n=0,this.addFeature(t);return this.clearSelectedFeatures(),_e(this),this.updateUIClasses({mouse:o}),this.activateUIButton(h.LINE),this.setActionableState({trash:!0}),{line:t,currentVertexPosition:n,direction:r}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&Ie(t,e.line.coordinates[e.currentVertexPosition-1])||"backwards"===e.direction&&Ie(t,e.line.coordinates[e.currentVertexPosition+1]))return this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.line.id]});this.updateUIClasses({mouse:o}),e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),"forward"===e.direction?(e.currentVertexPosition++,e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)):e.line.addCoordinate(0,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.line.id]})},onMouseMove:function(e,t){e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),se(t)&&this.updateUIClasses({mouse:u})}};Ye.onTap=Ye.onClick=function(e,t){if(se(t))return this.clickOnVertex(e,t);this.clickAnywhere(e,t)},Ye.onKeyUp=function(e,t){ue(t)?this.changeMode(g.SIMPLE_SELECT,{featureIds:[e.line.id]}):ae(t)&&(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT))},Ye.onStop=function(e){me(this),this.activateUIButton(),void 0!==this.getFeature(e.line.id)&&(e.line.removeCoordinate(""+e.currentVertexPosition),e.line.isValid()?this.map.fire(y,{features:[e.line.toGeoJSON()]}):(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT,{},{silent:!0})))},Ye.onTrash=function(e){this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(g.SIMPLE_SELECT)},Ye.toDisplayFeatures=function(e,t,n){var i=t.properties.id===e.line.id;if(t.properties.active=i?M:T,!i)return n(t);t.geometry.coordinates.length<2||(t.properties.meta=b,n(pe(e.line.id,t.geometry.coordinates["forward"===e.direction?t.geometry.coordinates.length-2:1],""+("forward"===e.direction?t.geometry.coordinates.length-2:1),!1)),n(t))};var ze={simple_select:Ee,direct_select:Oe,draw_point:Ae,draw_polygon:Fe,draw_line_string:Ye},Re={defaultMode:g.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","!1"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","!0"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","!1"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","!0"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","!1"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","!0"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","!1"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","!1"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","!0"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","!0"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:ze,controls:{},userProperties:!1},Be={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},je={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function Ne(e,t){return e.map(function(e){return e.source?e:K(e,{id:e.id+"."+t,source:"hot"===t?l:s})})}var He=Y(function(e,t){var n="[object Arguments]",i="[object Map]",r="[object Object]",l="[object Set]",s=/^\[object .+?Constructor\]$/,o=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a[n]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a[i]=a["[object Number]"]=a[r]=a["[object RegExp]"]=a[l]=a["[object String]"]=a["[object WeakMap]"]=!1;var u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,h=u||c||Function("return this")(),d=t&&!t.nodeType&&t,p=d&&e&&!e.nodeType&&e,f=p&&p.exports===d,m=f&&u.process,_=function(){try{return m&&m.binding&&m.binding("util")}catch(Se){}}(),g=_&&_.isTypedArray;function y(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function v(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function b(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var x,w,M,T=Array.prototype,S=Object.prototype,k=h["__core-js_shared__"],C=Function.prototype.toString,L=S.hasOwnProperty,E=(x=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",P=S.toString,D=RegExp("^"+C.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=f?h.Buffer:void 0,A=h.Symbol,I=h.Uint8Array,F=S.propertyIsEnumerable,Y=T.splice,z=A?A.toStringTag:void 0,R=Object.getOwnPropertySymbols,B=O?O.isBuffer:void 0,j=(w=Object.keys,M=Object,function(e){return w(M(e))}),N=de(h,"DataView"),H=de(h,"Map"),V=de(h,"Promise"),U=de(h,"Set"),W=de(h,"WeakMap"),$=de(Object,"create"),G=_e(N),q=_e(H),Z=_e(V),X=_e(U),J=_e(W),K=A?A.prototype:void 0,Q=K?K.valueOf:void 0;function ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ne;++t<n;)this.add(e[t])}function re(e){var t=this.__data__=new te(e);this.size=t.size}function le(e,t){for(var n=e.length;n--;)if(ge(e[n][0],t))return n;return-1}function se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=L.call(e,z),n=e[z];try{e[z]=void 0;var i=!0}catch(l){}var r=P.call(e);return i&&(t?e[z]=n:delete e[z]),r}(e):P.call(e)}function oe(e){return Te(e)&&se(e)==n}function ae(e,t,s,o,a){return e===t||(null==e||null==t||!Te(e)&&!Te(t)?e!=e&&t!=t:function(e,t,s,o,a,u){var c=ve(e),h=ve(t),d=c?"[object Array]":fe(e),p=h?"[object Array]":fe(t),f=(d=d==n?r:d)==r,m=(p=p==n?r:p)==r,_=d==p;if(_&&be(e)){if(!be(t))return!1;c=!0,f=!1}if(_&&!f)return u||(u=new re),c||ke(e)?ue(e,t,s,o,a,u):function(e,t,n,r,s,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new I(e),new I(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ge(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=v;case l:if(u||(u=b),e.size!=t.size&&!(1&r))return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var h=ue(u(e),u(t),r,s,o,a);return a.delete(e),h;case"[object Symbol]":if(Q)return Q.call(e)==Q.call(t)}return!1}(e,t,d,s,o,a,u);if(!(1&s)){var g=f&&L.call(e,"__wrapped__"),y=m&&L.call(t,"__wrapped__");if(g||y){var x=g?e.value():e,w=y?t.value():t;return u||(u=new re),a(x,w,s,o,u)}}return!!_&&(u||(u=new re),function(e,t,n,i,r,l){var s=1&n,o=ce(e),a=o.length;if(a!=ce(t).length&&!s)return!1;for(var u=a;u--;){var c=o[u];if(!(s?c in t:L.call(t,c)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var d=!0;l.set(e,t),l.set(t,e);for(var p=s;++u<a;){var f=e[c=o[u]],m=t[c];if(i)var _=s?i(m,f,c,t,e,l):i(f,m,c,e,t,l);if(!(void 0===_?f===m||r(f,m,n,i,l):_)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var g=e.constructor,y=t.constructor;g==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y||(d=!1)}return l.delete(e),l.delete(t),d}(e,t,s,o,a,u))}(e,t,s,o,ae,a))}function ue(e,t,n,i,r,l){var s=1&n,o=e.length,a=t.length;if(o!=a&&!(s&&a>o))return!1;var u=l.get(e);if(u&&l.get(t))return u==t;var c=-1,h=!0,d=2&n?new ie:void 0;for(l.set(e,t),l.set(t,e);++c<o;){var p=e[c],f=t[c];if(i)var m=s?i(f,p,c,t,e,l):i(p,f,c,e,t,l);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!y(t,function(e,t){if(!d.has(t)&&(p===e||r(p,e,n,i,l)))return d.push(t)})){h=!1;break}}else if(p!==f&&!r(p,f,n,i,l)){h=!1;break}}return l.delete(e),l.delete(t),h}function ce(e){return n=pe,i=function(e){return null!=(t=e)&&we(t.length)&&!xe(t)?function(e,t){var n=ve(e),i=!n&&ye(e),r=!n&&!i&&be(e),l=!n&&!i&&!r&&ke(e),s=n||i||r||l,o=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],a=o.length;for(var u in e)!t&&!L.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||l&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||me(u,a))||o.push(u);return o}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||S))return j(e);var t,n,i=[];for(var r in Object(e))L.call(e,r)&&"constructor"!=r&&i.push(r);return i}(e);var t}(t=e),ve(t)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(t));var t,n,i}function he(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function de(e,t){var n,i=null==(n=e)?void 0:n[t];return function(e){return!(!Me(e)||(t=e,E&&E in t))&&(xe(e)?D:s).test(_e(e));var t}(i)?i:void 0}ee.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return L.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:L.call(t,e)},ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},te.prototype.clear=function(){this.__data__=[],this.size=0},te.prototype.delete=function(e){var t=this.__data__,n=le(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},te.prototype.get=function(e){var t=this.__data__,n=le(t,e);return n<0?void 0:t[n][1]},te.prototype.has=function(e){return le(this.__data__,e)>-1},te.prototype.set=function(e,t){var n=this.__data__,i=le(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ne.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(H||te),string:new ee}},ne.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},ne.prototype.get=function(e){return he(this,e).get(e)},ne.prototype.has=function(e){return he(this,e).has(e)},ne.prototype.set=function(e,t){var n=he(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},re.prototype.clear=function(){this.__data__=new te,this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof te){var i=n.__data__;if(!H||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ne(i)}return n.set(e,t),this.size=n.size,this};var pe=R?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,l=[];++n<i;){var s=e[n];t(s)&&(l[r++]=s)}return l}(R(e),function(t){return F.call(e,t)}))}:function(){return[]},fe=se;function me(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){if(null!=e){try{return C.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ge(e,t){return e===t||e!=e&&t!=t}(N&&"[object DataView]"!=fe(new N(new ArrayBuffer(1)))||H&&fe(new H)!=i||V&&"[object Promise]"!=fe(V.resolve())||U&&fe(new U)!=l||W&&"[object WeakMap]"!=fe(new W))&&(fe=function(e){var t=se(e),n=t==r?e.constructor:void 0,s=n?_e(n):"";if(s)switch(s){case G:return"[object DataView]";case q:return i;case Z:return"[object Promise]";case X:return l;case J:return"[object WeakMap]"}return t});var ye=oe(function(){return arguments}())?oe:function(e){return Te(e)&&L.call(e,"callee")&&!F.call(e,"callee")},ve=Array.isArray,be=B||function(){return!1};function xe(e){if(!Me(e))return!1;var t=se(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function we(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Me(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Se,ke=g?(Se=g,function(e){return Se(e)}):function(e){return Te(e)&&we(e.length)&&!!a[se(e)]};e.exports=function(e,t){return ae(e,t)}}),Ve={Polygon:N,LineString:j,Point:B,MultiPolygon:U,MultiLineString:U,MultiPoint:U};var Ue=function(e,t){var n={options:e=function(e){void 0===e&&(e={});var t=K(e);return e.controls||(t.controls={}),t.controls=K(!1===e.displayControlsDefault?je:Be,e.controls),(t=K(Re,t)).styles=Ne(t.styles,"cold").concat(Ne(t.styles,"hot")),t}(e)};t=function(e,t){return t.modes=g,t.getFeatureIdsAt=function(t){return P.click({point:t},null,e).map(function(e){return e.properties.id})},t.getSelectedIds=function(){return e.store.getSelectedIds()},t.getSelected=function(){return{type:_,features:e.store.getSelectedIds().map(function(t){return e.store.get(t)}).map(function(e){return e.toGeoJSON()})}},t.getSelectedPoints=function(){return{type:_,features:e.store.getSelectedCoordinates().map(function(e){return{type:d,properties:{},geometry:{type:m,coordinates:e.coordinates}}})}},t.set=function(n){if(void 0===n.type||n.type!==_||!Array.isArray(n.features))throw new Error("Invalid FeatureCollection");var i=e.store.createRenderBatch(),r=e.store.getAllIds().slice(),l=t.add(n),s=new L(l);return(r=r.filter(function(e){return!s.has(e)})).length&&t.delete(r),i(),l},t.add=function(t){var n=JSON.parse(JSON.stringify(ge(t))).features.map(function(t){if(t.id=t.id||z(),null===t.geometry)throw new Error("Invalid geometry:null");if(void 0===e.store.get(t.id)||e.store.get(t.id).type!==t.geometry.type){var n=Ve[t.geometry.type];if(void 0===n)throw new Error("Invalid geometry type:"+t.geometry.type+".");var i=new n(e,t);e.store.add(i)}else{var r=e.store.get(t.id);r.properties=t.properties,He(r.getCoordinates(),t.geometry.coordinates)||r.incomingCoords(t.geometry.coordinates)}return t.id});return e.store.render(),n},t.get=function(t){var n=e.store.get(t);if(n)return n.toGeoJSON()},t.getAll=function(){return{type:_,features:e.store.getAll().map(function(e){return e.toGeoJSON()})}},t.delete=function(n){return e.store.delete(n,{silent:!0}),t.getMode()!==g.DIRECT_SELECT||e.store.getSelectedIds().length?e.store.render():e.events.changeMode(g.SIMPLE_SELECT,void 0,{silent:!0}),t},t.deleteAll=function(){return e.store.delete(e.store.getAllIds(),{silent:!0}),t.getMode()===g.DIRECT_SELECT?e.events.changeMode(g.SIMPLE_SELECT,void 0,{silent:!0}):e.store.render(),t},t.changeMode=function(n,i){return void 0===i&&(i={}),n===g.SIMPLE_SELECT&&t.getMode()===g.SIMPLE_SELECT?(r=i.featureIds||[],l=e.store.getSelectedIds(),r.length===l.length&&JSON.stringify(r.map(function(e){return e}).sort())===JSON.stringify(l.map(function(e){return e}).sort())||(e.store.setSelected(i.featureIds,{silent:!0}),e.store.render()),t):(n===g.DIRECT_SELECT&&t.getMode()===g.DIRECT_SELECT&&i.featureId===e.store.getSelectedIds()[0]||e.events.changeMode(n,i,{silent:!0}),t);var r,l},t.getMode=function(){return e.events.getMode()},t.trash=function(){return e.events.trash({silent:!0}),t},t.combineFeatures=function(){return e.events.combineFeatures({silent:!0}),t},t.uncombineFeatures=function(){return e.events.uncombineFeatures({silent:!0}),t},t.setFeatureProperty=function(n,i,r){return e.store.setFeatureProperty(n,i,r),t},t}(n,t),n.api=t;var i=te(n);return t.onAdd=i.onAdd,t.onRemove=i.onRemove,t.types=h,t.options=e,t};function We(e){Ue(e,this)}return We.modes=ze,We}()},2280:function(e){!function(t){"use strict";function n(e){return parseInt(e)===e}function i(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function r(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw new Error("Array contains invalid value:"+e);return new Uint8Array(e)}if(n(e.length)&&i(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function l(e){return new Uint8Array(e)}function s(e,t,n,i,r){(null!=i||null!=r)&&(e=e.slice?e.slice(i,r):Array.prototype.slice.call(e,i,r)),t.set(e,n)}var o,a={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var i=e.charCodeAt(n++);37===i?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(i)}return r(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var i=e[n];i<128?(t.push(String.fromCharCode(i)),n++):i>191&&i<224?(t.push(String.fromCharCode((31&i)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&i)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(o[(240&i)>>4]+o[15&i])}return t.join("")}}),c={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],_=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],x=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],w=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],T=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function k(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var C=function(e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:r(e,!0)}),this._prepare()};C.prototype._prepare=function(){var e=c[this.key.length];if(null==e)throw new Error("invalid key size(must be 16,24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,i=4*(e+1),r=this.key.length/4,l=k(this.key);for(t=0;t<r;t++)this._Ke[n=t>>2][t%4]=l[t],this._Kd[e-n][t%4]=l[t];for(var s,o=0,a=r;a<i;){if(l[0]^=d[(s=l[r-1])>>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^h[o]<<24,o+=1,8!=r)for(t=1;t<r;t++)l[t]^=l[t-1];else{for(t=1;t<r/2;t++)l[t]^=l[t-1];for(l[r/2]^=d[255&(s=l[r/2-1])]^d[s>>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24,t=r/2+1;t<r;t++)l[t]^=l[t-1]}for(t=0;t<r&&a<i;)this._Ke[u=a>>2][p=a%4]=l[t],this._Kd[e-u][p]=l[t++],a++}for(var u=1;u<e;u++)for(var p=0;p<4;p++)this._Kd[u][p]=w[(s=this._Kd[u][p])>>24&255]^M[s>>16&255]^T[s>>8&255]^S[255&s]},C.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size(must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],i=k(e),r=0;r<4;r++)i[r]^=this._Ke[0][r];for(var s=1;s<t;s++){for(r=0;r<4;r++)n[r]=f[i[r]>>24&255]^m[i[(r+1)%4]>>16&255]^_[i[(r+2)%4]>>8&255]^g[255&i[(r+3)%4]]^this._Ke[s][r];i=n.slice()}var o,a=l(16);for(r=0;r<4;r++)a[4*r]=255&(d[i[r]>>24&255]^(o=this._Ke[t][r])>>24),a[4*r+1]=255&(d[i[(r+1)%4]>>16&255]^o>>16),a[4*r+2]=255&(d[i[(r+2)%4]>>8&255]^o>>8),a[4*r+3]=255&(d[255&i[(r+3)%4]]^o);return a},C.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size(must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],i=k(e),r=0;r<4;r++)i[r]^=this._Kd[0][r];for(var s=1;s<t;s++){for(r=0;r<4;r++)n[r]=y[i[r]>>24&255]^v[i[(r+3)%4]>>16&255]^b[i[(r+2)%4]>>8&255]^x[255&i[(r+1)%4]]^this._Kd[s][r];i=n.slice()}var o,a=l(16);for(r=0;r<4;r++)a[4*r]=255&(p[i[r]>>24&255]^(o=this._Kd[t][r])>>24),a[4*r+1]=255&(p[i[(r+3)%4]>>16&255]^o>>16),a[4*r+2]=255&(p[i[(r+2)%4]>>8&255]^o>>8),a[4*r+3]=255&(p[255&i[(r+1)%4]]^o);return a};var L=function(e){if(!(this instanceof L))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new C(e)};L.prototype.encrypt=function(e){if((e=r(e)).length%16!=0)throw new Error("invalid plaintext size(must be multiple of 16 bytes)");for(var t=l(e.length),n=l(16),i=0;i<e.length;i+=16)s(e,n,0,i,i+16),s(n=this._aes.encrypt(n),t,i);return t},L.prototype.decrypt=function(e){if((e=r(e)).length%16!=0)throw new Error("invalid ciphertext size(must be multiple of 16 bytes)");for(var t=l(e.length),n=l(16),i=0;i<e.length;i+=16)s(e,n,0,i,i+16),s(n=this._aes.decrypt(n),t,i);return t};var E=function(e,t){if(!(this instanceof E))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size(must be 16 bytes)")}else t=l(16);this._lastCipherblock=r(t,!0),this._aes=new C(e)};E.prototype.encrypt=function(e){if((e=r(e)).length%16!=0)throw new Error("invalid plaintext size(must be multiple of 16 bytes)");for(var t=l(e.length),n=l(16),i=0;i<e.length;i+=16){s(e,n,0,i,i+16);for(var o=0;o<16;o++)n[o]^=this._lastCipherblock[o];this._lastCipherblock=this._aes.encrypt(n),s(this._lastCipherblock,t,i)}return t},E.prototype.decrypt=function(e){if((e=r(e)).length%16!=0)throw new Error("invalid ciphertext size(must be multiple of 16 bytes)");for(var t=l(e.length),n=l(16),i=0;i<e.length;i+=16){s(e,n,0,i,i+16),n=this._aes.decrypt(n);for(var o=0;o<16;o++)t[i+o]=n[o]^this._lastCipherblock[o];s(e,this._lastCipherblock,0,i,i+16)}return t};var P=function(e,t,n){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size(must be 16 size)")}else t=l(16);n||(n=1),this.segmentSize=n,this._shiftRegister=r(t,!0),this._aes=new C(e)};P.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size(must be segmentSize bytes)");for(var t,n=r(e,!0),i=0;i<n.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var l=0;l<this.segmentSize;l++)n[i+l]^=t[l];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(n,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return n},P.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size(must be segmentSize bytes)");for(var t,n=r(e,!0),i=0;i<n.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var l=0;l<this.segmentSize;l++)n[i+l]^=t[l];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(e,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return n};var D=function(e,t){if(!(this instanceof D))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size(must be 16 bytes)")}else t=l(16);this._lastPrecipher=r(t,!0),this._lastPrecipherIndex=16,this._aes=new C(e)};D.prototype.encrypt=function(e){for(var t=r(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},D.prototype.decrypt=D.prototype.encrypt;var O=function(e){if(!(this instanceof O))throw Error("Counter must be instanitated with `new`");0!==e&&!e&&(e=1),"number"==typeof e?(this._counter=l(16),this.setValue(e)):this.setBytes(e)};O.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value(must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},O.prototype.setBytes=function(e){if(16!=(e=r(e,!0)).length)throw new Error("invalid counter bytes size(must be 16 bytes)");this._counter=e},O.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var A=function(e,t){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof O||(t=new O(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new C(e)};A.prototype.encrypt=function(e){for(var t=r(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},A.prototype.decrypt=A.prototype.encrypt,e.exports={AES:C,Counter:O,ModeOfOperation:{ecb:L,cbc:E,cfb:P,ofb:D,ctr:A},utils:{hex:u,utf8:a},padding:{pkcs7:{pad:function(e){var t=16-(e=r(e,!0)).length%16,n=l(e.length+t);s(e,n);for(var i=e.length;i<n.length;i++)n[i]=t;return n},strip:function(e){if((e=r(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,i=0;i<t;i++)if(e[n+i]!==t)throw new Error("PKCS#7 invalid padding byte");var o=l(n);return s(e,o,0,0,n),o}}},_arrayTest:{coerceArray:r,createArray:l,copyArray:s}}}()},3845:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,(function(t){return e[t]}).bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(18),r=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return" ";case"NT 6.2":return"link";case"NT 6.3":return"8.1";case"NT 10.0":return"rel";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,i){void 0===i&&(i=!1);var r=e.getVersionPrecision(t),l=e.getVersionPrecision(n),s=Math.max(r,l),o=0,a=e.map([t,n],function(t){var n=s-e.getVersionPrecision(t),i=t+new Array(n+1).join(".0");return e.map(i.split("."),function(e){return new Array(20-e.length).join("use strict")+e}).reverse()});for(i&&(o=s-Math.min(r,l)),s-=1;s>=o;){if(a[0][s]>a[1][s])return 1;if(a[0][s]===a[1][s]){if(s===o)return 0;s-=1}else if(a[0][s]<a[1][s])return-1}},e.map=function(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)i.push(t(e[n]));return i},e.find=function(e,t){var n,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,i=e.length;n<i;n+=1){var r=e[n];if(t(r,n))return r}},e.assign=function(e){for(var t,n,i=e,r=arguments.length,l=new Array(r>1?r-1:0),s=1;s<r;s++)l[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(l));var o=function(){var e=l[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){i[t]=e[t]})};for(t=0,n=l.length;t<n;t+=1)o();return e},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return i.BROWSER_MAP[e]||""},e}();t.default=r,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,r=(i=n(91))&&i.__esModule?i:{default:i},l=n(18);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new r.default(e,t)},e.parse=function(e){return new r.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return l.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return l.ENGINE_MAP}},{key:"OS_MAP",get:function(){return l.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return l.PLATFORMS_MAP}}],null&&s(t.prototype,null),n&&s(t,n),e}();t.default=o,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=a(n(92)),r=a(n(93)),l=a(n(94)),s=a(n(95)),o=a(n(17));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=o.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=o.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=o.default.find(l.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return o.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},i=0,r={},l=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(r[t]=s,l+=1):"object"==typeof s&&(n[t]=s,i+=1)}),i>0){var s=Object.keys(n),a=o.default.find(s,function(e){return t.isOS(e)});if(a){var u=this.satisfies(n[a]);if(void 0!==u)return u}var c=o.default.find(s,function(e){return t.isPlatform(e)});if(c){var h=this.satisfies(n[c]);if(void 0!==h)return h}}if(l>0){var d=Object.keys(r),p=o.default.find(d,function(e){return t.isBrowser(e,!0)});if(void 0!==p)return this.compareVersion(r[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),r=o.default.getBrowserTypeByAlias(i);return t&&r&&(i=r.toLowerCase()),i===n},t.compareVersion=function(e){var t=[0],n=e,i=!1,r=this.getBrowserVersion();if("string"==typeof r)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(i=!0,n=e.substr(2)):t=[],t.push(">"===e[0]?1:-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(i=!0,n=e.substr(1)),t.indexOf(o.default.compareVersions(r,n,i))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i,r=(i=n(17))&&i.__esModule?i:{default:i},l=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=r.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=r.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=r.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=r.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=r.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=r.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=r.default.getFirstMatch(l,e)||r.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=r.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=r.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||r.default.getFirstMatch(l,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\
;