(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(t,e,n){var r=n(2),i=n(10),o=n(23),s=n(18),a=n(29),u=function(t,e,n){var l,c,f,h,d=t&u.F,p=t&u.G,v=t&u.S,g=t&u.P,m=t&u.B,y=p?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=p?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});for(l in p&&(n=e),n)f=((c=!d&&y&&void 0!==y[l])?y:n)[l],h=m&&c?a(f,r):g&&"function"==typeof f?a(Function.call,f):f,y&&s(y,l,f,t&u.U),b[l]!=f&&o(b,l,h),g&&w[l]!=f&&(w[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},,function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";var r=n(92),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(78)("wks"),i=n(45),o=n(2).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(31),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";var r=n(193),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),i=n(155),o=n(39),s=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r;
/*!
 * jQuery JavaScript Library v3.7.0
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-05-11T18:29Z
 */
/*!
 * jQuery JavaScript Library v3.7.0
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-05-11T18:29Z
 */
!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},h=f.toString,d=f.hasOwnProperty,p=d.toString,v=p.call(Object),g={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function E(t,e,n){var r,i,o=(n=n||b).createElement("script");if(o.text=t,e)for(r in w)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var x=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!m(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:"3.7.0",constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||m(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&s!==r&&(l&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[e],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,s[e]=T.extend(l,o,r)):void 0!==r&&(s[e]=r));return s},T.extend({expando:"jQuery"+("3.7.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=s(t))||"function"==typeof(n=d.call(e,"constructor")&&e.constructor)&&p.call(n)===v)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){E(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i)return t.textContent;if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=T.text(e);return n},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?T.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!x.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,s=[];if(S(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&s.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&s.push(i);return u(s)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){f["[object "+e+"]"]=e.toLowerCase()});var I=o.pop,A=o.sort,O=o.splice,N="[\\x20\\t\\r\\n\\f]",k=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(L,D)};var M=b,P=l;!function(){var t,e,r,i,s,u,l,f,h,p,v=P,m=T.expando,y=0,b=0,w=tt(),E=tt(),_=tt(),x=tt(),S=function(t,e){return t===e&&(s=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+N+"*("+D+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+N+"*\\]",j=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp(N+"+","g"),z=new RegExp("^"+N+"*,"+N+"*"),$=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),V=new RegExp(N+"|>"),B=new RegExp(j),q=new RegExp("^"+D+"$"),U={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){ut()},J=ht(function(t){return!0===t.disabled&&C(t,"fieldset")},{dir:"parentNode",next:"legend"});try{v.apply(o=a.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(t){v={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function Z(t,e,n,r){var i,o,s,a,l,c,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ut(e),e=e||u,f)){if(11!==y&&(l=G.exec(t)))if(i=l[1]){if(9===y){if(!(s=e.getElementById(i)))return n;if(s.id===i)return v.call(n,s),n}else if(p&&(s=p.getElementById(i))&&Z.contains(e,s)&&s.id===i)return v.call(n,s),n}else{if(l[2])return v.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&e.getElementsByClassName)return v.apply(n,e.getElementsByClassName(i)),n}if(!(x[t+" "]||h&&h.test(t))){if(d=t,p=e,1===y&&(V.test(t)||$.test(t))){for((p=X.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=m)),o=(c=ct(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+ft(c[o]);d=c.join(",")}try{return v.apply(n,p.querySelectorAll(d)),n}catch(e){x(t,!0)}finally{a===m&&e.removeAttribute("id")}}}return yt(t.replace(k,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[m]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et(function(e){return e=+e,et(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var n,r=t?t.ownerDocument||t:M;return r!=u&&9===r.nodeType&&r.documentElement?(l=(u=r).documentElement,f=!T.isXMLDoc(u),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,M!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),g.getById=nt(function(t){return l.appendChild(t).id=T.expando,!u.getElementsByName||!u.getElementsByName(T.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return u.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace(Y,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&f)return e.getElementsByClassName(t)},h=[],nt(function(t){var e;l.appendChild(t).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a><select id='"+m+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+N+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+m+"-]").length||h.push("~="),t.querySelectorAll("a#"+m+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")")}),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),S=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==M&&Z.contains(M,t)?-1:e===u||e.ownerDocument==M&&Z.contains(M,e)?1:i?c.call(i,t)-c.call(i,e):0:4&n?-1:1)},u):u}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(ut(t),f&&!x[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){x(e,!0)}return Z(e,u,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),T.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.call(e.attrHandle,n.toLowerCase())?r(t,n,!f):void 0;return void 0!==i?i:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],r=0,o=0;if(s=!g.sortStable,i=!g.sortStable&&a.call(t,0),A.call(t,S),s){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)O.call(t,n[r],1)}return i=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},(e=T.expr={cacheLength:50,createPseudo:et,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,K),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Y,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&w(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=Z.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,d,p=o!==s?"nextSibling":"previousSibling",v=e.parentNode,g=a&&e.nodeName.toLowerCase(),b=!u&&!a,w=!1;if(v){if(o){for(;p;){for(f=e;f=f[p];)if(a?C(f,g):1===f.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&b){for(w=(h=(l=(c=v[m]||(v[m]={}))[t]||[])[0]===y&&l[1])&&l[2],f=h&&v.childNodes[h];f=++h&&f&&f[p]||(w=h=0)||d.pop();)if(1===f.nodeType&&++w&&f===e){c[t]=[y,h,w];break}}else if(b&&(w=h=(l=(c=e[m]||(e[m]={}))[t]||[])[0]===y&&l[1]),!1===w)for(;(f=++h&&f&&f[p]||(w=h=0)||d.pop())&&((a?!C(f,g):1!==f.nodeType)||!++w||(b&&((c=f[m]||(f[m]={}))[t]=[y,w]),f!==e)););return(w-=i)===r||w%r==0&&w/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return i[m]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var r,o=i(t,n),s=o.length;s--;)t[r=c.call(t,o[s])]=!(e[r]=o[s])}):function(t){return i(t,0,r)}):i}},pseudos:{not:et(function(t){var e=[],n=[],r=mt(t.replace(k,"$1"));return r[m]?et(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return Z(t,e).length>0}}),contains:et(function(t){return t=t.replace(Y,K),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}}),lang:et(function(t){return q.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(Y,K).toLowerCase(),function(e){var n;do{if(n=f?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return H.test(t.nodeName)},input:function(t){return W.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st(function(){return[0]}),last:st(function(t,e){return[e-1]}),eq:st(function(t,e,n){return[n<0?n+e:n]}),even:st(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:st(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:st(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:st(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function lt(){}function ct(t,n){var r,i,o,s,a,u,l,c=E[t+" "];if(c)return n?0:c.slice(0);for(a=t,u=[],l=e.preFilter;a;){for(s in r&&!(i=z.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=$.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(k," ")}),a=a.slice(r.length)),e.filter)!(i=U[s].exec(a))||l[s]&&!(i=l[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?Z.error(t):E(t,u).slice(0)}function ft(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ht(t,e,n){var r=e.dir,i=e.next,o=i||r,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||s)return t(e,n,i);return!1}:function(e,n,u){var l,c,f=[y,a];if(u){for(;e=e[r];)if((1===e.nodeType||s)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||s)if(c=e[m]||(e[m]={}),i&&C(e,i))e=e[r]||e;else{if((l=c[o])&&l[0]===y&&l[1]===a)return f[2]=l[2];if(c[o]=f,f[2]=t(e,n,u))return!0}return!1}}function dt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,l=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),l&&e.push(a)));return s}function vt(t,e,n,r,i,o){return r&&!r[m]&&(r=vt(r)),i&&!i[m]&&(i=vt(i,o)),et(function(o,s,a,u){var l,f,h,d,p=[],g=[],m=s.length,y=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)Z(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:pt(y,p,t,a,u);if(n?n(b,d=i||(o?t:m||r)?[]:s,a,u):d=b,r)for(l=pt(d,g),r(l,[],a,u),f=l.length;f--;)(h=l[f])&&(d[g[f]]=!(b[g[f]]=h));if(o){if(i||t){if(i){for(l=[],f=d.length;f--;)(h=d[f])&&l.push(b[f]=h);i(null,d=[],l,u)}for(f=d.length;f--;)(h=d[f])&&(l=i?c.call(o,h):p[f])>-1&&(o[l]=!(s[l]=h))}}else d=pt(d===s?d.splice(m,d.length):d),i?i(null,s,d,u):v.apply(s,d)})}function gt(t){for(var n,i,o,s=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],l=a?1:0,f=ht(function(t){return t===n},u,!0),h=ht(function(t){return c.call(n,t)>-1},u,!0),d=[function(t,e,i){var o=!a&&(i||e!=r)||((n=e).nodeType?f(t,e,i):h(t,e,i));return n=null,o}];l<s;l++)if(i=e.relative[t[l].type])d=[ht(dt(d),i)];else{if((i=e.filter[t[l].type].apply(null,t[l].matches))[m]){for(o=++l;o<s&&!e.relative[t[o].type];o++);return vt(l>1&&dt(d),l>1&&ft(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(k,"$1"),i,l<o&&gt(t.slice(l,o)),o<s&&gt(t=t.slice(o)),o<s&&ft(t))}d.push(i)}return dt(d)}function mt(t,n){var i,o=[],s=[],a=_[t+" "];if(!a){for(n||(n=ct(t)),i=n.length;i--;)(a=gt(n[i]))[m]?o.push(a):s.push(a);(a=_(t,function(t,n){var i=n.length>0,o=t.length>0,s=function(s,a,l,c,h){var d,p,g,m=0,b="0",w=s&&[],E=[],_=r,x=s||o&&e.find.TAG("*",h),S=y+=null==_?1:Math.random()||.1,C=x.length;for(h&&(r=a==u||a||h);b!==C&&null!=(d=x[b]);b++){if(o&&d){for(p=0,a||d.ownerDocument==u||(ut(d),l=!f);g=t[p++];)if(g(d,a||u,l)){v.call(c,d);break}h&&(y=S)}i&&((d=!g&&d)&&m--,s&&w.push(d))}if(m+=b,i&&b!==m){for(p=0;g=n[p++];)g(w,E,a,l);if(s){if(m>0)for(;b--;)w[b]||E[b]||(E[b]=I.call(c));E=pt(E)}v.apply(c,E),h&&!s&&E.length>0&&m+n.length>1&&T.uniqueSort(c)}return h&&(y=S,r=_),w};return i?et(s):s}(s,o))).selector=t}return a}function yt(t,n,r,i){var o,s,a,u,l,c="function"==typeof t&&t,h=!i&&ct(t=c.selector||t);if(r=r||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&f&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Y,K),n)||[])[0]))return r;c&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=U.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[u=a.type]);)if((l=e.find[u])&&(i=l(a.matches[0].replace(Y,K),X.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=i.length&&ft(s)))return v.apply(r,i),r;break}}return(c||mt(t,h))(i,n,!f,r,!n||X.test(t)&&at(n.parentNode)||n),r}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,g.sortStable=m.split("").sort(S).join("")===m,ut(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=mt,Z.select=yt,Z.setDocument=ut,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var R=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},j=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},F=T.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(t,e,n){return m(e)?T.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?T.grep(t,function(t){return t===e!==n}):"string"!=typeof e?T.grep(t,function(t){return c.call(e,t)>-1!==n}):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<r;e++)if(T.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)T.find(t,i[e],n);return r>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack($(this,t||[],!1))},not:function(t){return this.pushStack($(this,t||[],!0))},is:function(t){return!!$(this,"string"==typeof t&&F.test(t)?T(t):t||[],!1).length}});var V,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||V,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),z.test(r[1])&&T.isPlainObject(e))for(r in e)m(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,V=T(b);var q=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],s="string"!=typeof t&&T(t);if(!F.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(T(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return R(t,"parentNode")},parentsUntil:function(t,e,n){return R(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return R(t,"nextSibling")},prevAll:function(t){return R(t,"previousSibling")},nextUntil:function(t,e,n){return R(t,"nextSibling",n)},prevUntil:function(t,e,n){return R(t,"previousSibling",n)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(t,e){T.fn[t]=function(n,r){var i=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(U[t]||T.uniqueSort(i),q.test(t)&&i.reverse()),this.pushStack(i)}});var H=/[^\x20\t\r\n\f]+/g;function G(t){return t}function X(t){throw t}function Y(t,e,n,r){var i;try{t&&m(i=t.promise)?i.call(t).done(e).fail(n):t&&m(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(H)||[],function(t,n){e[n]=!0}),e}(t):T.extend({},t);var e,n,r,i,o=[],s=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){T.each(n,function(n,r){m(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==_(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;(n=T.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred(function(n){T.each(e,function(e,r){var i=m(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&m(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function s(t,e,r,i){return function(){var a=this,u=arguments,l=function(){var n,l;if(!(t<o)){if((n=r.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,m(l)?i?l.call(n,s(o,e,G,i),s(o,e,X,i)):(o++,l.call(n,s(o,e,G,i),s(o,e,X,i),s(o,e,G,e.notifyWith))):(r!==G&&(a=void 0,u=[n]),(i||e.resolveWith)(a,u))}},c=i?l:function(){try{l()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,c.error),t+1>=o&&(r!==X&&(a=void 0,u=[n]),e.rejectWith(a,u))}};t?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),n.setTimeout(c))}}return T.Deferred(function(n){e[0][3].add(s(0,n,m(i)?i:G,n.notifyWith)),e[1][3].add(s(0,n,m(t)?t:G)),e[2][3].add(s(0,n,m(r)?r:X))}).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(e,function(t,n){var s=n[2],a=n[5];i[n[1]]=s.add,a&&s.add(function(){r=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),o=T.Deferred(),s=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(Y(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)Y(i[n],s(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&K.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){n.setTimeout(function(){throw t})};var Q=T.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),T.ready()}T.fn.ready=function(t){return Q.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Q.resolveWith(b,[T]))}}),T.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var Z=function(t,e,n,r,i,o,s){var a=0,u=t.length,l=null==n;if("object"===_(n))for(a in i=!0,n)Z(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,m(r)||(s=!0),l&&(s?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(T(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:l?e.call(t):u?e(t[0],n):o},tt=/^-ms-/,et=/-([a-z])/g;function nt(t,e){return e.toUpperCase()}function rt(t){return t.replace(tt,"ms-").replace(et,nt)}var it=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=T.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},it(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[rt(e)]=n;else for(r in e)i[rt(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in r?[e]:e.match(H)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var st=new ot,at=new ot,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}at.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return at.hasData(t)||st.hasData(t)},data:function(t,e,n){return at.access(t,e,n)},removeData:function(t,e){at.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=at.get(o),1===o.nodeType&&!st.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=rt(r.slice(5)),ct(o,r,i[r]));st.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){at.set(this,t)}):Z(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=at.get(o,t))?n:void 0!==(n=ct(o,t))?n:void 0;this.each(function(){at.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){at.remove(this,t)})}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=st.get(t,e),n&&(!r||Array.isArray(n)?r=st.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,i=n.shift(),o=T._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){T.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:T.Callbacks("once memory").add(function(){st.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each(function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=T.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=st.get(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ht=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],pt=b.documentElement,vt=function(t){return T.contains(t.ownerDocument,t)},gt={composed:!0};pt.getRootNode&&(vt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(gt)===t.ownerDocument});var mt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(t)&&"none"===T.css(t,"display")};function yt(t,e,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return T.css(t,e,"")},u=a(),l=n&&n[3]||(T.cssNumber[e]?"":"px"),c=t.nodeType&&(T.cssNumber[e]||"px"!==l&&+u)&&ht.exec(T.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)T.style(t,e,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,T.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var bt={};function wt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=T.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function Et(t,e){for(var n,r,i=[],o=0,s=t.length;o<s;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=st.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&mt(r)&&(i[o]=wt(r))):"none"!==n&&(i[o]="none",st.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}T.fn.extend({show:function(){return Et(this,!0)},hide:function(){return Et(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){mt(this)?T(this).show():T(this).hide()})}});var _t,xt,Tt=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;_t=b.createDocumentFragment().appendChild(b.createElement("div")),(xt=b.createElement("input")).setAttribute("type","radio"),xt.setAttribute("checked","checked"),xt.setAttribute("name","t"),_t.appendChild(xt),g.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue,_t.innerHTML="<option></option>",g.option=!!_t.lastChild;var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function At(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],n):n}function Ot(t,e){for(var n=0,r=t.length;n<r;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,g.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Nt=/<|&#?\w+;/;function kt(t,e,n,r,i){for(var o,s,a,u,l,c,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===_(o))T.merge(h,o.nodeType?[o]:o);else if(Nt.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(St.exec(o)||["",""])[1].toLowerCase(),u=It[a]||It._default,s.innerHTML=u[1]+T.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;T.merge(h,s.childNodes),(s=f.firstChild).textContent=""}else h.push(e.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(l=vt(o),s=At(f.appendChild(o),"script"),l&&Ot(s),n)for(c=0;o=s[c++];)Ct.test(o.type||"")&&n.push(o);return f}var Lt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Mt(){return!1}function Pt(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Mt;else if(!i)return t;return 1===o&&(s=i,(i=function(t){return T().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,i,r,n)})}function Rt(t,e,n){n?(st.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,r=st.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),st.set(this,e,r),this[e](),n=st.get(this,e),st.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(st.set(this,e,T.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===st.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,f,h,d,p,v,g=st.get(t);if(it(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(pt,i),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(H)||[""]).length;l--;)d=v=(a=Lt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,s)||t.addEventListener&&t.addEventListener(d,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),T.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,l,c,f,h,d,p,v,g=st.hasData(t)&&st.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(H)||[""]).length;l--;)if(d=v=(a=Lt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},h=u[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!i&&v!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,g.handle)||T.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)T.event.remove(t,d+e[l],n,r,!0);T.isEmptyObject(u)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,s,a=new Array(arguments.length),u=T.event.fix(t),l=(st.get(this,"events")||Object.create(null))[u.type]||[],c=T.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(s=T.event.handlers.call(this,u,l),e=0;(i=s[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,s,a=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[i=(r=e[n]).selector+" "]&&(s[i]=r.needsContext?T(i,this).index(l)>-1:T.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,u<e.length&&a.push({elem:l,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&C(e,"input")&&Rt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&C(e,"input")&&Rt(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&C(e,"input")&&st.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Mt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Mt,isPropagationStopped:Mt,isImmediatePropagationStopped:Mt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(b.documentMode){var n=st.get(this,"handle"),r=T.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var r;if(Rt(this,t,!0),!b.documentMode)return!1;(r=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(r||0)+1)},trigger:function(){return Rt(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=st.get(i,e);o||(b.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),st.set(i,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=st.get(i,e)-1;o?st.set(i,e,o):(b.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),st.remove(i,e))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||T.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),T.fn.extend({on:function(t,e,n,r){return Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Mt),this.each(function(){T.event.remove(this,t,n,e)})}});var jt=/<script|<style|<link/i,Ft=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function $t(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Vt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,r,i,o,s,a;if(1===e.nodeType){if(st.hasData(t)&&(a=st.get(t).events))for(i in st.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)T.event.add(e,i,a[i][n]);at.hasData(t)&&(o=at.access(t),s=T.extend({},o),at.set(e,s))}}function Ut(t,e,n,r){e=u(e);var i,o,s,a,l,c,f=0,h=t.length,d=h-1,p=e[0],v=m(p);if(v||h>1&&"string"==typeof p&&!g.checkClone&&Ft.test(p))return t.each(function(i){var o=t.eq(i);v&&(e[0]=p.call(this,i,o.html())),Ut(o,e,n,r)});if(h&&(o=(i=kt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=T.map(At(i,"script"),Vt)).length;f<h;f++)l=i,f!==d&&(l=T.clone(l,!0,!0),a&&T.merge(s,At(l,"script"))),n.call(t[f],l,f);if(a)for(c=s[s.length-1].ownerDocument,T.map(s,Bt),f=0;f<a;f++)l=s[f],Ct.test(l.type||"")&&!st.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):E(l.textContent.replace(zt,""),l,c))}return t}function Wt(t,e,n){for(var r,i=e?T.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(At(r)),r.parentNode&&(n&&vt(r)&&Ot(At(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,s,a,u,l,c=t.cloneNode(!0),f=vt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=At(c),r=0,i=(o=At(t)).length;r<i;r++)a=o[r],u=s[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&Tt.test(a.type)?u.checked=a.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=a.defaultValue);if(e)if(n)for(o=o||At(t),s=s||At(c),r=0,i=o.length;r<i;r++)qt(o[r],s[r]);else qt(t,c);return(s=At(c,"script")).length>0&&Ot(s,!f&&At(t,"script")),c},cleanData:function(t){for(var e,n,r,i=T.event.special,o=0;void 0!==(n=t[o]);o++)if(it(n)){if(e=n[st.expando]){if(e.events)for(r in e.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[st.expando]=void 0}n[at.expando]&&(n[at.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Wt(this,t,!0)},remove:function(t){return Wt(this,t)},text:function(t){return Z(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ut(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$t(this,t).appendChild(t)})},prepend:function(){return Ut(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=$t(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ut(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ut(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(At(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return Z(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!It[(St.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(At(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(At(this)),n&&n.replaceChild(e,this))},t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){T.fn[t]=function(t){for(var n,r=[],i=T(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(i[s])[e](n),l.apply(r,n.get());return this.pushStack(r)}});var Ht=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),Gt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Yt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Kt=new RegExp(dt.join("|"),"i");function Qt(t,e,n){var r,i,o,s,a=Gt.test(e),u=t.style;return(n=n||Xt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(k,"$1")||void 0),""!==s||vt(t)||(s=T.style(t,e)),!g.pixelBoxStyles()&&Ht.test(s)&&Kt.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=s,s=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==s?s+"":s}function Jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pt.appendChild(l).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),i=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),pt.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,s,a,u,l=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),r=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",r.style.height="9px",r.style.display="block",pt.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,pt.removeChild(t)),a}}))}();var Zt=["Webkit","Moz","ms"],te=b.createElement("div").style,ee={};function ne(t){var e=T.cssProps[t]||ee[t];return e||(t in te?t:ee[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Zt.length;n--;)if((t=Zt[n]+e)in te)return t}(t)||t)}var re=/^(none|table(?!-c[ea]).+)/,ie={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"};function se(t,e,n){var r=ht.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ae(t,e,n,r,i,o){var s="width"===e?1:0,a=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=T.css(t,n+dt[s],!0,i)),r?("content"===n&&(u-=T.css(t,"padding"+dt[s],!0,i)),"margin"!==n&&(u-=T.css(t,"border"+dt[s]+"Width",!0,i))):(u+=T.css(t,"padding"+dt[s],!0,i),"padding"!==n?u+=T.css(t,"border"+dt[s]+"Width",!0,i):a+=T.css(t,"border"+dt[s]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-a-.5))||0),u+l}function ue(t,e,n){var r=Xt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,s=Qt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Ht.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&C(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ae(t,e,n||(i?"border":"content"),o,r,s)+"px"}function le(t,e,n,r,i){return new le.prototype.init(t,e,n,r,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=rt(e),u=Gt.test(e),l=t.style;if(u||(e=ne(a)),s=T.cssHooks[e]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=ht.exec(n))&&i[1]&&(n=yt(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,s,a=rt(e);return Gt.test(e)||(e=ne(a)),(s=T.cssHooks[e]||T.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=Qt(t,e,r)),"normal"===i&&e in oe&&(i=oe[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!re.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,r):Yt(t,ie,function(){return ue(t,e,r)})},set:function(t,n,r){var i,o=Xt(t),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===T.css(t,"boxSizing",!1,o),u=r?ae(t,e,r,a,o):0;return a&&s&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ae(t,e,"border",!1,o)-.5)),u&&(i=ht.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),se(0,n,u)}}}),T.cssHooks.marginLeft=Jt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Yt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+dt[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=se)}),T.fn.extend({css:function(t,e){return Z(this,function(t,e,n){var r,i,o={},s=0;if(Array.isArray(e)){for(r=Xt(t),i=e.length;s<i;s++)o[e[s]]=T.css(t,e[s],!1,r);return o}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,arguments.length>1)}}),T.Tween=le,le.prototype={constructor:le,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=le.propHooks[this.prop];return t&&t.get?t.get(this):le.propHooks._default.get(this)},run:function(t){var e,n=le.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):le.propHooks._default.set(this),this}},le.prototype.init.prototype=le.prototype,le.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ne(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},le.propHooks.scrollTop=le.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=le.prototype.init,T.fx.step={};var ce,fe,he=/^(?:toggle|show|hide)$/,de=/queueHooks$/;function pe(){fe&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(pe):n.setTimeout(pe,T.fx.interval),T.fx.tick())}function ve(){return n.setTimeout(function(){ce=void 0}),ce=Date.now()}function ge(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=dt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function me(t,e,n){for(var r,i=(ye.tweeners[e]||[]).concat(ye.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function ye(t,e,n){var r,i,o=0,s=ye.prefilters.length,a=T.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ce||ve(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(t,[l,r,n]),r<1&&s?n:(s||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:ce||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var r=T.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=rt(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=T.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<s;o++)if(r=ye.prefilters[o].call(l,t,c,l.opts))return m(r.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,me,l),m(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(ye,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return yt(n.elem,t,ht.exec(e),n),n}]},tweener:function(t,e){m(t)?(e=t,t=["*"]):t=t.match(H);for(var n,r=0,i=t.length;r<i;r++)n=t[r],ye.tweeners[n]=ye.tweeners[n]||[],ye.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,s,a,u,l,c,f="width"in e||"height"in e,h=this,d={},p=t.style,v=t.nodeType&&mt(t),g=st.get(t,"fxshow");for(r in n.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()})})),e)if(i=e[r],he.test(i)){if(delete e[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;v=!0}d[r]=g&&g[r]||T.style(t,r)}if((u=!T.isEmptyObject(e))||!T.isEmptyObject(d))for(r in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=st.get(t,"display")),"none"===(c=T.css(t,"display"))&&(l?c=l:(Et([t],!0),l=t.style.display||l,c=T.css(t,"display"),Et([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.css(t,"float")&&(u||(h.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1,d)u||(g?"hidden"in g&&(v=g.hidden):g=st.access(t,"fxshow",{display:l}),o&&(g.hidden=!v),v&&Et([t],!0),h.done(function(){for(r in v||Et([t]),st.remove(t,"fxshow"),d)T.style(t,r,d[r])})),u=me(v?g[r]:0,r,h),r in g||(g[r]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?ye.prefilters.unshift(t):ye.prefilters.push(t)}}),T.speed=function(t,e,n){var r=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||m(t)&&t,duration:t,easing:n&&e||e&&!m(e)&&e};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,e,n,r){return this.filter(mt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=T.isEmptyObject(t),o=T.speed(e,n,r),s=function(){var e=ye(this,T.extend({},t),o);(i||st.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=T.timers,s=st.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&de.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||T.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=T.timers,s=r?r.length:0;for(n.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(t,e){var n=T.fn[e];T.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ge(e,!0),t,r,i)}}),T.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){T.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(ce=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),ce=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,pe())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var be,we=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return Z(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(H);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var n=we[e]||T.find.attr;we[e]=function(t,e,r){var i,o,s=e.toLowerCase();return r||(o=we[s],we[s]=i,i=null!=n(t,e,r)?s:null,we[s]=o),i}});var Ee=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function xe(t){return(t.match(H)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Se(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(H)||[]}T.fn.extend({prop:function(t,e){return Z(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,r,i,o,s;return m(t)?this.each(function(e){T(this).addClass(t.call(this,e,Te(this)))}):(e=Se(t)).length?this.each(function(){if(r=Te(this),n=1===this.nodeType&&" "+xe(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=xe(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,n,r,i,o,s;return m(t)?this.each(function(e){T(this).removeClass(t.call(this,e,Te(this)))}):arguments.length?(e=Se(t)).length?this.each(function(){if(r=Te(this),n=1===this.nodeType&&" "+xe(r)+" "){for(o=0;o<e.length;o++)for(i=e[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");s=xe(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,s=typeof t,a="string"===s||Array.isArray(t);return m(t)?this.each(function(n){T(this).toggleClass(t.call(this,n,Te(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Se(t),this.each(function(){if(a)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==s||((r=Te(this))&&st.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":st.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+xe(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;T.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=m(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,function(t){return null==t?"":t+""})),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ce,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:xe(T.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:i.length;for(r=o<0?u:s?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=T(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=T.makeArray(e),s=i.length;s--;)((r=i[s]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ie=n.location,Ae={guid:Date.now()},Oe=/\?/;T.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=e&&e.getElementsByTagName("parsererror")[0],e&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ne=/^(?:focusinfocus|focusoutblur)$/,ke=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,r,i){var o,s,a,u,l,c,f,h,p=[r||b],v=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!Ne.test(v+T.event.triggered)&&(v.indexOf(".")>-1&&(v=(g=v.split(".")).shift(),g.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[T.expando]?t:new T.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:T.makeArray(e,[t]),f=T.event.special[v]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!y(r)){for(u=f.delegateType||v,Ne.test(u+v)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?u:f.bindType||v,(c=(st.get(s,"events")||Object.create(null))[t.type]&&st.get(s,"handle"))&&c.apply(s,e),(c=l&&s[l])&&c.apply&&it(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!it(r)||l&&m(r[v])&&!y(r)&&((a=r[l])&&(r[l]=null),T.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,ke),r[v](),t.isPropagationStopped()&&h.removeEventListener(v,ke),T.event.triggered=void 0,a&&(r[l]=a)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var Le=/\[\]$/,De=/\r?\n/g,Me=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,r){var i;if(Array.isArray(e))T.each(e,function(e,i){n||Le.test(t)?r(t,i):Re(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==_(e))r(t,e);else for(i in e)Re(t+"["+i+"]",e[i],n,r)}T.param=function(t,e){var n,r=[],i=function(t,e){var n=m(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){i(this.name,this.value)});else for(n in t)Re(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Pe.test(this.nodeName)&&!Me.test(t)&&(this.checked||!Tt.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:n.replace(De,"\r\n")}}).get()}});var je=/%20/g,Fe=/#.*$/,ze=/([?&])_=[^&]*/,$e=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:GET|HEAD)$/,Be=/^\/\//,qe={},Ue={},We="*/".concat("*"),He=b.createElement("a");function Ge(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(H)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Xe(t,e,n,r){var i={},o=t===Ue;function s(a){var u;return i[a]=!0,T.each(t[a]||[],function(t,a){var l=a(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),s(l),!1)}),u}return s(e.dataTypes[0])||!i["*"]&&s("*")}function Ye(t,e){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&T.extend(!0,t,r),t}He.href=Ie.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":We,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,T.ajaxSettings),e):Ye(T.ajaxSettings,t)},ajaxPrefilter:Ge(qe),ajaxTransport:Ge(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,a,u,l,c,f,h,d=T.ajaxSetup({},e),p=d.context||d,v=d.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),m=T.Callbacks("once memory"),y=d.statusCode||{},w={},E={},_="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(l){if(!s)for(s={};e=$e.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=E[t.toLowerCase()]=E[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)x.always(t[x.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return r&&r.abort(e),S(0,e),this}};if(g.promise(x),d.url=((t||d.url||Ie.href)+"").replace(Be,Ie.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(H)||[""],null==d.crossDomain){u=b.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=He.protocol+"//"+He.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Xe(qe,d,e,x),l)return x;for(f in(c=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ve.test(d.type),i=d.url.replace(Fe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(je,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Oe.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(ze,"$1"),h=(Oe.test(i)?"&":"?")+"_="+Ae.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&x.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&x.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+We+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,x,d)||l))return x.abort();if(_="abort",m.add(d.complete),x.done(d.success),x.fail(d.error),r=Xe(Ue,d,e,x)){if(x.readyState=1,c&&v.trigger("ajaxSend",[x,d]),l)return x;d.async&&d.timeout>0&&(a=n.setTimeout(function(){x.abort("timeout")},d.timeout));try{l=!1,r.send(w,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,s,u){var f,h,b,w,E,_=e;l||(l=!0,a&&n.clearTimeout(a),r=void 0,o=u||"",x.readyState=t>0?4:0,f=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,x,s)),!f&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),w=function(t,e,n,r){var i,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(d,w,x,f),f?(d.ifModified&&((E=x.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=E),(E=x.getResponseHeader("etag"))&&(T.etag[i]=E)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=w.state,h=w.data,f=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),x.status=t,x.statusText=(e||_)+"",f?g.resolveWith(p,[h,_,x]):g.rejectWith(p,[x,_,b]),x.statusCode(y),y=void 0,c&&v.trigger(f?"ajaxSuccess":"ajaxError",[x,d,f?h:b]),m.fireWith(p,[x,_]),c&&(v.trigger("ajaxComplete",[x,d]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,e){T[e]=function(t,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:n,success:r},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return m(t)?this.each(function(e){T(this).wrapInner(t.call(this,e))}):this.each(function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=m(t);return this.each(function(n){T(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Qe=T.ajaxSettings.xhr();g.cors=!!Qe&&"withCredentials"in Qe,g.ajax=Qe=!!Qe,T.ajaxTransport(function(t){var e,r;if(g.cors||Qe&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ke[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}});var Je,Ze=[],tn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||T.expando+"_"+Ae.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,s,a=!1!==t.jsonp&&(tn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(tn,"$1"+i):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||T.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){s=arguments},r.always(function(){void 0===o?T(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ze.push(i)),s&&m(o)&&o(s[0]),s=o=void 0}),"script"}),g.createHTMLDocument=((Je=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Je.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(r)):e=b),i=z.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=kt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(t,e,n){var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=xe(t.slice(a)),t=t.slice(0,a)),m(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,l=T.css(t,"position"),c=T(t),f={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=T.css(t,"top"),u=T.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),m(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(f.top=e.top-a.top+s),null!=e.left&&(f.left=e.left-a.left+i),"using"in e?e.using.call(t,f):c.css(f)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-T.css(r,"marginTop",!0),left:e.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||pt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return Z(this,function(t,r,i){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=Jt(g.pixelPosition,function(t,n){if(n)return n=Qt(t,e),Ht.test(n)?T(t).position()[e]+"px":n})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){T.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Z(this,function(e,n,i){var o;return y(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?T.css(e,n,a):T.style(e,n,i,a)},e,s?i:void 0,s)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),m(t))return r=a.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(a.call(arguments)))}).guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=m,T.isWindow=y,T.camelCase=rt,T.type=_,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(en,"$1")},void 0===(r=function(){return T}.apply(e,[]))||(t.exports=r);var nn=n.jQuery,rn=n.$;return T.noConflict=function(t){return n.$===T&&(n.$=rn),t&&n.jQuery===T&&(n.jQuery=nn),T},void 0===i&&(n.jQuery=n.$=T),T})},function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n(54))},function(t,e,n){var r=n(37);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(15),i=n(134),o=n(27),s=n(137),a=n(191),u=n(192),l=r.Symbol,c=i("wks"),f=u?l.for||l:l&&l.withoutSetter||s;t.exports=function(t){return o(c,t)||(c[t]=a&&o(l,t)?l[t]:f("Symbol."+t)),c[t]}},function(t,e,n){var r=n(2),i=n(23),o=n(22),s=n(45)("src"),a=n(240),u=(""+a).split("toString");n(10).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){var r=n(0),i=n(3),o=n(37),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,"&quot;")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";var r=n(11),i=n(193),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){"use strict";var r=n(20),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13),i=n(44);t.exports=n(12)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(70),i=n(37);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";var r=n(92),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=n(6),i=n(65),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},function(t,e,n){"use strict";var r=n(7);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,n){var r=n(30);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(71),i=n(44),o=n(24),s=n(39),a=n(22),u=n(155),l=Object.getOwnPropertyDescriptor;e.f=n(12)?l:function(t,e){if(t=o(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),i=n(10),o=n(3);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(29),i=n(70),o=n(16),s=n(9),a=n(171);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,f=6==t,h=5==t||f,d=e||a;return function(e,a,p){for(var v,g,m=o(e),y=i(m),b=r(a,p,3),w=s(y.length),E=0,_=n?d(e,w):u?d(e,0):void 0;w>E;E++)if((h||E in y)&&(g=b(v=y[E],E,m),t))if(n)_[E]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return E;case 2:_.push(v)}else if(c)return!1;return f?-1:l||c?c:_}}},function(t,e,n){"use strict";var r=n(28),i=n(194),o=n(195),s=n(21),a=n(140),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=c(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){"use strict";if(n(12)){var r=n(46),i=n(2),o=n(3),s=n(0),a=n(89),u=n(128),l=n(29),c=n(63),f=n(44),h=n(23),d=n(64),p=n(31),v=n(9),g=n(182),m=n(48),y=n(39),b=n(22),w=n(72),E=n(5),_=n(16),x=n(120),T=n(49),S=n(51),C=n(50).f,I=n(122),A=n(45),O=n(8),N=n(34),k=n(79),L=n(73),D=n(124),M=n(61),P=n(82),R=n(62),j=n(123),F=n(173),z=n(13),$=n(32),V=z.f,B=$.f,q=i.RangeError,U=i.TypeError,W=i.Uint8Array,H=Array.prototype,G=u.ArrayBuffer,X=u.DataView,Y=N(0),K=N(2),Q=N(3),J=N(4),Z=N(5),tt=N(6),et=k(!0),nt=k(!1),rt=D.values,it=D.keys,ot=D.entries,st=H.lastIndexOf,at=H.reduce,ut=H.reduceRight,lt=H.join,ct=H.sort,ft=H.slice,ht=H.toString,dt=H.toLocaleString,pt=O("iterator"),vt=O("toStringTag"),gt=A("typed_constructor"),mt=A("def_constructor"),yt=a.CONSTR,bt=a.TYPED,wt=a.VIEW,Et=N(1,function(t,e){return Ct(L(t,t[mt]),e)}),_t=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),xt=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),Tt=function(t,e){var n=p(t);if(n<0||n%e)throw q("Wrong offset!");return n},St=function(t){if(E(t)&&bt in t)return t;throw U(t+" is not a typed array!")},Ct=function(t,e){if(!(E(t)&&gt in t))throw U("It is not a typed array constructor!");return new t(e)},It=function(t,e){return At(L(t,t[mt]),e)},At=function(t,e){for(var n=0,r=e.length,i=Ct(t,r);r>n;)i[n]=e[n++];return i},Ot=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,r,i,o,s,a=_(t),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,h=I(a);if(void 0!=h&&!x(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(f&&u>2&&(c=l(c,arguments[2],2)),e=0,n=v(a.length),i=Ct(this,n);n>e;e++)i[e]=f?c(a[e],e):a[e];return i},kt=function(){for(var t=0,e=arguments.length,n=Ct(this,e);e>t;)n[t]=arguments[t++];return n},Lt=!!W&&o(function(){dt.call(new W(1))}),Dt=function(){return dt.apply(Lt?ft.call(St(this)):St(this),arguments)},Mt={copyWithin:function(t,e){return F.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(St(this),arguments)},filter:function(t){return It(this,K(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(St(this),arguments)},lastIndexOf:function(t){return st.apply(St(this),arguments)},map:function(t){return Et(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(St(this),arguments)},reduceRight:function(t){return ut.apply(St(this),arguments)},reverse:function(){for(var t,e=St(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return Q(St(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ct.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=m(t,r);return new(L(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},Pt=function(t,e){return It(this,ft.call(St(this),t,e))},Rt=function(t){St(this);var e=Tt(arguments[1],1),n=this.length,r=_(t),i=v(r.length),o=0;if(i+e>n)throw q("Wrong length!");for(;o<i;)this[e+o]=r[o++]},jt={entries:function(){return ot.call(St(this))},keys:function(){return it.call(St(this))},values:function(){return rt.call(St(this))}},Ft=function(t,e){return E(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return Ft(t,e=y(e,!0))?f(2,t[e]):B(t,e)},$t=function(t,e,n){return!(Ft(t,e=y(e,!0))&&E(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(t,e,n):(t[e]=n.value,t)};yt||($.f=zt,z.f=$t),s(s.S+s.F*!yt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:$t}),o(function(){ht.call({})})&&(ht=dt=function(){return lt.call(this)});var Vt=d({},Mt);d(Vt,jt),h(Vt,pt,jt.values),d(Vt,{slice:Pt,set:Rt,constructor:function(){},toString:ht,toLocaleString:Dt}),Ot(Vt,"buffer","b"),Ot(Vt,"byteOffset","o"),Ot(Vt,"byteLength","l"),Ot(Vt,"length","e"),V(Vt,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,u){var l=t+((u=!!u)?"Clamped":"")+"Array",f="get"+t,d="set"+t,p=i[l],m=p||{},y=p&&S(p),b=!p||!a.ABV,_={},x=p&&p.prototype,I=function(t,n){V(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[f](n*e+r.o,_t)}(this,n)},set:function(t){return function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*e+i.o,r,_t)}(this,n,t)},enumerable:!0})};b?(p=n(function(t,n,r,i){c(t,p,l,"_d");var o,s,a,u,f=0,d=0;if(E(n)){if(!(n instanceof G||"ArrayBuffer"==(u=w(n))||"SharedArrayBuffer"==u))return bt in n?At(p,n):Nt.call(p,n);o=n,d=Tt(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw q("Wrong length!");if((s=m-d)<0)throw q("Wrong length!")}else if((s=v(i)*e)+d>m)throw q("Wrong length!");a=s/e}else a=g(n),o=new G(s=a*e);for(h(t,"_d",{b:o,o:d,l:s,e:a,v:new X(o)});f<a;)I(t,f++)}),x=p.prototype=T(Vt),h(x,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&P(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=n(function(t,n,r,i){var o;return c(t,p,l),E(n)?n instanceof G||"ArrayBuffer"==(o=w(n))||"SharedArrayBuffer"==o?void 0!==i?new m(n,Tt(r,e),i):void 0!==r?new m(n,Tt(r,e)):new m(n):bt in n?At(p,n):Nt.call(p,n):new m(g(n))}),Y(y!==Function.prototype?C(m).concat(C(y)):C(m),function(t){t in p||h(p,t,m[t])}),p.prototype=x,r||(x.constructor=p));var A=x[pt],O=!!A&&("values"==A.name||void 0==A.name),N=jt.values;h(p,gt,!0),h(x,bt,l),h(x,wt,!0),h(x,mt,p),(u?new p(1)[vt]==l:vt in x)||V(x,vt,{get:function(){return l}}),_[l]=p,s(s.G+s.W+s.F*(p!=m),_),s(s.S,l,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*o(function(){m.of.call(p,1)}),l,{from:Nt,of:kt}),"BYTES_PER_ELEMENT"in x||h(x,"BYTES_PER_ELEMENT",e),s(s.P,l,Mt),R(l),s(s.P+s.F*xt,l,{set:Rt}),s(s.P+s.F*!O,l,jt),r||x.toString==ht||(x.toString=ht),s(s.P+s.F*o(function(){new p(1).slice()}),l,{slice:Pt}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){x.toLocaleString.call([1,2])})),l,{toLocaleString:Dt}),M[l]=O?A:N,r||O||h(x,pt,N)}}else t.exports=function(){}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(45)("meta"),i=n(5),o=n(22),s=n(13).f,a=0,u=Object.isExtensible||function(){return!0},l=!n(3)(function(){return u(Object.preventExtensions({}))}),c=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return l&&f.NEED&&u(t)&&!o(t,r)&&c(t),t}}},function(t,e,n){"use strict";var r=n(6),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},function(t,e,n){"use strict";var r=n(15),i=n(205).f,o=n(68),s=n(56),a=n(136),u=n(451),l=n(210);t.exports=function(t,e){var n,c,f,h,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||a(p,{}):(r[p]||{}).prototype)for(c in e){if(h=e[c],f=t.dontCallGetSet?(d=i(n,c))&&d.value:n[c],!l(v?c:p+(g?".":"#")+c,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),s(n,c,h,t)}}},,function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(157),i=n(107);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(31),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(4),i=n(158),o=n(107),s=n(106)("IE_PROTO"),a=function(){},u=function(){var t,e=n(104)("iframe"),r=o.length;for(e.style.display="none",n(108).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(157),i=n(107).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(22),i=n(16),o=n(106)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(8)("unscopables"),i=Array.prototype;void 0==i[r]&&n(23)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";var r=n(11),i=n(35),o=n(197),s=n(136);t.exports=function(t,e,n,a){a||(a={});var u=a.enumerable,l=void 0!==a.name?a.name:e;if(r(n)&&o(n,l,a),a.global)u?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},function(t,e,n){"use strict";var r=n(96),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},,function(t,e,n){var r=n(13).f,i=n(22),o=n(8)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),i=n(37),o=n(3),s=n(110),a="["+s+"]",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),c=function(t,e,n){var i={},a=o(function(){return!!s[t]()||"​"!="​"[t]()}),u=i[t]=a?e(f):s[t];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},f=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=c},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(2),i=n(13),o=n(12),s=n(8)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(66),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";var r=n(55),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r,i,o,s=n(199),a=n(15),u=n(20),l=n(68),c=n(27),f=n(135),h=n(144),d=n(95),p=a.TypeError,v=a.WeakMap;if(s||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=h("state");d[m]=!0,r=function(t,e){if(c(t,m))throw p("Object already initialized");return e.facade=t,l(t,m,e),e},i=function(t){return c(t,m)?t[m]:{}},o=function(t){return c(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var r=n(28),i=n(35),o=n(94);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var r=n(97),i=n(66);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(36),i=n(8)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(4),i=n(30),o=n(8)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){"use strict";var r=n(75),i=n(55);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},function(t,e,n){"use strict";var r=n(11),i=n(142),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t){return r(t.length)}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){var r=n(10),i=n(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(46)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(24),i=n(9),o=n(48);t.exports=function(t){return function(e,n,s){var a,u=r(e),l=i(u.length),c=o(s,l);if(t&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(72),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e,n){"use strict";n(175);var r=n(18),i=n(23),o=n(3),s=n(37),a=n(8),u=n(125),l=a("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=a(t),d=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),p=d?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[h](""),!e}):void 0;if(!d||!p||"replace"===t&&!c||"split"===t&&!f){var v=/./[h],g=n(s,h,""[t],function(t,e,n,r,i){return e.exec===u?d&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),m=g[0],y=g[1];r(String.prototype,t,m),i(RegExp.prototype,h,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(29),i=n(170),o=n(120),s=n(4),a=n(9),u=n(122),l={},c={};(e=t.exports=function(t,e,n,f,h){var d,p,v,g,m=h?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>b;b++)if((g=e?y(s(p=t[b])[0],p[1]):y(t[b]))===l||g===c)return g}else for(v=m.call(t);!(p=v.next()).done;)if((g=i(v,y,p.value,e))===l||g===c)return g}).BREAK=l,e.RETURN=c},function(t,e,n){var r=n(2).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(18),s=n(64),a=n(40),u=n(86),l=n(63),c=n(5),f=n(3),h=n(82),d=n(59),p=n(111);t.exports=function(t,e,n,v,g,m){var y=r[t],b=y,w=g?"set":"add",E=b&&b.prototype,_={},x=function(t){var e=E[t];o(E,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||E.forEach&&!f(function(){(new b).entries().next()}))){var T=new b,S=T[w](m?{}:-0,1)!=T,C=f(function(){T.has(1)}),I=h(function(t){new b(t)}),A=!m&&f(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});I||((b=e(function(e,n){l(e,b,t);var r=p(new y,e,b);return void 0!=n&&u(n,g,r[w],r),r})).prototype=E,E.constructor=b),(C||A)&&(x("delete"),x("has"),g&&x("get")),(A||S)&&x(w),m&&E.clear&&delete E.clear}else b=v.getConstructor(e,t,g,w),s(b.prototype,n),a.NEED=!0;return d(b,t),_[t]=b,i(i.G+i.W+i.F*(b!=y),_),m||v.setStrong(b,t,g),b}},function(t,e,n){for(var r,i=n(2),o=n(23),s=n(45),a=s("typed_array"),u=s("view"),l=!(!i.ArrayBuffer||!i.DataView),c=l,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[h[f++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):c=!1;t.exports={ABV:l,CONSTR:c,TYPED:a,VIEW:u}},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return s}),n.d(e,"__decorate",function(){return a}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return l}),n.d(e,"__awaiter",function(){return c}),n.d(e,"__generator",function(){return f}),n.d(e,"__createBinding",function(){return h}),n.d(e,"__exportStar",function(){return d}),n.d(e,"__values",function(){return p}),n.d(e,"__read",function(){return v}),n.d(e,"__spread",function(){return g}),n.d(e,"__spreadArrays",function(){return m}),n.d(e,"__await",function(){return y}),n.d(e,"__asyncGenerator",function(){return b}),n.d(e,"__asyncDelegator",function(){return w}),n.d(e,"__asyncValues",function(){return E}),n.d(e,"__makeTemplateObject",function(){return _}),n.d(e,"__importStar",function(){return x}),n.d(e,"__importDefault",function(){return T}),n.d(e,"__classPrivateFieldGet",function(){return S}),n.d(e,"__classPrivateFieldSet",function(){return C});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})}function f(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||a(t,e)})})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){a("next",t)}function l(t){a("throw",t)}function c(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){(function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)})(r,i,(e=t[n](e)).done,e.value)})}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function T(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";t.exports=!1},function(t,e,n){"use strict";var r=n(7);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},function(t,e,n){"use strict";var r=n(15),i=n(11);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var r=n(133),i=n(11),o=n(41),s=n(17)("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:u?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){"use strict";var r=n(6),i=n(7),o=n(41),s=Object,a=r("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},function(t,e,n){"use strict";var r=n(445);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},function(t,e,n){"use strict";var r,i=n(21),o=n(461),s=n(148),a=n(95),u=n(462),l=n(139),c=n(144)("IE_PROTO"),f=function(){},h=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&r?d(r):((e=l("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(r);for(var n=s.length;n--;)delete p.prototype[s[n]];return p()};a[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=i(t),n=new f,f.prototype=null,n[c]=t):n=p(),void 0===e?n:o.f(n,e)}},,function(t,e,n){"use strict";n(438),n(443);var r,i=n(103),o=n.n(i),s=(n(450),n(456),n(458),n(213),n(467),n(468),n(482),n(153)),a=n.n(s),u=n(154),l=n.n(u),c=n(230),f=n.n(c),h=[],d="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var p,v=function(t){return Object.freeze(t)},g=function(){return function(t,e){this.inlineSize=t,this.blockSize=e,v(this)}}(),m=function(){function t(t,e,n,r){return this.x=t,this.y=e,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,v(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),y=function(t){return t instanceof SVGElement&&"getBBox"in t},b=function(t){if(y(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||t.getClientRects().length)},w=function(t){var e;if(t instanceof Element)return!0;var n=null===(e=null===t||void 0===t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},E="undefined"!=typeof window?window:{},_=new WeakMap,x=/auto|scroll/,T=/^tb|vertical/,S=/msie|trident/i.test(E.navigator&&E.navigator.userAgent),C=function(t){return parseFloat(t||"0")},I=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new g((n?e:t)||0,(n?t:e)||0)},A=v({devicePixelContentBoxSize:I(),borderBoxSize:I(),contentBoxSize:I(),contentRect:new m(0,0,0,0)}),O=function(t,e){if(void 0===e&&(e=!1),_.has(t)&&!e)return _.get(t);if(b(t))return _.set(t,A),A;var n=getComputedStyle(t),r=y(t)&&t.ownerSVGElement&&t.getBBox(),i=!S&&"border-box"===n.boxSizing,o=T.test(n.writingMode||""),s=!r&&x.test(n.overflowY||""),a=!r&&x.test(n.overflowX||""),u=r?0:C(n.paddingTop),l=r?0:C(n.paddingRight),c=r?0:C(n.paddingBottom),f=r?0:C(n.paddingLeft),h=r?0:C(n.borderTopWidth),d=r?0:C(n.borderRightWidth),p=r?0:C(n.borderBottomWidth),g=f+l,w=u+c,E=(r?0:C(n.borderLeftWidth))+d,O=h+p,N=a?t.offsetHeight-O-t.clientHeight:0,k=s?t.offsetWidth-E-t.clientWidth:0,L=i?g+E:0,D=i?w+O:0,M=r?r.width:C(n.width)-L-k,P=r?r.height:C(n.height)-D-N,R=M+g+k+E,j=P+w+N+O,F=v({devicePixelContentBoxSize:I(Math.round(M*devicePixelRatio),Math.round(P*devicePixelRatio),o),borderBoxSize:I(R,j,o),contentBoxSize:I(M,P,o),contentRect:new m(f,u,M,P)});return _.set(t,F),F},N=function(t,e,n){var i=O(t,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(e){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},k=function(){return function(t){var e=O(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=v([e.borderBoxSize]),this.contentBoxSize=v([e.contentBoxSize]),this.devicePixelContentBoxSize=v([e.devicePixelContentBoxSize])}}(),L=function(t){if(b(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},D=function(){var t=1/0,e=[];h.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(e){var n=new k(e.target),i=L(e.target);r.push(n),e.lastReportedSize=N(e.target,e.observedBox),i<t&&(t=i)}),e.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){(0,r[n])()}return t},M=function(t){h.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(n){n.isActive()&&(L(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))})})},P=function(){var t,e=0;for(M(e);h.some(function(t){return t.activeTargets.length>0});)e=D(),M(e);return h.some(function(t){return t.skippedTargets.length>0})&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:d}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=d),window.dispatchEvent(t)),e>0},R=[],j=function(t){if(!p){var e=0,n=document.createTextNode("");new MutationObserver(function(){return R.splice(0).forEach(function(t){return t()})}).observe(n,{characterData:!0}),p=function(){n.textContent="".concat(e?e--:e++)}}R.push(t),p()},F=0,z={attributes:!0,characterData:!0,childList:!0,subtree:!0},$=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V=function(t){return void 0===t&&(t=0),Date.now()+t},B=!1,q=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!B){B=!0;var n,r=V(t);n=function(){var n=!1;try{n=P()}finally{if(B=!1,t=r-V(),!F)return;n?e.run(1e3):t>0?e.run(t):e.start()}},j(function(){requestAnimationFrame(n)})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,z)};document.body?e():E.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$.forEach(function(e){return E.addEventListener(e,t.listener,!0)}))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),$.forEach(function(e){return E.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},t}()),U=function(t){!F&&t>0&&q.start(),!(F+=t)&&q.stop()},W=function(){function t(t,e){this.target=t,this.observedBox=e||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=N(this.target,this.observedBox,!0);return t=this.target,y(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),H=function(){return function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}}(),G=new WeakMap,X=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Y=function(){function t(){}return t.connect=function(t,e){var n=new H(t,e);G.set(t,n)},t.observe=function(t,e,n){var r=G.get(t),i=0===r.observationTargets.length;X(r.observationTargets,e)<0&&(i&&h.push(r),r.observationTargets.push(new W(e,n&&n.box)),U(1),q.schedule())},t.unobserve=function(t,e){var n=G.get(t),r=X(n.observationTargets,e),i=1===n.observationTargets.length;r>=0&&(i&&h.splice(h.indexOf(n),1),n.observationTargets.splice(r,1),U(-1))},t.disconnect=function(t){var e=this,n=G.get(t);n.observationTargets.slice().forEach(function(n){return e.unobserve(t,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},t}(),K=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Y.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!w(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.unobserve(this,t)},t.prototype.disconnect=function(){Y.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}(),Q=(n(483),n(225),n(490),n(491),n(493),function(t){return Array.prototype.reduce.call(t,function(t,e){var n=e.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})});function J(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function Z(t){return t&&t.ownerDocument?t.ownerDocument:document}var tt=null,et=null;function nt(t){if(null===tt){var e=Z(t);if(void 0===e)return tt=0;var n=e.body,r=e.createElement("div");r.classList.add("simplebar-hide-scrollbar"),n.appendChild(r);var i=r.getBoundingClientRect().right;n.removeChild(r),tt=i}return tt}o.a&&window.addEventListener("resize",function(){et!==window.devicePixelRatio&&(et=window.devicePixelRatio,tt=null)});var rt=function(){function t(e,n){var r=this;this.onScroll=function(){var t=J(r.el);r.scrollXTicking||(t.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(t.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(e=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(e||n)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(t,"x"):r.onTrackClick(t,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(t,"y"):r.onTrackClick(t,"y"))))},this.drag=function(e){var n=r.axis[r.draggedAxis].track,i=n.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,s=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],a=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var u=(("y"===r.draggedAxis?e.pageY:e.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(i-o.size)*(s-a);"x"===r.draggedAxis&&(u=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?u-(i+o.size):u,u=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-u:u),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=u},this.onEndDrag=function(t){var e=Z(r.el),n=J(r.el);t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),e.removeEventListener("mousemove",r.drag,!0),e.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout(function(){e.removeEventListener("click",r.preventClick,!0),e.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,n),this.classNames=Object.assign({},t.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=a()(this.recalculate.bind(this),64),this.onMouseMove=a()(this.onMouseMove.bind(this),64),this.hideScrollbars=l()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=l()(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=f()(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=e.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=999;var s=t.getOffset(r);return{isRtlScrollingInverted:i.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:i.left!==o.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),n=Z(t),r=J(t);return{top:e.top+(r.pageYOffset||n.documentElement.scrollTop),left:e.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),o.a&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;if(Array.prototype.filter.call(this.el.children,function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),n=document.createElement("div");e.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),e.appendChild(n),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.setAccessibilityAttributes=function(){var t=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",t)},e.initListeners=function(){var t=this,e=J(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize);var n=!1,r=null,i=e.ResizeObserver||K;this.resizeObserver=new i(function(){n&&null===r&&(r=e.requestAnimationFrame(function(){t.recalculate(),r=null}))}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){n=!0}),this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=J(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var a=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=a+"px";var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=u>r,this.axis.y.isOverflowing=a>l,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>l-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,n=this.contentEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=r/n;return e=Math.max(~~(i*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var n=this.contentWrapperEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(n-i),u=~~((r-o.size)*a);u="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?u+(r-o.size):u,o.el.style.transform="x"===e?"translate3d("+u+"px, 0, 0)":"translate3d(0, "+u+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,n=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var n=Z(this.el),r=J(this.el),i=this.axis[e].scrollbar,o="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=o-i.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var n=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var r=J(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var i=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],o=parseInt(this.elStyles[this.axis[e].sizeAttr],10),s=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],a=("y"===e?this.mouseY-i:this.mouseX-i)<0?-1:1,u=-1===a?s-o:s+o;!function t(){var i,o;-1===a?s>u&&(s-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[e].offsetAttr]=s,i)),r.requestAnimationFrame(t)):s<u&&(s+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[e].offsetAttr]=s,o)),r.requestAnimationFrame(t))}()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:nt(this.el)}catch(t){return nt(this.el)}},e.removeListeners=function(){var t=this,e=J(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(t){return n.call(t,e)})[0]},t}();rt.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},rt.instances=new WeakMap,rt.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(t){"init"===t.getAttribute("data-simplebar")||rt.instances.has(t)||new rt(t,Q(t.attributes))})},rt.removeObserver=function(){this.globalObserver.disconnect()},rt.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(rt.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},rt.handleMutations=function(t){t.forEach(function(t){Array.prototype.forEach.call(t.addedNodes,function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!rt.instances.has(t)&&document.documentElement.contains(t)&&new rt(t,Q(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(t){"init"!==t.getAttribute("data-simplebar")&&!rt.instances.has(t)&&document.documentElement.contains(t)&&new rt(t,Q(t.attributes))}))}),Array.prototype.forEach.call(t.removedNodes,function(t){1===t.nodeType&&("init"===t.getAttribute("data-simplebar")?rt.instances.has(t)&&!document.documentElement.contains(t)&&rt.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),function(t){rt.instances.has(t)&&!document.documentElement.contains(t)&&rt.instances.get(t).unMount()}))})})},rt.getOptions=Q,o.a&&rt.initHtmlApi();e.a=rt},function(t,e,n){"use strict";var r=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(n(188));
/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
r.default.registerVersion("firebase","7.24.0","app"),t.exports=r.default},function(t,e){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=n},function(t,e,n){var r=n(5),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(78)("keys"),i=n(45);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(5),i=n(4),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(29)(Function.call,n(32).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,n){var r=n(5),i=n(109).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(31),i=n(37);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(31),i=n(37);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),l=a.length;return u<0||u>=l?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(46),i=n(0),o=n(18),s=n(23),a=n(61),u=n(169),l=n(59),c=n(51),f=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,v,g,m){u(n,e,p);var y,b,w,E=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",x="values"==v,T=!1,S=t.prototype,C=S[f]||S["@@iterator"]||v&&S[v],I=C||E(v),A=v?x?E("entries"):I:void 0,O="Array"==e&&S.entries||C;if(O&&(w=c(O.call(new t)))!==Object.prototype&&w.next&&(l(w,_,!0),r||"function"==typeof w[f]||s(w,f,d)),x&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),r&&!m||!h&&!T&&S[f]||s(S,f,I),a[e]=I,a[_]=d,v)if(y={values:x?I:E("values"),keys:g?I:E("keys"),entries:A},m)for(b in y)b in S||o(S,b,y[b]);else i(i.P+i.F*(h||T),e,y);return y}},function(t,e,n){var r=n(118),i=n(37);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(5),i=n(36),o=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(61),i=n(8)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(13),i=n(44);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(72),i=n(8)("iterator"),o=n(61);t.exports=n(10).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(16),i=n(48),o=n(9);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(52),i=n(174),o=n(61),s=n(24);t.exports=n(116)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,i,o=n(83),s=RegExp.prototype.exec,a=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(l||c)&&(u=function(t){var e,n,r,i,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),l&&(e=u.lastIndex),r=s.call(u,t),l&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),c&&r&&r.length>1&&a.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),t.exports=u},function(t,e,n){"use strict";var r=n(115)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,i,o,s=n(29),a=n(163),u=n(108),l=n(104),c=n(2),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,v=c.Dispatch,g=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){y.call(t.data)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete m[t]},"process"==n(36)(f)?r=function(t){f.nextTick(s(y,t,1))}:v&&v.now?r=function(t){v.now(s(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:d}},function(t,e,n){"use strict";var r=n(2),i=n(12),o=n(46),s=n(89),a=n(23),u=n(64),l=n(3),c=n(63),f=n(31),h=n(9),d=n(182),p=n(50).f,v=n(13).f,g=n(123),m=n(59),y="prototype",b="Wrong index!",w=r.ArrayBuffer,E=r.DataView,_=r.Math,x=r.RangeError,T=r.Infinity,S=w,C=_.abs,I=_.pow,A=_.floor,O=_.log,N=_.LN2,k=i?"_b":"buffer",L=i?"_l":"byteLength",D=i?"_o":"byteOffset";function M(t,e,n){var r,i,o,s=new Array(n),a=8*n-e-1,u=(1<<a)-1,l=u>>1,c=23===e?I(2,-24)-I(2,-77):0,f=0,h=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===T?(i=t!=t?1:0,r=u):(r=A(O(t)/N),t*(o=I(2,-r))<1&&(r--,o*=2),(t+=r+l>=1?c/o:c*I(2,1-l))*o>=2&&(r++,o/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(t*o-1)*I(2,e),r+=l):(i=t*I(2,l-1)*I(2,e),r=0));e>=8;s[f++]=255&i,i/=256,e-=8);for(r=r<<e|i,a+=e;a>0;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*h,s}function P(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,l=t[u--],c=127&l;for(l>>=7;a>0;c=256*c+t[u],u--,a-=8);for(r=c&(1<<-a)-1,c>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===c)c=1-s;else{if(c===o)return r?NaN:l?-T:T;r+=I(2,e),c-=s}return(l?-1:1)*r*I(2,c-e)}function R(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function j(t){return[255&t]}function F(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function $(t){return M(t,52,8)}function V(t){return M(t,23,4)}function B(t,e,n){v(t[y],e,{get:function(){return this[n]}})}function q(t,e,n,r){var i=d(+n);if(i+e>t[L])throw x(b);var o=t[k]._b,s=i+t[D],a=o.slice(s,s+e);return r?a:a.reverse()}function U(t,e,n,r,i,o){var s=d(+n);if(s+e>t[L])throw x(b);for(var a=t[k]._b,u=s+t[D],l=r(+i),c=0;c<e;c++)a[u+c]=l[o?c:e-c-1]}if(s.ABV){if(!l(function(){w(1)})||!l(function(){new w(-1)})||l(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var W,H=(w=function(t){return c(this,w),new S(d(t))})[y]=S[y],G=p(S),X=0;G.length>X;)(W=G[X++])in w||a(w,W,S[W]);o||(H.constructor=w)}var Y=new E(new w(2)),K=E[y].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||u(E[y],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else w=function(t){c(this,w,"ArrayBuffer");var e=d(t);this._b=g.call(new Array(e),0),this[L]=e},E=function(t,e,n){c(this,E,"DataView"),c(t,w,"DataView");var r=t[L],i=f(e);if(i<0||i>r)throw x("Wrong offset!");if(i+(n=void 0===n?r-i:h(n))>r)throw x("Wrong length!");this[k]=t,this[D]=i,this[L]=n},i&&(B(w,"byteLength","_l"),B(E,"buffer","_b"),B(E,"byteLength","_l"),B(E,"byteOffset","_o")),u(E[y],{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var e=q(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=q(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return R(q(this,4,t,arguments[1]))},getUint32:function(t){return R(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return P(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return P(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){U(this,1,t,j,e)},setUint8:function(t,e){U(this,1,t,j,e)},setInt16:function(t,e){U(this,2,t,F,e,arguments[2])},setUint16:function(t,e){U(this,2,t,F,e,arguments[2])},setInt32:function(t,e){U(this,4,t,z,e,arguments[2])},setUint32:function(t,e){U(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){U(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){U(this,8,t,$,e,arguments[2])}});m(w,"ArrayBuffer"),m(E,"DataView"),a(E[y],s.VIEW,!0),e.ArrayBuffer=w,e.DataView=E},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(187)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(90),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw s(e)},s=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},a=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],s=i+1<t.length,a=s?t[i+1]:0,u=i+2<t.length,l=u?t[i+2]:0,c=o>>2,f=(3&o)<<4|a>>4,h=(15&a)<<2|l>>6,d=63&l;u||(d=64,s||(h=64)),r.push(n[c],n[f],n[h],n[d])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],s=i<t.length?n[t.charAt(i)]:0,a=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==u)throw Error();var l=o<<2|s>>4;if(r.push(l),64!==a){var c=s<<4&240|a>>2;if(r.push(c),64!==u){var f=a<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){try{return u.decodeString(t,!0)}catch(t){}return null};
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function c(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=c(t[n],e[n]));return t}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var f=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,r))}},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var p="FirebaseError",v=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name=p,Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,g.prototype.create),i}return r.__extends(e,t),e}(Error),g=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],s=o?function(t,e){return t.replace(m,function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"})}(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",u=new v(i,a),l=0,c=Object.keys(r);l<c.length;l++){var f=c[l];"_"!==f.slice(-1)&&(u[f]=r[f])}return u},t}();var m=/\{\$([^}]+)}/g;
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function y(t){return JSON.parse(t)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=y(l(o[0])||""),n=y(l(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(t){}return{header:e,claims:n,data:r,signature:i}};
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var w=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,s,a=this.chain_[0],u=this.chain_[1],l=this.chain_[2],c=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=c^u&(l^c),s=1518500249):(o=u^l^c,s=1859775393):r<60?(o=u&l|c&(u|l),s=2400959708):(o=u^l^c,s=3395469782);i=(a<<5|a>>>27)+o+f+s+n[r]&4294967295;f=c,c=l,l=4294967295&(u<<30|u>>>2),u=a,a=i}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<e;){if(0===o)for(;r<=n;)this.compress_(t,r),r+=this.blockSize;if("string"==typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<e;)if(i[o]=t[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}();var E=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i in t&&"function"==typeof t[i])return!0}return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:n}).next&&(r.next=_),void 0===r.error&&(r.error=_),void 0===r.complete&&(r.complete=_);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}}),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(t){"undefined"!=typeof console&&console.error}})},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(function(){e.observers=void 0,e.onNoObservers=void 0}))},t}();function _(){}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function x(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var i=t+" failed: ";return i+=r+" argument "}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var T=1e3,S=2,C=144e5,I=.5;e.CONSTANTS=i,e.Deferred=f,e.ErrorFactory=g,e.FirebaseError=v,e.MAX_VALUE_MILLIS=C,e.RANDOM_FACTOR=I,e.Sha1=w,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},e.assert=o,e.assertionError=s,e.async=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){t.apply(void 0,n)}).catch(function(t){e&&e(t)})}},e.base64=u,e.base64Decode=l,e.base64Encode=function(t){var e=a(t);return u.encodeByteArray(e,!0)},e.calculateBackoffMillis=function(t,e,n){void 0===e&&(e=T),void 0===n&&(n=S);var r=e*Math.pow(n,t),i=Math.round(I*r*(Math.random()-.5)*2);return Math.min(C,r+i)},e.contains=
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new E(t,e);return n.subscribe.bind(n)},e.decode=b,e.deepCopy=
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
function(t){return c(void 0,t)},e.deepExtend=c,e.errorPrefix=x,e.getUA=h,e.isAdmin=function(t){var e=b(t).claims;return"object"==typeof e&&!0===e.admin},e.isBrowser=function(){return"object"==typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id},e.isElectron=function(){return h().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=h();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},e.isNode=d,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!d()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return h().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=b(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=y,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */,e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach(function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach(function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}}),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var s=i-55296;o(++r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(s<<10)+(t.charCodeAt(r)-56320)}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(x(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(x(t,e,r)+"must be a valid context object.")},e.validateIndexedDBOpenable=function(){return new Promise(function(t,e){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(t){e(t)}})},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(x(t,e,r)+"must be a valid firebase namespace.")}}).call(this,n(54))},function(t,e,n){"use strict";var r={};r[n(17)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){"use strict";var r=n(91),i=n(135);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){"use strict";var r=n(15),i=n(136),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){"use strict";var r=n(15),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){"use strict";var r=n(6),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},function(t,e,n){"use strict";var r,i,o=n(15),s=n(439),a=o.process,u=o.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t,e,n){"use strict";var r=n(15),i=n(20),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,n){"use strict";var r=n(440),i=n(196);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){"use strict";var r=n(6);t.exports=r({}.isPrototypeOf)},function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var r=n(28),i=n(27),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,l=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},function(t,e,n){"use strict";var r=n(134),i=n(137),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){"use strict";var r=n(202),i=n(6),o=n(97),s=n(65),a=n(76),u=n(446),l=i([].push),c=function(t){var e=1===t,n=2===t,i=3===t,c=4===t,f=6===t,h=7===t,d=5===t||f;return function(p,v,g,m){for(var y,b,w=s(p),E=o(w),_=r(v,g),x=a(E),T=0,S=m||u,C=e?S(p,x):n||h?S(p,0):void 0;x>T;T++)if((d||T in E)&&(b=_(y=E[T],T,w),t))if(e)C[T]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:l(C,y)}else switch(t){case 4:return!1;case 7:l(C,y)}return f?-1:i||c?c:C}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(t,e,n){"use strict";var r=n(98),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(207),i=n(148).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";var r=n(35).f,i=n(27),o=n(17)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(42),i=n(6),o=n(95),s=n(20),a=n(27),u=n(35).f,l=n(147),c=n(470),f=n(473),h=n(137),d=n(220),p=!1,v=h("meta"),g=0,m=function(t){u(t,v,{value:{objectID:"O"+g++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=l.f,e=i([].splice),n={};n[v]=1,t(n).length&&(l.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===v){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!f(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!a(t,v)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&p&&f(t)&&!a(t,v)&&m(t),t}};o[v]=!0},function(t,e,n){"use strict";var r,i,o=n(25),s=n(6),a=n(57),u=n(486),l=n(487),c=n(134),f=n(99),h=n(67).get,d=n(488),p=n(489),v=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=s("".charAt),b=s("".indexOf),w=s("".replace),E=s("".slice),_=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=l.BROKEN_CARET,T=void 0!==/()??/.exec("")[1];(_||T||x||d||p)&&(m=function(t){var e,n,r,i,s,l,c,d=this,p=h(d),S=a(t),C=p.raw;if(C)return C.lastIndex=d.lastIndex,e=o(m,C,S),d.lastIndex=C.lastIndex,e;var I=p.groups,A=x&&d.sticky,O=o(u,d),N=d.source,k=0,L=S;if(A&&(O=w(O,"y",""),-1===b(O,"g")&&(O+="g"),L=E(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(S,d.lastIndex-1))&&(N="(?: "+N+")",L=" "+L,k++),n=new RegExp("^(?:"+N+")",O)),T&&(n=new RegExp("^"+N+"$(?!\\s)",O)),_&&(r=d.lastIndex),i=o(g,A?n:d,L),A?i?(i.input=E(i.input,k),i[0]=E(i[0],k),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:_&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),T&&i&&i.length>1&&o(v,i[0],n,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),i&&I)for(i.groups=l=f(null),s=0;s<I.length;s++)l[(c=I[s])[0]]=i[c[1]];return i}),t.exports=m},,function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,h=c||f||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,g=function(){return h.Date.now()};function m(t,e,r){var i,o,s,a,u,l,c=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function m(e){var n=i,r=o;return i=o=void 0,c=e,a=t.apply(r,n)}function w(t){var n=t-l;return void 0===l||n>=e||n<0||h&&t-c>=s}function E(){var t=g();if(w(t))return _(t);u=setTimeout(E,function(t){var n=e-(t-l);return h?v(n,s-(t-c)):n}(t))}function _(t){return u=void 0,d&&i?m(t):(i=o=void 0,a)}function x(){var t=g(),n=w(t);if(i=arguments,o=this,l=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(E,e),f?m(t):a}(l);if(h)return u=setTimeout(E,e),m(l)}return void 0===u&&(u=setTimeout(E,e)),a}return e=b(e)||0,y(r)&&(f=!!r.leading,s=(h="maxWait"in r)?p(b(r.maxWait)||0,e):s,d="trailing"in r?!!r.trailing:d),x.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},x.flush=function(){return void 0===u?a:_(g())},x}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==i}(t))return r;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):s.test(t)?r:+t}t.exports=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(n);return y(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),m(t,e,{leading:i,maxWait:e,trailing:o})}}).call(this,n(54))},function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,h=c||f||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,g=function(){return h.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==i}(t))return r;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):s.test(t)?r:+t}t.exports=function(t,e,r){var i,o,s,a,u,l,c=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function b(e){var n=i,r=o;return i=o=void 0,c=e,a=t.apply(r,n)}function w(t){var n=t-l;return void 0===l||n>=e||n<0||h&&t-c>=s}function E(){var t=g();if(w(t))return _(t);u=setTimeout(E,function(t){var n=e-(t-l);return h?v(n,s-(t-c)):n}(t))}function _(t){return u=void 0,d&&i?b(t):(i=o=void 0,a)}function x(){var t=g(),n=w(t);if(i=arguments,o=this,l=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(E,e),f?b(t):a}(l);if(h)return u=setTimeout(E,e),b(l)}return void 0===u&&(u=setTimeout(E,e)),a}return e=y(e)||0,m(r)&&(f=!!r.leading,s=(h="maxWait"in r)?p(y(r.maxWait)||0,e):s,d="trailing"in r?!!r.trailing:d),x.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},x.flush=function(){return void 0===u?a:_(g())},x}}).call(this,n(54))},function(t,e,n){t.exports=!n(12)&&!n(3)(function(){return 7!=Object.defineProperty(n(104)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),i=n(10),o=n(46),s=n(105),a=n(13).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(22),i=n(24),o=n(79)(!1),s=n(106)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(13),i=n(4),o=n(47);t.exports=n(12)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(24),i=n(50).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){"use strict";var r=n(12),i=n(47),o=n(80),s=n(71),a=n(16),u=n(70),l=Object.assign;t.exports=!l||n(3)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=a(t),l=arguments.length,c=1,f=o.f,h=s.f;l>c;)for(var d,p=u(arguments[c++]),v=f?i(p).concat(f(p)):i(p),g=v.length,m=0;g>m;)d=v[m++],r&&!h.call(p,d)||(n[d]=p[d]);return n}:l},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(30),i=n(5),o=n(163),s=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function(){var r=n.concat(s.call(arguments));return this instanceof u?function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)}(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2).parseInt,i=n(60).trim,o=n(110),s=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,i=n(60).trim;t.exports=1/r(n(110)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(36);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(5),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(49),i=n(44),o=n(59),s={};n(23)(s,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(330);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(30),i=n(16),o=n(70),s=n(9);t.exports=function(t,e,n,a,u){r(e);var l=i(t),c=o(l),f=s(l.length),h=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(h in c){a=c[h],h+=d;break}if(h+=d,u?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:f>h;h+=d)h in c&&(a=e(a,c[h],h,l));return a}},function(t,e,n){"use strict";var r=n(16),i=n(48),o=n(9);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?s:i(l,s))-u,s-a),f=1;for(u<a&&a<u+c&&(f=-1,u+=c-1,a+=c-1);c-- >0;)u in n?n[a]=n[u]:delete n[a],a+=f,u+=f;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(125);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(12)&&"g"!=/./g.flags&&n(13).f(RegExp.prototype,"flags",{configurable:!0,get:n(83)})},function(t,e,n){"use strict";var r,i,o,s,a=n(46),u=n(2),l=n(29),c=n(72),f=n(0),h=n(5),d=n(30),p=n(63),v=n(86),g=n(73),m=n(127).set,y=n(350)(),b=n(178),w=n(351),E=n(87),_=n(179),x=u.TypeError,T=u.process,S=T&&T.versions,C=S&&S.v8||"",I=u.Promise,A="process"==c(T),O=function(){},N=i=b.f,k=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[n(8)("species")]=function(t){t(O,O)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==C.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&(c.exit(),s=!0)),n===e.promise?l(x("Promise-chain cycle")):(o=L(n))?o.call(n,u,l):u(n)):l(r)}catch(t){c&&!s&&c.exit(),l(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){m.call(u,function(){var e,n,r,i=t._v,o=P(t);if(o&&(e=w(function(){A?T.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||P(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},P=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){m.call(u,function(){var e;A?T.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw x("Promise can't be resolved itself");(e=L(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(F,r,1),l(j,r,1))}catch(t){j.call(r,t)}}):(n._v=t,n._s=1,D(n,!1))}catch(t){j.call({_w:n,_d:!1},t)}}};k||(I=function(t){p(this,I,"Promise","_h"),d(t),r.call(this);try{t(l(F,this,1),l(j,this,1))}catch(t){j.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(64)(I.prototype,{then:function(t,e){var n=N(g(this,I));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(F,t,1),this.reject=l(j,t,1)},b.f=N=function(t){return t===I||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!k,{Promise:I}),n(59)(I,"Promise"),n(62)("Promise"),s=n(10).Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!k),"Promise",{resolve:function(t){return _(a&&this===s?I:this,t)}}),f(f.S+f.F*!(k&&n(82)(function(t){I.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=N(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=N(e),r=n.reject,i=w(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){"use strict";var r=n(30);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){var r=n(4),i=n(5),o=n(178);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(13).f,i=n(49),o=n(64),s=n(29),a=n(63),u=n(86),l=n(116),c=n(174),f=n(62),h=n(12),d=n(40).fastKey,p=n(53),v=h?"_s":"size",g=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var c=t(function(t,r){a(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&u(r,n,t[l],t)});return o(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(t){p(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),h&&r(c.prototype,"size",{get:function(){return p(this,e)[v]}}),c},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?c(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(64),i=n(40).getWeak,o=n(4),s=n(5),a=n(63),u=n(86),l=n(34),c=n(22),f=n(53),h=l(5),d=l(6),p=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return h(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,r){a(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(l.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(f(this,e)).delete(t):n&&c(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(f(this,e)).has(t):n&&c(n,this._i)}}),l},def:function(t,e,n){var r=i(o(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(31),i=n(9);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(50),i=n(80),o=n(4),s=n(2).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(9),i=n(112),o=n(37);t.exports=function(t,e,n,s){var a=String(o(t)),u=a.length,l=void 0===n?" ":String(n),c=r(e);if(c<=u||""==l)return a;var f=c-u,h=i.call(l,Math.ceil(f/l.length));return h.length>f&&(h=h.slice(0,f)),s?h+a:a+h}},function(t,e,n){var r=n(12),i=n(47),o=n(24),s=n(71).f;t.exports=function(t){return function(e){for(var n,a=o(e),u=i(a),l=u.length,c=0,f=[];l>c;)n=u[c++],r&&!s.call(a,n)||f.push(t?[n,a[n]]:a[n]);return f}}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(90),s=n(132),a=n(189),u=n(190),l=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),c=new s.ErrorFactory("app","Firebase",l),f="@firebase/app",h="0.6.11",d="[DEFAULT]",p=((i={})[f]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),v=new u.Logger("@firebase/app"),g=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=s.deepCopy(t),this.container=new a.ComponentContainer(e.name),this._addComponent(new a.Component("app",function(){return u},"PUBLIC"));try{for(var l=o.__values(this.firebase_.INTERNAL.components.values()),c=l.next();!c.done;c=l.next()){var f=c.value;this._addComponent(f)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(t){return t.delete()}))}).then(function(){t.isDeleted_=!0})},t.prototype._getService=function(t,e){return void 0===e&&(e=d),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=d),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){v.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},t}();g.prototype.name&&g.prototype.options||g.prototype.delete;var m="7.20.0";
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var y=
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
function t(){var e=function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){if(void 0===i&&(i={}),"object"!=typeof i||null===i){var o=i;i={name:o}}var a=i;void 0===a.name&&(a.name=d);var u=a.name;if("string"!=typeof u||!u)throw c.create("bad-app-name",{appName:String(u)});if(s.contains(e,u))throw c.create("duplicate-app",{appName:u});var l=new t(n,a,r);return e[u]=l,l},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=p[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&s&&u.push("and"),s&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void v.warn(u.join(" "))}l(new a.Component(i+"-version",function(){return{library:i,version:e}},"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw c.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:m,INTERNAL:{registerComponent:l,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function i(t){if(t=t||d,!s.contains(e,t))throw c.create("no-app",{appName:t});return e[t]}function l(a){var u,l,f=a.name;if(n.has(f))return v.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===a.type?r[f]:null;if(n.set(f,a),"PUBLIC"===a.type){var h=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[f])throw c.create("invalid-app-argument",{appName:f});return t[f]()};void 0!==a.serviceProps&&s.deepExtend(h,a.serviceProps),r[f]=h,t.prototype[f]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,f).apply(this,a.multipleInstances?t:[])}}try{for(var d=o.__values(Object.keys(e)),p=d.next();!p.done;p=d.next()){var g=p.value;e[g]._addComponent(a)}}catch(t){u={error:t}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(u)throw u.error}}return"PUBLIC"===a.type?r[f]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map(function(t){return e[t]})}}),i.App=t,r}(g);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){s.deepExtend(e,t)},createSubscribe:s.createSubscribe,ErrorFactory:s.ErrorFactory,deepExtend:s.deepExtend}),e}(),b=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null===e||void 0===e?void 0:e.type)}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null}).filter(function(t){return t}).join(" ")},t}();
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
if(s.isBrowser()&&void 0!==self.firebase){v.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var w=self.firebase.SDK_VERSION;w&&w.indexOf("LITE")>=0&&v.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var E=y.initializeApp;y.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.isNode()&&v.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),E.apply(void 0,t)};var _=y;!function(t,e){t.INTERNAL.registerComponent(new a.Component("platform-logger",function(t){return new b(t)},"PRIVATE")),t.registerVersion(f,h,e),t.registerVersion("fire-js","")}(_),e.default=_,e.firebase=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(90),i=n(132),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),s="[DEFAULT]",a=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t=s);var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:s,optional:!1},t),n=e.identifier,i=e.optional,o=this.normalizeInstanceIdentifier(n);try{var a=this.getOrInitializeService(o);if(!a){if(i)return null;throw Error("Service "+this.name+" is not available")}return a}catch(t){if(i)return null;throw t}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(t))try{this.getOrInitializeService(s)}catch(t){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=r.__read(o.value,2),u=a[0],l=a[1],c=this.normalizeInstanceIdentifier(u);try{var f=this.getOrInitializeService(c);l.resolve(f)}catch(t){}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t=s),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(r.__spread(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}),t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()})))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return t===s?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:s:t},t}();var u=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new a(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=u,e.Provider=a},function(t,e,n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var i;n.r(e),n.d(e,"LogLevel",function(){return o}),n.d(e,"Logger",function(){return f}),n.d(e,"setLogLevel",function(){return h}),n.d(e,"setUserLogHandler",function(){return d});var o,s=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(o||(o={}));var a={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,l=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),c=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){(new Date).toISOString();var i=l[e];if(!i)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")")}},f=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=c,this._userLogHandler=null,s.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],t)),this._logHandler.apply(this,r([this,o.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],t)),this._logHandler.apply(this,r([this,o.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],t)),this._logHandler.apply(this,r([this,o.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],t)),this._logHandler.apply(this,r([this,o.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],t)),this._logHandler.apply(this,r([this,o.ERROR],t))},t}();function h(t){s.forEach(function(e){e.setLogLevel(t)})}function d(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a=i.map(function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(t){return null}}).filter(function(t){return t}).join(" ");n>=(null!==r&&void 0!==r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:a,args:i,type:e.name})}},r=0,i=s;r<i.length;r++){n(i[r])}}},function(t,e,n){"use strict";var r=n(138),i=n(7),o=n(15).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,e,n){"use strict";var r=n(191);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r="object"==typeof document&&document.all,i=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:i}},function(t,e,n){"use strict";var r=n(28),i=n(7),o=n(139);t.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var r=n(28),i=n(7);t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(t,e,n){"use strict";var r=n(93),i=n(11),o=n(141),s=n(192),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},function(t,e,n){"use strict";var r=n(6),i=n(7),o=n(11),s=n(27),a=n(28),u=n(143).CONFIGURABLE,l=n(198),c=n(67),f=c.enforce,h=c.get,d=String,p=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return s(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&h(this).source||l(this)},"toString")},function(t,e,n){"use strict";var r=n(6),i=n(11),o=n(135),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,e,n){"use strict";var r=n(15),i=n(11),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(139)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){"use strict";var r=n(203),i=n(75),o=n(92),s=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(41),i=n(6);t.exports=function(t){if("Function"===r(t))return i(t)}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){return 1},1)})}},function(t,e,n){"use strict";var r=n(28),i=n(25),o=n(206),s=n(94),a=n(69),u=n(140),l=n(27),c=n(194),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),c)try{return f(t,e)}catch(t){}if(l(t,e))return s(!i(o.f,t,e),t[e])}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){"use strict";var r=n(6),i=n(27),o=n(69),s=n(453).indexOf,a=n(95),u=r([].push);t.exports=function(t,e){var n,r=o(t),l=0,c=[];for(n in r)!i(a,n)&&i(r,n)&&u(c,n);for(;e.length>l;)i(r,n=e[l++])&&(~s(c,n)||u(c,n));return c}},function(t,e,n){"use strict";var r=n(98),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(7),i=n(11),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n===c||n!==l&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},function(t,e,n){"use strict";t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(207),i=n(148);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){"use strict";var r=n(69),i=n(460),o=n(77),s=n(67),a=n(35).f,u=n(214),l=n(218),c=n(91),f=n(28),h=s.set,d=s.getterFor("Array Iterator");t.exports=u(Array,"Array",function(t,e){h(this,{type:"Array Iterator",target:r(t),index:0,kind:e})},function(){var t=d(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,l(void 0,!0);switch(n){case"keys":return l(r,!1);case"values":return l(e[r],!1)}return l([r,e[r]],!1)},"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var r=n(42),i=n(25),o=n(91),s=n(143),a=n(11),u=n(463),l=n(216),c=n(217),f=n(149),h=n(68),d=n(56),p=n(17),v=n(77),g=n(215),m=s.PROPER,y=s.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,E=p("iterator"),_=function(){return this};t.exports=function(t,e,n,s,p,g,x){u(n,e,s);var T,S,C,I=function(t){if(t===p&&L)return L;if(!w&&t in N)return N[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",O=!1,N=t.prototype,k=N[E]||N["@@iterator"]||p&&N[p],L=!w&&k||I(p),D="Array"===e&&N.entries||k;if(D&&(T=l(D.call(new t)))!==Object.prototype&&T.next&&(o||l(T)===b||(c?c(T,b):a(T[E])||d(T,E,_)),f(T,A,!0,!0),o&&(v[A]=_)),m&&"values"===p&&k&&"values"!==k.name&&(!o&&y?h(N,"name","values"):(O=!0,L=function(){return i(k,this)})),p)if(S={values:I("values"),keys:g?L:I("keys"),entries:I("entries")},x)for(C in S)!w&&!O&&C in N||d(N,C,S[C]);else r({target:e,proto:!0,forced:w||O},S);return o&&!x||N[E]===L||d(N,E,L,{name:p}),v[e]=L,S}},function(t,e,n){"use strict";var r,i,o,s=n(7),a=n(11),u=n(20),l=n(99),c=n(216),f=n(56),h=n(17),d=n(91),p=h("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||s(function(){var t={};return r[p].call(t)!==t})?r={}:d&&(r=l(r)),a(r[p])||f(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){"use strict";var r=n(27),i=n(11),o=n(65),s=n(144),a=n(464),u=s("IE_PROTO"),l=Object,c=l.prototype;t.exports=a?l.getPrototypeOf:function(t){var e=o(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?c:null}},function(t,e,n){"use strict";var r=n(465),i=n(21),o=n(466);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){"use strict";t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var r=n(6),i=n(98),o=n(57),s=n(66),a=r("".charAt),u=r("".charCodeAt),l=r("".slice),c=function(t){return function(e,n){var r,c,f=o(s(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(c=u(f,h+1))<56320||c>57343?t?a(f,h):r:t?l(f,h,h+2):c-56320+(r-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},function(t,e,n){"use strict";var r=n(7);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,n){"use strict";var r=n(56);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(202),i=n(25),o=n(21),s=n(142),a=n(476),u=n(76),l=n(141),c=n(477),f=n(223),h=n(478),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,y,b,w,E,_,x=n&&n.that,T=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),I=!(!n||!n.INTERRUPTED),A=r(e,x),O=function(t){return g&&h(g,"normal",t),new p(!0,t)},N=function(t){return T?(o(t),I?A(t[0],t[1],O):A(t[0],t[1])):I?A(t,O):A(t)};if(S)g=t.iterator;else if(C)g=t;else{if(!(m=f(t)))throw d(s(t)+" is not iterable");if(a(m)){for(y=0,b=u(t);b>y;y++)if((w=N(t[y]))&&l(v,w))return w;return new p(!1)}g=c(t,m)}for(E=S?t.next:g.next;!(_=i(E,g)).done;){try{w=N(_.value)}catch(t){h(g,"throw",t)}if("object"==typeof w&&w&&l(v,w))return w}return new p(!1)}},function(t,e,n){"use strict";var r=n(96),i=n(74),o=n(55),s=n(77),a=n(17)("iterator");t.exports=function(t){if(!o(t))return i(t,a)||i(t,"@@iterator")||s[r(t)]}},function(t,e,n){"use strict";var r=n(141),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){"use strict";var r=n(42),i=n(151);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";n(225);var r=n(203),i=n(56),o=n(151),s=n(7),a=n(17),u=n(68),l=a("species"),c=RegExp.prototype;t.exports=function(t,e,n,f){var h=a(t),d=!s(function(){var e={};return e[h]=function(){return 7},7!==""[t](e)}),p=d&&!s(function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e});if(!d||!p||n){var v=r(/./[h]),g=e(h,""[t],function(t,e,n,i,s){var a=r(t),u=e.exec;return u===o||u===c.exec?d&&!s?{done:!0,value:v(e,n,i)}:{done:!0,value:a(n,e,i)}:{done:!1}});i(String.prototype,t,g[0]),i(c,h,g[1])}f&&u(c[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(219).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r=n(25),i=n(21),o=n(11),s=n(41),a=n(151),u=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var l=r(n,t,e);return null!==l&&i(l),l}if("RegExp"===s(t))return r(a,t,e);throw u("RegExp#exec called on incompatible receiver")}},function(t,e,n){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
var r;r=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return E}});var r=n(279),i=n.n(r),o=n(370),s=n.n(o),a=n(817),u=n.n(a);function l(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=u()(t);return l("cut"),e};var f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var r=u()(n);return l("copy"),n.remove(),r},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=f(t.value,e):(n=u()(t),l("copy")),n};function d(t){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:r}):i?"cut"===n?c(i):h(i,{container:r}):void 0};function v(t){"@babel/helpers - typeof";return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(a,i());var e,n,r,o=y(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return e=a,r=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}],(n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===v(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=s()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=p({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&g(e.prototype,n),r&&g(e,r),a}()},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,n){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,i,o){var s=function(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,o),{destroy:function(){t.removeEventListener(n,s,o)}}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,r,o)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(r.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,s=r.length;o<s;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=r()},function(t,e,n){(function(e){var n="Expected a function",r="__lodash_hash_undefined__",i="[object Function]",o="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,a="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,l=a||u||Function("return this")();var c,f=Array.prototype,h=Function.prototype,d=Object.prototype,p=l["__core-js_shared__"],v=(c=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",g=h.toString,m=d.hasOwnProperty,y=d.toString,b=RegExp("^"+g.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=f.splice,E=O(l,"Map"),_=O(Object,"create");function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function T(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function S(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function C(t,e){for(var n,r,i=t.length;i--;)if((n=t[i][0])===(r=e)||n!=n&&r!=r)return i;return-1}function I(t){return!(!k(t)||v&&v in t)&&(function(t){var e=k(t)?y.call(t):"";return e==i||e==o}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?b:s).test(function(t){if(null!=t){try{return g.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function A(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function O(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return I(n)?n:void 0}function N(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(N.Cache||S),r}function k(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}x.prototype.clear=function(){this.__data__=_?_(null):{}},x.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},x.prototype.get=function(t){var e=this.__data__;if(_){var n=e[t];return n===r?void 0:n}return m.call(e,t)?e[t]:void 0},x.prototype.has=function(t){var e=this.__data__;return _?void 0!==e[t]:m.call(e,t)},x.prototype.set=function(t,e){return this.__data__[t]=_&&void 0===e?r:e,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(t){var e=this.__data__,n=C(e,t);return!(n<0||(n==e.length-1?e.pop():w.call(e,n,1),0))},T.prototype.get=function(t){var e=this.__data__,n=C(e,t);return n<0?void 0:e[n][1]},T.prototype.has=function(t){return C(this.__data__,t)>-1},T.prototype.set=function(t,e){var n=this.__data__,r=C(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},S.prototype.clear=function(){this.__data__={hash:new x,map:new(E||T),string:new x}},S.prototype.delete=function(t){return A(this,t).delete(t)},S.prototype.get=function(t){return A(this,t).get(t)},S.prototype.has=function(t){return A(this,t).has(t)},S.prototype.set=function(t,e){return A(this,t).set(t,e),this},N.Cache=S,t.exports=N}).call(this,n(54))},function(t,e,n){"use strict";var r,i,o,s=n(504),a=n(505),u=!1,l=window.document,c=l.documentElement,f=window.navigator.msPointerEnabled,h={start:f?"MSPointerDown":"touchstart",move:f?"MSPointerMove":"touchmove",end:f?"MSPointerUp":"touchend"},d=function(){var t=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,e=l.getElementsByTagName("script")[0].style;for(var n in e)if(t.test(n))return"-"+n.match(t)[0].toLowerCase()+"-";return"WebkitOpacity"in e?"-webkit-":"KhtmlOpacity"in e?"-khtml-":""}();function p(t){t=t||{},this._startOffsetX=0,this._currentOffsetX=0,this._opening=!1,this._moved=!1,this._opened=!1,this._preventOpen=!1,this._touch=void 0===t.touch||t.touch&&!0,this._side=t.side||"left",this.panel=t.panel,this.menu=t.menu,this.panel.classList.contains("slideout-panel")||this.panel.classList.add("slideout-panel"),this.panel.classList.contains("slideout-panel-"+this._side)||this.panel.classList.add("slideout-panel-"+this._side),this.menu.classList.contains("slideout-menu")||this.menu.classList.add("slideout-menu"),this.menu.classList.contains("slideout-menu-"+this._side)||this.menu.classList.add("slideout-menu-"+this._side),this._fx=t.fx||"ease",this._duration=parseInt(t.duration,10)||300,this._tolerance=parseInt(t.tolerance,10)||70,this._padding=this._translateTo=parseInt(t.padding,10)||256,this._orientation="right"===this._side?-1:1,this._translateTo*=this._orientation,this._touch&&this._initTouchEvents()}o=a,(i=p).prototype=function(t,e){for(var n in e)e[n]&&(t[n]=e[n]);return t}(i.prototype||{},o.prototype),p.prototype.open=function(){var t=this;return this.emit("beforeopen"),c.classList.contains("slideout-open")||c.classList.add("slideout-open"),this._setTransition(),this._translateXTo(this._translateTo),this._opened=!0,setTimeout(function(){t.panel.style.transition=t.panel.style["-webkit-transition"]="",t.emit("open")},this._duration+50),this},p.prototype.close=function(){var t=this;return this.isOpen()||this._opening?(this.emit("beforeclose"),this._setTransition(),this._translateXTo(0),this._opened=!1,setTimeout(function(){c.classList.remove("slideout-open"),t.panel.style.transition=t.panel.style["-webkit-transition"]=t.panel.style[d+"transform"]=t.panel.style.transform="",t.emit("close")},this._duration+50),this):this},p.prototype.toggle=function(){return this.isOpen()?this.close():this.open()},p.prototype.isOpen=function(){return this._opened},p.prototype._translateXTo=function(t){return this._currentOffsetX=t,this.panel.style[d+"transform"]=this.panel.style.transform="translateX("+t+"px)",this},p.prototype._setTransition=function(){return this.panel.style[d+"transition"]=this.panel.style.transition=d+"transform "+this._duration+"ms "+this._fx,this},p.prototype._initTouchEvents=function(){var t=this;return this._onScrollFn=s(l,"scroll",function(){t._moved||(clearTimeout(r),u=!0,r=setTimeout(function(){u=!1},250))}),this._preventMove=function(e){t._moved&&e.preventDefault()},l.addEventListener(h.move,this._preventMove),this._resetTouchFn=function(e){void 0!==e.touches&&(t._moved=!1,t._opening=!1,t._startOffsetX=e.touches[0].pageX,t._preventOpen=!t._touch||!t.isOpen()&&0!==t.menu.clientWidth)},this.panel.addEventListener(h.start,this._resetTouchFn),this._onTouchCancelFn=function(){t._moved=!1,t._opening=!1},this.panel.addEventListener("touchcancel",this._onTouchCancelFn),this._onTouchEndFn=function(){t._moved&&(t.emit("translateend"),t._opening&&Math.abs(t._currentOffsetX)>t._tolerance?t.open():t.close()),t._moved=!1},this.panel.addEventListener(h.end,this._onTouchEndFn),this._onTouchMoveFn=function(e){if(!(u||t._preventOpen||void 0===e.touches||function(t){for(;t.parentNode;){if(null!==t.getAttribute("data-slideout-ignore"))return t;t=t.parentNode}return null}(e.target))){var n=e.touches[0].clientX-t._startOffsetX,r=t._currentOffsetX=n;if(!(Math.abs(r)>t._padding)&&Math.abs(n)>20){t._opening=!0;var i=n*t._orientation;if(t._opened&&i>0||!t._opened&&i<0)return;t._moved||t.emit("translatestart"),i<=0&&(r=n+t._padding*t._orientation,t._opening=!1),t._moved&&c.classList.contains("slideout-open")||c.classList.add("slideout-open"),t.panel.style[d+"transform"]=t.panel.style.transform="translateX("+r+"px)",t.emit("translate",r),t._moved=!0}}},this.panel.addEventListener(h.move,this._onTouchMoveFn),this},p.prototype.enableTouch=function(){return this._touch=!0,this},p.prototype.disableTouch=function(){return this._touch=!1,this},p.prototype.destroy=function(){return this.close(),l.removeEventListener(h.move,this._preventMove),this.panel.removeEventListener(h.start,this._resetTouchFn),this.panel.removeEventListener("touchcancel",this._onTouchCancelFn),this.panel.removeEventListener(h.end,this._onTouchEndFn),this.panel.removeEventListener(h.move,this._onTouchMoveFn),l.removeEventListener("scroll",this._onScrollFn),this.open=this.close=function(){},this},t.exports=p},,,function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach(function(n){void 0===t[n]?t[n]=e[n]:r(e[n])&&r(t[n])&&Object.keys(e[n]).length>0&&i(t[n],e[n])})}var o="undefined"!=typeof document?document:{},s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};i(o,s);var a="undefined"!=typeof window?window:{};i(a,{document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}});class u{constructor(t){const e=this;for(let n=0;n<t.length;n+=1)e[n]=t[n];return e.length=t.length,this}}function l(t,e){const n=[];let r=0;if(t&&!e&&t instanceof u)return t;if(t)if("string"==typeof t){let i,s;const a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let t="div";for(0===a.indexOf("<li")&&(t="ul"),0===a.indexOf("<tr")&&(t="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(t="tr"),0===a.indexOf("<tbody")&&(t="table"),0===a.indexOf("<option")&&(t="select"),(s=o.createElement(t)).innerHTML=a,r=0;r<s.childNodes.length;r+=1)n.push(s.childNodes[r])}else for(i=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||o).querySelectorAll(t.trim()):[o.getElementById(t.trim().split("#")[1])],r=0;r<i.length;r+=1)i[r]&&n.push(i[r])}else if(t.nodeType||t===a||t===o)n.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r+=1)n.push(t[r]);return new u(n)}function c(t){const e=[];for(let n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}l.fn=u.prototype,l.Class=u,l.Dom7=u;"resize scroll".split(" ");const f={addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(e[t]);return this},removeClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(e[t]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(e[t]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(const e in t)this[n][e]=t[e],this[n].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){let n;if(void 0!==e){for(let r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const e=n.getAttribute(`data-${t}`);return e||void 0}},transform:function(t){for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransform=t,n.transform=t}return this},transition:function(t){"string"!=typeof t&&(t=`${t}ms`);for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this},on:function(...t){let[e,n,r,i]=t;function o(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),l(e).is(n))r.apply(e,i);else{const t=l(e).parents();for(let e=0;e<t.length;e+=1)l(t[e]).is(n)&&r.apply(t[e],i)}}function s(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof t[1]&&([e,r,i]=t,n=void 0),i||(i=!1);const a=e.split(" ");let u;for(let t=0;t<this.length;t+=1){const e=this[t];if(n)for(u=0;u<a.length;u+=1){const t=a[u];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:o}),e.addEventListener(t,o,i)}else for(u=0;u<a.length;u+=1){const t=a[u];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:s}),e.addEventListener(t,s,i)}}return this},off:function(...t){let[e,n,r,i]=t;"function"==typeof t[1]&&([e,r,i]=t,n=void 0),i||(i=!1);const o=e.split(" ");for(let t=0;t<o.length;t+=1){const e=o[t];for(let t=0;t<this.length;t+=1){const o=this[t];let s;if(!n&&o.dom7Listeners?s=o.dom7Listeners[e]:n&&o.dom7LiveListeners&&(s=o.dom7LiveListeners[e]),s&&s.length)for(let t=s.length-1;t>=0;t-=1){const n=s[t];r&&n.listener===r?(o.removeEventListener(e,n.proxyListener,i),s.splice(t,1)):r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(o.removeEventListener(e,n.proxyListener,i),s.splice(t,1)):r||(o.removeEventListener(e,n.proxyListener,i),s.splice(t,1))}}}return this},trigger:function(...t){const e=t[0].split(" "),n=t[1];for(let r=0;r<e.length;r+=1){const i=e[r];for(let e=0;e<this.length;e+=1){const r=this[e];let s;try{s=new a.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0})}catch(t){(s=o.createEvent("Event")).initEvent(i,!0,!0),s.detail=n}r.dom7EventData=t.filter((t,e)=>e>0),r.dispatchEvent(s),r.dom7EventData=[],delete r.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],n=this;let r;function i(o){if(o.target===this)for(t.call(this,o),r=0;r<e.length;r+=1)n.off(e[r],i)}if(t)for(r=0;r<e.length;r+=1)n.on(e[r],i);return this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),n=o.body,r=t.clientTop||n.clientTop||0,i=t.clientLeft||n.clientLeft||0,s=t===a?a.scrollY:t.scrollTop,u=t===a?a.scrollX:t.scrollLeft;return{top:e.top+s-r,left:e.left+u-i}}return null},css:function(t,e){let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(let e in t)this[n].style[e]=t[e];return this}if(this[0])return a.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=this[0];let n,r;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=l(t),r=0;r<n.length;r+=1)if(n[r]===e)return!0;return!1}if(t===o)return e===o;if(t===a)return e===a;if(t.nodeType||t instanceof u){for(n=t.nodeType?[t]:t,r=0;r<n.length;r+=1)if(n[r]===e)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;let n;return new u(t>e-1?[]:t<0?(n=e+t)<0?[]:[this[n]]:[this[t]])},append:function(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=o.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof u)for(let n=0;n<e.length;n+=1)this[t].appendChild(e[n]);else this[t].appendChild(e)}return this},prepend:function(t){let e,n;for(e=0;e<this.length;e+=1)if("string"==typeof t){const r=o.createElement("div");for(r.innerHTML=t,n=r.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(r.childNodes[n],this[e].childNodes[0])}else if(t instanceof u)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&l(this[0].nextElementSibling).is(t)?new u([this[0].nextElementSibling]):new u([]):this[0].nextElementSibling?new u([this[0].nextElementSibling]):new u([]):new u([])},nextAll:function(t){const e=[];let n=this[0];if(!n)return new u([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;t?l(r).is(t)&&e.push(r):e.push(r),n=r}return new u(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&l(e.previousElementSibling).is(t)?new u([e.previousElementSibling]):new u([]):e.previousElementSibling?new u([e.previousElementSibling]):new u([])}return new u([])},prevAll:function(t){const e=[];let n=this[0];if(!n)return new u([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;t?l(r).is(t)&&e.push(r):e.push(r),n=r}return new u(e)},parent:function(t){const e=[];for(let n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?l(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return l(c(e))},parents:function(t){const e=[];for(let n=0;n<this.length;n+=1){let r=this[n].parentNode;for(;r;)t?l(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return l(c(e))},closest:function(t){let e=this;return void 0===t?new u([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].querySelectorAll(t);for(let t=0;t<r.length;t+=1)e.push(r[t])}return new u(e)},children:function(t){const e=[];for(let n=0;n<this.length;n+=1){const r=this[n].childNodes;for(let n=0;n<r.length;n+=1)t?1===r[n].nodeType&&l(r[n]).is(t)&&e.push(r[n]):1===r[n].nodeType&&e.push(r[n])}return new u(c(e))},filter:function(t){const e=[],n=this;for(let r=0;r<n.length;r+=1)t.call(n[r],r,n[r])&&e.push(n[r]);return new u(e)},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(...t){const e=this;let n,r;for(n=0;n<t.length;n+=1){const i=l(t[n]);for(r=0;r<i.length;r+=1)e[e.length]=i[r],e.length+=1}return e},styles:function(){return this[0]?a.getComputedStyle(this[0],null):{}}};Object.keys(f).forEach(t=>{l.fn[t]=l.fn[t]||f[t]});const h={deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:(t,e=0)=>setTimeout(t,e),now:()=>Date.now(),getTranslate(t,e="x"){let n,r,i;const o=a.getComputedStyle(t,null);return a.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map(t=>t.replace(",",".")).join(", ")),i=new a.WebKitCSSMatrix("none"===r?"":r)):n=(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(r=a.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(r=a.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery(t){const e={};let n,r,i,o,s=t||a.location.href;if("string"==typeof s&&s.length)for(o=(r=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter(t=>""!==t)).length,n=0;n<o;n+=1)i=r[n].replace(/#\S+/g,"").split("="),e[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return e},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,extend(...t){const e=Object(t[0]);for(let n=1;n<t.length;n+=1){const r=t[n];if(void 0!==r&&null!==r){const t=Object.keys(Object(r));for(let n=0,i=t.length;n<i;n+=1){const i=t[n],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(h.isObject(e[i])&&h.isObject(r[i])?h.extend(e[i],r[i]):!h.isObject(e[i])&&h.isObject(r[i])?(e[i]={},h.extend(e[i],r[i])):e[i]=r[i])}}}return e}},d={touch:!!("ontouchstart"in a||a.DocumentTouch&&o instanceof a.DocumentTouch),pointerEvents:!!a.PointerEvent&&"maxTouchPoints"in a.navigator&&a.navigator.maxTouchPoints>=0,observer:"MutationObserver"in a||"WebkitMutationObserver"in a,passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});a.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in a};class p{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,n){const r=this;if("function"!=typeof e)return r;const i=n?"unshift":"push";return t.split(" ").forEach(t=>{r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][i](e)}),r}once(t,e,n){const r=this;if("function"!=typeof e)return r;function i(...n){r.off(t,i),i.f7proxy&&delete i.f7proxy,e.apply(r,n)}return i.f7proxy=e,r.on(t,i,n)}off(t,e){const n=this;return n.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].length&&n.eventsListeners[t].forEach((r,i)=>{(r===e||r.f7proxy&&r.f7proxy===e)&&n.eventsListeners[t].splice(i,1)})}),n):n}emit(...t){const e=this;if(!e.eventsListeners)return e;let n,r,i;return"string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],r=t.slice(1,t.length),i=e):(n=t[0].events,r=t[0].data,i=t[0].context||e),(Array.isArray(n)?n:n.split(" ")).forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const n=[];e.eventsListeners[t].forEach(t=>{n.push(t)}),n.forEach(t=>{t.apply(i,r)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(n=>{const r=e.modules[n];r.params&&h.extend(t,r.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(n=>{const r=e.modules[n],i=t[n]||{};r.instance&&Object.keys(r.instance).forEach(t=>{const n=r.instance[t];e[t]="function"==typeof n?n.bind(e):n}),r.on&&e.on&&Object.keys(r.on).forEach(t=>{e.on(t,r.on[t])}),r.create&&r.create.bind(e)(i)})}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const n=this;n.prototype.modules||(n.prototype.modules={});const r=t.name||`${Object.keys(n.prototype.modules).length}_${h.now()}`;return n.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(e=>{n.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{n[e]=t.static[e]}),t.install&&t.install.apply(n,e),n}static use(t,...e){const n=this;return Array.isArray(t)?(t.forEach(t=>n.installModule(t)),n):n.installModule(t,...e)}}var v={updateSize:function(){const t=this;let e,n;const r=t.$el;e=void 0!==t.params.width?t.params.width:r[0].clientWidth,n=void 0!==t.params.height?t.params.height:r[0].clientHeight,0===e&&t.isHorizontal()||0===n&&t.isVertical()||(e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),n=n-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),h.extend(t,{width:e,height:n,size:t.isHorizontal()?e:n}))},updateSlides:function(){const t=this,e=t.params,{$wrapperEl:n,size:r,rtlTranslate:i,wrongRTL:o}=t,s=t.virtual&&e.virtual.enabled,u=s?t.virtual.slides.length:t.slides.length,l=n.children(`.${t.params.slideClass}`),c=s?t.virtual.slides.length:l.length;let f=[];const d=[],p=[];function v(t){return!e.cssMode||t!==l.length-1}let g=e.slidesOffsetBefore;"function"==typeof g&&(g=e.slidesOffsetBefore.call(t));let m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(t));const y=t.snapGrid.length,b=t.snapGrid.length;let w,E,_=e.spaceBetween,x=-g,T=0,S=0;if(void 0===r)return;"string"==typeof _&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*r),t.virtualSize=-_,i?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(w=Math.floor(c/e.slidesPerColumn)===c/t.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(w=Math.max(w,e.slidesPerView*e.slidesPerColumn)));const C=e.slidesPerColumn,I=w/C,A=Math.floor(c/e.slidesPerColumn);for(let n=0;n<c;n+=1){E=0;const i=l.eq(n);if(e.slidesPerColumn>1){let r,o,s;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(n/(e.slidesPerGroup*e.slidesPerColumn)),a=n-e.slidesPerColumn*e.slidesPerGroup*t,u=0===t?e.slidesPerGroup:Math.min(Math.ceil((c-t*C*e.slidesPerGroup)/C),e.slidesPerGroup);r=(o=a-(s=Math.floor(a/u))*u+t*e.slidesPerGroup)+s*w/C,i.css({"-webkit-box-ordinal-group":r,"-moz-box-ordinal-group":r,"-ms-flex-order":r,"-webkit-order":r,order:r})}else"column"===e.slidesPerColumnFill?(s=n-(o=Math.floor(n/C))*C,(o>A||o===A&&s===C-1)&&(s+=1)>=C&&(s=0,o+=1)):o=n-(s=Math.floor(n/I))*I;i.css(`margin-${t.isHorizontal()?"top":"left"}`,0!==s&&e.spaceBetween&&`${e.spaceBetween}px`)}if("none"!==i.css("display")){if("auto"===e.slidesPerView){const n=a.getComputedStyle(i[0],null),r=i[0].style.transform,o=i[0].style.webkitTransform;if(r&&(i[0].style.transform="none"),o&&(i[0].style.webkitTransform="none"),e.roundLengths)E=t.isHorizontal()?i.outerWidth(!0):i.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(n.getPropertyValue("width")),e=parseFloat(n.getPropertyValue("padding-left")),r=parseFloat(n.getPropertyValue("padding-right")),i=parseFloat(n.getPropertyValue("margin-left")),o=parseFloat(n.getPropertyValue("margin-right")),s=n.getPropertyValue("box-sizing");E=s&&"border-box"===s?t+i+o:t+e+r+i+o}else{const t=parseFloat(n.getPropertyValue("height")),e=parseFloat(n.getPropertyValue("padding-top")),r=parseFloat(n.getPropertyValue("padding-bottom")),i=parseFloat(n.getPropertyValue("margin-top")),o=parseFloat(n.getPropertyValue("margin-bottom")),s=n.getPropertyValue("box-sizing");E=s&&"border-box"===s?t+i+o:t+e+r+i+o}r&&(i[0].style.transform=r),o&&(i[0].style.webkitTransform=o),e.roundLengths&&(E=Math.floor(E))}else E=(r-(e.slidesPerView-1)*_)/e.slidesPerView,e.roundLengths&&(E=Math.floor(E)),l[n]&&(t.isHorizontal()?l[n].style.width=`${E}px`:l[n].style.height=`${E}px`);l[n]&&(l[n].swiperSlideSize=E),p.push(E),e.centeredSlides?(x=x+E/2+T/2+_,0===T&&0!==n&&(x=x-r/2-_),0===n&&(x=x-r/2-_),Math.abs(x)<.001&&(x=0),e.roundLengths&&(x=Math.floor(x)),S%e.slidesPerGroup==0&&f.push(x),d.push(x)):(e.roundLengths&&(x=Math.floor(x)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&f.push(x),d.push(x),x=x+E+_),t.virtualSize+=E+_,T=E,S+=1}}let O;if(t.virtualSize=Math.max(t.virtualSize,r)+m,i&&o&&("slide"===e.effect||"coverflow"===e.effect)&&n.css({width:`${t.virtualSize+e.spaceBetween}px`}),e.setWrapperSize&&(t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`})),e.slidesPerColumn>1&&(t.virtualSize=(E+e.spaceBetween)*w,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`}),e.centeredSlides)){O=[];for(let n=0;n<f.length;n+=1){let r=f[n];e.roundLengths&&(r=Math.floor(r)),f[n]<t.virtualSize+f[0]&&O.push(r)}f=O}if(!e.centeredSlides){O=[];for(let n=0;n<f.length;n+=1){let i=f[n];e.roundLengths&&(i=Math.floor(i)),f[n]<=t.virtualSize-r&&O.push(i)}f=O,Math.floor(t.virtualSize-r)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-r)}if(0===f.length&&(f=[0]),0!==e.spaceBetween&&(t.isHorizontal()?i?l.filter(v).css({marginLeft:`${_}px`}):l.filter(v).css({marginRight:`${_}px`}):l.filter(v).css({marginBottom:`${_}px`})),e.centeredSlides&&e.centeredSlidesBounds){let t=0;p.forEach(n=>{t+=n+(e.spaceBetween?e.spaceBetween:0)});const n=(t-=e.spaceBetween)-r;f=f.map(t=>t<0?-g:t>n?n+m:t)}if(e.centerInsufficientSlides){let t=0;if(p.forEach(n=>{t+=n+(e.spaceBetween?e.spaceBetween:0)}),(t-=e.spaceBetween)<r){const e=(r-t)/2;f.forEach((t,n)=>{f[n]=t-e}),d.forEach((t,n)=>{d[n]=t+e})}}h.extend(t,{slides:l,snapGrid:f,slidesGrid:d,slidesSizesGrid:p}),c!==u&&t.emit("slidesLengthChange"),f.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),d.length!==b&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,n=[];let r,i=0;if("number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{n.push(e)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const t=e.activeIndex+r;if(t>e.slides.length)break;n.push(e.slides.eq(t)[0])}else n.push(e.slides.eq(e.activeIndex)[0]);for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const t=n[r].offsetHeight;i=t>i?t:i}i&&e.$wrapperEl.css("height",`${i}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,n=e.params,{slides:r,rtlTranslate:i}=e;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;i&&(o=t),r.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<r.length;t+=1){const s=r[t],a=(o+(n.centeredSlides?e.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){const i=-(o-s.swiperSlideOffset),a=i+e.slidesSizesGrid[t];(i>=0&&i<e.size-1||a>1&&a<=e.size||i<=0&&a>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(t),r.eq(t).addClass(n.slideVisibleClass))}s.progress=i?-a:a}e.visibleSlides=l(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:s}=e;const a=o,u=s;0===r?(i=0,o=!0,s=!0):(o=(i=(t-e.minTranslate())/r)<=0,s=i>=1),h.extend(e,{progress:i,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(a&&!o||u&&!s)&&e.emit("fromEdge"),e.emit("progress",i)},updateSlidesClasses:function(){const t=this,{slides:e,params:n,$wrapperEl:r,activeIndex:i,realIndex:o}=t,s=t.virtual&&n.virtual.enabled;let a;e.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),(a=s?t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):e.eq(i)).addClass(n.slideActiveClass),n.loop&&(a.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(n.slideDuplicateActiveClass));let u=a.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===u.length&&(u=e.eq(0)).addClass(n.slideNextClass);let l=a.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=e.eq(-1)).addClass(n.slidePrevClass),n.loop&&(u.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:i,params:o,activeIndex:s,realIndex:a,snapIndex:u}=e;let l,c=t;if(void 0===c){for(let t=0;t<r.length;t+=1)void 0!==r[t+1]?n>=r[t]&&n<r[t+1]-(r[t+1]-r[t])/2?c=t:n>=r[t]&&n<r[t+1]&&(c=t+1):n>=r[t]&&(c=t);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)l=i.indexOf(n);else{const t=Math.min(o.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/o.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===s)return void(l!==u&&(e.snapIndex=l,e.emit("snapIndexChange")));const f=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);h.extend(e,{snapIndex:l,realIndex:f,previousIndex:s,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==f&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,n=e.params,r=l(t.target).closest(`.${n.slideClass}`)[0];let i=!1;if(r)for(let t=0;t<e.slides.length;t+=1)e.slides[t]===r&&(i=!0);if(!r||!i)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(l(r).attr("data-swiper-slide-index"),10):e.clickedIndex=l(r).index(),n.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};var g={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:n,translate:r,$wrapperEl:i}=this;if(e.virtualTranslate)return n?-r:r;if(e.cssMode)return r;let o=h.getTranslate(i[0],t);return n&&(o=-o),o||0},setTranslate:function(t,e){const n=this,{rtlTranslate:r,params:i,$wrapperEl:o,wrapperEl:s,progress:a}=n;let u,l=0,c=0;n.isHorizontal()?l=r?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||o.transform(`translate3d(${l}px, ${c}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;const f=n.maxTranslate()-n.minTranslate();(u=0===f?0:(t-n.minTranslate())/f)!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,n=!0,r=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const u=o.minTranslate(),l=o.maxTranslate();let c;if(c=r&&t>u?u:r&&t<l?l:t,o.updateProgress(c),s.cssMode){const t=o.isHorizontal();return 0===e?a[t?"scrollLeft":"scrollTop"]=-c:a.scrollTo?a.scrollTo({[t?"left":"top"]:-c,behavior:"smooth"}):a[t?"scrollLeft":"scrollTop"]=-c,!0}return 0===e?(o.setTransition(0),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}};var m={setTransition:function(t,e){const n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const n=this,{activeIndex:r,params:i,previousIndex:o}=n;if(i.cssMode)return;i.autoHeight&&n.updateAutoHeight();let s=e;if(s||(s=r>o?"next":r<o?"prev":"reset"),n.emit("transitionStart"),t&&r!==o){if("reset"===s)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===s?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(t=!0,e){const n=this,{activeIndex:r,previousIndex:i,params:o}=n;if(n.animating=!1,o.cssMode)return;n.setTransition(0);let s=e;if(s||(s=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),t&&r!==i){if("reset"===s)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===s?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var y={slideTo:function(t=0,e=this.params.speed,n=!0,r){const i=this;let o=t;o<0&&(o=0);const{params:s,snapGrid:a,slidesGrid:u,previousIndex:l,activeIndex:c,rtlTranslate:f,wrapperEl:h}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const d=Math.min(i.params.slidesPerGroupSkip,o);let p=d+Math.floor((o-d)/i.params.slidesPerGroup);p>=a.length&&(p=a.length-1),(c||s.initialSlide||0)===(l||0)&&n&&i.emit("beforeSlideChangeStart");const v=-a[p];if(i.updateProgress(v),s.normalizeSlideIndex)for(let t=0;t<u.length;t+=1)-Math.floor(100*v)>=Math.floor(100*u[t])&&(o=t);if(i.initialized&&o!==c){if(!i.allowSlideNext&&v<i.translate&&v<i.minTranslate())return!1;if(!i.allowSlidePrev&&v>i.translate&&v>i.maxTranslate()&&(c||0)!==o)return!1}let g;if(g=o>c?"next":o<c?"prev":"reset",f&&-v===i.translate||!f&&v===i.translate)return i.updateActiveIndex(o),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==s.effect&&i.setTranslate(v),"reset"!==g&&(i.transitionStart(n,g),i.transitionEnd(n,g)),!1;if(s.cssMode){const t=i.isHorizontal();let n=-v;return f&&(n=h.scrollWidth-h.offsetWidth-n),0===e?h[t?"scrollLeft":"scrollTop"]=n:h.scrollTo?h.scrollTo({[t?"left":"top"]:n,behavior:"smooth"}):h[t?"scrollLeft":"scrollTop"]=n,!0}return 0===e?(i.setTransition(0),i.setTranslate(v),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,r),i.transitionStart(n,g),i.transitionEnd(n,g)):(i.setTransition(e),i.setTranslate(v),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,r),i.transitionStart(n,g),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(t){i&&!i.destroyed&&t.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,g))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t=0,e=this.params.speed,n=!0,r){const i=this;let o=t;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,e,n,r)},slideNext:function(t=this.params.speed,e=!0,n){const r=this,{params:i,animating:o}=r,s=r.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(o)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+s,t,e,n)},slidePrev:function(t=this.params.speed,e=!0,n){const r=this,{params:i,animating:o,snapGrid:s,slidesGrid:a,rtlTranslate:u}=r;if(i.loop){if(o)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const c=l(u?r.translate:-r.translate),f=s.map(t=>l(t));a.map(t=>l(t)),s[f.indexOf(c)];let h,d=s[f.indexOf(c)-1];return void 0===d&&i.cssMode&&s.forEach(t=>{!d&&c>=t&&(d=t)}),void 0!==d&&(h=a.indexOf(d))<0&&(h=r.activeIndex-1),r.slideTo(h,t,e,n)},slideReset:function(t=this.params.speed,e=!0,n){return this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t=this.params.speed,e=!0,n,r=.5){const i=this;let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),u=i.rtlTranslate?i.translate:-i.translate;if(u>=i.snapGrid[a]){const t=i.snapGrid[a];u-t>(i.snapGrid[a+1]-t)*r&&(o+=i.params.slidesPerGroup)}else{const t=i.snapGrid[a-1];u-t<=(i.snapGrid[a]-t)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,n)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:n}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let i,o=t.clickedIndex;if(e.loop){if(t.animating)return;i=parseInt(l(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-r/2||o>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),o=n.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),h.nextTick(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-r?(t.loopFix(),o=n.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),h.nextTick(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}};var b={loopCreate:function(){const t=this,{params:e,$wrapperEl:n}=t;n.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let r=n.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-r.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let r=0;r<t;r+=1){const t=l(o.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);n.append(t)}r=n.children(`.${e.slideClass}`)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);const i=[],s=[];r.each((e,n)=>{const o=l(n);e<t.loopedSlides&&s.push(n),e<r.length&&e>=r.length-t.loopedSlides&&i.push(n),o.attr("data-swiper-slide-index",e)});for(let t=0;t<s.length;t+=1)n.append(l(s[t].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let t=i.length-1;t>=0;t-=1)n.prepend(l(i[t].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:n,loopedSlides:r,allowSlidePrev:i,allowSlideNext:o,snapGrid:s,rtlTranslate:a}=t;let u;t.allowSlidePrev=!0,t.allowSlideNext=!0;const l=-s[e]-t.getTranslate();e<r?(u=n.length-3*r+e,u+=r,t.slideTo(u,0,!1,!0)&&0!==l&&t.setTranslate((a?-t.translate:t.translate)-l)):e>=n.length-r&&(u=-n.length+e+r,u+=r,t.slideTo(u,0,!1,!0)&&0!==l&&t.setTranslate((a?-t.translate:t.translate)-l));t.allowSlidePrev=i,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:n}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}};var w={setGrabCursor:function(t){if(d.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){d.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var E={appendSlide:function(t){const e=this,{$wrapperEl:n,params:r}=e;if(r.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&n.append(t[e]);else n.append(t);r.loop&&e.loopCreate(),r.observer&&d.observer||e.update()},prependSlide:function(t){const e=this,{params:n,$wrapperEl:r,activeIndex:i}=e;n.loop&&e.loopDestroy();let o=i+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.prepend(t[e]);o=i+t.length}else r.prepend(t);n.loop&&e.loopCreate(),n.observer&&d.observer||e.update(),e.slideTo(o,0,!1)},addSlide:function(t,e){const n=this,{$wrapperEl:r,params:i,activeIndex:o}=n;let s=o;i.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=r.children(`.${i.slideClass}`));const a=n.slides.length;if(t<=0)return void n.prependSlide(e);if(t>=a)return void n.appendSlide(e);let u=s>t?s+1:s;const l=[];for(let e=a-1;e>=t;e-=1){const t=n.slides.eq(e);t.remove(),l.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&r.append(e[t]);u=s>t?s+e.length:s}else r.append(e);for(let t=0;t<l.length;t+=1)r.append(l[t]);i.loop&&n.loopCreate(),i.observer&&d.observer||n.update(),i.loop?n.slideTo(u+n.loopedSlides,0,!1):n.slideTo(u,0,!1)},removeSlide:function(t){const e=this,{params:n,$wrapperEl:r,activeIndex:i}=e;let o=i;n.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=r.children(`.${n.slideClass}`));let s,a=o;if("object"==typeof t&&"length"in t){for(let n=0;n<t.length;n+=1)s=t[n],e.slides[s]&&e.slides.eq(s).remove(),s<a&&(a-=1);a=Math.max(a,0)}else s=t,e.slides[s]&&e.slides.eq(s).remove(),s<a&&(a-=1),a=Math.max(a,0);n.loop&&e.loopCreate(),n.observer&&d.observer||e.update(),n.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)},removeAllSlides:function(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}};const _=function(){const t=a.navigator.platform,e=a.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!a.cordova&&!a.phonegap),phonegap:!(!a.cordova&&!a.phonegap),electron:!1},r=a.screen.width,i=a.screen.height,o=e.match(/(Android);?[\s\/]+([\d.]+)?/);let s=e.match(/(iPad).*OS\s([\d_]+)/);const u=e.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),c=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,f=e.indexOf("Edge/")>=0,h=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,p="Win32"===t,v=e.toLowerCase().indexOf("electron")>=0;let g="MacIntel"===t;return!s&&g&&d.touch&&(1024===r&&1366===i||834===r&&1194===i||834===r&&1112===i||768===r&&1024===i)&&(s=e.match(/(Version)\/([\d.]+)/),g=!1),n.ie=c,n.edge=f,n.firefox=h,o&&!p&&(n.os="android",n.osVersion=o[2],n.android=!0,n.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(s||l||u)&&(n.os="ios",n.ios=!0),l&&!u&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),s&&(n.osVersion=s[2].replace(/_/g,"."),n.ipad=!0),u&&(n.osVersion=u[3]?u[3].replace(/_/g,"."):null,n.ipod=!0),n.ios&&n.osVersion&&e.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),n.webView=!(!(l||s||u)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!a.navigator.standalone)||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,n.webview=n.webView,n.standalone=n.webView,n.desktop=!(n.ios||n.android)||v,n.desktop&&(n.electron=v,n.macos=g,n.windows=p,n.macos&&(n.os="macos"),n.windows&&(n.os="windows")),n.pixelRatio=a.devicePixelRatio||1,n}();function x(){const t=this,{params:e,el:n}=t;if(n&&0===n.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}let T=!1;function S(){}var C={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const I={update:v,translate:g,transition:m,slide:y,loop:b,grabCursor:w,manipulation:E,events:{attachEvents:function(){const t=this,{params:e,touchEvents:n,el:r,wrapperEl:i}=t;t.onTouchStart=function(t){const e=this,n=e.touchEventsData,{params:r,touches:i}=e;if(e.animating&&r.preventInteractionOnTransition)return;let s=t;s.originalEvent&&(s=s.originalEvent);const u=l(s.target);if("wrapper"===r.touchEventsTarget&&!u.closest(e.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===s.type,!n.isTouchEvent&&"which"in s&&3===s.which)return;if(!n.isTouchEvent&&"button"in s&&s.button>0)return;if(n.isTouched&&n.isMoved)return;if(r.noSwiping&&u.closest(r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`)[0])return void(e.allowClick=!0);if(r.swipeHandler&&!u.closest(r.swipeHandler)[0])return;i.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,i.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;const c=i.currentX,f=i.currentY,d=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,p=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!d||!(c<=p||c>=a.screen.width-p)){if(h.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=c,i.startY=f,n.touchStartTime=h.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){let t=!0;u.is(n.formElements)&&(t=!1),o.activeElement&&l(o.activeElement).is(n.formElements)&&o.activeElement!==u[0]&&o.activeElement.blur();const i=t&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||i)&&s.preventDefault()}e.emit("touchStart",s)}}.bind(t),t.onTouchMove=function(t){const e=this,n=e.touchEventsData,{params:r,touches:i,rtlTranslate:s}=e;let a=t;if(a.originalEvent&&(a=a.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",a));if(n.isTouchEvent&&"touchmove"!==a.type)return;const u="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?u.pageX:a.pageX,f="touchmove"===a.type?u.pageY:a.pageY;if(a.preventedByNestedSwiper)return i.startX=c,void(i.startY=f);if(!e.allowTouchMove)return e.allowClick=!1,void(n.isTouched&&(h.extend(i,{startX:c,startY:f,currentX:c,currentY:f}),n.touchStartTime=h.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(e.isVertical()){if(f<i.startY&&e.translate<=e.maxTranslate()||f>i.startY&&e.translate>=e.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(c<i.startX&&e.translate<=e.maxTranslate()||c>i.startX&&e.translate>=e.minTranslate())return;if(n.isTouchEvent&&o.activeElement&&a.target===o.activeElement&&l(a.target).is(n.formElements))return n.isMoved=!0,void(e.allowClick=!1);if(n.allowTouchCallbacks&&e.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;i.currentX=c,i.currentY=f;const d=i.currentX-i.startX,p=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(d**2+p**2)<e.params.threshold)return;if(void 0===n.isScrolling){let t;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:d*d+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,n.isScrolling=e.isHorizontal()?t>r.touchAngle:90-t>r.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",a),void 0===n.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;e.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation(),n.isMoved||(r.loop&&e.loopFix(),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",a)),e.emit("sliderMove",a),n.isMoved=!0;let v=e.isHorizontal()?d:p;i.diff=v,v*=r.touchRatio,s&&(v=-v),e.swipeDirection=v>0?"prev":"next",n.currentTranslate=v+n.startTranslate;let g=!0,m=r.resistanceRatio;if(r.touchReleaseOnEdges&&(m=0),v>0&&n.currentTranslate>e.minTranslate()?(g=!1,r.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+n.startTranslate+v)**m)):v<0&&n.currentTranslate<e.maxTranslate()&&(g=!1,r.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-n.startTranslate-v)**m)),g&&(a.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,void(i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:h.now()})),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate))}.bind(t),t.onTouchEnd=function(t){const e=this,n=e.touchEventsData,{params:r,touches:i,rtlTranslate:o,$wrapperEl:s,slidesGrid:a,snapGrid:u}=e;let l=t;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=h.now(),f=c-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(l),e.emit("tap click",l),f<300&&c-n.lastClickTime<300&&e.emit("doubleTap doubleClick",l)),n.lastClickTime=h.now(),h.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let d;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=r.followFinger?o?e.translate:-e.translate:-n.currentTranslate,r.cssMode)return;if(r.freeMode){if(d<-e.minTranslate())return void e.slideTo(e.activeIndex);if(d>-e.maxTranslate())return void(e.slides.length<u.length?e.slideTo(u.length-1):e.slideTo(e.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){const t=n.velocities.pop(),i=n.velocities.pop(),o=t.position-i.position,s=t.time-i.time;e.velocity=o/s,e.velocity/=2,Math.abs(e.velocity)<r.freeModeMinimumVelocity&&(e.velocity=0),(s>150||h.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;let t=1e3*r.freeModeMomentumRatio;const i=e.velocity*t;let a=e.translate+i;o&&(a=-a);let l,c=!1;const f=20*Math.abs(e.velocity)*r.freeModeMomentumBounceRatio;let d;if(a<e.maxTranslate())r.freeModeMomentumBounce?(a+e.maxTranslate()<-f&&(a=e.maxTranslate()-f),l=e.maxTranslate(),c=!0,n.allowMomentumBounce=!0):a=e.maxTranslate(),r.loop&&r.centeredSlides&&(d=!0);else if(a>e.minTranslate())r.freeModeMomentumBounce?(a-e.minTranslate()>f&&(a=e.minTranslate()+f),l=e.minTranslate(),c=!0,n.allowMomentumBounce=!0):a=e.minTranslate(),r.loop&&r.centeredSlides&&(d=!0);else if(r.freeModeSticky){let t;for(let e=0;e<u.length;e+=1)if(u[e]>-a){t=e;break}a=-(a=Math.abs(u[t]-a)<Math.abs(u[t-1]-a)||"next"===e.swipeDirection?u[t]:u[t-1])}if(d&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-a-e.translate)/e.velocity):Math.abs((a-e.translate)/e.velocity),r.freeModeSticky){const n=Math.abs((o?-a:a)-e.translate),i=e.slidesSizesGrid[e.activeIndex];t=n<i?r.speed:n<2*i?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void e.slideToClosest();r.freeModeMomentumBounce&&c?(e.updateProgress(l),e.setTransition(t),e.setTranslate(a),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(()=>{e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(l),s.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(a),e.setTransition(t),e.setTranslate(a),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(a),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeModeSticky)return void e.slideToClosest();return void((!r.freeModeMomentum||f>=r.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let p=0,v=e.slidesSizesGrid[0];for(let t=0;t<a.length;t+=t<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=t<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==a[t+e]?d>=a[t]&&d<a[t+e]&&(p=t,v=a[t+e]-a[t]):d>=a[t]&&(p=t,v=a[a.length-1]-a[a.length-2])}const g=(d-a[p])/v,m=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(g>=r.longSwipesRatio?e.slideTo(p+m):e.slideTo(p)),"prev"===e.swipeDirection&&(g>1-r.longSwipesRatio?e.slideTo(p+m):e.slideTo(p))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||l.target!==e.navigation.nextEl&&l.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(p+m),"prev"===e.swipeDirection&&e.slideTo(p)):l.target===e.navigation.nextEl?e.slideTo(p+m):e.slideTo(p)}}.bind(t),e.cssMode&&(t.onScroll=function(){const t=this,{wrapperEl:e,rtlTranslate:n}=t;let r;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const i=t.maxTranslate()-t.minTranslate();(r=0===i?0:(t.translate-t.minTranslate())/i)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}.bind(t)),t.onClick=function(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(t);const s=!!e.nested;if(!d.touch&&d.pointerEvents)r.addEventListener(n.start,t.onTouchStart,!1),o.addEventListener(n.move,t.onTouchMove,s),o.addEventListener(n.end,t.onTouchEnd,!1);else{if(d.touch){const i=!("touchstart"!==n.start||!d.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(n.start,t.onTouchStart,i),r.addEventListener(n.move,t.onTouchMove,d.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,t.onTouchEnd,i),n.cancel&&r.addEventListener(n.cancel,t.onTouchEnd,i),T||(o.addEventListener("touchstart",S),T=!0)}(e.simulateTouch&&!_.ios&&!_.android||e.simulateTouch&&!d.touch&&_.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),o.addEventListener("mousemove",t.onTouchMove,s),o.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0),e.cssMode&&i.addEventListener("scroll",t.onScroll),e.updateOnWindowResize?t.on(_.ios||_.android?"resize orientationchange observerUpdate":"resize observerUpdate",x,!0):t.on("observerUpdate",x,!0)},detachEvents:function(){const t=this,{params:e,touchEvents:n,el:r,wrapperEl:i}=t,s=!!e.nested;if(!d.touch&&d.pointerEvents)r.removeEventListener(n.start,t.onTouchStart,!1),o.removeEventListener(n.move,t.onTouchMove,s),o.removeEventListener(n.end,t.onTouchEnd,!1);else{if(d.touch){const i=!("onTouchStart"!==n.start||!d.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,t.onTouchStart,i),r.removeEventListener(n.move,t.onTouchMove,s),r.removeEventListener(n.end,t.onTouchEnd,i),n.cancel&&r.removeEventListener(n.cancel,t.onTouchEnd,i)}(e.simulateTouch&&!_.ios&&!_.android||e.simulateTouch&&!d.touch&&_.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),o.removeEventListener("mousemove",t.onTouchMove,s),o.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0),e.cssMode&&i.removeEventListener("scroll",t.onScroll),t.off(_.ios||_.android?"resize orientationchange observerUpdate":"resize observerUpdate",x)}},breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:n,loopedSlides:r=0,params:i,$el:o}=t,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;const a=t.getBreakpoint(s);if(a&&t.currentBreakpoint!==a){const u=a in s?s[a]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(t=>{const e=u[t];void 0!==e&&(u[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});const l=u||t.originalParams,c=i.slidesPerColumn>1,f=l.slidesPerColumn>1;c&&!f?o.removeClass(`${i.containerModifierClass}multirow ${i.containerModifierClass}multirow-column`):!c&&f&&(o.addClass(`${i.containerModifierClass}multirow`),"column"===l.slidesPerColumnFill&&o.addClass(`${i.containerModifierClass}multirow-column`));const d=l.direction&&l.direction!==i.direction,p=i.loop&&(l.slidesPerView!==i.slidesPerView||d);d&&n&&t.changeDirection(),h.extend(t.params,l),h.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=a,p&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",l)}},getBreakpoint:function(t){if(!t)return;let e=!1;const n=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:a.innerHeight*e,point:t}}return{value:t,point:t}});n.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;t<n.length;t+=1){const{point:r,value:i}=n[t];i<=a.innerWidth&&(e=r)}return e||"max"}},checkOverflow:{checkOverflow:function(){const t=this,e=t.params,n=t.isLocked,r=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?t.isLocked=r<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){const{classNames:t,params:e,rtl:n,$el:r}=this,i=[];i.push("initialized"),i.push(e.direction),e.freeMode&&i.push("free-mode"),e.autoHeight&&i.push("autoheight"),n&&i.push("rtl"),e.slidesPerColumn>1&&(i.push("multirow"),"column"===e.slidesPerColumnFill&&i.push("multirow-column")),_.android&&i.push("android"),_.ios&&i.push("ios"),e.cssMode&&i.push("css-mode"),i.forEach(n=>{t.push(e.containerModifierClass+n)}),r.addClass(t.join(" "))},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,n,r,i,o){let s;function u(){o&&o()}l(t).parent("picture")[0]||t.complete&&i?u():e?((s=new a.Image).onload=u,s.onerror=u,r&&(s.sizes=r),n&&(s.srcset=n),e&&(s.src=e)):u()},preloadImages:function(){const t=this;function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let n=0;n<t.imagesToLoad.length;n+=1){const r=t.imagesToLoad[n];t.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}}},A={};class O extends p{constructor(...t){let e,n;1===t.length&&t[0].constructor&&t[0].constructor===Object?n=t[0]:[e,n]=t,n||(n={}),n=h.extend({},n),e&&!n.el&&(n.el=e),super(n),Object.keys(I).forEach(t=>{Object.keys(I[t]).forEach(e=>{O.prototype[e]||(O.prototype[e]=I[t][e])})});const r=this;void 0===r.modules&&(r.modules={}),Object.keys(r.modules).forEach(t=>{const e=r.modules[t];if(e.params){const t=Object.keys(e.params)[0],r=e.params[t];if("object"!=typeof r||null===r)return;if(!(t in n&&"enabled"in r))return;!0===n[t]&&(n[t]={enabled:!0}),"object"!=typeof n[t]||"enabled"in n[t]||(n[t].enabled=!0),n[t]||(n[t]={enabled:!1})}});const i=h.extend({},C);r.useModulesParams(i),r.params=h.extend({},i,A,n),r.originalParams=h.extend({},r.params),r.passedParams=h.extend({},n),r.$=l;const o=l(r.params.el);if(!(e=o[0]))return;if(o.length>1){const t=[];return o.each((e,r)=>{const i=h.extend({},n,{el:r});t.push(new O(i))}),t}let s;return e.swiper=r,o.data("swiper",r),e&&e.shadowRoot&&e.shadowRoot.querySelector?(s=l(e.shadowRoot.querySelector(`.${r.params.wrapperClass}`))).children=(t=>o.children(t)):s=o.children(`.${r.params.wrapperClass}`),h.extend(r,{$el:o,el:e,$wrapperEl:s,wrapperEl:s[0],classNames:[],slides:l(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction"),rtlTranslate:"horizontal"===r.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction")),wrongRTL:"-webkit-box"===s.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"];let e=["mousedown","mousemove","mouseup"];return d.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),r.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},r.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},d.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:h.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r}slidesPerViewDynamic(){const{params:t,slides:e,slidesGrid:n,size:r,activeIndex:i}=this;let o=1;if(t.centeredSlides){let t,n=e[i].swiperSlideSize;for(let s=i+1;s<e.length;s+=1)e[s]&&!t&&(o+=1,(n+=e[s].swiperSlideSize)>r&&(t=!0));for(let s=i-1;s>=0;s-=1)e[s]&&!t&&(o+=1,(n+=e[s].swiperSlideSize)>r&&(t=!0))}else for(let t=i+1;t<e.length;t+=1)n[t]-n[i]<r&&(o+=1);return o}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:n}=t;function r(){const e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}let i;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(r(),t.params.autoHeight&&t.updateAutoHeight()):(i=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||r(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const n=this,r=n.params.direction;return t||(t="horizontal"===r?"vertical":"horizontal"),t===r||"horizontal"!==t&&"vertical"!==t?n:(n.$el.removeClass(`${n.params.containerModifierClass}${r}`).addClass(`${n.params.containerModifierClass}${t}`),n.params.direction=t,n.slides.each((e,n)=>{"vertical"===t?n.style.width="":n.style.height=""}),n.emit("changeDirection"),e&&n.update(),n)}init(){const t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,e=!0){const n=this,{params:r,$el:i,$wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed?null:(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),e&&(n.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(t=>{n.off(t)}),!1!==t&&(n.$el[0].swiper=null,n.$el.data("swiper",null),h.deleteProps(n)),n.destroyed=!0,null)}static extendDefaults(t){h.extend(A,t)}static get extendedDefaults(){return A}static get defaults(){return C}static get Class(){return p}static get $(){return l}}var N={name:"device",proto:{device:_},static:{device:_}},k={name:"support",proto:{support:d},static:{support:d}};const L=function(){return{isEdge:!!a.navigator.userAgent.match(/Edge/g),isSafari:function(){const t=a.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(a.navigator.userAgent)}}();var D={name:"browser",proto:{browser:L},static:{browser:L}},M={name:"resize",create(){const t=this;h.extend(t,{resize:{resizeHandler(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init(){a.addEventListener("resize",this.resize.resizeHandler),a.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){a.removeEventListener("resize",this.resize.resizeHandler),a.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const P={func:a.MutationObserver||a.WebkitMutationObserver,attach(t,e={}){const n=this,r=new(0,P.func)(t=>{if(1===t.length)return void n.emit("observerUpdate",t[0]);const e=function(){n.emit("observerUpdate",t[0])};a.requestAnimationFrame?a.requestAnimationFrame(e):a.setTimeout(e,0)});r.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),n.observer.observers.push(r)},init(){const t=this;if(d.observer&&t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let n=0;n<e.length;n+=1)t.observer.attach(e[n])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(t=>{t.disconnect()}),this.observer.observers=[]}};var R={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){h.extend(this,{observer:{init:P.init.bind(this),attach:P.attach.bind(this),destroy:P.destroy.bind(this),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const j={update(t){const e=this,{slidesPerView:n,slidesPerGroup:r,centeredSlides:i}=e.params,{addSlidesBefore:o,addSlidesAfter:s}=e.params.virtual,{from:a,to:u,slides:l,slidesGrid:c,renderSlide:f,offset:d}=e.virtual;e.updateActiveIndex();const p=e.activeIndex||0;let v,g,m;v=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",i?(g=Math.floor(n/2)+r+o,m=Math.floor(n/2)+r+s):(g=n+(r-1)+o,m=r+s);const y=Math.max((p||0)-m,0),b=Math.min((p||0)+g,l.length-1),w=(e.slidesGrid[y]||0)-(e.slidesGrid[0]||0);function E(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(h.extend(e.virtual,{from:y,to:b,offset:w,slidesGrid:e.slidesGrid}),a===y&&u===b&&!t)return e.slidesGrid!==c&&w!==d&&e.slides.css(v,`${w}px`),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:w,from:y,to:b,slides:function(){const t=[];for(let e=y;e<=b;e+=1)t.push(l[e]);return t}()}),void E();const _=[],x=[];if(t)e.$wrapperEl.find(`.${e.params.slideClass}`).remove();else for(let t=a;t<=u;t+=1)(t<y||t>b)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e<l.length;e+=1)e>=y&&e<=b&&(void 0===u||t?x.push(e):(e>u&&x.push(e),e<a&&_.push(e)));x.forEach(t=>{e.$wrapperEl.append(f(l[t],t))}),_.sort((t,e)=>e-t).forEach(t=>{e.$wrapperEl.prepend(f(l[t],t))}),e.$wrapperEl.children(".swiper-slide").css(v,`${w}px`),E()},renderSlide(t,e){const n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[e])return n.virtual.cache[e];const i=r.renderSlide?l(r.renderSlide.call(n,t,e)):l(`<div class="${n.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",e),r.cache&&(n.virtual.cache[e]=i),i},appendSlide(t){const e=this;if("object"==typeof t&&"length"in t)for(let n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,n=e.activeIndex;let r=n+1,i=1;if(Array.isArray(t)){for(let n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.unshift(t[n]);r=n+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,n={};Object.keys(t).forEach(e=>{const r=t[e],o=r.attr("data-swiper-slide-index");o&&r.attr("data-swiper-slide-index",parseInt(o,10)+1),n[parseInt(e,10)+i]=r}),e.virtual.cache=n}e.virtual.update(!0),e.slideTo(r,0)},removeSlide(t){const e=this;if(void 0===t||null===t)return;let n=e.activeIndex;if(Array.isArray(t))for(let r=t.length-1;r>=0;r-=1)e.virtual.slides.splice(t[r],1),e.params.virtual.cache&&delete e.virtual.cache[t[r]],t[r]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var F={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){h.extend(this,{virtual:{update:j.update.bind(this),appendSlide:j.appendSlide.bind(this),prependSlide:j.prependSlide.bind(this),removeSlide:j.removeSlide.bind(this),removeAllSlides:j.removeAllSlides.bind(this),renderSlide:j.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(`${t.params.containerModifierClass}virtual`);const e={watchSlidesProgress:!0};h.extend(t.params,e),h.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const z={handle(t){const e=this,{rtlTranslate:n}=e;let r=t;r.originalEvent&&(r=r.originalEvent);const i=r.keyCode||r.charCode,s=e.params.keyboard.pageUpDown,u=s&&33===i,l=s&&34===i,c=37===i,f=39===i,h=38===i,d=40===i;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&d||l))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&c||e.isVertical()&&h||u))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||o.activeElement&&o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(u||l||c||f||h||d)){let t=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&0===e.$el.parents(`.${e.params.slideActiveClass}`).length)return;const r=a.innerWidth,i=a.innerHeight,o=e.$el.offset();n&&(o.left-=e.$el[0].scrollLeft);const s=[[o.left,o.top],[o.left+e.width,o.top],[o.left,o.top+e.height],[o.left+e.width,o.top+e.height]];for(let e=0;e<s.length;e+=1){const n=s[e];n[0]>=0&&n[0]<=r&&n[1]>=0&&n[1]<=i&&(t=!0)}if(!t)return}e.isHorizontal()?((u||l||c||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((l||f)&&!n||(u||c)&&n)&&e.slideNext(),((u||c)&&!n||(l||f)&&n)&&e.slidePrev()):((u||l||h||d)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(l||d)&&e.slideNext(),(u||h)&&e.slidePrev()),e.emit("keyPress",i)}},enable(){this.keyboard.enabled||(l(o).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable(){this.keyboard.enabled&&(l(o).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}};var $={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){h.extend(this,{keyboard:{enabled:!1,enable:z.enable.bind(this),disable:z.disable.bind(this),handle:z.handle.bind(this)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};const V={lastScrollTime:h.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:()=>a.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){let t="onwheel"in o;if(!t){const e=o.createElement("div");e.setAttribute("onwheel","return;"),t="function"==typeof e.onwheel}return!t&&o.implementation&&o.implementation.hasFeature&&!0!==o.implementation.hasFeature("","")&&(t=o.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize(t){let e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),t.shiftKey&&!r&&(r=i,i=0),(r||i)&&t.deltaMode&&(1===t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(t){let e=t;const n=this,r=n.params.mousewheel;n.params.cssMode&&e.preventDefault();let i=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(i=l(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!i[0].contains(e.target)&&!r.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let o=0;const s=n.rtlTranslate?-1:1,a=V.normalize(e);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return!0;o=-a.pixelX*s}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return!0;o=-a.pixelY}else o=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*s:-a.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),n.params.freeMode){const t={time:h.now(),delta:Math.abs(o),direction:Math.sign(o)},{lastEventBeforeSnap:i}=n.mousewheel,s=i&&t.time<i.time+500&&t.delta<=i.delta&&t.direction===i.direction;if(!s){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();let i=n.getTranslate()+o*r.sensitivity;const a=n.isBeginning,u=n.isEnd;if(i>=n.minTranslate()&&(i=n.minTranslate()),i<=n.maxTranslate()&&(i=n.maxTranslate()),n.setTransition(0),n.setTranslate(i),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!a&&n.isBeginning||!u&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;const e=n.mousewheel.recentWheelEvents;e.length>=15&&e.shift();const r=e.length?e[e.length-1]:void 0,i=e[0];if(e.push(t),r&&(t.delta>r.delta||t.direction!==r.direction))e.splice(0);else if(e.length>=15&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const r=o>0?.8:.2;n.mousewheel.lastEventBeforeSnap=t,e.splice(0),n.mousewheel.timeout=h.nextTick(()=>{n.slideToClosest(n.params.speed,!0,void 0,r)},0)}n.mousewheel.timeout||(n.mousewheel.timeout=h.nextTick(()=>{n.mousewheel.lastEventBeforeSnap=t,e.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)},500))}if(s||n.emit("scroll",e),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),i===n.minTranslate()||i===n.maxTranslate())return!0}}else{const e={time:h.now(),delta:Math.abs(o),direction:Math.sign(o),raw:t},r=n.mousewheel.recentWheelEvents;r.length>=2&&r.shift();const i=r.length?r[r.length-1]:void 0;if(r.push(e),i?(e.direction!==i.direction||e.delta>i.delta||e.time>i.time+150)&&n.mousewheel.animateSlider(e):n.mousewheel.animateSlider(e),n.mousewheel.releaseScroll(e))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider(t){const e=this;return t.delta>=6&&h.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new a.Date).getTime(),!1)},releaseScroll(t){const e=this,n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1},enable(){const t=this,e=V.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;let n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=l(t.params.mousewheel.eventsTarged)),n.on("mouseenter",t.mousewheel.handleMouseEnter),n.on("mouseleave",t.mousewheel.handleMouseLeave),n.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,e=V.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;let n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=l(t.params.mousewheel.eventsTarged)),n.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};const B={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:n,$prevEl:r}=t.navigation;r&&r.length>0&&(t.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(t.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init(){const t=this,e=t.params.navigation;if(!e.nextEl&&!e.prevEl)return;let n,r;e.nextEl&&(n=l(e.nextEl),t.params.uniqueNavElements&&"string"==typeof e.nextEl&&n.length>1&&1===t.$el.find(e.nextEl).length&&(n=t.$el.find(e.nextEl))),e.prevEl&&(r=l(e.prevEl),t.params.uniqueNavElements&&"string"==typeof e.prevEl&&r.length>1&&1===t.$el.find(e.prevEl).length&&(r=t.$el.find(e.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),r&&r.length>0&&r.on("click",t.navigation.onPrevClick),h.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",t.navigation.onPrevClick),n.removeClass(t.params.navigation.disabledClass))}};const q={update(){const t=this,e=t.rtl,n=t.params.pagination;if(!n.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let o;const s=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>r-1-2*t.loopedSlides&&(o-=r-2*t.loopedSlides),o>s-1&&(o-=s),o<0&&"bullets"!==t.params.paginationType&&(o=s+o)):o=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let s,a,u;if(n.dynamicBullets&&(t.pagination.bulletSize=r.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(t.isHorizontal()?"width":"height",`${t.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),s=o-t.pagination.dynamicBulletIndex,u=((a=s+(Math.min(r.length,n.dynamicMainBullets)-1))+s)/2),r.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),i.length>1)r.each((t,e)=>{const r=l(e),i=r.index();i===o&&r.addClass(n.bulletActiveClass),n.dynamicBullets&&(i>=s&&i<=a&&r.addClass(`${n.bulletActiveClass}-main`),i===s&&r.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),i===a&&r.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else{const e=r.eq(o),i=e.index();if(e.addClass(n.bulletActiveClass),n.dynamicBullets){const e=r.eq(s),o=r.eq(a);for(let t=s;t<=a;t+=1)r.eq(t).addClass(`${n.bulletActiveClass}-main`);if(t.params.loop)if(i>=r.length-n.dynamicMainBullets){for(let t=n.dynamicMainBullets;t>=0;t-=1)r.eq(r.length-t).addClass(`${n.bulletActiveClass}-main`);r.eq(r.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else e.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),o.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`);else e.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),o.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),o=(t.pagination.bulletSize*i-t.pagination.bulletSize)/2-u*t.pagination.bulletSize,s=e?"right":"left";r.css(t.isHorizontal()?s:"top",`${o}px`)}}if("fraction"===n.type&&(i.find(`.${n.currentClass}`).text(n.formatFractionCurrent(o+1)),i.find(`.${n.totalClass}`).text(n.formatFractionTotal(s))),"progressbar"===n.type){let e;e=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(o+1)/s;let a=1,u=1;"horizontal"===e?a=r:u=r,i.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${a}) scaleY(${u})`).transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(i.html(n.renderCustom(t,o+1,s)),t.emit("paginationRender",t,i[0])):t.emit("paginationUpdate",t,i[0]),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el;let i="";if("bullets"===e.type){const o=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;for(let n=0;n<o;n+=1)e.renderBullet?i+=e.renderBullet.call(t,n,e.bulletClass):i+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;r.html(i),t.pagination.bullets=r.find(`.${e.bulletClass}`)}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span>`+" / "+`<span class="${e.totalClass}"></span>`,r.html(i)),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,r.html(i)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let n=l(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",`.${e.bulletClass}`,function(e){e.preventDefault();let n=l(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),h.extend(t.pagination,{$el:n,el:n[0]}))},destroy(){const t=this.params.pagination;if(!t.el||!this.pagination.el||!this.pagination.$el||0===this.pagination.$el.length)return;const e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click",`.${t.bulletClass}`)}};const U={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:r}=t,{dragSize:i,trackSize:o,$dragEl:s,$el:a}=e,u=t.params.scrollbar;let l=i,c=(o-i)*r;n?(c=-c)>0?(l=i-c,c=0):-c+i>o&&(l=o+c):c<0?(l=i+c,c=0):c+i>o&&(l=o-c),t.isHorizontal()?(s.transform(`translate3d(${c}px, 0, 0)`),s[0].style.width=`${l}px`):(s.transform(`translate3d(0px, ${c}px, 0)`),s[0].style.height=`${l}px`),u.hide&&(clearTimeout(t.scrollbar.timeout),a[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{a[0].style.opacity=0,a.transition(400)},1e3))},setTransition(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:r}=e;n[0].style.width="",n[0].style.height="";const i=t.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,o=t.size/t.virtualSize,s=o*(i/t.size);let a;a="auto"===t.params.scrollbar.dragSize?i*o:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=`${a}px`:n[0].style.height=`${a}px`,r[0].style.display=o>=1?"none":"",t.params.scrollbar.hide&&(r[0].style.opacity=0),h.extend(e,{trackSize:i,divider:o,moveDivider:s,dragSize:a}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const{scrollbar:e,rtlTranslate:n}=this,{$el:r,dragSize:i,trackSize:o,dragStartPos:s}=e;let a;a=(e.getPointerPosition(t)-r.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:i/2))/(o-i),a=Math.max(Math.min(a,1),0),n&&(a=1-a);const u=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*a;this.updateProgress(u),this.setTranslate(u),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart(t){const e=this,n=e.params.scrollbar,{scrollbar:r,$wrapperEl:i}=e,{$el:o,$dragEl:s}=r;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===s[0]||t.target===s?r.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),s.transition(100),r.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),n.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove(t){const{scrollbar:e,$wrapperEl:n}=this,{$el:r,$dragEl:i}=e;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),n.transition(0),r.transition(0),i.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,n=e.params.scrollbar,{scrollbar:r,$wrapperEl:i}=e,{$el:o}=r;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),i.transition("")),n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=h.nextTick(()=>{o.css("opacity",0),o.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:r,params:i}=t,s=e.$el[0],a=!(!d.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},u=!(!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};d.touch?(s.addEventListener(n.start,t.scrollbar.onDragStart,a),s.addEventListener(n.move,t.scrollbar.onDragMove,a),s.addEventListener(n.end,t.scrollbar.onDragEnd,u)):(s.addEventListener(r.start,t.scrollbar.onDragStart,a),o.addEventListener(r.move,t.scrollbar.onDragMove,a),o.addEventListener(r.end,t.scrollbar.onDragEnd,u))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:r,params:i}=t,s=e.$el[0],a=!(!d.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},u=!(!d.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};d.touch?(s.removeEventListener(n.start,t.scrollbar.onDragStart,a),s.removeEventListener(n.move,t.scrollbar.onDragMove,a),s.removeEventListener(n.end,t.scrollbar.onDragEnd,u)):(s.removeEventListener(r.start,t.scrollbar.onDragStart,a),o.removeEventListener(r.move,t.scrollbar.onDragMove,a),o.removeEventListener(r.end,t.scrollbar.onDragEnd,u))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:n}=t,r=t.params.scrollbar;let i=l(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&i.length>1&&1===n.find(r.el).length&&(i=n.find(r.el));let o=i.find(`.${t.params.scrollbar.dragClass}`);0===o.length&&(o=l(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(o)),h.extend(e,{$el:i,el:i[0],$dragEl:o,dragEl:o[0]}),r.draggable&&e.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};const W={setTransform(t,e){const{rtl:n}=this,r=l(t),i=n?-1:1,o=r.attr("data-swiper-parallax")||"0";let s=r.attr("data-swiper-parallax-x"),a=r.attr("data-swiper-parallax-y");const u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(s||a?(s=s||"0",a=a||"0"):this.isHorizontal()?(s=o,a="0"):(a=o,s="0"),s=s.indexOf("%")>=0?`${parseInt(s,10)*e*i}%`:`${s*e*i}px`,a=a.indexOf("%")>=0?`${parseInt(a,10)*e}%`:`${a*e}px`,void 0!==c&&null!==c){const t=c-(c-1)*(1-Math.abs(e));r[0].style.opacity=t}if(void 0===u||null===u)r.transform(`translate3d(${s}, ${a}, 0px)`);else{const t=u-(u-1)*(1-Math.abs(e));r.transform(`translate3d(${s}, ${a}, 0px) scale(${t})`)}},setTranslate(){const t=this,{$el:e,slides:n,progress:r,snapGrid:i}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{t.parallax.setTransform(n,r)}),n.each((e,n)=>{let o=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(e/2)-r*(i.length-1)),o=Math.min(Math.max(o,-1),1),l(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{t.parallax.setTransform(n,o)})})},setTransition(t=this.params.speed){const{$el:e}=this;e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,n)=>{const r=l(n);let i=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),r.transition(i)})}};const H={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,r=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY;return Math.sqrt((r-e)**2+(i-n)**2)},onGestureStart(t){const e=this,n=e.params.zoom,r=e.zoom,{gesture:i}=r;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!d.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,i.scaleStart=H.getDistanceBetweenTouches(t)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=l(t.target).closest(`.${e.params.slideClass}`),0===i.$slideEl.length&&(i.$slideEl=e.slides.eq(e.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent(`.${n.containerClass}`),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl&&i.$imageEl.transition(0),e.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange(t){const e=this.params.zoom,n=this.zoom,{gesture:r}=n;if(!d.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=H.getDistanceBetweenTouches(t)}r.$imageEl&&0!==r.$imageEl.length&&(d.gestures?n.scale=t.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+(n.scale-r.maxRatio+1)**.5),n.scale<e.minRatio&&(n.scale=e.minRatio+1-(e.minRatio-n.scale+1)**.5),r.$imageEl.transform(`translate3d(0,0,0) scale(${n.scale})`))},onGestureEnd(t){const e=this.params.zoom,n=this.zoom,{gesture:r}=n;if(!d.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!_.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),e.minRatio),r.$imageEl.transition(this.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart(t){const e=this.zoom,{gesture:n,image:r}=e;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(_.android&&t.cancelable&&t.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,r.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove(t){const e=this,n=e.zoom,{gesture:r,image:i,velocity:o}=n;if(!r.$imageEl||0===r.$imageEl.length)return;if(e.allowClick=!1,!i.isTouched||!r.$slideEl)return;i.isMoved||(i.width=r.$imageEl[0].offsetWidth,i.height=r.$imageEl[0].offsetHeight,i.startX=h.getTranslate(r.$imageWrapEl[0],"x")||0,i.startY=h.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*n.scale,a=i.height*n.scale;if(!(s<r.slideWidth&&a<r.slideHeight)){if(i.minX=Math.min(r.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(r.slideHeight/2-a/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=i.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=i.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(i.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(i.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(i.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(i.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=i.touchesCurrent.x,o.prevPositionY=i.touchesCurrent.y,o.prevTime=Date.now(),r.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const t=this.zoom,{gesture:e,image:n,velocity:r}=t;if(!e.$imageEl||0===e.$imageEl.length)return;if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;let i=300,o=300;const s=r.x*i,a=n.currentX+s,u=r.y*o,l=n.currentY+u;0!==r.x&&(i=Math.abs((a-n.currentX)/r.x)),0!==r.y&&(o=Math.abs((l-n.currentY)/r.y));const c=Math.max(i,o);n.currentX=a,n.currentY=l;const f=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(e.slideWidth/2-f/2,0),n.maxX=-n.minX,n.minY=Math.min(e.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),e.$imageWrapEl.transition(c).transform(`translate3d(${n.currentX}px, ${n.currentY}px,0)`)},onTransitionEnd(){const t=this.zoom,{gesture:e}=t;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl&&e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl&&e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle(t){const e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in(t){const e=this,n=e.zoom,r=e.params.zoom,{gesture:i,image:o}=n;if(i.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):i.$slideEl=e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent(`.${r.containerClass}`)),!i.$imageEl||0===i.$imageEl.length)return;let s,a,u,l,c,f,h,d,p,v,g,m,y,b,w,E,_,x;i.$slideEl.addClass(`${r.zoomedSlideClass}`),void 0===o.touchesStart.x&&t?(s="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,a="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(s=o.touchesStart.x,a=o.touchesStart.y),n.scale=i.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(_=i.$slideEl[0].offsetWidth,x=i.$slideEl[0].offsetHeight,c=(u=i.$slideEl.offset().left)+_/2-s,f=(l=i.$slideEl.offset().top)+x/2-a,p=i.$imageEl[0].offsetWidth,v=i.$imageEl[0].offsetHeight,g=p*n.scale,m=v*n.scale,w=-(y=Math.min(_/2-g/2,0)),E=-(b=Math.min(x/2-m/2,0)),h=c*n.scale,d=f*n.scale,h<y&&(h=y),h>w&&(h=w),d<b&&(d=b),d>E&&(d=E)):(h=0,d=0),i.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${d}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const t=this,e=t.zoom,n=t.params.zoom,{gesture:r}=e;r.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?r.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):r.$slideEl=t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(`.${n.containerClass}`)),r.$imageEl&&0!==r.$imageEl.length&&(e.scale=1,e.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(`${n.zoomedSlideClass}`),r.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=!("touchstart"!==t.touchEvents.start||!d.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!d.passiveListener||{passive:!1,capture:!0},i=`.${t.params.slideClass}`;d.gestures?(t.$wrapperEl.on("gesturestart",i,e.onGestureStart,n),t.$wrapperEl.on("gesturechange",i,e.onGestureChange,n),t.$wrapperEl.on("gestureend",i,e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,i,e.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,i,e.onGestureChange,r),t.$wrapperEl.on(t.touchEvents.end,i,e.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,i,e.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove,r)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const n=!("touchstart"!==t.touchEvents.start||!d.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!d.passiveListener||{passive:!1,capture:!0},i=`.${t.params.slideClass}`;d.gestures?(t.$wrapperEl.off("gesturestart",i,e.onGestureStart,n),t.$wrapperEl.off("gesturechange",i,e.onGestureChange,n),t.$wrapperEl.off("gestureend",i,e.onGestureEnd,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,i,e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,i,e.onGestureChange,r),t.$wrapperEl.off(t.touchEvents.end,i,e.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,i,e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove,r)}};const G={loadInSlide(t,e=!0){const n=this,r=n.params.lazy;if(void 0===t)return;if(0===n.slides.length)return;const i=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${t}"]`):n.slides.eq(t);let o=i.find(`.${r.elementClass}:not(.${r.loadedClass}):not(.${r.loadingClass})`);!i.hasClass(r.elementClass)||i.hasClass(r.loadedClass)||i.hasClass(r.loadingClass)||(o=o.add(i[0])),0!==o.length&&o.each((t,o)=>{const s=l(o);s.addClass(r.loadingClass);const a=s.attr("data-background"),u=s.attr("data-src"),c=s.attr("data-srcset"),f=s.attr("data-sizes"),h=s.parent("picture");n.loadImage(s[0],u||a,c,f,!1,()=>{if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(a?(s.css("background-image",`url("${a}")`),s.removeAttr("data-background")):(c&&(s.attr("srcset",c),s.removeAttr("data-srcset")),f&&(s.attr("sizes",f),s.removeAttr("data-sizes")),h.length&&h.children("source").each((t,e)=>{const n=l(e);n.attr("data-srcset")&&(n.attr("srcset",n.attr("data-srcset")),n.removeAttr("data-srcset"))}),u&&(s.attr("src",u),s.removeAttr("data-src"))),s.addClass(r.loadedClass).removeClass(r.loadingClass),i.find(`.${r.preloaderClass}`).remove(),n.params.loop&&e){const t=i.attr("data-swiper-slide-index");if(i.hasClass(n.params.slideDuplicateClass)){const e=n.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(e.index(),!1)}else{const e=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`);n.lazy.loadInSlide(e.index(),!1)}}n.emit("lazyImageReady",i[0],s[0]),n.params.autoHeight&&n.updateAutoHeight()}}),n.emit("lazyImageLoad",i[0],s[0])})},load(){const t=this,{$wrapperEl:e,params:n,slides:r,activeIndex:i}=t,o=t.virtual&&n.virtual.enabled,s=n.lazy;let a=n.slidesPerView;function u(t){if(o){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(r[t])return!0;return!1}function c(t){return o?l(t).attr("data-swiper-slide-index"):l(t).index()}if("auto"===a&&(a=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children(`.${n.slideVisibleClass}`).each((e,n)=>{const r=o?l(n).attr("data-swiper-slide-index"):l(n).index();t.lazy.loadInSlide(r)});else if(a>1)for(let e=i;e<i+a;e+=1)u(e)&&t.lazy.loadInSlide(e);else t.lazy.loadInSlide(i);if(s.loadPrevNext)if(a>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const e=s.loadPrevNextAmount,n=a,o=Math.min(i+n+Math.max(e,n),r.length),l=Math.max(i-Math.max(n,e),0);for(let e=i+a;e<o;e+=1)u(e)&&t.lazy.loadInSlide(e);for(let e=l;e<i;e+=1)u(e)&&t.lazy.loadInSlide(e)}else{const r=e.children(`.${n.slideNextClass}`);r.length>0&&t.lazy.loadInSlide(c(r));const i=e.children(`.${n.slidePrevClass}`);i.length>0&&t.lazy.loadInSlide(c(i))}}};const X={LinearSpline:function(t,e){const n=function(){let t,e,n;return(r,i)=>{for(e=-1,t=r.length;t-e>1;)r[n=t+e>>1]<=i?e=n:t=n;return t}}();let r,i;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(i=n(this.x,t),r=i-1,(t-this.x[r])*(this.y[i]-this.y[r])/(this.x[i]-this.x[r])+this.y[r]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new X.LinearSpline(e.slidesGrid,t.slidesGrid):new X.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const n=this,r=n.controller.control;let i,o;function s(t){const e=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(t),o=-n.controller.spline.interpolate(-e)),o&&"container"!==n.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(n.maxTranslate()-n.minTranslate()),o=(e-n.minTranslate())*i+t.minTranslate()),n.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,n),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(r))for(let t=0;t<r.length;t+=1)r[t]!==e&&r[t]instanceof O&&s(r[t]);else r instanceof O&&e!==r&&s(r)},setTransition(t,e){const n=this,r=n.controller.control;let i;function o(e){e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&h.nextTick(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{r&&(e.params.loop&&"slide"===n.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==e&&r[i]instanceof O&&o(r[i]);else r instanceof O&&e!==r&&o(r)}};const Y={makeElFocusable:t=>(t.attr("tabIndex","0"),t),makeElNotFocusable:t=>(t.attr("tabIndex","-1"),t),addElRole:(t,e)=>(t.attr("role",e),t),addElLabel:(t,e)=>(t.attr("aria-label",e),t),disableEl:t=>(t.attr("aria-disabled",!0),t),enableEl:t=>(t.attr("aria-disabled",!1),t),onEnterKey(t){const e=this,n=e.params.a11y;if(13!==t.keyCode)return;const r=l(t.target);e.navigation&&e.navigation.$nextEl&&r.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&r.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&r.is(`.${e.params.pagination.bulletClass}`)&&r[0].click()},notify(t){const e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:e,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?(t.a11y.disableEl(n),t.a11y.makeElNotFocusable(n)):(t.a11y.enableEl(n),t.a11y.makeElFocusable(n))),e&&e.length>0&&(t.isEnd?(t.a11y.disableEl(e),t.a11y.makeElNotFocusable(e)):(t.a11y.enableEl(e),t.a11y.makeElFocusable(e)))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((n,r)=>{const i=l(r);t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let n,r;t.navigation&&t.navigation.$nextEl&&(n=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(r=t.navigation.$prevEl),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.nextSlideMessage),n.on("keydown",t.a11y.onEnterKey)),r&&(t.a11y.makeElFocusable(r),t.a11y.addElRole(r,"button"),t.a11y.addElLabel(r,e.prevSlideMessage),r.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)},destroy(){const t=this;let e,n;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),n&&n.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)}};const K={init(){const t=this;if(!t.params.history)return;if(!a.history||!a.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);const e=t.history;e.initialized=!0,e.paths=K.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||a.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||a.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){this.history.paths=K.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues(){const t=a.location.pathname.slice(1).split("/").filter(t=>""!==t),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory(t,e){if(!this.history.initialized||!this.params.history.enabled)return;const n=this.slides.eq(e);let r=K.slugify(n.attr("data-history"));a.location.pathname.includes(t)||(r=`${t}/${r}`);const i=a.history.state;i&&i.value===r||(this.params.history.replaceState?a.history.replaceState({value:r},null,r):a.history.pushState({value:r},null,r))},slugify:t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(t,e,n){const r=this;if(e)for(let i=0,o=r.slides.length;i<o;i+=1){const o=r.slides.eq(i);if(K.slugify(o.attr("data-history"))===e&&!o.hasClass(r.params.slideDuplicateClass)){const e=o.index();r.slideTo(e,t,n)}}else r.slideTo(0,t,n)}};const Q={onHashCange(){const t=this;t.emit("hashChange");const e=o.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const n=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===n)return;t.slideTo(n)}},setHash(){const t=this;if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState)a.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),t.emit("hashSet");else{const e=t.slides.eq(t.activeIndex),n=e.attr("data-hash")||e.attr("data-history");o.location.hash=n||"",t.emit("hashSet")}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=o.location.hash.replace("#","");if(e){const n=0;for(let r=0,i=t.slides.length;r<i;r+=1){const i=t.slides.eq(r);if((i.attr("data-hash")||i.attr("data-history"))===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,n,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&l(a).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&l(a).off("hashchange",t.hashNavigation.onHashCange)}};const J={run(){const t=this,e=t.slides.eq(t.activeIndex);let n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=h.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},n)},start(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop(){const t=this;return!!t.autoplay.running&&(void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}};const Z={setTranslate(){const t=this,{slides:e}=t;for(let n=0;n<e.length;n+=1){const e=t.slides.eq(n);let r=-e[0].swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let i=0;t.isHorizontal()||(i=r,r=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:o}).transform(`translate3d(${r}px, ${i}px, 0px)`)}},setTransition(t){const e=this,{slides:n,$wrapperEl:r}=e;if(n.transition(t),e.params.virtualTranslate&&0!==t){let t=!1;n.transitionEnd(()=>{if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let t=0;t<n.length;t+=1)r.trigger(n[t])})}}};const tt={setTranslate(){const{$el:t,$wrapperEl:e,slides:n,width:r,height:i,rtlTranslate:o,size:s}=this,a=this.params.cubeEffect,u=this.isHorizontal(),c=this.virtual&&this.params.virtual.enabled;let f,h=0;a.shadow&&(u?(0===(f=e.find(".swiper-cube-shadow")).length&&(f=l('<div class="swiper-cube-shadow"></div>'),e.append(f)),f.css({height:`${r}px`})):0===(f=t.find(".swiper-cube-shadow")).length&&(f=l('<div class="swiper-cube-shadow"></div>'),t.append(f)));for(let t=0;t<n.length;t+=1){const e=n.eq(t);let r=t;c&&(r=parseInt(e.attr("data-swiper-slide-index"),10));let i=90*r,f=Math.floor(i/360);o&&(i=-i,f=Math.floor(-i/360));const d=Math.max(Math.min(e[0].progress,1),-1);let p=0,v=0,g=0;r%4==0?(p=4*-f*s,g=0):(r-1)%4==0?(p=0,g=4*-f*s):(r-2)%4==0?(p=s+4*f*s,g=s):(r-3)%4==0&&(p=-s,g=3*s+4*s*f),o&&(p=-p),u||(v=p,p=0);const m=`rotateX(${u?0:-i}deg) rotateY(${u?i:0}deg) translate3d(${p}px, ${v}px, ${g}px)`;if(d<=1&&d>-1&&(h=90*r+90*d,o&&(h=90*-r-90*d)),e.transform(m),a.slideShadows){let t=u?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=u?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=l(`<div class="swiper-slide-shadow-${u?"left":"top"}"></div>`),e.append(t)),0===n.length&&(n=l(`<div class="swiper-slide-shadow-${u?"right":"bottom"}"></div>`),e.append(n)),t.length&&(t[0].style.opacity=Math.max(-d,0)),n.length&&(n[0].style.opacity=Math.max(d,0))}}if(e.css({"-webkit-transform-origin":`50% 50% -${s/2}px`,"-moz-transform-origin":`50% 50% -${s/2}px`,"-ms-transform-origin":`50% 50% -${s/2}px`,"transform-origin":`50% 50% -${s/2}px`}),a.shadow)if(u)f.transform(`translate3d(0px, ${r/2+a.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${a.shadowScale})`);else{const t=Math.abs(h)-90*Math.floor(Math.abs(h)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),n=a.shadowScale,r=a.shadowScale/e,o=a.shadowOffset;f.transform(`scale3d(${n}, 1, ${r}) translate3d(0px, ${i/2+o}px, ${-i/2/r}px) rotateX(-90deg)`)}const d=L.isSafari||L.isWebView?-s/2:0;e.transform(`translate3d(0px,0,${d}px) rotateX(${this.isHorizontal()?0:h}deg) rotateY(${this.isHorizontal()?-h:0}deg)`)},setTransition(t){const{$el:e,slides:n}=this;n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}};const et={setTranslate(){const t=this,{slides:e,rtlTranslate:n}=t;for(let r=0;r<e.length;r+=1){const i=e.eq(r);let o=i[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(i[0].progress,1),-1));let s=-180*o,a=0,u=-i[0].swiperSlideOffset,c=0;if(t.isHorizontal()?n&&(s=-s):(c=u,u=0,a=-s,s=0),i[0].style.zIndex=-Math.abs(Math.round(o))+e.length,t.params.flipEffect.slideShadows){let e=t.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),n=t.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===e.length&&(e=l(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),i.append(e)),0===n.length&&(n=l(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),i.append(n)),e.length&&(e[0].style.opacity=Math.max(-o,0)),n.length&&(n[0].style.opacity=Math.max(o,0))}i.transform(`translate3d(${u}px, ${c}px, 0px) rotateX(${a}deg) rotateY(${s}deg)`)}},setTransition(t){const e=this,{slides:n,activeIndex:r,$wrapperEl:i}=e;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){let t=!1;n.eq(r).transitionEnd(function(){if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let t=0;t<n.length;t+=1)i.trigger(n[t])})}}};const nt={setTranslate(){const{width:t,height:e,slides:n,$wrapperEl:r,slidesSizesGrid:i}=this,o=this.params.coverflowEffect,s=this.isHorizontal(),a=this.translate,u=s?t/2-a:e/2-a,c=s?o.rotate:-o.rotate,f=o.depth;for(let t=0,e=n.length;t<e;t+=1){const e=n.eq(t),r=i[t],a=(u-e[0].swiperSlideOffset-r/2)/r*o.modifier;let h=s?c*a:0,d=s?0:c*a,p=-f*Math.abs(a),v=o.stretch;"string"==typeof v&&-1!==v.indexOf("%")&&(v=parseFloat(o.stretch)/100*r);let g=s?0:v*a,m=s?v*a:0,y=1-(1-o.scale)*Math.abs(a);Math.abs(m)<.001&&(m=0),Math.abs(g)<.001&&(g=0),Math.abs(p)<.001&&(p=0),Math.abs(h)<.001&&(h=0),Math.abs(d)<.001&&(d=0),Math.abs(y)<.001&&(y=0);const b=`translate3d(${m}px,${g}px,${p}px)  rotateX(${d}deg) rotateY(${h}deg) scale(${y})`;if(e.transform(b),e[0].style.zIndex=1-Math.abs(Math.round(a)),o.slideShadows){let t=s?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=s?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=l(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`),e.append(t)),0===n.length&&(n=l(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`),e.append(n)),t.length&&(t[0].style.opacity=a>0?a:0),n.length&&(n[0].style.opacity=-a>0?-a:0)}}if(d.pointerEvents||d.prefixedPointerEvents){r[0].style.perspectiveOrigin=`${u}px 50%`}},setTransition(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};const rt={init(){const t=this,{thumbs:e}=t.params,n=t.constructor;e.swiper instanceof n?(t.thumbs.swiper=e.swiper,h.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),h.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):h.isObject(e.swiper)&&(t.thumbs.swiper=new n(h.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&l(r).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(void 0===n||null===n)return;let i;if(i=e.params.loop?parseInt(l(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const n=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),r=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===n?r:void 0===r?n:r-e<e-n?r:n}t.slideTo(i)},update(t){const e=this,n=e.thumbs.swiper;if(!n)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,i=e.params.thumbs.autoScrollOffset,o=i&&!n.params.loop;if(e.realIndex!==n.realIndex||o){let s,a,u=n.activeIndex;if(n.params.loop){n.slides.eq(u).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,u=n.activeIndex);const t=n.slides.eq(u).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),r=n.slides.eq(u).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();s=void 0===t?r:void 0===r?t:r-u==u-t?u:r-u<u-t?r:t,a=e.activeIndex>e.previousIndex?"next":"prev"}else a=(s=e.realIndex)>e.previousIndex?"next":"prev";o&&(s+="next"===a?i:-1*i),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(s)<0&&(n.params.centeredSlides?s=s>u?s-Math.floor(r/2)+1:s+Math.floor(r/2)-1:s>u&&(s=s-r+1),n.slideTo(s,t?0:void 0))}let s=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(s=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),n.slides.removeClass(a),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let t=0;t<s;t+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(a);else for(let t=0;t<s;t+=1)n.slides.eq(e.realIndex+t).addClass(a)}};const it=[N,k,D,M,R,F,$,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){h.extend(this,{mousewheel:{enabled:!1,enable:V.enable.bind(this),disable:V.disable.bind(this),handle:V.handle.bind(this),handleMouseEnter:V.handleMouseEnter.bind(this),handleMouseLeave:V.handleMouseLeave.bind(this),animateSlider:V.animateSlider.bind(this),releaseScroll:V.releaseScroll.bind(this),lastScrollTime:h.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){h.extend(this,{navigation:{init:B.init.bind(this),update:B.update.bind(this),destroy:B.destroy.bind(this),onNextClick:B.onNextClick.bind(this),onPrevClick:B.onPrevClick.bind(this)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(t){const e=this,{$nextEl:n,$prevEl:r}=e.navigation;if(e.params.navigation.hideOnClick&&!l(t.target).is(r)&&!l(t.target).is(n)){let t;n?t=n.hasClass(e.params.navigation.hiddenClass):r&&(t=r.hasClass(e.params.navigation.hiddenClass)),!0===t?e.emit("navigationShow",e):e.emit("navigationHide",e),n&&n.toggleClass(e.params.navigation.hiddenClass),r&&r.toggleClass(e.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){h.extend(this,{pagination:{init:q.init.bind(this),render:q.render.bind(this),update:q.update.bind(this),destroy:q.destroy.bind(this),dynamicBulletIndex:0}})},on:{init(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange(){const t=this;t.params.loop?t.pagination.update():void 0===t.snapIndex&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){this.pagination.destroy()},click(t){const e=this;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!l(t.target).hasClass(e.params.pagination.bulletClass)){!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){h.extend(this,{scrollbar:{init:U.init.bind(this),destroy:U.destroy.bind(this),updateSize:U.updateSize.bind(this),setTranslate:U.setTranslate.bind(this),setTransition:U.setTransition.bind(this),enableDraggable:U.enableDraggable.bind(this),disableDraggable:U.disableDraggable.bind(this),setDragPosition:U.setDragPosition.bind(this),getPointerPosition:U.getPointerPosition.bind(this),onDragStart:U.onDragStart.bind(this),onDragMove:U.onDragMove.bind(this),onDragEnd:U.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(t){this.scrollbar.setTransition(t)},destroy(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create(){h.extend(this,{parallax:{setTransform:W.setTransform.bind(this),setTranslate:W.setTranslate.bind(this),setTransition:W.setTransition.bind(this)}})},on:{beforeInit(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(n=>{e[n]=H[n].bind(t)}),h.extend(t,{zoom:e});let n=1;Object.defineProperty(t.zoom,"scale",{get:()=>n,set(e){if(n!==e){const n=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,n,r)}n=e}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){this.zoom.disable()},touchStart(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){h.extend(this,{lazy:{initialImageLoaded:!1,load:G.load.bind(this),loadInSlide:G.loadInSlide.bind(this)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){h.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:X.getInterpolateFunction.bind(this),setTranslate:X.setTranslate.bind(this),setTransition:X.setTransition.bind(this)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;h.extend(t,{a11y:{liveRegion:l(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Y).forEach(e=>{t.a11y[e]=Y[e].bind(t)})},on:{init(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){h.extend(this,{history:{init:K.init.bind(this),setHistory:K.setHistory.bind(this),setHistoryPopState:K.setHistoryPopState.bind(this),scrollToSlide:K.scrollToSlide.bind(this),destroy:K.destroy.bind(this)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){h.extend(this,{hashNavigation:{initialized:!1,init:Q.init.bind(this),destroy:Q.destroy.bind(this),setHash:Q.setHash.bind(this),onHashCange:Q.onHashCange.bind(this)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;h.extend(t,{autoplay:{running:!1,paused:!1,run:J.run.bind(t),start:J.start.bind(t),stop:J.stop.bind(t),pause:J.pause.bind(t),onVisibilityChange(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,e){const n=this;n.autoplay.running&&(e||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):n.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){h.extend(this,{fadeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit(){if("fade"!==this.params.effect)return;this.classNames.push(`${this.params.containerModifierClass}fade`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};h.extend(this.params,t),h.extend(this.originalParams,t)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){h.extend(this,{cubeEffect:{setTranslate:tt.setTranslate.bind(this),setTransition:tt.setTransition.bind(this)}})},on:{beforeInit(){if("cube"!==this.params.effect)return;this.classNames.push(`${this.params.containerModifierClass}cube`),this.classNames.push(`${this.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};h.extend(this.params,t),h.extend(this.originalParams,t)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){h.extend(this,{flipEffect:{setTranslate:et.setTranslate.bind(this),setTransition:et.setTransition.bind(this)}})},on:{beforeInit(){if("flip"!==this.params.effect)return;this.classNames.push(`${this.params.containerModifierClass}flip`),this.classNames.push(`${this.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};h.extend(this.params,t),h.extend(this.originalParams,t)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){h.extend(this,{coverflowEffect:{setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this)}})},on:{beforeInit(){"coverflow"===this.params.effect&&(this.classNames.push(`${this.params.containerModifierClass}coverflow`),this.classNames.push(`${this.params.containerModifierClass}3d`),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){h.extend(this,{thumbs:{swiper:null,init:rt.init.bind(this),update:rt.update.bind(this),onThumbClick:rt.onThumbClick.bind(this)}})},on:{beforeInit(){const{thumbs:t}=this.params;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(t){const e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy(){const t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];void 0===O.use&&(O.use=O.Class.use,O.installModule=O.Class.installModule),O.use(it);e.a=O},,function(t,e,n){"use strict";n(237);var r,i=(r=n(409))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn,i.default._babelPolyfill=!0},function(t,e,n){"use strict";n(238),n(381),n(383),n(386),n(388),n(390),n(392),n(394),n(396),n(398),n(400),n(402),n(404),n(408)},function(t,e,n){n(239),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(320),n(321),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(124),n(344),n(175),n(345),n(176),n(346),n(347),n(348),n(349),n(177),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),t.exports=n(10)},function(t,e,n){"use strict";var r=n(2),i=n(22),o=n(12),s=n(0),a=n(18),u=n(40).KEY,l=n(3),c=n(78),f=n(59),h=n(45),d=n(8),p=n(105),v=n(156),g=n(241),m=n(81),y=n(4),b=n(5),w=n(16),E=n(24),_=n(39),x=n(44),T=n(49),S=n(159),C=n(32),I=n(80),A=n(13),O=n(47),N=C.f,k=A.f,L=S.f,D=r.Symbol,M=r.JSON,P=M&&M.stringify,R=d("_hidden"),j=d("toPrimitive"),F={}.propertyIsEnumerable,z=c("symbol-registry"),$=c("symbols"),V=c("op-symbols"),B=Object.prototype,q="function"==typeof D&&!!I.f,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,H=o&&l(function(){return 7!=T(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=N(B,e);r&&delete B[e],k(t,e,n),r&&t!==B&&k(B,e,r)}:k,G=function(t){var e=$[t]=T(D.prototype);return e._k=t,e},X=q&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},Y=function(t,e,n){return t===B&&Y(V,e,n),y(t),e=_(e,!0),y(n),i($,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=T(n,{enumerable:x(0,!1)})):(i(t,R)||k(t,R,x(1,{})),t[R][e]=!0),H(t,e,n)):k(t,e,n)},K=function(t,e){y(t);for(var n,r=g(e=E(e)),i=0,o=r.length;o>i;)Y(t,n=r[i++],e[n]);return t},Q=function(t){var e=F.call(this,t=_(t,!0));return!(this===B&&i($,t)&&!i(V,t))&&(!(e||!i(this,t)||!i($,t)||i(this,R)&&this[R][t])||e)},J=function(t,e){if(t=E(t),e=_(e,!0),t!==B||!i($,e)||i(V,e)){var n=N(t,e);return!n||!i($,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=L(E(t)),r=[],o=0;n.length>o;)i($,e=n[o++])||e==R||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===B,r=L(n?V:E(t)),o=[],s=0;r.length>s;)!i($,e=r[s++])||n&&!i(B,e)||o.push($[e]);return o};q||(a((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(V,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),H(this,t,x(1,n))};return o&&W&&H(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",function(){return this._k}),C.f=J,A.f=Y,n(50).f=S.f=Z,n(71).f=Q,I.f=tt,o&&!n(46)&&a(B,"propertyIsEnumerable",Q,!0),p.f=function(t){return G(d(t))}),s(s.G+s.W+s.F*!q,{Symbol:D});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=O(d.store),it=0;rt.length>it;)v(rt[it++]);s(s.S+s.F*!q,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=D(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!q,"Object",{create:function(t,e){return void 0===e?T(t):K(T(t),e)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=l(function(){I.f(1)});s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return I.f(w(t))}}),M&&s(s.S+s.F*(!q||l(function(){var t=D();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,P.apply(M,r)}}),D.prototype[j]||n(23)(D.prototype,j,D.prototype.valueOf),f(D,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(78)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(47),i=n(80),o=n(71);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,l=0;a.length>l;)u.call(t,s=a[l++])&&e.push(s);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(49)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(12),"Object",{defineProperty:n(13).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(12),"Object",{defineProperties:n(158)})},function(t,e,n){var r=n(24),i=n(32).f;n(33)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(16),i=n(51);n(33)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(16),i=n(47);n(33)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(33)("getOwnPropertyNames",function(){return n(159).f})},function(t,e,n){var r=n(5),i=n(40).onFreeze;n(33)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(5),i=n(40).onFreeze;n(33)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(5),i=n(40).onFreeze;n(33)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(5);n(33)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(5);n(33)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(5);n(33)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(160)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(161)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(109).set})},function(t,e,n){"use strict";var r=n(72),i={};i[n(8)("toStringTag")]="z",i+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(162)})},function(t,e,n){var r=n(13).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(12)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(5),i=n(51),o=n(8)("hasInstance"),s=Function.prototype;o in s||n(13).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),i=n(164);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(0),i=n(165);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(2),i=n(22),o=n(36),s=n(111),a=n(39),u=n(3),l=n(50).f,c=n(32).f,f=n(13).f,h=n(60).trim,d=r.Number,p=d,v=d.prototype,g="Number"==o(n(49)(v)),m="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=m?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),l=0,c=u.length;l<c;l++)if((s=u.charCodeAt(l))<48||s>i)return NaN;return parseInt(u,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(g?u(function(){v.valueOf.call(n)}):"Number"!=o(n))?s(new p(y(e)),n,d):y(e)};for(var b,w=n(12)?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;E++)i(p,b=w[E])&&!i(d,b)&&f(d,b,c(p,b));d.prototype=v,v.constructor=d,n(18)(r,"Number",d)}},function(t,e,n){"use strict";var r=n(0),i=n(31),o=n(166),s=n(112),a=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=u(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=u(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e},p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,c),l=i(t),v="",g="0";if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(v="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*p(2,69,1))-69)<0?u*p(2,-e,1):u/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(f(0,n),r=l;r>=7;)f(1e7,0),r-=7;for(f(p(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<<r),f(1,1),h(2),g=d()}else f(0,n),f(1<<-e,0),g=d()+s.call("0",l);return g=l>0?v+((a=g.length)<=l?"0."+s.call("0",l-a)+g:g.slice(0,a-l)+"."+g.slice(a-l)):v+g}})},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(166),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(2).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(167)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(167),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(165);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(164);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(0),i=n(168),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(113);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(114);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(284)})},function(t,e,n){var r=n(113),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),l=r(t);return i<u?l*(i/u/s+1/o-1/o)*u*s:(n=(e=(1+s/o)*i)-(e-i))>a||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(3)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(168)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(113)})},function(t,e,n){var r=n(0),i=n(114),o=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(114),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(48),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(24),o=n(9);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){"use strict";n(60)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(115)(!0);n(116)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),i=n(115)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(117),s="".endsWith;r(r.P+r.F*n(119)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(0),i=n(117);r(r.P+r.F*n(119)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(112)})},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(117),s="".startsWith;r(r.P+r.F*n(119)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(19)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(19)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(19)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(19)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(19)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(19)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(19)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(19)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(19)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(19)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(19)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(19)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(19)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),i=n(16),o=n(39);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),i=n(319);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(3),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(18)(r,"toString",function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,e,n){var r=n(8)("toPrimitive"),i=Date.prototype;r in i||n(23)(i,r,n(322))},function(t,e,n){"use strict";var r=n(4),i=n(39);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(81)})},function(t,e,n){"use strict";var r=n(29),i=n(0),o=n(16),s=n(170),a=n(120),u=n(9),l=n(121),c=n(122);i(i.S+i.F*!n(82)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,m=0,y=c(h);if(g&&(v=r(v,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&a(y))for(n=new d(e=u(h.length));e>m;m++)l(n,m,g?v(h[m],m):h[m]);else for(f=y.call(h),n=new d;!(i=f.next()).done;m++)l(n,m,g?s(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(121);r(r.S+r.F*n(3)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(24),o=[].join;r(r.P+r.F*(n(70)!=Object||!n(26)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(108),o=n(36),s=n(48),a=n(9),u=[].slice;r(r.P+r.F*n(3)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),l=s(e,n),c=a(l-i),f=new Array(c),h=0;h<c;h++)f[h]="String"==r?this.charAt(i+h):this[i+h];return f}})},function(t,e,n){"use strict";var r=n(0),i=n(30),o=n(16),s=n(3),a=[].sort,u=[1,2,3];r(r.P+r.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(26)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(0),i=n(34)(0),o=n(26)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(5),i=n(81),o=n(8)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),i=n(34)(1);r(r.P+r.F*!n(26)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(34)(2);r(r.P+r.F*!n(26)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(34)(3);r(r.P+r.F*!n(26)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(34)(4);r(r.P+r.F*!n(26)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(172);r(r.P+r.F*!n(26)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),i=n(172);r(r.P+r.F*!n(26)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),i=n(79)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(26)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),i=n(24),o=n(31),s=n(9),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(26)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(173)}),n(52)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(123)}),n(52)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(34)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(52)("find")},function(t,e,n){"use strict";var r=n(0),i=n(34)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(52)(o)},function(t,e,n){n(62)("Array")},function(t,e,n){var r=n(2),i=n(111),o=n(13).f,s=n(50).f,a=n(118),u=n(83),l=r.RegExp,c=l,f=l.prototype,h=/a/g,d=/a/g,p=new l(h)!==h;if(n(12)&&(!p||n(3)(function(){return d[n(8)("match")]=!1,l(h)!=h||l(d)==d||"/a/i"!=l(h,"i")}))){l=function(t,e){var n=this instanceof l,r=a(t),o=void 0===e;return!n&&r&&t.constructor===l&&o?t:i(p?new c(r&&!o?t.source:t,e):c((r=t instanceof l)?t.source:t,r&&o?u.call(t):e),n?this:f,l)};for(var v=function(t){t in l||o(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},g=s(c),m=0;g.length>m;)v(g[m++]);f.constructor=l,l.prototype=f,n(18)(r,"RegExp",l)}n(62)("RegExp")},function(t,e,n){"use strict";n(176);var r=n(4),i=n(83),o=n(12),s=/./.toString,a=function(t){n(18)(RegExp.prototype,"toString",t,!0)};n(3)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,n){"use strict";var r=n(4),i=n(9),o=n(126),s=n(84);n(85)("match",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=r(t),l=String(this);if(!u.global)return s(u,l);var c=u.unicode;u.lastIndex=0;for(var f,h=[],d=0;null!==(f=s(u,l));){var p=String(f[0]);h[d]=p,""===p&&(u.lastIndex=o(l,i(u.lastIndex),c)),d++}return 0===d?null:h}]})},function(t,e,n){"use strict";var r=n(4),i=n(16),o=n(9),s=n(31),a=n(126),u=n(84),l=Math.max,c=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n(85)("replace",2,function(t,e,n,p){return[function(r,i){var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=p(n,t,this,e);if(i.done)return i.value;var f=r(t),h=String(this),d="function"==typeof e;d||(e=String(e));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,h);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=a(h,o(f.lastIndex),m))}for(var w,E="",_=0,x=0;x<y.length;x++){b=y[x];for(var T=String(b[0]),S=l(c(s(b.index),h.length),0),C=[],I=1;I<b.length;I++)C.push(void 0===(w=b[I])?w:String(w));var A=b.groups;if(d){var O=[T].concat(C,S,h);void 0!==A&&O.push(A);var N=String(e.apply(void 0,O))}else N=v(T,h,S,C,A,e);S>=_&&(E+=h.slice(_,S)+N,_=S+T.length)}return E+h.slice(_)}];function v(t,e,r,o,s,a){var u=r+t.length,l=o.length,c=d;return void 0!==s&&(s=i(s),c=h),n.call(a,c,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":a=s[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var h=f(c/10);return 0===h?n:h<=l?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[c-1]}return void 0===a?"":a})}})},function(t,e,n){"use strict";var r=n(4),i=n(161),o=n(84);n(85)("search",1,function(t,e,n,s){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var a=r(t),u=String(this),l=a.lastIndex;i(l,0)||(a.lastIndex=0);var c=o(a,u);return i(a.lastIndex,l)||(a.lastIndex=l),null===c?-1:c.index}]})},function(t,e,n){"use strict";var r=n(118),i=n(4),o=n(73),s=n(126),a=n(9),u=n(84),l=n(125),c=n(3),f=Math.min,h=[].push,d=!c(function(){RegExp(4294967295,"y")});n(85)("split",2,function(t,e,n,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);for(var o,s,a,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,c+"g");(o=l.call(p,i))&&!((s=p.lastIndex)>f&&(u.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&h.apply(u,o.slice(1)),a=o[0].length,f=s,u.length>=d));)p.lastIndex===o.index&&p.lastIndex++;return f===i.length?!a&&p.test("")||u.push(""):u.push(i.slice(f)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):p.call(String(i),n,r)},function(t,e){var r=c(p,t,this,e,p!==n);if(r.done)return r.value;var l=i(t),h=String(this),v=o(l,RegExp),g=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(d?"y":"g"),y=new v(d?l:"^(?:"+l.source+")",m),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===u(y,h)?[h]:[];for(var w=0,E=0,_=[];E<h.length;){y.lastIndex=d?E:0;var x,T=u(y,d?h:h.slice(E));if(null===T||(x=f(a(y.lastIndex+(d?0:E)),h.length))===w)E=s(h,E,g);else{if(_.push(h.slice(w,E)),_.length===b)return _;for(var S=1;S<=T.length-1;S++)if(_.push(T[S]),_.length===b)return _;E=w=x}}return _.push(h.slice(w)),_}]})},function(t,e,n){var r=n(2),i=n(127).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(36)(s);t.exports=function(){var t,e,n,l=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);n=function(){c.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,h=document.createTextNode("");new o(l).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(180),i=n(53);t.exports=n(88)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(180),i=n(53);t.exports=n(88)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(2),o=n(34)(0),s=n(18),a=n(40),u=n(160),l=n(181),c=n(5),f=n(53),h=n(53),d=!i.ActiveXObject&&"ActiveXObject"in i,p=a.getWeak,v=Object.isExtensible,g=l.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(c(t)){var e=p(t);return!0===e?g(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(f(this,"WeakMap"),t,e)}},b=t.exports=n(88)("WeakMap",m,y,l,!0,!0);h&&d&&(u((r=l.getConstructor(m,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];s(e,t,function(e,i){if(c(e)&&!v(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(181),i=n(53);n(88)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(89),o=n(128),s=n(4),a=n(48),u=n(9),l=n(5),c=n(2).ArrayBuffer,f=n(73),h=o.ArrayBuffer,d=o.DataView,p=i.ABV&&c.isView,v=h.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(c!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||l(t)&&g in t}}),r(r.P+r.U+r.F*n(3)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(f(this,h))(u(i-r)),l=new d(this),c=new d(o),p=0;r<i;)c.setUint8(p++,l.getUint8(r++));return o}}),n(62)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(89).ABV,{DataView:n(128).DataView})},function(t,e,n){n(38)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(38)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(38)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),i=n(30),o=n(4),s=(n(2).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(3)(function(){s(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){var r=n(0),i=n(49),o=n(30),s=n(4),a=n(5),u=n(3),l=n(162),c=(n(2).Reflect||{}).construct,f=u(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),h=!u(function(){c(function(){})});r(r.S+r.F*(f||h),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!f)return c(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var u=n.prototype,d=i(a(u)?u:Object.prototype),p=Function.apply.call(t,d,e);return a(p)?p:d}})},function(t,e,n){var r=n(13),i=n(0),o=n(4),s=n(39);i(i.S+i.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),i=n(32).f,o=n(4);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),i=n(4),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(169)(o,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var r=n(32),i=n(51),o=n(22),s=n(0),a=n(5),u=n(4);s(s.S,"Reflect",{get:function t(e,n){var s,l,c=arguments.length<3?e:arguments[2];return u(e)===c?e[n]:(s=r.f(e,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(c):void 0:a(l=i(e))?t(l,n,c):void 0}})},function(t,e,n){var r=n(32),i=n(0),o=n(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(51),o=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(4),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(183)})},function(t,e,n){var r=n(0),i=n(4),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(13),i=n(32),o=n(51),s=n(22),a=n(0),u=n(44),l=n(4),c=n(5);a(a.S,"Reflect",{set:function t(e,n,a){var f,h,d=arguments.length<4?e:arguments[3],p=i.f(l(e),n);if(!p){if(c(h=o(e)))return t(h,n,a,d);p=u(0)}if(s(p,"value")){if(!1===p.writable||!c(d))return!1;if(f=i.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=a,r.f(d,n,f)}else r.f(d,n,u(0,a));return!0}return void 0!==p.set&&(p.set.call(d,a),!0)}})},function(t,e,n){var r=n(0),i=n(109);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(382),t.exports=n(10).Array.includes},function(t,e,n){"use strict";var r=n(0),i=n(79)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(52)("includes")},function(t,e,n){n(384),t.exports=n(10).Array.flatMap},function(t,e,n){"use strict";var r=n(0),i=n(385),o=n(16),s=n(9),a=n(30),u=n(171);r(r.P,"Array",{flatMap:function(t){var e,n,r=o(this);return a(t),e=s(r.length),n=u(r,0),i(n,r,r,e,0,1,t,arguments[1]),n}}),n(52)("flatMap")},function(t,e,n){"use strict";var r=n(81),i=n(5),o=n(9),s=n(29),a=n(8)("isConcatSpreadable");t.exports=function t(e,n,u,l,c,f,h,d){for(var p,v,g=c,m=0,y=!!h&&s(h,d,3);m<l;){if(m in u){if(p=y?y(u[m],m,n):u[m],v=!1,i(p)&&(v=void 0!==(v=p[a])?!!v:r(p)),v&&f>0)g=t(e,n,p,o(p.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=p}g++}m++}return g}},function(t,e,n){n(387),t.exports=n(10).String.padStart},function(t,e,n){"use strict";var r=n(0),i=n(184),o=n(87),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(389),t.exports=n(10).String.padEnd},function(t,e,n){"use strict";var r=n(0),i=n(184),o=n(87),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(391),t.exports=n(10).String.trimLeft},function(t,e,n){"use strict";n(60)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){n(393),t.exports=n(10).String.trimRight},function(t,e,n){"use strict";n(60)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(395),t.exports=n(105).f("asyncIterator")},function(t,e,n){n(156)("asyncIterator")},function(t,e,n){n(397),t.exports=n(10).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),i=n(183),o=n(24),s=n(32),a=n(121);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=s.f,l=i(r),c={},f=0;l.length>f;)void 0!==(n=u(r,e=l[f++]))&&a(c,e,n);return c}})},function(t,e,n){n(399),t.exports=n(10).Object.values},function(t,e,n){var r=n(0),i=n(185)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){n(401),t.exports=n(10).Object.entries},function(t,e,n){var r=n(0),i=n(185)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";n(177),n(403),t.exports=n(10).Promise.finally},function(t,e,n){"use strict";var r=n(0),i=n(10),o=n(2),s=n(73),a=n(179);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(405),n(406),n(407),t.exports=n(10)},function(t,e,n){var r=n(2),i=n(0),o=n(87),s=[].slice,a=/MSIE .\./.test(o),u=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*a,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(t,e,n){var r=n(0),i=n(127);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(124),i=n(47),o=n(18),s=n(2),a=n(23),u=n(61),l=n(8),c=l("iterator"),f=l("toStringTag"),h=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),v=0;v<p.length;v++){var g,m=p[v],y=d[m],b=s[m],w=b&&b.prototype;if(w&&(w[c]||a(w,c,h),w[f]||a(w,f,m),u[m]=h,y))for(g in r)w[g]||o(w,g,r[g],!0)}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,s=Object.create(o.prototype),a=new O(r||[]);return i(s,"_invoke",{value:function(t,e,n){var r=h;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=f(t,e,n);if("normal"===u.type){if(r=n.done?v:d,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}(t,n,a)}),s}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function m(){}function y(){}function b(){}var w={};l(w,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==n&&r.call(_,s)&&(w=_);var x=b.prototype=m.prototype=Object.create(w);function T(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function S(t,e){var n;i(this,"_invoke",{value:function(i,o){function s(){return new e(function(n,s){!function n(i,o,s,a){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then(function(t){n("next",t,s,a)},function(t){n("throw",t,s,a)}):e.resolve(c).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,a)})}a(u.arg)}(i,o,n,s)})}return n=n?n.then(s,s):s()}})}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)?g:("return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g);var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function N(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:k}}function k(){return{value:e,done:!0}}return y.prototype=b,i(x,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},T(S.prototype),l(S.prototype,a,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new S(c(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then(function(t){return t.done?t.value:s.next()})},T(x),l(x,u,"Generator"),l(x,s,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return a.type="throw",a.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(u&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){n(410),t.exports=n(186).global},function(t,e,n){var r=n(411);r(r.G,{global:n(129)})},function(t,e,n){var r=n(129),i=n(186),o=n(412),s=n(414),a=n(421),u=function(t,e,n){var l,c,f,h=t&u.F,d=t&u.G,p=t&u.S,v=t&u.P,g=t&u.B,m=t&u.W,y=d?i:i[e]||(i[e]={}),b=y.prototype,w=d?r:p?r[e]:(r[e]||{}).prototype;for(l in d&&(n=e),n)(c=!h&&w&&void 0!==w[l])&&a(y,l)||(f=c?w[l]:n[l],y[l]=d&&"function"!=typeof w[l]?n[l]:g&&c?o(f,r):m&&w[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[l]=f,t&u.R&&b&&!b[l]&&s(b,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(413);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(415),i=n(420);t.exports=n(131)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(416),i=n(417),o=n(419),s=Object.defineProperty;e.f=n(131)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(130);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(131)&&!n(187)(function(){return 7!=Object.defineProperty(n(418)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(130),i=n(129).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(130);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){(function(t){(function(e,n){"use strict";var r=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(n);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function a(t,e){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var u="transitionend";function l(t){var e=this,n=!1;return r.default(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(e)},t),this}var c={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=r.default(t).css("transition-duration"),n=r.default(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r.default(t).trigger(u)},supportsTransitionEnd:function(){return Boolean(u)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=e[r],s=o&&c.isElement(o)?"element":null===(a=o)||void 0===a?""+a:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(s))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+i+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=r.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),r.default.fn.emulateTransitionEnd=l,r.default.event.special[c.TRANSITION_END]={bindType:u,delegateType:u,handle:function(t){if(r.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f=r.default.fn.alert,h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){r.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=c.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=r.default.Event("close.bs.alert");return r.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(r.default(t).removeClass("show"),r.default(t).hasClass("fade")){var n=c.getTransitionDurationFromElement(t);r.default(t).one(c.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){r.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),r.default.fn.alert=h._jQueryInterface,r.default.fn.alert.Constructor=h,r.default.fn.alert.noConflict=function(){return r.default.fn.alert=f,h._jQueryInterface};var d=r.default.fn.button,p=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=r.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var o=n.querySelector(".active");o&&r.default(o).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||r.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&r.default(this._element).toggleClass("active"))},e.dispose=function(){r.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each(function(){var i=r.default(this),o=i.data("bs.button");o||(o=new t(this),i.data("bs.button",o)),o.shouldAvoidTriggerChange=n,"toggle"===e&&o[e]()})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();r.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=t.target,n=e;if(r.default(e).hasClass("btn")||(e=r.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||p._jQueryInterface.call(r.default(e),"toggle","INPUT"===n.tagName)}}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r.default(t.target).closest(".btn")[0];r.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),r.default(window).on("load.bs.button.data-api",function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var r=t[e],i=r.querySelector('input:not([type="hidden"])');i.checked||i.hasAttribute("checked")?r.classList.add("active"):r.classList.remove("active")}for(var o=0,s=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<s;o++){var a=t[o];"true"===a.getAttribute("aria-pressed")?a.classList.add("active"):a.classList.remove("active")}}),r.default.fn.button=p._jQueryInterface,r.default.fn.button.Constructor=p,r.default.fn.button.noConflict=function(){return r.default.fn.button=d,p._jQueryInterface};var v="carousel",g=".bs.carousel",m=r.default.fn[v],y=".carousel-indicators",b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},w={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},E={TOUCH:"touch",PEN:"pen"},_=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(y),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=r.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)r.default(this._element).one("slid.bs.carousel",function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},e.dispose=function(){r.default(this._element).off(g),r.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=s({},b,t),c.typeCheckConfig(v,t,w),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&r.default(this._element).on("keydown.bs.carousel",function(e){return t._keydown(e)}),"hover"===this._config.pause&&r.default(this._element).on("mouseenter.bs.carousel",function(e){return t.pause(e)}).on("mouseleave.bs.carousel",function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};r.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(t){return t.preventDefault()}),this._pointerEvent?(r.default(this._element).on("pointerdown.bs.carousel",function(t){return e(t)}),r.default(this._element).on("pointerup.bs.carousel",function(t){return n(t)}),this._element.classList.add("pointer-event")):(r.default(this._element).on("touchstart.bs.carousel",function(t){return e(t)}),r.default(this._element).on("touchmove.bs.carousel",function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)}),r.default(this._element).on("touchend.bs.carousel",function(t){return n(t)}))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,r="prev"===t,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var s=(i+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),o=r.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n});return r.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));r.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&r.default(n).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,o,s=this,a=this._element.querySelector(".active.carousel-item"),u=this._getItemIndex(a),l=e||a&&this._getItemByDirection(t,a),f=this._getItemIndex(l),h=Boolean(this._interval);if("next"===t?(n="carousel-item-left",i="carousel-item-next",o="left"):(n="carousel-item-right",i="carousel-item-prev",o="right"),l&&r.default(l).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&a&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var d=r.default.Event("slid.bs.carousel",{relatedTarget:l,direction:o,from:u,to:f});if(r.default(this._element).hasClass("slide")){r.default(l).addClass(i),c.reflow(l),r.default(a).addClass(n),r.default(l).addClass(n);var p=c.getTransitionDurationFromElement(a);r.default(a).one(c.TRANSITION_END,function(){r.default(l).removeClass(n+" "+i).addClass("active"),r.default(a).removeClass("active "+i+" "+n),s._isSliding=!1,setTimeout(function(){return r.default(s._element).trigger(d)},0)}).emulateTransitionEnd(p)}else r.default(a).removeClass("active"),r.default(l).addClass("active"),this._isSliding=!1,r.default(this._element).trigger(d);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this).data("bs.carousel"),i=s({},b,r.default(this).data());"object"==typeof e&&(i=s({},i,e));var o="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),r.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=c.getSelectorFromElement(this);if(n){var i=r.default(n)[0];if(i&&r.default(i).hasClass("carousel")){var o=s({},r.default(i).data(),r.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(r.default(i),o),a&&r.default(i).data("bs.carousel").to(a),e.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return b}}]),t}();r.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",_._dataApiClickHandler),r.default(window).on("load.bs.carousel.data-api",function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=r.default(t[e]);_._jQueryInterface.call(i,i.data())}}),r.default.fn[v]=_._jQueryInterface,r.default.fn[v].Constructor=_,r.default.fn[v].noConflict=function(){return r.default.fn[v]=m,_._jQueryInterface};var x="collapse",T=r.default.fn[x],S='[data-toggle="collapse"]',C={toggle:!0,parent:""},I={toggle:"boolean",parent:"(string|element)"},A=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(S)),r=0,i=n.length;r<i;r++){var o=n[r],s=c.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&a.length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){r.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!r.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains("collapse")})).length&&(e=null),!(e&&(n=r.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var o=r.default.Event("show.bs.collapse");if(r.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(r.default(e).not(this._selector),"hide"),n||r.default(e).data("bs.collapse",null));var s=this._getDimension();r.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),u=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,function(){r.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[s]="",i.setTransitioning(!1),r.default(i._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(u),this._element.style[s]=this._element[a]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&r.default(this._element).hasClass("show")){var e=r.default.Event("hide.bs.collapse");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",c.reflow(this._element),r.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var s=this._triggerArray[o],a=c.getSelectorFromElement(s);if(null!==a)r.default([].slice.call(document.querySelectorAll(a))).hasClass("show")||r.default(s).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var u=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,function(){t.setTransitioning(!1),r.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")}).emulateTransitionEnd(u)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){r.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=s({},C,t)).toggle=Boolean(t.toggle),c.typeCheckConfig(x,t,I),t},e._getDimension=function(){return r.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;c.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(i));return r.default(o).each(function(e,r){n._addAriaAndCollapsedClass(t._getTargetFromElement(r),[r])}),e},e._addAriaAndCollapsedClass=function(t,e){var n=r.default(t).hasClass("show");e.length&&r.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=c.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this),i=n.data("bs.collapse"),o=s({},C,n.data(),"object"==typeof e&&e?e:{});if(!i&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data("bs.collapse",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return C}}]),t}();r.default(document).on("click.bs.collapse.data-api",S,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r.default(this),n=c.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r.default(i).each(function(){var t=r.default(this),n=t.data("bs.collapse")?"toggle":e.data();A._jQueryInterface.call(t,n)})}),r.default.fn[x]=A._jQueryInterface,r.default.fn[x].Constructor=A,r.default.fn[x].noConflict=function(){return r.default.fn[x]=T,A._jQueryInterface};
/**!
   * @fileOverview Kickass library to create and place poppers near their reference elements.
   * @version 1.16.1
   * @license
   * Copyright (c) 2016 Federico Zivolo and contributors
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in all
   * copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   * SOFTWARE.
   */
var O="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,N=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(O&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var k=O&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},N))}};function L(t){return t&&"[object Function]"==={}.toString.call(t)}function D(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function M(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function P(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=D(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:P(M(t))}function R(t){return t&&t.referenceNode?t.referenceNode:t}var j=O&&!(!window.MSInputMethodContext||!document.documentMode),F=O&&/MSIE 10/.test(navigator.userAgent);function z(t){return 11===t?j:10===t?F:j||F}function $(t){if(!t)return document.documentElement;for(var e=z(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===D(n,"position")?$(n):n:t?t.ownerDocument.documentElement:document.documentElement}function V(t){return null!==t.parentNode?V(t.parentNode):t}function B(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s,a,u=o.commonAncestorContainer;if(t!==u&&e!==u||r.contains(i))return"BODY"===(a=(s=u).nodeName)||"HTML"!==a&&$(s.firstElementChild)!==s?$(u):u;var l=V(t);return l.host?B(l.host,e):B(t,V(e).host)}function q(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function U(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function W(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],z(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function H(t){var e=t.body,n=t.documentElement,r=z(10)&&getComputedStyle(n);return{height:W("Height",e,n,r),width:W("Width",e,n,r)}}var G=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},X=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Y=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function Q(t){return K({},t,{right:t.left+t.width,bottom:t.top+t.height})}function J(t){var e={};try{if(z(10)){e=t.getBoundingClientRect();var n=q(t,"top"),r=q(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?H(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,a=o.height||t.clientHeight||i.height,u=t.offsetWidth-s,l=t.offsetHeight-a;if(u||l){var c=D(t);u-=U(c,"x"),l-=U(c,"y"),i.width-=u,i.height-=l}return Q(i)}function Z(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=z(10),i="HTML"===e.nodeName,o=J(t),s=J(e),a=P(t),u=D(e),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=Q({top:o.top-s.top-l,left:o.left-s.left-c,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var h=parseFloat(u.marginTop),d=parseFloat(u.marginLeft);f.top-=l-h,f.bottom-=l-h,f.left-=c-d,f.right-=c-d,f.marginTop=h,f.marginLeft=d}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=q(e,"top"),i=q(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(f,e)),f}function tt(t){if(!t||!t.parentElement||z())return document.documentElement;for(var e=t.parentElement;e&&"none"===D(e,"transform");)e=e.parentElement;return e||document.documentElement}function et(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?tt(t):B(t,R(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=Z(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:q(n),a=e?0:q(n,"left");return Q({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o})}(s,i);else{var a=void 0;"scrollParent"===r?"BODY"===(a=P(M(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===r?t.ownerDocument.documentElement:r;var u=Z(a,s,i);if("HTML"!==a.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===D(e,"position"))return!0;var r=M(e);return!!r&&t(r)}(s))o=u;else{var l=H(t.ownerDocument),c=l.height,f=l.width;o.top+=u.top-u.marginTop,o.bottom=c+u.top,o.left+=u.left-u.marginLeft,o.right=f+u.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function nt(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=et(n,r,o,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},u=Object.keys(a).map(function(t){return K({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),l=u.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function rt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Z(n,r?tt(e):B(e,R(n)),r)}function it(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function ot(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function st(t,e,n){n=n.split("-")[0];var r=it(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[s]=e[s]+e[u]/2-r[u]/2,i[a]=n===a?e[a]-r[l]:e[ot(a)],i}function at(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ut(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=at(t,function(t){return t[e]===n});return t.indexOf(r)}(t,"name",n))).forEach(function(t){t.function;var n=t.function||t.fn;t.enabled&&L(n)&&(e.offsets.popper=Q(e.offsets.popper),e.offsets.reference=Q(e.offsets.reference),e=n(e,t))}),e}function lt(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function ct(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function ft(t){var e=t.ownerDocument;return e?e.defaultView:window}function ht(t,e,n,r){n.updateBound=r,ft(t).addEventListener("resize",n.updateBound,{passive:!0});var i=P(t);return function t(e,n,r,i){var o="BODY"===e.nodeName,s=o?e.ownerDocument.defaultView:e;s.addEventListener(n,r,{passive:!0}),o||t(P(s.parentNode),n,r,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function dt(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,ft(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function pt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function vt(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&pt(e[n])&&(r="px"),t.style[n]=e[n]+r})}var gt=O&&/Firefox/i.test(navigator.userAgent);function mt(t,e,n){var r=at(t,function(t){return t.name===e}),i=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!i);return i}var yt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],bt=yt.slice(3);function wt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.indexOf(t),r=bt.slice(n+1).concat(bt.slice(0,n));return e?r.reverse():r}var Et={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function _t(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(at(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&s[a].indexOf(",");var u=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(u)[0]]),[s[a].split(u)[1]].concat(s.slice(a+1))]:[s];return(l=l.map(function(t,r){var i=(1===r?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}return Q(a)[e]/100*o}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)})})).forEach(function(t,e){t.forEach(function(n,r){pt(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))})}),i}var xt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),u=a?"left":"top",l=a?"width":"height",c={start:Y({},u,o[u]),end:Y({},u,o[u]+o[l]-s[l])};t.offsets.popper=K({},s,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],u=void 0;return u=pt(+n)?[+n,0]:_t(n,o,s,a),"left"===a?(o.top+=u[0],o.left-=u[1]):"right"===a?(o.top+=u[0],o.left+=u[1]):"top"===a?(o.left+=u[0],o.top-=u[1]):"bottom"===a&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||$(t.instance.popper);t.instance.reference===n&&(n=$(n));var r=ct("transform"),i=t.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var u=et(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=s,i[r]=a,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),Y({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),Y({},n,r)}};return l.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=K({},c,f[e](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",u=s?"left":"top",l=s?"width":"height";return n[a]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[a])&&(t.offsets.popper[u]=o(r[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!mt(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",c=u?"Top":"Left",f=c.toLowerCase(),h=u?"left":"top",d=u?"bottom":"right",p=it(r)[l];a[d]-p<s[f]&&(t.offsets.popper[f]-=s[f]-(a[d]-p)),a[f]+p>s[d]&&(t.offsets.popper[f]+=a[f]+p-s[d]),t.offsets.popper=Q(t.offsets.popper);var v=a[f]+a[l]/2-p/2,g=D(t.instance.popper),m=parseFloat(g["margin"+c]),y=parseFloat(g["border"+c+"Width"]),b=v-t.offsets.popper[f]-m-y;return b=Math.max(Math.min(s[l]-p,b),0),t.arrowElement=r,t.offsets.arrow=(Y(n={},f,Math.round(b)),Y(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(lt(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=et(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=ot(r),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case Et.FLIP:s=[r,i];break;case Et.CLOCKWISE:s=wt(r);break;case Et.COUNTERCLOCKWISE:s=wt(r,!0);break;default:s=e.behavior}return s.forEach(function(a,u){if(r!==a||s.length===u+1)return t;r=t.placement.split("-")[0],i=ot(r);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),d=f(l.left)<f(n.left),p=f(l.right)>f(n.right),v=f(l.top)<f(n.top),g=f(l.bottom)>f(n.bottom),m="left"===r&&d||"right"===r&&p||"top"===r&&v||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&v||!y&&"end"===o&&g),w=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&g||!y&&"end"===o&&v),E=b||w;(h||m||E)&&(t.flipped=!0,(h||m)&&(r=s[u+1]),E&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=K({},t.offsets.popper,st(t.instance.popper,t.offsets.reference,t.placement)),t=ut(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),t.placement=ot(e),t.offsets.popper=Q(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!mt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=at(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=at(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,s=void 0!==o?o:e.gpuAcceleration,a=$(t.instance.popper),u=J(a),l={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),h=e?c||f||u%2==l%2?o:s:a,d=e?o:a;return{left:h(u%2==1&&l%2==1&&!f&&e?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:h(r.right)}}(t,window.devicePixelRatio<2||!gt),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",d=ct("transform"),p=void 0,v=void 0;if(v="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-u.height+c.bottom:c.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+c.right:-u.width+c.right:c.left,s&&d)l[d]="translate3d("+p+"px, "+v+"px, 0)",l[f]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,m="right"===h?-1:1;l[f]=v*g,l[h]=p*m,l.willChange=f+", "+h}var y={"x-placement":t.placement};return t.attributes=K({},y,t.attributes),t.styles=K({},l,t.styles),t.arrowStyles=K({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return vt(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&vt(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=rt(i,e,t,n.positionFixed),s=nt(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),vt(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Tt=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};G(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=k(this.update.bind(this)),this.options=K({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(K({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=K({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return K({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&L(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return X(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=rt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=nt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=st(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ut(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,lt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ct("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ht(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return dt.call(this)}}]),t}();Tt.Utils=("undefined"!=typeof window?window:t).PopperUtils,Tt.placements=yt,Tt.Defaults=xt;var St=Tt,Ct="dropdown",It=r.default.fn[Ct],At=new RegExp("38|40|27"),Ot={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Nt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},kt=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")){var e=r.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||r.default(this._element).hasClass("disabled")||r.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=r.default.Event("show.bs.dropdown",n),o=t._getParentFromElement(this._element);if(r.default(o).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===St)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=o:c.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(o).addClass("position-static"),this._popper=new St(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(o).closest(".navbar-nav").length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass("show"),r.default(o).toggleClass("show").trigger(r.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass("disabled")&&r.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=r.default.Event("hide.bs.dropdown",e),i=t._getParentFromElement(this._element);r.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass("show"),r.default(i).toggleClass("show").trigger(r.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){r.default.removeData(this._element,"bs.dropdown"),r.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;r.default(this._element).on("click.bs.dropdown",function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=s({},this.constructor.Default,r.default(this._element).data(),t),c.typeCheckConfig(Ct,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=r.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=r.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":r.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),r.default(this).data("bs.dropdown",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,o=n.length;i<o;i++){var s=t._getParentFromElement(n[i]),a=r.default(n[i]).data("bs.dropdown"),u={relatedTarget:n[i]};if(e&&"click"===e.type&&(u.clickEvent=e),a){var l=a._menu;if(r.default(s).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&r.default.contains(s,e.target))){var c=r.default.Event("hide.bs.dropdown",u);r.default(s).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[i].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),r.default(l).removeClass("show"),r.default(s).removeClass("show").trigger(r.default.Event("hidden.bs.dropdown",u)))}}}},t._getParentFromElement=function(t){var e,n=c.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||r.default(e.target).closest(".dropdown-menu").length)):At.test(e.which))&&!this.disabled&&!r.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),i=r.default(n).hasClass("show");if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&r.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void r.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(t){return r.default(t).is(":visible")});if(0!==o.length){var s=o.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus()}}}},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Ot}},{key:"DefaultType",get:function(){return Nt}}]),t}();r.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',kt._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",kt._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",kt._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',function(t){t.preventDefault(),t.stopPropagation(),kt._jQueryInterface.call(r.default(this),"toggle")}).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}),r.default.fn[Ct]=kt._jQueryInterface,r.default.fn[Ct].Constructor=kt,r.default.fn[Ct].noConflict=function(){return r.default.fn[Ct]=It,kt._jQueryInterface};var Lt=r.default.fn.modal,Dt=".modal-dialog",Mt={backdrop:!0,keyboard:!0,focus:!0,show:!0},Pt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Rt=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Dt),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=r.default.Event("show.bs.modal",{relatedTarget:t});r.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass("fade")&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',function(t){return e.hide(t)}),r.default(this._dialog).on("mousedown.dismiss.bs.modal",function(){r.default(e._element).one("mouseup.dismiss.bs.modal",function(t){r.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event("hide.bs.modal");if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off("focusin.bs.modal"),r.default(this._element).removeClass("show"),r.default(this._element).off("click.dismiss.bs.modal"),r.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var o=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return r.default(t).off(".bs.modal")}),r.default(document).off("focusin.bs.modal"),r.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=s({},Mt,t),c.typeCheckConfig("modal",t,Pt),t},e._triggerBackdropTransition=function(){var t=this,e=r.default.Event("hidePrevented.bs.modal");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=c.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(c.TRANSITION_END),r.default(this._element).one(c.TRANSITION_END,function(){t._element.classList.remove("modal-static"),n||r.default(t._element).one(c.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,i)}).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=r.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&c.reflow(this._element),r.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var o=r.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r.default(e._element).trigger(o)};if(n){var a=c.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(c.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._enforceFocus=function(){var t=this;r.default(document).off("focusin.bs.modal").on("focusin.bs.modal",function(e){document!==e.target&&t._element!==e.target&&0===r.default(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown?r.default(this._element).on("keydown.dismiss.bs.modal",function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()}):this._isShown||r.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?r.default(window).on("resize.bs.modal",function(e){return t.handleUpdate(e)}):r.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){r.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),r.default(t._element).trigger("hidden.bs.modal")})},e._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=r.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on("click.dismiss.bs.modal",function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())}),n&&c.reflow(this._backdrop),r.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=c.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(c.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass("show");var o=function(){e._removeBackdrop(),t&&t()};if(r.default(this._element).hasClass("fade")){var s=c.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(c.TRANSITION_END,o).emulateTransitionEnd(s)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each(function(e,n){var i=n.style.paddingRight,o=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),r.default(n).each(function(e,n){var i=n.style.marginRight,o=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));r.default(t).each(function(t,e){var n=r.default(e).data("padding-right");r.default(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each(function(t,e){var n=r.default(e).data("margin-right");void 0!==n&&r.default(e).css("margin-right",n).removeData("margin-right")});var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each(function(){var i=r.default(this).data("bs.modal"),o=s({},Mt,r.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,o),r.default(this).data("bs.modal",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else o.show&&i.show(n)})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Mt}}]),t}();r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e,n=this,i=c.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=r.default(e).data("bs.modal")?"toggle":s({},r.default(e).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=r.default(e).one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){r.default(n).is(":visible")&&n.focus()})});Rt._jQueryInterface.call(r.default(e),o,this)}),r.default.fn.modal=Rt._jQueryInterface,r.default.fn.modal.Constructor=Rt,r.default.fn.modal.noConflict=function(){return r.default.fn.modal=Lt,Rt._jQueryInterface};var jt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ft={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},zt=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,$t=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Vt(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var r=(new window.DOMParser).parseFromString(t,"text/html"),i=Object.keys(e),o=[].slice.call(r.body.querySelectorAll("*")),s=function(t,n){var r=o[t],s=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var a=[].slice.call(r.attributes),u=[].concat(e["*"]||[],e[s]||[]);a.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===jt.indexOf(n)||Boolean(zt.test(t.nodeValue)||$t.test(t.nodeValue));for(var r=e.filter(function(t){return t instanceof RegExp}),i=0,o=r.length;i<o;i++)if(r[i].test(n))return!0;return!1})(t,u)||r.removeAttribute(t.nodeName)})},a=0,u=o.length;a<u;a++)s(a);return r.body.innerHTML}var Bt="tooltip",qt=r.default.fn.tooltip,Ut=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Wt=["sanitize","whiteList","sanitizeFn"],Ht={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Gt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Ft,popperConfig:null},Xt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Yt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Kt=function(){function t(t,e){if(void 0===St)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=r.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(e);var n=c.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var o=this.getTipElement(),s=c.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(o).addClass("fade");var a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,u=this._getAttachment(a);this.addAttachmentClass(u);var l=this._getContainer();r.default(o).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(o).appendTo(l),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new St(this.element,o,this._getPopperConfig(u)),r.default(o).addClass("show"),r.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,r.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(r.default(this.tip).hasClass("fade")){var h=c.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(c.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),r.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,r.default(this.tip).hasClass("fade")){var s=c.getTransitionDurationFromElement(n);r.default(n).one(c.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(r.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),r.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Vt(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?r.default(e).parent().is(t)||t.empty().append(e):t.text(r.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},e._getAttachment=function(t){return Ht[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)r.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;r.default(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t.element&&t.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),r.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){"show"===e._hoverState&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=r.default(this.element).data();return Object.keys(e).forEach(function(t){-1!==Wt.indexOf(t)&&delete e[t]}),"number"==typeof(t=s({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(Bt,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vt(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(Ut);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this),i=n.data("bs.tooltip"),o="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,o),n.data("bs.tooltip",i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return Gt}},{key:"NAME",get:function(){return Bt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Yt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Xt}}]),t}();r.default.fn.tooltip=Kt._jQueryInterface,r.default.fn.tooltip.Constructor=Kt,r.default.fn.tooltip.noConflict=function(){return r.default.fn.tooltip=qt,Kt._jQueryInterface};var Qt="popover",Jt=r.default.fn.popover,Zt=new RegExp("(^|\\s)bs-popover\\S+","g"),te=s({},Kt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ee=s({},Kt.DefaultType,{content:"(string|element|function)"}),ne={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},re=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n);var s=i.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass("bs-popover-"+t)},s.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},s.setContent=function(){var t=r.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(Zt);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each(function(){var e=r.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),r.default(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},o(i,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return te}},{key:"NAME",get:function(){return Qt}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return ne}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return ee}}]),i}(Kt);r.default.fn.popover=re._jQueryInterface,r.default.fn.popover.Constructor=re,r.default.fn.popover.noConflict=function(){return r.default.fn.popover=Jt,re._jQueryInterface};var ie="scrollspy",oe=r.default.fn[ie],se="scroll.bs.scrollspy",ae=".nav-link",ue=".list-group-item",le=".dropdown-item",ce={offset:10,method:"auto",target:""},fe={offset:"number",method:"string",target:"(string|element)"},he=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ae+","+this._config.target+" "+ue+","+this._config.target+" "+le,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on(se,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,o=c.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[r.default(e)[n]().top+i,o]}return null}).filter(Boolean).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){r.default.removeData(this._element,"bs.scrollspy"),r.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=s({},ce,"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var e=r.default(t.target).attr("id");e||(e=c.getUID(ie),r.default(t.target).attr("id",e)),t.target="#"+e}return c.typeCheckConfig(ie,t,fe),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=r.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(ae+", "+ue).addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(ae).addClass("active")),r.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains("active")}).forEach(function(t){return t.classList.remove("active")})},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),r.default(this).data("bs.scrollspy",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return ce}}]),t}();r.default(window).on("load.bs.scrollspy.data-api",function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=r.default(t[e]);he._jQueryInterface.call(n,n.data())}}),r.default.fn[ie]=he._jQueryInterface,r.default.fn[ie].Constructor=he,r.default.fn[ie].noConflict=function(){return r.default.fn[ie]=oe,he._jQueryInterface};var de=r.default.fn.tab,pe=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass("active")||r.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,i=r.default(this._element).closest(".nav, .list-group")[0],o=c.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=r.default.makeArray(r.default(i).find(s)))[n.length-1]}var a=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),u=r.default.Event("show.bs.tab",{relatedTarget:n});if(n&&r.default(n).trigger(a),r.default(this._element).trigger(u),!u.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,i);var l=function(){var e=r.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=r.default.Event("shown.bs.tab",{relatedTarget:n});r.default(n).trigger(e),r.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){r.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r.default(e).children(".active"):r.default(e).find("> li > .active"))[0],s=n&&o&&r.default(o).hasClass("fade"),a=function(){return i._transitionComplete(t,o,n)};if(o&&s){var u=c.getTransitionDurationFromElement(o);r.default(o).removeClass("show").one(c.TRANSITION_END,a).emulateTransitionEnd(u)}else a()},e._transitionComplete=function(t,e,n){if(e){r.default(e).removeClass("active");var i=r.default(e.parentNode).find("> .dropdown-menu .active")[0];i&&r.default(i).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}r.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show");var o=t.parentNode;if(o&&"LI"===o.nodeName&&(o=o.parentNode),o&&r.default(o).hasClass("dropdown-menu")){var s=r.default(t).closest(".dropdown")[0];if(s){var a=[].slice.call(s.querySelectorAll(".dropdown-toggle"));r.default(a).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),t}();r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),pe._jQueryInterface.call(r.default(this),"show")}),r.default.fn.tab=pe._jQueryInterface,r.default.fn.tab.Constructor=pe,r.default.fn.tab.noConflict=function(){return r.default.fn.tab=de,pe._jQueryInterface};var ve="toast",ge=r.default.fn.toast,me={animation:!0,autohide:!0,delay:500},ye={animation:"boolean",autohide:"boolean",delay:"number"},be=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=r.default.Event("show.bs.toast");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),r.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=r.default.Event("hide.bs.toast");r.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),r.default(this._element).off("click.dismiss.bs.toast"),r.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=s({},me,r.default(this._element).data(),"object"==typeof t&&t?t:{}),c.typeCheckConfig(ve,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;r.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',function(){return t.hide()})},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),r.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);r.default(this._element).one(c.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each(function(){var n=r.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}})},o(t,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return ye}},{key:"Default",get:function(){return me}}]),t}();r.default.fn.toast=be._jQueryInterface,r.default.fn.toast.Constructor=be,r.default.fn.toast.noConflict=function(){return r.default.fn.toast=ge,be._jQueryInterface},e.Alert=h,e.Button=p,e.Carousel=_,e.Collapse=A,e.Dropdown=kt,e.Modal=Rt,e.Popover=re,e.Scrollspy=he,e.Tab=pe,e.Toast=be,e.Tooltip=Kt,e.Util=c,Object.defineProperty(e,"__esModule",{value:!0})})(e,n(14))}).call(this,n(54))},,function(t,e,n){},,,function(t,e,n){"use strict";n(428)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(90),i=n(188),o=n(190),s=n(132),a=n(430),u=n(189);var l=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(i),c={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},f=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return r.__extends(e,t),e}(Error),h=new o.Logger("@firebase/firestore");
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function d(){return h.logLevel}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.DEBUG){var i=e.map(m);h.debug.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.ERROR){var i=e.map(m);h.error.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.WARN){var i=e.map(m);h.warn.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function m(t){if("string"==typeof t)return t;try{return e=t,JSON.stringify(e)}catch(e){return t}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var e}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function y(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+t;throw v(e),new Error(e)}function b(t,e){t||y()}function w(t,e){return t}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function E(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function _(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function x(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var T=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&y(),void 0===n?n=t.length-e:n>t.length-e&&y(),this.segments=t,this.offset=e,this.t=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.t},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.i(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach(function(t){n.push(t)}):n.push(e),this.o(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.u=function(t){return t=void 0===t?1:t,this.o(this.segments,this.offset+t,this.length-t)},t.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},t.prototype.l=function(){return this.segments[this.offset]},t.prototype._=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.m=function(){return 0===this.length},t.prototype.T=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.I=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.A=function(){return this.segments.slice(this.offset,this.limit())},t.i=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.prototype.R=function(){return this.A().join("/")},e.prototype.toString=function(){return this.R()},e.g=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var s=o[i];if(s.indexOf("//")>=0)throw new f(c.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter(function(t){return t.length>0}))}return new e(r)},e.P=function(){return new e([])},e}(T),C=/^[_a-zA-Z][_a-zA-Z0-9]*$/,I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.V=function(t){return C.test(t)},e.prototype.R=function(){return this.A().map(function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.V(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.R()},e.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},e.v=function(){return new e(["__name__"])},e.S=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new f(c.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<t.length;){var a=t[i];if("\\"===a){if(i+1===t.length)throw new f(c.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new f(c.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new f(c.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.P=function(){return new e([])},e}(T),A=function(){function t(t){this.path=t}return t.D=function(e){return new t(S.g(e))},t.C=function(e){return new t(S.g(e).u(5))},t.prototype.N=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===S.i(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.i=function(t,e){return S.i(t.path,e.path)},t.F=function(t){return t.length%2==0},t.$=function(e){return new t(new S(e.slice()))},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function O(t,e){if(0!==e.length)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+G(e.length,"argument")+".")}function N(t,e,n){if(e.length!==n)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires "+G(n,"argument")+", but was called with "+G(e.length,"argument")+".")}function k(t,e,n){if(e.length<n)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires at least "+G(n,"argument")+", but was called with "+G(e.length,"argument")+".")}function L(t,e,n,r){if(e.length<n||e.length>r)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+G(e.length,"argument")+".")}function D(t,e,n,r){z(t,e,H(n)+" argument",r)}function M(t,e,n,r){void 0!==r&&D(t,e,n,r)}function P(t,e,n,r){z(t,e,n+" option",r)}function R(t,e,n,r){void 0!==r&&P(t,e,n,r)}function j(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],s=0,a=i;s<a.length;s++){var u=a[s];if(u===r)return;o.push(V(u))}var l=V(r);throw new f(c.INVALID_ARGUMENT,"Invalid value "+l+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function F(t,e,n,r){if(!e.some(function(t){return t===r}))throw new f(c.INVALID_ARGUMENT,"Invalid value "+V(r)+" provided to function "+t+"() for its "+H(n)+" argument. Acceptable values: "+e.join(", "));return r}function z(t,e,n,r){if(!("object"===e?$(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=V(r);throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function $(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function V(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":y()}function B(t,e,n){if(void 0===n)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+H(e)+" argument, but it was undefined.")}function q(t,e,n){_(e,function(e,r){if(n.indexOf(e)<0)throw new f(c.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))})}function U(t,e,n,r){var i=V(r);return new f(c.INVALID_ARGUMENT,"Function "+t+"() requires its "+H(n)+" argument to be a "+e+", but it was: "+i)}function W(t,e,n){if(n<=0)throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires its "+H(e)+" argument to be a positive number, but it was: "+n+".")}function H(t){switch(t){case 1:return"first";case 2:return"second";case 3:return"third";default:return t+"th"}}function G(t,e){return t+" "+e+(1===t?"":"s")}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function X(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Y=function(){function t(){}return t.k=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=X(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function K(t,e){return t<e?-1:t>e?1:0}function Q(t,e,n){return t.length===e.length&&t.every(function(t,r){return n(t,e[r])})}function J(t){return t+"\0"}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Z=function(){function t(t){this.M=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return t=this.M,btoa(t);var t},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.M)},t.prototype.O=function(){return 2*this.M.length},t.prototype.L=function(t){return K(this.M,t.M)},t.prototype.isEqual=function(t){return this.M===t.M},t}();Z.B=new Z("");var tt=function(){function t(t){this.q=t}return t.fromBase64String=function(e){try{return new t(Z.fromBase64String(e))}catch(e){throw new f(c.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+e)}},t.fromUint8Array=function(e){return new t(Z.fromUint8Array(e))},t.prototype.toBase64=function(){return this.q.toBase64()},t.prototype.toUint8Array=function(){return this.q.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.q.isEqual(t.q)},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function et(){if("undefined"==typeof Uint8Array)throw new f(c.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function nt(){if("undefined"==typeof atob)throw new f(c.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.fromBase64String=function(t){N("Blob.fromBase64String",arguments,1),D("Blob.fromBase64String","string",1,t),nt();try{return new e(Z.fromBase64String(t))}catch(t){throw new f(c.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+t)}},e.fromUint8Array=function(t){if(N("Blob.fromUint8Array",arguments,1),et(),!(t instanceof Uint8Array))throw U("Blob.fromUint8Array","Uint8Array",1,t);return new e(Z.fromUint8Array(t))},e.prototype.toBase64=function(){return N("Blob.toBase64",arguments,0),nt(),t.prototype.toBase64.call(this)},e.prototype.toUint8Array=function(){return N("Blob.toUint8Array",arguments,0),et(),t.prototype.toUint8Array.call(this)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(tt),it=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.L=function(t){return K(this.projectId,t.projectId)||K(this.database,t.database)},t}(),ot=function(){function t(t,e){this.K=t,this.G=e,this.H={}}return t.prototype.get=function(t){var e=this.K(t),n=this.H[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[0],a=o[1];if(this.G(s,t))return a}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.K(t),r=this.H[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.G(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.H[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.K(t),n=this.H[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.G(n[r][0],t))return 1===n.length?delete this.H[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){_(this.H,function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[0],a=o[1];t(s,a)}})},t.prototype.m=function(){return x(this.H)},t}(),st=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new f(c.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new f(c.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new f(c.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new f(c.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.Y=function(t){return this.seconds===t.seconds?K(this.nanoseconds,t.nanoseconds):K(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){var t=this.seconds- -62135596800;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),at=function(){function t(t){this.timestamp=t}return t.J=function(e){return new t(e)},t.min=function(){return new t(new st(0,0))},t.prototype.L=function(t){return this.timestamp.Y(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.Z=function(){return this.timestamp},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ut(t){return null==t}function lt(t){return 0===t&&1/t==-1/0}function ct(t){return"number"==typeof t&&Number.isInteger(t)&&!lt(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ft=function(t,e,n,r,i,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.tt=null};function ht(t,e,n,r,i,o,s){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),new ft(t,e,n,r,i,o,s)}function dt(t){var e=w(t);if(null===e.tt){var n=e.path.R();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(function(t){return function(t){return t.field.R()+t.op.toString()+ne(t.value)}(t)}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.R()+e.dir;var e}).join(","),ut(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=Jn(e.startAt)),e.endAt&&(n+="|ub:",n+=Jn(e.endAt)),e.tt=n}return e.tt}function pt(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!rr(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if(i=t.filters[r],o=e.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!Jt(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!tr(t.startAt,e.startAt)&&tr(t.endAt,e.endAt)}function vt(t){return A.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var gt,mt,yt=function(){function t(t,e,n,r,i,o,s){void 0===i&&(i=at.min()),void 0===o&&(o=at.min()),void 0===s&&(s=Z.B),this.target=t,this.targetId=e,this.et=n,this.sequenceNumber=r,this.nt=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return t.prototype.st=function(e){return new t(this.target,this.targetId,this.et,e,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.it=function(e,n){return new t(this.target,this.targetId,this.et,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.rt=function(e){return new t(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,e,this.resumeToken)},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function bt(t){switch(t){case c.OK:return y();case c.CANCELLED:case c.UNKNOWN:case c.DEADLINE_EXCEEDED:case c.RESOURCE_EXHAUSTED:case c.INTERNAL:case c.UNAVAILABLE:case c.UNAUTHENTICATED:return!1;case c.INVALID_ARGUMENT:case c.NOT_FOUND:case c.ALREADY_EXISTS:case c.PERMISSION_DENIED:case c.FAILED_PRECONDITION:case c.ABORTED:case c.OUT_OF_RANGE:case c.UNIMPLEMENTED:case c.DATA_LOSS:return!0;default:return y()}}function wt(t){if(void 0===t)return v("GRPC error has no .code"),c.UNKNOWN;switch(t){case gt.OK:return c.OK;case gt.CANCELLED:return c.CANCELLED;case gt.UNKNOWN:return c.UNKNOWN;case gt.DEADLINE_EXCEEDED:return c.DEADLINE_EXCEEDED;case gt.RESOURCE_EXHAUSTED:return c.RESOURCE_EXHAUSTED;case gt.INTERNAL:return c.INTERNAL;case gt.UNAVAILABLE:return c.UNAVAILABLE;case gt.UNAUTHENTICATED:return c.UNAUTHENTICATED;case gt.INVALID_ARGUMENT:return c.INVALID_ARGUMENT;case gt.NOT_FOUND:return c.NOT_FOUND;case gt.ALREADY_EXISTS:return c.ALREADY_EXISTS;case gt.PERMISSION_DENIED:return c.PERMISSION_DENIED;case gt.FAILED_PRECONDITION:return c.FAILED_PRECONDITION;case gt.ABORTED:return c.ABORTED;case gt.OUT_OF_RANGE:return c.OUT_OF_RANGE;case gt.UNIMPLEMENTED:return c.UNIMPLEMENTED;case gt.DATA_LOSS:return c.DATA_LOSS;default:return y()}}(mt=gt||(gt={}))[mt.OK=0]="OK",mt[mt.CANCELLED=1]="CANCELLED",mt[mt.UNKNOWN=2]="UNKNOWN",mt[mt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",mt[mt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",mt[mt.NOT_FOUND=5]="NOT_FOUND",mt[mt.ALREADY_EXISTS=6]="ALREADY_EXISTS",mt[mt.PERMISSION_DENIED=7]="PERMISSION_DENIED",mt[mt.UNAUTHENTICATED=16]="UNAUTHENTICATED",mt[mt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",mt[mt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",mt[mt.ABORTED=10]="ABORTED",mt[mt.OUT_OF_RANGE=11]="OUT_OF_RANGE",mt[mt.UNIMPLEMENTED=12]="UNIMPLEMENTED",mt[mt.INTERNAL=13]="INTERNAL",mt[mt.UNAVAILABLE=14]="UNAVAILABLE",mt[mt.DATA_LOSS=15]="DATA_LOSS";
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var Et=function(){function t(t,e){this.i=t,this.root=e||xt.EMPTY}return t.prototype.ot=function(e,n){return new t(this.i,this.root.ot(e,n,this.i).copy(null,null,xt.at,null,null))},t.prototype.remove=function(e){return new t(this.i,this.root.remove(e,this.i).copy(null,null,xt.at,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.m();){var n=this.i(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.m();){var r=this.i(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.m=function(){return this.root.m()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.ct=function(){return this.root.ct()},t.prototype.ut=function(){return this.root.ut()},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.forEach=function(t){this.ht(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.ht(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.lt=function(t){return this.root.lt(t)},t.prototype._t=function(){return new _t(this.root,null,this.i,!1)},t.prototype.ft=function(t){return new _t(this.root,t,this.i,!1)},t.prototype.dt=function(){return new _t(this.root,null,this.i,!0)},t.prototype.wt=function(t){return new _t(this.root,t,this.i,!0)},t}(),_t=function(){function t(t,e,n,r){this.Tt=r,this.Et=[];for(var i=1;!t.m();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Tt?t.left:t.right;else{if(0===i){this.Et.push(t);break}this.Et.push(t),t=this.Tt?t.right:t.left}}return t.prototype.It=function(){var t=this.Et.pop(),e={key:t.key,value:t.value};if(this.Tt)for(t=t.left;!t.m();)this.Et.push(t),t=t.right;else for(t=t.right;!t.m();)this.Et.push(t),t=t.left;return e},t.prototype.At=function(){return this.Et.length>0},t.prototype.Rt=function(){if(0===this.Et.length)return null;var t=this.Et[this.Et.length-1];return{key:t.key,value:t.value}},t}(),xt=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.m=function(){return!1},t.prototype.ht=function(t){return this.left.ht(t)||t(this.key,this.value)||this.right.ht(t)},t.prototype.lt=function(t){return this.right.lt(t)||t(this.key,this.value)||this.left.lt(t)},t.prototype.min=function(){return this.left.m()?this:this.left.min()},t.prototype.ct=function(){return this.min().key},t.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},t.prototype.ot=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.ot(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.ot(t,e,n))).gt()},t.prototype.Pt=function(){if(this.left.m())return t.EMPTY;var e=this;return e.left.yt()||e.left.left.yt()||(e=e.Vt()),(e=e.copy(null,null,null,e.left.Pt(),null)).gt()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.m()||i.left.yt()||i.left.left.yt()||(i=i.Vt()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.yt()&&(i=i.bt()),i.right.m()||i.right.yt()||i.right.left.yt()||(i=i.vt()),0===n(e,i.key)){if(i.right.m())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.Pt())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.gt()},t.prototype.yt=function(){return this.color},t.prototype.gt=function(){var t=this;return t.right.yt()&&!t.left.yt()&&(t=t.St()),t.left.yt()&&t.left.left.yt()&&(t=t.bt()),t.left.yt()&&t.right.yt()&&(t=t.Dt()),t},t.prototype.Vt=function(){var t=this.Dt();return t.right.left.yt()&&(t=(t=(t=t.copy(null,null,null,null,t.right.bt())).St()).Dt()),t},t.prototype.vt=function(){var t=this.Dt();return t.left.left.yt()&&(t=(t=t.bt()).Dt()),t},t.prototype.St=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.bt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.Dt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.Ct=function(){var t=this.Nt();return Math.pow(2,t)<=this.size+1},t.prototype.Nt=function(){if(this.yt()&&this.left.yt())throw y();if(this.right.yt())throw y();var t=this.left.Nt();if(t!==this.right.Nt())throw y();return t+(this.yt()?0:1)},t}();xt.EMPTY=null,xt.RED=!0,xt.at=!1,xt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw y()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.ot=function(t,e,n){return new xt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.m=function(){return!0},t.prototype.ht=function(t){return!1},t.prototype.lt=function(t){return!1},t.prototype.ct=function(){return null},t.prototype.ut=function(){return null},t.prototype.yt=function(){return!1},t.prototype.Ct=function(){return!0},t.prototype.Nt=function(){return 0},t}());
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var Tt=function(){function t(t){this.i=t,this.data=new Et(this.i)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.ct()},t.prototype.last=function(){return this.data.ut()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ht(function(e,n){return t(e),!1})},t.prototype.Ft=function(t,e){for(var n=this.data.ft(t[0]);n.At();){var r=n.It();if(this.i(r.key,t[1])>=0)return;e(r.key)}},t.prototype.xt=function(t,e){var n;for(n=void 0!==e?this.data.ft(e):this.data._t();n.At();)if(!t(n.It().key))return},t.prototype.$t=function(t){var e=this.data.ft(t);return e.At()?e.It().key:null},t.prototype._t=function(){return new St(this.data._t())},t.prototype.ft=function(t){return new St(this.data.ft(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).ot(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.m=function(){return this.data.m()},t.prototype.kt=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach(function(t){e=e.add(t)}),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data._t(),r=e.data._t();n.At();){var i=n.It().key,o=r.It().key;if(0!==this.i(i,o))return!1}return!0},t.prototype.A=function(){var t=[];return this.forEach(function(e){t.push(e)}),t},t.prototype.toString=function(){var t=[];return this.forEach(function(e){return t.push(e)}),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.i);return n.data=e,n},t}(),St=function(){function t(t){this.Mt=t}return t.prototype.It=function(){return this.Mt.It().key},t.prototype.At=function(){return this.Mt.At()},t}(),Ct=new Et(A.i);function It(){return Ct}function At(){return It()}var Ot=new Et(A.i);function Nt(){return Ot}var kt=new Et(A.i),Lt=new Tt(A.i);function Dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Lt,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Mt=new Tt(K);function Pt(){return Mt}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Rt=function(){function t(t){this.i=t?function(e,n){return t(e,n)||A.i(e.key,n.key)}:function(t,e){return A.i(t.key,e.key)},this.Ot=Nt(),this.Lt=new Et(this.i)}return t.Bt=function(e){return new t(e.i)},t.prototype.has=function(t){return null!=this.Ot.get(t)},t.prototype.get=function(t){return this.Ot.get(t)},t.prototype.first=function(){return this.Lt.ct()},t.prototype.last=function(){return this.Lt.ut()},t.prototype.m=function(){return this.Lt.m()},t.prototype.indexOf=function(t){var e=this.Ot.get(t);return e?this.Lt.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.Lt.ht(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.Ot.ot(t.key,t),e.Lt.ot(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.Ot.remove(t),this.Lt.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.Lt._t(),r=e.Lt._t();n.At();){var i=n.It().key,o=r.It().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach(function(e){t.push(e.toString())}),0===t.length?"DocumentSet ()":"DocumentSet (\n  "+t.join("  \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.i=this.i,r.Ot=e,r.Lt=n,r},t}(),jt=function(){function t(){this.qt=new Et(A.i)}return t.prototype.track=function(t){var e=t.doc.key,n=this.qt.get(e);n?0!==t.type&&3===n.type?this.qt=this.qt.ot(e,t):3===t.type&&1!==n.type?this.qt=this.qt.ot(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.qt=this.qt.ot(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.qt=this.qt.remove(e):1===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):y():this.qt=this.qt.ot(e,t)},t.prototype.Ut=function(){var t=[];return this.qt.ht(function(e,n){t.push(n)}),t},t}(),Ft=function(){function t(t,e,n,r,i,o,s,a){this.query=t,this.docs=e,this.Qt=n,this.docChanges=r,this.Wt=i,this.fromCache=o,this.jt=s,this.Kt=a}return t.Gt=function(e,n,r,i){var o=[];return n.forEach(function(t){o.push({type:0,doc:t})}),new t(e,n,Rt.Bt(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.jt===t.jt&&this.Wt.isEqual(t.Wt)&&jn(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.Qt.isEqual(t.Qt)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),zt=function(){function t(t,e,n,r,i){this.nt=t,this.zt=e,this.Ht=n,this.Yt=r,this.Jt=i}return t.Xt=function(e,n){var r=new Map;return r.set(e,$t.Zt(e,n)),new t(at.min(),r,Pt(),It(),Dt())},t}(),$t=function(){function t(t,e,n,r,i){this.resumeToken=t,this.te=e,this.ee=n,this.ne=r,this.se=i}return t.Zt=function(e,n){return new t(Z.B,n,Dt(),Dt(),Dt())},t}(),Vt=function(t,e,n,r){this.ie=t,this.removedTargetIds=e,this.key=n,this.re=r},Bt=function(t,e){this.targetId=t,this.oe=e},qt=function(t,e,n,r){void 0===n&&(n=Z.B),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},Ut=function(){function t(){this.ae=0,this.ce=Gt(),this.ue=Z.B,this.he=!1,this.le=!0}return Object.defineProperty(t.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fe",{get:function(){return this.le},enumerable:!1,configurable:!0}),t.prototype.de=function(t){t.O()>0&&(this.le=!0,this.ue=t)},t.prototype.we=function(){var t=Dt(),e=Dt(),n=Dt();return this.ce.forEach(function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:y()}}),new $t(this.ue,this.he,t,e,n)},t.prototype.me=function(){this.le=!1,this.ce=Gt()},t.prototype.Te=function(t,e){this.le=!0,this.ce=this.ce.ot(t,e)},t.prototype.Ee=function(t){this.le=!0,this.ce=this.ce.remove(t)},t.prototype.Ie=function(){this.ae+=1},t.prototype.Ae=function(){this.ae-=1},t.prototype.Re=function(){this.le=!0,this.he=!0},t}(),Wt=function(){function t(t){this.ge=t,this.Pe=new Map,this.ye=It(),this.Ve=Ht(),this.pe=new Tt(K)}return t.prototype.be=function(t){for(var e=0,n=t.ie;e<n.length;e++){var r=n[e];t.re instanceof En?this.ve(r,t.re):t.re instanceof _n&&this.Se(r,t.key,t.re)}for(var i=0,o=t.removedTargetIds;i<o.length;i++){var s=o[i];this.Se(s,t.key,t.re)}},t.prototype.De=function(t){var e=this;this.Ce(t,function(n){var r=e.Ne(n);switch(t.state){case 0:e.Fe(n)&&r.de(t.resumeToken);break;case 1:r.Ae(),r._e||r.me(),r.de(t.resumeToken);break;case 2:r.Ae(),r._e||e.removeTarget(n);break;case 3:e.Fe(n)&&(r.Re(),r.de(t.resumeToken));break;case 4:e.Fe(n)&&(e.xe(n),r.de(t.resumeToken));break;default:y()}})},t.prototype.Ce=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Pe.forEach(function(t,r){n.Fe(r)&&e(r)})},t.prototype.$e=function(t){var e=t.targetId,n=t.oe.count,r=this.ke(e);if(r){var i=r.target;if(vt(i))if(0===n){var o=new A(i.path);this.Se(e,o,new _n(o,at.min()))}else b(1===n);else this.Me(e)!==n&&(this.xe(e),this.pe=this.pe.add(e))}},t.prototype.Oe=function(t){var e=this,n=new Map;this.Pe.forEach(function(r,i){var o=e.ke(i);if(o){if(r.te&&vt(o.target)){var s=new A(o.target.path);null!==e.ye.get(s)||e.Le(i,s)||e.Se(i,s,new _n(s,t))}r.fe&&(n.set(i,r.we()),r.me())}});var r=Dt();this.Ve.forEach(function(t,n){var i=!0;n.xt(function(t){var n=e.ke(t);return!n||2===n.et||(i=!1,!1)}),i&&(r=r.add(t))});var i=new zt(t,n,this.pe,this.ye,r);return this.ye=It(),this.Ve=Ht(),this.pe=new Tt(K),i},t.prototype.ve=function(t,e){if(this.Fe(t)){var n=this.Le(t,e.key)?2:0;this.Ne(t).Te(e.key,n),this.ye=this.ye.ot(e.key,e),this.Ve=this.Ve.ot(e.key,this.Be(e.key).add(t))}},t.prototype.Se=function(t,e,n){if(this.Fe(t)){var r=this.Ne(t);this.Le(t,e)?r.Te(e,1):r.Ee(e),this.Ve=this.Ve.ot(e,this.Be(e).delete(t)),n&&(this.ye=this.ye.ot(e,n))}},t.prototype.removeTarget=function(t){this.Pe.delete(t)},t.prototype.Me=function(t){var e=this.Ne(t).we();return this.ge.qe(t).size+e.ee.size-e.se.size},t.prototype.Ie=function(t){this.Ne(t).Ie()},t.prototype.Ne=function(t){var e=this.Pe.get(t);return e||(e=new Ut,this.Pe.set(t,e)),e},t.prototype.Be=function(t){var e=this.Ve.get(t);return e||(e=new Tt(K),this.Ve=this.Ve.ot(t,e)),e},t.prototype.Fe=function(t){var e=null!==this.ke(t);return e||p("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ke=function(t){var e=this.Pe.get(t);return e&&e._e?null:this.ge.Ue(t)},t.prototype.xe=function(t){var e=this;this.Pe.set(t,new Ut),this.ge.qe(t).forEach(function(n){e.Se(t,n,null)})},t.prototype.Le=function(t,e){return this.ge.qe(t).has(e)},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ht(){return new Et(A.i)}function Gt(){return new Et(A.i)}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Xt(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Yt(t){var e=re(t.mapValue.fields.__local_write_time__.timestampValue);return new st(e.seconds,e.nanos)}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Kt=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Qt(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?Xt(t)?4:10:y()}function Jt(t,e){var n=Qt(t);if(n!==Qt(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Yt(t).isEqual(Yt(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=re(t.timestampValue),r=re(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return oe(t.bytesValue).isEqual(oe(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return ie(t.geoPointValue.latitude)===ie(e.geoPointValue.latitude)&&ie(t.geoPointValue.longitude)===ie(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return ie(t.integerValue)===ie(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=ie(t.doubleValue),r=ie(e.doubleValue);return n===r?lt(n)===lt(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return Q(t.arrayValue.values||[],e.arrayValue.values||[],Jt);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(E(n)!==E(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Jt(n[i],r[i])))return!1;return!0}(t,e);default:return y()}}function Zt(t,e){return void 0!==(t.values||[]).find(function(t){return Jt(t,e)})}function te(t,e){var n=Qt(t),r=Qt(e);if(n!==r)return K(n,r);switch(n){case 0:return 0;case 1:return K(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=ie(t.integerValue||t.doubleValue),r=ie(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return ee(t.timestampValue,e.timestampValue);case 4:return ee(Yt(t),Yt(e));case 5:return K(t.stringValue,e.stringValue);case 6:return function(t,e){var n=oe(t),r=oe(e);return n.L(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=K(n[i],r[i]);if(0!==o)return o}return K(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=K(ie(t.latitude),ie(e.latitude));return 0!==n?n:K(ie(t.longitude),ie(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=te(n[i],r[i]);if(o)return o}return K(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=K(r[s],o[s]);if(0!==a)return a;var u=te(n[r[s]],i[o[s]]);if(0!==u)return u}return K(r.length,o.length)}(t.mapValue,e.mapValue);default:throw y()}}function ee(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return K(t,e);var n=re(t),r=re(e),i=K(n.seconds,r.seconds);return 0!==i?i:K(n.nanos,r.nanos)}function ne(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=re(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?oe(e.bytesValue).toBase64():"referenceValue"in e?(r=e.referenceValue,A.C(r).toString()):"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",r=!0,i=0,o=e.values||[];i<o.length;i++)r?r=!1:n+=",",n+=t(o[i]);return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",r=!0,i=0,o=Object.keys(e.fields||{}).sort();i<o.length;i++){var s=o[i];r?r=!1:n+=",",n+=s+":"+t(e.fields[s])}return n+"}"}(e.mapValue):y();var n,r}(t)}function re(t){if(b(!!t),"string"==typeof t){var e=0,n=Kt.exec(t);if(b(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:ie(t.seconds),nanos:ie(t.nanos)}}function ie(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function oe(t){return"string"==typeof t?Z.fromBase64String(t):Z.fromUint8Array(t)}function se(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.R()}}function ae(t){return!!t&&"integerValue"in t}function ue(t){return!!t&&"arrayValue"in t}function le(t){return!!t&&"nullValue"in t}function ce(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function fe(t){return!!t&&"mapValue"in t}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var he={asc:"ASCENDING",desc:"DESCENDING"},de={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},pe=function(t,e){this.U=t,this.Qe=e};function ve(t){return{integerValue:""+t}}function ge(t,e){if(t.Qe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:lt(e)?"-0":e}}function me(t,e){return ct(e)?ve(e):ge(t,e)}function ye(t,e){return t.Qe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function be(t,e){return t.Qe?e.toBase64():e.toUint8Array()}function we(t){return b(!!t),at.J(function(t){var e=re(t);return new st(e.seconds,e.nanos)}(t))}function Ee(t,e){return function(t){return new S(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).R()}function _e(t){var e=S.g(t);return b(ze(e)),e}function xe(t,e){return Ee(t.U,e.path)}function Te(t,e){var n=_e(e);return b(n.get(1)===t.U.projectId),b(!n.get(3)&&!t.U.database||n.get(3)===t.U.database),new A(Ae(n))}function Se(t,e){return Ee(t.U,e)}function Ce(t){var e=_e(t);return 4===e.length?S.P():Ae(e)}function Ie(t){return new S(["projects",t.U.projectId,"databases",t.U.database]).R()}function Ae(t){return b(t.length>4&&"documents"===t.get(4)),t.u(5)}function Oe(t,e,n){return{name:xe(t,e),fields:n.proto.mapValue.fields}}function Ne(t,e){var n;if(e instanceof ln)n={update:Oe(t,e.key,e.value)};else if(e instanceof vn)n={delete:xe(t,e.key)};else if(e instanceof cn)n={update:Oe(t,e.key,e.data),updateMask:function(t){var e=[];return t.fields.forEach(function(t){return e.push(t.R())}),{fieldPaths:e}}(e.We)};else if(e instanceof hn)n={transform:{document:xe(t,e.key),fieldTransforms:e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof Ue)return{fieldPath:e.field.R(),setToServerValue:"REQUEST_TIME"};if(n instanceof We)return{fieldPath:e.field.R(),appendMissingElements:{values:n.elements}};if(n instanceof Ge)return{fieldPath:e.field.R(),removeAllFromArray:{values:n.elements}};if(n instanceof Ye)return{fieldPath:e.field.R(),increment:n.je};throw y()}(0,t)})}};else{if(!(e instanceof gn))return y();n={verify:xe(t,e.key)}}return e.Ge.Ke||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:function(t,e){return ye(t,e.Z())}(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:y()}(t,e.Ge)),n}function ke(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?tn.updateTime(we(t.updateTime)):void 0!==t.exists?tn.exists(t.exists):tn.ze()}(e.currentDocument):tn.ze();if(e.update){e.update.name;var r=Te(t,e.update.name),i=new mn({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){var e=t.fieldPaths||[];return new Je(e.map(function(t){return I.S(t)}))}(e.updateMask);return new cn(r,i,o,n)}return new ln(r,i,n)}if(e.delete){var s=Te(t,e.delete);return new vn(s,n)}if(e.transform){var a=Te(t,e.transform.document),u=e.transform.fieldTransforms.map(function(e){return function(t,e){var n=null;if("setToServerValue"in e)b("REQUEST_TIME"===e.setToServerValue),n=new Ue;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new We(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new Ge(i)}else"increment"in e?n=new Ye(t,e.increment):y();var o=I.S(e.fieldPath);return new Ze(o,n)}(t,e)});return b(!0===n.exists),new hn(a,u)}if(e.verify){var l=Te(t,e.verify);return new gn(l,n)}return y()}function Le(t,e){return{documents:[Se(t,e.path)]}}function De(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=Se(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=Se(t,r.h()),n.structuredQuery.from=[{collectionId:r._()}]);var i=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(ce(t.value))return{unaryFilter:{field:je(t.field),op:"IS_NAN"}};if(le(t.value))return{unaryFilter:{field:je(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(ce(t.value))return{unaryFilter:{field:je(t.field),op:"IS_NOT_NAN"}};if(le(t.value))return{unaryFilter:{field:je(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:je(t.field),op:function(t){return de[t]}(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map(function(t){return function(t){return{field:je(t.field),direction:function(t){return he[t]}(t.dir)}}(t)})}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(t,e){return t.Qe||ut(e)?e:{value:e}}(t,e.limit);return null!==s&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=Pe(e.startAt)),e.endAt&&(n.structuredQuery.endAt=Pe(e.endAt)),n}function Me(t){var e=Ce(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){b(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=function t(e){return e?void 0!==e.unaryFilter?[function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=Fe(t.unaryFilter.field);return Bn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=Fe(t.unaryFilter.field);return Bn.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=Fe(t.unaryFilter.field);return Bn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Fe(t.unaryFilter.field);return Bn.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return y()}}(e)]:void 0!==e.fieldFilter?[function(t){return Bn.create(Fe(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return y()}}(t.fieldFilter.op),t.fieldFilter.value)}(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map(function(e){return t(e)}).reduce(function(t,e){return t.concat(e)}):y():[]}(n.where));var a=[];n.orderBy&&(a=n.orderBy.map(function(t){return function(t){return new er(Fe(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)}));var u=null;n.limit&&(u=function(t){var e;return ut(e="object"==typeof t?t.value:t)?null:e}(n.limit));var l=null;n.startAt&&(l=Re(n.startAt));var c=null;return n.endAt&&(c=Re(n.endAt)),Dn(Sn(e,i,a,s,u,"F",l,c))}function Pe(t){return{before:t.before,values:t.position}}function Re(t){var e=!!t.before,n=t.values||[];return new Qn(n,e)}function je(t){return{fieldPath:t.R()}}function Fe(t){return I.S(t.fieldPath)}function ze(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}
/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var $e=function(){this.He=void 0};function Ve(t,e,n){return t instanceof Ue?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof We?He(t,e):t instanceof Ge?Xe(t,e):function(t,e){var n=qe(t,e),r=Ke(n)+Ke(t.je);return ae(n)&&ae(t.je)?ve(r):ge(t.serializer,r)}(t,e)}function Be(t,e,n){return t instanceof We?He(t,e):t instanceof Ge?Xe(t,e):n}function qe(t,e){return t instanceof Ye?ae(n=e)||n&&"doubleValue"in n?e:{integerValue:0}:null;var n}var Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}($e),We=function(t){function e(e){var n;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}($e);function He(t,e){for(var n=Qe(e),r=function(t){n.some(function(e){return Jt(e,t)})||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Ge=function(t){function e(e){var n;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}($e);function Xe(t,e){for(var n=Qe(e),r=function(t){n=n.filter(function(e){return!Jt(e,t)})},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Ye=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).serializer=e,r.je=n,r}return r.__extends(e,t),e}($e);function Ke(t){return ie(t.integerValue||t.doubleValue)}function Qe(t){return ue(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Je=function(){function t(t){this.fields=t,t.sort(I.i)}return t.prototype.Ye=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].T(t))return!0;return!1},t.prototype.isEqual=function(t){return Q(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),Ze=function(t,e){this.field=t,this.transform=e},tn=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ze=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function en(t,e){return void 0!==t.updateTime?e instanceof En&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e instanceof En}var nn=function(){};function rn(t,e,n){return t instanceof ln?function(t,e,n){return new En(t.key,n.version,t.value,{hasCommittedMutations:!0})}(t,0,n):t instanceof cn?function(t,e,n){if(!en(t.Ge,e))return new xn(t.key,n.version);var r=fn(t,e);return new En(t.key,n.version,r,{hasCommittedMutations:!0})}(t,e,n):t instanceof hn?function(t,e,n){if(b(null!=n.transformResults),!en(t.Ge,e))return new xn(t.key,n.version);var r=dn(t,e),i=function(t,e,n){var r=[];b(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],s=o.transform,a=null;e instanceof En&&(a=e.field(o.field)),r.push(Be(s,a,n[i]))}return r}(t.fieldTransforms,e,n.transformResults),o=n.version,s=pn(t,r.data(),i);return new En(t.key,o,s,{hasCommittedMutations:!0})}(t,e,n):function(t,e,n){return new _n(t.key,n.version,{hasCommittedMutations:!0})}(t,0,n)}function on(t,e,n,r){return t instanceof ln?function(t,e){if(!en(t.Ge,e))return e;var n=un(e);return new En(t.key,n,t.value,{Je:!0})}(t,e):t instanceof cn?function(t,e){if(!en(t.Ge,e))return e;var n=un(e),r=fn(t,e);return new En(t.key,n,r,{Je:!0})}(t,e):t instanceof hn?function(t,e,n,r){if(!en(t.Ge,e))return e;var i=dn(t,e),o=function(t,e,n,r){for(var i=[],o=0,s=t;o<s.length;o++){var a=s[o],u=a.transform,l=null;n instanceof En&&(l=n.field(a.field)),null===l&&r instanceof En&&(l=r.field(a.field)),i.push(Ve(u,l,e))}return i}(t.fieldTransforms,n,e,r),s=pn(t,i.data(),o);return new En(t.key,i.version,s,{Je:!0})}(t,e,r,n):function(t,e){return en(t.Ge,e)?new _n(t.key,at.min()):e}(t,e)}function sn(t,e){return t instanceof hn?function(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],s=e instanceof En?e.field(o.field):void 0,a=qe(o.transform,s||null);null!=a&&(n=null==n?(new yn).set(o.field,a):n.set(o.field,a))}return n?n.Xe():null}(t,e):null}function an(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.Ge.isEqual(e.Ge)&&(0===t.type?t.value.isEqual(e.value):1===t.type?t.data.isEqual(e.data)&&t.We.isEqual(e.We):2!==t.type||Q(t.fieldTransforms,t.fieldTransforms,function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof We&&e instanceof We||t instanceof Ge&&e instanceof Ge?Q(t.elements,e.elements,Jt):t instanceof Ye&&e instanceof Ye?Jt(t.je,e.je):t instanceof Ue&&e instanceof Ue}(t.transform,e.transform)}(t,e)}))}function un(t){return t instanceof En?t.version:at.min()}var ln=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Ge=r,i.type=0,i}return r.__extends(e,t),e}(nn),cn=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.We=r,o.Ge=i,o.type=1,o}return r.__extends(e,t),e}(nn);function fn(t,e){return function(t,e){var n=new yn(e);return t.We.fields.forEach(function(e){if(!e.m()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}}),n.Xe()}(t,e instanceof En?e.data():mn.empty())}var hn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Ge=tn.exists(!0),r}return r.__extends(e,t),e}(nn);function dn(t,e){return e}function pn(t,e,n){for(var r=new yn(e),i=0;i<t.fieldTransforms.length;i++){var o=t.fieldTransforms[i];r.set(o.field,n[i])}return r.Xe()}var vn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=3,r}return r.__extends(e,t),e}(nn),gn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=4,r}return r.__extends(e,t),e}(nn),mn=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.m())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!fe(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t._()])||null},t.prototype.isEqual=function(t){return Jt(this.proto,t.proto)},t}(),yn=function(){function t(t){void 0===t&&(t=mn.empty()),this.Ze=t,this.tn=new Map}return t.prototype.set=function(t,e){return this.en(t,e),this},t.prototype.delete=function(t){return this.en(t,null),this},t.prototype.en=function(t,e){for(var n=this.tn,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===Qt(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t._(),e)},t.prototype.Xe=function(){var t=this.nn(I.P(),this.tn);return null!=t?new mn(t):this.Ze},t.prototype.nn=function(t,e){var n=this,r=!1,i=this.Ze.field(t),o=fe(i)?Object.assign({},i.mapValue.fields):{};return e.forEach(function(e,i){if(e instanceof Map){var s=n.nn(t.child(i),e);null!=s&&(o[i]=s,r=!0)}else null!==e?(o[i]=e,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)}),r?{mapValue:{fields:o}}:null},t}();function bn(t){var e=[];return _(t.fields||{},function(t,n){var r=new I([t]);if(fe(n)){var i=bn(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,s=i;o<s.length;o++){var a=s[o];e.push(r.child(a))}}else e.push(r)}),new Je(e)
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */}var wn=function(t,e){this.key=t,this.version=e},En=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).sn=r,o.Je=!!i.Je,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return r.__extends(e,t),e.prototype.field=function(t){return this.sn.field(t)},e.prototype.data=function(){return this.sn},e.prototype.rn=function(){return this.sn.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.Je===t.Je&&this.hasCommittedMutations===t.hasCommittedMutations&&this.sn.isEqual(t.sn)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e}(wn),_n=function(t){function e(e,n,r){var i;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return r.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(wn),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(wn),Tn=function(t,e,n,r,i,o,s,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.on=n,this.filters=r,this.limit=i,this.an=o,this.startAt=s,this.endAt=a,this.cn=null,this.un=null,this.startAt,this.endAt};function Sn(t,e,n,r,i,o,s,a){return new Tn(t,e,n,r,i,o,s,a)}function Cn(t){return new Tn(t)}function In(t){return!ut(t.limit)&&"F"===t.an}function An(t){return!ut(t.limit)&&"L"===t.an}function On(t){return t.on.length>0?t.on[0].field:null}function Nn(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.hn())return r.field}return null}function kn(t){return null!==t.collectionGroup}function Ln(t){var e=w(t);if(null===e.cn){e.cn=[];var n=Nn(e),r=On(e);if(null!==n&&null===r)n.p()||e.cn.push(new er(n)),e.cn.push(new er(I.v(),"asc"));else{for(var i=!1,o=0,s=e.on;o<s.length;o++){var a=s[o];e.cn.push(a),a.field.p()&&(i=!0)}if(!i){var u=e.on.length>0?e.on[e.on.length-1].dir:"asc";e.cn.push(new er(I.v(),u))}}}return e.cn}function Dn(t){var e=w(t);if(!e.un)if("F"===e.an)e.un=ht(e.path,e.collectionGroup,Ln(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=Ln(e);r<i.length;r++){var o=i[r],s="desc"===o.dir?"asc":"desc";n.push(new er(o.field,s))}var a=e.endAt?new Qn(e.endAt.position,!e.endAt.before):null,u=e.startAt?new Qn(e.startAt.position,!e.startAt.before):null;e.un=ht(e.path,e.collectionGroup,n,e.filters,e.limit,a,u)}return e.un}function Mn(t,e,n){return new Tn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Pn(t,e){return new Tn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,e,t.endAt)}function Rn(t,e){return new Tn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,e)}function jn(t,e){return pt(Dn(t),Dn(e))&&t.an===e.an}function Fn(t){return dt(Dn(t))+"|lt:"+t.an}function zn(t){return"Query(target="+function(t){var e=t.path.R();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map(function(t){return(e=t).field.R()+" "+e.op+" "+ne(e.value);var e}).join(", ")+"]"),ut(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map(function(t){return(e=t).field.R()+" ("+e.dir+")";var e}).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Jn(t.startAt)),t.endAt&&(e+=", endAt: "+Jn(t.endAt)),"Target("+e+")"}(Dn(t))+"; limitType="+t.an+")"}function $n(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.N(t.collectionGroup)&&t.path.T(n):A.F(t.path)?t.path.isEqual(n):t.path.I(n)}(t,e)&&function(t,e){for(var n=0,r=t.on;n<r.length;n++){var i=r[n];if(!i.field.p()&&null===e.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!Zn(t.startAt,Ln(t),e)||t.endAt&&Zn(t.endAt,Ln(t),e))}(t,e)}function Vn(t){return function(e,n){for(var r=!1,i=0,o=Ln(t);i<o.length;i++){var s=o[i],a=nr(s,e,n);if(0!==a)return a;r=r||s.field.p()}return 0}}var Bn=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return r.__extends(e,t),e.create=function(t,n,r){if(t.p())return"in"===n||"not-in"===n?this.ln(t,n,r):new qn(t,n,r);if(le(r)){if("=="!==n&&"!="!==n)throw new f(c.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new e(t,n,r)}if(ce(r)){if("=="!==n&&"!="!==n)throw new f(c.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new e(t,n,r)}return"array-contains"===n?new Gn(t,r):"in"===n?new Xn(t,r):"not-in"===n?new Yn(t,r):"array-contains-any"===n?new Kn(t,r):new e(t,n,r)},e.ln=function(t,e,n){return"in"===e?new Un(t,n):new Wn(t,n)},e.prototype.matches=function(t){var e=t.field(this.field);return"!="===this.op?null!==e&&this._n(te(e,this.value)):null!==e&&Qt(this.value)===Qt(e)&&this._n(te(e,this.value))},e.prototype._n=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return y()}},e.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),qn=function(t){function e(e,n,r){var i;return(i=t.call(this,e,n,r)||this).key=A.C(r.referenceValue),i}return r.__extends(e,t),e.prototype.matches=function(t){var e=A.i(t.key,this.key);return this._n(e)},e}(Bn),Un=function(t){function e(e,n){var r;return(r=t.call(this,e,"in",n)||this).keys=Hn("in",n),r}return r.__extends(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(Bn),Wn=function(t){function e(e,n){var r;return(r=t.call(this,e,"not-in",n)||this).keys=Hn("not-in",n),r}return r.__extends(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(Bn);function Hn(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return A.C(t.referenceValue)})}var Gn=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return ue(e)&&Zt(e.arrayValue,this.value)},e}(Bn),Xn=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&Zt(this.value.arrayValue,e)},e}(Bn),Yn=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){if(Zt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.field(this.field);return null!==e&&!Zt(this.value.arrayValue,e)},e}(Bn),Kn=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!ue(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return Zt(e.value.arrayValue,t)})},e}(Bn),Qn=function(t,e){this.position=t,this.before=e};function Jn(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return ne(t)}).join(",")}function Zn(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],s=t.position[i];if(r=o.field.p()?A.i(A.C(s.referenceValue),n.key):te(s,n.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function tr(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!Jt(t.position[n],e.position[n]))return!1;return!0}var er=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function nr(t,e,n){var r=t.field.p()?A.i(e.key,n.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?te(r,i):y()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return y()}}function rr(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ir=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},or=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.fn=t,this.dn=e,this.wn=n,this.mn=r,this.Tn=i,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return t.prototype.reset=function(){this.En=0},t.prototype.Rn=function(){this.En=this.Tn},t.prototype.gn=function(t){var e=this;this.cancel();var n=Math.floor(this.En+this.Pn()),r=Math.max(0,Date.now()-this.An),i=Math.max(0,n-r);i>0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.En+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.In=this.fn.yn(this.dn,i,function(){return e.An=Date.now(),t()}),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},t.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},t.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},t.prototype.Pn=function(){return(Math.random()-.5)*this.En},t}(),sr=function(){function t(t){var e=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,t(function(t){e.Sn=!0,e.result=t,e.bn&&e.bn(t)},function(t){e.Sn=!0,e.error=t,e.vn&&e.vn(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Dn&&y(),this.Dn=!0,this.Sn?this.error?this.Cn(n,this.error):this.Nn(e,this.result):new t(function(t,i){r.bn=function(n){r.Nn(e,n).next(t,i)},r.vn=function(e){r.Cn(n,e).next(t,i)}})},t.prototype.Fn=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.xn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.Nn=function(e,n){return e?this.xn(function(){return e(n)}):t.resolve(n)},t.prototype.Cn=function(e,n){return e?this.xn(function(){return e(n)}):t.reject(n)},t.resolve=function(e){return new t(function(t,n){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.$n=function(e){return new t(function(t,n){var r=0,i=0,o=!1;e.forEach(function(e){++r,e.next(function(){++i,o&&i===r&&t()},function(t){return n(t)})}),o=!0,i===r&&t()})},t.kn=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next(function(n){return n?t.resolve(n):e()})},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach(function(t,i){r.push(e.call(n,t,i))}),this.$n(r)},t}(),ar=function(){function e(t,n,r){this.name=t,this.version=n,this.Mn=r,12.2===e.On(s.getUA())&&v("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(t){return p("SimpleDb","Removing database:",t),dr(window.indexedDB.deleteDatabase(t)).Fn()},e.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(e.Bn())return!0;var t=s.getUA(),n=e.On(t),r=0<n&&n<10,i=e.qn(t),o=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.Bn=function(){var e;return void 0!==t&&"YES"===(null===(e=t.env)||void 0===e?void 0:e.Un)},e.Qn=function(t,e){return t.store(e)},e.On=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.qn=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.Wn=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.db?[3,2]:(p("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){var n=t.target.result;e(n)},i.onblocked=function(){r(new lr(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;"VersionError"===n.name?r(new f(c.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new lr(t,n))},i.onupgradeneeded=function(t){p("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion);var e=t.target.result;n.Mn.createOrUpgrade(e,i.transaction,t.oldVersion,n.version).next(function(){p("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(t){return n.jn(t)}),this.db)]}})})},e.prototype.Kn=function(t){this.jn=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,s,a,u,l;return r.__generator(this,function(c){switch(c.label){case 0:o="readonly"===e,s=0,a=function(){var e,a,l,c,f;return r.__generator(this,function(r){switch(r.label){case 0:++s,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,u.Wn(t)];case 2:return u.db=r.sent(),e=fr.open(u.db,t,o?"readonly":"readwrite",n),a=i(e).catch(function(t){return e.abort(t),sr.reject(t)}).Fn(),l={},a.catch(function(){}),[4,e.Gn];case 3:return[2,(l.value=(r.sent(),a),l)];case 4:return c=r.sent(),f="FirebaseError"!==c.name&&s<3,p("SimpleDb","Transaction failed with error:",c.message,"Retrying:",f),u.close(),f?[3,5]:[2,{value:Promise.reject(c)}];case 5:return[2]}})},u=this,c.label=1;case 1:return[5,a()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}})})},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),ur=function(){function t(t){this.zn=t,this.Hn=!1,this.Yn=null}return Object.defineProperty(t.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.zn=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Hn=!0},t.prototype.Xn=function(t){this.Yn=t},t.prototype.delete=function(){return dr(this.zn.delete())},t}(),lr=function(t){function e(e,n){var r;return(r=t.call(this,c.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return r.__extends(e,t),e}(f);
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function cr(t){return"IndexedDbTransactionError"===t.name}var fr=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.Zn=new ir,this.transaction.oncomplete=function(){n.Zn.resolve()},this.transaction.onabort=function(){e.error?n.Zn.reject(new lr(t,e.error)):n.Zn.resolve()},this.transaction.onerror=function(e){var r=vr(e.target.error);n.Zn.reject(new lr(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(e){throw new lr(n,e)}},Object.defineProperty(t.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.Zn.reject(t),this.aborted||(p("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new hr(e)},t}(),hr=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(p("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),dr(n)},t.prototype.add=function(t){return p("SimpleDb","ADD",this.store.name,t,t),dr(this.store.add(t))},t.prototype.get=function(t){var e=this;return dr(this.store.get(t)).next(function(n){return void 0===n&&(n=null),p("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return p("SimpleDb","DELETE",this.store.name,t),dr(this.store.delete(t))},t.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),dr(this.store.count())},t.prototype.ts=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.es(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.ns=function(t,e){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.ss=!1;var r=this.cursor(n);return this.es(r,function(t,e,n){return n.delete()})},t.prototype.rs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.es(r,e)},t.prototype.os=function(t){var e=this.cursor({});return new sr(function(n,r){e.onerror=function(t){var e=vr(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next(function(t){t?r.continue():n()}):n()}})},t.prototype.es=function(t,e){var n=[];return new sr(function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new ur(i),s=e(i.primaryKey,i.value,o);if(s instanceof sr){var a=s.catch(function(t){return o.done(),sr.reject(t)});n.push(a)}o.Sn?r():null===o.Jn?i.continue():i.continue(o.Jn)}else r()}}).next(function(){return sr.$n(n)})},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.ss?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function dr(t){return new sr(function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=vr(t.target.error);n(e)}})}var pr=!1;function vr(t){var e=ar.On(s.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new f("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return pr||(pr=!0,setTimeout(function(){throw r},0)),r}}return t}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function gr(){return"undefined"!=typeof window?window:null}function mr(){return"undefined"!=typeof document?document:null}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var yr=function(){function t(t,e,n,r,i){this.cs=t,this.dn=e,this.us=n,this.op=r,this.hs=i,this.ls=new ir,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch(function(t){})}return t._s=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.fs=setTimeout(function(){return e.ds()},t)},t.prototype.pn=function(){return this.ds()},t.prototype.cancel=function(t){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new f(c.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.ds=function(){var t=this;this.cs.ws(function(){return null!==t.fs?(t.clearTimeout(),t.op().then(function(e){return t.ls.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},t}(),br=function(){function t(){var t=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new or(this,"async_queue_retry"),this.Vs=function(){var e=mr();e&&p("AsyncQueue","Visibility state changed to  ",e.visibilityState),t.ys.Vn()};var e=mr();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(t.prototype,"ps",{get:function(){return this.Is},enumerable:!1,configurable:!0}),t.prototype.ws=function(t){this.enqueue(t)},t.prototype.bs=function(t){this.vs(),this.Ss(t)},t.prototype.Ds=function(){if(!this.Is){this.Is=!0;var t=mr();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Vs)}},t.prototype.enqueue=function(t){return this.vs(),this.Is?new Promise(function(t){}):this.Ss(t)},t.prototype.Cs=function(t){var e=this;this.ws(function(){return e.Es.push(t),e.Ns()})},t.prototype.Ns=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){switch(n.label){case 0:if(0===this.Es.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return n.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!cr(t=n.sent()))throw t;return p("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.Es.length>0&&this.ys.gn(function(){return e.Ns()}),n.label=5;case 5:return[2]}})})},t.prototype.Ss=function(t){var e=this,n=this.Ts.then(function(){return e.gs=!0,t().catch(function(t){throw e.Rs=t,e.gs=!1,v("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t}).then(function(t){return e.gs=!1,t})});return this.Ts=n,n},t.prototype.yn=function(t,e,n){var r=this;this.vs(),this.Ps.indexOf(t)>-1&&(e=0);var i=yr._s(this,t,e,n,function(t){return r.Fs(t)});return this.As.push(i),i},t.prototype.vs=function(){this.Rs&&y()},t.prototype.xs=function(){},t.prototype.$s=function(){return r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:return[4,t=this.Ts];case 1:e.sent(),e.label=2;case 2:if(t!==this.Ts)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.ks=function(t){for(var e=0,n=this.As;e<n.length;e++)if(n[e].dn===t)return!0;return!1},t.prototype.Ms=function(t){var e=this;return this.$s().then(function(){e.As.sort(function(t,e){return t.us-e.us});for(var n=0,r=e.As;n<r.length;n++){var i=r[n];if(i.pn(),"all"!==t&&i.dn===t)break}return e.$s()})},t.prototype.Os=function(t){this.Ps.push(t)},t.prototype.Fs=function(t){var e=this.As.indexOf(t);this.As.splice(e,1)},t}();function wr(t,e){if(v("AsyncQueue",e+": "+t),cr(t))return new f(c.UNAVAILABLE,e+": "+t);throw t}var Er=function(){this.Ls=void 0,this.listeners=[]};function _r(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u,l;return r.__generator(this,function(r){switch(r.label){case 0:if(n=w(t),i=e.query,o=!1,(s=n.Bs.get(i))||(o=!0,s=new Er),!o)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),a=s,[4,n.Us(i)];case 2:return a.Ls=r.sent(),[3,4];case 3:return u=r.sent(),l=wr(u,"Initialization of query '"+zn(e.query)+"' failed"),[2,void e.onError(l)];case 4:return n.Bs.set(i,s),s.listeners.push(e),e.Qs(n.onlineState),s.Ls&&e.Ws(s.Ls)&&Tr(n),[2]}})})}function xr(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a;return r.__generator(this,function(r){return n=w(t),i=e.query,o=!1,(s=n.Bs.get(i))&&(a=s.listeners.indexOf(e))>=0&&(s.listeners.splice(a,1),o=0===s.listeners.length),o?[2,(n.Bs.delete(i),n.js(i))]:[2]})})}function Tr(t){t.qs.forEach(function(t){t.next()})}var Sr=function(){function t(t,e,n){this.query=t,this.Ks=e,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Ws=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new Ft(t.query,t.docs,t.Qt,e,t.Wt,t.fromCache,t.jt,!0)}var o=!1;return this.Gs?this.Hs(t)&&(this.Ks.next(t),o=!0):this.Ys(t,this.onlineState)&&(this.Js(t),o=!0),this.zs=t,o},t.prototype.onError=function(t){this.Ks.error(t)},t.prototype.Qs=function(t){this.onlineState=t;var e=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,t)&&(this.Js(this.zs),e=!0),e},t.prototype.Ys=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.Xs&&n||t.docs.m()&&"Offline"!==e)},t.prototype.Hs=function(t){if(t.docChanges.length>0)return!0;var e=this.zs&&this.zs.hasPendingWrites!==t.hasPendingWrites;return!(!t.jt&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.Js=function(t){t=Ft.Gt(t.query,t.docs,t.Wt,t.fromCache),this.Gs=!0,this.Ks.next(t)},t}(),Cr=function(){function t(t){this.uid=t}return t.prototype.Zs=function(){return null!=this.uid},t.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */Cr.UNAUTHENTICATED=new Cr(null),Cr.ei=new Cr("google-credentials-uid"),Cr.ni=new Cr("first-party-uid");
/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var Ir=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.si=function(t){return n.ii(t)},this.ri=function(t){return e.oi(t)})}return t.prototype.ii=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.ri&&this.ri(t),t},t}();function Ar(t,e){return"firestore_clients_"+t+"_"+e}function Or(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.Zs()&&(r+="_"+e.uid),r}function Nr(t,e){return"firestore_targets_"+t+"_"+e}Ir.ai=-1;var kr=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.ci=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),s=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(s=new f(i.error.code,i.error.message)),o?new t(e,n,i.state,s):(v("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.ui=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Lr=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.ci=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new f(r.error.code,r.error.message)),i?new t(e,r.state,o):(v("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.ui=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Dr=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.ci=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Pt(),s=0;i&&s<r.activeTargetIds.length;++s)i=ct(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new t(e,o):(v("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Mr=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.ci=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(v("SharedClientState","Failed to parse online state: "+e),null)},t}(),Pr=function(){function t(){this.activeTargetIds=Pt()}return t.prototype.hi=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.li=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.ui=function(){var t={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Rr=function(){function t(t,e,n,r,i){this.window=t,this.fn=e,this.persistenceKey=n,this._i=r,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new Et(K),this.Ei=!1,this.Ii=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ai=Ar(this.persistenceKey,this._i),this.Ri=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Ti=this.Ti.ot(this._i,new Pr),this.gi=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Vi=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.wi)}return t.Ln=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e,n,i,o,s,a,u,l,c,f,h=this;return r.__generator(this,function(r){switch(r.label){case 0:return[4,this.fi.pi()];case 1:for(t=r.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this._i&&(o=this.getItem(Ar(this.persistenceKey,i)))&&(s=Dr.ci(i,o))&&(this.Ti=this.Ti.ot(s.clientId,s));for(this.bi(),(a=this.storage.getItem(this.Vi))&&(u=this.vi(a))&&this.Si(u),l=0,c=this.Ii;l<c.length;l++)f=c[l],this.mi(f);return this.Ii=[],this.window.addEventListener("unload",function(){return h.Di()}),this.Ei=!0,[2]}})})},t.prototype.oi=function(t){this.setItem(this.Ri,JSON.stringify(t))},t.prototype.Ci=function(){return this.Ni(this.Ti)},t.prototype.Fi=function(t){var e=!1;return this.Ti.forEach(function(n,r){r.activeTargetIds.has(t)&&(e=!0)}),e},t.prototype.xi=function(t){this.$i(t,"pending")},t.prototype.ki=function(t,e,n){this.$i(t,e,n),this.Mi(t)},t.prototype.Oi=function(t){var e="not-current";if(this.Fi(t)){var n=this.storage.getItem(Nr(this.persistenceKey,t));if(n){var r=Lr.ci(t,n);r&&(e=r.state)}}return this.Li.hi(t),this.bi(),e},t.prototype.Bi=function(t){this.Li.li(t),this.bi()},t.prototype.qi=function(t){return this.Li.activeTargetIds.has(t)},t.prototype.Ui=function(t){this.removeItem(Nr(this.persistenceKey,t))},t.prototype.Qi=function(t,e,n){this.Wi(t,e,n)},t.prototype.ji=function(t,e,n){var r=this;e.forEach(function(t){r.Mi(t)}),this.currentUser=t,n.forEach(function(t){r.xi(t)})},t.prototype.Ki=function(t){this.Gi(t)},t.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return p("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){p("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){p("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.mi=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(p("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Ai)return void v("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs(function(){return r.__awaiter(e,void 0,void 0,function(){var t,e,i,o,s,a;return r.__generator(this,function(r){if(this.Ei){if(null!==n.key)if(this.gi.test(n.key)){if(null==n.newValue)return t=this.zi(n.key),[2,this.Hi(t,null)];if(e=this.Yi(n.key,n.newValue))return[2,this.Hi(e.clientId,e)]}else if(this.Pi.test(n.key)){if(null!==n.newValue&&(i=this.Ji(n.key,n.newValue)))return[2,this.Xi(i)]}else if(this.yi.test(n.key)){if(null!==n.newValue&&(o=this.Zi(n.key,n.newValue)))return[2,this.tr(o)]}else if(n.key===this.Vi){if(null!==n.newValue&&(s=this.vi(n.newValue)))return[2,this.Si(s)]}else n.key===this.Ri&&(a=function(t){var e=Ir.ai;if(null!=t)try{var n=JSON.parse(t);b("number"==typeof n),e=n}catch(t){v("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==Ir.ai&&this.si(a)}else this.Ii.push(n);return[2]})})})}},Object.defineProperty(t.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),t.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},t.prototype.$i=function(t,e,n){var r=new kr(this.currentUser,t,e,n),i=Or(this.persistenceKey,this.currentUser,t);this.setItem(i,r.ui())},t.prototype.Mi=function(t){var e=Or(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Gi=function(t){var e={clientId:this._i,onlineState:t};this.storage.setItem(this.Vi,JSON.stringify(e))},t.prototype.Wi=function(t,e,n){var r=Nr(this.persistenceKey,t),i=new Lr(t,e,n);this.setItem(r,i.ui())},t.prototype.zi=function(t){var e=this.gi.exec(t);return e?e[1]:null},t.prototype.Yi=function(t,e){var n=this.zi(t);return Dr.ci(n,e)},t.prototype.Ji=function(t,e){var n=this.Pi.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return kr.ci(new Cr(i),r,e)},t.prototype.Zi=function(t,e){var n=this.yi.exec(t),r=Number(n[1]);return Lr.ci(r,e)},t.prototype.vi=function(t){return Mr.ci(t)},t.prototype.Xi=function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.fi.er(t.batchId,t.state,t.error)]:(p("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])})})},t.prototype.tr=function(t){return this.fi.nr(t.targetId,t.state,t.error)},t.prototype.Hi=function(t,e){var n=this,r=e?this.Ti.ot(t,e):this.Ti.remove(t),i=this.Ni(this.Ti),o=this.Ni(r),s=[],a=[];return o.forEach(function(t){i.has(t)||s.push(t)}),i.forEach(function(t){o.has(t)||a.push(t)}),this.fi.sr(s,a).then(function(){n.Ti=r})},t.prototype.Si=function(t){this.Ti.get(t.clientId)&&this.di(t.onlineState)},t.prototype.Ni=function(t){var e=Pt();return t.forEach(function(t,n){e=e.kt(n.activeTargetIds)}),e},t}(),jr=function(){function t(){this.ir=new Pr,this.rr={},this.di=null,this.si=null}return t.prototype.xi=function(t){},t.prototype.ki=function(t,e,n){},t.prototype.Oi=function(t){return this.ir.hi(t),this.rr[t]||"not-current"},t.prototype.Qi=function(t,e,n){this.rr[t]=e},t.prototype.Bi=function(t){this.ir.li(t)},t.prototype.qi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.Ui=function(t){delete this.rr[t]},t.prototype.Ci=function(){return this.ir.activeTargetIds},t.prototype.Fi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.start=function(){return this.ir=new Pr,Promise.resolve()},t.prototype.ji=function(t,e,n){},t.prototype.Ki=function(t){},t.prototype.Di=function(){},t.prototype.oi=function(t){},t}(),Fr=function(){function t(t,e,n,r){this.batchId=t,this.ar=e,this.baseMutations=n,this.mutations=r}return t.prototype.cr=function(t,e,n){for(var r=n.ur,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=rn(o,e,r[i]))}return e},t.prototype.hr=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=on(i,e,e,this.ar))}for(var o=e,s=0,a=this.mutations;s<a.length;s++){var u=a[s];u.key.isEqual(t)&&(e=on(u,e,o,this.ar))}return e},t.prototype.lr=function(t){var e=this,n=t;return this.mutations.forEach(function(r){var i=e.hr(r.key,t.get(r.key));i&&(n=n.ot(r.key,i))}),n},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},Dt())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Q(this.mutations,t.mutations,function(t,e){return an(t,e)})&&Q(this.baseMutations,t.baseMutations,function(t,e){return an(t,e)})},t}(),zr=function(){function t(t,e,n,r){this.batch=t,this._r=e,this.ur=n,this.dr=r}return t.from=function(e,n,r){b(e.mutations.length===r.length);for(var i=kt,o=e.mutations,s=0;s<o.length;s++)i=i.ot(o[s].key,r[s].version);return new t(e,n,r,i)},t}(),$r=function(){function t(){this.wr=new ot(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),this.mr=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Tr},set:function(t){this.Tr=t},enumerable:!1,configurable:!0}),t.prototype.Er=function(t,e){this.Ir(),this.readTime=e,this.wr.set(t.key,t)},t.prototype.Ar=function(t,e){this.Ir(),e&&(this.readTime=e),this.wr.set(t,null)},t.prototype.Rr=function(t,e){this.Ir();var n=this.wr.get(e);return void 0!==n?sr.resolve(n):this.gr(t,e)},t.prototype.getEntries=function(t,e){return this.Pr(t,e)},t.prototype.apply=function(t){return this.Ir(),this.mr=!0,this.yr(t)},t.prototype.Ir=function(){},t}(),Vr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Br=function(){function t(){this.Vr=[]}return t.prototype.pr=function(t){this.Vr.push(t)},t.prototype.br=function(){this.Vr.forEach(function(t){return t()})},t}(),qr=function(){function t(t,e,n){this.vr=t,this.Sr=e,this.Dr=n}return t.prototype.Cr=function(t,e){var n=this;return this.Sr.Nr(t,e).next(function(r){return n.Fr(t,e,r)})},t.prototype.Fr=function(t,e,n){return this.vr.Rr(t,e).next(function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].hr(e,t);return t})},t.prototype.$r=function(t,e,n){var r=At();return e.forEach(function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].hr(t,e);r=r.ot(t,e)}),r},t.prototype.kr=function(t,e){var n=this;return this.vr.getEntries(t,e).next(function(e){return n.Mr(t,e)})},t.prototype.Mr=function(t,e){var n=this;return this.Sr.Or(t,e).next(function(r){var i=n.$r(t,e,r),o=It();return i.forEach(function(t,e){e||(e=new _n(t,at.min())),o=o.ot(t,e)}),o})},t.prototype.Lr=function(t,e,n){return function(t){return A.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.Br(t,e.path):kn(e)?this.qr(t,e,n):this.Ur(t,e,n)},t.prototype.Br=function(t,e){return this.Cr(t,new A(e)).next(function(t){var e=Nt();return t instanceof En&&(e=e.ot(t.key,t)),e})},t.prototype.qr=function(t,e,n){var r=this,i=e.collectionGroup,o=Nt();return this.Dr.Qr(t,i).next(function(s){return sr.forEach(s,function(s){var a=function(t,e){return new Tn(e,null,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(e,s.child(i));return r.Ur(t,a,n).next(function(t){t.forEach(function(t,e){o=o.ot(t,e)})})}).next(function(){return o})})},t.prototype.Ur=function(t,e,n){var r,i,o=this;return this.vr.Lr(t,e,n).next(function(n){return r=n,o.Sr.Wr(t,e)}).next(function(e){return i=e,o.jr(t,i,r).next(function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],s=0,a=o.mutations;s<a.length;s++){var u=a[s],l=u.key,c=r.get(l),f=on(u,c,c,o.ar);r=f instanceof En?r.ot(l,f):r.remove(l)}})}).next(function(){return r.forEach(function(t,n){$n(e,n)||(r=r.remove(t))}),r})},t.prototype.jr=function(t,e,n){for(var r=Dt(),i=0,o=e;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var u=a[s];u instanceof cn&&null===n.get(u.key)&&(r=r.add(u.key))}var l=n;return this.vr.getEntries(t,r).next(function(t){return t.forEach(function(t,e){null!==e&&e instanceof En&&(l=l.ot(t,e))}),l})},t}(),Ur=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.Kr=n,this.Gr=r}return t.zr=function(e,n){for(var r=Dt(),i=Dt(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new t(e,n.fromCache,r,i)},t}();
/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Wr(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=K(n,i);return 0===s?K(r,o):s}var Hr=function(){function t(t){this.Hr=t,this.buffer=new Tt(Wr),this.Yr=0}return t.prototype.Jr=function(){return++this.Yr},t.prototype.Xr=function(t){var e=[t,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();Wr(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),Gr={Zr:!1,eo:0,no:0,so:0},Xr=function(){function t(t,e,n){this.io=t,this.ro=e,this.oo=n}return t.ao=function(e){return new t(e,t.co,t.uo)},t}();Xr.ho=-1,Xr.lo=1048576,Xr._o=41943040,Xr.co=10,Xr.uo=1e3,Xr.fo=new Xr(Xr._o,Xr.co,Xr.uo),Xr.do=new Xr(Xr.ho,0,0);var Yr=function(){function t(t,e){this.wo=t,this.cs=e,this.mo=!1,this.To=null}return t.prototype.start=function(t){this.wo.params.io!==Xr.ho&&this.Eo(t)},t.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(t.prototype,"Ei",{get:function(){return null!==this.To},enumerable:!1,configurable:!0}),t.prototype.Eo=function(t){var e=this,n=this.mo?3e5:6e4;p("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.To=this.cs.yn("lru_garbage_collection",n,function(){return r.__awaiter(e,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:this.To=null,this.mo=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Io(this.wo)];case 2:return n.sent(),[3,7];case 3:return cr(e=n.sent())?(p("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,co(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Eo(t)];case 8:return n.sent(),[2]}})})})},t}(),Kr=function(){function t(t,e){this.Ao=t,this.params=e}return t.prototype.Ro=function(t,e){return this.Ao.Po(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.yo=function(t,e){var n=this;if(0===e)return sr.resolve(Ir.ai);var r=new Hr(e);return this.Ao.Ce(t,function(t){return r.Xr(t.sequenceNumber)}).next(function(){return n.Ao.Vo(t,function(t){return r.Xr(t)})}).next(function(){return r.maxValue})},t.prototype.po=function(t,e,n){return this.Ao.po(t,e,n)},t.prototype.bo=function(t,e){return this.Ao.bo(t,e)},t.prototype.vo=function(t,e){var n=this;return this.params.io===Xr.ho?(p("LruGarbageCollector","Garbage collection skipped; disabled"),sr.resolve(Gr)):this.So(t).next(function(r){return r<n.params.io?(p("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.io),Gr):n.Do(t,e)})},t.prototype.So=function(t){return this.Ao.So(t)},t.prototype.Do=function(t,e){var n,r,i,s,a,u,l,c=this,f=Date.now();return this.Ro(t,this.params.ro).next(function(e){return e>c.params.oo?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.oo+" from "+e),r=c.params.oo):r=e,s=Date.now(),c.yo(t,r)}).next(function(r){return n=r,a=Date.now(),c.po(t,n,e)}).next(function(e){return i=e,u=Date.now(),c.bo(t,n)}).next(function(t){return l=Date.now(),d()<=o.LogLevel.DEBUG&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(s-f)+"ms\n\tDetermined least recently used "+r+" in "+(a-s)+"ms\n\tRemoved "+i+" targets in "+(u-a)+"ms\n\tRemoved "+t+" documents in "+(l-u)+"ms\nTotal Duration: "+(l-f)+"ms"),sr.resolve({Zr:!0,eo:r,no:i,so:t})})},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Qr(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Zr(e)),e=Jr(t.get(n),e);return Zr(e)}function Jr(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="";break;case"":n+="";break;default:n+=o}}return n}function Zr(t){return t+""}function ti(t){var e=t.length;if(b(e>=2),2===e)return b(""===t.charAt(0)&&""===t.charAt(1)),S.P();for(var n=e-2,r=[],i="",o=0;o<e;){var s=t.indexOf("",o);switch((s<0||s>n)&&y(),t.charAt(s+1)){case"":var a=t.substring(o,s),u=void 0;0===i.length?u=a:(u=i+=a,i=""),r.push(u);break;case"":i+=t.substring(o,s),i+="\0";break;case"":i+=t.substring(o,s+1);break;default:y()}o=s+2}return new S(r)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ei=function(t){this.Co=t};function ni(t,e){if(e.document)return function(t,e,n){var r=Te(t,e.name),i=we(e.updateTime),o=new mn({mapValue:{fields:e.fields}});return new En(r,i,o,{hasCommittedMutations:!!n})}(t.Co,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=A.$(e.noDocument.path),r=ai(e.noDocument.readTime);return new _n(n,r,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var i=A.$(e.unknownDocument.path),o=ai(e.unknownDocument.version);return new xn(i,o)}return y()}function ri(t,e,n){var r=ii(n),i=e.key.path.h().A();if(e instanceof En){var o=function(t,e){return{name:xe(t,e.key),fields:e.rn().mapValue.fields,updateTime:ye(t,e.version.Z())}}(t.Co,e),s=e.hasCommittedMutations;return new Di(null,null,o,s,r,i)}if(e instanceof _n){var a=e.key.path.A(),u=si(e.version),l=e.hasCommittedMutations;return new Di(null,new ki(a,u),null,l,r,i)}if(e instanceof xn){var c=e.key.path.A(),f=si(e.version);return new Di(new Li(c,f),null,null,!0,r,i)}return y()}function ii(t){var e=t.Z();return[e.seconds,e.nanoseconds]}function oi(t){var e=new st(t[0],t[1]);return at.J(e)}function si(t){var e=t.Z();return new Ci(e.seconds,e.nanoseconds)}function ai(t){var e=new st(t.seconds,t.nanoseconds);return at.J(e)}function ui(t,e){var n=(e.baseMutations||[]).map(function(e){return ke(t.Co,e)}),r=e.mutations.map(function(e){return ke(t.Co,e)}),i=st.fromMillis(e.localWriteTimeMs);return new Fr(e.batchId,i,n,r)}function li(t){var e,n,r=ai(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?ai(t.lastLimboFreeSnapshotVersion):at.min();return void 0!==t.query.documents?(b(1===(n=t.query).documents.length),e=Dn(Cn(Ce(n.documents[0])))):e=Me(t.query),new yt(e,t.targetId,0,t.lastListenSequenceNumber,r,i,Z.fromBase64String(t.resumeToken))}function ci(t,e){var n,r=si(e.nt),i=si(e.lastLimboFreeSnapshotVersion);n=vt(e.target)?Le(t.Co,e.target):De(t.Co,e.target);var o=e.resumeToken.toBase64();return new Pi(e.targetId,dt(e.target),r,o,e.sequenceNumber,i,n)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var fi=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.Dr=n,this.No=r,this.Fo={}}return t.xo=function(e,n,r,i){return b(""!==e.uid),new t(e.Zs()?e.uid:"",n,r,i)},t.prototype.$o=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return pi(t).rs({index:Oi.userMutationsIndex,range:n},function(t,n,r){e=!1,r.done()}).next(function(){return e})},t.prototype.ko=function(t,e,n,r){var i=this,o=vi(t),s=pi(t);return s.add({}).next(function(a){b("number"==typeof a);for(var u=new Fr(a,e,n,r),l=function(t,e,n){var r=n.baseMutations.map(function(e){return Ne(t.Co,e)}),i=n.mutations.map(function(e){return Ne(t.Co,e)});return new Oi(e,n.batchId,n.ar.toMillis(),r,i)}(i.serializer,i.userId,u),c=[],f=new Tt(function(t,e){return K(t.R(),e.R())}),h=0,d=r;h<d.length;h++){var p=d[h],v=Ni.key(i.userId,p.key.path,a);f=f.add(p.key.path.h()),c.push(s.put(l)),c.push(o.put(v,Ni.PLACEHOLDER))}return f.forEach(function(e){c.push(i.Dr.Mo(t,e))}),t.pr(function(){i.Fo[a]=u.keys()}),sr.$n(c).next(function(){return u})})},t.prototype.Oo=function(t,e){var n=this;return pi(t).get(e).next(function(t){return t?(b(t.userId===n.userId),ui(n.serializer,t)):null})},t.prototype.Lo=function(t,e){var n=this;return this.Fo[e]?sr.resolve(this.Fo[e]):this.Oo(t,e).next(function(t){if(t){var r=t.keys();return n.Fo[e]=r,r}return null})},t.prototype.Bo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return pi(t).rs({index:Oi.userMutationsIndex,range:i},function(t,e,i){e.userId===n.userId&&(b(e.batchId>=r),o=ui(n.serializer,e)),i.done()}).next(function(){return o})},t.prototype.qo=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return pi(t).rs({index:Oi.userMutationsIndex,range:e,reverse:!0},function(t,e,r){n=e.batchId,r.done()}).next(function(){return n})},t.prototype.Uo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return pi(t).ts(Oi.userMutationsIndex,n).next(function(t){return t.map(function(t){return ui(e.serializer,t)})})},t.prototype.Nr=function(t,e){var n=this,r=Ni.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return vi(t).rs({range:i},function(r,i,s){var a=r[0],u=r[1],l=r[2],c=ti(u);if(a===n.userId&&e.path.isEqual(c))return pi(t).get(l).next(function(t){if(!t)throw y();b(t.userId===n.userId),o.push(ui(n.serializer,t))});s.done()}).next(function(){return o})},t.prototype.Or=function(t,e){var n=this,r=new Tt(K),i=[];return e.forEach(function(e){var o=Ni.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=vi(t).rs({range:s},function(t,i,o){var s=t[0],a=t[1],u=t[2],l=ti(a);s===n.userId&&e.path.isEqual(l)?r=r.add(u):o.done()});i.push(a)}),sr.$n(i).next(function(){return n.Qo(t,r)})},t.prototype.Wr=function(t,e){var n=this,r=e.path,i=r.length+1,o=Ni.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new Tt(K);return vi(t).rs({range:s},function(t,e,o){var s=t[0],u=t[1],l=t[2],c=ti(u);s===n.userId&&r.T(c)?c.length===i&&(a=a.add(l)):o.done()}).next(function(){return n.Qo(t,a)})},t.prototype.Qo=function(t,e){var n=this,r=[],i=[];return e.forEach(function(e){i.push(pi(t).get(e).next(function(t){if(null===t)throw y();b(t.userId===n.userId),r.push(ui(n.serializer,t))}))}),sr.$n(i).next(function(){return r})},t.prototype.Wo=function(t,e){var n=this;return di(t.jo,this.userId,e).next(function(r){return t.pr(function(){n.Ko(e.batchId)}),sr.forEach(r,function(e){return n.No.Go(t,e)})})},t.prototype.Ko=function(t){delete this.Fo[t]},t.prototype.zo=function(t){var e=this;return this.$o(t).next(function(n){if(!n)return sr.resolve();var r=IDBKeyRange.lowerBound(Ni.prefixForUser(e.userId)),i=[];return vi(t).rs({range:r},function(t,n,r){if(t[0]===e.userId){var o=ti(t[1]);i.push(o)}else r.done()}).next(function(){b(0===i.length)})})},t.prototype.Ho=function(t,e){return hi(t,this.userId,e)},t.prototype.Yo=function(t){var e=this;return gi(t).get(this.userId).next(function(t){return t||new Ai(e.userId,-1,"")})},t}();function hi(t,e,n){var r=Ni.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return vi(t).rs({range:o,ss:!0},function(t,n,r){var o=t[0],a=t[1];t[2],o===e&&a===i&&(s=!0),r.done()}).next(function(){return s})}function di(t,e,n){var r=t.store(Oi.store),i=t.store(Ni.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,u=r.rs({range:s},function(t,e,n){return a++,n.delete()});o.push(u.next(function(){b(1===a)}));for(var l=[],c=0,f=n.mutations;c<f.length;c++){var h=f[c],d=Ni.key(e,h.key.path,n.batchId);o.push(i.delete(d)),l.push(h.key)}return sr.$n(o).next(function(){return l})}function pi(t){return Qi.Qn(t,Oi.store)}function vi(t){return Qi.Qn(t,Ni.store)}function gi(t){return Qi.Qn(t,Ai.store)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var mi=function(){function t(t,e){this.serializer=t,this.Dr=e}return t.prototype.Er=function(t,e,n){return wi(t).put(Ei(e),n)},t.prototype.Ar=function(t,e){var n=wi(t),r=Ei(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next(function(r){return r.byteSize+=e,n.Jo(t,r)})},t.prototype.Rr=function(t,e){var n=this;return wi(t).get(Ei(e)).next(function(t){return n.Xo(t)})},t.prototype.Zo=function(t,e){var n=this;return wi(t).get(Ei(e)).next(function(t){var e=n.Xo(t);return e?{ta:e,size:_i(t)}:null})},t.prototype.getEntries=function(t,e){var n=this,r=At();return this.ea(t,e,function(t,e){var i=n.Xo(e);r=r.ot(t,i)}).next(function(){return r})},t.prototype.na=function(t,e){var n=this,r=At(),i=new Et(A.i);return this.ea(t,e,function(t,e){var o=n.Xo(e);o?(r=r.ot(t,o),i=i.ot(t,_i(e))):(r=r.ot(t,null),i=i.ot(t,0))}).next(function(){return{sa:r,ia:i}})},t.prototype.ea=function(t,e,n){if(e.m())return sr.resolve();var r=IDBKeyRange.bound(e.first().path.A(),e.last().path.A()),i=e._t(),o=i.It();return wi(t).rs({range:r},function(t,e,r){for(var s=A.$(t);o&&A.i(o,s)<0;)n(o,null),o=i.It();o&&o.isEqual(s)&&(n(o,e),o=i.At()?i.It():null),o?r.Xn(o.path.A()):r.done()}).next(function(){for(;o;)n(o,null),o=i.At()?i.It():null})},t.prototype.Lr=function(t,e,n){var r=this,i=Nt(),o=e.path.length+1,s={};if(n.isEqual(at.min())){var a=e.path.A();s.range=IDBKeyRange.lowerBound(a)}else{var u=e.path.A(),l=ii(n);s.range=IDBKeyRange.lowerBound([u,l],!0),s.index=Di.collectionReadTimeIndex}return wi(t).rs(s,function(t,n,s){if(t.length===o){var a=ni(r.serializer,n);e.path.T(a.key.path)?a instanceof En&&$n(e,a)&&(i=i.ot(a.key,a)):s.done()}}).next(function(){return i})},t.prototype.ra=function(t){return new yi(this,!!t&&t.oa)},t.prototype.aa=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return bi(t).get(Mi.key).next(function(t){return b(!!t),t})},t.prototype.Jo=function(t,e){return bi(t).put(Mi.key,e)},t.prototype.Xo=function(t){if(t){var e=ni(this.serializer,t);return e instanceof _n&&e.version.isEqual(at.min())?null:e}return null},t}(),yi=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ca=e,r.oa=n,r.ua=new ot(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),r}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[],r=0,i=new Tt(function(t,e){return K(t.R(),e.R())});return this.wr.forEach(function(o,s){var a=e.ua.get(o);if(s){var u=ri(e.ca.serializer,s,e.readTime);i=i.add(o.path.h());var l=_i(u);r+=l-a,n.push(e.ca.Er(t,o,u))}else if(r-=a,e.oa){var c=ri(e.ca.serializer,new _n(o,at.min()),e.readTime);n.push(e.ca.Er(t,o,c))}else n.push(e.ca.Ar(t,o))}),i.forEach(function(r){n.push(e.ca.Dr.Mo(t,r))}),n.push(this.ca.updateMetadata(t,r)),sr.$n(n)},e.prototype.gr=function(t,e){var n=this;return this.ca.Zo(t,e).next(function(t){return null===t?(n.ua.set(e,0),null):(n.ua.set(e,t.size),t.ta)})},e.prototype.Pr=function(t,e){var n=this;return this.ca.na(t,e).next(function(t){var e=t.sa;return t.ia.forEach(function(t,e){n.ua.set(t,e)}),e})},e}($r);function bi(t){return Qi.Qn(t,Mi.store)}function wi(t){return Qi.Qn(t,Di.store)}function Ei(t){return t.path.A()}function _i(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw y();e=t.noDocument}return JSON.stringify(e).length}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var xi=function(){function t(){this.ha=new Ti}return t.prototype.Mo=function(t,e){return this.ha.add(e),sr.resolve()},t.prototype.Qr=function(t,e){return sr.resolve(this.ha.getEntries(e))},t}(),Ti=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t._(),n=t.h(),r=this.index[e]||new Tt(S.i),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t._(),n=t.h(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Tt(S.i)).A()},t}(),Si=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;b(n<r&&n>=0&&r<=10);var o=new fr("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Ii.store)}(t),function(t){t.createObjectStore(Ai.store,{keyPath:Ai.keyPath}),t.createObjectStore(Oi.store,{keyPath:Oi.keyPath,autoIncrement:!0}).createIndex(Oi.userMutationsIndex,Oi.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Ni.store)}(t),zi(t),function(t){t.createObjectStore(Di.store)}(t));var s=sr.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Ri.store),t.deleteObjectStore(Pi.store),t.deleteObjectStore(ji.store)}(t),zi(t)),s=s.next(function(){return t=o.store(ji.store),e=new ji(0,0,at.min().Z(),0),t.put(ji.key,e);var t,e})),n<4&&r>=4&&(0!==n&&(s=s.next(function(){return function(t,e){return e.store(Oi.store).ts().next(function(n){t.deleteObjectStore(Oi.store),t.createObjectStore(Oi.store,{keyPath:Oi.keyPath,autoIncrement:!0}).createIndex(Oi.userMutationsIndex,Oi.userMutationsKeyPath,{unique:!0});var r=e.store(Oi.store),i=n.map(function(t){return r.put(t)});return sr.$n(i)})}(t,o)})),s=s.next(function(){!function(t){t.createObjectStore($i.store,{keyPath:$i.keyPath})}(t)})),n<5&&r>=5&&(s=s.next(function(){return i.removeAcknowledgedMutations(o)})),n<6&&r>=6&&(s=s.next(function(){return function(t){t.createObjectStore(Mi.store)}(t),i.addDocumentGlobal(o)})),n<7&&r>=7&&(s=s.next(function(){return i.ensureSequenceNumbers(o)})),n<8&&r>=8&&(s=s.next(function(){return i.createCollectionParentIndex(t,o)})),n<9&&r>=9&&(s=s.next(function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Di.store);e.createIndex(Di.readTimeIndex,Di.readTimeIndexPath,{unique:!1}),e.createIndex(Di.collectionReadTimeIndex,Di.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&r>=10&&(s=s.next(function(){return i.rewriteCanonicalIds(o)})),s},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Di.store).rs(function(t,n){e+=_i(n)}).next(function(){var n=new Mi(e);return t.store(Mi.store).put(Mi.key,n)})},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Ai.store),r=t.store(Oi.store);return n.ts().next(function(n){return sr.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.ts(Oi.userMutationsIndex,i).next(function(r){return sr.forEach(r,function(r){b(r.userId===n.userId);var i=ui(e.serializer,r);return di(t,n.userId,i).next(function(){})})})})})},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Ri.store),n=t.store(Di.store);return t.store(ji.store).get(ji.key).next(function(t){var r=[];return n.rs(function(n,i){var o=new S(n),s=[0,Qr(o)];r.push(e.get(s).next(function(n){return n?sr.resolve():function(n){return e.put(new Ri(0,Qr(n),t.highestListenSequenceNumber))}(o)}))}).next(function(){return sr.$n(r)})})},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(Fi.store,{keyPath:Fi.keyPath});var n=e.store(Fi.store),r=new Ti,i=function(t){if(r.add(t)){var e=t._(),i=t.h();return n.put({collectionId:e,parent:Qr(i)})}};return e.store(Di.store).rs({ss:!0},function(t,e){var n=new S(t);return i(n.h())}).next(function(){return e.store(Ni.store).rs({ss:!0},function(t,e){t[0];var n=t[1],r=(t[2],ti(n));return i(r.h())})})},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Pi.store);return n.rs(function(t,r){var i=li(r),o=ci(e.serializer,i);return n.put(o)})},t}(),Ci=function(t,e){this.seconds=t,this.nanoseconds=e},Ii=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Ii.store="owner",Ii.key="owner";var Ai=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Ai.store="mutationQueues",Ai.keyPath="userId";var Oi=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Oi.store="mutations",Oi.keyPath="batchId",Oi.userMutationsIndex="userMutationsIndex",Oi.userMutationsKeyPath=["userId","batchId"];var Ni=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Qr(e)]},t.key=function(t,e,n){return[t,Qr(e),n]},t}();Ni.store="documentMutations",Ni.PLACEHOLDER=new Ni;var ki=function(t,e){this.path=t,this.readTime=e},Li=function(t,e){this.path=t,this.version=e},Di=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Di.store="remoteDocuments",Di.readTimeIndex="readTimeIndex",Di.readTimeIndexPath="readTime",Di.collectionReadTimeIndex="collectionReadTimeIndex",Di.collectionReadTimeIndexPath=["parentPath","readTime"];var Mi=function(t){this.byteSize=t};Mi.store="remoteDocumentGlobal",Mi.key="remoteDocumentGlobalKey";var Pi=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};Pi.store="targets",Pi.keyPath="targetId",Pi.queryTargetsIndexName="queryTargetsIndex",Pi.queryTargetsKeyPath=["canonicalId","targetId"];var Ri=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Ri.store="targetDocuments",Ri.keyPath=["targetId","path"],Ri.documentTargetsIndex="documentTargetsIndex",Ri.documentTargetsKeyPath=["path","targetId"];var ji=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};ji.key="targetGlobalKey",ji.store="targetGlobal";var Fi=function(t,e){this.collectionId=t,this.parent=e};function zi(t){t.createObjectStore(Ri.store,{keyPath:Ri.keyPath}).createIndex(Ri.documentTargetsIndex,Ri.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Pi.store,{keyPath:Pi.keyPath}).createIndex(Pi.queryTargetsIndexName,Pi.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(ji.store)}Fi.store="collectionParents",Fi.keyPath=["collectionId","parent"];var $i=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};$i.store="clientMetadata",$i.keyPath="clientId";var Vi=r.__spreadArrays(r.__spreadArrays(r.__spreadArrays([Ai.store,Oi.store,Ni.store,Di.store,Pi.store,Ii.store,ji.store,Ri.store],[$i.store]),[Mi.store]),[Fi.store]),Bi=function(){function t(){this.la=new Ti}return t.prototype.Mo=function(t,e){var n=this;if(!this.la.has(e)){var r=e._(),i=e.h();t.pr(function(){n.la.add(e)});var o={collectionId:r,parent:Qr(i)};return qi(t).put(o)}return sr.resolve()},t.prototype.Qr=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[J(e),""],!1,!0);return qi(t).ts(r).next(function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(ti(o.parent))}return n})},t}();
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function qi(t){return Qi.Qn(t,Fi.store)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ui=function(){function t(t){this._a=t}return t.prototype.next=function(){return this._a+=2,this._a},t.fa=function(){return new t(0)},t.da=function(){return new t(-1)},t}(),Wi=function(){function t(t,e){this.No=t,this.serializer=e}return t.prototype.wa=function(t){var e=this;return this.ma(t).next(function(n){var r=new Ui(n.highestTargetId);return n.highestTargetId=r.next(),e.Ta(t,n).next(function(){return n.highestTargetId})})},t.prototype.Ea=function(t){return this.ma(t).next(function(t){return at.J(new st(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.Ia=function(t){return this.ma(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.Aa=function(t,e,n){var r=this;return this.ma(t).next(function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.Z()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Ta(t,i)})},t.prototype.Ra=function(t,e){var n=this;return this.ga(t,e).next(function(){return n.ma(t).next(function(r){return r.targetCount+=1,n.Pa(e,r),n.Ta(t,r)})})},t.prototype.ya=function(t,e){return this.ga(t,e)},t.prototype.Va=function(t,e){var n=this;return this.pa(t,e.targetId).next(function(){return Hi(t).delete(e.targetId)}).next(function(){return n.ma(t)}).next(function(e){return b(e.targetCount>0),e.targetCount-=1,n.Ta(t,e)})},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return Hi(t).rs(function(s,a){var u=li(a);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.Va(t,u)))}).next(function(){return sr.$n(o)}).next(function(){return i})},t.prototype.Ce=function(t,e){return Hi(t).rs(function(t,n){var r=li(n);e(r)})},t.prototype.ma=function(t){return Gi(t).get(ji.key).next(function(t){return b(null!==t),t})},t.prototype.Ta=function(t,e){return Gi(t).put(ji.key,e)},t.prototype.ga=function(t,e){return Hi(t).put(ci(this.serializer,e))},t.prototype.Pa=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.ba=function(t){return this.ma(t).next(function(t){return t.targetCount})},t.prototype.va=function(t,e){var n=dt(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return Hi(t).rs({range:r,index:Pi.queryTargetsIndexName},function(t,n,r){var o=li(n);pt(e,o.target)&&(i=o,r.done())}).next(function(){return i})},t.prototype.Sa=function(t,e,n){var r=this,i=[],o=Xi(t);return e.forEach(function(e){var s=Qr(e.path);i.push(o.put(new Ri(n,s))),i.push(r.No.Da(t,n,e))}),sr.$n(i)},t.prototype.Ca=function(t,e,n){var r=this,i=Xi(t);return sr.forEach(e,function(e){var o=Qr(e.path);return sr.$n([i.delete([n,o]),r.No.Na(t,n,e)])})},t.prototype.pa=function(t,e){var n=Xi(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Fa=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=Xi(t),i=Dt();return r.rs({range:n,ss:!0},function(t,e,n){var r=ti(t[1]),o=new A(r);i=i.add(o)}).next(function(){return i})},t.prototype.Ho=function(t,e){var n=Qr(e.path),r=IDBKeyRange.bound([n],[J(n)],!1,!0),i=0;return Xi(t).rs({index:Ri.documentTargetsIndex,ss:!0,range:r},function(t,e,n){var r=t[0];t[1],0!==r&&(i++,n.done())}).next(function(){return i>0})},t.prototype.Ue=function(t,e){return Hi(t).get(e).next(function(t){return t?li(t):null})},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Hi(t){return Qi.Qn(t,Pi.store)}function Gi(t){return Qi.Qn(t,ji.store)}function Xi(t){return Qi.Qn(t,Ri.store)}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Yi="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Ki=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jo=e,r.xa=n,r}return r.__extends(e,t),e}(Br),Qi=function(){function t(e,n,r,i,o,s,a,u,l,h){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.fn=o,this.window=s,this.document=a,this.$a=l,this.ka=h,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(t){return Promise.resolve()},!t.Ln())throw new f(c.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new to(this,i),this.Wa=n+"main",this.serializer=new ei(u),this.ja=new ar(this.Wa,10,new Si(this.serializer)),this.Ka=new Wi(this.No,this.serializer),this.Dr=new Bi,this.vr=function(t,e){return new mi(t,e)}(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===h&&v("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Qn=function(t,e){if(t instanceof Ki)return ar.Qn(t.jo,e);throw y()},t.prototype.start=function(){var t=this;return this.za().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new f(c.FAILED_PRECONDITION,Yi);return t.Ha(),t.Ya(),t.Ja(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.Ka.Ia(e)})}).then(function(e){t.Ma=new Ir(e,t.$a)}).then(function(){t.Oa=!0}).catch(function(e){return t.ja&&t.ja.close(),Promise.reject(e)})},t.prototype.Xa=function(t){var e=this;return this.Qa=function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){return this.Ei?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.Za=function(t){var e=this;this.ja.Kn(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})},t.prototype.tc=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.fn.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.za=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return Zi(e).put(new $i(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.ec(e).next(function(e){e||(t.isPrimary=!1,t.fn.Cs(function(){return t.Qa(!1)}))})}).next(function(){return t.nc(e)}).next(function(n){return t.isPrimary&&!n?t.sc(e).next(function(){return!1}):!!n&&t.ic(e).next(function(){return!0})})}).catch(function(e){if(cr(e))return p("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return p("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.fn.Cs(function(){return t.Qa(e)}),t.isPrimary=e})},t.prototype.ec=function(t){var e=this;return Ji(t).get(Ii.key).next(function(t){return sr.resolve(e.rc(t))})},t.prototype.oc=function(t){return Zi(t).delete(this.clientId)},t.prototype.ac=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o,s=this;return r.__generator(this,function(r){switch(r.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(e){var n=t.Qn(e,$i.store);return n.ts().next(function(t){var e=s.uc(t,18e5),r=t.filter(function(t){return-1===e.indexOf(t)});return sr.forEach(r,function(t){return n.delete(t.clientId)}).next(function(){return r})})}).catch(function(){return[]})]);case 1:if(e=r.sent(),this.Ga)for(n=0,i=e;n<i.length;n++)o=i[n],this.Ga.removeItem(this.hc(o.clientId));r.label=2;case 2:return[2]}})})},t.prototype.Ja=function(){var t=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,function(){return t.za().then(function(){return t.ac()}).then(function(){return t.Ja()})})},t.prototype.rc=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.nc=function(t){var e=this;return this.ka?sr.resolve(!0):Ji(t).get(Ii.key).next(function(n){if(null!==n&&e.cc(n.leaseTimestampMs,5e3)&&!e.lc(n.ownerId)){if(e.rc(n)&&e.networkEnabled)return!0;if(!e.rc(n)){if(!n.allowTabSynchronization)throw new f(c.FAILED_PRECONDITION,Yi);return!1}}return!(!e.networkEnabled||!e.inForeground)||Zi(t).ts().next(function(t){return void 0===e.uc(t,5e3).find(function(t){if(e.clientId!==t.clientId){var n=!e.networkEnabled&&t.networkEnabled,r=!e.inForeground&&t.inForeground,i=e.networkEnabled===t.networkEnabled;if(n||r&&i)return!0}return!1})})}).next(function(t){return e.isPrimary!==t&&p("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.Di=function(){return r.__awaiter(this,void 0,void 0,function(){var t=this;return r.__generator(this,function(e){switch(e.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[Ii.store,$i.store],function(e){var n=new Ki(e,Ir.ai);return t.sc(n).next(function(){return t.oc(n)})})];case 1:return e.sent(),this.ja.close(),this.wc(),[2]}})})},t.prototype.uc=function(t,e){var n=this;return t.filter(function(t){return n.cc(t.updateTimeMs,e)&&!n.lc(t.clientId)})},t.prototype.pi=function(){var t=this;return this.runTransaction("getActiveClients","readonly",function(e){return Zi(e).ts().next(function(e){return t.uc(e,18e5).map(function(t){return t.clientId})})})},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),t.prototype.mc=function(t){return fi.xo(t,this.serializer,this.Dr,this.No)},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.Ic=function(){return this.Dr},t.prototype.runTransaction=function(t,e,n){var r=this;p("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.ja.runTransaction(t,o,Vi,function(o){return i=new Ki(o,r.Ma?r.Ma.next():Ir.ai),"readwrite-primary"===e?r.ec(i).next(function(t){return!!t||r.nc(i)}).next(function(e){if(!e)throw v("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.fn.Cs(function(){return r.Qa(!1)}),new f(c.FAILED_PRECONDITION,Vr);return n(i)}).next(function(t){return r.ic(i).next(function(){return t})}):r.Ac(i).next(function(){return n(i)})}).then(function(t){return i.br(),t})},t.prototype.Ac=function(t){var e=this;return Ji(t).get(Ii.key).next(function(t){if(null!==t&&e.cc(t.leaseTimestampMs,5e3)&&!e.lc(t.ownerId)&&!e.rc(t)&&!(e.ka||e.allowTabSynchronization&&t.allowTabSynchronization))throw new f(c.FAILED_PRECONDITION,Yi)})},t.prototype.ic=function(t){var e=new Ii(this.clientId,this.allowTabSynchronization,Date.now());return Ji(t).put(Ii.key,e)},t.Ln=function(){return ar.Ln()},t.prototype.sc=function(t){var e=this,n=Ji(t);return n.get(Ii.key).next(function(t){return e.rc(t)?(p("IndexedDbPersistence","Releasing primary lease."),n.delete(Ii.key)):sr.resolve()})},t.prototype.cc=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(v("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Ha=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){t.fn.ws(function(){return t.inForeground="visible"===t.document.visibilityState,t.za()})},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},t.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},t.prototype.Ya=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.La=function(){e._c(),e.fn.ws(function(){return e.Di()})},this.window.addEventListener("unload",this.La))},t.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},t.prototype.lc=function(t){var e;try{var n=null!==(null===(e=this.Ga)||void 0===e?void 0:e.getItem(this.hc(t)));return p("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return v("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(t){v("Failed to set zombie client id.",t)}},t.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(t){}},t.prototype.hc=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Ji(t){return Qi.Qn(t,Ii.store)}function Zi(t){return Qi.Qn(t,$i.store)}var to=function(){function t(t,e){this.db=t,this.wo=new Kr(this,e)}return t.prototype.Po=function(t){var e=this.Rc(t);return this.db.Tc().ba(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.Rc=function(t){var e=0;return this.Vo(t,function(t){e++}).next(function(){return e})},t.prototype.Ce=function(t,e){return this.db.Tc().Ce(t,e)},t.prototype.Vo=function(t,e){return this.gc(t,function(t,n){return e(n)})},t.prototype.Da=function(t,e,n){return eo(t,n)},t.prototype.Na=function(t,e,n){return eo(t,n)},t.prototype.po=function(t,e,n){return this.db.Tc().po(t,e,n)},t.prototype.Go=function(t,e){return eo(t,e)},t.prototype.Pc=function(t,e){return function(t,e){var n=!1;return gi(t).os(function(r){return hi(t,r,e).next(function(t){return t&&(n=!0),sr.resolve(!t)})}).next(function(){return n})}(t,e)},t.prototype.bo=function(t,e){var n=this,r=this.db.Ec().ra(),i=[],o=0;return this.gc(t,function(s,a){if(a<=e){var u=n.Pc(t,s).next(function(e){if(!e)return o++,r.Rr(t,s).next(function(){return r.Ar(s),Xi(t).delete([0,Qr(s.path)])})});i.push(u)}}).next(function(){return sr.$n(i)}).next(function(){return r.apply(t)}).next(function(){return o})},t.prototype.removeTarget=function(t,e){var n=e.st(t.xa);return this.db.Tc().ya(t,n)},t.prototype.yc=function(t,e){return eo(t,e)},t.prototype.gc=function(t,e){var n,r=Xi(t),i=Ir.ai;return r.rs({index:Ri.documentTargetsIndex},function(t,r){var o=t[0],s=(t[1],r.path),a=r.sequenceNumber;0===o?(i!==Ir.ai&&e(new A(ti(n)),i),i=a,n=s):i=Ir.ai}).next(function(){i!==Ir.ai&&e(new A(ti(n)),i)})},t.prototype.So=function(t){return this.db.Ec().aa(t)},t}();function eo(t,e){return Xi(t).put(function(t,e){return new Ri(0,Qr(t.path),e)}(e,t.xa))}function no(t,e){var n=t.projectId;return t.j||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var ro=function(){function t(t,e,n){this.persistence=t,this.Vc=e,this.bc=new Et(K),this.vc=new ot(function(t){return dt(t)},pt),this.Sc=at.min(),this.Sr=t.mc(n),this.Dc=t.Ec(),this.Ka=t.Tc(),this.Cc=new qr(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return t.prototype.Io=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.vo(n,e.bc)})},t}();function io(t){var e=w(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.Ka.Ea(t)})}function oo(t,e){var n=w(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var r;return n.Ka.va(t,e).next(function(i){return i?(r=i,sr.resolve(r)):n.Ka.wa(t).next(function(i){return r=new yt(e,i,0,t.xa),n.Ka.Ra(t,r).next(function(){return r})})})}).then(function(t){var r=n.bc.get(t.targetId);return(null===r||t.nt.L(r.nt)>0)&&(n.bc=n.bc.ot(t.targetId,t),n.vc.set(e,t.targetId)),t})}function so(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a;return r.__generator(this,function(r){switch(r.label){case 0:i=w(t),o=i.bc.get(e),s=n?"readwrite":"readwrite-primary",r.label=1;case 1:return r.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",s,function(t){return i.persistence.No.removeTarget(t,o)})];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:if(!cr(a=r.sent()))throw a;return p("LocalStore","Failed to update sequence numbers for target "+e+": "+a),[3,5];case 5:return i.bc=i.bc.remove(e),i.vc.delete(o.target),[2]}})})}function ao(t,e,n){var r=w(t),i=at.min(),o=Dt();return r.persistence.runTransaction("Execute query","readonly",function(t){return function(t,e,n){var r=w(t),i=r.vc.get(n);return void 0!==i?sr.resolve(r.bc.get(i)):r.Ka.va(e,n)}(r,t,Dn(e)).next(function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.Ka.Fa(t,e.targetId).next(function(t){o=t})}).next(function(){return r.Vc.Lr(t,e,n?i:at.min(),n?o:Dt())}).next(function(t){return{documents:t,Fc:o}})})}function uo(t,e){var n=w(t),r=w(n.Ka),i=n.bc.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",function(t){return r.Ue(t,e).next(function(t){return t?t.target:null})})}function lo(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){return[2,(e=w(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return function(t){var e=wi(t),n=at.min();return e.rs({index:Di.readTimeIndex,reverse:!0},function(t,e,r){e.readTime&&(n=oi(e.readTime)),r.done()}).next(function(){return n})}(t)}).then(function(t){e.Sc=t})]})})}function co(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){if(t.code!==c.FAILED_PRECONDITION||t.message!==Vr)throw t;return p("LocalStore","Unexpectedly lost primary lease"),[2]})})}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var fo=function(){function t(){this.$c=new Tt(ho.kc),this.Mc=new Tt(ho.Oc)}return t.prototype.m=function(){return this.$c.m()},t.prototype.Da=function(t,e){var n=new ho(t,e);this.$c=this.$c.add(n),this.Mc=this.Mc.add(n)},t.prototype.Lc=function(t,e){var n=this;t.forEach(function(t){return n.Da(t,e)})},t.prototype.Na=function(t,e){this.Bc(new ho(t,e))},t.prototype.qc=function(t,e){var n=this;t.forEach(function(t){return n.Na(t,e)})},t.prototype.Uc=function(t){var e=this,n=new A(new S([])),r=new ho(n,t),i=new ho(n,t+1),o=[];return this.Mc.Ft([r,i],function(t){e.Bc(t),o.push(t.key)}),o},t.prototype.Qc=function(){var t=this;this.$c.forEach(function(e){return t.Bc(e)})},t.prototype.Bc=function(t){this.$c=this.$c.delete(t),this.Mc=this.Mc.delete(t)},t.prototype.Wc=function(t){var e=new A(new S([])),n=new ho(e,t),r=new ho(e,t+1),i=Dt();return this.Mc.Ft([n,r],function(t){i=i.add(t.key)}),i},t.prototype.Ho=function(t){var e=new ho(t,0),n=this.$c.$t(e);return null!==n&&t.isEqual(n.key)},t}(),ho=function(){function t(t,e){this.key=t,this.jc=e}return t.kc=function(t,e){return A.i(t.key,e.key)||K(t.jc,e.jc)},t.Oc=function(t,e){return K(t.jc,e.jc)||A.i(t.key,e.key)},t}(),po=function(){function t(){this.Gc=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.zc=function(){},t.prototype.Hc=function(t){this.Gc=t,t(Cr.UNAUTHENTICATED)},t.prototype.Yc=function(){this.Gc=null},t}(),vo=function(){function t(t){var e=this;this.Jc=null,this.currentUser=Cr.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){e.Zc++,e.currentUser=e.tu(),e.Xc=!0,e.Gc&&e.Gc(e.currentUser)},this.Zc=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),t.get().then(function(t){e.auth=t,e.Jc&&e.auth.addAuthTokenListener(e.Jc)},function(){}))}return t.prototype.getToken=function(){var t=this,e=this.Zc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.Zc!==e?(p("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(b("string"==typeof n.accessToken),new function(t,e){this.user=e,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+t}(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.zc=function(){this.forceRefresh=!0},t.prototype.Hc=function(t){this.Gc=t,this.Xc&&t(this.currentUser)},t.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},t.prototype.tu=function(){var t=this.auth&&this.auth.getUid();return b(null===t||"string"==typeof t),new Cr(t)},t}(),go=function(){function t(t,e){this.eu=t,this.nu=e,this.type="FirstParty",this.user=Cr.ni}return Object.defineProperty(t.prototype,"Kc",{get:function(){var t={"X-Goog-AuthUser":this.nu},e=this.eu.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),t},enumerable:!1,configurable:!0}),t}(),mo=function(){function t(t,e){this.eu=t,this.nu=e}return t.prototype.getToken=function(){return Promise.resolve(new go(this.eu,this.nu))},t.prototype.Hc=function(t){t(Cr.ni)},t.prototype.Yc=function(){},t.prototype.zc=function(){},t}(),yo=function(){function t(t,e,n,r,i,o){this.fn=t,this.su=n,this.iu=r,this.ru=i,this.listener=o,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new or(t,e)}return t.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.uu=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.hu()},t.prototype.stop=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.lu=function(){this.state=0,this.ys.reset()},t.prototype._u=function(){var t=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,function(){return t.fu()}))},t.prototype.du=function(t){this.wu(),this.stream.send(t)},t.prototype.fu=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){return this.uu()?[2,this.close(0)]:[2]})})},t.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},t.prototype.close=function(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==t?this.ys.reset():e&&e.code===c.RESOURCE_EXHAUSTED?(v(e.toString()),v("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):e&&e.code===c.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Tu(e)];case 1:return n.sent(),[2]}})})},t.prototype.mu=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Eu(this.ou),n=this.ou;this.ru.getToken().then(function(e){t.ou===n&&t.Iu(e)},function(n){e(function(){var e=new f(c.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Au(e)})})},t.prototype.Iu=function(t){var e=this,n=this.Eu(this.ou);this.stream=this.Ru(t),this.stream.gu(function(){n(function(){return e.state=2,e.listener.gu()})}),this.stream.Tu(function(t){n(function(){return e.Au(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.hu=function(){var t=this;this.state=4,this.ys.gn(function(){return r.__awaiter(t,void 0,void 0,function(){return r.__generator(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.Au=function(t){return p("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Eu=function(t){var e=this;return function(n){e.fn.ws(function(){return e.ou===t?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),bo=function(t){function e(e,n,r,i,o){var s;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,s}return r.__extends(e,t),e.prototype.Ru=function(t){return this.iu.Pu("Listen",t)},e.prototype.onMessage=function(t){this.ys.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:y()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Qe?(b(void 0===e||"string"==typeof e),Z.fromBase64String(e||"")):(b(void 0===e||e instanceof Uint8Array),Z.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(t){var e=void 0===t.code?c.UNKNOWN:wt(t.code);return new f(e,t.message||"")}(s);n=new qt(r,i,o,a||null)}else if("documentChange"in e){e.documentChange;var u=e.documentChange;u.document,u.document.name,u.document.updateTime;var l=Te(t,u.document.name),h=we(u.document.updateTime),d=new mn({mapValue:{fields:u.document.fields}}),p=new En(l,h,d,{}),v=u.targetIds||[],g=u.removedTargetIds||[];n=new Vt(v,g,p.key,p)}else if("documentDelete"in e){e.documentDelete;var m=e.documentDelete;m.document;var w=Te(t,m.document),E=m.readTime?we(m.readTime):at.min(),_=new _n(w,E),x=m.removedTargetIds||[];n=new Vt([],x,_.key,_)}else if("documentRemove"in e){e.documentRemove;var T=e.documentRemove;T.document;var S=Te(t,T.document),C=T.removedTargetIds||[];n=new Vt([],C,S,null)}else{if(!("filter"in e))return y();e.filter;var I=e.filter;I.targetId;var A=new function(t){this.count=t}(I.count||0),O=I.targetId;n=new Bt(O,A)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return at.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?at.min():e.readTime?we(e.readTime):at.min()}(t);return this.listener.yu(e,n)},e.prototype.Vu=function(t){var e={};e.database=Ie(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=vt(r)?{documents:Le(t,r)}:{query:De(t,r)}).targetId=e.targetId,e.resumeToken.O()>0&&(n.resumeToken=be(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return y()}}(0,e.et);return null==n?null:{"goog-listen-tags":n}}(this.serializer,t);n&&(e.labels=n),this.du(e)},e.prototype.pu=function(t){var e={};e.database=Ie(this.serializer),e.removeTarget=t,this.du(e)},e}(yo),wo=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,s.bu=!1,s}return r.__extends(e,t),Object.defineProperty(e.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.mu=function(){this.bu&&this.Su([])},e.prototype.Ru=function(t){return this.iu.Pu("Write",t)},e.prototype.onMessage=function(t){if(b(!!t.streamToken),this.lastStreamToken=t.streamToken,this.bu){this.ys.reset();var e=function(t,e){return t&&t.length>0?(b(void 0!==e),t.map(function(t){return function(t,e){var n=t.updateTime?we(t.updateTime):we(e);n.isEqual(at.min())&&(n=we(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new function(t,e){this.version=t,this.transformResults=e}(n,r)}(t,e)})):[]}(t.writeResults,t.commitTime),n=we(t.commitTime);return this.listener.Du(n,e)}return b(!t.writeResults||0===t.writeResults.length),this.bu=!0,this.listener.Cu()},e.prototype.Nu=function(){var t={};t.database=Ie(this.serializer),this.du(t)},e.prototype.Su=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return Ne(e.serializer,t)})};this.du(n)},e}(yo),Eo=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.iu=n,i.serializer=r,i.Fu=!1,i}return r.__extends(e,t),e.prototype.xu=function(){if(this.Fu)throw new f(c.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.$u=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then(function(i){return r.iu.$u(t,e,n,i)}).catch(function(t){throw t.code===c.UNAUTHENTICATED&&r.credentials.zc(),t})},e.prototype.ku=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then(function(i){return r.iu.ku(t,e,n,i)}).catch(function(t){throw t.code===c.UNAUTHENTICATED&&r.credentials.zc(),t})},e.prototype.terminate=function(){this.Fu=!1},e}(function(){}),_o=function(){function t(t,e){this.cs=t,this.di=e,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return t.prototype.Bu=function(){var t=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,function(){return t.Ou=null,t.Uu("Backend didn't respond within 10 seconds."),t.qu("Offline"),Promise.resolve()}))},t.prototype.Qu=function(t){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+t.toString()),this.qu("Offline")))},t.prototype.set=function(t){this.Wu(),this.Mu=0,"Online"===t&&(this.Lu=!1),this.qu(t)},t.prototype.qu=function(t){t!==this.state&&(this.state=t,this.di(t))},t.prototype.Uu=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Lu?(v(e),this.Lu=!1):p("OnlineStateTracker",e)},t.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},t}(),xo=function(t,e,n,i,o){var s=this;this.ju=t,this.Ku=e,this.cs=n,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=o,this.Xu.Zu(function(t){n.ws(function(){return r.__awaiter(s,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return Do(this)?(p("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return(e=w(t)).Yu.add(4),[4,So(e)];case 1:return n.sent(),e.th.set("Unknown"),e.Yu.delete(4),[4,To(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.th=new _o(n,i)};function To(t){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(r){switch(r.label){case 0:if(!Do(t))return[3,4];e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function So(t){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(r){switch(r.label){case 0:e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function Co(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return e=w(t),p("RemoteStore","RemoteStore shutting down."),e.Yu.add(5),[4,So(e)];case 1:return n.sent(),e.Xu.Di(),e.th.set("Unknown"),[2]}})})}function Io(t,e){var n=w(t);n.Hu.has(e.targetId)||(n.Hu.set(e.targetId,e),Lo(n)?ko(n):Vo(n).uu()&&Oo(n,e))}function Ao(t,e){var n=w(t),r=Vo(n);n.Hu.delete(e),r.uu()&&No(n,e),0===n.Hu.size&&(r.uu()?r._u():Do(n)&&n.th.set("Unknown"))}function Oo(t,e){t.eh.Ie(e.targetId),Vo(t).Vu(e)}function No(t,e){t.eh.Ie(e),Vo(t).pu(e)}function ko(t){t.eh=new Wt({qe:function(e){return t.Gu.qe(e)},Ue:function(e){return t.Hu.get(e)||null}}),Vo(t).start(),t.th.Bu()}function Lo(t){return Do(t)&&!Vo(t).cu()&&t.Hu.size>0}function Do(t){return 0===w(t).Yu.size}function Mo(t){t.eh=void 0}function Po(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i=this;return r.__generator(this,function(o){switch(o.label){case 0:if(!cr(e))throw e;return t.Yu.add(1),[4,So(t)];case 1:return o.sent(),t.th.set("Offline"),n||(n=function(){return io(t.ju)}),t.cs.Cs(function(){return r.__awaiter(i,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return p("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Yu.delete(1),[4,To(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function Ro(t,e){return e().catch(function(n){return Po(t,n,e)})}function jo(t){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o,s;return r.__generator(this,function(r){switch(r.label){case 0:e=w(t),n=Bo(e),i=e.zu.length>0?e.zu[e.zu.length-1].batchId:-1,r.label=1;case 1:if(!function(t){return Do(t)&&t.zu.length<10}(e))return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n.Sr.Bo(t,e)})}(e.ju,i)];case 3:return null===(o=r.sent())?(0===e.zu.length&&n._u(),[3,7]):(i=o.batchId,function(t,e){t.zu.push(e);var n=Bo(t);n.uu()&&n.vu&&n.Su(e.mutations)}(e,o),[3,6]);case 4:return s=r.sent(),[4,Po(e,s)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return Fo(e)&&zo(e),[2]}})})}function Fo(t){return Do(t)&&!Bo(t).cu()&&t.zu.length>0}function zo(t){Bo(t).start()}function $o(t,e){return r.__awaiter(this,void 0,void 0,function(){var n;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),e?(n.Yu.delete(2),[4,To(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.Yu.add(2),[4,So(n)]);case 3:r.sent(),n.th.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}})})}function Vo(t){var e=this;return t.oh||(t.oh=function(t,e,n){var r=w(t);return r.xu(),new bo(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return t.Hu.forEach(function(e,n){Oo(t,e)}),[2]})})}.bind(null,t),Tu:function(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){return Mo(t),Lo(t)?(t.th.Qu(e),ko(t)):t.th.set("Unknown"),[2]})})}.bind(null,t),yu:function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s;return r.__generator(this,function(a){switch(a.label){case 0:if(t.th.set("Online"),!(e instanceof qt&&2===e.state&&e.cause))return[3,6];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s;return r.__generator(this,function(r){switch(r.label){case 0:n=e.cause,i=0,o=e.targetIds,r.label=1;case 1:return i<o.length?(s=o[i],t.Hu.has(s)?[4,t.Gu.nh(s,n)]:[3,3]):[3,5];case 2:r.sent(),t.Hu.delete(s),t.eh.removeTarget(s),r.label=3;case 3:r.label=4;case 4:return i++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return a.sent(),[3,5];case 3:return i=a.sent(),p("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,Po(t,i)];case 4:return a.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Vt?t.eh.be(e):e instanceof Bt?t.eh.$e(e):t.eh.De(e),n.isEqual(at.min()))return[3,13];a.label=7;case 7:return a.trys.push([7,11,,13]),[4,io(t.ju)];case 8:return o=a.sent(),n.L(o)>=0?[4,function(t,e){var n=t.eh.Oe(e);return n.zt.forEach(function(n,r){if(n.resumeToken.O()>0){var i=t.Hu.get(r);i&&t.Hu.set(r,i.it(n.resumeToken,e))}}),n.Ht.forEach(function(e){var n=t.Hu.get(e);if(n){t.Hu.set(e,n.it(Z.B,n.nt)),No(t,e);var r=new yt(n.target,e,1,n.sequenceNumber);Oo(t,r)}}),t.Gu.sh(n)}(t,n)]:[3,10];case 9:a.sent(),a.label=10;case 10:return[3,13];case 11:return p("RemoteStore","Failed to raise snapshot:",s=a.sent()),[4,Po(t,s)];case 12:return a.sent(),[3,13];case 13:return[2]}})})}.bind(null,t)}),t.Ju.push(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return n?(t.oh.lu(),Lo(t)?ko(t):t.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.oh.stop()];case 2:e.sent(),Mo(t),e.label=3;case 3:return[2]}})})})),t.oh}function Bo(t){var e=this;return t.ah||(t.ah=function(t,e,n){var r=w(t);return r.xu(),new wo(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return Bo(t).Nu(),[2]})})}.bind(null,t),Tu:function(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return e&&Bo(t).vu?[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:return bt(i=e.code)&&i!==c.ABORTED?(n=t.zu.shift(),Bo(t).lu(),[4,Ro(t,function(){return t.Gu.rh(n.batchId,e)})]):[3,3];case 1:return r.sent(),[4,jo(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return Fo(t)&&zo(t),[2]}})})}.bind(null,t),Cu:function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o;return r.__generator(this,function(r){for(e=Bo(t),n=0,i=t.zu;n<i.length;n++)o=i[n],e.Su(o.mutations);return[2]})})}.bind(null,t),Du:function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o;return r.__generator(this,function(r){switch(r.label){case 0:return i=t.zu.shift(),o=zr.from(i,e,n),[4,Ro(t,function(){return t.Gu.ih(o)})];case 1:return r.sent(),[4,jo(t)];case 2:return r.sent(),[2]}})})}.bind(null,t)}),t.Ju.push(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return n?(t.ah.lu(),[4,jo(t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return[4,t.ah.stop()];case 3:e.sent(),t.zu.length>0&&(p("RemoteStore","Stopping write stream with "+t.zu.length+" pending writes"),t.zu=[]),e.label=4;case 4:return[2]}})})})),t.ah
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */}var qo=function(t){this.key=t},Uo=function(t){this.key=t},Wo=function(){function t(t,e){this.query=t,this.uh=e,this.hh=null,this.te=!1,this.lh=Dt(),this.Wt=Dt(),this._h=Vn(t),this.fh=new Rt(this._h)}return Object.defineProperty(t.prototype,"dh",{get:function(){return this.uh},enumerable:!1,configurable:!0}),t.prototype.wh=function(t,e){var n=this,r=e?e.mh:new jt,i=e?e.fh:this.fh,o=e?e.Wt:this.Wt,s=i,a=!1,u=In(this.query)&&i.size===this.query.limit?i.last():null,l=An(this.query)&&i.size===this.query.limit?i.first():null;if(t.ht(function(t,e){var c=i.get(t),f=e instanceof En?e:null;f&&(f=$n(n.query,f)?f:null);var h=!!c&&n.Wt.has(c.key),d=!!f&&(f.Je||n.Wt.has(f.key)&&f.hasCommittedMutations),p=!1;c&&f?c.data().isEqual(f.data())?h!==d&&(r.track({type:3,doc:f}),p=!0):n.Th(c,f)||(r.track({type:2,doc:f}),p=!0,(u&&n._h(f,u)>0||l&&n._h(f,l)<0)&&(a=!0)):!c&&f?(r.track({type:0,doc:f}),p=!0):c&&!f&&(r.track({type:1,doc:c}),p=!0,(u||l)&&(a=!0)),p&&(f?(s=s.add(f),o=d?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))}),In(this.query)||An(this.query))for(;s.size>this.query.limit;){var c=In(this.query)?s.last():s.first();s=s.delete(c.key),o=o.delete(c.key),r.track({type:1,doc:c})}return{fh:s,mh:r,Eh:a,Wt:o}},t.prototype.Th=function(t,e){return t.Je&&e.hasCommittedMutations&&!e.Je},t.prototype.yr=function(t,e,n){var r=this,i=this.fh;this.fh=t.fh,this.Wt=t.Wt;var o=t.mh.Ut();o.sort(function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return y()}};return n(t)-n(e)}(t.type,e.type)||r._h(t.doc,e.doc)}),this.Ih(n);var s=e?this.Ah():[],a=0===this.lh.size&&this.te?1:0,u=a!==this.hh;return this.hh=a,0!==o.length||u?{snapshot:new Ft(this.query,t.fh,i,o,t.Wt,0===a,u,!1),Rh:s}:{Rh:s}},t.prototype.Qs=function(t){return this.te&&"Offline"===t?(this.te=!1,this.yr({fh:this.fh,mh:new jt,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},t.prototype.gh=function(t){return!this.uh.has(t)&&!!this.fh.has(t)&&!this.fh.get(t).Je},t.prototype.Ih=function(t){var e=this;t&&(t.ee.forEach(function(t){return e.uh=e.uh.add(t)}),t.ne.forEach(function(t){}),t.se.forEach(function(t){return e.uh=e.uh.delete(t)}),this.te=t.te)},t.prototype.Ah=function(){var t=this;if(!this.te)return[];var e=this.lh;this.lh=Dt(),this.fh.forEach(function(e){t.gh(e.key)&&(t.lh=t.lh.add(e.key))});var n=[];return e.forEach(function(e){t.lh.has(e)||n.push(new Uo(e))}),this.lh.forEach(function(t){e.has(t)||n.push(new qo(t))}),n},t.prototype.Ph=function(t){this.uh=t.Fc,this.lh=Dt();var e=this.wh(t.documents);return this.yr(e,!0)},t.prototype.yh=function(){return Ft.Gt(this.query,this.fh,this.Wt,0===this.hh)},t}(),Ho=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Go=function(t){this.key=t,this.Vh=!1},Xo=function(){function t(t,e,n,r,i,o){this.ju=t,this.ph=e,this.bh=n,this.Sh=r,this.currentUser=i,this.Dh=o,this.Ch={},this.Nh=new ot(function(t){return Fn(t)},jn),this.Fh=new Map,this.xh=[],this.$h=new Et(A.i),this.kh=new Map,this.Mh=new fo,this.Oh={},this.Lh=new Map,this.Bh=Ui.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(t.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),t}();function Yo(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,s,a,u,l,c;return r.__generator(this,function(f){switch(f.label){case 0:return t.Qh=function(e,n,i){return function(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,s,a;return r.__generator(this,function(r){switch(r.label){case 0:return(o=e.view.wh(n)).Eh?[4,ao(t.ju,e.query,!1).then(function(t){var n=t.documents;return e.view.wh(n,o)})]:[3,2];case 1:o=r.sent(),r.label=2;case 2:return s=i&&i.zt.get(e.targetId),a=e.view.yr(o,t.Uh,s),[2,(os(t,e.targetId,a.Rh),a.snapshot)]}})})}(t,e,n,i)},[4,ao(t.ju,e,!0)];case 1:return o=f.sent(),s=new Wo(e,o.Fc),a=s.wh(o.documents),u=$t.Zt(n,i&&"Offline"!==t.onlineState),l=s.yr(a,t.Uh,u),os(t,n,l.Rh),c=new Ho(e,n,s),[2,(t.Nh.set(e,c),t.Fh.has(n)?t.Fh.get(n).push(e):t.Fh.set(n,[e]),l.snapshot)]}})})}function Ko(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(t,e){var n=w(t),r=e.nt,i=n.bc;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(t){var o=n.Dc.ra({oa:!0});i=n.bc;var s=[];e.zt.forEach(function(e,o){var a=i.get(o);if(a){s.push(n.Ka.Ca(t,e.se,o).next(function(){return n.Ka.Sa(t,e.ee,o)}));var u=e.resumeToken;if(u.O()>0){var l=a.it(u,r).st(t.xa);i=i.ot(o,l),function(t,e,n){return b(e.resumeToken.O()>0),0===t.resumeToken.O()||e.nt.X()-t.nt.X()>=3e8||n.ee.size+n.ne.size+n.se.size>0}(a,l,e)&&s.push(n.Ka.ya(t,l))}}});var a=It(),u=Dt();if(e.Yt.forEach(function(t,e){u=u.add(t)}),s.push(o.getEntries(t,u).next(function(i){e.Yt.forEach(function(u,l){var c=i.get(u);l instanceof _n&&l.version.isEqual(at.min())?(o.Ar(u,r),a=a.ot(u,l)):null==c||l.version.L(c.version)>0||0===l.version.L(c.version)&&c.hasPendingWrites?(o.Er(l,r),a=a.ot(u,l)):p("LocalStore","Ignoring outdated watch update for ",u,". Current version:",c.version," Watch version:",l.version),e.Jt.has(u)&&s.push(n.persistence.No.yc(t,u))})})),!r.isEqual(at.min())){var l=n.Ka.Ea(t).next(function(e){return n.Ka.Aa(t,t.xa,r)});s.push(l)}return sr.$n(s).next(function(){return o.apply(t)}).next(function(){return n.Cc.Mr(t,a)})}).then(function(t){return n.bc=i,t})}(n.ju,e)];case 2:return i=r.sent(),e.zt.forEach(function(t,e){var r=n.kh.get(e);r&&(b(t.ee.size+t.ne.size+t.se.size<=1),t.ee.size>0?r.Vh=!0:t.ne.size>0?b(r.Vh):t.se.size>0&&(b(r.Vh),r.Vh=!1))}),[4,us(n,i,e)];case 3:return r.sent(),[3,6];case 4:return[4,co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function Qo(t,e,n){var r=w(t);if(r.Uh&&0===n||!r.Uh&&1===n){var i=[];r.Nh.forEach(function(t,n){var r=n.view.Qs(e);r.snapshot&&i.push(r.snapshot)}),function(t,e){var n=w(t);n.onlineState=e;var r=!1;n.Bs.forEach(function(t,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].Qs(e)&&(r=!0)}),r&&Tr(n)}(r.bh,e),i.length&&r.Ch.yu(i),r.onlineState=e,r.Uh&&r.Sh.Ki(e)}}function Jo(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a,u,l;return r.__generator(this,function(r){switch(r.label){case 0:return(i=w(t)).Sh.Qi(e,"rejected",n),o=i.kh.get(e),(s=o&&o.key)?(a=(a=new Et(A.i)).ot(s,new _n(s,at.min())),u=Dt().add(s),l=new zt(at.min(),new Map,new Tt(K),a,u),[4,Ko(i,l)]):[3,2];case 1:return r.sent(),i.$h=i.$h.remove(s),i.kh.delete(e),as(i),[3,4];case 2:return[4,so(i.ju,e,!1).then(function(){return rs(i,e,n)}).catch(co)];case 3:r.sent(),r.label=4;case 4:return[2]}})})}function Zo(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),i=e.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var r=e.batch.keys(),i=n.Dc.ra({oa:!0});return function(t,e,n,r){var i=n.batch,o=i.keys(),s=sr.resolve();return o.forEach(function(t){s=s.next(function(){return r.Rr(e,t)}).next(function(e){var o=e,s=n.dr.get(t);b(null!==s),(!o||o.version.L(s)<0)&&(o=i.cr(t,o,n))&&r.Er(o,n._r)})}),s.next(function(){return t.Sr.Wo(e,i)})}(n,t,e,i).next(function(){return i.apply(t)}).next(function(){return n.Sr.zo(t)}).next(function(){return n.Cc.kr(t,r)})})}(n.ju,e)];case 2:return o=r.sent(),ns(n,i,null),es(n,i),n.Sh.ki(i,"acknowledged"),[4,us(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function ts(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o;return r.__generator(this,function(r){switch(r.label){case 0:i=w(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var r;return n.Sr.Oo(t,e).next(function(e){return b(null!==e),r=e.keys(),n.Sr.Wo(t,e)}).next(function(){return n.Sr.zo(t)}).next(function(){return n.Cc.kr(t,r)})})}(i.ju,e)];case 2:return o=r.sent(),ns(i,e,n),es(i,e),i.Sh.ki(e,"rejected",n),[4,us(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,co(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function es(t,e){(t.Lh.get(e)||[]).forEach(function(t){t.resolve()}),t.Lh.delete(e)}function ns(t,e,n){var r=w(t),i=r.Oh[r.currentUser.ti()];if(i){var o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.Oh[r.currentUser.ti()]=i}}function rs(t,e,n){void 0===n&&(n=null),t.Sh.Bi(e);for(var r=0,i=t.Fh.get(e);r<i.length;r++){var o=i[r];t.Nh.delete(o),n&&t.Ch.Wh(o,n)}t.Fh.delete(e),t.Uh&&t.Mh.Uc(e).forEach(function(e){t.Mh.Ho(e)||is(t,e)})}function is(t,e){var n=t.$h.get(e);null!==n&&(Ao(t.ph,n),t.$h=t.$h.remove(e),t.kh.delete(n),as(t))}function os(t,e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof qo?(t.Mh.Da(o.key,e),ss(t,o)):o instanceof Uo?(p("SyncEngine","Document no longer in limbo: "+o.key),t.Mh.Na(o.key,e),t.Mh.Ho(o.key)||is(t,o.key)):y()}}function ss(t,e){var n=e.key;t.$h.get(n)||(p("SyncEngine","New document in limbo: "+n),t.xh.push(n),as(t))}function as(t){for(;t.xh.length>0&&t.$h.size<t.Dh;){var e=t.xh.shift(),n=t.Bh.next();t.kh.set(n,new Go(e)),t.$h=t.$h.ot(e,n),Io(t.ph,new yt(Dn(Cn(e.path)),n,2,Ir.ai))}}function us(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a;return r.__generator(this,function(u){switch(u.label){case 0:return i=w(t),o=[],s=[],a=[],i.Nh.m()?[3,3]:(i.Nh.forEach(function(t,r){a.push(i.Qh(r,e,n).then(function(t){if(t){i.Uh&&i.Sh.Qi(r.targetId,t.fromCache?"not-current":"current"),o.push(t);var e=Ur.zr(r.targetId,t);s.push(e)}}))}),[4,Promise.all(a)]);case 1:return u.sent(),i.Ch.yu(o),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u,l,c,f;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return sr.forEach(e,function(e){return sr.forEach(e.Kr,function(r){return n.persistence.No.Da(t,e.targetId,r)}).next(function(){return sr.forEach(e.Gr,function(r){return n.persistence.No.Na(t,e.targetId,r)})})})})];case 2:return r.sent(),[3,4];case 3:if(!cr(i=r.sent()))throw i;return p("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,s=e;o<s.length;o++)a=s[o],u=a.targetId,a.fromCache||(l=n.bc.get(u),c=l.nt,f=l.rt(c),n.bc=n.bc.ot(u,f));return[2]}})})}(i.ju,s)];case 2:u.sent(),u.label=3;case 3:return[2]}})})}function ls(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(o){switch(o.label){case 0:return(n=w(t)).currentUser.isEqual(e)?[3,3]:(p("SyncEngine","User change. New user:",e.ti()),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=n.Sr,o=n.Cc,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var r;return n.Sr.Uo(t).next(function(s){return r=s,i=n.persistence.mc(e),o=new qr(n.Dc,i,n.persistence.Ic()),i.Uo(t)}).next(function(e){for(var n=[],i=[],s=Dt(),a=0,u=r;a<u.length;a++){var l=u[a];n.push(l.batchId);for(var c=0,f=l.mutations;c<f.length;c++){var h=f[c];s=s.add(h.key)}}for(var d=0,p=e;d<p.length;d++){var v=p[d];i.push(v.batchId);for(var g=0,m=v.mutations;g<m.length;g++){var y=m[g];s=s.add(y.key)}}return o.kr(t,s).next(function(t){return{jh:t,Kh:n,Gh:i}})})})];case 1:return s=r.sent(),[2,(n.Sr=i,n.Cc=o,n.Vc.Nc(n.Cc),s)]}})})}(n.ju,e)]);case 1:return i=o.sent(),n.currentUser=e,function(t,e){t.Lh.forEach(function(t){t.forEach(function(t){t.reject(new f(c.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),t.Lh.clear()}(n),n.Sh.ji(e,i.Kh,i.Gh),[4,us(n,i.jh)];case 2:o.sent(),o.label=3;case 3:return[2]}})})}function cs(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return[4,ao((n=w(t)).ju,e.query,!0)];case 1:return i=r.sent(),o=e.view.Ph(i),[2,(n.Uh&&os(n,e.targetId,o.Rh),o)]}})})}function fs(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u,l,c;return r.__generator(this,function(r){switch(r.label){case 0:return vs(n=w(t)),gs(n),!0!==e||!0===n.qh?[3,3]:(i=n.Sh.Ci(),[4,hs(n,i.A())]);case 1:return o=r.sent(),n.qh=!0,[4,$o(n.ph,!0)];case 2:for(r.sent(),s=0,a=o;s<a.length;s++)u=a[s],Io(n.ph,u);return[3,7];case 3:return!1!==e||!1===n.qh?[3,7]:(l=[],c=Promise.resolve(),n.Fh.forEach(function(t,e){n.Sh.qi(e)?l.push(e):c=c.then(function(){return rs(n,e),so(n.ju,e,!0)}),Ao(n.ph,e)}),[4,c]);case 4:return r.sent(),[4,hs(n,l)];case 5:return r.sent(),function(t){var e=w(n);e.kh.forEach(function(t,n){Ao(e.ph,n)}),e.Mh.Qc(),e.kh=new Map,e.$h=new Et(A.i)}(),n.qh=!1,[4,$o(n.ph,!1)];case 6:r.sent(),r.label=7;case 7:return[2]}})})}function hs(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u,l,c,f,h,d,p,v,g;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),i=[],o=[],s=0,a=e,r.label=1;case 1:return s<a.length?(u=a[s],l=void 0,(c=n.Fh.get(u))&&0!==c.length?[4,oo(n.ju,Dn(c[0]))]:[3,7]):[3,13];case 2:l=r.sent(),f=0,h=c,r.label=3;case 3:return f<h.length?(d=h[f],p=n.Nh.get(d),[4,cs(n,p)]):[3,6];case 4:(v=r.sent()).snapshot&&o.push(v.snapshot),r.label=5;case 5:return f++,[3,3];case 6:return[3,11];case 7:return[4,uo(n.ju,u)];case 8:return g=r.sent(),[4,oo(n.ju,g)];case 9:return l=r.sent(),[4,Yo(n,ds(g),u,!1)];case 10:r.sent(),r.label=11;case 11:i.push(l),r.label=12;case 12:return s++,[3,1];case 13:return[2,(n.Ch.yu(o),i)]}})})}function ds(t){return Sn(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function ps(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,s,a;return r.__generator(this,function(r){switch(r.label){case 0:return(o=w(t)).qh?(p("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.Fh.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,function(t){var e=w(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return function(t,e,n){var r=w(t),i=It(),o=ii(n),s=wi(e),a=IDBKeyRange.lowerBound(o,!0);return s.rs({index:Di.readTimeIndex,range:a},function(t,e){var n=ni(r.serializer,e);i=i.ot(n.key,n),o=e.readTime}).next(function(){return{xc:i,readTime:oi(o)}})}(e.Dc,t,e.Sc)}).then(function(t){var n=t.xc,r=t.readTime;return e.Sc=r,n})}(o.ju)];case 3:return s=r.sent(),a=zt.Xt(e,"current"===n),[4,us(o,s,a)];case 4:return r.sent(),[3,8];case 5:return[4,so(o.ju,e,!0)];case 6:return r.sent(),rs(o,e,i),[3,8];case 7:y(),r.label=8;case 8:return[2]}})})}function vs(t){var e=w(t);return e.ph.Gu.sh=Ko.bind(null,e),e.ph.Gu.qe=function(t,e){var n=w(t),r=n.kh.get(e);if(r&&r.Vh)return Dt().add(r.key);var i=Dt(),o=n.Fh.get(e);if(!o)return i;for(var s=0,a=o;s<a.length;s++){var u=a[s],l=n.Nh.get(u);i=i.kt(l.view.dh)}return i}.bind(null,e),e.ph.Gu.nh=Jo.bind(null,e),e.Ch.yu=function(t,e){for(var n=w(t),r=!1,i=0,o=e;i<o.length;i++){var s=o[i],a=s.query,u=n.Bs.get(a);if(u){for(var l=0,c=u.listeners;l<c.length;l++)c[l].Ws(s)&&(r=!0);u.Ls=s}}r&&Tr(n)}.bind(null,e.bh),e.Ch.Wh=function(t,e,n){var r=w(t),i=r.Bs.get(e);if(i)for(var o=0,s=i.listeners;o<s.length;o++)s[o].onError(n);r.Bs.delete(e)}.bind(null,e.bh),e}function gs(t){var e=w(t);return e.ph.Gu.ih=Zo.bind(null,e),e.ph.Gu.rh=ts.bind(null,e),e}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ms=function(){function t(){}return t.prototype.Nc=function(t){this.zh=t},t.prototype.Lr=function(t,e,n,r){var i=this;return function(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.on.length||1===t.on.length&&t.on[0].field.p())}(e)||n.isEqual(at.min())?this.Hh(t,e):this.zh.kr(t,r).next(function(s){var a=i.Yh(e,s);return(In(e)||An(e))&&i.Eh(e.an,a,r,n)?i.Hh(t,e):(d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),zn(e)),i.zh.Lr(t,e,n).next(function(t){return a.forEach(function(e){t=t.ot(e.key,e)}),t}))})},t.prototype.Yh=function(t,e){var n=new Tt(Vn(t));return e.forEach(function(e,r){r instanceof En&&$n(t,r)&&(n=n.add(r))}),n},t.prototype.Eh=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.L(r)>0)},t.prototype.Hh=function(t,e){return d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Using full collection scan to execute query:",zn(e)),this.zh.Lr(t,e,at.min())},t}(),ys=function(){function t(t,e){this.Dr=t,this.No=e,this.Sr=[],this.Jh=1,this.Xh=new Tt(ho.kc)}return t.prototype.$o=function(t){return sr.resolve(0===this.Sr.length)},t.prototype.ko=function(t,e,n,r){var i=this.Jh;this.Jh++,this.Sr.length>0&&this.Sr[this.Sr.length-1];var o=new Fr(i,e,n,r);this.Sr.push(o);for(var s=0,a=r;s<a.length;s++){var u=a[s];this.Xh=this.Xh.add(new ho(u.key,i)),this.Dr.Mo(t,u.key.path.h())}return sr.resolve(o)},t.prototype.Oo=function(t,e){return sr.resolve(this.Zh(e))},t.prototype.Bo=function(t,e){var n=e+1,r=this.tl(n),i=r<0?0:r;return sr.resolve(this.Sr.length>i?this.Sr[i]:null)},t.prototype.qo=function(){return sr.resolve(0===this.Sr.length?-1:this.Jh-1)},t.prototype.Uo=function(t){return sr.resolve(this.Sr.slice())},t.prototype.Nr=function(t,e){var n=this,r=new ho(e,0),i=new ho(e,Number.POSITIVE_INFINITY),o=[];return this.Xh.Ft([r,i],function(t){var e=n.Zh(t.jc);o.push(e)}),sr.resolve(o)},t.prototype.Or=function(t,e){var n=this,r=new Tt(K);return e.forEach(function(t){var e=new ho(t,0),i=new ho(t,Number.POSITIVE_INFINITY);n.Xh.Ft([e,i],function(t){r=r.add(t.jc)})}),sr.resolve(this.el(r))},t.prototype.Wr=function(t,e){var n=e.path,r=n.length+1,i=n;A.F(i)||(i=i.child(""));var o=new ho(new A(i),0),s=new Tt(K);return this.Xh.xt(function(t){var e=t.key.path;return!!n.T(e)&&(e.length===r&&(s=s.add(t.jc)),!0)},o),sr.resolve(this.el(s))},t.prototype.el=function(t){var e=this,n=[];return t.forEach(function(t){var r=e.Zh(t);null!==r&&n.push(r)}),n},t.prototype.Wo=function(t,e){var n=this;b(0===this.nl(e.batchId,"removed")),this.Sr.shift();var r=this.Xh;return sr.forEach(e.mutations,function(i){var o=new ho(i.key,e.batchId);return r=r.delete(o),n.No.Go(t,i.key)}).next(function(){n.Xh=r})},t.prototype.Ko=function(t){},t.prototype.Ho=function(t,e){var n=new ho(e,0),r=this.Xh.$t(n);return sr.resolve(e.isEqual(r&&r.key))},t.prototype.zo=function(t){return this.Sr.length,sr.resolve()},t.prototype.nl=function(t,e){return this.tl(t)},t.prototype.tl=function(t){return 0===this.Sr.length?0:t-this.Sr[0].batchId},t.prototype.Zh=function(t){var e=this.tl(t);return e<0||e>=this.Sr.length?null:this.Sr[e]},t}(),bs=function(){function t(t,e){this.Dr=t,this.sl=e,this.docs=new Et(A.i),this.size=0}return t.prototype.Er=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.sl(e);return this.docs=this.docs.ot(r,{ta:e,size:s,readTime:n}),this.size+=s-o,this.Dr.Mo(t,r.path.h())},t.prototype.Ar=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Rr=function(t,e){var n=this.docs.get(e);return sr.resolve(n?n.ta:null)},t.prototype.getEntries=function(t,e){var n=this,r=At();return e.forEach(function(t){var e=n.docs.get(t);r=r.ot(t,e?e.ta:null)}),sr.resolve(r)},t.prototype.Lr=function(t,e,n){for(var r=Nt(),i=new A(e.path.child("")),o=this.docs.ft(i);o.At();){var s=o.It(),a=s.key,u=s.value,l=u.ta,c=u.readTime;if(!e.path.T(a.path))break;c.L(n)<=0||l instanceof En&&$n(e,l)&&(r=r.ot(l.key,l))}return sr.resolve(r)},t.prototype.il=function(t,e){return sr.forEach(this.docs,function(t){return e(t)})},t.prototype.ra=function(t){return new ws(this)},t.prototype.aa=function(t){return sr.resolve(this.size)},t}(),ws=function(t){function e(e){var n;return(n=t.call(this)||this).ca=e,n}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[];return this.wr.forEach(function(r,i){i?n.push(e.ca.Er(t,i,e.readTime)):e.ca.Ar(r)}),sr.$n(n)},e.prototype.gr=function(t,e){return this.ca.Rr(t,e)},e.prototype.Pr=function(t,e){return this.ca.getEntries(t,e)},e}($r),Es=function(){function t(t){this.persistence=t,this.rl=new ot(function(t){return dt(t)},pt),this.lastRemoteSnapshotVersion=at.min(),this.highestTargetId=0,this.ol=0,this.al=new fo,this.targetCount=0,this.cl=Ui.fa()}return t.prototype.Ce=function(t,e){return this.rl.forEach(function(t,n){return e(n)}),sr.resolve()},t.prototype.Ea=function(t){return sr.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Ia=function(t){return sr.resolve(this.ol)},t.prototype.wa=function(t){return this.highestTargetId=this.cl.next(),sr.resolve(this.highestTargetId)},t.prototype.Aa=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ol&&(this.ol=e),sr.resolve()},t.prototype.ga=function(t){this.rl.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.cl=new Ui(e),this.highestTargetId=e),t.sequenceNumber>this.ol&&(this.ol=t.sequenceNumber)},t.prototype.Ra=function(t,e){return this.ga(e),this.targetCount+=1,sr.resolve()},t.prototype.ya=function(t,e){return this.ga(e),sr.resolve()},t.prototype.Va=function(t,e){return this.rl.delete(e.target),this.al.Uc(e.targetId),this.targetCount-=1,sr.resolve()},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return this.rl.forEach(function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.rl.delete(s),o.push(r.pa(t,a.targetId)),i++)}),sr.$n(o).next(function(){return i})},t.prototype.ba=function(t){return sr.resolve(this.targetCount)},t.prototype.va=function(t,e){var n=this.rl.get(e)||null;return sr.resolve(n)},t.prototype.Sa=function(t,e,n){return this.al.Lc(e,n),sr.resolve()},t.prototype.Ca=function(t,e,n){this.al.qc(e,n);var r=this.persistence.No,i=[];return r&&e.forEach(function(e){i.push(r.Go(t,e))}),sr.$n(i)},t.prototype.pa=function(t,e){return this.al.Uc(e),sr.resolve()},t.prototype.Fa=function(t,e){var n=this.al.Wc(e);return sr.resolve(n)},t.prototype.Ho=function(t,e){return sr.resolve(this.al.Ho(e))},t}(),_s=function(){function t(t){var e=this;this.ul={},this.Ma=new Ir(0),this.Oa=!1,this.Oa=!0,this.No=t(this),this.Ka=new Es(this),this.Dr=new xi,this.vr=function(t,n){return new bs(t,function(t){return e.No.hl(t)})}(this.Dr)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),t.prototype.Za=function(){},t.prototype.tc=function(){},t.prototype.Ic=function(){return this.Dr},t.prototype.mc=function(t){var e=this.ul[t.ti()];return e||(e=new ys(this.Dr,this.No),this.ul[t.ti()]=e),e},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.runTransaction=function(t,e,n){var r=this;p("MemoryPersistence","Starting transaction:",t);var i=new xs(this.Ma.next());return this.No.ll(),n(i).next(function(t){return r.No._l(i).next(function(){return t})}).Fn().then(function(t){return i.br(),t})},t.prototype.fl=function(t,e){return sr.kn(Object.values(this.ul).map(function(n){return function(){return n.Ho(t,e)}}))},t}(),xs=function(t){function e(e){var n;return(n=t.call(this)||this).xa=e,n}return r.__extends(e,t),e}(Br),Ts=function(){function t(t){this.persistence=t,this.dl=new fo,this.wl=null}return t.ml=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw y()},enumerable:!1,configurable:!0}),t.prototype.Da=function(t,e,n){return this.dl.Da(n,e),this.Tl.delete(n.toString()),sr.resolve()},t.prototype.Na=function(t,e,n){return this.dl.Na(n,e),this.Tl.add(n.toString()),sr.resolve()},t.prototype.Go=function(t,e){return this.Tl.add(e.toString()),sr.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.dl.Uc(e.targetId).forEach(function(t){return n.Tl.add(t.toString())});var r=this.persistence.Tc();return r.Fa(t,e.targetId).next(function(t){t.forEach(function(t){return n.Tl.add(t.toString())})}).next(function(){return r.Va(t,e)})},t.prototype.ll=function(){this.wl=new Set},t.prototype._l=function(t){var e=this,n=this.persistence.Ec().ra();return sr.forEach(this.Tl,function(r){var i=A.D(r);return e.El(t,i).next(function(t){t||n.Ar(i)})}).next(function(){return e.wl=null,n.apply(t)})},t.prototype.yc=function(t,e){var n=this;return this.El(t,e).next(function(t){t?n.Tl.delete(e.toString()):n.Tl.add(e.toString())})},t.prototype.hl=function(t){return 0},t.prototype.El=function(t,e){var n=this;return sr.kn([function(){return sr.resolve(n.dl.Ho(e))},function(){return n.persistence.Tc().Ho(t,e)},function(){return n.persistence.fl(t,e)}])},t}(),Ss=function(){function t(t){this.Il=t.Il,this.Al=t.Al}return t.prototype.gu=function(t){this.Rl=t},t.prototype.Tu=function(t){this.gl=t},t.prototype.onMessage=function(t){this.Pl=t},t.prototype.close=function(){this.Al()},t.prototype.send=function(t){this.Il(t)},t.prototype.yl=function(){this.Rl()},t.prototype.Vl=function(t){this.gl(t)},t.prototype.pl=function(t){this.Pl(t)},t}(),Cs={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Is=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.W=e.W,n}return r.__extends(e,t),e.prototype.Nl=function(t,e,n,r){return new Promise(function(i,o){var s=new a.XhrIo;s.listenOnce(a.EventType.COMPLETE,function(){try{switch(s.getLastErrorCode()){case a.ErrorCode.NO_ERROR:var e=s.getResponseJson();p("Connection","XHR received:",JSON.stringify(e)),i(e);break;case a.ErrorCode.TIMEOUT:p("Connection",'RPC "'+t+'" timed out'),o(new f(c.DEADLINE_EXCEEDED,"Request time out"));break;case a.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(p("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var u=function(t){var e=r.status.toLowerCase().replace("_","-");return Object.values(c).indexOf(e)>=0?e:c.UNKNOWN}();o(new f(u,r.message))}else o(new f(c.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new f(c.UNAVAILABLE,"Connection failed."));break;default:y()}}finally{p("Connection",'RPC "'+t+'" completed.')}});var u=JSON.stringify(r);s.send(e,"POST",u,n,15)})},e.prototype.Pu=function(t,e){var n=[this.vl,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=a.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(i.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");p("Connection","Creating WebChannel: "+o,i);var u=r.createWebChannel(o,i),l=!1,h=!1,d=new Ss({Il:function(t){h?p("Connection","Not sending because WebChannel is closed:",t):(l||(p("Connection","Opening WebChannel transport."),u.open(),l=!0),p("Connection","WebChannel sending:",t),u.send(t))},Al:function(){return u.close()}}),v=function(t,e){u.listen(t,function(t){try{e(t)}catch(t){setTimeout(function(){throw t},0)}})};return v(a.WebChannel.EventType.OPEN,function(){h||p("Connection","WebChannel transport opened.")}),v(a.WebChannel.EventType.CLOSE,function(){h||(h=!0,p("Connection","WebChannel transport closed"),d.Vl())}),v(a.WebChannel.EventType.ERROR,function(t){h||(h=!0,g("Connection","WebChannel transport errored:",t),d.Vl(new f(c.UNAVAILABLE,"The operation could not be completed")))}),v(a.WebChannel.EventType.MESSAGE,function(t){var e;if(!h){var n=t.data[0];b(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){p("Connection","WebChannel received error:",i);var o=i.status,s=function(t){var e=gt[o];if(void 0!==e)return wt(e)}(),a=i.message;void 0===s&&(s=c.INTERNAL,a="Unknown error status: "+o+" with message "+i.message),h=!0,d.Vl(new f(s,a)),u.close()}else p("Connection","WebChannel received:",n),d.pl(n)}}),setTimeout(function(){d.yl()},0),d},e}(function(){function t(t){this.bl=t,this.U=t.U;var e=t.ssl?"https":"http";this.vl=e+"://"+t.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return t.prototype.$u=function(t,e,n,r){var i=this.Dl(t,e);p("RestConnection","Sending: ",i,n);var o={};return this.Cl(o,r),this.Nl(t,i,o,n).then(function(t){return p("RestConnection","Received: ",t),t},function(e){throw g("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e})},t.prototype.ku=function(t,e,n,r){return this.$u(t,e,n,r)},t.prototype.Cl=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",t["Content-Type"]="text/plain",e)for(var n in e.Kc)e.Kc.hasOwnProperty(n)&&(t[n]=e.Kc[n])},t.prototype.Dl=function(t,e){var n=Cs[t];return this.vl+"/v1/"+e+":"+n},t}()),As=function(){function t(){var t=this;this.Fl=function(){return t.xl()},this.$l=function(){return t.kl()},this.Ml=[],this.Ol()}return t.prototype.Zu=function(t){this.Ml.push(t)},t.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},t.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},t.prototype.xl=function(){p("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(0)},t.prototype.kl=function(){p("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(1)},t.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),Os=function(){function t(){}return t.prototype.Zu=function(t){},t.prototype.Di=function(){},t}();
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ns(t){return new pe(t,!0)}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var ks="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",Ls=function(){function t(){}return t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return this.Sh=this.Ll(t),this.persistence=this.Bl(t),[4,this.persistence.start()];case 1:return e.sent(),this.ql=this.Ul(t),this.ju=this.Ql(t),[2]}})})},t.prototype.Ul=function(t){return null},t.prototype.Ql=function(t){return e=this.persistence,n=new ms,r=t.Wl,new ro(e,n,r);var e,n,r},t.prototype.Bl=function(t){if(t.persistenceSettings.jl)throw new f(c.FAILED_PRECONDITION,ks);return new _s(Ts.ml)},t.prototype.Ll=function(t){return new jr},t.prototype.terminate=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return t.sent(),[4,this.persistence.Di()];case 2:return t.sent(),[2]}})})},t.prototype.clearPersistence=function(t,e){throw new f(c.FAILED_PRECONDITION,ks)},t}(),Ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(o){switch(o.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return o.sent(),n=this.Kl.fi,this.Sh instanceof Rr?(this.Sh.fi={er:function(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,s;return r.__generator(this,function(r){switch(r.label){case 0:return[4,function(t,e){var n=w(t),r=w(n.Sr);return n.persistence.runTransaction("Lookup mutation documents","readonly",function(t){return r.Lo(t,e).next(function(e){return e?n.Cc.kr(t,e):sr.resolve(null)})})}((o=w(t)).ju,e)];case 1:return null===(s=r.sent())?[3,6]:"pending"!==n?[3,3]:[4,jo(o.ph)];case 2:return r.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(ns(o,e,i||null),es(o,e),function(t,e){w(w(t).Sr).Ko(e)}(o.ju,e)):y(),r.label=4;case 4:return[4,us(o,s)];case 5:return r.sent(),[3,7];case 6:p("SyncEngine","Cannot apply mutation batch with id: "+e),r.label=7;case 7:return[2]}})})}.bind(null,n),nr:ps.bind(null,n),sr:function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a,u,l,c,f,h,d;return r.__generator(this,function(v){switch(v.label){case 0:if(!(i=vs(t)).qh)return[3,10];o=0,s=e,v.label=1;case 1:return o<s.length?(a=s[o],i.Fh.has(a)?(p("SyncEngine","Adding an already active target "+a),[3,5]):[4,uo(i.ju,a)]):[3,6];case 2:return u=v.sent(),[4,oo(i.ju,u)];case 3:return l=v.sent(),[4,Yo(i,ds(u),l.targetId,!1)];case 4:v.sent(),Io(i.ph,l),v.label=5;case 5:return o++,[3,1];case 6:c=function(t){return r.__generator(this,function(e){switch(e.label){case 0:return i.Fh.has(t)?[4,so(i.ju,t,!1).then(function(){Ao(i.ph,t),rs(i,t)}).catch(co)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},f=0,h=n,v.label=7;case 7:return f<h.length?(d=h[f],[5,c(d)]):[3,10];case 8:v.sent(),v.label=9;case 9:return f++,[3,7];case 10:return[2]}})})}.bind(null,n),pi:function(t){return w(w(w(t).ju).persistence).pi()}.bind(null,n)},[4,this.Sh.start()]):[3,3];case 2:o.sent(),o.label=3;case 3:return[4,this.persistence.Xa(function(t){return r.__awaiter(i,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return[4,fs(this.Kl.fi,t)];case 1:return e.sent(),this.ql&&(t&&!this.ql.Ei?this.ql.start(this.ju):t||this.ql.stop()),[2]}})})})];case 4:return o.sent(),[2]}})})},e.prototype.Ll=function(t){if(t.persistenceSettings.jl&&t.persistenceSettings.synchronizeTabs){var e=gr();if(!Rr.Ln(e))throw new f(c.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=no(t.bl.U,t.bl.persistenceKey);return new Rr(e,t.cs,n,t.clientId,t.Wl)}return new jr},e}(function(t){function e(e){var n;return(n=t.call(this)||this).Kl=e,n}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,lo(this.ju)];case 2:return n.sent(),[4,this.Kl.initialize(this,e)];case 3:return n.sent(),[4,gs(this.Kl.fi)];case 4:return n.sent(),[4,jo(this.Kl.ph)];case 5:return n.sent(),[2]}})})},e.prototype.Ul=function(t){var e=this.persistence.No.wo;return new Yr(e,t.cs)},e.prototype.Bl=function(t){var e=no(t.bl.U,t.bl.persistenceKey),n=Ns(t.bl.U);return new Qi(t.persistenceSettings.synchronizeTabs,e,t.clientId,Xr.ao(t.persistenceSettings.cacheSizeBytes),t.cs,gr(),mr(),n,this.Sh,t.persistenceSettings.ka)},e.prototype.Ll=function(t){return new jr},e.prototype.clearPersistence=function(t,e){return function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return ar.Ln()?(e=t+"main",[4,ar.delete(e)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}})})}(no(t,e))},e}(Ls)),Ms=function(){function t(){}return t.prototype.initialize=function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.ju?[3,2]:(this.ju=t.ju,this.Sh=t.Sh,this.Ku=this.Gl(e),this.ph=this.zl(e),this.bh=this.Hl(e),this.fi=this.Yl(e),this.Sh.di=function(t){return Qo(n.fi,t,1)},this.ph.Gu.Jl=ls.bind(null,this.fi),[4,$o(this.ph,this.fi.Uh)]);case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.Hl=function(t){return new function(){this.Bs=new ot(function(t){return Fn(t)},jn),this.onlineState="Unknown",this.qs=new Set}},t.prototype.Gl=function(t){var e,n=Ns(t.bl.U),r=(e=t.bl,new Is(e));return function(t,e,n){return new Eo(t,r,n)}(t.credentials,0,n)},t.prototype.zl=function(t){var e,n,r,i,o,s=this;return e=this.ju,n=this.Ku,r=t.cs,i=function(t){return Qo(s.fi,t,0)},o=As.Ln()?new As:new Os,new xo(e,n,r,i,o)},t.prototype.Yl=function(t){return function(t,e,n,r,i,o,s){var a=new Xo(t,e,n,r,i,o);return s&&(a.qh=!0),a}(this.ju,this.ph,this.bh,this.Sh,t.Wl,t.Dh,!t.persistenceSettings.jl||!t.persistenceSettings.synchronizeTabs)},t.prototype.terminate=function(){return Co(this.ph)},t}(),Ps=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.Xl(this.observer.next,t)},t.prototype.error=function(t){this.observer.error&&this.Xl(this.observer.error,t)},t.prototype.Zl=function(){this.muted=!0},t.prototype.Xl=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),Rs=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new f(c.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+G(1,"element")+".")}(0,t);for(var e=0;e<t.length;++e)if(D("FieldPath","string",e,t[e]),0===t[e].length)throw new f(c.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new I(t)},js=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call(this,e)||this}return r.__extends(e,t),e.documentId=function(){return new e(I.v().R())},e.prototype.isEqual=function(t){if(!(t instanceof e))throw U("isEqual","FieldPath",1,t);return this.t_.isEqual(t.t_)},e}(Rs),Fs=new RegExp("[~\\*/\\[\\]]"),zs=function(t){this.e_=t},$s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){if(2!==t.s_)throw 1===t.s_?t.i_(this.e_+"() can only appear at the top level of your update data"):t.i_(this.e_+"() cannot be used with set() unless you pass {merge:true}");return t.We.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(zs);function Vs(t,e,n){return new Zs({s_:3,r_:e.settings.r_,methodName:t.e_,o_:n},e.U,e.serializer,e.ignoreUndefinedProperties)}var Bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){return new Ze(t.path,new Ue)},e.prototype.isEqual=function(t){return t instanceof e},e}(zs),qs=function(t){function e(e,n){var r;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=Vs(this,t,!0),n=this.a_.map(function(t){return oa(t,e)}),r=new We(n);return new Ze(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(zs),Us=function(t){function e(e,n){var r;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=Vs(this,t,!0),n=this.a_.map(function(t){return oa(t,e)}),r=new Ge(n);return new Ze(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(zs),Ws=function(t){function e(e,n){var r;return(r=t.call(this,e)||this).c_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=new Ye(t.serializer,me(t.serializer,this.c_));return new Ze(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(zs),Hs=function(){function t(t,e){if(N("GeoPoint",arguments,2),D("GeoPoint","number",1,t),D("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new f(c.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new f(c.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.u_=t,this.h_=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.u_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.u_===t.u_&&this.h_===t.h_},t.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},t.prototype.Y=function(t){return K(this.u_,t.u_)||K(this.h_,t.h_)},t}(),Gs=function(t){this.l_=t},Xs=/^__.*__$/,Ys=function(t,e,n){this.__=t,this.f_=e,this.d_=n},Ks=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[];return null!==this.We?n.push(new cn(t,this.data,this.We,e)):n.push(new ln(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new hn(t,this.fieldTransforms)),n},t}(),Qs=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[new cn(t,this.data,this.We,e)];return this.fieldTransforms.length>0&&n.push(new hn(t,this.fieldTransforms)),n},t}();function Js(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw y()}}var Zs=function(){function t(t,e,n,r,i,o){this.settings=t,this.U=e,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.m_(),this.fieldTransforms=i||[],this.We=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),t.prototype.T_=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},t.prototype.E_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.I_(t),r},t.prototype.A_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.m_(),r},t.prototype.R_=function(t){return this.T_({path:void 0,o_:!0})},t.prototype.i_=function(t){return fa(t,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},t.prototype.contains=function(t){return void 0!==this.We.find(function(e){return t.T(e)})||void 0!==this.fieldTransforms.find(function(e){return t.T(e.field)})},t.prototype.m_=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.I_(this.path.get(t))},t.prototype.I_=function(t){if(0===t.length)throw this.i_("Document fields must not be empty");if(Js(this.s_)&&Xs.test(t))throw this.i_('Document fields cannot begin and end with "__"')},t}(),ta=function(){function t(t,e,n){this.U=t,this.ignoreUndefinedProperties=e,this.serializer=n||Ns(t)}return t.prototype.P_=function(t,e,n,r){return void 0===r&&(r=!1),new Zs({s_:t,methodName:e,r_:n,path:I.P(),o_:!1,g_:r},this.U,this.serializer,this.ignoreUndefinedProperties)},t}();function ea(t,e,n,r,i,o){void 0===o&&(o={});var s=t.P_(o.merge||o.mergeFields?2:0,e,n,i);ua("Data must be an object, but it was:",s,r);var a,u,l=sa(r,s);if(o.merge)a=new Je(s.We),u=s.fieldTransforms;else if(o.mergeFields){for(var h=[],d=0,p=o.mergeFields;d<p.length;d++){var v=p[d],g=void 0;if(v instanceof Rs)g=v.t_;else{if("string"!=typeof v)throw y();g=ca(e,v,n)}if(!s.contains(g))throw new f(c.INVALID_ARGUMENT,"Field '"+g+"' is specified in your field mask but missing from your input data.");ha(h,g)||h.push(g)}a=new Je(h),u=s.fieldTransforms.filter(function(t){return a.Ye(t.field)})}else a=null,u=s.fieldTransforms;return new Ks(new mn(l),a,u)}function na(t,e,n,r){var i=t.P_(1,e,n);ua("Data must be an object, but it was:",i,r);var o=[],s=new yn;_(r,function(t,r){var a=ca(e,t,n),u=i.A_(a);if(r instanceof $s||r instanceof Gs&&r.l_ instanceof $s)o.push(a);else{var l=oa(r,u);null!=l&&(o.push(a),s.set(a,l))}});var a=new Je(o);return new Qs(s.Xe(),a,i.fieldTransforms)}function ra(t,e,n,r,i,o){var s=t.P_(1,e,n),a=[la(e,r,n)],u=[i];if(o.length%2!=0)throw new f(c.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var l=0;l<o.length;l+=2)a.push(la(e,o[l])),u.push(o[l+1]);for(var h=[],d=new yn,p=a.length-1;p>=0;--p)if(!ha(h,a[p])){var v=a[p],g=u[p],m=s.A_(v);if(g instanceof $s||g instanceof Gs&&g.l_ instanceof $s)h.push(v);else{var y=oa(g,m);null!=y&&(h.push(v),d.set(v,y))}}var b=new Je(h);return new Qs(d.Xe(),b,s.fieldTransforms)}function ia(t,e,n,r){return void 0===r&&(r=!1),oa(n,t.P_(r?4:3,e))}function oa(t,e){if(t instanceof Gs&&(t=t.l_),aa(t))return ua("Unsupported field value:",e,t),sa(t,e);if(t instanceof zs)return function(t,e){if(!Js(e.s_))throw e.i_(t.e_+"() can only be used with update() and set()");if(!e.path)throw e.i_(t.e_+"() is not currently supported inside arrays");var n=t.n_(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.We.push(e.path),t instanceof Array){if(e.settings.o_&&4!==e.s_)throw e.i_("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var s=oa(o[i],e.R_(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return me(e.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=st.fromDate(t);return{timestampValue:ye(e.serializer,n)}}if(t instanceof st){var r=new st(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:ye(e.serializer,r)}}if(t instanceof Hs)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof tt)return{bytesValue:be(e.serializer,t.q)};if(t instanceof Ys){var i=e.U,o=t.__;if(!o.isEqual(i))throw e.i_("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:Ee(t.__||e.U,t.f_.path)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.i_("Unsupported field value: "+V(t))}(t,e)}function sa(t,e){var n={};return x(t)?e.path&&e.path.length>0&&e.We.push(e.path):_(t,function(t,r){var i=oa(r,e.E_(t));null!=i&&(n[t]=i)}),{mapValue:{fields:n}}}function aa(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof st||t instanceof Hs||t instanceof tt||t instanceof Ys||t instanceof zs)}function ua(t,e,n){if(!aa(n)||!$(n)){var r=V(n);throw"an object"===r?e.i_(t+" a custom object"):e.i_(t+" "+r)}}function la(t,e,n){if(e instanceof Rs)return e.t_;if("string"==typeof e)return ca(t,e);throw fa("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function ca(t,e,n){try{return function(t){if(t.search(Fs)>=0)throw new f(c.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(js.bind.apply(js,r.__spreadArrays([void 0],t.split("."))))}catch(e){throw new f(c.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).t_}catch(e){throw fa((i=e)instanceof Error?i.message:i.toString(),t,!1,void 0,n)}var i}function fa(t,e,n,r,i){var o=r&&!r.m(),s=void 0!==i,a="Function "+e+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var u="";return(o||s)&&(u+=" (found",o&&(u+=" in field "+r),s&&(u+=" in document "+i),u+=")"),new f(c.INVALID_ARGUMENT,(a+=". ")+t+u)}function ha(t,e){return t.some(function(t){return t.isEqual(e)})}
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var da=function(){function t(t){this.Ku=t,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return t.prototype.v_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:if(this.S_(),this.mutations.length>0)throw new f(c.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=Ie(n.serializer)+"/documents",o={documents:e.map(function(t){return xe(n.serializer,t)})},[4,n.ku("BatchGetDocuments",i,o)];case 1:return s=r.sent(),a=new Map,s.forEach(function(t){var e=function(t,e){return"found"in e?function(t,e){b(!!e.found),e.found.name,e.found.updateTime;var n=Te(t,e.found.name),r=we(e.found.updateTime),i=new mn({mapValue:{fields:e.found.fields}});return new En(n,r,i,{})}(t,e):"missing"in e?function(t,e){b(!!e.missing),b(!!e.readTime);var n=Te(t,e.missing),r=we(e.readTime);return new _n(n,r)}(t,e):y()}(n.serializer,t);a.set(e.key.toString(),e)}),u=[],[2,(e.forEach(function(t){var e=a.get(t.toString());b(!!e),u.push(e)}),u)]}})})}(this.Ku,t)];case 1:return[2,((e=i.sent()).forEach(function(t){t instanceof _n||t instanceof En?n.D_(t):y()}),e)]}})})},t.prototype.set=function(t,e){this.write(e.w_(t,this.Ge(t))),this.b_.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.w_(t,this.C_(t)))}catch(t){this.p_=t}this.b_.add(t.toString())},t.prototype.delete=function(t){this.write([new vn(t,this.Ge(t))]),this.b_.add(t.toString())},t.prototype.commit=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){switch(n.label){case 0:if(this.S_(),this.p_)throw this.p_;return t=this.y_,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var r=A.D(n);e.mutations.push(new gn(r,e.Ge(r)))}),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=Ie(n.serializer)+"/documents",o={writes:e.map(function(t){return Ne(n.serializer,t)})},[4,n.$u("Commit",i,o)];case 1:return r.sent(),[2]}})})}(this.Ku,this.mutations)];case 1:return n.sent(),this.V_=!0,[2]}})})},t.prototype.D_=function(t){var e;if(t instanceof En)e=t.version;else{if(!(t instanceof _n))throw y();e=at.min()}var n=this.y_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new f(c.ABORTED,"Document version changed between two reads.")}else this.y_.set(t.key.toString(),e)},t.prototype.Ge=function(t){var e=this.y_.get(t.toString());return!this.b_.has(t.toString())&&e?tn.updateTime(e):tn.ze()},t.prototype.C_=function(t){var e=this.y_.get(t.toString());if(!this.b_.has(t.toString())&&e){if(e.isEqual(at.min()))throw new f(c.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return tn.updateTime(e)}return tn.exists(!0)},t.prototype.write=function(t){this.S_(),this.mutations=this.mutations.concat(t)},t.prototype.S_=function(){},t}(),pa=function(){function t(t,e,n,r){this.cs=t,this.Ku=e,this.updateFunction=n,this.ls=r,this.N_=5,this.ys=new or(this.cs,"transaction_retry")}return t.prototype.run=function(){this.F_()},t.prototype.F_=function(){var t=this;this.ys.gn(function(){return r.__awaiter(t,void 0,void 0,function(){var t,e,n=this;return r.__generator(this,function(r){return t=new da(this.Ku),(e=this.x_(t))&&e.then(function(e){n.cs.ws(function(){return t.commit().then(function(){n.ls.resolve(e)}).catch(function(t){n.k_(t)})})}).catch(function(t){n.k_(t)}),[2]})})})},t.prototype.x_=function(t){try{var e=this.updateFunction(t);return!ut(e)&&e.catch&&e.then?e:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.ls.reject(t),null}},t.prototype.k_=function(t){var e=this;this.N_>0&&this.M_(t)?(this.N_-=1,this.cs.ws(function(){return e.F_(),Promise.resolve()})):this.ls.reject(t)},t.prototype.M_=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!bt(e)}return!1},t}(),va=function(){function t(t,e){this.credentials=t,this.cs=e,this.clientId=Y.k(),this.O_=new ir}return t.prototype.start=function(t,e,n,i){var o=this;this.L_(),this.bl=t;var s=new ir,a=!1;return this.credentials.Hc(function(t){if(!a)return a=!0,p("FirestoreClient","Initializing. user=",t.uid),o.B_(e,n,i,t,s).then(o.O_.resolve,o.O_.reject);o.cs.Cs(function(){return function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:return(n=w(t)).cs.xs(),p("RemoteStore","RemoteStore received new credentials"),i=Do(n),n.Yu.add(3),[4,So(n)];case 1:return r.sent(),i&&n.th.set("Unknown"),[4,n.Gu.Jl(e)];case 2:return r.sent(),n.Yu.delete(3),[4,To(n)];case 3:return r.sent(),[2]}})})}(o.ph,t)})}),this.cs.ws(function(){return o.O_.promise}),s.promise},t.prototype.enableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue(function(){return t.persistence.tc(!0),function(t){var e=w(t);return e.Yu.delete(0),To(e)}(t.ph)})},t.prototype.B_=function(t,e,n,i,o){return r.__awaiter(this,void 0,void 0,function(){var s,a,u=this;return r.__generator(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),s={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:i,Dh:100,persistenceSettings:n},[4,t.initialize(s)];case 1:return l.sent(),[4,e.initialize(t,s)];case 2:return l.sent(),this.persistence=t.persistence,this.Sh=t.Sh,this.ju=t.ju,this.ql=t.ql,this.Ku=e.Ku,this.ph=e.ph,this.fi=e.fi,this.q_=e.bh,this.q_.Us=function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u;return r.__generator(this,function(r){switch(r.label){case 0:return n=vs(t),(s=n.Nh.get(e))?(i=s.targetId,n.Sh.Oi(i),o=s.view.yh(),[3,4]):[3,1];case 1:return[4,oo(n.ju,Dn(e))];case 2:return a=r.sent(),u=n.Sh.Oi(a.targetId),i=a.targetId,[4,Yo(n,e,i,"current"===u)];case 3:o=r.sent(),n.Uh&&Io(n.ph,a),r.label=4;case 4:return[2,o]}})})}.bind(null,this.fi),this.q_.js=function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=n.Nh.get(e),(o=n.Fh.get(i.targetId)).length>1?[2,(n.Fh.set(i.targetId,o.filter(function(t){return!jn(t,e)})),void n.Nh.delete(e))]:n.Uh?(n.Sh.Bi(i.targetId),n.Sh.Fi(i.targetId)?[3,2]:[4,so(n.ju,i.targetId,!1).then(function(){n.Sh.Ui(i.targetId),Ao(n.ph,i.targetId),rs(n,i.targetId)}).catch(co)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return rs(n,i.targetId),[4,so(n.ju,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})}.bind(null,this.fi),this.persistence.Za(function(){return r.__awaiter(u,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}})})}),o.resolve(),[3,4];case 3:if(a=l.sent(),o.reject(a),!this.U_(a))throw a;return[2,this.B_(new Ls,new Ms,{jl:!1},i,o)];case 4:return[2]}})})},t.prototype.U_=function(t){return"FirebaseError"===t.name?t.code===c.FAILED_PRECONDITION||t.code===c.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.L_=function(){if(this.cs.ps)throw new f(c.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.disableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue(function(){return t.persistence.tc(!1),function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return(e=w(t)).Yu.add(0),[4,So(e)];case 1:return n.sent(),e.th.set("Offline"),[2]}})})}(t.ph)})},t.prototype.terminate=function(){var t=this;this.cs.Ds();var e=new ir;return this.cs.bs(function(){return r.__awaiter(t,void 0,void 0,function(){var t,n;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,Co(this.ph)];case 1:return r.sent(),[4,this.Sh.Di()];case 2:return r.sent(),[4,this.persistence.Di()];case 3:return r.sent(),this.credentials.Yc(),e.resolve(),[3,5];case 4:return t=r.sent(),n=wr(t,"Failed to shutdown persistence"),e.reject(n),[3,5];case 5:return[2]}})})}),e.promise},t.prototype.waitForPendingWrites=function(){var t=this;this.L_();var e=new ir;return this.cs.ws(function(){return function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,s,a;return r.__generator(this,function(r){switch(r.label){case 0:Do((n=w(t)).ph)||p("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,function(t){var e=w(n.ju);return e.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return e.Sr.qo(t)})}()];case 2:return-1===(i=r.sent())?[2,void e.resolve()]:((o=n.Lh.get(i)||[]).push(e),n.Lh.set(i,o),[3,4]);case 3:return s=r.sent(),a=wr(s,"Initialization of waitForPendingWrites() operation failed"),e.reject(a),[3,4];case 4:return[2]}})})}(t.fi,e)}),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.L_();var i=new Ps(n),o=new Sr(t,i,e);return this.cs.ws(function(){return _r(r.q_,o)}),function(){i.Zl(),r.cs.ws(function(){return xr(r.q_,o)})}},t.prototype.Q_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new ir,[2,(this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("read document","readonly",function(t){return n.Cc.Cr(t,e)})}(t,e)];case 1:return(i=r.sent())instanceof En?n.resolve(i):i instanceof _n?n.resolve(null):n.reject(new f(c.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return o=r.sent(),s=wr(o,"Failed to get document '"+e+" from cache"),n.reject(s),[3,3];case 3:return[2]}})})}(n.ju,t,e)}),e.promise)]}})})},t.prototype.W_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new ir,[2,(this.cs.ws(function(){return function(t,e,n,r,i){var o=new Ps({next:function(o){e.ws(function(){return xr(t,s)});var a=o.docs.has(n);!a&&o.fromCache?i.reject(new f(c.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&o.fromCache&&r&&"server"===r.source?i.reject(new f(c.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),s=new Sr(Cn(n.path),o,{includeMetadataChanges:!0,Xs:!0});return _r(t,s)}(i.q_,i.cs,t,e,n)}),n.promise)]}})})},t.prototype.j_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new ir,[2,(this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a,u,l;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,ao(t,e,!0)];case 1:return i=r.sent(),o=new Wo(e,i.Fc),s=o.wh(i.documents),a=o.yr(s,!1),n.resolve(a.snapshot),[3,3];case 2:return u=r.sent(),l=wr(u,"Failed to execute query '"+e+" against cache"),n.reject(l),[3,3];case 3:return[2]}})})}(n.ju,t,e)}),e.promise)]}})})},t.prototype.K_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new ir,[2,(this.cs.ws(function(){return function(t,e,n,r,i){var o=new Ps({next:function(n){e.ws(function(){return xr(t,s)}),n.fromCache&&"server"===r.source?i.reject(new f(c.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),s=new Sr(n,o,{includeMetadataChanges:!0,Xs:!0});return _r(t,s)}(i.q_,i.cs,t,e,n)}),n.promise)]}})})},t.prototype.write=function(t){var e=this;this.L_();var n=new ir;return this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,s,a;return r.__generator(this,function(r){switch(r.label){case 0:i=gs(t),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,function(t,e){var n,r=w(t),i=st.now(),o=e.reduce(function(t,e){return t.add(e.key)},Dt());return r.persistence.runTransaction("Locally write mutations","readwrite",function(t){return r.Cc.kr(t,o).next(function(o){n=o;for(var s=[],a=0,u=e;a<u.length;a++){var l=u[a],c=sn(l,n.get(l.key));null!=c&&s.push(new cn(l.key,c,bn(c.proto.mapValue),tn.exists(!0)))}return r.Sr.ko(t,i,s,e)})}).then(function(t){var e=t.lr(n);return{batchId:t.batchId,wr:e}})}(i.ju,e)];case 2:return o=r.sent(),i.Sh.xi(o.batchId),function(t,e,n){var r=t.Oh[t.currentUser.ti()];r||(r=new Et(K)),r=r.ot(e,n),t.Oh[t.currentUser.ti()]=r}(i,o.batchId,n),[4,us(i,o.wr)];case 3:return r.sent(),[4,jo(i.ph)];case 4:return r.sent(),[3,6];case 5:return s=r.sent(),a=wr(s,"Failed to persist write"),n.reject(a),[3,6];case 6:return[2]}})})}(e.fi,t,n)}),n.promise},t.prototype.U=function(){return this.bl.U},t.prototype.G_=function(t){var e=this;this.L_();var n=new Ps(t);return this.cs.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){return[2,function(t,e){w(t).qs.add(e),e.next()}(this.q_,n)]})})}),function(){n.Zl(),e.cs.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){return[2,function(t,e){w(t).qs.delete(e)}(this.q_,n)]})})})}},Object.defineProperty(t.prototype,"z_",{get:function(){return this.cs.ps},enumerable:!1,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.L_();var n=new ir;return this.cs.ws(function(){return new pa(e.cs,e.Ku,t,n).run(),Promise.resolve()}),n.promise},t}();
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ga(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var ma=function(){function t(t,e,n,r,i){this.U=t,this.timestampsInSnapshots=e,this.H_=n,this.Y_=r,this.J_=i}return t.prototype.X_=function(t){switch(Qt(t)){case 0:return null;case 1:return t.booleanValue;case 2:return ie(t.integerValue||t.doubleValue);case 3:return this.Z_(t.timestampValue);case 4:return this.tf(t);case 5:return t.stringValue;case 6:return this.J_(oe(t.bytesValue));case 7:return this.ef(t.referenceValue);case 8:return this.nf(t.geoPointValue);case 9:return this.sf(t.arrayValue);case 10:return this.if(t.mapValue);default:throw y()}},t.prototype.if=function(t){var e=this,n={};return _(t.fields||{},function(t,r){n[t]=e.X_(r)}),n},t.prototype.nf=function(t){return new Hs(ie(t.latitude),ie(t.longitude))},t.prototype.sf=function(t){var e=this;return(t.values||[]).map(function(t){return e.X_(t)})},t.prototype.tf=function(t){switch(this.H_){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return Xt(n)?t(n):n}(t);return null==e?null:this.X_(e);case"estimate":return this.Z_(Yt(t));default:return null}},t.prototype.Z_=function(t){var e=re(t),n=new st(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.ef=function(t){var e=S.g(t);b(ze(e));var n=new it(e.get(1),e.get(3)),r=new A(e.u(5));return n.isEqual(this.U)||v("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.U.projectId+"/"+this.U.database+") instead."),this.Y_(r)},t}(),ya=Xr.ho,ba=function(){function t(t){var e,n,r,i,o;if(void 0===t.host){if(void 0!==t.ssl)throw new f(c.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else P("settings","non-empty string","host",t.host),this.host=t.host,R("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(q("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),R("settings","object","credentials",t.credentials),this.credentials=t.credentials,R("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),R("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?v("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&v("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(r=t.ignoreUndefinedProperties)&&void 0!==r&&r,R("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Xr._o;else{if(t.cacheSizeBytes!==ya&&t.cacheSizeBytes<Xr.lo)throw new f(c.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Xr.lo);this.cacheSizeBytes=t.cacheSizeBytes}R("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(i=t.experimentalForceLongPolling)&&void 0!==i&&i,R("settings","boolean","experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(o=t.experimentalAutoDetectLongPolling)&&void 0!==o&&o,function(t,e,n,r){if(!0===e&&!0===r)throw new f(c.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,t.experimentalForceLongPolling,0,t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),wa=function(){function t(e,n,i,o){var s=this;if(void 0===i&&(i=new Ls),void 0===o&&(o=new Ms),this.rf=i,this.af=o,this.cf=null,this.uf=new br,this.INTERNAL={delete:function(){return r.__awaiter(s,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return t.sent(),[2]}})})}},"object"==typeof e.options){var a=e;this.cf=a,this.__=t._f(a),this.ff=a.name,this.df=new vo(n)}else{var u=e;if(!u.projectId)throw new f(c.INVALID_ARGUMENT,"Must provide projectId");this.__=new it(u.projectId,u.database),this.ff="[DEFAULT]",this.df=new po}this.wf=new ba({})}return Object.defineProperty(t.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new ta(this.__,this.wf.ignoreUndefinedProperties)),this.Tf},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){N("Firestore.settings",arguments,1),D("Firestore.settings","object",1,t),t.merge&&delete(t=Object.assign(Object.assign({},this.wf),t)).merge;var e=new ba(t);if(this.lf&&!this.wf.isEqual(e))throw new f(c.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.wf=e,void 0!==e.credentials&&(this.df=function(t){if(!t)return new po;switch(t.type){case"gapi":var e=t.client;return b(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new mo(e,t.sessionIndex||"0");case"provider":return t.client;default:throw new f(c.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},t.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.lf)throw new f(c.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1,i=!1;if(t&&(void 0!==t.experimentalTabSynchronization&&v("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n,i=!!t.experimentalForceOwningTab&&t.experimentalForceOwningTab,r&&i))throw new f(c.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:r,ka:i})},t.prototype.clearPersistence=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){if(void 0!==this.lf&&!this.lf.z_)throw new f(c.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return t=new ir,[2,(this.uf.bs(function(){return r.__awaiter(e,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return n.sent(),t.resolve(),[3,3];case 2:return e=n.sent(),t.reject(e),[3,3];case 3:return[2]}})})}),t.promise)]})})},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"If",{get:function(){return this.hf(),this.lf.z_},enumerable:!1,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){if(this.hf(),ga(t))return this.lf.G_(t);D("Firestore.onSnapshotsInSync","function",1,t);var e={next:t};return this.lf.G_(e)},t.prototype.hf=function(){return this.lf||this.Ef(new Ls,new Ms,{jl:!1}),this.lf},t.prototype.Af=function(){return new function(t,e,n,r,i,o){this.U=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i,this.W=o}(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},t.prototype.Ef=function(t,e,n){var r=this.Af();return this.lf=new va(this.df,this.uf),this.lf.start(r,t,e,n)},t._f=function(t){if(e=t.options,!Object.prototype.hasOwnProperty.call(e,"projectId"))throw new f(c.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e,n=t.options.projectId;if(!n||"string"!=typeof n)throw new f(c.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new it(n)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.cf)throw new f(c.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){return N("Firestore.collection",arguments,1),D("Firestore.collection","non-empty string",1,t),this.hf(),new Da(S.g(t),this,null)},t.prototype.doc=function(t){return N("Firestore.doc",arguments,1),D("Firestore.doc","non-empty string",1,t),this.hf(),xa.Rf(S.g(t),this,null)},t.prototype.collectionGroup=function(t){if(N("Firestore.collectionGroup",arguments,1),D("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new f(c.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new ka(function(t){return new Tn(S.P(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return N("Firestore.runTransaction",arguments,1),D("Firestore.runTransaction","function",1,t),this.hf().transaction(function(n){return t(new Ea(e,n))})},t.prototype.batch=function(){return this.hf(),new _a(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(d()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.ERROR:return"error";case o.LogLevel.SILENT:return"silent";case o.LogLevel.WARN:return"warn";case o.LogLevel.INFO:return"info";case o.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){var e;N("Firestore.setLogLevel",arguments,1),F("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),e=t,h.setLogLevel(e)},t.prototype.gf=function(){return this.wf.timestampsInSnapshots},t.prototype.Pf=function(){return this.wf},t}(),Ea=function(){function t(t,e){this.yf=t,this.Vf=e}return t.prototype.get=function(t){var e=this;N("Transaction.get",arguments,1);var n=ja("Transaction.get",t,this.yf);return this.Vf.v_([n.f_]).then(function(t){if(!t||1!==t.length)return y();var r=t[0];if(r instanceof _n)return new Sa(e.yf,n.f_,null,!1,!1,n.d_);if(r instanceof En)return new Sa(e.yf,n.f_,r,!1,!1,n.d_);throw y()})},t.prototype.set=function(t,e,n){L("Transaction.set",arguments,2,3);var r=ja("Transaction.set",t,this.yf);n=Ma("Transaction.set",n);var i=Fa(r.d_,e,n),o=ea(this.yf.mf,"Transaction.set",r.f_,i,null!==r.d_,n);return this.Vf.set(r.f_,o),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return"string"==typeof e||e instanceof js?(k("Transaction.update",arguments,3),r=ja("Transaction.update",t,this.yf),i=ra(this.yf.mf,"Transaction.update",r.f_,e,n,o)):(N("Transaction.update",arguments,2),r=ja("Transaction.update",t,this.yf),i=na(this.yf.mf,"Transaction.update",r.f_,e)),this.Vf.update(r.f_,i),this},t.prototype.delete=function(t){N("Transaction.delete",arguments,1);var e=ja("Transaction.delete",t,this.yf);return this.Vf.delete(e.f_),this},t}(),_a=function(){function t(t){this.yf=t,this.pf=[],this.bf=!1}return t.prototype.set=function(t,e,n){L("WriteBatch.set",arguments,2,3),this.vf();var r=ja("WriteBatch.set",t,this.yf);n=Ma("WriteBatch.set",n);var i=Fa(r.d_,e,n),o=ea(this.yf.mf,"WriteBatch.set",r.f_,i,null!==r.d_,n);return this.pf=this.pf.concat(o.w_(r.f_,tn.ze())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return this.vf(),"string"==typeof e||e instanceof js?(k("WriteBatch.update",arguments,3),r=ja("WriteBatch.update",t,this.yf),i=ra(this.yf.mf,"WriteBatch.update",r.f_,e,n,o)):(N("WriteBatch.update",arguments,2),r=ja("WriteBatch.update",t,this.yf),i=na(this.yf.mf,"WriteBatch.update",r.f_,e)),this.pf=this.pf.concat(i.w_(r.f_,tn.exists(!0))),this},t.prototype.delete=function(t){N("WriteBatch.delete",arguments,1),this.vf();var e=ja("WriteBatch.delete",t,this.yf);return this.pf=this.pf.concat(new vn(e.f_,tn.ze())),this},t.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},t.prototype.vf=function(){if(this.bf)throw new f(c.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),xa=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.__,e,r)||this).f_=e,i.firestore=n,i.d_=r,i.lf=i.firestore.hf(),i}return r.__extends(e,t),e.Rf=function(t,n,r){if(t.length%2!=0)throw new f(c.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.R()+" has "+t.length);return new e(new A(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Da(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(N("DocumentReference.collection",arguments,1),D("DocumentReference.collection","non-empty string",1,t),!t)throw new f(c.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=S.g(t);return new Da(this.f_.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw U("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.f_.isEqual(t.f_)&&this.d_===t.d_},e.prototype.set=function(t,e){L("DocumentReference.set",arguments,1,2),e=Ma("DocumentReference.set",e);var n=Fa(this.d_,t,e),r=ea(this.firestore.mf,"DocumentReference.set",this.f_,n,null!==this.d_,e);return this.lf.write(r.w_(this.f_,tn.ze()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof js?(k("DocumentReference.update",arguments,2),n=ra(this.firestore.mf,"DocumentReference.update",this.f_,t,e,r)):(N("DocumentReference.update",arguments,1),n=na(this.firestore.mf,"DocumentReference.update",this.f_,t)),this.lf.write(n.w_(this.f_,tn.exists(!0)))},e.prototype.delete=function(){return N("DocumentReference.delete",arguments,0),this.lf.write([new vn(this.f_,tn.ze())])},e.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];L("DocumentReference.onSnapshot",arguments,1,4);var s={includeMetadataChanges:!1},a=0;"object"!=typeof i[a]||ga(i[a])||(q("DocumentReference.onSnapshot",s=i[a],["includeMetadataChanges"]),R("DocumentReference.onSnapshot","boolean","includeMetadataChanges",s.includeMetadataChanges),a++);var u={includeMetadataChanges:s.includeMetadataChanges};if(ga(i[a])){var l=i[a];i[a]=null===(t=l.next)||void 0===t?void 0:t.bind(l),i[a+1]=null===(e=l.error)||void 0===e?void 0:e.bind(l),i[a+2]=null===(n=l.complete)||void 0===n?void 0:n.bind(l)}else D("DocumentReference.onSnapshot","function",a,i[a]),M("DocumentReference.onSnapshot","function",a+1,i[a+1]),M("DocumentReference.onSnapshot","function",a+2,i[a+2]);var c={next:function(t){i[a]&&i[a](r.Sf(t))},error:i[a+1],complete:i[a+2]};return this.lf.listen(Cn(this.f_.path),u,c)},e.prototype.get=function(t){var e=this;L("DocumentReference.get",arguments,0,1),Ra("DocumentReference.get",t);var n=this.firestore.hf();return t&&"cache"===t.source?n.Q_(this.f_).then(function(t){return new Sa(e.firestore,e.f_,t,!0,t instanceof En&&t.Je,e.d_)}):n.W_(this.f_,t).then(function(t){return e.Sf(t)})},e.prototype.withConverter=function(t){return new e(this.f_,this.firestore,t)},e.prototype.Sf=function(t){var e=t.docs.get(this.f_);return new Sa(this.firestore,this.f_,e,t.fromCache,t.hasPendingWrites,this.d_)},e}(Ys),Ta=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),Sa=function(){function t(t,e,n,r,i,o){this.yf=t,this.f_=e,this.Df=n,this.Cf=r,this.Nf=i,this.d_=o}return t.prototype.data=function(t){var e=this;if(L("DocumentSnapshot.data",arguments,0,1),t=Pa("DocumentSnapshot.data",t),this.Df){if(this.d_){var n=new Ca(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(n,t)}return new ma(this.yf.__,this.yf.gf(),t.serverTimestamps||"none",function(t){return new xa(t,e.yf,null)},function(t){return new rt(t)}).X_(this.Df.rn())}},t.prototype.get=function(t,e){var n=this;if(L("DocumentSnapshot.get",arguments,1,2),e=Pa("DocumentSnapshot.get",e),this.Df){var r=this.Df.data().field(la("DocumentSnapshot.get",t,this.f_));if(null!==r)return new ma(this.yf.__,this.yf.gf(),e.serverTimestamps||"none",function(t){return new xa(t,n.yf,n.d_)},function(t){return new rt(t)}).X_(r)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new xa(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new Ta(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw U("isEqual","DocumentSnapshot",1,e);return this.yf===e.yf&&this.Cf===e.Cf&&this.f_.isEqual(e.f_)&&(null===this.Df?null===e.Df:this.Df.isEqual(e.Df))&&this.d_===e.d_},t}(),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(Sa);
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ia(t,e,n){if("string"==typeof n){if(""===n)throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!kn(e)&&-1!==n.indexOf("/"))throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(S.g(n));if(!A.F(r))throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return se(t,new A(r))}if(n instanceof Ys)return se(t,n.f_);throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+V(n)+".")}function Aa(t,e){if(!Array.isArray(t)||0===t.length)throw new f(c.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new f(c.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===e||"array-contains-any"===e){if(t.indexOf(null)>=0)throw new f(c.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter(function(t){return Number.isNaN(t)}).length>0)throw new f(c.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")}}function Oa(t,e,n){if(!n.isEqual(e))throw new f(c.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function Na(t){if(An(t)&&0===t.on.length)throw new f(c.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var ka=function(){function t(t,e,n){this.Ff=t,this.firestore=e,this.d_=n}return t.prototype.where=function(e,n,r){N("Query.where",arguments,3),B("Query.where",3,r);var i=F("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,n),o=la("Query.where",e),s=function(t,e,n,r,i,o,s){var a;if(i.p()){if("array-contains"===o||"array-contains-any"===o)throw new f(c.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){Aa(s,o);for(var u=[],l=0,h=s;l<h.length;l++){var d=h[l];u.push(Ia(r,t,d))}a={arrayValue:{values:u}}}else a=Ia(r,t,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||Aa(s,o),a=ia(n,e,s,"in"===o||"not-in"===o);var p=Bn.create(i,o,a);return function(t,e){if(e.hn()){var n=Nn(t);if(null!==n&&!n.isEqual(e.field))throw new f(c.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=On(t);null!==r&&Oa(0,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(e.op){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}());if(null!==i)throw i===e.op?new f(c.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new f(c.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,p),p}(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,o,i,r);return new t(function(t,e){var n=t.filters.concat([e]);return new Tn(t.path,t.collectionGroup,t.on.slice(),n,t.limit,t.an,t.startAt,t.endAt)}(this.Ff,s),this.firestore,this.d_)},t.prototype.orderBy=function(e,n){var r;if(L("Query.orderBy",arguments,1,2),M("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new f(c.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=la("Query.orderBy",e),o=function(t,e,n){if(null!==t.startAt)throw new f(c.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new f(c.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new er(e,n);return function(t,e){if(null===On(t)){var n=Nn(t);null!==n&&Oa(0,n,e.field)}}(t,r),r}(this.Ff,i,r);return new t(function(t,e){var n=t.on.concat([e]);return new Tn(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(this.Ff,o),this.firestore,this.d_)},t.prototype.limit=function(e){return N("Query.limit",arguments,1),D("Query.limit","number",1,e),W("Query.limit",1,e),new t(Mn(this.Ff,e,"F"),this.firestore,this.d_)},t.prototype.limitToLast=function(e){return N("Query.limitToLast",arguments,1),D("Query.limitToLast","number",1,e),W("Query.limitToLast",1,e),new t(Mn(this.Ff,e,"L"),this.firestore,this.d_)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];k("Query.startAt",arguments,1);var i=this.xf("Query.startAt",e,n,!0);return new t(Pn(this.Ff,i),this.firestore,this.d_)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];k("Query.startAfter",arguments,1);var i=this.xf("Query.startAfter",e,n,!1);return new t(Pn(this.Ff,i),this.firestore,this.d_)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];k("Query.endBefore",arguments,1);var i=this.xf("Query.endBefore",e,n,!0);return new t(Rn(this.Ff,i),this.firestore,this.d_)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];k("Query.endAt",arguments,1);var i=this.xf("Query.endAt",e,n,!1);return new t(Rn(this.Ff,i),this.firestore,this.d_)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw U("isEqual","Query",1,e);return this.firestore===e.firestore&&jn(this.Ff,e.Ff)&&this.d_===e.d_},t.prototype.withConverter=function(e){return new t(this.Ff,this.firestore,e)},t.prototype.xf=function(t,e,n,i){if(B(t,1,e),e instanceof Sa)return N(t,r.__spreadArrays([e],n),1),function(t,e,n,r,i){if(!r)throw new f(c.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,a=Ln(t);s<a.length;s++){var u=a[s];if(u.field.p())o.push(se(e,r.key));else{var l=r.field(u.field);if(Xt(l))throw new f(c.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===l){var h=u.field.R();throw new f(c.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+h+"' (used as the orderBy) does not exist.")}o.push(l)}}return new Qn(o,i)}(this.Ff,this.firestore.__,t,e.Df,i);var o=[e].concat(n);return function(t,e,n,r,i,o){var s=t.on;if(i.length>s.length)throw new f(c.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],u=0;u<i.length;u++){var l=i[u];if(s[u].field.p()){if("string"!=typeof l)throw new f(c.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof l);if(!kn(t)&&-1!==l.indexOf("/"))throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+l+"' contains a slash.");var h=t.path.child(S.g(l));if(!A.F(h))throw new f(c.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+h+"' is not because it contains an odd number of segments.");var d=new A(h);a.push(se(e,d))}else{var p=ia(n,r,l);a.push(p)}}return new Qn(a,o)}(this.Ff,this.firestore.__,this.firestore.mf,t,o,i)},t.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];L("Query.onSnapshot",arguments,1,4);var s={},a=0;if("object"!=typeof i[a]||ga(i[a])||(q("Query.onSnapshot",s=i[a],["includeMetadataChanges"]),R("Query.onSnapshot","boolean","includeMetadataChanges",s.includeMetadataChanges),a++),ga(i[a])){var u=i[a];i[a]=null===(t=u.next)||void 0===t?void 0:t.bind(u),i[a+1]=null===(e=u.error)||void 0===e?void 0:e.bind(u),i[a+2]=null===(n=u.complete)||void 0===n?void 0:n.bind(u)}else D("Query.onSnapshot","function",a,i[a]),M("Query.onSnapshot","function",a+1,i[a+1]),M("Query.onSnapshot","function",a+2,i[a+2]);var l={next:function(t){i[a]&&i[a](new La(r.firestore,r.Ff,t,r.d_))},error:i[a+1],complete:i[a+2]};return Na(this.Ff),this.firestore.hf().listen(this.Ff,s,l)},t.prototype.get=function(t){var e=this;L("Query.get",arguments,0,1),Ra("Query.get",t),Na(this.Ff);var n=this.firestore.hf();return(t&&"cache"===t.source?n.j_(this.Ff):n.K_(this.Ff,t)).then(function(t){return new La(e.firestore,e.Ff,t,e.d_)})},t}(),La=function(){function t(t,e,n,r){this.yf=t,this.$f=e,this.kf=n,this.d_=r,this.Mf=null,this.Of=null,this.metadata=new Ta(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;L("QuerySnapshot.forEach",arguments,1,2),D("QuerySnapshot.forEach","function",1,t),this.kf.docs.forEach(function(r){t.call(e,n.Lf(r,n.metadata.fromCache,n.kf.Wt.has(r.key)))})},Object.defineProperty(t.prototype,"query",{get:function(){return new ka(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){t&&(q("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),R("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.kf.Kt)throw new f(c.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===e||(this.Mf=function(t,e,n){if(t.Qt.m()){var r=0;return t.docChanges.map(function(e){var i=n(e.doc,t.fromCache,t.Wt.has(e.doc.key));return e.doc,{type:"added",doc:i,oldIndex:-1,newIndex:r++}})}var i=t.Qt;return t.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var r=n(e.doc,t.fromCache,t.Wt.has(e.doc.key)),o=-1,s=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(s=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:function(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return y()}}(e.type),doc:r,oldIndex:o,newIndex:s}})}(this.kf,e,this.Lf.bind(this)),this.Of=e),this.Mf},t.prototype.isEqual=function(e){if(!(e instanceof t))throw U("isEqual","QuerySnapshot",1,e);return this.yf===e.yf&&jn(this.$f,e.$f)&&this.kf.isEqual(e.kf)&&this.d_===e.d_},t.prototype.Lf=function(t,e,n){return new Ca(this.yf,t.key,t,e,n,this.d_)},t}(),Da=function(t){function e(e,n,r){var i;if((i=t.call(this,Cn(e),n,r)||this).Bf=e,e.length%2!=1)throw new f(c.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.R()+" has "+e.length);return i}return r.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.Ff.path.h();return t.m()?null:new xa(new A(t),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Ff.path.R()},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){L("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=Y.k()),D("CollectionReference.doc","non-empty string",1,t);var e=S.g(t);return xa.Rf(this.Ff.path.child(e),this.firestore,this.d_)},e.prototype.add=function(t){N("CollectionReference.add",arguments,1);var e=this.d_?this.d_.toFirestore(t):t;D("CollectionReference.add","object",1,e);var n=this.doc();return new xa(n.f_,this.firestore,null).set(e).then(function(){return n})},e.prototype.withConverter=function(t){return new e(this.Bf,this.firestore,t)},e}(ka);function Ma(t,e){if(void 0===e)return{merge:!1};if(q(t,e,["merge","mergeFields"]),R(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+V(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new f(c.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+V(r[o]))}(t,"mergeFields",0,r,function(t){return"string"==typeof t||t instanceof js})}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new f(c.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Pa(t,e){return void 0===e?{}:(q(t,e,["serverTimestamps"]),j(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function Ra(t,e){M(t,"object",1,e),e&&(q(t,e,["source"]),j(t,0,"source",e.source,["default","server","cache"]))}function ja(t,e,n){if(e instanceof Ys){if(e.firestore!==n)throw new f(c.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw U(t,"DocumentReference",1,e)}function Fa(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.serverTimestamp=function(){O("FieldValue.serverTimestamp",arguments);var t=new Bs("serverTimestamp");return t.e_="FieldValue.serverTimestamp",new e(t)},e.delete=function(){O("FieldValue.delete",arguments);var t=new $s("deleteField");return t.e_="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];k("FieldValue.arrayUnion",arguments,1);var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return k("arrayUnion()",arguments,1),new qs("arrayUnion",t)}.apply(void 0,t);return r.e_="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];k("FieldValue.arrayRemove",arguments,1);var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return k("arrayRemove()",arguments,1),new Us("arrayRemove",t)}.apply(void 0,t);return r.e_="FieldValue.arrayRemove",new e(r)},e.increment=function(t){D("FieldValue.increment","number",1,t),N("FieldValue.increment",arguments,1);var n=function(t){return new Ws("increment",t)}(t);return n.e_="FieldValue.increment",new e(n)},e.prototype.isEqual=function(t){return this.l_.isEqual(t.l_)},e}(Gs),$a={Firestore:wa,GeoPoint:Hs,Timestamp:st,Blob:rt,Transaction:Ea,WriteBatch:_a,DocumentReference:xa,DocumentSnapshot:Sa,Query:ka,QueryDocumentSnapshot:Ca,QuerySnapshot:La,CollectionReference:Da,FieldPath:js,FieldValue:za,setLogLevel:wa.setLogLevel,CACHE_SIZE_UNLIMITED:ya};
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Va(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",function(t){return function(t,e){var n=new Ms,r=new Ds(n);return new wa(t,e,r,n)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))},"PUBLIC").setServiceProps(Object.assign({},$a)))}(t),t.registerVersion("@firebase/firestore","1.18.0")}Va(l.default),e.__PRIVATE_registerFirestore=Va}).call(this,n(429))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=a(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f<e;)u&&u[f].run();f=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ErrorCode",function(){return Qn}),n.d(e,"EventType",function(){return Jn}),n.d(e,"WebChannel",function(){return Zn}),n.d(e,"XhrIo",function(){return tr}),n.d(e,"createWebChannelTransport",function(){return Kn});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var o,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},a=a||{},u=s||self;function l(){}function c(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function f(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function g(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function m(t,e,n){return(m=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:g).apply(null,arguments)}function y(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var b=Date.now;function w(t,e){function n(){}n.prototype=e.prototype,t.S=e.prototype,t.prototype=new n,t.prototype.constructor=t}function E(){this.j=this.j,this.i=this.i}E.prototype.j=!1,E.prototype.ja=function(){if(!this.j&&(this.j=!0,this.G(),0))(function(t){Object.prototype.hasOwnProperty.call(t,d)&&t[d]||(t[d]=++p)})(this)},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var _=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},x=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"==typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function T(t){return Array.prototype.concat.apply([],arguments)}function S(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function C(t){return/^[\s\xa0]*$/.test(t)}var I,A=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function O(t,e){return-1!=t.indexOf(e)}function N(t,e){return t<e?-1:t>e?1:0}t:{var k=u.navigator;if(k){var L=k.userAgent;if(L){I=L;break t}}I=""}function D(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function M(t){var e={};for(var n in t)e[n]=t[n];return e}var P="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function R(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<P.length;o++)n=P[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function j(t){return j[" "](t),t}j[" "]=l;var F,z,$=O(I,"Opera"),V=O(I,"Trident")||O(I,"MSIE"),B=O(I,"Edge"),q=B||V,U=O(I,"Gecko")&&!(O(I.toLowerCase(),"webkit")&&!O(I,"Edge"))&&!(O(I,"Trident")||O(I,"MSIE"))&&!O(I,"Edge"),W=O(I.toLowerCase(),"webkit")&&!O(I,"Edge");function H(){var t=u.document;return t?t.documentMode:void 0}t:{var G="",X=(z=I,U?/rv:([^\);]+)(\)|;)/.exec(z):B?/Edge\/([\d\.]+)/.exec(z):V?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(z):W?/WebKit\/(\S+)/.exec(z):$?/(?:Version)[ \/]?(\S+)/.exec(z):void 0);if(X&&(G=X?X[1]:""),V){var Y=H();if(null!=Y&&Y>parseFloat(G)){F=String(Y);break t}}F=G}var K,Q={};function J(t){return function(t,e){var n=Q;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,function(){for(var e=0,n=A(String(F)).split("."),r=A(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var s=n[o]||"",a=r[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=N(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||N(0==s[2].length,0==a[2].length)||N(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e})}if(u.document&&V){var Z=H();K=Z||(parseInt(F,10)||void 0)}else K=void 0;var tt=K,et=!V||9<=Number(tt),nt=V&&!J("9"),rt=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{u.addEventListener("test",l,e),u.removeEventListener("test",l,e)}catch(t){}return t}();function it(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function ot(t,e){if(it.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(U){t:{try{j(e.nodeName);var i=!0;break t}catch(t){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:st[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}it.prototype.b=function(){this.defaultPrevented=!0},w(ot,it);var st={2:"touch",3:"pen",4:"mouse"};ot.prototype.b=function(){ot.S.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,nt)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(t){}};var at="closure_listenable_"+(1e6*Math.random()|0),ut=0;function lt(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function ct(t){this.src=t,this.a={},this.b=0}function ft(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=_(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(lt(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ht(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.ca==r)return i}return-1}ct.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=ht(t,e,r,i);return-1<s?(e=t[s],n||(e.Z=!1)):((e=new function(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++ut,this.Y=this.Z=!1}(e,this.src,o,!!r,i)).Z=n,t.push(e)),e};var dt="closure_lm_"+(1e6*Math.random()|0),pt={};function vt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(Array.isArray(n)){for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);return null}r=xt(r);return e&&e[at]?e.wa(n,r,h(i)?!!i.capture:!!i,o):gt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)vt(t,e[o],n,r,i);return null}return n=xt(n),t&&t[at]?t.va(e,n,h(r)?!!r.capture:!!r,i):gt(t,e,n,!1,r,i)}function gt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var s=h(i)?!!i.capture:!!i;if(s&&!et)return null;var a=Et(t);if(a||(t[dt]=a=new ct(t)),(n=a.add(e,n,r,s,o)).proxy)return n;if(r=function(){var t=wt,e=et?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)rt||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(yt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function mt(t){if("number"!=typeof t&&t&&!t.Y){var e=t.src;if(e&&e[at])ft(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(yt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Et(e))?(ft(n,t),0==n.b&&(n.src=null,e[dt]=null)):lt(t)}}}function yt(t){return t in pt?pt[t]:pt[t]="on"+t}function bt(t,e){var n=t.listener,r=t.ca||t.src;return t.Z&&mt(t),n.call(r,e)}function wt(t,e){if(t.Y)return!0;if(!et){if(!e)t:{e=["window","event"];for(var n=u,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return bt(t,e=new ot(e,this))}return bt(t,new ot(e,this))}function Et(t){return(t=t[dt])instanceof ct?t:null}var _t="__closure_events_fn_"+(1e9*Math.random()>>>0);function xt(t){return"function"==c(t)?t:(t[_t]||(t[_t]=function(e){return t.handleEvent(e)}),t[_t])}function Tt(){E.call(this),this.c=new ct(this),this.J=this,this.C=null}function St(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.Y&&s.capture==n){var a=s.listener,u=s.ca||s.src;s.Z&&ft(t.c,s),i=!1!==a.call(u,r)&&i}}return i&&!r.defaultPrevented}w(Tt,E),Tt.prototype[at]=!0,(o=Tt.prototype).addEventListener=function(t,e,n,r){vt(this,t,e,n,r)},o.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,o){if(Array.isArray(n))for(var s=0;s<n.length;s++)t(e,n[s],r,i,o);else i=h(i)?!!i.capture:!!i,r=xt(r),e&&e[at]?(e=e.c,(n=String(n).toString())in e.a&&-1<(r=ht(s=e.a[n],r,i,o))&&(lt(s[r]),Array.prototype.splice.call(s,r,1),0==s.length&&(delete e.a[n],e.b--))):e&&(e=Et(e))&&(n=e.a[n.toString()],e=-1,n&&(e=ht(n,r,i,o)),(r=-1<e?n[e]:null)&&mt(r))}(this,t,e,n,r)},o.dispatchEvent=function(t){var e,n=this.C;if(n)for(e=[];n;n=n.C)e.push(n);n=this.J;var r=t.type||t;if("string"==typeof t)t=new it(t,n);else if(t instanceof it)t.target=t.target||n;else{var i=t;R(t=new it(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var s=t.a=e[o];i=St(s,r,!0,t)&&i}if(i=St(s=t.a=n,r,!0,t)&&i,i=St(s,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=St(s=t.a=e[o],r,!1,t)&&i;return i},o.G=function(){if(Tt.S.G.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)lt(n[r]);delete e.a[t],e.b--}}this.C=null},o.va=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},o.wa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var Ct=u.JSON.stringify;function It(){this.b=this.a=null}var At,Ot=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,t=this.a,this.a=t.next,t.next=null):t=this.c(),t},t}())(function(){return new kt},function(t){t.reset()},100);function Nt(){var t=Pt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function kt(){this.next=this.b=this.a=null}function Lt(t){u.setTimeout(function(){throw t},0)}function Dt(t,e){At||function(){var t=u.Promise.resolve(void 0);At=function(){t.then(Rt)}}(),Mt||(At(),Mt=!0),Pt.add(t,e)}It.prototype.add=function(t,e){var n=Ot.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},kt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},kt.prototype.reset=function(){this.next=this.b=this.a=null};var Mt=!1,Pt=new It;function Rt(){for(var t;t=Nt();){try{t.a.call(t.b)}catch(t){Lt(t)}var e=Ot;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Mt=!1}function jt(t,e){Tt.call(this),this.b=t||1,this.a=e||u,this.f=m(this.Ya,this),this.g=b()}function Ft(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function zt(t,e,n){if("function"==c(t))n&&(t=m(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=m(t.handleEvent,t)}return 2147483647<Number(e)?-1:u.setTimeout(t,e||0)}w(jt,Tt),(o=jt.prototype).aa=!1,o.M=null,o.Ya=function(){if(this.aa){var t=b()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(Ft(this),this.start()))}},o.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=b())},o.G=function(){jt.S.G.call(this),Ft(this),delete this.a};var $t=function(t){function e(e,n,r){var i=t.call(this)||this;return i.g=null!=r?e.bind(r):e,i.h=n,i.b=null,i.c=!1,i.a=null,i}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:function t(e){e.a=zt(function(){e.a=null,e.c&&(e.c=!1,t(e))},e.h);var n=e.b;e.b=null,e.g.apply(null,n)}(this)},e.prototype.G=function(){t.prototype.G.call(this),this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(E);function Vt(t){E.call(this),this.b=t,this.a={}}w(Vt,E);var Bt=[];function qt(t,e,n,r){Array.isArray(n)||(n&&(Bt[0]=n.toString()),n=Bt);for(var i=0;i<n.length;i++){var o=vt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function Ut(t){D(t.a,function(t,e){this.a.hasOwnProperty(e)&&mt(t)},t),t.a={}}function Wt(){this.a=!0}function Ht(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}return Ct(n)}catch(t){return e}}(t,n)+(r?" "+r:"")})}Vt.prototype.G=function(){Vt.S.G.call(this),Ut(this)},Vt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Wt.prototype.info=function(){};var Gt=null;function Xt(){return Gt=Gt||new Tt}function Yt(t){it.call(this,"serverreachability",t)}function Kt(t){var e=Xt();e.dispatchEvent(new Yt(e,t))}function Qt(t){it.call(this,"statevent",t)}function Jt(t){var e=Xt();e.dispatchEvent(new Qt(e,t))}function Zt(t){it.call(this,"timingevent",t)}function te(t,e){if("function"!=c(t))throw Error("Fn must not be null and must be a function");return u.setTimeout(function(){t()},e)}w(Yt,it),w(Qt,it),w(Zt,it);var ee={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},ne={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function re(){}function ie(t){var e;return(e=t.a)||(e=t.a={}),e}function oe(){}re.prototype.a=null;var se,ae={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function ue(){it.call(this,"d")}function le(){it.call(this,"c")}function ce(){}function fe(t,e,n,r){this.g=t,this.c=e,this.f=n,this.T=r||1,this.J=new Vt(this),this.P=he,t=q?125:void 0,this.R=new jt(t),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}w(ue,it),w(le,it),w(ce,re),se=new ce;var he=45e3,de={},pe={};function ve(t,e,n){t.H=1,t.i=je(ke(e)),t.j=n,t.I=!0,ge(t,null)}function ge(t,e){t.u=b(),be(t),t.l=ke(t.i);var n=t.l,r=t.T;Array.isArray(r)||(r=[String(r)]),Ke(n.b,"t",r),t.D=0,t.a=qn(t.g,t.g.C?e:null),0<t.O&&(t.F=new $t(m(t.Ca,t,t.a),t.O)),qt(t.J,t.a,"readystatechange",t.Wa),e=t.B?M(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),Kt(1),function(t,e,n,r,i,o){t.info(function(){if(t.a)if(o)for(var s="",a=o.split("&"),u=0;u<a.length;u++){var l=a[u].split("=");if(1<l.length){var c=l[0];l=l[1];var f=c.split("_");s=2<=f.length&&"type"==f[1]?s+(c+"=")+l+"&":s+(c+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+s})}(t.c,t.m,t.l,t.f,t.T,t.j)}function me(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=ye(t,n);if(i==pe){4==e&&(t.h=4,Jt(14),r=!1),Ht(t.c,t.f,null,"[Incomplete Response]");break}if(i==de){t.h=4,Jt(15),Ht(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}Ht(t.c,t.f,i,null),Te(t,i)}4==e&&0==n.length&&(t.h=1,Jt(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.W&&(t.W=!0,(e=t.g).a==t&&e.V&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),Pn(e),e.F=!0)):(Ht(t.c,t.f,n,"[Invalid Chunked Response]"),xe(t),_e(t))}function ye(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?pe:(n=Number(e.substring(n,r)),isNaN(n)?de:(r+=1)+n>e.length?pe:(e=e.substr(r,n),t.D=r+n,e))}function be(t){t.U=b()+t.P,we(t,t.P)}function we(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=te(m(t.Ua,t),e)}function Ee(t){t.o&&(u.clearTimeout(t.o),t.o=null)}function _e(t){0==t.g.v||t.A||Fn(t.g,t)}function xe(t){Ee(t);var e=t.F;e&&"function"==typeof e.ja&&e.ja(),t.F=null,Ft(t.R),Ut(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function Te(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||nn(n.b,t)))if(n.I=t.N,!t.C&&nn(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch(t){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3<t.u))break t;jn(n),Cn(n)}Mn(n),Jt(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=te(m(n.Ra,n),6e3));if(1>=en(n.b)&&n.ea){try{n.ea()}catch(t){}n.ea=void 0}}else $n(n,11)}else if((t.C||n.a==t)&&jn(n),!C(e))for(e=r=n.ka.a.parse(e),r=0;r<e.length;r++)if(i=e[r],n.P=i[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var s=i[4];null!=s&&(n.pa=s,n.c.info("SVER="+n.pa));var a=i[5];if(null!=a&&"number"==typeof a&&0<a){var u=1.5*a;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var l=t.a;if(l){var c=l.a?l.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var f=u.b;!f.a&&(O(c,"spdy")||O(c,"quic")||O(c,"h2"))&&(f.f=f.g,f.a=new Set,f.b&&(rn(f,f.b),f.b=null))}if(u.A){var h=l.a?l.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(u.na=h,Re(u.B,u.A,h))}}n.v=3,n.f&&n.f.ta(),n.V&&(n.N=b()-t.u,n.c.info("Handshake RTT: "+n.N+"ms"));var d=t;if((u=n).la=Bn(u,u.C?u.ga:null,u.fa),d.C){on(u.b,d);var p=d,v=u.D;v&&p.setTimeout(v),p.o&&(Ee(p),be(p)),u.a=d}else Dn(u);0<n.g.length&&On(n)}else"stop"!=i[0]&&"close"!=i[0]||$n(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?$n(n,7):Sn(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);Kt(4)}catch(t){}}function Se(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"==typeof t)x(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(f(t)||"string"==typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.K&&"function"==typeof t.K)return t.K();if("string"==typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Ce(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Ce)for(n=t.L(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Ie(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Ae(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)Ae(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Ae(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(o=fe.prototype).setTimeout=function(t){this.P=t},o.Wa=function(t){t=t.target;var e=this.F;e&&3==En(t)?e.f():this.Ca(t)},o.Ca=function(t){try{if(t==this.a)t:{var e=En(this.a),n=this.a.ua(),r=this.a.X();if(!(3>e||3==e&&!q&&!this.a.$())){this.A||4!=e||7==n||Kt(8==n||0>=r?3:2),Ee(this);var i=this.a.X();this.N=i;var o=this.a.$();if(this.b=200==i,function(t,e,n,r,i,o,s){t.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+s})}(this.c,this.m,this.l,this.f,this.T,e,i),this.b){if(this.V&&!this.C){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(s)){var u=s;break e}}u=null}if(!u){this.b=!1,this.h=3,Jt(12),xe(this),_e(this);break t}Ht(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Te(this,u)}this.I?(me(this,e,o),q&&this.b&&3==e&&(qt(this.J,this.R,"tick",this.Va),this.R.start())):(Ht(this.c,this.f,o,null),Te(this,o)),4==e&&xe(this),this.b&&!this.A&&(4==e?Fn(this.g,this):(this.b=!1,be(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,Jt(12)):(this.h=0,Jt(13)),xe(this),_e(this)}}}catch(t){}},o.Va=function(){if(this.a){var t=En(this.a),e=this.a.$();this.D<e.length&&(Ee(this),me(this,t,e),this.b&&4!=t&&be(this))}},o.cancel=function(){this.A=!0,xe(this)},o.Ua=function(){this.o=null;var t=b();0<=t-this.U?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.c,this.l),2!=this.H&&(Kt(3),Jt(17)),xe(this),this.h=2,_e(this)):we(this,this.U-t)},(o=Ce.prototype).K=function(){Ie(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},o.L=function(){return Ie(this),this.a.concat()},o.get=function(t,e){return Ae(this.b,t)?this.b[t]:e},o.set=function(t,e){Ae(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},o.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Oe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ne(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ne){this.a=void 0!==e?e:t.a,Le(this,t.f),this.j=t.j,De(this,t.c),Me(this,t.h),this.g=t.g,e=t.b;var n=new He;n.c=e.c,e.a&&(n.a=new Ce(e.a),n.b=e.b),Pe(this,n),this.i=t.i}else t&&(n=String(t).match(Oe))?(this.a=!!e,Le(this,n[1]||"",!0),this.j=Fe(n[2]||""),De(this,n[3]||"",!0),Me(this,n[4]),this.g=Fe(n[5]||"",!0),Pe(this,n[6]||"",!0),this.i=Fe(n[7]||"")):(this.a=!!e,this.b=new He(null,this.a))}function ke(t){return new Ne(t)}function Le(t,e,n){t.f=n?Fe(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function De(t,e,n){t.c=n?Fe(e,!0):e}function Me(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Pe(t,e,n){e instanceof He?(t.b=e,function(t,e){e&&!t.f&&(Ge(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Xe(this,e),Ke(this,n,t))},t)),t.f=e}(t.b,t.a)):(n||(e=ze(e,Ue)),t.b=new He(e,t.a))}function Re(t,e,n){t.b.set(e,n)}function je(t){return Re(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),t}function Fe(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function ze(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,$e),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function $e(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ne.prototype.toString=function(){var t=[],e=this.f;e&&t.push(ze(e,Ve,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(ze(e,Ve,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(ze(n,"/"==n.charAt(0)?qe:Be,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",ze(n,We)),t.join("")};var Ve=/[#\/\?@]/g,Be=/[#\?:]/g,qe=/[#\?]/g,Ue=/[#\?@]/g,We=/#/g;function He(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ge(t){t.a||(t.a=new Ce,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function Xe(t,e){Ge(t),e=Qe(t,e),Ae(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Ae((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Ie(t)))}function Ye(t,e){return Ge(t),e=Qe(t,e),Ae(t.a.b,e)}function Ke(t,e,n){Xe(t,e),0<n.length&&(t.c=null,t.a.set(Qe(t,e),S(n)),t.b+=n.length)}function Qe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Je(t){this.g=t||Ze,u.PerformanceNavigationTiming?t=0<(t=u.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):t=!!(u.ia&&u.ia.ya&&u.ia.ya()&&u.ia.ya().qb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(o=He.prototype).add=function(t,e){Ge(this),this.c=null,t=Qe(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},o.forEach=function(t,e){Ge(this),this.a.forEach(function(n,r){x(n,function(n){t.call(e,n,r,this)},this)},this)},o.L=function(){Ge(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},o.K=function(t){Ge(this);var e=[];if("string"==typeof t)Ye(this,t)&&(e=T(e,this.a.get(Qe(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=T(e,t[n])}return e},o.set=function(t,e){return Ge(this),this.c=null,Ye(this,t=Qe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},o.get=function(t,e){return t&&0<(t=this.K(t)).length?String(t[0]):e},o.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),t.push(s)}}return this.c=t.join("&")};var Ze=10;function tn(t){return!!t.b||!!t.a&&t.a.size>=t.f}function en(t){return t.b?1:t.a?t.a.size:0}function nn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function rn(t,e){t.a?t.a.add(e):t.b=e}function on(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function sn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var o=i(t.a.values()),s=o.next();!s.done;s=o.next()){var a=s.value;r=r.concat(a.s)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return S(t.c)}function an(){}function un(t,e,n){var r=n||"";try{Se(t,function(t,n){var i=t;h(t)&&(i=Ct(t)),e.push(r+n+"="+encodeURIComponent(i))})}catch(t){throw e.push(r+"type="+encodeURIComponent("_badmap")),t}}function ln(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(t){}}Je.prototype.cancel=function(){var t,e;if(this.c=sn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=i(this.a.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},an.prototype.stringify=function(t){return u.JSON.stringify(t,void 0)},an.prototype.parse=function(t){return u.JSON.parse(t,void 0)};var cn=u.JSON.parse;function fn(t){Tt.call(this),this.headers=new Ce,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=hn,this.D=this.F=!1}w(fn,Tt);var hn="",dn=/^https?$/i,pn=["POST","PUT"];function vn(t){return"content-type"==t.toLowerCase()}function gn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,mn(t),bn(t)}function mn(t){t.u||(t.u=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function yn(t){if(t.b&&void 0!==a&&(!t.s[1]||4!=En(t)||2!=t.X()))if(t.l&&4==En(t))zt(t.za,0,t);else if(t.dispatchEvent("readystatechange"),4==En(t)){t.b=!1;try{var e,n=t.X();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(Oe)[1]||null;if(!o&&u.self&&u.self.location){var s=u.self.location.protocol;o=s.substr(0,s.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var l=2<En(t)?t.a.statusText:""}catch(t){l=""}t.f=l+" ["+t.X()+"]",mn(t)}}finally{bn(t)}}}function bn(t,e){if(t.a){wn(t);var n=t.a,r=t.s[0]?l:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){}}}function wn(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(u.clearTimeout(t.m),t.m=null)}function En(t){return t.a?t.a.readyState:0}function _n(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return D(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):Re(t,e,n))}function xn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Tn(t){this.pa=0,this.g=[],this.c=new Wt,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=xn("failFast",!1,t),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=xn("baseRetryDelayMs",5e3,t),this.Ma=xn("retryDelaySeedMs",1e4,t),this.Ja=xn("forwardChannelMaxRetries",2,t),this.ma=xn("forwardChannelRequestTimeoutMs",2e4,t),this.Ka=t&&t.g||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new Je(t&&t.concurrentRequestLimit),this.ka=new function(){this.a=new an},this.da=t&&t.fastHandshake||!1,this.Ga=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&t&&t.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function Sn(t){if(In(t),3==t.v){var e=t.R++,n=ke(t.B);Re(n,"SID",t.J),Re(n,"RID",e),Re(n,"TYPE","terminate"),kn(t,n),(e=new fe(t,t.c,e,void 0)).H=2,e.i=je(ke(n)),n=!1,u.navigator&&u.navigator.sendBeacon&&(n=u.navigator.sendBeacon(e.i.toString(),"")),!n&&u.Image&&((new Image).src=e.i,n=!0),n||(e.a=qn(e.g,null),e.a.ba(e.i)),e.u=b(),be(e)}Vn(t)}function Cn(t){t.a&&(Pn(t),t.a.cancel(),t.a=null)}function In(t){Cn(t),t.j&&(u.clearTimeout(t.j),t.j=null),jn(t),t.b.cancel(),t.h&&("number"==typeof t.h&&u.clearTimeout(t.h),t.h=null)}function An(t,e){t.g.push(new function(t,e){this.b=t,this.a=e}(t.La++,e)),3==t.v&&On(t)}function On(t){tn(t.b)||t.h||(t.h=!0,Dt(t.Ba,t),t.u=0)}function Nn(t,e){var n;n=e?e.f:t.R++;var r=ke(t.B);Re(r,"SID",t.J),Re(r,"RID",n),Re(r,"AID",t.P),kn(t,r),t.i&&t.l&&_n(r,t.i,t.l),n=new fe(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=Ln(t,n,1e3),n.setTimeout(Math.round(.5*t.ma)+Math.round(.5*t.ma*Math.random())),rn(t.b,n),ve(n,r,e)}function kn(t,e){t.f&&Se({},function(t,n){Re(e,n,t)})}function Ln(t,e,n){n=Math.min(t.g.length,n);var r=t.f?m(t.f.Ha,t.f,t):null;t:for(var i=t.g,o=-1;;){var s=["count="+n];-1==o?0<n?(o=i[0].b,s.push("ofs="+o)):o=0:s.push("ofs="+o);for(var a=!0,u=0;u<n;u++){var l=i[u].b,c=i[u].a;if(0>(l-=o))o=Math.max(0,i[u].b-100),a=!1;else try{un(c,s,"req"+l+"_")}catch(t){r&&r(c)}}if(a){r=s.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function Dn(t){t.a||t.j||(t.U=1,Dt(t.Aa,t),t.o=0)}function Mn(t){return!(t.a||t.j||3<=t.o)&&(t.U++,t.j=te(m(t.Aa,t),zn(t,t.o)),t.o++,!0)}function Pn(t){null!=t.s&&(u.clearTimeout(t.s),t.s=null)}function Rn(t){t.a=new fe(t,t.c,"rpc",t.U),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=ke(t.la);Re(e,"RID","rpc"),Re(e,"SID",t.J),Re(e,"CI",t.H?"0":"1"),Re(e,"AID",t.P),kn(t,e),Re(e,"TYPE","xmlhttp"),t.i&&t.l&&_n(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=je(ke(e)),n.j=null,n.I=!0,ge(n,t)}function jn(t){null!=t.m&&(u.clearTimeout(t.m),t.m=null)}function Fn(t,e){var n=null;if(t.a==e){jn(t),Pn(t),t.a=null;var r=2}else{if(!nn(t.b,e))return;n=e.s,on(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=b()-e.u;var i=t.u;(r=Xt()).dispatchEvent(new Zt(r,n,e,i)),On(t)}else Dn(t);else if(3==(i=e.h)||0==i&&0<t.I||!(1==r&&function(t,e){return!(en(t.b)>=t.b.f-(t.h?1:0)||(t.h?(t.g=e.s.concat(t.g),0):1==t.v||2==t.v||t.u>=(t.Ia?0:t.Ja)||(t.h=te(m(t.Ba,t,e),zn(t,t.u)),t.u++,0)))}(t,e)||2==r&&Mn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:$n(t,5);break;case 4:$n(t,10);break;case 3:$n(t,6);break;default:$n(t,2)}}function zn(t,e){var n=t.Fa+Math.floor(Math.random()*t.Ma);return t.f||(n*=2),n*e}function $n(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=m(t.Xa,t);n||(n=new Ne("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||Le(n,"https"),je(n)),function(t,e){var n=new Wt;if(u.Image){var r=new Image;r.onload=y(ln,n,r,"TestLoadImage: loaded",!0,e),r.onerror=y(ln,n,r,"TestLoadImage: error",!1,e),r.onabort=y(ln,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=y(ln,n,r,"TestLoadImage: timeout",!1,e),u.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}(n.toString(),r)}else Jt(2);t.v=0,t.f&&t.f.ra(e),Vn(t),In(t)}function Vn(t){t.v=0,t.I=-1,t.f&&(0==sn(t.b).length&&0==t.g.length||(t.b.c.length=0,S(t.g),t.g.length=0),t.f.qa())}function Bn(t,e,n){var r=function(t){return t instanceof Ne?ke(t):new Ne(t,void 0)}(n);if(""!=r.c)e&&De(r,e+"."+r.c),Me(r,r.h);else{var i=u.location;r=function(t,e,n,r){var i=new Ne(null,void 0);return t&&Le(i,t),e&&De(i,e),n&&Me(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.W&&D(t.W,function(t,e){Re(r,e,t)}),e=t.A,n=t.na,e&&n&&Re(r,e,n),Re(r,"VER",t.ha),kn(t,r),r}function qn(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new fn(t.Ka)).F=t.C,e}function Un(){}function Wn(){if(V&&!(10<=Number(tt)))throw Error("Environmental error: no available transport.")}function Hn(t,e){Tt.call(this),this.a=new Tn(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.l=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!C(t)&&(this.a.i=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!C(e)&&(this.a.A=e,null!==(t=this.b)&&e in t&&(e in(t=this.b)&&delete t[e])),this.f=new Yn(this)}function Gn(t){ue.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function Xn(){le.call(this),this.status=1}function Yn(t){this.a=t}(o=fn.prototype).ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+t);e=e?e.toUpperCase():"GET",this.B=t,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?ie(this.H):ie(se),this.a.onreadystatechange=m(this.za,this);try{this.A=!0,this.a.open(e,String(t),!0),this.A=!1}catch(t){return void gn(this,t)}t=n||"";var i=new Ce(this.headers);r&&Se(r,function(t,e){i.set(e,t)}),r=function(t){t:{for(var e=vn,n=t.length,r="string"==typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(i.L()),n=u.FormData&&t instanceof u.FormData,!(0<=_(pn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(t,e){this.a.setRequestHeader(e,t)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{wn(this),0<this.o&&((this.D=function(t){return V&&J(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=m(this.xa,this)):this.m=zt(this.xa,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(t){gn(this,t)}},o.xa=function(){void 0!==a&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},o.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),bn(this))},o.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),bn(this,!0)),fn.S.G.call(this)},o.za=function(){this.j||(this.A||this.l||this.g?yn(this):this.Ta())},o.Ta=function(){yn(this)},o.X=function(){try{return 2<En(this)?this.a.status:-1}catch(t){return-1}},o.$=function(){try{return this.a?this.a.responseText:""}catch(t){return""}},o.Na=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),cn(e)}},o.ua=function(){return this.h},o.Qa=function(){return"string"==typeof this.f?this.f:String(this.f)},(o=Tn.prototype).ha=8,o.v=1,o.Ba=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new fe(this,this.c,t,void 0),r=this.l;if(this.O&&(r?R(r=M(r),this.O):r=this.O),null===this.i&&(n.B=r),this.da)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[i];if(void 0===(o="__data__"in o.a&&"string"==typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=i;break t}if(4096===e||i===this.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=Ln(this,n,e),Re(i=ke(this.B),"RID",t),Re(i,"CVER",22),this.A&&Re(i,"X-HTTP-Session-Id",this.A),kn(this,i),this.i&&r&&_n(i,this.i,r),rn(this.b,n),this.Ga&&Re(i,"TYPE","init"),this.da?(Re(i,"$req",e),Re(i,"SID","null"),n.V=!0,ve(n,i,null)):ve(n,i,e),this.v=2}}else 3==this.v&&(t?Nn(this,t):0==this.g.length||tn(this.b)||Nn(this))},o.Aa=function(){if(this.j=null,Rn(this),this.V&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=te(m(this.Sa,this),t)}},o.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,Cn(this),Rn(this))},o.Ra=function(){null!=this.m&&(this.m=null,Cn(this),Mn(this),Jt(19))},o.Xa=function(t){t?(this.c.info("Successfully pinged google.com"),Jt(2)):(this.c.info("Failed to ping google.com"),Jt(1))},(o=Un.prototype).ta=function(){},o.sa=function(){},o.ra=function(){},o.qa=function(){},o.Ha=function(){},Wn.prototype.a=function(t,e){return new Hn(t,e)},w(Hn,Tt),(o=Hn.prototype).addEventListener=function(t,e,n,r){Hn.S.addEventListener.call(this,t,e,n,r)},o.removeEventListener=function(t,e,n,r){Hn.S.removeEventListener.call(this,t,e,n,r)},o.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var t=this.a,e=this.l,n=this.b||void 0;Jt(0),t.fa=e,t.W=n||{},t.H=t.T,t.B=Bn(t,null,t.fa),On(t)},o.close=function(){Sn(this.a)},o.Pa=function(t){if("string"==typeof t){var e={};e.__data__=t,An(this.a,e)}else this.g?((e={}).__data__=Ct(t),An(this.a,e)):An(this.a,t)},o.G=function(){this.a.f=null,delete this.f,Sn(this.a),delete this.a,Hn.S.G.call(this)},w(Gn,ue),w(Xn,le),w(Yn,Un),Yn.prototype.ta=function(){this.a.dispatchEvent("a")},Yn.prototype.sa=function(t){this.a.dispatchEvent(new Gn(t))},Yn.prototype.ra=function(t){this.a.dispatchEvent(new Xn(t))},Yn.prototype.qa=function(){this.a.dispatchEvent("b")},Wn.prototype.createWebChannel=Wn.prototype.a,Hn.prototype.send=Hn.prototype.Pa,Hn.prototype.open=Hn.prototype.Oa,Hn.prototype.close=Hn.prototype.close,ee.NO_ERROR=0,ee.TIMEOUT=8,ee.HTTP_ERROR=6,ne.COMPLETE="complete",oe.EventType=ae,ae.OPEN="a",ae.CLOSE="b",ae.ERROR="c",ae.MESSAGE="d",Tt.prototype.listen=Tt.prototype.va,fn.prototype.listenOnce=fn.prototype.wa,fn.prototype.getLastError=fn.prototype.Qa,fn.prototype.getLastErrorCode=fn.prototype.ua,fn.prototype.getStatus=fn.prototype.X,fn.prototype.getResponseJson=fn.prototype.Na,fn.prototype.getResponseText=fn.prototype.$,fn.prototype.send=fn.prototype.ba;var Kn=function(){return new Wn},Qn=ee,Jn=ne,Zn=oe,tr=fn,er={createWebChannelTransport:Kn,ErrorCode:Qn,EventType:Jn,WebChannel:Zn,XhrIo:tr};e.default=er}.call(this,n(54))},,,,,,,,function(t,e,n){"use strict";var r=n(133),i=n(56),o=n(442);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){"use strict";var r=n(25),i=n(20),o=n(196),s=n(74),a=n(441),u=n(17),l=TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=s(t,c);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){"use strict";var r=n(25),i=n(11),o=n(20),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(133),i=n(96);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){"use strict";var r=n(15),i=n(200),o=n(201),s=n(444),a=n(68),u=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var l in i)i[l]&&u(r[l]&&r[l].prototype);u(o)},function(t,e,n){"use strict";var r=n(145).forEach,i=n(204)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},function(t,e,n){"use strict";var r=n(447);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){"use strict";var r=n(448),i=n(449),o=n(20),s=n(17)("species"),a=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===a||r(e.prototype))?e=void 0:o(e)&&null===(e=e[s])&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(41);t.exports=Array.isArray||function(t){return"Array"===r(t)}},function(t,e,n){"use strict";var r=n(6),i=n(7),o=n(11),s=n(96),a=n(93),u=n(198),l=function(){},c=[],f=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(l),v=function(t){if(!o(t))return!1;try{return f(l,c,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!f||i(function(){var t;return v(v.call)||!v(Object)||!v(function(){t=!0})||t})?g:v},function(t,e,n){"use strict";var r=n(42),i=n(454);r({global:!0,forced:parseInt!==i},{parseInt:i})},function(t,e,n){"use strict";var r=n(27),i=n(452),o=n(205),s=n(35);t.exports=function(t,e,n){for(var a=i(e),u=s.f,l=o.f,c=0;c<a.length;c++){var f=a[c];r(t,f)||n&&r(n,f)||u(t,f,l(e,f))}}},function(t,e,n){"use strict";var r=n(93),i=n(6),o=n(147),s=n(209),a=n(21),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},function(t,e,n){"use strict";var r=n(69),i=n(208),o=n(76),s=function(t){return function(e,n,s){var a,u=r(e),l=o(u),c=i(s,l);if(t&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,n){"use strict";var r=n(15),i=n(7),o=n(6),s=n(57),a=n(455).trim,u=n(211),l=r.parseInt,c=r.Symbol,f=c&&c.iterator,h=/^[+-]?0x/i,d=o(h.exec),p=8!==l(u+"08")||22!==l(u+"0x16")||f&&!i(function(){l(Object(f))});t.exports=p?function(t,e){var n=a(s(t));return l(n,e>>>0||(d(h,n)?16:10))}:l},function(t,e,n){"use strict";var r=n(6),i=n(66),o=n(57),s=n(211),a=r("".replace),u=RegExp("^["+s+"]+"),l=RegExp("(^|[^"+s+"])["+s+"]+$"),c=function(t){return function(e){var n=o(i(e));return 1&t&&(n=a(n,u,"")),2&t&&(n=a(n,l,"$1")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},function(t,e,n){"use strict";var r=n(42),i=n(457);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(28),i=n(6),o=n(25),s=n(7),a=n(212),u=n(209),l=n(206),c=n(65),f=n(97),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||s(function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection");return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!==h({},t)[n]||"abcdefghijklmnopqrst"!==a(h({},e)).join("")})?function(t,e){for(var n=c(t),i=arguments.length,s=1,h=u.f,d=l.f;i>s;)for(var v,g=f(arguments[s++]),m=h?p(a(g),h(g)):a(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(d,g,v)||(n[v]=g[v]);return n}:h},function(t,e,n){"use strict";var r=n(42),i=n(145).filter;r({target:"Array",proto:!0,forced:!n(459)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(7),i=n(17),o=n(138),s=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,n){"use strict";var r=n(17),i=n(99),o=n(35).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},function(t,e,n){"use strict";var r=n(28),i=n(195),o=n(35),s=n(21),a=n(69),u=n(212);e.f=r&&!i?Object.defineProperties:function(t,e){s(t);for(var n,r=a(e),i=u(e),l=i.length,c=0;l>c;)o.f(t,n=i[c++],r[n]);return t}},function(t,e,n){"use strict";var r=n(93);t.exports=r("document","documentElement")},function(t,e,n){"use strict";var r=n(215).IteratorPrototype,i=n(99),o=n(94),s=n(149),a=n(77),u=function(){return this};t.exports=function(t,e,n,l){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!l,n)}),s(t,c,!1,!0),a[c]=u,t}},function(t,e,n){"use strict";var r=n(7);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){"use strict";var r=n(6),i=n(75);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},function(t,e,n){"use strict";var r=n(11),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},function(t,e,n){"use strict";var r=n(219).charAt,i=n(57),o=n(67),s=n(214),a=n(218),u=o.set,l=o.getterFor("String Iterator");s(String,"String",function(t){u(this,{type:"String Iterator",string:i(t),index:0})},function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?a(void 0,!0):(t=r(n,i),e.index+=t.length,a(t,!1))})},function(t,e,n){"use strict";n(469)},function(t,e,n){"use strict";var r,i=n(220),o=n(15),s=n(6),a=n(221),u=n(150),l=n(475),c=n(481),f=n(20),h=n(67).enforce,d=n(7),p=n(199),v=Object,g=Array.isArray,m=v.isExtensible,y=v.isFrozen,b=v.isSealed,w=v.freeze,E=v.seal,_={},x={},T=!o.ActiveXObject&&"ActiveXObject"in o,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},C=l("WeakMap",S,c),I=C.prototype,A=s(I.set);if(p)if(T){r=c.getConstructor(S,"WeakMap",!0),u.enable();var O=s(I.delete),N=s(I.has),k=s(I.get);a(I,{delete:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)||e.frozen.delete(t)}return O(this,t)},has:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),N(this,t)||e.frozen.has(t)}return N(this,t)},get:function(t){if(f(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new r),N(this,t)?k(this,t):e.frozen.get(t)}return k(this,t)},set:function(t,e){if(f(t)&&!m(t)){var n=h(this);n.frozen||(n.frozen=new r),N(this,t)?A(this,t,e):n.frozen.set(t,e)}else A(this,t,e);return this}})}else i&&d(function(){var t=w([]);return A(new C,t,1),!y(t)})&&a(I,{set:function(t,e){var n;return g(t)&&(y(t)?n=_:b(t)&&(n=x)),A(this,t,e),n===_&&w(t),n===x&&E(t),this}})},function(t,e,n){"use strict";var r=n(41),i=n(69),o=n(147).f,s=n(471),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===r(t)?function(t){try{return o(t)}catch(t){return s(a)}}(t):o(i(t))}},function(t,e,n){"use strict";var r=n(208),i=n(76),o=n(472),s=Array,a=Math.max;t.exports=function(t,e,n){for(var u=i(t),l=r(e,u),c=r(void 0===n?u:n,u),f=s(a(c-l,0)),h=0;l<c;l++,h++)o(f,h,t[l]);return f.length=h,f}},function(t,e,n){"use strict";var r=n(140),i=n(35),o=n(94);t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},function(t,e,n){"use strict";var r=n(7),i=n(20),o=n(41),s=n(474),a=Object.isExtensible,u=r(function(){a(1)});t.exports=u||s?function(t){return!!i(t)&&((!s||"ArrayBuffer"!==o(t))&&(!a||a(t)))}:a},function(t,e,n){"use strict";var r=n(7);t.exports=r(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})},function(t,e,n){"use strict";var r=n(42),i=n(15),o=n(6),s=n(210),a=n(56),u=n(150),l=n(222),c=n(224),f=n(11),h=n(55),d=n(20),p=n(7),v=n(479),g=n(149),m=n(480);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=y?"set":"add",E=i[t],_=E&&E.prototype,x=E,T={},S=function(t){var e=o(_[t]);a(_,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(s(t,!f(E)||!(b||_.forEach&&!p(function(){(new E).entries().next()}))))x=n.getConstructor(e,t,y,w),u.enable();else if(s(t,!0)){var C=new x,I=C[w](b?{}:-0,1)!==C,A=p(function(){C.has(1)}),O=v(function(t){new E(t)}),N=!b&&p(function(){for(var t=new E,e=5;e--;)t[w](e,e);return!t.has(-0)});O||((x=e(function(t,e){c(t,_);var n=m(new E,t,x);return h(e)||l(e,n[w],{that:n,AS_ENTRIES:y}),n})).prototype=_,_.constructor=x),(A||N)&&(S("delete"),S("has"),y&&S("get")),(N||I)&&S(w),b&&_.clear&&delete _.clear}return T[t]=x,r({global:!0,constructor:!0,forced:x!==E},T),g(x,t),b||n.setStrong(x,t,y),x}},function(t,e,n){"use strict";var r=n(17),i=n(77),o=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},function(t,e,n){"use strict";var r=n(25),i=n(75),o=n(21),s=n(142),a=n(223),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return o(r(n,t));throw u(s(t)+" is not iterable")}},function(t,e,n){"use strict";var r=n(25),i=n(21),o=n(74);t.exports=function(t,e,n){var s,a;i(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw n;return n}s=r(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return i(s),n}},function(t,e,n){"use strict";var r=n(17)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(11),i=n(20),o=n(217);t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},function(t,e,n){"use strict";var r=n(6),i=n(221),o=n(150).getWeakData,s=n(224),a=n(21),u=n(55),l=n(20),c=n(222),f=n(145),h=n(27),d=n(67),p=d.set,v=d.getterFor,g=f.find,m=f.findIndex,y=r([].splice),b=0,w=function(t){return t.frozen||(t.frozen=new E)},E=function(){this.entries=[]},_=function(t,e){return g(t.entries,function(t){return t[0]===e})};E.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,function(e){return e[0]===t});return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t(function(t,i){s(t,d),p(t,{type:e,id:b++,frozen:void 0}),u(i)||c(i,t[r],{that:t,AS_ENTRIES:n})}),d=f.prototype,g=v(e),m=function(t,e,n){var r=g(t),i=o(a(e),!0);return!0===i?w(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=g(this);if(!l(t))return!1;var n=o(t);return!0===n?w(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!l(t))return!1;var n=o(t);return!0===n?w(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=g(this);if(l(t)){var n=o(t);return!0===n?w(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},function(t,e,n){"use strict";var r=n(15),i=n(200),o=n(201),s=n(213),a=n(68),u=n(17),l=u("iterator"),c=u("toStringTag"),f=s.values,h=function(t,e){if(t){if(t[l]!==f)try{a(t,l,f)}catch(e){t[l]=f}if(t[c]||a(t,c,e),i[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(e){t[n]=s[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},function(t,e,n){"use strict";var r=n(42),i=n(484).left,o=n(204),s=n(138);r({target:"Array",proto:!0,forced:!n(485)&&s>79&&s<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(75),i=n(65),o=n(97),s=n(76),a=TypeError,u=function(t){return function(e,n,u,l){r(n);var c=i(e),f=o(c),h=s(c),d=t?h-1:0,p=t?-1:1;if(u<2)for(;;){if(d in f){l=f[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw a("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in f&&(l=n(l,f[d],d,c));return l}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){"use strict";var r=n(15),i=n(41);t.exports="process"===i(r.process)},function(t,e,n){"use strict";var r=n(21);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(7),i=n(15).RegExp,o=r(function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),s=o||r(function(){return!i("a","y").sticky}),a=o||r(function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},function(t,e,n){"use strict";var r=n(7),i=n(15).RegExp;t.exports=r(function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})},function(t,e,n){"use strict";var r=n(7),i=n(15).RegExp;t.exports=r(function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},function(t,e,n){"use strict";var r=n(25),i=n(226),o=n(21),s=n(55),a=n(146),u=n(57),l=n(66),c=n(74),f=n(227),h=n(228);i("match",function(t,e,n){return[function(e){var n=l(this),i=s(e)?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),s=n(e,r,i);if(s.done)return s.value;if(!r.global)return h(r,i);var l=r.unicode;r.lastIndex=0;for(var c,d=[],p=0;null!==(c=h(r,i));){var v=u(c[0]);d[p]=v,""===v&&(r.lastIndex=f(i,a(r.lastIndex),l)),p++}return 0===p?null:d}]})},function(t,e,n){"use strict";var r=n(28),i=n(143).EXISTS,o=n(6),s=n(492),a=Function.prototype,u=o(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec);r&&!i&&s(a,"name",{configurable:!0,get:function(){try{return c(l,u(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(197),i=n(35);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},function(t,e,n){"use strict";var r=n(494),i=n(25),o=n(6),s=n(226),a=n(7),u=n(21),l=n(11),c=n(55),f=n(98),h=n(146),d=n(57),p=n(66),v=n(227),g=n(74),m=n(495),y=n(228),b=n(17)("replace"),w=Math.max,E=Math.min,_=o([].concat),x=o([].push),T=o("".indexOf),S=o("".slice),C="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0");s("replace",function(t,e,n){var o=I?"$":"$0";return[function(t,n){var r=p(this),o=c(t)?void 0:g(t,b);return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var s=u(this),a=d(t);if("string"==typeof i&&-1===T(i,o)&&-1===T(i,"$<")){var c=n(e,s,a,i);if(c.done)return c.value}var p=l(i);p||(i=d(i));var g,b=s.global;b&&(g=s.unicode,s.lastIndex=0);for(var C,I=[];null!==(C=y(s,a))&&(x(I,C),b);){""===d(C[0])&&(s.lastIndex=v(a,h(s.lastIndex),g))}for(var A,O="",N=0,k=0;k<I.length;k++){for(var L,D=d((C=I[k])[0]),M=w(E(f(C.index),a.length),0),P=[],R=1;R<C.length;R++)x(P,void 0===(A=C[R])?A:String(A));var j=C.groups;if(p){var F=_([D],P,M,a);void 0!==j&&x(F,j),L=d(r(i,void 0,F))}else L=m(D,a,M,P,j,i);M>=N&&(O+=S(a,N,M)+L,N=M+D.length)}return O+S(a,N)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!C||I)},function(t,e,n){"use strict";var r=n(92),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},function(t,e,n){"use strict";var r=n(6),i=n(65),o=Math.floor,s=r("".charAt),a=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=c;return void 0!==f&&(f=i(f),v=l),a(h,v,function(i,a){var l;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":l=f[u(a,1,-1)];break;default:var c=+a;if(0===c)return i;if(c>p){var h=o(c/10);return 0===h?i:h<=p?void 0===r[h-1]?s(a,1):r[h-1]+s(a,1):i}l=r[c-1]}return void 0===l?"":l})}},function(t,e,n){},,,,,,,,function(t,e,n){"use strict";var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};t.exports=function(t,e,n){var i,o=!1;function s(t){i=t,o||(r(a),o=!0)}function a(){n.call(t,i),o=!1}return t.addEventListener(e,s,!1),s}},function(t,e,n){"use strict";var r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};e.__esModule=!0;var i=function(){function t(){r(this,t)}return t.prototype.on=function(t,e){return this._eventCollection=this._eventCollection||{},this._eventCollection[t]=this._eventCollection[t]||[],this._eventCollection[t].push(e),this},t.prototype.once=function(t,e){var n=this;function r(){n.off(t,r),e.apply(this,arguments)}return r.listener=e,this.on(t,r),this},t.prototype.off=function(t,e){var n=void 0;return this._eventCollection&&(n=this._eventCollection[t])?(n.forEach(function(t,r){t!==e&&t.listener!==e||n.splice(r,1)}),0===n.length&&delete this._eventCollection[t],this):this},t.prototype.emit=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=void 0;return this._eventCollection&&(o=this._eventCollection[t])?((o=o.slice(0)).forEach(function(t){return t.apply(e,r)}),this):this},t}();e.default=i,t.exports=e.default},function(t,e,n){
/*!
* metismenu https://github.com/onokumus/metismenu#readme
* A collapsible jQuery menu plugin
* @version 3.0.7
* @author Osman Nuri Okumus <onokumus@gmail.com> (https://github.com/onokumus)
* @license: MIT 
*/
t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t);const n=(t=>{const e="transitionend",n={TRANSITION_END:"mmTransitionEnd",triggerTransitionEnd(n){t(n).trigger(e)},supportsTransitionEnd:()=>Boolean(e)};return t.fn.mmEmulateTransitionEnd=function(e){let r=!1;return t(this).one(n.TRANSITION_END,()=>{r=!0}),setTimeout(()=>{r||n.triggerTransitionEnd(this)},e),this},t.event.special[n.TRANSITION_END]={bindType:e,delegateType:e,handle(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},n})(e.default),r="metisMenu",i="metisMenu",o=e.default.fn[r],s={toggle:!0,preventDefault:!0,triggerElement:"a",parentTrigger:"li",subMenu:"ul"},a={SHOW:"show.metisMenu",SHOWN:"shown.metisMenu",HIDE:"hide.metisMenu",HIDDEN:"hidden.metisMenu",CLICK_DATA_API:"click.metisMenu.data-api"},u="metismenu",l="mm-active",c="mm-show",f="mm-collapse",h="mm-collapsing";class d{constructor(t,e){this.element=t,this.config={...s,...e},this.transitioning=null,this.init()}init(){const t=this,n=this.config,r=e.default(this.element);r.addClass(u),r.find(`${n.parentTrigger}.${l}`).children(n.triggerElement).attr("aria-expanded","true"),r.find(`${n.parentTrigger}.${l}`).parents(n.parentTrigger).addClass(l),r.find(`${n.parentTrigger}.${l}`).parents(n.parentTrigger).children(n.triggerElement).attr("aria-expanded","true"),r.find(`${n.parentTrigger}.${l}`).has(n.subMenu).children(n.subMenu).addClass(`${f} ${c}`),r.find(n.parentTrigger).not(`.${l}`).has(n.subMenu).children(n.subMenu).addClass(f),r.find(n.parentTrigger).children(n.triggerElement).on(a.CLICK_DATA_API,function(r){const i=e.default(this);if("true"===i.attr("aria-disabled"))return;n.preventDefault&&"#"===i.attr("href")&&r.preventDefault();const o=i.parent(n.parentTrigger),s=o.siblings(n.parentTrigger),a=s.children(n.triggerElement);o.hasClass(l)?(i.attr("aria-expanded","false"),t.removeActive(o)):(i.attr("aria-expanded","true"),t.setActive(o),n.toggle&&(t.removeActive(s),a.attr("aria-expanded","false"))),n.onTransitionStart&&n.onTransitionStart(r)})}setActive(t){e.default(t).addClass(l);const n=e.default(t).children(this.config.subMenu);n.length>0&&!n.hasClass(c)&&this.show(n)}removeActive(t){e.default(t).removeClass(l);const n=e.default(t).children(`${this.config.subMenu}.${c}`);n.length>0&&this.hide(n)}show(t){if(this.transitioning||e.default(t).hasClass(h))return;const r=e.default(t),i=e.default.Event(a.SHOW);if(r.trigger(i),!i.isDefaultPrevented()){if(r.parent(this.config.parentTrigger).addClass(l),this.config.toggle){const t=r.parent(this.config.parentTrigger).siblings().children(`${this.config.subMenu}.${c}`);this.hide(t)}r.removeClass(f).addClass(h).height(0),this.setTransitioning(!0),r.height(t[0].scrollHeight).one(n.TRANSITION_END,()=>{this.config&&this.element&&(r.removeClass(h).addClass(`${f} ${c}`).height(""),this.setTransitioning(!1),r.trigger(a.SHOWN))}).mmEmulateTransitionEnd(350)}}hide(t){if(this.transitioning||!e.default(t).hasClass(c))return;const r=e.default(t),i=e.default.Event(a.HIDE);if(r.trigger(i),i.isDefaultPrevented())return;r.parent(this.config.parentTrigger).removeClass(l),r.height(r.height())[0].offsetHeight,r.addClass(h).removeClass(f).removeClass(c),this.setTransitioning(!0);const o=()=>{this.config&&this.element&&(this.transitioning&&this.config.onTransitionEnd&&this.config.onTransitionEnd(),this.setTransitioning(!1),r.trigger(a.HIDDEN),r.removeClass(h).addClass(f))};0===r.height()||"none"===r.css("display")?o():r.height(0).one(n.TRANSITION_END,o).mmEmulateTransitionEnd(350)}setTransitioning(t){this.transitioning=t}dispose(){e.default.removeData(this.element,i),e.default(this.element).find(this.config.parentTrigger).children(this.config.triggerElement).off(a.CLICK_DATA_API),this.transitioning=null,this.config=null,this.element=null}static jQueryInterface(t){return this.each(function(){const n=e.default(this);let r=n.data(i);const o={...s,...n.data(),..."object"==typeof t&&t?t:{}};if(r||(r=new d(this,o),n.data(i,r)),"string"==typeof t){if(void 0===r[t])throw new Error(`No method named "${t}"`);r[t]()}})}}return e.default.fn[r]=d.jQueryInterface,e.default.fn[r].Constructor=d,e.default.fn[r].noConflict=(()=>(e.default.fn[r]=o,d.jQueryInterface)),d}(n(14))},function(t,e,n){},,function(t,e,n){(function(t){
/*!
 * parallax.js v1.5.0 (http://pixelcog.github.io/parallax.js/)
 * @copyright 2016 PixelCog, Inc.
 * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
 */
!function(t,e,n,r){function i(e,n){var o=this;"object"==typeof n&&(delete n.refresh,delete n.render,t.extend(this,n)),this.$element=t(e),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var s=(this.position+"").toLowerCase().match(/\S+/g)||[];if(s.length<1&&s.push("center"),1==s.length&&s.push(s[0]),"top"!=s[0]&&"bottom"!=s[0]&&"left"!=s[1]&&"right"!=s[1]||(s=[s[1],s[0]]),this.positionX!==r&&(s[0]=this.positionX.toLowerCase()),this.positionY!==r&&(s[1]=this.positionY.toLowerCase()),o.positionX=s[0],o.positionY=s[1],"left"!=this.positionX&&"right"!=this.positionX&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(isNaN(parseInt(this.positionY))?this.positionY="center":this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("<div />").prependTo(this.mirrorContainer);var a=this.$element.find(">.parallax-slider"),u=!1;0==a.length?this.$slider=t("<img />").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),u=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){o.naturalHeight&&o.naturalWidth||(o.naturalHeight=this.naturalHeight||this.height||1,o.naturalWidth=this.naturalWidth||this.width||1),o.aspectRatio=o.naturalWidth/o.naturalHeight,i.isSetup||i.setup(),i.sliders.push(o),i.isFresh=!1,i.requestRender()}),u||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}!function(){for(var t=0,n=["ms","moz","webkit","o"],r=0;r<n.length&&!e.requestAnimationFrame;++r)e.requestAnimationFrame=e[n[r]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[n[r]+"CancelAnimationFrame"]||e[n[r]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(n){var r=(new Date).getTime(),i=Math.max(0,16-(r-t)),o=e.setTimeout(function(){n(r+i)},i);return t=r+i,o}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(t){clearTimeout(t)})}(),t.extend(i.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,mirrorContainer:"body",refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var t,e=i.winHeight,n=i.docHeight,r=Math.min(this.boxOffsetTop,n-e),o=Math.max(this.boxOffsetTop+this.boxHeight-e,0),s=this.boxHeight+(r-o)*(1-this.speed)|0,a=(this.boxOffsetTop-r)*(1-this.speed)|0;s*this.aspectRatio>=this.boxWidth?(this.imageWidth=s*this.aspectRatio|0,this.imageHeight=s,this.offsetBaseTop=a,t=this.imageWidth-this.boxWidth,"left"==this.positionX?this.offsetLeft=0:"right"==this.positionX?this.offsetLeft=-t:isNaN(this.positionX)?this.offsetLeft=-t/2|0:this.offsetLeft=Math.max(this.positionX,-t)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,t=this.imageHeight-s,"top"==this.positionY?this.offsetBaseTop=a:"bottom"==this.positionY?this.offsetBaseTop=a-t:isNaN(this.positionY)?this.offsetBaseTop=a-t/2|0:this.offsetBaseTop=a+Math.max(this.positionY,-t))},render:function(){var t=i.scrollTop,e=i.scrollLeft,n=this.overScrollFix?i.overScroll:0,r=t+i.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=r?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-e,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-n)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(i,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var r=this,o=t(n),s=t(e),a=function(){i.winHeight=s.height(),i.winWidth=s.width(),i.docHeight=o.height(),i.docWidth=o.width()},u=function(){var t=s.scrollTop(),e=i.docHeight-i.winHeight,n=i.docWidth-i.winWidth;i.scrollTop=Math.max(0,Math.min(e,t)),i.scrollLeft=Math.max(0,Math.min(n,s.scrollLeft())),i.overScroll=Math.max(t-e,Math.min(t,0))};s.on("resize.px.parallax load.px.parallax",function(){a(),r.refresh(),i.isFresh=!1,i.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){u(),i.requestRender()}),a(),u(),this.isReady=!0;var l=-1;!function t(){if(l==e.pageYOffset)return e.requestAnimationFrame(t),!1;l=e.pageYOffset,r.render(),e.requestAnimationFrame(t)}()}},configure:function(e){"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this.prototype,e))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){this.render(),this.isBusy=!1},destroy:function(n){var r,o=t(n).data("px.parallax");for(o.$mirror.remove(),r=0;r<this.sliders.length;r+=1)this.sliders[r]==o&&this.sliders.splice(r,1);t(n).data("px.parallax",!1),0===this.sliders.length&&(t(e).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,i.isSetup=!1)}});var o=t.fn.parallax;t.fn.parallax=function(r){return this.each(function(){var o=t(this),s="object"==typeof r&&r;this==e||this==n||o.is("body")?i.configure(s):o.data("px.parallax")?"object"==typeof r&&t.extend(o.data("px.parallax"),s):(s=t.extend({},o.data(),s),o.data("px.parallax",new i(this,s))),"string"==typeof r&&("destroy"==r?i.destroy(this):i[r]())})},t.fn.parallax.Constructor=i,t.fn.parallax.noConflict=function(){return t.fn.parallax=o,this},t(function(){t('[data-parallax="scroll"]').parallax()})}(t,window,document)}).call(this,n(14))}]]);